@womp/spark-agent 15.2.0 → 15.4.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 +35 -0
- package/dist/agent-run.d.ts +1 -1
- package/dist/capabilities/materials.js +17 -15
- package/dist/generated/account-declarations.d.ts +1 -1
- package/dist/generated/account-declarations.js +1 -1
- package/dist/generated/asset-import-declarations.d.ts +1 -1
- package/dist/generated/asset-import-declarations.js +1 -1
- package/dist/generated/assets-declarations.d.ts +1 -1
- package/dist/generated/assets-declarations.js +1 -1
- package/dist/generated/flow-declarations.d.ts +1 -1
- package/dist/generated/flow-declarations.js +1 -1
- package/dist/generated/flow-runs-declarations.d.ts +1 -1
- package/dist/generated/flow-runs-declarations.js +1 -1
- package/dist/generated/geometry-declarations.d.ts +1 -1
- package/dist/generated/geometry-declarations.js +1 -1
- package/dist/generated/knowledge-declarations.d.ts +1 -1
- package/dist/generated/knowledge-declarations.js +1 -1
- package/dist/generated/materials-declarations.d.ts +1 -1
- package/dist/generated/materials-declarations.js +1 -1
- package/dist/generated/openscad-declarations.d.ts +1 -1
- package/dist/generated/openscad-declarations.js +1 -1
- package/dist/generated/operations-declarations.d.ts +1 -1
- package/dist/generated/operations-declarations.js +1 -1
- package/dist/generated/print-declarations.d.ts +1 -1
- package/dist/generated/print-declarations.js +1 -1
- package/dist/generated/scene-declarations.d.ts +1 -1
- package/dist/generated/scene-declarations.js +1 -1
- package/dist/generated/texture-import-declarations.d.ts +1 -1
- package/dist/generated/texture-import-declarations.js +1 -1
- package/dist/intent-bench-cases.d.ts +8 -1
- package/dist/intent-bench-cases.js +90 -0
- package/dist/intent-bench-cli.js +1 -1
- package/dist/intent-bench.js +3 -0
- package/dist/materials/flowir.d.ts +3 -2
- package/dist/materials/flowir.js +27 -19
- package/dist/materials/lift.js +11 -6
- package/dist/materials/schemas/materials-dialect.json +26 -248
- package/dist/models.d.ts +7 -0
- package/dist/models.js +9 -0
- package/dist/pricing.js +5 -0
- package/dist/prompt.d.ts +1 -1
- package/dist/prompt.js +16 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,41 @@ Notable changes to `@womp/spark-agent`, newest first. Versions follow
|
|
|
4
4
|
[Semantic Versioning](https://semver.org/). Add an entry with each version bump; describe what
|
|
5
5
|
changed for hosts and users, and how to migrate across breaking changes.
|
|
6
6
|
|
|
7
|
+
## 15.4.0 — 2026-10-27
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- GPT-6.1 Terra (`gpt-6.1-terra`) is a Spark chat model, with its pricing.
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- The `procedural-materials` skill (v20) is about 24% smaller (31.4 KB to 23.9 KB as `read_skill`
|
|
16
|
+
returns it): its guidance keeps every rule and number in fewer words, the FlowIR reference
|
|
17
|
+
documents math in two nodes instead of 29, and its declarations are compact (below).
|
|
18
|
+
- Material FlowIR writes math as `Math Operation=<op> First=… Second=…` and
|
|
19
|
+
`ScalarMath Operation=Add|Subtract|Multiply|Divide First=… Second=…`, matching the native Math
|
|
20
|
+
node. `Clamp` is available for every operation, and operations that read two operands reject a
|
|
21
|
+
missing `Second`. `readProgram` returns this form. The earlier per-operation nodes, such as
|
|
22
|
+
`MathSine Value=…` or `ScalarAdd`, no longer compile.
|
|
23
|
+
- Every skill's generated TypeScript declarations are about 21% smaller (49.6 KB to 39.2 KB across
|
|
24
|
+
all skills): keys are unquoted, optional members omit `| undefined`, `false | true` is `boolean`,
|
|
25
|
+
arrays of simple types use `T[]`, and objects that fit on one line stay there. The declared types
|
|
26
|
+
are unchanged; hosts that pin skill text in parity fixtures need to update them.
|
|
27
|
+
|
|
28
|
+
## 15.3.0 — 2026-10-27
|
|
29
|
+
|
|
30
|
+
### Changed
|
|
31
|
+
|
|
32
|
+
- Spark makes no sexual content for any user, whatever their 18+ setting: no sexual anatomy, no
|
|
33
|
+
enlarging body parts for sexual appeal, no sexual stories or lore. It judges intent from the
|
|
34
|
+
whole conversation, so a neutral-looking request such as "make the butt bigger" is refused in a
|
|
35
|
+
sexual thread, and consent claims do not change that; unrelated requests proceed. Refusals are one
|
|
36
|
+
sentence, without a lecture or a substitute. Before, gpt-6-luna enlarged body parts on request in
|
|
37
|
+
beta thread 2805085 and generated images for "make a penis" and a sexualized child-coded figure.
|
|
38
|
+
The rule is static prompt text, so prompt caching is unaffected.
|
|
39
|
+
- `intent-bench` has a `safety` group: the requests of beta thread 2805085 replayed turn by turn,
|
|
40
|
+
fresh explicit and child-coded requests, and neutral controls. Cases can seed scene nodes.
|
|
41
|
+
|
|
7
42
|
## 15.2.0 — 2026-10-26
|
|
8
43
|
|
|
9
44
|
### Changed
|
package/dist/agent-run.d.ts
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-sol" | "gpt-6-luna" | "gemini-3.8-flash" | "claude-opus-5-5" | "claude-fable-5";
|
|
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";
|
|
12
12
|
reasoningEffort: ReasoningEffort;
|
|
13
13
|
};
|
|
14
14
|
} | null;
|
|
@@ -8,22 +8,24 @@ export function createMaterialsCapability(host, captures) {
|
|
|
8
8
|
skills: [
|
|
9
9
|
{
|
|
10
10
|
name: "procedural-materials",
|
|
11
|
-
version: "
|
|
11
|
+
version: "20",
|
|
12
12
|
description: "Author procedural surfaces with FlowIR, calibrate mapping, edit controls, clone, assign and inspect materials.",
|
|
13
|
-
instructions: `Use womp.materials for procedural
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
1.
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
13
|
+
instructions: `Use womp.materials for procedural surfaces, written as FlowIR (reference below); listed nodes need no catalog inspection.
|
|
14
|
+
- writeProgram({cloneFrom,layerIndex:0,source,objectIds}) writes an isolated copy, shader storage included. {materialId,layerIndex,source} edits that layer for every user, including procedural geometry references read() does not list. Base properties and other layers are kept.
|
|
15
|
+
- readProgram(materialId,layerIndex) returns editable source, or null with diagnostics; keep unrelated statements and parameter names.
|
|
16
|
+
- Params become panel controls whose overrides survive rewrites by name and type (resets are reported); consts stay internal. Each write returns the current parameter handles: refine controls alone with write({materialId,constants}) using them, keeping the counterpart value/color field; null resets one and returns a new handle.
|
|
17
|
+
- ScalarNoise suits grayscale fields, VectorNoise coordinate distortion, ScalarMath scalar controls. catalog({includeTextures:true}) lists PredefinedTexture paths (refreshTextures after resource changes). ColorRamp stops and ProjectionModeSelector options must be literals.
|
|
18
|
+
Coordinates: public X is renderer -Z, Z is renderer -X; 1 world unit is 25 mm; object positions follow ancestor transforms. Compensate non-uniform dimensions in the mapping, never in geometry, keeping feature size physical, channels aligned and only intended directional stretch.
|
|
19
|
+
Colors are linear RGB 0..1: decode display colors with (c/255)**2.2. IncomingMaterial colors are display-encoded in layer 0 (decode with Math Operation=Power Second=2.2 before use) and linear in later layers; wire decoded colors through to change only finish.
|
|
20
|
+
Aim for the highest fidelity and detail supported:
|
|
21
|
+
1. Survey targets in one execution: IDs, material users, dimensions, bounds, ancestor transforms.
|
|
22
|
+
2. Probe each new material in one execution: write({cloneFrom:materialId,layers:[await womp.materials.recipe({pattern:'grid',coordinateSpace:'object',featureSize:1,colorA:{x:0.45,y:0.35,z:0.2},colorB:{x:0.02,y:0.02,z:0.02},roughnessA:0.45,roughnessB:0.45,relief:'height',reliefScale:0.0003})],objectIds}) with a base color suited to the target, then inspect. Lines every 1 unit, fainter every 0.1, reveal spacing, stretch, orientation and relief; fix unintended distortion in the mapping. reliefScale is a probe strength; the final OutputHeight.Scale depends on height slope and feature spacing. Then replace the probe completely, keeping other users and assignments.
|
|
23
|
+
3. Plan broad variation, defining structure and fine grain: each one's scale, shape, direction, distribution, edges, contrast and color/roughness/relief role. Text overrides the reference; keep its other features and separate its lighting from intrinsic structure. Give microstructure its own scale and strength.
|
|
24
|
+
4. Build every component and channel in one program with explicit math, palettes and masks. For textured surfaces apply once, in this first build only: bump ×1.25, palette saturation ×1.15 and lightness ×0.95 (in display encoding, then decode), scalar feature contrast ×1.15 around 0.5 clamped to 0..1. Explicit flat, muted or pale requests win; keep reference hues and the requested finish. HSL inputs are additive offsets.
|
|
25
|
+
Weight defining and fine-noise height separately: raising all bump erases coherent highlights and turns gloss matte. Finer spacing, sharper edges and more octaves strengthen normals at the same Scale. Tune saturation/lightness apart from coverage and edge contrast, with bounded remaps before palettes or masked blends, without clipping. Keep intrinsic color apart from illumination, preserving natural low-saturation features. Use roughness variation for finish breakup and signed height for ridges and cavities; a dark spot alone is not a pit.
|
|
26
|
+
5. Inspect each candidate in the same execution as its write: inspect() waits for compilation (status() proves nothing visual); read only queueSettled, timedOut, status and the frames. Use overall, close and grazing views under the existing lighting. Match contrast and reflectivity through highlight width, strength and breakup. Confirm every planned feature is visibly resolved (a fine-noise node is not fine grain) and defining relief reads through lighting, not only color; strength or octaves cannot resolve subpixel features. If relief kills the requested sheen, rebalance its height or frequency before roughness.
|
|
27
|
+
6. Refine: name the largest visible mismatch and the expected correction. Wrong shape or topology needs construction changes; wrong spacing, color, roughness or relief needs parameter changes, made together through the handles. For structural edits read, patch, write and inspect in one execution; reread only unknown materials or stale handles. Compare with the best inspected candidate at the same views and restore it if a defining feature weakens. When tuning stops helping, change construction. Stop when the result meets the request or edits stop helping; never end on an uninspected edit, and check assignment and preservation in the final inspection.
|
|
28
|
+
Print only what the next step needs; keep full graphs and source local.
|
|
27
29
|
|
|
28
30
|
${materialFlowirReference()}`,
|
|
29
31
|
declarations: WOMP_MATERIALS_DECLARATIONS,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const WOMP_ACCOUNT_DECLARATIONS = "declare const womp: { account: {\
|
|
1
|
+
export declare const WOMP_ACCOUNT_DECLARATIONS = "declare const womp: { account: {\nread: ((options: {\nsections: Array<\"profile\" | \"teams\" | \"credits\" | \"subscription\" | \"billing\" | \"orders\" | \"cart\" | \"projects\" | \"notifications\" | \"workflows\">;\nfrom?: number;\ncount?: number;\n}) => Promise<{\nprovenance: { kind: \"live\"; observedAt: string; } | { kind: \"fixture\"; profile: \"demo-account\"; fictional: true; };\nprofile?: { status: \"unavailable\"; reason: string; } | {\nstatus: \"available\";\nscope: { userId: string; teamId: null | string; };\ndata: {\nuserId: string;\nname: string;\nemail?: null | string;\nbiography?: null | string;\npicture?: null | string;\nisPro?: boolean;\nsubStatus?: null | string;\nverified?: boolean;\ntier?: number;\nroles?: string;\npermissions?: string;\nprojectCount?: number;\npublicProjectCount?: number;\nfollowerCount?: number;\nfolloweeCount?: number;\ntotalLikeCount?: number;\npoint?: number;\nthisWeekPoint?: number;\ncreatedAt?: string;\nlastEditedAt?: string;\naddresses?: {\nname: string;\ncity: string;\ncountry: string;\nline1: string;\nline2?: null | string;\npostalCode: string;\nstate?: null | string;\nphoneNumber?: null | string;\n}[];\nbadges?: { id: string; description: string; symbol: string; }[];\n};\n};\nteams?: { status: \"unavailable\"; reason: string; } | {\nstatus: \"available\";\nscope: { userId: string; teamId: null | string; };\ndata: {\nteamId: string;\nname: string;\nroles: string;\naccepted: boolean;\nmemberCount?: number;\nseats?: number;\n}[];\n};\ncredits?: { status: \"unavailable\"; reason: string; } | {\nstatus: \"available\";\nscope: { userId: string; teamId: null | string; };\ndata: {\nunit: \"aip\" | \"3dpd\";\nscope: { userId: string; teamId: null | string; };\navailable: number;\nsubscription: number;\nperiodical: number;\ncanUseSubscriptionCredit: boolean;\nbuckets: {\nnet: number;\noriginalNet: number;\nactiveSubscriptionId: null | string;\nperiodicalFrom: null | string;\ntransactionId: null | string;\ntransactionFrom: null | string;\n}[];\n}[];\n};\nsubscription?: { status: \"unavailable\"; reason: string; } | {\nstatus: \"available\";\nscope: { userId: string; teamId: null | string; };\ndata: null | {\nid: number;\nstatus: string;\nperiod: string;\ncreatedAt: string;\ntrialEndAt?: null | string;\nendAt?: null | string;\ncancelAt?: null | string;\ncanceledAt?: null | string;\nendedAt?: null | string;\nprice?: number;\n};\n};\nbilling?: { status: \"unavailable\"; reason: string; } | {\nstatus: \"available\";\nscope: { userId: string; teamId: null | string; };\ndata: {\nbalance: number;\nhistory: {\nitems: {\ninvoiceId: string;\namountPaid: number;\npaymentDate: string;\npaymentStatus: string;\ndescription: null | string;\nvia: string;\n}[];\nfrom: number;\nnextFrom: null | number;\ntotalCount?: number;\n};\nupcoming: null | {\namountDue: number;\ntotal: number;\ndueDate: string;\nlines: { amount: number; description: null | string; }[];\n};\npaymentMethods: { type: string; brand?: string; last4?: string; default: boolean; status?: string; }[];\n};\n};\norders?: { status: \"unavailable\"; reason: string; } | {\nstatus: \"available\";\nscope: { userId: string; teamId: null | string; };\ndata: {\nitems: {\nid: number;\nstatus: number;\nstatusName: string;\ntotalCost: number;\nshippingCost: number;\nshippingService?: null | string;\ncreatedAt: string;\ndeliveredAt?: null | string;\nclientShippingStartedAt?: null | string;\nclientShippingDays?: null | number;\norderItems: {\nid: number;\ntitle: string;\nprojectId: null | number;\nprojectTitle?: null | string;\nquantity: number;\nstatus: number;\nmaterialName?: null | string;\ncolor?: null | string;\nsurface?: null | string;\npreviewUrl?: null | string;\npricings?: null | { selected: boolean; salePrice: number; discount?: number; needPro?: boolean; }[];\n}[];\naddrTo?: null | {\nname: string;\ncity: string;\ncountry: string;\nline1: string;\nline2?: null | string;\npostalCode: string;\nstate?: null | string;\nphoneNumber?: null | string;\n};\nshipments?: { carrier?: string; trackingNumber: string; trackingStatus: string; }[];\n}[];\nfrom: number;\nnextFrom: null | number;\ntotalCount?: number;\n};\n};\ncart?: { status: \"unavailable\"; reason: string; } | {\nstatus: \"available\";\nscope: { userId: string; teamId: null | string; };\ndata: {\nitems: {\nid: number;\ntitle: string;\nprojectId: null | number;\nprojectTitle?: null | string;\nquantity: number;\nstatus: number;\nmaterialName?: null | string;\ncolor?: null | string;\nsurface?: null | string;\npreviewUrl?: null | string;\npricings?: null | { selected: boolean; salePrice: number; discount?: number; needPro?: boolean; }[];\n}[];\nfrom: number;\nnextFrom: null | number;\ntotalCount?: number;\n};\n};\nprojects?: { status: \"unavailable\"; reason: string; } | {\nstatus: \"available\";\nscope: { userId: string; teamId: null | string; };\ndata: {\nitems: {\nid: number;\ntitle: string;\nuserId?: string;\nteamId?: null | string;\npublic: boolean;\ncreatedAt?: string;\nupdatedAt?: string;\nthumbnailUrl?: null | string;\nlabels?: string[];\n}[];\nfrom: number;\nnextFrom: null | number;\ntotalCount?: number;\n};\n};\nnotifications?: { status: \"unavailable\"; reason: string; } | {\nstatus: \"available\";\nscope: { userId: string; teamId: null | string; };\ndata: {\nitems: {\nid: number;\ntype: string;\nread: boolean;\nseen: boolean;\ncreatedAt: string;\ndetails: { [key: string]: unknown; };\n}[];\nfrom: number;\nnextFrom: null | number;\ntotalCount?: number;\n};\n};\nworkflows?: { status: \"unavailable\"; reason: string; } | {\nstatus: \"available\";\nscope: { userId: string; teamId: null | string; };\ndata: {\nitems: { id: number; name: string; type: string; description?: null | string; capabilities?: string[]; }[];\nfrom: number;\nnextFrom: null | number;\ntotalCount?: number;\n};\n};\n}>);\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_ACCOUNT_DECLARATIONS = "declare const womp: { account: {\
|
|
3
|
+
export const WOMP_ACCOUNT_DECLARATIONS = "declare const womp: { account: {\nread: ((options: {\nsections: Array<\"profile\" | \"teams\" | \"credits\" | \"subscription\" | \"billing\" | \"orders\" | \"cart\" | \"projects\" | \"notifications\" | \"workflows\">;\nfrom?: number;\ncount?: number;\n}) => Promise<{\nprovenance: { kind: \"live\"; observedAt: string; } | { kind: \"fixture\"; profile: \"demo-account\"; fictional: true; };\nprofile?: { status: \"unavailable\"; reason: string; } | {\nstatus: \"available\";\nscope: { userId: string; teamId: null | string; };\ndata: {\nuserId: string;\nname: string;\nemail?: null | string;\nbiography?: null | string;\npicture?: null | string;\nisPro?: boolean;\nsubStatus?: null | string;\nverified?: boolean;\ntier?: number;\nroles?: string;\npermissions?: string;\nprojectCount?: number;\npublicProjectCount?: number;\nfollowerCount?: number;\nfolloweeCount?: number;\ntotalLikeCount?: number;\npoint?: number;\nthisWeekPoint?: number;\ncreatedAt?: string;\nlastEditedAt?: string;\naddresses?: {\nname: string;\ncity: string;\ncountry: string;\nline1: string;\nline2?: null | string;\npostalCode: string;\nstate?: null | string;\nphoneNumber?: null | string;\n}[];\nbadges?: { id: string; description: string; symbol: string; }[];\n};\n};\nteams?: { status: \"unavailable\"; reason: string; } | {\nstatus: \"available\";\nscope: { userId: string; teamId: null | string; };\ndata: {\nteamId: string;\nname: string;\nroles: string;\naccepted: boolean;\nmemberCount?: number;\nseats?: number;\n}[];\n};\ncredits?: { status: \"unavailable\"; reason: string; } | {\nstatus: \"available\";\nscope: { userId: string; teamId: null | string; };\ndata: {\nunit: \"aip\" | \"3dpd\";\nscope: { userId: string; teamId: null | string; };\navailable: number;\nsubscription: number;\nperiodical: number;\ncanUseSubscriptionCredit: boolean;\nbuckets: {\nnet: number;\noriginalNet: number;\nactiveSubscriptionId: null | string;\nperiodicalFrom: null | string;\ntransactionId: null | string;\ntransactionFrom: null | string;\n}[];\n}[];\n};\nsubscription?: { status: \"unavailable\"; reason: string; } | {\nstatus: \"available\";\nscope: { userId: string; teamId: null | string; };\ndata: null | {\nid: number;\nstatus: string;\nperiod: string;\ncreatedAt: string;\ntrialEndAt?: null | string;\nendAt?: null | string;\ncancelAt?: null | string;\ncanceledAt?: null | string;\nendedAt?: null | string;\nprice?: number;\n};\n};\nbilling?: { status: \"unavailable\"; reason: string; } | {\nstatus: \"available\";\nscope: { userId: string; teamId: null | string; };\ndata: {\nbalance: number;\nhistory: {\nitems: {\ninvoiceId: string;\namountPaid: number;\npaymentDate: string;\npaymentStatus: string;\ndescription: null | string;\nvia: string;\n}[];\nfrom: number;\nnextFrom: null | number;\ntotalCount?: number;\n};\nupcoming: null | {\namountDue: number;\ntotal: number;\ndueDate: string;\nlines: { amount: number; description: null | string; }[];\n};\npaymentMethods: { type: string; brand?: string; last4?: string; default: boolean; status?: string; }[];\n};\n};\norders?: { status: \"unavailable\"; reason: string; } | {\nstatus: \"available\";\nscope: { userId: string; teamId: null | string; };\ndata: {\nitems: {\nid: number;\nstatus: number;\nstatusName: string;\ntotalCost: number;\nshippingCost: number;\nshippingService?: null | string;\ncreatedAt: string;\ndeliveredAt?: null | string;\nclientShippingStartedAt?: null | string;\nclientShippingDays?: null | number;\norderItems: {\nid: number;\ntitle: string;\nprojectId: null | number;\nprojectTitle?: null | string;\nquantity: number;\nstatus: number;\nmaterialName?: null | string;\ncolor?: null | string;\nsurface?: null | string;\npreviewUrl?: null | string;\npricings?: null | { selected: boolean; salePrice: number; discount?: number; needPro?: boolean; }[];\n}[];\naddrTo?: null | {\nname: string;\ncity: string;\ncountry: string;\nline1: string;\nline2?: null | string;\npostalCode: string;\nstate?: null | string;\nphoneNumber?: null | string;\n};\nshipments?: { carrier?: string; trackingNumber: string; trackingStatus: string; }[];\n}[];\nfrom: number;\nnextFrom: null | number;\ntotalCount?: number;\n};\n};\ncart?: { status: \"unavailable\"; reason: string; } | {\nstatus: \"available\";\nscope: { userId: string; teamId: null | string; };\ndata: {\nitems: {\nid: number;\ntitle: string;\nprojectId: null | number;\nprojectTitle?: null | string;\nquantity: number;\nstatus: number;\nmaterialName?: null | string;\ncolor?: null | string;\nsurface?: null | string;\npreviewUrl?: null | string;\npricings?: null | { selected: boolean; salePrice: number; discount?: number; needPro?: boolean; }[];\n}[];\nfrom: number;\nnextFrom: null | number;\ntotalCount?: number;\n};\n};\nprojects?: { status: \"unavailable\"; reason: string; } | {\nstatus: \"available\";\nscope: { userId: string; teamId: null | string; };\ndata: {\nitems: {\nid: number;\ntitle: string;\nuserId?: string;\nteamId?: null | string;\npublic: boolean;\ncreatedAt?: string;\nupdatedAt?: string;\nthumbnailUrl?: null | string;\nlabels?: string[];\n}[];\nfrom: number;\nnextFrom: null | number;\ntotalCount?: number;\n};\n};\nnotifications?: { status: \"unavailable\"; reason: string; } | {\nstatus: \"available\";\nscope: { userId: string; teamId: null | string; };\ndata: {\nitems: {\nid: number;\ntype: string;\nread: boolean;\nseen: boolean;\ncreatedAt: string;\ndetails: { [key: string]: unknown; };\n}[];\nfrom: number;\nnextFrom: null | number;\ntotalCount?: number;\n};\n};\nworkflows?: { status: \"unavailable\"; reason: string; } | {\nstatus: \"available\";\nscope: { userId: string; teamId: null | string; };\ndata: {\nitems: { id: number; name: string; type: string; description?: null | string; capabilities?: string[]; }[];\nfrom: number;\nnextFrom: null | number;\ntotalCount?: number;\n};\n};\n}>);\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 +1 @@
|
|
|
1
|
-
export declare const WOMP_ASSET_IMPORT_DECLARATIONS = "declare const womp: { assets: {\
|
|
1
|
+
export declare const WOMP_ASSET_IMPORT_DECLARATIONS = "declare const womp: { assets: {\nimportMesh: ((request: {\nkey: string;\nsource: { id: string; mediaType: string; name?: string; };\ndestination: \"scene\" | \"library\";\n} & { ifNoAnswer?: \"import\" | \"skip\"; }) => Promise<{\nkey: string;\nstatus: \"ready\" | \"completed\" | \"unknown\" | \"processing\" | \"partial\" | \"cancelled\" | \"failed\";\ntasks: { id: number; projectId: null | number; status: string; fileName?: string; error?: string; }[];\nassets: { id: number; projectId: null | number; type: \"mesh\" | \"field\" | \"decal\"; }[];\nobjectIds: number[];\nomittedFiles?: { fileName: string; projectId: null | number; }[];\nreason?: string;\nunanswered?: true;\n}>);\nretryMeshImport: ((request: { key: string; fileName: string; }) => Promise<{\nkey: string;\nstatus: \"ready\" | \"completed\" | \"unknown\" | \"processing\" | \"partial\" | \"cancelled\" | \"failed\";\ntasks: { id: number; projectId: null | number; status: string; fileName?: string; error?: string; }[];\nassets: { id: number; projectId: null | number; type: \"mesh\" | \"field\" | \"decal\"; }[];\nobjectIds: number[];\nomittedFiles?: { fileName: string; projectId: null | number; }[];\nreason?: string;\nunanswered?: true;\n}>);\nimportImage: ((request: {\nkey: string;\nsource: { id: string; mediaType: string; name?: string; };\ndestination: \"scene\" | \"library\";\n} & { kind: \"image-plane\" | \"sticker\"; removeBackground?: boolean; }) => Promise<{\nkey: string;\nstatus: \"ready\" | \"completed\" | \"unknown\" | \"processing\" | \"partial\" | \"cancelled\" | \"failed\";\ntasks: { id: number; projectId: null | number; status: string; fileName?: string; error?: string; }[];\nassets: { id: number; projectId: null | number; type: \"mesh\" | \"field\" | \"decal\"; }[];\nobjectIds: number[];\nomittedFiles?: { fileName: string; projectId: null | number; }[];\nreason?: string;\nunanswered?: true;\n}>);\nreadImport: ((key: string) => Promise<{\nkey: string;\nstatus: \"ready\" | \"completed\" | \"unknown\" | \"processing\" | \"partial\" | \"cancelled\" | \"failed\";\ntasks: { id: number; projectId: null | number; status: string; fileName?: string; error?: string; }[];\nassets: { id: number; projectId: null | number; type: \"mesh\" | \"field\" | \"decal\"; }[];\nobjectIds: number[];\nomittedFiles?: { fileName: string; projectId: null | number; }[];\nreason?: string;\nunanswered?: true;\n}>);\nfinishImport: ((key: string, options?: { timeoutMs?: number; }) => Promise<{\nkey: string;\nstatus: \"ready\" | \"completed\" | \"unknown\" | \"processing\" | \"partial\" | \"cancelled\" | \"failed\";\ntasks: { id: number; projectId: null | number; status: string; fileName?: string; error?: string; }[];\nassets: { id: number; projectId: null | number; type: \"mesh\" | \"field\" | \"decal\"; }[];\nobjectIds: number[];\nomittedFiles?: { fileName: string; projectId: null | number; }[];\nreason?: string;\nunanswered?: true;\n}>);\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_ASSET_IMPORT_DECLARATIONS = "declare const womp: { assets: {\
|
|
3
|
+
export const WOMP_ASSET_IMPORT_DECLARATIONS = "declare const womp: { assets: {\nimportMesh: ((request: {\nkey: string;\nsource: { id: string; mediaType: string; name?: string; };\ndestination: \"scene\" | \"library\";\n} & { ifNoAnswer?: \"import\" | \"skip\"; }) => Promise<{\nkey: string;\nstatus: \"ready\" | \"completed\" | \"unknown\" | \"processing\" | \"partial\" | \"cancelled\" | \"failed\";\ntasks: { id: number; projectId: null | number; status: string; fileName?: string; error?: string; }[];\nassets: { id: number; projectId: null | number; type: \"mesh\" | \"field\" | \"decal\"; }[];\nobjectIds: number[];\nomittedFiles?: { fileName: string; projectId: null | number; }[];\nreason?: string;\nunanswered?: true;\n}>);\nretryMeshImport: ((request: { key: string; fileName: string; }) => Promise<{\nkey: string;\nstatus: \"ready\" | \"completed\" | \"unknown\" | \"processing\" | \"partial\" | \"cancelled\" | \"failed\";\ntasks: { id: number; projectId: null | number; status: string; fileName?: string; error?: string; }[];\nassets: { id: number; projectId: null | number; type: \"mesh\" | \"field\" | \"decal\"; }[];\nobjectIds: number[];\nomittedFiles?: { fileName: string; projectId: null | number; }[];\nreason?: string;\nunanswered?: true;\n}>);\nimportImage: ((request: {\nkey: string;\nsource: { id: string; mediaType: string; name?: string; };\ndestination: \"scene\" | \"library\";\n} & { kind: \"image-plane\" | \"sticker\"; removeBackground?: boolean; }) => Promise<{\nkey: string;\nstatus: \"ready\" | \"completed\" | \"unknown\" | \"processing\" | \"partial\" | \"cancelled\" | \"failed\";\ntasks: { id: number; projectId: null | number; status: string; fileName?: string; error?: string; }[];\nassets: { id: number; projectId: null | number; type: \"mesh\" | \"field\" | \"decal\"; }[];\nobjectIds: number[];\nomittedFiles?: { fileName: string; projectId: null | number; }[];\nreason?: string;\nunanswered?: true;\n}>);\nreadImport: ((key: string) => Promise<{\nkey: string;\nstatus: \"ready\" | \"completed\" | \"unknown\" | \"processing\" | \"partial\" | \"cancelled\" | \"failed\";\ntasks: { id: number; projectId: null | number; status: string; fileName?: string; error?: string; }[];\nassets: { id: number; projectId: null | number; type: \"mesh\" | \"field\" | \"decal\"; }[];\nobjectIds: number[];\nomittedFiles?: { fileName: string; projectId: null | number; }[];\nreason?: string;\nunanswered?: true;\n}>);\nfinishImport: ((key: string, options?: { timeoutMs?: number; }) => Promise<{\nkey: string;\nstatus: \"ready\" | \"completed\" | \"unknown\" | \"processing\" | \"partial\" | \"cancelled\" | \"failed\";\ntasks: { id: number; projectId: null | number; status: string; fileName?: string; error?: string; }[];\nassets: { id: number; projectId: null | number; type: \"mesh\" | \"field\" | \"decal\"; }[];\nobjectIds: number[];\nomittedFiles?: { fileName: string; projectId: null | number; }[];\nreason?: string;\nunanswered?: true;\n}>);\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 +1 @@
|
|
|
1
|
-
export declare const WOMP_ASSETS_DECLARATIONS = "declare const womp: { assets: {\
|
|
1
|
+
export declare const WOMP_ASSETS_DECLARATIONS = "declare const womp: { assets: {\nlist: ((options?: {\nfrom?: number;\ncount?: number;\nmessageId?: number;\nkind?: \"mesh\" | \"image\" | \"file\";\nsource?: \"uploaded\" | \"input\" | \"generated\" | \"agent\";\n}) => Promise<{\nitems: {\nartifact: { id: string; mediaType: string; name?: string; };\nmessageId: number;\nkind: \"mesh\" | \"image\" | \"file\";\nsource: \"uploaded\" | \"input\" | \"generated\" | \"agent\";\n}[];\nnextFrom: null | number;\n}>);\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_ASSETS_DECLARATIONS = "declare const womp: { assets: {\
|
|
3
|
+
export const WOMP_ASSETS_DECLARATIONS = "declare const womp: { assets: {\nlist: ((options?: {\nfrom?: number;\ncount?: number;\nmessageId?: number;\nkind?: \"mesh\" | \"image\" | \"file\";\nsource?: \"uploaded\" | \"input\" | \"generated\" | \"agent\";\n}) => Promise<{\nitems: {\nartifact: { id: string; mediaType: string; name?: string; };\nmessageId: number;\nkind: \"mesh\" | \"image\" | \"file\";\nsource: \"uploaded\" | \"input\" | \"generated\" | \"agent\";\n}[];\nnextFrom: null | number;\n}>);\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 +1 @@
|
|
|
1
|
-
export declare const WOMP_FLOW_DECLARATIONS = "declare const womp: { flow: {\
|
|
1
|
+
export declare const WOMP_FLOW_DECLARATIONS = "declare const womp: { flow: {\nread: (() => Promise<{\nflowId: string;\nsource: null | string;\nrevision: string;\npreservedInputs: { [key: string]: string[]; };\ndiagnostics: string[];\n}>);\nwrite: ((options: { source: string; expectedRevision: string; }) => Promise<{\nstatus: \"applied\" | \"rejected\" | \"unchanged\";\nflowId: string;\nrevision: string;\ndiagnostics: string[];\n}>);\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_FLOW_DECLARATIONS = "declare const womp: { flow: {\
|
|
3
|
+
export const WOMP_FLOW_DECLARATIONS = "declare const womp: { flow: {\nread: (() => Promise<{\nflowId: string;\nsource: null | string;\nrevision: string;\npreservedInputs: { [key: string]: string[]; };\ndiagnostics: string[];\n}>);\nwrite: ((options: { source: string; expectedRevision: string; }) => Promise<{\nstatus: \"applied\" | \"rejected\" | \"unchanged\";\nflowId: string;\nrevision: string;\ndiagnostics: string[];\n}>);\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 +1 @@
|
|
|
1
|
-
export declare const WOMP_FLOW_RUNS_DECLARATIONS = "declare const womp: { flowRuns: {\
|
|
1
|
+
export declare const WOMP_FLOW_RUNS_DECLARATIONS = "declare const womp: { flowRuns: {\ndescribe: (() => Promise<{\nprojectId: number;\nsnapshotId: string;\ninputs: { nodeId: string; typeId: string; valueType: string; value: unknown; required: boolean; }[];\noutputs: { nodeId: string; typeId: string; }[];\nliveRun: null | { runId: string; trigger: string; };\n}>);\nrun: ((options?: { inputs?: { [key: string]: unknown; }; copy?: boolean; deleteCopy?: boolean; }) => Promise<{\nrunId: string;\nstatus: string;\nrepeated: boolean;\nprojectId: number;\nsourceProjectId: null | number;\nprojectUrl: null | string;\ndeleteCopy: boolean;\ncopyDeletedAt: null | string;\nfailedNodes?: { nodeId: string; label: string; reason?: string; }[];\n}>);\nstatus: ((runId: string) => Promise<{\nrunId: string;\nstatus: string;\noutputs: unknown;\nerror: null | string;\nerrorCode: null | string;\nreported: null | \"now\" | \"earlier\";\nprojectId: number;\nsourceProjectId: null | number;\nprojectUrl: null | string;\ndeleteCopy: boolean;\ncopyDeletedAt: null | string;\nfailedNodes?: { nodeId: string; label: string; reason?: string; }[];\n}>);\nwait: ((runId: string, seconds?: number) => Promise<{\nrunId: string;\nstatus: string;\noutputs: unknown;\nerror: null | string;\nerrorCode: null | string;\nreported: null | \"now\" | \"earlier\";\nprojectId: number;\nsourceProjectId: null | number;\nprojectUrl: null | string;\ndeleteCopy: boolean;\ncopyDeletedAt: null | string;\nfailedNodes?: { nodeId: string; label: string; reason?: string; }[];\n}>);\ncancel: ((runId: string) => Promise<{ runId: string; status: string; cancelled: boolean; }>);\ndeleteCopy: ((runId: string) => Promise<{ runId: string; copyDeletedAt: 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_FLOW_RUNS_DECLARATIONS = "declare const womp: { flowRuns: {\
|
|
3
|
+
export const WOMP_FLOW_RUNS_DECLARATIONS = "declare const womp: { flowRuns: {\ndescribe: (() => Promise<{\nprojectId: number;\nsnapshotId: string;\ninputs: { nodeId: string; typeId: string; valueType: string; value: unknown; required: boolean; }[];\noutputs: { nodeId: string; typeId: string; }[];\nliveRun: null | { runId: string; trigger: string; };\n}>);\nrun: ((options?: { inputs?: { [key: string]: unknown; }; copy?: boolean; deleteCopy?: boolean; }) => Promise<{\nrunId: string;\nstatus: string;\nrepeated: boolean;\nprojectId: number;\nsourceProjectId: null | number;\nprojectUrl: null | string;\ndeleteCopy: boolean;\ncopyDeletedAt: null | string;\nfailedNodes?: { nodeId: string; label: string; reason?: string; }[];\n}>);\nstatus: ((runId: string) => Promise<{\nrunId: string;\nstatus: string;\noutputs: unknown;\nerror: null | string;\nerrorCode: null | string;\nreported: null | \"now\" | \"earlier\";\nprojectId: number;\nsourceProjectId: null | number;\nprojectUrl: null | string;\ndeleteCopy: boolean;\ncopyDeletedAt: null | string;\nfailedNodes?: { nodeId: string; label: string; reason?: string; }[];\n}>);\nwait: ((runId: string, seconds?: number) => Promise<{\nrunId: string;\nstatus: string;\noutputs: unknown;\nerror: null | string;\nerrorCode: null | string;\nreported: null | \"now\" | \"earlier\";\nprojectId: number;\nsourceProjectId: null | number;\nprojectUrl: null | string;\ndeleteCopy: boolean;\ncopyDeletedAt: null | string;\nfailedNodes?: { nodeId: string; label: string; reason?: string; }[];\n}>);\ncancel: ((runId: string) => Promise<{ runId: string; status: string; cancelled: boolean; }>);\ndeleteCopy: ((runId: string) => Promise<{ runId: string; copyDeletedAt: 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 +1 @@
|
|
|
1
|
-
export declare const WOMP_GEOMETRY_DECLARATIONS = "declare const womp: { geometry: {\
|
|
1
|
+
export declare const WOMP_GEOMETRY_DECLARATIONS = "declare const womp: { geometry: {\nread: ((objectId: number) => Promise<{\nkind: \"container\" | \"graph\";\nobjectId: number;\ntitle: string;\ngraphId?: number;\ninstanceId?: number;\nsource: null | string;\ntransform: null | {\nposition: { x: number; y: number; z: number; };\nrotation: { x: number; y: number; z: number; };\nsize: { x: number; y: number; z: number; };\n};\nbounds: null | { min: { x: number; y: number; z: number; }; max: { x: number; y: number; z: number; }; };\ninstances: {\ninstanceId: number;\nobjectIds: number[];\nparams: { [key: string]: number | { x: number; y: number; z: number; }; };\n}[];\ndiagnostics: string[];\n}>);\nwrite: ((options: { objectId: number; source: string; }) => Promise<{\nstatus: \"applied\" | \"rejected\";\nobjectId: number;\ngraphId?: number;\ninstanceId?: number;\nsource?: string;\ntransform?: null | {\nposition: { x: number; y: number; z: number; };\nrotation: { x: number; y: number; z: number; };\nsize: { x: number; y: number; z: number; };\n};\nbounds?: null | { min: { x: number; y: number; z: number; }; max: { x: number; y: number; z: number; }; };\naffectedObjectIds: number[];\ndiagnostics: string[];\n}>);\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_GEOMETRY_DECLARATIONS = "declare const womp: { geometry: {\
|
|
3
|
+
export const WOMP_GEOMETRY_DECLARATIONS = "declare const womp: { geometry: {\nread: ((objectId: number) => Promise<{\nkind: \"container\" | \"graph\";\nobjectId: number;\ntitle: string;\ngraphId?: number;\ninstanceId?: number;\nsource: null | string;\ntransform: null | {\nposition: { x: number; y: number; z: number; };\nrotation: { x: number; y: number; z: number; };\nsize: { x: number; y: number; z: number; };\n};\nbounds: null | { min: { x: number; y: number; z: number; }; max: { x: number; y: number; z: number; }; };\ninstances: {\ninstanceId: number;\nobjectIds: number[];\nparams: { [key: string]: number | { x: number; y: number; z: number; }; };\n}[];\ndiagnostics: string[];\n}>);\nwrite: ((options: { objectId: number; source: string; }) => Promise<{\nstatus: \"applied\" | \"rejected\";\nobjectId: number;\ngraphId?: number;\ninstanceId?: number;\nsource?: string;\ntransform?: null | {\nposition: { x: number; y: number; z: number; };\nrotation: { x: number; y: number; z: number; };\nsize: { x: number; y: number; z: number; };\n};\nbounds?: null | { min: { x: number; y: number; z: number; }; max: { x: number; y: number; z: number; }; };\naffectedObjectIds: number[];\ndiagnostics: string[];\n}>);\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 +1 @@
|
|
|
1
|
-
export declare const WOMP_KNOWLEDGE_DECLARATIONS = "declare const womp: { knowledge: {
|
|
1
|
+
export declare const WOMP_KNOWLEDGE_DECLARATIONS = "declare const womp: { knowledge: { search: ((query: string) => Promise<{ answer: string; }>); } };\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_KNOWLEDGE_DECLARATIONS = "declare const womp: { knowledge: {
|
|
3
|
+
export const WOMP_KNOWLEDGE_DECLARATIONS = "declare const womp: { knowledge: { search: ((query: string) => Promise<{ answer: string; }>); } };\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 +1 @@
|
|
|
1
|
-
export declare const WOMP_MATERIALS_DECLARATIONS = "declare const womp: { materials: {\
|
|
1
|
+
export declare const WOMP_MATERIALS_DECLARATIONS = "declare const womp: { materials: {\ncatalog: ((options?: { refreshTextures?: boolean; includeTextures?: boolean; operations?: string[]; }) => Promise<{\noperations: { op: string; category: string; title: string; }[];\nnodes: {\n[key: string]: {\ntype: string;\ntitle: string;\ndescription: string;\ninputs: { title: string; type: string; values?: string[]; }[];\noutputs: { title: string; type: string; values?: string[]; }[];\n};\n};\ntextureCount: number;\ntextures?: string[];\ntextureMetadata?: { channels: \"unknown\"; colorSpace: \"unknown\"; normalConvention: \"unknown\"; reason: string; };\n}>);\nread: ((materialId?: number) => Promise<{\nmaterials: { id: number; shaderIds: number[]; objectIds: number[]; }[];\nmaterial?: {\nid: number;\ndata: { [key: string]: unknown; };\nlayers: Array<null | {\nnodes: { op: string; [key: string]: unknown; }[];\nconnections: {\ninput_node: number;\ninput_slot: number;\noutput_node: number;\noutput_slot: number;\nflags?: number;\n}[];\n}>;\n};\ndiagnostics: string[];\n}>);\nrecipe: ((options: {\npattern: \"grid\";\ncoordinateSpace: \"object\" | \"world\";\nfeatureSize: number | { x: number; y: number; z: number; };\ncolorA: { x: number; y: number; z: number; };\ncolorB: { x: number; y: number; z: number; };\nroughnessA: number;\nroughnessB: number;\nmetalness?: number;\nrelief: \"height\" | \"bump\";\nreliefScale: number;\n}) => Promise<{\nnodes: { op: string; [key: string]: unknown; }[];\nconnections: {\ninput_node: number;\ninput_slot: number;\noutput_node: number;\noutput_slot: number;\nflags?: number;\n}[];\n}>);\ninspect?: ((options: {\nviews: {\ncamera?: {\nposition: { x: number; y: number; z: number; };\ntarget: { x: number; y: number; z: number; };\nprojection?: \"perspective\" | \"orthographic\";\nhorizontalFovDegrees?: number;\northographicWidth?: number;\n};\n}[];\ntimeoutMs?: number;\n}) => Promise<{\nframes: { id: string; mediaType: string; name?: string; }[];\nqueueSettled: boolean;\ntimedOut: boolean;\nstatus: {\nremaining: null | number;\npendingResources: null | { [key: string]: string[]; };\nerrors?: { source: \"compiler-progress\" | \"pending-resources\"; message: string; }[];\nshaderDiagnostics?: { status: \"unavailable\"; reason: string; };\nrendering: \"unverified\";\nexplanation: string;\n};\n}>);\nwrite: ((options: {\nmaterialId?: number;\ncloneFrom?: number;\nlayers?: Array<null | {\nnodes: { op: string; [key: string]: unknown; }[];\nconnections: {\ninput_node: number;\ninput_slot: number;\noutput_node: number;\noutput_slot: number;\nflags?: number;\n}[];\n}>;\nconstants?: {\n[key: string]: null | { value: { x: number; y: number; z: number; }; color: { x: number; y: number; z: number; }; };\n};\nobjectIds?: number[];\n}) => Promise<{\nmaterialId: number;\nobjectIds: number[];\nreferenceIdChanges: { [key: string]: number; };\nparameters?: {\nname: string;\nreferenceId: number;\nvalue: { x: number; y: number; z: number; };\ncolor: { x: number; y: number; z: number; };\nexposed?: boolean;\n}[];\ndiagnostics?: string[];\nstatus: \"applied\";\nrendering: \"unverified\";\n}>);\nreadProgram: ((materialId: number, layerIndex: number) => Promise<{ materialId: number; layerIndex: number; source: null | string; diagnostics: string[]; }>);\nwriteProgram: ((options: {\nmaterialId?: number;\ncloneFrom?: number;\nlayerIndex: number;\nsource: string;\nobjectIds?: number[];\n}) => Promise<{\nmaterialId: number;\nobjectIds: number[];\nreferenceIdChanges: { [key: string]: number; };\nparameters?: {\nname: string;\nreferenceId: number;\nvalue: { x: number; y: number; z: number; };\ncolor: { x: number; y: number; z: number; };\nexposed?: boolean;\n}[];\ndiagnostics?: string[];\nstatus: \"applied\";\nrendering: \"unverified\";\n}>);\nstatus: (() => Promise<{\nremaining: null | number;\npendingResources: null | { [key: string]: string[]; };\nerrors?: { source: \"compiler-progress\" | \"pending-resources\"; message: string; }[];\nshaderDiagnostics?: { status: \"unavailable\"; reason: string; };\nrendering: \"unverified\";\nexplanation: string;\n}>);\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_MATERIALS_DECLARATIONS = "declare const womp: { materials: {\
|
|
3
|
+
export const WOMP_MATERIALS_DECLARATIONS = "declare const womp: { materials: {\ncatalog: ((options?: { refreshTextures?: boolean; includeTextures?: boolean; operations?: string[]; }) => Promise<{\noperations: { op: string; category: string; title: string; }[];\nnodes: {\n[key: string]: {\ntype: string;\ntitle: string;\ndescription: string;\ninputs: { title: string; type: string; values?: string[]; }[];\noutputs: { title: string; type: string; values?: string[]; }[];\n};\n};\ntextureCount: number;\ntextures?: string[];\ntextureMetadata?: { channels: \"unknown\"; colorSpace: \"unknown\"; normalConvention: \"unknown\"; reason: string; };\n}>);\nread: ((materialId?: number) => Promise<{\nmaterials: { id: number; shaderIds: number[]; objectIds: number[]; }[];\nmaterial?: {\nid: number;\ndata: { [key: string]: unknown; };\nlayers: Array<null | {\nnodes: { op: string; [key: string]: unknown; }[];\nconnections: {\ninput_node: number;\ninput_slot: number;\noutput_node: number;\noutput_slot: number;\nflags?: number;\n}[];\n}>;\n};\ndiagnostics: string[];\n}>);\nrecipe: ((options: {\npattern: \"grid\";\ncoordinateSpace: \"object\" | \"world\";\nfeatureSize: number | { x: number; y: number; z: number; };\ncolorA: { x: number; y: number; z: number; };\ncolorB: { x: number; y: number; z: number; };\nroughnessA: number;\nroughnessB: number;\nmetalness?: number;\nrelief: \"height\" | \"bump\";\nreliefScale: number;\n}) => Promise<{\nnodes: { op: string; [key: string]: unknown; }[];\nconnections: {\ninput_node: number;\ninput_slot: number;\noutput_node: number;\noutput_slot: number;\nflags?: number;\n}[];\n}>);\ninspect?: ((options: {\nviews: {\ncamera?: {\nposition: { x: number; y: number; z: number; };\ntarget: { x: number; y: number; z: number; };\nprojection?: \"perspective\" | \"orthographic\";\nhorizontalFovDegrees?: number;\northographicWidth?: number;\n};\n}[];\ntimeoutMs?: number;\n}) => Promise<{\nframes: { id: string; mediaType: string; name?: string; }[];\nqueueSettled: boolean;\ntimedOut: boolean;\nstatus: {\nremaining: null | number;\npendingResources: null | { [key: string]: string[]; };\nerrors?: { source: \"compiler-progress\" | \"pending-resources\"; message: string; }[];\nshaderDiagnostics?: { status: \"unavailable\"; reason: string; };\nrendering: \"unverified\";\nexplanation: string;\n};\n}>);\nwrite: ((options: {\nmaterialId?: number;\ncloneFrom?: number;\nlayers?: Array<null | {\nnodes: { op: string; [key: string]: unknown; }[];\nconnections: {\ninput_node: number;\ninput_slot: number;\noutput_node: number;\noutput_slot: number;\nflags?: number;\n}[];\n}>;\nconstants?: {\n[key: string]: null | { value: { x: number; y: number; z: number; }; color: { x: number; y: number; z: number; }; };\n};\nobjectIds?: number[];\n}) => Promise<{\nmaterialId: number;\nobjectIds: number[];\nreferenceIdChanges: { [key: string]: number; };\nparameters?: {\nname: string;\nreferenceId: number;\nvalue: { x: number; y: number; z: number; };\ncolor: { x: number; y: number; z: number; };\nexposed?: boolean;\n}[];\ndiagnostics?: string[];\nstatus: \"applied\";\nrendering: \"unverified\";\n}>);\nreadProgram: ((materialId: number, layerIndex: number) => Promise<{ materialId: number; layerIndex: number; source: null | string; diagnostics: string[]; }>);\nwriteProgram: ((options: {\nmaterialId?: number;\ncloneFrom?: number;\nlayerIndex: number;\nsource: string;\nobjectIds?: number[];\n}) => Promise<{\nmaterialId: number;\nobjectIds: number[];\nreferenceIdChanges: { [key: string]: number; };\nparameters?: {\nname: string;\nreferenceId: number;\nvalue: { x: number; y: number; z: number; };\ncolor: { x: number; y: number; z: number; };\nexposed?: boolean;\n}[];\ndiagnostics?: string[];\nstatus: \"applied\";\nrendering: \"unverified\";\n}>);\nstatus: (() => Promise<{\nremaining: null | number;\npendingResources: null | { [key: string]: string[]; };\nerrors?: { source: \"compiler-progress\" | \"pending-resources\"; message: string; }[];\nshaderDiagnostics?: { status: \"unavailable\"; reason: string; };\nrendering: \"unverified\";\nexplanation: string;\n}>);\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";
|