@actalk/inkos-core 1.5.0 → 1.6.1

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.
Files changed (187) hide show
  1. package/dist/agent/agent-session.d.ts +4 -0
  2. package/dist/agent/agent-session.d.ts.map +1 -1
  3. package/dist/agent/agent-session.js +78 -5
  4. package/dist/agent/agent-session.js.map +1 -1
  5. package/dist/agent/agent-system-prompt.d.ts +2 -0
  6. package/dist/agent/agent-system-prompt.d.ts.map +1 -1
  7. package/dist/agent/agent-system-prompt.js +181 -16
  8. package/dist/agent/agent-system-prompt.js.map +1 -1
  9. package/dist/agent/agent-tools.d.ts +97 -1
  10. package/dist/agent/agent-tools.d.ts.map +1 -1
  11. package/dist/agent/agent-tools.js +434 -3
  12. package/dist/agent/agent-tools.js.map +1 -1
  13. package/dist/agent/film-authoring-tools.d.ts +89 -0
  14. package/dist/agent/film-authoring-tools.d.ts.map +1 -0
  15. package/dist/agent/film-authoring-tools.js +336 -0
  16. package/dist/agent/film-authoring-tools.js.map +1 -0
  17. package/dist/agent/index.d.ts +2 -1
  18. package/dist/agent/index.d.ts.map +1 -1
  19. package/dist/agent/index.js +2 -1
  20. package/dist/agent/index.js.map +1 -1
  21. package/dist/agent/llm-stub.d.ts +19 -0
  22. package/dist/agent/llm-stub.d.ts.map +1 -0
  23. package/dist/agent/llm-stub.js +134 -0
  24. package/dist/agent/llm-stub.js.map +1 -0
  25. package/dist/agents/composer.d.ts.map +1 -1
  26. package/dist/agents/composer.js +24 -12
  27. package/dist/agents/composer.js.map +1 -1
  28. package/dist/agents/researcher.d.ts +38 -0
  29. package/dist/agents/researcher.d.ts.map +1 -0
  30. package/dist/agents/researcher.js +164 -0
  31. package/dist/agents/researcher.js.map +1 -0
  32. package/dist/agents/script-storyboard.d.ts +51 -0
  33. package/dist/agents/script-storyboard.d.ts.map +1 -0
  34. package/dist/agents/script-storyboard.js +368 -0
  35. package/dist/agents/script-storyboard.js.map +1 -0
  36. package/dist/index.d.ts +23 -2
  37. package/dist/index.d.ts.map +1 -1
  38. package/dist/index.js +24 -2
  39. package/dist/index.js.map +1 -1
  40. package/dist/interaction/action-envelope.d.ts +669 -1
  41. package/dist/interaction/action-envelope.d.ts.map +1 -1
  42. package/dist/interaction/action-envelope.js +87 -0
  43. package/dist/interaction/action-envelope.js.map +1 -1
  44. package/dist/interaction/edit-controller.d.ts.map +1 -1
  45. package/dist/interaction/edit-controller.js +91 -1
  46. package/dist/interaction/edit-controller.js.map +1 -1
  47. package/dist/interaction/intents.d.ts +2 -2
  48. package/dist/interaction/project-control.d.ts +1 -1
  49. package/dist/interaction/session-transcript-schema.d.ts +22 -22
  50. package/dist/interaction/session.d.ts +14 -14
  51. package/dist/interaction/session.d.ts.map +1 -1
  52. package/dist/interaction/session.js +1 -1
  53. package/dist/interaction/session.js.map +1 -1
  54. package/dist/interactive-film/authoring-generate.d.ts +4 -0
  55. package/dist/interactive-film/authoring-generate.d.ts.map +1 -0
  56. package/dist/interactive-film/authoring-generate.js +16 -0
  57. package/dist/interactive-film/authoring-generate.js.map +1 -0
  58. package/dist/interactive-film/authoring-store.d.ts +35 -0
  59. package/dist/interactive-film/authoring-store.d.ts.map +1 -0
  60. package/dist/interactive-film/authoring-store.js +114 -0
  61. package/dist/interactive-film/authoring-store.js.map +1 -0
  62. package/dist/interactive-film/authoring-tools.d.ts +9 -0
  63. package/dist/interactive-film/authoring-tools.d.ts.map +1 -0
  64. package/dist/interactive-film/authoring-tools.js +19 -0
  65. package/dist/interactive-film/authoring-tools.js.map +1 -0
  66. package/dist/interactive-film/delta.d.ts +591 -0
  67. package/dist/interactive-film/delta.d.ts.map +1 -0
  68. package/dist/interactive-film/delta.js +54 -0
  69. package/dist/interactive-film/delta.js.map +1 -0
  70. package/dist/interactive-film/emotion.d.ts +20 -0
  71. package/dist/interactive-film/emotion.d.ts.map +1 -0
  72. package/dist/interactive-film/emotion.js +57 -0
  73. package/dist/interactive-film/emotion.js.map +1 -0
  74. package/dist/interactive-film/evaluator.d.ts +7 -0
  75. package/dist/interactive-film/evaluator.d.ts.map +1 -0
  76. package/dist/interactive-film/evaluator.js +40 -0
  77. package/dist/interactive-film/evaluator.js.map +1 -0
  78. package/dist/interactive-film/export-html.d.ts +6 -0
  79. package/dist/interactive-film/export-html.d.ts.map +1 -0
  80. package/dist/interactive-film/export-html.js +84 -0
  81. package/dist/interactive-film/export-html.js.map +1 -0
  82. package/dist/interactive-film/export-ink.d.ts +3 -0
  83. package/dist/interactive-film/export-ink.d.ts.map +1 -0
  84. package/dist/interactive-film/export-ink.js +51 -0
  85. package/dist/interactive-film/export-ink.js.map +1 -0
  86. package/dist/interactive-film/film-context.d.ts +4 -0
  87. package/dist/interactive-film/film-context.d.ts.map +1 -0
  88. package/dist/interactive-film/film-context.js +30 -0
  89. package/dist/interactive-film/film-context.js.map +1 -0
  90. package/dist/interactive-film/generate.d.ts +13 -0
  91. package/dist/interactive-film/generate.d.ts.map +1 -0
  92. package/dist/interactive-film/generate.js +32 -0
  93. package/dist/interactive-film/generate.js.map +1 -0
  94. package/dist/interactive-film/graph-schema.d.ts +819 -0
  95. package/dist/interactive-film/graph-schema.d.ts.map +1 -0
  96. package/dist/interactive-film/graph-schema.js +84 -0
  97. package/dist/interactive-film/graph-schema.js.map +1 -0
  98. package/dist/interactive-film/graph-store.d.ts +5 -0
  99. package/dist/interactive-film/graph-store.d.ts.map +1 -0
  100. package/dist/interactive-film/graph-store.js +24 -0
  101. package/dist/interactive-film/graph-store.js.map +1 -0
  102. package/dist/interactive-film/memory-link.d.ts +9 -0
  103. package/dist/interactive-film/memory-link.d.ts.map +1 -0
  104. package/dist/interactive-film/memory-link.js +15 -0
  105. package/dist/interactive-film/memory-link.js.map +1 -0
  106. package/dist/interactive-film/node-image.d.ts +29 -0
  107. package/dist/interactive-film/node-image.d.ts.map +1 -0
  108. package/dist/interactive-film/node-image.js +52 -0
  109. package/dist/interactive-film/node-image.js.map +1 -0
  110. package/dist/interactive-film/paths.d.ts +14 -0
  111. package/dist/interactive-film/paths.d.ts.map +1 -0
  112. package/dist/interactive-film/paths.js +60 -0
  113. package/dist/interactive-film/paths.js.map +1 -0
  114. package/dist/interactive-film/validation.d.ts +14 -0
  115. package/dist/interactive-film/validation.d.ts.map +1 -0
  116. package/dist/interactive-film/validation.js +292 -0
  117. package/dist/interactive-film/validation.js.map +1 -0
  118. package/dist/llm/provider.d.ts.map +1 -1
  119. package/dist/llm/provider.js +53 -16
  120. package/dist/llm/provider.js.map +1 -1
  121. package/dist/models/book.d.ts +13 -0
  122. package/dist/models/book.d.ts.map +1 -1
  123. package/dist/models/book.js +3 -0
  124. package/dist/models/book.js.map +1 -1
  125. package/dist/models/input-governance.d.ts +14 -5
  126. package/dist/models/input-governance.d.ts.map +1 -1
  127. package/dist/models/input-governance.js +3 -0
  128. package/dist/models/input-governance.js.map +1 -1
  129. package/dist/models/project.d.ts +63 -10
  130. package/dist/models/project.d.ts.map +1 -1
  131. package/dist/models/project.js +11 -0
  132. package/dist/models/project.js.map +1 -1
  133. package/dist/pipeline/runner.js +1 -1
  134. package/dist/pipeline/runner.js.map +1 -1
  135. package/dist/pipeline/script-storyboard-runner.d.ts +127 -0
  136. package/dist/pipeline/script-storyboard-runner.d.ts.map +1 -0
  137. package/dist/pipeline/script-storyboard-runner.js +446 -0
  138. package/dist/pipeline/script-storyboard-runner.js.map +1 -0
  139. package/dist/play/play-agents.d.ts.map +1 -1
  140. package/dist/play/play-agents.js +5 -2
  141. package/dist/play/play-agents.js.map +1 -1
  142. package/dist/play/play-store.d.ts +2 -2
  143. package/dist/skills/builtin-prompts.d.ts +10 -0
  144. package/dist/skills/builtin-prompts.d.ts.map +1 -0
  145. package/dist/skills/builtin-prompts.js +152 -0
  146. package/dist/skills/builtin-prompts.js.map +1 -0
  147. package/dist/skills/builtin.d.ts +3 -0
  148. package/dist/skills/builtin.d.ts.map +1 -0
  149. package/dist/skills/builtin.js +252 -0
  150. package/dist/skills/builtin.js.map +1 -0
  151. package/dist/skills/context-planner.d.ts +17 -0
  152. package/dist/skills/context-planner.d.ts.map +1 -0
  153. package/dist/skills/context-planner.js +48 -0
  154. package/dist/skills/context-planner.js.map +1 -0
  155. package/dist/skills/external-loader.d.ts +20 -0
  156. package/dist/skills/external-loader.d.ts.map +1 -0
  157. package/dist/skills/external-loader.js +126 -0
  158. package/dist/skills/external-loader.js.map +1 -0
  159. package/dist/skills/index.d.ts +8 -0
  160. package/dist/skills/index.d.ts.map +1 -0
  161. package/dist/skills/index.js +8 -0
  162. package/dist/skills/index.js.map +1 -0
  163. package/dist/skills/prompt-pack.d.ts +33 -0
  164. package/dist/skills/prompt-pack.d.ts.map +1 -0
  165. package/dist/skills/prompt-pack.js +82 -0
  166. package/dist/skills/prompt-pack.js.map +1 -0
  167. package/dist/skills/registry.d.ts +6 -0
  168. package/dist/skills/registry.d.ts.map +1 -0
  169. package/dist/skills/registry.js +101 -0
  170. package/dist/skills/registry.js.map +1 -0
  171. package/dist/skills/types.d.ts +146 -0
  172. package/dist/skills/types.d.ts.map +1 -0
  173. package/dist/skills/types.js +32 -0
  174. package/dist/skills/types.js.map +1 -0
  175. package/dist/state/manager.d.ts +8 -2
  176. package/dist/state/manager.d.ts.map +1 -1
  177. package/dist/state/manager.js +58 -5
  178. package/dist/state/manager.js.map +1 -1
  179. package/dist/utils/context-assembly.d.ts +3 -0
  180. package/dist/utils/context-assembly.d.ts.map +1 -1
  181. package/dist/utils/context-assembly.js +3 -0
  182. package/dist/utils/context-assembly.js.map +1 -1
  183. package/dist/utils/web-search.d.ts +6 -1
  184. package/dist/utils/web-search.d.ts.map +1 -1
  185. package/dist/utils/web-search.js +8 -4
  186. package/dist/utils/web-search.js.map +1 -1
  187. package/package.json +14 -3
