@exccoder/dsh-media-workbench 0.0.0-stage → 0.1.2

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.
@@ -0,0 +1,63 @@
1
+ // 浏览器端的节点契约(与 host src/graph.js 保持一致)
2
+ export const NODE_TYPES = {
3
+ prompt: {
4
+ label: '提示词',
5
+ icon: 'spark',
6
+ color: '#d97757',
7
+ hint: '一句话,流程的起点',
8
+ inputs: [],
9
+ outputs: [{ id: 'text', type: 'text' }],
10
+ defaults: { text: '' },
11
+ },
12
+ write: {
13
+ label: '灵感写作',
14
+ icon: 'pen',
15
+ color: '#b4833e',
16
+ hint: '扩写、改写、旁白',
17
+ inputs: [{ id: 'context', type: 'text', multi: true }],
18
+ outputs: [{ id: 'text', type: 'text' }],
19
+ defaults: { instruction: '根据上面的提示,写一段有画面感的文字', tone: '自然叙述', length: 'short' },
20
+ },
21
+ image: {
22
+ label: '图像生成',
23
+ icon: 'image',
24
+ color: '#8a6fd1',
25
+ hint: '文字或参考图 → 画面',
26
+ inputs: [
27
+ { id: 'prompt', type: 'text', multi: true },
28
+ { id: 'reference', type: 'image' },
29
+ ],
30
+ outputs: [{ id: 'image', type: 'image' }],
31
+ defaults: { style: '电影感', ratio: '16:9', prompt: '' },
32
+ },
33
+ video: {
34
+ label: '视频生成',
35
+ icon: 'film',
36
+ color: '#3f8f92',
37
+ hint: '首帧或文字 → 动态',
38
+ inputs: [
39
+ { id: 'prompt', type: 'text', multi: true },
40
+ { id: 'first', type: 'image' },
41
+ ],
42
+ outputs: [{ id: 'video', type: 'video' }],
43
+ defaults: { duration: 5, ratio: '16:9', mode: 'auto', prompt: '' },
44
+ },
45
+ preview: {
46
+ label: '作品预览',
47
+ icon: 'eye',
48
+ color: '#6b7280',
49
+ hint: '把结果摆出来',
50
+ inputs: [{ id: 'media', type: 'media', multi: true }],
51
+ outputs: [],
52
+ defaults: {},
53
+ },
54
+ note: {
55
+ label: '便签',
56
+ icon: 'note',
57
+ color: '#a8935b',
58
+ hint: '记录意图,不参与运行',
59
+ inputs: [],
60
+ outputs: [],
61
+ defaults: { text: '' },
62
+ },
63
+ }