@womp/spark-agent 15.3.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.
Files changed (37) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/agent-run.d.ts +1 -1
  3. package/dist/capabilities/materials.js +17 -15
  4. package/dist/generated/account-declarations.d.ts +1 -1
  5. package/dist/generated/account-declarations.js +1 -1
  6. package/dist/generated/asset-import-declarations.d.ts +1 -1
  7. package/dist/generated/asset-import-declarations.js +1 -1
  8. package/dist/generated/assets-declarations.d.ts +1 -1
  9. package/dist/generated/assets-declarations.js +1 -1
  10. package/dist/generated/flow-declarations.d.ts +1 -1
  11. package/dist/generated/flow-declarations.js +1 -1
  12. package/dist/generated/flow-runs-declarations.d.ts +1 -1
  13. package/dist/generated/flow-runs-declarations.js +1 -1
  14. package/dist/generated/geometry-declarations.d.ts +1 -1
  15. package/dist/generated/geometry-declarations.js +1 -1
  16. package/dist/generated/knowledge-declarations.d.ts +1 -1
  17. package/dist/generated/knowledge-declarations.js +1 -1
  18. package/dist/generated/materials-declarations.d.ts +1 -1
  19. package/dist/generated/materials-declarations.js +1 -1
  20. package/dist/generated/openscad-declarations.d.ts +1 -1
  21. package/dist/generated/openscad-declarations.js +1 -1
  22. package/dist/generated/operations-declarations.d.ts +1 -1
  23. package/dist/generated/operations-declarations.js +1 -1
  24. package/dist/generated/print-declarations.d.ts +1 -1
  25. package/dist/generated/print-declarations.js +1 -1
  26. package/dist/generated/scene-declarations.d.ts +1 -1
  27. package/dist/generated/scene-declarations.js +1 -1
  28. package/dist/generated/texture-import-declarations.d.ts +1 -1
  29. package/dist/generated/texture-import-declarations.js +1 -1
  30. package/dist/materials/flowir.d.ts +3 -2
  31. package/dist/materials/flowir.js +27 -19
  32. package/dist/materials/lift.js +11 -6
  33. package/dist/materials/schemas/materials-dialect.json +26 -248
  34. package/dist/models.d.ts +7 -0
  35. package/dist/models.js +9 -0
  36. package/dist/pricing.js +5 -0
  37. package/package.json +1 -1
@@ -5,6 +5,14 @@
5
5
  "name": "BlendMode",
6
6
  "values": ["Mix", "Add", "Subtract", "Multiply", "Divide", "Difference", "Screen", "Lighten", "Darken", "LinearLight", "SoftLight", "Overlay", "ColorBurn", "ColorDodge", "Color", "Hue", "Saturation", "Value"]
7
7
  },
8
+ {
9
+ "name": "ScalarOperation",
10
+ "values": ["Add", "Subtract", "Multiply", "Divide"]
11
+ },
12
+ {
13
+ "name": "MathOperation",
14
+ "values": ["Add", "Subtract", "Multiply", "Divide", "Power", "Sine", "Cosine", "AbsoluteValue", "Length", "Fraction", "Modulo", "Floor", "Min", "Max", "DotProduct", "Normalize", "Distance", "Snap", "PingPong", "Tangent", "Arcsine", "Arccosine", "Arctangent", "Arctan2"]
15
+ },
8
16
  {
9
17
  "name": "CompareOperation",
10
18
  "values": ["Less", "Greater", "Equal", "NotEqual", "LessOrEqual", "GreaterOrEqual"]
@@ -110,21 +118,21 @@
110
118
  "inputs": [
111
119
  { "name": "Position", "type": "Vec3" },
112
120
  { "name": "FrequencyScale", "type": "Vec3" },
113
- { "name": "Detail", "type": "Int", "desc": "octaves, 1 to 16; 3 to 6 is typical" },
114
- { "name": "Amplitude", "type": "Float", "desc": "multiplies the result" },
115
- { "name": "ExtendedRange", "type": "Bool", "optional": true, "desc": "result in -1..1 instead of 0..1" }
121
+ { "name": "Detail", "type": "Int", "desc": "octaves, 1..16, typically 3..6" },
122
+ { "name": "Amplitude", "type": "Float" },
123
+ { "name": "ExtendedRange", "type": "Bool", "optional": true }
116
124
  ],
117
125
  "outputs": [{ "name": "Output", "type": "Vec3" }]
118
126
  },
