carrick 0.3.116 → 0.3.118

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 (42) hide show
  1. package/dist/contract.d.ts +2 -0
  2. package/dist/contract.js.map +1 -1
  3. package/dist/render.js +2 -1
  4. package/dist/render.js.map +1 -1
  5. package/package.json +6 -6
  6. package/plugin/.claude-plugin/plugin.json +1 -1
  7. package/sidecar/dist/src/capture/anchors.d.ts +1 -0
  8. package/sidecar/dist/src/capture/anchors.js +1 -1
  9. package/sidecar/dist/src/capture/api.d.ts +6 -0
  10. package/sidecar/dist/src/capture/check-classify.js +25 -0
  11. package/sidecar/dist/src/capture/check-probe.d.ts +1 -1
  12. package/sidecar/dist/src/capture/check-probe.js +20 -0
  13. package/sidecar/dist/src/capture/checkout.d.ts +3 -0
  14. package/sidecar/dist/src/capture/checkout.js +1 -1
  15. package/sidecar/dist/src/capture/deep-walk.d.ts +10 -0
  16. package/sidecar/dist/src/capture/deep-walk.js +15 -0
  17. package/sidecar/dist/src/capture/guarded-fs.d.ts +6 -0
  18. package/sidecar/dist/src/capture/guarded-fs.js +10 -0
  19. package/sidecar/dist/src/capture/index.d.ts +5 -0
  20. package/sidecar/dist/src/capture/index.js +62 -7
  21. package/sidecar/dist/src/capture/project-references.d.ts +24 -13
  22. package/sidecar/dist/src/capture/project-references.js +53 -16
  23. package/sidecar/dist/src/capture/reference-redirect.d.ts +84 -0
  24. package/sidecar/dist/src/capture/reference-redirect.js +209 -0
  25. package/sidecar/dist/src/capture/unresolved.d.ts +8 -0
  26. package/sidecar/dist/src/capture/unresolved.js +18 -2
  27. package/sidecar/dist/src/declaration-attribution.d.ts +40 -0
  28. package/sidecar/dist/src/declaration-attribution.js +66 -0
  29. package/sidecar/dist/src/index.js +37 -0
  30. package/sidecar/dist/src/library-claims.js +234 -23
  31. package/sidecar/dist/src/module-format.d.ts +19 -1
  32. package/sidecar/dist/src/module-format.js +9 -2
  33. package/sidecar/dist/src/position-rows.d.ts +95 -0
  34. package/sidecar/dist/src/position-rows.js +844 -0
  35. package/sidecar/dist/src/project-loader.d.ts +36 -7
  36. package/sidecar/dist/src/project-loader.js +70 -28
  37. package/sidecar/dist/src/retype.js +13 -0
  38. package/sidecar/dist/src/type-inferrer.d.ts +25 -29
  39. package/sidecar/dist/src/type-inferrer.js +119 -70
  40. package/sidecar/dist/src/types.d.ts +78 -2
  41. package/sidecar/dist/src/validators.d.ts +431 -30
  42. package/sidecar/dist/src/validators.js +45 -1
@@ -495,7 +495,7 @@ export declare const CheckV2RequestSchema: z.ZodObject<{
495
495
  service_name: string;
496
496
  stub_dir: string;
497
497
  }>, "many">;
