surfcad-mcp 0.2.0 → 0.2.1

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.
@@ -2,12 +2,29 @@
2
2
  "version": 1,
3
3
  "bridgeVersion": 1,
4
4
  "generatedBy": "npm run export:agent",
5
- "count": 178,
5
+ "count": 181,
6
6
  "$defs": {
7
7
  "status": {
8
8
  "type": "object",
9
9
  "additionalProperties": false,
10
10
  "properties": {
11
+ "partId": {
12
+ "type": "string"
13
+ },
14
+ "partName": {
15
+ "type": "string"
16
+ },
17
+ "script": {
18
+ "type": "string"
19
+ },
20
+ "runState": {
21
+ "type": "string",
22
+ "enum": [
23
+ "not_run_yet",
24
+ "ok",
25
+ "failed"
26
+ ]
27
+ },
11
28
  "volume": {
12
29
  "type": [
13
30
  "number",
@@ -43,11 +60,14 @@
43
60
  }
44
61
  ]
45
62
  },
46
- "partName": {
47
- "type": "string"
48
- },
49
63
  "featureCount": {
50
64
  "type": "integer"
65
+ },
66
+ "bodyCount": {
67
+ "type": [
68
+ "integer",
69
+ "null"
70
+ ]
51
71
  }
52
72
  }
53
73
  },
@@ -68,6 +88,23 @@
68
88
  "type": "object",
69
89
  "additionalProperties": false,
70
90
  "properties": {
91
+ "partId": {
92
+ "type": "string"
93
+ },
94
+ "partName": {
95
+ "type": "string"
96
+ },
97
+ "script": {
98
+ "type": "string"
99
+ },
100
+ "runState": {
101
+ "type": "string",
102
+ "enum": [
103
+ "not_run_yet",
104
+ "ok",
105
+ "failed"
106
+ ]
107
+ },
71
108
  "volume": {
72
109
  "type": [
73
110
  "number",
@@ -103,11 +140,14 @@
103
140
  }
104
141
  ]
105
142
  },
106
- "partName": {
107
- "type": "string"
108
- },
109
143
  "featureCount": {
110
144
  "type": "integer"
145
+ },
146
+ "bodyCount": {
147
+ "type": [
148
+ "integer",
149
+ "null"
150
+ ]
111
151
  }
112
152
  }
113
153
  },
@@ -152,7 +192,7 @@
152
192
  },
153
193
  {
154
194
  "name": "set_script",
155
- "description": "Write the editor, run the script, and record one undo step when the text changes.",
195
+ "description": "Write the editor, run the script, and record one undo step when the text changes. Preserves or re-injects the active part `// @surf-id` header when the part has a surf id.",
156
196
  "args": {
157
197
  "type": "object",
158
198
  "additionalProperties": false,
@@ -183,6 +223,23 @@
183
223
  "type": "object",
184
224
  "additionalProperties": false,
185
225
  "properties": {
226
+ "partId": {
227
+ "type": "string"
228
+ },
229
+ "partName": {
230
+ "type": "string"
231
+ },
232
+ "script": {
233
+ "type": "string"
234
+ },
235
+ "runState": {
236
+ "type": "string",
237
+ "enum": [
238
+ "not_run_yet",
239
+ "ok",
240
+ "failed"
241
+ ]
242
+ },
186
243
  "volume": {
187
244
  "type": [
188
245
  "number",
@@ -218,11 +275,14 @@
218
275
  }
219
276
  ]
220
277
  },
221
- "partName": {
222
- "type": "string"
223
- },
224
278
  "featureCount": {
225
279
  "type": "integer"
280
+ },
281
+ "bodyCount": {
282
+ "type": [
283
+ "integer",
284
+ "null"
285
+ ]
226
286
  }
227
287
  }
228
288
  },
@@ -269,6 +329,23 @@
269
329
  "type": "object",
270
330
  "additionalProperties": false,
271
331
  "properties": {
332
+ "partId": {
333
+ "type": "string"
334
+ },
335
+ "partName": {
336
+ "type": "string"
337
+ },
338
+ "script": {
339
+ "type": "string"
340
+ },
341
+ "runState": {
342
+ "type": "string",
343
+ "enum": [
344
+ "not_run_yet",
345
+ "ok",
346
+ "failed"
347
+ ]
348
+ },
272
349
  "volume": {
273
350
  "type": [
274
351
  "number",
@@ -304,11 +381,14 @@
304
381
  }
305
382
  ]
306
383
  },
307
- "partName": {
308
- "type": "string"
309
- },
310
384
  "featureCount": {
311
385
  "type": "integer"
386
+ },
387
+ "bodyCount": {
388
+ "type": [
389
+ "integer",
390
+ "null"
391
+ ]
312
392
  }
313
393
  }
314
394
  },
@@ -329,7 +409,7 @@
329
409
  },
330
410
  {
331
411
  "name": "status",
332
- "description": "Status from the last finished set_script, run, or undo.",
412
+ "description": "Status for the active part: id, name, editor script, runState (not_run_yet | ok | failed), and the last run volume/bbox/bodyCount when available. Updates when the active part changes without requiring another run.",
333
413
  "args": {
334
414
  "type": "object",
335
415
  "additionalProperties": false,
@@ -339,6 +419,23 @@
339
419
  "type": "object",
340
420
  "additionalProperties": false,
341
421
  "properties": {
422
+ "partId": {
423
+ "type": "string"
424
+ },
425
+ "partName": {
426
+ "type": "string"
427
+ },
428
+ "script": {
429
+ "type": "string"
430
+ },
431
+ "runState": {
432
+ "type": "string",
433
+ "enum": [
434
+ "not_run_yet",
435
+ "ok",
436
+ "failed"
437
+ ]
438
+ },
342
439
  "volume": {
343
440
  "type": [
344
441
  "number",
@@ -374,11 +471,14 @@
374
471
  }
375
472
  ]
376
473
  },
377
- "partName": {
378
- "type": "string"
379
- },
380
474
  "featureCount": {
381
475
  "type": "integer"
476
+ },
477
+ "bodyCount": {
478
+ "type": [
479
+ "integer",
480
+ "null"
481
+ ]
382
482
  }
383
483
  }
384
484
  },
@@ -508,6 +608,23 @@
508
608
  "type": "object",
509
609
  "additionalProperties": false,
510
610
  "properties": {
611
+ "partId": {
612
+ "type": "string"
613
+ },
614
+ "partName": {
615
+ "type": "string"
616
+ },
617
+ "script": {
618
+ "type": "string"
619
+ },
620
+ "runState": {
621
+ "type": "string",
622
+ "enum": [
623
+ "not_run_yet",
624
+ "ok",
625
+ "failed"
626
+ ]
627
+ },
511
628
  "volume": {
512
629
  "type": [
513
630
  "number",
@@ -543,11 +660,14 @@
543
660
  }
544
661
  ]
545
662
  },
546
- "partName": {
547
- "type": "string"
548
- },
549
663
  "featureCount": {
550
664
  "type": "integer"
665
+ },
666
+ "bodyCount": {
667
+ "type": [
668
+ "integer",
669
+ "null"
670
+ ]
551
671
  }
552
672
  }
553
673
  },
@@ -612,6 +732,23 @@
612
732
  "type": "object",
613
733
  "additionalProperties": false,
614
734
  "properties": {
735
+ "partId": {
736
+ "type": "string"
737
+ },
738
+ "partName": {
739
+ "type": "string"
740
+ },
741
+ "script": {
742
+ "type": "string"
743
+ },
744
+ "runState": {
745
+ "type": "string",
746
+ "enum": [
747
+ "not_run_yet",
748
+ "ok",
749
+ "failed"
750
+ ]
751
+ },
615
752
  "volume": {
616
753
  "type": [
617
754
  "number",
@@ -647,11 +784,14 @@
647
784
  }
648
785
  ]
649
786
  },
650
- "partName": {
651
- "type": "string"
652
- },
653
787
  "featureCount": {
654
788
  "type": "integer"
789
+ },
790
+ "bodyCount": {
791
+ "type": [
792
+ "integer",
793
+ "null"
794
+ ]
655
795
  }
656
796
  }
657
797
  },
@@ -993,7 +1133,7 @@
993
1133
  },
994
1134
  {
995
1135
  "name": "list_faces",
996
- "description": "Face fingerprints for the active or named part mesh.",
1136
+ "description": "Every pickable face on the active or named part mesh (one row per face a viewport click selects, all bodies): id (f0, f1, …), type (planar, cylindrical, curved), center, normal, axis and radius for cylinders, area, and key. The id is the patch index on this mesh and is only valid until the next remesh; a rerun of the same script keeps every id. Pass the key with the id to joint_pick so a stale id cannot silently pick another face.",
997
1137
  "args": {
998
1138
  "type": "object",
999
1139
  "additionalProperties": false,
@@ -1130,6 +1270,23 @@
1130
1270
  "type": "object",
1131
1271
  "additionalProperties": false,
1132
1272
  "properties": {
1273
+ "partId": {
1274
+ "type": "string"
1275
+ },
1276
+ "partName": {
1277
+ "type": "string"
1278
+ },
1279
+ "script": {
1280
+ "type": "string"
1281
+ },
1282
+ "runState": {
1283
+ "type": "string",
1284
+ "enum": [
1285
+ "not_run_yet",
1286
+ "ok",
1287
+ "failed"
1288
+ ]
1289
+ },
1133
1290
  "volume": {
1134
1291
  "type": [
1135
1292
  "number",
@@ -1165,11 +1322,14 @@
1165
1322
  }
1166
1323
  ]
1167
1324
  },
1168
- "partName": {
1169
- "type": "string"
1170
- },
1171
1325
  "featureCount": {
1172
1326
  "type": "integer"
1327
+ },
1328
+ "bodyCount": {
1329
+ "type": [
1330
+ "integer",
1331
+ "null"
1332
+ ]
1173
1333
  }
1174
1334
  }
1175
1335
  }