119
127
  {
120
128
  "name": "VectorNoise",
121
129
  "type": "Noise3D",
122
- "desc": "3D gradient noise at three offset positions, one sample per RGB/XYZ component; Amplitude multiplies the range",
130
+ "desc": "3D gradient noise at three offset positions, one sample per RGB/XYZ component",
123
131
  "inputs": [
124
132
  { "name": "Position", "type": "Vec3" },
125
133
  { "name": "FrequencyScale", "type": "Vec3" },
126
- { "name": "Detail", "type": "Int", "desc": "octaves, 1 to 16; 3 to 6 is typical" },
127
- { "name": "Amplitude", "type": "Float", "desc": "multiplies the result" },
134
+ { "name": "Detail", "type": "Int", "desc": "octaves, 1..16, typically 3..6" },
135
+ { "name": "Amplitude", "type": "Float" },
128
136
  { "name": "ExtendedRange", "type": "Bool", "optional": true, "desc": "result in -1..1 instead of 0..1" }
129
137
  ],
130
138
  "outputs": [{ "name": "Output", "type": "Vec3" }]
@@ -136,8 +144,8 @@
136
144
  "inputs": [
137
145
  { "name": "Position", "type": "Vec3" },
138
146
  { "name": "FrequencyScale", "type": "Vec3" },
139
- { "name": "Detail", "type": "Int", "desc": "octaves, 1 to 16; 3 to 6 is typical" },
140
- { "name": "Amplitude", "type": "Float", "desc": "multiplies the result" },
147
+ { "name": "Detail", "type": "Int", "desc": "octaves, 1..16, typically 3..6" },
148
+ { "name": "Amplitude", "type": "Float" },
141
149
  { "name": "ExtendedRange", "type": "Bool", "optional": true, "desc": "result in -1..1 instead of 0..1" }
142
150
  ],
143
151
  "outputs": [{ "name": "Output", "type": "Vec3" }]
@@ -161,8 +169,8 @@
161
169
  "inputs": [
162
170
  { "name": "Position", "type": "Vec3" },
163
171
  { "name": "FrequencyScale", "type": "Vec3" },
164
- { "name": "Amplitude", "type": "Float", "desc": "multiplies the result" },
165
- { "name": "ExtendedRange", "type": "Bool", "optional": true, "desc": "result in -1..1 instead of 0..1" }
172
+ { "name": "Amplitude", "type": "Float" },
173
+ { "name": "ExtendedRange", "type": "Bool", "optional": true }
166
174
  ],
167
175
  "outputs": [{ "name": "Output", "type": "Vec3" }]
168
176
  },
@@ -197,259 +205,29 @@
197
205
  ]
198
206
  },
