@womp/spark-agent 2.0.0 → 2.1.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 (53) hide show
  1. package/README.md +5 -0
  2. package/dist/capabilities/health.d.ts +9 -0
  3. package/dist/capabilities/health.js +27 -0
  4. package/dist/capabilities.d.ts +3 -1
  5. package/dist/capabilities.js +1 -0
  6. package/dist/cli.js +1 -0
  7. package/dist/generated/health-declarations.d.ts +1 -0
  8. package/dist/generated/health-declarations.js +3 -0
  9. package/dist/geometry/backendRegistry.d.ts +37 -0
  10. package/dist/geometry/backendRegistry.js +61 -0
  11. package/dist/geometry/common.d.ts +26 -0
  12. package/dist/geometry/common.js +78 -0
  13. package/dist/geometry/compiler.d.ts +35 -0
  14. package/dist/geometry/compiler.js +115 -0
  15. package/dist/geometry/graph.d.ts +39 -0
  16. package/dist/geometry/graph.js +32 -0
  17. package/dist/geometry/index.d.ts +9 -0
  18. package/dist/geometry/index.js +12 -0
  19. package/dist/geometry/lift.d.ts +7 -0
  20. package/dist/geometry/lift.js +376 -0
  21. package/dist/geometry/lower.d.ts +9 -0
  22. package/dist/geometry/lower.js +363 -0
  23. package/dist/geometry/parameters.d.ts +23 -0
  24. package/dist/geometry/parameters.js +46 -0
  25. package/dist/geometry/schemas/backend-schema.json +3394 -0
  26. package/dist/geometry/schemas/flowir-dialect.json +976 -0
  27. package/dist/geometry/writeParamData.d.ts +18 -0
  28. package/dist/geometry/writeParamData.js +47 -0
  29. package/dist/geometry.d.ts +10 -0
  30. package/dist/geometry.js +19 -0
  31. package/dist/kakapo.d.ts +6 -1
  32. package/dist/kakapo.js +5 -0
  33. package/dist/openscad.d.ts +85 -0
  34. package/dist/openscad.js +223 -0
  35. package/dist/repair-state.d.ts +50 -0
  36. package/dist/repair-state.js +96 -0
  37. package/dist/scene-health.d.ts +49 -0
  38. package/dist/scene-health.js +176 -0
  39. package/dist/sdk-geometry-host.d.ts +12 -0
  40. package/dist/sdk-geometry-host.js +306 -0
  41. package/dist/sdk-openscad-host.d.ts +14 -0
  42. package/dist/sdk-openscad-host.js +296 -0
  43. package/dist/sdk-openscad-renderer.d.ts +11 -0
  44. package/dist/sdk-openscad-renderer.js +71 -0
  45. package/dist/sdk-scene-health-host.d.ts +4 -0
  46. package/dist/sdk-scene-health-host.js +13 -0
  47. package/dist/sdk-scene-host.d.ts +5 -2
  48. package/dist/sdk-scene-host.js +6 -5
  49. package/dist/server/sqlite-store.d.ts +2 -0
  50. package/dist/server/sqlite-store.js +55 -31
  51. package/dist/server/standalone.d.ts +9 -0
  52. package/dist/server/standalone.js +91 -15
  53. package/package.json +17 -3
