@maycombhq/sdk 2.0.0-beta.23 → 2.0.0-beta.24

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.
package/npm/core/api.d.ts CHANGED
@@ -428,8 +428,34 @@ import { z } from "zod";
428
428
  * /api/runs for `map <repo>` runs `verify <repo> --write` after a read that kept every fact
429
429
  * (`applied`), as a read's Done does. A Done's resume runs as a local job (one local step at a
430
430
  * time). Propose for review fails when its branch wasn't pushed. Additive only.
431
+ * 3.10.0 (beta.24, a proxy to a system outside the estate): POST /api/links/corrections, This
432
+ * whole arrow is wrong: one correction of every call on a link, each in its caller repo's
433
+ * corrections file (several lines in one write per repo, every item checked before any is
434
+ * written), with every file, one git command and a verify command per repo. A graph join's
435
+ * `how` may be `base-path` (a call whose host nothing resolves, joined by the one proxy
436
+ * BasePath its whole path starts with, `joined-by-base-path`). A link whose first flag is a
437
+ * guess is never `verified` in its join; a verified link's `how` is its verified call's, and
438
+ * the guesses other calls it merged rest on are its join's `also`. Repo trust (GET /api/trust) gains `secrets`: a config
439
+ * file's line that holds what looks like a live secret, its file and line, never its value.
440
+ * Review of beta.24: POST /api/links/corrections writes all or none (every file held for the
441
+ * batch, each written whole and renamed; a failure puts back what was written, or answers 500
442
+ * naming the repos written, `written`), and skips an item whose newest correction on file says
443
+ * the same (`skipped`), so asked again it writes nothing twice. GET /api/graph/edge-calls gives
444
+ * every call merged into one edge of a view, not only the 20 the view lists. Additive only.
445
+ * Review of beta.24 (an answer's words made into boxes): POST /api/questions/{id}/answer takes
446
+ * `ignore: true` (with an optional `reason`) for a question about where calls go (hosts,
447
+ * targets, topics, the estate's call-outs): the calls aren't real (CI/CD, a test, a template),
448
+ * so the join leaves them; words that name no repo, component or system are refused (400) as
449
+ * such an answer, and a new outside system's name is a short name, never a sentence. GET
450
+ * /api/trust gains `answerBoxes`, the boxes made from an answer's words, and POST
451
+ * /api/trust/answer-boxes/ignore and /rename put one right (preview first). Additive only.
452
+ * A library of the estate's own (ADR 0192): a graph edge may be `depends-on`, a component that
453
+ * builds on coordinates another repo's build publishes (facts v5's `dependency` and `artifact`),
454
+ * drawn in the architecture and repo lenses, never merged into calls or their counts; its join's
455
+ * `how` is `coordinates` and it carries `dependency` (group, name, version, scope), with the
456
+ * dependency's lines as `caller` and the publishing lines as `callee`. Additive only.
431
457
  */
432
- export declare const API_VERSION = "3.9.0";
458
+ export declare const API_VERSION = "3.10.0";
433
459
  export declare const DEFAULT_PORT = 4321;
434
460
  /** RFC 9457 problem details, used for every error. */
435
461
  /**
@@ -695,7 +721,7 @@ export declare const HierNode: z.ZodObject<{
695
721
  why: z.ZodString;
696
722
  }, z.core.$strip>>;
697
723
  }, z.core.$strip>;
698
- export declare const HIER_EDGE_TYPES: readonly ["calls", "publishes", "subscribes", "uses", "reads", "writes", "references", "deployed-to"];
724
+ export declare const HIER_EDGE_TYPES: readonly ["calls", "publishes", "subscribes", "uses", "reads", "writes", "references", "deployed-to", "depends-on"];
699
725
  /**
700
726
  * 2.32.0 (ADR 0135, C1): how a link's call found its callee, from its Interface's flags and via:
701
727
  * a person's `answer`, the component (`named`) or `repo` the call names, a `host` the manifest
@@ -708,7 +734,7 @@ export declare const HIER_EDGE_TYPES: readonly ["calls", "publishes", "subscribe
708
734
  * 0181): or `ai`, a pairing the AI decided (never a person's word; inferred until one corrects or
709
735
  * confirms it).
710
736
  */
711
- export declare const LINK_HOWS: readonly ["person", "answer", "named", "repo", "host", "declared", "topic", "path", "label", "platform-setting", "folder-name", "conflict", "service-name", "shared", "ai", "unknown"];
737
+ export declare const LINK_HOWS: readonly ["person", "answer", "named", "repo", "host", "base-path", "declared", "topic", "path", "label", "platform-setting", "folder-name", "conflict", "service-name", "shared", "ai", "coordinates", "unknown"];
712
738
  export declare const HierJoin: z.ZodObject<{
713
739
  interface: z.ZodString;
714
740
  from: z.ZodString;
@@ -726,13 +752,35 @@ export declare const HierJoin: z.ZodObject<{
726
752
  shared: "shared";
727
753
  topic: "topic";
728
754
  named: "named";
755
+ "base-path": "base-path";
729
756
  "platform-setting": "platform-setting";
730
757
  "folder-name": "folder-name";
731
758
  conflict: "conflict";
732
759
  "service-name": "service-name";
760
+ coordinates: "coordinates";
733
761
  }>;
734
762
  gateway: z.ZodBoolean;
735
763
  verified: z.ZodBoolean;
764
+ also: z.ZodOptional<z.ZodArray<z.ZodEnum<{
765
+ unknown: "unknown";
766
+ ai: "ai";
767
+ repo: "repo";
768
+ path: "path";
769
+ host: "host";
770
+ label: "label";
771
+ answer: "answer";
772
+ person: "person";
773
+ declared: "declared";
774
+ shared: "shared";
775
+ topic: "topic";
776
+ named: "named";
777
+ "base-path": "base-path";
778
+ "platform-setting": "platform-setting";
779
+ "folder-name": "folder-name";
780
+ conflict: "conflict";
781
+ "service-name": "service-name";
782
+ coordinates: "coordinates";
783
+ }>>>;
736
784
  method: z.ZodOptional<z.ZodString>;
737
785
  path: z.ZodOptional<z.ZodString>;
738
786
  caller: z.ZodArray<z.ZodObject<{
@@ -762,6 +810,12 @@ export declare const HierJoin: z.ZodObject<{
762
810
  commit: z.ZodOptional<z.ZodString>;
763
811
  }, z.core.$strip>>;
764
812
  run: z.ZodOptional<z.ZodString>;
813
+ dependency: z.ZodOptional<z.ZodObject<{
814
+ group: z.ZodString;
815
+ name: z.ZodString;
816
+ version: z.ZodOptional<z.ZodString>;
817
+ scope: z.ZodOptional<z.ZodString>;
818
+ }, z.core.$strip>>;
765
819
  }, z.core.$strip>;
766
820
  /** Parallel edges between the same two nodes of the same type are one edge with a count. */
767
821
  export declare const HierEdge: z.ZodObject<{
@@ -777,6 +831,7 @@ export declare const HierEdge: z.ZodObject<{
777
831
  publishes: "publishes";
778
832
  subscribes: "subscribes";
779
833
  "deployed-to": "deployed-to";
834
+ "depends-on": "depends-on";
780
835
  }>;
781
836
  sync: z.ZodOptional<z.ZodEnum<{
782
837
  sync: "sync";
@@ -814,13 +869,35 @@ export declare const HierEdge: z.ZodObject<{
814
869
  shared: "shared";
815
870
  topic: "topic";
816
871
  named: "named";
872
+ "base-path": "base-path";
817
873
  "platform-setting": "platform-setting";
818
874
  "folder-name": "folder-name";
819
875
  conflict: "conflict";
820
876
  "service-name": "service-name";
877
+ coordinates: "coordinates";
821
878
  }>;
822
879
  gateway: z.ZodBoolean;
823
880
  verified: z.ZodBoolean;
881
+ also: z.ZodOptional<z.ZodArray<z.ZodEnum<{
882
+ unknown: "unknown";
883
+ ai: "ai";
884
+ repo: "repo";
885
+ path: "path";
886
+ host: "host";
887
+ label: "label";
888
+ answer: "answer";
889
+ person: "person";
890
+ declared: "declared";
891
+ shared: "shared";
892
+ topic: "topic";
893
+ named: "named";
894
+ "base-path": "base-path";
895
+ "platform-setting": "platform-setting";
896
+ "folder-name": "folder-name";
897
+ conflict: "conflict";
898
+ "service-name": "service-name";
899
+ coordinates: "coordinates";
900
+ }>>>;
824
901
  method: z.ZodOptional<z.ZodString>;
825
902
  path: z.ZodOptional<z.ZodString>;
826
903
  caller: z.ZodArray<z.ZodObject<{
@@ -850,6 +927,12 @@ export declare const HierEdge: z.ZodObject<{
850
927
  commit: z.ZodOptional<z.ZodString>;
851
928
  }, z.core.$strip>>;
852
929
  run: z.ZodOptional<z.ZodString>;
930
+ dependency: z.ZodOptional<z.ZodObject<{
931
+ group: z.ZodString;
932
+ name: z.ZodString;
933
+ version: z.ZodOptional<z.ZodString>;
934
+ scope: z.ZodOptional<z.ZodString>;
935
+ }, z.core.$strip>>;
853
936
  }, z.core.$strip>>>;
854
937
  }, z.core.$strip>;
855
938
  /** GET /api/graph/node/{id}: a node, its children (lazy), and its edges inside and out. */
@@ -1038,6 +1121,7 @@ export declare const GraphNodeView: z.ZodObject<{
1038
1121
  publishes: "publishes";
1039
1122
  subscribes: "subscribes";
1040
1123
  "deployed-to": "deployed-to";
1124
+ "depends-on": "depends-on";
1041
1125
  }>;
1042
1126
  sync: z.ZodOptional<z.ZodEnum<{
1043
1127
  sync: "sync";
@@ -1075,13 +1159,35 @@ export declare const GraphNodeView: z.ZodObject<{
1075
1159
  shared: "shared";
1076
1160
  topic: "topic";
1077
1161
  named: "named";
1162
+ "base-path": "base-path";
1078
1163
  "platform-setting": "platform-setting";
1079
1164
  "folder-name": "folder-name";
1080
1165
  conflict: "conflict";
1081
1166
  "service-name": "service-name";
1167
+ coordinates: "coordinates";
1082
1168
  }>;
1083
1169
  gateway: z.ZodBoolean;
1084
1170
  verified: z.ZodBoolean;
1171
+ also: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1172
+ unknown: "unknown";
1173
+ ai: "ai";
1174
+ repo: "repo";
1175
+ path: "path";
1176
+ host: "host";
1177
+ label: "label";
1178
+ answer: "answer";
1179
+ person: "person";
1180
+ declared: "declared";
1181
+ shared: "shared";
1182
+ topic: "topic";
1183
+ named: "named";
1184
+ "base-path": "base-path";
1185
+ "platform-setting": "platform-setting";
1186
+ "folder-name": "folder-name";
1187
+ conflict: "conflict";
1188
+ "service-name": "service-name";
1189
+ coordinates: "coordinates";
1190
+ }>>>;
1085
1191
  method: z.ZodOptional<z.ZodString>;
1086
1192
  path: z.ZodOptional<z.ZodString>;
1087
1193
  caller: z.ZodArray<z.ZodObject<{
@@ -1111,6 +1217,12 @@ export declare const GraphNodeView: z.ZodObject<{
1111
1217
  commit: z.ZodOptional<z.ZodString>;
1112
1218
  }, z.core.$strip>>;
1113
1219
  run: z.ZodOptional<z.ZodString>;
1220
+ dependency: z.ZodOptional<z.ZodObject<{
1221
+ group: z.ZodString;
1222
+ name: z.ZodString;
1223
+ version: z.ZodOptional<z.ZodString>;
1224
+ scope: z.ZodOptional<z.ZodString>;
1225
+ }, z.core.$strip>>;
1114
1226
  }, z.core.$strip>>>;
1115
1227
  }, z.core.$strip>>;
1116
1228
  reduced: z.ZodBoolean;
@@ -1268,6 +1380,7 @@ export declare const GraphFocusView: z.ZodObject<{
1268
1380
  publishes: "publishes";
1269
1381
  subscribes: "subscribes";
1270
1382
  "deployed-to": "deployed-to";
1383
+ "depends-on": "depends-on";
1271
1384
  }>;
1272
1385
  sync: z.ZodOptional<z.ZodEnum<{
1273
1386
  sync: "sync";
@@ -1305,13 +1418,35 @@ export declare const GraphFocusView: z.ZodObject<{
1305
1418
  shared: "shared";
1306
1419
  topic: "topic";
1307
1420
  named: "named";
1421
+ "base-path": "base-path";
1308
1422
  "platform-setting": "platform-setting";
1309
1423
  "folder-name": "folder-name";
1310
1424
  conflict: "conflict";
1311
1425
  "service-name": "service-name";
1426
+ coordinates: "coordinates";
1312
1427
  }>;
1313
1428
  gateway: z.ZodBoolean;
1314
1429
  verified: z.ZodBoolean;
1430
+ also: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1431
+ unknown: "unknown";
1432
+ ai: "ai";
1433
+ repo: "repo";
1434
+ path: "path";
1435
+ host: "host";
1436
+ label: "label";
1437
+ answer: "answer";
1438
+ person: "person";
1439
+ declared: "declared";
1440
+ shared: "shared";
1441
+ topic: "topic";
1442
+ named: "named";
1443
+ "base-path": "base-path";
1444
+ "platform-setting": "platform-setting";
1445
+ "folder-name": "folder-name";
1446
+ conflict: "conflict";
1447
+ "service-name": "service-name";
1448
+ coordinates: "coordinates";
1449
+ }>>>;
1315
1450
  method: z.ZodOptional<z.ZodString>;
1316
1451
  path: z.ZodOptional<z.ZodString>;
1317
1452
  caller: z.ZodArray<z.ZodObject<{
@@ -1341,9 +1476,105 @@ export declare const GraphFocusView: z.ZodObject<{
1341
1476
  commit: z.ZodOptional<z.ZodString>;
1342
1477
  }, z.core.$strip>>;
1343
1478
  run: z.ZodOptional<z.ZodString>;
1479
+ dependency: z.ZodOptional<z.ZodObject<{
1480
+ group: z.ZodString;
1481
+ name: z.ZodString;
1482
+ version: z.ZodOptional<z.ZodString>;
1483
+ scope: z.ZodOptional<z.ZodString>;
1484
+ }, z.core.$strip>>;
1344
1485
  }, z.core.$strip>>>;
1345
1486
  }, z.core.$strip>>;
1346
1487
  }, z.core.$strip>;