199
207
  {
200
- "name": "ScalarAdd",
201
- "type": "Math",
202
- "desc": "First + Second, using scalar x components",
203
- "inputs": [
204
- { "name": "First", "type": "Float" },
205
- { "name": "Second", "type": "Float" },
206
- { "name": "Clamp", "type": "Bool", "optional": true, "desc": "clamps to 0..1" }
207
- ],
208
- "outputs": [{ "name": "Output", "type": "Float" }]
209
- },
210
- {
211
- "name": "ScalarSubtract",
212
- "type": "Math",
213
- "desc": "First - Second, using scalar x components",
214
- "inputs": [
215
- { "name": "First", "type": "Float" },
216
- { "name": "Second", "type": "Float" },
217
- { "name": "Clamp", "type": "Bool", "optional": true, "desc": "clamps to 0..1" }
218
- ],
219
- "outputs": [{ "name": "Output", "type": "Float" }]
220
- },
221
- {
222
- "name": "ScalarMultiply",
208
+ "name": "ScalarMath",
223
209
  "type": "Math",
224
- "desc": "First * Second, using scalar x components",
210
+ "desc": "First <Operation> Second, using scalar x components",
225
211
  "inputs": [
212
+ { "name": "Operation", "type": "ScalarOperation", "literal": true },
226
213
  { "name": "First", "type": "Float" },
227
214
  { "name": "Second", "type": "Float" },
228
- { "name": "Clamp", "type": "Bool", "optional": true, "desc": "clamps to 0..1" }
229
- ],
230
- "outputs": [{ "name": "Output", "type": "Float" }]
231
- },
232
- {
233
- "name": "ScalarDivide",
234
- "type": "Math",
235
- "desc": "First / Second, using scalar x components",
236
- "inputs": [
237
- { "name": "First", "type": "Float" },
238
- { "name": "Second", "type": "Float" },
239
- { "name": "Clamp", "type": "Bool", "optional": true, "desc": "clamps to 0..1" }
240
- ],
241
- "outputs": [{ "name": "Output", "type": "Float" }]
242
- },
243
- {
244
- "name": "MathAdd",
245
- "type": "Math",
246
- "desc": "First + Second, per component",
247
- "inputs": [
248
- { "name": "First", "type": "Vec3" },
249
- { "name": "Second", "type": "Vec3" },
250
- { "name": "Clamp", "type": "Bool", "optional": true, "desc": "clamps the result to 0..1" }
251
- ],
252
- "outputs": [{ "name": "Output", "type": "Vec3" }]
253
- },
254
- {
255
- "name": "MathSubtract",
256
- "type": "Math",
257
- "desc": "First - Second, per component",
258
- "inputs": [
259
- { "name": "First", "type": "Vec3" },
260
- { "name": "Second", "type": "Vec3" },
261
215
  { "name": "Clamp", "type": "Bool", "optional": true, "desc": "clamps the result to 0..1" }
262
216
  ],
263
- "outputs": [{ "name": "Output", "type": "Vec3" }]
217
+ "outputs": [{ "name": "Output", "type": "Float" }]
264
218
  },
265
219
  {
266
- "name": "MathMultiply",
220
+ "name": "Math",
267
221
  "type": "Math",
268
- "desc": "First * Second, per component",
222
+ "desc": "Operation per component, angles in radians. Power treats First below 0 as 0; Modulo is floored; Snap rounds First down to a multiple of Second; PingPong bounces First between 0 and Second; Arctan2 is atan2(First,Second); Arcsine and Arccosine clamp First to -1..1. Length, DotProduct and Distance put their scalar in x, y and z",
269
223
  "inputs": [
224
+ { "name": "Operation", "type": "MathOperation", "literal": true },
270
225
  { "name": "First", "type": "Vec3" },
271
- { "name": "Second", "type": "Vec3" },
226
+ { "name": "Second", "type": "Vec3", "optional": true, "desc": "required except by Sine, Cosine, Tangent, Arcsine, Arccosine, Arctangent, AbsoluteValue, Fraction, Floor, Length and Normalize" },
272
227
  { "name": "Clamp", "type": "Bool", "optional": true, "desc": "clamps the result to 0..1" }
273
228
  ],
274
229
  "outputs": [{ "name": "Output", "type": "Vec3" }]
275
230
  },
