@nodetool-ai/protocol 0.7.0-rc.22 → 0.8.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 (419) hide show
  1. package/README.md +56 -0
  2. package/dist/.nodetool-build-stamp +1 -0
  3. package/dist/ai-video-production.d.ts +249 -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/applications.d.ts +1411 -0
  16. package/dist/api-schemas/applications.d.ts.map +1 -0
  17. package/dist/api-schemas/applications.js +333 -0
  18. package/dist/api-schemas/applications.js.map +1 -0
  19. package/dist/api-schemas/assets.d.ts +230 -0
  20. package/dist/api-schemas/assets.d.ts.map +1 -1
  21. package/dist/api-schemas/assets.js +131 -5
  22. package/dist/api-schemas/assets.js.map +1 -1
  23. package/dist/api-schemas/code-gen.d.ts +176 -0
  24. package/dist/api-schemas/code-gen.d.ts.map +1 -0
  25. package/dist/api-schemas/code-gen.js +205 -0
  26. package/dist/api-schemas/code-gen.js.map +1 -0
  27. package/dist/api-schemas/collections.d.ts.map +1 -1
  28. package/dist/api-schemas/collections.js +3 -4
  29. package/dist/api-schemas/collections.js.map +1 -1
  30. package/dist/api-schemas/costs.d.ts +179 -0
  31. package/dist/api-schemas/costs.d.ts.map +1 -1
  32. package/dist/api-schemas/costs.js +100 -4
  33. package/dist/api-schemas/costs.js.map +1 -1
  34. package/dist/api-schemas/credits.d.ts +42 -0
  35. package/dist/api-schemas/credits.d.ts.map +1 -0
  36. package/dist/api-schemas/credits.js +43 -0
  37. package/dist/api-schemas/credits.js.map +1 -0
  38. package/dist/api-schemas/documents.d.ts +163 -0
  39. package/dist/api-schemas/documents.d.ts.map +1 -0
  40. package/dist/api-schemas/documents.js +75 -0
  41. package/dist/api-schemas/documents.js.map +1 -0
  42. package/dist/api-schemas/files.d.ts +13 -0
  43. package/dist/api-schemas/files.d.ts.map +1 -1
  44. package/dist/api-schemas/files.js +8 -0
  45. package/dist/api-schemas/files.js.map +1 -1
  46. package/dist/api-schemas/fonts.d.ts +17 -1
  47. package/dist/api-schemas/fonts.d.ts.map +1 -1
  48. package/dist/api-schemas/fonts.js +19 -3
  49. package/dist/api-schemas/fonts.js.map +1 -1
  50. package/dist/api-schemas/index.d.ts +23 -1
  51. package/dist/api-schemas/index.d.ts.map +1 -1
  52. package/dist/api-schemas/index.js +23 -1
  53. package/dist/api-schemas/index.js.map +1 -1
  54. package/dist/api-schemas/jobs.d.ts +12 -0
  55. package/dist/api-schemas/jobs.d.ts.map +1 -1
  56. package/dist/api-schemas/jobs.js +12 -2
  57. package/dist/api-schemas/jobs.js.map +1 -1
  58. package/dist/api-schemas/js-scripts.d.ts +364 -0
  59. package/dist/api-schemas/js-scripts.d.ts.map +1 -0
  60. package/dist/api-schemas/js-scripts.js +333 -0
  61. package/dist/api-schemas/js-scripts.js.map +1 -0
  62. package/dist/api-schemas/mcp-config.d.ts.map +1 -1
  63. package/dist/api-schemas/mcp-config.js +3 -1
  64. package/dist/api-schemas/mcp-config.js.map +1 -1
  65. package/dist/api-schemas/memories.d.ts +84 -0
  66. package/dist/api-schemas/memories.d.ts.map +1 -0
  67. package/dist/api-schemas/memories.js +54 -0
  68. package/dist/api-schemas/memories.js.map +1 -0
  69. package/dist/api-schemas/messages.d.ts +1 -0
  70. package/dist/api-schemas/messages.d.ts.map +1 -1
  71. package/dist/api-schemas/messages.js +4 -4
  72. package/dist/api-schemas/messages.js.map +1 -1
  73. package/dist/api-schemas/models.d.ts +156 -0
  74. package/dist/api-schemas/models.d.ts.map +1 -1
  75. package/dist/api-schemas/models.js +51 -6
  76. package/dist/api-schemas/models.js.map +1 -1
  77. package/dist/api-schemas/nodes.d.ts +97 -0
  78. package/dist/api-schemas/nodes.d.ts.map +1 -1
  79. package/dist/api-schemas/nodes.js +89 -0
  80. package/dist/api-schemas/nodes.js.map +1 -1
  81. package/dist/api-schemas/projects.d.ts +427 -0
  82. package/dist/api-schemas/projects.d.ts.map +1 -0
  83. package/dist/api-schemas/projects.js +224 -0
  84. package/dist/api-schemas/projects.js.map +1 -0
  85. package/dist/api-schemas/recipes.d.ts +172 -0
  86. package/dist/api-schemas/recipes.d.ts.map +1 -0
  87. package/dist/api-schemas/recipes.js +144 -0
  88. package/dist/api-schemas/recipes.js.map +1 -0
  89. package/dist/api-schemas/resources.d.ts +112 -0
  90. package/dist/api-schemas/resources.d.ts.map +1 -0
  91. package/dist/api-schemas/resources.js +44 -0
  92. package/dist/api-schemas/resources.js.map +1 -0
  93. package/dist/api-schemas/scripts.d.ts +1571 -0
  94. package/dist/api-schemas/scripts.d.ts.map +1 -0
  95. package/dist/api-schemas/scripts.js +153 -0
  96. package/dist/api-schemas/scripts.js.map +1 -0
  97. package/dist/api-schemas/sdk-execution-v1.d.ts +467 -0
  98. package/dist/api-schemas/sdk-execution-v1.d.ts.map +1 -0
  99. package/dist/api-schemas/sdk-execution-v1.js +115 -0
  100. package/dist/api-schemas/sdk-execution-v1.js.map +1 -0
  101. package/dist/api-schemas/sdk-lifecycle-v1.d.ts +217 -0
  102. package/dist/api-schemas/sdk-lifecycle-v1.d.ts.map +1 -0
  103. package/dist/api-schemas/sdk-lifecycle-v1.js +117 -0
  104. package/dist/api-schemas/sdk-lifecycle-v1.js.map +1 -0
  105. package/dist/api-schemas/sdk-models-v1.d.ts +181 -0
  106. package/dist/api-schemas/sdk-models-v1.d.ts.map +1 -0
  107. package/dist/api-schemas/sdk-models-v1.js +108 -0
  108. package/dist/api-schemas/sdk-models-v1.js.map +1 -0
  109. package/dist/api-schemas/sdk-v1-http-operations.d.ts +941 -0
  110. package/dist/api-schemas/sdk-v1-http-operations.d.ts.map +1 -0
  111. package/dist/api-schemas/sdk-v1-http-operations.js +465 -0
  112. package/dist/api-schemas/sdk-v1-http-operations.js.map +1 -0
  113. package/dist/api-schemas/sdk-v1-operations.d.ts +151 -0
  114. package/dist/api-schemas/sdk-v1-operations.d.ts.map +1 -0
  115. package/dist/api-schemas/sdk-v1-operations.js +97 -0
  116. package/dist/api-schemas/sdk-v1-operations.js.map +1 -0
  117. package/dist/api-schemas/sdk-v1-websocket-operations.d.ts +97 -0
  118. package/dist/api-schemas/sdk-v1-websocket-operations.d.ts.map +1 -0
  119. package/dist/api-schemas/sdk-v1-websocket-operations.js +96 -0
  120. package/dist/api-schemas/sdk-v1-websocket-operations.js.map +1 -0
  121. package/dist/api-schemas/sdk-v1.d.ts +15 -0
  122. package/dist/api-schemas/sdk-v1.d.ts.map +1 -0
  123. package/dist/api-schemas/sdk-v1.js +22 -0
  124. package/dist/api-schemas/sdk-v1.js.map +1 -0
  125. package/dist/api-schemas/segmentation.d.ts +75 -0
  126. package/dist/api-schemas/segmentation.d.ts.map +1 -0
  127. package/dist/api-schemas/segmentation.js +54 -0
  128. package/dist/api-schemas/segmentation.js.map +1 -0
  129. package/dist/api-schemas/settings.d.ts +159 -0
  130. package/dist/api-schemas/settings.d.ts.map +1 -1
  131. package/dist/api-schemas/settings.js +70 -0
  132. package/dist/api-schemas/settings.js.map +1 -1
  133. package/dist/api-schemas/sketch.d.ts +847 -0
  134. package/dist/api-schemas/sketch.d.ts.map +1 -0
  135. package/dist/api-schemas/sketch.js +544 -0
  136. package/dist/api-schemas/sketch.js.map +1 -0
  137. package/dist/api-schemas/skills.d.ts +27 -14
  138. package/dist/api-schemas/skills.d.ts.map +1 -1
  139. package/dist/api-schemas/skills.js +64 -11
  140. package/dist/api-schemas/skills.js.map +1 -1
  141. package/dist/api-schemas/storage.d.ts +8 -0
  142. package/dist/api-schemas/storage.d.ts.map +1 -1
  143. package/dist/api-schemas/storage.js +7 -0
  144. package/dist/api-schemas/storage.js.map +1 -1
  145. package/dist/api-schemas/storyboards.d.ts +7026 -0
  146. package/dist/api-schemas/storyboards.d.ts.map +1 -0
  147. package/dist/api-schemas/storyboards.js +393 -0
  148. package/dist/api-schemas/storyboards.js.map +1 -0
  149. package/dist/api-schemas/threads.d.ts +12 -4
  150. package/dist/api-schemas/threads.d.ts.map +1 -1
  151. package/dist/api-schemas/threads.js +12 -4
  152. package/dist/api-schemas/threads.js.map +1 -1
  153. package/dist/api-schemas/timeline-tool-contracts.d.ts +1650 -0
  154. package/dist/api-schemas/timeline-tool-contracts.d.ts.map +1 -0
  155. package/dist/api-schemas/timeline-tool-contracts.js +725 -0
  156. package/dist/api-schemas/timeline-tool-contracts.js.map +1 -0
  157. package/dist/api-schemas/timeline-tool-params.d.ts +1237 -0
  158. package/dist/api-schemas/timeline-tool-params.d.ts.map +1 -0
  159. package/dist/api-schemas/timeline-tool-params.js +1518 -0
  160. package/dist/api-schemas/timeline-tool-params.js.map +1 -0
  161. package/dist/api-schemas/timeline.d.ts +12803 -0
  162. package/dist/api-schemas/timeline.d.ts.map +1 -0
  163. package/dist/api-schemas/timeline.js +1838 -0
  164. package/dist/api-schemas/timeline.js.map +1 -0
  165. package/dist/api-schemas/ui-tool-contract.d.ts +35 -0
  166. package/dist/api-schemas/ui-tool-contract.d.ts.map +1 -0
  167. package/dist/api-schemas/ui-tool-contract.js +31 -0
  168. package/dist/api-schemas/ui-tool-contract.js.map +1 -0
  169. package/dist/api-schemas/workflows.d.ts +852 -18
  170. package/dist/api-schemas/workflows.d.ts.map +1 -1
  171. package/dist/api-schemas/workflows.js +484 -6
  172. package/dist/api-schemas/workflows.js.map +1 -1
  173. package/dist/api-schemas/workspace.d.ts +45 -0
  174. package/dist/api-schemas/workspace.d.ts.map +1 -1
  175. package/dist/api-schemas/workspace.js +47 -1
  176. package/dist/api-schemas/workspace.js.map +1 -1
  177. package/dist/api-types.d.ts +621 -27
  178. package/dist/api-types.d.ts.map +1 -1
  179. package/dist/api-types.js +246 -1
  180. package/dist/api-types.js.map +1 -1
  181. package/dist/app-deployment.d.ts +37 -0
  182. package/dist/app-deployment.d.ts.map +1 -0
  183. package/dist/app-deployment.js +42 -0
  184. package/dist/app-deployment.js.map +1 -0
  185. package/dist/asset-generation.d.ts +58 -0
  186. package/dist/asset-generation.d.ts.map +1 -0
  187. package/dist/asset-generation.js +147 -0
  188. package/dist/asset-generation.js.map +1 -0
  189. package/dist/blend-modes.d.ts +20 -0
  190. package/dist/blend-modes.d.ts.map +1 -0
  191. package/dist/blend-modes.js +33 -0
  192. package/dist/blend-modes.js.map +1 -0
  193. package/dist/bridge-frames.d.ts +654 -0
  194. package/dist/bridge-frames.d.ts.map +1 -0
  195. package/dist/bridge-frames.js +448 -0
  196. package/dist/bridge-frames.js.map +1 -0
  197. package/dist/bridge-frames.schema.json +862 -0
  198. package/dist/bridge-protocol.d.ts +57 -20
  199. package/dist/bridge-protocol.d.ts.map +1 -1
  200. package/dist/bridge-protocol.js +57 -20
  201. package/dist/bridge-protocol.js.map +1 -1
  202. package/dist/builtin-packs.d.ts +45 -0
  203. package/dist/builtin-packs.d.ts.map +1 -0
  204. package/dist/builtin-packs.js +115 -0
  205. package/dist/builtin-packs.js.map +1 -0
  206. package/dist/caption-word.d.ts +15 -0
  207. package/dist/caption-word.d.ts.map +1 -0
  208. package/dist/caption-word.js +10 -0
  209. package/dist/caption-word.js.map +1 -0
  210. package/dist/cloud-profile.d.ts +187 -0
  211. package/dist/cloud-profile.d.ts.map +1 -0
  212. package/dist/cloud-profile.js +281 -0
  213. package/dist/cloud-profile.js.map +1 -0
  214. package/dist/creative.d.ts +486 -0
  215. package/dist/creative.d.ts.map +1 -0
  216. package/dist/creative.js +269 -0
  217. package/dist/creative.js.map +1 -0
  218. package/dist/custom-providers.d.ts +70 -0
  219. package/dist/custom-providers.d.ts.map +1 -0
  220. package/dist/custom-providers.js +125 -0
  221. package/dist/custom-providers.js.map +1 -0
  222. package/dist/document-ops.d.ts +15 -0
  223. package/dist/document-ops.d.ts.map +1 -0
  224. package/dist/document-ops.js +2 -0
  225. package/dist/document-ops.js.map +1 -0
  226. package/dist/game-assets.d.ts +344 -0
  227. package/dist/game-assets.d.ts.map +1 -0
  228. package/dist/game-assets.js +297 -0
  229. package/dist/game-assets.js.map +1 -0
  230. package/dist/game-design.d.ts +90 -0
  231. package/dist/game-design.d.ts.map +1 -0
  232. package/dist/game-design.js +417 -0
  233. package/dist/game-design.js.map +1 -0
  234. package/dist/game-flow-prompt.d.ts +68 -0
  235. package/dist/game-flow-prompt.d.ts.map +1 -0
  236. package/dist/game-flow-prompt.js +121 -0
  237. package/dist/game-flow-prompt.js.map +1 -0
  238. package/dist/game-graph.d.ts +96 -0
  239. package/dist/game-graph.d.ts.map +1 -0
  240. package/dist/game-graph.js +481 -0
  241. package/dist/game-graph.js.map +1 -0
  242. package/dist/game-migration.d.ts +4 -0
  243. package/dist/game-migration.d.ts.map +1 -0
  244. package/dist/game-migration.js +6 -0
  245. package/dist/game-migration.js.map +1 -0
  246. package/dist/game-slot-prompt.d.ts +90 -0
  247. package/dist/game-slot-prompt.d.ts.map +1 -0
  248. package/dist/game-slot-prompt.js +237 -0
  249. package/dist/game-slot-prompt.js.map +1 -0
  250. package/dist/game.d.ts +1663 -0
  251. package/dist/game.d.ts.map +1 -0
  252. package/dist/game.js +228 -0
  253. package/dist/game.js.map +1 -0
  254. package/dist/graph.d.ts +191 -5
  255. package/dist/graph.d.ts.map +1 -1
  256. package/dist/graph.js +497 -0
  257. package/dist/graph.js.map +1 -1
  258. package/dist/index.d.ts +47 -2
  259. package/dist/index.d.ts.map +1 -1
  260. package/dist/index.js +46 -2
  261. package/dist/index.js.map +1 -1
  262. package/dist/loop.d.ts +38 -0
  263. package/dist/loop.d.ts.map +1 -0
  264. package/dist/loop.js +69 -0
  265. package/dist/loop.js.map +1 -0
  266. package/dist/mcp-server-config.d.ts +113 -0
  267. package/dist/mcp-server-config.d.ts.map +1 -0
  268. package/dist/mcp-server-config.js +147 -0
  269. package/dist/mcp-server-config.js.map +1 -0
  270. package/dist/messages.d.ts +1565 -243
  271. package/dist/messages.d.ts.map +1 -1
  272. package/dist/messages.js +709 -22
  273. package/dist/messages.js.map +1 -1
  274. package/dist/model-selection.d.ts +20 -0
  275. package/dist/model-selection.d.ts.map +1 -0
  276. package/dist/model-selection.js +27 -0
  277. package/dist/model-selection.js.map +1 -0
  278. package/dist/nodetool-models.d.ts +71 -0
  279. package/dist/nodetool-models.d.ts.map +1 -0
  280. package/dist/nodetool-models.js +138 -0
  281. package/dist/nodetool-models.js.map +1 -0
  282. package/dist/package-assets.d.ts +39 -0
  283. package/dist/package-assets.d.ts.map +1 -0
  284. package/dist/package-assets.js +63 -0
  285. package/dist/package-assets.js.map +1 -0
  286. package/dist/platform.d.ts +66 -0
  287. package/dist/platform.d.ts.map +1 -0
  288. package/dist/platform.js +68 -0
  289. package/dist/platform.js.map +1 -0
  290. package/dist/predicates.d.ts +43 -0
  291. package/dist/predicates.d.ts.map +1 -0
  292. package/dist/predicates.js +65 -0
  293. package/dist/predicates.js.map +1 -0
  294. package/dist/processing-messages.schema.json +2525 -0
  295. package/dist/production-authoring.d.ts +757 -0
  296. package/dist/production-authoring.d.ts.map +1 -0
  297. package/dist/production-authoring.js +736 -0
  298. package/dist/production-authoring.js.map +1 -0
  299. package/dist/render-record.d.ts +86 -0
  300. package/dist/render-record.d.ts.map +1 -0
  301. package/dist/render-record.js +133 -0
  302. package/dist/render-record.js.map +1 -0
  303. package/dist/resource-id.d.ts +22 -0
  304. package/dist/resource-id.d.ts.map +1 -0
  305. package/dist/resource-id.js +32 -0
  306. package/dist/resource-id.js.map +1 -0
  307. package/dist/resource-uri.d.ts +15 -0
  308. package/dist/resource-uri.d.ts.map +1 -0
  309. package/dist/resource-uri.js +88 -0
  310. package/dist/resource-uri.js.map +1 -0
  311. package/dist/sandbox-capability.d.ts +86 -0
  312. package/dist/sandbox-capability.d.ts.map +1 -0
  313. package/dist/sandbox-capability.js +106 -0
  314. package/dist/sandbox-capability.js.map +1 -0
  315. package/dist/sandbox-host.d.ts +98 -0
  316. package/dist/sandbox-host.d.ts.map +1 -0
  317. package/dist/sandbox-host.js +311 -0
  318. package/dist/sandbox-host.js.map +1 -0
  319. package/dist/sandbox-package.d.ts +674 -0
  320. package/dist/sandbox-package.d.ts.map +1 -0
  321. package/dist/sandbox-package.js +622 -0
  322. package/dist/sandbox-package.js.map +1 -0
  323. package/dist/sandbox-wasm.d.ts +84 -0
  324. package/dist/sandbox-wasm.d.ts.map +1 -0
  325. package/dist/sandbox-wasm.js +139 -0
  326. package/dist/sandbox-wasm.js.map +1 -0
  327. package/dist/screenplay-authoring.d.ts +69 -0
  328. package/dist/screenplay-authoring.d.ts.map +1 -0
  329. package/dist/screenplay-authoring.js +351 -0
  330. package/dist/screenplay-authoring.js.map +1 -0
  331. package/dist/script-authoring.d.ts +161 -0
  332. package/dist/script-authoring.d.ts.map +1 -0
  333. package/dist/script-authoring.js +503 -0
  334. package/dist/script-authoring.js.map +1 -0
  335. package/dist/script-fill.d.ts +39 -0
  336. package/dist/script-fill.d.ts.map +1 -0
  337. package/dist/script-fill.js +67 -0
  338. package/dist/script-fill.js.map +1 -0
  339. package/dist/script-link.d.ts +110 -0
  340. package/dist/script-link.d.ts.map +1 -0
  341. package/dist/script-link.js +252 -0
  342. package/dist/script-link.js.map +1 -0
  343. package/dist/sha256.d.ts +11 -0
  344. package/dist/sha256.d.ts.map +1 -0
  345. package/dist/sha256.js +110 -0
  346. package/dist/sha256.js.map +1 -0
  347. package/dist/shot-prompt.d.ts +78 -0
  348. package/dist/shot-prompt.d.ts.map +1 -0
  349. package/dist/shot-prompt.js +120 -0
  350. package/dist/shot-prompt.js.map +1 -0
  351. package/dist/skill-document.d.ts +36 -0
  352. package/dist/skill-document.d.ts.map +1 -0
  353. package/dist/skill-document.js +137 -0
  354. package/dist/skill-document.js.map +1 -0
  355. package/dist/style-presets.d.ts +73 -0
  356. package/dist/style-presets.d.ts.map +1 -0
  357. package/dist/style-presets.js +147 -0
  358. package/dist/style-presets.js.map +1 -0
  359. package/dist/supervisor.d.ts +227 -0
  360. package/dist/supervisor.d.ts.map +1 -0
  361. package/dist/supervisor.js +116 -0
  362. package/dist/supervisor.js.map +1 -0
  363. package/dist/token-providers.d.ts +31 -0
  364. package/dist/token-providers.d.ts.map +1 -0
  365. package/dist/token-providers.js +52 -0
  366. package/dist/token-providers.js.map +1 -0
  367. package/dist/toolSchemas.d.ts +10 -14
  368. package/dist/toolSchemas.d.ts.map +1 -1
  369. package/dist/toolSchemas.js +13 -23
  370. package/dist/toolSchemas.js.map +1 -1
  371. package/dist/triggers.d.ts +41 -0
  372. package/dist/triggers.d.ts.map +1 -0
  373. package/dist/triggers.js +50 -0
  374. package/dist/triggers.js.map +1 -0
  375. package/dist/trpc-policy.d.ts +3 -0
  376. package/dist/trpc-policy.d.ts.map +1 -0
  377. package/dist/trpc-policy.js +3 -0
  378. package/dist/trpc-policy.js.map +1 -0
  379. package/dist/type-metadata.d.ts +5 -0
  380. package/dist/type-metadata.d.ts.map +1 -1
  381. package/dist/type-metadata.js +17 -8
  382. package/dist/type-metadata.js.map +1 -1
  383. package/dist/typecheck.d.ts.map +1 -1
  384. package/dist/typecheck.js +5 -4
  385. package/dist/typecheck.js.map +1 -1
  386. package/dist/wasm-binary.d.ts +61 -0
  387. package/dist/wasm-binary.d.ts.map +1 -0
  388. package/dist/wasm-binary.js +215 -0
  389. package/dist/wasm-binary.js.map +1 -0
  390. package/dist/workflow-plan.d.ts +197 -0
  391. package/dist/workflow-plan.d.ts.map +1 -0
  392. package/dist/workflow-plan.js +438 -0
  393. package/dist/workflow-plan.js.map +1 -0
  394. package/dist/wrap-primitives.d.ts +0 -11
  395. package/dist/wrap-primitives.d.ts.map +1 -1
  396. package/dist/wrap-primitives.js +3 -9
  397. package/dist/wrap-primitives.js.map +1 -1
  398. package/dist/ws-commands.d.ts +665 -0
  399. package/dist/ws-commands.d.ts.map +1 -0
  400. package/dist/ws-commands.js +610 -0
  401. package/dist/ws-commands.js.map +1 -0
  402. package/dist/zod-schema.d.ts +20 -0
  403. package/dist/zod-schema.d.ts.map +1 -0
  404. package/dist/zod-schema.js +298 -0
  405. package/dist/zod-schema.js.map +1 -0
  406. package/package.json +84 -7
  407. package/schema/sdk-v1.asyncapi.implemented.json +65 -0
  408. package/schema/sdk-v1.asyncapi.json +65 -0
  409. package/schema/sdk-v1.discovery.schema.json +1218 -0
  410. package/schema/sdk-v1.execution.schema.json +2792 -0
  411. package/schema/sdk-v1.lifecycle.schema.json +1031 -0
  412. package/schema/sdk-v1.manifest.json +71 -0
  413. package/schema/sdk-v1.openapi.implemented.json +730 -0
  414. package/schema/sdk-v1.openapi.json +730 -0
  415. package/schema/sdk-v1.operations.json +732 -0
  416. package/dist/agent-protocol.d.ts +0 -217
  417. package/dist/agent-protocol.d.ts.map +0 -1
  418. package/dist/agent-protocol.js +0 -85
  419. package/dist/agent-protocol.js.map +0 -1