1488
+ /**
1489
+ * 3.10.0 (review of beta.24): GET /api/graph/edge-calls: every call merged into one edge of a
1490
+ * view, not only the first 20 the view lists, so "All calls on this arrow are wrong" means all.
1491
+ */
1492
+ export declare const GraphEdgeCallsView: z.ZodObject<{
1493
+ edge: z.ZodString;
1494
+ count: z.ZodNumber;
1495
+ joins: z.ZodArray<z.ZodObject<{
1496
+ interface: z.ZodString;
1497
+ from: z.ZodString;
1498
+ to: z.ZodString;
1499
+ how: z.ZodEnum<{
1500
+ unknown: "unknown";
1501
+ ai: "ai";
1502
+ repo: "repo";
1503
+ path: "path";
1504
+ host: "host";
1505
+ label: "label";
1506
+ answer: "answer";
1507
+ person: "person";
1508
+ declared: "declared";
1509
+ shared: "shared";
1510
+ topic: "topic";
1511
+ named: "named";
1512
+ "base-path": "base-path";
1513
+ "platform-setting": "platform-setting";
1514
+ "folder-name": "folder-name";
1515
+ conflict: "conflict";
1516
+ "service-name": "service-name";
1517
+ coordinates: "coordinates";
1518
+ }>;
1519
+ gateway: z.ZodBoolean;
1520
+ verified: z.ZodBoolean;
1521
+ also: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1522
+ unknown: "unknown";
1523
+ ai: "ai";
1524
+ repo: "repo";
1525
+ path: "path";
1526
+ host: "host";
1527
+ label: "label";
1528
+ answer: "answer";
1529
+ person: "person";
1530
+ declared: "declared";
1531
+ shared: "shared";
1532
+ topic: "topic";
1533
+ named: "named";
1534
+ "base-path": "base-path";
1535
+ "platform-setting": "platform-setting";
1536
+ "folder-name": "folder-name";
1537
+ conflict: "conflict";
1538
+ "service-name": "service-name";
1539
+ coordinates: "coordinates";
1540
+ }>>>;
1541
+ method: z.ZodOptional<z.ZodString>;
1542
+ path: z.ZodOptional<z.ZodString>;
1543
+ caller: z.ZodArray<z.ZodObject<{
1544
+ source: z.ZodString;
1545
+ repo: z.ZodOptional<z.ZodString>;
1546
+ at: z.ZodString;
1547
+ }, z.core.$strip>>;
1548
+ callee: z.ZodArray<z.ZodObject<{
1549
+ source: z.ZodString;
1550
+ repo: z.ZodOptional<z.ZodString>;
1551
+ at: z.ZodString;
1552
+ }, z.core.$strip>>;
1553
+ hops: z.ZodArray<z.ZodObject<{
1554
+ source: z.ZodString;
1555
+ repo: z.ZodOptional<z.ZodString>;
1556
+ at: z.ZodString;
1557
+ }, z.core.$strip>>;
1558
+ other: z.ZodArray<z.ZodObject<{
1559
+ source: z.ZodString;
1560
+ repo: z.ZodOptional<z.ZodString>;
1561
+ at: z.ZodString;
1562
+ }, z.core.$strip>>;
1563
+ shared: z.ZodOptional<z.ZodObject<{
1564
+ team: z.ZodString;
1565
+ repo: z.ZodString;
1566
+ at: z.ZodString;
1567
+ commit: z.ZodOptional<z.ZodString>;
1568
+ }, z.core.$strip>>;
1569
+ run: z.ZodOptional<z.ZodString>;
1570
+ dependency: z.ZodOptional<z.ZodObject<{
1571
+ group: z.ZodString;
1572
+ name: z.ZodString;
1573
+ version: z.ZodOptional<z.ZodString>;
1574
+ scope: z.ZodOptional<z.ZodString>;
1575
+ }, z.core.$strip>>;
1576
+ }, z.core.$strip>>;
1577
+ }, z.core.$strip>;
1347
1578
  export declare const LayoutPosition: z.ZodObject<{
1348
1579
  x: z.ZodNumber;
1349
1580
  y: z.ZodNumber;
@@ -1380,6 +1611,7 @@ export type HierJoinT = z.infer<typeof HierJoin>;
1380
1611
  export type HierEvidenceT = z.infer<typeof HierEvidence>;
1381
1612
  export type GraphNodeViewT = z.infer<typeof GraphNodeView>;
1382
1613
  export type GraphFocusViewT = z.infer<typeof GraphFocusView>;
1614
+ export type GraphEdgeCallsViewT = z.infer<typeof GraphEdgeCallsView>;
1383
1615
  export declare const Impact: z.ZodObject<{
1384
1616
  root: z.ZodString;
1385
1617
  affected: z.ZodArray<z.ZodObject<{
@@ -2827,6 +3059,11 @@ export declare const TrustRepo: z.ZodObject<{
2827
3059
  }, z.core.$strip>;
2828
3060
  unknownFiles: z.ZodArray<z.ZodString>;
2829
3061
  commit: z.ZodOptional<z.ZodString>;
3062
+ secrets: z.ZodOptional<z.ZodArray<z.ZodObject<{
3063
+ file: z.ZodString;
3064
+ line: z.ZodNumber;
3065
+ key: z.ZodString;
3066
+ }, z.core.$strip>>>;
2830
3067
  }, z.core.$strip>>;
2831
3068
  }, z.core.$strip>;
2832
3069
  checkout: z.ZodObject<{
@@ -2956,6 +3193,22 @@ export declare const ContractCounts: z.ZodObject<{
2956
3193
  unconfirmed: z.ZodNumber;
2957
3194
  unlinked: z.ZodOptional<z.ZodNumber>;
2958
3195
  }, z.core.$strip>;
3196
+ /**
3197
+ * 3.10.0 (beta.24 review): a box on the map made from an answer's words, not a system's name (an
3198
+ * id of five or more words, or with a sentence's words in it, or a long name with spaces): a
3199
+ * system of a profile, the answers to questions about where calls go that name it, or both.
3200
+ */
3201
+ export declare const AnswerBox: z.ZodObject<{
3202
+ id: z.ZodString;
3203
+ name: z.ZodString;
3204
+ profile: z.ZodOptional<z.ZodString>;
3205
+ questions: z.ZodArray<z.ZodObject<{
3206
+ id: z.ZodString;
3207
+ repo: z.ZodString;
3208
+ question: z.ZodString;
3209
+ }, z.core.$strip>>;
3210
+ }, z.core.$strip>;
3211
+ export type AnswerBoxT = z.infer<typeof AnswerBox>;
2959
3212
  export declare const TrustView: z.ZodObject<{
2960
3213
  factsDir: z.ZodString;
2961
3214
  repos: z.ZodArray<z.ZodObject<{
@@ -2981,6 +3234,11 @@ export declare const TrustView: z.ZodObject<{
2981
3234
  }, z.core.$strip>;
2982
3235
  unknownFiles: z.ZodArray<z.ZodString>;
2983
3236
  commit: z.ZodOptional<z.ZodString>;
3237
+ secrets: z.ZodOptional<z.ZodArray<z.ZodObject<{
3238
+ file: z.ZodString;
3239
+ line: z.ZodNumber;
3240
+ key: z.ZodString;
3241
+ }, z.core.$strip>>>;
2984
3242
  }, z.core.$strip>>;
2985
3243
  }, z.core.$strip>;
2986
3244
  checkout: z.ZodObject<{
@@ -3102,6 +3360,16 @@ export declare const TrustView: z.ZodObject<{
3102
3360
  }, z.core.$strip>>;
3103
3361
  }, z.core.$strip>>;
3104
3362
  }, z.core.$strip>>;
3363
+ answerBoxes: z.ZodOptional<z.ZodArray<z.ZodObject<{
3364
+ id: z.ZodString;
3365
+ name: z.ZodString;
3366
+ profile: z.ZodOptional<z.ZodString>;
3367
+ questions: z.ZodArray<z.ZodObject<{
3368
+ id: z.ZodString;
3369
+ repo: z.ZodString;
3370
+ question: z.ZodString;
3371
+ }, z.core.$strip>>;
3372
+ }, z.core.$strip>>>;
3105
3373
  contracts: z.ZodOptional<z.ZodObject<{
3106
3374
  links: z.ZodNumber;
3107
3375
  compared: z.ZodNumber;
@@ -3115,6 +3383,37 @@ export declare const TrustView: z.ZodObject<{
3115
3383
  }, z.core.$strip>>;
3116
3384
  }, z.core.$strip>;
3117
3385
  export type TrustViewT = z.infer<typeof TrustView>;
3386
+ /**
3387
+ * 3.10.0 (beta.24 review): POST /api/trust/answer-boxes/ignore and /rename: put right a box an
3388
+ * answer's words made. Ignore turns each answer that names it into Ignore and takes the system out
3389
+ * of its profile; rename names it (a repo or system Atticus knows, or a new outside system's short
3390
+ * name) and points the answers at it. `preview` writes nothing. Local writes in the metarepo, for
3391
+ * review in the pull request (Propose for review), as the setup forms' are.
3392
+ */
3393
+ export declare const AnswerBoxRequest: z.ZodObject<{
3394
+ id: z.ZodString;
3395
+ name: z.ZodOptional<z.ZodString>;
3396
+ preview: z.ZodOptional<z.ZodLiteral<true>>;
3397
+ }, z.core.$strict>;
3398
+ export declare const AnswerBoxResult: z.ZodObject<{
3399
+ id: z.ZodString;
3400
+ written: z.ZodBoolean;
3401
+ answers: z.ZodArray<z.ZodObject<{
3402
+ id: z.ZodString;
3403
+ repo: z.ZodString;
3404
+ was: z.ZodString;
3405
+ now: z.ZodString;
3406
+ }, z.core.$strip>>;
3407
+ profile: z.ZodOptional<z.ZodObject<{
3408
+ path: z.ZodString;
3409
+ changes: z.ZodArray<z.ZodObject<{
3410
+ was: z.ZodOptional<z.ZodString>;
3411
+ now: z.ZodOptional<z.ZodString>;
3412
+ }, z.core.$strip>>;
3413
+ }, z.core.$strip>>;
3414
+ repos: z.ZodArray<z.ZodString>;
3415
+ }, z.core.$strip>;
3416
+ export type AnswerBoxResultT = z.infer<typeof AnswerBoxResult>;
3118
3417
  /**
3119
3418
  * 2.34.0 (ADR 0141, plan item P5): which repos' clones have moved past their facts' commit, and
3120
3419
  * what reading each again costs, for every repo at once (the per-repo re-read plan of ADR 0124
@@ -3538,6 +3837,7 @@ export declare const FactCiteView: z.ZodObject<{
3538
3837
  config: "config";
3539
3838
  component: "component";
3540
3839
  field: "field";
3840
+ dependency: "dependency";
3541
3841
  term: "term";
3542
3842
  framework: "framework";
3543
3843
  entry: "entry";
@@ -3545,6 +3845,7 @@ export declare const FactCiteView: z.ZodObject<{
3545
3845
  call: "call";
3546
3846
  deploy: "deploy";
3547
3847
  flow: "flow";
3848
+ artifact: "artifact";
3548
3849
  }>;
3549
3850
  file: z.ZodString;
3550
3851
  line: z.ZodNumber;
@@ -3630,6 +3931,7 @@ export declare const RepoFactsView: z.ZodObject<{
3630
3931
  config: "config";
3631
3932
  component: "component";
3632
3933
  field: "field";
3934
+ dependency: "dependency";
3633
3935
  term: "term";
3634
3936
  framework: "framework";
3635
3937
  entry: "entry";
@@ -3637,6 +3939,7 @@ export declare const RepoFactsView: z.ZodObject<{
3637
3939
  call: "call";
3638
3940
  deploy: "deploy";
3639
3941
  flow: "flow";
3942
+ artifact: "artifact";
3640
3943
  }>;
3641
3944
  file: z.ZodString;
3642
3945
  line: z.ZodNumber;
@@ -3716,6 +4019,7 @@ export declare const FactCorrectionResult: z.ZodObject<{
3716
4019
  config: "config";
3717
4020
  component: "component";
3718
4021
  field: "field";
4022
+ dependency: "dependency";
3719
4023
  term: "term";
3720
4024
  framework: "framework";
3721
4025
  entry: "entry";
@@ -3723,6 +4027,7 @@ export declare const FactCorrectionResult: z.ZodObject<{
3723
4027
  call: "call";
3724
4028
  deploy: "deploy";
3725
4029
  flow: "flow";
4030
+ artifact: "artifact";
3726
4031
  }>;
3727
4032
  file: z.ZodString;
3728
4033
  line: z.ZodNumber;
@@ -3770,6 +4075,97 @@ export declare const FactCorrectionResult: z.ZodObject<{
3770
4075
  verify: z.ZodString;
3771
4076
  line: z.ZodOptional<z.ZodString>;
3772
4077
  }, z.core.$strip>;
4078
+ /**
4079
+ * 3.10.0 (beta.24): one correction of every call on an arrow between two boxes ("This whole arrow
4080
+ * is wrong"): each call's fact in its caller's repo, the same action for all, and the person's
4081
+ * why for every one (an item's own `reason` first). Every item is checked before any is written;
4082
+ * then each repo's corrections file takes its lines in one write.
4083
+ */
4084
+ export declare const LinkCorrectionsRequest: z.ZodObject<{
4085
+ items: z.ZodArray<z.ZodObject<{
4086
+ repo: z.ZodString;
4087
+ fact: z.ZodString;
4088
+ action: z.ZodEnum<{
4089
+ wrong: "wrong";
4090
+ edit: "edit";
4091
+ }>;
4092
+ set: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4093
+ reason: z.ZodOptional<z.ZodString>;
4094
+ }, z.core.$strict>>;
4095
+ reason: z.ZodOptional<z.ZodString>;
4096
+ }, z.core.$strict>;
4097
+ export declare const LinkCorrectionsResult: z.ZodObject<{
4098
+ files: z.ZodArray<z.ZodObject<{
4099
+ repo: z.ZodString;
4100
+ file: z.ZodString;
4101
+ lines: z.ZodArray<z.ZodString>;
4102
+ corrections: z.ZodArray<z.ZodObject<{
4103
+ schemaVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
4104
+ fact: z.ZodString;
4105
+ target: z.ZodObject<{
4106
+ kind: z.ZodEnum<{
4107
+ config: "config";
4108
+ component: "component";
4109
+ field: "field";
4110
+ dependency: "dependency";
4111
+ term: "term";
4112
+ framework: "framework";
4113
+ entry: "entry";
4114
+ store: "store";
4115
+ call: "call";
4116
+ deploy: "deploy";
4117
+ flow: "flow";
4118
+ artifact: "artifact";
4119
+ }>;
4120
+ file: z.ZodString;
4121
+ line: z.ZodNumber;
4122
+ value: z.ZodString;
4123
+ }, z.core.$strict>;
4124
+ action: z.ZodEnum<{
4125
+ link: "link";
4126
+ wrong: "wrong";
4127
+ edit: "edit";
4128
+ unlink: "unlink";
4129
+ }>;
4130
+ link: z.ZodOptional<z.ZodObject<{
4131
+ repo: z.ZodOptional<z.ZodString>;
4132
+ system: z.ZodOptional<z.ZodString>;
4133
+ entry: z.ZodOptional<z.ZodString>;
4134
+ method: z.ZodOptional<z.ZodString>;
4135
+ path: z.ZodString;
4136
+ }, z.core.$strict>>;
4137
+ set: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4138
+ line: z.ZodOptional<z.ZodNumber>;
4139
+ reason: z.ZodOptional<z.ZodString>;
4140
+ by: z.ZodString;
4141
+ at: z.ZodISODateTime;
4142
+ ai: z.ZodOptional<z.ZodObject<{
4143
+ runtime: z.ZodEnum<{
4144
+ "hand-off": "hand-off";
4145
+ "copilot-acp": "copilot-acp";
4146
+ }>;
4147
+ run: z.ZodString;
4148
+ bar: z.ZodOptional<z.ZodEnum<{
4149
+ confident: "confident";
4150
+ "agrees-with-shapes": "agrees-with-shapes";
4151
+ "person-rule": "person-rule";
4152
+ }>>;
4153
+ }, z.core.$strict>>;
4154
+ batch: z.ZodOptional<z.ZodString>;
4155
+ rule: z.ZodOptional<z.ZodObject<{
4156
+ from: z.ZodString;
4157
+ match: z.ZodString;
4158
+ }, z.core.$strict>>;
4159
+ match: z.ZodOptional<z.ZodString>;
4160
+ }, z.core.$strict>>;
4161
+ }, z.core.$strip>>;
4162
+ commit: z.ZodString;
4163
+ verify: z.ZodArray<z.ZodString>;
4164
+ skipped: z.ZodOptional<z.ZodArray<z.ZodObject<{
4165
+ repo: z.ZodString;
4166
+ fact: z.ZodString;
4167
+ }, z.core.$strip>>>;
4168
+ }, z.core.$strip>;
3773
4169
  /**
3774
4170
  * 2.42.0 (ADR 0149, C4): after a correction the app writes, the commands a person runs (the app
3775
4171
  * runs none) and what the next `atticus verify <repo> --write` will change, computed in-process
@@ -4759,6 +5155,9 @@ export type OutsideViewT = z.infer<typeof OutsideView>;
4759
5155
  export type FactCiteViewT = z.infer<typeof FactCiteView>;
4760
5156
  export type RepoFactsViewT = z.infer<typeof RepoFactsView>;
4761
5157
  export type FactCorrectionResultT = z.infer<typeof FactCorrectionResult>;
5158
+ export type FactCorrectionRequestT = z.infer<typeof FactCorrectionRequest>;
5159
+ export type LinkCorrectionsRequestT = z.infer<typeof LinkCorrectionsRequest>;
5160
+ export type LinkCorrectionsResultT = z.infer<typeof LinkCorrectionsResult>;
4762
5161
  /**
4763
5162
  * 2.23.0 (ADR 0124 addendum D-app, B10): a stage tab's critic findings (the latest round of the
4764
5163
  * stage's gate, `review/<gate>/<round>/`), each with the options it allows and the comments a
@@ -4843,8 +5242,8 @@ export declare const StageFindingView: z.ZodObject<{
4843
5242
  export: "export";
4844
5243
  manual: "manual";
4845
5244
  }>, z.ZodEnum<{
4846
- catalog: "catalog";
4847
5245
  artifact: "artifact";
5246
+ catalog: "catalog";
4848
5247
  rule: "rule";
4849
5248
  }>]>;
4850
5249
  record: z.ZodOptional<z.ZodString>;
@@ -4991,8 +5390,8 @@ export declare const StageReviewView: z.ZodObject<{
4991
5390
  export: "export";
4992
5391
  manual: "manual";
4993
5392
  }>, z.ZodEnum<{
4994
- catalog: "catalog";
4995
5393
  artifact: "artifact";
5394
+ catalog: "catalog";
4996
5395
  rule: "rule";
4997
5396
  }>]>;
4998
5397
  record: z.ZodOptional<z.ZodString>;
@@ -5425,8 +5824,8 @@ export declare const ThreadItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
5425
5824
  export: "export";
5426
5825
  manual: "manual";
5427
5826
  }>, z.ZodEnum<{
5428
- catalog: "catalog";
5429
5827
  artifact: "artifact";
5828
+ catalog: "catalog";
5430
5829
  rule: "rule";
5431
5830
  }>]>;
5432
5831
  record: z.ZodOptional<z.ZodString>;
@@ -5830,8 +6229,8 @@ export declare const StageThreadView: z.ZodObject<{
5830
6229
  export: "export";
5831
6230
  manual: "manual";
5832
6231
  }>, z.ZodEnum<{
5833
- catalog: "catalog";
5834
6232
  artifact: "artifact";
6233
+ catalog: "catalog";
5835
6234
  rule: "rule";
5836
6235
  }>]>;
5837
6236
  record: z.ZodOptional<z.ZodString>;
@@ -6263,8 +6662,8 @@ export declare const StageThreadPostResult: z.ZodObject<{
6263
6662
  export: "export";
6264
6663
  manual: "manual";
6265
6664
  }>, z.ZodEnum<{
6266
- catalog: "catalog";
6267
6665
  artifact: "artifact";
6666
+ catalog: "catalog";
6268
6667
  rule: "rule";
6269
6668
  }>]>;
6270
6669
  record: z.ZodOptional<z.ZodString>;
@@ -7171,8 +7570,8 @@ export declare const TargetFlowList: z.ZodObject<{
7171
7570
  }, z.core.$strip>;
7172
7571
  export declare const MergedStep: z.ZodObject<{
7173
7572
  mark: z.ZodEnum<{
7174
- added: "added";
7175
7573
  same: "same";
7574
+ added: "added";
7176
7575
  changed: "changed";
7177
7576
  removed: "removed";
7178
7577
  }>;
@@ -7337,8 +7736,8 @@ export declare const TargetFlowView: z.ZodObject<{
7337
7736
  }, z.core.$strict>>;
7338
7737
  steps: z.ZodArray<z.ZodObject<{
7339
7738
  mark: z.ZodEnum<{
7340
- added: "added";
7341
7739
  same: "same";
7740
+ added: "added";
7342
7741
  changed: "changed";
7343
7742
  removed: "removed";
7344
7743
  }>;
@@ -7450,8 +7849,8 @@ export declare const ChangeMap: z.ZodObject<{
7450
7849
  system: "system";
7451
7850
  component: "component";
7452
7851
  table: "table";
7453
- topic: "topic";
7454
7852
  box: "box";
7853
+ topic: "topic";
7455
7854
  }>;
7456
7855
  boundary: z.ZodOptional<z.ZodEnum<{
7457
7856
  product: "product";
@@ -8054,8 +8453,8 @@ export declare const ProposeScope: z.ZodEnum<{
8054
8453
  "org-pack": "org-pack";
8055
8454
  work: "work";
8056
8455
  audit: "audit";
8057
- corrections: "corrections";
8058
8456
  answers: "answers";
8457
+ corrections: "corrections";
8059
8458
  "owner-answers": "owner-answers";
8060
8459
  baseline: "baseline";
8061
8460
  initiatives: "initiatives";
@@ -8067,8 +8466,8 @@ export declare const ProposePlanView: z.ZodObject<{
8067
8466
  "org-pack": "org-pack";
8068
8467
  work: "work";
8069
8468
  audit: "audit";
8070
- corrections: "corrections";
8071
8469
  answers: "answers";
8470
+ corrections: "corrections";
8072
8471
  "owner-answers": "owner-answers";
8073
8472
  baseline: "baseline";
8074
8473
  initiatives: "initiatives";
@@ -8155,8 +8554,8 @@ export declare const ProposeRequest: z.ZodObject<{
8155
8554
  "org-pack": "org-pack";
8156
8555
  work: "work";
8157
8556
  audit: "audit";
8158
- corrections: "corrections";
8159
8557
  answers: "answers";
8558
+ corrections: "corrections";
8160
8559
  "owner-answers": "owner-answers";
8161
8560
  baseline: "baseline";
8162
8561
  initiatives: "initiatives";
@@ -9703,6 +10102,8 @@ export declare const AnswerQuestionRequest: z.ZodObject<{
9703
10102
  vendor: "vendor";
9704
10103
  }>>;
9705
10104
  name: z.ZodOptional<z.ZodString>;
10105
+ ignore: z.ZodOptional<z.ZodLiteral<true>>;
10106
+ reason: z.ZodOptional<z.ZodString>;
9706
10107
  }, z.core.$strict>;
9707
10108
  /** ADR 0078: the answered question, the command to run next and, for a repo type, its skill file. */
9708
10109
  export declare const AnsweredQuestion: z.ZodObject<{
@@ -11067,9 +11468,9 @@ export declare const CandidateSuggestion: z.ZodObject<{
11067
11468
  api: z.ZodString;
11068
11469
  score: z.ZodNumber;
11069
11470
  why: z.ZodEnum<{
11070
- "same-path": "same-path";
11071
11471
  prefix: "prefix";
11072
11472
  parameter: "parameter";
11473
+ "same-path": "same-path";
11073
11474
  "names-alike": "names-alike";
11074
11475
  setting: "setting";
11075
11476
  "operation-words": "operation-words";
@@ -11096,9 +11497,9 @@ export declare const CandidateCallView: z.ZodObject<{
11096
11497
  api: z.ZodString;
11097
11498
  score: z.ZodNumber;
11098
11499
  why: z.ZodEnum<{
11099
- "same-path": "same-path";
11100
11500
  prefix: "prefix";
11101
11501
  parameter: "parameter";
11502
+ "same-path": "same-path";
11102
11503
  "names-alike": "names-alike";
11103
11504
  setting: "setting";
11104
11505
  "operation-words": "operation-words";
@@ -11109,9 +11510,9 @@ export declare const CandidateCallView: z.ZodObject<{
11109
11510
  api: z.ZodString;
11110
11511
  score: z.ZodNumber;
11111
11512
  why: z.ZodEnum<{
11112
- "same-path": "same-path";
11113
11513
  prefix: "prefix";
11114
11514
  parameter: "parameter";
11515
+ "same-path": "same-path";
11115
11516
  "names-alike": "names-alike";
11116
11517
  setting: "setting";
11117
11518
  "operation-words": "operation-words";
@@ -11160,9 +11561,9 @@ export declare const LinkCandidatesView: z.ZodObject<{
11160
11561
  api: z.ZodString;
11161
11562
  score: z.ZodNumber;
11162
11563
  why: z.ZodEnum<{
11163
- "same-path": "same-path";
11164
11564
  prefix: "prefix";
11165
11565
  parameter: "parameter";
11566
+ "same-path": "same-path";
11166
11567
  "names-alike": "names-alike";
11167
11568
  setting: "setting";
11168
11569
  "operation-words": "operation-words";
@@ -11173,9 +11574,9 @@ export declare const LinkCandidatesView: z.ZodObject<{
11173
11574
  api: z.ZodString;
11174
11575
  score: z.ZodNumber;
11175
11576
  why: z.ZodEnum<{
11176
- "same-path": "same-path";
11177
11577
  prefix: "prefix";
11178
11578
  parameter: "parameter";
11579
+ "same-path": "same-path";
11179
11580
  "names-alike": "names-alike";
11180
11581
  setting: "setting";
11181
11582
  "operation-words": "operation-words";
@@ -12044,8 +12445,8 @@ export declare const SketchResult: z.ZodObject<{
12044
12445
  system: "system";
12045
12446
  component: "component";
12046
12447
  table: "table";
12047
- topic: "topic";
12048
12448
  box: "box";
12449
+ topic: "topic";
12049
12450
  }>;
12050
12451
  boundary: z.ZodOptional<z.ZodEnum<{
12051
12452
  product: "product";
@@ -12308,15 +12709,15 @@ export type UpgradeViewT = z.infer<typeof UpgradeView>;
12308
12709
  export declare const CopilotRunKind: z.ZodEnum<{
12309
12710
  repos: "repos";
12310
12711
  stale: "stale";
12311
- gaps: "gaps";
12312
12712
  all: "all";
12713
+ gaps: "gaps";
12313
12714
  }>;
12314
12715
  export declare const StartCopilotRunRequest: z.ZodObject<{
12315
12716
  kind: z.ZodEnum<{
12316
12717
  repos: "repos";
12317
12718
  stale: "stale";
12318
- gaps: "gaps";
12319
12719
  all: "all";
12720
+ gaps: "gaps";
12320
12721
  }>;
12321
12722
  repos: z.ZodOptional<z.ZodArray<z.ZodString>>;
12322
12723
  force: z.ZodOptional<z.ZodBoolean>;
@@ -12346,8 +12747,8 @@ export declare const CopilotRunView: z.ZodObject<{
12346
12747
  kind: z.ZodEnum<{
12347
12748
  repos: "repos";
12348
12749
  stale: "stale";
12349
- gaps: "gaps";
12350
12750
  all: "all";
12751
+ gaps: "gaps";
12351
12752
  }>;
12352
12753
  repos: z.ZodOptional<z.ZodArray<z.ZodString>>;
12353
12754
  force: z.ZodOptional<z.ZodBoolean>;
@@ -12395,8 +12796,8 @@ export declare const CopilotRunCurrent: z.ZodObject<{
12395
12796
  kind: z.ZodEnum<{
12396
12797
  repos: "repos";
12397
12798
  stale: "stale";
12398
- gaps: "gaps";
12399
12799
  all: "all";
12800
+ gaps: "gaps";
12400
12801
  }>;
12401
12802
  repos: z.ZodOptional<z.ZodArray<z.ZodString>>;
12402
12803
  force: z.ZodOptional<z.ZodBoolean>;
@@ -12655,8 +13056,8 @@ export declare const LiveEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
12655
13056
  kind: z.ZodEnum<{
12656
13057
  repos: "repos";
12657
13058
  stale: "stale";
12658
- gaps: "gaps";
12659
13059
  all: "all";
13060
+ gaps: "gaps";
12660
13061
  }>;
12661
13062
  force: z.ZodOptional<z.ZodBoolean>;
12662
13063
  startedAt: z.ZodString;
@@ -12875,8 +13276,8 @@ export declare const FindingView: z.ZodObject<{
12875
13276
  export: "export";
12876
13277
  manual: "manual";
12877
13278
  }>, z.ZodEnum<{
12878
- catalog: "catalog";
12879
13279
  artifact: "artifact";
13280
+ catalog: "catalog";
12880
13281
  rule: "rule";
12881
13282
  }>]>;
12882
13283
  record: z.ZodOptional<z.ZodString>;