276
- {
277
- "name": "MathDivide",
278
- "type": "Math",
279
- "desc": "First / Second, per component",
280
- "inputs": [
281
- { "name": "First", "type": "Vec3" },
282
- { "name": "Second", "type": "Vec3" }
283
- ],
284
- "outputs": [{ "name": "Output", "type": "Vec3" }]
285
- },
286
- {
287
- "name": "MathPower",
288
- "type": "Math",
289
- "desc": "First to the power of Second, per component; First below 0 counts as 0",
290
- "inputs": [
291
- { "name": "First", "type": "Vec3" },
292
- { "name": "Second", "type": "Vec3" }
293
- ],
294
- "outputs": [{ "name": "Output", "type": "Vec3" }]
295
- },
296
- {
297
- "name": "MathSine",
298
- "type": "Math",
299
- "desc": "sin(Value), in radians, per component",
300
- "inputs": [{ "name": "Value", "type": "Vec3" }],
301
- "outputs": [{ "name": "Output", "type": "Vec3" }]
302
- },
303
- {
304
- "name": "MathCosine",
305
- "type": "Math",
306
- "desc": "cos(Value), in radians, per component",
307
- "inputs": [{ "name": "Value", "type": "Vec3" }],
308
- "outputs": [{ "name": "Output", "type": "Vec3" }]
309
- },
310
- {
311
- "name": "MathAbsoluteValue",
312
- "type": "Math",
313
- "desc": "abs(Value), per component",
314
- "inputs": [{ "name": "Value", "type": "Vec3" }],
315
- "outputs": [{ "name": "Output", "type": "Vec3" }]
316
- },
317
- {
318
- "name": "MathLength",
319
- "type": "Math",
320
- "desc": "the length of Value, in x, y and z",
321
- "inputs": [{ "name": "Value", "type": "Vec3" }],
322
- "outputs": [{ "name": "Output", "type": "Vec3" }]
323
- },
324
- {
325
- "name": "MathFraction",
326
- "type": "Math",
327
- "desc": "Value minus its floor, per component",
328
- "inputs": [{ "name": "Value", "type": "Vec3" }],
329
- "outputs": [{ "name": "Output", "type": "Vec3" }]
330
- },
331
- {
332
- "name": "MathModulo",
333
- "type": "Math",
334
- "desc": "First modulo Second, floored, per component",
335
- "inputs": [
336
- { "name": "First", "type": "Vec3" },
337
- { "name": "Second", "type": "Vec3" }
338
- ],
339
- "outputs": [{ "name": "Output", "type": "Vec3" }]
340
- },
341
- {
342
- "name": "MathFloor",
343
- "type": "Math",
344
- "desc": "Value rounded down, per component",
345
- "inputs": [{ "name": "Value", "type": "Vec3" }],
346
- "outputs": [{ "name": "Output", "type": "Vec3" }]
347
- },
348
- {
349
- "name": "MathMin",
350
- "type": "Math",
351
- "desc": "the smaller of First and Second, per component",
352
- "inputs": [
353
- { "name": "First", "type": "Vec3" },
354
- { "name": "Second", "type": "Vec3" }
355
- ],
356
- "outputs": [{ "name": "Output", "type": "Vec3" }]
357
- },
358
- {
359
- "name": "MathMax",
360
- "type": "Math",
361
- "desc": "the larger of First and Second, per component",
362
- "inputs": [
363
- { "name": "First", "type": "Vec3" },
364
- { "name": "Second", "type": "Vec3" }
365
- ],
366
- "outputs": [{ "name": "Output", "type": "Vec3" }]
367
- },
368
- {
369
- "name": "MathDotProduct",
370
- "type": "Math",
371
- "desc": "the dot product of First and Second, in x, y and z",
372
- "inputs": [
373
- { "name": "First", "type": "Vec3" },
374
- { "name": "Second", "type": "Vec3" }
375
- ],
376
- "outputs": [{ "name": "Output", "type": "Vec3" }]
377
- },
378
- {
379
- "name": "MathNormalize",
380
- "type": "Math",
381
- "desc": "Value scaled to length 1",
382
- "inputs": [{ "name": "Value", "type": "Vec3" }],
383
- "outputs": [{ "name": "Output", "type": "Vec3" }]
384
- },
385
- {
386
- "name": "MathDistance",
387
- "type": "Math",
388
- "desc": "the distance from First to Second, in x, y and z",
389
- "inputs": [
390
- { "name": "First", "type": "Vec3" },
391
- { "name": "Second", "type": "Vec3" }
392
- ],
393
- "outputs": [{ "name": "Output", "type": "Vec3" }]
394
- },
395
- {
396
- "name": "MathSnap",
397
- "type": "Math",
398
- "desc": "First rounded down to a multiple of Second, per component",
399
- "inputs": [
400
- { "name": "First", "type": "Vec3" },
401
- { "name": "Second", "type": "Vec3" }
402
- ],
403
- "outputs": [{ "name": "Output", "type": "Vec3" }]
404
- },
405
- {
406
- "name": "MathPingPong",
407
- "type": "Math",
408
- "desc": "First bounced back and forth between 0 and Second, per component",
409
- "inputs": [
410
- { "name": "First", "type": "Vec3" },
411
- { "name": "Second", "type": "Vec3" }
412
- ],
413
- "outputs": [{ "name": "Output", "type": "Vec3" }]
414
- },
415
- {
416
- "name": "MathTangent",
417
- "type": "Math",
418
- "desc": "tan(Value), in radians, per component",
419
- "inputs": [{ "name": "Value", "type": "Vec3" }],
420
- "outputs": [{ "name": "Output", "type": "Vec3" }]
421
- },
422
- {
423
- "name": "MathArcsine",
424
- "type": "Math",
425
- "desc": "asin(clamp(Value,-1,1)), in radians, per component",
426
- "inputs": [{ "name": "Value", "type": "Vec3" }],
427
- "outputs": [{ "name": "Output", "type": "Vec3" }]
428
- },
429
- {
430
- "name": "MathArccosine",
431
- "type": "Math",
432
- "desc": "acos(clamp(Value,-1,1)), in radians, per component",
433
- "inputs": [{ "name": "Value", "type": "Vec3" }],
434
- "outputs": [{ "name": "Output", "type": "Vec3" }]
435
- },
436
- {
437
- "name": "MathArctangent",
438
- "type": "Math",
439
- "desc": "atan(Value), in radians, per component",
440
- "inputs": [{ "name": "Value", "type": "Vec3" }],
441
- "outputs": [{ "name": "Output", "type": "Vec3" }]
442
- },
443
- {
444
- "name": "MathArctan2",
445
- "type": "Math",
446
- "desc": "atan2(First, Second), in radians, per component",
447
- "inputs": [
448
- { "name": "First", "type": "Vec3" },
449
- { "name": "Second", "type": "Vec3" }
450
- ],
451
- "outputs": [{ "name": "Output", "type": "Vec3" }]
452
- },
453
231
  {
454
232
  "name": "MathLerp",
455
233
  "type": "MathLerp",
package/dist/models.d.ts CHANGED
@@ -24,6 +24,13 @@ export declare const SPARK_MODELS: readonly [{
24
24
  readonly note: "Complex coding and agentic workflows";
25
25
  readonly provider: "openai";
26
26
  readonly reasoningEfforts: readonly ["low", "medium", "high", "xhigh", "max"];
27
+ }, {
28
+ readonly id: "gpt-6.1-terra";
29
+ readonly contextWindow: 1050000;
30
+ readonly label: "GPT-6.1 Terra";
31
+ readonly note: "Balanced cost and capability";
32
+ readonly provider: "openai";
33
+ readonly reasoningEfforts: readonly ["low", "medium", "high", "xhigh", "max"];
27
34
  }, {
28
35
  readonly id: "gpt-6-sol";
29
36
  readonly contextWindow: 1050000;
package/dist/models.js CHANGED
@@ -30,6 +30,15 @@ export const SPARK_MODELS = [
30
30
  provider: "openai",
31
31
  reasoningEfforts: EXTENDED_REASONING_EFFORTS,
32
32
  },
33
+ {
34
+ id: "gpt-6.1-terra",
35
+ // https://developers.openai.com/api/docs/models/gpt-6.1-terra
36
+ contextWindow: 1_050_000,
37
+ label: "GPT-6.1 Terra",
38
+ note: "Balanced cost and capability",
39
+ provider: "openai",
40
+ reasoningEfforts: EXTENDED_REASONING_EFFORTS,
41
+ },
33
42
  {
34
43
  id: "gpt-6-sol",
35
44
  // https://developers.openai.com/api/docs/models/gpt-6-sol
package/dist/pricing.js CHANGED
@@ -5,6 +5,11 @@ const PRICES = {
5
5
  source: "https://developers.openai.com/api/docs/models/gpt-6.1-sol",
6
6
  pricingDate: "2026-09-29",
7
7
  },
8
+ "gpt-6.1-terra": {
9
+ input: 1, read: 0.05, write: 1.25, output: 5, longContext: 272_000,
10
+ source: "https://developers.openai.com/api/docs/models/gpt-6.1-terra",
11
+ pricingDate: "2026-10-26",
12
+ },
8
13
  "gpt-6-sol": {
9
14
  input: 2, read: 0.2, write: 2.5, output: 10, longContext: 272_000,
10
15
  source: "https://developers.openai.com/api/docs/pricing",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@womp/spark-agent",
3
- "version": "15.3.0",
3
+ "version": "15.4.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",