@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
@@ -0,0 +1,819 @@
1
+ import { z } from "zod";
2
+ export declare const VarValueSchema: z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean]>;
3
+ export type VarValue = z.infer<typeof VarValueSchema>;
4
+ export declare const ConditionSchema: z.ZodObject<{
5
+ var: z.ZodString;
6
+ op: z.ZodEnum<[">=", "<=", ">", "<", "==", "!="]>;
7
+ value: z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean]>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ value: string | number | boolean;
10
+ var: string;
11
+ op: ">=" | "<=" | ">" | "<" | "==" | "!=";
12
+ }, {
13
+ value: string | number | boolean;
14
+ var: string;
15
+ op: ">=" | "<=" | ">" | "<" | "==" | "!=";
16
+ }>;
17
+ export type Condition = z.infer<typeof ConditionSchema>;
18
+ export declare const EffectSchema: z.ZodObject<{
19
+ var: z.ZodString;
20
+ op: z.ZodEnum<["set", "add", "sub"]>;
21
+ value: z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean]>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ value: string | number | boolean;
24
+ var: string;
25
+ op: "set" | "sub" | "add";
26
+ }, {
27
+ value: string | number | boolean;
28
+ var: string;
29
+ op: "set" | "sub" | "add";
30
+ }>;
31
+ export type Effect = z.infer<typeof EffectSchema>;
32
+ export declare const ChoiceSchema: z.ZodObject<{
33
+ id: z.ZodString;
34
+ text: z.ZodString;
35
+ targetNodeId: z.ZodString;
36
+ condition: z.ZodOptional<z.ZodObject<{
37
+ var: z.ZodString;
38
+ op: z.ZodEnum<[">=", "<=", ">", "<", "==", "!="]>;
39
+ value: z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean]>;
40
+ }, "strip", z.ZodTypeAny, {
41
+ value: string | number | boolean;
42
+ var: string;
43
+ op: ">=" | "<=" | ">" | "<" | "==" | "!=";
44
+ }, {
45
+ value: string | number | boolean;
46
+ var: string;
47
+ op: ">=" | "<=" | ">" | "<" | "==" | "!=";
48
+ }>>;
49
+ effects: z.ZodDefault<z.ZodArray<z.ZodObject<{
50
+ var: z.ZodString;
51
+ op: z.ZodEnum<["set", "add", "sub"]>;
52
+ value: z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean]>;
53
+ }, "strip", z.ZodTypeAny, {
54
+ value: string | number | boolean;
55
+ var: string;
56
+ op: "set" | "sub" | "add";
57
+ }, {
58
+ value: string | number | boolean;
59
+ var: string;
60
+ op: "set" | "sub" | "add";
61
+ }>, "many">>;
62
+ weight: z.ZodOptional<z.ZodEnum<["light", "heavy", "critical"]>>;
63
+ }, "strip", z.ZodTypeAny, {
64
+ id: string;
65
+ text: string;
66
+ targetNodeId: string;
67
+ effects: {
68
+ value: string | number | boolean;
69
+ var: string;
70
+ op: "set" | "sub" | "add";
71
+ }[];
72
+ condition?: {
73
+ value: string | number | boolean;
74
+ var: string;
75
+ op: ">=" | "<=" | ">" | "<" | "==" | "!=";
76
+ } | undefined;
77
+ weight?: "light" | "heavy" | "critical" | undefined;
78
+ }, {
79
+ id: string;
80
+ text: string;
81
+ targetNodeId: string;
82
+ condition?: {
83
+ value: string | number | boolean;
84
+ var: string;
85
+ op: ">=" | "<=" | ">" | "<" | "==" | "!=";
86
+ } | undefined;
87
+ effects?: {
88
+ value: string | number | boolean;
89
+ var: string;
90
+ op: "set" | "sub" | "add";
91
+ }[] | undefined;
92
+ weight?: "light" | "heavy" | "critical" | undefined;
93
+ }>;
94
+ export type Choice = z.infer<typeof ChoiceSchema>;
95
+ export declare const DialogueLineSchema: z.ZodObject<{
96
+ speaker: z.ZodString;
97
+ text: z.ZodString;
98
+ emotion: z.ZodDefault<z.ZodString>;
99
+ }, "strip", z.ZodTypeAny, {
100
+ text: string;
101
+ speaker: string;
102
+ emotion: string;
103
+ }, {
104
+ text: string;
105
+ speaker: string;
106
+ emotion?: string | undefined;
107
+ }>;
108
+ export type DialogueLine = z.infer<typeof DialogueLineSchema>;
109
+ export declare const ImageSlotSchema: z.ZodObject<{
110
+ prompt: z.ZodDefault<z.ZodString>;
111
+ assetRef: z.ZodOptional<z.ZodString>;
112
+ }, "strip", z.ZodTypeAny, {
113
+ prompt: string;
114
+ assetRef?: string | undefined;
115
+ }, {
116
+ prompt?: string | undefined;
117
+ assetRef?: string | undefined;
118
+ }>;
119
+ export type ImageSlot = z.infer<typeof ImageSlotSchema>;
120
+ export declare const NodeTypeSchema: z.ZodEnum<["start", "normal", "branch", "merge", "ending", "explore"]>;
121
+ export type NodeType = z.infer<typeof NodeTypeSchema>;
122
+ export declare const VoiceProfileSchema: z.ZodObject<{
123
+ speakingRhythm: z.ZodDefault<z.ZodString>;
124
+ vocabulary: z.ZodDefault<z.ZodString>;
125
+ sampleLines: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
126
+ }, "strip", z.ZodTypeAny, {
127
+ speakingRhythm: string;
128
+ vocabulary: string;
129
+ sampleLines: string[];
130
+ }, {
131
+ speakingRhythm?: string | undefined;
132
+ vocabulary?: string | undefined;
133
+ sampleLines?: string[] | undefined;
134
+ }>;
135
+ export type VoiceProfile = z.infer<typeof VoiceProfileSchema>;
136
+ export declare const CharacterSchema: z.ZodObject<{
137
+ id: z.ZodString;
138
+ name: z.ZodString;
139
+ role: z.ZodDefault<z.ZodEnum<["protagonist", "antagonist", "support", "other"]>>;
140
+ motivation: z.ZodDefault<z.ZodString>;
141
+ voiceProfile: z.ZodOptional<z.ZodObject<{
142
+ speakingRhythm: z.ZodDefault<z.ZodString>;
143
+ vocabulary: z.ZodDefault<z.ZodString>;
144
+ sampleLines: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
145
+ }, "strip", z.ZodTypeAny, {
146
+ speakingRhythm: string;
147
+ vocabulary: string;
148
+ sampleLines: string[];
149
+ }, {
150
+ speakingRhythm?: string | undefined;
151
+ vocabulary?: string | undefined;
152
+ sampleLines?: string[] | undefined;
153
+ }>>;
154
+ }, "strip", z.ZodTypeAny, {
155
+ id: string;
156
+ name: string;
157
+ role: "other" | "protagonist" | "antagonist" | "support";
158
+ motivation: string;
159
+ voiceProfile?: {
160
+ speakingRhythm: string;
161
+ vocabulary: string;
162
+ sampleLines: string[];
163
+ } | undefined;
164
+ }, {
165
+ id: string;
166
+ name: string;
167
+ role?: "other" | "protagonist" | "antagonist" | "support" | undefined;
168
+ motivation?: string | undefined;
169
+ voiceProfile?: {
170
+ speakingRhythm?: string | undefined;
171
+ vocabulary?: string | undefined;
172
+ sampleLines?: string[] | undefined;
173
+ } | undefined;
174
+ }>;
175
+ export type Character = z.infer<typeof CharacterSchema>;
176
+ export declare const WorldAnchorSchema: z.ZodObject<{
177
+ storyCore: z.ZodDefault<z.ZodString>;
178
+ theme: z.ZodDefault<z.ZodString>;
179
+ genre: z.ZodDefault<z.ZodString>;
180
+ worldRules: z.ZodDefault<z.ZodString>;
181
+ durationMinutes: z.ZodDefault<z.ZodNumber>;
182
+ }, "strip", z.ZodTypeAny, {
183
+ genre: string;
184
+ storyCore: string;
185
+ theme: string;
186
+ worldRules: string;
187
+ durationMinutes: number;
188
+ }, {
189
+ genre?: string | undefined;
190
+ storyCore?: string | undefined;
191
+ theme?: string | undefined;
192
+ worldRules?: string | undefined;
193
+ durationMinutes?: number | undefined;
194
+ }>;
195
+ export type WorldAnchor = z.infer<typeof WorldAnchorSchema>;
196
+ export declare const StoryNodeSchema: z.ZodObject<{
197
+ id: z.ZodString;
198
+ title: z.ZodDefault<z.ZodString>;
199
+ type: z.ZodEnum<["start", "normal", "branch", "merge", "ending", "explore"]>;
200
+ sceneDesc: z.ZodDefault<z.ZodString>;
201
+ dialogue: z.ZodDefault<z.ZodArray<z.ZodObject<{
202
+ speaker: z.ZodString;
203
+ text: z.ZodString;
204
+ emotion: z.ZodDefault<z.ZodString>;
205
+ }, "strip", z.ZodTypeAny, {
206
+ text: string;
207
+ speaker: string;
208
+ emotion: string;
209
+ }, {
210
+ text: string;
211
+ speaker: string;
212
+ emotion?: string | undefined;
213
+ }>, "many">>;
214
+ choices: z.ZodDefault<z.ZodArray<z.ZodObject<{
215
+ id: z.ZodString;
216
+ text: z.ZodString;
217
+ targetNodeId: z.ZodString;
218
+ condition: z.ZodOptional<z.ZodObject<{
219
+ var: z.ZodString;
220
+ op: z.ZodEnum<[">=", "<=", ">", "<", "==", "!="]>;
221
+ value: z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean]>;
222
+ }, "strip", z.ZodTypeAny, {
223
+ value: string | number | boolean;
224
+ var: string;
225
+ op: ">=" | "<=" | ">" | "<" | "==" | "!=";
226
+ }, {
227
+ value: string | number | boolean;
228
+ var: string;
229
+ op: ">=" | "<=" | ">" | "<" | "==" | "!=";
230
+ }>>;
231
+ effects: z.ZodDefault<z.ZodArray<z.ZodObject<{
232
+ var: z.ZodString;
233
+ op: z.ZodEnum<["set", "add", "sub"]>;
234
+ value: z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean]>;
235
+ }, "strip", z.ZodTypeAny, {
236
+ value: string | number | boolean;
237
+ var: string;
238
+ op: "set" | "sub" | "add";
239
+ }, {
240
+ value: string | number | boolean;
241
+ var: string;
242
+ op: "set" | "sub" | "add";
243
+ }>, "many">>;
244
+ weight: z.ZodOptional<z.ZodEnum<["light", "heavy", "critical"]>>;
245
+ }, "strip", z.ZodTypeAny, {
246
+ id: string;
247
+ text: string;
248
+ targetNodeId: string;
249
+ effects: {
250
+ value: string | number | boolean;
251
+ var: string;
252
+ op: "set" | "sub" | "add";
253
+ }[];
254
+ condition?: {
255
+ value: string | number | boolean;
256
+ var: string;
257
+ op: ">=" | "<=" | ">" | "<" | "==" | "!=";
258
+ } | undefined;
259
+ weight?: "light" | "heavy" | "critical" | undefined;
260
+ }, {
261
+ id: string;
262
+ text: string;
263
+ targetNodeId: string;
264
+ condition?: {
265
+ value: string | number | boolean;
266
+ var: string;
267
+ op: ">=" | "<=" | ">" | "<" | "==" | "!=";
268
+ } | undefined;
269
+ effects?: {
270
+ value: string | number | boolean;
271
+ var: string;
272
+ op: "set" | "sub" | "add";
273
+ }[] | undefined;
274
+ weight?: "light" | "heavy" | "critical" | undefined;
275
+ }>, "many">>;
276
+ imageSlot: z.ZodOptional<z.ZodObject<{
277
+ prompt: z.ZodDefault<z.ZodString>;
278
+ assetRef: z.ZodOptional<z.ZodString>;
279
+ }, "strip", z.ZodTypeAny, {
280
+ prompt: string;
281
+ assetRef?: string | undefined;
282
+ }, {
283
+ prompt?: string | undefined;
284
+ assetRef?: string | undefined;
285
+ }>>;
286
+ act: z.ZodDefault<z.ZodString>;
287
+ position: z.ZodOptional<z.ZodObject<{
288
+ x: z.ZodNumber;
289
+ y: z.ZodNumber;
290
+ }, "strip", z.ZodTypeAny, {
291
+ x: number;
292
+ y: number;
293
+ }, {
294
+ x: number;
295
+ y: number;
296
+ }>>;
297
+ }, "strip", z.ZodTypeAny, {
298
+ type: "start" | "branch" | "ending" | "normal" | "merge" | "explore";
299
+ id: string;
300
+ title: string;
301
+ sceneDesc: string;
302
+ dialogue: {
303
+ text: string;
304
+ speaker: string;
305
+ emotion: string;
306
+ }[];
307
+ choices: {
308
+ id: string;
309
+ text: string;
310
+ targetNodeId: string;
311
+ effects: {
312
+ value: string | number | boolean;
313
+ var: string;
314
+ op: "set" | "sub" | "add";
315
+ }[];
316
+ condition?: {
317
+ value: string | number | boolean;
318
+ var: string;
319
+ op: ">=" | "<=" | ">" | "<" | "==" | "!=";
320
+ } | undefined;
321
+ weight?: "light" | "heavy" | "critical" | undefined;
322
+ }[];
323
+ act: string;
324
+ imageSlot?: {
325
+ prompt: string;
326
+ assetRef?: string | undefined;
327
+ } | undefined;
328
+ position?: {
329
+ x: number;
330
+ y: number;
331
+ } | undefined;
332
+ }, {
333
+ type: "start" | "branch" | "ending" | "normal" | "merge" | "explore";
334
+ id: string;
335
+ title?: string | undefined;
336
+ sceneDesc?: string | undefined;
337
+ dialogue?: {
338
+ text: string;
339
+ speaker: string;
340
+ emotion?: string | undefined;
341
+ }[] | undefined;
342
+ choices?: {
343
+ id: string;
344
+ text: string;
345
+ targetNodeId: string;
346
+ condition?: {
347
+ value: string | number | boolean;
348
+ var: string;
349
+ op: ">=" | "<=" | ">" | "<" | "==" | "!=";
350
+ } | undefined;
351
+ effects?: {
352
+ value: string | number | boolean;
353
+ var: string;
354
+ op: "set" | "sub" | "add";
355
+ }[] | undefined;
356
+ weight?: "light" | "heavy" | "critical" | undefined;
357
+ }[] | undefined;
358
+ imageSlot?: {
359
+ prompt?: string | undefined;
360
+ assetRef?: string | undefined;
361
+ } | undefined;
362
+ act?: string | undefined;
363
+ position?: {
364
+ x: number;
365
+ y: number;
366
+ } | undefined;
367
+ }>;
368
+ export type StoryNode = z.infer<typeof StoryNodeSchema>;
369
+ export declare const VariableSchema: z.ZodObject<{
370
+ name: z.ZodString;
371
+ type: z.ZodEnum<["flag", "counter", "relationship", "item"]>;
372
+ default: z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean]>;
373
+ desc: z.ZodDefault<z.ZodString>;
374
+ }, "strip", z.ZodTypeAny, {
375
+ type: "item" | "flag" | "relationship" | "counter";
376
+ name: string;
377
+ default: string | number | boolean;
378
+ desc: string;
379
+ }, {
380
+ type: "item" | "flag" | "relationship" | "counter";
381
+ name: string;
382
+ default: string | number | boolean;
383
+ desc?: string | undefined;
384
+ }>;
385
+ export type Variable = z.infer<typeof VariableSchema>;
386
+ export declare const EndingSchema: z.ZodObject<{
387
+ id: z.ZodString;
388
+ nodeId: z.ZodString;
389
+ title: z.ZodString;
390
+ type: z.ZodEnum<["good", "bad", "neutral", "secret"]>;
391
+ description: z.ZodDefault<z.ZodString>;
392
+ }, "strip", z.ZodTypeAny, {
393
+ type: "secret" | "good" | "bad" | "neutral";
394
+ id: string;
395
+ title: string;
396
+ description: string;
397
+ nodeId: string;
398
+ }, {
399
+ type: "secret" | "good" | "bad" | "neutral";
400
+ id: string;
401
+ title: string;
402
+ nodeId: string;
403
+ description?: string | undefined;
404
+ }>;
405
+ export type Ending = z.infer<typeof EndingSchema>;
406
+ export declare const StoryGraphSchema: z.ZodObject<{
407
+ schemaVersion: z.ZodLiteral<1>;
408
+ projectId: z.ZodString;
409
+ title: z.ZodString;
410
+ worldAnchor: z.ZodOptional<z.ZodObject<{
411
+ storyCore: z.ZodDefault<z.ZodString>;
412
+ theme: z.ZodDefault<z.ZodString>;
413
+ genre: z.ZodDefault<z.ZodString>;
414
+ worldRules: z.ZodDefault<z.ZodString>;
415
+ durationMinutes: z.ZodDefault<z.ZodNumber>;
416
+ }, "strip", z.ZodTypeAny, {
417
+ genre: string;
418
+ storyCore: string;
419
+ theme: string;
420
+ worldRules: string;
421
+ durationMinutes: number;
422
+ }, {
423
+ genre?: string | undefined;
424
+ storyCore?: string | undefined;
425
+ theme?: string | undefined;
426
+ worldRules?: string | undefined;
427
+ durationMinutes?: number | undefined;
428
+ }>>;
429
+ characters: z.ZodDefault<z.ZodArray<z.ZodObject<{
430
+ id: z.ZodString;
431
+ name: z.ZodString;
432
+ role: z.ZodDefault<z.ZodEnum<["protagonist", "antagonist", "support", "other"]>>;
433
+ motivation: z.ZodDefault<z.ZodString>;
434
+ voiceProfile: z.ZodOptional<z.ZodObject<{
435
+ speakingRhythm: z.ZodDefault<z.ZodString>;
436
+ vocabulary: z.ZodDefault<z.ZodString>;
437
+ sampleLines: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
438
+ }, "strip", z.ZodTypeAny, {
439
+ speakingRhythm: string;
440
+ vocabulary: string;
441
+ sampleLines: string[];
442
+ }, {
443
+ speakingRhythm?: string | undefined;
444
+ vocabulary?: string | undefined;
445
+ sampleLines?: string[] | undefined;
446
+ }>>;
447
+ }, "strip", z.ZodTypeAny, {
448
+ id: string;
449
+ name: string;
450
+ role: "other" | "protagonist" | "antagonist" | "support";
451
+ motivation: string;
452
+ voiceProfile?: {
453
+ speakingRhythm: string;
454
+ vocabulary: string;
455
+ sampleLines: string[];
456
+ } | undefined;
457
+ }, {
458
+ id: string;
459
+ name: string;
460
+ role?: "other" | "protagonist" | "antagonist" | "support" | undefined;
461
+ motivation?: string | undefined;
462
+ voiceProfile?: {
463
+ speakingRhythm?: string | undefined;
464
+ vocabulary?: string | undefined;
465
+ sampleLines?: string[] | undefined;
466
+ } | undefined;
467
+ }>, "many">>;
468
+ variables: z.ZodDefault<z.ZodArray<z.ZodObject<{
469
+ name: z.ZodString;
470
+ type: z.ZodEnum<["flag", "counter", "relationship", "item"]>;
471
+ default: z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean]>;
472
+ desc: z.ZodDefault<z.ZodString>;
473
+ }, "strip", z.ZodTypeAny, {
474
+ type: "item" | "flag" | "relationship" | "counter";
475
+ name: string;
476
+ default: string | number | boolean;
477
+ desc: string;
478
+ }, {
479
+ type: "item" | "flag" | "relationship" | "counter";
480
+ name: string;
481
+ default: string | number | boolean;
482
+ desc?: string | undefined;
483
+ }>, "many">>;
484
+ nodes: z.ZodDefault<z.ZodArray<z.ZodObject<{
485
+ id: z.ZodString;
486
+ title: z.ZodDefault<z.ZodString>;
487
+ type: z.ZodEnum<["start", "normal", "branch", "merge", "ending", "explore"]>;
488
+ sceneDesc: z.ZodDefault<z.ZodString>;
489
+ dialogue: z.ZodDefault<z.ZodArray<z.ZodObject<{
490
+ speaker: z.ZodString;
491
+ text: z.ZodString;
492
+ emotion: z.ZodDefault<z.ZodString>;
493
+ }, "strip", z.ZodTypeAny, {
494
+ text: string;
495
+ speaker: string;
496
+ emotion: string;
497
+ }, {
498
+ text: string;
499
+ speaker: string;
500
+ emotion?: string | undefined;
501
+ }>, "many">>;
502
+ choices: z.ZodDefault<z.ZodArray<z.ZodObject<{
503
+ id: z.ZodString;
504
+ text: z.ZodString;
505
+ targetNodeId: z.ZodString;
506
+ condition: z.ZodOptional<z.ZodObject<{
507
+ var: z.ZodString;
508
+ op: z.ZodEnum<[">=", "<=", ">", "<", "==", "!="]>;
509
+ value: z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean]>;
510
+ }, "strip", z.ZodTypeAny, {
511
+ value: string | number | boolean;
512
+ var: string;
513
+ op: ">=" | "<=" | ">" | "<" | "==" | "!=";
514
+ }, {
515
+ value: string | number | boolean;
516
+ var: string;
517
+ op: ">=" | "<=" | ">" | "<" | "==" | "!=";
518
+ }>>;
519
+ effects: z.ZodDefault<z.ZodArray<z.ZodObject<{
520
+ var: z.ZodString;
521
+ op: z.ZodEnum<["set", "add", "sub"]>;
522
+ value: z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean]>;
523
+ }, "strip", z.ZodTypeAny, {
524
+ value: string | number | boolean;
525
+ var: string;
526
+ op: "set" | "sub" | "add";
527
+ }, {
528
+ value: string | number | boolean;
529
+ var: string;
530
+ op: "set" | "sub" | "add";
531
+ }>, "many">>;
532
+ weight: z.ZodOptional<z.ZodEnum<["light", "heavy", "critical"]>>;
533
+ }, "strip", z.ZodTypeAny, {
534
+ id: string;
535
+ text: string;
536
+ targetNodeId: string;
537
+ effects: {
538
+ value: string | number | boolean;
539
+ var: string;
540
+ op: "set" | "sub" | "add";
541
+ }[];
542
+ condition?: {
543
+ value: string | number | boolean;
544
+ var: string;
545
+ op: ">=" | "<=" | ">" | "<" | "==" | "!=";
546
+ } | undefined;
547
+ weight?: "light" | "heavy" | "critical" | undefined;
548
+ }, {
549
+ id: string;
550
+ text: string;
551
+ targetNodeId: string;
552
+ condition?: {
553
+ value: string | number | boolean;
554
+ var: string;
555
+ op: ">=" | "<=" | ">" | "<" | "==" | "!=";
556
+ } | undefined;
557
+ effects?: {
558
+ value: string | number | boolean;
559
+ var: string;
560
+ op: "set" | "sub" | "add";
561
+ }[] | undefined;
562
+ weight?: "light" | "heavy" | "critical" | undefined;
563
+ }>, "many">>;
564
+ imageSlot: z.ZodOptional<z.ZodObject<{
565
+ prompt: z.ZodDefault<z.ZodString>;
566
+ assetRef: z.ZodOptional<z.ZodString>;
567
+ }, "strip", z.ZodTypeAny, {
568
+ prompt: string;
569
+ assetRef?: string | undefined;
570
+ }, {
571
+ prompt?: string | undefined;
572
+ assetRef?: string | undefined;
573
+ }>>;
574
+ act: z.ZodDefault<z.ZodString>;
575
+ position: z.ZodOptional<z.ZodObject<{
576
+ x: z.ZodNumber;
577
+ y: z.ZodNumber;
578
+ }, "strip", z.ZodTypeAny, {
579
+ x: number;
580
+ y: number;
581
+ }, {
582
+ x: number;
583
+ y: number;
584
+ }>>;
585
+ }, "strip", z.ZodTypeAny, {
586
+ type: "start" | "branch" | "ending" | "normal" | "merge" | "explore";
587
+ id: string;
588
+ title: string;
589
+ sceneDesc: string;
590
+ dialogue: {
591
+ text: string;
592
+ speaker: string;
593
+ emotion: string;
594
+ }[];
595
+ choices: {
596
+ id: string;
597
+ text: string;
598
+ targetNodeId: string;
599
+ effects: {
600
+ value: string | number | boolean;
601
+ var: string;
602
+ op: "set" | "sub" | "add";
603
+ }[];
604
+ condition?: {
605
+ value: string | number | boolean;
606
+ var: string;
607
+ op: ">=" | "<=" | ">" | "<" | "==" | "!=";
608
+ } | undefined;
609
+ weight?: "light" | "heavy" | "critical" | undefined;
610
+ }[];
611
+ act: string;
612
+ imageSlot?: {
613
+ prompt: string;
614
+ assetRef?: string | undefined;
615
+ } | undefined;
616
+ position?: {
617
+ x: number;
618
+ y: number;
619
+ } | undefined;
620
+ }, {
621
+ type: "start" | "branch" | "ending" | "normal" | "merge" | "explore";
622
+ id: string;
623
+ title?: string | undefined;
624
+ sceneDesc?: string | undefined;
625
+ dialogue?: {
626
+ text: string;
627
+ speaker: string;
628
+ emotion?: string | undefined;
629
+ }[] | undefined;
630
+ choices?: {
631
+ id: string;
632
+ text: string;
633
+ targetNodeId: string;
634
+ condition?: {
635
+ value: string | number | boolean;
636
+ var: string;
637
+ op: ">=" | "<=" | ">" | "<" | "==" | "!=";
638
+ } | undefined;
639
+ effects?: {
640
+ value: string | number | boolean;
641
+ var: string;
642
+ op: "set" | "sub" | "add";
643
+ }[] | undefined;
644
+ weight?: "light" | "heavy" | "critical" | undefined;
645
+ }[] | undefined;
646
+ imageSlot?: {
647
+ prompt?: string | undefined;
648
+ assetRef?: string | undefined;
649
+ } | undefined;
650
+ act?: string | undefined;
651
+ position?: {
652
+ x: number;
653
+ y: number;
654
+ } | undefined;
655
+ }>, "many">>;
656
+ endings: z.ZodDefault<z.ZodArray<z.ZodObject<{
657
+ id: z.ZodString;
658
+ nodeId: z.ZodString;
659
+ title: z.ZodString;
660
+ type: z.ZodEnum<["good", "bad", "neutral", "secret"]>;
661
+ description: z.ZodDefault<z.ZodString>;
662
+ }, "strip", z.ZodTypeAny, {
663
+ type: "secret" | "good" | "bad" | "neutral";
664
+ id: string;
665
+ title: string;
666
+ description: string;
667
+ nodeId: string;
668
+ }, {
669
+ type: "secret" | "good" | "bad" | "neutral";
670
+ id: string;
671
+ title: string;
672
+ nodeId: string;
673
+ description?: string | undefined;
674
+ }>, "many">>;
675
+ }, "strip", z.ZodTypeAny, {
676
+ title: string;
677
+ schemaVersion: 1;
678
+ characters: {
679
+ id: string;
680
+ name: string;
681
+ role: "other" | "protagonist" | "antagonist" | "support";
682
+ motivation: string;
683
+ voiceProfile?: {
684
+ speakingRhythm: string;
685
+ vocabulary: string;
686
+ sampleLines: string[];
687
+ } | undefined;
688
+ }[];
689
+ projectId: string;
690
+ variables: {
691
+ type: "item" | "flag" | "relationship" | "counter";
692
+ name: string;
693
+ default: string | number | boolean;
694
+ desc: string;
695
+ }[];
696
+ nodes: {
697
+ type: "start" | "branch" | "ending" | "normal" | "merge" | "explore";
698
+ id: string;
699
+ title: string;
700
+ sceneDesc: string;
701
+ dialogue: {
702
+ text: string;
703
+ speaker: string;
704
+ emotion: string;
705
+ }[];
706
+ choices: {
707
+ id: string;
708
+ text: string;
709
+ targetNodeId: string;
710
+ effects: {
711
+ value: string | number | boolean;
712
+ var: string;
713
+ op: "set" | "sub" | "add";
714
+ }[];
715
+ condition?: {
716
+ value: string | number | boolean;
717
+ var: string;
718
+ op: ">=" | "<=" | ">" | "<" | "==" | "!=";
719
+ } | undefined;
720
+ weight?: "light" | "heavy" | "critical" | undefined;
721
+ }[];
722
+ act: string;
723
+ imageSlot?: {
724
+ prompt: string;
725
+ assetRef?: string | undefined;
726
+ } | undefined;
727
+ position?: {
728
+ x: number;
729
+ y: number;
730
+ } | undefined;
731
+ }[];
732
+ endings: {
733
+ type: "secret" | "good" | "bad" | "neutral";
734
+ id: string;
735
+ title: string;
736
+ description: string;
737
+ nodeId: string;
738
+ }[];
739
+ worldAnchor?: {
740
+ genre: string;
741
+ storyCore: string;
742
+ theme: string;
743
+ worldRules: string;
744
+ durationMinutes: number;
745
+ } | undefined;
746
+ }, {
747
+ title: string;
748
+ schemaVersion: 1;
749
+ projectId: string;
750
+ characters?: {
751
+ id: string;
752
+ name: string;
753
+ role?: "other" | "protagonist" | "antagonist" | "support" | undefined;
754
+ motivation?: string | undefined;
755
+ voiceProfile?: {
756
+ speakingRhythm?: string | undefined;
757
+ vocabulary?: string | undefined;
758
+ sampleLines?: string[] | undefined;
759
+ } | undefined;
760
+ }[] | undefined;
761
+ worldAnchor?: {
762
+ genre?: string | undefined;
763
+ storyCore?: string | undefined;
764
+ theme?: string | undefined;
765
+ worldRules?: string | undefined;
766
+ durationMinutes?: number | undefined;
767
+ } | undefined;
768
+ variables?: {
769
+ type: "item" | "flag" | "relationship" | "counter";
770
+ name: string;
771
+ default: string | number | boolean;
772
+ desc?: string | undefined;
773
+ }[] | undefined;
774
+ nodes?: {
775
+ type: "start" | "branch" | "ending" | "normal" | "merge" | "explore";
776
+ id: string;
777
+ title?: string | undefined;
778
+ sceneDesc?: string | undefined;
779
+ dialogue?: {
780
+ text: string;
781
+ speaker: string;
782
+ emotion?: string | undefined;
783
+ }[] | undefined;
784
+ choices?: {
785
+ id: string;
786
+ text: string;
787
+ targetNodeId: string;
788
+ condition?: {
789
+ value: string | number | boolean;
790
+ var: string;
791
+ op: ">=" | "<=" | ">" | "<" | "==" | "!=";
792
+ } | undefined;
793
+ effects?: {
794
+ value: string | number | boolean;
795
+ var: string;
796
+ op: "set" | "sub" | "add";
797
+ }[] | undefined;
798
+ weight?: "light" | "heavy" | "critical" | undefined;
799
+ }[] | undefined;
800
+ imageSlot?: {
801
+ prompt?: string | undefined;
802
+ assetRef?: string | undefined;
803
+ } | undefined;
804
+ act?: string | undefined;
805
+ position?: {
806
+ x: number;
807
+ y: number;
808
+ } | undefined;
809
+ }[] | undefined;
810
+ endings?: {
811
+ type: "secret" | "good" | "bad" | "neutral";
812
+ id: string;
813
+ title: string;
814
+ nodeId: string;
815
+ description?: string | undefined;
816
+ }[] | undefined;
817
+ }>;
818
+ export type StoryGraph = z.infer<typeof StoryGraphSchema>;
819
+ //# sourceMappingURL=graph-schema.d.ts.map