@@ -1275,6 +1435,23 @@
1275
1435
  "type": "object",
1276
1436
  "additionalProperties": false,
1277
1437
  "properties": {
1438
+ "partId": {
1439
+ "type": "string"
1440
+ },
1441
+ "partName": {
1442
+ "type": "string"
1443
+ },
1444
+ "script": {
1445
+ "type": "string"
1446
+ },
1447
+ "runState": {
1448
+ "type": "string",
1449
+ "enum": [
1450
+ "not_run_yet",
1451
+ "ok",
1452
+ "failed"
1453
+ ]
1454
+ },
1278
1455
  "volume": {
1279
1456
  "type": [
1280
1457
  "number",
@@ -1310,11 +1487,14 @@
1310
1487
  }
1311
1488
  ]
1312
1489
  },
1313
- "partName": {
1314
- "type": "string"
1315
- },
1316
1490
  "featureCount": {
1317
1491
  "type": "integer"
1492
+ },
1493
+ "bodyCount": {
1494
+ "type": [
1495
+ "integer",
1496
+ "null"
1497
+ ]
1318
1498
  }
1319
1499
  }
1320
1500
  }
@@ -1434,6 +1614,23 @@
1434
1614
  "type": "object",
1435
1615
  "additionalProperties": false,
1436
1616
  "properties": {
1617
+ "partId": {
1618
+ "type": "string"
1619
+ },
1620
+ "partName": {
1621
+ "type": "string"
1622
+ },
1623
+ "script": {
1624
+ "type": "string"
1625
+ },
1626
+ "runState": {
1627
+ "type": "string",
1628
+ "enum": [
1629
+ "not_run_yet",
1630
+ "ok",
1631
+ "failed"
1632
+ ]
1633
+ },
1437
1634
  "volume": {
1438
1635
  "type": [
1439
1636
  "number",
@@ -1469,11 +1666,14 @@
1469
1666
  }
1470
1667
  ]
1471
1668
  },
1472
- "partName": {
1473
- "type": "string"
1474
- },
1475
1669
  "featureCount": {
1476
1670
  "type": "integer"
1671
+ },
1672
+ "bodyCount": {
1673
+ "type": [
1674
+ "integer",
1675
+ "null"
1676
+ ]
1477
1677
  }
1478
1678
  }
1479
1679
  }
@@ -1586,6 +1786,23 @@
1586
1786
  "type": "object",
1587
1787
  "additionalProperties": false,
1588
1788
  "properties": {
1789
+ "partId": {
1790
+ "type": "string"
1791
+ },
1792
+ "partName": {
1793
+ "type": "string"
1794
+ },
1795
+ "script": {
1796
+ "type": "string"
1797
+ },
1798
+ "runState": {
1799
+ "type": "string",
1800
+ "enum": [
1801
+ "not_run_yet",
1802
+ "ok",
1803
+ "failed"
1804
+ ]
1805
+ },
1589
1806
  "volume": {
1590
1807
  "type": [
1591
1808
  "number",
@@ -1621,11 +1838,14 @@
1621
1838
  }
1622
1839
  ]
1623
1840
  },
1624
- "partName": {
1625
- "type": "string"
1626
- },
1627
1841
  "featureCount": {
1628
1842
  "type": "integer"
1843
+ },
1844
+ "bodyCount": {
1845
+ "type": [
1846
+ "integer",
1847
+ "null"
1848
+ ]
1629
1849
  }
1630
1850
  }
1631
1851
  }
@@ -1733,6 +1953,23 @@
1733
1953
  "type": "object",
1734
1954
  "additionalProperties": false,
1735
1955
  "properties": {
1956
+ "partId": {
1957
+ "type": "string"
1958
+ },
1959
+ "partName": {
1960
+ "type": "string"
1961
+ },
1962
+ "script": {
1963
+ "type": "string"
1964
+ },
1965
+ "runState": {
1966
+ "type": "string",
1967
+ "enum": [
1968
+ "not_run_yet",
1969
+ "ok",
1970
+ "failed"
1971
+ ]
1972
+ },
1736
1973
  "volume": {
1737
1974
  "type": [
1738
1975
  "number",
@@ -1768,11 +2005,14 @@
1768
2005
  }
1769
2006
  ]
1770
2007
  },
1771
- "partName": {
1772
- "type": "string"
1773
- },
1774
2008
  "featureCount": {
1775
2009
  "type": "integer"
2010
+ },
2011
+ "bodyCount": {
2012
+ "type": [
2013
+ "integer",
2014
+ "null"
2015
+ ]
1776
2016
  }
1777
2017
  }
1778
2018
  }
@@ -1910,6 +2150,23 @@
1910
2150
  "type": "object",
1911
2151
  "additionalProperties": false,
1912
2152
  "properties": {
2153
+ "partId": {
2154
+ "type": "string"
2155
+ },
2156
+ "partName": {
2157
+ "type": "string"
2158
+ },
2159
+ "script": {
2160
+ "type": "string"
2161
+ },
2162
+ "runState": {
2163
+ "type": "string",
2164
+ "enum": [
2165
+ "not_run_yet",
2166
+ "ok",
2167
+ "failed"
2168
+ ]
2169
+ },
1913
2170
  "volume": {
1914
2171
  "type": [
1915
2172
  "number",
@@ -1945,11 +2202,14 @@
1945
2202
  }
1946
2203
  ]
1947
2204
  },
1948
- "partName": {
1949
- "type": "string"
1950
- },
1951
2205
  "featureCount": {
1952
2206
  "type": "integer"
2207
+ },
2208
+ "bodyCount": {
2209
+ "type": [
2210
+ "integer",
2211
+ "null"
2212
+ ]
1953
2213
  }
1954
2214
  }
1955
2215
  }
@@ -2062,6 +2322,23 @@
2062
2322
  "type": "object",
2063
2323
  "additionalProperties": false,
2064
2324
  "properties": {
2325
+ "partId": {
2326
+ "type": "string"
2327
+ },
2328
+ "partName": {
2329
+ "type": "string"
2330
+ },
2331
+ "script": {
2332
+ "type": "string"
2333
+ },
2334
+ "runState": {
2335
+ "type": "string",
2336
+ "enum": [
2337
+ "not_run_yet",
2338
+ "ok",
2339
+ "failed"
2340
+ ]
2341
+ },
2065
2342
  "volume": {
2066
2343
  "type": [
2067
2344
  "number",
@@ -2097,11 +2374,14 @@
2097
2374
  }
2098
2375
  ]
2099
2376
  },
2100
- "partName": {
2101
- "type": "string"
2102
- },
2103
2377
  "featureCount": {
2104
2378
  "type": "integer"
2379
+ },
2380
+ "bodyCount": {
2381
+ "type": [
2382
+ "integer",
2383
+ "null"
2384
+ ]
2105
2385
  }
2106
2386
  }
2107
2387
  }
@@ -2188,6 +2468,23 @@
2188
2468
  "type": "object",
2189
2469
  "additionalProperties": false,
2190
2470
  "properties": {
2471
+ "partId": {
2472
+ "type": "string"
2473
+ },
2474
+ "partName": {
2475
+ "type": "string"
2476
+ },
2477
+ "script": {
2478
+ "type": "string"
2479
+ },
2480
+ "runState": {
2481
+ "type": "string",
2482
+ "enum": [
2483
+ "not_run_yet",
2484
+ "ok",
2485
+ "failed"
2486
+ ]
2487
+ },
2191
2488
  "volume": {
2192
2489
  "type": [
2193
2490
  "number",
@@ -2223,11 +2520,14 @@
2223
2520
  }
2224
2521
  ]
2225
2522
  },
2226
- "partName": {
2227
- "type": "string"
2228
- },
2229
2523
  "featureCount": {
2230
2524
  "type": "integer"
2525
+ },
2526
+ "bodyCount": {
2527
+ "type": [
2528
+ "integer",
2529
+ "null"
2530
+ ]
2231
2531
  }
2232
2532
  }
2233
2533
  }
@@ -2289,6 +2589,23 @@
2289
2589
  "type": "object",
2290
2590
  "additionalProperties": false,
2291
2591
  "properties": {
2592
+ "partId": {
2593
+ "type": "string"
2594
+ },
2595
+ "partName": {
2596
+ "type": "string"
2597
+ },
2598
+ "script": {
2599
+ "type": "string"
2600
+ },
2601
+ "runState": {
2602
+ "type": "string",
2603
+ "enum": [
2604
+ "not_run_yet",
2605
+ "ok",
2606
+ "failed"
2607
+ ]
2608
+ },
2292
2609
  "volume": {
2293
2610
  "type": [
2294
2611
  "number",
@@ -2324,11 +2641,14 @@
2324
2641
  }
2325
2642
  ]
2326
2643
  },
