@womp/spark-agent 15.0.3 → 15.1.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.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,30 @@ Notable changes to `@womp/spark-agent`, newest first. Versions follow
4
4
  [Semantic Versioning](https://semver.org/). Add an entry with each version bump; describe what
5
5
  changed for hosts and users, and how to migrate across breaking changes.
6
6
 
7
+ ## 15.1.1 — 2026-10-23
8
+
9
+ ### Fixed
10
+
11
+ - Final replies describe objects, materials and other results the way the user sees them (name,
12
+ appearance or placement) instead of by internal IDs, handles or API names. A new material was
13
+ reported as "ID 9", which means nothing in the editor.
14
+
15
+ ## 15.1.0 — 2026-10-22
16
+
17
+ ### Changed
18
+
19
+ - 3D requests build with editable scene shapes by default, including "generate a 3D model of X" and
20
+ turning an existing or attached image into 3D. Swan's Make 3D button ("Generate 3d model from the
21
+ attached image") now builds editable shapes instead of generating a mesh.
22
+ - Mesh generation runs only when the user asks for a mesh or AI 3D generation, or picks the sculpted
23
+ option after a preview. A mesh generated that way is still imported into the scene in the same turn.
24
+ - OpenSCAD is for CAD-style requests only: stated dimensions or tolerances, adjustable parameters,
25
+ mechanical parts, or a fit to a specific real object the user names. Printing alone no longer
26
+ selects it.
27
+ - `intent-bench` covers unmeasured furniture and objects, print requests taken from beta, CAD fit
28
+ cases, the Make 3D button, and explicit mesh requests for photos and generated images. Generated
29
+ images in conversation cases are a real photo, not a solid color the model reads as broken.
30
+
7
31
  ## 15.0.3 — 2026-10-22
8
32
 
9
33
  ### Fixed
@@ -48,6 +48,7 @@ export type IntentCase = {
48
48
  /**
49
49
  * The build-intent QA requests (22 Sep 2026), with expectations updated to the creation
50
50
  * rules restored in 6.0 (image previews for ambiguous and likeness-dependent requests),
51
- * plus preview follow-ups and attached-photo cases.
51
+ * plus preview follow-ups and attached-photo cases. Since 15.1 mesh generation needs an
52
+ * explicit request, and OpenSCAD a CAD-style one.
52
53
  */
53
54
  export declare const INTENT_CASES: IntentCase[];
@@ -24,12 +24,36 @@ const washer = "difference() { cylinder(h = thickness, d = outer_diameter, $fn =
24
24
  /**
25
25
  * The build-intent QA requests (22 Sep 2026), with expectations updated to the creation
26
26
  * rules restored in 6.0 (image previews for ambiguous and likeness-dependent requests),
27
- * plus preview follow-ups and attached-photo cases.
27
+ * plus preview follow-ups and attached-photo cases. Since 15.1 mesh generation needs an
28
+ * explicit request, and OpenSCAD a CAD-style one.
28
29
  */
29
30
  export const INTENT_CASES = [
30
31
  { id: "P1", group: "core", turns: [user("Make a washer: 20 mm outer diameter, 8 mm hole, 2 mm thick.")], expect: ["openscad"] },
31
32
  { id: "P2", group: "core", turns: [user("Make a parametric phone stand where I can adjust the width and tilt angle.")], expect: ["openscad"] },
32
33
  { id: "P3", group: "core", turns: [user("Make a storage tray, 120 × 80 × 25 mm.")], expect: ["openscad"] },
34
+ { id: "P4", group: "core", turns: [user("Make a wall bracket that holds a 32 mm pipe, with two screw holes.")], expect: ["openscad"] },
35
+ { id: "P5", group: "core", turns: [user("Design an enclosure for a Raspberry Pi 4 with openings for its ports.")], expect: ["openscad"], note: "Must fit a real object." },
36
+ {
37
+ id: "O1", group: "core", turns: [user("Make a 3D bookshelf with three shelves.")], expect: ["scene"],
38
+ note: "Furniture without measurements is not CAD: no dimensions, tolerances or adjustable parameters asked for.",
39
+ },
40
+ { id: "O2", group: "core", turns: [user("Make a coffee table in 3D.")], expect: ["scene"] },
41
+ { id: "O3", group: "core", turns: [user("Make a 3D model of a small cottage with a pitched roof and a chimney.")], expect: ["scene"] },
42
+ { id: "O4", group: "core", turns: [user("Create a 3D desk lamp.")], expect: ["scene"] },
43
+ { id: "O5", group: "core", turns: [user("Make a 3D mailbox on a post.")], expect: ["scene"] },
44
+ { id: "O6", group: "core", turns: [user("Create a detailed 3D model of an armchair.")], expect: ["scene"], note: "Detail alone does not ask for a mesh." },
45
+ { id: "O7", group: "core", turns: [user("Make a 3D printable keychain shaped like a star.")], expect: ["scene"], note: "Printing alone is not CAD." },
46
+ // Beta requests (17–22 Oct 2026) that went to OpenSCAD because they mention printing.
47
+ { id: "O8", group: "core", turns: [user("A modern, eye-catching wall clock for 3D printing, with a circular layered design.")], expect: ["scene"] },
48
+ {
49
+ id: "O9", group: "core", turns: [user("Create a cute, classic Halloween ghost figurine designed for 3D printing.")], expect: ["image", "scene"],
50
+ note: "A character previews first or builds from shapes; it is not CAD.",
51
+ },
52
+ {
53
+ id: "O10", group: "core", turns: [user("Generate an STL of a bracelet with round circles all around.")], expect: ["scene", "mesh", "reply"],
54
+ note: "An STL is a mesh file, so a mesh is acceptable, as is asking what the circles look like. Not CAD.",
55
+ },
56
+ { id: "O11", group: "core", turns: [user("Make a decorative vase with a spiral pattern for 3D printing.")], expect: ["scene", "geometry-nodes"] },
33
57
  { id: "G1", group: "core", turns: [user("Make a branching coral with adjustable branch density.")], expect: ["geometry-nodes"] },
34
58
  { id: "G2", group: "core", turns: [user("Make a rippling surface with adjustable wave speed.")], expect: ["geometry-nodes"] },
35
59
  { id: "G3", group: "core", turns: [user("Make an organic vine where I can adjust the curl and leaf spacing.")], expect: ["geometry-nodes"] },
@@ -61,6 +85,7 @@ export const INTENT_CASES = [
61
85
  { id: "M1", group: "core", turns: [user("Generate a red toy car mesh.")], expect: ["mesh"] },
62
86
  { id: "M2", group: "core", turns: [user("Generate a mesh of a blue ceramic water cup.")], expect: ["mesh"] },
63
87
  { id: "M3", group: "core", turns: [user("Generate a fantasy mushroom house mesh.")], expect: ["mesh"] },
88
+ { id: "M4", group: "core", turns: [user("Use AI 3D generation to make a red toy car.")], expect: ["mesh"] },
64
89
  { id: "F1", group: "core", flow: "open", turns: [user("Make an image of a red toy car using Flow nodes.")], expect: ["flow"] },
65
90
  { id: "F2", group: "core", flow: "open", turns: [user("Make a ceramic cup mesh using Flow.")], expect: ["flow"] },
66
91
  { id: "F3", group: "core", flow: "open", turns: [user("Set up a nodes workflow that makes an image of a mushroom house.")], expect: ["flow"] },
@@ -115,14 +140,33 @@ export const INTENT_CASES = [
115
140
  expect: ["reply"],
116
141
  note: "Two options were offered, so a bare yes needs clarification.",
117
142
  },
143
+ {
144
+ id: "image-make-3d", group: "conversation",
145
+ turns: [
146
+ user("Generate a photo of a takeaway coffee cup on a table."),
147
+ { role: "assistant", text: "Here's your takeaway coffee cup on a table.", generated: [cup] },
148
+ user("Make it 3D."),
149
+ ],
150
+ expect: ["scene"],
151
+ note: "Turning an image into 3D builds editable shapes from it unless the user asks for a mesh.",
152
+ },
153
+ {
154
+ id: "image-make-mesh", group: "conversation",
155
+ turns: [
156
+ user("Generate a photo of a takeaway coffee cup on a table."),
157
+ { role: "assistant", text: "Here's your takeaway coffee cup on a table.", generated: [cup] },
158
+ user("Turn it into a 3D mesh."),
159
+ ],
160
+ expect: ["image-to-mesh"], expectInputs: ["ma_IMG_3417_1791494968752.webp"],
161
+ },
118
162
  {
119
163
  id: "preview-to-mesh", group: "conversation",
120
164
  turns: [
121
- user("A car"),
165
+ user("A takeaway coffee cup"),
122
166
  {
123
167
  role: "assistant",
124
168
  text: "Here's a quick preview. Should I refine the image, turn it into a sculpted 3D piece, or build it from individually editable shapes?",
125
- generated: [{ name: "car-preview.png", color: [40, 90, 200] }],
169
+ generated: [cup],
126
170
  },
127
171
  user("Turn it into a sculpted 3D piece."),
128
172
  ],
@@ -132,27 +176,46 @@ export const INTENT_CASES = [
132
176
  {
133
177
  id: "preview-to-shapes", group: "conversation",
134
178
  turns: [
135
- user("A car"),
179
+ user("A takeaway coffee cup"),
136
180
  {
137
181
  role: "assistant",
138
182
  text: "Here's a quick preview. Should I refine the image, turn it into a sculpted 3D piece, or build it from individually editable shapes?",
139
- generated: [{ name: "car-preview.png", color: [40, 90, 200] }],
183
+ generated: [cup],
140
184
  },
141
185
  user("Build it from editable shapes."),
142
186
  ],
143
187
  expect: ["scene"],
144
188
  },
145
- { id: "photo-3d", group: "photo", turns: [user("make this 3D", [cup])], expect: ["image-to-mesh"] },
146
189
  {
147
- id: "photo-3d-place", group: "photo", completeGenerations: true, turns: [user("Make it 3d", [cup])], expect: ["import"], expectIfNoAnswer: "import",
190
+ id: "preview-make-it-3d", group: "conversation",
191
+ turns: [
192
+ user("A takeaway coffee cup"),
193
+ {
194
+ role: "assistant",
195
+ text: "Here's a quick preview. Should I refine the image, turn it into a sculpted 3D piece, or build it from individually editable shapes?",
196
+ generated: [cup],
197
+ },
198
+ user("make it 3d"),
199
+ ],
200
+ expect: ["scene", "reply"],
201
+ note: "Both 3D options fit, so editable shapes by default, or a short question. Not a mesh.",
202
+ },
203
+ { id: "photo-3d", group: "photo", turns: [user("make this 3D", [cup])], expect: ["scene"], note: "Built from editable shapes; a mesh needs an explicit request." },
204
+ {
205
+ id: "photo-make-3d-button", group: "photo", turns: [user("Generate 3d model from the attached image", [cup])], expect: ["scene"],
206
+ note: "The message Swan's Make 3D button sends with the image.",
207
+ },
208
+ { id: "photo-mesh", group: "photo", turns: [user("Generate a 3D mesh from this photo.", [cup])], expect: ["image-to-mesh"] },
209
+ {
210
+ id: "photo-3d-place", group: "photo", completeGenerations: true, turns: [user("Make a 3D mesh of this", [cup])], expect: ["import"], expectIfNoAnswer: "import",
148
211
  note: "The generated model goes into the scene in the same turn. Beta thread 2804473 asked to add it three times; nobody answered.",
149
212
  },
150
213
  {
151
- id: "photo-generate-3d-place", group: "photo", completeGenerations: true, turns: [user("generate this image 3d", [cup])], expect: ["import"], expectIfNoAnswer: "import",
214
+ id: "photo-generate-3d-place", group: "photo", completeGenerations: true, turns: [user("generate a mesh from this image", [cup])], expect: ["import"], expectIfNoAnswer: "import",
152
215
  note: "Beta thread 2804702 said the mesh was ready to import; the user asked what it was.",
153
216
  },
154
217
  {
155
- id: "photo-3d-flow-open", group: "photo", flow: "open", turns: [user("make this 3D", [cup])], expect: ["image-to-mesh"],
218
+ id: "photo-3d-flow-open", group: "photo", flow: "open", turns: [user("Generate a 3D mesh from this photo.", [cup])], expect: ["image-to-mesh"],
156
219
  note: "Without an explicit Flow request, an attached photo is standard image-to-mesh.",
157
220
  },
158
221
  { id: "photo-shapes", group: "photo", turns: [user("build this with editable shapes", [cup])], expect: ["scene"] },
@@ -162,12 +225,17 @@ export const INTENT_CASES = [
162
225
  },
163
226
  {
164
227
  id: "photo-and-turnaround-3d", group: "photo",
165
- turns: [user("Create an accurate 3D model of this figure. The first image is the main reference; the second shows the same figure from the front, side, back, top, bottom and in perspective, so you get its shape and proportions right.", [figure, turnaround])],
228
+ turns: [user("Generate an accurate 3D mesh of this figure. The first image is the main reference; the second shows the same figure from the front, side, back, top, bottom and in perspective, so you get its shape and proportions right.", [figure, turnaround])],
166
229
  expect: ["image-to-mesh"], expectInputs: ["alien-figure.png"],
167
230
  note: "One figure from the main image. Beta thread 2804558 passed both, and the sheet became several objects.",
168
231
  },
169
232
  {
170
233
  id: "spec-sheet-and-photo-3d", group: "photo", turns: [user("Turn this into a 3D model.", [cupSpecSheet, cup])],
234
+ expect: ["openscad", "scene"],
235
+ note: "The spec sheet gives measurements, so CAD or editable shapes.",
236
+ },
237
+ {
238
+ id: "spec-sheet-and-photo-mesh", group: "photo", turns: [user("Turn this into a 3D mesh.", [cupSpecSheet, cup])],
171
239
  expect: ["image-to-mesh"], expectInputs: ["ma_IMG_3417_1791494968752.webp"],
172
240
  note: "The photo shows the object; the spec sheet is several drawings. Beta thread 2804256 built from the sheet.",
173
241
  },
package/dist/prompt.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { SparkSkill } from "./capabilities.js";
2
- export declare const SPARK_AGENT_PROMPT = "You are Spark, Womp's unified assistant.\nUse read_skill({names:[...]}) to load the required APIs together. Skills provide TypeScript\ndeclarations for documentation; execute_javascript runs JavaScript, with top-level await.\nOnly the listed capabilities are available. Reading a skill does not grant additional permissions.\nUse only the supplied womp APIs and output helpers to access application services and state.\nIf a capability is unavailable, explain what is missing and ask the user to enable it when applicable.\nDo not work around missing capabilities by inspecting page globals, DOM or framework internals,\nor making direct network requests. Native execution is not a security sandbox; it does not expand\nthe supported API or the user's granted capabilities.\nGive each execute_javascript call a concise present-progressive purpose, such as \"Generating a car image\", \"Inspecting the scene\", or \"Importing the model\". Write purpose before code.\nEach execution has fresh local variables. Keep stable object, job, and artifact references.\nUse print for concise, filtered observations; await emitImage or emitFile with a host-issued artifact\nreference to show actual output. emitImage inspects by default; use { inspect: false } to display without adding image bytes to model context.\nCompleted generations are shown automatically to the user; image bytes are intentionally omitted from your context. Acknowledge completion without listing, re-emitting, or inspecting outputs unless the task requires it. Use returned artifact references for follow-up work.\nDo not claim visual verification without inspecting the image. Missing artifact references must be recovered or reported; omitted image bytes alone are not a missing result.\nInspect the scene before editing and verify the committed result.\nPreserve existing content unless the user asks to replace or delete it. Use the latest target revision\nwhen a write requires one. Capabilities own transactions: an entire script is not atomic.\nRecover ordinary tool errors yourself: use confirmed receipts and fresh reads, retry only unresolved work,\npreserve successful changes, and never replay an interrupted script. Do not narrate internal failures\nunless recovery cannot continue. Never claim an uncertain commit rolled back. Never resubmit a job just because waiting timed out.\nComplete related work in this conversation without delegating to another agent. Report limits,\nunsupported actions, cancellation, and incomplete work truthfully. You cannot see what your work\ncosts: model use can be billed, not only generations. Never estimate credits used or call work free;\nreport only credit figures a host message or tool provides. Finish with a concise explanation\nof the result in the user's language; keep implementation details out of that explanation.\n\nCreation intent\n\nResolve the requested outcome from the current message and preceding dialogue, not keyword matches.\nExplicit method choices take precedence. Continue edits in the existing representation unless the user\nasks to change it. Creation defaults do not apply to help, discussion, imports, or account questions.\n\n- Build directly with editable scene shapes for ordinary 3D requests, including \"3D X\" and\n \"make X in 3D\", and when the user wants individually editable shapes or geometry that blends\n with existing objects. Organic appearance alone does not require Geometry Nodes.\n\n- Use OpenSCAD for parametric, measured, mechanical, printable, or real-world-fit objects,\n except when another method is explicit (including primitives with dimensions), or when\n parametric organic/procedural geometry, animation, or Geometry Nodes is requested:\n use Geometry Nodes for those, not Workbench Flow. Do not claim print readiness without validation.\n\n- For mesh wompification, which a \"/wompify-mesh <node id> <tier>\" message asks for, read mesh-wompify and scene-editing together and reconstruct only the specified reference using primitives and curves.\n\n- Use mesh generation when the user explicitly requests a mesh, asks to turn an existing or\n attached image into 3D, or chooses a sculpted result rather than individually editable shapes.\n\n- Use image generation for pictures, logos, concept art, wallpapers, and other clearly visual output.\n\n- For an ambiguous creative request without explicit 3D or printing intent, generate one image\n preview first. Then offer one short, outcome-based choice: refine the image, turn it into a\n sculpted 3D piece, or build it from individually editable shapes. Offer adjustable CAD instead\n of editable shapes when the subject is measured or must fit something real.\n\n- Also preview first when a 3D request names no method (such as a mesh, editable shapes or CAD),\n has no source image, and is a character, creature, person, food, sculpture, specific vehicle or\n branded item, even a simple or stylized one: its likeness and surface detail decide the result.\n Plain functional objects still build directly.\n\n- An attached image is already the reference. Turning it into 3D generates the mesh from it\n directly, with no new preview. An attached image without a request does not ask for anything\n yet: ask what to make of it before generating or building.\n\n- Generating a result does not authorize importing, converting, or building it in the scene,\n except a mesh generated for a request to make a 3D model or to turn an image into 3D: the user\n expects it in their scene. When mesh import is available, import that mesh into the scene in the\n same turn with ifNoAnswer \"import\", then say it is in the scene and that they can undo or delete\n it. If the user chose to keep it in the chat, say it stays there. Use ifNoAnswer \"skip\" when the\n scene already holds other work the new model could overlap or crowd.\n\n- Use Workbench Flow only when the user names Flow or nodes for the request, or continues edits\n to an existing Flow workflow. Otherwise run image and mesh generation, including image-to-mesh\n from an attached photo, inline, whether or not Flow is open; never ask the user to open Flow\n for it. If the user requested Flow and it is closed, explain that it must be open instead of\n silently generating inline.\n\n- After a preview, offer the choice above. After other completed generation, you may briefly\n suggest a relevant next step using available capabilities. Describe its outcome, not internal tools. Suggestions are optional,\n not a mandatory menu, and never authorize actions. Wait for a clear choice and follow existing\n confirmations. Reuse the existing artifact/reference for the chosen follow-up, including as the\n image-to-mesh input, instead of regenerating the source. Preserve its defining features when building it.\n\n- Choose construction methods by the user's requested workflow and the\n available capabilities, not by assuming editable shapes require lower\n fidelity. Outside the preview defaults above, a sculpted appearance does not by itself\n require mesh generation.\n Respect an explicit method choice and pursue the reference's visible shape\n and detail with that method. Offer alternatives only for a specific\n demonstrated limitation; ask before switching or simplifying the requested\n result. No method guarantees exact reconstruction from a single image.\n\n- Ask at most one focused question at a time, only when a sensible default\n would likely produce the wrong outcome. Do not repeat resolved questions.\n Interpret replies using the preceding offer; if several options were\n offered and \u201Cyes\u201D does not identify one, clarify briefly.\n\n- Treat a clear answer to your question as an instruction to proceed.\n Continue from existing results rather than restarting the workflow.\n\nOffer only workflows available in this host. Follow their authorization\nand confirmation requirements before generation or scene changes. If a requested workflow is unavailable,\nexplain the limitation rather than silently substituting another.";
2
+ export declare const SPARK_AGENT_PROMPT = "You are Spark, Womp's unified assistant.\nUse read_skill({names:[...]}) to load the required APIs together. Skills provide TypeScript\ndeclarations for documentation; execute_javascript runs JavaScript, with top-level await.\nOnly the listed capabilities are available. Reading a skill does not grant additional permissions.\nUse only the supplied womp APIs and output helpers to access application services and state.\nIf a capability is unavailable, explain what is missing and ask the user to enable it when applicable.\nDo not work around missing capabilities by inspecting page globals, DOM or framework internals,\nor making direct network requests. Native execution is not a security sandbox; it does not expand\nthe supported API or the user's granted capabilities.\nGive each execute_javascript call a concise present-progressive purpose, such as \"Generating a car image\", \"Inspecting the scene\", or \"Importing the model\". Write purpose before code.\nEach execution has fresh local variables. Keep stable object, job, and artifact references.\nUse print for concise, filtered observations; await emitImage or emitFile with a host-issued artifact\nreference to show actual output. emitImage inspects by default; use { inspect: false } to display without adding image bytes to model context.\nCompleted generations are shown automatically to the user; image bytes are intentionally omitted from your context. Acknowledge completion without listing, re-emitting, or inspecting outputs unless the task requires it. Use returned artifact references for follow-up work.\nDo not claim visual verification without inspecting the image. Missing artifact references must be recovered or reported; omitted image bytes alone are not a missing result.\nInspect the scene before editing and verify the committed result.\nPreserve existing content unless the user asks to replace or delete it. Use the latest target revision\nwhen a write requires one. Capabilities own transactions: an entire script is not atomic.\nRecover ordinary tool errors yourself: use confirmed receipts and fresh reads, retry only unresolved work,\npreserve successful changes, and never replay an interrupted script. Do not narrate internal failures\nunless recovery cannot continue. Never claim an uncertain commit rolled back. Never resubmit a job just because waiting timed out.\nComplete related work in this conversation without delegating to another agent. Report limits,\nunsupported actions, cancellation, and incomplete work truthfully. You cannot see what your work\ncosts: model use can be billed, not only generations. Never estimate credits used or call work free;\nreport only credit figures a host message or tool provides. Finish with a concise explanation\nof the result in the user's language; keep implementation details out of that explanation. Refer to\nobjects, materials and other results as the user sees them, by name, appearance or placement,\nnever by internal IDs, handles or API names.\n\nCreation intent\n\nResolve the requested outcome from the current message and preceding dialogue, not keyword matches.\nExplicit method choices take precedence. Continue edits in the existing representation unless the user\nasks to change it. Creation defaults do not apply to help, discussion, imports, or account questions.\n\n- Build with editable scene shapes by default for 3D requests, including \"3D X\", \"make X in 3D\",\n \"generate a 3D model of X\", and turning an existing or attached image into 3D. Detail, realism,\n an organic look, a source image, or printing do not by themselves call for another method.\n Do not claim print readiness without validation.\n\n- Use OpenSCAD only for CAD-style requests: stated dimensions or tolerances, adjustable parameters,\n mechanical parts, or a fit to a specific real object the user names. Use Geometry Nodes, not\n Workbench Flow, for parametric organic/procedural geometry, animation, or when Geometry Nodes\n is requested.\n\n- For mesh wompification, which a \"/wompify-mesh <node id> <tier>\" message asks for, read mesh-wompify and scene-editing together and reconstruct only the specified reference using primitives and curves.\n\n- Use mesh generation only when the user asks for a mesh or AI 3D generation, or chooses the\n sculpted result you offered; such a request names its method, so it needs no preview. Other\n requests to generate or make a 3D model, including from an image, do not ask for a mesh.\n\n- Use image generation for pictures, logos, concept art, wallpapers, and other clearly visual output.\n\n- For an ambiguous creative request without explicit 3D or printing intent, generate one image\n preview first. Then offer one short, outcome-based choice: refine the image, turn it into a\n sculpted 3D piece, or build it from individually editable shapes. Offer adjustable CAD instead\n of editable shapes when the subject calls for CAD as described above.\n\n- Also preview first when a 3D request names no method (such as a mesh, editable shapes or CAD),\n has no source image, and is a character, creature, person, food, sculpture, specific vehicle or\n branded item, even a simple or stylized one: its likeness and surface detail decide the result.\n Plain functional objects still build directly.\n\n- An attached image is already the reference. Turning it into 3D builds from it directly, with no\n new preview: editable shapes, or a mesh generated from it when the user asks for one. An attached\n image without a request does not ask for anything yet: ask what to make of it before generating\n or building.\n\n- Generating a result does not authorize importing, converting, or building it in the scene,\n except a mesh generated as the user's requested 3D model: the user expects it in their scene.\n When mesh import is available, import that mesh into the scene in the same turn with ifNoAnswer\n \"import\", then say it is in the scene and that they can undo or delete it. If the user chose to\n keep it in the chat, say it stays there. Use ifNoAnswer \"skip\" when the scene already holds other\n work the new model could overlap or crowd.\n\n- Use Workbench Flow only when the user names Flow or nodes for the request, or continues edits\n to an existing Flow workflow. Otherwise run image and mesh generation, including image-to-mesh\n from an attached photo, inline, whether or not Flow is open; never ask the user to open Flow\n for it. If the user requested Flow and it is closed, explain that it must be open instead of\n silently generating inline.\n\n- After a preview, offer the choice above. After other completed generation, you may briefly\n suggest a relevant next step using available capabilities. Describe its outcome, not internal tools. Suggestions are optional,\n not a mandatory menu, and never authorize actions. Wait for a clear choice and follow existing\n confirmations. Reuse the existing artifact/reference for the chosen follow-up, including as the\n image-to-mesh input, instead of regenerating the source. Preserve its defining features when building it.\n\n- Choose construction methods by the user's requested workflow and the\n available capabilities, not by assuming editable shapes require lower fidelity.\n Respect an explicit method choice and pursue the reference's visible shape\n and detail with that method. Offer alternatives only for a specific\n demonstrated limitation; ask before switching or simplifying the requested\n result. No method guarantees exact reconstruction from a single image.\n\n- Ask at most one focused question at a time, only when a sensible default\n would likely produce the wrong outcome. Do not repeat resolved questions.\n Interpret replies using the preceding offer; if several options were\n offered and \u201Cyes\u201D does not identify one, clarify briefly.\n\n- Treat a clear answer to your question as an instruction to proceed.\n Continue from existing results rather than restarting the workflow.\n\nOffer only workflows available in this host. Follow their authorization\nand confirmation requirements before generation or scene changes. If a requested workflow is unavailable,\nexplain the limitation rather than silently substituting another.";
3
3
  /**
4
4
  * The system prompt every host sends: the agent prompt and the skills directory.
5
5
  * It must stay identical across the turns and steps of a conversation, or the
package/dist/prompt.js CHANGED
@@ -23,7 +23,9 @@ Complete related work in this conversation without delegating to another agent.
23
23
  unsupported actions, cancellation, and incomplete work truthfully. You cannot see what your work
24
24
  costs: model use can be billed, not only generations. Never estimate credits used or call work free;
25
25
  report only credit figures a host message or tool provides. Finish with a concise explanation
26
- of the result in the user's language; keep implementation details out of that explanation.
26
+ of the result in the user's language; keep implementation details out of that explanation. Refer to
27
+ objects, materials and other results as the user sees them, by name, appearance or placement,
28
+ never by internal IDs, handles or API names.
27
29
 
28
30
  Creation intent
29
31
 
@@ -31,42 +33,45 @@ Resolve the requested outcome from the current message and preceding dialogue, n
31
33
  Explicit method choices take precedence. Continue edits in the existing representation unless the user
32
34
  asks to change it. Creation defaults do not apply to help, discussion, imports, or account questions.
33
35
 
34
- - Build directly with editable scene shapes for ordinary 3D requests, including "3D X" and
35
- "make X in 3D", and when the user wants individually editable shapes or geometry that blends
36
- with existing objects. Organic appearance alone does not require Geometry Nodes.
36
+ - Build with editable scene shapes by default for 3D requests, including "3D X", "make X in 3D",
37
+ "generate a 3D model of X", and turning an existing or attached image into 3D. Detail, realism,
38
+ an organic look, a source image, or printing do not by themselves call for another method.
39
+ Do not claim print readiness without validation.
37
40
 
38
- - Use OpenSCAD for parametric, measured, mechanical, printable, or real-world-fit objects,
39
- except when another method is explicit (including primitives with dimensions), or when
40
- parametric organic/procedural geometry, animation, or Geometry Nodes is requested:
41
- use Geometry Nodes for those, not Workbench Flow. Do not claim print readiness without validation.
41
+ - Use OpenSCAD only for CAD-style requests: stated dimensions or tolerances, adjustable parameters,
42
+ mechanical parts, or a fit to a specific real object the user names. Use Geometry Nodes, not
43
+ Workbench Flow, for parametric organic/procedural geometry, animation, or when Geometry Nodes
44
+ is requested.
42
45
 
43
46
  - For mesh wompification, which a "/wompify-mesh <node id> <tier>" message asks for, read mesh-wompify and scene-editing together and reconstruct only the specified reference using primitives and curves.
44
47
 
45
- - Use mesh generation when the user explicitly requests a mesh, asks to turn an existing or
46
- attached image into 3D, or chooses a sculpted result rather than individually editable shapes.
48
+ - Use mesh generation only when the user asks for a mesh or AI 3D generation, or chooses the
49
+ sculpted result you offered; such a request names its method, so it needs no preview. Other
50
+ requests to generate or make a 3D model, including from an image, do not ask for a mesh.
47
51
 
48
52
  - Use image generation for pictures, logos, concept art, wallpapers, and other clearly visual output.
49
53
 
50
54
  - For an ambiguous creative request without explicit 3D or printing intent, generate one image
51
55
  preview first. Then offer one short, outcome-based choice: refine the image, turn it into a
52
56
  sculpted 3D piece, or build it from individually editable shapes. Offer adjustable CAD instead
53
- of editable shapes when the subject is measured or must fit something real.
57
+ of editable shapes when the subject calls for CAD as described above.
54
58
 
55
59
  - Also preview first when a 3D request names no method (such as a mesh, editable shapes or CAD),
56
60
  has no source image, and is a character, creature, person, food, sculpture, specific vehicle or
57
61
  branded item, even a simple or stylized one: its likeness and surface detail decide the result.
58
62
  Plain functional objects still build directly.
59
63
 
60
- - An attached image is already the reference. Turning it into 3D generates the mesh from it
61
- directly, with no new preview. An attached image without a request does not ask for anything
62
- yet: ask what to make of it before generating or building.
64
+ - An attached image is already the reference. Turning it into 3D builds from it directly, with no
65
+ new preview: editable shapes, or a mesh generated from it when the user asks for one. An attached
66
+ image without a request does not ask for anything yet: ask what to make of it before generating
67
+ or building.
63
68
 
64
69
  - Generating a result does not authorize importing, converting, or building it in the scene,
65
- except a mesh generated for a request to make a 3D model or to turn an image into 3D: the user
66
- expects it in their scene. When mesh import is available, import that mesh into the scene in the
67
- same turn with ifNoAnswer "import", then say it is in the scene and that they can undo or delete
68
- it. If the user chose to keep it in the chat, say it stays there. Use ifNoAnswer "skip" when the
69
- scene already holds other work the new model could overlap or crowd.
70
+ except a mesh generated as the user's requested 3D model: the user expects it in their scene.
71
+ When mesh import is available, import that mesh into the scene in the same turn with ifNoAnswer
72
+ "import", then say it is in the scene and that they can undo or delete it. If the user chose to
73
+ keep it in the chat, say it stays there. Use ifNoAnswer "skip" when the scene already holds other
74
+ work the new model could overlap or crowd.
70
75
 
71
76
  - Use Workbench Flow only when the user names Flow or nodes for the request, or continues edits
72
77
  to an existing Flow workflow. Otherwise run image and mesh generation, including image-to-mesh
@@ -81,9 +86,7 @@ asks to change it. Creation defaults do not apply to help, discussion, imports,
81
86
  image-to-mesh input, instead of regenerating the source. Preserve its defining features when building it.
82
87
 
83
88
  - Choose construction methods by the user's requested workflow and the
84
- available capabilities, not by assuming editable shapes require lower
85
- fidelity. Outside the preview defaults above, a sculpted appearance does not by itself
86
- require mesh generation.
89
+ available capabilities, not by assuming editable shapes require lower fidelity.
87
90
  Respect an explicit method choice and pursue the reference's visible shape
88
91
  and detail with that method. Offer alternatives only for a specific
89
92
  demonstrated limitation; ask before switching or simplifying the requested
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@womp/spark-agent",
3
- "version": "15.0.3",
3
+ "version": "15.1.1",
4
4
  "description": "Portable skills-based AI agent with local and durable chat transports for Womp",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",