@coloopx/colocad 0.1.0-alpha.6 → 0.1.0-alpha.8

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 (60) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/README.md +14 -3
  3. package/README.zh-CN.md +13 -3
  4. package/ROADMAP.md +125 -0
  5. package/ROADMAP.zh-CN.md +91 -0
  6. package/bin/colocad.mjs +17 -9
  7. package/docs/README.md +13 -2
  8. package/docs/README.zh-CN.md +12 -3
  9. package/docs/agent-modeling-handbook.md +12 -4
  10. package/docs/agent-modeling-handbook.zh-CN.md +21 -4
  11. package/docs/api.md +9 -6
  12. package/docs/best-practices.md +80 -3
  13. package/docs/best-practices.zh-CN.md +63 -0
  14. package/docs/cadquery-comparison.md +105 -0
  15. package/docs/cadquery-comparison.zh-CN.md +53 -0
  16. package/docs/cadquery-coverage.json +762 -0
  17. package/docs/engineering-queries.md +124 -0
  18. package/docs/engineering-queries.zh-CN.md +76 -0
  19. package/docs/getting-started.md +1 -1
  20. package/docs/integrations/claude-code.md +1 -1
  21. package/docs/integrations/codex.md +1 -1
  22. package/docs/integrations/overview.md +3 -1
  23. package/docs/integrations/pi.md +17 -4
  24. package/docs/integrations/verification.md +7 -1
  25. package/docs/troubleshooting.md +13 -1
  26. package/examples/integrations/README.md +11 -2
  27. package/examples/integrations/compact-tools.mjs +1 -1
  28. package/kernel/dist/client.d.ts +5 -2
  29. package/kernel/dist/client.js +35 -7
  30. package/kernel/dist/generated.d.ts +297 -4
  31. package/kernel/dist/process.d.ts +1 -1
  32. package/kernel/dist/process.js +3 -3
  33. package/kernel/dist/query-generated.d.ts +181 -0
  34. package/kernel/dist/query-generated.js +1 -0
  35. package/kernel/dist/tools.d.ts +35 -0
  36. package/kernel/dist/tools.js +11 -2
  37. package/kernel/dist/types.d.ts +9 -0
  38. package/kernel/native/darwin-arm64/agent-cad +2 -2
  39. package/kernel/native/darwin-arm64/manifest.json +2 -2
  40. package/kernel/native/linux-arm64/agent-cad +2 -2
  41. package/kernel/native/linux-arm64/manifest.json +2 -2
  42. package/kernel/native/linux-x64/agent-cad +2 -2
  43. package/kernel/native/linux-x64/manifest.json +2 -2
  44. package/kernel/release.json +4 -4
  45. package/kernel/schemas/model.schema.json +1752 -135
  46. package/kernel/schemas/query.schema.json +1150 -0
  47. package/package.json +8 -2
  48. package/skills/colocad/SKILL.md +1 -0
  49. package/skills/colocad/references/modeling-loop.md +15 -1
  50. package/skills/colocad/references/prompt-patterns.md +27 -1
  51. package/skills/colocad/references/quick-build.md +2 -0
  52. package/skills/colocad/references/tool-contracts.md +14 -2
  53. package/skills/colocad/references/tuning.md +5 -1
  54. package/src/build.mjs +3 -2
  55. package/src/index.d.mts +2 -1
  56. package/src/session.d.mts +5 -3
  57. package/src/session.mjs +26 -10
  58. package/viewer/dist/index.js +179 -179
  59. package/viewer/dist/standalone.js +179 -179
  60. package/viewer/index.d.ts +2 -1
