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

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 (251) hide show
  1. package/dist/.nodetool-build-stamp +1 -1
  2. package/dist/example-workflows.d.ts +2 -0
  3. package/dist/example-workflows.d.ts.map +1 -1
  4. package/dist/example-workflows.js +16 -4
  5. package/dist/example-workflows.js.map +1 -1
  6. package/dist/examples/nodetool-base/A Campaign Concept from a Brief.json +135 -0
  7. package/dist/examples/nodetool-base/A Gradient Card as PNG.json +128 -0
  8. package/dist/examples/nodetool-base/A Poster in Portrait.json +129 -0
  9. package/dist/examples/nodetool-base/A Repeating Texture Tile.json +129 -0
  10. package/dist/examples/nodetool-base/A Run Button for Any Job.json +152 -0
  11. package/dist/examples/nodetool-base/A Webhook That Answers.json +170 -0
  12. package/dist/examples/nodetool-base/AI Spokesperson.json +328 -0
  13. package/dist/examples/nodetool-base/Action Items from a Meeting Recording.json +198 -0
  14. package/dist/examples/nodetool-base/Ad Copy in Three Registers.json +135 -0
  15. package/dist/examples/nodetool-base/Ad Loop from a Product Photo.json +277 -0
  16. package/dist/examples/nodetool-base/Add Reverb to a Voice.json +125 -0
  17. package/dist/examples/nodetool-base/Album Art from a Mood.json +129 -0
  18. package/dist/examples/nodetool-base/Assemble a UGC Product Video.json +158 -0
  19. package/dist/examples/nodetool-base/Audio To Image.json +184 -0
  20. package/dist/examples/nodetool-base/B-Roll Reel from a Brief.json +339 -0
  21. package/dist/examples/nodetool-base/Batch a List.json +171 -0
  22. package/dist/examples/nodetool-base/Black and White, Hard.json +147 -0
  23. package/dist/examples/nodetool-base/Blog Post to Social Thread.json +135 -0
  24. package/dist/examples/nodetool-base/Blur a Channel.json +205 -0
  25. package/dist/examples/nodetool-base/Blur an Image.json +179 -0
  26. package/dist/examples/nodetool-base/Boost Saturation.json +178 -0
  27. package/dist/examples/nodetool-base/Brand Asset Generator.json +585 -0
  28. package/dist/examples/nodetool-base/Brand a UGC Product Video.json +402 -0
  29. package/dist/examples/nodetool-base/Bring a Still to Life.json +250 -0
  30. package/dist/examples/nodetool-base/Bullet Points to Press Release.json +135 -0
  31. package/dist/examples/nodetool-base/Chapter Markers for a Long Recording.json +198 -0
  32. package/dist/examples/nodetool-base/Chat With Your Documents.json +569 -0
  33. package/dist/examples/nodetool-base/Chunk a Transcript for Indexing.json +202 -0
  34. package/dist/examples/nodetool-base/Circles and Lines.json +126 -0
  35. package/dist/examples/nodetool-base/Clean Up a Rough Voice Recording.json +208 -0
  36. package/dist/examples/nodetool-base/Clip on Kie.json +173 -0
  37. package/dist/examples/nodetool-base/Cold Outreach Co-Pilot.json +423 -0
  38. package/dist/examples/nodetool-base/Color Boost Video.json +250 -0
  39. package/dist/examples/nodetool-base/Compose Directed Campaign Formats.json +764 -0
  40. package/dist/examples/nodetool-base/Concept Art Iteration Board.json +439 -0
  41. package/dist/examples/nodetool-base/Concept Art, Then a Moving Version.json +173 -0
  42. package/dist/examples/nodetool-base/Conditional Logic Engine.json +535 -0
  43. package/dist/examples/nodetool-base/Count a List.json +168 -0
  44. package/dist/examples/nodetool-base/Count to Three with a Loop.json +157 -0
  45. package/dist/examples/nodetool-base/Crop an Image.json +181 -0
  46. package/dist/examples/nodetool-base/Crop then Fit.json +208 -0
  47. package/dist/examples/nodetool-base/Crush It to 8 Bits.json +123 -0
  48. package/dist/examples/nodetool-base/Cut Out the Subject.json +184 -0
  49. package/dist/examples/nodetool-base/Cut a Landscape Clip for Vertical.json +123 -0
  50. package/dist/examples/nodetool-base/Cut a Product Out of Its Background.json +238 -0
  51. package/dist/examples/nodetool-base/Data Generator.json +216 -0
  52. package/dist/examples/nodetool-base/Denoise Footage.json +178 -0
  53. package/dist/examples/nodetool-base/Direct a Short Film.json +305 -0
  54. package/dist/examples/nodetool-base/Directed Film to Timeline.json +385 -0
  55. package/dist/examples/nodetool-base/Does This Text Mention the Deadline.json +130 -0
  56. package/dist/examples/nodetool-base/Draft Answers for an FAQ.json +135 -0
  57. package/dist/examples/nodetool-base/Draw a Badge in SVG.json +126 -0
  58. package/dist/examples/nodetool-base/Drop Duplicates.json +170 -0
  59. package/dist/examples/nodetool-base/Drop the First Few.json +148 -0
  60. package/dist/examples/nodetool-base/Dungeon and Ruins Starter Pack.json +786 -0
  61. package/dist/examples/nodetool-base/Edit a Still with Words.json +284 -0
  62. package/dist/examples/nodetool-base/Editorial Still from a Line.json +197 -0
  63. package/dist/examples/nodetool-base/Emboss a Still.json +120 -0
  64. package/dist/examples/nodetool-base/Every Combination.json +225 -0
  65. package/dist/examples/nodetool-base/Every Hour, On the Hour.json +162 -0
  66. package/dist/examples/nodetool-base/Executive Summary of a Long Document.json +135 -0
  67. package/dist/examples/nodetool-base/Explainer Clip from a Paragraph.json +244 -0
  68. package/dist/examples/nodetool-base/Extract the Claims Worth Checking.json +135 -0
  69. package/dist/examples/nodetool-base/Fade Audio In and Out.json +203 -0
  70. package/dist/examples/nodetool-base/Fade Audio Out.json +202 -0
  71. package/dist/examples/nodetool-base/Fill a Template.json +149 -0
  72. package/dist/examples/nodetool-base/Find Every Number in a Sentence.json +127 -0
  73. package/dist/examples/nodetool-base/Find and Replace.json +224 -0
  74. package/dist/examples/nodetool-base/Find the Edges.json +123 -0
  75. package/dist/examples/nodetool-base/Fit an Image.json +179 -0
  76. package/dist/examples/nodetool-base/Five Headlines for a Landing Page.json +135 -0
  77. package/dist/examples/nodetool-base/Flashcard Generator.json +297 -0
  78. package/dist/examples/nodetool-base/Gate Out the Room Noise.json +124 -0
  79. package/dist/examples/nodetool-base/Generate a Native-Audio UGC Testimonial.json +276 -0
  80. package/dist/examples/nodetool-base/Generate a Silent Bed.json +126 -0
  81. package/dist/examples/nodetool-base/Generate then Upscale a Poster.json +164 -0
  82. package/dist/examples/nodetool-base/Hacker News Agent.json +183 -0
  83. package/dist/examples/nodetool-base/Hook & Thumbnail Factory.json +498 -0
  84. package/dist/examples/nodetool-base/How Long Is This Transcript.json +185 -0
  85. package/dist/examples/nodetool-base/Image Enhance.json +272 -0
  86. package/dist/examples/nodetool-base/Image To Audio Story.json +180 -0
  87. package/dist/examples/nodetool-base/Image to Video Animation.json +346 -0
  88. package/dist/examples/nodetool-base/Inspect a Clip's Audio.json +187 -0
  89. package/dist/examples/nodetool-base/Inspect a Clip.json +163 -0
  90. package/dist/examples/nodetool-base/Invert a Still.json +120 -0
  91. package/dist/examples/nodetool-base/Keep Only the Long Lines.json +220 -0
  92. package/dist/examples/nodetool-base/Keep Only the Matches.json +148 -0
  93. package/dist/examples/nodetool-base/Key Out a Green Screen.json +124 -0
  94. package/dist/examples/nodetool-base/Last One Wins.json +144 -0
  95. package/dist/examples/nodetool-base/Lip-sync a Clip to a Voice Track.json +313 -0
  96. package/dist/examples/nodetool-base/Localise a Product Listing.json +135 -0
  97. package/dist/examples/nodetool-base/Localise a Script and Revoice It.json +242 -0
  98. package/dist/examples/nodetool-base/Localized Explainer.json +430 -0
  99. package/dist/examples/nodetool-base/Low-poly Adventure Starter Pack.json +786 -0
  100. package/dist/examples/nodetool-base/Low-poly Seaside Starter Pack.json +786 -0
  101. package/dist/examples/nodetool-base/Master a Voice Track.json +180 -0
  102. package/dist/examples/nodetool-base/Meeting Transcript Summarizer.json +524 -0
  103. package/dist/examples/nodetool-base/Model Arena.json +550 -0
  104. package/dist/examples/nodetool-base/Moodboard Frame from a Theme.json +129 -0
  105. package/dist/examples/nodetool-base/Movie Posters.json +660 -0
  106. package/dist/examples/nodetool-base/Movie Trailer Generator.json +418 -0
  107. package/dist/examples/nodetool-base/Music Video Visualizer.json +720 -0
  108. package/dist/examples/nodetool-base/Name a File from Its Narration.json +231 -0
  109. package/dist/examples/nodetool-base/Narrate a Script.json +169 -0
  110. package/dist/examples/nodetool-base/Narration with a Music Bed.json +360 -0
  111. package/dist/examples/nodetool-base/Normalize a Clip's Audio.json +201 -0
  112. package/dist/examples/nodetool-base/One Tagline, Six Markets.json +135 -0
  113. package/dist/examples/nodetool-base/Pad a Canvas.json +188 -0
  114. package/dist/examples/nodetool-base/Per-SKU Ad Factory.json +511 -0
  115. package/dist/examples/nodetool-base/Photo Enhancement Suite.json +417 -0
  116. package/dist/examples/nodetool-base/Picture in Picture.json +231 -0
  117. package/dist/examples/nodetool-base/Pitch a Voice Up.json +122 -0
  118. package/dist/examples/nodetool-base/Pixelate a Still.json +122 -0
  119. package/dist/examples/nodetool-base/Platformer Playground Starter Pack.json +786 -0
  120. package/dist/examples/nodetool-base/Podcast Episode to Show Notes.json +198 -0
  121. package/dist/examples/nodetool-base/Podcast Repurposing Studio.json +745 -0
  122. package/dist/examples/nodetool-base/Pokemon Maker.json +282 -0
  123. package/dist/examples/nodetool-base/Poster on Kie.json +172 -0
  124. package/dist/examples/nodetool-base/Posterize to Four Bits.json +122 -0
  125. package/dist/examples/nodetool-base/Private Assistant.json +236 -0
  126. package/dist/examples/nodetool-base/Product Mockup Generator.json +608 -0
  127. package/dist/examples/nodetool-base/Product Spot from Text.json +330 -0
  128. package/dist/examples/nodetool-base/Product Video Generator.json +344 -0
  129. package/dist/examples/nodetool-base/Prompt Template.json +221 -0
  130. package/dist/examples/nodetool-base/Propose Three Campaign Directions.json +614 -0
  131. package/dist/examples/nodetool-base/Pull a Field out of JSON Text.json +128 -0
  132. package/dist/examples/nodetool-base/Pull a Still from a Clip.json +179 -0
  133. package/dist/examples/nodetool-base/Pull the Quotable Lines Out of an Interview.json +198 -0
  134. package/dist/examples/nodetool-base/Put a Product on a Studio Backdrop.json +252 -0
  135. package/dist/examples/nodetool-base/Put a Voice Over a Music Bed.json +358 -0
  136. package/dist/examples/nodetool-base/README_EXAMPLES.md +59 -0
  137. package/dist/examples/nodetool-base/Re-delimit a List.json +199 -0
  138. package/dist/examples/nodetool-base/Read a Clip's Frame Rate.json +120 -0
  139. package/dist/examples/nodetool-base/Redact Email Addresses.json +129 -0
  140. package/dist/examples/nodetool-base/Redact and Tidy a Log Line.json +266 -0
  141. package/dist/examples/nodetool-base/Relight a Product for a Seasonal Campaign.json +131 -0
  142. package/dist/examples/nodetool-base/Render a Directed Campaign Hero.json +338 -0
  143. package/dist/examples/nodetool-base/Reopen a Directed Campaign.json +1748 -0
  144. package/dist/examples/nodetool-base/Research Agent.json +231 -0
  145. package/dist/examples/nodetool-base/Research a Brand from Its Website.json +445 -0
  146. package/dist/examples/nodetool-base/Restyle a Photo as an Illustration.json +136 -0
  147. package/dist/examples/nodetool-base/Reverse Audio.json +201 -0
  148. package/dist/examples/nodetool-base/Reverse a Clip.json +176 -0
  149. package/dist/examples/nodetool-base/Revise an Accepted Campaign Hero.json +486 -0
  150. package/dist/examples/nodetool-base/Rewrite This So a Customer Understands It.json +135 -0
  151. package/dist/examples/nodetool-base/Rotate Footage.json +178 -0
  152. package/dist/examples/nodetool-base/SEO Content Engine.json +708 -0
  153. package/dist/examples/nodetool-base/SEO Title and Meta Description.json +135 -0
  154. package/dist/examples/nodetool-base/Sci-fi Game Model Starter Pack.json +693 -0
  155. package/dist/examples/nodetool-base/Sci-fi Outpost Expansion.json +601 -0
  156. package/dist/examples/nodetool-base/Score a Clip from Its Own Mood.json +229 -0
  157. package/dist/examples/nodetool-base/Score a Silent Clip.json +382 -0
  158. package/dist/examples/nodetool-base/Script to Narrated Clip.json +224 -0
  159. package/dist/examples/nodetool-base/Script to Screen.json +940 -0
  160. package/dist/examples/nodetool-base/Sharpen Footage.json +179 -0
  161. package/dist/examples/nodetool-base/Shot List from a Synopsis.json +136 -0
  162. package/dist/examples/nodetool-base/Single Shot from a Line.json +199 -0
  163. package/dist/examples/nodetool-base/Slice Text.json +159 -0
  164. package/dist/examples/nodetool-base/Slow a Clip Without Dropping Pitch.json +122 -0
  165. package/dist/examples/nodetool-base/Soften a Plate.json +178 -0
  166. package/dist/examples/nodetool-base/Solarize a Still.json +122 -0
  167. package/dist/examples/nodetool-base/Speak a Line, Then Trim the Silence.json +157 -0
  168. package/dist/examples/nodetool-base/Spin a Packshot into a Turntable Clip.json +137 -0
  169. package/dist/examples/nodetool-base/Split a Channel.json +178 -0
  170. package/dist/examples/nodetool-base/Split a Log into Records.json +128 -0
  171. package/dist/examples/nodetool-base/Stabilize Handheld.json +179 -0
  172. package/dist/examples/nodetool-base/Still on Replicate.json +172 -0
  173. package/dist/examples/nodetool-base/Subject Lines Worth Testing.json +135 -0
  174. package/dist/examples/nodetool-base/Subtitle Lines from a Script.json +170 -0
  175. package/dist/examples/nodetool-base/Subtitle Text from a Recording.json +198 -0
  176. package/dist/examples/nodetool-base/Summarise a Recorded Call.json +198 -0
  177. package/dist/examples/nodetool-base/Swirl and Echo.json +154 -0
  178. package/dist/examples/nodetool-base/Take While the Numbers Are Small.json +148 -0
  179. package/dist/examples/nodetool-base/Take a Product Shot to Print Resolution.json +209 -0
  180. package/dist/examples/nodetool-base/Take the First Few Seconds of a Bed.json +127 -0
  181. package/dist/examples/nodetool-base/Take the First Few.json +170 -0
  182. package/dist/examples/nodetool-base/Telephone Voice.json +174 -0
  183. package/dist/examples/nodetool-base/Themes Across Customer Feedback.json +135 -0
  184. package/dist/examples/nodetool-base/Three Ratios.json +315 -0
  185. package/dist/examples/nodetool-base/Tidy Up Messy Text.json +199 -0
  186. package/dist/examples/nodetool-base/Top-down Native Asset Pack.json +955 -0
  187. package/dist/examples/nodetool-base/Trailer Beats from a Premise.json +136 -0
  188. package/dist/examples/nodetool-base/Transcribe Audio.json +138 -0
  189. package/dist/examples/nodetool-base/Transcribe a Clip.json +198 -0
  190. package/dist/examples/nodetool-base/Translate Marketing Copy to German.json +135 -0
  191. package/dist/examples/nodetool-base/Translate a Script for Dubbing.json +224 -0
  192. package/dist/examples/nodetool-base/Trim Audio to a Range.json +203 -0
  193. package/dist/examples/nodetool-base/Trim a Blurb to Length.json +128 -0
  194. package/dist/examples/nodetool-base/Trim a Clip.json +180 -0
  195. package/dist/examples/nodetool-base/Turn Research Notes into a Comparison Table.json +136 -0
  196. package/dist/examples/nodetool-base/Turn Specs into Product Copy.json +135 -0
  197. package/dist/examples/nodetool-base/Turn a Changelog into Release Notes.json +135 -0
  198. package/dist/examples/nodetool-base/Turn a Logo into Print-Ready Vector.json +126 -0
  199. package/dist/examples/nodetool-base/Turn a Support Thread into a Bug Report.json +135 -0
  200. package/dist/examples/nodetool-base/Turn a Talk into a Blog Post.json +198 -0
  201. package/dist/examples/nodetool-base/Upscale a Still.json +186 -0
  202. package/dist/examples/nodetool-base/Vectorize a Generated Logo.json +162 -0
  203. package/dist/examples/nodetool-base/Video Restyle Studio.json +281 -0
  204. package/dist/examples/nodetool-base/Vignette a Portrait.json +124 -0
  205. package/dist/examples/nodetool-base/Voice a Script in Two Voices.json +217 -0
  206. package/dist/examples/nodetool-base/Warm Up a Cold Clip.json +124 -0
  207. package/dist/examples/nodetool-base/Watch a Folder, Act on What Lands.json +177 -0
  208. package/dist/examples/nodetool-base/Widen a Mono Voice.json +151 -0
  209. package/dist/examples/nodetool-base/Workflow As A Tool.json +257 -0
  210. package/dist/examples/nodetool-base/Write a Listing from the Product Photo.json +139 -0
  211. package/dist/examples/nodetool-base/Write the Prompt, Then Make the Image.json +200 -0
  212. package/dist/examples/nodetool-base/gallery_thumbnail_generator.ts +384 -0
  213. package/dist/fake-runtime.d.ts.map +1 -1
  214. package/dist/fake-runtime.js +5 -1
  215. package/dist/fake-runtime.js.map +1 -1
  216. package/dist/http-api.d.ts.map +1 -1
  217. package/dist/http-api.js +20 -3
  218. package/dist/http-api.js.map +1 -1
  219. package/dist/lib/openverse.d.ts +47 -0
  220. package/dist/lib/openverse.d.ts.map +1 -0
  221. package/dist/lib/openverse.js +255 -0
  222. package/dist/lib/openverse.js.map +1 -0
  223. package/dist/model-execution-availability.d.ts.map +1 -1
  224. package/dist/model-execution-availability.js +7 -2
  225. package/dist/model-execution-availability.js.map +1 -1
  226. package/dist/screenshot-server.js +87 -49
  227. package/dist/screenshot-server.js.map +1 -1
  228. package/dist/trpc/router.d.ts +2 -0
  229. package/dist/trpc/router.d.ts.map +1 -1
  230. package/dist/trpc/router.js +2 -0
  231. package/dist/trpc/router.js.map +1 -1
  232. package/dist/trpc/routers/games.d.ts +179 -0
  233. package/dist/trpc/routers/games.d.ts.map +1 -1
  234. package/dist/trpc/routers/games.js +1 -1
  235. package/dist/trpc/routers/games.js.map +1 -1
  236. package/dist/trpc/routers/models.d.ts +270 -0
  237. package/dist/trpc/routers/models.d.ts.map +1 -1
  238. package/dist/trpc/routers/models.js +37 -19
  239. package/dist/trpc/routers/models.js.map +1 -1
  240. package/dist/trpc/routers/openverse.d.ts +91 -0
  241. package/dist/trpc/routers/openverse.d.ts.map +1 -0
  242. package/dist/trpc/routers/openverse.js +98 -0
  243. package/dist/trpc/routers/openverse.js.map +1 -0
  244. package/dist/trpc/sandbox-coverage.d.ts.map +1 -1
  245. package/dist/trpc/sandbox-coverage.js +11 -0
  246. package/dist/trpc/sandbox-coverage.js.map +1 -1
  247. package/dist/websocket-client-session.d.ts +8 -0
  248. package/dist/websocket-client-session.d.ts.map +1 -1
  249. package/dist/websocket-client-session.js +31 -1
  250. package/dist/websocket-client-session.js.map +1 -1
  251. package/package.json +27 -28
