@ninkch/dsh-infinite-canvas 0.19.17 → 0.19.19
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/assets/canvas-director/genres/fantasy.md +2 -1
- package/assets/canvas-director/genres/shanhaijing-myth.md +105 -0
- package/assets/canvas-director/genres/smalltown-uncanny.md +1 -0
- package/assets/canvas-director/genres/wuxia.md +1 -0
- package/assets/canvas-director/genres/xianxia-cultivation.md +1 -0
- package/assets/canvas-director/looks/dark-myth-cg.md +1 -0
- package/assets/canvas-director/looks/east-epic-3d.md +1 -0
- package/assets/canvas-director/looks/guoman-3d-xianxia.md +1 -0
- package/assets/canvas-director/looks/saturated-epic.md +1 -0
- package/assets/canvas-director/manifest.json +17 -0
- package/client.js +730 -89
- package/docs/UI-RULES.md +2 -0
- package/index.js +12 -1
- package/package.json +1 -1
package/docs/UI-RULES.md
CHANGED
|
@@ -68,6 +68,8 @@
|
|
|
68
68
|
41. **设置页技能增强 = 单一「专家」下拉**:专家 = 一套技能组(`persona` + `skills`);选项**只列本插件专家**(当前仅「通用专家 / General expert」,默认值 `general`),**禁止列举 Harness 全部技能**(artcraft-* / noteboard-* / office-* / diagnose-* 等一律不得出现);旧设置 `skillScript` / `skillStoryboard` 迁移到 `general`,缺字段/非法值回退 `general` 且不报错。
|
|
69
69
|
42. **画布性能**:视频节点空闲时只渲染静态 poster(不挂 `<video>`,播放时才挂、暂停/播完卸载),有 poster 即视为 ready,骨架只允许在首次取 poster 时出现一次;拖动/平移的每一帧**不得** `notify()` 全树、不得遍历全部节点,松手只通知一次;`idbGet` 在 SQLite 模式必须先走服务端,**不得**每次前置查 IndexedDB。
|
|
70
70
|
|
|
71
|
+
43. **资产页工具栏**:所有操作按钮(同步全部资产到磁盘 / 导入图片/视频 / 全选本页 / 添加到画布 / 批量删除 / 清除选择)与分页**集中在项目下拉下一行**,不各自占行;按钮一律**透明底 + 1px 线框 + 文字**(禁止灰色/品牌色块底),删除按钮用红色线框 + 红字;分页为 `‹ [页码输入] / N ›`,回车/失焦跳转、非法文本不改页、越界夹取到 1..N,右侧显示总数;窄窗口自动换行,分页始终靠右。
|
|
72
|
+
|
|
71
73
|
---
|
|
72
74
|
|
|
73
75
|
**自检方式**:改完 UI 后逐条对照本文件;涉及"禁止/不得"的条目,必须在测试里有**反向断言**(例如断言某样式不存在),而不是靠肉眼确认。
|
package/index.js
CHANGED
|
@@ -1758,6 +1758,12 @@ function canvasWriteNode(args) {
|
|
|
1758
1758
|
? s.dialogue.slice(0, 6).map((d) => ({ role: String(d && d.role || '').trim().slice(0, 24), line: String(d && d.line || '').trim().slice(0, 200) })).filter((d) => d.role && d.line)
|
|
1759
1759
|
: [],
|
|
1760
1760
|
sfx: String((s && s.sfx) || '').trim().slice(0, 120),
|
|
1761
|
+
// 分镜新四字段(动作节拍/机位三件套/特效/负向词)必须透传:对话侧改 shots 时
|
|
1762
|
+
// 不带这些字段才允许被默认清空;带了就保留——否则特效演绎镜落库即退化为纯 visual/motion。
|
|
1763
|
+
timeBeats: Array.isArray(s && s.timeBeats) ? s.timeBeats.map(String).map((x) => x.trim()).filter(Boolean).slice(0, 4) : [],
|
|
1764
|
+
camera: String((s && s.camera) || '').trim().slice(0, 200),
|
|
1765
|
+
vfx: String((s && s.vfx) || '').trim().slice(0, 160),
|
|
1766
|
+
negative: String((s && s.negative) || '').trim().slice(0, 200),
|
|
1761
1767
|
}));
|
|
1762
1768
|
node.data.aiStatus = 'idle';
|
|
1763
1769
|
node.data.aiError = null;
|
|
@@ -2340,6 +2346,11 @@ async function canvasNodeStatus(args) {
|
|
|
2340
2346
|
cam: String((s && s.cam) || '').slice(0, 120),
|
|
2341
2347
|
start: String((s && s.start) || '').slice(0, 160),
|
|
2342
2348
|
seg: String((s && s.seg) || '').slice(0, 24),
|
|
2349
|
+
// 新四字段(与分镜契约同构):动作节拍/机位三件套/特效/负向词——对话侧整表替换时必须带回
|
|
2350
|
+
timeBeats: Array.isArray(s && s.timeBeats) ? s.timeBeats.map(String).slice(0, 4) : [],
|
|
2351
|
+
camera: String((s && s.camera) || '').slice(0, 200),
|
|
2352
|
+
vfx: String((s && s.vfx) || '').slice(0, 160),
|
|
2353
|
+
negative: String((s && s.negative) || '').slice(0, 200),
|
|
2343
2354
|
}))
|
|
2344
2355
|
: undefined;
|
|
2345
2356
|
const d = n.data || {};
|
|
@@ -3534,7 +3545,7 @@ export function apply(ctx) {
|
|
|
3534
3545
|
additionalProperties: false,
|
|
3535
3546
|
},
|
|
3536
3547
|
output: {
|
|
3537
|
-
schema: { type: 'object', properties: { ok: { type: 'boolean' }, text: { type: 'string' }, type: { type: 'string' }, status: { type: 'string' }, x: { type: 'number' }, y: { type: 'number' }, w: { type: 'number' }, h: { type: 'number' }, assetId: { type: 'string' }, prompt: { type: 'string' }, ratio: { type: 'string' }, size: { type: 'string' }, duration: { type: 'number' }, resolution: { type: 'string' }, frameMode: { type: 'string' }, imageModel: { type: 'string' }, videoModel: { type: 'string' }, genWarn: { type: 'string' }, chainFrom: { type: 'string' }, seam: { type: 'object', properties: { ok: { type: 'boolean' }, sim: { type: 'number' }, thr: { type: 'number' }, note: { type: 'string' } } }, tailPickAssetId: { type: 'string' }, historyAssetIds: { type: 'array', items: { type: 'string' } }, warnings: { type: 'array', items: { type: 'string' } }, shots: { type: 'array', items: { type: 'object', properties: { index: { type: 'number' }, title: { type: 'string' }, duration: { type: 'number' }, visual: { type: 'string' }, motion: { type: 'string' }, tail: { type: 'string' }, cam: { type: 'string' }, start: { type: 'string' }, seg: { type: 'string' }, characters: { type: 'array', items: { type: 'string' } }, scene: { type: 'string' }, props: { type: 'array', items: { type: 'string' } } } } } }, required: ['ok', 'text'] },
|
|
3548
|
+
schema: { type: 'object', properties: { ok: { type: 'boolean' }, text: { type: 'string' }, type: { type: 'string' }, status: { type: 'string' }, x: { type: 'number' }, y: { type: 'number' }, w: { type: 'number' }, h: { type: 'number' }, assetId: { type: 'string' }, prompt: { type: 'string' }, ratio: { type: 'string' }, size: { type: 'string' }, duration: { type: 'number' }, resolution: { type: 'string' }, frameMode: { type: 'string' }, imageModel: { type: 'string' }, videoModel: { type: 'string' }, genWarn: { type: 'string' }, chainFrom: { type: 'string' }, seam: { type: 'object', properties: { ok: { type: 'boolean' }, sim: { type: 'number' }, thr: { type: 'number' }, note: { type: 'string' } } }, tailPickAssetId: { type: 'string' }, historyAssetIds: { type: 'array', items: { type: 'string' } }, warnings: { type: 'array', items: { type: 'string' } }, shots: { type: 'array', items: { type: 'object', properties: { index: { type: 'number' }, title: { type: 'string' }, duration: { type: 'number' }, visual: { type: 'string' }, motion: { type: 'string' }, tail: { type: 'string' }, cam: { type: 'string' }, start: { type: 'string' }, seg: { type: 'string' }, characters: { type: 'array', items: { type: 'string' } }, scene: { type: 'string' }, props: { type: 'array', items: { type: 'string' } }, timeBeats: { type: 'array', items: { type: 'string' } }, camera: { type: 'string' }, vfx: { type: 'string' }, negative: { type: 'string' } } } } }, required: ['ok', 'text'] },
|
|
3538
3549
|
render: (args, value) => [{ type: 'text', text: String(value.text || '') }],
|
|
3539
3550
|
},
|
|
3540
3551
|
timeoutMs: 30000,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ninkch/dsh-infinite-canvas",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.19",
|
|
4
4
|
"description": "无限画布(Infinite Canvas)for DeepSeek Harness:节点式创作工作室(剧本/分镜/生成/成片),内置「媒体创作」预设模式(导演第一视角 + 引导工作坊)。Version-agnostic: reads the live catalog from the installed package at load time.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dsh",
|