返回 CodeWhale
README.md
1 # Whale avatar Native plugin
2
3 This example uses the current reviewed Native plugin system. Install the folder
4 through Codewhale's normal plugin install/review/enable flow. Review includes
5 `index.mjs`, `avatars/avatar.json` and its PNG page. It asks for no network,
6 secret or custom renderer API. The Engine binds the contribution to this live
7 Native owner and automatically withdraws it when disabled or disposed.
8
9 Select **Studio whale girl** in GPUI's whale habitat. The Engine TUI draws
10 only the dot whale and no longer shows avatar packs.
11
12 The `greet` clip demonstrates an author-defined action name. Add your own PNG
13 pages, clips, state mappings or views to this manifest. Frame indices span
14 pages in order, then row-major cells. All pages share the declared dimensions.
15 `rest` must be bound; other unknown states fall back to it. Each action has
16 frame durations, a reduced-motion poster and a repeat policy. A pack adds no
17 state classifier, animation loop or executable code to the rendering client.
18
19 `ctx.avatars.registerPack({path})` returns a Cordis effect disposer. Invoke it
20 when withdrawing a contribution early; ordinary plugin/scope teardown also
21 cleans it up. Use existing `commands`, `tools` and `events` services for other
22 behaviors. Avatar custom actions are visual clips, not arbitrary execution.
23
24 Art is derived from Codewhale's whale-girl pack. The exact generation prompt
25 is embedded in the PNG; the full provenance lives in the vendored Ratatui
26 `assets/whale-girl/PROMPT.md`. The web currently includes the built-in girl;
27 Native plugin catalog transport is available in GPUI.
28
28 lines MARKDOWN