@@ -0,0 +1,266 @@
1
+ {
2
+ "id": "",
3
+ "access": "private",
4
+ "created_at": "2026-08-02T10:00:00.000Z",
5
+ "updated_at": "2026-08-02T10:00:00.000Z",
6
+ "name": "Redact and Tidy a Log Line",
7
+ "tool_name": null,
8
+ "description": "Two regex passes and a whitespace collapse, in the order that matters: redact before you normalise, or the pattern you are matching may already have been reshaped.",
9
+ "tags": [
10
+ "text",
11
+ "example"
12
+ ],
13
+ "thumbnail": null,
14
+ "thumbnail_url": null,
15
+ "graph": {
16
+ "nodes": [
17
+ {
18
+ "id": "intro-comment",
19
+ "type": "nodetool.workflows.base_node.Comment",
20
+ "data": {
21
+ "comment": "# Redact and Tidy a Log Line\n\nCleans one log line by masking the email address and IP before tidying the spacing. Redacting first matters, because normalising could reshape the text a pattern needs to match.\n\n**How it works:** \"Log line\" holds a sample entry. \"Redact email\" and \"Redact IP\" each run a regex replacement in turn. \"Collapse spaces\" squeezes runs of whitespace and sends the result to the \"redacted\" Output. \"Every number\" then pulls every number from the cleaned line into the \"numbers\" Output.\n\n**Try this:** Paste a log line from your own system into \"Log line\" and check that both redactions still catch it."
22
+ },
23
+ "ui_properties": {
24
+ "position": {
25
+ "x": 0,
26
+ "y": 0
27
+ },
28
+ "zIndex": 0,
29
+ "width": 560,
30
+ "selectable": true,
31
+ "height": 305
32
+ },
33
+ "dynamic_properties": {},
34
+ "dynamic_outputs": {}
35
+ },
36
+ {
37
+ "id": "raw",
38
+ "type": "nodetool.constant.String",
39
+ "data": {
40
+ "value": "2026-08-02 WARN user=ada.lovelace@example.com ip=10.0.0.7 retry=3"
41
+ },
42
+ "ui_properties": {
43
+ "position": {
44
+ "x": 0,
45
+ "y": 834
46
+ },
47
+ "zIndex": 0,
48
+ "width": 280,
49
+ "selectable": true,
50
+ "title": "1 Log line"
51
+ },
52
+ "dynamic_properties": {},
53
+ "dynamic_outputs": {}
54
+ },
55
+ {
56
+ "id": "mail",
57
+ "type": "nodetool.code.Code",
58
+ "data": {
59
+ "code": "const text = String(inputs.text ?? \"\");\nconst pattern = new RegExp(inputs.pattern, \"g\");\nconst replacement = String(inputs.replacement ?? \"\");\nconst count = Number(inputs.count ?? 0);\nif (count <= 0) {\n return { output: text.replace(pattern, replacement) };\n}\nlet remaining = count;\nconst output = text.replace(pattern, (matched) => {\n if (remaining <= 0) return matched;\n remaining--;\n return matched.replace(new RegExp(inputs.pattern), replacement);\n});\nreturn { output };",
60
+ "packages": []
61
+ },
62
+ "ui_properties": {
63
+ "position": {
64
+ "x": 380,
65
+ "y": 655
66
+ },
67
+ "zIndex": 0,
68
+ "width": 280,
69
+ "selectable": true,
70
+ "title": "2 Redact email"
71
+ },
72
+ "dynamic_properties": {
73
+ "pattern": "[\\w.+-]+@[\\w-]+\\.[\\w.]+",
74
+ "replacement": "<email>",
75
+ "count": 0
76
+ },
77
+ "dynamic_outputs": {
78
+ "output": {
79
+ "type": "any",
80
+ "type_args": [],
81
+ "optional": false
82
+ }
83
+ }
84
+ },
85
+ {
86
+ "id": "ip",
87
+ "type": "nodetool.code.Code",
88
+ "data": {
89
+ "code": "const text = String(inputs.text ?? \"\");\nconst pattern = new RegExp(inputs.pattern, \"g\");\nconst replacement = String(inputs.replacement ?? \"\");\nconst count = Number(inputs.count ?? 0);\nif (count <= 0) {\n return { output: text.replace(pattern, replacement) };\n}\nlet remaining = count;\nconst output = text.replace(pattern, (matched) => {\n if (remaining <= 0) return matched;\n remaining--;\n return matched.replace(new RegExp(inputs.pattern), replacement);\n});\nreturn { output };",
90
+ "packages": []
91
+ },
92
+ "ui_properties": {
93
+ "position": {
94
+ "x": 760,
95
+ "y": 639
96
+ },
97
+ "zIndex": 0,
98
+ "width": 280,
99
+ "selectable": true,
100
+ "title": "3 Redact IP"
101
+ },
102
+ "dynamic_properties": {
103
+ "pattern": "\\b(?:\\d{1,3}\\.){3}\\d{1,3}\\b",
104
+ "replacement": "<ip>",
105
+ "count": 0
106
+ },
107
+ "dynamic_outputs": {
108
+ "output": {
109
+ "type": "any",
110
+ "type_args": [],
111
+ "optional": false
112
+ }
113
+ }
114
+ },
115
+ {
116
+ "id": "tidy",
117
+ "type": "nodetool.code.Code",
118
+ "data": {
119
+ "code": "const text = String(inputs.text ?? \"\");\nconst preserveNewlines = Boolean(inputs.preserve_newlines ?? false);\nconst replacement = String(inputs.replacement ?? \" \");\nconst trimEdges = inputs.trim_edges === undefined ? true : Boolean(inputs.trim_edges);\nconst value = trimEdges ? text.trim() : text;\nconst pattern = preserveNewlines ? /[^\\S\\r\\n]+/g : /\\s+/g;\nreturn { output: value.replace(pattern, replacement) };",
120
+ "packages": []
121
+ },
122
+ "ui_properties": {
123
+ "position": {
124
+ "x": 1140,
125
+ "y": 607
126
+ },
127
+ "zIndex": 0,
128
+ "width": 280,
129
+ "selectable": true,
130
+ "title": "4 Collapse spaces"
131
+ },
132
+ "dynamic_properties": {
133
+ "preserve_newlines": false,
134
+ "replacement": " ",
135
+ "trim_edges": true
136
+ },
137
+ "dynamic_outputs": {
138
+ "output": {
139
+ "type": "any",
140
+ "type_args": [],
141
+ "optional": false
142
+ }
143
+ }
144
+ },
145
+ {
146
+ "id": "nums",
147
+ "type": "nodetool.code.Code",
148
+ "data": {
149
+ "code": "let flags = \"g\";\nif (inputs.ignorecase) flags += \"i\";\nif (inputs.multiline) flags += \"m\";\nif (inputs.dotall) flags += \"s\";\nconst matches = [...inputs.text.matchAll(new RegExp(inputs.pattern, flags))].map(m => m[0]);\nreturn { output: matches };",
150
+ "packages": []
151
+ },
152
+ "ui_properties": {
153
+ "position": {
154
+ "x": 1520,
155
+ "y": 385
156
+ },
157
+ "zIndex": 0,
158
+ "width": 280,
159
+ "selectable": true,
160
+ "title": "5 Every number"
161
+ },
162
+ "dynamic_properties": {
163
+ "pattern": "\\d+",
164
+ "dotall": false,
165
+ "ignorecase": false,
166
+ "multiline": false
167
+ },
168
+ "dynamic_outputs": {
169
+ "output": {
170
+ "type": "any",
171
+ "type_args": [],
172
+ "optional": false
173
+ }
174
+ }
175
+ },
176
+ {
177
+ "id": "o1",
178
+ "type": "nodetool.output.Output",
179
+ "data": {
180
+ "name": "redacted"
181
+ },
182
+ "ui_properties": {
183
+ "position": {
184
+ "x": 1520,
185
+ "y": 922
186
+ },
187
+ "zIndex": 0,
188
+ "width": 280,
189
+ "selectable": true
190
+ },
191
+ "dynamic_properties": {},
192
+ "dynamic_outputs": {},
193
+ "name": "redacted"
194
+ },
195
+ {
196
+ "id": "o2",
197
+ "type": "nodetool.output.Output",
198
+ "data": {
199
+ "name": "numbers"
200
+ },
201
+ "ui_properties": {
202
+ "position": {
203
+ "x": 1900,
204
+ "y": 583
205
+ },
206
+ "zIndex": 0,
207
+ "width": 280,
208
+ "selectable": true
209
+ },
210
+ "dynamic_properties": {},
211
+ "dynamic_outputs": {},
212
+ "name": "numbers"
213
+ }
214
+ ],
215
+ "edges": [
216
+ {
217
+ "id": "e1",
218
+ "source": "raw",
219
+ "sourceHandle": "output",
220
+ "target": "mail",
221
+ "targetHandle": "text"
222
+ },
223
+ {
224
+ "id": "e2",
225
+ "source": "mail",
226
+ "sourceHandle": "output",
227
+ "target": "ip",
228
+ "targetHandle": "text"
229
+ },
230
+ {
231
+ "id": "e3",
232
+ "source": "ip",
233
+ "sourceHandle": "output",
234
+ "target": "tidy",
235
+ "targetHandle": "text"
236
+ },
237
+ {
238
+ "id": "e4",
239
+ "source": "tidy",
240
+ "sourceHandle": "output",
241
+ "target": "nums",
242
+ "targetHandle": "text"
243
+ },
244
+ {
245
+ "id": "e5",
246
+ "source": "tidy",
247
+ "sourceHandle": "output",
248
+ "target": "o1",
249
+ "targetHandle": "value"
250
+ },
251
+ {
252
+ "id": "e6",
253
+ "source": "nums",
254
+ "sourceHandle": "output",
255
+ "target": "o2",
256
+ "targetHandle": "value"
257
+ }
258
+ ]
259
+ },
260
+ "input_schema": null,
261
+ "output_schema": null,
262
+ "settings": null,
263
+ "package_name": "nodetool-base",
264
+ "path": null,
265
+ "run_mode": null
266
+ }
@@ -0,0 +1,131 @@
1
+ {
2
+ "id": "",
3
+ "access": "private",
4
+ "created_at": "2026-07-30T16:00:00.000Z",
5
+ "updated_at": "2026-07-30T16:00:00.000Z",
6
+ "name": "Relight a Product for a Seasonal Campaign",
7
+ "tool_name": null,
8
+ "description": "Same product, different season, no reshoot. Relighting keeps the geometry and materials and changes only where the light comes from.",
9
+ "tags": [
10
+ "image",
11
+ "example"
12
+ ],
13
+ "thumbnail": null,
14
+ "thumbnail_url": null,
15
+ "graph": {
16
+ "nodes": [
17
+ {
18
+ "id": "intro-comment",
19
+ "type": "nodetool.workflows.base_node.Comment",
20
+ "data": {
21
+ "comment": "# Relight a Product for a Seasonal Campaign\n\nChanges the lighting on an existing product photo so it fits a new season without a reshoot. The product's shape and materials stay as they are.\n\n**How it works:** \"Photo\" takes the image you upload. \"Relight\" sends it to a relighting model with a prompt that describes the new light source, and \"Result\" shows the relit photo.\n\n**Try this:** Pick a model on \"Relight\", then swap the prompt for \"cool morning light from behind, pale blue haze\" to get a spring look."
22
+ },
23
+ "ui_properties": {
24
+ "position": {
25
+ "x": 0,
26
+ "y": 0
27
+ },
28
+ "zIndex": 0,
29
+ "width": 560,
30
+ "selectable": true,
31
+ "height": 266
32
+ },
33
+ "dynamic_properties": {},
34
+ "dynamic_outputs": {}
35
+ },
36
+ {
37
+ "id": "in",
38
+ "type": "nodetool.input.ImageInput",
39
+ "data": {
40
+ "name": "photo",
41
+ "value": {
42
+ "type": "image",
43
+ "uri": "package://nodetool-base/recipe-inputs/coffee.jpg"
44
+ },
45
+ "description": "The photo to work on"
46
+ },
47
+ "ui_properties": {
48
+ "position": {
49
+ "x": 0,
50
+ "y": 351
51
+ },
52
+ "zIndex": 0,
53
+ "width": 300,
54
+ "selectable": true,
55
+ "title": "1 Photo"
56
+ },
57
+ "dynamic_properties": {},
58
+ "dynamic_outputs": {}
59
+ },
60
+ {
61
+ "id": "rl",
62
+ "type": "nodetool.image.Relight",
63
+ "data": {
64
+ "model": {
65
+ "type": "image_model",
66
+ "provider": "",
67
+ "id": "",
68
+ "name": "",
69
+ "path": null,
70
+ "supported_tasks": []
71
+ },
72
+ "prompt": "warm low winter sun from the left, long soft shadows",
73
+ "negative_prompt": ""
74
+ },
75
+ "ui_properties": {
76
+ "position": {
77
+ "x": 400,
78
+ "y": 346
79
+ },
80
+ "zIndex": 0,
81
+ "width": 300,
82
+ "selectable": true,
83
+ "title": "2 Relight"
84
+ },
85
+ "dynamic_properties": {},
86
+ "dynamic_outputs": {}
87
+ },
88
+ {
89
+ "id": "out",
90
+ "type": "nodetool.output.Output",
91
+ "data": {
92
+ "name": "seasonal"
93
+ },
94
+ "ui_properties": {
95
+ "position": {
96
+ "x": 800,
97
+ "y": 359
98
+ },
99
+ "zIndex": 0,
100
+ "width": 300,
101
+ "selectable": true,
102
+ "title": "3 Result"
103
+ },
104
+ "dynamic_properties": {},
105
+ "dynamic_outputs": {}
106
+ }
107
+ ],
108
+ "edges": [
109
+ {
110
+ "id": "e1",
111
+ "source": "in",
112
+ "sourceHandle": "output",
113
+ "target": "rl",
114
+ "targetHandle": "image"
115
+ },
116
+ {
117
+ "id": "e2",
118
+ "source": "rl",
119
+ "sourceHandle": "output",
120
+ "target": "out",
121
+ "targetHandle": "value"
122
+ }
123
+ ]
124
+ },
125
+ "input_schema": null,
126
+ "output_schema": null,
127
+ "settings": null,
128
+ "package_name": "nodetool-base",
129
+ "path": null,
130
+ "run_mode": null
131
+ }