2327
- "partName": {
2328
- "type": "string"
2329
- },
2330
2644
  "featureCount": {
2331
2645
  "type": "integer"
2646
+ },
2647
+ "bodyCount": {
2648
+ "type": [
2649
+ "integer",
2650
+ "null"
2651
+ ]
2332
2652
  }
2333
2653
  }
2334
2654
  }
@@ -2422,6 +2742,23 @@
2422
2742
  "type": "object",
2423
2743
  "additionalProperties": false,
2424
2744
  "properties": {
2745
+ "partId": {
2746
+ "type": "string"
2747
+ },
2748
+ "partName": {
2749
+ "type": "string"
2750
+ },
2751
+ "script": {
2752
+ "type": "string"
2753
+ },
2754
+ "runState": {
2755
+ "type": "string",
2756
+ "enum": [
2757
+ "not_run_yet",
2758
+ "ok",
2759
+ "failed"
2760
+ ]
2761
+ },
2425
2762
  "volume": {
2426
2763
  "type": [
2427
2764
  "number",
@@ -2457,11 +2794,14 @@
2457
2794
  }
2458
2795
  ]
2459
2796
  },
2460
- "partName": {
2461
- "type": "string"
2462
- },
2463
2797
  "featureCount": {
2464
2798
  "type": "integer"
2799
+ },
2800
+ "bodyCount": {
2801
+ "type": [
2802
+ "integer",
2803
+ "null"
2804
+ ]
2465
2805
  }
2466
2806
  }
2467
2807
  }
@@ -2524,6 +2864,23 @@
2524
2864
  "type": "object",
2525
2865
  "additionalProperties": false,
2526
2866
  "properties": {
2867
+ "partId": {
2868
+ "type": "string"
2869
+ },
2870
+ "partName": {
2871
+ "type": "string"
2872
+ },
2873
+ "script": {
2874
+ "type": "string"
2875
+ },
2876
+ "runState": {
2877
+ "type": "string",
2878
+ "enum": [
2879
+ "not_run_yet",
2880
+ "ok",
2881
+ "failed"
2882
+ ]
2883
+ },
2527
2884
  "volume": {
2528
2885
  "type": [
2529
2886
  "number",
@@ -2559,11 +2916,14 @@
2559
2916
  }
2560
2917
  ]
2561
2918
  },
2562
- "partName": {
2563
- "type": "string"
2564
- },
2565
2919
  "featureCount": {
2566
2920
  "type": "integer"
2921
+ },
2922
+ "bodyCount": {
2923
+ "type": [
2924
+ "integer",
2925
+ "null"
2926
+ ]
2567
2927
  }
2568
2928
  }
2569
2929
  }
@@ -2718,6 +3078,23 @@
2718
3078
  "type": "object",
2719
3079
  "additionalProperties": false,
2720
3080
  "properties": {
3081
+ "partId": {
3082
+ "type": "string"
3083
+ },
3084
+ "partName": {
3085
+ "type": "string"
3086
+ },
3087
+ "script": {
3088
+ "type": "string"
3089
+ },
3090
+ "runState": {
3091
+ "type": "string",
3092
+ "enum": [
3093
+ "not_run_yet",
3094
+ "ok",
3095
+ "failed"
3096
+ ]
3097
+ },
2721
3098
  "volume": {
2722
3099
  "type": [
2723
3100
  "number",
@@ -2753,11 +3130,14 @@
2753
3130
  }
2754
3131
  ]
2755
3132
  },
2756
- "partName": {
2757
- "type": "string"
2758
- },
2759
3133
  "featureCount": {
2760
3134
  "type": "integer"
3135
+ },
3136
+ "bodyCount": {
3137
+ "type": [
3138
+ "integer",
3139
+ "null"
3140
+ ]
2761
3141
  }
2762
3142
  }
2763
3143
  }
@@ -2850,6 +3230,23 @@
2850
3230
  "type": "object",
2851
3231
  "additionalProperties": false,
2852
3232
  "properties": {
3233
+ "partId": {
3234
+ "type": "string"
3235
+ },
3236
+ "partName": {
3237
+ "type": "string"
3238
+ },
3239
+ "script": {
3240
+ "type": "string"
3241
+ },
3242
+ "runState": {
3243
+ "type": "string",
3244
+ "enum": [
3245
+ "not_run_yet",
3246
+ "ok",
3247
+ "failed"
3248
+ ]
3249
+ },
2853
3250
  "volume": {
2854
3251
  "type": [
2855
3252
  "number",
@@ -2885,11 +3282,14 @@
2885
3282
  }
2886
3283
  ]
2887
3284
  },
2888
- "partName": {
2889
- "type": "string"
2890
- },
2891
3285
  "featureCount": {
2892
3286
  "type": "integer"
3287
+ },
3288
+ "bodyCount": {
3289
+ "type": [
3290
+ "integer",
3291
+ "null"
3292
+ ]
2893
3293
  }
2894
3294
  }
2895
3295
  }
@@ -2974,6 +3374,23 @@
2974
3374
  "type": "object",
2975
3375
  "additionalProperties": false,
2976
3376
  "properties": {
3377
+ "partId": {
3378
+ "type": "string"
3379
+ },
3380
+ "partName": {
3381
+ "type": "string"
3382
+ },
3383
+ "script": {
3384
+ "type": "string"
3385
+ },
3386
+ "runState": {
3387
+ "type": "string",
3388
+ "enum": [
3389
+ "not_run_yet",
3390
+ "ok",
3391
+ "failed"
3392
+ ]
3393
+ },
2977
3394
  "volume": {
2978
3395
  "type": [
2979
3396
  "number",
@@ -3009,11 +3426,14 @@
3009
3426
  }
3010
3427
  ]
3011
3428
  },
3012
- "partName": {
3013
- "type": "string"
3014
- },
3015
3429
  "featureCount": {
3016
3430
  "type": "integer"
3431
+ },
3432
+ "bodyCount": {
3433
+ "type": [
3434
+ "integer",
3435
+ "null"
3436
+ ]
3017
3437
  }
3018
3438
  }
3019
3439
  }
@@ -3089,6 +3509,23 @@
3089
3509
  "type": "object",
3090
3510
  "additionalProperties": false,
3091
3511
  "properties": {
3512
+ "partId": {
3513
+ "type": "string"
3514
+ },
3515
+ "partName": {
3516
+ "type": "string"
3517
+ },
3518
+ "script": {
3519
+ "type": "string"
3520
+ },
3521
+ "runState": {
3522
+ "type": "string",
3523
+ "enum": [
3524
+ "not_run_yet",
3525
+ "ok",
3526
+ "failed"
3527
+ ]
3528
+ },
3092
3529
  "volume": {
3093
3530
  "type": [
3094
3531
  "number",
@@ -3124,11 +3561,14 @@
3124
3561
  }
3125
3562
  ]
3126
3563
  },
3127
- "partName": {
3128
- "type": "string"
3129
- },
3130
3564
  "featureCount": {
3131
3565
  "type": "integer"
3566
+ },
3567
+ "bodyCount": {
3568
+ "type": [
3569
+ "integer",
3570
+ "null"
3571
+ ]
3132
3572
  }
3133
3573
  }
3134
3574
  }
@@ -3202,6 +3642,23 @@
3202
3642
  "type": "object",
3203
3643
  "additionalProperties": false,
3204
3644
  "properties": {
3645
+ "partId": {
3646
+ "type": "string"
3647
+ },
3648
+ "partName": {
3649
+ "type": "string"
3650
+ },
3651
+ "script": {
3652
+ "type": "string"
3653
+ },
3654
+ "runState": {
3655
+ "type": "string",
3656
+ "enum": [
3657
+ "not_run_yet",
3658
+ "ok",
3659
+ "failed"
3660
+ ]
3661
+ },
3205
3662
  "volume": {
3206
3663
  "type": [
3207
3664
  "number",
@@ -3237,11 +3694,14 @@
3237
3694
  }
3238
3695
  ]
3239
3696
  },
3240
- "partName": {
3241
- "type": "string"
3242
- },
3243
3697
  "featureCount": {
3244
3698
  "type": "integer"
3699
+ },
3700
+ "bodyCount": {
3701
+ "type": [
3702
+ "integer",
3703
+ "null"
3704
+ ]
3245
3705
  }
3246
3706
  }
3247
3707
  }
@@ -3317,6 +3777,23 @@
3317
3777
  "type": "object",
3318
3778
  "additionalProperties": false,
3319
3779
  "properties": {
3780
+ "partId": {
3781
+ "type": "string"
3782
+ },
3783
+ "partName": {
3784
+ "type": "string"
3785
+ },
3786
+ "script": {
3787
+ "type": "string"
3788
+ },
3789
+ "runState": {
3790
+ "type": "string",
3791
+ "enum": [
3792
+ "not_run_yet",
3793
+ "ok",
3794
+ "failed"
3795
+ ]
3796
+ },
3320
3797
  "volume": {
3321
3798
  "type": [
3322
3799
  "number",
@@ -3352,11 +3829,14 @@
3352
3829
  }
3353
3830
  ]
3354
3831
  },
3355
- "partName": {
3356
- "type": "string"
3357
- },
3358
3832
  "featureCount": {
3359
3833
  "type": "integer"
3834
+ },
3835
+ "bodyCount": {
3836
+ "type": [
3837
+ "integer",
3838
+ "null"
3839
+ ]
3360
3840
  }
3361
3841
  }
3362
3842
  }
