@womp/spark-agent 17.4.0 → 17.5.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 CHANGED
@@ -4,6 +4,54 @@ 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
+ ## 17.5.0 — 2026-11-17
8
+
9
+ ### Added
10
+
11
+ - GPT-6.2 Sol model (`gpt-6.2-sol`), with its pricing.
12
+ - Capsule primitive in the scene API (`PrimitiveType.Capsule`, 13), for primitives and as a curve
13
+ profile, with x as diameter and y as full height (scene skill version 66). The scene skill also says
14
+ when to use Ellipsoid (added in 17.4.1): oval forms such as a leg, a head or a fish body, which a fully
15
+ rounded Cube left with flat faces that read as a box. Both are native Kakapo primitives that Swan
16
+ already shows and edits.
17
+
18
+ ### Changed
19
+
20
+ - Smooth lofted curves, such as legs, tails and bodies, use an Ellipsoid profile with thin slices
21
+ (thickness about 0.15 of the width) and a curve blend of 1 to 2 mm, with each profile made smaller by
22
+ the blend (scene skill version 67). The curve's blend is what fuses its samples, and Kakapo spaces
23
+ Ellipsoid samples by their thinnest side, so these lofts render without the ridges and lumps that thick
24
+ slices left. Measured on rendered test curves, the blend widens a loft by about its radius and lengthens
25
+ each end by about half of it, so a blend of a fifth of the width had swollen parts by about 20%. The
26
+ skill also says density 250 is the maximum: Spark had been setting 1000.
27
+ - Goop guidance from Womp's modelling plugin (scene skill version 67): a join's blend starts at about a
28
+ third of the thinner part's thickness and is judged in a close-up, reaches only what was built before
29
+ it in the same Area, and a curve goops into a body through its own Union inside the body's Area.
30
+ - Wompify sets each Area's resolution to 0.65 when creating it, builds in gated layers (main forms until
31
+ their front, side and back silhouettes match, then secondary forms, then details), and names the three
32
+ biggest differences at each comparison (mesh-wompify skill version 4). On the angler bench with
33
+ GPT-6.2 Sol, six tries each, silhouette IoU went from 0.850 to 0.889 and cost from $1.88 to $1.59
34
+ (one run each).
35
+ - Spark sets the goal a skill describes: the goal tool also sets one when a skill read for the request
36
+ says to, and the system prompt tells Wompify to set mesh-wompify's goal before building. Wompify runs
37
+ had been building with no goal, so they never got the goal's tries and independent check.
38
+ - A rolled cuff or sloped hem is built from the loft's own end anchors: three or four close anchors,
39
+ the lowest thicker, all tilted about 20° front to back, checked in a side view (scene skill version 67).
40
+ Spark had added separate cuff curves, rings and cuts; in four test runs it now builds the cuff into the
41
+ leg curve, as a hand-made leg does.
42
+ - Wompify ends each try with at most four matched reference/result pairs, each reference directly
43
+ followed by its result (mesh-wompify skill version 3). The goal's independent check sees only the
44
+ eight newest images; a try that ended with ten pairs showed it result close-ups only, and the next
45
+ try was spent re-sending comparisons.
46
+
47
+ ## 17.4.1 — 2026-11-17
48
+
49
+ ### Added
50
+
51
+ - The scene API exposes `PrimitiveType.Ellipsoid` (12) for primitives and curve profiles,
52
+ preserving independent XYZ dimensions. Hosts using a pinned Spark dependency must update it
53
+ to consume the new type and generated declarations.
54
+
7
55
  ## 17.4.0 — 2026-11-11
8
56
 
9
57
  ### Changed
@@ -8,7 +8,7 @@ export declare function parseAgentRunArgs(args: string[]): {
8
8
  output: string | undefined;
9
9
  images: string[];
10
10
  settings: {
11
- modelId: "gpt-6-astra" | "gpt-6.1-sol" | "gpt-6.1-terra" | "gpt-6-sol" | "gpt-6-luna" | "gemini-3.8-flash" | "claude-opus-5-5" | "claude-fable-5";
11
+ modelId: "gpt-6-astra" | "gpt-6.2-sol" | "gpt-6.1-sol" | "gpt-6.1-terra" | "gpt-6-sol" | "gpt-6-luna" | "gemini-3.8-flash" | "claude-opus-5-5" | "claude-fable-5";
12
12
  reasoningEffort: ReasoningEffort;
13
13
  };
14
14
  } | null;
