@nodetool-ai/protocol 0.7.0-rc.23 → 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
@@ -6,39 +6,76 @@
6
6
  * — which re-exports every LLM provider with their heavy SDK imports —
7
7
  * into the main bundle.
8
8
  *
9
- * Bumped only when the stdio worker protocol changes in a non-backward-
10
- * compatible way (new message types, framing changes, schema breaks).
11
- * Most JS or Python releases do NOT bump this — we want to allow the JS
12
- * and Python sides to ship on independent cadences.
9
+ * Two distinct numbers, deliberately decoupled so the JS and Python sides can
10
+ * ship on independent cadences:
11
+ *
12
+ * - `BRIDGE_PROTOCOL_VERSION` — the protocol the JS runtime currently
13
+ * *speaks*. Bumped whenever the JS side gains awareness of new wire
14
+ * features (e.g. new message types). Features are negotiated against the
15
+ * value the worker reports in its `discover`/`worker.status` response, so
16
+ * a newer JS runtime can still drive an older worker for everything that
17
+ * worker understands.
18
+ * - `MIN_BRIDGE_PROTOCOL_VERSION` — the *hard floor*. The JS runtime refuses
19
+ * to connect to a worker reporting a protocol below this. Bumped ONLY for
20
+ * genuinely backward-incompatible changes (framing changes, schema breaks,
21
+ * a removed/changed message). Additive changes (new message types the old
22
+ * worker simply never receives) MUST NOT move this floor — they are gated
23
+ * per-feature instead (see `supportsModelManagement`, `supportsComfy`).
13
24
  *
14
25
  * Coupling rules:
15
26
  *
16
- * - `BRIDGE_PROTOCOL_VERSION` is what the JS runtime speaks. The Python
17
- * worker reports its own value in its `discover` response.
27
+ * - The Python worker reports its own `BRIDGE_PROTOCOL_VERSION` in its
28
+ * `discover`/`worker.status` responses.
18
29
  * - `MIN_NODETOOL_CORE_VERSION` is the lowest published `nodetool-core`
19
- * PEP 440 version that ships `BRIDGE_PROTOCOL_VERSION`. The Electron
20
- * installer pins `nodetool-core>=MIN_NODETOOL_CORE_VERSION` and the
21
- * prebuild check refuses to ship if the registry has no wheel that
22
- * satisfies the constraint.
30
+ * PEP 440 version the Electron installer pins. The prebuild check refuses
31
+ * to ship if the registry has no wheel that satisfies the constraint.
23
32
  *
24
- * On a breaking protocol change:
33
+ * On an ADDITIVE protocol change (new message types, no break):
25
34
  *
26
35
  * 1. Bump `BRIDGE_PROTOCOL_VERSION` here AND in
27
36
  * `nodetool-core/src/nodetool/worker/__init__.py` (lockstep).
37
+ * 2. Gate the new feature on the reported version (e.g. a `supportsX()`
38
+ * capability check). Leave `MIN_BRIDGE_PROTOCOL_VERSION` untouched so
39
+ * existing workers keep connecting and simply don't offer the feature.
40
+ *
41
+ * On a BREAKING protocol change:
42
+ *
43
+ * 1. Bump `BRIDGE_PROTOCOL_VERSION` AND `MIN_BRIDGE_PROTOCOL_VERSION` here
44
+ * and in `nodetool-core` (lockstep).
28
45
  * 2. Cut a new `nodetool-core` release containing the bump.
29
46
  * 3. Update `MIN_NODETOOL_CORE_VERSION` to that new release.
30
47
  */
31
- export declare const BRIDGE_PROTOCOL_VERSION = 1;
48
+ export declare const BRIDGE_PROTOCOL_VERSION = 6;
49
+ /**
50
+ * Hard floor: the JS runtime rejects (at `discover`) any worker reporting a
51
+ * protocol below this. Stays at 1 because every protocol change so far has
52
+ * been additive — `models.*` (v2) is negotiated via `supportsModelManagement`,
53
+ * `comfy.*` (v3) via `supportsComfy`, and run identity + `job.*` + `models.evict`
54
+ * (v4) via `supportsJobLifecycle` — so a v1 worker still connects and runs
55
+ * every pre-v2 feature; it just doesn't expose the newer families. Move this
56
+ * only for a real wire break.
57
+ *
58
+ * v4 is additive in both directions. The identity keys added to `execute` /
59
+ * `execute.stream` (`node_id`, `job_id`, `workflow_id`, `user_id`,
60
+ * `requires_vram_gb`) are extra dict entries a pre-v4 worker ignores, so the
61
+ * JS side sends them unconditionally; only the new `job.start` / `job.end` /
62
+ * `models.evict` message types are gated, because a pre-v4 worker answers
63
+ * those with `Unknown message type`.
64
+ *
65
+ * v5 adds an optional `chunked-v1` execute-result blob transfer. The JS side
66
+ * requests it only from workers reporting v5 or newer; older workers keep
67
+ * returning the legacy inline `blobs` map.
68
+ */
69
+ export declare const MIN_BRIDGE_PROTOCOL_VERSION = 1;
32
70
  /**
33
- * Lowest published nodetool-core version (PEP 440 string) that speaks
34
- * `BRIDGE_PROTOCOL_VERSION` AND reports it in its `discover` response.
35
- * Used by the prebuild registry check and the Electron installer's pin
71
+ * Lowest published nodetool-core version (PEP 440 string) the Electron
72
+ * installer pins. Used by the prebuild registry check and the installer's pin
36
73
  * specifier.
37
74
  *
38
- * IMPORTANT: when you publish a new nodetool-core release that bumps
39
- * BRIDGE_PROTOCOL_VERSION, update this string to that new release. The
40
- * prebuild check will refuse to build the Electron app until a wheel
41
- * satisfying this lower bound exists on the registry.
75
+ * This tracks `MIN_BRIDGE_PROTOCOL_VERSION` (the connection floor), NOT
76
+ * `BRIDGE_PROTOCOL_VERSION`: an additive bump does not require a new minimum
77
+ * wheel, because older wheels still connect and run. Bump this only when
78
+ * `MIN_BRIDGE_PROTOCOL_VERSION` moves and a wheel carrying that floor exists.
42
79
  */