@@ -2,7 +2,8 @@ import { z } from "zod";
2
2
  import { type PlayMode } from "./session.js";
3
3
  export declare const ActionSourceSchema: z.ZodEnum<["free-text", "button", "slash", "quick-action"]>;
4
4
  export type ActionSource = z.infer<typeof ActionSourceSchema>;
5
- export declare const RequestedIntentSchema: z.ZodEnum<["create_book", "write_next", "short_run", "play_start", "play_step", "generate_cover", "edit_artifact", "fanfic_init", "continuation_import", "spinoff_create", "style_imitation"]>;
5
+ export declare const SkillIdSchema: z.ZodString;
6
+ export declare const RequestedIntentSchema: z.ZodEnum<["create_book", "write_next", "short_run", "play_start", "play_step", "generate_cover", "edit_artifact", "fanfic_init", "continuation_import", "spinoff_create", "style_imitation", "script_create", "storyboard_create", "interactive_film_create", "draft_structure", "connect_choice", "remove_node"]>;
6
7
  export type RequestedIntent = z.infer<typeof RequestedIntentSchema>;
7
8
  export declare const CreateBookActionPayloadSchema: z.ZodObject<{
8
9
  title: z.ZodOptional<z.ZodString>;
@@ -92,6 +93,118 @@ export declare const GenerateCoverActionPayloadSchema: z.ZodObject<{
92
93
  sellingPoints?: string | undefined;
93
94
  coverPrompt?: string | undefined;
94
95
  }>;
96
+ export declare const ScriptTargetFormatSchema: z.ZodEnum<["vertical_short_drama", "screenplay", "audio_drama", "interactive_script", "general_script"]>;
97
+ export declare const ScriptCreateActionPayloadSchema: z.ZodObject<{
98
+ title: z.ZodOptional<z.ZodString>;
99
+ sourceKind: z.ZodOptional<z.ZodString>;
100
+ targetFormat: z.ZodOptional<z.ZodEnum<["vertical_short_drama", "screenplay", "audio_drama", "interactive_script", "general_script"]>>;
101
+ sourceText: z.ZodOptional<z.ZodString>;
102
+ sourcePath: z.ZodOptional<z.ZodString>;
103
+ requirements: z.ZodOptional<z.ZodString>;
104
+ episodeCount: z.ZodOptional<z.ZodNumber>;
105
+ episodeDuration: z.ZodOptional<z.ZodString>;
106
+ projectId: z.ZodOptional<z.ZodString>;
107
+ outDir: z.ZodOptional<z.ZodString>;
108
+ }, "strict", z.ZodTypeAny, {
109
+ title?: string | undefined;
110
+ projectId?: string | undefined;
111
+ sourceKind?: string | undefined;
112
+ targetFormat?: "vertical_short_drama" | "screenplay" | "audio_drama" | "interactive_script" | "general_script" | undefined;
113
+ sourceText?: string | undefined;
114
+ sourcePath?: string | undefined;
115
+ requirements?: string | undefined;
116
+ episodeCount?: number | undefined;
117
+ episodeDuration?: string | undefined;
118
+ outDir?: string | undefined;
119
+ }, {
120
+ title?: string | undefined;
121
+ projectId?: string | undefined;
122
+ sourceKind?: string | undefined;
123
+ targetFormat?: "vertical_short_drama" | "screenplay" | "audio_drama" | "interactive_script" | "general_script" | undefined;
124
+ sourceText?: string | undefined;
125
+ sourcePath?: string | undefined;
126
+ requirements?: string | undefined;
127
+ episodeCount?: number | undefined;
128
+ episodeDuration?: string | undefined;
129
+ outDir?: string | undefined;
130
+ }>;
131
+ export declare const StoryboardCreateActionPayloadSchema: z.ZodObject<{
132
+ title: z.ZodOptional<z.ZodString>;
133
+ sourceKind: z.ZodOptional<z.ZodString>;
134
+ sourceText: z.ZodOptional<z.ZodString>;
135
+ sourcePath: z.ZodOptional<z.ZodString>;
136
+ requirements: z.ZodOptional<z.ZodString>;
137
+ visualStyle: z.ZodOptional<z.ZodString>;
138
+ aspectRatio: z.ZodOptional<z.ZodString>;
139
+ granularity: z.ZodOptional<z.ZodString>;
140
+ maxShots: z.ZodOptional<z.ZodNumber>;
141
+ projectId: z.ZodOptional<z.ZodString>;
142
+ outDir: z.ZodOptional<z.ZodString>;
143
+ }, "strict", z.ZodTypeAny, {
144
+ title?: string | undefined;
145
+ projectId?: string | undefined;
146
+ sourceKind?: string | undefined;
147
+ sourceText?: string | undefined;
148
+ sourcePath?: string | undefined;
149
+ requirements?: string | undefined;
150
+ outDir?: string | undefined;
151
+ visualStyle?: string | undefined;
152
+ aspectRatio?: string | undefined;
153
+ granularity?: string | undefined;
154
+ maxShots?: number | undefined;
155
+ }, {
156
+ title?: string | undefined;
157
+ projectId?: string | undefined;
158
+ sourceKind?: string | undefined;
159
+ sourceText?: string | undefined;
160
+ sourcePath?: string | undefined;
161
+ requirements?: string | undefined;
162
+ outDir?: string | undefined;
163
+ visualStyle?: string | undefined;
164
+ aspectRatio?: string | undefined;
165
+ granularity?: string | undefined;
166
+ maxShots?: number | undefined;
167
+ }>;
168
+ export declare const InteractiveFilmCreateActionPayloadSchema: z.ZodObject<{
169
+ title: z.ZodOptional<z.ZodString>;
170
+ sourceKind: z.ZodOptional<z.ZodString>;
171
+ sourceText: z.ZodOptional<z.ZodString>;
172
+ sourcePath: z.ZodOptional<z.ZodString>;
173
+ requirements: z.ZodOptional<z.ZodString>;
174
+ targetAudience: z.ZodOptional<z.ZodString>;
175
+ episodeCount: z.ZodOptional<z.ZodNumber>;
176
+ episodeDuration: z.ZodOptional<z.ZodString>;
177
+ budget: z.ZodOptional<z.ZodString>;
178
+ referenceMode: z.ZodOptional<z.ZodString>;
179
+ projectId: z.ZodOptional<z.ZodString>;
180
+ outDir: z.ZodOptional<z.ZodString>;
181
+ }, "strict", z.ZodTypeAny, {
182
+ title?: string | undefined;
183
+ projectId?: string | undefined;
184
+ sourceKind?: string | undefined;
185
+ sourceText?: string | undefined;
186
+ sourcePath?: string | undefined;
187
+ requirements?: string | undefined;
188
+ episodeCount?: number | undefined;
189
+ episodeDuration?: string | undefined;
190
+ outDir?: string | undefined;
191
+ targetAudience?: string | undefined;
192
+ budget?: string | undefined;
193
+ referenceMode?: string | undefined;
194
+ }, {
195
+ title?: string | undefined;
196
+ projectId?: string | undefined;
197
+ sourceKind?: string | undefined;
198
+ sourceText?: string | undefined;
199
+ sourcePath?: string | undefined;
200
+ requirements?: string | undefined;
201
+ episodeCount?: number | undefined;
202
+ episodeDuration?: string | undefined;
203
+ outDir?: string | undefined;
204
+ targetAudience?: string | undefined;
205
+ budget?: string | undefined;
206
+ referenceMode?: string | undefined;
207
+ }>;
95
208
  export declare const ActionPayloadSchema: z.ZodObject<{
96
209
  createBook: z.ZodOptional<z.ZodObject<{
97
210
  title: z.ZodOptional<z.ZodString>;
@@ -181,6 +294,388 @@ export declare const ActionPayloadSchema: z.ZodObject<{
181
294
  sellingPoints?: string | undefined;
182
295
  coverPrompt?: string | undefined;
183
296
  }>>;
297
+ scriptCreate: z.ZodOptional<z.ZodObject<{
298
+ title: z.ZodOptional<z.ZodString>;
299
+ sourceKind: z.ZodOptional<z.ZodString>;
300
+ targetFormat: z.ZodOptional<z.ZodEnum<["vertical_short_drama", "screenplay", "audio_drama", "interactive_script", "general_script"]>>;
301
+ sourceText: z.ZodOptional<z.ZodString>;
302
+ sourcePath: z.ZodOptional<z.ZodString>;
303
+ requirements: z.ZodOptional<z.ZodString>;
304
+ episodeCount: z.ZodOptional<z.ZodNumber>;
305
+ episodeDuration: z.ZodOptional<z.ZodString>;
306
+ projectId: z.ZodOptional<z.ZodString>;
307
+ outDir: z.ZodOptional<z.ZodString>;
308
+ }, "strict", z.ZodTypeAny, {
309
+ title?: string | undefined;
310
+ projectId?: string | undefined;
311
+ sourceKind?: string | undefined;
312
+ targetFormat?: "vertical_short_drama" | "screenplay" | "audio_drama" | "interactive_script" | "general_script" | undefined;
313
+ sourceText?: string | undefined;
314
+ sourcePath?: string | undefined;
315
+ requirements?: string | undefined;
316
+ episodeCount?: number | undefined;
317
+ episodeDuration?: string | undefined;
318
+ outDir?: string | undefined;
319
+ }, {
320
+ title?: string | undefined;
321
+ projectId?: string | undefined;
322
+ sourceKind?: string | undefined;
323
+ targetFormat?: "vertical_short_drama" | "screenplay" | "audio_drama" | "interactive_script" | "general_script" | undefined;
324
+ sourceText?: string | undefined;
325
+ sourcePath?: string | undefined;
326
+ requirements?: string | undefined;
327
+ episodeCount?: number | undefined;
328
+ episodeDuration?: string | undefined;
329
+ outDir?: string | undefined;
330
+ }>>;
331
+ storyboardCreate: z.ZodOptional<z.ZodObject<{
332
+ title: z.ZodOptional<z.ZodString>;
333
+ sourceKind: z.ZodOptional<z.ZodString>;
334
+ sourceText: z.ZodOptional<z.ZodString>;
335
+ sourcePath: z.ZodOptional<z.ZodString>;
336
+ requirements: z.ZodOptional<z.ZodString>;
337
+ visualStyle: z.ZodOptional<z.ZodString>;
338
+ aspectRatio: z.ZodOptional<z.ZodString>;
339
+ granularity: z.ZodOptional<z.ZodString>;
340
+ maxShots: z.ZodOptional<z.ZodNumber>;
341
+ projectId: z.ZodOptional<z.ZodString>;
342
+ outDir: z.ZodOptional<z.ZodString>;
343
+ }, "strict", z.ZodTypeAny, {
344
+ title?: string | undefined;
345
+ projectId?: string | undefined;
346
+ sourceKind?: string | undefined;
347
+ sourceText?: string | undefined;
348
+ sourcePath?: string | undefined;
349
+ requirements?: string | undefined;
350
+ outDir?: string | undefined;
351
+ visualStyle?: string | undefined;
352
+ aspectRatio?: string | undefined;
353
+ granularity?: string | undefined;
354
+ maxShots?: number | undefined;
355
+ }, {
356
+ title?: string | undefined;
357
+ projectId?: string | undefined;
358
+ sourceKind?: string | undefined;
359
+ sourceText?: string | undefined;
360
+ sourcePath?: string | undefined;
361
+ requirements?: string | undefined;
362
+ outDir?: string | undefined;
363
+ visualStyle?: string | undefined;
364
+ aspectRatio?: string | undefined;
365
+ granularity?: string | undefined;
366
+ maxShots?: number | undefined;
367
+ }>>;
368
+ interactiveFilmCreate: z.ZodOptional<z.ZodObject<{
369
+ title: z.ZodOptional<z.ZodString>;
370
+ sourceKind: z.ZodOptional<z.ZodString>;
371
+ sourceText: z.ZodOptional<z.ZodString>;
372
+ sourcePath: z.ZodOptional<z.ZodString>;
373
+ requirements: z.ZodOptional<z.ZodString>;
374
+ targetAudience: z.ZodOptional<z.ZodString>;
375
+ episodeCount: z.ZodOptional<z.ZodNumber>;
376
+ episodeDuration: z.ZodOptional<z.ZodString>;
377
+ budget: z.ZodOptional<z.ZodString>;
378
+ referenceMode: z.ZodOptional<z.ZodString>;
379
+ projectId: z.ZodOptional<z.ZodString>;
380
+ outDir: z.ZodOptional<z.ZodString>;
381
+ }, "strict", z.ZodTypeAny, {
382
+ title?: string | undefined;
383
+ projectId?: string | undefined;
384
+ sourceKind?: string | undefined;
385
+ sourceText?: string | undefined;
386
+ sourcePath?: string | undefined;
387
+ requirements?: string | undefined;
388
+ episodeCount?: number | undefined;
389
+ episodeDuration?: string | undefined;
390
+ outDir?: string | undefined;
391
+ targetAudience?: string | undefined;
392
+ budget?: string | undefined;
393
+ referenceMode?: string | undefined;
394
+ }, {
395
+ title?: string | undefined;
396
+ projectId?: string | undefined;
397
+ sourceKind?: string | undefined;
398
+ sourceText?: string | undefined;
399
+ sourcePath?: string | undefined;
400
+ requirements?: string | undefined;
401
+ episodeCount?: number | undefined;
402
+ episodeDuration?: string | undefined;
403
+ outDir?: string | undefined;
404
+ targetAudience?: string | undefined;
405
+ budget?: string | undefined;
406
+ referenceMode?: string | undefined;
407
+ }>>;
408
+ draftStructure: z.ZodOptional<z.ZodObject<{
409
+ projectId: z.ZodOptional<z.ZodString>;
410
+ instruction: z.ZodDefault<z.ZodString>;
411
+ }, "strip", z.ZodTypeAny, {
412
+ instruction: string;
413
+ projectId?: string | undefined;
414
+ }, {
415
+ instruction?: string | undefined;
416
+ projectId?: string | undefined;
417
+ }>>;
418
+ connectChoice: z.ZodOptional<z.ZodObject<{
419
+ projectId: z.ZodOptional<z.ZodString>;
420
+ node: z.ZodObject<{
421
+ id: z.ZodString;
422
+ title: z.ZodDefault<z.ZodString>;
423
+ type: z.ZodEnum<["start", "normal", "branch", "merge", "ending", "explore"]>;
424
+ sceneDesc: z.ZodDefault<z.ZodString>;
425
+ dialogue: z.ZodDefault<z.ZodArray<z.ZodObject<{
426
+ speaker: z.ZodString;
427
+ text: z.ZodString;
428
+ emotion: z.ZodDefault<z.ZodString>;
429
+ }, "strip", z.ZodTypeAny, {
430
+ text: string;
431
+ speaker: string;
432
+ emotion: string;
433
+ }, {
434
+ text: string;
435
+ speaker: string;
436
+ emotion?: string | undefined;
437
+ }>, "many">>;
438
+ choices: z.ZodDefault<z.ZodArray<z.ZodObject<{
439
+ id: z.ZodString;
440
+ text: z.ZodString;
441
+ targetNodeId: z.ZodString;
442
+ condition: z.ZodOptional<z.ZodObject<{
443
+ var: z.ZodString;
444
+ op: z.ZodEnum<[">=", "<=", ">", "<", "==", "!="]>;
445
+ value: z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean]>;
446
+ }, "strip", z.ZodTypeAny, {
447
+ value: string | number | boolean;
448
+ var: string;
449
+ op: ">=" | "<=" | ">" | "<" | "==" | "!=";
450
+ }, {
451
+ value: string | number | boolean;
452
+ var: string;
453
+ op: ">=" | "<=" | ">" | "<" | "==" | "!=";
454
+ }>>;
455
+ effects: z.ZodDefault<z.ZodArray<z.ZodObject<{
456
+ var: z.ZodString;
457
+ op: z.ZodEnum<["set", "add", "sub"]>;
458
+ value: z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean]>;
459
+ }, "strip", z.ZodTypeAny, {
460
+ value: string | number | boolean;
461
+ var: string;
462
+ op: "set" | "sub" | "add";
463
+ }, {
464
+ value: string | number | boolean;
465
+ var: string;
466
+ op: "set" | "sub" | "add";
467
+ }>, "many">>;
468
+ weight: z.ZodOptional<z.ZodEnum<["light", "heavy", "critical"]>>;
469
+ }, "strip", z.ZodTypeAny, {
470
+ id: string;
471
+ text: string;
472
+ targetNodeId: string;
473
+ effects: {
474
+ value: string | number | boolean;
475
+ var: string;
476
+ op: "set" | "sub" | "add";
477
+ }[];
478
+ condition?: {
479
+ value: string | number | boolean;
480
+ var: string;
481
+ op: ">=" | "<=" | ">" | "<" | "==" | "!=";
482
+ } | undefined;
483
+ weight?: "light" | "heavy" | "critical" | undefined;
484
+ }, {
485
+ id: string;
486
+ text: string;
487
+ targetNodeId: string;
488
+ condition?: {
489
+ value: string | number | boolean;
490
+ var: string;
491
+ op: ">=" | "<=" | ">" | "<" | "==" | "!=";
492
+ } | undefined;
493
+ effects?: {
494
+ value: string | number | boolean;
495
+ var: string;
496
+ op: "set" | "sub" | "add";
497
+ }[] | undefined;
498
+ weight?: "light" | "heavy" | "critical" | undefined;
499
+ }>, "many">>;
500
+ imageSlot: z.ZodOptional<z.ZodObject<{
501
+ prompt: z.ZodDefault<z.ZodString>;
502
+ assetRef: z.ZodOptional<z.ZodString>;
503
+ }, "strip", z.ZodTypeAny, {
504
+ prompt: string;
505
+ assetRef?: string | undefined;
506
+ }, {
507
+ prompt?: string | undefined;
508
+ assetRef?: string | undefined;
509
+ }>>;
510
+ act: z.ZodDefault<z.ZodString>;
511
+ position: z.ZodOptional<z.ZodObject<{
512
+ x: z.ZodNumber;
513
+ y: z.ZodNumber;
514
+ }, "strip", z.ZodTypeAny, {
515
+ x: number;
516
+ y: number;
517
+ }, {
518
+ x: number;
519
+ y: number;
520
+ }>>;
521
+ }, "strip", z.ZodTypeAny, {
522
+ type: "start" | "branch" | "ending" | "normal" | "merge" | "explore";
523
+ id: string;
524
+ title: string;
525
+ sceneDesc: string;
526
+ dialogue: {
527
+ text: string;
528
+ speaker: string;
529
+ emotion: string;
530
+ }[];
531
+ choices: {
532
+ id: string;
533
+ text: string;
534
+ targetNodeId: string;
535
+ effects: {
536
+ value: string | number | boolean;
537
+ var: string;
538
+ op: "set" | "sub" | "add";
539
+ }[];
540
+ condition?: {
541
+ value: string | number | boolean;
542
+ var: string;
543
+ op: ">=" | "<=" | ">" | "<" | "==" | "!=";
544
+ } | undefined;
545
+ weight?: "light" | "heavy" | "critical" | undefined;
546
+ }[];
547
+ act: string;
548
+ imageSlot?: {
549
+ prompt: string;
550
+ assetRef?: string | undefined;
551
+ } | undefined;
552
+ position?: {
553
+ x: number;
554
+ y: number;
555
+ } | undefined;
556
+ }, {
557
+ type: "start" | "branch" | "ending" | "normal" | "merge" | "explore";
558
+ id: string;
559
+ title?: string | undefined;
560
+ sceneDesc?: string | undefined;
561
+ dialogue?: {
562
+ text: string;
563
+ speaker: string;
564
+ emotion?: string | undefined;
565
+ }[] | undefined;
566
+ choices?: {
567
+ id: string;
568
+ text: string;
569
+ targetNodeId: string;
570
+ condition?: {
571
+ value: string | number | boolean;
572
+ var: string;
573
+ op: ">=" | "<=" | ">" | "<" | "==" | "!=";
574
+ } | undefined;
575
+ effects?: {
576
+ value: string | number | boolean;
577
+ var: string;
578
+ op: "set" | "sub" | "add";
579
+ }[] | undefined;
580
+ weight?: "light" | "heavy" | "critical" | undefined;
581
+ }[] | undefined;
582
+ imageSlot?: {
583
+ prompt?: string | undefined;
584
+ assetRef?: string | undefined;
585
+ } | undefined;
586
+ act?: string | undefined;
587
+ position?: {
588
+ x: number;
589
+ y: number;
590
+ } | undefined;
591
+ }>;
592
+ }, "strip", z.ZodTypeAny, {
593
+ node: {
594
+ type: "start" | "branch" | "ending" | "normal" | "merge" | "explore";
595
+ id: string;
596
+ title: string;
597
+ sceneDesc: string;
598
+ dialogue: {
599
+ text: string;
600
+ speaker: string;
601
+ emotion: string;
602
+ }[];
603
+ choices: {
604
+ id: string;
605
+ text: string;
606
+ targetNodeId: string;
607
+ effects: {
608
+ value: string | number | boolean;
609
+ var: string;
610
+ op: "set" | "sub" | "add";
611
+ }[];
612
+ condition?: {
613
+ value: string | number | boolean;
614
+ var: string;
615
+ op: ">=" | "<=" | ">" | "<" | "==" | "!=";
616
+ } | undefined;
617
+ weight?: "light" | "heavy" | "critical" | undefined;
618
+ }[];
619
+ act: string;
620
+ imageSlot?: {
621
+ prompt: string;
622
+ assetRef?: string | undefined;
623
+ } | undefined;
624
+ position?: {
625
+ x: number;
626
+ y: number;
627
+ } | undefined;
628
+ };
629
+ projectId?: string | undefined;
630
+ }, {
631
+ node: {
632
+ type: "start" | "branch" | "ending" | "normal" | "merge" | "explore";
633
+ id: string;
634
+ title?: string | undefined;
635
+ sceneDesc?: string | undefined;
636
+ dialogue?: {
637
+ text: string;
638
+ speaker: string;
639
+ emotion?: string | undefined;
640
+ }[] | undefined;
641
+ choices?: {
642
+ id: string;
643
+ text: string;
644
+ targetNodeId: string;
645
+ condition?: {
646
+ value: string | number | boolean;
647
+ var: string;
648
+ op: ">=" | "<=" | ">" | "<" | "==" | "!=";
649
+ } | undefined;
650
+ effects?: {
651
+ value: string | number | boolean;
652
+ var: string;
653
+ op: "set" | "sub" | "add";
654
+ }[] | undefined;
655
+ weight?: "light" | "heavy" | "critical" | undefined;
656
+ }[] | undefined;
657
+ imageSlot?: {
658
+ prompt?: string | undefined;
659
+ assetRef?: string | undefined;
660
+ } | undefined;
661
+ act?: string | undefined;
662
+ position?: {
663
+ x: number;
664
+ y: number;
665
+ } | undefined;
666
+ };
667
+ projectId?: string | undefined;
668
+ }>>;
669
+ removeNode: z.ZodOptional<z.ZodObject<{
670
+ projectId: z.ZodOptional<z.ZodString>;
671
+ nodeId: z.ZodString;
672
+ }, "strip", z.ZodTypeAny, {
673
+ nodeId: string;
674
+ projectId?: string | undefined;
675
+ }, {
676
+ nodeId: string;
677
+ projectId?: string | undefined;
678
+ }>>;
184
679
  }, "strict", z.ZodTypeAny, {
185
680
  createBook?: {
186
681
  title?: string | undefined;
@@ -214,6 +709,92 @@ export declare const ActionPayloadSchema: z.ZodObject<{
214
709
  sellingPoints?: string | undefined;
215
710
  coverPrompt?: string | undefined;
216
711
  } | undefined;
712
+ scriptCreate?: {
713
+ title?: string | undefined;
714
+ projectId?: string | undefined;
715
+ sourceKind?: string | undefined;
716
+ targetFormat?: "vertical_short_drama" | "screenplay" | "audio_drama" | "interactive_script" | "general_script" | undefined;
717
+ sourceText?: string | undefined;
718
+ sourcePath?: string | undefined;
719
+ requirements?: string | undefined;
720
+ episodeCount?: number | undefined;
721
+ episodeDuration?: string | undefined;
722
+ outDir?: string | undefined;
723
+ } | undefined;
724
+ storyboardCreate?: {
725
+ title?: string | undefined;
726
+ projectId?: string | undefined;
727
+ sourceKind?: string | undefined;
728
+ sourceText?: string | undefined;
729
+ sourcePath?: string | undefined;
730
+ requirements?: string | undefined;
731
+ outDir?: string | undefined;
732
+ visualStyle?: string | undefined;
733
+ aspectRatio?: string | undefined;
734
+ granularity?: string | undefined;
735
+ maxShots?: number | undefined;
736
+ } | undefined;
737
+ interactiveFilmCreate?: {
738
+ title?: string | undefined;
739
+ projectId?: string | undefined;
740
+ sourceKind?: string | undefined;
741
+ sourceText?: string | undefined;
742
+ sourcePath?: string | undefined;
743
+ requirements?: string | undefined;
744
+ episodeCount?: number | undefined;
745
+ episodeDuration?: string | undefined;
746
+ outDir?: string | undefined;
747
+ targetAudience?: string | undefined;
748
+ budget?: string | undefined;
749
+ referenceMode?: string | undefined;
750
+ } | undefined;
751
+ draftStructure?: {
752
+ instruction: string;
753
+ projectId?: string | undefined;
754
+ } | undefined;
755
+ connectChoice?: {
756
+ node: {
757
+ type: "start" | "branch" | "ending" | "normal" | "merge" | "explore";
758
+ id: string;
759
+ title: string;
760
+ sceneDesc: string;
761
+ dialogue: {
762
+ text: string;
763
+ speaker: string;
764
+ emotion: string;
765
+ }[];
766
+ choices: {
767
+ id: string;
768
+ text: string;
769
+ targetNodeId: string;
770
+ effects: {
771
+ value: string | number | boolean;
772
+ var: string;
773
+ op: "set" | "sub" | "add";
774
+ }[];
775
+ condition?: {
776
+ value: string | number | boolean;
777
+ var: string;
778
+ op: ">=" | "<=" | ">" | "<" | "==" | "!=";
779
+ } | undefined;
780
+ weight?: "light" | "heavy" | "critical" | undefined;
781
+ }[];
782
+ act: string;
783
+ imageSlot?: {
784
+ prompt: string;
785
+ assetRef?: string | undefined;
786
+ } | undefined;
787
+ position?: {
788
+ x: number;
789
+ y: number;
790
+ } | undefined;
791
+ };
792
+ projectId?: string | undefined;
793
+ } | undefined;
794
+ removeNode?: {
795
+ nodeId: string;
796
+ projectId?: string | undefined;
797
+ } | undefined;
217
798
  }, {
218
799
  createBook?: {
219
800
  title?: string | undefined;
@@ -247,8 +828,95 @@ export declare const ActionPayloadSchema: z.ZodObject<{
247
828
  sellingPoints?: string | undefined;
248
829
  coverPrompt?: string | undefined;
249
830
  } | undefined;
831
+ scriptCreate?: {
832
+ title?: string | undefined;
833
+ projectId?: string | undefined;
834
+ sourceKind?: string | undefined;
835
+ targetFormat?: "vertical_short_drama" | "screenplay" | "audio_drama" | "interactive_script" | "general_script" | undefined;
836
+ sourceText?: string | undefined;
837
+ sourcePath?: string | undefined;
838
+ requirements?: string | undefined;
839
+ episodeCount?: number | undefined;
840
+ episodeDuration?: string | undefined;
841
+ outDir?: string | undefined;
842
+ } | undefined;
843
+ storyboardCreate?: {
844
+ title?: string | undefined;
845
+ projectId?: string | undefined;
846
+ sourceKind?: string | undefined;
847
+ sourceText?: string | undefined;
848
+ sourcePath?: string | undefined;
849
+ requirements?: string | undefined;
850
+ outDir?: string | undefined;
851
+ visualStyle?: string | undefined;
852
+ aspectRatio?: string | undefined;
853
+ granularity?: string | undefined;
854
+ maxShots?: number | undefined;
855
+ } | undefined;
856
+ interactiveFilmCreate?: {
857
+ title?: string | undefined;
858
+ projectId?: string | undefined;
859
+ sourceKind?: string | undefined;
860
+ sourceText?: string | undefined;
861
+ sourcePath?: string | undefined;
862
+ requirements?: string | undefined;
863
+ episodeCount?: number | undefined;
864
+ episodeDuration?: string | undefined;
865
+ outDir?: string | undefined;
866
+ targetAudience?: string | undefined;
867
+ budget?: string | undefined;
868
+ referenceMode?: string | undefined;
869
+ } | undefined;
870
+ draftStructure?: {
871
+ instruction?: string | undefined;
872
+ projectId?: string | undefined;
873
+ } | undefined;
874
+ connectChoice?: {
875
+ node: {
876
+ type: "start" | "branch" | "ending" | "normal" | "merge" | "explore";
877
+ id: string;
878
+ title?: string | undefined;
879
+ sceneDesc?: string | undefined;
880
+ dialogue?: {
881
+ text: string;
882
+ speaker: string;
883
+ emotion?: string | undefined;
884
+ }[] | undefined;
885
+ choices?: {
886
+ id: string;
887
+ text: string;
888
+ targetNodeId: string;
889
+ condition?: {
890
+ value: string | number | boolean;
891
+ var: string;
892
+ op: ">=" | "<=" | ">" | "<" | "==" | "!=";
893
+ } | undefined;
894
+ effects?: {
895
+ value: string | number | boolean;
896
+ var: string;
897
+ op: "set" | "sub" | "add";
898
+ }[] | undefined;
899
+ weight?: "light" | "heavy" | "critical" | undefined;
900
+ }[] | undefined;
901
+ imageSlot?: {
902
+ prompt?: string | undefined;
903
+ assetRef?: string | undefined;
904
+ } | undefined;
905
+ act?: string | undefined;
906
+ position?: {
907
+ x: number;
908
+ y: number;
909
+ } | undefined;
910
+ };
911
+ projectId?: string | undefined;
912
+ } | undefined;
913
+ removeNode?: {
914
+ nodeId: string;
915
+ projectId?: string | undefined;
916
+ } | undefined;
250
917
  }>;
251
918
  export type ActionPayload = z.infer<typeof ActionPayloadSchema>;
919
+ export declare function normalizeSkillIdList(value: unknown): string[];
252
920
  export declare function normalizeActionSource(value: unknown): ActionSource;
253
921
  export declare function normalizeRequestedIntent(value: unknown): RequestedIntent | undefined;
254
922
  export declare function normalizeActionPayload(value: unknown): ActionPayload | undefined;