@@ -0,0 +1,1150 @@
1
+ {
2
+ "$defs": {
3
+ "CurveClass": {
4
+ "enum": [
5
+ "line",
6
+ "circle",
7
+ "ellipse",
8
+ "nurbs",
9
+ "other"
10
+ ],
11
+ "type": "string"
12
+ },
13
+ "DatumInput": {
14
+ "additionalProperties": false,
15
+ "properties": {
16
+ "datum": {
17
+ "type": "string"
18
+ }
19
+ },
20
+ "required": [
21
+ "datum"
22
+ ],
23
+ "type": "object"
24
+ },
25
+ "Derive": {
26
+ "oneOf": [
27
+ {
28
+ "additionalProperties": false,
29
+ "properties": {
30
+ "kind": {
31
+ "const": "point",
32
+ "type": "string"
33
+ }
34
+ },
35
+ "required": [
36
+ "kind"
37
+ ],
38
+ "type": "object"
39
+ },
40
+ {
41
+ "additionalProperties": false,
42
+ "properties": {
43
+ "kind": {
44
+ "const": "plane",
45
+ "type": "string"
46
+ }
47
+ },
48
+ "required": [
49
+ "kind"
50
+ ],
51
+ "type": "object"
52
+ },
53
+ {
54
+ "additionalProperties": false,
55
+ "properties": {
56
+ "kind": {
57
+ "const": "axis",
58
+ "type": "string"
59
+ }
60
+ },
61
+ "required": [
62
+ "kind"
63
+ ],
64
+ "type": "object"
65
+ },
66
+ {
67
+ "additionalProperties": false,
68
+ "properties": {
69
+ "kind": {
70
+ "const": "direction",
71
+ "type": "string"
72
+ }
73
+ },
74
+ "required": [
75
+ "kind"
76
+ ],
77
+ "type": "object"
78
+ }
79
+ ]
80
+ },
81
+ "DirectionInput": {
82
+ "anyOf": [
83
+ {
84
+ "items": {
85
+ "format": "double",
86
+ "type": "number"
87
+ },
88
+ "maxItems": 3,
89
+ "minItems": 3,
90
+ "type": "array"
91
+ },
92
+ {
93
+ "additionalProperties": false,
94
+ "properties": {
95
+ "datum": {
96
+ "type": "string"
97
+ }
98
+ },
99
+ "required": [
100
+ "datum"
101
+ ],
102
+ "type": "object"
103
+ }
104
+ ]
105
+ },
106
+ "Filter": {
107
+ "additionalProperties": false,
108
+ "properties": {
109
+ "all": {
110
+ "default": [],
111
+ "items": {
112
+ "$ref": "#/$defs/Filter"
113
+ },
114
+ "type": "array"
115
+ },
116
+ "any": {
117
+ "default": [],
118
+ "items": {
119
+ "$ref": "#/$defs/Filter"
120
+ },
121
+ "type": "array"
122
+ },
123
+ "area_mm2": {
124
+ "anyOf": [
125
+ {
126
+ "$ref": "#/$defs/Range"
127
+ },
128
+ {
129
+ "type": "null"
130
+ }
131
+ ]
132
+ },
133
+ "curve_type": {
134
+ "anyOf": [
135
+ {
136
+ "$ref": "#/$defs/CurveClass"
137
+ },
138
+ {
139
+ "type": "null"
140
+ }
141
+ ]
142
+ },
143
+ "length_mm": {
144
+ "anyOf": [
145
+ {
146
+ "$ref": "#/$defs/Range"
147
+ },
148
+ {
149
+ "type": "null"
150
+ }
151
+ ]
152
+ },
153
+ "loop_role": {
154
+ "anyOf": [
155
+ {
156
+ "$ref": "#/$defs/LoopRole"
157
+ },
158
+ {
159
+ "type": "null"
160
+ }
161
+ ]
162
+ },
163
+ "name": {
164
+ "type": [
165
+ "string",
166
+ "null"
167
+ ]
168
+ },
169
+ "not": {
170
+ "anyOf": [
171
+ {
172
+ "$ref": "#/$defs/Filter"
173
+ },
174
+ {
175
+ "type": "null"
176
+ }
177
+ ]
178
+ },
179
+ "planar_coplanar_with": {
180
+ "anyOf": [
181
+ {
182
+ "$ref": "#/$defs/DatumInput"
183
+ },
184
+ {
185
+ "type": "null"
186
+ }
187
+ ]
188
+ },
189
+ "planar_normal_aligned_with": {
190
+ "anyOf": [
191
+ {
192
+ "$ref": "#/$defs/DirectionInput"
193
+ },
194
+ {
195
+ "type": "null"
196
+ }
197
+ ]
198
+ },
199
+ "planar_normal_parallel_to": {
200
+ "anyOf": [
201
+ {
202
+ "$ref": "#/$defs/DirectionInput"
203
+ },
204
+ {
205
+ "type": "null"
206
+ }
207
+ ]
208
+ },
209
+ "radius_mm": {
210
+ "anyOf": [
211
+ {
212
+ "$ref": "#/$defs/Range"
213
+ },
214
+ {
215
+ "type": "null"
216
+ }
217
+ ]
218
+ },
219
+ "surface_type": {
220
+ "anyOf": [
221
+ {
222
+ "$ref": "#/$defs/SurfaceClass"
223
+ },
224
+ {
225
+ "type": "null"
226
+ }
227
+ ]
228
+ }
229
+ },
230
+ "type": "object"
231
+ },
232
+ "HoleFilter": {
233
+ "additionalProperties": false,
234
+ "properties": {
235
+ "axis_parallel_to": {
236
+ "anyOf": [
237
+ {
238
+ "$ref": "#/$defs/DirectionInput"
239
+ },
240
+ {
241
+ "type": "null"
242
+ }
243
+ ]
244
+ },
245
+ "diameter_mm": {
246
+ "anyOf": [
247
+ {
248
+ "$ref": "#/$defs/Range"
249
+ },
250
+ {
251
+ "type": "null"
252
+ }
253
+ ]
254
+ },
255
+ "opening_on": {
256
+ "default": [],
257
+ "items": {
258
+ "$ref": "#/$defs/TopologyRef"
259
+ },
260
+ "type": "array"
261
+ },
262
+ "termination": {
263
+ "anyOf": [
264
+ {
265
+ "$ref": "#/$defs/Termination"
266
+ },
267
+ {
268
+ "type": "null"
269
+ }
270
+ ]
271
+ }
272
+ },
273
+ "type": "object"
274
+ },
275
+ "HoleGroupFilter": {
276
+ "additionalProperties": false,
277
+ "properties": {
278
+ "equal_diameter": {
279
+ "default": false,
280
+ "type": "boolean"
281
+ },
282
+ "member_count": {
283
+ "format": "uint",
284
+ "minimum": 0,
285
+ "type": [
286
+ "integer",
287
+ "null"
288
+ ]
289
+ },
290
+ "pattern": {
291
+ "anyOf": [
292
+ {
293
+ "$ref": "#/$defs/HolePattern"
294
+ },
295
+ {
296
+ "type": "null"
297
+ }
298
+ ]
299
+ }
300
+ },
301
+ "type": "object"
302
+ },
303
+ "HolePattern": {
304
+ "enum": [
305
+ "linear",
306
+ "rectangular",
307
+ "circular",
308
+ "unstructured"
309
+ ],
310
+ "type": "string"
311
+ },
312
+ "Kind": {
313
+ "enum": [
314
+ "face",
315
+ "edge",
316
+ "vertex",
317
+ "loop"
318
+ ],
319
+ "type": "string"
320
+ },
321
+ "LoopRole": {
322
+ "enum": [
323
+ "outer",
324
+ "inner",
325
+ "unknown"
326
+ ],
327
+ "type": "string"
328
+ },
329
+ "Query": {
330
+ "oneOf": [
331
+ {
332
+ "properties": {
333
+ "a": {
334
+ "$ref": "#/$defs/Target"
335
+ },
336
+ "b": {
337
+ "$ref": "#/$defs/Target"
338
+ },
339
+ "op": {
340
+ "const": "measure",
341
+ "type": "string"
342
+ }
343
+ },
344
+ "required": [
345
+ "op",
346
+ "a",
347
+ "b"
348
+ ],
349
+ "type": "object"
350
+ },
351
+ {
352
+ "properties": {
353
+ "op": {
354
+ "const": "faces",
355
+ "type": "string"
356
+ },
357
+ "where": {
358
+ "$ref": "#/$defs/Filter",
359
+ "default": {
360
+ "all": [],
361
+ "any": [],
362
+ "area_mm2": null,
363
+ "curve_type": null,
364
+ "length_mm": null,
365
+ "loop_role": null,
366
+ "name": null,
367
+ "not": null,
368
+ "planar_coplanar_with": null,
369
+ "planar_normal_aligned_with": null,
370
+ "planar_normal_parallel_to": null,
371
+ "radius_mm": null,
372
+ "surface_type": null
373
+ }
374
+ }
375
+ },
376
+ "required": [
377
+ "op"
378
+ ],
379
+ "type": "object"
380
+ },
381
+ {
382
+ "properties": {
383
+ "op": {
384
+ "const": "edges",
385
+ "type": "string"
386
+ },
387
+ "where": {
388
+ "$ref": "#/$defs/Filter",
389
+ "default": {
390
+ "all": [],
391
+ "any": [],
392
+ "area_mm2": null,
393
+ "curve_type": null,
394
+ "length_mm": null,
395
+ "loop_role": null,
396
+ "name": null,
397
+ "not": null,
398
+ "planar_coplanar_with": null,
399
+ "planar_normal_aligned_with": null,
400
+ "planar_normal_parallel_to": null,
401
+ "radius_mm": null,
402
+ "surface_type": null
403
+ }
404
+ }
405
+ },
406
+ "required": [
407
+ "op"
408
+ ],
409
+ "type": "object"
410
+ },
411
+ {
412
+ "properties": {
413
+ "op": {
414
+ "const": "vertices",
415
+ "type": "string"
416
+ },
417
+ "where": {
418
+ "$ref": "#/$defs/Filter",
419
+ "default": {
420
+ "all": [],
421
+ "any": [],
422
+ "area_mm2": null,
423
+ "curve_type": null,
424
+ "length_mm": null,
425
+ "loop_role": null,
426
+ "name": null,
427
+ "not": null,
428
+ "planar_coplanar_with": null,
429
+ "planar_normal_aligned_with": null,
430
+ "planar_normal_parallel_to": null,
431
+ "radius_mm": null,
432
+ "surface_type": null
433
+ }
434
+ }
435
+ },
436
+ "required": [
437
+ "op"
438
+ ],
439
+ "type": "object"
440
+ },
441
+ {
442
+ "properties": {
443
+ "op": {
444
+ "const": "loops",
445
+ "type": "string"
446
+ },
447
+ "where": {
448
+ "$ref": "#/$defs/Filter",
449
+ "default": {
450
+ "all": [],
451
+ "any": [],
452
+ "area_mm2": null,
453
+ "curve_type": null,
454
+ "length_mm": null,
455
+ "loop_role": null,
456
+ "name": null,
457
+ "not": null,
458
+ "planar_coplanar_with": null,
459
+ "planar_normal_aligned_with": null,
460
+ "planar_normal_parallel_to": null,
461
+ "radius_mm": null,
462
+ "surface_type": null
463
+ }
464
+ }
465
+ },
466
+ "required": [
467
+ "op"
468
+ ],
469
+ "type": "object"
470
+ },
471
+ {
472
+ "properties": {
473
+ "op": {
474
+ "const": "select",
475
+ "type": "string"
476
+ },
477
+ "selection": {
478
+ "$ref": "#/$defs/Selection"
479
+ }
480
+ },
481
+ "required": [
482
+ "op",
483
+ "selection"
484
+ ],
485
+ "type": "object"
486
+ },
487
+ {
488
+ "properties": {
489
+ "op": {
490
+ "const": "describe",
491
+ "type": "string"
492
+ },
493
+ "refs": {
494
+ "items": {
495
+ "$ref": "#/$defs/TopologyRef"
496
+ },
497
+ "type": "array"
498
+ }
499
+ },
500
+ "required": [
501
+ "op",
502
+ "refs"
503
+ ],
504
+ "type": "object"
505
+ },
506
+ {
507
+ "properties": {
508
+ "derive": {
509
+ "$ref": "#/$defs/Derive"
510
+ },
511
+ "op": {
512
+ "const": "datums",
513
+ "type": "string"
514
+ },
515
+ "selection": {
516
+ "$ref": "#/$defs/Selection"
517
+ }
518
+ },
519
+ "required": [
520
+ "op",
521
+ "selection",
522
+ "derive"
523
+ ],
524
+ "type": "object"
525
+ },
526
+ {
527
+ "properties": {
528
+ "ids": {
529
+ "items": {
530
+ "type": "string"
531
+ },
532
+ "type": [
533
+ "array",
534
+ "null"
535
+ ]
536
+ },
537
+ "op": {
538
+ "const": "interfaces",
539
+ "type": "string"
540
+ },
541
+ "profile": {
542
+ "type": [
543
+ "string",
544
+ "null"
545
+ ]
546
+ },
547
+ "support_faces": {
548
+ "default": [],
549
+ "items": {
550
+ "$ref": "#/$defs/TopologyRef"
551
+ },
552
+ "type": "array"
553
+ },
554
+ "where": {
555
+ "$ref": "#/$defs/HoleGroupFilter",
556
+ "default": {
557
+ "equal_diameter": false,
558
+ "member_count": null,
559
+ "pattern": null
560
+ }
561
+ }
562
+ },
563
+ "required": [
564
+ "op"
565
+ ],
566
+ "type": "object"
567
+ },
568
+ {
569
+ "properties": {
570
+ "op": {
571
+ "const": "hole_groups",
572
+ "type": "string"
573
+ },
574
+ "support_faces": {
575
+ "default": [],
576
+ "items": {
577
+ "$ref": "#/$defs/TopologyRef"
578
+ },
579
+ "type": "array"
580
+ },
581
+ "where": {
582
+ "$ref": "#/$defs/HoleGroupFilter",
583
+ "default": {
584
+ "equal_diameter": false,
585
+ "member_count": null,
586
+ "pattern": null
587
+ }
588
+ }
589
+ },
590
+ "required": [
591
+ "op"
592
+ ],
593
+ "type": "object"
594
+ },
595
+ {
596
+ "properties": {
597
+ "op": {
598
+ "const": "holes",
599
+ "type": "string"
600
+ },
601
+ "where": {
602
+ "$ref": "#/$defs/HoleFilter",
603
+ "default": {
604
+ "axis_parallel_to": null,
605
+ "diameter_mm": null,
606
+ "opening_on": [],
607
+ "termination": null
608
+ }
609
+ }
610
+ },
611
+ "required": [
612
+ "op"
613
+ ],
614
+ "type": "object"
615
+ },
616
+ {
617
+ "properties": {
618
+ "ids": {
619
+ "items": {
620
+ "type": "string"
621
+ },
622
+ "type": "array"
623
+ },
624
+ "op": {
625
+ "const": "named_datums",
626
+ "type": "string"
627
+ }
628
+ },
629
+ "required": [
630
+ "op",
631
+ "ids"
632
+ ],
633
+ "type": "object"
634
+ },
635
+ {
636
+ "properties": {
637
+ "op": {
638
+ "const": "evaluate_face",
639
+ "type": "string"
640
+ },
641
+ "ref": {
642
+ "$ref": "#/$defs/TopologyRef"
643
+ },
644
+ "uv": {
645
+ "items": {
646
+ "format": "double",
647
+ "type": "number"
648
+ },
649
+ "maxItems": 2,
650
+ "minItems": 2,
651
+ "type": "array"
652
+ }
653
+ },
654
+ "required": [
655
+ "op",
656
+ "ref",
657
+ "uv"
658
+ ],
659
+ "type": "object"
660
+ }
661
+ ],
662
+ "properties": {
663
+ "cursor": {
664
+ "default": null,
665
+ "type": [
666
+ "string",
667
+ "null"
668
+ ]
669
+ },
670
+ "id": {
671
+ "type": "string"
672
+ },
673
+ "limit": {
674
+ "default": 64,
675
+ "format": "uint",
676
+ "minimum": 0,
677
+ "type": "integer"
678
+ }
679
+ },
680
+ "required": [
681
+ "id"
682
+ ],
683
+ "type": "object"
684
+ },
685
+ "Range": {
686
+ "additionalProperties": false,
687
+ "properties": {
688
+ "max": {
689
+ "format": "double",
690
+ "type": [
691
+ "number",
692
+ "null"
693
+ ]
694
+ },
695
+ "min": {
696
+ "format": "double",
697
+ "type": [
698
+ "number",
699
+ "null"
700
+ ]
701
+ }
702
+ },
703
+ "type": "object"
704
+ },
705
+ "RankBy": {
706
+ "oneOf": [
707
+ {
708
+ "additionalProperties": false,
709
+ "properties": {
710
+ "property": {
711
+ "const": "area_mm2",
712
+ "type": "string"
713
+ }
714
+ },
715
+ "required": [
716
+ "property"
717
+ ],
718
+ "type": "object"
719
+ },
720
+ {
721
+ "additionalProperties": false,
722
+ "properties": {
723
+ "property": {
724
+ "const": "length_mm",
725
+ "type": "string"
726
+ }
727
+ },
728
+ "required": [
729
+ "property"
730
+ ],
731
+ "type": "object"
732
+ },
733
+ {
734
+ "additionalProperties": false,
735
+ "properties": {
736
+ "direction": {
737
+ "$ref": "#/$defs/DirectionInput"
738
+ },
739
+ "property": {
740
+ "const": "center_projection",
741
+ "type": "string"
742
+ }
743
+ },
744
+ "required": [
745
+ "property",
746
+ "direction"
747
+ ],
748
+ "type": "object"
749
+ }
750
+ ]
751
+ },
752
+ "Selection": {
753
+ "oneOf": [
754
+ {
755
+ "additionalProperties": false,
756
+ "properties": {
757
+ "entity": {
758
+ "$ref": "#/$defs/Kind"
759
+ },
760
+ "kind": {
761
+ "const": "entities",
762
+ "type": "string"
763
+ }
764
+ },
765
+ "required": [
766
+ "kind",
767
+ "entity"
768
+ ],
769
+ "type": "object"
770
+ },
771
+ {
772
+ "additionalProperties": false,
773
+ "properties": {
774
+ "kind": {
775
+ "const": "refs",
776
+ "type": "string"
777
+ },
778
+ "refs": {
779
+ "items": {
780
+ "$ref": "#/$defs/TopologyRef"
781
+ },
782
+ "type": "array"
783
+ }
784
+ },
785
+ "required": [
786
+ "kind",
787
+ "refs"
788
+ ],
789
+ "type": "object"
790
+ },
791
+ {
792
+ "additionalProperties": false,
793
+ "properties": {
794
+ "input": {
795
+ "$ref": "#/$defs/Selection"
796
+ },
797
+ "kind": {
798
+ "const": "filter",
799
+ "type": "string"
800
+ },
801
+ "where": {
802
+ "$ref": "#/$defs/Filter"
803
+ }
804
+ },
805
+ "required": [
806
+ "kind",
807
+ "input",
808
+ "where"
809
+ ],
810
+ "type": "object"
811
+ },
812
+ {
813
+ "additionalProperties": false,
814
+ "properties": {
815
+ "entity": {
816
+ "$ref": "#/$defs/Kind"
817
+ },
818
+ "input": {
819
+ "$ref": "#/$defs/Selection"
820
+ },
821
+ "kind": {
822
+ "const": "children",
823
+ "type": "string"
824
+ }
825
+ },
826
+ "required": [
827
+ "kind",
828
+ "input",
829
+ "entity"
830
+ ],
831
+ "type": "object"
832
+ },
833
+ {
834
+ "additionalProperties": false,
835
+ "properties": {
836
+ "entity": {
837
+ "$ref": "#/$defs/Kind"
838
+ },
839
+ "input": {
840
+ "$ref": "#/$defs/Selection"
841
+ },
842
+ "kind": {
843
+ "const": "ancestors",
844
+ "type": "string"
845
+ }
846
+ },
847
+ "required": [
848
+ "kind",
849
+ "input",
850
+ "entity"
851
+ ],
852
+ "type": "object"
853
+ },
854
+ {
855
+ "additionalProperties": false,
856
+ "properties": {
857
+ "entity": {
858
+ "$ref": "#/$defs/Kind"
859
+ },
860
+ "input": {
861
+ "$ref": "#/$defs/Selection"
862
+ },
863
+ "kind": {
864
+ "const": "siblings",
865
+ "type": "string"
866
+ },
867
+ "via": {
868
+ "$ref": "#/$defs/Kind"
869
+ }
870
+ },
871
+ "required": [
872
+ "kind",
873
+ "input",
874
+ "entity",
875
+ "via"
876
+ ],
877
+ "type": "object"
878
+ },
879
+ {
880
+ "additionalProperties": false,
881
+ "properties": {
882
+ "inputs": {
883
+ "items": {
884
+ "$ref": "#/$defs/Selection"
885
+ },
886
+ "type": "array"
887
+ },
888
+ "kind": {
889
+ "const": "union",
890
+ "type": "string"
891
+ }
892
+ },
893
+ "required": [
894
+ "kind",
895
+ "inputs"
896
+ ],
897
+ "type": "object"
898
+ },
899
+ {
900
+ "additionalProperties": false,
901
+ "properties": {
902
+ "inputs": {
903
+ "items": {
904
+ "$ref": "#/$defs/Selection"
905
+ },
906
+ "type": "array"
907
+ },
908
+ "kind": {
909
+ "const": "intersection",
910
+ "type": "string"
911
+ }
912
+ },
913
+ "required": [
914
+ "kind",
915
+ "inputs"
916
+ ],
917
+ "type": "object"
918
+ },
919
+ {
920
+ "additionalProperties": false,
921
+ "properties": {
922
+ "kind": {
923
+ "const": "difference",
924
+ "type": "string"
925
+ },
926
+ "left": {
927
+ "$ref": "#/$defs/Selection"
928
+ },
929
+ "right": {
930
+ "$ref": "#/$defs/Selection"
931
+ }
932
+ },
933
+ "required": [
934
+ "kind",
935
+ "left",
936
+ "right"
937
+ ],
938
+ "type": "object"
939
+ },
940
+ {
941
+ "additionalProperties": false,
942
+ "properties": {
943
+ "by": {
944
+ "$ref": "#/$defs/RankBy"
945
+ },
946
+ "descending": {
947
+ "default": false,
948
+ "type": "boolean"
949
+ },
950
+ "input": {
951
+ "$ref": "#/$defs/Selection"
952
+ },
953
+ "kind": {
954
+ "const": "rank",
955
+ "type": "string"
956
+ },
957
+ "rank": {
958
+ "format": "uint",
959
+ "minimum": 0,
960
+ "type": "integer"
961
+ },
962
+ "tie_tolerance": {
963
+ "format": "double",
964
+ "type": "number"
965
+ }
966
+ },
967
+ "required": [
968
+ "kind",
969
+ "input",
970
+ "by",
971
+ "rank",
972
+ "tie_tolerance"
973
+ ],
974
+ "type": "object"
975
+ },
976
+ {
977
+ "additionalProperties": false,
978
+ "properties": {
979
+ "count": {
980
+ "format": "uint",
981
+ "minimum": 0,
982
+ "type": "integer"
983
+ },
984
+ "input": {
985
+ "$ref": "#/$defs/Selection"
986
+ },
987
+ "kind": {
988
+ "const": "expect",
989
+ "type": "string"
990
+ }
991
+ },
992
+ "required": [
993
+ "kind",
994
+ "input",
995
+ "count"
996
+ ],
997
+ "type": "object"
998
+ }
999
+ ]
1000
+ },
1001
+ "Space": {
1002
+ "enum": [
1003
+ "definition",
1004
+ "assembly"
1005
+ ],
1006
+ "type": "string"
1007
+ },
1008
+ "SurfaceClass": {
1009
+ "enum": [
1010
+ "plane",
1011
+ "cylinder",
1012
+ "cone",
1013
+ "sphere",
1014
+ "torus",
1015
+ "nurbs",
1016
+ "other"
1017
+ ],
1018
+ "type": "string"
1019
+ },
1020
+ "Target": {
1021
+ "anyOf": [
1022
+ {
1023
+ "additionalProperties": false,
1024
+ "properties": {
1025
+ "definition_id": {
1026
+ "type": "string"
1027
+ }
1028
+ },
1029
+ "required": [
1030
+ "definition_id"
1031
+ ],
1032
+ "type": "object"
1033
+ },
1034
+ {
1035
+ "additionalProperties": false,
1036
+ "properties": {
1037
+ "instance_path": {
1038
+ "items": {
1039
+ "type": "string"
1040
+ },
1041
+ "type": "array"
1042
+ }
1043
+ },
1044
+ "required": [
1045
+ "instance_path"
1046
+ ],
1047
+ "type": "object"
1048
+ }
1049
+ ]
1050
+ },
1051
+ "Termination": {
1052
+ "enum": [
1053
+ "through",
1054
+ "blind",
1055
+ "unknown"
1056
+ ],
1057
+ "type": "string"
1058
+ },
1059
+ "Tolerance": {
1060
+ "additionalProperties": false,
1061
+ "properties": {
1062
+ "angular_rad": {
1063
+ "format": "double",
1064
+ "type": "number"
1065
+ },
1066
+ "linear_mm": {
1067
+ "format": "double",
1068
+ "type": "number"
1069
+ }
1070
+ },
1071
+ "required": [
1072
+ "linear_mm",
1073
+ "angular_rad"
1074
+ ],
1075
+ "type": "object"
1076
+ },
1077
+ "TopologyRef": {
1078
+ "additionalProperties": false,
1079
+ "properties": {
1080
+ "definition_id": {
1081
+ "type": "string"
1082
+ },
1083
+ "definition_sha256": {
1084
+ "type": "string"
1085
+ },
1086
+ "instance_path": {
1087
+ "items": {
1088
+ "type": "string"
1089
+ },
1090
+ "type": [
1091
+ "array",
1092
+ "null"
1093
+ ]
1094
+ },
1095
+ "kind": {
1096
+ "$ref": "#/$defs/Kind"
1097
+ },
1098
+ "query_revision_id": {
1099
+ "type": "string"
1100
+ },
1101
+ "topology_id": {
1102
+ "type": "string"
1103
+ }
1104
+ },
1105
+ "required": [
1106
+ "query_revision_id",
1107
+ "definition_id",
1108
+ "definition_sha256",
1109
+ "kind",
1110
+ "topology_id"
1111
+ ],
1112
+ "type": "object"
1113
+ }
1114
+ },
1115
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1116
+ "additionalProperties": false,
1117
+ "properties": {
1118
+ "queries": {
1119
+ "items": {
1120
+ "$ref": "#/$defs/Query"
1121
+ },
1122
+ "type": "array"
1123
+ },
1124
+ "query_revision_id": {
1125
+ "type": "string"
1126
+ },
1127
+ "schema": {
1128
+ "type": "string"
1129
+ },
1130
+ "space": {
1131
+ "$ref": "#/$defs/Space"
1132
+ },
1133
+ "target": {
1134
+ "$ref": "#/$defs/Target"
1135
+ },
1136
+ "tolerance": {
1137
+ "$ref": "#/$defs/Tolerance"
1138
+ }
1139
+ },
1140
+ "required": [
1141
+ "schema",
1142
+ "query_revision_id",
1143
+ "target",
1144
+ "space",
1145
+ "tolerance",
1146
+ "queries"
1147
+ ],
1148
+ "title": "Request",
1149
+ "type": "object"
1150
+ }