@@ -3430,6 +3910,23 @@
3430
3910
  "type": "object",
3431
3911
  "additionalProperties": false,
3432
3912
  "properties": {
3913
+ "partId": {
3914
+ "type": "string"
3915
+ },
3916
+ "partName": {
3917
+ "type": "string"
3918
+ },
3919
+ "script": {
3920
+ "type": "string"
3921
+ },
3922
+ "runState": {
3923
+ "type": "string",
3924
+ "enum": [
3925
+ "not_run_yet",
3926
+ "ok",
3927
+ "failed"
3928
+ ]
3929
+ },
3433
3930
  "volume": {
3434
3931
  "type": [
3435
3932
  "number",
@@ -3465,11 +3962,14 @@
3465
3962
  }
3466
3963
  ]
3467
3964
  },
3468
- "partName": {
3469
- "type": "string"
3470
- },
3471
3965
  "featureCount": {
3472
3966
  "type": "integer"
3967
+ },
3968
+ "bodyCount": {
3969
+ "type": [
3970
+ "integer",
3971
+ "null"
3972
+ ]
3473
3973
  }
3474
3974
  }
3475
3975
  }
@@ -3524,6 +4024,23 @@
3524
4024
  "type": "object",
3525
4025
  "additionalProperties": false,
3526
4026
  "properties": {
4027
+ "partId": {
4028
+ "type": "string"
4029
+ },
4030
+ "partName": {
4031
+ "type": "string"
4032
+ },
4033
+ "script": {
4034
+ "type": "string"
4035
+ },
4036
+ "runState": {
4037
+ "type": "string",
4038
+ "enum": [
4039
+ "not_run_yet",
4040
+ "ok",
4041
+ "failed"
4042
+ ]
4043
+ },
3527
4044
  "volume": {
3528
4045
  "type": [
3529
4046
  "number",
@@ -3559,11 +4076,14 @@
3559
4076
  }
3560
4077
  ]
3561
4078
  },
3562
- "partName": {
3563
- "type": "string"
3564
- },
3565
4079
  "featureCount": {
3566
4080
  "type": "integer"
4081
+ },
4082
+ "bodyCount": {
4083
+ "type": [
4084
+ "integer",
4085
+ "null"
4086
+ ]
3567
4087
  }
3568
4088
  }
3569
4089
  }
@@ -3627,6 +4147,23 @@
3627
4147
  "type": "object",
3628
4148
  "additionalProperties": false,
3629
4149
  "properties": {
4150
+ "partId": {
4151
+ "type": "string"
4152
+ },
4153
+ "partName": {
4154
+ "type": "string"
4155
+ },
4156
+ "script": {
4157
+ "type": "string"
4158
+ },
4159
+ "runState": {
4160
+ "type": "string",
4161
+ "enum": [
4162
+ "not_run_yet",
4163
+ "ok",
4164
+ "failed"
4165
+ ]
4166
+ },
3630
4167
  "volume": {
3631
4168
  "type": [
3632
4169
  "number",
@@ -3662,11 +4199,14 @@
3662
4199
  }
3663
4200
  ]
3664
4201
  },
3665
- "partName": {
3666
- "type": "string"
3667
- },
3668
4202
  "featureCount": {
3669
4203
  "type": "integer"
4204
+ },
4205
+ "bodyCount": {
4206
+ "type": [
4207
+ "integer",
4208
+ "null"
4209
+ ]
3670
4210
  }
3671
4211
  }
3672
4212
  }
@@ -3738,6 +4278,23 @@
3738
4278
  "type": "object",
3739
4279
  "additionalProperties": false,
3740
4280
  "properties": {
4281
+ "partId": {
4282
+ "type": "string"
4283
+ },
4284
+ "partName": {
4285
+ "type": "string"
4286
+ },
4287
+ "script": {
4288
+ "type": "string"
4289
+ },
4290
+ "runState": {
4291
+ "type": "string",
4292
+ "enum": [
4293
+ "not_run_yet",
4294
+ "ok",
4295
+ "failed"
4296
+ ]
4297
+ },
3741
4298
  "volume": {
3742
4299
  "type": [
3743
4300
  "number",
@@ -3773,11 +4330,14 @@
3773
4330
  }
3774
4331
  ]
3775
4332
  },
3776
- "partName": {
3777
- "type": "string"
3778
- },
3779
4333
  "featureCount": {
3780
4334
  "type": "integer"
4335
+ },
4336
+ "bodyCount": {
4337
+ "type": [
4338
+ "integer",
4339
+ "null"
4340
+ ]
3781
4341
  }
3782
4342
  }
3783
4343
  }
@@ -3845,6 +4405,23 @@
3845
4405
  "type": "object",
3846
4406
  "additionalProperties": false,
3847
4407
  "properties": {
4408
+ "partId": {
4409
+ "type": "string"
4410
+ },
4411
+ "partName": {
4412
+ "type": "string"
4413
+ },
4414
+ "script": {
4415
+ "type": "string"
4416
+ },
4417
+ "runState": {
4418
+ "type": "string",
4419
+ "enum": [
4420
+ "not_run_yet",
4421
+ "ok",
4422
+ "failed"
4423
+ ]
4424
+ },
3848
4425
  "volume": {
3849
4426
  "type": [
3850
4427
  "number",
@@ -3880,11 +4457,14 @@
3880
4457
  }
3881
4458
  ]
3882
4459
  },
3883
- "partName": {
3884
- "type": "string"
3885
- },
3886
4460
  "featureCount": {
3887
4461
  "type": "integer"
4462
+ },
4463
+ "bodyCount": {
4464
+ "type": [
4465
+ "integer",
4466
+ "null"
4467
+ ]
3888
4468
  }
3889
4469
  }
3890
4470
  }
@@ -3940,6 +4520,23 @@
3940
4520
  "type": "object",
3941
4521
  "additionalProperties": false,
3942
4522
  "properties": {
4523
+ "partId": {
4524
+ "type": "string"
4525
+ },
4526
+ "partName": {
4527
+ "type": "string"
4528
+ },
4529
+ "script": {
4530
+ "type": "string"
4531
+ },
4532
+ "runState": {
4533
+ "type": "string",
4534
+ "enum": [
4535
+ "not_run_yet",
4536
+ "ok",
4537
+ "failed"
4538
+ ]
4539
+ },
3943
4540
  "volume": {
3944
4541
  "type": [
3945
4542
  "number",
@@ -3975,11 +4572,14 @@
3975
4572
  }
3976
4573
  ]
3977
4574
  },
3978
- "partName": {
3979
- "type": "string"
3980
- },
3981
4575
  "featureCount": {
3982
4576
  "type": "integer"
4577
+ },
4578
+ "bodyCount": {
4579
+ "type": [
4580
+ "integer",
4581
+ "null"
4582
+ ]
3983
4583
  }
3984
4584
  }
3985
4585
  }
@@ -4043,6 +4643,23 @@
4043
4643
  "type": "object",
4044
4644
  "additionalProperties": false,
4045
4645
  "properties": {
4646
+ "partId": {
4647
+ "type": "string"
4648
+ },
4649
+ "partName": {
4650
+ "type": "string"
4651
+ },
4652
+ "script": {
4653
+ "type": "string"
4654
+ },
4655
+ "runState": {
4656
+ "type": "string",
4657
+ "enum": [
4658
+ "not_run_yet",
4659
+ "ok",
4660
+ "failed"
4661
+ ]
4662
+ },
4046
4663
  "volume": {
4047
4664
  "type": [
4048
4665
  "number",
@@ -4078,11 +4695,14 @@
4078
4695
  }
4079
4696
  ]
4080
4697
  },
4081
- "partName": {
4082
- "type": "string"
4083
- },
4084
4698
  "featureCount": {
4085
4699
  "type": "integer"
4700
+ },
4701
+ "bodyCount": {
4702
+ "type": [
4703
+ "integer",
4704
+ "null"
4705
+ ]
4086
4706
  }
4087
4707
  }
4088
4708
  }
@@ -4189,6 +4809,23 @@
4189
4809
  "type": "object",
4190
4810
  "additionalProperties": false,
4191
4811
  "properties": {
4812
+ "partId": {
4813
+ "type": "string"
4814
+ },
4815
+ "partName": {
4816
+ "type": "string"
4817
+ },
4818
+ "script": {
4819
+ "type": "string"
4820
+ },
4821
+ "runState": {
4822
+ "type": "string",
4823
+ "enum": [
4824
+ "not_run_yet",
4825
+ "ok",
4826
+ "failed"
4827
+ ]
4828
+ },
4192
4829
  "volume": {
4193
4830
  "type": [
4194
4831
  "number",
@@ -4224,11 +4861,14 @@
4224
4861
  }
4225
4862
  ]
4226
4863
  },
4227
- "partName": {
4228
- "type": "string"
4229
- },
4230
4864
  "featureCount": {
4231
4865
  "type": "integer"
4866
+ },
4867
+ "bodyCount": {
4868
+ "type": [
4869
+ "integer",
4870
+ "null"
4871
+ ]
4232
4872
  }
4233
4873
  }
4234
4874
  }
@@ -4317,6 +4957,23 @@
4317
4957
  "type": "object",
4318
4958
  "additionalProperties": false,