@@ -0,0 +1,481 @@
1
+ /**
2
+ * Manifest + design + choices → the graph that fills native game asset slots
3
+ * and stages candidate media for explicit installation.
4
+ *
5
+ * Pure, and built without a model call (D26): every slot is a fixed chain its
6
+ * kind determines, so the cost is countable before the run, a re-run
7
+ * regenerates, and `nodetool debug` runs the same graph headlessly.
8
+ *
9
+ * The output is a {@link WorkflowPlacement} — the same ordered node and edge
10
+ * list the Workflow flow's build replays through `ui_add_node` /
11
+ * `ui_update_node_data` / `ui_connect_nodes`, so one build path serves both
12
+ * flows.
13
+ *
14
+ * Nothing is placed that cannot be named (D23). A node type the registry does
15
+ * not have, a handle the builder cannot find: the slot is reported in `issues`
16
+ * and skipped whole. A half-placed chain would validate and produce nothing,
17
+ * which is worse than a missing one.
18
+ */
19
+ import { gameSlotPrompt } from "./game-flow-prompt.js";
20
+ import { PLAN_OUTPUT_NODE_TYPE } from "./workflow-plan.js";
21
+ // ── The node types a game graph is made of ──────────────────────────────────
22
+ export const GAME_TEXT_TO_IMAGE_NODE_TYPE = "nodetool.image.TextToImage";
23
+ export const GAME_IMAGE_TO_IMAGE_NODE_TYPE = "nodetool.image.ImageToImage";
24
+ export const GAME_RESIZE_NODE_TYPE = "nodetool.image.ResizeImage";
25
+ export const GAME_TEXT_TO_MUSIC_NODE_TYPE = "nodetool.audio.TextToMusic";
26
+ export const GAME_SPRITESHEET_NODE_TYPE = "nodetool.game.SpriteSheet";
27
+ export const GAME_TILESET_NODE_TYPE = "nodetool.game.Tileset";
28
+ export const GAME_SEAMLESS_IMAGE_NODE_TYPE = "nodetool.game.SeamlessImage";
29
+ export const GAME_SOUND_EFFECT_NODE_TYPE = "nodetool.game.SoundEffect";
30
+ export const GAME_MUSIC_LOOP_NODE_TYPE = "nodetool.game.MusicLoop";
31
+ export const GAME_EXPORT_NODE_TYPE = "nodetool.game.StageGameAssets";
32
+ export const GAME_PREVIEW_NODE_TYPE = "nodetool.workflows.base_node.Preview";
33
+ /**
34
+ * The five checker node types, one per slot kind — exactly what
35
+ * `checkerTypeFor` returns. A slot's asset is only filled once its checker
36
+ * accepted it, so this is how a reader tells the node that means "checked"
37
+ * from the generator and resize nodes that share the slot's `setupStepId`.
38
+ */
39
+ export const GAME_CHECKER_NODE_TYPES = [
40
+ GAME_SPRITESHEET_NODE_TYPE,
41
+ GAME_TILESET_NODE_TYPE,
42
+ GAME_SEAMLESS_IMAGE_NODE_TYPE,
43
+ GAME_SOUND_EFFECT_NODE_TYPE,
44
+ GAME_MUSIC_LOOP_NODE_TYPE
45
+ ];
46
+ /** The output node that receives staged asset candidates. */
47
+ export const GAME_PROJECT_OUTPUT_NAME = "asset_candidates";
48
+ /** The checker handle the export node reads: the stamped asset, not the bare fill. */
49
+ const CHECKER_ASSET_HANDLE = "output";
50
+ /** The export node's list input every checker's asset lands on. */
51
+ const EXPORT_FILLS_INPUT = "fills";
52
+ /**
53
+ * Prompt input names a sound-effect generator may use, best first. FAL's
54
+ * ElevenLabs node calls it `text`; others call it `prompt`.
55
+ */
56
+ const SFX_PROMPT_INPUTS = ["prompt", "text"];
57
+ /** Duration input names a sound-effect generator may use, best first. */
58
+ const SFX_DURATION_INPUTS = ["duration", "duration_seconds", "seconds"];
59
+ /** Resolutions `nodetool.image.TextToImage` offers, and the short edge each gives. */
60
+ const IMAGE_RESOLUTIONS = [
61
+ ["1K", 1024],
62
+ ["2K", 2048],
63
+ ["4K", 4096]
64
+ ];
65
+ // ── Project naming ──────────────────────────────────────────────────────────
66
+ /**
67
+ * A directory-safe slug for a project name: lowercase, dashes, nothing a
68
+ * workspace path has to quote. An empty or
69
+ * punctuation-only name falls back to `game` rather than to an empty segment,
70
+ * which would export to the `games/` directory itself.
71
+ */
72
+ export function gameProjectSlug(name) {
73
+ const slug = name
74
+ .normalize("NFKD")
75
+ .replace(/[\u0300-\u036f]/g, "")
76
+ .toLowerCase()
77
+ .replace(/[^a-z0-9]+/g, "-")
78
+ .replace(/^-+|-+$/g, "")
79
+ .slice(0, 60)
80
+ .replace(/-+$/g, "");
81
+ return slug.length > 0 ? slug : "game";
82
+ }
83
+ /** Where the export node writes: `games/<slug>`. */
84
+ export function gameProjectDirectory(name) {
85
+ return `games/${gameProjectSlug(name)}`;
86
+ }
87
+ /**
88
+ * The Look step's "keep the template's own audio" tile, which the browser
89
+ * saves onto the document like any other choice (D27). It is a real answer,
90
+ * not an absent one, so it has to be readable as an answer — and it is not a
91
+ * model id or a node type, so every reader has to turn it back into "nothing
92
+ * to generate" before handing it on.
93
+ */
94
+ export const GAME_PLACEHOLDER_SENTINEL = "keep-placeholder";
95
+ /**
96
+ * One saved audio answer as a builder takes it: a model id or a node type, or
97
+ * null for the template's own sound. Blank, absent and the sentinel all mean
98
+ * the placeholder.
99
+ */
100
+ export function gameAudioChoice(value) {
101
+ const trimmed = (value ?? "").trim();
102
+ if (trimmed === "" || trimmed === GAME_PLACEHOLDER_SENTINEL) {
103
+ return null;
104
+ }
105
+ return trimmed;
106
+ }
107
+ // ── Layout ──────────────────────────────────────────────────────────────────
108
+ const COLUMN_WIDTH = 300;
109
+ const ROW_HEIGHT = 200;
110
+ const position = (column, row) => ({
111
+ x: 80 + column * COLUMN_WIDTH,
112
+ y: 80 + row * ROW_HEIGHT
113
+ });
114
+ const COLUMN_GENERATE = 0;
115
+ const COLUMN_RESIZE = 1;
116
+ const COLUMN_CHECK = 2;
117
+ const COLUMN_PREVIEW = 3;
118
+ const COLUMN_EXPORT = 4;
119
+ const COLUMN_OUTPUT = 5;
120
+ // ── Handle resolution ───────────────────────────────────────────────────────
121
+ const inputNamed = (shape, name) => shape.inputs.find((handle) => handle.name === name) ?? null;
122
+ const firstInputOfType = (shape, type) => shape.inputs.find((handle) => handle.type === type) ?? null;
123
+ const outputNamed = (shape, name) => shape.outputs.find((handle) => handle.name === name) ?? null;
124
+ const firstOutputOfType = (shape, type) => shape.outputs.find((handle) => handle.type === type) ?? null;
125
+ /** Smallest resolution whose short edge covers the slot, so the resize scales down. */
126
+ function resolutionFor(width, height) {
127
+ const shortEdge = Math.min(width, height);
128
+ for (const [name, edge] of IMAGE_RESOLUTIONS) {
129
+ if (edge >= shortEdge) {
130
+ return name;
131
+ }
132
+ }
133
+ return IMAGE_RESOLUTIONS[IMAGE_RESOLUTIONS.length - 1][0];
134
+ }
135
+ /**
136
+ * The inline entities a generation carries: the style, plus this slot's cast
137
+ * member as a character. Both are inline `{type: "entity"}` values, which
138
+ * `TextToImage` accepts without a library row.
139
+ */
140
+ function entitiesFor(choices, design, slot) {
141
+ const entities = [];
142
+ if (choices.style) {
143
+ const styleEntity = {
144
+ type: "entity",
145
+ kind: "style",
146
+ name: choices.style.name,
147
+ descriptor: choices.style.descriptor
148
+ };
149
+ if (choices.style.referenceAssetId) {
150
+ styleEntity.reference_images = [{ type: "image", asset_id: choices.style.referenceAssetId }];
151
+ }
152
+ entities.push(styleEntity);
153
+ }
154
+ const member = design.cast.find((entry) => entry.slot_id === slot.id);
155
+ if (member) {
156
+ entities.push({
157
+ type: "entity",
158
+ kind: "character",
159
+ name: member.name,
160
+ descriptor: member.descriptor
161
+ });
162
+ }
163
+ return entities;
164
+ }
165
+ /** The checker node type one slot kind is measured by. */
166
+ function checkerTypeFor(slot) {
167
+ switch (slot.kind) {
168
+ case "spritesheet":
169
+ return GAME_SPRITESHEET_NODE_TYPE;
170
+ case "tileset":
171
+ return GAME_TILESET_NODE_TYPE;
172
+ case "image":
173
+ return GAME_SEAMLESS_IMAGE_NODE_TYPE;
174
+ case "sfx":
175
+ return GAME_SOUND_EFFECT_NODE_TYPE;
176
+ case "music":
177
+ return GAME_MUSIC_LOOP_NODE_TYPE;
178
+ }
179
+ }
180
+ /** The properties a checker is configured with, straight off the slot spec. */
181
+ function checkerPropertiesFor(slot) {
182
+ switch (slot.kind) {
183
+ case "spritesheet":
184
+ return {
185
+ slot_id: slot.id,
186
+ cell_width: slot.cell[0],
187
+ cell_height: slot.cell[1],
188
+ animations: slot.animations,
189
+ fps: slot.fps
190
+ };
191
+ case "tileset":
192
+ return {
193
+ slot_id: slot.id,
194
+ cell_width: slot.cell[0],
195
+ cell_height: slot.cell[1],
196
+ count: slot.count
197
+ };
198
+ case "image":
199
+ return {
200
+ slot_id: slot.id,
201
+ check_x: slot.seamless_x,
202
+ check_y: slot.seamless_y,
203
+ repair: slot.seamless_x || slot.seamless_y
204
+ };
205
+ case "sfx":
206
+ return { slot_id: slot.id, seconds: slot.seconds };
207
+ case "music":
208
+ return { slot_id: slot.id, seconds: slot.seconds };
209
+ }
210
+ }
211
+ // ── The builder ─────────────────────────────────────────────────────────────
212
+ /**
213
+ * Build the slot-filling graph for one template.
214
+ *
215
+ * One row per slot, left to right: generate, resize to the slot's exact
216
+ * pixels, check and stamp, preview. Every checker's stamped `output` feeds the
217
+ * one export node's `fills` list, and the export node's `output` lands on an
218
+ * `Output` named `project`.
219
+ *
220
+ * Audio slots are skipped without an issue when the creator kept the
221
+ * placeholders (D27) — an omitted slot is a choice, not a failure.
222
+ */
223
+ export function gameGraphPlacement(manifest, design, choices, lookup) {
224
+ const nodes = [];
225
+ const edges = [];
226
+ const issues = [];
227
+ const style = choices.style
228
+ ? { descriptor: choices.style.descriptor }
229
+ : null;
230
+ const subjects = new Map(design.slot_prompts.map((entry) => [entry.slot_id, entry.prompt]));
231
+ const shapeOf = (nodeType, label) => {
232
+ const shape = lookup(nodeType);
233
+ if (!shape) {
234
+ issues.push(`${label} needs "${nodeType}", which the registry does not have, so nothing was placed for it.`);
235
+ return null;
236
+ }
237
+ return shape;
238
+ };
239
+ /** Slot id → the checker node whose stamped asset the export node reads. */
240
+ const checkerFills = [];
241
+ manifest.slots.forEach((slot, row) => {
242
+ const label = `slot "${slot.id}"`;
243
+ const subject = subjects.get(slot.id) ?? slot.prompt ?? slot.id;
244
+ const built = gameSlotPrompt(slot, subject, style, design.cast);
245
+ // The generator, and the resize step the image kinds need.
246
+ const audio = slot.kind === "sfx" || slot.kind === "music";
247
+ const generatorType = audio
248
+ ? slot.kind === "sfx"
249
+ ? choices.sfxNodeType
250
+ : GAME_TEXT_TO_MUSIC_NODE_TYPE
251
+ : choices.style?.referenceAssetId ? GAME_IMAGE_TO_IMAGE_NODE_TYPE : GAME_TEXT_TO_IMAGE_NODE_TYPE;
252
+ // Keeping the template's placeholder audio is a choice (D27), not an issue.
253
+ if (slot.kind === "sfx" && choices.sfxNodeType === null) {
254
+ return;
255
+ }
256
+ if (slot.kind === "music" && choices.musicModel === null) {
257
+ return;
258
+ }
259
+ if (generatorType === null) {
260
+ return;
261
+ }
262
+ if (!audio && choices.style?.referenceAssetId && Array.isArray(choices.imageModel.supported_tasks) &&
263
+ !choices.imageModel.supported_tasks.includes("image_to_image")) {
264
+ issues.push(`${label} needs an image-to-image model to use the selected style reference.`);
265
+ return;
266
+ }
267
+ const generatorShape = shapeOf(generatorType, label);
268
+ if (!generatorShape) {
269
+ return;
270
+ }
271
+ const checkerType = checkerTypeFor(slot);
272
+ const checkerShape = shapeOf(checkerType, label);
273
+ if (!checkerShape) {
274
+ return;
275
+ }
276
+ // Everything this chain needs is resolved before a node is pushed, so a
277
+ // slot the builder cannot finish leaves no half-placed chain behind.
278
+ const chainNodes = [];
279
+ const chainEdges = [];
280
+ const generatorId = `gen_${row + 1}`;
281
+ const checkerId = `check_${row + 1}`;
282
+ if (audio) {
283
+ const generatorOut = firstOutputOfType(generatorShape, "audio");
284
+ if (!generatorOut) {
285
+ issues.push(`${label} needs an audio output on "${generatorType}", which has none, so nothing was placed for it.`);
286
+ return;
287
+ }
288
+ const properties = {};
289
+ if (slot.kind === "music") {
290
+ properties["model"] = choices.musicModel;
291
+ }
292
+ const promptInput = SFX_PROMPT_INPUTS.map((name) => inputNamed(generatorShape, name)).find((handle) => handle !== null) ?? null;
293
+ if (!promptInput) {
294
+ issues.push(`${label} needs a prompt input on "${generatorType}", which has none, so nothing was placed for it.`);
295
+ return;
296
+ }
297
+ properties[promptInput.name] = built.prompt;
298
+ const durationInput = SFX_DURATION_INPUTS.map((name) => inputNamed(generatorShape, name)).find((handle) => handle !== null) ?? null;
299
+ if (durationInput) {
300
+ // FAL's ElevenLabs node types its duration as a string; others take a
301
+ // number. Match the handle rather than the manifest, or the graph
302
+ // fails validation on a property nobody looked at.
303
+ properties[durationInput.name] =
304
+ durationInput.type === "str" ? String(slot.seconds) : slot.seconds;
305
+ }
306
+ const checkerIn = firstInputOfType(checkerShape, "audio");
307
+ if (!checkerIn) {
308
+ issues.push(`${label} needs an audio input on "${checkerType}", which has none, so nothing was placed for it.`);
309
+ return;
310
+ }
311
+ chainNodes.push({
312
+ id: generatorId,
313
+ type: generatorType,
314
+ position: position(COLUMN_GENERATE, row),
315
+ properties,
316
+ setupStepId: slot.id
317
+ });
318
+ chainEdges.push({
319
+ source: generatorId,
320
+ sourceHandle: generatorOut.name,
321
+ target: checkerId,
322
+ targetHandle: checkerIn.name
323
+ });
324
+ }
325
+ else {
326
+ const generatorOut = firstOutputOfType(generatorShape, "image");
327
+ if (!generatorOut) {
328
+ issues.push(`${label} needs an image output on "${generatorType}", which has none, so nothing was placed for it.`);
329
+ return;
330
+ }
331
+ const resizeShape = shapeOf(GAME_RESIZE_NODE_TYPE, label);
332
+ if (!resizeShape) {
333
+ return;
334
+ }
335
+ const resizeIn = firstInputOfType(resizeShape, "image");
336
+ const resizeOut = firstOutputOfType(resizeShape, "image");
337
+ const checkerIn = firstInputOfType(checkerShape, "image");
338
+ if (!resizeIn || !resizeOut || !checkerIn) {
339
+ issues.push(`${label} could not be wired: the resize or checker node has no image handle, so nothing was placed for it.`);
340
+ return;
341
+ }
342
+ const { width, height } = built;
343
+ if (width === undefined || height === undefined) {
344
+ issues.push(`${label} has no pixel size, so there is nothing to resize to and nothing was placed for it.`);
345
+ return;
346
+ }
347
+ const resizeId = `resize_${row + 1}`;
348
+ const generatorProperties = {
349
+ model: choices.imageModel,
350
+ prompt: built.prompt,
351
+ aspect_ratio: built.aspectRatio,
352
+ resolution: resolutionFor(width, height),
353
+ entities: entitiesFor(choices, design, slot)
354
+ };
355
+ if (choices.style?.referenceAssetId)
356
+ generatorProperties.image = [];
357
+ chainNodes.push({
358
+ id: generatorId,
359
+ type: generatorType,
360
+ position: position(COLUMN_GENERATE, row),
361
+ properties: generatorProperties,
362
+ setupStepId: slot.id
363
+ }, {
364
+ id: resizeId,
365
+ type: GAME_RESIZE_NODE_TYPE,
366
+ position: position(COLUMN_RESIZE, row),
367
+ properties: { mode: "dimensions", width, height },
368
+ setupStepId: slot.id
369
+ });
370
+ chainEdges.push({
371
+ source: generatorId,
372
+ sourceHandle: generatorOut.name,
373
+ target: resizeId,
374
+ targetHandle: resizeIn.name
375
+ }, {
376
+ source: resizeId,
377
+ sourceHandle: resizeOut.name,
378
+ target: checkerId,
379
+ targetHandle: checkerIn.name
380
+ });
381
+ }
382
+ const assetOut = outputNamed(checkerShape, CHECKER_ASSET_HANDLE);
383
+ if (!assetOut) {
384
+ issues.push(`${label} needs an "${CHECKER_ASSET_HANDLE}" output on "${checkerType}", which has none, so nothing was placed for it.`);
385
+ return;
386
+ }
387
+ chainNodes.push({
388
+ id: checkerId,
389
+ type: checkerType,
390
+ position: position(COLUMN_CHECK, row),
391
+ properties: checkerPropertiesFor(slot),
392
+ setupStepId: slot.id
393
+ });
394
+ // The preview is what puts the asset on the canvas. It is the one part of
395
+ // a chain that may be missing without the chain being wrong.
396
+ const previewShape = lookup(GAME_PREVIEW_NODE_TYPE);
397
+ if (previewShape) {
398
+ const previewIn = previewShape.inputs[0];
399
+ if (previewIn) {
400
+ const previewId = `preview_${row + 1}`;
401
+ chainNodes.push({
402
+ id: previewId,
403
+ type: GAME_PREVIEW_NODE_TYPE,
404
+ position: position(COLUMN_PREVIEW, row),
405
+ properties: { name: slot.id },
406
+ setupStepId: slot.id
407
+ });
408
+ chainEdges.push({
409
+ source: checkerId,
410
+ sourceHandle: assetOut.name,
411
+ target: previewId,
412
+ targetHandle: previewIn.name
413
+ });
414
+ }
415
+ }
416
+ nodes.push(...chainNodes);
417
+ edges.push(...chainEdges);
418
+ checkerFills.push({
419
+ slotId: slot.id,
420
+ nodeId: checkerId,
421
+ handle: assetOut.name
422
+ });
423
+ });
424
+ // Stage candidates; game revision publication is an explicit later operation.
425
+ const exportShape = lookup(GAME_EXPORT_NODE_TYPE);
426
+ if (!exportShape) {
427
+ issues.push(`the staging node "${GAME_EXPORT_NODE_TYPE}" is not in the registry, so the graph fills slots but stages no assets.`);
428
+ return { nodes, edges, issues };
429
+ }
430
+ const fillsInput = inputNamed(exportShape, EXPORT_FILLS_INPUT);
431
+ if (!fillsInput) {
432
+ issues.push(`the staging node has no "${EXPORT_FILLS_INPUT}" input, so the checked assets have nowhere to land.`);
433
+ return { nodes, edges, issues };
434
+ }
435
+ const exportId = "export";
436
+ nodes.push({
437
+ id: exportId,
438
+ type: GAME_EXPORT_NODE_TYPE,
439
+ position: position(COLUMN_EXPORT, 0),
440
+ properties: {
441
+ template: manifest.template,
442
+ game_id: choices.gameId ?? "",
443
+ reference_asset_id: choices.style?.referenceAssetId ?? ""
444
+ }
445
+ });
446
+ // Many edges into one list input: the kernel folds them into the `fills`
447
+ // list in arrival order, so one handle takes every slot.
448
+ for (const fill of checkerFills) {
449
+ edges.push({
450
+ source: fill.nodeId,
451
+ sourceHandle: fill.handle,
452
+ target: exportId,
453
+ targetHandle: fillsInput.name
454
+ });
455
+ }
456
+ const exportOut = outputNamed(exportShape, "output") ?? exportShape.outputs[0] ?? null;
457
+ if (!exportOut) {
458
+ issues.push(`the export node produces no output, so the run reports nothing back.`);
459
+ return { nodes, edges, issues };
460
+ }
461
+ const outputShape = lookup(PLAN_OUTPUT_NODE_TYPE);
462
+ if (!outputShape) {
463
+ issues.push(`"${PLAN_OUTPUT_NODE_TYPE}" is not in the registry, so the export result is not returned.`);
464
+ return { nodes, edges, issues };
465
+ }
466
+ const outputId = "output_project";
467
+ nodes.push({
468
+ id: outputId,
469
+ type: PLAN_OUTPUT_NODE_TYPE,
470
+ position: position(COLUMN_OUTPUT, 0),
471
+ properties: { name: GAME_PROJECT_OUTPUT_NAME }
472
+ });
473
+ edges.push({
474
+ source: exportId,
475
+ sourceHandle: exportOut.name,
476
+ target: outputId,
477
+ targetHandle: outputShape.inputs[0]?.name ?? "value"
478
+ });
479
+ return { nodes, edges, issues };
480
+ }
481
+ //# sourceMappingURL=game-graph.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"game-graph.js","sourceRoot":"","sources":["../src/game-graph.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAIH,OAAO,EAAE,cAAc,EAAwB,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EACL,qBAAqB,EAOtB,MAAM,oBAAoB,CAAC;AAE5B,+EAA+E;AAE/E,MAAM,CAAC,MAAM,4BAA4B,GAAG,4BAA4B,CAAC;AACzE,MAAM,CAAC,MAAM,6BAA6B,GAAG,6BAA6B,CAAC;AAC3E,MAAM,CAAC,MAAM,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AAK,CAAC,IAAI,CAAC;QACT,EAAE,EAAE,QAAQ;QACZ,IAAI,EAAE,qBAAqB;QAC3B,QAAQ,EAAE,QAAQ,CAAC,aAAa,EAAE,CAAC,CAAC;QACpC,UAAU,EAAE,EAAE,IAAI,EAAE,wBAAwB,EAAE;KAC/C,CAAC,CAAC;IACH,KAAK,CAAC,IAAI,CAAC;QACT,MAAM,EAAE,QAAQ;QAChB,YAAY,EAAE,SAAS,CAAC,IAAI;QAC5B,MAAM,EAAE,QAAQ;QAChB,YAAY,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,OAAO;KACrD,CAAC,CAAC;IAEH,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;AAClC,CAAC"}
@@ -0,0 +1,4 @@
1
+ /** Removed workflows must report the gameplay work that art import cannot perform. */
2
+ export declare const LEGACY_GAME_EXPORT_DIAGNOSTIC = "ExportGodotProject was removed. Create a native game, reconnect surviving asset checkers to StageGameAssets, then install selected bindings into a game revision. GDScript and Godot scenes require manual reconstruction.";
3
+ export declare function legacyGameNodeDiagnostic(type: string): string | null;
4
+ //# sourceMappingURL=game-migration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"game-migration.d.ts","sourceRoot":"","sources":["../src/game-migration.ts"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,eAAO,MAAM,6BAA6B,+NAA+N,CAAC;AAE1Q,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAEpE"}
@@ -0,0 +1,6 @@
1
+ /** Removed workflows must report the gameplay work that art import cannot perform. */
2
+ export const LEGACY_GAME_EXPORT_DIAGNOSTIC = "ExportGodotProject was removed. Create a native game, reconnect surviving asset checkers to StageGameAssets, then install selected bindings into a game revision. GDScript and Godot scenes require manual reconstruction.";
3
+ export function legacyGameNodeDiagnostic(type) {
4
+ return type === "nodetool.game.ExportGodotProject" ? LEGACY_GAME_EXPORT_DIAGNOSTIC : null;
5
+ }
6
+ //# sourceMappingURL=game-migration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"game-migration.js","sourceRoot":"","sources":["../src/game-migration.ts"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,MAAM,CAAC,MAAM,6BAA6B,GAAG,4NAA4N,CAAC;AAE1Q,MAAM,UAAU,wBAAwB,CAAC,IAAY;IACnD,OAAO,IAAI,KAAK,kCAAkC,CAAC,CAAC,CAAC,6BAA6B,CAAC,CAAC,CAAC,IAAI,CAAC;AAC5F,CAAC"}
@@ -0,0 +1,90 @@
1
+ /**
2
+ * @nodetool-ai/protocol — One game asset slot, turned into a generation job.
3
+ *
4
+ * A {@link GameSlotSpec} says what a template needs; a generator needs a
5
+ * prompt and a canvas; the `nodetool.game.*` checker that accepts the result
6
+ * needs numbers. {@link slotPrompt} is the one mapping between them, pure, so
7
+ * the `nodetool.game.SlotPrompt` node and the editor
8
+ * all size a sheet and word a prompt the same way.
9
+ *
10
+ * Three rules the tests pin:
11
+ *
12
+ * - **The canvas follows the slot, not the model.** A spritesheet is as wide as
13
+ * its longest animation and as tall as its animation count; a tileset is the
14
+ * near-square grid that holds `count` cells; an image is its declared size.
15
+ * Audio has no canvas, so `width` and `height` are 0.
16
+ * - **`checker` is the matching checker's prop bag**, key for key, so a graph
17
+ * can `Switch` on `slot.kind` and hand the bag straight to
18
+ * `SpriteSheet` / `Tileset` / `SeamlessImage` / `SoundEffect` / `MusicLoop`
19
+ * with no hand-copied numbers.
20
+ * - **Every entity handed to a slot applies to it.** A template's own slot
21
+ * prompt is generic ("the player character"), so the name matching a
22
+ * storyboard shot uses would drop the character the sheet is *for*. The
23
+ * graph author decides the cast per slot instead, and the injection itself is
24
+ * {@link injectEntities}, unchanged — same block, same order, same reference
25
+ * images as a shot render.
26
+ */
27
+ import { type Entity } from "./creative.js";
28
+ import { type GameSlotKind, type GameSlotSpec } from "./game-assets.js";
29
+ export interface SlotPromptResult {
30
+ /** The generation prompt, with the entity block already appended. */
31
+ prompt: string;
32
+ /** Canvas width in pixels; 0 for a slot with no canvas (sfx, music). */
33
+ width: number;
34
+ /** Canvas height in pixels; 0 for a slot with no canvas (sfx, music). */
35
+ height: number;
36
+ /** The prop bag the `nodetool.game.*` checker for this kind takes. */
37
+ checker: Record<string, unknown>;
38
+ /** Primary style image for an image-to-image generator. */
39
+ referenceImages: NonNullable<Entity["reference_images"]>;
40
+ referenceAssetId: string;
41
+ }
42
+ /**
43
+ * The slot a `game_slot` input carries, or null when nothing is wired.
44
+ *
45
+ * A checker takes its numbers from the slot when one is connected, so an unset
46
+ * input has to be told apart from a malformed one: unset falls back to the
47
+ * hand-typed props, malformed throws. Silently falling back on a bad slot is
48
+ * the failure this exists to prevent — the node would then stamp a fill from
49
+ * numbers nobody checked.
50
+ */
51
+ export declare function readSlotProp(value: unknown, expected?: GameSlotKind): GameSlotSpec | null;
52
+ /** Columns and rows of the squarest grid that holds `count` cells. */
53
+ export declare function nearSquareGrid(count: number): {
54
+ columns: number;
55
+ rows: number;
56
+ };
57
+ /**
58
+ * The entities that season a slot: the style first, then the cast, each id
59
+ * once.
60
+ *
61
+ * Unlike `entitiesForShot` nothing is matched by name. A slot's text comes from
62
+ * the template and names roles, not cast — `enemy.walker` says "a small ground
63
+ * enemy", never "Pip" — so name matching would season the sheet with the style
64
+ * and silently leave the character out. What a slot gets is what the caller
65
+ * wired to it.
66
+ */
67
+ export declare function slotCast(style: Entity | null, cast: readonly Entity[]): Entity[];
68
+ /**
69
+ * The prop bag for the `nodetool.game.*` node that accepts this kind of fill.
70
+ *
71
+ * Every key here is a declared `@prop` on that node —
72
+ * `packages/game-nodes/tests/checker-props.test.ts` reads the node metadata and
73
+ * fails when the two drift. Props the slot says nothing about (`loop`,
74
+ * `threshold`, `trim`, `crossfade_ms`) are left off so the node's own default
75
+ * applies.
76
+ *
77
+ * The checkers read this themselves: a connected `slot` input overrides the
78
+ * hand-typed numbers with exactly these keys, so a stale `cell_width` left over
79
+ * from an earlier wiring cannot reach the fill.
80
+ */
81
+ export declare function slotCheckerProps(slot: GameSlotSpec): Record<string, unknown>;
82
+ /**
83
+ * Everything needed to fill one slot: the seasoned prompt, the canvas, and the
84
+ * checker's prop bag.
85
+ *
86
+ * Swapping `style` is what makes a re-skin one edit: it applies to every slot,
87
+ * so the pack stays consistent by construction (see {@link slotCast}).
88
+ */
89
+ export declare function slotPrompt(slot: GameSlotSpec, style: Entity | null, cast?: readonly Entity[]): SlotPromptResult;
90
+ //# sourceMappingURL=game-slot-prompt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"game-slot-prompt.d.ts","sourceRoot":"","sources":["../src/game-slot-prompt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAIH,OAAO,EAAkB,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAgB,KAAK,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEtF,MAAM,WAAW,gBAAgB;IAC/B,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAC;IACf,wEAAwE;IACxE,KAAK,EAAE,MAAM,CAAC;IACd,yEAAyE;IACzE,MAAM,EAAE,MAAM,CAAC;IACf,sEAAsE;IACtE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,2DAA2D;IAC3D,eAAe,EAAE,WAAW,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC;IACzD,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAaD;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,OAAO,EACd,QAAQ,CAAC,EAAE,YAAY,GACtB,YAAY,GAAG,IAAI,CAiBrB;AAED,sEAAsE;AACtE,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG;IAC7C,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAA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