From 83e07a8e7ab1720e7129a0fc77cd85044abd0979 Mon Sep 17 00:00:00 2001 From: InfinityPacer Date: Sun, 11 Oct 2026 03:22:17 +0800 Subject: [PATCH] docs(skills): place agent pet images beside remoteEntry Co-Authored-By: Claude Opus 5.5 --- skills/create-moviepilot-plugin/SKILL.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/skills/create-moviepilot-plugin/SKILL.md b/skills/create-moviepilot-plugin/SKILL.md index 6391d8562..ecea66fdb 100644 --- a/skills/create-moviepilot-plugin/SKILL.md +++ b/skills/create-moviepilot-plugin/SKILL.md @@ -520,8 +520,8 @@ def get_agent_pets(self) -> List[Dict[str, Any]]: "name": "看板娘", "mode": "stage", "component": "AgentPet", - "preview": "assets/girl-preview.png", - "avatar": "assets/girl-avatar.png", + "preview": "girl-preview.png", + "avatar": "girl-avatar.png", } ] ``` @@ -533,8 +533,12 @@ def get_agent_pets(self) -> List[Dict[str, Any]]: `stage`), `component` (federation expose name, default `AgentPet`), `api_version` (default `1`), `preview`, `avatar`, `bubbles` (stage only, `host` or `self`), and `random_actions` (renderer only). -- `preview` and `avatar` are paths relative to the federation build directory, - or `http(s)://` / `data:` URLs. Relative paths must not contain `..`, `\`, or +- `preview` and `avatar` are paths relative to the directory that holds + `remoteEntry.js` (the directory returned by `get_render_mode()`), or + `http(s)://` / `data:` URLs. With `("vue", "dist/assets")`, put + `girl-preview.png` next to `dist/assets/remoteEntry.js` and declare + `"girl-preview.png"`; `"assets/girl-preview.png"` would resolve to + `dist/assets/assets/girl-preview.png`. Relative paths must not contain `..`, `\`, or `:`. - An item with any invalid field is dropped with a warning; a duplicate `key` keeps the first item. One plugin may declare several avatars, each with its