@nodetool-ai/websocket 0.8.4-a24.3 → 0.8.5

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 (317) hide show
  1. package/dist/.nodetool-build-stamp +1 -1
  2. package/dist/agent/run-node-workflow.d.ts +25 -0
  3. package/dist/agent/run-node-workflow.d.ts.map +1 -0
  4. package/dist/agent/run-node-workflow.js +90 -0
  5. package/dist/agent/run-node-workflow.js.map +1 -0
  6. package/dist/backend-analytics.d.ts +25 -0
  7. package/dist/backend-analytics.d.ts.map +1 -0
  8. package/dist/backend-analytics.js +102 -0
  9. package/dist/backend-analytics.js.map +1 -0
  10. package/dist/example-workflows.d.ts +2 -0
  11. package/dist/example-workflows.d.ts.map +1 -1
  12. package/dist/example-workflows.js +16 -4
  13. package/dist/example-workflows.js.map +1 -1
  14. package/dist/examples/nodetool-base/A Campaign Concept from a Brief.json +135 -0
  15. package/dist/examples/nodetool-base/A Gradient Card as PNG.json +128 -0
  16. package/dist/examples/nodetool-base/A Poster in Portrait.json +129 -0
  17. package/dist/examples/nodetool-base/A Repeating Texture Tile.json +129 -0
  18. package/dist/examples/nodetool-base/A Run Button for Any Job.json +152 -0
  19. package/dist/examples/nodetool-base/A Webhook That Answers.json +170 -0
  20. package/dist/examples/nodetool-base/AI Spokesperson.json +328 -0
  21. package/dist/examples/nodetool-base/Action Items from a Meeting Recording.json +198 -0
  22. package/dist/examples/nodetool-base/Ad Copy in Three Registers.json +135 -0
  23. package/dist/examples/nodetool-base/Ad Loop from a Product Photo.json +277 -0
  24. package/dist/examples/nodetool-base/Add Reverb to a Voice.json +125 -0
  25. package/dist/examples/nodetool-base/Album Art from a Mood.json +129 -0
  26. package/dist/examples/nodetool-base/Assemble a UGC Product Video.json +158 -0
  27. package/dist/examples/nodetool-base/Audio To Image.json +184 -0
  28. package/dist/examples/nodetool-base/B-Roll Reel from a Brief.json +339 -0
  29. package/dist/examples/nodetool-base/Batch a List.json +171 -0
  30. package/dist/examples/nodetool-base/Black and White, Hard.json +147 -0
  31. package/dist/examples/nodetool-base/Blog Post to Social Thread.json +135 -0
  32. package/dist/examples/nodetool-base/Blur a Channel.json +205 -0
  33. package/dist/examples/nodetool-base/Blur an Image.json +179 -0
  34. package/dist/examples/nodetool-base/Boost Saturation.json +178 -0
  35. package/dist/examples/nodetool-base/Brand Asset Generator.json +585 -0
  36. package/dist/examples/nodetool-base/Brand a UGC Product Video.json +402 -0
  37. package/dist/examples/nodetool-base/Bring a Still to Life.json +250 -0
  38. package/dist/examples/nodetool-base/Bullet Points to Press Release.json +135 -0
  39. package/dist/examples/nodetool-base/Chapter Markers for a Long Recording.json +198 -0
  40. package/dist/examples/nodetool-base/Chat With Your Documents.json +569 -0
  41. package/dist/examples/nodetool-base/Chunk a Transcript for Indexing.json +202 -0
  42. package/dist/examples/nodetool-base/Circles and Lines.json +126 -0
  43. package/dist/examples/nodetool-base/Clean Up a Rough Voice Recording.json +208 -0
  44. package/dist/examples/nodetool-base/Clip on Kie.json +173 -0
  45. package/dist/examples/nodetool-base/Cold Outreach Co-Pilot.json +423 -0
  46. package/dist/examples/nodetool-base/Color Boost Video.json +250 -0
  47. package/dist/examples/nodetool-base/Compose Directed Campaign Formats.json +764 -0
  48. package/dist/examples/nodetool-base/Concept Art Iteration Board.json +439 -0
  49. package/dist/examples/nodetool-base/Concept Art, Then a Moving Version.json +173 -0
  50. package/dist/examples/nodetool-base/Conditional Logic Engine.json +535 -0
  51. package/dist/examples/nodetool-base/Count a List.json +168 -0
  52. package/dist/examples/nodetool-base/Count to Three with a Loop.json +157 -0
  53. package/dist/examples/nodetool-base/Crop an Image.json +181 -0
  54. package/dist/examples/nodetool-base/Crop then Fit.json +208 -0
  55. package/dist/examples/nodetool-base/Crush It to 8 Bits.json +123 -0
  56. package/dist/examples/nodetool-base/Cut Out the Subject.json +184 -0
  57. package/dist/examples/nodetool-base/Cut a Landscape Clip for Vertical.json +123 -0
  58. package/dist/examples/nodetool-base/Cut a Product Out of Its Background.json +238 -0
  59. package/dist/examples/nodetool-base/Data Generator.json +216 -0
  60. package/dist/examples/nodetool-base/Denoise Footage.json +178 -0
  61. package/dist/examples/nodetool-base/Direct a Short Film.json +305 -0
  62. package/dist/examples/nodetool-base/Directed Film to Timeline.json +385 -0
  63. package/dist/examples/nodetool-base/Does This Text Mention the Deadline.json +130 -0
  64. package/dist/examples/nodetool-base/Draft Answers for an FAQ.json +135 -0
  65. package/dist/examples/nodetool-base/Draw a Badge in SVG.json +126 -0
  66. package/dist/examples/nodetool-base/Drop Duplicates.json +170 -0
  67. package/dist/examples/nodetool-base/Drop the First Few.json +148 -0
  68. package/dist/examples/nodetool-base/Dungeon and Ruins Starter Pack.json +786 -0
  69. package/dist/examples/nodetool-base/Edit a Still with Words.json +284 -0
  70. package/dist/examples/nodetool-base/Editorial Still from a Line.json +197 -0
  71. package/dist/examples/nodetool-base/Emboss a Still.json +120 -0
  72. package/dist/examples/nodetool-base/Every Combination.json +225 -0
  73. package/dist/examples/nodetool-base/Every Hour, On the Hour.json +162 -0
  74. package/dist/examples/nodetool-base/Executive Summary of a Long Document.json +135 -0
  75. package/dist/examples/nodetool-base/Explainer Clip from a Paragraph.json +244 -0
  76. package/dist/examples/nodetool-base/Extract the Claims Worth Checking.json +135 -0
  77. package/dist/examples/nodetool-base/Fade Audio In and Out.json +203 -0
  78. package/dist/examples/nodetool-base/Fade Audio Out.json +202 -0
  79. package/dist/examples/nodetool-base/Fill a Template.json +149 -0
  80. package/dist/examples/nodetool-base/Find Every Number in a Sentence.json +127 -0
  81. package/dist/examples/nodetool-base/Find and Replace.json +224 -0
  82. package/dist/examples/nodetool-base/Find the Edges.json +123 -0
  83. package/dist/examples/nodetool-base/Fit an Image.json +179 -0
  84. package/dist/examples/nodetool-base/Five Headlines for a Landing Page.json +135 -0
  85. package/dist/examples/nodetool-base/Flashcard Generator.json +297 -0
  86. package/dist/examples/nodetool-base/Gate Out the Room Noise.json +124 -0
  87. package/dist/examples/nodetool-base/Generate a Native-Audio UGC Testimonial.json +276 -0
  88. package/dist/examples/nodetool-base/Generate a Silent Bed.json +126 -0
  89. package/dist/examples/nodetool-base/Generate then Upscale a Poster.json +164 -0
  90. package/dist/examples/nodetool-base/Hacker News Agent.json +183 -0
  91. package/dist/examples/nodetool-base/Hook & Thumbnail Factory.json +498 -0
  92. package/dist/examples/nodetool-base/How Long Is This Transcript.json +185 -0
  93. package/dist/examples/nodetool-base/Image Enhance.json +272 -0
  94. package/dist/examples/nodetool-base/Image To Audio Story.json +180 -0
  95. package/dist/examples/nodetool-base/Image to Video Animation.json +346 -0
  96. package/dist/examples/nodetool-base/Inspect a Clip's Audio.json +187 -0
  97. package/dist/examples/nodetool-base/Inspect a Clip.json +163 -0
  98. package/dist/examples/nodetool-base/Invert a Still.json +120 -0
  99. package/dist/examples/nodetool-base/Keep Only the Long Lines.json +220 -0
  100. package/dist/examples/nodetool-base/Keep Only the Matches.json +148 -0
  101. package/dist/examples/nodetool-base/Key Out a Green Screen.json +124 -0
  102. package/dist/examples/nodetool-base/Last One Wins.json +144 -0
  103. package/dist/examples/nodetool-base/Lip-sync a Clip to a Voice Track.json +313 -0
  104. package/dist/examples/nodetool-base/Localise a Product Listing.json +135 -0
  105. package/dist/examples/nodetool-base/Localise a Script and Revoice It.json +242 -0
  106. package/dist/examples/nodetool-base/Localized Explainer.json +430 -0
  107. package/dist/examples/nodetool-base/Low-poly Adventure Starter Pack.json +786 -0
  108. package/dist/examples/nodetool-base/Low-poly Seaside Starter Pack.json +786 -0
  109. package/dist/examples/nodetool-base/Master a Voice Track.json +180 -0
  110. package/dist/examples/nodetool-base/Meeting Transcript Summarizer.json +524 -0
  111. package/dist/examples/nodetool-base/Model Arena.json +550 -0
  112. package/dist/examples/nodetool-base/Moodboard Frame from a Theme.json +129 -0
  113. package/dist/examples/nodetool-base/Movie Posters.json +660 -0
  114. package/dist/examples/nodetool-base/Movie Trailer Generator.json +418 -0
  115. package/dist/examples/nodetool-base/Music Video Visualizer.json +720 -0
  116. package/dist/examples/nodetool-base/Name a File from Its Narration.json +231 -0
  117. package/dist/examples/nodetool-base/Narrate a Script.json +169 -0
  118. package/dist/examples/nodetool-base/Narration with a Music Bed.json +360 -0
  119. package/dist/examples/nodetool-base/Normalize a Clip's Audio.json +201 -0
  120. package/dist/examples/nodetool-base/One Tagline, Six Markets.json +135 -0
  121. package/dist/examples/nodetool-base/Pad a Canvas.json +188 -0
  122. package/dist/examples/nodetool-base/Per-SKU Ad Factory.json +511 -0
  123. package/dist/examples/nodetool-base/Photo Enhancement Suite.json +417 -0
  124. package/dist/examples/nodetool-base/Picture in Picture.json +231 -0
  125. package/dist/examples/nodetool-base/Pitch a Voice Up.json +122 -0
  126. package/dist/examples/nodetool-base/Pixelate a Still.json +122 -0
  127. package/dist/examples/nodetool-base/Platformer Playground Starter Pack.json +786 -0
  128. package/dist/examples/nodetool-base/Podcast Episode to Show Notes.json +198 -0
  129. package/dist/examples/nodetool-base/Podcast Repurposing Studio.json +745 -0
  130. package/dist/examples/nodetool-base/Pokemon Maker.json +282 -0
  131. package/dist/examples/nodetool-base/Poster on Kie.json +172 -0
  132. package/dist/examples/nodetool-base/Posterize to Four Bits.json +122 -0
  133. package/dist/examples/nodetool-base/Private Assistant.json +236 -0
  134. package/dist/examples/nodetool-base/Product Mockup Generator.json +608 -0
  135. package/dist/examples/nodetool-base/Product Spot from Text.json +330 -0
  136. package/dist/examples/nodetool-base/Product Video Generator.json +344 -0
  137. package/dist/examples/nodetool-base/Prompt Template.json +221 -0
  138. package/dist/examples/nodetool-base/Propose Three Campaign Directions.json +614 -0
  139. package/dist/examples/nodetool-base/Pull a Field out of JSON Text.json +128 -0
  140. package/dist/examples/nodetool-base/Pull a Still from a Clip.json +179 -0
  141. package/dist/examples/nodetool-base/Pull the Quotable Lines Out of an Interview.json +198 -0
  142. package/dist/examples/nodetool-base/Put a Product on a Studio Backdrop.json +252 -0
  143. package/dist/examples/nodetool-base/Put a Voice Over a Music Bed.json +358 -0
  144. package/dist/examples/nodetool-base/README_EXAMPLES.md +59 -0
  145. package/dist/examples/nodetool-base/Re-delimit a List.json +199 -0
  146. package/dist/examples/nodetool-base/Read a Clip's Frame Rate.json +120 -0
  147. package/dist/examples/nodetool-base/Redact Email Addresses.json +129 -0
  148. package/dist/examples/nodetool-base/Redact and Tidy a Log Line.json +266 -0
  149. package/dist/examples/nodetool-base/Relight a Product for a Seasonal Campaign.json +131 -0
  150. package/dist/examples/nodetool-base/Render a Directed Campaign Hero.json +338 -0
  151. package/dist/examples/nodetool-base/Reopen a Directed Campaign.json +1748 -0
  152. package/dist/examples/nodetool-base/Research Agent.json +231 -0
  153. package/dist/examples/nodetool-base/Research a Brand from Its Website.json +445 -0
  154. package/dist/examples/nodetool-base/Restyle a Photo as an Illustration.json +136 -0
  155. package/dist/examples/nodetool-base/Reverse Audio.json +201 -0
  156. package/dist/examples/nodetool-base/Reverse a Clip.json +176 -0
  157. package/dist/examples/nodetool-base/Revise an Accepted Campaign Hero.json +486 -0
  158. package/dist/examples/nodetool-base/Rewrite This So a Customer Understands It.json +135 -0
  159. package/dist/examples/nodetool-base/Rotate Footage.json +178 -0
  160. package/dist/examples/nodetool-base/SEO Content Engine.json +708 -0
  161. package/dist/examples/nodetool-base/SEO Title and Meta Description.json +135 -0
  162. package/dist/examples/nodetool-base/Sci-fi Game Model Starter Pack.json +693 -0
  163. package/dist/examples/nodetool-base/Sci-fi Outpost Expansion.json +601 -0
  164. package/dist/examples/nodetool-base/Score a Clip from Its Own Mood.json +229 -0
  165. package/dist/examples/nodetool-base/Score a Silent Clip.json +382 -0
  166. package/dist/examples/nodetool-base/Script to Narrated Clip.json +224 -0
  167. package/dist/examples/nodetool-base/Script to Screen.json +940 -0
  168. package/dist/examples/nodetool-base/Sharpen Footage.json +179 -0
  169. package/dist/examples/nodetool-base/Shot List from a Synopsis.json +136 -0
  170. package/dist/examples/nodetool-base/Single Shot from a Line.json +199 -0
  171. package/dist/examples/nodetool-base/Slice Text.json +159 -0
  172. package/dist/examples/nodetool-base/Slow a Clip Without Dropping Pitch.json +122 -0
  173. package/dist/examples/nodetool-base/Soften a Plate.json +178 -0
  174. package/dist/examples/nodetool-base/Solarize a Still.json +122 -0
  175. package/dist/examples/nodetool-base/Speak a Line, Then Trim the Silence.json +157 -0
  176. package/dist/examples/nodetool-base/Spin a Packshot into a Turntable Clip.json +137 -0
  177. package/dist/examples/nodetool-base/Split a Channel.json +178 -0
  178. package/dist/examples/nodetool-base/Split a Log into Records.json +128 -0
  179. package/dist/examples/nodetool-base/Stabilize Handheld.json +179 -0
  180. package/dist/examples/nodetool-base/Still on Replicate.json +172 -0
  181. package/dist/examples/nodetool-base/Subject Lines Worth Testing.json +135 -0
  182. package/dist/examples/nodetool-base/Subtitle Lines from a Script.json +170 -0
  183. package/dist/examples/nodetool-base/Subtitle Text from a Recording.json +198 -0
  184. package/dist/examples/nodetool-base/Summarise a Recorded Call.json +198 -0
  185. package/dist/examples/nodetool-base/Swirl and Echo.json +154 -0
  186. package/dist/examples/nodetool-base/Take While the Numbers Are Small.json +148 -0
  187. package/dist/examples/nodetool-base/Take a Product Shot to Print Resolution.json +209 -0
  188. package/dist/examples/nodetool-base/Take the First Few Seconds of a Bed.json +127 -0
  189. package/dist/examples/nodetool-base/Take the First Few.json +170 -0
  190. package/dist/examples/nodetool-base/Telephone Voice.json +174 -0
  191. package/dist/examples/nodetool-base/Themes Across Customer Feedback.json +135 -0
  192. package/dist/examples/nodetool-base/Three Ratios.json +315 -0
  193. package/dist/examples/nodetool-base/Tidy Up Messy Text.json +199 -0
  194. package/dist/examples/nodetool-base/Top-down Native Asset Pack.json +955 -0
  195. package/dist/examples/nodetool-base/Trailer Beats from a Premise.json +136 -0
  196. package/dist/examples/nodetool-base/Transcribe Audio.json +138 -0
  197. package/dist/examples/nodetool-base/Transcribe a Clip.json +198 -0
  198. package/dist/examples/nodetool-base/Translate Marketing Copy to German.json +135 -0
  199. package/dist/examples/nodetool-base/Translate a Script for Dubbing.json +224 -0
  200. package/dist/examples/nodetool-base/Trim Audio to a Range.json +203 -0
  201. package/dist/examples/nodetool-base/Trim a Blurb to Length.json +128 -0
  202. package/dist/examples/nodetool-base/Trim a Clip.json +180 -0
  203. package/dist/examples/nodetool-base/Turn Research Notes into a Comparison Table.json +136 -0
  204. package/dist/examples/nodetool-base/Turn Specs into Product Copy.json +135 -0
  205. package/dist/examples/nodetool-base/Turn a Changelog into Release Notes.json +135 -0
  206. package/dist/examples/nodetool-base/Turn a Logo into Print-Ready Vector.json +126 -0
  207. package/dist/examples/nodetool-base/Turn a Support Thread into a Bug Report.json +135 -0
  208. package/dist/examples/nodetool-base/Turn a Talk into a Blog Post.json +198 -0
  209. package/dist/examples/nodetool-base/Upscale a Still.json +186 -0
  210. package/dist/examples/nodetool-base/Vectorize a Generated Logo.json +162 -0
  211. package/dist/examples/nodetool-base/Video Restyle Studio.json +281 -0
  212. package/dist/examples/nodetool-base/Vignette a Portrait.json +124 -0
  213. package/dist/examples/nodetool-base/Voice a Script in Two Voices.json +217 -0
  214. package/dist/examples/nodetool-base/Warm Up a Cold Clip.json +124 -0
  215. package/dist/examples/nodetool-base/Watch a Folder, Act on What Lands.json +177 -0
  216. package/dist/examples/nodetool-base/Widen a Mono Voice.json +151 -0
  217. package/dist/examples/nodetool-base/Workflow As A Tool.json +257 -0
  218. package/dist/examples/nodetool-base/Write a Listing from the Product Photo.json +139 -0
  219. package/dist/examples/nodetool-base/Write the Prompt, Then Make the Image.json +200 -0
  220. package/dist/examples/nodetool-base/gallery_thumbnail_generator.ts +384 -0
  221. package/dist/external-mcp.d.ts +2 -2
  222. package/dist/external-mcp.d.ts.map +1 -1
  223. package/dist/external-mcp.js +13 -4
  224. package/dist/external-mcp.js.map +1 -1
  225. package/dist/fake-runtime.d.ts.map +1 -1
  226. package/dist/fake-runtime.js +5 -1
  227. package/dist/fake-runtime.js.map +1 -1
  228. package/dist/http-api.d.ts.map +1 -1
  229. package/dist/http-api.js +22 -4
  230. package/dist/http-api.js.map +1 -1
  231. package/dist/lib/json-body.d.ts +9 -0
  232. package/dist/lib/json-body.d.ts.map +1 -1
  233. package/dist/lib/json-body.js +12 -0
  234. package/dist/lib/json-body.js.map +1 -1
  235. package/dist/lib/local-client-origin.d.ts +38 -0
  236. package/dist/lib/local-client-origin.d.ts.map +1 -0
  237. package/dist/lib/local-client-origin.js +57 -0
  238. package/dist/lib/local-client-origin.js.map +1 -0
  239. package/dist/lib/localhost-trust.d.ts +18 -0
  240. package/dist/lib/localhost-trust.d.ts.map +1 -1
  241. package/dist/lib/localhost-trust.js +50 -0
  242. package/dist/lib/localhost-trust.js.map +1 -1
  243. package/dist/lib/openverse.d.ts +47 -0
  244. package/dist/lib/openverse.d.ts.map +1 -0
  245. package/dist/lib/openverse.js +255 -0
  246. package/dist/lib/openverse.js.map +1 -0
  247. package/dist/lib/public-routes.d.ts.map +1 -1
  248. package/dist/lib/public-routes.js +3 -0
  249. package/dist/lib/public-routes.js.map +1 -1
  250. package/dist/lib/timeline-bundle.d.ts +216 -0
  251. package/dist/lib/timeline-bundle.d.ts.map +1 -1
  252. package/dist/mcp-agent-tools.d.ts.map +1 -1
  253. package/dist/mcp-agent-tools.js +21 -6
  254. package/dist/mcp-agent-tools.js.map +1 -1
  255. package/dist/model-execution-availability.d.ts.map +1 -1
  256. package/dist/model-execution-availability.js +7 -2
  257. package/dist/model-execution-availability.js.map +1 -1
  258. package/dist/routes/analytics.d.ts +52 -0
  259. package/dist/routes/analytics.d.ts.map +1 -0
  260. package/dist/routes/analytics.js +99 -0
  261. package/dist/routes/analytics.js.map +1 -0
  262. package/dist/routes/applications.d.ts.map +1 -1
  263. package/dist/routes/applications.js +2 -1
  264. package/dist/routes/applications.js.map +1 -1
  265. package/dist/routes/js-scripts.d.ts.map +1 -1
  266. package/dist/routes/js-scripts.js +2 -1
  267. package/dist/routes/js-scripts.js.map +1 -1
  268. package/dist/routes/timeline-animations.d.ts.map +1 -1
  269. package/dist/routes/timeline-animations.js +2 -1
  270. package/dist/routes/timeline-animations.js.map +1 -1
  271. package/dist/routes/timeline-audio-bake.d.ts.map +1 -1
  272. package/dist/routes/timeline-audio-bake.js +2 -1
  273. package/dist/routes/timeline-audio-bake.js.map +1 -1
  274. package/dist/routes/timeline-isolate-subject.d.ts.map +1 -1
  275. package/dist/routes/timeline-isolate-subject.js +2 -1
  276. package/dist/routes/timeline-isolate-subject.js.map +1 -1
  277. package/dist/routes/timeline-track-object.d.ts.map +1 -1
  278. package/dist/routes/timeline-track-object.js +2 -1
  279. package/dist/routes/timeline-track-object.js.map +1 -1
  280. package/dist/screenshot-server.js +87 -49
  281. package/dist/screenshot-server.js.map +1 -1
  282. package/dist/server.d.ts.map +1 -1
  283. package/dist/server.js +42 -3
  284. package/dist/server.js.map +1 -1
  285. package/dist/session/job-execution.d.ts.map +1 -1
  286. package/dist/session/job-execution.js +5 -0
  287. package/dist/session/job-execution.js.map +1 -1
  288. package/dist/trpc/router.d.ts +2 -0
  289. package/dist/trpc/router.d.ts.map +1 -1
  290. package/dist/trpc/router.js +2 -0
  291. package/dist/trpc/router.js.map +1 -1
  292. package/dist/trpc/routers/documents.d.ts +1 -1
  293. package/dist/trpc/routers/games.d.ts +179 -0
  294. package/dist/trpc/routers/games.d.ts.map +1 -1
  295. package/dist/trpc/routers/games.js +1 -1
  296. package/dist/trpc/routers/games.js.map +1 -1
  297. package/dist/trpc/routers/models.d.ts +270 -0
  298. package/dist/trpc/routers/models.d.ts.map +1 -1
  299. package/dist/trpc/routers/models.js +37 -19
  300. package/dist/trpc/routers/models.js.map +1 -1
  301. package/dist/trpc/routers/openverse.d.ts +91 -0
  302. package/dist/trpc/routers/openverse.d.ts.map +1 -0
  303. package/dist/trpc/routers/openverse.js +98 -0
  304. package/dist/trpc/routers/openverse.js.map +1 -0
  305. package/dist/trpc/routers/projects.d.ts +6 -6
  306. package/dist/trpc/routers/timeline.d.ts +729 -6
  307. package/dist/trpc/routers/timeline.d.ts.map +1 -1
  308. package/dist/trpc/routers/timeline.js +1 -0
  309. package/dist/trpc/routers/timeline.js.map +1 -1
  310. package/dist/trpc/sandbox-coverage.d.ts.map +1 -1
  311. package/dist/trpc/sandbox-coverage.js +11 -0
  312. package/dist/trpc/sandbox-coverage.js.map +1 -1
  313. package/dist/websocket-client-session.d.ts +8 -0
  314. package/dist/websocket-client-session.d.ts.map +1 -1
  315. package/dist/websocket-client-session.js +31 -1
  316. package/dist/websocket-client-session.js.map +1 -1
  317. package/package.json +28 -28