43
- export declare const MIN_NODETOOL_CORE_VERSION = "0.7.0rc8";
80
+ export declare const MIN_NODETOOL_CORE_VERSION = "0.7.0";
44
81
  //# sourceMappingURL=bridge-protocol.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bridge-protocol.d.ts","sourceRoot":"","sources":["../src/bridge-protocol.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,eAAO,MAAM,uBAAuB,IAAI,CAAC;AAEzC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,yBAAyB,aAAa,CAAC"}
1
+ {"version":3,"file":"bridge-protocol.d.ts","sourceRoot":"","sources":["../src/bridge-protocol.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH,eAAO,MAAM,uBAAuB,IAAI,CAAC;AAEzC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,2BAA2B,IAAI,CAAC;AAE7C;;;;;;;;;GASG;AACH,eAAO,MAAM,yBAAyB,UAAU,CAAC"}
@@ -6,39 +6,76 @@
6
6
  * — which re-exports every LLM provider with their heavy SDK imports —
7
7
  * into the main bundle.
8
8
  *
9
- * Bumped only when the stdio worker protocol changes in a non-backward-
10
- * compatible way (new message types, framing changes, schema breaks).
11
- * Most JS or Python releases do NOT bump this — we want to allow the JS
12
- * and Python sides to ship on independent cadences.
9
+ * Two distinct numbers, deliberately decoupled so the JS and Python sides can
10
+ * ship on independent cadences:
11
+ *
12
+ * - `BRIDGE_PROTOCOL_VERSION` — the protocol the JS runtime currently
13
+ * *speaks*. Bumped whenever the JS side gains awareness of new wire
14
+ * features (e.g. new message types). Features are negotiated against the
15
+ * value the worker reports in its `discover`/`worker.status` response, so
16
+ * a newer JS runtime can still drive an older worker for everything that
17
+ * worker understands.
18
+ * - `MIN_BRIDGE_PROTOCOL_VERSION` — the *hard floor*. The JS runtime refuses
19
+ * to connect to a worker reporting a protocol below this. Bumped ONLY for
20
+ * genuinely backward-incompatible changes (framing changes, schema breaks,
21
+ * a removed/changed message). Additive changes (new message types the old
22
+ * worker simply never receives) MUST NOT move this floor — they are gated
23
+ * per-feature instead (see `supportsModelManagement`, `supportsComfy`).
13
24
  *
14
25
  * Coupling rules:
15
26
  *
16
- * - `BRIDGE_PROTOCOL_VERSION` is what the JS runtime speaks. The Python
17
- * worker reports its own value in its `discover` response.
27
+ * - The Python worker reports its own `BRIDGE_PROTOCOL_VERSION` in its
28
+ * `discover`/`worker.status` responses.
18
29
  * - `MIN_NODETOOL_CORE_VERSION` is the lowest published `nodetool-core`
19
- * PEP 440 version that ships `BRIDGE_PROTOCOL_VERSION`. The Electron
20
- * installer pins `nodetool-core>=MIN_NODETOOL_CORE_VERSION` and the
21
- * prebuild check refuses to ship if the registry has no wheel that
22
- * satisfies the constraint.
30
+ * PEP 440 version the Electron installer pins. The prebuild check refuses
31
+ * to ship if the registry has no wheel that satisfies the constraint.
23
32
  *
24
- * On a breaking protocol change:
33
+ * On an ADDITIVE protocol change (new message types, no break):
25
34
  *
26
35
  * 1. Bump `BRIDGE_PROTOCOL_VERSION` here AND in
27
36
  * `nodetool-core/src/nodetool/worker/__init__.py` (lockstep).
37
+ * 2. Gate the new feature on the reported version (e.g. a `supportsX()`
38
+ * capability check). Leave `MIN_BRIDGE_PROTOCOL_VERSION` untouched so
39
+ * existing workers keep connecting and simply don't offer the feature.
40
+ *
41
+ * On a BREAKING protocol change:
42
+ *
43
+ * 1. Bump `BRIDGE_PROTOCOL_VERSION` AND `MIN_BRIDGE_PROTOCOL_VERSION` here
44
+ * and in `nodetool-core` (lockstep).
28
45
  * 2. Cut a new `nodetool-core` release containing the bump.
29
46
  * 3. Update `MIN_NODETOOL_CORE_VERSION` to that new release.
30
47
  */
31
- export const BRIDGE_PROTOCOL_VERSION = 1;
48
+ export const BRIDGE_PROTOCOL_VERSION = 6;
49
+ /**
50
+ * Hard floor: the JS runtime rejects (at `discover`) any worker reporting a
51
+ * protocol below this. Stays at 1 because every protocol change so far has
52
+ * been additive — `models.*` (v2) is negotiated via `supportsModelManagement`,
53
+ * `comfy.*` (v3) via `supportsComfy`, and run identity + `job.*` + `models.evict`
54
+ * (v4) via `supportsJobLifecycle` — so a v1 worker still connects and runs
55
+ * every pre-v2 feature; it just doesn't expose the newer families. Move this
56
+ * only for a real wire break.
57
+ *
58
+ * v4 is additive in both directions. The identity keys added to `execute` /
59
+ * `execute.stream` (`node_id`, `job_id`, `workflow_id`, `user_id`,
60
+ * `requires_vram_gb`) are extra dict entries a pre-v4 worker ignores, so the
61
+ * JS side sends them unconditionally; only the new `job.start` / `job.end` /
62
+ * `models.evict` message types are gated, because a pre-v4 worker answers
63
+ * those with `Unknown message type`.
64
+ *
65
+ * v5 adds an optional `chunked-v1` execute-result blob transfer. The JS side
66
+ * requests it only from workers reporting v5 or newer; older workers keep
67
+ * returning the legacy inline `blobs` map.
68
+ */
69
+ export const MIN_BRIDGE_PROTOCOL_VERSION = 1;
32
70
  /**
33
- * Lowest published nodetool-core version (PEP 440 string) that speaks
34
- * `BRIDGE_PROTOCOL_VERSION` AND reports it in its `discover` response.
35
- * Used by the prebuild registry check and the Electron installer's pin
71
+ * Lowest published nodetool-core version (PEP 440 string) the Electron
72
+ * installer pins. Used by the prebuild registry check and the installer's pin
36
73
  * specifier.
37
74
  *
38
- * IMPORTANT: when you publish a new nodetool-core release that bumps
39
- * BRIDGE_PROTOCOL_VERSION, update this string to that new release. The
40
- * prebuild check will refuse to build the Electron app until a wheel
41
- * satisfying this lower bound exists on the registry.
75
+ * This tracks `MIN_BRIDGE_PROTOCOL_VERSION` (the connection floor), NOT
76
+ * `BRIDGE_PROTOCOL_VERSION`: an additive bump does not require a new minimum
77
+ * wheel, because older wheels still connect and run. Bump this only when
78
+ * `MIN_BRIDGE_PROTOCOL_VERSION` moves and a wheel carrying that floor exists.
42
79
  */
43
- export const MIN_NODETOOL_CORE_VERSION = "0.7.0rc8";
80
+ export const MIN_NODETOOL_CORE_VERSION = "0.7.0";
44
81
  //# sourceMappingURL=bridge-protocol.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"bridge-protocol.js","sourceRoot":"","sources":["../src/bridge-protocol.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC;AAEzC;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,UAAU,CAAC"}
1
+ {"version":3,"file":"bridge-protocol.js","sourceRoot":"","sources":["../src/bridge-protocol.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC;AAEzC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC;AAE7C;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,OAAO,CAAC"}
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Catalog of the first-party node packs that ship with NodeTool.
3
+ *
4
+ * Shared between the server (which registers the packs at bootstrap) and the
5
+ * Electron package manager (which lets users enable/disable them), so both
6
+ * sides agree on the stable pack ids. Only packs marked `defaultEnabled` (or
7
+ * `required`) load on a fresh install; the rest are opt-in. User overrides
8
+ * are persisted in the packs config file (`~/.config/nodetool/packs.json`,
9
+ * keys `enabledBuiltins` / `disabledBuiltins`) and honored on the next
10
+ * server start.
11
+ */
12
+ export interface BuiltinNodePack {
13
+ /** Stable id used in the enabled/disabled lists. Never rename. */
14
+ id: string;
15
+ /** Display name shown in the package manager. */
16
+ name: string;
17
+ /** Short user-facing description of what the pack provides. */
18
+ description: string;
19
+ /** Required packs cannot be disabled (core nodes the editor depends on). */
20
+ required?: boolean;
21
+ /**
22
+ * Enabled on a fresh install. All other packs are opt-in via the package
23
+ * manager, keeping the node namespace small by default.
24
+ */
25
+ defaultEnabled?: boolean;
26
+ /**
27
+ * First segments of the node types this pack registers (e.g. `fal` for
28
+ * `fal.image.*`). Lets UIs map a missing node type back to the pack that
29
+ * provides it.
30
+ */
31
+ namespaces: readonly string[];
32
+ }
33
+ /**
34
+ * The optional pack providing `nodeType`, if any. Required packs are excluded
35
+ * — they are always loaded, so a missing node type can't be theirs.
36
+ */
37
+ export declare function findBuiltinPackForNodeType(nodeType: string): BuiltinNodePack | undefined;
38
+ /**
39
+ * Effective enabled state for a built-in pack: required packs are always on;
40
+ * otherwise an explicit user override wins, falling back to the install
41
+ * default.
42
+ */
43
+ export declare function resolveBuiltinPackEnabled(pack: BuiltinNodePack, override?: boolean): boolean;
44
+ export declare const BUILTIN_NODE_PACKS: readonly BuiltinNodePack[];
45
+ //# sourceMappingURL=builtin-packs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"builtin-packs.d.ts","sourceRoot":"","sources":["../src/builtin-packs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,MAAM,WAAW,eAAe;IAC9B,kEAAkE;IAClE,EAAE,EAAE,MAAM,CAAC;IACX,iDAAiD;IACjD,IAAI,EAAE,MAAM,CAAC;IACb,+DAA+D;IAC/D,WAAW,EAAE,MAAM,CAAC;IACpB,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;OAIG;IACH,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;CAC/B;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE,MAAM,GACf,eAAe,GAAG,SAAS,CAK7B;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,eAAe,EACrB,QAAQ,CAAC,EAAE,OAAO,GACjB,OAAO,CAGT;AAED,eAAO,MAAM,kBAAkB,EAAE,SAAS,eAAe,EAyFxD,CAAC"}
@@ -0,0 +1,115 @@
1
+ /**
2
+ * Catalog of the first-party node packs that ship with NodeTool.
3
+ *
4
+ * Shared between the server (which registers the packs at bootstrap) and the
5
+ * Electron package manager (which lets users enable/disable them), so both
6
+ * sides agree on the stable pack ids. Only packs marked `defaultEnabled` (or
7
+ * `required`) load on a fresh install; the rest are opt-in. User overrides
8
+ * are persisted in the packs config file (`~/.config/nodetool/packs.json`,
9
+ * keys `enabledBuiltins` / `disabledBuiltins`) and honored on the next
10
+ * server start.
11
+ */
12
+ /**
13
+ * The optional pack providing `nodeType`, if any. Required packs are excluded
14
+ * — they are always loaded, so a missing node type can't be theirs.
15
+ */
16
+ export function findBuiltinPackForNodeType(nodeType) {
17
+ const head = nodeType.split(".")[0];
18
+ return BUILTIN_NODE_PACKS.find((pack) => !pack.required && pack.namespaces.includes(head));
19
+ }
20
+ /**
21
+ * Effective enabled state for a built-in pack: required packs are always on;
22
+ * otherwise an explicit user override wins, falling back to the install
23
+ * default.
24
+ */
25
+ export function resolveBuiltinPackEnabled(pack, override) {
26
+ if (pack.required)
27
+ return true;
28
+ return override ?? pack.defaultEnabled ?? false;
29
+ }
30
+ export const BUILTIN_NODE_PACKS = [
31
+ {
32
+ id: "base",
33
+ name: "Base Nodes",
34
+ description: "Core nodes for text, data, documents, images, audio, video, agents, and LLM chat.",
35
+ required: true,
36
+ namespaces: ["gemini", "kie", "lib", "messaging", "mistral", "nodetool", "openai", "vector", "xai"]
37
+ },
38
+ {
39
+ id: "elevenlabs",
40
+ name: "ElevenLabs",
41
+ description: "Text-to-speech and voice generation via ElevenLabs.",
42
+ namespaces: ["elevenlabs"]
43
+ },
44
+ {
45
+ id: "minimax",
46
+ name: "MiniMax",
47
+ description: "MiniMax image, video, and audio generation.",
48
+ namespaces: ["minimax"]
49
+ },
50
+ {
51
+ id: "transformers-js",
52
+ name: "Transformers.js",
53
+ description: "Run Hugging Face NLP, vision, and audio models locally via ONNX Runtime.",
54
+ namespaces: ["transformers"]
55
+ },
56
+ {
57
+ id: "fal",
58
+ name: "FAL",
59
+ description: "Hosted image, video, and audio models on fal.ai.",
60
+ defaultEnabled: true,
61
+ namespaces: ["fal"]
62
+ },
63
+ {
64
+ id: "kie",
65
+ name: "Kie.ai",
66
+ description: "Image and video generation models on Kie.ai.",
67
+ defaultEnabled: true,
68
+ namespaces: ["kie"]
69
+ },
70
+ {
71
+ id: "topaz",
72
+ name: "Topaz Labs",
73
+ description: "Image and video upscaling and enhancement via Topaz Labs.",
74
+ namespaces: ["topaz"]
75
+ },
76
+ {
77
+ id: "reve",
78
+ name: "Reve",
79
+ description: "Reve image generation, editing, and remix.",
80
+ namespaces: ["reve"]
81
+ },
82
+ {
83
+ id: "atlascloud",
84
+ name: "AtlasCloud",
85
+ description: "Image and video generation on AtlasCloud — GPT Image, Nano Banana, Seedream, Seedance, Veo, Kling, Wan.",
86
+ namespaces: ["atlascloud"]
87
+ },
88
+ {
89
+ id: "higgsfield",
90
+ name: "Higgsfield",
91
+ description: "Curated Higgsfield image and video generation models.",
92
+ namespaces: ["higgsfield"]
93
+ },
94
+ {
95
+ id: "together",
96
+ name: "Together AI",
97
+ description: "Serverless image, video, text-to-speech, and transcription models on Together AI.",
98
+ namespaces: ["together"]
99
+ },
100
+ {
101
+ id: "replicate",
102
+ name: "Replicate",
103
+ description: "Community AI models hosted on Replicate.",
104
+ defaultEnabled: true,
105
+ namespaces: ["replicate"]
106
+ },
107
+ {
108
+ id: "huggingface",
109
+ name: "Hugging Face",
110
+ description: "Hugging Face Inference Providers nodes across all task modalities.",
111
+ defaultEnabled: true,
112
+ namespaces: ["huggingface"]
113
+ }
114
+ ];
115
+ //# sourceMappingURL=builtin-packs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"builtin-packs.js","sourceRoot":"","sources":["../src/builtin-packs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAwBH;;;GAGG;AACH,MAAM,UAAU,0BAA0B,CACxC,QAAgB;IAEhB,MAAM,IAAI,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACpC,OAAO,kBAAkB,CAAC,IAAI,CAC5B,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAC3D,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,yBAAyB,CACvC,IAAqB,EACrB,QAAkB;IAElB,IAAI,IAAI,CAAC,QAAQ;QAAE,OAAO,IAAI,CAAC;IAC/B,OAAO,QAAQ,IAAI,IAAI,CAAC,cAAc,IAAI,KAAK,CAAC;AAClD,CAAC;AAED,MAAM,CAAC,MAAM,kBAAkB,GAA+B;IAC5D;QACE,EAAE,EAAE,MAAM;QACV,IAAI,EAAE,YAAY;QAClB,WAAW,EACT,mFAAmF;QACrF,QAAQ,EAAE,IAAI;QACd,UAAU,EAAE,CAAC,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,CAAC;KACpG;IACD;QACE,EAAE,EAAE,YAAY;QAChB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,qDAAqD;QAClE,UAAU,EAAE,CAAC,YAAY,CAAC;KAC3B;IACD;QACE,EAAE,EAAE,SAAS;QACb,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,6CAA6C;QAC1D,UAAU,EAAE,CAAC,SAAS,CAAC;KACxB;IACD;QACE,EAAE,EAAE,iBAAiB;QACrB,IAAI,EAAE,iBAAiB;QACvB,WAAW,EACT,0EAA0E;QAC5E,UAAU,EAAE,CAAC,cAAc,CAAC;KAC7B;IACD;QACE,EAAE,EAAE,KAAK;QACT,IAAI,EAAE,KAAK;QACX,WAAW,EAAE,kDAAkD;QAC/D,cAAc,EAAE,IAAI;QACpB,UAAU,EAAE,CAAC,KAAK,CAAC;KACpB;IACD;QACE,EAAE,EAAE,KAAK;QACT,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,8CAA8C;QAC3D,cAAc,EAAE,IAAI;QACpB,UAAU,EAAE,CAAC,KAAK,CAAC;KACpB;IACD;QACE,EAAE,EAAE,OAAO;QACX,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,2DAA2D;QACxE,UAAU,EAAE,CAAC,OAAO,CAAC;KACtB;IACD;QACE,EAAE,EAAE,MAAM;QACV,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,4CAA4C;QACzD,UAAU,EAAE,CAAC,MAAM,CAAC;KACrB;IACD;QACE,EAAE,EAAE,YAAY;QAChB,IAAI,EAAE,YAAY;QAClB,WAAW,EACT,yGAAyG;QAC3G,UAAU,EAAE,CAAC,YAAY,CAAC;KAC3B;IACD;QACE,EAAE,EAAE,YAAY;QAChB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,uDAAuD;QACpE,UAAU,EAAE,CAAC,YAAY,CAAC;KAC3B;IACD;QACE,EAAE,EAAE,UAAU;QACd,IAAI,EAAE,aAAa;QACnB,WAAW,EACT,mFAAmF;QACrF,UAAU,EAAE,CAAC,UAAU,CAAC;KACzB;IACD;QACE,EAAE,EAAE,WAAW;QACf,IAAI,EAAE,WAAW;QACjB,WAAW,EAAE,0CAA0C;QACvD,cAAc,EAAE,IAAI;QACpB,UAAU,EAAE,CAAC,WAAW,CAAC;KAC1B;IACD;QACE,EAAE,EAAE,aAAa;QACjB,IAAI,EAAE,cAAc;QACpB,WAAW,EACT,oEAAoE;QACtE,cAAc,EAAE,IAAI;QACpB,UAAU,EAAE,CAAC,aAAa,CAAC;KAC5B;CACF,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { z } from "zod";
2
+ /** Word timing in milliseconds relative to the associated audio or clip. */
3
+ export declare const captionWord: z.ZodObject<{
4
+ word: z.ZodString;
5
+ startMs: z.ZodNumber;
6
+ endMs: z.ZodNumber;
7
+ kind: z.ZodOptional<z.ZodEnum<{
8
+ filler: "filler";
9
+ pause: "pause";
10
+ word: "word";
11
+ }>>;
12
+ confidence: z.ZodOptional<z.ZodNumber>;
13
+ }, z.core.$strip>;
14
+ export type CaptionWord = z.infer<typeof captionWord>;
15
+ //# sourceMappingURL=caption-word.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"caption-word.d.ts","sourceRoot":"","sources":["../src/caption-word.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,4EAA4E;AAC5E,eAAO,MAAM,WAAW;;;;;;;;;;iBAMtB,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { z } from "zod";
2
+ /** Word timing in milliseconds relative to the associated audio or clip. */
3
+ export const captionWord = z.object({
4
+ word: z.string(),
5
+ startMs: z.number(),
6
+ endMs: z.number(),
7
+ kind: z.enum(["word", "filler", "pause"]).optional(),
8
+ confidence: z.number().min(0).max(1).optional()
9
+ });
10
+ //# sourceMappingURL=caption-word.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"caption-word.js","sourceRoot":"","sources":["../src/caption-word.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,4EAA4E;AAC5E,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,EAAE;IACpD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CAChD,CAAC,CAAC"}
@@ -0,0 +1,187 @@
1
+ /**
2
+ * Curated "cloud" node + provider profile for the commercial NodeTool cloud
3
+ * product.
4
+ *
5
+ * The full NodeTool catalog ships ~3,500 nodes across ~60 namespaces — far
6
+ * more than a small team can support at a high quality bar, and much of it
7
+ * (filesystem, databases, scraping, messaging, office-doc tooling, local model
8
+ * runtimes) is developer/automation plumbing that dilutes the "creative AI
9
+ * workspace" mission. The cloud product instead offers a deliberately small,
10
+ * curated surface focused on generating and editing text, images, audio,
11
+ * video, and 3D — plus the Code node for power users.
12
+ *
13
+ * This module is the single source of truth, shared between the server (which
14
+ * prunes the registry and the provider list at bootstrap) and any UI that
15
+ * wants to reflect the same policy. It is intentionally pure data + pure
16
+ * predicates: the env read that decides *whether* the profile is active lives
17
+ * at the application boundary (see {@link isCloudProfileActive}).
18
+ *
19
+ * Activate by setting `NODETOOL_NODE_PROFILE=cloud`. When unset (the default),
20
+ * none of this applies and the full catalog loads unchanged.
21
+ */
22
+ /** Env var that selects the active node profile. */
23
+ export declare const CLOUD_PROFILE_ENV = "NODETOOL_NODE_PROFILE";
24
+ /** Value of {@link CLOUD_PROFILE_ENV} that turns on the curated cloud profile. */
25
+ export declare const CLOUD_PROFILE_VALUE = "cloud";
26
+ /**
27
+ * Value of {@link CLOUD_PROFILE_ENV} that keeps the full catalog and provider
28
+ * list even in production. Self-hosted deployments (docker-compose) set this
29
+ * to opt out of the cloud curation the production default would apply.
30
+ */
31
+ export declare const FULL_PROFILE_VALUE = "full";
32
+ /** Env var + value that put the server in production mode. */
33
+ export declare const NODE_ENV_VAR = "NODETOOL_ENV";
34
+ export declare const PRODUCTION_ENV_VALUE = "production";
35
+ /**
36
+ * True when the cloud profile should apply. An explicit
37
+ * `NODETOOL_NODE_PROFILE` always wins: `cloud` turns the profile on (e.g. for
38
+ * local testing), any other value — canonically {@link FULL_PROFILE_VALUE} —
39
+ * turns it off. When unset, production defaults to the cloud profile because
40
+ * the commercial cloud product runs in production mode; self-hosted
41
+ * deployments set `NODETOOL_NODE_PROFILE=full` to keep the full catalog.
42
+ * Callers pass the raw env values so this stays free of any runtime/env
43
+ * dependency and remains trivially testable.
44
+ */
45
+ export declare function isCloudProfileActive(profileValue: string | undefined | null, nodeEnvValue: string | undefined | null): boolean;
46
+ /**
47
+ * Namespace prefixes kept in the cloud product. A node type is allowed when it
48
+ * sits under one of these (segment-boundary match), unless it appears in
49
+ * {@link CLOUD_NODE_DENYLIST}.
50
+ *
51
+ * Grouped by intent — keep this list short; every entry is surface a small
52
+ * team has to support.
53
+ */
54
+ export declare const CLOUD_NODE_NAMESPACES: readonly string[];
55
+ /**
56
+ * Individual node types kept even though their namespace is *not* whole-listed
57
+ * above. Used to admit a narrow slice of an otherwise-trimmed namespace:
58
+ *
59
+ * - `nodetool.code.Code` — the sandboxed (QuickJS WASM) JavaScript node only.
60
+ * Admitting it by name rather than whole-listing `nodetool.code` keeps any
61
+ * future node in that namespace out of the cloud until it is reviewed.
62
+ * - `lib.comfy.RunWorkflow` / `lib.comfy.RunWorkflowOnWorker` /
63
+ * `lib.comfy.RunWorkflowOnCloud` — the three ComfyUI runners. Running a
64
+ * ComfyUI graph is image generation, which is what this profile is for.
65
+ * Named rather than whole-listed for the same reason as the Code node: a
66
+ * later `lib.comfy` node is out until someone reviews it. The first two call
67
+ * the ComfyUI server their `endpoint`/`worker_url` property names, so the
68
+ * address is graph data — see the ComfyUI row in
69
+ * `docs/url-egress-inventory.md`. The third calls Comfy Cloud with the
70
+ * user's own `COMFY_API_KEY`, so there is no operator-chosen address at all.
71
+ *
72
+ * `lib.video.download.YtDlpDownload` used to sit here. It is out: a managed
73
+ * multi-tenant server pulling media from arbitrary sites on a user's behalf is
74
+ * a different product from a downloader running on that user's own machine,
75
+ * and datacenter egress is what the sites it targets block first — so the node
76
+ * offered cloud users a button that mostly returns an extractor error. The
77
+ * `yt_dlp` capability is gated on the same profile (see `isYtDlpEnabled` in
78
+ * `@nodetool-ai/agents`), so chat and the Code node do not route around the
79
+ * node's absence. Both come back under `NODETOOL_NODE_PROFILE=full`, which is
80
+ * what a self-hosted install of the same image runs.
81
+ */
82
+ export declare const CLOUD_NODE_ALLOWLIST: readonly string[];
83
+ /**
84
+ * Nodes that read or write a path on the server's own filesystem and sit
85
+ * inside an otherwise-allowed namespace, so only naming them keeps them out.
86
+ *
87
+ * Two shapes end up here. Most declare a path property the editor renders as a
88
+ * native file/folder picker (`json_schema_extra: { type: "file_path" }`) —
89
+ * `nodetool.input.DocumentFileInput` is the one users hit first. The rest take
90
+ * a plain string path and call `fs` in `process()`; nothing in their metadata
91
+ * distinguishes them, which is why this list is written out rather than
92
+ * derived.
93
+ *
94
+ * Split out from {@link CLOUD_NODE_DENYLIST} so the "no host filesystem in the
95
+ * cloud" rule is one reviewable list instead of entries scattered by namespace.
96
+ */
97
+ export declare const CLOUD_HOST_FILE_NODES: readonly string[];
98
+ /**
99
+ * Node types removed even though their namespace is allowed. Three groups:
100
+ *
101
+ * - Host-filesystem nodes — {@link CLOUD_HOST_FILE_NODES} above, which this
102
+ * list embeds. A node that reads or writes a path on the server's own disk
103
+ * has no meaning in a managed multi-tenant cloud: the path belongs to the
104
+ * container, not to the user sitting in the browser. The matching HTTP
105
+ * surfaces are already refused in production (`/api/files/local`, the
106
+ * workspace routes, tRPC `files.list`), so leaving the nodes in the palette
107
+ * only offers a picker that cannot pick and a run that cannot resolve.
108
+ * Assets are the cloud's file story: the `*Assets` loaders and the plain
109
+ * `SaveImage`/`SaveAudio`/`SaveVideo`/`SaveDataframe` savers go through the
110
+ * asset store and stay.
111
+ * - `nodetool.text.*` file I/O — `nodetool.text` is whole-listed for its
112
+ * creative-text toolkit and ASR, but the folder/asset loaders and the two
113
+ * filesystem writers (`SaveText`, `SaveTextFile` — both call fs.writeFile on
114
+ * an unsandboxed host path) are dropped, for the same reason.
115
+ * - `nodetool.agents.*` — kept as a namespace for Agent, Classifier,
116
+ * Extractor, Summarizer, CreateThread, and EnhancePrompt. Specialist
117
+ * tool-agent nodes were removed; ffmpeg, yt-dlp, and browser are
118
+ * CodeAct capabilities instead.
119
+ */
120
+ export declare const CLOUD_NODE_DENYLIST: readonly string[];
121
+ /**
122
+ * Providers kept *out* of the cloud product. Every other registered provider
123
+ * is offered — the node catalog is curated, the provider list is not.
124
+ *
125
+ * The rule is reachability, not curation: a provider stays out when the cloud
126
+ * server cannot reach it on the user's behalf. That is either an engine that
127
+ * runs on the user's own machine (Ollama, LM Studio, llama.cpp, vLLM,
128
+ * Transformers.js in-process) or a personal subscription reached by spawning a
129
+ * local CLI (the Claude Agent SDK shells out to `claude`). Everything else is
130
+ * an HTTP API behind a key the user pastes into settings, which works the same
131
+ * from a Fly machine as from a laptop.
132
+ *
133
+ * A curated allowlist sat here before, and every provider it omitted still had
134
+ * an API-key card in settings: a cloud user could save an OpenRouter key and
135
+ * find an empty model picker, with nothing saying why. Listing only what
136
+ * genuinely cannot work keeps the settings UI and the registry from drifting.
137
+ *
138
+ * The local engines are additionally never registered under the cloud profile
139
+ * (see the provider index); naming them here keeps the predicate honest for
140
+ * anything registered after that gate, and for callers asking about a
141
+ * provider id on its own.
142
+ */
143
+ export declare const NON_CLOUD_PROVIDER_IDS: readonly string[];
144
+ /**
145
+ * Providers offered *only* by the cloud product — the mirror image of
146
+ * {@link NON_CLOUD_PROVIDER_IDS}.
147
+ *
148
+ * Same rule, reversed: a provider belongs here when only the commercial cloud
149
+ * can reach it. `nodetool` runs curated delegates on NodeTool's own platform
150
+ * keys and meters the spend against a credit balance, so it is the platform's
151
+ * wallet, not a key the user pastes into settings. A local install has neither
152
+ * the keys nor an account to bill, and a self-hosted server has no claim on
153
+ * NodeTool's; offering it there is a provider card that can only ever produce
154
+ * an error.
155
+ */
156
+ export declare const CLOUD_ONLY_PROVIDER_IDS: readonly string[];
157
+ /**
158
+ * Whether `providerId` is reachable outside the cloud product. False only for
159
+ * {@link CLOUD_ONLY_PROVIDER_IDS}; an unknown id is treated as reachable, so a
160
+ * provider added to the registry keeps working on a laptop without a second
161
+ * edit here.
162
+ */
163
+ export declare function isSelfServeProvider(providerId: string): boolean;
164
+ /**
165
+ * Built-in node packs loaded under the cloud profile. `base` is required and
166
+ * always loads; `fal` and `kie` are the only provider packs kept. Every other
167
+ * provider pack (Replicate, Hugging Face, Together, MiniMax, Topaz, Reve,
168
+ * AtlasCloud, ElevenLabs, Transformers.js) stays off.
169
+ */
170
+ export declare const CLOUD_BUILTIN_PACK_IDS: readonly string[];
171
+ /**
172
+ * Whether `nodeType` is offered in the cloud product. An explicit allowlist
173
+ * entry always wins; otherwise the denylist excludes it; otherwise it must
174
+ * fall under an allowed namespace at a segment boundary so that e.g.
175
+ * `lib.image` admits `lib.image.warp.Offset` but not a hypothetical
176
+ * `lib.imagery.*`.
177
+ */
178
+ export declare function isCloudNodeType(nodeType: string): boolean;
179
+ /**
180
+ * Whether `providerId` is exposed in the cloud product — true for everything
181
+ * except the local engines and local-CLI subscriptions in
182
+ * {@link NON_CLOUD_PROVIDER_IDS}. An unknown id is treated as cloud-eligible:
183
+ * a provider added to the registry reaches cloud users without a second edit
184
+ * here, and one that cannot work there has to be named.
185
+ */
186
+ export declare function isCloudProvider(providerId: string): boolean;
187
+ //# sourceMappingURL=cloud-profile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cloud-profile.d.ts","sourceRoot":"","sources":["../src/cloud-profile.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,oDAAoD;AACpD,eAAO,MAAM,iBAAiB,0BAA0B,CAAC;AAEzD,kFAAkF;AAClF,eAAO,MAAM,mBAAmB,UAAU,CAAC;AAE3C;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,SAAS,CAAC;AAEzC,8DAA8D;AAC9D,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,oBAAoB,eAAe,CAAC;AAEjD;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAClC,YAAY,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,EACvC,YAAY,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GACtC,OAAO,CAKT;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,EAAE,SAAS,MAAM,EAsClD,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,oBAAoB,EAAE,SAAS,MAAM,EAOjD,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,qBAAqB,EAAE,SAAS,MAAM,EAkBlD,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,mBAAmB,EAAE,SAAS,MAAM,EAMhD,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,sBAAsB,EAAE,SAAS,MAAM,EAanD,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,uBAAuB,EAAE,SAAS,MAAM,EAAiB,CAAC;AAEvE;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAE/D;AAED;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,EAAE,SAAS,MAAM,EAA2B,CAAC;AAEhF;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAMzD;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAE3D"}