498
- pairs: z.ZodArray<z.ZodObject<{
498
+ pairs: z.ZodArray<z.ZodEffects<z.ZodObject<{
499
499
  pair_key: z.ZodString;
500
500
  protocol: z.ZodEnum<["http", "graphql", "socket", "pubsub"]>;
501
501
  type_kind: z.ZodEnum<["request", "response", "both"]>;
@@ -519,6 +519,7 @@ export declare const CheckV2RequestSchema: z.ZodObject<{
519
519
  alias: string;
520
520
  service_name: string;
521
521
  }>;
522
+ topic: z.ZodOptional<z.ZodString>;
522
523
  }, "strip", z.ZodTypeAny, {
523
524
  producer: {
524
525
  alias: string;
@@ -531,6 +532,7 @@ export declare const CheckV2RequestSchema: z.ZodObject<{
531
532
  pair_key: string;
532
533
  protocol: "http" | "graphql" | "socket" | "pubsub";
533
534
  type_kind: "request" | "response" | "both";
535
+ topic?: string | undefined;
534
536
  }, {
535
537
  producer: {
536
538
  alias: string;
@@ -543,6 +545,33 @@ export declare const CheckV2RequestSchema: z.ZodObject<{
543
545
  pair_key: string;
544
546
  protocol: "http" | "graphql" | "socket" | "pubsub";
545
547
  type_kind: "request" | "response" | "both";
548
+ topic?: string | undefined;
549
+ }>, {
550
+ producer: {
551
+ alias: string;
552
+ service_name: string;
553
+ };
554
+ consumer: {
555
+ alias: string;
556
+ service_name: string;
557
+ };
558
+ pair_key: string;
559
+ protocol: "http" | "graphql" | "socket" | "pubsub";
560
+ type_kind: "request" | "response" | "both";
561
+ topic?: string | undefined;
562
+ }, {
563
+ producer: {
564
+ alias: string;
565
+ service_name: string;
566
+ };
567
+ consumer: {
568
+ alias: string;
569
+ service_name: string;
570
+ };
571
+ pair_key: string;
572
+ protocol: "http" | "graphql" | "socket" | "pubsub";
573
+ type_kind: "request" | "response" | "both";
574
+ topic?: string | undefined;
546
575
  }>, "many">;
547
576
  workspace_root: z.ZodOptional<z.ZodString>;
548
577
  keep_workspace: z.ZodOptional<z.ZodBoolean>;
@@ -559,6 +588,7 @@ export declare const CheckV2RequestSchema: z.ZodObject<{
559
588
  pair_key: string;
560
589
  protocol: "http" | "graphql" | "socket" | "pubsub";
561
590
  type_kind: "request" | "response" | "both";
591
+ topic?: string | undefined;
562
592
  }[];
563
593
  request_id: string;
564
594
  action: "check_v2";
@@ -581,6 +611,7 @@ export declare const CheckV2RequestSchema: z.ZodObject<{
581
611
  pair_key: string;
582
612
  protocol: "http" | "graphql" | "socket" | "pubsub";
583
613
  type_kind: "request" | "response" | "both";
614
+ topic?: string | undefined;
584
615
  }[];
585
616
  request_id: string;
586
617
  action: "check_v2";
@@ -794,6 +825,29 @@ export declare const AddProgramFilesRequestSchema: z.ZodObject<{
794
825
  request_id: string;
795
826
  action: "add_program_files";
796
827
  }>;
828
+ export declare const PositionRowsRequestSchema: z.ZodObject<{
829
+ request_id: z.ZodString;
830
+ } & {
831
+ action: z.ZodLiteral<"position_rows">;
832
+ files: z.ZodArray<z.ZodString, "many">;
833
+ scan_root: z.ZodString;
834
+ out_path: z.ZodString;
835
+ service: z.ZodString;
836
+ }, "strip", z.ZodTypeAny, {
837
+ service: string;
838
+ files: string[];
839
+ request_id: string;
840
+ action: "position_rows";
841
+ scan_root: string;
842
+ out_path: string;
843
+ }, {
844
+ service: string;
845
+ files: string[];
846
+ request_id: string;
847
+ action: "position_rows";
848
+ scan_root: string;
849
+ out_path: string;
850
+ }>;
797
851
  export declare const ResolveDefinitionsRequestSchema: z.ZodObject<{
798
852
  request_id: z.ZodString;
799
853
  } & {
@@ -1170,6 +1224,16 @@ export declare const VerifyLibraryClaimsRequestSchema: z.ZodObject<{
1170
1224
  arg: number;
1171
1225
  key?: string | undefined;
1172
1226
  }>>;
1227
+ runs: z.ZodOptional<z.ZodObject<{
1228
+ arg: z.ZodNumber;
1229
+ key: z.ZodOptional<z.ZodString>;
1230
+ }, "strict", z.ZodTypeAny, {
1231
+ arg: number;
1232
+ key?: string | undefined;
1233
+ }, {
1234
+ arg: number;
1235
+ key?: string | undefined;
1236
+ }>>;
1173
1237
  key_labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["name", "not_name"]>>>;
1174
1238
  name_scope: z.ZodOptional<z.ZodObject<{
1175
1239
  scope: z.ZodEnum<["global", "service"]>;
@@ -1202,6 +1266,10 @@ export declare const VerifyLibraryClaimsRequestSchema: z.ZodObject<{
1202
1266
  arg: number;
1203
1267
  key?: string | undefined;
1204
1268
  } | undefined;
1269
+ runs?: {
1270
+ arg: number;
1271
+ key?: string | undefined;
1272
+ } | undefined;
1205
1273
  key_labels?: Record<string, "name" | "not_name"> | undefined;
1206
1274
  name_scope?: {
1207
1275
  scope: "global" | "service";
@@ -1228,6 +1296,10 @@ export declare const VerifyLibraryClaimsRequestSchema: z.ZodObject<{
1228
1296
  arg: number;
1229
1297
  key?: string | undefined;
1230
1298
  } | undefined;
1299
+ runs?: {
1300
+ arg: number;
1301
+ key?: string | undefined;
1302
+ } | undefined;
1231
1303
  key_labels?: Record<string, "name" | "not_name"> | undefined;
1232
1304
  name_scope?: {
1233
1305
  scope: "global" | "service";
@@ -1380,6 +1452,43 @@ export declare const VerifyLibraryClaimsRequestSchema: z.ZodObject<{
1380
1452
  arg: number;
1381
1453
  key?: string | undefined;
1382
1454
  }>>;
1455
+ method_default: z.ZodOptional<z.ZodString>;
1456
+ base: z.ZodOptional<z.ZodObject<{
1457
+ arg: z.ZodNumber;
1458
+ key: z.ZodOptional<z.ZodString>;
1459
+ }, "strict", z.ZodTypeAny, {
1460
+ arg: number;
1461
+ key?: string | undefined;
1462
+ }, {
1463
+ arg: number;
1464
+ key?: string | undefined;
1465
+ }>>;
1466
+ runs: z.ZodOptional<z.ZodObject<{
1467
+ arg: z.ZodNumber;
1468
+ key: z.ZodOptional<z.ZodString>;
1469
+ bound: z.ZodOptional<z.ZodLiteral<"maker">>;
1470
+ }, "strict", z.ZodTypeAny, {
1471
+ arg: number;
1472
+ key?: string | undefined;
1473
+ bound?: "maker" | undefined;
1474
+ }, {
1475
+ arg: number;
1476
+ key?: string | undefined;
1477
+ bound?: "maker" | undefined;
1478
+ }>>;
1479
+ yields: z.ZodOptional<z.ZodObject<{
1480
+ param: z.ZodNumber;
1481
+ export: z.ZodString;
1482
+ side: z.ZodString;
1483
+ }, "strict", z.ZodTypeAny, {
1484
+ side: string;
1485
+ export: string;
1486
+ param: number;
1487
+ }, {
1488
+ side: string;
1489
+ export: string;
1490
+ param: number;
1491
+ }>>;
1383
1492
  }, "strict", z.ZodTypeAny, {
1384
1493
  kind: "op";
1385
1494
  member: string | null;
@@ -1400,10 +1509,19 @@ export declare const VerifyLibraryClaimsRequestSchema: z.ZodObject<{
1400
1509
  arg: number;
1401
1510
  key?: string | undefined;
1402
1511
  } | undefined;
1512
+ base?: {
1513
+ arg: number;
1514
+ key?: string | undefined;
1515
+ } | undefined;
1403
1516
  handler?: {
1404
1517
  arg: number;
1405
1518
  key?: string | undefined;
1406
1519
  } | undefined;
1520
+ runs?: {
1521
+ arg: number;
1522
+ key?: string | undefined;
1523
+ bound?: "maker" | undefined;
1524
+ } | undefined;
1407
1525
  key_labels?: Record<string, "name" | "not_name"> | undefined;
1408
1526
  name_scope?: {
1409
1527
  scope: "global" | "service";
@@ -1420,6 +1538,12 @@ export declare const VerifyLibraryClaimsRequestSchema: z.ZodObject<{
1420
1538
  arg: number;
1421
1539
  key?: string | undefined;
1422
1540
  } | undefined;
1541
+ method_default?: string | undefined;
1542
+ yields?: {
1543
+ side: string;
1544
+ export: string;
1545
+ param: number;
1546
+ } | undefined;
1423
1547
  }, {
1424
1548
  kind: "op";
1425
1549
  member: string | null;
@@ -1440,10 +1564,19 @@ export declare const VerifyLibraryClaimsRequestSchema: z.ZodObject<{
1440
1564
  arg: number;
1441
1565
  key?: string | undefined;
1442
1566
  } | undefined;
1567
+ base?: {
1568
+ arg: number;
1569
+ key?: string | undefined;
1570
+ } | undefined;
1443
1571
  handler?: {
1444
1572
  arg: number;
1445
1573
  key?: string | undefined;
1446
1574
  } | undefined;
1575
+ runs?: {
1576
+ arg: number;
1577
+ key?: string | undefined;
1578
+ bound?: "maker" | undefined;
1579
+ } | undefined;
1447
1580
  key_labels?: Record<string, "name" | "not_name"> | undefined;
1448
1581
  name_scope?: {
1449
1582
  scope: "global" | "service";
@@ -1460,6 +1593,12 @@ export declare const VerifyLibraryClaimsRequestSchema: z.ZodObject<{
1460
1593
  arg: number;
1461
1594
  key?: string | undefined;
1462
1595
  } | undefined;
1596
+ method_default?: string | undefined;
1597
+ yields?: {
1598
+ side: string;
1599
+ export: string;
1600
+ param: number;
1601
+ } | undefined;
1463
1602
  }>, z.ZodObject<{
1464
1603
  kind: z.ZodLiteral<"reserved">;
1465
1604
  member: z.ZodString;
@@ -1510,6 +1649,10 @@ export declare const VerifyLibraryClaimsRequestSchema: z.ZodObject<{
1510
1649
  arg: number;
1511
1650
  key?: string | undefined;
1512
1651
  } | undefined;
1652
+ runs?: {
1653
+ arg: number;
1654
+ key?: string | undefined;
1655
+ } | undefined;
1513
1656
  key_labels?: Record<string, "name" | "not_name"> | undefined;
1514
1657
  name_scope?: {
1515
1658
  scope: "global" | "service";
@@ -1552,10 +1695,19 @@ export declare const VerifyLibraryClaimsRequestSchema: z.ZodObject<{
1552
1695
  arg: number;
1553
1696
  key?: string | undefined;
1554
1697
  } | undefined;
1698
+ base?: {
1699
+ arg: number;
1700
+ key?: string | undefined;
1701
+ } | undefined;
1555
1702
  handler?: {
1556
1703
  arg: number;
1557
1704
  key?: string | undefined;
1558
1705
  } | undefined;
1706
+ runs?: {
1707
+ arg: number;
1708
+ key?: string | undefined;
1709
+ bound?: "maker" | undefined;
1710
+ } | undefined;
1559
1711
  key_labels?: Record<string, "name" | "not_name"> | undefined;
1560
1712
  name_scope?: {
1561
1713
  scope: "global" | "service";
@@ -1572,6 +1724,12 @@ export declare const VerifyLibraryClaimsRequestSchema: z.ZodObject<{
1572
1724
  arg: number;
1573
1725
  key?: string | undefined;
1574
1726
  } | undefined;
1727
+ method_default?: string | undefined;
1728
+ yields?: {
1729
+ side: string;
1730
+ export: string;
1731
+ param: number;
1732
+ } | undefined;
1575
1733
  } | {
1576
1734
  kind: "reserved";
1577
1735
  name: string;
@@ -1607,6 +1765,10 @@ export declare const VerifyLibraryClaimsRequestSchema: z.ZodObject<{
1607
1765
  arg: number;
1608
1766
  key?: string | undefined;
1609
1767
  } | undefined;
1768
+ runs?: {
1769
+ arg: number;
1770
+ key?: string | undefined;
1771
+ } | undefined;
1610
1772
  key_labels?: Record<string, "name" | "not_name"> | undefined;
1611
1773
  name_scope?: {
1612
1774
  scope: "global" | "service";
@@ -1649,10 +1811,19 @@ export declare const VerifyLibraryClaimsRequestSchema: z.ZodObject<{
1649
1811
  arg: number;
1650
1812
  key?: string | undefined;
1651
1813
  } | undefined;
1814
+ base?: {
1815
+ arg: number;
1816
+ key?: string | undefined;
1817
+ } | undefined;
1652
1818
  handler?: {
1653
1819
  arg: number;
1654
1820
  key?: string | undefined;
1655
1821
  } | undefined;
1822
+ runs?: {
1823
+ arg: number;
1824
+ key?: string | undefined;
1825
+ bound?: "maker" | undefined;
1826
+ } | undefined;
1656
1827
  key_labels?: Record<string, "name" | "not_name"> | undefined;
1657
1828
  name_scope?: {
1658
1829
  scope: "global" | "service";
@@ -1669,6 +1840,12 @@ export declare const VerifyLibraryClaimsRequestSchema: z.ZodObject<{
1669
1840
  arg: number;
1670
1841
  key?: string | undefined;
1671
1842
  } | undefined;
1843
+ method_default?: string | undefined;
1844
+ yields?: {
1845
+ side: string;
1846
+ export: string;
1847
+ param: number;
1848
+ } | undefined;
1672
1849
  } | {
1673
1850
  kind: "reserved";
1674
1851
  name: string;
@@ -1710,6 +1887,10 @@ export declare const VerifyLibraryClaimsRequestSchema: z.ZodObject<{
1710
1887
  arg: number;
1711
1888
  key?: string | undefined;
1712
1889
  } | undefined;
1890
+ runs?: {
1891
+ arg: number;
1892
+ key?: string | undefined;
1893
+ } | undefined;
1713
1894
  key_labels?: Record<string, "name" | "not_name"> | undefined;
1714
1895
  name_scope?: {
1715
1896
  scope: "global" | "service";
@@ -1752,10 +1933,19 @@ export declare const VerifyLibraryClaimsRequestSchema: z.ZodObject<{
1752
1933
  arg: number;
1753
1934
  key?: string | undefined;
1754
1935
  } | undefined;
1936
+ base?: {
1937
+ arg: number;
1938
+ key?: string | undefined;
1939
+ } | undefined;
1755
1940
  handler?: {
1756
1941
  arg: number;
1757
1942
  key?: string | undefined;
1758
1943
  } | undefined;
1944
+ runs?: {
1945
+ arg: number;
1946
+ key?: string | undefined;
1947
+ bound?: "maker" | undefined;
1948
+ } | undefined;
1759
1949
  key_labels?: Record<string, "name" | "not_name"> | undefined;
1760
1950
  name_scope?: {
1761
1951
  scope: "global" | "service";
@@ -1772,6 +1962,12 @@ export declare const VerifyLibraryClaimsRequestSchema: z.ZodObject<{
1772
1962
  arg: number;
1773
1963
  key?: string | undefined;
1774
1964
  } | undefined;
1965
+ method_default?: string | undefined;
1966
+ yields?: {
1967
+ side: string;
1968
+ export: string;
1969
+ param: number;
1970
+ } | undefined;
1775
1971
  } | {
1776
1972
  kind: "reserved";
1777
1973
  name: string;
@@ -1813,6 +2009,10 @@ export declare const VerifyLibraryClaimsRequestSchema: z.ZodObject<{
1813
2009
  arg: number;
1814
2010
  key?: string | undefined;
1815
2011
  } | undefined;
2012
+ runs?: {
2013
+ arg: number;
2014
+ key?: string | undefined;
2015
+ } | undefined;
1816
2016
  key_labels?: Record<string, "name" | "not_name"> | undefined;
1817
2017
  name_scope?: {
1818
2018
  scope: "global" | "service";
@@ -1855,10 +2055,19 @@ export declare const VerifyLibraryClaimsRequestSchema: z.ZodObject<{
1855
2055
  arg: number;
1856
2056
  key?: string | undefined;
1857
2057
  } | undefined;
2058
+ base?: {
2059
+ arg: number;
2060
+ key?: string | undefined;
2061
+ } | undefined;
1858
2062
  handler?: {
1859
2063
  arg: number;
1860
2064
  key?: string | undefined;
1861
2065
  } | undefined;
2066
+ runs?: {
2067
+ arg: number;
2068
+ key?: string | undefined;
2069
+ bound?: "maker" | undefined;
2070
+ } | undefined;
1862
2071
  key_labels?: Record<string, "name" | "not_name"> | undefined;
1863
2072
  name_scope?: {
1864
2073
  scope: "global" | "service";
@@ -1875,6 +2084,12 @@ export declare const VerifyLibraryClaimsRequestSchema: z.ZodObject<{
1875
2084
  arg: number;
1876
2085
  key?: string | undefined;
1877
2086
  } | undefined;
2087
+ method_default?: string | undefined;
2088
+ yields?: {
2089
+ side: string;
2090
+ export: string;
2091
+ param: number;
2092
+ } | undefined;
1878
2093
  } | {
1879
2094
  kind: "reserved";
1880
2095
  name: string;
@@ -2340,7 +2555,7 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
2340
2555
  service_name: string;
2341
2556
  stub_dir: string;
2342
2557
  }>, "many">;
2343
- pairs: z.ZodArray<z.ZodObject<{
2558
+ pairs: z.ZodArray<z.ZodEffects<z.ZodObject<{
2344
2559
  pair_key: z.ZodString;
2345
2560
  protocol: z.ZodEnum<["http", "graphql", "socket", "pubsub"]>;
2346
2561
  type_kind: z.ZodEnum<["request", "response", "both"]>;
@@ -2364,6 +2579,7 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
2364
2579
  alias: string;
2365
2580
  service_name: string;
2366
2581
  }>;
2582
+ topic: z.ZodOptional<z.ZodString>;
2367
2583
  }, "strip", z.ZodTypeAny, {
2368
2584
  producer: {
2369
2585
  alias: string;
@@ -2376,6 +2592,33 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
2376
2592
  pair_key: string;
2377
2593
  protocol: "http" | "graphql" | "socket" | "pubsub";
2378
2594
  type_kind: "request" | "response" | "both";
2595
+ topic?: string | undefined;
2596
+ }, {
2597
+ producer: {
2598
+ alias: string;
2599
+ service_name: string;
2600
+ };
2601
+ consumer: {
2602
+ alias: string;
2603
+ service_name: string;
2604
+ };
2605
+ pair_key: string;
2606
+ protocol: "http" | "graphql" | "socket" | "pubsub";
2607
+ type_kind: "request" | "response" | "both";
2608
+ topic?: string | undefined;
2609
+ }>, {
2610
+ producer: {
2611
+ alias: string;
2612
+ service_name: string;
2613
+ };
2614
+ consumer: {
2615
+ alias: string;
2616
+ service_name: string;
2617
+ };
2618
+ pair_key: string;
2619
+ protocol: "http" | "graphql" | "socket" | "pubsub";
2620
+ type_kind: "request" | "response" | "both";
2621
+ topic?: string | undefined;
2379
2622
  }, {
2380
2623
  producer: {
2381
2624
  alias: string;
@@ -2388,6 +2631,7 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
2388
2631
  pair_key: string;
2389
2632
  protocol: "http" | "graphql" | "socket" | "pubsub";
2390
2633
  type_kind: "request" | "response" | "both";
2634
+ topic?: string | undefined;
2391
2635
  }>, "many">;
2392
2636
  workspace_root: z.ZodOptional<z.ZodString>;
2393
2637
  keep_workspace: z.ZodOptional<z.ZodBoolean>;
@@ -2404,6 +2648,7 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
2404
2648
  pair_key: string;
2405
2649
  protocol: "http" | "graphql" | "socket" | "pubsub";
2406
2650
  type_kind: "request" | "response" | "both";
2651
+ topic?: string | undefined;
2407
2652
  }[];
2408
2653
  request_id: string;
2409
2654
  action: "check_v2";
@@ -2426,6 +2671,7 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
2426
2671
  pair_key: string;
2427
2672
  protocol: "http" | "graphql" | "socket" | "pubsub";
2428
2673
  type_kind: "request" | "response" | "both";
2674
+ topic?: string | undefined;
2429
2675
  }[];
2430
2676
  request_id: string;
2431
2677
  action: "check_v2";
@@ -2963,6 +3209,16 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
2963
3209
  arg: number;
2964
3210
  key?: string | undefined;
2965
3211
  }>>;
3212
+ runs: z.ZodOptional<z.ZodObject<{
3213
+ arg: z.ZodNumber;
3214
+ key: z.ZodOptional<z.ZodString>;
3215
+ }, "strict", z.ZodTypeAny, {
3216
+ arg: number;
3217
+ key?: string | undefined;
3218
+ }, {
3219
+ arg: number;
3220
+ key?: string | undefined;
3221
+ }>>;
2966
3222
  key_labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["name", "not_name"]>>>;
2967
3223
  name_scope: z.ZodOptional<z.ZodObject<{
2968
3224
  scope: z.ZodEnum<["global", "service"]>;
@@ -2995,6 +3251,10 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
2995
3251
  arg: number;
2996
3252
  key?: string | undefined;
2997
3253
  } | undefined;
3254
+ runs?: {
3255
+ arg: number;
3256
+ key?: string | undefined;
3257
+ } | undefined;
2998
3258
  key_labels?: Record<string, "name" | "not_name"> | undefined;
2999
3259
  name_scope?: {
3000
3260
  scope: "global" | "service";
@@ -3021,6 +3281,10 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
3021
3281
  arg: number;
3022
3282
  key?: string | undefined;
3023
3283
  } | undefined;
3284
+ runs?: {
3285
+ arg: number;
3286
+ key?: string | undefined;
3287
+ } | undefined;
3024
3288
  key_labels?: Record<string, "name" | "not_name"> | undefined;
3025
3289
  name_scope?: {
3026
3290
  scope: "global" | "service";
@@ -3173,6 +3437,43 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
3173
3437
  arg: number;
3174
3438
  key?: string | undefined;
3175
3439
  }>>;
3440
+ method_default: z.ZodOptional<z.ZodString>;
3441
+ base: z.ZodOptional<z.ZodObject<{
3442
+ arg: z.ZodNumber;
3443
+ key: z.ZodOptional<z.ZodString>;
3444
+ }, "strict", z.ZodTypeAny, {
3445
+ arg: number;
3446
+ key?: string | undefined;
3447
+ }, {
3448
+ arg: number;
3449
+ key?: string | undefined;
3450
+ }>>;
3451
+ runs: z.ZodOptional<z.ZodObject<{
3452
+ arg: z.ZodNumber;
3453
+ key: z.ZodOptional<z.ZodString>;
3454
+ bound: z.ZodOptional<z.ZodLiteral<"maker">>;
3455
+ }, "strict", z.ZodTypeAny, {
3456
+ arg: number;
3457
+ key?: string | undefined;
3458
+ bound?: "maker" | undefined;
3459
+ }, {
3460
+ arg: number;
3461
+ key?: string | undefined;
3462
+ bound?: "maker" | undefined;
3463
+ }>>;
3464
+ yields: z.ZodOptional<z.ZodObject<{
3465
+ param: z.ZodNumber;
3466
+ export: z.ZodString;
3467
+ side: z.ZodString;
3468
+ }, "strict", z.ZodTypeAny, {
3469
+ side: string;
3470
+ export: string;
3471
+ param: number;
3472
+ }, {
3473
+ side: string;
3474
+ export: string;
3475
+ param: number;
3476
+ }>>;
3176
3477
  }, "strict", z.ZodTypeAny, {
3177
3478
  kind: "op";
3178
3479
  member: string | null;
@@ -3193,10 +3494,19 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
3193
3494
  arg: number;
3194
3495
  key?: string | undefined;
3195
3496
  } | undefined;
3497
+ base?: {
3498
+ arg: number;
3499
+ key?: string | undefined;
3500
+ } | undefined;
3196
3501
  handler?: {
3197
3502
  arg: number;
3198
3503
  key?: string | undefined;
3199
3504
  } | undefined;
3505
+ runs?: {
3506
+ arg: number;
3507
+ key?: string | undefined;
3508
+ bound?: "maker" | undefined;
3509
+ } | undefined;
3200
3510
  key_labels?: Record<string, "name" | "not_name"> | undefined;
3201
3511
  name_scope?: {
3202
3512
  scope: "global" | "service";
@@ -3213,6 +3523,12 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
3213
3523
  arg: number;
3214
3524
  key?: string | undefined;
3215
3525
  } | undefined;
3526
+ method_default?: string | undefined;
3527
+ yields?: {
3528
+ side: string;
3529
+ export: string;
3530
+ param: number;
3531
+ } | undefined;
3216
3532
  }, {
3217
3533
  kind: "op";
3218
3534
  member: string | null;
@@ -3233,10 +3549,19 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
3233
3549
  arg: number;
3234
3550
  key?: string | undefined;
3235
3551
  } | undefined;
3552
+ base?: {
3553
+ arg: number;
3554
+ key?: string | undefined;
3555
+ } | undefined;
3236
3556
  handler?: {
3237
3557
  arg: number;
3238
3558
  key?: string | undefined;
3239
3559
  } | undefined;
3560
+ runs?: {
3561
+ arg: number;
3562
+ key?: string | undefined;
3563
+ bound?: "maker" | undefined;
3564
+ } | undefined;
3240
3565
  key_labels?: Record<string, "name" | "not_name"> | undefined;
3241
3566
  name_scope?: {
3242
3567
  scope: "global" | "service";
@@ -3253,6 +3578,12 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
3253
3578
  arg: number;
3254
3579
  key?: string | undefined;
3255
3580
  } | undefined;
3581
+ method_default?: string | undefined;
3582
+ yields?: {
3583
+ side: string;
3584
+ export: string;
3585
+ param: number;
3586
+ } | undefined;
3256
3587
  }>, z.ZodObject<{
3257
3588
  kind: z.ZodLiteral<"reserved">;
3258
3589
  member: z.ZodString;
@@ -3303,6 +3634,10 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
3303
3634
  arg: number;
3304
3635
  key?: string | undefined;
3305
3636
  } | undefined;
3637
+ runs?: {
3638
+ arg: number;
3639
+ key?: string | undefined;
3640
+ } | undefined;
3306
3641
  key_labels?: Record<string, "name" | "not_name"> | undefined;
3307
3642
  name_scope?: {
3308
3643
  scope: "global" | "service";
@@ -3345,10 +3680,19 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
3345
3680
  arg: number;
3346
3681
  key?: string | undefined;
3347
3682
  } | undefined;
3683
+ base?: {
3684
+ arg: number;
3685
+ key?: string | undefined;
3686
+ } | undefined;
3348
3687
  handler?: {
3349
3688
  arg: number;
3350
3689
  key?: string | undefined;
3351
3690
  } | undefined;
3691
+ runs?: {
3692
+ arg: number;
3693
+ key?: string | undefined;
3694
+ bound?: "maker" | undefined;
3695
+ } | undefined;
3352
3696
  key_labels?: Record<string, "name" | "not_name"> | undefined;
3353
3697
  name_scope?: {
3354
3698
  scope: "global" | "service";
@@ -3365,6 +3709,12 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
3365
3709
  arg: number;
3366
3710
  key?: string | undefined;
3367
3711
  } | undefined;
3712
+ method_default?: string | undefined;
3713
+ yields?: {
3714
+ side: string;
3715
+ export: string;
3716
+ param: number;
3717
+ } | undefined;
3368
3718
  } | {
3369
3719
  kind: "reserved";
3370
3720
  name: string;
@@ -3400,6 +3750,10 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
3400
3750
  arg: number;
3401
3751
  key?: string | undefined;
3402
3752
  } | undefined;
3753
+ runs?: {
3754
+ arg: number;
3755
+ key?: string | undefined;
3756
+ } | undefined;
3403
3757
  key_labels?: Record<string, "name" | "not_name"> | undefined;
3404
3758
  name_scope?: {
3405
3759
  scope: "global" | "service";
@@ -3442,10 +3796,19 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
3442
3796
  arg: number;
3443
3797
  key?: string | undefined;
3444
3798
  } | undefined;
3799
+ base?: {
3800
+ arg: number;
3801
+ key?: string | undefined;
3802
+ } | undefined;
3445
3803
  handler?: {
3446
3804
  arg: number;
3447
3805
  key?: string | undefined;
3448
3806
  } | undefined;
3807
+ runs?: {
3808
+ arg: number;
3809
+ key?: string | undefined;
3810
+ bound?: "maker" | undefined;
3811
+ } | undefined;
3449
3812
  key_labels?: Record<string, "name" | "not_name"> | undefined;
3450
3813
  name_scope?: {
3451
3814
  scope: "global" | "service";
@@ -3462,6 +3825,12 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
3462
3825
  arg: number;
3463
3826
  key?: string | undefined;
3464
3827
  } | undefined;
3828
+ method_default?: string | undefined;
3829
+ yields?: {
3830
+ side: string;
3831
+ export: string;
3832
+ param: number;
3833
+ } | undefined;
3465
3834
  } | {
3466
3835
  kind: "reserved";
3467
3836
  name: string;
@@ -3503,6 +3872,10 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
3503
3872
  arg: number;
3504
3873
  key?: string | undefined;
3505
3874
  } | undefined;
3875
+ runs?: {
3876
+ arg: number;
3877
+ key?: string | undefined;
3878
+ } | undefined;
3506
3879
  key_labels?: Record<string, "name" | "not_name"> | undefined;
3507
3880
  name_scope?: {
3508
3881
  scope: "global" | "service";
@@ -3545,10 +3918,19 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
3545
3918
  arg: number;
3546
3919
  key?: string | undefined;
3547
3920
  } | undefined;
3921
+ base?: {
3922
+ arg: number;
3923
+ key?: string | undefined;
3924
+ } | undefined;
3548
3925
  handler?: {
3549
3926
  arg: number;
3550
3927
  key?: string | undefined;
3551
3928
  } | undefined;
3929
+ runs?: {
3930
+ arg: number;
3931
+ key?: string | undefined;
3932
+ bound?: "maker" | undefined;
3933
+ } | undefined;
3552
3934
  key_labels?: Record<string, "name" | "not_name"> | undefined;
3553
3935
  name_scope?: {
3554
3936
  scope: "global" | "service";
@@ -3565,6 +3947,12 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
3565
3947
  arg: number;
3566
3948
  key?: string | undefined;
3567
3949
  } | undefined;
3950
+ method_default?: string | undefined;
3951
+ yields?: {
3952
+ side: string;
3953
+ export: string;
3954
+ param: number;
3955
+ } | undefined;
3568
3956
  } | {
3569
3957
  kind: "reserved";
3570
3958
  name: string;
@@ -3606,6 +3994,10 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
3606
3994
  arg: number;
3607
3995
  key?: string | undefined;
3608
3996
  } | undefined;
3997
+ runs?: {
3998
+ arg: number;
3999
+ key?: string | undefined;
4000
+ } | undefined;
3609
4001
  key_labels?: Record<string, "name" | "not_name"> | undefined;
3610
4002
  name_scope?: {
3611
4003
  scope: "global" | "service";
@@ -3648,10 +4040,19 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
3648
4040
  arg: number;
3649
4041
  key?: string | undefined;
3650
4042
  } | undefined;
4043
+ base?: {
4044
+ arg: number;
4045
+ key?: string | undefined;
4046
+ } | undefined;
3651
4047
  handler?: {
3652
4048
  arg: number;
3653
4049
  key?: string | undefined;
3654
4050
  } | undefined;
4051
+ runs?: {
4052
+ arg: number;
4053
+ key?: string | undefined;
4054
+ bound?: "maker" | undefined;
4055
+ } | undefined;
3655
4056
  key_labels?: Record<string, "name" | "not_name"> | undefined;
3656
4057
  name_scope?: {
3657
4058
  scope: "global" | "service";
@@ -3668,6 +4069,12 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
3668
4069
  arg: number;
3669
4070
  key?: string | undefined;
3670
4071
  } | undefined;
4072
+ method_default?: string | undefined;
4073
+ yields?: {
4074
+ side: string;
4075
+ export: string;
4076
+ param: number;
4077
+ } | undefined;
3671
4078
  } | {
3672
4079
  kind: "reserved";
3673
4080
  name: string;
@@ -3745,6 +4152,28 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
3745
4152
  files: string[];
3746
4153
  request_id: string;
3747
4154
  action: "add_program_files";
4155
+ }>, z.ZodObject<{
4156
+ request_id: z.ZodString;
4157
+ } & {
4158
+ action: z.ZodLiteral<"position_rows">;
4159
+ files: z.ZodArray<z.ZodString, "many">;
4160
+ scan_root: z.ZodString;
4161
+ out_path: z.ZodString;
4162
+ service: z.ZodString;
4163
+ }, "strip", z.ZodTypeAny, {
4164
+ service: string;
4165
+ files: string[];
4166
+ request_id: string;
4167
+ action: "position_rows";
4168
+ scan_root: string;
4169
+ out_path: string;
4170
+ }, {
4171
+ service: string;
4172
+ files: string[];
4173
+ request_id: string;
4174
+ action: "position_rows";
4175
+ scan_root: string;
4176
+ out_path: string;
3748
4177
  }>]>;
3749
4178
  /**
3750
4179
  * Result type for parseRequest
@@ -3777,31 +4206,3 @@ export type ValidatedInferRequest = z.infer<typeof InferRequestSchema>;
3777
4206
  export type ValidatedHealthRequest = z.infer<typeof HealthRequestSchema>;
3778
4207
  export type ValidatedShutdownRequest = z.infer<typeof ShutdownRequestSchema>;
3779
4208
  export type ValidatedSidecarRequest = z.infer<typeof SidecarRequestSchema>;
3780
- /** Every key any member of a union declares. */
3781
- type KeysOfAny<Union> = Union extends unknown ? keyof Union : never;
3782
- /** What `Key` holds, across the members of a union that declare it. */
3783
- type ValueAt<Union, Key extends PropertyKey> = Union extends unknown ? Key extends keyof Union ? Union[Key] : never : never;
3784
- /** The members of `Other` with the tag `One` has, when `One` has one. */
3785
- type SameVariant<One, Other> = One extends {
3786
- action: infer Tag;
3787
- } ? Extract<Other, {
3788
- action: Tag;
3789
- }> : One extends {
3790
- kind: infer Tag;
3791
- } ? Extract<Other, {
3792
- kind: Tag;
3793
- }> : Other;
3794
- /**
3795
- * The keys of `One` that `Other` does not declare, each as the path that
3796
- * reaches it; `never` when there are none.
3797
- */
3798
- type UndeclaredKeys<One, Other, At extends string = ''> = One extends readonly (infer Item)[] ? UndeclaredKeys<Item, Other extends readonly (infer Element)[] ? Element : never, `${At}[]`> : One extends object ? {
3799
- [Key in keyof One & string]-?: Key extends KeysOfAny<SameVariant<One, Other>> ? UndeclaredKeys<One[Key], ValueAt<SameVariant<One, Other>, Key>, `${At}.${Key}`> : `${At}.${Key}`;
3800
- }[keyof One & string] : never;
3801
- /** Compiles for `never` alone. */
3802
- type None<Paths extends never> = Paths;
3803
- /** A key a handler may read that the schema would drop. */
3804
- export type KeysTheSchemaDrops = None<UndeclaredKeys<SidecarRequest, ValidatedSidecarRequest>>;
3805
- /** A key the schema lets through that no handler's type knows. */
3806
- export type KeysNoHandlerKnows = None<UndeclaredKeys<ValidatedSidecarRequest, SidecarRequest>>;
3807
- export {};