@nodetool-ai/protocol 0.7.0-rc.23 → 0.8.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.
Files changed (624) hide show
  1. package/README.md +56 -0
  2. package/dist/.nodetool-build-stamp +1 -0
  3. package/dist/ai-video-production.d.ts +276 -0
  4. package/dist/ai-video-production.d.ts.map +1 -0
  5. package/dist/ai-video-production.js +131 -0
  6. package/dist/ai-video-production.js.map +1 -0
  7. package/dist/api-schemas/agent-access.d.ts +134 -0
  8. package/dist/api-schemas/agent-access.d.ts.map +1 -0
  9. package/dist/api-schemas/agent-access.js +93 -0
  10. package/dist/api-schemas/agent-access.js.map +1 -0
  11. package/dist/api-schemas/api-error-code.d.ts +11 -1
  12. package/dist/api-schemas/api-error-code.d.ts.map +1 -1
  13. package/dist/api-schemas/api-error-code.js +10 -0
  14. package/dist/api-schemas/api-error-code.js.map +1 -1
  15. package/dist/api-schemas/app-runs.d.ts +1410 -0
  16. package/dist/api-schemas/app-runs.d.ts.map +1 -0
  17. package/dist/api-schemas/app-runs.js +105 -0
  18. package/dist/api-schemas/app-runs.js.map +1 -0
  19. package/dist/api-schemas/applications.d.ts +3216 -0
  20. package/dist/api-schemas/applications.d.ts.map +1 -0
  21. package/dist/api-schemas/applications.js +487 -0
  22. package/dist/api-schemas/applications.js.map +1 -0
  23. package/dist/api-schemas/assets.d.ts +239 -0
  24. package/dist/api-schemas/assets.d.ts.map +1 -1
  25. package/dist/api-schemas/assets.js +136 -5
  26. package/dist/api-schemas/assets.js.map +1 -1
  27. package/dist/api-schemas/bug-reports.d.ts +38 -0
  28. package/dist/api-schemas/bug-reports.d.ts.map +1 -0
  29. package/dist/api-schemas/bug-reports.js +34 -0
  30. package/dist/api-schemas/bug-reports.js.map +1 -0
  31. package/dist/api-schemas/code-gen.d.ts +176 -0
  32. package/dist/api-schemas/code-gen.d.ts.map +1 -0
  33. package/dist/api-schemas/code-gen.js +205 -0
  34. package/dist/api-schemas/code-gen.js.map +1 -0
  35. package/dist/api-schemas/collections.d.ts.map +1 -1
  36. package/dist/api-schemas/collections.js +3 -4
  37. package/dist/api-schemas/collections.js.map +1 -1
  38. package/dist/api-schemas/costs.d.ts +179 -0
  39. package/dist/api-schemas/costs.d.ts.map +1 -1
  40. package/dist/api-schemas/costs.js +100 -4
  41. package/dist/api-schemas/costs.js.map +1 -1
  42. package/dist/api-schemas/credits.d.ts +42 -0
  43. package/dist/api-schemas/credits.d.ts.map +1 -0
  44. package/dist/api-schemas/credits.js +43 -0
  45. package/dist/api-schemas/credits.js.map +1 -0
  46. package/dist/api-schemas/documents.d.ts +163 -0
  47. package/dist/api-schemas/documents.d.ts.map +1 -0
  48. package/dist/api-schemas/documents.js +75 -0
  49. package/dist/api-schemas/documents.js.map +1 -0
  50. package/dist/api-schemas/error-traces.d.ts +249 -0
  51. package/dist/api-schemas/error-traces.d.ts.map +1 -0
  52. package/dist/api-schemas/error-traces.js +112 -0
  53. package/dist/api-schemas/error-traces.js.map +1 -0
  54. package/dist/api-schemas/files.d.ts +13 -0
  55. package/dist/api-schemas/files.d.ts.map +1 -1
  56. package/dist/api-schemas/files.js +8 -0
  57. package/dist/api-schemas/files.js.map +1 -1
  58. package/dist/api-schemas/fonts.d.ts +17 -1
  59. package/dist/api-schemas/fonts.d.ts.map +1 -1
  60. package/dist/api-schemas/fonts.js +19 -3
  61. package/dist/api-schemas/fonts.js.map +1 -1
  62. package/dist/api-schemas/index.d.ts +27 -1
  63. package/dist/api-schemas/index.d.ts.map +1 -1
  64. package/dist/api-schemas/index.js +27 -1
  65. package/dist/api-schemas/index.js.map +1 -1
  66. package/dist/api-schemas/jobs.d.ts +44 -0
  67. package/dist/api-schemas/jobs.d.ts.map +1 -1
  68. package/dist/api-schemas/jobs.js +26 -2
  69. package/dist/api-schemas/jobs.js.map +1 -1
  70. package/dist/api-schemas/js-scripts.d.ts +367 -0
  71. package/dist/api-schemas/js-scripts.d.ts.map +1 -0
  72. package/dist/api-schemas/js-scripts.js +341 -0
  73. package/dist/api-schemas/js-scripts.js.map +1 -0
  74. package/dist/api-schemas/mcp-config.d.ts +4 -1
  75. package/dist/api-schemas/mcp-config.d.ts.map +1 -1
  76. package/dist/api-schemas/mcp-config.js +10 -3
  77. package/dist/api-schemas/mcp-config.js.map +1 -1
  78. package/dist/api-schemas/memories.d.ts +84 -0
  79. package/dist/api-schemas/memories.d.ts.map +1 -0
  80. package/dist/api-schemas/memories.js +54 -0
  81. package/dist/api-schemas/memories.js.map +1 -0
  82. package/dist/api-schemas/messages.d.ts +1 -0
  83. package/dist/api-schemas/messages.d.ts.map +1 -1
  84. package/dist/api-schemas/messages.js +4 -4
  85. package/dist/api-schemas/messages.js.map +1 -1
  86. package/dist/api-schemas/models.d.ts +164 -0
  87. package/dist/api-schemas/models.d.ts.map +1 -1
  88. package/dist/api-schemas/models.js +53 -6
  89. package/dist/api-schemas/models.js.map +1 -1
  90. package/dist/api-schemas/nodes.d.ts +97 -0
  91. package/dist/api-schemas/nodes.d.ts.map +1 -1
  92. package/dist/api-schemas/nodes.js +89 -0
  93. package/dist/api-schemas/nodes.js.map +1 -1
  94. package/dist/api-schemas/projects.d.ts +427 -0
  95. package/dist/api-schemas/projects.d.ts.map +1 -0
  96. package/dist/api-schemas/projects.js +224 -0
  97. package/dist/api-schemas/projects.js.map +1 -0
  98. package/dist/api-schemas/recipes.d.ts +172 -0
  99. package/dist/api-schemas/recipes.d.ts.map +1 -0
  100. package/dist/api-schemas/recipes.js +144 -0
  101. package/dist/api-schemas/recipes.js.map +1 -0
  102. package/dist/api-schemas/resources.d.ts +112 -0
  103. package/dist/api-schemas/resources.d.ts.map +1 -0
  104. package/dist/api-schemas/resources.js +44 -0
  105. package/dist/api-schemas/resources.js.map +1 -0
  106. package/dist/api-schemas/runs.d.ts +6 -0
  107. package/dist/api-schemas/runs.d.ts.map +1 -0
  108. package/dist/api-schemas/runs.js +4 -0
  109. package/dist/api-schemas/runs.js.map +1 -0
  110. package/dist/api-schemas/scripts.d.ts +1571 -0
  111. package/dist/api-schemas/scripts.d.ts.map +1 -0
  112. package/dist/api-schemas/scripts.js +153 -0
  113. package/dist/api-schemas/scripts.js.map +1 -0
  114. package/dist/api-schemas/sdk-execution-v1.d.ts +468 -0
  115. package/dist/api-schemas/sdk-execution-v1.d.ts.map +1 -0
  116. package/dist/api-schemas/sdk-execution-v1.js +115 -0
  117. package/dist/api-schemas/sdk-execution-v1.js.map +1 -0
  118. package/dist/api-schemas/sdk-lifecycle-v1.d.ts +217 -0
  119. package/dist/api-schemas/sdk-lifecycle-v1.d.ts.map +1 -0
  120. package/dist/api-schemas/sdk-lifecycle-v1.js +117 -0
  121. package/dist/api-schemas/sdk-lifecycle-v1.js.map +1 -0
  122. package/dist/api-schemas/sdk-models-v1.d.ts +181 -0
  123. package/dist/api-schemas/sdk-models-v1.d.ts.map +1 -0
  124. package/dist/api-schemas/sdk-models-v1.js +108 -0
  125. package/dist/api-schemas/sdk-models-v1.js.map +1 -0
  126. package/dist/api-schemas/sdk-v1-http-operations.d.ts +941 -0
  127. package/dist/api-schemas/sdk-v1-http-operations.d.ts.map +1 -0
  128. package/dist/api-schemas/sdk-v1-http-operations.js +465 -0
  129. package/dist/api-schemas/sdk-v1-http-operations.js.map +1 -0
  130. package/dist/api-schemas/sdk-v1-operations.d.ts +151 -0
  131. package/dist/api-schemas/sdk-v1-operations.d.ts.map +1 -0
  132. package/dist/api-schemas/sdk-v1-operations.js +97 -0
  133. package/dist/api-schemas/sdk-v1-operations.js.map +1 -0
  134. package/dist/api-schemas/sdk-v1-websocket-operations.d.ts +97 -0
  135. package/dist/api-schemas/sdk-v1-websocket-operations.d.ts.map +1 -0
  136. package/dist/api-schemas/sdk-v1-websocket-operations.js +96 -0
  137. package/dist/api-schemas/sdk-v1-websocket-operations.js.map +1 -0
  138. package/dist/api-schemas/sdk-v1.d.ts +15 -0
  139. package/dist/api-schemas/sdk-v1.d.ts.map +1 -0
  140. package/dist/api-schemas/sdk-v1.js +22 -0
  141. package/dist/api-schemas/sdk-v1.js.map +1 -0
  142. package/dist/api-schemas/segmentation.d.ts +75 -0
  143. package/dist/api-schemas/segmentation.d.ts.map +1 -0
  144. package/dist/api-schemas/segmentation.js +54 -0
  145. package/dist/api-schemas/segmentation.js.map +1 -0
  146. package/dist/api-schemas/settings.d.ts +162 -0
  147. package/dist/api-schemas/settings.d.ts.map +1 -1
  148. package/dist/api-schemas/settings.js +71 -0
  149. package/dist/api-schemas/settings.js.map +1 -1
  150. package/dist/api-schemas/sketch.d.ts +858 -0
  151. package/dist/api-schemas/sketch.d.ts.map +1 -0
  152. package/dist/api-schemas/sketch.js +546 -0
  153. package/dist/api-schemas/sketch.js.map +1 -0
  154. package/dist/api-schemas/skills.d.ts +27 -14
  155. package/dist/api-schemas/skills.d.ts.map +1 -1
  156. package/dist/api-schemas/skills.js +64 -11
  157. package/dist/api-schemas/skills.js.map +1 -1
  158. package/dist/api-schemas/storage.d.ts +8 -0
  159. package/dist/api-schemas/storage.d.ts.map +1 -1
  160. package/dist/api-schemas/storage.js +7 -0
  161. package/dist/api-schemas/storage.js.map +1 -1
  162. package/dist/api-schemas/storyboards.d.ts +8595 -0
  163. package/dist/api-schemas/storyboards.d.ts.map +1 -0
  164. package/dist/api-schemas/storyboards.js +524 -0
  165. package/dist/api-schemas/storyboards.js.map +1 -0
  166. package/dist/api-schemas/threads.d.ts +12 -4
  167. package/dist/api-schemas/threads.d.ts.map +1 -1
  168. package/dist/api-schemas/threads.js +12 -4
  169. package/dist/api-schemas/threads.js.map +1 -1
  170. package/dist/api-schemas/timeline-tool-contracts.d.ts +1687 -0
  171. package/dist/api-schemas/timeline-tool-contracts.d.ts.map +1 -0
  172. package/dist/api-schemas/timeline-tool-contracts.js +725 -0
  173. package/dist/api-schemas/timeline-tool-contracts.js.map +1 -0
  174. package/dist/api-schemas/timeline-tool-params.d.ts +1270 -0
  175. package/dist/api-schemas/timeline-tool-params.d.ts.map +1 -0
  176. package/dist/api-schemas/timeline-tool-params.js +1529 -0
  177. package/dist/api-schemas/timeline-tool-params.js.map +1 -0
  178. package/dist/api-schemas/timeline.d.ts +13740 -0
  179. package/dist/api-schemas/timeline.d.ts.map +1 -0
  180. package/dist/api-schemas/timeline.js +1928 -0
  181. package/dist/api-schemas/timeline.js.map +1 -0
  182. package/dist/api-schemas/ui-tool-contract.d.ts +35 -0
  183. package/dist/api-schemas/ui-tool-contract.d.ts.map +1 -0
  184. package/dist/api-schemas/ui-tool-contract.js +31 -0
  185. package/dist/api-schemas/ui-tool-contract.js.map +1 -0
  186. package/dist/api-schemas/workflows.d.ts +904 -18
  187. package/dist/api-schemas/workflows.d.ts.map +1 -1
  188. package/dist/api-schemas/workflows.js +507 -6
  189. package/dist/api-schemas/workflows.js.map +1 -1
  190. package/dist/api-schemas/workspace.d.ts +45 -0
  191. package/dist/api-schemas/workspace.d.ts.map +1 -1
  192. package/dist/api-schemas/workspace.js +47 -1
  193. package/dist/api-schemas/workspace.js.map +1 -1
  194. package/dist/api-types.d.ts +651 -27
  195. package/dist/api-types.d.ts.map +1 -1
  196. package/dist/api-types.js +252 -1
  197. package/dist/api-types.js.map +1 -1
  198. package/dist/app-deployment.d.ts +37 -0
  199. package/dist/app-deployment.d.ts.map +1 -0
  200. package/dist/app-deployment.js +42 -0
  201. package/dist/app-deployment.js.map +1 -0
  202. package/dist/asset-file-name.d.ts +15 -0
  203. package/dist/asset-file-name.d.ts.map +1 -0
  204. package/dist/asset-file-name.js +61 -0
  205. package/dist/asset-file-name.js.map +1 -0
  206. package/dist/asset-generation.d.ts +58 -0
  207. package/dist/asset-generation.d.ts.map +1 -0
  208. package/dist/asset-generation.js +147 -0
  209. package/dist/asset-generation.js.map +1 -0
  210. package/dist/blend-modes.d.ts +20 -0
  211. package/dist/blend-modes.d.ts.map +1 -0
  212. package/dist/blend-modes.js +33 -0
  213. package/dist/blend-modes.js.map +1 -0
  214. package/dist/bridge-frames.d.ts +654 -0
  215. package/dist/bridge-frames.d.ts.map +1 -0
  216. package/dist/bridge-frames.js +448 -0
  217. package/dist/bridge-frames.js.map +1 -0
  218. package/dist/bridge-frames.schema.json +862 -0
  219. package/dist/bridge-protocol.d.ts +57 -20
  220. package/dist/bridge-protocol.d.ts.map +1 -1
  221. package/dist/bridge-protocol.js +57 -20
  222. package/dist/bridge-protocol.js.map +1 -1
  223. package/dist/browser-run-traces.d.ts +102 -0
  224. package/dist/browser-run-traces.d.ts.map +1 -0
  225. package/dist/browser-run-traces.js +30 -0
  226. package/dist/browser-run-traces.js.map +1 -0
  227. package/dist/builtin-packs.d.ts +45 -0
  228. package/dist/builtin-packs.d.ts.map +1 -0
  229. package/dist/builtin-packs.js +121 -0
  230. package/dist/builtin-packs.js.map +1 -0
  231. package/dist/caption-word.d.ts +15 -0
  232. package/dist/caption-word.d.ts.map +1 -0
  233. package/dist/caption-word.js +10 -0
  234. package/dist/caption-word.js.map +1 -0
  235. package/dist/cloud-profile.d.ts +187 -0
  236. package/dist/cloud-profile.d.ts.map +1 -0
  237. package/dist/cloud-profile.js +286 -0
  238. package/dist/cloud-profile.js.map +1 -0
  239. package/dist/creative.d.ts +580 -0
  240. package/dist/creative.d.ts.map +1 -0
  241. package/dist/creative.js +274 -0
  242. package/dist/creative.js.map +1 -0
  243. package/dist/custom-providers.d.ts +70 -0
  244. package/dist/custom-providers.d.ts.map +1 -0
  245. package/dist/custom-providers.js +125 -0
  246. package/dist/custom-providers.js.map +1 -0
  247. package/dist/document-ops.d.ts +15 -0
  248. package/dist/document-ops.d.ts.map +1 -0
  249. package/dist/document-ops.js +2 -0
  250. package/dist/document-ops.js.map +1 -0
  251. package/dist/game-assets.d.ts +344 -0
  252. package/dist/game-assets.d.ts.map +1 -0
  253. package/dist/game-assets.js +297 -0
  254. package/dist/game-assets.js.map +1 -0
  255. package/dist/game-authoring.d.ts +113 -0
  256. package/dist/game-authoring.d.ts.map +1 -0
  257. package/dist/game-authoring.js +37 -0
  258. package/dist/game-authoring.js.map +1 -0
  259. package/dist/game-design.d.ts +90 -0
  260. package/dist/game-design.d.ts.map +1 -0
  261. package/dist/game-design.js +417 -0
  262. package/dist/game-design.js.map +1 -0
  263. package/dist/game-flow-prompt.d.ts +68 -0
  264. package/dist/game-flow-prompt.d.ts.map +1 -0
  265. package/dist/game-flow-prompt.js +121 -0
  266. package/dist/game-flow-prompt.js.map +1 -0
  267. package/dist/game-graph.d.ts +96 -0
  268. package/dist/game-graph.d.ts.map +1 -0
  269. package/dist/game-graph.js +481 -0
  270. package/dist/game-graph.js.map +1 -0
  271. package/dist/game-migration.d.ts +4 -0
  272. package/dist/game-migration.d.ts.map +1 -0
  273. package/dist/game-migration.js +6 -0
  274. package/dist/game-migration.js.map +1 -0
  275. package/dist/game-slot-prompt.d.ts +90 -0
  276. package/dist/game-slot-prompt.d.ts.map +1 -0
  277. package/dist/game-slot-prompt.js +237 -0
  278. package/dist/game-slot-prompt.js.map +1 -0
  279. package/dist/game-step.d.ts +10 -0
  280. package/dist/game-step.d.ts.map +1 -0
  281. package/dist/game-step.js +2 -0
  282. package/dist/game-step.js.map +1 -0
  283. package/dist/game.d.ts +2 -0
  284. package/dist/game.d.ts.map +1 -0
  285. package/dist/game.js +2 -0
  286. package/dist/game.js.map +1 -0
  287. package/dist/game2d/components/animator.d.ts +22 -0
  288. package/dist/game2d/components/animator.d.ts.map +1 -0
  289. package/dist/game2d/components/animator.js +6 -0
  290. package/dist/game2d/components/animator.js.map +1 -0
  291. package/dist/game2d/components/assets.d.ts +132 -0
  292. package/dist/game2d/components/assets.d.ts.map +1 -0
  293. package/dist/game2d/components/assets.js +52 -0
  294. package/dist/game2d/components/assets.js.map +1 -0
  295. package/dist/game2d/components/audioSource.d.ts +7 -0
  296. package/dist/game2d/components/audioSource.d.ts.map +1 -0
  297. package/dist/game2d/components/audioSource.js +4 -0
  298. package/dist/game2d/components/audioSource.js.map +1 -0
  299. package/dist/game2d/components/background.d.ts +38 -0
  300. package/dist/game2d/components/background.d.ts.map +1 -0
  301. package/dist/game2d/components/background.js +10 -0
  302. package/dist/game2d/components/background.js.map +1 -0
  303. package/dist/game2d/components/behaviors.d.ts +50 -0
  304. package/dist/game2d/components/behaviors.d.ts.map +1 -0
  305. package/dist/game2d/components/behaviors.js +15 -0
  306. package/dist/game2d/components/behaviors.js.map +1 -0
  307. package/dist/game2d/components/body2d.d.ts +13 -0
  308. package/dist/game2d/components/body2d.d.ts.map +1 -0
  309. package/dist/game2d/components/body2d.js +4 -0
  310. package/dist/game2d/components/body2d.js.map +1 -0
  311. package/dist/game2d/components/camera2d.d.ts +7 -0
  312. package/dist/game2d/components/camera2d.d.ts.map +1 -0
  313. package/dist/game2d/components/camera2d.js +4 -0
  314. package/dist/game2d/components/camera2d.js.map +1 -0
  315. package/dist/game2d/components/collider2d.d.ts +10 -0
  316. package/dist/game2d/components/collider2d.d.ts.map +1 -0
  317. package/dist/game2d/components/collider2d.js +5 -0
  318. package/dist/game2d/components/collider2d.js.map +1 -0
  319. package/dist/game2d/components/common.d.ts +16 -0
  320. package/dist/game2d/components/common.d.ts.map +1 -0
  321. package/dist/game2d/components/common.js +13 -0
  322. package/dist/game2d/components/common.js.map +1 -0
  323. package/dist/game2d/components/entity-components.d.ts +181 -0
  324. package/dist/game2d/components/entity-components.d.ts.map +1 -0
  325. package/dist/game2d/components/entity-components.js +21 -0
  326. package/dist/game2d/components/entity-components.js.map +1 -0
  327. package/dist/game2d/components/light2d.d.ts +12 -0
  328. package/dist/game2d/components/light2d.d.ts.map +1 -0
  329. package/dist/game2d/components/light2d.js +5 -0
  330. package/dist/game2d/components/light2d.js.map +1 -0
  331. package/dist/game2d/components/lighting.d.ts +17 -0
  332. package/dist/game2d/components/lighting.d.ts.map +1 -0
  333. package/dist/game2d/components/lighting.js +6 -0
  334. package/dist/game2d/components/lighting.js.map +1 -0
  335. package/dist/game2d/components/music.d.ts +8 -0
  336. package/dist/game2d/components/music.d.ts.map +1 -0
  337. package/dist/game2d/components/music.js +4 -0
  338. package/dist/game2d/components/music.js.map +1 -0
  339. package/dist/game2d/components/sprite.d.ts +26 -0
  340. package/dist/game2d/components/sprite.d.ts.map +1 -0
  341. package/dist/game2d/components/sprite.js +6 -0
  342. package/dist/game2d/components/sprite.js.map +1 -0
  343. package/dist/game2d/components/tilemap.d.ts +23 -0
  344. package/dist/game2d/components/tilemap.d.ts.map +1 -0
  345. package/dist/game2d/components/tilemap.js +6 -0
  346. package/dist/game2d/components/tilemap.js.map +1 -0
  347. package/dist/game2d/components/transform.d.ts +10 -0
  348. package/dist/game2d/components/transform.d.ts.map +1 -0
  349. package/dist/game2d/components/transform.js +10 -0
  350. package/dist/game2d/components/transform.js.map +1 -0
  351. package/dist/game2d/components/visual-animation.d.ts +148 -0
  352. package/dist/game2d/components/visual-animation.d.ts.map +1 -0
  353. package/dist/game2d/components/visual-animation.js +10 -0
  354. package/dist/game2d/components/visual-animation.js.map +1 -0
  355. package/dist/game2d/index.d.ts +1426 -0
  356. package/dist/game2d/index.d.ts.map +1 -0
  357. package/dist/game2d/index.js +135 -0
  358. package/dist/game2d/index.js.map +1 -0
  359. package/dist/game3d/components/animator.d.ts +9 -0
  360. package/dist/game3d/components/animator.d.ts.map +1 -0
  361. package/dist/game3d/components/animator.js +7 -0
  362. package/dist/game3d/components/animator.js.map +1 -0
  363. package/dist/game3d/components/assets.d.ts +261 -0
  364. package/dist/game3d/components/assets.d.ts.map +1 -0
  365. package/dist/game3d/components/assets.js +21 -0
  366. package/dist/game3d/components/assets.js.map +1 -0
  367. package/dist/game3d/components/behaviors.d.ts +66 -0
  368. package/dist/game3d/components/behaviors.d.ts.map +1 -0
  369. package/dist/game3d/components/behaviors.js +9 -0
  370. package/dist/game3d/components/behaviors.js.map +1 -0
  371. package/dist/game3d/components/body.d.ts +53 -0
  372. package/dist/game3d/components/body.d.ts.map +1 -0
  373. package/dist/game3d/components/body.js +15 -0
  374. package/dist/game3d/components/body.js.map +1 -0
  375. package/dist/game3d/components/camera.d.ts +49 -0
  376. package/dist/game3d/components/camera.d.ts.map +1 -0
  377. package/dist/game3d/components/camera.js +20 -0
  378. package/dist/game3d/components/camera.js.map +1 -0
  379. package/dist/game3d/components/character.d.ts +16 -0
  380. package/dist/game3d/components/character.d.ts.map +1 -0
  381. package/dist/game3d/components/character.js +10 -0
  382. package/dist/game3d/components/character.js.map +1 -0
  383. package/dist/game3d/components/collider-geometry.d.ts +7 -0
  384. package/dist/game3d/components/collider-geometry.d.ts.map +1 -0
  385. package/dist/game3d/components/collider-geometry.js +13 -0
  386. package/dist/game3d/components/collider-geometry.js.map +1 -0
  387. package/dist/game3d/components/collider.d.ts +79 -0
  388. package/dist/game3d/components/collider.d.ts.map +1 -0
  389. package/dist/game3d/components/collider.js +16 -0
  390. package/dist/game3d/components/collider.js.map +1 -0
  391. package/dist/game3d/components/common.d.ts +8 -0
  392. package/dist/game3d/components/common.d.ts.map +1 -0
  393. package/dist/game3d/components/common.js +8 -0
  394. package/dist/game3d/components/common.js.map +1 -0
  395. package/dist/game3d/components/environment.d.ts +20 -0
  396. package/dist/game3d/components/environment.d.ts.map +1 -0
  397. package/dist/game3d/components/environment.js +8 -0
  398. package/dist/game3d/components/environment.js.map +1 -0
  399. package/dist/game3d/components/interaction-actor.d.ts +6 -0
  400. package/dist/game3d/components/interaction-actor.d.ts.map +1 -0
  401. package/dist/game3d/components/interaction-actor.js +3 -0
  402. package/dist/game3d/components/interaction-actor.js.map +1 -0
  403. package/dist/game3d/components/light.d.ts +23 -0
  404. package/dist/game3d/components/light.d.ts.map +1 -0
  405. package/dist/game3d/components/light.js +9 -0
  406. package/dist/game3d/components/light.js.map +1 -0
  407. package/dist/game3d/components/material.d.ts +15 -0
  408. package/dist/game3d/components/material.d.ts.map +1 -0
  409. package/dist/game3d/components/material.js +9 -0
  410. package/dist/game3d/components/material.js.map +1 -0
  411. package/dist/game3d/components/model.d.ts +22 -0
  412. package/dist/game3d/components/model.d.ts.map +1 -0
  413. package/dist/game3d/components/model.js +8 -0
  414. package/dist/game3d/components/model.js.map +1 -0
  415. package/dist/game3d/components/primitive.d.ts +31 -0
  416. package/dist/game3d/components/primitive.d.ts.map +1 -0
  417. package/dist/game3d/components/primitive.js +10 -0
  418. package/dist/game3d/components/primitive.js.map +1 -0
  419. package/dist/game3d/components/transform.d.ts +24 -0
  420. package/dist/game3d/components/transform.d.ts.map +1 -0
  421. package/dist/game3d/components/transform.js +10 -0
  422. package/dist/game3d/components/transform.js.map +1 -0
  423. package/dist/game3d/index.d.ts +4045 -0
  424. package/dist/game3d/index.d.ts.map +1 -0
  425. package/dist/game3d/index.js +159 -0
  426. package/dist/game3d/index.js.map +1 -0
  427. package/dist/game3d.d.ts +2 -0
  428. package/dist/game3d.d.ts.map +1 -0
  429. package/dist/game3d.js +2 -0
  430. package/dist/game3d.js.map +1 -0
  431. package/dist/graph.d.ts +192 -5
  432. package/dist/graph.d.ts.map +1 -1
  433. package/dist/graph.js +515 -0
  434. package/dist/graph.js.map +1 -1
  435. package/dist/index.d.ts +59 -2
  436. package/dist/index.d.ts.map +1 -1
  437. package/dist/index.js +57 -2
  438. package/dist/index.js.map +1 -1
  439. package/dist/loop.d.ts +38 -0
  440. package/dist/loop.d.ts.map +1 -0
  441. package/dist/loop.js +69 -0
  442. package/dist/loop.js.map +1 -0
  443. package/dist/mcp-server-config.d.ts +113 -0
  444. package/dist/mcp-server-config.d.ts.map +1 -0
  445. package/dist/mcp-server-config.js +147 -0
  446. package/dist/mcp-server-config.js.map +1 -0
  447. package/dist/messages.d.ts +1577 -243
  448. package/dist/messages.d.ts.map +1 -1
  449. package/dist/messages.js +718 -22
  450. package/dist/messages.js.map +1 -1
  451. package/dist/missing-runtime-package.d.ts +23 -0
  452. package/dist/missing-runtime-package.d.ts.map +1 -0
  453. package/dist/missing-runtime-package.js +34 -0
  454. package/dist/missing-runtime-package.js.map +1 -0
  455. package/dist/model-selection.d.ts +20 -0
  456. package/dist/model-selection.d.ts.map +1 -0
  457. package/dist/model-selection.js +27 -0
  458. package/dist/model-selection.js.map +1 -0
  459. package/dist/nodetool-models.d.ts +71 -0
  460. package/dist/nodetool-models.d.ts.map +1 -0
  461. package/dist/nodetool-models.js +138 -0
  462. package/dist/nodetool-models.js.map +1 -0
  463. package/dist/package-assets.d.ts +39 -0
  464. package/dist/package-assets.d.ts.map +1 -0
  465. package/dist/package-assets.js +63 -0
  466. package/dist/package-assets.js.map +1 -0
  467. package/dist/platform.d.ts +66 -0
  468. package/dist/platform.d.ts.map +1 -0
  469. package/dist/platform.js +68 -0
  470. package/dist/platform.js.map +1 -0
  471. package/dist/predicates.d.ts +43 -0
  472. package/dist/predicates.d.ts.map +1 -0
  473. package/dist/predicates.js +65 -0
  474. package/dist/predicates.js.map +1 -0
  475. package/dist/processing-messages.schema.json +2545 -0
  476. package/dist/production-authoring.d.ts +931 -0
  477. package/dist/production-authoring.d.ts.map +1 -0
  478. package/dist/production-authoring.js +931 -0
  479. package/dist/production-authoring.js.map +1 -0
  480. package/dist/python-packs.d.ts +25 -0
  481. package/dist/python-packs.d.ts.map +1 -0
  482. package/dist/python-packs.js +51 -0
  483. package/dist/python-packs.js.map +1 -0
  484. package/dist/render-record.d.ts +228 -0
  485. package/dist/render-record.d.ts.map +1 -0
  486. package/dist/render-record.js +212 -0
  487. package/dist/render-record.js.map +1 -0
  488. package/dist/resource-id.d.ts +22 -0
  489. package/dist/resource-id.d.ts.map +1 -0
  490. package/dist/resource-id.js +32 -0
  491. package/dist/resource-id.js.map +1 -0
  492. package/dist/resource-uri.d.ts +15 -0
  493. package/dist/resource-uri.d.ts.map +1 -0
  494. package/dist/resource-uri.js +91 -0
  495. package/dist/resource-uri.js.map +1 -0
  496. package/dist/run-readers.d.ts +760 -0
  497. package/dist/run-readers.d.ts.map +1 -0
  498. package/dist/run-readers.js +153 -0
  499. package/dist/run-readers.js.map +1 -0
  500. package/dist/run-trace.d.ts +206 -0
  501. package/dist/run-trace.d.ts.map +1 -0
  502. package/dist/run-trace.js +177 -0
  503. package/dist/run-trace.js.map +1 -0
  504. package/dist/sandbox-capability.d.ts +86 -0
  505. package/dist/sandbox-capability.d.ts.map +1 -0
  506. package/dist/sandbox-capability.js +106 -0
  507. package/dist/sandbox-capability.js.map +1 -0
  508. package/dist/sandbox-host.d.ts +98 -0
  509. package/dist/sandbox-host.d.ts.map +1 -0
  510. package/dist/sandbox-host.js +311 -0
  511. package/dist/sandbox-host.js.map +1 -0
  512. package/dist/sandbox-package.d.ts +674 -0
  513. package/dist/sandbox-package.d.ts.map +1 -0
  514. package/dist/sandbox-package.js +622 -0
  515. package/dist/sandbox-package.js.map +1 -0
  516. package/dist/sandbox-wasm.d.ts +84 -0
  517. package/dist/sandbox-wasm.d.ts.map +1 -0
  518. package/dist/sandbox-wasm.js +139 -0
  519. package/dist/sandbox-wasm.js.map +1 -0
  520. package/dist/screenplay-authoring.d.ts +69 -0
  521. package/dist/screenplay-authoring.d.ts.map +1 -0
  522. package/dist/screenplay-authoring.js +352 -0
  523. package/dist/screenplay-authoring.js.map +1 -0
  524. package/dist/script-authoring.d.ts +161 -0
  525. package/dist/script-authoring.d.ts.map +1 -0
  526. package/dist/script-authoring.js +503 -0
  527. package/dist/script-authoring.js.map +1 -0
  528. package/dist/script-fill.d.ts +39 -0
  529. package/dist/script-fill.d.ts.map +1 -0
  530. package/dist/script-fill.js +67 -0
  531. package/dist/script-fill.js.map +1 -0
  532. package/dist/script-link.d.ts +110 -0
  533. package/dist/script-link.d.ts.map +1 -0
  534. package/dist/script-link.js +252 -0
  535. package/dist/script-link.js.map +1 -0
  536. package/dist/script-pace.d.ts +4 -0
  537. package/dist/script-pace.d.ts.map +1 -0
  538. package/dist/script-pace.js +11 -0
  539. package/dist/script-pace.js.map +1 -0
  540. package/dist/sha256.d.ts +11 -0
  541. package/dist/sha256.d.ts.map +1 -0
  542. package/dist/sha256.js +110 -0
  543. package/dist/sha256.js.map +1 -0
  544. package/dist/shot-prompt.d.ts +78 -0
  545. package/dist/shot-prompt.d.ts.map +1 -0
  546. package/dist/shot-prompt.js +120 -0
  547. package/dist/shot-prompt.js.map +1 -0
  548. package/dist/skill-document.d.ts +36 -0
  549. package/dist/skill-document.d.ts.map +1 -0
  550. package/dist/skill-document.js +140 -0
  551. package/dist/skill-document.js.map +1 -0
  552. package/dist/storyboard-render-spec.d.ts +4 -0
  553. package/dist/storyboard-render-spec.d.ts.map +1 -0
  554. package/dist/storyboard-render-spec.js +4 -0
  555. package/dist/storyboard-render-spec.js.map +1 -0
  556. package/dist/style-presets.d.ts +73 -0
  557. package/dist/style-presets.d.ts.map +1 -0
  558. package/dist/style-presets.js +147 -0
  559. package/dist/style-presets.js.map +1 -0
  560. package/dist/supervisor.d.ts +227 -0
  561. package/dist/supervisor.d.ts.map +1 -0
  562. package/dist/supervisor.js +116 -0
  563. package/dist/supervisor.js.map +1 -0
  564. package/dist/token-providers.d.ts +31 -0
  565. package/dist/token-providers.d.ts.map +1 -0
  566. package/dist/token-providers.js +52 -0
  567. package/dist/token-providers.js.map +1 -0
  568. package/dist/toolSchemas.d.ts +18 -14
  569. package/dist/toolSchemas.d.ts.map +1 -1
  570. package/dist/toolSchemas.js +30 -31
  571. package/dist/toolSchemas.js.map +1 -1
  572. package/dist/triggers.d.ts +41 -0
  573. package/dist/triggers.d.ts.map +1 -0
  574. package/dist/triggers.js +50 -0
  575. package/dist/triggers.js.map +1 -0
  576. package/dist/trpc-policy.d.ts +3 -0
  577. package/dist/trpc-policy.d.ts.map +1 -0
  578. package/dist/trpc-policy.js +3 -0
  579. package/dist/trpc-policy.js.map +1 -0
  580. package/dist/type-metadata.d.ts +5 -0
  581. package/dist/type-metadata.d.ts.map +1 -1
  582. package/dist/type-metadata.js +17 -8
  583. package/dist/type-metadata.js.map +1 -1
  584. package/dist/typecheck.d.ts.map +1 -1
  585. package/dist/typecheck.js +5 -4
  586. package/dist/typecheck.js.map +1 -1
  587. package/dist/wasm-binary.d.ts +61 -0
  588. package/dist/wasm-binary.d.ts.map +1 -0
  589. package/dist/wasm-binary.js +215 -0
  590. package/dist/wasm-binary.js.map +1 -0
  591. package/dist/workflow-document-revision.d.ts +4 -0
  592. package/dist/workflow-document-revision.d.ts.map +1 -0
  593. package/dist/workflow-document-revision.js +111 -0
  594. package/dist/workflow-document-revision.js.map +1 -0
  595. package/dist/workflow-plan.d.ts +274 -0
  596. package/dist/workflow-plan.d.ts.map +1 -0
  597. package/dist/workflow-plan.js +667 -0
  598. package/dist/workflow-plan.js.map +1 -0
  599. package/dist/wrap-primitives.d.ts +0 -11
  600. package/dist/wrap-primitives.d.ts.map +1 -1
  601. package/dist/wrap-primitives.js +3 -9
  602. package/dist/wrap-primitives.js.map +1 -1
  603. package/dist/ws-commands.d.ts +770 -0
  604. package/dist/ws-commands.d.ts.map +1 -0
  605. package/dist/ws-commands.js +624 -0
  606. package/dist/ws-commands.js.map +1 -0
  607. package/dist/zod-schema.d.ts +20 -0
  608. package/dist/zod-schema.d.ts.map +1 -0
  609. package/dist/zod-schema.js +298 -0
  610. package/dist/zod-schema.js.map +1 -0
  611. package/package.json +96 -7
  612. package/schema/sdk-v1.asyncapi.implemented.json +65 -0
  613. package/schema/sdk-v1.asyncapi.json +65 -0
  614. package/schema/sdk-v1.discovery.schema.json +1218 -0
  615. package/schema/sdk-v1.execution.schema.json +2792 -0
  616. package/schema/sdk-v1.lifecycle.schema.json +1031 -0
  617. package/schema/sdk-v1.manifest.json +71 -0
  618. package/schema/sdk-v1.openapi.implemented.json +730 -0
  619. package/schema/sdk-v1.openapi.json +730 -0
  620. package/schema/sdk-v1.operations.json +732 -0
  621. package/dist/agent-protocol.d.ts +0 -217
  622. package/dist/agent-protocol.d.ts.map +0 -1
  623. package/dist/agent-protocol.js +0 -85
  624. package/dist/agent-protocol.js.map +0 -1