@@ -0,0 +1,614 @@
1
+ {
2
+ "id": "directed-campaign-directions",
3
+ "access": "private",
4
+ "created_at": "2026-09-12T00:00:00.000Z",
5
+ "updated_at": "2026-09-12T00:00:00.000Z",
6
+ "name": "Propose Three Campaign Directions",
7
+ "tool_name": null,
8
+ "description": "Validate one product brief and optional role-labelled reference, then propose exactly three written campaign directions before any image generation.",
9
+ "tags": [
10
+ "campaign",
11
+ "image",
12
+ "example"
13
+ ],
14
+ "thumbnail": null,
15
+ "thumbnail_url": null,
16
+ "graph": {
17
+ "nodes": [
18
+ {
19
+ "id": "intro",
20
+ "type": "nodetool.workflows.base_node.Comment",
21
+ "data": {
22
+ "comment": "# Propose Three Campaign Directions\n\nValidates one product brief and an optional role-labelled reference, then proposes exactly three written campaign directions. Use it to agree on a direction before any image generation. No image model runs here.\n\n**How it works:** Ten inputs feed \"Validate and capture brief\", a Code node that rejects empty or overlong fields and a \"Reference role\" outside none, composition, palette, material or lighting. It requires \"Product image\", and \"Visual reference\" only when the role is not none. It outputs a prompt, the image list and the captured brief. \"Propose A, B, and C\" is an Agent that returns JSON for directions A, B and C. \"Validate directions\" checks there are exactly three, in order, with every field filled. It writes a Markdown review to \"Directions\", the brief plus directions to \"Captured plan\", and \"directions_ready\" to \"Ready phase\". Pick a language model on \"Propose A, B, and C\".\n\n**Try this:** Set \"Reference role\" to \"palette\" without adding a \"Visual reference\" and run it to see the brief validator stop with \"reference image is required\"."
23
+ },
24
+ "ui_properties": {
25
+ "position": {
26
+ "x": 0,
27
+ "y": 0
28
+ },
29
+ "width": 560,
30
+ "height": 423,
31
+ "selectable": true
32
+ },
33
+ "dynamic_properties": {}
34
+ },
35
+ {
36
+ "id": "in-product_image",
37
+ "type": "nodetool.input.ImageInput",
38
+ "data": {
39
+ "name": "product_image",
40
+ "value": {
41
+ "type": "image",
42
+ "uri": "package://nodetool-base/recipe-inputs/coffee.jpg"
43
+ },
44
+ "description": "Required product identity reference."
45
+ },
46
+ "ui_properties": {
47
+ "position": {
48
+ "x": 0,
49
+ "y": 2303
50
+ },
51
+ "width": 260,
52
+ "title": "Product image"
53
+ },
54
+ "dynamic_properties": {},
55
+ "dynamic_outputs": {}
56
+ },
57
+ {
58
+ "id": "in-product_name",
59
+ "type": "nodetool.input.StringInput",
60
+ "data": {
61
+ "name": "product_name",
62
+ "value": "House Blend Coffee",
63
+ "description": "Product name."
64
+ },
65
+ "ui_properties": {
66
+ "position": {
67
+ "x": 0,
68
+ "y": 503
69
+ },
70
+ "width": 260,
71
+ "title": "Product name"
72
+ },
73
+ "dynamic_properties": {},
74
+ "dynamic_outputs": {}
75
+ },
76
+ {
77
+ "id": "in-campaign_message",
78
+ "type": "nodetool.input.StringInput",
79
+ "data": {
80
+ "name": "campaign_message",
81
+ "value": "A small-batch house blend, roasted every week and shipped within two days of roasting.",
82
+ "description": "What the campaign should communicate.",
83
+ "line_mode": "multi_line",
84
+ "max_length": 600
85
+ },
86
+ "ui_properties": {
87
+ "position": {
88
+ "x": 0,
89
+ "y": 728
90
+ },
91
+ "width": 260,
92
+ "title": "Campaign message"
93
+ },
94
+ "dynamic_properties": {},
95
+ "dynamic_outputs": {}
96
+ },
97
+ {
98
+ "id": "in-audience",
99
+ "type": "nodetool.input.StringInput",
100
+ "data": {
101
+ "name": "audience",
102
+ "value": "Home coffee drinkers who grind their own beans.",
103
+ "description": "Intended audience.",
104
+ "line_mode": "multi_line",
105
+ "max_length": 300
106
+ },
107
+ "ui_properties": {
108
+ "position": {
109
+ "x": 0,
110
+ "y": 953
111
+ },
112
+ "width": 260,
113
+ "title": "Audience"
114
+ },
115
+ "dynamic_properties": {},
116
+ "dynamic_outputs": {}
117
+ },
118
+ {
119
+ "id": "in-headline",
120
+ "type": "nodetool.input.StringInput",
121
+ "data": {
122
+ "name": "headline",
123
+ "value": "Roasted this week, brewed this morning",
124
+ "description": "Exact approved headline.",
125
+ "line_mode": "multi_line",
126
+ "max_length": 120
127
+ },
128
+ "ui_properties": {
129
+ "position": {
130
+ "x": 0,
131
+ "y": 1178
132
+ },
133
+ "width": 260,
134
+ "title": "Headline"
135
+ },
136
+ "dynamic_properties": {},
137
+ "dynamic_outputs": {}
138
+ },
139
+ {
140
+ "id": "in-cta",
141
+ "type": "nodetool.input.StringInput",
142
+ "data": {
143
+ "name": "cta",
144
+ "value": "Order a bag",
145
+ "description": "Exact approved call to action.",
146
+ "max_length": 80
147
+ },
148
+ "ui_properties": {
149
+ "position": {
150
+ "x": 0,
151
+ "y": 1403
152
+ },
153
+ "width": 260,
154
+ "title": "CTA"
155
+ },
156
+ "dynamic_properties": {},
157
+ "dynamic_outputs": {}
158
+ },
159
+ {
160
+ "id": "in-reference_image",
161
+ "type": "nodetool.input.ImageInput",
162
+ "data": {
163
+ "name": "reference_image",
164
+ "value": {
165
+ "type": "image",
166
+ "uri": ""
167
+ },
168
+ "description": "Optional visual reference. Required when reference_role is not none."
169
+ },
170
+ "ui_properties": {
171
+ "position": {
172
+ "x": 0,
173
+ "y": 2519
174
+ },
175
+ "width": 260,
176
+ "title": "Visual reference"
177
+ },
178
+ "dynamic_properties": {},
179
+ "dynamic_outputs": {}
180
+ },
181
+ {
182
+ "id": "in-reference_role",
183
+ "type": "nodetool.input.StringInput",
184
+ "data": {
185
+ "name": "reference_role",
186
+ "value": "none",
187
+ "description": "One of none, composition, palette, material, or lighting."
188
+ },
189
+ "ui_properties": {
190
+ "position": {
191
+ "x": 0,
192
+ "y": 1628
193
+ },
194
+ "width": 260,
195
+ "title": "Reference role"
196
+ },
197
+ "dynamic_properties": {},
198
+ "dynamic_outputs": {}
199
+ },
200
+ {
201
+ "id": "in-reference_use",
202
+ "type": "nodetool.input.StringInput",
203
+ "data": {
204
+ "name": "reference_use",
205
+ "value": "",
206
+ "description": "What to take from the optional reference.",
207
+ "line_mode": "multi_line",
208
+ "max_length": 300
209
+ },
210
+ "ui_properties": {
211
+ "position": {
212
+ "x": 0,
213
+ "y": 1853
214
+ },
215
+ "width": 260,
216
+ "title": "Use from reference"
217
+ },
218
+ "dynamic_properties": {},
219
+ "dynamic_outputs": {}
220
+ },
221
+ {
222
+ "id": "in-reference_ignore",
223
+ "type": "nodetool.input.StringInput",
224
+ "data": {
225
+ "name": "reference_ignore",
226
+ "value": "",
227
+ "description": "What must not transfer from the optional reference.",
228
+ "line_mode": "multi_line",
229
+ "max_length": 300
230
+ },
231
+ "ui_properties": {
232
+ "position": {
233
+ "x": 0,
234
+ "y": 2078
235
+ },
236
+ "width": 260,
237
+ "title": "Ignore from reference"
238
+ },
239
+ "dynamic_properties": {},
240
+ "dynamic_outputs": {}
241
+ },
242
+ {
243
+ "id": "direction-brief",
244
+ "type": "nodetool.code.Code",
245
+ "data": {
246
+ "code": "const text = (name, max) => {\n const value = String(inputs[name] ?? \"\").trim();\n if (!value) throw new Error(`${name.replaceAll(\"_\", \" \" )} is required.`);\n if (value.length > max) throw new Error(`${name.replaceAll(\"_\", \" \" )} must be ${max} characters or fewer.`);\n return value;\n};\nconst image = (name) => {\n const value = inputs[name];\n const hasUri = typeof value?.uri === \"string\" && value.uri.trim().length > 0;\n const hasData = typeof value?.data === \"string\" && value.data.length > 0;\n if (!value || typeof value !== \"object\" || value.type !== \"image\" || (!hasUri && !hasData)) throw new Error(`${name.replaceAll(\"_\", \" \" )} is required.`);\n return value;\n};\nconst productName = text(\"product_name\", 120);\nconst campaignMessage = text(\"campaign_message\", 600);\nconst audience = text(\"audience\", 300);\nconst headline = text(\"headline\", 120);\nconst cta = text(\"cta\", 80);\nconst referenceRole = String(inputs.reference_role ?? \"none\").trim().toLowerCase();\nconst roles = [\"none\", \"composition\", \"palette\", \"material\", \"lighting\"];\nif (!roles.includes(referenceRole)) throw new Error(`Reference role must be one of: ${roles.join(\", \" )}.`);\nconst productImage = image(\"product_image\");\nconst images = [productImage];\nlet referenceImage = null;\nif (referenceRole !== \"none\") {\n referenceImage = image(\"reference_image\");\n images.push(referenceImage);\n}\nconst referenceUse = String(inputs.reference_use ?? \"\").trim();\nconst referenceIgnore = String(inputs.reference_ignore ?? \"\").trim();\nif (referenceUse.length > 300 || referenceIgnore.length > 300) throw new Error(\"Reference notes must be 300 characters or fewer.\");\nconst brief = { schemaVersion: 1, productName, campaignMessage, audience, headline, cta, productImage, referenceImage, referenceRole, referenceUse, referenceIgnore };\nconst referenceInstruction = referenceRole === \"none\"\n ? \"There is no optional visual reference. Use image 1 only.\"\n : `Image 2 has the single role '${referenceRole}'. Use: ${referenceUse || \"the named role only\"}. Ignore: ${referenceIgnore || \"objects, branding, and product identity\"}. Palette must not transfer objects. Lighting must not transfer the depicted product. Composition must not transfer branding.`;\nconst prompt = `Develop exactly three distinct written campaign directions for this captured brief.\\n\\nProduct: ${productName}\\nCampaign message: ${campaignMessage}\\nAudience: ${audience}\\nExact headline: ${headline}\\nExact CTA: ${cta}\\n\\nImage 1 is always the product identity reference and controls proportions, finish, visible branding, and geometry. ${referenceInstruction}\\n\\nReturn JSON only, with this exact shape: {\"directions\":[{\"id\":\"A\",\"title\":\"...\",\"setting\":\"...\",\"composition\":\"...\",\"lighting\":\"...\",\"palette\":\"...\",\"preservationInstructions\":\"...\"},{\"id\":\"B\",...},{\"id\":\"C\",...}]}. Do not add campaign copy or change the approved headline or CTA.`;\nawait output(\"prompt\", prompt);\nawait output(\"images\", images);\nawait output(\"brief\", JSON.stringify(brief));"
247
+ },
248
+ "ui_properties": {
249
+ "position": {
250
+ "x": 360,
251
+ "y": 1256
252
+ },
253
+ "width": 420,
254
+ "title": "Validate and capture brief"
255
+ },
256
+ "dynamic_properties": {
257
+ "product_image": {
258
+ "type": "image",
259
+ "uri": ""
260
+ },
261
+ "product_name": "",
262
+ "campaign_message": "",
263
+ "audience": "",
264
+ "headline": "",
265
+ "cta": "",
266
+ "reference_image": {
267
+ "type": "image",
268
+ "uri": ""
269
+ },
270
+ "reference_role": "none",
271
+ "reference_use": "",
272
+ "reference_ignore": ""
273
+ },
274
+ "dynamic_inputs": {
275
+ "product_image": {
276
+ "type": {
277
+ "type": "image"
278
+ }
279
+ },
280
+ "product_name": {
281
+ "type": {
282
+ "type": "str"
283
+ }
284
+ },
285
+ "campaign_message": {
286
+ "type": {
287
+ "type": "str"
288
+ }
289
+ },
290
+ "audience": {
291
+ "type": {
292
+ "type": "str"
293
+ }
294
+ },
295
+ "headline": {
296
+ "type": {
297
+ "type": "str"
298
+ }
299
+ },
300
+ "cta": {
301
+ "type": {
302
+ "type": "str"
303
+ }
304
+ },
305
+ "reference_image": {
306
+ "type": {
307
+ "type": "image"
308
+ }
309
+ },
310
+ "reference_role": {
311
+ "type": {
312
+ "type": "str"
313
+ }
314
+ },
315
+ "reference_use": {
316
+ "type": {
317
+ "type": "str"
318
+ }
319
+ },
320
+ "reference_ignore": {
321
+ "type": {
322
+ "type": "str"
323
+ }
324
+ }
325
+ },
326
+ "dynamic_outputs": {
327
+ "prompt": {
328
+ "type": "str",
329
+ "type_args": [],
330
+ "optional": false
331
+ },
332
+ "images": {
333
+ "type": "list",
334
+ "type_args": [
335
+ {
336
+ "type": "image",
337
+ "type_args": [],
338
+ "optional": false
339
+ }
340
+ ],
341
+ "optional": false
342
+ },
343
+ "brief": {
344
+ "type": "str",
345
+ "type_args": [],
346
+ "optional": false
347
+ }
348
+ },
349
+ "sync_mode": "on_all"
350
+ },
351
+ {
352
+ "id": "direction-agent",
353
+ "type": "nodetool.agents.Agent",
354
+ "data": {
355
+ "model": {
356
+ "type": "language_model",
357
+ "provider": "",
358
+ "id": "",
359
+ "name": "",
360
+ "path": null,
361
+ "supported_tasks": []
362
+ },
363
+ "system": "You are a campaign creative director. Follow the requested JSON schema exactly. Return no prose or code fences.",
364
+ "prompt": "",
365
+ "tools": [],
366
+ "image": [],
367
+ "audio": [],
368
+ "history": [],
369
+ "thread_id": "",
370
+ "max_tokens": 4096,
371
+ "max_turns": 1
372
+ },
373
+ "ui_properties": {
374
+ "position": {
375
+ "x": 880,
376
+ "y": 1495
377
+ },
378
+ "width": 320,
379
+ "title": "Propose A, B, and C"
380
+ },
381
+ "dynamic_properties": {},
382
+ "dynamic_outputs": {},
383
+ "sync_mode": "on_all"
384
+ },
385
+ {
386
+ "id": "direction-parser",
387
+ "type": "nodetool.code.Code",
388
+ "data": {
389
+ "code": "const raw = String(inputs.response ?? \"\").trim();\nlet parsed;\ntry {\n parsed = JSON.parse(raw);\n} catch {\n throw new Error(\"The direction model returned malformed JSON. Run the proposal again; no image was generated.\");\n}\nlet brief;\ntry { brief = JSON.parse(String(inputs.brief ?? \"\")); } catch { throw new Error(\"The captured brief is invalid. Return to the brief and propose again.\"); }\nif (!parsed || !Array.isArray(parsed.directions) || parsed.directions.length !== 3) throw new Error(\"The direction response must contain exactly three directions.\");\nconst requiredIds = [\"A\", \"B\", \"C\"];\nconst fields = [\"title\", \"setting\", \"composition\", \"lighting\", \"palette\", \"preservationInstructions\"];\nconst directions = parsed.directions.map((item, index) => {\n if (!item || typeof item !== \"object\") throw new Error(`Direction ${requiredIds[index]} is not an object.`);\n const id = String(item.id ?? \"\").trim();\n if (id !== requiredIds[index]) throw new Error(\"Directions must be ordered and identified as A, B, and C.\");\n const clean = { id };\n for (const field of fields) {\n const value = String(item[field] ?? \"\").trim();\n if (!value) throw new Error(`Direction ${id} is missing ${field}.`);\n if (value.length > 600) throw new Error(`Direction ${id} ${field} is too long.`);\n clean[field] = value;\n }\n return clean;\n});\nif (new Set(directions.map((item) => item.id)).size !== 3) throw new Error(\"Direction IDs must be distinct.\");\nconst markdown = directions.map((item) => `### ${item.id} — ${item.title}\\n\\n- Setting: ${item.setting}\\n- Composition: ${item.composition}\\n- Lighting: ${item.lighting}\\n- Palette: ${item.palette}\\n- Preserve: ${item.preservationInstructions}`).join(\"\\n\\n\");\nconst plan = JSON.stringify({ schemaVersion: 1, brief, directions });\nawait output(\"directions\", markdown);\nawait output(\"plan\", plan);\nawait output(\"phase\", \"directions_ready\");"
390
+ },
391
+ "ui_properties": {
392
+ "position": {
393
+ "x": 1300,
394
+ "y": 1408
395
+ },
396
+ "width": 420,
397
+ "title": "Validate directions"
398
+ },
399
+ "dynamic_properties": {
400
+ "response": "",
401
+ "brief": ""
402
+ },
403
+ "dynamic_inputs": {
404
+ "response": {
405
+ "type": {
406
+ "type": "str"
407
+ }
408
+ },
409
+ "brief": {
410
+ "type": {
411
+ "type": "str"
412
+ }
413
+ }
414
+ },
415
+ "dynamic_outputs": {
416
+ "directions": {
417
+ "type": "str",
418
+ "type_args": [],
419
+ "optional": false
420
+ },
421
+ "plan": {
422
+ "type": "str",
423
+ "type_args": [],
424
+ "optional": false
425
+ },
426
+ "phase": {
427
+ "type": "str",
428
+ "type_args": [],
429
+ "optional": false
430
+ }
431
+ },
432
+ "sync_mode": "on_all"
433
+ },
434
+ {
435
+ "id": "out-directions",
436
+ "type": "nodetool.output.Output",
437
+ "data": {
438
+ "name": "directions"
439
+ },
440
+ "ui_properties": {
441
+ "position": {
442
+ "x": 1820,
443
+ "y": 1326
444
+ },
445
+ "width": 260,
446
+ "title": "Directions"
447
+ },
448
+ "dynamic_properties": {},
449
+ "dynamic_outputs": {}
450
+ },
451
+ {
452
+ "id": "out-plan",
453
+ "type": "nodetool.output.Output",
454
+ "data": {
455
+ "name": "plan"
456
+ },
457
+ "ui_properties": {
458
+ "position": {
459
+ "x": 1820,
460
+ "y": 1526
461
+ },
462
+ "width": 260,
463
+ "title": "Captured plan"
464
+ },
465
+ "dynamic_properties": {},
466
+ "dynamic_outputs": {}
467
+ },
468
+ {
469
+ "id": "out-phase",
470
+ "type": "nodetool.output.Output",
471
+ "data": {
472
+ "name": "phase"
473
+ },
474
+ "ui_properties": {
475
+ "position": {
476
+ "x": 1820,
477
+ "y": 1726
478
+ },
479
+ "width": 260,
480
+ "title": "Ready phase"
481
+ },
482
+ "dynamic_properties": {},
483
+ "dynamic_outputs": {}
484
+ }
485
+ ],
486
+ "edges": [
487
+ {
488
+ "id": "product-image-to-brief",
489
+ "source": "in-product_image",
490
+ "sourceHandle": "output",
491
+ "target": "direction-brief",
492
+ "targetHandle": "product_image"
493
+ },
494
+ {
495
+ "id": "product-name-to-brief",
496
+ "source": "in-product_name",
497
+ "sourceHandle": "output",
498
+ "target": "direction-brief",
499
+ "targetHandle": "product_name"
500
+ },
501
+ {
502
+ "id": "message-to-brief",
503
+ "source": "in-campaign_message",
504
+ "sourceHandle": "output",
505
+ "target": "direction-brief",
506
+ "targetHandle": "campaign_message"
507
+ },
508
+ {
509
+ "id": "audience-to-brief",
510
+ "source": "in-audience",
511
+ "sourceHandle": "output",
512
+ "target": "direction-brief",
513
+ "targetHandle": "audience"
514
+ },
515
+ {
516
+ "id": "headline-to-brief",
517
+ "source": "in-headline",
518
+ "sourceHandle": "output",
519
+ "target": "direction-brief",
520
+ "targetHandle": "headline"
521
+ },
522
+ {
523
+ "id": "cta-to-brief",
524
+ "source": "in-cta",
525
+ "sourceHandle": "output",
526
+ "target": "direction-brief",
527
+ "targetHandle": "cta"
528
+ },
529
+ {
530
+ "id": "reference-image-to-brief",
531
+ "source": "in-reference_image",
532
+ "sourceHandle": "output",
533
+ "target": "direction-brief",
534
+ "targetHandle": "reference_image"
535
+ },
536
+ {
537
+ "id": "reference-role-to-brief",
538
+ "source": "in-reference_role",
539
+ "sourceHandle": "output",
540
+ "target": "direction-brief",
541
+ "targetHandle": "reference_role"
542
+ },
543
+ {
544
+ "id": "reference-use-to-brief",
545
+ "source": "in-reference_use",
546
+ "sourceHandle": "output",
547
+ "target": "direction-brief",
548
+ "targetHandle": "reference_use"
549
+ },
550
+ {
551
+ "id": "reference-ignore-to-brief",
552
+ "source": "in-reference_ignore",
553
+ "sourceHandle": "output",
554
+ "target": "direction-brief",
555
+ "targetHandle": "reference_ignore"
556
+ },
557
+ {
558
+ "id": "prompt-to-agent",
559
+ "source": "direction-brief",
560
+ "sourceHandle": "prompt",
561
+ "target": "direction-agent",
562
+ "targetHandle": "prompt"
563
+ },
564
+ {
565
+ "id": "images-to-agent",
566
+ "source": "direction-brief",
567
+ "sourceHandle": "images",
568
+ "target": "direction-agent",
569
+ "targetHandle": "image"
570
+ },
571
+ {
572
+ "id": "agent-to-parser",
573
+ "source": "direction-agent",
574
+ "sourceHandle": "text",
575
+ "target": "direction-parser",
576
+ "targetHandle": "response"
577
+ },
578
+ {
579
+ "id": "brief-to-parser",
580
+ "source": "direction-brief",
581
+ "sourceHandle": "brief",
582
+ "target": "direction-parser",
583
+ "targetHandle": "brief"
584
+ },
585
+ {
586
+ "id": "directions-out",
587
+ "source": "direction-parser",
588
+ "sourceHandle": "directions",
589
+ "target": "out-directions",
590
+ "targetHandle": "value"
591
+ },
592
+ {
593
+ "id": "plan-out",
594
+ "source": "direction-parser",
595
+ "sourceHandle": "plan",
596
+ "target": "out-plan",
597
+ "targetHandle": "value"
598
+ },
599
+ {
600
+ "id": "phase-out",
601
+ "source": "direction-parser",
602
+ "sourceHandle": "phase",
603
+ "target": "out-phase",
604
+ "targetHandle": "value"
605
+ }
606
+ ]
607
+ },
608
+ "input_schema": null,
609
+ "output_schema": null,
610
+ "settings": null,
611
+ "package_name": "nodetool-base",
612
+ "path": null,
613
+ "run_mode": null
614
+ }