@@ -0,0 +1,976 @@
1
+ {
2
+ "types": [
3
+ "Int",
4
+ "Float",
5
+ "Bool",
6
+ "Vec3",
7
+ "Geometry",
8
+ "Int[]",
9
+ "Float[]",
10
+ "Vec3[]"
11
+ ],
12
+ "enums": [
13
+ {
14
+ "name": "BooleanOp",
15
+ "values": [
16
+ "Subtract",
17
+ "Union",
18
+ "Brush",
19
+ "Intersect"
20
+ ]
21
+ },
22
+ {
23
+ "name": "PrimitiveType",
24
+ "values": [
25
+ "Sphere",
26
+ "Cylinder",
27
+ "Box",
28
+ "Cone",
29
+ "Torus",
30
+ "Link",
31
+ "Hexagon",
32
+ "Triangular",
33
+ "Octahedron",
34
+ "Pyramid",
35
+ "Glyph",
36
+ "Field",
37
+ "Ellipsoid",
38
+ "Capsule"
39
+ ]
40
+ },
41
+ {
42
+ "name": "GeoNodeMathOp",
43
+ "values": [
44
+ "Add",
45
+ "Subtract",
46
+ "Multiply",
47
+ "Divide",
48
+ "Sine",
49
+ "Cosine",
50
+ "Length",
51
+ "Round",
52
+ "Floor",
53
+ "Ceil",
54
+ "Modulo",
55
+ "Fraction",
56
+ "Absolute",
57
+ "Minimum",
58
+ "Maximum",
59
+ "Power",
60
+ "DotProduct",
61
+ "CrossProduct",
62
+ "Tangent",
63
+ "Arcsine",
64
+ "Arccosine",
65
+ "Arctangent",
66
+ "ToRadians",
67
+ "ToDegrees"
68
+ ]
69
+ },
70
+ {
71
+ "name": "GeoNodeRemapRangeOp",
72
+ "values": [
73
+ "Linear"
74
+ ]
75
+ },
76
+ {
77
+ "name": "LatticeType",
78
+ "values": [
79
+ "Gyroid",
80
+ "Schwarz",
81
+ "Diamond",
82
+ "OctetBeam",
83
+ "BCCBeam",
84
+ "CubicBeam",
85
+ "Spheres"
86
+ ]
87
+ }
88
+ ],
89
+ "casts": [
90
+ {
91
+ "from": "Int",
92
+ "to": "Float",
93
+ "desc": "promote"
94
+ },
95
+ {
96
+ "from": "Int",
97
+ "to": "Vec3",
98
+ "desc": "splat: x -> Vec3(x,x,x)"
99
+ },
100
+ {
101
+ "from": "Int",
102
+ "to": "Vec3[]",
103
+ "desc": "splat then wrap: x -> [Vec3(x,x,x)]"
104
+ },
105
+ {
106
+ "from": "Float",
107
+ "to": "Vec3",
108
+ "desc": "splat: x -> Vec3(x,x,x)"
109
+ },
110
+ {
111
+ "from": "Float",
112
+ "to": "Vec3[]",
113
+ "desc": "splat then wrap: x -> [Vec3(x,x,x)]"
114
+ },
115
+ {
116
+ "from": "Vec3",
117
+ "to": "Vec3[]",
118
+ "desc": "wrap: v -> [v]"
119
+ },
120
+ {
121
+ "from": "Float[]",
122
+ "to": "Vec3[]",
123
+ "desc": "splat each: [a,b] -> [Vec3(a,a,a),Vec3(b,b,b)]"
124
+ },
125
+ {
126
+ "from": "Vec3[]",
127
+ "to": "Float[]",
128
+ "desc": "extract X: [Vec3(a,b,c)] -> [a]"
129
+ },
130
+ {
131
+ "from": "Vec3[]",
132
+ "to": "Vec3",
133
+ "desc": "take first element"
134
+ },
135
+ {
136
+ "from": "Float",
137
+ "to": "Int",
138
+ "desc": "truncate"
139
+ },
140
+ {
141
+ "from": "Float[]",
142
+ "to": "Int",
143
+ "desc": "take first element + truncate"
144
+ },
145
+ {
146
+ "from": "Int[]",
147
+ "to": "Float[]",
148
+ "desc": "promote each"
149
+ }
150
+ ],
151
+ "nodes": [
152
+ {
153
+ "name": "Primitive",
154
+ "type": "541746723",
155
+ "inputs": [
156
+ {
157
+ "name": "Type",
158
+ "type": "PrimitiveType",
159
+ "enum": "PrimitiveType"
160
+ },
161
+ {
162
+ "name": "Position",
163
+ "type": "Vec3",
164
+ "desc": "center in world space"
165
+ },
166
+ {
167
+ "name": "Rotation",
168
+ "type": "Vec3"
169
+ },
170
+ {
171
+ "name": "Size",
172
+ "type": "Vec3",
173
+ "desc": [
174
+ "Size interpretation per Type:",
175
+ " -Sphere: x=width (uniform), yz unused.",
176
+ " -Ellipsoid: x=width, y=height, z=depth.",
177
+ " -Cylinder: x=width, y=height.",
178
+ " -Capsule: x=width, y=height.",
179
+ " -Box: x=width, y=height, z=depth.",
180
+ " -Cone: x=base width, y=height.",
181
+ " -Torus: x=outer diameter, y=tube thickness.",
182
+ " -Link: x=width, y=height, z=tube thickness.",
183
+ " -Hexagon: x=width, y=height (extrusion).",
184
+ " -Triangular: x=width, y=height, z=depth.",
185
+ " -Octahedron: x=size (uniform), yz unused.",
186
+ " -Pyramid: x=base width, y=height."
187
+ ]
188
+ },
189
+ {
190
+ "name": "Blend",
191
+ "type": "Float",
192
+ "desc": "blend radius in mm"
193
+ },
194
+ {
195
+ "name": "Roundness",
196
+ "type": "Float",
197
+ "desc": "edge roundness ratio [0,1]"
198
+ }
199
+ ],
200
+ "outputs": [
201
+ {
202
+ "name": "Geometry",
203
+ "type": "Geometry"
204
+ }
205
+ ]
206
+ },
207
+ {
208
+ "name": "InstancePrimitive",
209
+ "type": "2042784705",
210
+ "inputs": [
211
+ {
212
+ "name": "Geometry",
213
+ "type": "Geometry"
214
+ },
215
+ {
216
+ "name": "Positions",
217
+ "type": "Vec3[]",
218
+ "lift": "len1"
219
+ },
220
+ {
221
+ "name": "Rotations",
222
+ "type": "Vec3[]",
223
+ "lift": "len1"
224
+ },
225
+ {
226
+ "name": "Scales",
227
+ "type": "Vec3[]",
228
+ "lift": "len1"
229
+ }
230
+ ],
231
+ "outputs": [
232
+ {
233
+ "name": "Geometry",
234
+ "type": "Geometry"
235
+ }
236
+ ],
237
+ "semantics": [
238
+ "zip-by-max with repeat-first indexing.",
239
+ "defaults: Scales=Vec3(1,1,1).",
240
+ "Emit one instance per index."
241
+ ]
242
+ },
243
+ {
244
+ "name": "Boolean",
245
+ "type": "3996326709",
246
+ "inputs": [
247
+ {
248
+ "name": "Operation",
249
+ "type": "BooleanOp",
250
+ "enum": "BooleanOp"
251
+ },
252
+ {
253
+ "name": "A",
254
+ "type": "Geometry"
255
+ },
256
+ {
257
+ "name": "B",
258
+ "type": "Geometry"
259
+ },
260
+ {
261
+ "name": "Blend",
262
+ "type": "Float",
263
+ "desc": "smooth blend radius"
264
+ },
265
+ {
266
+ "name": "Material_Neutral_Cutout",
267
+ "type": "Bool"
268
+ }
269
+ ],
270
+ "outputs": [
271
+ {
272
+ "name": "Geometry",
273
+ "type": "Geometry"
274
+ }
275
+ ]
276
+ },
277
+ {
278
+ "name": "CombineXYZ",
279
+ "type": "795684903",
280
+ "inputs": [
281
+ {
282
+ "name": "X",
283
+ "type": "Float[]",
284
+ "lift": "len1"
285
+ },
286
+ {
287
+ "name": "Y",
288
+ "type": "Float[]",
289
+ "lift": "len1"
290
+ },
291
+ {
292
+ "name": "Z",
293
+ "type": "Float[]",
294
+ "lift": "len1"
295
+ }
296
+ ],
297
+ "outputs": [
298
+ {
299
+ "name": "XYZ",
300
+ "type": "Vec3[]"
301
+ }
302
+ ],
303
+ "semantics": [
304
+ "zip-by-max with repeat-first indexing."
305
+ ]
306
+ },
307
+ {
308
+ "name": "SeparateXYZ",
309
+ "type": "2101815638",
310
+ "inputs": [
311
+ {
312
+ "name": "XYZ",
313
+ "type": "Vec3[]",
314
+ "lift": "len1"
315
+ }
316
+ ],
317
+ "outputs": [
318
+ {
319
+ "name": "X",
320
+ "type": "Float[]"
321
+ },
322
+ {
323
+ "name": "Y",
324
+ "type": "Float[]"
325
+ },
326
+ {
327
+ "name": "Z",
328
+ "type": "Float[]"
329
+ }
330
+ ]
331
+ },
332
+ {
333
+ "name": "MathFloat",
334
+ "type": "3979505435",
335
+ "inputs": [
336
+ {
337
+ "name": "Operation",
338
+ "type": "GeoNodeMathOp",
339
+ "enum": "GeoNodeMathOp"
340
+ },
341
+ {
342
+ "name": "A",
343
+ "type": "Float[]",
344
+ "lift": "len1"
345
+ },
346
+ {
347
+ "name": "B",
348
+ "type": "Float[]",
349
+ "lift": "len1"
350
+ }
351
+ ],
352
+ "outputs": [
353
+ {
354
+ "name": "Result",
355
+ "type": "Float[]"
356
+ }
357
+ ],
358
+ "semantics": [
359
+ "zip-by-max with repeat-first indexing.",
360
+ "Unary ops read A and ignore B.",
361
+ "Trig ops take radians.",
362
+ "For DotProduct or CrossProduct, use MathVec3."
363
+ ]
364
+ },
365
+ {
366
+ "name": "MathVec3",
367
+ "type": "3979505435",
368
+ "inputs": [
369
+ {
370
+ "name": "Operation",
371
+ "type": "GeoNodeMathOp",
372
+ "enum": "GeoNodeMathOp"
373
+ },
374
+ {
375
+ "name": "A",
376
+ "type": "Vec3[]",
377
+ "lift": "len1"
378
+ },
379
+ {
380
+ "name": "B",
381
+ "type": "Vec3[]",
382
+ "lift": "len1"
383
+ }
384
+ ],
385
+ "outputs": [
386
+ {
387
+ "name": "Result",
388
+ "type": "Vec3[]"
389
+ }
390
+ ],
391
+ "semantics": [
392
+ "zip-by-max with repeat-first indexing.",
393
+ "Unary ops read A and ignore B.",
394
+ "Trig ops take radians."
395
+ ]
396
+ },
397
+ {
398
+ "name": "Range",
399
+ "type": "437223984",
400
+ "inputs": [
401
+ {
402
+ "name": "Count",
403
+ "type": "Int"
404
+ }
405
+ ],
406
+ "outputs": [
407
+ {
408
+ "name": "Values",
409
+ "type": "Float[]"
410
+ }
411
+ ],
412
+ "semantics": [
413
+ "Output length = max(Count,0).",
414
+ "Values[i] = float(i) for i in [0,n)."
415
+ ]
416
+ },
417
+ {
418
+ "name": "AlignRotationToVector",
419
+ "type": "124894945",
420
+ "inputs": [
421
+ {
422
+ "name": "Rotations",
423
+ "type": "Vec3[]",
424
+ "lift": "len1"
425
+ },
426
+ {
427
+ "name": "Vectors",
428
+ "type": "Vec3[]",
429
+ "lift": "len1"
430
+ }
431
+ ],
432
+ "outputs": [
433
+ {
434
+ "name": "AlignedRotations",
435
+ "type": "Vec3[]"
436
+ }
437
+ ],
438
+ "semantics": [
439
+ "zip-by-max with repeat-first indexing.",
440
+ "defaults: Vectors=Vec3(0,0,1).",
441
+ "Aligns local +Z to each Vector via shortest-arc rotation."
442
+ ]
443
+ },
444
+ {
445
+ "name": "TransformGeometry",
446
+ "type": "3656718715",
447
+ "inputs": [
448
+ {
449
+ "name": "Geometry",
450
+ "type": "Geometry"
451
+ },
452
+ {
453
+ "name": "Positions",
454
+ "type": "Vec3[]",
455
+ "lift": "len1"
456
+ },
457
+ {
458
+ "name": "Rotations",
459
+ "type": "Vec3[]",
460
+ "lift": "len1"
461
+ },
462
+ {
463
+ "name": "Scales",
464
+ "type": "Vec3[]",
465
+ "lift": "len1"
466
+ }
467
+ ],
468
+ "outputs": [
469
+ {
470
+ "name": "Geometry",
471
+ "type": "Geometry"
472
+ }
473
+ ],
474
+ "semantics": [
475
+ "per-primitive with repeat-first indexing.",
476
+ "defaults: Scales=Vec3(1,1,1).",
477
+ "Does NOT duplicate geometry (use InstancePrimitive to duplicate)."
478
+ ]
479
+ },
480
+ {
481
+ "name": "SwitchGeometry",
482
+ "type": "251928043",
483
+ "inputs": [
484
+ {
485
+ "name": "Index",
486
+ "type": "Int"
487
+ },
488
+ {
489
+ "name": "A",
490
+ "type": "Geometry"
491
+ },
492
+ {
493
+ "name": "B",
494
+ "type": "Geometry"
495
+ },
496
+ {
497
+ "name": "C",
498
+ "type": "Geometry"
499
+ },
500
+ {
501
+ "name": "D",
502
+ "type": "Geometry"
503
+ }
504
+ ],
505
+ "outputs": [
506
+ {
507
+ "name": "Geometry",
508
+ "type": "Geometry"
509
+ }
510
+ ],
511
+ "semantics": [
512
+ "Outputs geometry at slot Index (0=A, 1=B, 2=C, 3=D).",
513
+ "Returns empty geometry if Index is out of range [0,3]."
514
+ ]
515
+ },
516
+ {
517
+ "name": "LatticeGeometry",
518
+ "type": "2831894357",
519
+ "inputs": [
520
+ {
521
+ "name": "Geometry",
522
+ "type": "Geometry"
523
+ },
524
+ {
525
+ "name": "Type",
526
+ "type": "LatticeType",
527
+ "enum": "LatticeType"
528
+ },
529
+ {
530
+ "name": "Position",
531
+ "type": "Vec3",
532
+ "desc": "lattice cell placement"
533
+ },
534
+ {
535
+ "name": "Rotation",
536
+ "type": "Vec3",
537
+ "desc": "lattice cell orientation"
538
+ },
539
+ {
540
+ "name": "Scale",
541
+ "type": "Float",
542
+ "desc": "uniform cell size"
543
+ },
544
+ {
545
+ "name": "Thickness",
546
+ "type": "Float",
547
+ "desc": "strut thickness"
548
+ },
549
+ {
550
+ "name": "WallThickness",
551
+ "type": "Float",
552
+ "desc": "outer wall thickness"
553
+ }
554
+ ],
555
+ "outputs": [
556
+ {
557
+ "name": "Geometry",
558
+ "type": "Geometry"
559
+ }
560
+ ],
561
+ "semantics": [
562
+ "Fills geometry with a lattice infill pattern."
563
+ ]
564
+ },
565
+ {
566
+ "name": "RandomPointsInVolume",
567
+ "type": "662065381",
568
+ "inputs": [
569
+ {
570
+ "name": "Geometry",
571
+ "type": "Geometry"
572
+ },
573
+ {
574
+ "name": "Density",
575
+ "type": "Float",
576
+ "desc": "points per unit volume, min 1.0"
577
+ },
578
+ {
579
+ "name": "AABBMin",
580
+ "type": "Vec3"
581
+ },
582
+ {
583
+ "name": "AABBMax",
584
+ "type": "Vec3"
585
+ },
586
+ {
587
+ "name": "Seed",
588
+ "type": "Int"
589
+ }
590
+ ],
591
+ "outputs": [
592
+ {
593
+ "name": "Positions",
594
+ "type": "Vec3[]"
595
+ }
596
+ ],
597
+ "semantics": [
598
+ "Scatters random points inside the SDF volume."
599
+ ]
600
+ },
601
+ {
602
+ "name": "GridPointsInVolume",
603
+ "type": "3453342624",
604
+ "inputs": [
605
+ {
606
+ "name": "Geometry",
607
+ "type": "Geometry"
608
+ },
609
+ {
610
+ "name": "Spacing",
611
+ "type": "Vec3",
612
+ "desc": "min 1.0 per component"
613
+ },
614
+ {
615
+ "name": "AABBMin",
616
+ "type": "Vec3"
617
+ },
618
+ {
619
+ "name": "AABBMax",
620
+ "type": "Vec3"
621
+ }
622
+ ],
623
+ "outputs": [
624
+ {
625
+ "name": "Positions",
626
+ "type": "Vec3[]"
627
+ }
628
+ ],
629
+ "semantics": [
630
+ "Places grid-spaced points inside the SDF volume.",
631
+ "Only points inside the volume are output."
632
+ ]
633
+ },
634
+ {
635
+ "name": "RandomPointsOnSurface",
636
+ "type": "2235454654",
637
+ "inputs": [
638
+ {
639
+ "name": "Geometry",
640
+ "type": "Geometry"
641
+ },
642
+ {
643
+ "name": "Density",
644
+ "type": "Float"
645
+ },
646
+ {
647
+ "name": "Seed",
648
+ "type": "Int"
649
+ }
650
+ ],
651
+ "outputs": [
652
+ {
653
+ "name": "Positions",
654
+ "type": "Vec3[]"
655
+ },
656
+ {
657
+ "name": "Normals",
658
+ "type": "Vec3[]"
659
+ }
660
+ ],
661
+ "semantics": [
662
+ "Scatters random points on the surface of Geometry."
663
+ ]
664
+ },
665
+ {
666
+ "name": "PointGrid3D",
667
+ "type": "3992787817",
668
+ "inputs": [
669
+ {
670
+ "name": "Size",
671
+ "type": "Vec3",
672
+ "desc": "full extent per axis"
673
+ },
674
+ {
675
+ "name": "VerticesX",
676
+ "type": "Int"
677
+ },
678
+ {
679
+ "name": "VerticesY",
680
+ "type": "Int"
681
+ },
682
+ {
683
+ "name": "VerticesZ",
684
+ "type": "Int"
685
+ }
686
+ ],
687
+ "outputs": [
688
+ {
689
+ "name": "Positions",
690
+ "type": "Vec3[]"
691
+ }
692
+ ],
693
+ "semantics": [
694
+ "Centered at origin.",
695
+ "Total points = VerticesX*VerticesY*VerticesZ.",
696
+ "Evenly spaced within [-Size/2, +Size/2]."
697
+ ]
698
+ },
699
+ {
700
+ "name": "MapRange",
701
+ "type": "789012436",
702
+ "inputs": [
703
+ {
704
+ "name": "Mode",
705
+ "type": "GeoNodeRemapRangeOp",
706
+ "enum": "GeoNodeRemapRangeOp"
707
+ },
708
+ {
709
+ "name": "Clamp",
710
+ "type": "Bool",
711
+ "desc": "when true, clamps to [ToMin,ToMax]"
712
+ },
713
+ {
714
+ "name": "Value",
715
+ "type": "Vec3[]",
716
+ "lift": "len1"
717
+ },
718
+ {
719
+ "name": "FromMin",
720
+ "type": "Vec3[]",
721
+ "lift": "len1"
722
+ },
723
+ {
724
+ "name": "FromMax",
725
+ "type": "Vec3[]",
726
+ "lift": "len1"
727
+ },
728
+ {
729
+ "name": "ToMin",
730
+ "type": "Vec3[]",
731
+ "lift": "len1"
732
+ },
733
+ {
734
+ "name": "ToMax",
735
+ "type": "Vec3[]",
736
+ "lift": "len1"
737
+ }
738
+ ],
739
+ "outputs": [
740
+ {
741
+ "name": "Result",
742
+ "type": "Vec3[]"
743
+ }
744
+ ],
745
+ "semantics": [
746
+ "zip-by-max with repeat-first indexing.",
747
+ "defaults: Value=1, FromMax=1, ToMax=1.",
748
+ "Per-component: output = (Value-FromMin)/(FromMax-FromMin)*(ToMax-ToMin)+ToMin."
749
+ ]
750
+ },
751
+ {
752
+ "name": "Clamp",
753
+ "type": "1371925756",
754
+ "inputs": [
755
+ {
756
+ "name": "Value",
757
+ "type": "Vec3[]",
758
+ "lift": "len1"
759
+ },
760
+ {
761
+ "name": "Min",
762
+ "type": "Vec3[]",
763
+ "lift": "len1"
764
+ },
765
+ {
766
+ "name": "Max",
767
+ "type": "Vec3[]",
768
+ "lift": "len1"
769
+ }
770
+ ],
771
+ "outputs": [
772
+ {
773
+ "name": "Result",
774
+ "type": "Vec3[]"
775
+ }
776
+ ],
777
+ "semantics": [
778
+ "zip-by-max with repeat-first indexing.",
779
+ "defaults: Value=1, Max=1.",
780
+ "Per-component: output[i] = clamp(Value[i], Min[i], Max[i])."
781
+ ]
782
+ },
783
+ {
784
+ "name": "Lerp",
785
+ "type": "341650924",
786
+ "inputs": [
787
+ {
788
+ "name": "A",
789
+ "type": "Vec3[]",
790
+ "lift": "len1"
791
+ },
792
+ {
793
+ "name": "B",
794
+ "type": "Vec3[]",
795
+ "lift": "len1"
796
+ },
797
+ {
798
+ "name": "Factor",
799
+ "type": "Vec3[]",
800
+ "lift": "len1"
801
+ }
802
+ ],
803
+ "outputs": [
804
+ {
805
+ "name": "Result",
806
+ "type": "Vec3[]"
807
+ }
808
+ ],
809
+ "semantics": [
810
+ "zip-by-max with repeat-first indexing.",
811
+ "defaults: Factor=Vec3(1,1,1).",
812
+ "Per-component: output = A + (B-A)*Factor."
813
+ ]
814
+ },
815
+ {
816
+ "name": "RandomFloat",
817
+ "type": "2827187451",
818
+ "inputs": [
819
+ {
820
+ "name": "Domain",
821
+ "type": "Float[]",
822
+ "lift": "len1",
823
+ "desc": "determines output length, min 1, values ignored"
824
+ },
825
+ {
826
+ "name": "Min",
827
+ "type": "Float"
828
+ },
829
+ {
830
+ "name": "Max",
831
+ "type": "Float"
832
+ },
833
+ {
834
+ "name": "Seed",
835
+ "type": "Int"
836
+ }
837
+ ],
838
+ "outputs": [
839
+ {
840
+ "name": "Values",
841
+ "type": "Float[]"
842
+ }
843
+ ],
844
+ "semantics": [
845
+ "Generates one random float per Domain element in [Min,Max]."
846
+ ]
847
+ },
848
+ {
849
+ "name": "RandomVec3",
850
+ "type": "3144770264",
851
+ "inputs": [
852
+ {
853
+ "name": "Domain",
854
+ "type": "Vec3[]",
855
+ "lift": "len1",
856
+ "desc": "determines output length, min 1, values ignored"
857
+ },
858
+ {
859
+ "name": "Min",
860
+ "type": "Vec3"
861
+ },
862
+ {
863
+ "name": "Max",
864
+ "type": "Vec3"
865
+ },
866
+ {
867
+ "name": "Seed",
868
+ "type": "Int"
869
+ }
870
+ ],
871
+ "outputs": [
872
+ {
873
+ "name": "Values",
874
+ "type": "Vec3[]"
875
+ }
876
+ ],
877
+ "semantics": [
878
+ "Generates one random Vec3 per Domain element.",
879
+ "Each component independently sampled in [Min.xyz, Max.xyz]."
880
+ ]
881
+ },
882
+ {
883
+ "name": "BoundingBox",
884
+ "type": "2062451000",
885
+ "inputs": [
886
+ {
887
+ "name": "Geometry",
888
+ "type": "Geometry"
889
+ }
890
+ ],
891
+ "outputs": [
892
+ {
893
+ "name": "Min",
894
+ "type": "Vec3"
895
+ },
896
+ {
897
+ "name": "Max",
898
+ "type": "Vec3"
899
+ },
900
+ {
901
+ "name": "Center",
902
+ "type": "Vec3"
903
+ },
904
+ {
905
+ "name": "Size",
906
+ "type": "Vec3"
907
+ }
908
+ ],
909
+ "semantics": [
910
+ "Tight axis-aligned bounding box of Geometry's SDF volume.",
911
+ "Center=(Min+Max)/2, Size=Max-Min."
912
+ ]
913
+ },
914
+ {
915
+ "name": "FrameInfo",
916
+ "type": "854958909",
917
+ "inputs": [],
918
+ "outputs": [
919
+ {
920
+ "name": "Time",
921
+ "type": "Float",
922
+ "desc": "elapsed seconds"
923
+ },
924
+ {
925
+ "name": "DeltaTime",
926
+ "type": "Float"
927
+ },
928
+ {
929
+ "name": "Index",
930
+ "type": "Int"
931
+ }
932
+ ]
933
+ },
934
+ {
935
+ "name": "Indices",
936
+ "type": "3500690645",
937
+ "inputs": [
938
+ {
939
+ "name": "Domain",
940
+ "type": "Vec3[]"
941
+ }
942
+ ],
943
+ "outputs": [
944
+ {
945
+ "name": "Indices",
946
+ "type": "Int[]"
947
+ }
948
+ ],
949
+ "semantics": [
950
+ "Returns integer indices [0, 1, ..., len(Domain)-1].",
951
+ "Output length equals Domain length."
952
+ ]
953
+ },
954
+ {
955
+ "name": "PolarToCartesian",
956
+ "type": "2278706838",
957
+ "inputs": [
958
+ {
959
+ "name": "Angles",
960
+ "type": "Vec3[]",
961
+ "lift": "len1"
962
+ }
963
+ ],
964
+ "outputs": [
965
+ {
966
+ "name": "Direction",
967
+ "type": "Vec3[]"
968
+ }
969
+ ],
970
+ "semantics": [
971
+ "Per-element: takes Angles[i].x as angle in radians.",
972
+ "Output[i] = Vec3(sin(a), 0, cos(a))."
973
+ ]
974
+ }
975
+ ]
976
+ }