@@ -0,0 +1,120 @@
1
+ /**
2
+ * Shot → prompt composition.
3
+ *
4
+ * One pure module so the editor (`useGenerateShot`) and the headless render
5
+ * capabilities (`render_storyboard_stills`, `render_storyboard_clips`) send the
6
+ * same words to the same model. A prompt that differs between the two surfaces
7
+ * makes a board impossible to reason about: the same shot would come back
8
+ * looking different depending on who pressed render.
9
+ *
10
+ * The field → mode mapping is the contract (PRD § 7.7.5):
11
+ *
12
+ * | Field | Still | Clip (keyframe) | Clip (direct) |
13
+ * | ------------------ | ---------------- | --------------- | --------------- |
14
+ * | `action` | yes | yes | yes |
15
+ * | `camera.framing` | `<framing> shot` | — | `<framing> shot`|
16
+ * | `camera.angle` | yes | — | yes |
17
+ * | `camera.lens` | `<lens> lens` | — | `<lens> lens` |
18
+ * | scene `lighting` | yes | — | yes |
19
+ * | `motion` | — | yes | yes |
20
+ * | `camera.movement` | — | yes | yes |
21
+ * | `camera.equipment` | — | yes | yes |
22
+ * | board `style` | yes | — | yes |
23
+ *
24
+ * A keyframe-mode clip animates a still that already carries framing, lens,
25
+ * lighting and style, so repeating them in the video prompt only fights the
26
+ * first-frame conditioning. A direct clip has no still, so it carries
27
+ * everything. A reference clip has no still either — its entity images
28
+ * condition the render, not a first frame — so it composes like a direct one.
29
+ *
30
+ * {@link clipPromptFor} is the one place that mapping lives: every render
31
+ * surface and the staleness record call it rather than branching on the mode
32
+ * themselves, because a surface that branched differently would render one
33
+ * prompt and hash another.
34
+ *
35
+ * `dialogue`, `notes` and `duration_seconds` never enter a prompt: the first
36
+ * two are words for people, the third is a render parameter.
37
+ *
38
+ * Entity seasoning is not here — the two surfaces pass entities differently
39
+ * (the editor appends `entity://` tokens for the server to expand, the
40
+ * capabilities send a structured `entities` param), and both start from
41
+ * `entitiesForShot`.
42
+ */
43
+ import { shotRenderMode } from "./creative.js";
44
+ /** Trimmed, comma-separated, empties dropped. */
45
+ const compose = (parts) => parts
46
+ .map((part) => (part ?? "").trim())
47
+ .filter((part) => part.length > 0)
48
+ .join(", ");
49
+ /** `"85mm"` + `"lens"` → `"85mm lens"`, so the model reads it as direction. */
50
+ const qualified = (value, noun) => {
51
+ const trimmed = (value ?? "").trim();
52
+ return trimmed.length > 0 ? `${trimmed} ${noun}` : undefined;
53
+ };
54
+ /**
55
+ * The scene a shot belongs to, or null when it has none (legacy shots) or the
56
+ * scene has been dropped. Both render surfaces need it to reach `lighting`.
57
+ */
58
+ export function sceneForShot(shot, scenes) {
59
+ if (!shot.scene_id || !scenes) {
60
+ return null;
61
+ }
62
+ return scenes.find((scene) => scene.id === shot.scene_id) ?? null;
63
+ }
64
+ /** Still prompt: what is in frame, how it is shot, how it is lit, the look. */
65
+ export function keyframePrompt(shot, context = {}) {
66
+ const camera = shot.camera;
67
+ return compose([
68
+ shot.action,
69
+ qualified(camera?.framing, "shot"),
70
+ camera?.angle,
71
+ qualified(camera?.lens, "lens"),
72
+ context.scene?.lighting,
73
+ context.style
74
+ ]);
75
+ }
76
+ /**
77
+ * Keyframe-mode clip prompt: what moves, what is in frame, and how the camera
78
+ * moves. Framing, lighting and style come from the still being animated, so
79
+ * they are deliberately absent — this takes no context.
80
+ */
81
+ export function clipPrompt(shot) {
82
+ const camera = shot.camera;
83
+ return compose([
84
+ shot.motion,
85
+ shot.action,
86
+ camera?.movement,
87
+ camera?.equipment
88
+ ]);
89
+ }
90
+ /**
91
+ * Direct-mode clip prompt: no still carries the look into the render, so the
92
+ * prompt carries all of it — the still's fields plus the motion ones.
93
+ */
94
+ export function directClipPrompt(shot, context = {}) {
95
+ const camera = shot.camera;
96
+ return compose([
97
+ shot.action,
98
+ qualified(camera?.framing, "shot"),
99
+ camera?.angle,
100
+ qualified(camera?.lens, "lens"),
101
+ context.scene?.lighting,
102
+ shot.motion,
103
+ camera?.movement,
104
+ camera?.equipment,
105
+ context.style
106
+ ]);
107
+ }
108
+ /**
109
+ * The clip prompt for a shot in `mode` — `directClipPrompt` for a mode with no
110
+ * still to condition on (`direct`, `reference`), `clipPrompt` for `keyframe`.
111
+ *
112
+ * Pass `mode` when a call overrides the shot's own; omit it to read
113
+ * `shot.render_mode`.
114
+ */
115
+ export function clipPromptFor(shot, context = {}, mode = shotRenderMode(shot)) {
116
+ return mode === "keyframe"
117
+ ? clipPrompt(shot)
118
+ : directClipPrompt(shot, context);
119
+ }
120
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AC,IAAI,EAAE,OAAO,CAAC,CAAC;AACtC,CAAC"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * SKILL.md parsing — frontmatter, body, and the body's `##` sections.
3
+ *
4
+ * The format is the agent skill format, and this is the parser the agent
5
+ * package has always used, moved down the dependency order so sandbox package
6
+ * discovery (node-sdk) can read a pack's SKILL.md with exactly the same rules
7
+ * the skill system applies. It is string in, data out — no filesystem, no
8
+ * environment — so protocol is the lowest layer it fits in.
9
+ */
10
+ /** A parsed SKILL.md: its frontmatter identity and its instruction body. */
11
+ export interface SkillDocument {
12
+ name: string;
13
+ description: string;
14
+ instructions: string;
15
+ }
16
+ /** Parse minimal YAML frontmatter (key: value pairs). */
17
+ export declare function parseFrontmatter(frontmatter: string): Record<string, string>;
18
+ /** A skill name is a short lowercase slug that does not claim a vendor. */
19
+ export declare function isValidSkillName(name: string): boolean;
20
+ /** A skill description is one bounded line with no markup in it. */
21
+ export declare function isValidSkillDescription(description: string): boolean;
22
+ /**
23
+ * Parse a SKILL.md source into its document, or `null` when the frontmatter,
24
+ * name, description or body does not hold up.
25
+ */
26
+ export declare function parseSkillDocument(source: string): SkillDocument | null;
27
+ /**
28
+ * Split an instruction body on its `##` headings.
29
+ *
30
+ * A pack that exposes several modules documents them as one section each; the
31
+ * keys are the heading text lowercased, so a lookup by specifier, by module
32
+ * name, or by whatever the author wrote all land on the same entry. Text
33
+ * before the first heading belongs to no section and is only part of the body.
34
+ */
35
+ export declare function skillSections(instructions: string): Record<string, string>;
36
+ //# sourceMappingURL=skill-document.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skill-document.d.ts","sourceRoot":"","sources":["../src/skill-document.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAyBH,4EAA4E;AAC5E,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,yDAAyD;AACzD,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,MAAM,0BAkBnD;AAED,2EAA2E;AAC3E,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAKtD;AAED,oEAAoE;AACpE,wBAAgB,uBAAuB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAIpE;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,aAAa,GAAG,IAAI,CA+BvE;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,YAAY,EAAE,MAAM,0BAqBjD"}
@@ -0,0 +1,140 @@
1
+ /**
2
+ * SKILL.md parsing — frontmatter, body, and the body's `##` sections.
3
+ *
4
+ * The format is the agent skill format, and this is the parser the agent
5
+ * package has always used, moved down the dependency order so sandbox package
6
+ * discovery (node-sdk) can read a pack's SKILL.md with exactly the same rules
7
+ * the skill system applies. It is string in, data out — no filesystem, no
8
+ * environment — so protocol is the lowest layer it fits in.
9
+ */
10
+ const INVALID_SKILL_NAME_RE = /[^a-z0-9-]/;
11
+ const XML_TAG_RE = /<[^>]+>/;
12
+ const LINE_BREAK_RE = /[\n\r\u2028\u2029]/;
13
+ const SKILL_RESERVED_TERMS = ["anthropic", "claude"];
14
+ /**
15
+ * `## ` heading text, or `null` for any other line.
16
+ *
17
+ * Deliberately not a regex. The pattern this replaces —
18
+ * `/^##\s+(.+?)\s*$/` — put `\s+`, a lazy `.+?` and `\s*$` next to each
19
+ * other, which backtracks polynomially on a heading followed by a long run of
20
+ * spaces (CodeQL alert 311). SKILL.md bodies are third-party text, so the scan
21
+ * is a single linear pass instead: match the marker, require one whitespace
22
+ * after it, trim the rest.
23
+ */
24
+ function sectionHeading(line) {
25
+ if (!line.startsWith("##"))
26
+ return null;
27
+ const rest = line.slice(2);
28
+ const first = rest.charAt(0);
29
+ if (first !== " " && first !== "\t")
30
+ return null;
31
+ const text = rest.trim();
32
+ return text.length > 0 ? text : null;
33
+ }
34
+ /** Parse minimal YAML frontmatter (key: value pairs). */
35
+ export function parseFrontmatter(frontmatter) {
36
+ const parsed = {};
37
+ for (const rawLine of frontmatter.split("\n")) {
38
+ const line = rawLine.trim();
39
+ if (!line || line.startsWith("#"))
40
+ continue;
41
+ const colonIdx = line.indexOf(":");
42
+ if (colonIdx === -1)
43
+ continue;
44
+ const key = line.slice(0, colonIdx).trim();
45
+ let value = line.slice(colonIdx + 1).trim();
46
+ if ((value.startsWith('"') && value.endsWith('"')) ||
47
+ (value.startsWith("'") && value.endsWith("'"))) {
48
+ value = value.slice(1, -1);
49
+ }
50
+ parsed[key] = value;
51
+ }
52
+ return parsed;
53
+ }
54
+ /** A skill name is a short lowercase slug that does not claim a vendor. */
55
+ export function isValidSkillName(name) {
56
+ if (!name || name.length > 64)
57
+ return false;
58
+ if (INVALID_SKILL_NAME_RE.test(name))
59
+ return false;
60
+ const lowered = name.toLowerCase();
61
+ return !SKILL_RESERVED_TERMS.some((term) => lowered.includes(term));
62
+ }
63
+ /** A skill description is one bounded line with no markup in it. */
64
+ export function isValidSkillDescription(description) {
65
+ if (!description || description.length > 1024)
66
+ return false;
67
+ if (LINE_BREAK_RE.test(description))
68
+ return false;
69
+ return !XML_TAG_RE.test(description);
70
+ }
71
+ /**
72
+ * Parse a SKILL.md source into its document, or `null` when the frontmatter,
73
+ * name, description or body does not hold up.
74
+ */
75
+ export function parseSkillDocument(source) {
76
+ if (!source.startsWith("---"))
77
+ return null;
78
+ // Frontmatter is delimited by the first two `---` fences, and a fence is a
79
+ // whole line. Scanning for the closing line keeps a `---` written inside a
80
+ // value from ending the frontmatter early: splitting on the substring cut
81
+ // the description at the dashes and spilled the rest of the frontmatter into
82
+ // the body, which then read as instructions. `trim` also drops the `\r` of a
83
+ // CRLF source.
84
+ const lines = source.split("\n");
85
+ let close = -1;
86
+ for (let i = 1; i < lines.length; i++) {
87
+ if (lines[i].trim() === "---") {
88
+ close = i;
89
+ break;
90
+ }
91
+ }
92
+ if (close === -1)
93
+ return null;
94
+ const metadata = parseFrontmatter(lines.slice(1, close).join("\n"));
95
+ const name = (metadata["name"] ?? "").trim();
96
+ const description = (metadata["description"] ?? "").trim();
97
+ // Everything after the closing fence, so a `---` horizontal rule inside the
98
+ // body survives.
99
+ const instructions = lines.slice(close + 1).join("\n").trim();
100
+ if (!isValidSkillName(name))
101
+ return null;
102
+ if (!isValidSkillDescription(description))
103
+ return null;
104
+ if (!instructions)
105
+ return null;
106
+ return { name, description, instructions };
107
+ }
108
+ /**
109
+ * Split an instruction body on its `##` headings.
110
+ *
111
+ * A pack that exposes several modules documents them as one section each; the
112
+ * keys are the heading text lowercased, so a lookup by specifier, by module
113
+ * name, or by whatever the author wrote all land on the same entry. Text
114
+ * before the first heading belongs to no section and is only part of the body.
115
+ */
116
+ export function skillSections(instructions) {
117
+ const sections = {};
118
+ let heading;
119
+ let lines = [];
120
+ const flush = () => {
121
+ if (heading === undefined)
122
+ return;
123
+ const body = lines.join("\n").trim();
124
+ if (body)
125
+ sections[heading] = body;
126
+ };
127
+ for (const line of instructions.split("\n")) {
128
+ const found = sectionHeading(line);
129
+ if (found === null) {
130
+ lines.push(line);
131
+ continue;
132
+ }
133
+ flush();
134
+ heading = found.toLowerCase();
135
+ lines = [];
136
+ }
137
+ flush();
138
+ return sections;
139
+ }
140
+ //# sourceMappingURL=skill-document.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skill-document.js","sourceRoot":"","sources":["../src/skill-document.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,qBAAqB,GAAG,YAAY,CAAC;AAC3C,MAAM,UAAU,GAAG,SAAS,CAAC;AAC7B,MAAM,aAAa,GAAG,oBAAoB,CAAC;AAC3C,MAAM,oBAAoB,GAAG,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;AACrD;;;;;;;;;GASG;AACH,SAAS,cAAc,CAAC,IAAY;IAClC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;QAAE,OAA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AE,OAAO;QAClC,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC;QACrC,IAAI,IAAI;YAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;IACrC,CAAC,CAAC;IACF,KAAK,MAAM,IAAI,IAAI,YAAY,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;QAC5C,MAAM,KAAK,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;QACnC,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;YACnB,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACjB,SAAS;QACX,CAAC;QACD,KAAK,EAAE,CAAC;QACR,OAAO,GAAG,KAAK,CAAC,WAAW,EAAE,CAAC;QAC9B,KAAK,GAAG,EAAE,CAAC;IACb,CAAC;IACD,KAAK,EAAE,CAAC;IACR,OAAO,QAAQ,CAAC;AAClB,CAAC"}
@@ -0,0 +1,4 @@
1
+ /** Output tiers shared by storyboard editor and headless generation. */
2
+ export declare const STILL_RESOLUTION = "1K";
3
+ export declare const CLIP_RESOLUTION = "1080p";
4
+ //# sourceMappingURL=storyboard-render-spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storyboard-render-spec.d.ts","sourceRoot":"","sources":["../src/storyboard-render-spec.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,eAAO,MAAM,gBAAgB,OAAO,CAAC;AACrC,eAAO,MAAM,eAAe,UAAU,CAAC"}
@@ -0,0 +1,4 @@
1
+ /** Output tiers shared by storyboard editor and headless generation. */
2
+ export const STILL_RESOLUTION = "1K";
3
+ export const CLIP_RESOLUTION = "1080p";
4
+ //# sourceMappingURL=storyboard-render-spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storyboard-render-spec.js","sourceRoot":"","sources":["../src/storyboard-render-spec.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC;AACrC,MAAM,CAAC,MAAM,eAAe,GAAG,OAAO,CAAC"}
@@ -0,0 +1,73 @@
1
+ /**
2
+ * The twelve shipped art-style presets (PRD § 7.3, § 7.7.9).
3
+ *
4
+ * Each preset becomes one read-only system entity of kind `style` in every
5
+ * user's library. `descriptor` is the payload: it is pasted verbatim into every
6
+ * shot prompt the style applies to (§ 7.7.5), so it names palette, light, lens
7
+ * and surface rather than a mood. The name is what the tile says; the model
8
+ * never sees it.
9
+ *
10
+ * The list lives in protocol because two sides read it: the server seeds rows
11
+ * from it, and the setup flow's style step renders tiles from the same order.
12
+ *
13
+ * `thumbnail` is the `package://` path the tile art is served from. Each file
14
+ * ships under `packages/base-nodes/nodetool/assets/nodetool-base/styles/`, and
15
+ * every sample renders the same street corner so the grid compares styles
16
+ * rather than subjects. A tile whose thumbnail does not resolve falls back to a
17
+ * typographic sample, so a new preset works before its art is drawn.
18
+ */
19
+ /** One shipped style: what the tile shows and what the prompt gets. */
20
+ export interface StylePreset {
21
+ /** Stable slug. Part of the seeded entity's row id, so it never changes. */
22
+ id: string;
23
+ /** Tile label. */
24
+ name: string;
25
+ /** Pasted verbatim into every prompt the style applies to. */
26
+ descriptor: string;
27
+ /** `package://` path of the tile art. */
28
+ thumbnail: string;
29
+ }
30
+ export declare const STYLE_PRESETS: readonly StylePreset[];
31
+ /** Metadata key an entity marker lives under on its asset. */
32
+ export declare const ENTITY_METADATA_KEY = "nodetool_entity";
33
+ /**
34
+ * The marker fields a shipped preset carries beyond an ordinary entity's.
35
+ * `system` is what makes the row read-only; `preset_id` is what makes seeding
36
+ * recognisable and, with the row id, idempotent.
37
+ */
38
+ export interface SystemEntityMarkerFields {
39
+ system: true;
40
+ preset_id: string;
41
+ /** `package://` path of the shipped thumbnail. */
42
+ thumbnail: string;
43
+ }
44
+ /** The entity marker a seeded style preset's asset carries. */
45
+ export declare function stylePresetMarker(preset: StylePreset): SystemEntityMarkerFields & {
46
+ kind: "style";
47
+ name: string;
48
+ descriptor: string;
49
+ };
50
+ /**
51
+ * The six shipped game style presets (game-prd § 5.6).
52
+ *
53
+ * Separate from {@link STYLE_PRESETS} because they answer a different
54
+ * question: a storyboard style describes a lens and a grade, a game style
55
+ * describes a pixel grid. The Game flow's Look step renders these, the seeder
56
+ * writes them as library `style` entities from the same list, and every prompt
57
+ * the game graph builds carries the descriptor verbatim.
58
+ *
59
+ * Every descriptor ends with {@link GAME_STYLE_DESCRIPTOR_TAIL}: a sprite that
60
+ * comes back on a painted backdrop cannot be composited, and text baked into a
61
+ * tile sheet cannot be removed.
62
+ */
63
+ export declare const GAME_STYLE_DESCRIPTOR_TAIL = "transparent background for sprites, flat lighting, no text, no watermark";
64
+ export declare const GAME_STYLE_PRESETS: readonly StylePreset[];
65
+ /**
66
+ * Whether an asset's metadata marks it as a shipped system entity.
67
+ *
68
+ * Every write surface asks this before touching an asset: a preset's descriptor
69
+ * never changes under a user (§ 7.7.9), and a user who wants their own version
70
+ * gets a copy through `Add your own style` instead.
71
+ */
72
+ export declare function isSystemEntityMetadata(metadata: Record<string, unknown> | null | undefined): boolean;
73
+ //# sourceMappingURL=style-presets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style-presets.d.ts","sourceRoot":"","sources":["../src/style-presets.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAIH,uEAAuE;AACvE,MAAM,WAAW,WAAW;IAC1B,4EAA4E;IAC5E,EAAE,EAAE,MAAM,CAAC;IACX,kBAAkB;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,8DAA8D;IAC9D,UAAU,EAAE,MAAM,CAAC;IACnB,yCAAyC;IACzC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,aAAa,EAAE,SAAS,WAAW,EAqF/C,CAAC;AAEF,8DAA8D;AAC9D,eAAO,MAAM,mBAAmB,oBAAoB,CAAC;AAErD;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,IAAI,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,kDAAkD;IAClD,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,+DAA+D;AAC/D,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,WAAW,GAClB,wBAAwB,GAAG;IAC5B,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;CACpB,CASA;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,0BAA0B,6EACqC,CAAC;AAa7E,eAAO,MAAM,kBAAkB,EAAE,SAAS,WAAW,EA+BpD,CAAC;AAKF;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,GACnD,OAAO,CAET"}
@@ -0,0 +1,147 @@
1
+ /**
2
+ * The twelve shipped art-style presets (PRD § 7.3, § 7.7.9).
3
+ *
4
+ * Each preset becomes one read-only system entity of kind `style` in every
5
+ * user's library. `descriptor` is the payload: it is pasted verbatim into every
6
+ * shot prompt the style applies to (§ 7.7.5), so it names palette, light, lens
7
+ * and surface rather than a mood. The name is what the tile says; the model
8
+ * never sees it.
9
+ *
10
+ * The list lives in protocol because two sides read it: the server seeds rows
11
+ * from it, and the setup flow's style step renders tiles from the same order.
12
+ *
13
+ * `thumbnail` is the `package://` path the tile art is served from. Each file
14
+ * ships under `packages/base-nodes/nodetool/assets/nodetool-base/styles/`, and
15
+ * every sample renders the same street corner so the grid compares styles
16
+ * rather than subjects. A tile whose thumbnail does not resolve falls back to a
17
+ * typographic sample, so a new preset works before its art is drawn.
18
+ */
19
+ import { z } from "zod";
20
+ export const STYLE_PRESETS = [
21
+ {
22
+ id: "comic",
23
+ name: "Comic",
24
+ descriptor: "Bold black ink outlines over flat cel colour, Ben-Day halftone dots in the mid-tones, primary reds and cyans on newsprint cream, hard-edged cast shadows, no gradients.",
25
+ thumbnail: "package://nodetool-base/styles/comic.jpg"
26
+ },
27
+ {
28
+ id: "cinematic",
29
+ name: "Cinematic",
30
+ descriptor: "Anamorphic 40mm at T2, amber key against teal shadows, shallow focus with oval bokeh and a horizontal blue flare, fine 35mm grain, blacks lifted slightly off zero.",
31
+ thumbnail: "package://nodetool-base/styles/cinematic.jpg"
32
+ },
33
+ {
34
+ id: "soft-pencil",
35
+ name: "Soft Pencil",
36
+ descriptor: "2B graphite on toothy paper, soft directional hatching smudged into the mid-tones, highlights lifted with a kneaded eraser, one pale colour wash, edges left unfinished.",
37
+ thumbnail: "package://nodetool-base/styles/soft-pencil.jpg"
38
+ },
39
+ {
40
+ id: "animation-3d",
41
+ name: "Animation 3D",
42
+ descriptor: "Stylised 3D render with rounded, slightly oversized forms, matte clay-like materials, soft global illumination and subsurface scattering in the skin, shallow ambient occlusion, saturated daylight palette.",
43
+ thumbnail: "package://nodetool-base/styles/animation-3d.jpg"
44
+ },
45
+ {
46
+ id: "watercolor-paint",
47
+ name: "Watercolor Paint",
48
+ descriptor: "Wet-on-wet watercolour blooming into cold-press paper grain, transparent layered washes of granulating ultramarine and burnt sienna, bare paper left as the highlight, pigment bleeding past the drawn edge.",
49
+ thumbnail: "package://nodetool-base/styles/watercolor-paint.jpg"
50
+ },
51
+ {
52
+ id: "photo-commercial",
53
+ name: "Photo / Commercial",
54
+ descriptor: "Studio photography on an 85mm at f/8, large softbox key with a white bounce fill, seamless sweep background, crisp specular highlights, neutral colour balance, no grain.",
55
+ thumbnail: "package://nodetool-base/styles/photo-commercial.jpg"
56
+ },
57
+ {
58
+ id: "charcoal-sketch",
59
+ name: "Charcoal Sketch",
60
+ descriptor: "Compressed charcoal on grey laid paper, broad smudged tonal blocks, velvety blacks against chalk-white highlights, fast gestural contour lines, visible dust and fingerprints.",
61
+ thumbnail: "package://nodetool-base/styles/charcoal-sketch.jpg"
62
+ },
63
+ {
64
+ id: "dark-anime",
65
+ name: "Dark Anime",
66
+ descriptor: "Anime cel with hard two-tone shadow shapes, desaturated indigo and rust palette, strong rim light against a night key, dense cross-hatching in the darks, painted background plates.",
67
+ thumbnail: "package://nodetool-base/styles/dark-anime.jpg"
68
+ },
69
+ {
70
+ id: "flat-vector",
71
+ name: "Flat / Vector",
72
+ descriptor: "Flat vector shapes with no outlines, a five-colour palette, geometric silhouettes, one offset flat shadow per form, generous negative space, edges crisp at any scale.",
73
+ thumbnail: "package://nodetool-base/styles/flat-vector.jpg"
74
+ },
75
+ {
76
+ id: "noir",
77
+ name: "Noir",
78
+ descriptor: "High-contrast black and white, one hard key throwing venetian-blind slats across the frame, crushed shadows, wet reflective asphalt, low camera angles, heavy silver-halide grain.",
79
+ thumbnail: "package://nodetool-base/styles/noir.jpg"
80
+ },
81
+ {
82
+ id: "stick-figure",
83
+ name: "Stick Figure",
84
+ descriptor: "Single-weight black marker on plain white, stick-figure bodies with circle heads, props drawn in three or four strokes, hand-lettered labels, no shading and no perspective.",
85
+ thumbnail: "package://nodetool-base/styles/stick-figure.jpg"
86
+ },
87
+ {
88
+ id: "graphic-novel",
89
+ name: "Graphic Novel",
90
+ descriptor: "Brush-inked line of varying weight, heavy spotted blacks, screentone texture through the mid-tones, muted slate-and-ochre duotone wash, low-key dramatic panel lighting.",
91
+ thumbnail: "package://nodetool-base/styles/graphic-novel.jpg"
92
+ }
93
+ ];
94
+ /** Metadata key an entity marker lives under on its asset. */
95
+ export const ENTITY_METADATA_KEY = "nodetool_entity";
96
+ /** The entity marker a seeded style preset's asset carries. */
97
+ export function stylePresetMarker(preset) {
98
+ return {
99
+ kind: "style",
100
+ name: preset.name,
101
+ descriptor: preset.descriptor,
102
+ system: true,
103
+ preset_id: preset.id,
104
+ thumbnail: preset.thumbnail
105
+ };
106
+ }
107
+ /**
108
+ * The six shipped game style presets (game-prd § 5.6).
109
+ *
110
+ * Separate from {@link STYLE_PRESETS} because they answer a different
111
+ * question: a storyboard style describes a lens and a grade, a game style
112
+ * describes a pixel grid. The Game flow's Look step renders these, the seeder
113
+ * writes them as library `style` entities from the same list, and every prompt
114
+ * the game graph builds carries the descriptor verbatim.
115
+ *
116
+ * Every descriptor ends with {@link GAME_STYLE_DESCRIPTOR_TAIL}: a sprite that
117
+ * comes back on a painted backdrop cannot be composited, and text baked into a
118
+ * tile sheet cannot be removed.
119
+ */
120
+ export const GAME_STYLE_DESCRIPTOR_TAIL = "transparent background for sprites, flat lighting, no text, no watermark";
121
+ const gameStyle = (id, name, gist) => ({
122
+ id,
123
+ name,
124
+ descriptor: `${gist}, ${GAME_STYLE_DESCRIPTOR_TAIL}`,
125
+ thumbnail: `package://nodetool-base/styles/game-${id}.png`
126
+ });
127
+ export const GAME_STYLE_PRESETS = [
128
+ gameStyle("pixel-16bit", "16-bit console", "16-bit console pixel art on a 32px cell, four-shade ramps per material, solid black outlines, warm palette of rust orange, moss green and slate blue, no anti-aliasing, no dithering"),
129
+ gameStyle("pixel-8bit", "8-bit", "8-bit pixel art on a 16px cell, three colours per sprite, hard black outlines, primary palette of red, blue and cream on black, chunky one-pixel detail, no dithering, no anti-aliasing"),
130
+ gameStyle("pixel-handheld", "Handheld pastel", "Handheld pixel art on a 32px cell, four-tone pastel ramp of pale green, cream, sage and deep olive, soft grey-green outlines rather than black, no anti-aliasing"),
131
+ gameStyle("pixel-1bit", "1-bit", "1-bit pixel art in two colours only, off-white on near-black, shading carried entirely by ordered dither patterns, thick single-colour outlines, no midtones"),
132
+ gameStyle("pixel-modern", "Chunky modern pixel", "Modern pixel art on a 32px cell, wide saturated palette, outlines coloured from the material rather than black, a cool rim light along the top edge, subtle dithering in the shadow ramp only"),
133
+ gameStyle("painted-2d", "Painted 2D", "Hand-painted 2D game art in gouache, visible brush texture, soft edges, saturated mid-tones with muted shadows, no pixel grid and no outline")
134
+ ];
135
+ /** The one field a read-only check cares about, parsed out of stored JSON. */
136
+ const systemMarker = z.object({ system: z.literal(true) });
137
+ /**
138
+ * Whether an asset's metadata marks it as a shipped system entity.
139
+ *
140
+ * Every write surface asks this before touching an asset: a preset's descriptor
141
+ * never changes under a user (§ 7.7.9), and a user who wants their own version
142
+ * gets a copy through `Add your own style` instead.
143
+ */
144
+ export function isSystemEntityMetadata(metadata) {
145
+ return systemMarker.safeParse(metadata?.[ENTITY_METADATA_KEY]).success;
146
+ }
147
+ //# sourceMappingURL=style-presets.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style-presets.js","sourceRoot":"","sources":["../src/style-presets.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,MAAM,CAAC,MAAM,aAAa,GAA2B;IACnD;QACE,EAAE,EAAE,OAAO;QACX,IAAI,EAAE,OAAO;QACb,UAAU,EACR,yKAAyK;QAC3K,SAAS,EAAE,0CAA0C;KACtD;IACD;QACE,EAAE,EAAE,WAAW;QACf,IAAI,EAAE,WAAW;QACjB,UAAU,EACR,qKAAqK;QACvK,SAAS,EAAE,8CAA8C;KAC1D;IACD;QACE,EAAE,EAAE,aAAa;QACjB,IAAI,EAAE,aAAa;QACnB,UAAU,EACR,0KAA0K;QAC5K,SAAS,EAAE,gDAAgD;KAC5D;IACD;QACE,EAAE,EAAE,cAAc;QAClB,IAAI,EAAE,cAAc;QACpB,UAAU,EACR,8MAA8M;QAChN,SAAS,EAAE,iDAAiD;KAC7D;IACD;QACE,EAAE,EAAE,kBAAkB;QACtB,IAAI,EAAE,kBAAkB;QACxB,UAAU,EACR,8MAA8M;QAChN,SAAS,EAAE,qDAAqD;KACjE;IACD;QACE,EAAE,EAAE,kBAAkB;QACtB,IAAI,EAAE,oBAAoB;QAC1B,UAAU,EACR,2KAA2K;QAC7K,SAAS,EAAE,qDAAqD;KACjE;IACD;QACE,EAAE,EAAE,iBAAiB;QACrB,IAAI,EAAE,iBAAiB;QACvB,UAAU,EACR,gLAAgL;QAClL,SAAS,EAAE,oDAAoD;KAChE;IACD;QACE,EAAE,EAAE,YAAY;QAChB,IAAI,E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