4319
4959
  "properties": {
4960
+ "partId": {
4961
+ "type": "string"
4962
+ },
4963
+ "partName": {
4964
+ "type": "string"
4965
+ },
4966
+ "script": {
4967
+ "type": "string"
4968
+ },
4969
+ "runState": {
4970
+ "type": "string",
4971
+ "enum": [
4972
+ "not_run_yet",
4973
+ "ok",
4974
+ "failed"
4975
+ ]
4976
+ },
4320
4977
  "volume": {
4321
4978
  "type": [
4322
4979
  "number",
@@ -4352,11 +5009,14 @@
4352
5009
  }
4353
5010
  ]
4354
5011
  },
4355
- "partName": {
4356
- "type": "string"
4357
- },
4358
5012
  "featureCount": {
4359
5013
  "type": "integer"
5014
+ },
5015
+ "bodyCount": {
5016
+ "type": [
5017
+ "integer",
5018
+ "null"
5019
+ ]
4360
5020
  }
4361
5021
  }
4362
5022
  }
@@ -4444,6 +5104,23 @@
4444
5104
  "type": "object",
4445
5105
  "additionalProperties": false,
4446
5106
  "properties": {
5107
+ "partId": {
5108
+ "type": "string"
5109
+ },
5110
+ "partName": {
5111
+ "type": "string"
5112
+ },
5113
+ "script": {
5114
+ "type": "string"
5115
+ },
5116
+ "runState": {
5117
+ "type": "string",
5118
+ "enum": [
5119
+ "not_run_yet",
5120
+ "ok",
5121
+ "failed"
5122
+ ]
5123
+ },
4447
5124
  "volume": {
4448
5125
  "type": [
4449
5126
  "number",
@@ -4479,11 +5156,14 @@
4479
5156
  }
4480
5157
  ]
4481
5158
  },
4482
- "partName": {
4483
- "type": "string"
4484
- },
4485
5159
  "featureCount": {
4486
5160
  "type": "integer"
5161
+ },
5162
+ "bodyCount": {
5163
+ "type": [
5164
+ "integer",
5165
+ "null"
5166
+ ]
4487
5167
  }
4488
5168
  }
4489
5169
  }
@@ -4535,6 +5215,23 @@
4535
5215
  "type": "object",
4536
5216
  "additionalProperties": false,
4537
5217
  "properties": {
5218
+ "partId": {
5219
+ "type": "string"
5220
+ },
5221
+ "partName": {
5222
+ "type": "string"
5223
+ },
5224
+ "script": {
5225
+ "type": "string"
5226
+ },
5227
+ "runState": {
5228
+ "type": "string",
5229
+ "enum": [
5230
+ "not_run_yet",
5231
+ "ok",
5232
+ "failed"
5233
+ ]
5234
+ },
4538
5235
  "volume": {
4539
5236
  "type": [
4540
5237
  "number",
@@ -4570,11 +5267,14 @@
4570
5267
  }
4571
5268
  ]
4572
5269
  },
4573
- "partName": {
4574
- "type": "string"
4575
- },
4576
5270
  "featureCount": {
4577
5271
  "type": "integer"
5272
+ },
5273
+ "bodyCount": {
5274
+ "type": [
5275
+ "integer",
5276
+ "null"
5277
+ ]
4578
5278
  }
4579
5279
  }
4580
5280
  }
@@ -4635,6 +5335,23 @@
4635
5335
  "type": "object",
4636
5336
  "additionalProperties": false,
4637
5337
  "properties": {
5338
+ "partId": {
5339
+ "type": "string"
5340
+ },
5341
+ "partName": {
5342
+ "type": "string"
5343
+ },
5344
+ "script": {
5345
+ "type": "string"
5346
+ },
5347
+ "runState": {
5348
+ "type": "string",
5349
+ "enum": [
5350
+ "not_run_yet",
5351
+ "ok",
5352
+ "failed"
5353
+ ]
5354
+ },
4638
5355
  "volume": {
4639
5356
  "type": [
4640
5357
  "number",
@@ -4670,11 +5387,14 @@
4670
5387
  }
4671
5388
  ]
4672
5389
  },
4673
- "partName": {
4674
- "type": "string"
4675
- },
4676
5390
  "featureCount": {
4677
5391
  "type": "integer"
5392
+ },
5393
+ "bodyCount": {
5394
+ "type": [
5395
+ "integer",
5396
+ "null"
5397
+ ]
4678
5398
  }
4679
5399
  }
4680
5400
  }
@@ -4739,6 +5459,23 @@
4739
5459
  "type": "object",
4740
5460
  "additionalProperties": false,
4741
5461
  "properties": {
5462
+ "partId": {
5463
+ "type": "string"
5464
+ },
5465
+ "partName": {
5466
+ "type": "string"
5467
+ },
5468
+ "script": {
5469
+ "type": "string"
5470
+ },
5471
+ "runState": {
5472
+ "type": "string",
5473
+ "enum": [
5474
+ "not_run_yet",
5475
+ "ok",
5476
+ "failed"
5477
+ ]
5478
+ },
4742
5479
  "volume": {
4743
5480
  "type": [
4744
5481
  "number",
@@ -4774,11 +5511,14 @@
4774
5511
  }
4775
5512
  ]
4776
5513
  },
4777
- "partName": {
4778
- "type": "string"
4779
- },
4780
5514
  "featureCount": {
4781
5515
  "type": "integer"
5516
+ },
5517
+ "bodyCount": {
5518
+ "type": [
5519
+ "integer",
5520
+ "null"
5521
+ ]
4782
5522
  }
4783
5523
  }
4784
5524
  }
@@ -4836,6 +5576,23 @@
4836
5576
  "type": "object",
4837
5577
  "additionalProperties": false,
4838
5578
  "properties": {
5579
+ "partId": {
5580
+ "type": "string"
5581
+ },
5582
+ "partName": {
5583
+ "type": "string"
5584
+ },
5585
+ "script": {
5586
+ "type": "string"
5587
+ },
5588
+ "runState": {
5589
+ "type": "string",
5590
+ "enum": [
5591
+ "not_run_yet",
5592
+ "ok",
5593
+ "failed"
5594
+ ]
5595
+ },
4839
5596
  "volume": {
4840
5597
  "type": [
4841
5598
  "number",
@@ -4871,11 +5628,14 @@
4871
5628
  }
4872
5629
  ]
4873
5630
  },
4874
- "partName": {
4875
- "type": "string"
4876
- },
4877
5631
  "featureCount": {
4878
5632
  "type": "integer"
5633
+ },
5634
+ "bodyCount": {
5635
+ "type": [
5636
+ "integer",
5637
+ "null"
5638
+ ]
4879
5639
  }
4880
5640
  }
4881
5641
  }
@@ -4938,6 +5698,23 @@
4938
5698
  "type": "object",
4939
5699
  "additionalProperties": false,
4940
5700
  "properties": {
5701
+ "partId": {
5702
+ "type": "string"
5703
+ },
5704
+ "partName": {
5705
+ "type": "string"
5706
+ },
5707
+ "script": {
5708
+ "type": "string"
5709
+ },
5710
+ "runState": {
5711
+ "type": "string",
5712
+ "enum": [
5713
+ "not_run_yet",
5714
+ "ok",
5715
+ "failed"
5716
+ ]
5717
+ },
4941
5718
  "volume": {
4942
5719
  "type": [
4943
5720
  "number",
@@ -4973,11 +5750,14 @@
4973
5750
  }
4974
5751
  ]
4975
5752
  },
4976
- "partName": {
4977
- "type": "string"
4978
- },
4979
5753
  "featureCount": {
4980
5754
  "type": "integer"
5755
+ },
5756
+ "bodyCount": {
5757
+ "type": [
5758
+ "integer",
5759
+ "null"
5760
+ ]
4981
5761
  }
4982
5762
  }
4983
5763
  }
@@ -5038,6 +5818,23 @@
5038
5818
  "type": "object",
5039
5819
  "additionalProperties": false,
5040
5820
  "properties": {
5821
+ "partId": {
5822
+ "type": "string"
5823
+ },
5824
+ "partName": {
5825
+ "type": "string"
5826
+ },
5827
+ "script": {
5828
+ "type": "string"
5829
+ },
5830
+ "runState": {
5831
+ "type": "string",
5832
+ "enum": [
5833
+ "not_run_yet",
5834
+ "ok",
5835
+ "failed"
5836
+ ]
5837
+ },
5041
5838
  "volume": {
5042
5839
  "type": [
5043
5840
  "number",
@@ -5073,11 +5870,14 @@
5073
5870
  }
5074
5871
  ]
5075
5872
  },
5076
- "partName": {
5077
- "type": "string"
5078
- },
5079
5873
  "featureCount": {
5080
5874
  "type": "integer"
5875
+ },
5876
+ "bodyCount": {
5877
+ "type": [
5878
+ "integer",
5879
+ "null"
5880
+ ]
5081
5881
  }
5082
5882
  }
5083
5883
  }
@@ -5132,6 +5932,23 @@
5132
5932
  "type": "object",
5133
5933
  "additionalProperties": false,
5134
5934
  "properties": {
5935
+ "partId": {
5936
+ "type": "string"
5937
+ },
5938
+ "partName": {
5939
+ "type": "string"
5940
+ },
5941
+ "script": {
5942
+ "type": "string"
5943
+ },
5944
+ "runState": {
5945
+ "type": "string",
5946
+ "enum": [
5947
+ "not_run_yet",
5948
+ "ok",
5949
+ "failed"
5950
+ ]
5951
+ },
5135
5952
  "volume": {
5136
5953
  "type": [
5137
5954
  "number",
@@ -5167,11 +5984,14 @@
5167
5984
  }
5168
5985
  ]
5169
5986
  },