@@ -105,7 +105,7 @@ export function createSparkTools(options) {
105
105
  return {
106
106
  ...(handleGoal === undefined ? {} : {
107
107
  goal: tool({
108
- description: "Manage the conversation's goal: work that repeats, without the user, until an independent check verifies its conditions. Call it only for what the user's own message asks. set: start a goal for the request, once, before building or generating anything, when the request sets a constraint the finished result passes or fails by measurement: a size, a count, a limit, a fit to something real, a clearance, an angle, a weight, a price, or a physical requirement such as being one piece, resting on the ground or parts not intersecting. Do not set one for a question, a small direct edit, or a request that only describes what to make. The goal starts at once, with this turn as its first try, and ends a goal already there, so use it for a new request and not to adjust the current one. change: the user asked to add, drop or alter a condition, or for other limits. continue: the user asked to keep going with a goal that stopped. remove: the user wants the request done without a goal.",
108
+ description: "Manage the conversation's goal: work that repeats, without the user, until an independent check verifies its conditions. Call it only for what the user's own message asks. set: start a goal for the request, once, before building or generating anything, when the request sets a constraint the finished result passes or fails by measurement: a size, a count, a limit, a fit to something real, a clearance, an angle, a weight, a price, or a physical requirement such as being one piece, resting on the ground or parts not intersecting. Also set one when a skill you read for the request says to, with the conditions and limits it gives. Do not set one for a question, a small direct edit, or a request that only describes what to make. The goal starts at once, with this turn as its first try, and ends a goal already there, so use it for a new request and not to adjust the current one. change: the user asked to add, drop or alter a condition, or for other limits. continue: the user asked to keep going with a goal that stopped. remove: the user wants the request done without a goal.",
109
109
  inputSchema: sparkGoalRequestSchema.extend({
110
110
  title: sparkGoalRequestSchema.shape.title.describe("For set: two to four words in sentence case naming what is being made."),
111
111
  conditions: sparkGoalRequestSchema.shape.conditions.describe("For set, and for change when the conditions change: the full list. Only constraints the user stated or directly implied, never your own, that tool results can check. The description of what to make is not a list of constraints: leave out its parts and features, and any instruction about how to work, what to check or what to render. State each as a fact about the finished result in a few words of the user's language, with its number and unit: \"Height is 120 mm\", not \"Make it 120 mm tall\". Split compound constraints. Leave out a look, style, feel or quality that takes judgement: it is not a condition. Keep a condition's words as they are when it does not change."),
@@ -39,7 +39,7 @@ export function createSceneCapability(host) {
39
39
  skills: [
40
40
  {
41
41
  name: "scene-editing",
42
- version: "64",
42
+ version: "67",
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).
@@ -71,8 +71,8 @@ New curves are V3 Bezier curves unless the run disables Curve V3; then they are
71
71
  On a Bezier curve, points are anchors: the span from anchor A to anchor B is the cubic through A, A + handleOut(A), B + handleIn(B), B. Handles are offsets from their anchor in the curve frame and project units; pass them to curvePointAdd or set them later. Zero handles make a straight span.
72
72
  Use the fewest anchors that reproduce the shape: ends, corners, inflections, and where profile size, rotation or material must change. Bend the spans between them with handles instead of adding closely spaced anchors, and remove anchors that handles make redundant. A smooth join has opposite, collinear handles. Close a loop with curveSetClosed rather than repeating its first anchor.
73
73
  Handle lengths decide how few anchors suffice, so for a path given by a formula or a traced outline, sample it with a few hundred points (at most 2000) and call curveFit(points, {tolerance?, closed?}): it returns the fewest anchors {pos, handleIn, handleOut, index} within tolerance, keeping sharp turns as corners; index is the sample each anchor sits on. Pass each anchor to curvePointAdd in order. It is pure math in the points' own units and frame. Omit tolerance: the default, 0.2% of the points' extent, is already finer than renders and prints resolve, and anything under 0.1% is refused because it only adds anchors.
74
- Curves render sampled profiles, not a continuous sweep. For smooth curves, start with nodeSetDensity(curveId, 250) and nodeSetBlend(curveId, 3).
75
- 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.
74
+ Curves render sampled profiles, not a continuous sweep: the curve's blend fuses its samples into one surface and joins the curve to what came before it. nodeSetDensity(curveId, 250) is the finest sampling; higher values change nothing.
75
+ For a smooth loft, such as a limb, a pant leg, a tail or a body, give the curve an Ellipsoid profile and make each anchor a thin slice along the path: its y, the slice thickness, about 0.15 of its width, and its rotation turning y along the path. Ellipsoid samples are spaced by their thinnest side, so thin slices sample densely. Then set the curve's blend to 1 to 2 mm: less leaves visible ridges. The blend adds to the loft's size, widening it by about the blend radius and lengthening each end by about half of it, so make the profiles that much smaller than the measured widths; a large blend swells the form and melts the details on it. Cylinder and Sphere profiles are spaced by their diameter and stay ridged. A thin rail, wire or trim keeps a blend of a few millimetres so it stays thin. Shape a rolled cuff or sloped hem with the loft's own end anchors, not a separate curve, ring or cut: stack three or four anchors close together at the end, the lowest ones thicker, tilt them all about 20° from front to back so the end drops at the back, then continue the loft level. The tilt's sign depends on which way the loft faces, so check the slope in a side view.
76
76
  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.
77
77
  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.
78
78
  V1/V2 curve transforms are read-only;
@@ -96,10 +96,10 @@ Groups are organizational only; move and rotate their child Areas individually,
96
96
  An Area is an outermost Union with no Union ancestor: it has its own modeller, bounds, and volumetric resolution. Nested Unions share that Area's resolution, even through Groups.
97
97
  Choose Area boundaries for evaluation needs, not individual editability: parts within an Area remain independently editable. Sibling Areas under a Group can overlap without blending together, while each blends internally and has independent resolution. Keep required shared smooth joins or Boolean evaluation within one Area; overlapping independent Areas are not a watertight Boolean union.
98
98
  Prioritize requested visual fidelity over minimizing voxel use. An Area too coarse for its detail renders jagged or stair-stepped edges, lumpy flat faces, rounded-off corners, blurred or merged small features, and thin parts that break up or vanish. Wide views hide this: judge detail from a close-up where the smallest important features fill much of the frame. When correctly authored geometry shows these symptoms, increase its owning Area's resolution, up to 0.65 as needed, and compare the same close-up; distinguish sampling loss from material/lighting contrast or authored gaps. A higher voxel count is acceptable when detail improves within engine limits. If resolution is insufficient or hits resource limits/downscaling, consider smaller independent Areas where shared blending or Booleans are unnecessary.
99
- Sphere uses size.x as uniform diameter (y/z do not stretch it), including new or resized spherical curve points. Cylinder/Cone/Pyramid use x as base diameter/width and y as height;
100
- Torus lies in local XZ (axis +Y), with x as outer diameter and y as tube thickness. For these four primitives, nodeSetSize accepts {x, y}; z follows x even when supplied. Cube uses all three dimensions. Node and curve-point round are dimensionless fractions clamped to [0, 1], not radii in project units; rounding does not set size. Cube rounding reaches half its shortest dimension at 1, so a shallow Cube retains broad flat faces rather than becoming an ellipsoid.
99
+ Sphere uses size.x as uniform diameter (y/z do not stretch it), including new or resized spherical curve points. Ellipsoid uses x, y and z as its three diameters: use it for oval and organic forms, such as a head, a limb, a fish body or a shoe toe, and as the profile of a curve whose sections are oval; a rounded Cube keeps flat faces and reads as a box. Capsule is a cylinder with round ends, x its diameter and y its full height. Cylinder/Cone/Pyramid use x as base diameter/width and y as height;
100
+ Torus lies in local XZ (axis +Y), with x as outer diameter and y as tube thickness. For Capsule and these four primitives, nodeSetSize accepts {x, y}; z follows x even when supplied. Cube and Ellipsoid use all three dimensions; Ellipsoid supports independent XYZ sizes for both primitives and curve-point profiles. Node and curve-point round are dimensionless fractions clamped to [0, 1], not radii in project units; rounding does not set size. Cube rounding reaches half its shortest dimension at 1, so a shallow Cube retains broad flat faces rather than becoming an ellipsoid.
101
101
  Womp shapes are signed distance fields. Build the way Womp's library assets are made: many small parts, each with a clear role and its own material, fused, carved and shaped with field operations rather than stacked as plain primitives.
102
- - Fuse parts that grow out of each other, such as a head into a neck, a limb into a torso or a handle into a pot, with nodeSetBlend on the joining part.
102
+ - Fuse parts that grow out of each other, such as a head into a neck, a limb into a torso or a handle into a pot, with nodeSetBlend on the joining part. A blend reaches only what was built before that part in the same Area. Start it at about a third of the thinner part's thickness, then judge the join in a close-up: too much dissolves small parts into lumps and swells rims, too little leaves a hard crease. To blend a curve into a body without changing its own smoothing, put it in its own Union inside the body's Area and set that Union's blend.
103
103
  - Keep a crisp seam, blend 0, where two colours or a panel gap meet. Make windows, lights and lenses real parts, not paint. Glaze an opening with real glass, a material with transmittance about 0.5, as a thin panel or SVG outline set at the true angle and curvature of the surface it fills, flush in a thin frame, with a simple interior behind it, such as seats and a dashboard, so it reads as glass rather than a black plate. Use Stain sparingly, only for markings that lie flat on a surface, such as a stripe, a logo or an animal's coat pattern: a Stain shape (nodeSetOp with OperationType.Stain) placed after the geometry recolours the surface inside it and leaves the shape unchanged.
104
104
  - Shape each small detail as a miniature of the real part, never a placeholder block or disc: its real outline, housing and inner face, such as a mirror's shaped housing on its arm or a vent carved with fins inside. Place it where the real one is and keep it clear of neighbouring parts, such as a wheel or a door line.
105
105
  - Carve recessed detail with Subtract shapes placed after the part they cut: windows, vents, grilles, panel lines, wheel wells, eye sockets, mouths, the opening of a cup.
@@ -6,7 +6,7 @@ const WOMPIFY_TIERS = {
6
6
  };
7
7
  export const meshWompifySkill = {
8
8
  name: "mesh-wompify",
9
- version: "2",
9
+ version: "4",
10
10
  description: "Reconstruct a specific scene mesh with editable primitives and curves, comparing its shape and colors from matching views.",
11
11
  instructions: `The request names the reference by scene node ID and gives a detail tier: simple, high or ultra. The reference is already in the scene; do not import anything.
12
12
  The reference is that node with its descendants; preserve its ancestors. If the node ID or the tier is missing or invalid, or the node does not exist, stop and report it; never treat the whole scene as the reference.
@@ -19,10 +19,12 @@ Detail tiers:
19
19
  ${Object.entries(WOMPIFY_TIERS).map(([tier, { instructions, credits, tries }]) => `${tier}: ${instructions} Goal limits: ${credits} credits, ${tries} tries.`).join("\n")}
20
20
  Hide unrelated scene objects, including any starter cube, without deleting or otherwise editing them. Leave them hidden during reconstruction and at completion. Preserve the original reference. Use the supplied result group, or create a separate group named "Wompified model". When asked to keep refining, reuse this reference and the existing result group and improve its shapes at the same detail level.
21
21
  Match the actual shape, geometry, silhouettes and colors, not a conceptual interpretation of the character.
22
- Separate body parts or regions into named Areas. Minimize primitives and curve control points without oversimplifying: a large arm or leg can often use one curve with about four points; complex shapes may need more.
22
+ Set each Area's resolution to 0.65 when you create it. Separate body parts or regions into named Areas. Minimize primitives and curve control points without oversimplifying: a large arm or leg can often use one curve with about four points; complex shapes may need more.
23
23
  Use Add, Subtraction, Intersection and goop/blend where needed. Embed colors in the physical primitives; use stain only as a last resort.
24
24
  Compare orthographic Kakapo screenshots throughout reconstruction. Use identical cameras for reference and result: inspect front, side, back and oblique views, then close-ups.
25
- Show only the reference and capture/emit it; repeat with only the result. Restore reference/result visibility in finally if a comparison fails; keep unrelated objects hidden. Identify discrepancies and keep refining the same objects toward an accurate match.
25
+ Show only the reference and capture/emit it; repeat with only the result. Restore reference/result visibility in finally if a comparison fails; keep unrelated objects hidden. Build in layers and gate each one: first only the main forms (head, torso, limbs, large held objects), until their front, side and back silhouettes and proportions match the reference; then secondary forms such as ears, sleeves, folds and fins; then small details and colour marks. When a later comparison shows a main form is off, fix it before any detail.
26
+ At each comparison, name the three biggest visible differences between reference and result, largest first, and fix them before anything smaller.
27
+ The goal's independent check sees only the eight newest images, so end each try with at most four matched pairs, each reference image directly followed by its result, the views that show the remaining differences.
26
28
  Finish with matched comparisons and verified saved objects, reference hidden and result visible. If unfinished, keep the editable partial result and report remaining mismatches.`,
27
29
  declarations: "",
28
30
  examples: [],
@@ -1 +1 @@
1
- export declare const WOMP_SCENE_DECLARATIONS = "declare const womp: { scene: {\nhealth: ((objectIds?: number[]) => Promise<{\nstatus: \"within_limits\" | \"overflow\" | \"unverified\";\nfreshness: \"unverified\" | \"snapshot\" | \"post_ack_event\";\nrevisionVerified: false;\naffectedAreaIds: string[];\nemptyAreaIds?: string[];\nthermometer?: {\nobjects: {\n[key: string]: {\nnum_prims: number;\nflag_prim_overflow: number;\nflag_depth_overflow: number;\nflag_vox_overflow: number;\nvoxels: number;\n};\n};\nmax_num_prims: number;\nmax_total_depth: number;\nmax_per_object: number;\ntotal: number;\nmax_total: number;\nassets_budget_used: number;\nassets_budget_total: number;\nmesh_instances_used?: number;\nmesh_instances_total?: number;\ndecal_instances_used?: number;\ndecal_instances_total?: number;\nfield_instances_used?: number;\nfield_instances_total?: number;\n};\nreason?: string;\n}>);\naccess: (<T>(callback: ((draft: {\nlistSuperMaterials: (() => string[]);\n_getParentId: ((childId: number) => number);\n_getScaleProductUpTo: ((nodeId: number, includeNodeSelfUnion?: boolean) => number);\nNodeType: {\nPrimitive: 0;\nUnion: 1;\nLight: 2;\nCurve: 3;\nGroup: 4;\nText: 5;\nField: 6;\nSVG: 7;\nMesh: 8;\nDecal: 9;\nOpenSCAD: 10;\nSocket: 11;\n} & { [key: number]: string; };\nPrimitiveType: { Sphere: 0; Cylinder: 1; Cube: 2; Cone: 3; Torus: 4; Pyramid: 9; } & { [key: number]: string; };\nOperationType: { Subtract: 0; Union: 1; Stain: 2; Intersect: 3; } & { [key: number]: string; };\nLightType: { Rect: 0; Sphere: 1; Distant: 2; } & { [key: number]: string; };\nnodeCreate: ((type: number, parentId?: number) => number);\nnodeDelete: ((id: number) => void);\ncloneSubtree: ((id: number, options?: { parentId?: number; name?: string; index?: number; }) => Promise<number>);\nnodeList: (() => number[]);\nnodeChildren: ((parentId: number) => number[]);\nnodeSetParent: ((id: number, parentId: number, index?: number) => void);\nnodeGetType: ((id: number) => number);\nnodeGetName: ((id: number) => string);\nnodeSetName: ((id: number, name: string) => void);\nnodeGetParentId: ((id: number) => number);\nnodeGetPos: ((id: number) => { x: number; y: number; z: number; });\nnodeGetLock: ((id: number) => boolean);\nnodeSetLock: ((id: number, locked: boolean) => void);\nnodeSetPos: ((id: number, position: { x: number; y: number; z: number; }) => void);\nnodeGetRot: ((id: number) => { x: number; y: number; z: number; });\nnodeSetRot: ((id: number, rotation: { x: number; y: number; z: number; }) => void);\nnodeGetSize: ((id: number) => { x: number; y: number; } | { x: number; y: number; z: number; });\nnodeSetSize: ((id: number, sizeValue: { x: number; y: number; } | { x: number; y: number; z: number; }) => void);\nnodeGetSvgPaths: ((id: number) => {\nsegments: {\npoint: { x: number; y: number; };\nhandleIn: { x: number; y: number; };\nhandleOut: { x: number; y: number; };\n}[];\nclosed: boolean;\n}[]);\nnodeSetSvgPaths: ((id: number, paths: {\nsegments: {\npoint: { x: number; y: number; };\nhandleIn: { x: number; y: number; };\nhandleOut: { x: number; y: number; };\n}[];\nclosed: boolean;\n}[]) => void);\nnodeGetSvgDepth: ((id: number) => number);\nnodeSetSvgDepth: ((id: number, depth: number) => void);\nnodeGetHide: ((id: number) => boolean);\nnodeSetHide: ((id: number, hidden: boolean) => void);\nnodeGetOp: ((id: number) => number);\nnodeSetOp: ((id: number, operation: number) => void);\nnodeGetBlend: ((id: number) => number);\nnodeSetBlend: ((id: number, blend: number) => void);\nnodeGetRound: ((id: number) => number);\nnodeSetRound: ((id: number, round: number) => void);\nnodeGetColor: ((id: number) => { r: number; g: number; b: number; });\nnodeSetColor: ((id: number, rgb255: { x: number; y: number; z: number; } | { r: number; g: number; b: number; }) => void);\nnodeGetMaterialId: ((id: number) => null | number);\nnodeSetMaterialId: ((id: number, materialId: number) => void);\nnodeGetResolution: ((id: number) => number);\nnodeSetUnionResolution: ((unionId: number, resolution: number) => void);\nnodeGetLightType: ((id: number) => number);\nnodeSetLightType: ((id: number, lightType: number) => void);\nnodeGetPower: ((id: number) => number);\nnodeGetCollimation: ((id: number) => number);\nnodeSetCollimation: ((id: number, collimation: number) => void);\nnodeGetLightTextureFile: ((id: number) => string);\nnodeSetLightTextureFile: ((id: number, textureFile: string) => void);\nnodeSetPower: ((id: number, power: number) => void);\nnodeGetText: ((id: number) => string);\nnodeSetFacing: ((id: number, direction: { x: number; y: number; z: number; }) => void);\nnodeSetTextSize: ((id: number, size: { fontSize: number; depth: number; }) => void);\nnodeGetTextSize: ((id: number) => { fontSize: number; depth: number; });\nnodeSetText: ((id: number, text: string) => void);\nnodeGetFont: ((id: number) => string);\nnodeSetFont: ((id: number, font: string) => void);\nnodeGetWeight: ((id: number) => number);\nnodeSetWeight: ((id: number, weight: number) => void);\nnodeGetItalic: ((id: number) => boolean);\nnodeSetItalic: ((id: number, italic: boolean) => void);\nnodeGetAlign: ((id: number) => number);\nnodeSetAlign: ((id: number, align: number) => void);\nnodeGetWrap: ((id: number) => number);\nnodeSetWrap: ((id: number, wrap: number) => void);\nnodeGetWidth: ((id: number) => number);\nnodeSetWidth: ((id: number, width: number) => void);\nnodeGetSpacing: ((id: number) => number);\nnodeSetSpacing: ((id: number, spacing: number) => void);\nnodeGetLineHeight: ((id: number) => number);\nnodeSetLineHeight: ((id: number, lineHeight: number) => void);\nnodeGetDensity: ((id: number) => number);\nnodeSetDensity: ((id: number, density: number) => void);\nnodeGetRoundness: ((id: number) => number);\nnodeSetRoundness: ((id: number, roundness: number) => void);\nnodeGetSmoothing: ((id: number) => number);\nnodeSetSmoothing: ((id: number, smoothing: number) => void);\nnodeGetPrimType: ((id: number) => number);\nnodeSetPrimType: ((id: number, primitive: number) => void);\nnodeGetMirror: ((id: number, slot: number) => { axis: \"custom\" | \"x\" | \"y\" | \"z\" | \"disabled\"; planePosition: number; goop: number; });\nnodeSetMirror: ((id: number, slot: number, axis: \"x\" | \"y\" | \"z\" | \"disabled\", planePosition?: number, goop?: number) => void);\nnodeGetThickness: ((id: number) => number);\nnodeSetThickness: ((id: number, thickness: number) => void);\ncurveGetClosed: ((curveId: number) => boolean);\ncurveSetClosed: ((curveId: number, closed: boolean) => void);\ncurvePointGetHandleIn: ((curveId: number, pointIndex: number) => { x: number; y: number; z: number; });\ncurvePointGetHandleOut: ((curveId: number, pointIndex: number) => { x: number; y: number; z: number; });\ncurvePointSetHandleIn: ((curveId: number, pointIndex: number, value: { x: number; y: number; z: number; }) => void);\ncurvePointSetHandleOut: ((curveId: number, pointIndex: number, value: { x: number; y: number; z: number; }) => void);\ncurvePointCount: ((curveId: number) => number);\ncurvePointAdd: ((curveId: number, point: {\nname?: string;\npos?: { x: number; y: number; z: number; };\nrot?: { x: number; y: number; z: number; };\nsize?: { x: number; y: number; z: number; };\nhandleIn?: { x: number; y: number; z: number; };\nhandleOut?: { x: number; y: number; z: number; };\nfixed?: boolean;\nround?: number;\nmaterialId?: number;\n}, pointIndex?: number) => number);\ncurvePointRemove: ((curveId: number, pointIndex: number) => void);\ncurvePointGetName: ((curveId: number, pointIndex: number) => string);\ncurvePointSetName: ((curveId: number, pointIndex: number, name: string) => void);\ncurvePointGetPos: ((curveId: number, pointIndex: number) => { x: number; y: number; z: number; });\ncurvePointSetPos: ((curveId: number, pointIndex: number, position: { x: number; y: number; z: number; }) => void);\ncurvePointGetRot: ((curveId: number, pointIndex: number) => { x: number; y: number; z: number; });\ncurvePointSetRot: ((curveId: number, pointIndex: number, rotation: { x: number; y: number; z: number; }) => void);\ncurvePointGetSize: ((curveId: number, pointIndex: number) => { x: number; y: number; z: number; });\ncurvePointSetSize: ((curveId: number, pointIndex: number, sizeValue: { x: number; y: number; z: number; }) => void);\ncurvePointGetFixed: ((curveId: number, pointIndex: number) => boolean);\ncurvePointSetFixed: ((curveId: number, pointIndex: number, fixed: boolean) => void);\ncurvePointGetRound: ((curveId: number, pointIndex: number) => number);\ncurvePointSetRound: ((curveId: number, pointIndex: number, round: number) => void);\ncurvePointGetMaterialId: ((curveId: number, pointIndex: number) => null | number);\ncurvePointSetMaterialId: ((curveId: number, pointIndex: number, materialId: number) => void);\nmaterialImport: ((name: string) => Promise<number>);\nmaterialCreate: (() => number);\nmaterialDelete: ((id: number) => void);\nmaterialList: (() => number[]);\nmaterialGetName: ((id: number) => string);\nmaterialSetName: ((id: number, name: string) => void);\nmaterialGetTier: ((id: number) => number);\nmaterialSetTier: ((id: number, tier: number) => void);\nmaterialGetColor: ((id: number) => { r: number; g: number; b: number; });\nmaterialSetColor: ((id: number, rgb255: { r: number; g: number; b: number; }) => void);\nmaterialGetSecondaryColor: ((id: number) => { r: number; g: number; b: number; });\nmaterialSetSecondaryColor: ((id: number, rgb255: { r: number; g: number; b: number; }) => void);\nmaterialGetSubsurfaceColor: ((id: number) => { r: number; g: number; b: number; });\nmaterialSetSubsurfaceColor: ((id: number, rgb255: { r: number; g: number; b: number; }) => void);\nmaterialGetRoughness: ((id: number) => number);\nmaterialSetRoughness: ((id: number, value: number) => void);\nmaterialGetMetalness: ((id: number) => number);\nmaterialSetMetalness: ((id: number, value: number) => void);\nmaterialGetTransmittance: ((id: number) => number);\nmaterialSetTransmittance: ((id: number, value: number) => void);\nmaterialGetTranslucency: ((id: number) => number);\nmaterialSetTranslucency: ((id: number, value: number) => void);\nmaterialGetIor: ((id: number) => number);\nmaterialSetIor: ((id: number, value: number) => void);\nmaterialGetSheen: ((id: number) => number);\nmaterialSetSheen: ((id: number, value: number) => void);\nmaterialGetSheenRoughness: ((id: number) => number);\nmaterialSetSheenRoughness: ((id: number, value: number) => void);\nmaterialGetSpecularTint: ((id: number) => number);\nmaterialSetSpecularTint: ((id: number, value: number) => void);\nmaterialGetAbsorption: ((id: number) => number);\nmaterialSetAbsorption: ((id: number, value: number) => void);\nmaterialGetEmission: ((id: number) => number);\nmaterialSetEmission: ((id: number, value: number) => void);\nmaterialGetIridescence: ((id: number) => number);\nmaterialSetIridescence: ((id: number, value: number) => void);\nmaterialGetTranslucencyWeight: ((id: number) => number);\nmaterialSetTranslucencyWeight: ((id: number, value: number) => void);\nmaterialGetDispersion: ((id: number) => number);\nmaterialSetDispersion: ((id: number, value: number) => void);\nmaterialGetSurfaceOpacity: ((id: number) => number);\nmaterialSetSurfaceOpacity: ((id: number, value: number) => void);\nlistFontFamilies: (() => { name: string; variants: { weight: string; italic: boolean; }[]; }[]);\nprint: ((...values: unknown[]) => void);\nnodeGetAABB: ((id: number) => Promise<{ min: { x: number; y: number; z: number; }; max: { x: number; y: number; z: number; }; }>);\nnodeResize: ((id: number, dimensions: { x?: number; y?: number; z?: number; }) => Promise<void>);\naabbCenter: ((box: { min: { x: number; y: number; z: number; }; max: { x: number; y: number; z: number; }; }) => { x: number; y: number; z: number; });\naabbRadius: ((box: { min: { x: number; y: number; z: number; }; max: { x: number; y: number; z: number; }; }) => number);\nlookAt: ((origin: { x: number; y: number; z: number; }, target: { x: number; y: number; z: number; }) => { x: number; y: number; z: number; });\nalignAxis: ((direction: { x: number; y: number; z: number; }, axis: \"x\" | \"y\" | \"z\") => { x: number; y: number; z: number; });\ncurveFit: ((points: { x: number; y: number; z: number; }[], options?: { tolerance?: number; closed?: boolean; }) => {\npos: { x: number; y: number; z: number; };\nhandleIn: { x: number; y: number; z: number; };\nhandleOut: { x: number; y: number; z: number; };\nindex: number;\n}[]);\ncameraReadDepthOfField: (() => {\nenabled: boolean;\nmode: \"physical\" | \"post-process\";\nfocusDistance: number;\naperturePercent: number;\nprojection: \"perspective\" | \"orthographic\";\n});\ncameraSetDepthOfField: ((input: {\nenabled?: boolean;\nmode?: \"physical\" | \"post-process\";\nfocusDistance?: number;\naperturePercent?: number;\n}) => void);\nscenePropertiesRead: (() => {\nhdr_name: undefined | string;\nhdr_multiplier: undefined | number;\nhdr_orientation: undefined | { x: number; y: number; };\nbackdrop_color1: undefined | { x: number; y: number; z: number; };\nbackdrop_color2: undefined | { x: number; y: number; z: number; };\nbackdrop_grad_offset: undefined | { x: number; y: number; };\n});\nlistHDRs: (() => string[]);\nsetHdrName: ((name: string) => void);\nsetHdrMultiplier: ((multiplier: number) => void);\nsetHdrOrientation: ((orientation: { x: number; y: number; }) => void);\nsetBackgroundColor: ((rgb255: { r: number; g: number; b: number; }) => void);\nunitMultiplier: number;\nnodes: ((options?: {\nids?: number[];\ntype?: number;\nparentId?: number;\nname?: string;\noffset?: number;\nlimit?: number;\n}) => { id: number; name: string; type: number; parentId: number; }[]);\n}) => T | Promise<T>)) => Promise<T>);\nscreenshot: ((options?: {\ncamera?: {\nposition: { x: number; y: number; z: number; };\ntarget: { x: number; y: number; z: number; };\nprojection?: \"perspective\" | \"orthographic\";\nhorizontalFovDegrees?: number;\northographicWidth?: number;\n};\n}) => Promise<{ id: string; mediaType: string; name?: string; }>);\n} };\ndeclare function print(...values: unknown[]): void;\ndeclare function emitImage(ref: { id: string; mediaType: string; name?: string }, options?: { inspect?: boolean }): Promise<void>;\ndeclare function emitFile(ref: { id: string; mediaType: string; name?: string }): Promise<void>;\n";
1
+ export declare const WOMP_SCENE_DECLARATIONS = "declare const womp: { scene: {\nhealth: ((objectIds?: number[]) => Promise<{\nstatus: \"within_limits\" | \"overflow\" | \"unverified\";\nfreshness: \"unverified\" | \"snapshot\" | \"post_ack_event\";\nrevisionVerified: false;\naffectedAreaIds: string[];\nemptyAreaIds?: string[];\nthermometer?: {\nobjects: {\n[key: string]: {\nnum_prims: number;\nflag_prim_overflow: number;\nflag_depth_overflow: number;\nflag_vox_overflow: number;\nvoxels: number;\n};\n};\nmax_num_prims: number;\nmax_total_depth: number;\nmax_per_object: number;\ntotal: number;\nmax_total: number;\nassets_budget_used: number;\nassets_budget_total: number;\nmesh_instances_used?: number;\nmesh_instances_total?: number;\ndecal_instances_used?: number;\ndecal_instances_total?: number;\nfield_instances_used?: number;\nfield_instances_total?: number;\n};\nreason?: string;\n}>);\naccess: (<T>(callback: ((draft: {\nlistSuperMaterials: (() => string[]);\n_getParentId: ((childId: number) => number);\n_getScaleProductUpTo: ((nodeId: number, includeNodeSelfUnion?: boolean) => number);\nNodeType: {\nPrimitive: 0;\nUnion: 1;\nLight: 2;\nCurve: 3;\nGroup: 4;\nText: 5;\nField: 6;\nSVG: 7;\nMesh: 8;\nDecal: 9;\nOpenSCAD: 10;\nSocket: 11;\n} & { [key: number]: string; };\nPrimitiveType: { Sphere: 0; Cylinder: 1; Cube: 2; Cone: 3; Torus: 4; Pyramid: 9; Ellipsoid: 12; Capsule: 13; } & { [key: number]: string; };\nOperationType: { Subtract: 0; Union: 1; Stain: 2; Intersect: 3; } & { [key: number]: string; };\nLightType: { Rect: 0; Sphere: 1; Distant: 2; } & { [key: number]: string; };\nnodeCreate: ((type: number, parentId?: number) => number);\nnodeDelete: ((id: number) => void);\ncloneSubtree: ((id: number, options?: { parentId?: number; name?: string; index?: number; }) => Promise<number>);\nnodeList: (() => number[]);\nnodeChildren: ((parentId: number) => number[]);\nnodeSetParent: ((id: number, parentId: number, index?: number) => void);\nnodeGetType: ((id: number) => number);\nnodeGetName: ((id: number) => string);\nnodeSetName: ((id: number, name: string) => void);\nnodeGetParentId: ((id: number) => number);\nnodeGetPos: ((id: number) => { x: number; y: number; z: number; });\nnodeGetLock: ((id: number) => boolean);\nnodeSetLock: ((id: number, locked: boolean) => void);\nnodeSetPos: ((id: number, position: { x: number; y: number; z: number; }) => void);\nnodeGetRot: ((id: number) => { x: number; y: number; z: number; });\nnodeSetRot: ((id: number, rotation: { x: number; y: number; z: number; }) => void);\nnodeGetSize: ((id: number) => { x: number; y: number; } | { x: number; y: number; z: number; });\nnodeSetSize: ((id: number, sizeValue: { x: number; y: number; } | { x: number; y: number; z: number; }) => void);\nnodeGetSvgPaths: ((id: number) => {\nsegments: {\npoint: { x: number; y: number; };\nhandleIn: { x: number; y: number; };\nhandleOut: { x: number; y: number; };\n}[];\nclosed: boolean;\n}[]);\nnodeSetSvgPaths: ((id: number, paths: {\nsegments: {\npoint: { x: number; y: number; };\nhandleIn: { x: number; y: number; };\nhandleOut: { x: number; y: number; };\n}[];\nclosed: boolean;\n}[]) => void);\nnodeGetSvgDepth: ((id: number) => number);\nnodeSetSvgDepth: ((id: number, depth: number) => void);\nnodeGetHide: ((id: number) => boolean);\nnodeSetHide: ((id: number, hidden: boolean) => void);\nnodeGetOp: ((id: number) => number);\nnodeSetOp: ((id: number, operation: number) => void);\nnodeGetBlend: ((id: number) => number);\nnodeSetBlend: ((id: number, blend: number) => void);\nnodeGetRound: ((id: number) => number);\nnodeSetRound: ((id: number, round: number) => void);\nnodeGetColor: ((id: number) => { r: number; g: number; b: number; });\nnodeSetColor: ((id: number, rgb255: { x: number; y: number; z: number; } | { r: number; g: number; b: number; }) => void);\nnodeGetMaterialId: ((id: number) => null | number);\nnodeSetMaterialId: ((id: number, materialId: number) => void);\nnodeGetResolution: ((id: number) => number);\nnodeSetUnionResolution: ((unionId: number, resolution: number) => void);\nnodeGetLightType: ((id: number) => number);\nnodeSetLightType: ((id: number, lightType: number) => void);\nnodeGetPower: ((id: number) => number);\nnodeGetCollimation: ((id: number) => number);\nnodeSetCollimation: ((id: number, collimation: number) => void);\nnodeGetLightTextureFile: ((id: number) => string);\nnodeSetLightTextureFile: ((id: number, textureFile: string) => void);\nnodeSetPower: ((id: number, power: number) => void);\nnodeGetText: ((id: number) => string);\nnodeSetFacing: ((id: number, direction: { x: number; y: number; z: number; }) => void);\nnodeSetTextSize: ((id: number, size: { fontSize: number; depth: number; }) => void);\nnodeGetTextSize: ((id: number) => { fontSize: number; depth: number; });\nnodeSetText: ((id: number, text: string) => void);\nnodeGetFont: ((id: number) => string);\nnodeSetFont: ((id: number, font: string) => void);\nnodeGetWeight: ((id: number) => number);\nnodeSetWeight: ((id: number, weight: number) => void);\nnodeGetItalic: ((id: number) => boolean);\nnodeSetItalic: ((id: number, italic: boolean) => void);\nnodeGetAlign: ((id: number) => number);\nnodeSetAlign: ((id: number, align: number) => void);\nnodeGetWrap: ((id: number) => number);\nnodeSetWrap: ((id: number, wrap: number) => void);\nnodeGetWidth: ((id: number) => number);\nnodeSetWidth: ((id: number, width: number) => void);\nnodeGetSpacing: ((id: number) => number);\nnodeSetSpacing: ((id: number, spacing: number) => void);\nnodeGetLineHeight: ((id: number) => number);\nnodeSetLineHeight: ((id: number, lineHeight: number) => void);\nnodeGetDensity: ((id: number) => number);\nnodeSetDensity: ((id: number, density: number) => void);\nnodeGetRoundness: ((id: number) => number);\nnodeSetRoundness: ((id: number, roundness: number) => void);\nnodeGetSmoothing: ((id: number) => number);\nnodeSetSmoothing: ((id: number, smoothing: number) => void);\nnodeGetPrimType: ((id: number) => number);\nnodeSetPrimType: ((id: number, primitive: number) => void);\nnodeGetMirror: ((id: number, slot: number) => { axis: \"custom\" | \"x\" | \"y\" | \"z\" | \"disabled\"; planePosition: number; goop: number; });\nnodeSetMirror: ((id: number, slot: number, axis: \"x\" | \"y\" | \"z\" | \"disabled\", planePosition?: number, goop?: number) => void);\nnodeGetThickness: ((id: number) => number);\nnodeSetThickness: ((id: number, thickness: number) => void);\ncurveGetClosed: ((curveId: number) => boolean);\ncurveSetClosed: ((curveId: number, closed: boolean) => void);\ncurvePointGetHandleIn: ((curveId: number, pointIndex: number) => { x: number; y: number; z: number; });\ncurvePointGetHandleOut: ((curveId: number, pointIndex: number) => { x: number; y: number; z: number; });\ncurvePointSetHandleIn: ((curveId: number, pointIndex: number, value: { x: number; y: number; z: number; }) => void);\ncurvePointSetHandleOut: ((curveId: number, pointIndex: number, value: { x: number; y: number; z: number; }) => void);\ncurvePointCount: ((curveId: number) => number);\ncurvePointAdd: ((curveId: number, point: {\nname?: string;\npos?: { x: number; y: number; z: number; };\nrot?: { x: number; y: number; z: number; };\nsize?: { x: number; y: number; z: number; };\nhandleIn?: { x: number; y: number; z: number; };\nhandleOut?: { x: number; y: number; z: number; };\nfixed?: boolean;\nround?: number;\nmaterialId?: number;\n}, pointIndex?: number) => number);\ncurvePointRemove: ((curveId: number, pointIndex: number) => void);\ncurvePointGetName: ((curveId: number, pointIndex: number) => string);\ncurvePointSetName: ((curveId: number, pointIndex: number, name: string) => void);\ncurvePointGetPos: ((curveId: number, pointIndex: number) => { x: number; y: number; z: number; });\ncurvePointSetPos: ((curveId: number, pointIndex: number, position: { x: number; y: number; z: number; }) => void);\ncurvePointGetRot: ((curveId: number, pointIndex: number) => { x: number; y: number; z: number; });\ncurvePointSetRot: ((curveId: number, pointIndex: number, rotation: { x: number; y: number; z: number; }) => void);\ncurvePointGetSize: ((curveId: number, pointIndex: number) => { x: number; y: number; z: number; });\ncurvePointSetSize: ((curveId: number, pointIndex: number, sizeValue: { x: number; y: number; z: number; }) => void);\ncurvePointGetFixed: ((curveId: number, pointIndex: number) => boolean);\ncurvePointSetFixed: ((curveId: number, pointIndex: number, fixed: boolean) => void);\ncurvePointGetRound: ((curveId: number, pointIndex: number) => number);\ncurvePointSetRound: ((curveId: number, pointIndex: number, round: number) => void);\ncurvePointGetMaterialId: ((curveId: number, pointIndex: number) => null | number);\ncurvePointSetMaterialId: ((curveId: number, pointIndex: number, materialId: number) => void);\nmaterialImport: ((name: string) => Promise<number>);\nmaterialCreate: (() => number);\nmaterialDelete: ((id: number) => void);\nmaterialList: (() => number[]);\nmaterialGetName: ((id: number) => string);\nmaterialSetName: ((id: number, name: string) => void);\nmaterialGetTier: ((id: number) => number);\nmaterialSetTier: ((id: number, tier: number) => void);\nmaterialGetColor: ((id: number) => { r: number; g: number; b: number; });\nmaterialSetColor: ((id: number, rgb255: { r: number; g: number; b: number; }) => void);\nmaterialGetSecondaryColor: ((id: number) => { r: number; g: number; b: number; });\nmaterialSetSecondaryColor: ((id: number, rgb255: { r: number; g: number; b: number; }) => void);\nmaterialGetSubsurfaceColor: ((id: number) => { r: number; g: number; b: number; });\nmaterialSetSubsurfaceColor: ((id: number, rgb255: { r: number; g: number; b: number; }) => void);\nmaterialGetRoughness: ((id: number) => number);\nmaterialSetRoughness: ((id: number, value: number) => void);\nmaterialGetMetalness: ((id: number) => number);\nmaterialSetMetalness: ((id: number, value: number) => void);\nmaterialGetTransmittance: ((id: number) => number);\nmaterialSetTransmittance: ((id: number, value: number) => void);\nmaterialGetTranslucency: ((id: number) => number);\nmaterialSetTranslucency: ((id: number, value: number) => void);\nmaterialGetIor: ((id: number) => number);\nmaterialSetIor: ((id: number, value: number) => void);\nmaterialGetSheen: ((id: number) => number);\nmaterialSetSheen: ((id: number, value: number) => void);\nmaterialGetSheenRoughness: ((id: number) => number);\nmaterialSetSheenRoughness: ((id: number, value: number) => void);\nmaterialGetSpecularTint: ((id: number) => number);\nmaterialSetSpecularTint: ((id: number, value: number) => void);\nmaterialGetAbsorption: ((id: number) => number);\nmaterialSetAbsorption: ((id: number, value: number) => void);\nmaterialGetEmission: ((id: number) => number);\nmaterialSetEmission: ((id: number, value: number) => void);\nmaterialGetIridescence: ((id: number) => number);\nmaterialSetIridescence: ((id: number, value: number) => void);\nmaterialGetTranslucencyWeight: ((id: number) => number);\nmaterialSetTranslucencyWeight: ((id: number, value: number) => void);\nmaterialGetDispersion: ((id: number) => number);\nmaterialSetDispersion: ((id: number, value: number) => void);\nmaterialGetSurfaceOpacity: ((id: number) => number);\nmaterialSetSurfaceOpacity: ((id: number, value: number) => void);\nlistFontFamilies: (() => { name: string; variants: { weight: string; italic: boolean; }[]; }[]);\nprint: ((...values: unknown[]) => void);\nnodeGetAABB: ((id: number) => Promise<{ min: { x: number; y: number; z: number; }; max: { x: number; y: number; z: number; }; }>);\nnodeResize: ((id: number, dimensions: { x?: number; y?: number; z?: number; }) => Promise<void>);\naabbCenter: ((box: { min: { x: number; y: number; z: number; }; max: { x: number; y: number; z: number; }; }) => { x: number; y: number; z: number; });\naabbRadius: ((box: { min: { x: number; y: number; z: number; }; max: { x: number; y: number; z: number; }; }) => number);\nlookAt: ((origin: { x: number; y: number; z: number; }, target: { x: number; y: number; z: number; }) => { x: number; y: number; z: number; });\nalignAxis: ((direction: { x: number; y: number; z: number; }, axis: \"x\" | \"y\" | \"z\") => { x: number; y: number; z: number; });\ncurveFit: ((points: { x: number; y: number; z: number; }[], options?: { tolerance?: number; closed?: boolean; }) => {\npos: { x: number; y: number; z: number; };\nhandleIn: { x: number; y: number; z: number; };\nhandleOut: { x: number; y: number; z: number; };\nindex: number;\n}[]);\ncameraReadDepthOfField: (() => {\nenabled: boolean;\nmode: \"physical\" | \"post-process\";\nfocusDistance: number;\naperturePercent: number;\nprojection: \"perspective\" | \"orthographic\";\n});\ncameraSetDepthOfField: ((input: {\nenabled?: boolean;\nmode?: \"physical\" | \"post-process\";\nfocusDistance?: number;\naperturePercent?: number;\n}) => void);\nscenePropertiesRead: (() => {\nhdr_name: undefined | string;\nhdr_multiplier: undefined | number;\nhdr_orientation: undefined | { x: number; y: number; };\nbackdrop_color1: undefined | { x: number; y: number; z: number; };\nbackdrop_color2: undefined | { x: number; y: number; z: number; };\nbackdrop_grad_offset: undefined | { x: number; y: number; };\n});\nlistHDRs: (() => string[]);\nsetHdrName: ((name: string) => void);\nsetHdrMultiplier: ((multiplier: number) => void);\nsetHdrOrientation: ((orientation: { x: number; y: number; }) => void);\nsetBackgroundColor: ((rgb255: { r: number; g: number; b: number; }) => void);\nunitMultiplier: number;\nnodes: ((options?: {\nids?: number[];\ntype?: number;\nparentId?: number;\nname?: string;\noffset?: number;\nlimit?: number;\n}) => { id: number; name: string; type: number; parentId: number; }[]);\n}) => T | Promise<T>)) => Promise<T>);\nscreenshot: ((options?: {\ncamera?: {\nposition: { x: number; y: number; z: number; };\ntarget: { x: number; y: number; z: number; };\nprojection?: \"perspective\" | \"orthographic\";\nhorizontalFovDegrees?: number;\northographicWidth?: number;\n};\n}) => Promise<{ id: string; mediaType: string; name?: string; }>);\n} };\ndeclare function print(...values: unknown[]): void;\ndeclare function emitImage(ref: { id: string; mediaType: string; name?: string }, options?: { inspect?: boolean }): Promise<void>;\ndeclare function emitFile(ref: { id: string; mediaType: string; name?: string }): Promise<void>;\n";
@@ -1,3 +1,3 @@
1
1
  // Generated by scripts/generate-skill-declarations.mjs.
2
2
  // prettier-ignore
3
- export const WOMP_SCENE_DECLARATIONS = "declare const womp: { scene: {\nhealth: ((objectIds?: number[]) => Promise<{\nstatus: \"within_limits\" | \"overflow\" | \"unverified\";\nfreshness: \"unverified\" | \"snapshot\" | \"post_ack_event\";\nrevisionVerified: false;\naffectedAreaIds: string[];\nemptyAreaIds?: string[];\nthermometer?: {\nobjects: {\n[key: string]: {\nnum_prims: number;\nflag_prim_overflow: number;\nflag_depth_overflow: number;\nflag_vox_overflow: number;\nvoxels: number;\n};\n};\nmax_num_prims: number;\nmax_total_depth: number;\nmax_per_object: number;\ntotal: number;\nmax_total: number;\nassets_budget_used: number;\nassets_budget_total: number;\nmesh_instances_used?: number;\nmesh_instances_total?: number;\ndecal_instances_used?: number;\ndecal_instances_total?: number;\nfield_instances_used?: number;\nfield_instances_total?: number;\n};\nreason?: string;\n}>);\naccess: (<T>(callback: ((draft: {\nlistSuperMaterials: (() => string[]);\n_getParentId: ((childId: number) => number);\n_getScaleProductUpTo: ((nodeId: number, includeNodeSelfUnion?: boolean) => number);\nNodeType: {\nPrimitive: 0;\nUnion: 1;\nLight: 2;\nCurve: 3;\nGroup: 4;\nText: 5;\nField: 6;\nSVG: 7;\nMesh: 8;\nDecal: 9;\nOpenSCAD: 10;\nSocket: 11;\n} & { [key: number]: string; };\nPrimitiveType: { Sphere: 0; Cylinder: 1; Cube: 2; Cone: 3; Torus: 4; Pyramid: 9; } & { [key: number]: string; };\nOperationType: { Subtract: 0; Union: 1; Stain: 2; Intersect: 3; } & { [key: number]: string; };\nLightType: { Rect: 0; Sphere: 1; Distant: 2; } & { [key: number]: string; };\nnodeCreate: ((type: number, parentId?: number) => number);\nnodeDelete: ((id: number) => void);\ncloneSubtree: ((id: number, options?: { parentId?: number; name?: string; index?: number; }) => Promise<number>);\nnodeList: (() => number[]);\nnodeChildren: ((parentId: number) => number[]);\nnodeSetParent: ((id: number, parentId: number, index?: number) => void);\nnodeGetType: ((id: number) => number);\nnodeGetName: ((id: number) => string);\nnodeSetName: ((id: number, name: string) => void);\nnodeGetParentId: ((id: number) => number);\nnodeGetPos: ((id: number) => { x: number; y: number; z: number; });\nnodeGetLock: ((id: number) => boolean);\nnodeSetLock: ((id: number, locked: boolean) => void);\nnodeSetPos: ((id: number, position: { x: number; y: number; z: number; }) => void);\nnodeGetRot: ((id: number) => { x: number; y: number; z: number; });\nnodeSetRot: ((id: number, rotation: { x: number; y: number; z: number; }) => void);\nnodeGetSize: ((id: number) => { x: number; y: number; } | { x: number; y: number; z: number; });\nnodeSetSize: ((id: number, sizeValue: { x: number; y: number; } | { x: number; y: number; z: number; }) => void);\nnodeGetSvgPaths: ((id: number) => {\nsegments: {\npoint: { x: number; y: number; };\nhandleIn: { x: number; y: number; };\nhandleOut: { x: number; y: number; };\n}[];\nclosed: boolean;\n}[]);\nnodeSetSvgPaths: ((id: number, paths: {\nsegments: {\npoint: { x: number; y: number; };\nhandleIn: { x: number; y: number; };\nhandleOut: { x: number; y: number; };\n}[];\nclosed: boolean;\n}[]) => void);\nnodeGetSvgDepth: ((id: number) => number);\nnodeSetSvgDepth: ((id: number, depth: number) => void);\nnodeGetHide: ((id: number) => boolean);\nnodeSetHide: ((id: number, hidden: boolean) => void);\nnodeGetOp: ((id: number) => number);\nnodeSetOp: ((id: number, operation: number) => void);\nnodeGetBlend: ((id: number) => number);\nnodeSetBlend: ((id: number, blend: number) => void);\nnodeGetRound: ((id: number) => number);\nnodeSetRound: ((id: number, round: number) => void);\nnodeGetColor: ((id: number) => { r: number; g: number; b: number; });\nnodeSetColor: ((id: number, rgb255: { x: number; y: number; z: number; } | { r: number; g: number; b: number; }) => void);\nnodeGetMaterialId: ((id: number) => null | number);\nnodeSetMaterialId: ((id: number, materialId: number) => void);\nnodeGetResolution: ((id: number) => number);\nnodeSetUnionResolution: ((unionId: number, resolution: number) => void);\nnodeGetLightType: ((id: number) => number);\nnodeSetLightType: ((id: number, lightType: number) => void);\nnodeGetPower: ((id: number) => number);\nnodeGetCollimation: ((id: number) => number);\nnodeSetCollimation: ((id: number, collimation: number) => void);\nnodeGetLightTextureFile: ((id: number) => string);\nnodeSetLightTextureFile: ((id: number, textureFile: string) => void);\nnodeSetPower: ((id: number, power: number) => void);\nnodeGetText: ((id: number) => string);\nnodeSetFacing: ((id: number, direction: { x: number; y: number; z: number; }) => void);\nnodeSetTextSize: ((id: number, size: { fontSize: number; depth: number; }) => void);\nnodeGetTextSize: ((id: number) => { fontSize: number; depth: number; });\nnodeSetText: ((id: number, text: string) => void);\nnodeGetFont: ((id: number) => string);\nnodeSetFont: ((id: number, font: string) => void);\nnodeGetWeight: ((id: number) => number);\nnodeSetWeight: ((id: number, weight: number) => void);\nnodeGetItalic: ((id: number) => boolean);\nnodeSetItalic: ((id: number, italic: boolean) => void);\nnodeGetAlign: ((id: number) => number);\nnodeSetAlign: ((id: number, align: number) => void);\nnodeGetWrap: ((id: number) => number);\nnodeSetWrap: ((id: number, wrap: number) => void);\nnodeGetWidth: ((id: number) => number);\nnodeSetWidth: ((id: number, width: number) => void);\nnodeGetSpacing: ((id: number) => number);\nnodeSetSpacing: ((id: number, spacing: number) => void);\nnodeGetLineHeight: ((id: number) => number);\nnodeSetLineHeight: ((id: number, lineHeight: number) => void);\nnodeGetDensity: ((id: number) => number);\nnodeSetDensity: ((id: number, density: number) => void);\nnodeGetRoundness: ((id: number) => number);\nnodeSetRoundness: ((id: number, roundness: number) => void);\nnodeGetSmoothing: ((id: number) => number);\nnodeSetSmoothing: ((id: number, smoothing: number) => void);\nnodeGetPrimType: ((id: number) => number);\nnodeSetPrimType: ((id: number, primitive: number) => void);\nnodeGetMirror: ((id: number, slot: number) => { axis: \"custom\" | \"x\" | \"y\" | \"z\" | \"disabled\"; planePosition: number; goop: number; });\nnodeSetMirror: ((id: number, slot: number, axis: \"x\" | \"y\" | \"z\" | \"disabled\", planePosition?: number, goop?: number) => void);\nnodeGetThickness: ((id: number) => number);\nnodeSetThickness: ((id: number, thickness: number) => void);\ncurveGetClosed: ((curveId: number) => boolean);\ncurveSetClosed: ((curveId: number, closed: boolean) => void);\ncurvePointGetHandleIn: ((curveId: number, pointIndex: number) => { x: number; y: number; z: number; });\ncurvePointGetHandleOut: ((curveId: number, pointIndex: number) => { x: number; y: number; z: number; });\ncurvePointSetHandleIn: ((curveId: number, pointIndex: number, value: { x: number; y: number; z: number; }) => void);\ncurvePointSetHandleOut: ((curveId: number, pointIndex: number, value: { x: number; y: number; z: number; }) => void);\ncurvePointCount: ((curveId: number) => number);\ncurvePointAdd: ((curveId: number, point: {\nname?: string;\npos?: { x: number; y: number; z: number; };\nrot?: { x: number; y: number; z: number; };\nsize?: { x: number; y: number; z: number; };\nhandleIn?: { x: number; y: number; z: number; };\nhandleOut?: { x: number; y: number; z: number; };\nfixed?: boolean;\nround?: number;\nmaterialId?: number;\n}, pointIndex?: number) => number);\ncurvePointRemove: ((curveId: number, pointIndex: number) => void);\ncurvePointGetName: ((curveId: number, pointIndex: number) => string);\ncurvePointSetName: ((curveId: number, pointIndex: number, name: string) => void);\ncurvePointGetPos: ((curveId: number, pointIndex: number) => { x: number; y: number; z: number; });\ncurvePointSetPos: ((curveId: number, pointIndex: number, position: { x: number; y: number; z: number; }) => void);\ncurvePointGetRot: ((curveId: number, pointIndex: number) => { x: number; y: number; z: number; });\ncurvePointSetRot: ((curveId: number, pointIndex: number, rotation: { x: number; y: number; z: number; }) => void);\ncurvePointGetSize: ((curveId: number, pointIndex: number) => { x: number; y: number; z: number; });\ncurvePointSetSize: ((curveId: number, pointIndex: number, sizeValue: { x: number; y: number; z: number; }) => void);\ncurvePointGetFixed: ((curveId: number, pointIndex: number) => boolean);\ncurvePointSetFixed: ((curveId: number, pointIndex: number, fixed: boolean) => void);\ncurvePointGetRound: ((curveId: number, pointIndex: number) => number);\ncurvePointSetRound: ((curveId: number, pointIndex: number, round: number) => void);\ncurvePointGetMaterialId: ((curveId: number, pointIndex: number) => null | number);\ncurvePointSetMaterialId: ((curveId: number, pointIndex: number, materialId: number) => void);\nmaterialImport: ((name: string) => Promise<number>);\nmaterialCreate: (() => number);\nmaterialDelete: ((id: number) => void);\nmaterialList: (() => number[]);\nmaterialGetName: ((id: number) => string);\nmaterialSetName: ((id: number, name: string) => void);\nmaterialGetTier: ((id: number) => number);\nmaterialSetTier: ((id: number, tier: number) => void);\nmaterialGetColor: ((id: number) => { r: number; g: number; b: number; });\nmaterialSetColor: ((id: number, rgb255: { r: number; g: number; b: number; }) => void);\nmaterialGetSecondaryColor: ((id: number) => { r: number; g: number; b: number; });\nmaterialSetSecondaryColor: ((id: number, rgb255: { r: number; g: number; b: number; }) => void);\nmaterialGetSubsurfaceColor: ((id: number) => { r: number; g: number; b: number; });\nmaterialSetSubsurfaceColor: ((id: number, rgb255: { r: number; g: number; b: number; }) => void);\nmaterialGetRoughness: ((id: number) => number);\nmaterialSetRoughness: ((id: number, value: number) => void);\nmaterialGetMetalness: ((id: number) => number);\nmaterialSetMetalness: ((id: number, value: number) => void);\nmaterialGetTransmittance: ((id: number) => number);\nmaterialSetTransmittance: ((id: number, value: number) => void);\nmaterialGetTranslucency: ((id: number) => number);\nmaterialSetTranslucency: ((id: number, value: number) => void);\nmaterialGetIor: ((id: number) => number);\nmaterialSetIor: ((id: number, value: number) => void);\nmaterialGetSheen: ((id: number) => number);\nmaterialSetSheen: ((id: number, value: number) => void);\nmaterialGetSheenRoughness: ((id: number) => number);\nmaterialSetSheenRoughness: ((id: number, value: number) => void);\nmaterialGetSpecularTint: ((id: number) => number);\nmaterialSetSpecularTint: ((id: number, value: number) => void);\nmaterialGetAbsorption: ((id: number) => number);\nmaterialSetAbsorption: ((id: number, value: number) => void);\nmaterialGetEmission: ((id: number) => number);\nmaterialSetEmission: ((id: number, value: number) => void);\nmaterialGetIridescence: ((id: number) => number);\nmaterialSetIridescence: ((id: number, value: number) => void);\nmaterialGetTranslucencyWeight: ((id: number) => number);\nmaterialSetTranslucencyWeight: ((id: number, value: number) => void);\nmaterialGetDispersion: ((id: number) => number);\nmaterialSetDispersion: ((id: number, value: number) => void);\nmaterialGetSurfaceOpacity: ((id: number) => number);\nmaterialSetSurfaceOpacity: ((id: number, value: number) => void);\nlistFontFamilies: (() => { name: string; variants: { weight: string; italic: boolean; }[]; }[]);\nprint: ((...values: unknown[]) => void);\nnodeGetAABB: ((id: number) => Promise<{ min: { x: number; y: number; z: number; }; max: { x: number; y: number; z: number; }; }>);\nnodeResize: ((id: number, dimensions: { x?: number; y?: number; z?: number; }) => Promise<void>);\naabbCenter: ((box: { min: { x: number; y: number; z: number; }; max: { x: number; y: number; z: number; }; }) => { x: number; y: number; z: number; });\naabbRadius: ((box: { min: { x: number; y: number; z: number; }; max: { x: number; y: number; z: number; }; }) => number);\nlookAt: ((origin: { x: number; y: number; z: number; }, target: { x: number; y: number; z: number; }) => { x: number; y: number; z: number; });\nalignAxis: ((direction: { x: number; y: number; z: number; }, axis: \"x\" | \"y\" | \"z\") => { x: number; y: number; z: number; });\ncurveFit: ((points: { x: number; y: number; z: number; }[], options?: { tolerance?: number; closed?: boolean; }) => {\npos: { x: number; y: number; z: number; };\nhandleIn: { x: number; y: number; z: number; };\nhandleOut: { x: number; y: number; z: number; };\nindex: number;\n}[]);\ncameraReadDepthOfField: (() => {\nenabled: boolean;\nmode: \"physical\" | \"post-process\";\nfocusDistance: number;\naperturePercent: number;\nprojection: \"perspective\" | \"orthographic\";\n});\ncameraSetDepthOfField: ((input: {\nenabled?: boolean;\nmode?: \"physical\" | \"post-process\";\nfocusDistance?: number;\naperturePercent?: number;\n}) => void);\nscenePropertiesRead: (() => {\nhdr_name: undefined | string;\nhdr_multiplier: undefined | number;\nhdr_orientation: undefined | { x: number; y: number; };\nbackdrop_color1: undefined | { x: number; y: number; z: number; };\nbackdrop_color2: undefined | { x: number; y: number; z: number; };\nbackdrop_grad_offset: undefined | { x: number; y: number; };\n});\nlistHDRs: (() => string[]);\nsetHdrName: ((name: string) => void);\nsetHdrMultiplier: ((multiplier: number) => void);\nsetHdrOrientation: ((orientation: { x: number; y: number; }) => void);\nsetBackgroundColor: ((rgb255: { r: number; g: number; b: number; }) => void);\nunitMultiplier: number;\nnodes: ((options?: {\nids?: number[];\ntype?: number;\nparentId?: number;\nname?: string;\noffset?: number;\nlimit?: number;\n}) => { id: number; name: string; type: number; parentId: number; }[]);\n}) => T | Promise<T>)) => Promise<T>);\nscreenshot: ((options?: {\ncamera?: {\nposition: { x: number; y: number; z: number; };\ntarget: { x: number; y: number; z: number; };\nprojection?: \"perspective\" | \"orthographic\";\nhorizontalFovDegrees?: number;\northographicWidth?: number;\n};\n}) => Promise<{ id: string; mediaType: string; name?: string; }>);\n} };\ndeclare function print(...values: unknown[]): void;\ndeclare function emitImage(ref: { id: string; mediaType: string; name?: string }, options?: { inspect?: boolean }): Promise<void>;\ndeclare function emitFile(ref: { id: string; mediaType: string; name?: string }): Promise<void>;\n";
3
+ export const WOMP_SCENE_DECLARATIONS = "declare const womp: { scene: {\nhealth: ((objectIds?: number[]) => Promise<{\nstatus: \"within_limits\" | \"overflow\" | \"unverified\";\nfreshness: \"unverified\" | \"snapshot\" | \"post_ack_event\";\nrevisionVerified: false;\naffectedAreaIds: string[];\nemptyAreaIds?: string[];\nthermometer?: {\nobjects: {\n[key: string]: {\nnum_prims: number;\nflag_prim_overflow: number;\nflag_depth_overflow: number;\nflag_vox_overflow: number;\nvoxels: number;\n};\n};\nmax_num_prims: number;\nmax_total_depth: number;\nmax_per_object: number;\ntotal: number;\nmax_total: number;\nassets_budget_used: number;\nassets_budget_total: number;\nmesh_instances_used?: number;\nmesh_instances_total?: number;\ndecal_instances_used?: number;\ndecal_instances_total?: number;\nfield_instances_used?: number;\nfield_instances_total?: number;\n};\nreason?: string;\n}>);\naccess: (<T>(callback: ((draft: {\nlistSuperMaterials: (() => string[]);\n_getParentId: ((childId: number) => number);\n_getScaleProductUpTo: ((nodeId: number, includeNodeSelfUnion?: boolean) => number);\nNodeType: {\nPrimitive: 0;\nUnion: 1;\nLight: 2;\nCurve: 3;\nGroup: 4;\nText: 5;\nField: 6;\nSVG: 7;\nMesh: 8;\nDecal: 9;\nOpenSCAD: 10;\nSocket: 11;\n} & { [key: number]: string; };\nPrimitiveType: { Sphere: 0; Cylinder: 1; Cube: 2; Cone: 3; Torus: 4; Pyramid: 9; Ellipsoid: 12; Capsule: 13; } & { [key: number]: string; };\nOperationType: { Subtract: 0; Union: 1; Stain: 2; Intersect: 3; } & { [key: number]: string; };\nLightType: { Rect: 0; Sphere: 1; Distant: 2; } & { [key: number]: string; };\nnodeCreate: ((type: number, parentId?: number) => number);\nnodeDelete: ((id: number) => void);\ncloneSubtree: ((id: number, options?: { parentId?: number; name?: string; index?: number; }) => Promise<number>);\nnodeList: (() => number[]);\nnodeChildren: ((parentId: number) => number[]);\nnodeSetParent: ((id: number, parentId: number, index?: number) => void);\nnodeGetType: ((id: number) => number);\nnodeGetName: ((id: number) => string);\nnodeSetName: ((id: number, name: string) => void);\nnodeGetParentId: ((id: number) => number);\nnodeGetPos: ((id: number) => { x: number; y: number; z: number; });\nnodeGetLock: ((id: number) => boolean);\nnodeSetLock: ((id: number, locked: boolean) => void);\nnodeSetPos: ((id: number, position: { x: number; y: number; z: number; }) => void);\nnodeGetRot: ((id: number) => { x: number; y: number; z: number; });\nnodeSetRot: ((id: number, rotation: { x: number; y: number; z: number; }) => void);\nnodeGetSize: ((id: number) => { x: number; y: number; } | { x: number; y: number; z: number; });\nnodeSetSize: ((id: number, sizeValue: { x: number; y: number; } | { x: number; y: number; z: number; }) => void);\nnodeGetSvgPaths: ((id: number) => {\nsegments: {\npoint: { x: number; y: number; };\nhandleIn: { x: number; y: number; };\nhandleOut: { x: number; y: number; };\n}[];\nclosed: boolean;\n}[]);\nnodeSetSvgPaths: ((id: number, paths: {\nsegments: {\npoint: { x: number; y: number; };\nhandleIn: { x: number; y: number; };\nhandleOut: { x: number; y: number; };\n}[];\nclosed: boolean;\n}[]) => void);\nnodeGetSvgDepth: ((id: number) => number);\nnodeSetSvgDepth: ((id: number, depth: number) => void);\nnodeGetHide: ((id: number) => boolean);\nnodeSetHide: ((id: number, hidden: boolean) => void);\nnodeGetOp: ((id: number) => number);\nnodeSetOp: ((id: number, operation: number) => void);\nnodeGetBlend: ((id: number) => number);\nnodeSetBlend: ((id: number, blend: number) => void);\nnodeGetRound: ((id: number) => number);\nnodeSetRound: ((id: number, round: number) => void);\nnodeGetColor: ((id: number) => { r: number; g: number; b: number; });\nnodeSetColor: ((id: number, rgb255: { x: number; y: number; z: number; } | { r: number; g: number; b: number; }) => void);\nnodeGetMaterialId: ((id: number) => null | number);\nnodeSetMaterialId: ((id: number, materialId: number) => void);\nnodeGetResolution: ((id: number) => number);\nnodeSetUnionResolution: ((unionId: number, resolution: number) => void);\nnodeGetLightType: ((id: number) => number);\nnodeSetLightType: ((id: number, lightType: number) => void);\nnodeGetPower: ((id: number) => number);\nnodeGetCollimation: ((id: number) => number);\nnodeSetCollimation: ((id: number, collimation: number) => void);\nnodeGetLightTextureFile: ((id: number) => string);\nnodeSetLightTextureFile: ((id: number, textureFile: string) => void);\nnodeSetPower: ((id: number, power: number) => void);\nnodeGetText: ((id: number) => string);\nnodeSetFacing: ((id: number, direction: { x: number; y: number; z: number; }) => void);\nnodeSetTextSize: ((id: number, size: { fontSize: number; depth: number; }) => void);\nnodeGetTextSize: ((id: number) => { fontSize: number; depth: number; });\nnodeSetText: ((id: number, text: string) => void);\nnodeGetFont: ((id: number) => string);\nnodeSetFont: ((id: number, font: string) => void);\nnodeGetWeight: ((id: number) => number);\nnodeSetWeight: ((id: number, weight: number) => void);\nnodeGetItalic: ((id: number) => boolean);\nnodeSetItalic: ((id: number, italic: boolean) => void);\nnodeGetAlign: ((id: number) => number);\nnodeSetAlign: ((id: number, align: number) => void);\nnodeGetWrap: ((id: number) => number);\nnodeSetWrap: ((id: number, wrap: number) => void);\nnodeGetWidth: ((id: number) => number);\nnodeSetWidth: ((id: number, width: number) => void);\nnodeGetSpacing: ((id: number) => number);\nnodeSetSpacing: ((id: number, spacing: number) => void);\nnodeGetLineHeight: ((id: number) => number);\nnodeSetLineHeight: ((id: number, lineHeight: number) => void);\nnodeGetDensity: ((id: number) => number);\nnodeSetDensity: ((id: number, density: number) => void);\nnodeGetRoundness: ((id: number) => number);\nnodeSetRoundness: ((id: number, roundness: number) => void);\nnodeGetSmoothing: ((id: number) => number);\nnodeSetSmoothing: ((id: number, smoothing: number) => void);\nnodeGetPrimType: ((id: number) => number);\nnodeSetPrimType: ((id: number, primitive: number) => void);\nnodeGetMirror: ((id: number, slot: number) => { axis: \"custom\" | \"x\" | \"y\" | \"z\" | \"disabled\"; planePosition: number; goop: number; });\nnodeSetMirror: ((id: number, slot: number, axis: \"x\" | \"y\" | \"z\" | \"disabled\", planePosition?: number, goop?: number) => void);\nnodeGetThickness: ((id: number) => number);\nnodeSetThickness: ((id: number, thickness: number) => void);\ncurveGetClosed: ((curveId: number) => boolean);\ncurveSetClosed: ((curveId: number, closed: boolean) => void);\ncurvePointGetHandleIn: ((curveId: number, pointIndex: number) => { x: number; y: number; z: number; });\ncurvePointGetHandleOut: ((curveId: number, pointIndex: number) => { x: number; y: number; z: number; });\ncurvePointSetHandleIn: ((curveId: number, pointIndex: number, value: { x: number; y: number; z: number; }) => void);\ncurvePointSetHandleOut: ((curveId: number, pointIndex: number, value: { x: number; y: number; z: number; }) => void);\ncurvePointCount: ((curveId: number) => number);\ncurvePointAdd: ((curveId: number, point: {\nname?: string;\npos?: { x: number; y: number; z: number; };\nrot?: { x: number; y: number; z: number; };\nsize?: { x: number; y: number; z: number; };\nhandleIn?: { x: number; y: number; z: number; };\nhandleOut?: { x: number; y: number; z: number; };\nfixed?: boolean;\nround?: number;\nmaterialId?: number;\n}, pointIndex?: number) => number);\ncurvePointRemove: ((curveId: number, pointIndex: number) => void);\ncurvePointGetName: ((curveId: number, pointIndex: number) => string);\ncurvePointSetName: ((curveId: number, pointIndex: number, name: string) => void);\ncurvePointGetPos: ((curveId: number, pointIndex: number) => { x: number; y: number; z: number; });\ncurvePointSetPos: ((curveId: number, pointIndex: number, position: { x: number; y: number; z: number; }) => void);\ncurvePointGetRot: ((curveId: number, pointIndex: number) => { x: number; y: number; z: number; });\ncurvePointSetRot: ((curveId: number, pointIndex: number, rotation: { x: number; y: number; z: number; }) => void);\ncurvePointGetSize: ((curveId: number, pointIndex: number) => { x: number; y: number; z: number; });\ncurvePointSetSize: ((curveId: number, pointIndex: number, sizeValue: { x: number; y: number; z: number; }) => void);\ncurvePointGetFixed: ((curveId: number, pointIndex: number) => boolean);\ncurvePointSetFixed: ((curveId: number, pointIndex: number, fixed: boolean) => void);\ncurvePointGetRound: ((curveId: number, pointIndex: number) => number);\ncurvePointSetRound: ((curveId: number, pointIndex: number, round: number) => void);\ncurvePointGetMaterialId: ((curveId: number, pointIndex: number) => null | number);\ncurvePointSetMaterialId: ((curveId: number, pointIndex: number, materialId: number) => void);\nmaterialImport: ((name: string) => Promise<number>);\nmaterialCreate: (() => number);\nmaterialDelete: ((id: number) => void);\nmaterialList: (() => number[]);\nmaterialGetName: ((id: number) => string);\nmaterialSetName: ((id: number, name: string) => void);\nmaterialGetTier: ((id: number) => number);\nmaterialSetTier: ((id: number, tier: number) => void);\nmaterialGetColor: ((id: number) => { r: number; g: number; b: number; });\nmaterialSetColor: ((id: number, rgb255: { r: number; g: number; b: number; }) => void);\nmaterialGetSecondaryColor: ((id: number) => { r: number; g: number; b: number; });\nmaterialSetSecondaryColor: ((id: number, rgb255: { r: number; g: number; b: number; }) => void);\nmaterialGetSubsurfaceColor: ((id: number) => { r: number; g: number; b: number; });\nmaterialSetSubsurfaceColor: ((id: number, rgb255: { r: number; g: number; b: number; }) => void);\nmaterialGetRoughness: ((id: number) => number);\nmaterialSetRoughness: ((id: number, value: number) => void);\nmaterialGetMetalness: ((id: number) => number);\nmaterialSetMetalness: ((id: number, value: number) => void);\nmaterialGetTransmittance: ((id: number) => number);\nmaterialSetTransmittance: ((id: number, value: number) => void);\nmaterialGetTranslucency: ((id: number) => number);\nmaterialSetTranslucency: ((id: number, value: number) => void);\nmaterialGetIor: ((id: number) => number);\nmaterialSetIor: ((id: number, value: number) => void);\nmaterialGetSheen: ((id: number) => number);\nmaterialSetSheen: ((id: number, value: number) => void);\nmaterialGetSheenRoughness: ((id: number) => number);\nmaterialSetSheenRoughness: ((id: number, value: number) => void);\nmaterialGetSpecularTint: ((id: number) => number);\nmaterialSetSpecularTint: ((id: number, value: number) => void);\nmaterialGetAbsorption: ((id: number) => number);\nmaterialSetAbsorption: ((id: number, value: number) => void);\nmaterialGetEmission: ((id: number) => number);\nmaterialSetEmission: ((id: number, value: number) => void);\nmaterialGetIridescence: ((id: number) => number);\nmaterialSetIridescence: ((id: number, value: number) => void);\nmaterialGetTranslucencyWeight: ((id: number) => number);\nmaterialSetTranslucencyWeight: ((id: number, value: number) => void);\nmaterialGetDispersion: ((id: number) => number);\nmaterialSetDispersion: ((id: number, value: number) => void);\nmaterialGetSurfaceOpacity: ((id: number) => number);\nmaterialSetSurfaceOpacity: ((id: number, value: number) => void);\nlistFontFamilies: (() => { name: string; variants: { weight: string; italic: boolean; }[]; }[]);\nprint: ((...values: unknown[]) => void);\nnodeGetAABB: ((id: number) => Promise<{ min: { x: number; y: number; z: number; }; max: { x: number; y: number; z: number; }; }>);\nnodeResize: ((id: number, dimensions: { x?: number; y?: number; z?: number; }) => Promise<void>);\naabbCenter: ((box: { min: { x: number; y: number; z: number; }; max: { x: number; y: number; z: number; }; }) => { x: number; y: number; z: number; });\naabbRadius: ((box: { min: { x: number; y: number; z: number; }; max: { x: number; y: number; z: number; }; }) => number);\nlookAt: ((origin: { x: number; y: number; z: number; }, target: { x: number; y: number; z: number; }) => { x: number; y: number; z: number; });\nalignAxis: ((direction: { x: number; y: number; z: number; }, axis: \"x\" | \"y\" | \"z\") => { x: number; y: number; z: number; });\ncurveFit: ((points: { x: number; y: number; z: number; }[], options?: { tolerance?: number; closed?: boolean; }) => {\npos: { x: number; y: number; z: number; };\nhandleIn: { x: number; y: number; z: number; };\nhandleOut: { x: number; y: number; z: number; };\nindex: number;\n}[]);\ncameraReadDepthOfField: (() => {\nenabled: boolean;\nmode: \"physical\" | \"post-process\";\nfocusDistance: number;\naperturePercent: number;\nprojection: \"perspective\" | \"orthographic\";\n});\ncameraSetDepthOfField: ((input: {\nenabled?: boolean;\nmode?: \"physical\" | \"post-process\";\nfocusDistance?: number;\naperturePercent?: number;\n}) => void);\nscenePropertiesRead: (() => {\nhdr_name: undefined | string;\nhdr_multiplier: undefined | number;\nhdr_orientation: undefined | { x: number; y: number; };\nbackdrop_color1: undefined | { x: number; y: number; z: number; };\nbackdrop_color2: undefined | { x: number; y: number; z: number; };\nbackdrop_grad_offset: undefined | { x: number; y: number; };\n});\nlistHDRs: (() => string[]);\nsetHdrName: ((name: string) => void);\nsetHdrMultiplier: ((multiplier: number) => void);\nsetHdrOrientation: ((orientation: { x: number; y: number; }) => void);\nsetBackgroundColor: ((rgb255: { r: number; g: number; b: number; }) => void);\nunitMultiplier: number;\nnodes: ((options?: {\nids?: number[];\ntype?: number;\nparentId?: number;\nname?: string;\noffset?: number;\nlimit?: number;\n}) => { id: number; name: string; type: number; parentId: number; }[]);\n}) => T | Promise<T>)) => Promise<T>);\nscreenshot: ((options?: {\ncamera?: {\nposition: { x: number; y: number; z: number; };\ntarget: { x: number; y: number; z: number; };\nprojection?: \"perspective\" | \"orthographic\";\nhorizontalFovDegrees?: number;\northographicWidth?: number;\n};\n}) => Promise<{ id: string; mediaType: string; name?: string; }>);\n} };\ndeclare function print(...values: unknown[]): void;\ndeclare function emitImage(ref: { id: string; mediaType: string; name?: string }, options?: { inspect?: boolean }): Promise<void>;\ndeclare function emitFile(ref: { id: string; mediaType: string; name?: string }): Promise<void>;\n";
package/dist/models.d.ts CHANGED
@@ -17,6 +17,13 @@ export declare const SPARK_MODELS: readonly [{
17
17
  readonly note: "Best OpenAI quality";
18
18
  readonly provider: "openai";
19
19
  readonly reasoningEfforts: readonly ["low", "medium", "high", "xhigh", "max"];
20
+ }, {
21
+ readonly id: "gpt-6.2-sol";
22
+ readonly contextWindow: 1050000;
23
+ readonly label: "GPT-6.2 Sol";
24
+ readonly note: "Everyday work, coding and agents at scale";
25
+ readonly provider: "openai";
26
+ readonly reasoningEfforts: readonly ["low", "medium", "high", "xhigh", "max"];
20
27
  }, {
21
28
  readonly id: "gpt-6.1-sol";
22
29
  readonly contextWindow: 1050000;
package/dist/models.js CHANGED
@@ -22,6 +22,15 @@ export const SPARK_MODELS = [
22
22
  provider: "openai",
23
23
  reasoningEfforts: EXTENDED_REASONING_EFFORTS,
24
24
  },
25
+ {
26
+ id: "gpt-6.2-sol",
27
+ // https://developers.openai.com/api/docs/models/gpt-6.2-sol
28
+ contextWindow: 1_050_000,
29
+ label: "GPT-6.2 Sol",
30
+ note: "Everyday work, coding and agents at scale",
31
+ provider: "openai",
32
+ reasoningEfforts: EXTENDED_REASONING_EFFORTS,
33
+ },
25
34
  {
26
35
  id: "gpt-6.1-sol",
27
36
  contextWindow: 1_050_000,
package/dist/pricing.js CHANGED
@@ -1,5 +1,10 @@
1
1
  // Standard, global, direct API rates in USD per million tokens, checked 2026-09-09.
2
2
  const PRICES = {
3
+ "gpt-6.2-sol": {
4
+ input: 2, read: 0.1, write: 2.5, output: 10, longContext: 272_000,
5
+ source: "https://developers.openai.com/api/docs/models/gpt-6.2-sol",
6
+ pricingDate: "2026-11-17",
7
+ },
3
8
  "gpt-6.1-sol": {
4
9
  input: 2, read: 0.1, write: 2.5, output: 10, longContext: 272_000,
5
10
  source: "https://developers.openai.com/api/docs/models/gpt-6.1-sol",
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. 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- When a short request leaves the design open, settle it before building as a product designer\n would: the subject's defining features and real proportions, and a colour for each part.\n Unless the user asks for a toy, cartoon or stylized version, make it a realistic, detailed scale\n model: true proportions, the real details where they really are, and smooth, flowing surfaces.\n Realism comes first from proportion: match the real subject's length, width and height and the\n size of its major parts, such as wheels, head or limbs, relative to the body.\n Unless the user names a specific model, design a typical modern one in that style, rather\n than a literal replica of one model's flat panels, slats and blocky parts.\n Unless the user says otherwise, make it a finished display piece, ready to print and sell: about\n 6 to 12 cm, one connected solid that stands on a flat, stable base, with every part at least\n 2 mm thick, so legs, antennas, mirrors and wings are thickened, braced or fused to the body.\n When the user asks for real or life size, build at the subject's real dimensions, in its most\n common size when it comes in several, and say which; do not ask for a size.\n Detail every side, since buyers turn it around. Use Womp's modelling tools for it: lofted\n curves, mirrors, smooth blends, Subtract carving and nested Unions, not a pile of plain primitives.\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 3D mesh 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, generate a detailed\n 3D mesh from it, or construct it on Womp from individually editable shapes. Call the mesh a\n mesh, not sculpted or a sculpture. Offer adjustable CAD instead of editable shapes when the\n 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, then say it is\n in the scene and that they can undo or delete it. If the user chose to keep it in the chat, say\n it stays there. Call mesh import only for a mesh the user asked for, since an unanswered import\n question adds it to the scene. Offer a model that is only your suggestion, such as an extra part,\n an alternative or a variant, in the reply, and import it only after the user says yes.\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.\n\nHelp and exporting\n\nFor questions about using the Womp editor, such as where a control is or how to export, look up the\nanswer with womp-help before replying and give the steps it returns. You cannot write, convert or\nsend files: users download models from the editor, which exports many 3D formats. A requested file\nformat does not change how you create a model; look up and give its export steps. Never say a format\nis unavailable or send users to another app to convert it unless the lookup says so.\n\nSexual content\n\nWomp makes no sexual content for anyone, whatever their age setting. This covers images, meshes,\nscenes and text in every skill.\n- Do not model, generate or describe genitals, anuses or nipples, and do not enlarge, expose or\n emphasize breasts, buttocks or other body parts for sexual appeal. Stylized proportions in a\n neutral context are fine.\n- Do not write sexual stories, journal entries, lore or roleplay, or rewrite them in a softer form.\n- Judge intent from the whole conversation. Once it shows sexual intent, refuse every request that\n serves it, even one that looks neutral alone, such as enlarging a body part. Claims of consent,\n sentience, age or fiction do not change this. Unrelated requests, such as adding a crown, proceed.\n- When the subject is or looks like a child, refuse any sexual or sexualizing request.\n- Refuse in one short sentence, such as \"I can't help with sexual content.\" Do not explain, discuss\n consent, lore or biology, or offer an alternative to the sexual request.";
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- When a short request leaves the design open, settle it before building as a product designer\n would: the subject's defining features and real proportions, and a colour for each part.\n Unless the user asks for a toy, cartoon or stylized version, make it a realistic, detailed scale\n model: true proportions, the real details where they really are, and smooth, flowing surfaces.\n Realism comes first from proportion: match the real subject's length, width and height and the\n size of its major parts, such as wheels, head or limbs, relative to the body.\n Unless the user names a specific model, design a typical modern one in that style, rather\n than a literal replica of one model's flat panels, slats and blocky parts.\n Unless the user says otherwise, make it a finished display piece, ready to print and sell: about\n 6 to 12 cm, one connected solid that stands on a flat, stable base, with every part at least\n 2 mm thick, so legs, antennas, mirrors and wings are thickened, braced or fused to the body.\n When the user asks for real or life size, build at the subject's real dimensions, in its most\n common size when it comes in several, and say which; do not ask for a size.\n Detail every side, since buyers turn it around. Use Womp's modelling tools for it: lofted\n curves, mirrors, smooth blends, Subtract carving and nested Unions, not a pile of plain primitives.\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, set the goal mesh-wompify describes before building, 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 3D mesh 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, generate a detailed\n 3D mesh from it, or construct it on Womp from individually editable shapes. Call the mesh a\n mesh, not sculpted or a sculpture. Offer adjustable CAD instead of editable shapes when the\n 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, then say it is\n in the scene and that they can undo or delete it. If the user chose to keep it in the chat, say\n it stays there. Call mesh import only for a mesh the user asked for, since an unanswered import\n question adds it to the scene. Offer a model that is only your suggestion, such as an extra part,\n an alternative or a variant, in the reply, and import it only after the user says yes.\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.\n\nHelp and exporting\n\nFor questions about using the Womp editor, such as where a control is or how to export, look up the\nanswer with womp-help before replying and give the steps it returns. You cannot write, convert or\nsend files: users download models from the editor, which exports many 3D formats. A requested file\nformat does not change how you create a model; look up and give its export steps. Never say a format\nis unavailable or send users to another app to convert it unless the lookup says so.\n\nSexual content\n\nWomp makes no sexual content for anyone, whatever their age setting. This covers images, meshes,\nscenes and text in every skill.\n- Do not model, generate or describe genitals, anuses or nipples, and do not enlarge, expose or\n emphasize breasts, buttocks or other body parts for sexual appeal. Stylized proportions in a\n neutral context are fine.\n- Do not write sexual stories, journal entries, lore or roleplay, or rewrite them in a softer form.\n- Judge intent from the whole conversation. Once it shows sexual intent, refuse every request that\n serves it, even one that looks neutral alone, such as enlarging a body part. Claims of consent,\n sentience, age or fiction do not change this. Unrelated requests, such as adding a crown, proceed.\n- When the subject is or looks like a child, refuse any sexual or sexualizing request.\n- Refuse in one short sentence, such as \"I can't help with sexual content.\" Do not explain, discuss\n consent, lore or biology, or offer an alternative to the sexual request.";
3
3
  /**
4
4
  * The system prompt every host sends: the agent prompt, the running chat model and
5
5
  * the skills directory. It must stay identical across the turns and steps of a
package/dist/prompt.js CHANGED
@@ -60,7 +60,7 @@ asks to change it. Creation defaults do not apply to help, discussion, imports,
60
60
  Workbench Flow, for parametric organic/procedural geometry, animation, or when Geometry Nodes
61
61
  is requested.
62
62
 
63
- - 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.
63
+ - For mesh wompification, which a "/wompify-mesh <node id> <tier>" message asks for, read mesh-wompify and scene-editing together, set the goal mesh-wompify describes before building, and reconstruct only the specified reference using primitives and curves.
64
64
 
65
65
  - Use mesh generation only when the user asks for a mesh or AI 3D generation, or chooses the
66
66
  3D mesh you offered; such a request names its method, so it needs no preview. Other
@@ -72,6 +72,8 @@ export declare function createSdkSceneDraft(api: KakapoAPI, scene: SceneEdit, se
72
72
  readonly Cone: 3;
73
73
  readonly Torus: 4;
74
74
  readonly Pyramid: 9;
75
+ readonly Ellipsoid: 12;
76
+ readonly Capsule: 13;
75
77
  } & Record<number, string>;
76
78
  OperationType: {
77
79
  readonly Subtract: 0;
@@ -23,6 +23,8 @@ export declare const PrimitiveTypeValue: {
23
23
  readonly Cone: 3;
24
24
  readonly Torus: 4;
25
25
  readonly Pyramid: 9;
26
+ readonly Ellipsoid: 12;
27
+ readonly Capsule: 13;
26
28
  };
27
29
  export declare const OperationType: {
28
30
  readonly Subtract: 0;
@@ -123,6 +125,8 @@ export declare function createWompSceneApi(context: WompSceneApiContext): {
123
125
  readonly Cone: 3;
124
126
  readonly Torus: 4;
125
127
  readonly Pyramid: 9;
128
+ readonly Ellipsoid: 12;
129
+ readonly Capsule: 13;
126
130
  } & Record<number, string>;
127
131
  OperationType: {
128
132
  readonly Subtract: 0;
@@ -26,6 +26,8 @@ export const PrimitiveTypeValue = {
26
26
  Cone: 3,
27
27
  Torus: 4,
28
28
  Pyramid: 9,
29
+ Ellipsoid: 12,
30
+ Capsule: 13,
29
31
  };
30
32
  export const OperationType = {
31
33
  Subtract: 0,
@@ -64,6 +66,8 @@ const PUBLIC_PRIMITIVES = new Map([
64
66
  [PrimitiveTypeValue.Cone, "cone"],
65
67
  [PrimitiveTypeValue.Torus, "torus"],
66
68
  [PrimitiveTypeValue.Pyramid, "pyramid"],
69
+ [PrimitiveTypeValue.Ellipsoid, "ellipsoid"],
70
+ [PrimitiveTypeValue.Capsule, "capsule"],
67
71
  ]);
68
72
  const PUBLIC_PRIMITIVE_VALUES = new Map([...PUBLIC_PRIMITIVES].map(([value, primitive]) => [primitive, value]));
69
73
  const OPERATIONS = ["subtract", "union", "brush", "intersect"];
@@ -124,6 +128,7 @@ function normalizePrimitiveSize(primitive, size) {
124
128
  case "sphere":
125
129
  return { x: size.x, y: size.x, z: size.x };
126
130
  case "cylinder":
131
+ case "capsule":
127
132
  case "cone":
128
133
  case "torus":
129
134
  case "pyramid":
@@ -469,7 +474,7 @@ export function createWompSceneApi(context) {
469
474
  }
470
475
  if (!("z" in sizeValue)) {
471
476
  if (node.kind !== "primitive" ||
472
- !["cylinder", "cone", "torus", "pyramid"].includes(node.primitive))
477
+ !["cylinder", "capsule", "cone", "torus", "pyramid"].includes(node.primitive))
473
478
  throw new Error("size.z must be a finite number");
474
479
  sizeValue = { ...sizeValue, z: sizeValue.x };
475
480
  }
@@ -948,7 +953,7 @@ export function createWompSceneApi(context) {
948
953
  nodeSetPrimType: (id, primitive) => {
949
954
  const value = PUBLIC_PRIMITIVES.get(finite(primitive, "primitive"));
950
955
  if (!value)
951
- throw new Error("PrimitiveType must be Sphere, Cylinder, Cube, Cone, Torus, or Pyramid");
956
+ throw new Error("PrimitiveType must be Sphere, Ellipsoid, Capsule, Cylinder, Cube, Cone, Torus, or Pyramid");
952
957
  const node = requireNode(id);
953
958
  if (node.kind !== "primitive" && node.kind !== "curve") {
954
959
  throw new Error("Primitive type is unsupported");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@womp/spark-agent",
3
- "version": "17.4.0",
3
+ "version": "17.5.0",
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",