@womp/spark-agent 13.1.1 → 14.0.0
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 +19 -0
- package/dist/capabilities/flow.js +10 -16
- package/dist/capabilities/geometry.js +6 -12
- package/dist/capabilities/scene.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,25 @@ 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
|
+
## 14.0.0 — 2026-10-21
|
|
8
|
+
|
|
9
|
+
The Geometry Nodes and Flow skills each come with their language reference, so the agent loads one
|
|
10
|
+
skill to write a graph instead of two.
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- `geometry-nodes` (skill version 7) includes the FlowIR syntax and node catalog that
|
|
15
|
+
`createGeometryCapability` receives as `reference`. `flow-graphs` (skill version 6) includes the
|
|
16
|
+
s-expression syntax and the node catalog that `createFlowCapability` receives as `catalog`. The
|
|
17
|
+
factory signatures are unchanged. `scene-editing` is version 48 (it points to `geometry-nodes`
|
|
18
|
+
for the Boolean Blend conversion).
|
|
19
|
+
|
|
20
|
+
### Removed
|
|
21
|
+
|
|
22
|
+
- The `geometry-nodes-reference` and `flow-graphs-reference` skills. Hosts that list or filter skill
|
|
23
|
+
names drop them; nothing else changes for hosts. In an older thread, the agent reading either
|
|
24
|
+
name gets `ok: false` with the available skills, and reads `geometry-nodes` or `flow-graphs`.
|
|
25
|
+
|
|
7
26
|
## 13.1.1 — 2026-10-20
|
|
8
27
|
|
|
9
28
|
### Fixed
|
|
@@ -11,26 +11,17 @@ export function createFlowCapability(host, catalog) {
|
|
|
11
11
|
skills: [
|
|
12
12
|
{
|
|
13
13
|
name: "flow-graphs",
|
|
14
|
-
version: "
|
|
14
|
+
version: "6",
|
|
15
15
|
description: "Read and edit the open Workbench Flow pipeline: image/mesh generation, processing, and viewers.",
|
|
16
16
|
instructions: `Use womp.flow for the open Workbench pipeline.
|
|
17
|
-
Read the current graph
|
|
17
|
+
Read the current graph before writing. Supply the complete edited s-expression document and the latest revision. Preserve unrelated nodes and stable node IDs. Omitting a node deletes it; empty source clears the graph.
|
|
18
18
|
Existing node configuration, edge identity, layout, runtime metadata, and generated outputs are retained for unchanged node identities/types. Scalar inputs represented in source are replaced by your document. The host retains preservedInputs for those same nodes. Non-private preserved inputs can be explicitly replaced in the document; never recreate asset objects or cached values as JSON strings. Private settings remain editor-owned: preserve existing private connections unchanged between retained nodes and do not introduce new private literals or connections.
|
|
19
19
|
If read returns source null, explain the diagnostics. Do not replace an unreadable graph as though it were empty.
|
|
20
20
|
Build the requested graph from the catalog's nodes even when an input cannot be expressed in source, such as a conversation upload or an editor-owned image: leave that input unconnected and tell the user which node input to set in the editor. An unconnected Image or 3D Mesh node can instead take one of this conversation's files when the flow runs (womp.flowRuns).
|
|
21
21
|
The Flow canvas must be open. If unavailable, tell the user to open Flow or Split in a project, or Nodes in the sidebar, and wait for their next message. Never claim a graph was created after a failed call.
|
|
22
|
-
Writes validate types, preserve the runner lifecycle, and await commit. They edit the graph; they do not report that generation jobs completed. Repair compiler errors in this same conversation with a fresh read. On committed/unknown receipts after failure, inspect the graph before retrying; do not replay blindly
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"const graph = await womp.flow.read(); print(graph);",
|
|
26
|
-
"const graph = await womp.flow.read(); print(await womp.flow.write({ source: editedSExpression, expectedRevision: graph.revision }));",
|
|
27
|
-
],
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
name: "flow-graphs-reference",
|
|
31
|
-
version: "2",
|
|
32
|
-
description: "Workbench Flow s-expression syntax and the actual supported node/handle catalog.",
|
|
33
|
-
instructions: `A document is a sequence of (typeId :id "nodeId" :input value ...) forms.
|
|
22
|
+
Writes validate types, preserve the runner lifecycle, and await commit. They edit the graph; they do not report that generation jobs completed. Repair compiler errors in this same conversation with a fresh read. On committed/unknown receipts after failure, inspect the graph before retrying; do not replay blindly.
|
|
23
|
+
|
|
24
|
+
A document is a sequence of (typeId :id "nodeId" :input value ...) forms.
|
|
34
25
|
Each node needs a unique string :id. Input keywords are snake_case versions of the catalog's handle IDs.
|
|
35
26
|
Values are strings, numbers, booleans, null, or (ref "sourceId" "ExactOutputHandle"). Output handles in refs are case-sensitive.
|
|
36
27
|
Use only this catalog; do not put node_type declarations in the document. Private inputs are preserved by the host and are not editable through this language.
|
|
@@ -39,8 +30,11 @@ Example:
|
|
|
39
30
|
(ext.ai.generateImage :id "image" :prompt (ref "prompt" "Result"))
|
|
40
31
|
|
|
41
32
|
${catalog}`,
|
|
42
|
-
declarations:
|
|
43
|
-
examples: [
|
|
33
|
+
declarations: WOMP_FLOW_DECLARATIONS,
|
|
34
|
+
examples: [
|
|
35
|
+
"const graph = await womp.flow.read(); print(graph);",
|
|
36
|
+
"const graph = await womp.flow.read(); print(await womp.flow.write({ source: editedSExpression, expectedRevision: graph.revision }));",
|
|
37
|
+
],
|
|
44
38
|
},
|
|
45
39
|
],
|
|
46
40
|
createApi: (context) => ({
|
|
@@ -12,22 +12,24 @@ export function createGeometryCapability(host, reference) {
|
|
|
12
12
|
skills: [
|
|
13
13
|
{
|
|
14
14
|
name: "geometry-nodes",
|
|
15
|
-
version: "
|
|
15
|
+
version: "7",
|
|
16
16
|
description: "Create and edit visual Geometry Nodes graphs with adjustable parameters and animation.",
|
|
17
17
|
instructions: `Use womp.geometry for requested Geometry Nodes, parametric organic/procedural geometry, or animation.
|
|
18
18
|
Keep follow-up edits to an existing Geometry Nodes object in its graph, preserving its adjustable parameters and instances.
|
|
19
19
|
An Area is a scene object that holds one Geometry Nodes graph; a Group is a container. read(0) reads the scene root as a creation container.
|
|
20
20
|
read returns the target's FlowIR source, its instances with their parameter overrides (in FlowIR units), its transform and its bounds. transform is position, rotation and size relative to the parent, in project units as the scene API reports them; an Area's size is a dimensionless scale, and the scene root's transform is null. bounds is the world-space extent in project units, null unless the target is a top-level Area whose graph renders geometry. Read the target again after another scene edit changes it.
|
|
21
21
|
If source is null and diagnostics is non-empty, the existing graph cannot be edited without loss. Explain the limitation; never treat it as empty or create a replacement to bypass the refusal.
|
|
22
|
-
|
|
22
|
+
source is the complete FlowIR text for the target; JavaScript calls execute JavaScript, and source is a FlowIR string, not JavaScript or JSON.
|
|
23
23
|
write updates an existing shared graph, attaches a new graph to an Area without one, or creates a new Area beneath the root/Group target. Use the returned objectId for follow-up edits.
|
|
24
24
|
Preserve unrelated statements, parameter names, FlowIR node IDs and parameter overrides from the read. Shared graph edits affect all listed instances; report the affected objects. Valid overrides migrate by parameter name and type. Removed or type-changed parameters return to graph defaults and are reported.
|
|
25
25
|
Use min/max/step for naturally bounded parameters and omit ranges for free-form positions/rotations. Meaningful parameter names become editor labels. Do not invent label fields.
|
|
26
26
|
SetMaterial assigns one scene material to every primitive it receives. Its Material input is a scene material ID, not a color; 0 selects the scene default material.
|
|
27
27
|
Obtain that ID from the scene-editing skill inside womp.scene.access, in the same JavaScript call as the write and before it: materialList with materialGetName and materialGetColor to reuse an existing material, materialCreate with materialSetColor and materialSetName for a new one, or listSuperMaterials with materialImport for a library material. Prefer reusing a material that already matches the request over creating another, and do not recolor a shared material unless every object using it should change.
|
|
28
|
-
FlowIR positions and sizes are millimetres; Boolean Blend uses the conversion in
|
|
28
|
+
FlowIR positions and sizes are millimetres; Boolean Blend uses the conversion in the FlowIR reference below. Coordinates are right-handed, +X right, +Y up, +Z forward. Rotations are degrees, intrinsic X-Z-Y.
|
|
29
29
|
On compiler errors, repair the source in this same conversation and retry with a fresh read. A rejected write made no change. Committed/unknown effects remain in execution receipts even if a later call fails; inspect before retrying.
|
|
30
|
-
When status is "applied", the write result also holds the committed target read back from the scene: source, transform and bounds. Print it; it verifies the graph, so do not read the target again to check it. When the target's latest source is already printed in this conversation, make its next edit in a single call: read, replace and write. Use the scene screenshot API with emitImage to inspect the applied result
|
|
30
|
+
When status is "applied", the write result also holds the committed target read back from the scene: source, transform and bounds. Print it; it verifies the graph, so do not read the target again to check it. When the target's latest source is already printed in this conversation, make its next edit in a single call: read, replace and write. Use the scene screenshot API with emitImage to inspect the applied result.
|
|
31
|
+
|
|
32
|
+
${reference}`,
|
|
31
33
|
declarations: WOMP_GEOMETRY_DECLARATIONS,
|
|
32
34
|
examples: [
|
|
33
35
|
"const target = await womp.geometry.read(objectId); print(target);",
|
|
@@ -35,14 +37,6 @@ When status is "applied", the write result also holds the committed target read
|
|
|
35
37
|
"const materialId = await womp.scene.access(scene => { const id = scene.materialCreate(); scene.materialSetName(id, 'Red'); scene.materialSetColor(id, { r: 255, g: 0, b: 0 }); return id; }); const target = await womp.geometry.read(0); const source = ['param Float size = 20.0 min=1 max=100 step=1', 'node box Primitive Type=Cube Position=Vec3(0.0,0.0,0.0) Rotation=Vec3(0.0,0.0,0.0) Size=size Roundness=0.0', `node painted SetMaterial Material=${materialId} Geometry=box.Geometry`, 'out Geometry=painted.Geometry'].join('\\n'); print(await womp.geometry.write({ objectId: target.objectId, source }));",
|
|
36
38
|
],
|
|
37
39
|
},
|
|
38
|
-
{
|
|
39
|
-
name: "geometry-nodes-reference",
|
|
40
|
-
version: "3",
|
|
41
|
-
description: "FlowIR syntax, types, enums, and supported Geometry Nodes catalog; read before writing a graph.",
|
|
42
|
-
instructions: reference,
|
|
43
|
-
declarations: "",
|
|
44
|
-
examples: [],
|
|
45
|
-
},
|
|
46
40
|
],
|
|
47
41
|
createApi: (context) => ({
|
|
48
42
|
read: (id) => host.read(objectId.parse(id), context),
|
|
@@ -39,7 +39,7 @@ export function createSceneCapability(host) {
|
|
|
39
39
|
skills: [
|
|
40
40
|
{
|
|
41
41
|
name: "scene-editing",
|
|
42
|
-
version: "
|
|
42
|
+
version: "48",
|
|
43
43
|
description: "Inspect the open scene and edit its objects, materials, curves, and environment.",
|
|
44
44
|
instructions: `Use womp.scene.access(callback) for both inspection and edits. Inspect targets inside each callback using scene.nodes({ name, type, parentId, ids, offset, limit }) and detailed getters; filters are optional, name is a case-insensitive substring, and results default to 100 (maximum 1000). Page with offset as needed. Inspection reflects changes made in the callback. scene.unitMultiplier gives project units. Do not reuse an earlier inspection as current state.
|
|
45
45
|
Use womp.scene.health() to refresh whole-scene health or womp.scene.health(objectIds) to check specific objects (mapped to their owning Areas).
|
|
@@ -70,7 +70,7 @@ Removing all points is supported. One point renders a single profile primitive,
|
|
|
70
70
|
Curves render sampled profiles, not a continuous sweep. For smooth curves, start with nodeSetDensity(curveId, 250) and nodeSetBlend(curveId, 3).
|
|
71
71
|
Density increases sampling and primitive cost; the 3 mm blend softens joins, not sample positions. Adjust blend to preserve thin features and the intended silhouette; these settings do not guarantee continuity.
|
|
72
72
|
nodeSetUnionResolution(unionId, resolution) sets a dimensionless detail level, clamped to 0.01–0.65: higher is finer and costs more voxels. Set the owning outermost Area, not a nested Union. Material emission ranges from 0 to 1.
|
|
73
|
-
nodeSetBlend and mirror goop take radii in millimetres before parent scaling, regardless of project units, and clamp to 0–500 mm. This does not apply to the FlowIR Boolean Blend port, which takes native units; geometry-nodes
|
|
73
|
+
nodeSetBlend and mirror goop take radii in millimetres before parent scaling, regardless of project units, and clamp to 0–500 mm. This does not apply to the FlowIR Boolean Blend port, which takes native units; the geometry-nodes skill gives its conversion.
|
|
74
74
|
V1/V2 curve transforms are read-only;
|
|
75
75
|
edit their points instead. Handles and closure are available only on V3 Bezier curves.
|
|
76
76
|
Typed rotations are right-handed intrinsic XYZ Euler degrees, relative to the parent (R = Rx Ry Rz), including curve points and mirrors.
|