5170
- "partName": {
5171
- "type": "string"
5172
- },
5173
5987
  "featureCount": {
5174
5988
  "type": "integer"
5989
+ },
5990
+ "bodyCount": {
5991
+ "type": [
5992
+ "integer",
5993
+ "null"
5994
+ ]
5175
5995
  }
5176
5996
  }
5177
5997
  }
@@ -5328,6 +6148,23 @@
5328
6148
  "type": "object",
5329
6149
  "additionalProperties": false,
5330
6150
  "properties": {
6151
+ "partId": {
6152
+ "type": "string"
6153
+ },
6154
+ "partName": {
6155
+ "type": "string"
6156
+ },
6157
+ "script": {
6158
+ "type": "string"
6159
+ },
6160
+ "runState": {
6161
+ "type": "string",
6162
+ "enum": [
6163
+ "not_run_yet",
6164
+ "ok",
6165
+ "failed"
6166
+ ]
6167
+ },
5331
6168
  "volume": {
5332
6169
  "type": [
5333
6170
  "number",
@@ -5363,11 +6200,14 @@
5363
6200
  }
5364
6201
  ]
5365
6202
  },
5366
- "partName": {
5367
- "type": "string"
5368
- },
5369
6203
  "featureCount": {
5370
6204
  "type": "integer"
6205
+ },
6206
+ "bodyCount": {
6207
+ "type": [
6208
+ "integer",
6209
+ "null"
6210
+ ]
5371
6211
  }
5372
6212
  }
5373
6213
  },
@@ -5451,6 +6291,23 @@
5451
6291
  "type": "object",
5452
6292
  "additionalProperties": false,
5453
6293
  "properties": {
6294
+ "partId": {
6295
+ "type": "string"
6296
+ },
6297
+ "partName": {
6298
+ "type": "string"
6299
+ },
6300
+ "script": {
6301
+ "type": "string"
6302
+ },
6303
+ "runState": {
6304
+ "type": "string",
6305
+ "enum": [
6306
+ "not_run_yet",
6307
+ "ok",
6308
+ "failed"
6309
+ ]
6310
+ },
5454
6311
  "volume": {
5455
6312
  "type": [
5456
6313
  "number",
@@ -5486,11 +6343,14 @@
5486
6343
  }
5487
6344
  ]
5488
6345
  },
5489
- "partName": {
5490
- "type": "string"
5491
- },
5492
6346
  "featureCount": {
5493
6347
  "type": "integer"
6348
+ },
6349
+ "bodyCount": {
6350
+ "type": [
6351
+ "integer",
6352
+ "null"
6353
+ ]
5494
6354
  }
5495
6355
  }
5496
6356
  },
@@ -6580,6 +7440,23 @@
6580
7440
  "type": "object",
6581
7441
  "additionalProperties": false,
6582
7442
  "properties": {
7443
+ "partId": {
7444
+ "type": "string"
7445
+ },
7446
+ "partName": {
7447
+ "type": "string"
7448
+ },
7449
+ "script": {
7450
+ "type": "string"
7451
+ },
7452
+ "runState": {
7453
+ "type": "string",
7454
+ "enum": [
7455
+ "not_run_yet",
7456
+ "ok",
7457
+ "failed"
7458
+ ]
7459
+ },
6583
7460
  "volume": {
6584
7461
  "type": [
6585
7462
  "number",
@@ -6615,11 +7492,14 @@
6615
7492
  }
6616
7493
  ]
6617
7494
  },
6618
- "partName": {
6619
- "type": "string"
6620
- },
6621
7495
  "featureCount": {
6622
7496
  "type": "integer"
7497
+ },
7498
+ "bodyCount": {
7499
+ "type": [
7500
+ "integer",
7501
+ "null"
7502
+ ]
6623
7503
  }
6624
7504
  }
6625
7505
  },
@@ -6810,6 +7690,23 @@
6810
7690
  "type": "object",
6811
7691
  "additionalProperties": false,
6812
7692
  "properties": {
7693
+ "partId": {
7694
+ "type": "string"
7695
+ },
7696
+ "partName": {
7697
+ "type": "string"
7698
+ },
7699
+ "script": {
7700
+ "type": "string"
7701
+ },
7702
+ "runState": {
7703
+ "type": "string",
7704
+ "enum": [
7705
+ "not_run_yet",
7706
+ "ok",
7707
+ "failed"
7708
+ ]
7709
+ },
6813
7710
  "volume": {
6814
7711
  "type": [
6815
7712
  "number",
@@ -6845,11 +7742,14 @@
6845
7742
  }
6846
7743
  ]
6847
7744
  },
6848
- "partName": {
6849
- "type": "string"
6850
- },
6851
7745
  "featureCount": {
6852
7746
  "type": "integer"
7747
+ },
7748
+ "bodyCount": {
7749
+ "type": [
7750
+ "integer",
7751
+ "null"
7752
+ ]
6853
7753
  }
6854
7754
  }
6855
7755
  },
@@ -6979,6 +7879,23 @@
6979
7879
  "type": "object",
6980
7880
  "additionalProperties": false,
6981
7881
  "properties": {
7882
+ "partId": {
7883
+ "type": "string"
7884
+ },
7885
+ "partName": {
7886
+ "type": "string"
7887
+ },
7888
+ "script": {
7889
+ "type": "string"
7890
+ },
7891
+ "runState": {
7892
+ "type": "string",
7893
+ "enum": [
7894
+ "not_run_yet",
7895
+ "ok",
7896
+ "failed"
7897
+ ]
7898
+ },
6982
7899
  "volume": {
6983
7900
  "type": [
6984
7901
  "number",
@@ -7014,11 +7931,14 @@
7014
7931
  }
7015
7932
  ]
7016
7933
  },
7017
- "partName": {
7018
- "type": "string"
7019
- },
7020
7934
  "featureCount": {
7021
7935
  "type": "integer"
7936
+ },
7937
+ "bodyCount": {
7938
+ "type": [
7939
+ "integer",
7940
+ "null"
7941
+ ]
7022
7942
  }
7023
7943
  }
7024
7944
  },
@@ -7247,6 +8167,23 @@
7247
8167
  "type": "object",
7248
8168
  "additionalProperties": false,
7249
8169
  "properties": {
8170
+ "partId": {
8171
+ "type": "string"
8172
+ },
8173
+ "partName": {
8174
+ "type": "string"
8175
+ },
8176
+ "script": {
8177
+ "type": "string"
8178
+ },
8179
+ "runState": {
8180
+ "type": "string",
8181
+ "enum": [
8182
+ "not_run_yet",
8183
+ "ok",
8184
+ "failed"
8185
+ ]
8186
+ },
7250
8187
  "volume": {
7251
8188
  "type": [
7252
8189
  "number",
@@ -7282,11 +8219,14 @@
7282
8219
  }
7283
8220
  ]
7284
8221
  },
7285
- "partName": {
7286
- "type": "string"
7287
- },
7288
8222
  "featureCount": {
7289
8223
  "type": "integer"
8224
+ },
8225
+ "bodyCount": {
8226
+ "type": [
8227
+ "integer",
8228
+ "null"
8229
+ ]
7290
8230
  }
7291
8231
  }
7292
8232
  },
@@ -9933,6 +10873,23 @@
9933
10873
  "type": "object",
9934
10874
  "additionalProperties": false,
9935
10875
  "properties": {
10876
+ "partId": {
10877
+ "type": "string"
10878
+ },
10879
+ "partName": {
10880
+ "type": "string"
10881
+ },
10882
+ "script": {
10883
+ "type": "string"
10884
+ },
10885
+ "runState": {
10886
+ "type": "string",
10887
+ "enum": [
10888
+ "not_run_yet",
10889
+ "ok",
10890
+ "failed"
10891
+ ]
10892
+ },
9936
10893
  "volume": {
9937
10894
  "type": [
9938
10895
  "number",
@@ -9968,11 +10925,14 @@
9968
10925
  }
9969
10926
  ]
9970
10927
  },
9971
- "partName": {
9972
- "type": "string"
9973
- },
9974
10928
  "featureCount": {
9975
10929
  "type": "integer"
10930
+ },
10931
+ "bodyCount": {
10932
+ "type": [
10933
+ "integer",
10934
+ "null"
10935
+ ]
9976
10936
  }
9977
10937
  }
9978
10938
  },
@@ -10213,7 +11173,7 @@
10213
11173
  },
10214
11174
  {
10215
11175
  "name": "create_part",
10216
- "description": "Add a part row to the assembly.",
11176
+ "description": "Add a part row to the assembly. Agent calls default to the assembly origin (identity placement); pass position [x,y,z] mm to place explicitly. The UI still staggers new parts +40 mm on X so bodies do not overlap. In a git assembly the part has no vault path until git_save.",
10217
11177
  "args": {
10218
11178
  "type": "object",
10219
11179
  "additionalProperties": false,
@@ -10223,6 +11183,15 @@
10223
11183
  },
10224
11184
  "script": {
10225
11185
  "type": "string"
11186
+ },
11187
+ "position": {
11188
+ "type": "array",
11189
+ "items": {
11190
+ "type": "number"
11191
+ },
11192
+ "minItems": 3,
11193
+ "maxItems": 3,
11194
+ "description": "Optional initial translation [x, y, z] mm. Agent create_part defaults to the assembly origin; UI creation still staggers along +X."
10226
11195
  }
10227
11196
  }
