@ninkch/dsh-infinite-canvas 0.19.20 → 0.19.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/README.zh-CN.md +9 -0
- package/assets/canvas-studio/SKILL.md +14 -0
- package/client.js +566 -6
- package/docs/UI-RULES.md +4 -0
- package/index.js +692 -18
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -75,6 +75,15 @@ The canvas is not a separate window you have to switch to. It opens as a **tab i
|
|
|
75
75
|
|
|
76
76
|
> One live canvas at a time (shared node graph and generation state): opening it in the pane while the full-page panel is also open **moves** the canvas rather than duplicating it — the other side shows a "move the canvas here" button.
|
|
77
77
|
|
|
78
|
+
## Session ↔ canvas binding + project memory (multi-episode series)
|
|
79
|
+
|
|
80
|
+
Built for long-running series: **one workspace = one project, one session = one episode.**
|
|
81
|
+
|
|
82
|
+
- **Bind in the composer — only if you want to.** The canvas selector in the chat input row (same dropdown shape as 「选择工作区」) shows 选择画布 while unbound. Unbound menu = **仅会话 / 创建项目 / existing projects**: a project expands to its sub-canvases and clicking one binds the session (new sub-canvases can be created inline); touching nothing keeps the session unbound — coding and other non-canvas tasks stay untouched, and an unbind is never reversed by anything. Once bound, the project is locked: the menu shows only that project's sub-canvases (current highlighted, occupied marked 占用中) plus 新建子画布 / 打开画布 / 仅会话 (= unbind).
|
|
83
|
+
- **The chat agent operates exactly the bound canvas.** With the bundled「媒体创作」preset, the agent self-identifies via `canvas_my_canvas` ("this session = episode N of project X") and every `canvas_*` tool defaults to the bound canvas — write/connect/run/delete any node, update the bible, manage the episode. **Cross-canvas and cross-project operations are a code-level ban**: explicitly passing another project's or canvas's ids (including other canvases of the same project) is rejected with a locked error pointing at the unbind action. Unbound sessions are unrestricted.
|
|
84
|
+
- **Project memory keeps 100 episodes continuous.** Each episode's canvas has its own memory (plot decisions, character-state changes, foreshadowing ledger) plus a project-level scheduling index (titles / summaries / keywords / status). The agent is bound by skill discipline to read the index before writing an episode and write its memory back at every milestone, so episode 47 never re-invents what episode 12 decided. Browse any episode's memory in the canvas's **记忆** tab.
|
|
85
|
+
- **Everything lives in the workspace.** `project.json`, `canvases/`, `memory/`, `bindings.json` sit inside `<workspace>/.infinite-canvas/` — copy the folder, move the series. (Media files stay in the plugin's data root.)
|
|
86
|
+
|
|
78
87
|
## 3D Director Stage (previz)
|
|
79
88
|
|
|
80
89
|
A blocking & previz workspace that lives inside the same project: place real glTF characters and set dressing, frame them with real cameras, and send the result back to the canvas as an image or video node.
|
package/README.zh-CN.md
CHANGED
|
@@ -75,6 +75,15 @@
|
|
|
75
75
|
|
|
76
76
|
> 同一时刻只有一个画布实例(共享节点图与生成状态):在右栏打开时若全屏面板也开着,画布会**被移动到右栏**而不是复制一份——另一侧显示「把画布切换到这里」按钮。
|
|
77
77
|
|
|
78
|
+
## 会话↔画布绑定 + 项目记忆(多集连续创作)
|
|
79
|
+
|
|
80
|
+
为长篇系列设计:**一个工作区 = 一个项目,一个会话 = 一集。**
|
|
81
|
+
|
|
82
|
+
- **输入行绑定——想绑才绑**:对话输入行的画布选择器(「选择工作区」同款下拉格式)默认显示「选择画布」。未绑定态菜单 = **仅会话 / 创建项目 / 已有项目列表**:点项目展开其子画布,点画布即绑定(也可就地新建子画布);不点 = 仅会话,编码等任务零打扰,且解绑后不会被任何机制绑回。已绑定态项目锁定,只列本项目的子画布(当前项高亮、占用标「占用中」)+ 新建子画布 + 打开画布 + 仅会话(解绑)。
|
|
83
|
+
- **会话 Agent 只操作绑定的那张画布**:配合内置「媒体创作」预设,Agent 先用 `canvas_my_canvas` 自证身份(「本会话 = 某项目第 N 集」),之后所有 `canvas_*` 工具缺省即作用于本集画布——写节点/连线/触发/删除/改设定集全量可操作。**跨画布、跨项目是代码级禁令**:显式传其他项目/画布的 id(含同项目其他画布)会被工具直接拒绝(locked),文案指引先解绑;未绑定的会话不受任何限制。
|
|
84
|
+
- **项目记忆让 100 集连续不乱套**:每集画布有自己的记忆(剧情决策/人物状态变化/伏笔账本),项目级调度索引汇总全部集的标题/摘要/关键词/状态。技能纪律要求 Agent 开写前先读索引与本集记忆、每到一个里程碑必须回写——第 47 集不会重复发明第 12 集已经定下的东西。画布「记忆」页签可随时翻看任何一集的记忆全文。
|
|
85
|
+
- **数据跟着工作区走**:`project.json`、`canvases/`、`memory/`、`bindings.json` 全部在 `<工作区目录>/.infinite-canvas/` 里——拷走目录 = 搬走整部剧。(媒体文件仍在插件数据根目录。)
|
|
86
|
+
|
|
78
87
|
## 3D 导演台(预演)
|
|
79
88
|
|
|
80
89
|
同一项目里内置的摆位与预演工作台:把真实 glTF 角色与场景陈设摆进场景,用真实机位取景,再把结果作为图片或视频节点导回画布。
|
|
@@ -141,6 +141,20 @@ description: 用无限画布(Infinite Canvas)做短剧/视频创作时使用
|
|
|
141
141
|
原先另有一份「专家人设」复述同一批规则,已移除——两条并存会给出互相矛盾的指令。
|
|
142
142
|
风格与题材侧(导演 / 题材 / 规格 / 影调)由 `canvas-director` 技能包的切片提供,
|
|
143
143
|
用 `canvas_skill_pack` 取,见本节开头的技能清单。
|
|
144
|
+
18. **记忆先行 + 会话=画布工作台(多集连续性纪律)。** 工作区项目里**一个会话绑定一张画布 = 一集**:
|
|
145
|
+
- **开工先自证身份**:调 `canvas_my_canvas` 确认「我是哪一集」;此后所有 `canvas_*` 工具
|
|
146
|
+
**不传 `projectId`/`canvasId` 即默认作用于本集画布**;
|
|
147
|
+
- **代码级禁令:绑定会话禁止跨画布/跨项目操作。** 显式传入其他画布(含同项目其他画布与默认画布)
|
|
148
|
+
或其他项目的 `projectId`/`canvasId`,工具会**直接拒绝**(locked)——这是强限制不是建议:
|
|
149
|
+
一个会话只允许操作自己绑定的那一张画布。确需操作其他画布时,明确告知用户
|
|
150
|
+
「请先在对话输入行的画布选择器里解绑」,绝不绕路或诱导用户绕过;
|
|
151
|
+
- **记忆先行**:开写本集剧本/分镜前**必须** `canvas_read_memory`——先读**调度索引**(全部集的标题/摘要/关键词,
|
|
152
|
+
一眼看到人物状态、伏笔与时间线走到哪了),再读**本集正文**;世界观/风格/角色场景设定在**设定集**(`canvas_get_bible`),
|
|
153
|
+
记忆只记「动态」:剧情决策、人物状态变化、伏笔登记与回收、生成要点——两者分工不重复;
|
|
154
|
+
- **收尾必回写**:一集创作告一段落(每场定稿/全集完成)**必须** `canvas_write_memory`
|
|
155
|
+
(title/summary≤120 字/keywords/body/status)——记忆是跨集连续性的唯一载体,
|
|
156
|
+
**不回写 = 下一集重复创作、重复设定、丢伏笔**;用户在画布「记忆」页签能看到全部记忆,
|
|
157
|
+
写得是否清楚直接暴露在那里。
|
|
144
158
|
|
|
145
159
|
## 二、标准工作流(对话填提示词+连线+触发,生成由节点完成)
|
|
146
160
|
|