10228
11197
  },
@@ -10243,6 +11212,192 @@
10243
11212
  "name": "Bracket"
10244
11213
  }
10245
11214
  },
11215
+ {
11216
+ "name": "rename_part",
11217
+ "description": "Rename a part. A vault part moves its committed .js in the same folder (-2, -3 on collision) and updates that part path/name in .surf.json in one rename commit. Pending script, placement, and other edits stay for the next Save. Path-less parts rename locally with no commit. That write needs git consent like git_save.",
11218
+ "args": {
11219
+ "type": "object",
11220
+ "additionalProperties": false,
11221
+ "required": [
11222
+ "part_id",
11223
+ "name"
11224
+ ],
11225
+ "properties": {
11226
+ "part_id": {
11227
+ "type": "string",
11228
+ "description": "Part row id from parts"
11229
+ },
11230
+ "name": {
11231
+ "type": "string",
11232
+ "description": "New display name; a vault part moves the committed <name>.js (-2, -3 on collision). Pending edits stay for Save."
11233
+ }
11234
+ }
11235
+ },
11236
+ "result": {
11237
+ "type": "object",
11238
+ "additionalProperties": true
11239
+ },
11240
+ "errors": [
11241
+ "bad_args",
11242
+ "unknown_part",
11243
+ "name_taken",
11244
+ "consent_pending",
11245
+ "real_repo_blocked",
11246
+ "git_error",
11247
+ "internal"
11248
+ ],
11249
+ "mutates": true,
11250
+ "destructive": false,
11251
+ "confirm": false,
11252
+ "immediate": false,
11253
+ "uiEntry": "data-part-name-input",
11254
+ "example": {
11255
+ "part_id": "parts/Bracket.js",
11256
+ "name": "Mount"
11257
+ }
11258
+ },
11259
+ {
11260
+ "name": "part_get_transform",
11261
+ "description": "Read a part rigid placement: position [x,y,z] mm and rotation as intrinsic XYZ Euler degrees (three.js Euler XYZ order).",
11262
+ "args": {
11263
+ "type": "object",
11264
+ "additionalProperties": false,
11265
+ "required": [
11266
+ "part"
11267
+ ],
11268
+ "properties": {
11269
+ "part": {
11270
+ "type": "string",
11271
+ "description": "Stable part id or vault path."
11272
+ }
11273
+ }
11274
+ },
11275
+ "result": {
11276
+ "type": "object",
11277
+ "additionalProperties": false,
11278
+ "properties": {
11279
+ "part": {
11280
+ "type": "string"
11281
+ },
11282
+ "position": {
11283
+ "type": "array",
11284
+ "items": {
11285
+ "type": "number"
11286
+ },
11287
+ "minItems": 3,
11288
+ "maxItems": 3
11289
+ },
11290
+ "rotation": {
11291
+ "type": "array",
11292
+ "items": {
11293
+ "type": "number"
11294
+ },
11295
+ "minItems": 3,
11296
+ "maxItems": 3
11297
+ },
11298
+ "eulerOrder": {
11299
+ "type": "string",
11300
+ "const": "XYZ"
11301
+ }
11302
+ }
11303
+ },
11304
+ "errors": [
11305
+ "bad_args",
11306
+ "unknown_part",
11307
+ "internal"
11308
+ ],
11309
+ "mutates": false,
11310
+ "destructive": false,
11311
+ "confirm": false,
11312
+ "immediate": true,
11313
+ "uiEntry": null,
11314
+ "example": {
11315
+ "part": "local:part1"
11316
+ }
11317
+ },
11318
+ {
11319
+ "name": "part_set_transform",
11320
+ "description": "Set a part rigid placement (translation mm, intrinsic XYZ Euler degrees). Records one assembly undo step like a UI move.",
11321
+ "args": {
11322
+ "type": "object",
11323
+ "additionalProperties": false,
11324
+ "required": [
11325
+ "part"
11326
+ ],
11327
+ "properties": {
11328
+ "part": {
11329
+ "type": "string",
11330
+ "description": "Stable part id or vault path to move."
11331
+ },
11332
+ "position": {
11333
+ "type": "array",
11334
+ "items": {
11335
+ "type": "number"
11336
+ },
11337
+ "minItems": 3,
11338
+ "maxItems": 3,
11339
+ "description": "Translation [x, y, z] in mm. Omitted keeps the current translation."
11340
+ },
11341
+ "rotation": {
11342
+ "type": "array",
11343
+ "items": {
11344
+ "type": "number"
11345
+ },
11346
+ "minItems": 3,
11347
+ "maxItems": 3,
11348
+ "description": "Intrinsic XYZ Euler rotation in degrees (same order as three.js Euler XYZ). Omitted keeps the current rotation."
11349
+ }
11350
+ }
11351
+ },
11352
+ "result": {
11353
+ "type": "object",
11354
+ "additionalProperties": false,
11355
+ "properties": {
11356
+ "part": {
11357
+ "type": "string"
11358
+ },
11359
+ "position": {
11360
+ "type": "array",
11361
+ "items": {
11362
+ "type": "number"
11363
+ },
11364
+ "minItems": 3,
11365
+ "maxItems": 3
11366
+ },
11367
+ "rotation": {
11368
+ "type": "array",
11369
+ "items": {
11370
+ "type": "number"
11371
+ },
11372
+ "minItems": 3,
11373
+ "maxItems": 3
11374
+ },
11375
+ "eulerOrder": {
11376
+ "type": "string",
11377
+ "const": "XYZ"
11378
+ }
11379
+ }
11380
+ },
11381
+ "errors": [
11382
+ "bad_args",
11383
+ "unknown_part",
11384
+ "no_assembly",
11385
+ "internal"
11386
+ ],
11387
+ "mutates": true,
11388
+ "destructive": false,
11389
+ "confirm": false,
11390
+ "immediate": false,
11391
+ "uiEntry": null,
11392
+ "example": {
11393
+ "part": "local:part1",
11394
+ "position": [
11395
+ 10,
11396
+ 0,
11397
+ 0
11398
+ ]
11399
+ }
11400
+ },
10246
11401
  {
10247
11402
  "name": "open_assembly",
10248
11403
  "description": "Open a vault assembly (git mode).",
@@ -10428,7 +11583,7 @@
10428
11583
  },
10429
11584
  {
10430
11585
  "name": "joint_pick",
10431
- "description": "Feed face picks on parts into the joint card.",
11586
+ "description": "Feed face picks on parts into the joint card. Pass face_id from list_faces together with the key from that row (ids are only valid until the next remesh; a stale pair returns unknown_face). A cylindrical face becomes an axis pick, as a viewport tap does.",
10432
11587
  "args": {
10433
11588
  "type": "object",
10434
11589
  "additionalProperties": false,
@@ -10436,6 +11591,11 @@
10436
11591
  "part_id": {
10437
11592
  "type": "string"
10438
11593
  },
11594
+ "face_id": {
11595
+ "type": "string",
11596
+ "pattern": "^f[0-9]+$",
11597
+ "description": "Face id from list_faces on that part (e.g. f7). Valid only until the next remesh; pass the key from the same list_faces row with the id."
11598
+ },
10439
11599
  "key": {
10440
11600
  "type": "object",
10441
11601
  "additionalProperties": false,
@@ -10486,13 +11646,17 @@
10486
11646
  "type": "object",
10487
11647
  "additionalProperties": false,
10488
11648
  "required": [
10489
- "part_id",
10490
- "key"
11649
+ "part_id"
10491
11650
  ],
10492
11651
  "properties": {
10493
11652
  "part_id": {
10494
11653
  "type": "string"
10495
11654
  },
11655
+ "face_id": {
11656
+ "type": "string",
11657
+ "pattern": "^f[0-9]+$",
11658
+ "description": "Face id from list_faces on that part (e.g. f7). Valid only until the next remesh; pass the key from the same list_faces row with the id."
11659
+ },
10496
11660
  "key": {
10497
11661
  "type": "object",
10498
11662
  "additionalProperties": false,
@@ -10551,6 +11715,9 @@
10551
11715
  "bad_args",
10552
11716
  "unknown_part",
10553
11717
  "unknown_face",
11718
+ "ambiguous_face",
11719
+ "pick_failed",
11720
+ "no_mesh",
10554
11721
  "internal"
10555
11722
  ],
10556
11723
  "mutates": false,
@@ -10562,34 +11729,36 @@
10562
11729
  "picks": [
10563
11730
  {
10564
11731
  "part_id": "local:base",
11732
+ "face_id": "f4",
10565
11733
  "key": {
10566
11734
  "at": [
10567
11735
  0,
10568
11736
  0,
10569
- 10
11737
+ 5
10570
11738
  ],
10571
11739
  "n": [
10572
11740
  0,
10573
11741
  0,
10574
11742
  1
10575
11743
  ],
10576
- "area": 2000
11744
+ "area": 400
10577
11745
  }
10578
11746
  },
10579
11747
  {
10580
11748
  "part_id": "local:pin",
11749
+ "face_id": "f2",
10581
11750
  "key": {
10582
11751
  "at": [
10583
11752
  0,
10584
11753
  0,
10585
- 10
11754
+ 0
10586
11755
  ],
10587
11756
  "n": [
10588
11757
  0,
10589
11758
  0,
10590
- -1
11759
+ 1
10591
11760
  ],
10592
- "area": 200
11761
+ "area": 50.27
10593
11762
  }
10594
11763
  }
10595
11764
  ]
@@ -10597,7 +11766,7 @@
10597
11766
  },
10598
11767
  {
10599
11768
  "name": "joint_commit",
10600
- "description": "Confirm the joint card and record assembly undo.",
11769
+ "description": "Confirm the joint card and record one assembly undo step. A refused commit, or one that changes nothing (unchanged: true), records no step.",
10601
11770
  "args": {
10602
11771
  "type": "object",
10603
11772
  "additionalProperties": false,
@@ -10608,6 +11777,8 @@
10608
11777
  "additionalProperties": true
10609
11778
  },
10610
11779
  "errors": [
11780
+ "no_joint_card",
11781
+ "commit_failed",
10611
11782
  "edit_failed",
10612
11783
  "internal"
10613
11784
  ],
@@ -10681,14 +11852,14 @@
10681
11852
  },
10682
11853
  {
10683
11854
  "name": "joint_edit",
10684
- "description": "Open or patch a joint on the strip (same fields as joint_set_params).",
11855
+ "description": "Open a joint by joint_id and patch it (same fields as joint_set_params); joint_commit writes it. A refused edit changes nothing.",
10685
11856
  "args": {
10686
11857
  "type": "object",
10687
11858
  "additionalProperties": false,
10688
11859
  "properties": {
10689
11860
  "joint_id": {
10690
11861
  "type": "string",
10691
- "description": "Joint id to edit; omit to edit the open card target"
11862
+ "description": "Joint id from the assembly strip; opens that joint for editing (no joint_select needed). Omit to patch the joint already open."
10692
11863
  },
10693
11864
  "type": {
10694
11865
  "type": "string",
@@ -10727,7 +11898,9 @@
10727
11898
  },
10728
11899
  "errors": [
10729
11900
  "bad_args",
11901
+ "no_assembly",
10730
11902
  "unknown_joint",
11903
+ "no_joint_edit",
10731
11904
  "edit_failed",
10732
11905
  "internal"
10733
11906
  ],
@@ -11066,6 +12239,23 @@
11066
12239
  "type": "object",
11067
12240
  "additionalProperties": false,
11068
12241
  "properties": {
12242
+ "partId": {
12243
+ "type": "string"
12244
+ },
12245
+ "partName": {
12246
+ "type": "string"
12247
+ },
12248
+ "script": {
12249
+ "type": "string"
12250
+ },
12251
+ "runState": {
12252
+ "type": "string",
12253
+ "enum": [
12254
+ "not_run_yet",
12255
+ "ok",
12256
+ "failed"
12257
+ ]
12258
+ },
11069
12259
  "volume": {
11070
12260
  "type": [
11071
12261
  "number",
@@ -11101,11 +12291,14 @@
11101
12291
  }
11102
12292
  ]
11103
12293
  },
11104
- "partName": {
11105
- "type": "string"
11106
- },
11107
12294
  "featureCount": {
11108
12295
  "type": "integer"
12296
+ },
12297
+ "bodyCount": {
12298
+ "type": [
12299
+ "integer",
12300
+ "null"
12301
+ ]
11109
12302
  }
11110
12303
  }
11111
12304
  },
@@ -11262,6 +12455,23 @@
11262
12455
  "type": "object",
11263
12456
  "additionalProperties": false,
11264
12457
  "properties": {
12458
+ "partId": {
12459
+ "type": "string"
12460
+ },
12461
+ "partName": {
12462
+ "type": "string"
12463
+ },
12464
+ "script": {
12465
+ "type": "string"
12466
+ },
12467
+ "runState": {
12468
+ "type": "string",
12469
+ "enum": [
12470
+ "not_run_yet",
12471
+ "ok",
12472
+ "failed"
12473
+ ]
12474
+ },
11265
12475
  "volume": {
11266
12476
  "type": [
11267
12477
  "number",
@@ -11297,11 +12507,14 @@
11297
12507
  }
11298
12508
  ]
11299
12509
  },
11300
- "partName": {
11301
- "type": "string"
11302
- },
11303
12510
  "featureCount": {
11304
12511
  "type": "integer"
12512
+ },
12513
+ "bodyCount": {
12514
+ "type": [
12515
+ "integer",
12516
+ "null"
12517
+ ]
11305
12518
  }
11306
12519
  }
11307
12520
  },
@@ -13930,6 +15143,8 @@
13930
15143
  "errors": [
13931
15144
  "bad_args",
13932
15145
  "git_blocked",
15146
+ "consent_pending",
15147
+ "real_repo_blocked",
13933
15148
  "internal"
13934
15149
  ],
13935
15150
  "mutates": true,
@@ -13943,7 +15158,7 @@
13943
15158
  },
13944
15159
  {
13945
15160
  "name": "git_save",
13946
- "description": "Commit dirty parts to the current vault branch.",
15161
+ "description": "Save like the Parts Save button: give every path-less part a vault path, then commit those parts, dirty parts, and the .surf.json in one commit on the current branch. A real repo returns consent_pending at once until the user clicks Allow; retry after.",
13947
15162
  "args": {
13948
15163
  "type": "object",
13949
15164
  "additionalProperties": false,
@@ -13964,6 +15179,8 @@
13964
15179
  "errors": [
13965
15180
  "bad_args",
13966
15181
  "git_blocked",
15182
+ "consent_pending",
15183
+ "real_repo_blocked",
13967
15184
  "internal"
13968
15185
  ],
13969
15186
  "mutates": true,
@@ -13980,7 +15197,7 @@
13980
15197
  },
13981
15198
  {
13982
15199
  "name": "git_add_to_repo",
13983
- "description": "Add a part row into the vault tree and commit.",
15200
+ "description": "Add a part row into the vault tree and commit. Other path-less parts are pathed and committed with it so the .surf.json stays valid.",
13984
15201
  "args": {
13985
15202
  "type": "object",
13986
15203
  "additionalProperties": false,
@@ -14001,13 +15218,18 @@
14001
15218
  "errors": [
14002
15219
  "bad_args",
14003
15220
  "git_blocked",
15221
+ "consent_pending",
15222
+ "real_repo_blocked",
14004
15223
  "internal"
14005
15224
  ],
14006
15225
  "mutates": true,
14007
15226
  "destructive": false,
14008
15227
  "confirm": false,
14009
15228
  "immediate": false,
14010
- "uiEntry": "data-git-commit-add-to-repo",
15229
+ "uiEntry": [
15230
+ "data-git-commit-add-to-repo",
15231
+ "data-part-add-to-repo"
15232
+ ],
14011
15233
  "example": {
14012
15234
  "part_id": "parts/Bracket.js"
14013
15235
  }
@@ -14053,6 +15275,8 @@
14053
15275
  "bad_args",
14054
15276
  "confirm_required",
14055
15277
  "git_blocked",
15278
+ "consent_pending",
15279
+ "real_repo_blocked",
14056
15280
  "internal"
14057
15281
  ],
14058
15282
  "mutates": true,
@@ -14072,7 +15296,7 @@
14072
15296
  },
14073
15297
  {
14074
15298
  "name": "git_branch_create",
14075
- "description": "Create and switch to a new vault branch.",
15299
+ "description": "Create and switch to a new vault branch from the current tip. If the working copy has uncommitted changes, the branch is created but the session stays on the current branch (same as Parts Create, which does not discard unsaved edits); use git_branch_switch with confirm: true to switch while dirty. If create succeeds but switch fails, the result is still status created with switched: false and switchError set.",
14076
15300
  "args": {
14077
15301
  "type": "object",
14078
15302
  "additionalProperties": false,
@@ -14081,7 +15305,8 @@
14081
15305
  ],
14082
15306
  "properties": {
14083
15307
  "name": {
14084
- "type": "string"
15308
+ "type": "string",
15309
+ "description": "New branch name. Created from the current tip; the session switches to it when the working copy is clean."
14085
15310
  }
14086
15311
  }
14087
15312
  },
@@ -14092,6 +15317,8 @@
14092
15317
  "errors": [
14093
15318
  "bad_args",
14094
15319
  "git_blocked",
15320
+ "consent_pending",
15321
+ "real_repo_blocked",
14095
15322
  "internal"
14096
15323
  ],
14097
15324
  "mutates": true,
@@ -14133,6 +15360,8 @@
14133
15360
  "bad_args",
14134
15361
  "confirm_required",
14135
15362
  "git_blocked",
15363
+ "consent_pending",
15364
+ "real_repo_blocked",
14136
15365
  "internal"
14137
15366
  ],
14138
15367
  "mutates": true,
@@ -14174,6 +15403,8 @@
14174
15403
  "bad_args",
14175
15404
  "confirm_required",
14176
15405
  "git_blocked",
15406
+ "consent_pending",
15407
+ "real_repo_blocked",
14177
15408
  "internal"
14178
15409
  ],
14179
15410
  "mutates": true,
@@ -14206,6 +15437,8 @@
14206
15437
  "errors": [
14207
15438
  "confirm_required",
14208
15439
  "git_blocked",
15440
+ "consent_pending",
15441
+ "real_repo_blocked",
14209
15442
  "internal"
14210
15443
  ],
14211
15444
  "mutates": true,