@maycombhq/sdk 2.0.0-beta.28.5 → 2.0.0-beta.30

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
@@ -661,8 +661,105 @@ import { z } from "zod";
661
661
  * profile, written once, in a fixed order (sorted) whatever order they come in, in one write;
662
662
  * 409 and nothing written when the profile has one already; 400 with neither or both. A
663
663
  * request with `route` answers as before. Additive only.
664
+ * 3.18.0 (ADR 0201, the quick path): a change says whether it takes the quick path (`quickPath`
665
+ * on a change, beside `fastPath`): its type's only phase before build is plan and it lists no
666
+ * stories, so no stage runs for it and its next step is its four files, then one hand-off.
667
+ * Additive only.
668
+ * 3.19.0 (ADR 0204, the first of it. A field report: "the map
669
+ * shows a connection to the wrong repo; when I try to reconnect it with the actual one it
670
+ * refuses, saying 0 calls to pair"): GET /api/links/candidates says of each call that goes
671
+ * somewhere how that was decided (`how`: read from code, its address, its path alone, a
672
+ * gateway's route, a person's answer with the question, a person's pairing with its reason,
673
+ * or the AI; with who and when), and the box its cited line names when that is another box
674
+ * than the one connected to (`codeNames`). POST /api/links/connect takes a `reason` with each
675
+ * pair, kept on the pairing's line, and answers 409 to a pair without one whose call has
676
+ * `codeNames`: a person overrides what the code says knowingly; the 409 names each such pair
677
+ * in `needsReason` (the call, its line, the box and what is written). POST /api/map/edits
678
+ * takes the same `reason` with each pair of a `pair`, and answers the same 409 (with
679
+ * `problems`, each naming its pairs in `needsReason`). GET /api/boxes/corrections says of a
680
+ * pairing that goes over what its line names the box and the reason (`over`). The preview of
681
+ * a pairing that moves a call no longer says the Apply would refuse. Additive only.
682
+ * Also in 3.19.0 (ADR 0202 points 1 to 6, the app can do what the command line can when something goes
683
+ * wrong): POST /api/support/bundle saves a support bundle on this machine and gives it back
684
+ * (`SupportBundleView`; nothing is sent anywhere). A job says whether a Stop can still take
685
+ * effect (`stoppable`, `stopLands`, on `Job` and on the Console's `ActivityEntry`), and what
686
+ * page action started it (`for`); GET /api/jobs lists the jobs kept, by `action` and `repo`.
687
+ * A local job that ends failed or refused, and a build route's 409, carry `undo` when a build
688
+ * can be taken back (`UndoWay`). GET /api/trust takes `repo` and `rejected`. A task says why
689
+ * it isn't ready (`why`) and the plan's note about it (`note`). Additive only.
690
+ * Also in 3.19.0 (ADR 0202 point 8, the command line's half): GET /api/status says where the metarepo
691
+ * stands as `atticus status --json` does (`StandingView`): this Atticus, the metarepo's stamp,
692
+ * whether this Atticus reads its catalog, what the extension needs when it said so, the one
693
+ * state that holds and the one command to run, in one line. A refusal (`BuildRefusalView`)
694
+ * may carry that line as `standing`, and a `newer-atticus` refusal's `newer[]` entry for
695
+ * build.json may name the Atticus that wrote it (`atticus`, point 7), in which case `command`
696
+ * installs exactly that version. Additive only.
697
+ * Also in 3.19.0 (ADR 0203, ADR 0206): a change's conformance says how many operations it has
698
+ * (`operations`) and how many claims it states (`claims`: each operation's `sets` in each of
699
+ * its repos, each row of a quick change's design.md "In the code"). Each repo's result lists
700
+ * its claims (`ConformClaim`: one of five outcomes, `present`, `present-differently`, `missing`,
701
+ * `not-checkable`, `unconfirmed`, with where it is stated, what was expected and found, its
702
+ * cites, what to do next and the finding it became) and counts them (`counts.claims`). A change
703
+ * with no target flow is drawn and read from its design (`ChangeMap.from` and `rows`;
704
+ * `ChangeImpact.from` and `reaches`, who receives what each row names, never counted as breaks),
705
+ * and an estimate's unit says where it comes from (`from`: `design`, `operations`, `tasks`).
706
+ * Additive only.
707
+ * Also in 3.19.0 (beta.30): GET /api/ask, when the answer is who receives a topic with
708
+ * consumers in several repos, gains `receivers` (every Endpoint of the topic, each record
709
+ * once), `also` (the topic's other Endpoints) and `named` (its name); `query` and `impact` stay
710
+ * the first Endpoint's walk. Additive only.
711
+ * Also in 3.19.0 (ADR 0203 A, the app's half): a stage's thread shows the stage's own blocking
712
+ * findings (the built-in gate `stage-<stage>`): each open one says whether the person using the
713
+ * app may accept it and, if not, why (`StageFindingView.accept`, `StageAcceptRefusal`); an
714
+ * accepted one says who, why and when (`accepted`). POST /api/changes/{id}/stages/{stage}/accept
715
+ * (`StageAcceptRequest`, `StageAcceptResult`) accepts one as `atticus finding … waive` does,
716
+ * in the app's person's name, and refuses what that refuses. Additive only.
717
+ * Also in 3.19.0 (ADR 0203 A, addendum 2026-11-22): the Accept's result says what the app did
718
+ * with the stage next, whoever started it (`StageAcceptResult.goesOn`, `StageAcceptThen`): it
719
+ * goes on once nothing else holds the stage and no step of it runs. POST /api/runs/handoff
720
+ * answers 409 for a stage's step while an AI step runs on the server or the same stage runs.
721
+ * Also in 3.19.0 (ADR 0203 C.3): a finding row's `lens` may be `persona`, and then it carries
722
+ * `persona`, the name of the persona whose naysayer raised it; `GET /api/findings?lens=persona`
723
+ * lists those, and no question's lens does. Additive only.
724
+ * Also in 3.19.0 (ADR 0204, "Connect A to B" on every box): GET /api/connect says what
725
+ * connecting two boxes is (`ConnectView`: `calls`, `connected`, `declared`, `declare` or
726
+ * `needs`, the direction as asked), as a job with `job=1`. POST /api/declared-links takes
727
+ * `kind: link` (a declared arrow into the profile's `links`, C6 version 3; 409 over a real call
728
+ * or the same pair), and its undo takes `kind: link`. POST /api/map/edits takes an `add` of
729
+ * `kind: link`, and its result says what each change wrote (`wrote`), which POST
730
+ * /api/map/edits/undo takes back, then builds once. GET /api/boxes/corrections lists a box's
731
+ * declared arrows (`kind: arrow`). POST /api/connect/find finds a declared arrow in the
732
+ * caller's code (a job, `FindResult`; addendum A), GET /api/connect carries the last find
733
+ * (`find`, `findAgain`), and POST /api/reading-rules/from-find drafts a reading rule from the
734
+ * call it confirmed. POST /api/setup/repos/run adds, syncs, reads and applies new repos as one
735
+ * local job (`ReposRunResult`: its `parts`, `handoff`, `done` of `of`, and `refused`, an
736
+ * Apply's build that waits for a confirm). A find that didn't build says so (`FindResult`'s
737
+ * `notBuilt`, B's when B's read stopped it), and B not read yet where the app can't start the
738
+ * assistant is `readFirst`; Propose says a profile on the target it couldn't read
739
+ * (`ProposePlanView.raisesProfileUnread`). An Interface's join says who declared it
740
+ * (`HierJoin.declaredBy`), and the build's report lists the declared arrows the code now
741
+ * shows (`declaredSuperseded`). Additive only.
742
+ * Also in 3.19.0 (ADR 0124 addendum E-ids, the final review of b30/unresolved-ids): a
743
+ * `not-upgraded` refusal (`BuildRefusalView`) says which it is: `beforeSlots`, a catalog from
744
+ * before the slots (`atticus upgrade --yes` adopts it), and `renames`, the count of loose ends
745
+ * `atticus upgrade` renames and carries your changes to (`atticus upgrade --dry-run` shows what
746
+ * it would write); a `not-upgraded` refusal with neither is one from before the slots.
747
+ * POST /api/upgrade (`UpgradeRequest`) confirms a step's build that waits for its removals over
748
+ * the limits (`allowRemovals`), its hand edits (`discardEdits`) or both, with the `plan` of the
749
+ * list, all three from the refused run's job result (`confirm`). Additive only.
750
+ * Also in 3.19.0 (ADR 0201 addendum 2026-11-22, the persona check of beta.30): the map tool
751
+ * `conflicts` runs `atticus change conflicts --names --json`, which answers `{ pairs, touches }`:
752
+ * `pairs` as `--json` alone gives them (unchanged without `--names`), and with an id `touches`,
753
+ * each open change whose tasks.md or target flows name it (`{ change, touches, where: [{ file,
754
+ * line, heading?, task?, tasks?, text }] }`). The tool's answer was the pairs' array. Additive
755
+ * for the command line and the local API; the tool's answer changes shape, by the review.
756
+ * Also in 3.19.0 (ADR 0206 addendum, the same check): a change's impact read from design.md
757
+ * lists In the code's operation rows (`ChangeImpact.operations`, each its `line` and `has`),
758
+ * which name nothing the map can follow, and `reaches` may hold `has: "deployment"` entries:
759
+ * `name` and `ids` the components the repo deploys, `receivers` the components the map shows
760
+ * calling them, or sending them events (`events: true`). Additive only.
664
761
  */
665
- export declare const API_VERSION = "3.17.0";
762
+ export declare const API_VERSION = "3.19.0";
666
763
  export declare const DEFAULT_PORT = 4321;
667
764
  /** RFC 9457 problem details, used for every error. */
668
765
  /**
@@ -674,6 +771,21 @@ export declare const NextStep: z.ZodObject<{
674
771
  repos: z.ZodArray<z.ZodString>;
675
772
  }, z.core.$strip>;
676
773
  export type NextStepT = z.infer<typeof NextStep>;
774
+ /**
775
+ * 3.19.0 (ADR 0202 point 3): the build an error's Undo would take back, with what its confirm
776
+ * sends to POST /api/build/undo (`n`, `files`, `plan`: GET /api/build/undo?n=1's) and that undo
777
+ * copy's `command` and `at`. `ofThis`: the undo copy was taken by the job that failed (else it is
778
+ * an earlier build's: after a refusal nothing was written).
779
+ */
780
+ export declare const UndoWay: z.ZodObject<{
781
+ n: z.ZodNumber;
782
+ files: z.ZodNumber;
783
+ plan: z.ZodString;
784
+ command: z.ZodString;
785
+ at: z.ZodString;
786
+ ofThis: z.ZodBoolean;
787
+ }, z.core.$strip>;
788
+ export type UndoWayT = z.infer<typeof UndoWay>;
677
789
  export declare const Problem: z.ZodObject<{
678
790
  type: z.ZodString;
679
791
  title: z.ZodString;
@@ -700,6 +812,14 @@ export declare const Problem: z.ZodObject<{
700
812
  edit: z.ZodNumber;
701
813
  message: z.ZodString;
702
814
  }, z.core.$strip>>>;
815
+ undo: z.ZodOptional<z.ZodObject<{
816
+ n: z.ZodNumber;
817
+ files: z.ZodNumber;
818
+ plan: z.ZodString;
819
+ command: z.ZodString;
820
+ at: z.ZodString;
821
+ ofThis: z.ZodBoolean;
822
+ }, z.core.$strip>>;
703
823
  }, z.core.$strip>;
704
824
  export declare const CatalogRecord: z.ZodUnion<[z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, ...z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>[]]>;
705
825
  export declare const RecordPage: z.ZodObject<{
@@ -952,6 +1072,7 @@ export declare const HIER_EDGE_TYPES: readonly ["calls", "publishes", "subscribe
952
1072
  */
953
1073
  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"];
954
1074
  export declare const HierJoin: z.ZodObject<{
1075
+ declaredBy: z.ZodOptional<z.ZodString>;
955
1076
  interface: z.ZodString;
956
1077
  from: z.ZodString;
957
1078
  to: z.ZodString;
@@ -1079,6 +1200,7 @@ export declare const HierEdge: z.ZodObject<{
1079
1200
  at: z.ZodString;
1080
1201
  }, z.core.$strip>>;
1081
1202
  joins: z.ZodOptional<z.ZodArray<z.ZodObject<{
1203
+ declaredBy: z.ZodOptional<z.ZodString>;
1082
1204
  interface: z.ZodString;
1083
1205
  from: z.ZodString;
1084
1206
  to: z.ZodString;
@@ -1379,6 +1501,7 @@ export declare const GraphNodeView: z.ZodObject<{
1379
1501
  at: z.ZodString;
1380
1502
  }, z.core.$strip>>;
1381
1503
  joins: z.ZodOptional<z.ZodArray<z.ZodObject<{
1504
+ declaredBy: z.ZodOptional<z.ZodString>;
1382
1505
  interface: z.ZodString;
1383
1506
  from: z.ZodString;
1384
1507
  to: z.ZodString;
@@ -1648,6 +1771,7 @@ export declare const GraphFocusView: z.ZodObject<{
1648
1771
  at: z.ZodString;
1649
1772
  }, z.core.$strip>>;
1650
1773
  joins: z.ZodOptional<z.ZodArray<z.ZodObject<{
1774
+ declaredBy: z.ZodOptional<z.ZodString>;
1651
1775
  interface: z.ZodString;
1652
1776
  from: z.ZodString;
1653
1777
  to: z.ZodString;
@@ -1749,6 +1873,7 @@ export declare const GraphEdgeCallsView: z.ZodObject<{
1749
1873
  edge: z.ZodString;
1750
1874
  count: z.ZodNumber;
1751
1875
  joins: z.ZodArray<z.ZodObject<{
1876
+ declaredBy: z.ZodOptional<z.ZodString>;
1752
1877
  interface: z.ZodString;
1753
1878
  from: z.ZodString;
1754
1879
  to: z.ZodString;
@@ -1949,6 +2074,33 @@ export declare const JobState: z.ZodEnum<{
1949
2074
  cancelled: "cancelled";
1950
2075
  queued: "queued";
1951
2076
  }>;
2077
+ /**
2078
+ * 3.19.0 (ADR 0202 point 5): the page action a job was started by, so its panel finds it again
2079
+ * after a reload. `map-edits` is Edit the map's Apply my changes.
2080
+ */
2081
+ export declare const JOB_ACTIONS: readonly ["apply", "apply-all", "build", "undo", "upgrade", "propose", "bring-in", "sync", "scan", "map-edits", "repos-run"];
2082
+ export declare const JobFor: z.ZodObject<{
2083
+ action: z.ZodEnum<{
2084
+ sync: "sync";
2085
+ apply: "apply";
2086
+ build: "build";
2087
+ propose: "propose";
2088
+ scan: "scan";
2089
+ undo: "undo";
2090
+ "apply-all": "apply-all";
2091
+ upgrade: "upgrade";
2092
+ "bring-in": "bring-in";
2093
+ "map-edits": "map-edits";
2094
+ "repos-run": "repos-run";
2095
+ }>;
2096
+ repo: z.ZodOptional<z.ZodString>;
2097
+ }, z.core.$strip>;
2098
+ export type JobForT = z.infer<typeof JobFor>;
2099
+ /** 3.19.0 (ADR 0202 point 2): where a Stop asked now would land. */
2100
+ export declare const StopLands: z.ZodEnum<{
2101
+ now: "now";
2102
+ "after-write": "after-write";
2103
+ }>;
1952
2104
  export declare const Job: z.ZodObject<{
1953
2105
  id: z.ZodString;
1954
2106
  kind: z.ZodEnum<{
@@ -1979,10 +2131,104 @@ export declare const Job: z.ZodObject<{
1979
2131
  errors: z.ZodArray<z.ZodString>;
1980
2132
  result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1981
2133
  stopping: z.ZodOptional<z.ZodBoolean>;
2134
+ stoppable: z.ZodOptional<z.ZodBoolean>;
2135
+ stopLands: z.ZodOptional<z.ZodEnum<{
2136
+ now: "now";
2137
+ "after-write": "after-write";
2138
+ }>>;
2139
+ for: z.ZodOptional<z.ZodObject<{
2140
+ action: z.ZodEnum<{
2141
+ sync: "sync";
2142
+ apply: "apply";
2143
+ build: "build";
2144
+ propose: "propose";
2145
+ scan: "scan";
2146
+ undo: "undo";
2147
+ "apply-all": "apply-all";
2148
+ upgrade: "upgrade";
2149
+ "bring-in": "bring-in";
2150
+ "map-edits": "map-edits";
2151
+ "repos-run": "repos-run";
2152
+ }>;
2153
+ repo: z.ZodOptional<z.ZodString>;
2154
+ }, z.core.$strip>>;
1982
2155
  }, z.core.$strip>;
2156
+ export type JobT = z.infer<typeof Job>;
1983
2157
  export declare const JobAccepted: z.ZodObject<{
1984
2158
  jobId: z.ZodString;
1985
2159
  }, z.core.$strip>;
2160
+ /**
2161
+ * 3.19.0: GET /api/jobs: the running jobs that match first, then the finished ones this server
2162
+ * still keeps (100 in all, lost when `atticus ui` stops), each newest first.
2163
+ */
2164
+ export declare const JobList: z.ZodObject<{
2165
+ jobs: z.ZodArray<z.ZodObject<{
2166
+ id: z.ZodString;
2167
+ kind: z.ZodEnum<{
2168
+ local: "local";
2169
+ sync: "sync";
2170
+ index: "index";
2171
+ step: "step";
2172
+ scan: "scan";
2173
+ reconcile: "reconcile";
2174
+ intake: "intake";
2175
+ work: "work";
2176
+ }>;
2177
+ state: z.ZodEnum<{
2178
+ done: "done";
2179
+ failed: "failed";
2180
+ running: "running";
2181
+ cancelled: "cancelled";
2182
+ queued: "queued";
2183
+ }>;
2184
+ progress: z.ZodObject<{
2185
+ done: z.ZodNumber;
2186
+ total: z.ZodNumber;
2187
+ message: z.ZodString;
2188
+ }, z.core.$strip>;
2189
+ title: z.ZodOptional<z.ZodString>;
2190
+ startedAt: z.ZodString;
2191
+ finishedAt: z.ZodOptional<z.ZodString>;
2192
+ errors: z.ZodArray<z.ZodString>;
2193
+ result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2194
+ stopping: z.ZodOptional<z.ZodBoolean>;
2195
+ stoppable: z.ZodOptional<z.ZodBoolean>;
2196
+ stopLands: z.ZodOptional<z.ZodEnum<{
2197
+ now: "now";
2198
+ "after-write": "after-write";
2199
+ }>>;
2200
+ for: z.ZodOptional<z.ZodObject<{
2201
+ action: z.ZodEnum<{
2202
+ sync: "sync";
2203
+ apply: "apply";
2204
+ build: "build";
2205
+ propose: "propose";
2206
+ scan: "scan";
2207
+ undo: "undo";
2208
+ "apply-all": "apply-all";
2209
+ upgrade: "upgrade";
2210
+ "bring-in": "bring-in";
2211
+ "map-edits": "map-edits";
2212
+ "repos-run": "repos-run";
2213
+ }>;
2214
+ repo: z.ZodOptional<z.ZodString>;
2215
+ }, z.core.$strip>>;
2216
+ }, z.core.$strip>>;
2217
+ }, z.core.$strip>;
2218
+ export type JobListT = z.infer<typeof JobList>;
2219
+ /**
2220
+ * 3.19.0 (ADR 0202 point 1): POST /api/support/bundle's answer. `file` is the zip's path from the
2221
+ * metarepo's root, `files` the names in it, `zip` its bytes in base64 (left out above 8 MB).
2222
+ * Nothing is sent anywhere: a person reads every file before it leaves.
2223
+ */
2224
+ export declare const SupportBundleView: z.ZodObject<{
2225
+ file: z.ZodString;
2226
+ name: z.ZodString;
2227
+ bytes: z.ZodNumber;
2228
+ files: z.ZodArray<z.ZodString>;
2229
+ zip: z.ZodOptional<z.ZodString>;
2230
+ }, z.core.$strip>;
2231
+ export type SupportBundleViewT = z.infer<typeof SupportBundleView>;
1986
2232
  export declare const ArtifactStatus: z.ZodObject<{
1987
2233
  artifact: z.ZodEnum<{
1988
2234
  interfaces: "interfaces";
@@ -2048,6 +2294,7 @@ export declare const ChangeSummary: z.ZodObject<{
2048
2294
  }, z.core.$strip>;
2049
2295
  updatedAt: z.ZodString;
2050
2296
  fastPath: z.ZodOptional<z.ZodBoolean>;
2297
+ quickPath: z.ZodOptional<z.ZodBoolean>;
2051
2298
  yourRoles: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2052
2299
  product: "product";
2053
2300
  architecture: "architecture";
@@ -2081,6 +2328,7 @@ export declare const ChangeDetail: z.ZodObject<{
2081
2328
  }, z.core.$strip>;
2082
2329
  updatedAt: z.ZodString;
2083
2330
  fastPath: z.ZodOptional<z.ZodBoolean>;
2331
+ quickPath: z.ZodOptional<z.ZodBoolean>;
2084
2332
  yourRoles: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2085
2333
  product: "product";
2086
2334
  architecture: "architecture";
@@ -2258,6 +2506,8 @@ export declare const Task: z.ZodObject<{
2258
2506
  reason: z.ZodString;
2259
2507
  }, z.core.$strip>>;
2260
2508
  repoBuilds: z.ZodOptional<z.ZodBoolean>;
2509
+ why: z.ZodOptional<z.ZodString>;
2510
+ note: z.ZodOptional<z.ZodString>;
2261
2511
  }, z.core.$strip>;
2262
2512
  export type TaskT = z.infer<typeof Task>;
2263
2513
  export declare const RunView: z.ZodObject<{
@@ -4130,13 +4380,17 @@ export declare const BuildRefusalView: z.ZodObject<{
4130
4380
  why: z.ZodString;
4131
4381
  }, z.core.$strip>>>;
4132
4382
  unreadableManifest: z.ZodOptional<z.ZodLiteral<true>>;
4383
+ beforeSlots: z.ZodOptional<z.ZodLiteral<true>>;
4384
+ renames: z.ZodOptional<z.ZodNumber>;
4133
4385
  newer: z.ZodOptional<z.ZodArray<z.ZodObject<{
4134
4386
  path: z.ZodString;
4135
4387
  name: z.ZodString;
4136
4388
  field: z.ZodString;
4137
4389
  version: z.ZodNumber;
4138
4390
  reads: z.ZodNumber;
4391
+ atticus: z.ZodOptional<z.ZodString>;
4139
4392
  }, z.core.$strip>>>;
4393
+ standing: z.ZodOptional<z.ZodString>;
4140
4394
  command: z.ZodString;
4141
4395
  plan: z.ZodOptional<z.ZodString>;
4142
4396
  }, z.core.$strip>;
@@ -4250,13 +4504,17 @@ export declare const BuildReportView: z.ZodObject<{
4250
4504
  why: z.ZodString;
4251
4505
  }, z.core.$strip>>>;
4252
4506
  unreadableManifest: z.ZodOptional<z.ZodLiteral<true>>;
4507
+ beforeSlots: z.ZodOptional<z.ZodLiteral<true>>;
4508
+ renames: z.ZodOptional<z.ZodNumber>;
4253
4509
  newer: z.ZodOptional<z.ZodArray<z.ZodObject<{
4254
4510
  path: z.ZodString;
4255
4511
  name: z.ZodString;
4256
4512
  field: z.ZodString;
4257
4513
  version: z.ZodNumber;
4258
4514
  reads: z.ZodNumber;
4515
+ atticus: z.ZodOptional<z.ZodString>;
4259
4516
  }, z.core.$strip>>>;
4517
+ standing: z.ZodOptional<z.ZodString>;
4260
4518
  command: z.ZodString;
4261
4519
  plan: z.ZodOptional<z.ZodString>;
4262
4520
  }, z.core.$strip>>;
@@ -4320,6 +4578,13 @@ export declare const BuildReportView: z.ZodObject<{
4320
4578
  deleted: "deleted";
4321
4579
  }>;
4322
4580
  }, z.core.$strip>>>;
4581
+ declaredSuperseded: z.ZodOptional<z.ZodArray<z.ZodObject<{
4582
+ from: z.ZodString;
4583
+ to: z.ZodString;
4584
+ by: z.ZodString;
4585
+ at: z.ZodString;
4586
+ calls: z.ZodNumber;
4587
+ }, z.core.$strip>>>;
4323
4588
  }, z.core.$strip>;
4324
4589
  export type BuildReportViewT = z.infer<typeof BuildReportView>;
4325
4590
  /** 3.12.0: each repo's source in the build (point 5). */
@@ -4473,13 +4738,17 @@ export declare const CatalogBuildView: z.ZodObject<{
4473
4738
  why: z.ZodString;
4474
4739
  }, z.core.$strip>>>;
4475
4740
  unreadableManifest: z.ZodOptional<z.ZodLiteral<true>>;
4741
+ beforeSlots: z.ZodOptional<z.ZodLiteral<true>>;
4742
+ renames: z.ZodOptional<z.ZodNumber>;
4476
4743
  newer: z.ZodOptional<z.ZodArray<z.ZodObject<{
4477
4744
  path: z.ZodString;
4478
4745
  name: z.ZodString;
4479
4746
  field: z.ZodString;
4480
4747
  version: z.ZodNumber;
4481
4748
  reads: z.ZodNumber;
4749
+ atticus: z.ZodOptional<z.ZodString>;
4482
4750
  }, z.core.$strip>>>;
4751
+ standing: z.ZodOptional<z.ZodString>;
4483
4752
  command: z.ZodString;
4484
4753
  plan: z.ZodOptional<z.ZodString>;
4485
4754
  }, z.core.$strip>>;
@@ -4581,13 +4850,17 @@ export declare const CatalogBuildView: z.ZodObject<{
4581
4850
  why: z.ZodString;
4582
4851
  }, z.core.$strip>>>;
4583
4852
  unreadableManifest: z.ZodOptional<z.ZodLiteral<true>>;
4853
+ beforeSlots: z.ZodOptional<z.ZodLiteral<true>>;
4854
+ renames: z.ZodOptional<z.ZodNumber>;
4584
4855
  newer: z.ZodOptional<z.ZodArray<z.ZodObject<{
4585
4856
  path: z.ZodString;
4586
4857
  name: z.ZodString;
4587
4858
  field: z.ZodString;
4588
4859
  version: z.ZodNumber;
4589
4860
  reads: z.ZodNumber;
4861
+ atticus: z.ZodOptional<z.ZodString>;
4590
4862
  }, z.core.$strip>>>;
4863
+ standing: z.ZodOptional<z.ZodString>;
4591
4864
  command: z.ZodString;
4592
4865
  plan: z.ZodOptional<z.ZodString>;
4593
4866
  }, z.core.$strip>>;
@@ -4651,6 +4924,13 @@ export declare const CatalogBuildView: z.ZodObject<{
4651
4924
  deleted: "deleted";
4652
4925
  }>;
4653
4926
  }, z.core.$strip>>>;
4927
+ declaredSuperseded: z.ZodOptional<z.ZodArray<z.ZodObject<{
4928
+ from: z.ZodString;
4929
+ to: z.ZodString;
4930
+ by: z.ZodString;
4931
+ at: z.ZodString;
4932
+ calls: z.ZodNumber;
4933
+ }, z.core.$strip>>>;
4654
4934
  }, z.core.$strip>>;
4655
4935
  upgrade: z.ZodOptional<z.ZodLiteral<true>>;
4656
4936
  orphaned: z.ZodArray<z.ZodObject<{
@@ -4665,6 +4945,7 @@ export declare const CatalogBuildView: z.ZodObject<{
4665
4945
  file: z.ZodString;
4666
4946
  message: z.ZodString;
4667
4947
  }, z.core.$strip>>;
4948
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
4668
4949
  }, z.core.$strip>;
4669
4950
  export type CatalogBuildViewT = z.infer<typeof CatalogBuildView>;
4670
4951
  /** 3.12.0: confirm a refused build with the counts it listed (point 4). */
@@ -4791,6 +5072,25 @@ export declare const MapEditAdd: z.ZodDiscriminatedUnion<[z.ZodObject<{
4791
5072
  kind: z.ZodLiteral<"call">;
4792
5073
  system: z.ZodString;
4793
5074
  route: z.ZodString;
5075
+ }, z.core.$strict>, z.ZodObject<{
5076
+ kind: z.ZodLiteral<"link">;
5077
+ from: z.ZodObject<{
5078
+ repo: z.ZodOptional<z.ZodString>;
5079
+ system: z.ZodOptional<z.ZodString>;
5080
+ }, z.core.$strict>;
5081
+ to: z.ZodObject<{
5082
+ repo: z.ZodOptional<z.ZodString>;
5083
+ system: z.ZodOptional<z.ZodString>;
5084
+ }, z.core.$strict>;
5085
+ why: z.ZodString;
5086
+ planned: z.ZodOptional<z.ZodBoolean>;
5087
+ addSystem: z.ZodOptional<z.ZodObject<{
5088
+ name: z.ZodString;
5089
+ boundary: z.ZodEnum<{
5090
+ internal: "internal";
5091
+ vendor: "vendor";
5092
+ }>;
5093
+ }, z.core.$strict>>;
4794
5094
  }, z.core.$strict>], "kind">;
4795
5095
  export type MapEditAddT = z.infer<typeof MapEditAdd>;
4796
5096
  /**
@@ -4807,9 +5107,22 @@ export declare const MapEditPair: z.ZodObject<{
4807
5107
  pairs: z.ZodArray<z.ZodObject<{
4808
5108
  call: z.ZodString;
4809
5109
  api: z.ZodString;
5110
+ reason: z.ZodOptional<z.ZodString>;
4810
5111
  }, z.core.$strip>>;
4811
5112
  }, z.core.$strict>;
4812
5113
  export type MapEditPairT = z.infer<typeof MapEditPair>;
5114
+ /**
5115
+ * 3.19 (ADR 0204): a pair refused (409) until the person says why: the call's cited line names
5116
+ * another box. Carried as `needsReason` on the problem of POST /api/links/connect and POST
5117
+ * /api/map/edits, one item per pair that lacks a reason.
5118
+ */
5119
+ export declare const PairNeedsReason: z.ZodObject<{
5120
+ call: z.ZodString;
5121
+ at: z.ZodString;
5122
+ box: z.ZodString;
5123
+ text: z.ZodString;
5124
+ }, z.core.$strip>;
5125
+ export type PairNeedsReasonT = z.infer<typeof PairNeedsReason>;
4813
5126
  /**
4814
5127
  * 3.13.0: one change staged on the canvas. `delete` is Delete this link's (every Interface behind
4815
5128
  * the link and its two ends); an add is Declare a link…'s (`add`, from a system's box) or Connect
@@ -4845,6 +5158,25 @@ export declare const MapEdit: z.ZodUnion<readonly [z.ZodObject<{
4845
5158
  kind: z.ZodLiteral<"call">;
4846
5159
  system: z.ZodString;
4847
5160
  route: z.ZodString;
5161
+ }, z.core.$strict>, z.ZodObject<{
5162
+ kind: z.ZodLiteral<"link">;
5163
+ from: z.ZodObject<{
5164
+ repo: z.ZodOptional<z.ZodString>;
5165
+ system: z.ZodOptional<z.ZodString>;
5166
+ }, z.core.$strict>;
5167
+ to: z.ZodObject<{
5168
+ repo: z.ZodOptional<z.ZodString>;
5169
+ system: z.ZodOptional<z.ZodString>;
5170
+ }, z.core.$strict>;
5171
+ why: z.ZodString;
5172
+ planned: z.ZodOptional<z.ZodBoolean>;
5173
+ addSystem: z.ZodOptional<z.ZodObject<{
5174
+ name: z.ZodString;
5175
+ boundary: z.ZodEnum<{
5176
+ internal: "internal";
5177
+ vendor: "vendor";
5178
+ }>;
5179
+ }, z.core.$strict>>;
4848
5180
  }, z.core.$strict>], "kind">;
4849
5181
  }, z.core.$strict>, z.ZodObject<{
4850
5182
  kind: z.ZodLiteral<"add">;
@@ -4857,6 +5189,7 @@ export declare const MapEdit: z.ZodUnion<readonly [z.ZodObject<{
4857
5189
  pairs: z.ZodArray<z.ZodObject<{
4858
5190
  call: z.ZodString;
4859
5191
  api: z.ZodString;
5192
+ reason: z.ZodOptional<z.ZodString>;
4860
5193
  }, z.core.$strip>>;
4861
5194
  }, z.core.$strict>;
4862
5195
  }, z.core.$strict>, z.ZodObject<{
@@ -4878,6 +5211,25 @@ export declare const MapEdit: z.ZodUnion<readonly [z.ZodObject<{
4878
5211
  kind: z.ZodLiteral<"call">;
4879
5212
  system: z.ZodString;
4880
5213
  route: z.ZodString;
5214
+ }, z.core.$strict>, z.ZodObject<{
5215
+ kind: z.ZodLiteral<"link">;
5216
+ from: z.ZodObject<{
5217
+ repo: z.ZodOptional<z.ZodString>;
5218
+ system: z.ZodOptional<z.ZodString>;
5219
+ }, z.core.$strict>;
5220
+ to: z.ZodObject<{
5221
+ repo: z.ZodOptional<z.ZodString>;
5222
+ system: z.ZodOptional<z.ZodString>;
5223
+ }, z.core.$strict>;
5224
+ why: z.ZodString;
5225
+ planned: z.ZodOptional<z.ZodBoolean>;
5226
+ addSystem: z.ZodOptional<z.ZodObject<{
5227
+ name: z.ZodString;
5228
+ boundary: z.ZodEnum<{
5229
+ internal: "internal";
5230
+ vendor: "vendor";
5231
+ }>;
5232
+ }, z.core.$strict>>;
4881
5233
  }, z.core.$strict>], "kind">;
4882
5234
  }, z.core.$strict>, z.ZodObject<{
4883
5235
  kind: z.ZodLiteral<"redirect">;
@@ -4895,6 +5247,7 @@ export declare const MapEdit: z.ZodUnion<readonly [z.ZodObject<{
4895
5247
  pairs: z.ZodArray<z.ZodObject<{
4896
5248
  call: z.ZodString;
4897
5249
  api: z.ZodString;
5250
+ reason: z.ZodOptional<z.ZodString>;
4898
5251
  }, z.core.$strip>>;
4899
5252
  }, z.core.$strict>;
4900
5253
  }, z.core.$strict>]>;
@@ -4922,6 +5275,25 @@ export declare const MapEditsRequest: z.ZodObject<{
4922
5275
  kind: z.ZodLiteral<"call">;
4923
5276
  system: z.ZodString;
4924
5277
  route: z.ZodString;
5278
+ }, z.core.$strict>, z.ZodObject<{
5279
+ kind: z.ZodLiteral<"link">;
5280
+ from: z.ZodObject<{
5281
+ repo: z.ZodOptional<z.ZodString>;
5282
+ system: z.ZodOptional<z.ZodString>;
5283
+ }, z.core.$strict>;
5284
+ to: z.ZodObject<{
5285
+ repo: z.ZodOptional<z.ZodString>;
5286
+ system: z.ZodOptional<z.ZodString>;
5287
+ }, z.core.$strict>;
5288
+ why: z.ZodString;
5289
+ planned: z.ZodOptional<z.ZodBoolean>;
5290
+ addSystem: z.ZodOptional<z.ZodObject<{
5291
+ name: z.ZodString;
5292
+ boundary: z.ZodEnum<{
5293
+ internal: "internal";
5294
+ vendor: "vendor";
5295
+ }>;
5296
+ }, z.core.$strict>>;
4925
5297
  }, z.core.$strict>], "kind">;
4926
5298
  }, z.core.$strict>, z.ZodObject<{
4927
5299
  kind: z.ZodLiteral<"add">;
@@ -4934,6 +5306,7 @@ export declare const MapEditsRequest: z.ZodObject<{
4934
5306
  pairs: z.ZodArray<z.ZodObject<{
4935
5307
  call: z.ZodString;
4936
5308
  api: z.ZodString;
5309
+ reason: z.ZodOptional<z.ZodString>;
4937
5310
  }, z.core.$strip>>;
4938
5311
  }, z.core.$strict>;
4939
5312
  }, z.core.$strict>, z.ZodObject<{
@@ -4955,6 +5328,25 @@ export declare const MapEditsRequest: z.ZodObject<{
4955
5328
  kind: z.ZodLiteral<"call">;
4956
5329
  system: z.ZodString;
4957
5330
  route: z.ZodString;
5331
+ }, z.core.$strict>, z.ZodObject<{
5332
+ kind: z.ZodLiteral<"link">;
5333
+ from: z.ZodObject<{
5334
+ repo: z.ZodOptional<z.ZodString>;
5335
+ system: z.ZodOptional<z.ZodString>;
5336
+ }, z.core.$strict>;
5337
+ to: z.ZodObject<{
5338
+ repo: z.ZodOptional<z.ZodString>;
5339
+ system: z.ZodOptional<z.ZodString>;
5340
+ }, z.core.$strict>;
5341
+ why: z.ZodString;
5342
+ planned: z.ZodOptional<z.ZodBoolean>;
5343
+ addSystem: z.ZodOptional<z.ZodObject<{
5344
+ name: z.ZodString;
5345
+ boundary: z.ZodEnum<{
5346
+ internal: "internal";
5347
+ vendor: "vendor";
5348
+ }>;
5349
+ }, z.core.$strict>>;
4958
5350
  }, z.core.$strict>], "kind">;
4959
5351
  }, z.core.$strict>, z.ZodObject<{
4960
5352
  kind: z.ZodLiteral<"redirect">;
@@ -4972,6 +5364,7 @@ export declare const MapEditsRequest: z.ZodObject<{
4972
5364
  pairs: z.ZodArray<z.ZodObject<{
4973
5365
  call: z.ZodString;
4974
5366
  api: z.ZodString;
5367
+ reason: z.ZodOptional<z.ZodString>;
4975
5368
  }, z.core.$strip>>;
4976
5369
  }, z.core.$strict>;
4977
5370
  }, z.core.$strict>]>>;
@@ -4981,6 +5374,12 @@ export type MapEditsRequestT = z.infer<typeof MapEditsRequest>;
4981
5374
  export declare const MapEditProblem: z.ZodObject<{
4982
5375
  edit: z.ZodNumber;
4983
5376
  message: z.ZodString;
5377
+ needsReason: z.ZodOptional<z.ZodArray<z.ZodObject<{
5378
+ call: z.ZodString;
5379
+ at: z.ZodString;
5380
+ box: z.ZodString;
5381
+ text: z.ZodString;
5382
+ }, z.core.$strip>>>;
4984
5383
  }, z.core.$strip>;
4985
5384
  export type MapEditProblemT = z.infer<typeof MapEditProblem>;
4986
5385
  /**
@@ -5098,16 +5497,38 @@ export declare const MapEditsResult: z.ZodObject<{
5098
5497
  why: z.ZodString;
5099
5498
  }, z.core.$strip>>>;
5100
5499
  unreadableManifest: z.ZodOptional<z.ZodLiteral<true>>;
5500
+ beforeSlots: z.ZodOptional<z.ZodLiteral<true>>;
5501
+ renames: z.ZodOptional<z.ZodNumber>;
5101
5502
  newer: z.ZodOptional<z.ZodArray<z.ZodObject<{
5102
5503
  path: z.ZodString;
5103
5504
  name: z.ZodString;
5104
5505
  field: z.ZodString;
5105
5506
  version: z.ZodNumber;
5106
5507
  reads: z.ZodNumber;
5508
+ atticus: z.ZodOptional<z.ZodString>;
5107
5509
  }, z.core.$strip>>>;
5510
+ standing: z.ZodOptional<z.ZodString>;
5108
5511
  command: z.ZodString;
5109
5512
  plan: z.ZodOptional<z.ZodString>;
5110
5513
  }, z.core.$strip>>;
5514
+ wrote: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
5515
+ edit: z.ZodNumber;
5516
+ file: z.ZodString;
5517
+ lines: z.ZodArray<z.ZodString>;
5518
+ }, z.core.$strip>, z.ZodObject<{
5519
+ edit: z.ZodNumber;
5520
+ file: z.ZodString;
5521
+ link: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5522
+ addedSystem: z.ZodOptional<z.ZodString>;
5523
+ raisedFrom: z.ZodOptional<z.ZodNumber>;
5524
+ }, z.core.$strip>, z.ZodObject<{
5525
+ edit: z.ZodNumber;
5526
+ file: z.ZodString;
5527
+ route: z.ZodObject<{
5528
+ system: z.ZodString;
5529
+ value: z.ZodString;
5530
+ }, z.core.$strip>;
5531
+ }, z.core.$strip>]>>>;
5111
5532
  }, z.core.$strip>;
5112
5533
  export type MapEditsResultT = z.infer<typeof MapEditsResult>;
5113
5534
  /**
@@ -5205,13 +5626,17 @@ export declare const FactsApplyResult: z.ZodObject<{
5205
5626
  why: z.ZodString;
5206
5627
  }, z.core.$strip>>>;
5207
5628
  unreadableManifest: z.ZodOptional<z.ZodLiteral<true>>;
5629
+ beforeSlots: z.ZodOptional<z.ZodLiteral<true>>;
5630
+ renames: z.ZodOptional<z.ZodNumber>;
5208
5631
  newer: z.ZodOptional<z.ZodArray<z.ZodObject<{
5209
5632
  path: z.ZodString;
5210
5633
  name: z.ZodString;
5211
5634
  field: z.ZodString;
5212
5635
  version: z.ZodNumber;
5213
5636
  reads: z.ZodNumber;
5637
+ atticus: z.ZodOptional<z.ZodString>;
5214
5638
  }, z.core.$strip>>>;
5639
+ standing: z.ZodOptional<z.ZodString>;
5215
5640
  command: z.ZodString;
5216
5641
  plan: z.ZodOptional<z.ZodString>;
5217
5642
  }, z.core.$strip>>;
@@ -5224,7 +5649,7 @@ export declare const FactsApplyResult: z.ZodObject<{
5224
5649
  }, z.core.$strip>;
5225
5650
  export type FactsApplyResultT = z.infer<typeof FactsApplyResult>;
5226
5651
  /**
5227
- * 3.12.0 (ADR 0195 point 6): GET /api/build/upgrade, the upgrade to source slots as a dry run,
5652
+ * 3.12.0 (ADR 0195 point 6): GET /api/build/upgrade, the upgrade to stored reads (source slots) as a dry run,
5228
5653
  * exactly what `atticus upgrade --json` lists under `slots`: every file `atticus upgrade --yes`
5229
5654
  * writes with its size and hash, the copy of catalog/generated kept in
5230
5655
  * generated-before-upgrade/, and what the first build would change (nothing; else each file,
@@ -7375,6 +7800,32 @@ export declare const StageComment: z.ZodObject<{
7375
7800
  at: z.ZodString;
7376
7801
  read: z.ZodBoolean;
7377
7802
  }, z.core.$strip>;
7803
+ /**
7804
+ * 3.19.0 (ADR 0203 A): why a stage's finding can't be accepted here: a constitution rule (rule
7805
+ * 6), an assistant recorded as the app's person, a Copilot session Atticus started, or the row
7806
+ * of the ADR's table its rule is in (the planner's `wayOnKind`).
7807
+ */
7808
+ export declare const StageAcceptRefusal: z.ZodEnum<{
7809
+ assistant: "assistant";
7810
+ constitution: "constitution";
7811
+ order: "order";
7812
+ "assistant-session": "assistant-session";
7813
+ "document-over-code": "document-over-code";
7814
+ "nothing-to-plan": "nothing-to-plan";
7815
+ "needs-catalog": "needs-catalog";
7816
+ "contradicts-fact": "contradicts-fact";
7817
+ "data-safety": "data-safety";
7818
+ "archived-repo": "archived-repo";
7819
+ "cites-missing-code": "cites-missing-code";
7820
+ "answer-shape": "answer-shape";
7821
+ "next-stage-needs": "next-stage-needs";
7822
+ }>;
7823
+ /** 3.19.0 (ADR 0203 A): an acceptance of a stage's finding, as its file records it. */
7824
+ export declare const StageAcceptance: z.ZodObject<{
7825
+ by: z.ZodString;
7826
+ why: z.ZodString;
7827
+ at: z.ZodString;
7828
+ }, z.core.$strip>;
7378
7829
  export declare const StageFindingView: z.ZodObject<{
7379
7830
  finding: z.ZodObject<{
7380
7831
  schemaVersion: z.ZodLiteral<1>;
@@ -7404,7 +7855,9 @@ export declare const StageFindingView: z.ZodObject<{
7404
7855
  ux: "ux";
7405
7856
  delivery: "delivery";
7406
7857
  "code-and-test": "code-and-test";
7858
+ persona: "persona";
7407
7859
  }>;
7860
+ persona: z.ZodOptional<z.ZodString>;
7408
7861
  severity: z.ZodEnum<{
7409
7862
  blocking: "blocking";
7410
7863
  gap: "gap";
@@ -7507,6 +7960,37 @@ export declare const StageFindingView: z.ZodObject<{
7507
7960
  at: z.ZodString;
7508
7961
  reason: z.ZodOptional<z.ZodString>;
7509
7962
  }, z.core.$strip>>;
7963
+ accept: z.ZodOptional<z.ZodObject<{
7964
+ can: z.ZodBoolean;
7965
+ why: z.ZodOptional<z.ZodEnum<{
7966
+ assistant: "assistant";
7967
+ constitution: "constitution";
7968
+ order: "order";
7969
+ "assistant-session": "assistant-session";
7970
+ "document-over-code": "document-over-code";
7971
+ "nothing-to-plan": "nothing-to-plan";
7972
+ "needs-catalog": "needs-catalog";
7973
+ "contradicts-fact": "contradicts-fact";
7974
+ "data-safety": "data-safety";
7975
+ "archived-repo": "archived-repo";
7976
+ "cites-missing-code": "cites-missing-code";
7977
+ "answer-shape": "answer-shape";
7978
+ "next-stage-needs": "next-stage-needs";
7979
+ }>>;
7980
+ as: z.ZodString;
7981
+ }, z.core.$strip>>;
7982
+ accepted: z.ZodOptional<z.ZodObject<{
7983
+ by: z.ZodString;
7984
+ why: z.ZodString;
7985
+ at: z.ZodString;
7986
+ }, z.core.$strip>>;
7987
+ personOnly: z.ZodOptional<z.ZodObject<{
7988
+ why: z.ZodEnum<{
7989
+ "assistant-session": "assistant-session";
7990
+ "assistant-terminal": "assistant-terminal";
7991
+ }>;
7992
+ because: z.ZodOptional<z.ZodString>;
7993
+ }, z.core.$strip>>;
7510
7994
  }, z.core.$strip>;
7511
7995
  export declare const StageReviewView: z.ZodObject<{
7512
7996
  change: z.ZodString;
@@ -7552,7 +8036,9 @@ export declare const StageReviewView: z.ZodObject<{
7552
8036
  ux: "ux";
7553
8037
  delivery: "delivery";
7554
8038
  "code-and-test": "code-and-test";
8039
+ persona: "persona";
7555
8040
  }>;
8041
+ persona: z.ZodOptional<z.ZodString>;
7556
8042
  severity: z.ZodEnum<{
7557
8043
  blocking: "blocking";
7558
8044
  gap: "gap";
@@ -7655,6 +8141,37 @@ export declare const StageReviewView: z.ZodObject<{
7655
8141
  at: z.ZodString;
7656
8142
  reason: z.ZodOptional<z.ZodString>;
7657
8143
  }, z.core.$strip>>;
8144
+ accept: z.ZodOptional<z.ZodObject<{
8145
+ can: z.ZodBoolean;
8146
+ why: z.ZodOptional<z.ZodEnum<{
8147
+ assistant: "assistant";
8148
+ constitution: "constitution";
8149
+ order: "order";
8150
+ "assistant-session": "assistant-session";
8151
+ "document-over-code": "document-over-code";
8152
+ "nothing-to-plan": "nothing-to-plan";
8153
+ "needs-catalog": "needs-catalog";
8154
+ "contradicts-fact": "contradicts-fact";
8155
+ "data-safety": "data-safety";
8156
+ "archived-repo": "archived-repo";
8157
+ "cites-missing-code": "cites-missing-code";
8158
+ "answer-shape": "answer-shape";
8159
+ "next-stage-needs": "next-stage-needs";
8160
+ }>>;
8161
+ as: z.ZodString;
8162
+ }, z.core.$strip>>;
8163
+ accepted: z.ZodOptional<z.ZodObject<{
8164
+ by: z.ZodString;
8165
+ why: z.ZodString;
8166
+ at: z.ZodString;
8167
+ }, z.core.$strip>>;
8168
+ personOnly: z.ZodOptional<z.ZodObject<{
8169
+ why: z.ZodEnum<{
8170
+ "assistant-session": "assistant-session";
8171
+ "assistant-terminal": "assistant-terminal";
8172
+ }>;
8173
+ because: z.ZodOptional<z.ZodString>;
8174
+ }, z.core.$strip>>;
7658
8175
  }, z.core.$strip>>;
7659
8176
  questions: z.ZodArray<z.ZodObject<{
7660
8177
  schemaVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>]>;
@@ -7986,7 +8503,9 @@ export declare const ThreadItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
7986
8503
  ux: "ux";
7987
8504
  delivery: "delivery";
7988
8505
  "code-and-test": "code-and-test";
8506
+ persona: "persona";
7989
8507
  }>;
8508
+ persona: z.ZodOptional<z.ZodString>;
7990
8509
  severity: z.ZodEnum<{
7991
8510
  blocking: "blocking";
7992
8511
  gap: "gap";
@@ -8089,6 +8608,37 @@ export declare const ThreadItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
8089
8608
  at: z.ZodString;
8090
8609
  reason: z.ZodOptional<z.ZodString>;
8091
8610
  }, z.core.$strip>>;
8611
+ accept: z.ZodOptional<z.ZodObject<{
8612
+ can: z.ZodBoolean;
8613
+ why: z.ZodOptional<z.ZodEnum<{
8614
+ assistant: "assistant";
8615
+ constitution: "constitution";
8616
+ order: "order";
8617
+ "assistant-session": "assistant-session";
8618
+ "document-over-code": "document-over-code";
8619
+ "nothing-to-plan": "nothing-to-plan";
8620
+ "needs-catalog": "needs-catalog";
8621
+ "contradicts-fact": "contradicts-fact";
8622
+ "data-safety": "data-safety";
8623
+ "archived-repo": "archived-repo";
8624
+ "cites-missing-code": "cites-missing-code";
8625
+ "answer-shape": "answer-shape";
8626
+ "next-stage-needs": "next-stage-needs";
8627
+ }>>;
8628
+ as: z.ZodString;
8629
+ }, z.core.$strip>>;
8630
+ accepted: z.ZodOptional<z.ZodObject<{
8631
+ by: z.ZodString;
8632
+ why: z.ZodString;
8633
+ at: z.ZodString;
8634
+ }, z.core.$strip>>;
8635
+ personOnly: z.ZodOptional<z.ZodObject<{
8636
+ why: z.ZodEnum<{
8637
+ "assistant-session": "assistant-session";
8638
+ "assistant-terminal": "assistant-terminal";
8639
+ }>;
8640
+ because: z.ZodOptional<z.ZodString>;
8641
+ }, z.core.$strip>>;
8092
8642
  }, z.core.$strip>;
8093
8643
  assistantWrites: z.ZodBoolean;
8094
8644
  edit: z.ZodOptional<z.ZodObject<{
@@ -8391,7 +8941,9 @@ export declare const StageThreadView: z.ZodObject<{
8391
8941
  ux: "ux";
8392
8942
  delivery: "delivery";
8393
8943
  "code-and-test": "code-and-test";
8944
+ persona: "persona";
8394
8945
  }>;
8946
+ persona: z.ZodOptional<z.ZodString>;
8395
8947
  severity: z.ZodEnum<{
8396
8948
  blocking: "blocking";
8397
8949
  gap: "gap";
@@ -8494,6 +9046,37 @@ export declare const StageThreadView: z.ZodObject<{
8494
9046
  at: z.ZodString;
8495
9047
  reason: z.ZodOptional<z.ZodString>;
8496
9048
  }, z.core.$strip>>;
9049
+ accept: z.ZodOptional<z.ZodObject<{
9050
+ can: z.ZodBoolean;
9051
+ why: z.ZodOptional<z.ZodEnum<{
9052
+ assistant: "assistant";
9053
+ constitution: "constitution";
9054
+ order: "order";
9055
+ "assistant-session": "assistant-session";
9056
+ "document-over-code": "document-over-code";
9057
+ "nothing-to-plan": "nothing-to-plan";
9058
+ "needs-catalog": "needs-catalog";
9059
+ "contradicts-fact": "contradicts-fact";
9060
+ "data-safety": "data-safety";
9061
+ "archived-repo": "archived-repo";
9062
+ "cites-missing-code": "cites-missing-code";
9063
+ "answer-shape": "answer-shape";
9064
+ "next-stage-needs": "next-stage-needs";
9065
+ }>>;
9066
+ as: z.ZodString;
9067
+ }, z.core.$strip>>;
9068
+ accepted: z.ZodOptional<z.ZodObject<{
9069
+ by: z.ZodString;
9070
+ why: z.ZodString;
9071
+ at: z.ZodString;
9072
+ }, z.core.$strip>>;
9073
+ personOnly: z.ZodOptional<z.ZodObject<{
9074
+ why: z.ZodEnum<{
9075
+ "assistant-session": "assistant-session";
9076
+ "assistant-terminal": "assistant-terminal";
9077
+ }>;
9078
+ because: z.ZodOptional<z.ZodString>;
9079
+ }, z.core.$strip>>;
8497
9080
  }, z.core.$strip>;
8498
9081
  assistantWrites: z.ZodBoolean;
8499
9082
  edit: z.ZodOptional<z.ZodObject<{
@@ -8837,7 +9420,9 @@ export declare const StageThreadPostResult: z.ZodObject<{
8837
9420
  ux: "ux";
8838
9421
  delivery: "delivery";
8839
9422
  "code-and-test": "code-and-test";
9423
+ persona: "persona";
8840
9424
  }>;
9425
+ persona: z.ZodOptional<z.ZodString>;
8841
9426
  severity: z.ZodEnum<{
8842
9427
  blocking: "blocking";
8843
9428
  gap: "gap";
@@ -8940,11 +9525,42 @@ export declare const StageThreadPostResult: z.ZodObject<{
8940
9525
  at: z.ZodString;
8941
9526
  reason: z.ZodOptional<z.ZodString>;
8942
9527
  }, z.core.$strip>>;
8943
- }, z.core.$strip>;
8944
- assistantWrites: z.ZodBoolean;
8945
- edit: z.ZodOptional<z.ZodObject<{
8946
- artifact: z.ZodString;
8947
- file: z.ZodOptional<z.ZodString>;
9528
+ accept: z.ZodOptional<z.ZodObject<{
9529
+ can: z.ZodBoolean;
9530
+ why: z.ZodOptional<z.ZodEnum<{
9531
+ assistant: "assistant";
9532
+ constitution: "constitution";
9533
+ order: "order";
9534
+ "assistant-session": "assistant-session";
9535
+ "document-over-code": "document-over-code";
9536
+ "nothing-to-plan": "nothing-to-plan";
9537
+ "needs-catalog": "needs-catalog";
9538
+ "contradicts-fact": "contradicts-fact";
9539
+ "data-safety": "data-safety";
9540
+ "archived-repo": "archived-repo";
9541
+ "cites-missing-code": "cites-missing-code";
9542
+ "answer-shape": "answer-shape";
9543
+ "next-stage-needs": "next-stage-needs";
9544
+ }>>;
9545
+ as: z.ZodString;
9546
+ }, z.core.$strip>>;
9547
+ accepted: z.ZodOptional<z.ZodObject<{
9548
+ by: z.ZodString;
9549
+ why: z.ZodString;
9550
+ at: z.ZodString;
9551
+ }, z.core.$strip>>;
9552
+ personOnly: z.ZodOptional<z.ZodObject<{
9553
+ why: z.ZodEnum<{
9554
+ "assistant-session": "assistant-session";
9555
+ "assistant-terminal": "assistant-terminal";
9556
+ }>;
9557
+ because: z.ZodOptional<z.ZodString>;
9558
+ }, z.core.$strip>>;
9559
+ }, z.core.$strip>;
9560
+ assistantWrites: z.ZodBoolean;
9561
+ edit: z.ZodOptional<z.ZodObject<{
9562
+ artifact: z.ZodString;
9563
+ file: z.ZodOptional<z.ZodString>;
8948
9564
  line: z.ZodOptional<z.ZodNumber>;
8949
9565
  }, z.core.$strip>>;
8950
9566
  }, z.core.$strip>, z.ZodObject<{
@@ -9159,233 +9775,746 @@ export declare const StageThreadPostResult: z.ZodObject<{
9159
9775
  }, z.core.$strip>>;
9160
9776
  }, z.core.$strip>;
9161
9777
  }, z.core.$strip>;
9162
- export type ThreadStageT = z.infer<typeof ThreadStage>;
9163
- export type ThreadItemT = z.infer<typeof ThreadItem>;
9164
- export type StageThreadViewT = z.infer<typeof StageThreadView>;
9165
- export type StageThreadPostT = z.infer<typeof StageThreadPost>;
9166
- export type StageThreadPostResultT = z.infer<typeof StageThreadPostResult>;
9167
- export type StageFindingViewT = z.infer<typeof StageFindingView>;
9168
- export type StageCommentResultT = z.infer<typeof StageCommentResult>;
9169
9778
  /**
9170
- * 2.80.0 (ADR 0181, stage drafts): AI decides first, a person corrects, and the AI corrects the
9171
- * rest like it. A page's stage drafts (Feature design: feature.md and proposal.md; Architecture:
9172
- * the target flows, design.md and data.md; Stories: the stories and the specs; Tasks: tasks.md),
9173
- * each with who wrote it last (`drafted`: the AI with its stage and run, from
9174
- * `stage/drafted.yaml`, until a person saves it) and the items a person can correct. A
9175
- * correction (`stage/corrections.yaml`) is read by the stage's next run as the person's word in
9176
- * its brief; with `scope: similar` the run applies it to every item like it. After the run it is
9177
- * `applied` when the draft changed its item (else `read`), and `touched` lists the other items
9178
- * the draft changed for it. Kept on file either way.
9779
+ * 3.19.0 (ADR 0203 A): accept a stage's blocking finding, as `atticus finding <change> <id> waive
9780
+ * --reason <why>` does, in the name of the person using the app. The reason is required (as the
9781
+ * command line's); no `by`: the app records its person, never a name typed here.
9179
9782
  */
9180
- export declare const DRAFT_PAGES: readonly ["feature", "architecture", "stories", "tasks"];
9181
- export declare const DraftPage: z.ZodEnum<{
9182
- architecture: "architecture";
9183
- stories: "stories";
9184
- tasks: "tasks";
9185
- feature: "feature";
9186
- }>;
9187
- export declare const DraftProvenance: z.ZodObject<{
9188
- by: z.ZodEnum<{
9189
- ai: "ai";
9190
- person: "person";
9191
- }>;
9192
- stage: z.ZodOptional<z.ZodString>;
9193
- run: z.ZodOptional<z.ZodString>;
9194
- who: z.ZodOptional<z.ZodString>;
9195
- at: z.ZodOptional<z.ZodString>;
9196
- }, z.core.$strip>;
9197
- export declare const DraftItemView: z.ZodObject<{
9198
- id: z.ZodString;
9199
- label: z.ZodString;
9200
- like: z.ZodOptional<z.ZodArray<z.ZodString>>;
9201
- }, z.core.$strip>;
9202
- export declare const DraftFileView: z.ZodObject<{
9203
- file: z.ZodString;
9204
- path: z.ZodString;
9205
- stage: z.ZodString;
9206
- drafted: z.ZodOptional<z.ZodObject<{
9207
- by: z.ZodEnum<{
9208
- ai: "ai";
9209
- person: "person";
9210
- }>;
9211
- stage: z.ZodOptional<z.ZodString>;
9212
- run: z.ZodOptional<z.ZodString>;
9213
- who: z.ZodOptional<z.ZodString>;
9214
- at: z.ZodOptional<z.ZodString>;
9215
- }, z.core.$strip>>;
9216
- items: z.ZodArray<z.ZodObject<{
9217
- id: z.ZodString;
9218
- label: z.ZodString;
9219
- like: z.ZodOptional<z.ZodArray<z.ZodString>>;
9220
- }, z.core.$strip>>;
9221
- }, z.core.$strip>;
9222
- export declare const CorrectionView: z.ZodObject<{
9223
- id: z.ZodString;
9224
- stage: z.ZodString;
9225
- file: z.ZodString;
9226
- item: z.ZodOptional<z.ZodString>;
9227
- label: z.ZodString;
9228
- text: z.ZodString;
9229
- scope: z.ZodEnum<{
9230
- one: "one";
9231
- similar: "similar";
9232
- }>;
9233
- like: z.ZodOptional<z.ZodString>;
9234
- by: z.ZodString;
9235
- at: z.ZodString;
9236
- state: z.ZodEnum<{
9237
- read: "read";
9238
- applied: "applied";
9783
+ export declare const StageAcceptRequest: z.ZodObject<{
9784
+ finding: z.ZodString;
9785
+ reason: z.ZodString;
9786
+ }, z.core.$strict>;
9787
+ /**
9788
+ * What the app did with the stage after an Accept (ADR 0203 A, addendum 2026-11-22), whoever
9789
+ * started it: `done`, `questions` (it went on and waits on a question), `stopped` (it went on and
9790
+ * stopped again), `drafting` (a new prompt waits for the assistant, `runId`), `waiting` (the
9791
+ * prompt it waited on still waits for its answer, `runId`), `failed` (that answer still fails its
9792
+ * checks, `runId`), `held` (`held` other open blocking findings and questions still hold it, so it
9793
+ * didn't go on) or `not-resumed` (it couldn't; `lines` say why). `lines`: what the stage said, in
9794
+ * the app's words.
9795
+ */
9796
+ export declare const StageAcceptThen: z.ZodObject<{
9797
+ kind: z.ZodEnum<{
9798
+ done: "done";
9799
+ held: "held";
9800
+ failed: "failed";
9801
+ questions: "questions";
9239
9802
  waiting: "waiting";
9803
+ stopped: "stopped";
9804
+ drafting: "drafting";
9805
+ "not-resumed": "not-resumed";
9240
9806
  }>;
9241
- run: z.ZodOptional<z.ZodString>;
9242
- iteration: z.ZodOptional<z.ZodNumber>;
9243
- appliedAt: z.ZodOptional<z.ZodString>;
9244
- touched: z.ZodOptional<z.ZodArray<z.ZodString>>;
9245
- }, z.core.$strip>;
9246
- export declare const StageDraftsView: z.ZodObject<{
9247
- change: z.ZodString;
9248
- page: z.ZodEnum<{
9249
- architecture: "architecture";
9250
- stories: "stories";
9251
- tasks: "tasks";
9252
- feature: "feature";
9253
- }>;
9254
- files: z.ZodArray<z.ZodObject<{
9255
- file: z.ZodString;
9256
- path: z.ZodString;
9257
- stage: z.ZodString;
9258
- drafted: z.ZodOptional<z.ZodObject<{
9259
- by: z.ZodEnum<{
9260
- ai: "ai";
9261
- person: "person";
9262
- }>;
9263
- stage: z.ZodOptional<z.ZodString>;
9264
- run: z.ZodOptional<z.ZodString>;
9265
- who: z.ZodOptional<z.ZodString>;
9266
- at: z.ZodOptional<z.ZodString>;
9267
- }, z.core.$strip>>;
9268
- items: z.ZodArray<z.ZodObject<{
9269
- id: z.ZodString;
9270
- label: z.ZodString;
9271
- like: z.ZodOptional<z.ZodArray<z.ZodString>>;
9272
- }, z.core.$strip>>;
9273
- }, z.core.$strip>>;
9274
- corrections: z.ZodArray<z.ZodObject<{
9275
- id: z.ZodString;
9276
- stage: z.ZodString;
9277
- file: z.ZodString;
9278
- item: z.ZodOptional<z.ZodString>;
9279
- label: z.ZodString;
9280
- text: z.ZodString;
9281
- scope: z.ZodEnum<{
9282
- one: "one";
9283
- similar: "similar";
9284
- }>;
9285
- like: z.ZodOptional<z.ZodString>;
9286
- by: z.ZodString;
9287
- at: z.ZodString;
9288
- state: z.ZodEnum<{
9289
- read: "read";
9290
- applied: "applied";
9291
- waiting: "waiting";
9292
- }>;
9293
- run: z.ZodOptional<z.ZodString>;
9294
- iteration: z.ZodOptional<z.ZodNumber>;
9295
- appliedAt: z.ZodOptional<z.ZodString>;
9296
- touched: z.ZodOptional<z.ZodArray<z.ZodString>>;
9297
- }, z.core.$strip>>;
9298
- next: z.ZodObject<{
9299
- stage: z.ZodString;
9300
- command: z.ZodString;
9301
- slash: z.ZodString;
9302
- }, z.core.$strip>;
9303
- problems: z.ZodArray<z.ZodObject<{
9304
- file: z.ZodString;
9305
- message: z.ZodString;
9306
- }, z.core.$strip>>;
9807
+ runId: z.ZodOptional<z.ZodString>;
9808
+ held: z.ZodOptional<z.ZodNumber>;
9809
+ lines: z.ZodOptional<z.ZodArray<z.ZodString>>;
9307
9810
  }, z.core.$strip>;
9308
- export declare const AddCorrectionRequest: z.ZodObject<{
9309
- file: z.ZodString;
9310
- item: z.ZodOptional<z.ZodString>;
9311
- text: z.ZodString;
9312
- similar: z.ZodDefault<z.ZodBoolean>;
9313
- like: z.ZodOptional<z.ZodString>;
9314
- }, z.core.$strict>;
9315
- export declare const CorrectionResult: z.ZodObject<{
9316
- correction: z.ZodObject<{
9317
- id: z.ZodString;
9318
- stage: z.ZodString;
9319
- file: z.ZodString;
9320
- item: z.ZodOptional<z.ZodString>;
9321
- label: z.ZodString;
9322
- text: z.ZodString;
9323
- scope: z.ZodEnum<{
9324
- one: "one";
9325
- similar: "similar";
9326
- }>;
9327
- like: z.ZodOptional<z.ZodString>;
9811
+ export declare const StageAcceptResult: z.ZodObject<{
9812
+ files: z.ZodArray<z.ZodString>;
9813
+ accepted: z.ZodObject<{
9328
9814
  by: z.ZodString;
9815
+ why: z.ZodString;
9329
9816
  at: z.ZodString;
9330
- state: z.ZodEnum<{
9331
- read: "read";
9332
- applied: "applied";
9333
- waiting: "waiting";
9334
- }>;
9335
- run: z.ZodOptional<z.ZodString>;
9336
- iteration: z.ZodOptional<z.ZodNumber>;
9337
- appliedAt: z.ZodOptional<z.ZodString>;
9338
- touched: z.ZodOptional<z.ZodArray<z.ZodString>>;
9339
- }, z.core.$strip>;
9340
- files: z.ZodArray<z.ZodString>;
9341
- commit: z.ZodString;
9342
- next: z.ZodObject<{
9343
- stage: z.ZodString;
9344
- command: z.ZodString;
9345
- slash: z.ZodString;
9346
9817
  }, z.core.$strip>;
9347
- }, z.core.$strip>;
9348
- export declare const CorrectionList: z.ZodObject<{
9349
- change: z.ZodString;
9350
- corrections: z.ZodArray<z.ZodObject<{
9351
- id: z.ZodString;
9352
- stage: z.ZodString;
9353
- file: z.ZodString;
9354
- item: z.ZodOptional<z.ZodString>;
9355
- label: z.ZodString;
9356
- text: z.ZodString;
9357
- scope: z.ZodEnum<{
9358
- one: "one";
9359
- similar: "similar";
9818
+ thread: z.ZodObject<{
9819
+ change: z.ZodString;
9820
+ stage: z.ZodEnum<{
9821
+ small: "small";
9822
+ architecture: "architecture";
9823
+ proposal: "proposal";
9824
+ stories: "stories";
9825
+ feature: "feature";
9360
9826
  }>;
9361
- like: z.ZodOptional<z.ZodString>;
9362
- by: z.ZodString;
9363
- at: z.ZodString;
9364
9827
  state: z.ZodEnum<{
9365
- read: "read";
9366
- applied: "applied";
9828
+ "not-started": "not-started";
9829
+ done: "done";
9830
+ questions: "questions";
9367
9831
  waiting: "waiting";
9832
+ stopped: "stopped";
9833
+ drafting: "drafting";
9368
9834
  }>;
9369
- run: z.ZodOptional<z.ZodString>;
9370
- iteration: z.ZodOptional<z.ZodNumber>;
9371
- appliedAt: z.ZodOptional<z.ZodString>;
9372
- touched: z.ZodOptional<z.ZodArray<z.ZodString>>;
9373
- }, z.core.$strip>>;
9374
- }, z.core.$strip>;
9375
- export type StageDraftsViewT = z.infer<typeof StageDraftsView>;
9376
- export type DraftFileViewT = z.infer<typeof DraftFileView>;
9377
- export type DraftProvenanceT = z.infer<typeof DraftProvenance>;
9378
- export type CorrectionViewT = z.infer<typeof CorrectionView>;
9379
- export type CorrectionResultT = z.infer<typeof CorrectionResult>;
9380
- export type CorrectionListT = z.infer<typeof CorrectionList>;
9381
- /**
9382
- * ADR 0092: the specs (ADR 0079) as the Flows screen reads them, from files only: the repos
9383
- * with a spec, one repo's flows, and one flow with the joins of the estate pass (ADR 0085).
9384
- */
9385
- export declare const SpecList: z.ZodObject<{
9386
- repos: z.ZodArray<z.ZodObject<{
9387
- repo: z.ZodString;
9388
- flows: z.ZodNumber;
9835
+ headline: z.ZodString;
9836
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
9837
+ kind: z.ZodLiteral<"prompt">;
9838
+ at: z.ZodString;
9839
+ runId: z.ZodString;
9840
+ who: z.ZodEnum<{
9841
+ critic: "critic";
9842
+ drafter: "drafter";
9843
+ }>;
9844
+ prompt: z.ZodString;
9845
+ state: z.ZodEnum<{
9846
+ failed: "failed";
9847
+ prepared: "prepared";
9848
+ waiting: "waiting";
9849
+ produced: "produced";
9850
+ validated: "validated";
9851
+ cancelled: "cancelled";
9852
+ }>;
9853
+ details: z.ZodObject<{
9854
+ agent: z.ZodString;
9855
+ runtime: z.ZodString;
9856
+ promptPath: z.ZodString;
9857
+ output: z.ZodOptional<z.ZodString>;
9858
+ promptTokens: z.ZodOptional<z.ZodNumber>;
9859
+ model: z.ZodOptional<z.ZodString>;
9860
+ attempt: z.ZodNumber;
9861
+ }, z.core.$strip>;
9862
+ }, z.core.$strip>, z.ZodObject<{
9863
+ kind: z.ZodLiteral<"answer">;
9864
+ at: z.ZodString;
9865
+ runId: z.ZodString;
9866
+ who: z.ZodEnum<{
9867
+ critic: "critic";
9868
+ drafter: "drafter";
9869
+ }>;
9870
+ checked: z.ZodEnum<{
9871
+ failed: "failed";
9872
+ passed: "passed";
9873
+ checking: "checking";
9874
+ }>;
9875
+ by: z.ZodOptional<z.ZodEnum<{
9876
+ person: "person";
9877
+ app: "app";
9878
+ }>>;
9879
+ summary: z.ZodArray<z.ZodString>;
9880
+ problems: z.ZodArray<z.ZodString>;
9881
+ }, z.core.$strip>, z.ZodObject<{
9882
+ kind: z.ZodLiteral<"changed">;
9883
+ at: z.ZodString;
9884
+ files: z.ZodArray<z.ZodString>;
9885
+ }, z.core.$strip>, z.ZodObject<{
9886
+ kind: z.ZodLiteral<"finding">;
9887
+ at: z.ZodString;
9888
+ view: z.ZodObject<{
9889
+ finding: z.ZodObject<{
9890
+ schemaVersion: z.ZodLiteral<1>;
9891
+ id: z.ZodString;
9892
+ kind: z.ZodEnum<{
9893
+ issue: "issue";
9894
+ "knowledge-gap": "knowledge-gap";
9895
+ }>;
9896
+ change: z.ZodString;
9897
+ gate: z.ZodString;
9898
+ round: z.ZodNumber;
9899
+ rule: z.ZodString;
9900
+ layer: z.ZodEnum<{
9901
+ team: "team";
9902
+ constitution: "constitution";
9903
+ org: "org";
9904
+ }>;
9905
+ lens: z.ZodEnum<{
9906
+ release: "release";
9907
+ true: "true";
9908
+ complete: "complete";
9909
+ safe: "safe";
9910
+ ship: "ship";
9911
+ business: "business";
9912
+ architecture: "architecture";
9913
+ story: "story";
9914
+ ux: "ux";
9915
+ delivery: "delivery";
9916
+ "code-and-test": "code-and-test";
9917
+ persona: "persona";
9918
+ }>;
9919
+ persona: z.ZodOptional<z.ZodString>;
9920
+ severity: z.ZodEnum<{
9921
+ blocking: "blocking";
9922
+ gap: "gap";
9923
+ risk: "risk";
9924
+ idea: "idea";
9925
+ }>;
9926
+ artifact: z.ZodString;
9927
+ locator: z.ZodObject<{
9928
+ line: z.ZodOptional<z.ZodNumber>;
9929
+ heading: z.ZodOptional<z.ZodString>;
9930
+ record: z.ZodOptional<z.ZodString>;
9931
+ field: z.ZodOptional<z.ZodString>;
9932
+ }, z.core.$strict>;
9933
+ summary: z.ZodString;
9934
+ why: z.ZodString;
9935
+ fix: z.ZodObject<{
9936
+ text: z.ZodString;
9937
+ patch: z.ZodOptional<z.ZodString>;
9938
+ }, z.core.$strict>;
9939
+ evidence: z.ZodArray<z.ZodObject<{
9940
+ source: z.ZodUnion<readonly [z.ZodEnum<{
9941
+ code: "code";
9942
+ config: "config";
9943
+ spec: "spec";
9944
+ gateway: "gateway";
9945
+ "event-config": "event-config";
9946
+ infrastructure: "infrastructure";
9947
+ pipeline: "pipeline";
9948
+ migration: "migration";
9949
+ diagram: "diagram";
9950
+ document: "document";
9951
+ export: "export";
9952
+ manual: "manual";
9953
+ }>, z.ZodEnum<{
9954
+ artifact: "artifact";
9955
+ catalog: "catalog";
9956
+ rule: "rule";
9957
+ }>]>;
9958
+ record: z.ZodOptional<z.ZodString>;
9959
+ path: z.ZodOptional<z.ZodString>;
9960
+ repo: z.ZodOptional<z.ZodString>;
9961
+ line: z.ZodOptional<z.ZodNumber>;
9962
+ quote: z.ZodOptional<z.ZodString>;
9963
+ }, z.core.$strict>>;
9964
+ question: z.ZodOptional<z.ZodObject<{
9965
+ text: z.ZodString;
9966
+ owner: z.ZodString;
9967
+ }, z.core.$strict>>;
9968
+ answered: z.ZodOptional<z.ZodObject<{
9969
+ question: z.ZodString;
9970
+ quote: z.ZodString;
9971
+ }, z.core.$strict>>;
9972
+ waivable: z.ZodBoolean;
9973
+ state: z.ZodDefault<z.ZodEnum<{
9974
+ open: "open";
9975
+ applied: "applied";
9976
+ dismissed: "dismissed";
9977
+ waived: "waived";
9978
+ asked: "asked";
9979
+ }>>;
9980
+ resolution: z.ZodOptional<z.ZodObject<{
9981
+ action: z.ZodEnum<{
9982
+ apply: "apply";
9983
+ "edit-and-apply": "edit-and-apply";
9984
+ "not-relevant": "not-relevant";
9985
+ waive: "waive";
9986
+ ask: "ask";
9987
+ }>;
9988
+ by: z.ZodString;
9989
+ at: z.ZodISODateTime;
9990
+ reason: z.ZodOptional<z.ZodString>;
9991
+ askedOf: z.ZodOptional<z.ZodString>;
9992
+ }, z.core.$strict>>;
9993
+ createdAt: z.ZodISODateTime;
9994
+ }, z.core.$strict>;
9995
+ file: z.ZodString;
9996
+ options: z.ZodObject<{
9997
+ fix: z.ZodString;
9998
+ apply: z.ZodBoolean;
9999
+ dismiss: z.ZodBoolean;
10000
+ waive: z.ZodBoolean;
10001
+ ask: z.ZodOptional<z.ZodObject<{
10002
+ text: z.ZodString;
10003
+ owner: z.ZodString;
10004
+ }, z.core.$strip>>;
10005
+ }, z.core.$strip>;
10006
+ comments: z.ZodArray<z.ZodObject<{
10007
+ question: z.ZodString;
10008
+ text: z.ZodString;
10009
+ by: z.ZodString;
10010
+ at: z.ZodString;
10011
+ read: z.ZodBoolean;
10012
+ }, z.core.$strip>>;
10013
+ proposal: z.ZodOptional<z.ZodObject<{
10014
+ claim: z.ZodEnum<{
10015
+ fixed: "fixed";
10016
+ "not-relevant": "not-relevant";
10017
+ }>;
10018
+ by: z.ZodString;
10019
+ at: z.ZodString;
10020
+ reason: z.ZodOptional<z.ZodString>;
10021
+ }, z.core.$strip>>;
10022
+ accept: z.ZodOptional<z.ZodObject<{
10023
+ can: z.ZodBoolean;
10024
+ why: z.ZodOptional<z.ZodEnum<{
10025
+ assistant: "assistant";
10026
+ constitution: "constitution";
10027
+ order: "order";
10028
+ "assistant-session": "assistant-session";
10029
+ "document-over-code": "document-over-code";
10030
+ "nothing-to-plan": "nothing-to-plan";
10031
+ "needs-catalog": "needs-catalog";
10032
+ "contradicts-fact": "contradicts-fact";
10033
+ "data-safety": "data-safety";
10034
+ "archived-repo": "archived-repo";
10035
+ "cites-missing-code": "cites-missing-code";
10036
+ "answer-shape": "answer-shape";
10037
+ "next-stage-needs": "next-stage-needs";
10038
+ }>>;
10039
+ as: z.ZodString;
10040
+ }, z.core.$strip>>;
10041
+ accepted: z.ZodOptional<z.ZodObject<{
10042
+ by: z.ZodString;
10043
+ why: z.ZodString;
10044
+ at: z.ZodString;
10045
+ }, z.core.$strip>>;
10046
+ personOnly: z.ZodOptional<z.ZodObject<{
10047
+ why: z.ZodEnum<{
10048
+ "assistant-session": "assistant-session";
10049
+ "assistant-terminal": "assistant-terminal";
10050
+ }>;
10051
+ because: z.ZodOptional<z.ZodString>;
10052
+ }, z.core.$strip>>;
10053
+ }, z.core.$strip>;
10054
+ assistantWrites: z.ZodBoolean;
10055
+ edit: z.ZodOptional<z.ZodObject<{
10056
+ artifact: z.ZodString;
10057
+ file: z.ZodOptional<z.ZodString>;
10058
+ line: z.ZodOptional<z.ZodNumber>;
10059
+ }, z.core.$strip>>;
10060
+ }, z.core.$strip>, z.ZodObject<{
10061
+ kind: z.ZodLiteral<"question">;
10062
+ at: z.ZodString;
10063
+ question: z.ZodObject<{
10064
+ schemaVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>]>;
10065
+ id: z.ZodString;
10066
+ askedBy: z.ZodObject<{
10067
+ step: z.ZodString;
10068
+ command: z.ZodString;
10069
+ run: z.ZodOptional<z.ZodString>;
10070
+ at: z.ZodISODateTime;
10071
+ }, z.core.$strict>;
10072
+ alsoAskedBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
10073
+ step: z.ZodString;
10074
+ command: z.ZodString;
10075
+ run: z.ZodOptional<z.ZodString>;
10076
+ at: z.ZodISODateTime;
10077
+ rerun: z.ZodString;
10078
+ }, z.core.$strict>>>;
10079
+ repo: z.ZodString;
10080
+ question: z.ZodString;
10081
+ options: z.ZodDefault<z.ZodArray<z.ZodObject<{
10082
+ label: z.ZodString;
10083
+ means: z.ZodString;
10084
+ changes: z.ZodString;
10085
+ }, z.core.$strict>>>;
10086
+ evidence: z.ZodArray<z.ZodString>;
10087
+ scope: z.ZodObject<{
10088
+ level: z.ZodEnum<{
10089
+ repo: "repo";
10090
+ "repo-type": "repo-type";
10091
+ }>;
10092
+ id: z.ZodString;
10093
+ }, z.core.$strict>;
10094
+ role: z.ZodOptional<z.ZodEnum<{
10095
+ product: "product";
10096
+ architecture: "architecture";
10097
+ delivery: "delivery";
10098
+ analysis: "analysis";
10099
+ }>>;
10100
+ asks: z.ZodOptional<z.ZodEnum<{
10101
+ business: "business";
10102
+ delivery: "delivery";
10103
+ design: "design";
10104
+ }>>;
10105
+ routed: z.ZodOptional<z.ZodObject<{
10106
+ from: z.ZodOptional<z.ZodEnum<{
10107
+ product: "product";
10108
+ architecture: "architecture";
10109
+ delivery: "delivery";
10110
+ analysis: "analysis";
10111
+ }>>;
10112
+ by: z.ZodString;
10113
+ at: z.ZodISODateTime;
10114
+ }, z.core.$strict>>;
10115
+ askedOf: z.ZodOptional<z.ZodString>;
10116
+ finding: z.ZodOptional<z.ZodObject<{
10117
+ change: z.ZodString;
10118
+ gate: z.ZodString;
10119
+ round: z.ZodNumber;
10120
+ id: z.ZodString;
10121
+ }, z.core.$strict>>;
10122
+ state: z.ZodEnum<{
10123
+ retired: "retired";
10124
+ open: "open";
10125
+ answered: "answered";
10126
+ }>;
10127
+ rerun: z.ZodString;
10128
+ answer: z.ZodOptional<z.ZodObject<{
10129
+ option: z.ZodOptional<z.ZodNumber>;
10130
+ text: z.ZodOptional<z.ZodString>;
10131
+ by: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
10132
+ kind: z.ZodLiteral<"ai">;
10133
+ runtime: z.ZodEnum<{
10134
+ "hand-off": "hand-off";
10135
+ "copilot-acp": "copilot-acp";
10136
+ }>;
10137
+ run: z.ZodString;
10138
+ bar: z.ZodOptional<z.ZodEnum<{
10139
+ confident: "confident";
10140
+ "agrees-with-shapes": "agrees-with-shapes";
10141
+ "person-rule": "person-rule";
10142
+ }>>;
10143
+ }, z.core.$strict>]>;
10144
+ at: z.ZodISODateTime;
10145
+ scope: z.ZodObject<{
10146
+ level: z.ZodEnum<{
10147
+ repo: "repo";
10148
+ "repo-type": "repo-type";
10149
+ }>;
10150
+ id: z.ZodString;
10151
+ }, z.core.$strict>;
10152
+ skill: z.ZodOptional<z.ZodString>;
10153
+ match: z.ZodOptional<z.ZodString>;
10154
+ proposal: z.ZodOptional<z.ZodObject<{
10155
+ by: z.ZodString;
10156
+ at: z.ZodISODateTime;
10157
+ cites: z.ZodArray<z.ZodObject<{
10158
+ repo: z.ZodOptional<z.ZodString>;
10159
+ file: z.ZodString;
10160
+ line: z.ZodNumber;
10161
+ quote: z.ZodString;
10162
+ }, z.core.$strict>>;
10163
+ }, z.core.$strict>>;
10164
+ batch: z.ZodOptional<z.ZodString>;
10165
+ rule: z.ZodOptional<z.ZodObject<{
10166
+ from: z.ZodString;
10167
+ match: z.ZodString;
10168
+ }, z.core.$strict>>;
10169
+ }, z.core.$strict>>;
10170
+ retired: z.ZodOptional<z.ZodObject<{
10171
+ at: z.ZodISODateTime;
10172
+ why: z.ZodString;
10173
+ replacedBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
10174
+ }, z.core.$strict>>;
10175
+ reopened: z.ZodOptional<z.ZodObject<{
10176
+ at: z.ZodISODateTime;
10177
+ why: z.ZodString;
10178
+ answer: z.ZodObject<{
10179
+ option: z.ZodOptional<z.ZodNumber>;
10180
+ text: z.ZodOptional<z.ZodString>;
10181
+ by: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
10182
+ kind: z.ZodLiteral<"ai">;
10183
+ runtime: z.ZodEnum<{
10184
+ "hand-off": "hand-off";
10185
+ "copilot-acp": "copilot-acp";
10186
+ }>;
10187
+ run: z.ZodString;
10188
+ bar: z.ZodOptional<z.ZodEnum<{
10189
+ confident: "confident";
10190
+ "agrees-with-shapes": "agrees-with-shapes";
10191
+ "person-rule": "person-rule";
10192
+ }>>;
10193
+ }, z.core.$strict>]>;
10194
+ at: z.ZodISODateTime;
10195
+ scope: z.ZodObject<{
10196
+ level: z.ZodEnum<{
10197
+ repo: "repo";
10198
+ "repo-type": "repo-type";
10199
+ }>;
10200
+ id: z.ZodString;
10201
+ }, z.core.$strict>;
10202
+ skill: z.ZodOptional<z.ZodString>;
10203
+ match: z.ZodOptional<z.ZodString>;
10204
+ proposal: z.ZodOptional<z.ZodObject<{
10205
+ by: z.ZodString;
10206
+ at: z.ZodISODateTime;
10207
+ cites: z.ZodArray<z.ZodObject<{
10208
+ repo: z.ZodOptional<z.ZodString>;
10209
+ file: z.ZodString;
10210
+ line: z.ZodNumber;
10211
+ quote: z.ZodString;
10212
+ }, z.core.$strict>>;
10213
+ }, z.core.$strict>>;
10214
+ batch: z.ZodOptional<z.ZodString>;
10215
+ rule: z.ZodOptional<z.ZodObject<{
10216
+ from: z.ZodString;
10217
+ match: z.ZodString;
10218
+ }, z.core.$strict>>;
10219
+ }, z.core.$strict>;
10220
+ }, z.core.$strict>>;
10221
+ related: z.ZodOptional<z.ZodArray<z.ZodObject<{
10222
+ id: z.ZodString;
10223
+ verdict: z.ZodEnum<{
10224
+ unsure: "unsure";
10225
+ narrower: "narrower";
10226
+ }>;
10227
+ judgment: z.ZodOptional<z.ZodString>;
10228
+ }, z.core.$strict>>>;
10229
+ }, z.core.$strict>;
10230
+ }, z.core.$strip>, z.ZodObject<{
10231
+ kind: z.ZodLiteral<"reply">;
10232
+ at: z.ZodString;
10233
+ text: z.ZodString;
10234
+ by: z.ZodString;
10235
+ read: z.ZodBoolean;
10236
+ about: z.ZodOptional<z.ZodString>;
10237
+ }, z.core.$strip>, z.ZodObject<{
10238
+ kind: z.ZodLiteral<"correction">;
10239
+ at: z.ZodString;
10240
+ text: z.ZodString;
10241
+ label: z.ZodString;
10242
+ by: z.ZodString;
10243
+ state: z.ZodString;
10244
+ }, z.core.$strip>, z.ZodObject<{
10245
+ kind: z.ZodLiteral<"dropped">;
10246
+ at: z.ZodString;
10247
+ key: z.ZodString;
10248
+ question: z.ZodString;
10249
+ evidence: z.ZodArray<z.ZodString>;
10250
+ nearest: z.ZodOptional<z.ZodString>;
10251
+ }, z.core.$strip>, z.ZodObject<{
10252
+ kind: z.ZodLiteral<"note">;
10253
+ at: z.ZodString;
10254
+ text: z.ZodString;
10255
+ }, z.core.$strip>], "kind">>;
10256
+ waiting: z.ZodOptional<z.ZodObject<{
10257
+ runId: z.ZodString;
10258
+ prompt: z.ZodString;
10259
+ }, z.core.$strip>>;
10260
+ step: z.ZodArray<z.ZodString>;
10261
+ byPerson: z.ZodOptional<z.ZodArray<z.ZodString>>;
10262
+ reply: z.ZodObject<{
10263
+ open: z.ZodBoolean;
10264
+ why: z.ZodOptional<z.ZodString>;
10265
+ }, z.core.$strip>;
10266
+ problems: z.ZodArray<z.ZodObject<{
10267
+ file: z.ZodString;
10268
+ message: z.ZodString;
10269
+ }, z.core.$strip>>;
10270
+ }, z.core.$strip>;
10271
+ goesOn: z.ZodOptional<z.ZodObject<{
10272
+ kind: z.ZodEnum<{
10273
+ done: "done";
10274
+ held: "held";
10275
+ failed: "failed";
10276
+ questions: "questions";
10277
+ waiting: "waiting";
10278
+ stopped: "stopped";
10279
+ drafting: "drafting";
10280
+ "not-resumed": "not-resumed";
10281
+ }>;
10282
+ runId: z.ZodOptional<z.ZodString>;
10283
+ held: z.ZodOptional<z.ZodNumber>;
10284
+ lines: z.ZodOptional<z.ZodArray<z.ZodString>>;
10285
+ }, z.core.$strip>>;
10286
+ }, z.core.$strip>;
10287
+ export type ThreadStageT = z.infer<typeof ThreadStage>;
10288
+ export type ThreadItemT = z.infer<typeof ThreadItem>;
10289
+ export type StageThreadViewT = z.infer<typeof StageThreadView>;
10290
+ export type StageThreadPostT = z.infer<typeof StageThreadPost>;
10291
+ export type StageThreadPostResultT = z.infer<typeof StageThreadPostResult>;
10292
+ export type StageAcceptRequestT = z.infer<typeof StageAcceptRequest>;
10293
+ export type StageAcceptResultT = z.infer<typeof StageAcceptResult>;
10294
+ export type StageAcceptThenT = z.infer<typeof StageAcceptThen>;
10295
+ export type StageAcceptRefusalT = z.infer<typeof StageAcceptRefusal>;
10296
+ export type StageFindingViewT = z.infer<typeof StageFindingView>;
10297
+ export type StageCommentResultT = z.infer<typeof StageCommentResult>;
10298
+ /**
10299
+ * 2.80.0 (ADR 0181, stage drafts): AI decides first, a person corrects, and the AI corrects the
10300
+ * rest like it. A page's stage drafts (Feature design: feature.md and proposal.md; Architecture:
10301
+ * the target flows, design.md and data.md; Stories: the stories and the specs; Tasks: tasks.md),
10302
+ * each with who wrote it last (`drafted`: the AI with its stage and run, from
10303
+ * `stage/drafted.yaml`, until a person saves it) and the items a person can correct. A
10304
+ * correction (`stage/corrections.yaml`) is read by the stage's next run as the person's word in
10305
+ * its brief; with `scope: similar` the run applies it to every item like it. After the run it is
10306
+ * `applied` when the draft changed its item (else `read`), and `touched` lists the other items
10307
+ * the draft changed for it. Kept on file either way.
10308
+ */
10309
+ export declare const DRAFT_PAGES: readonly ["feature", "architecture", "stories", "tasks"];
10310
+ export declare const DraftPage: z.ZodEnum<{
10311
+ architecture: "architecture";
10312
+ stories: "stories";
10313
+ tasks: "tasks";
10314
+ feature: "feature";
10315
+ }>;
10316
+ export declare const DraftProvenance: z.ZodObject<{
10317
+ by: z.ZodEnum<{
10318
+ ai: "ai";
10319
+ person: "person";
10320
+ }>;
10321
+ stage: z.ZodOptional<z.ZodString>;
10322
+ run: z.ZodOptional<z.ZodString>;
10323
+ who: z.ZodOptional<z.ZodString>;
10324
+ at: z.ZodOptional<z.ZodString>;
10325
+ }, z.core.$strip>;
10326
+ export declare const DraftItemView: z.ZodObject<{
10327
+ id: z.ZodString;
10328
+ label: z.ZodString;
10329
+ like: z.ZodOptional<z.ZodArray<z.ZodString>>;
10330
+ }, z.core.$strip>;
10331
+ export declare const DraftFileView: z.ZodObject<{
10332
+ file: z.ZodString;
10333
+ path: z.ZodString;
10334
+ stage: z.ZodString;
10335
+ drafted: z.ZodOptional<z.ZodObject<{
10336
+ by: z.ZodEnum<{
10337
+ ai: "ai";
10338
+ person: "person";
10339
+ }>;
10340
+ stage: z.ZodOptional<z.ZodString>;
10341
+ run: z.ZodOptional<z.ZodString>;
10342
+ who: z.ZodOptional<z.ZodString>;
10343
+ at: z.ZodOptional<z.ZodString>;
10344
+ }, z.core.$strip>>;
10345
+ items: z.ZodArray<z.ZodObject<{
10346
+ id: z.ZodString;
10347
+ label: z.ZodString;
10348
+ like: z.ZodOptional<z.ZodArray<z.ZodString>>;
10349
+ }, z.core.$strip>>;
10350
+ }, z.core.$strip>;
10351
+ export declare const CorrectionView: z.ZodObject<{
10352
+ id: z.ZodString;
10353
+ stage: z.ZodString;
10354
+ file: z.ZodString;
10355
+ item: z.ZodOptional<z.ZodString>;
10356
+ label: z.ZodString;
10357
+ text: z.ZodString;
10358
+ scope: z.ZodEnum<{
10359
+ one: "one";
10360
+ similar: "similar";
10361
+ }>;
10362
+ like: z.ZodOptional<z.ZodString>;
10363
+ by: z.ZodString;
10364
+ at: z.ZodString;
10365
+ state: z.ZodEnum<{
10366
+ read: "read";
10367
+ applied: "applied";
10368
+ waiting: "waiting";
10369
+ }>;
10370
+ run: z.ZodOptional<z.ZodString>;
10371
+ iteration: z.ZodOptional<z.ZodNumber>;
10372
+ appliedAt: z.ZodOptional<z.ZodString>;
10373
+ touched: z.ZodOptional<z.ZodArray<z.ZodString>>;
10374
+ }, z.core.$strip>;
10375
+ export declare const StageDraftsView: z.ZodObject<{
10376
+ change: z.ZodString;
10377
+ page: z.ZodEnum<{
10378
+ architecture: "architecture";
10379
+ stories: "stories";
10380
+ tasks: "tasks";
10381
+ feature: "feature";
10382
+ }>;
10383
+ files: z.ZodArray<z.ZodObject<{
10384
+ file: z.ZodString;
10385
+ path: z.ZodString;
10386
+ stage: z.ZodString;
10387
+ drafted: z.ZodOptional<z.ZodObject<{
10388
+ by: z.ZodEnum<{
10389
+ ai: "ai";
10390
+ person: "person";
10391
+ }>;
10392
+ stage: z.ZodOptional<z.ZodString>;
10393
+ run: z.ZodOptional<z.ZodString>;
10394
+ who: z.ZodOptional<z.ZodString>;
10395
+ at: z.ZodOptional<z.ZodString>;
10396
+ }, z.core.$strip>>;
10397
+ items: z.ZodArray<z.ZodObject<{
10398
+ id: z.ZodString;
10399
+ label: z.ZodString;
10400
+ like: z.ZodOptional<z.ZodArray<z.ZodString>>;
10401
+ }, z.core.$strip>>;
10402
+ }, z.core.$strip>>;
10403
+ corrections: z.ZodArray<z.ZodObject<{
10404
+ id: z.ZodString;
10405
+ stage: z.ZodString;
10406
+ file: z.ZodString;
10407
+ item: z.ZodOptional<z.ZodString>;
10408
+ label: z.ZodString;
10409
+ text: z.ZodString;
10410
+ scope: z.ZodEnum<{
10411
+ one: "one";
10412
+ similar: "similar";
10413
+ }>;
10414
+ like: z.ZodOptional<z.ZodString>;
10415
+ by: z.ZodString;
10416
+ at: z.ZodString;
10417
+ state: z.ZodEnum<{
10418
+ read: "read";
10419
+ applied: "applied";
10420
+ waiting: "waiting";
10421
+ }>;
10422
+ run: z.ZodOptional<z.ZodString>;
10423
+ iteration: z.ZodOptional<z.ZodNumber>;
10424
+ appliedAt: z.ZodOptional<z.ZodString>;
10425
+ touched: z.ZodOptional<z.ZodArray<z.ZodString>>;
10426
+ }, z.core.$strip>>;
10427
+ next: z.ZodObject<{
10428
+ stage: z.ZodString;
10429
+ command: z.ZodString;
10430
+ slash: z.ZodString;
10431
+ }, z.core.$strip>;
10432
+ problems: z.ZodArray<z.ZodObject<{
10433
+ file: z.ZodString;
10434
+ message: z.ZodString;
10435
+ }, z.core.$strip>>;
10436
+ }, z.core.$strip>;
10437
+ export declare const AddCorrectionRequest: z.ZodObject<{
10438
+ file: z.ZodString;
10439
+ item: z.ZodOptional<z.ZodString>;
10440
+ text: z.ZodString;
10441
+ similar: z.ZodDefault<z.ZodBoolean>;
10442
+ like: z.ZodOptional<z.ZodString>;
10443
+ }, z.core.$strict>;
10444
+ export declare const CorrectionResult: z.ZodObject<{
10445
+ correction: z.ZodObject<{
10446
+ id: z.ZodString;
10447
+ stage: z.ZodString;
10448
+ file: z.ZodString;
10449
+ item: z.ZodOptional<z.ZodString>;
10450
+ label: z.ZodString;
10451
+ text: z.ZodString;
10452
+ scope: z.ZodEnum<{
10453
+ one: "one";
10454
+ similar: "similar";
10455
+ }>;
10456
+ like: z.ZodOptional<z.ZodString>;
10457
+ by: z.ZodString;
10458
+ at: z.ZodString;
10459
+ state: z.ZodEnum<{
10460
+ read: "read";
10461
+ applied: "applied";
10462
+ waiting: "waiting";
10463
+ }>;
10464
+ run: z.ZodOptional<z.ZodString>;
10465
+ iteration: z.ZodOptional<z.ZodNumber>;
10466
+ appliedAt: z.ZodOptional<z.ZodString>;
10467
+ touched: z.ZodOptional<z.ZodArray<z.ZodString>>;
10468
+ }, z.core.$strip>;
10469
+ files: z.ZodArray<z.ZodString>;
10470
+ commit: z.ZodString;
10471
+ next: z.ZodObject<{
10472
+ stage: z.ZodString;
10473
+ command: z.ZodString;
10474
+ slash: z.ZodString;
10475
+ }, z.core.$strip>;
10476
+ }, z.core.$strip>;
10477
+ export declare const CorrectionList: z.ZodObject<{
10478
+ change: z.ZodString;
10479
+ corrections: z.ZodArray<z.ZodObject<{
10480
+ id: z.ZodString;
10481
+ stage: z.ZodString;
10482
+ file: z.ZodString;
10483
+ item: z.ZodOptional<z.ZodString>;
10484
+ label: z.ZodString;
10485
+ text: z.ZodString;
10486
+ scope: z.ZodEnum<{
10487
+ one: "one";
10488
+ similar: "similar";
10489
+ }>;
10490
+ like: z.ZodOptional<z.ZodString>;
10491
+ by: z.ZodString;
10492
+ at: z.ZodString;
10493
+ state: z.ZodEnum<{
10494
+ read: "read";
10495
+ applied: "applied";
10496
+ waiting: "waiting";
10497
+ }>;
10498
+ run: z.ZodOptional<z.ZodString>;
10499
+ iteration: z.ZodOptional<z.ZodNumber>;
10500
+ appliedAt: z.ZodOptional<z.ZodString>;
10501
+ touched: z.ZodOptional<z.ZodArray<z.ZodString>>;
10502
+ }, z.core.$strip>>;
10503
+ }, z.core.$strip>;
10504
+ export type StageDraftsViewT = z.infer<typeof StageDraftsView>;
10505
+ export type DraftFileViewT = z.infer<typeof DraftFileView>;
10506
+ export type DraftProvenanceT = z.infer<typeof DraftProvenance>;
10507
+ export type CorrectionViewT = z.infer<typeof CorrectionView>;
10508
+ export type CorrectionResultT = z.infer<typeof CorrectionResult>;
10509
+ export type CorrectionListT = z.infer<typeof CorrectionList>;
10510
+ /**
10511
+ * ADR 0092: the specs (ADR 0079) as the Flows screen reads them, from files only: the repos
10512
+ * with a spec, one repo's flows, and one flow with the joins of the estate pass (ADR 0085).
10513
+ */
10514
+ export declare const SpecList: z.ZodObject<{
10515
+ repos: z.ZodArray<z.ZodObject<{
10516
+ repo: z.ZodString;
10517
+ flows: z.ZodNumber;
9389
10518
  }, z.core.$strip>>;
9390
10519
  }, z.core.$strip>;
9391
10520
  export declare const SpecFlowSummary: z.ZodObject<{
@@ -10089,6 +11218,11 @@ export declare const ChangeMap: z.ZodObject<{
10089
11218
  }, z.core.$strip>>;
10090
11219
  mermaid: z.ZodString;
10091
11220
  flows: z.ZodNumber;
11221
+ from: z.ZodOptional<z.ZodEnum<{
11222
+ design: "design";
11223
+ tasks: "tasks";
11224
+ }>>;
11225
+ rows: z.ZodOptional<z.ZodNumber>;
10092
11226
  problems: z.ZodArray<z.ZodString>;
10093
11227
  }, z.core.$strip>;
10094
11228
  export type ChangeMapT = z.infer<typeof ChangeMap>;
@@ -10109,6 +11243,11 @@ export declare const ChangeEstimate: z.ZodObject<{
10109
11243
  p80: z.ZodNumber;
10110
11244
  }, z.core.$strip>>;
10111
11245
  source: z.ZodString;
11246
+ from: z.ZodOptional<z.ZodEnum<{
11247
+ operations: "operations";
11248
+ design: "design";
11249
+ tasks: "tasks";
11250
+ }>>;
10112
11251
  }, z.core.$strip>>;
10113
11252
  needsClass: z.ZodNumber;
10114
11253
  effort: z.ZodOptional<z.ZodObject<{
@@ -10156,6 +11295,25 @@ export type ChangeEstimateT = z.infer<typeof ChangeEstimate>;
10156
11295
  export declare const ChangeImpact: z.ZodObject<{
10157
11296
  change: z.ZodString;
10158
11297
  flows: z.ZodNumber;
11298
+ from: z.ZodOptional<z.ZodLiteral<"design">>;
11299
+ reaches: z.ZodOptional<z.ZodArray<z.ZodObject<{
11300
+ line: z.ZodNumber;
11301
+ has: z.ZodString;
11302
+ name: z.ZodString;
11303
+ ids: z.ZodArray<z.ZodString>;
11304
+ owner: z.ZodOptional<z.ZodString>;
11305
+ receivers: z.ZodArray<z.ZodObject<{
11306
+ id: z.ZodString;
11307
+ kind: z.ZodString;
11308
+ owner: z.ZodOptional<z.ZodString>;
11309
+ events: z.ZodOptional<z.ZodBoolean>;
11310
+ }, z.core.$strip>>;
11311
+ further: z.ZodNumber;
11312
+ }, z.core.$strip>>>;
11313
+ operations: z.ZodOptional<z.ZodArray<z.ZodObject<{
11314
+ line: z.ZodNumber;
11315
+ has: z.ZodString;
11316
+ }, z.core.$strip>>>;
10159
11317
  breaks: z.ZodNumber;
10160
11318
  mayBreak: z.ZodNumber;
10161
11319
  byAi: z.ZodOptional<z.ZodNumber>;
@@ -10307,9 +11465,55 @@ export declare const ConformItem: z.ZodObject<{
10307
11465
  }, z.core.$strip>>;
10308
11466
  }, z.core.$strip>;
10309
11467
  export type ConformItemT = z.infer<typeof ConformItem>;
11468
+ /**
11469
+ * 3.19.0 (ADR 0206, additive): one thing a change states its code will have (an operation's
11470
+ * `sets`, a quick change's row of design.md's In the code), looked for in the verified facts of
11471
+ * the branch's commit, with its outcome, its cite and what the person does next.
11472
+ */
11473
+ export declare const ConformClaim: z.ZodObject<{
11474
+ outcome: z.ZodEnum<{
11475
+ present: "present";
11476
+ unconfirmed: "unconfirmed";
11477
+ missing: "missing";
11478
+ "present-differently": "present-differently";
11479
+ "not-checkable": "not-checkable";
11480
+ }>;
11481
+ check: z.ZodString;
11482
+ repo: z.ZodString;
11483
+ from: z.ZodObject<{
11484
+ file: z.ZodString;
11485
+ line: z.ZodNumber;
11486
+ operation: z.ZodOptional<z.ZodString>;
11487
+ task: z.ZodOptional<z.ZodString>;
11488
+ spec: z.ZodOptional<z.ZodString>;
11489
+ }, z.core.$strip>;
11490
+ expected: z.ZodString;
11491
+ found: z.ZodOptional<z.ZodString>;
11492
+ what: z.ZodString;
11493
+ at: z.ZodArray<z.ZodObject<{
11494
+ source: z.ZodEnum<{
11495
+ code: "code";
11496
+ artifact: "artifact";
11497
+ }>;
11498
+ repo: z.ZodOptional<z.ZodString>;
11499
+ path: z.ZodString;
11500
+ line: z.ZodOptional<z.ZodNumber>;
11501
+ }, z.core.$strip>>;
11502
+ why: z.ZodOptional<z.ZodString>;
11503
+ next: z.ZodString;
11504
+ fact: z.ZodOptional<z.ZodString>;
11505
+ finding: z.ZodOptional<z.ZodObject<{
11506
+ id: z.ZodString;
11507
+ state: z.ZodString;
11508
+ }, z.core.$strip>>;
11509
+ }, z.core.$strip>;
11510
+ export type ConformClaimT = z.infer<typeof ConformClaim>;
10310
11511
  /**
10311
11512
  * The newest conformance check of one repo of a change (ADR 0114), as stored in the change
10312
- * folder at conform/<repo>.yaml: the branch's commit scanned, compared with the target flows.
11513
+ * folder at conform/<repo>.yaml: the branch's commit scanned, compared with the target flows,
11514
+ * and each claim the change states for the repo (ADR 0206: each operation's `sets` in it, each
11515
+ * of a quick change's In the code rows) with one of five outcomes: present, present
11516
+ * differently, missing, not checkable or unconfirmed.
10313
11517
  */
10314
11518
  export declare const ConformRepoResult: z.ZodObject<{
10315
11519
  schemaVersion: z.ZodLiteral<1>;
@@ -10325,6 +11529,13 @@ export declare const ConformRepoResult: z.ZodObject<{
10325
11529
  missing: z.ZodNumber;
10326
11530
  stillThere: z.ZodNumber;
10327
11531
  unexpected: z.ZodNumber;
11532
+ claims: z.ZodOptional<z.ZodObject<{
11533
+ present: z.ZodNumber;
11534
+ differs: z.ZodNumber;
11535
+ missing: z.ZodNumber;
11536
+ notCheckable: z.ZodNumber;
11537
+ unconfirmed: z.ZodNumber;
11538
+ }, z.core.$strip>>;
10328
11539
  }, z.core.$strip>;
10329
11540
  items: z.ZodArray<z.ZodObject<{
10330
11541
  status: z.ZodEnum<{
@@ -10361,6 +11572,43 @@ export declare const ConformRepoResult: z.ZodObject<{
10361
11572
  state: z.ZodString;
10362
11573
  }, z.core.$strip>>;
10363
11574
  }, z.core.$strip>>;
11575
+ claims: z.ZodOptional<z.ZodArray<z.ZodObject<{
11576
+ outcome: z.ZodEnum<{
11577
+ present: "present";
11578
+ unconfirmed: "unconfirmed";
11579
+ missing: "missing";
11580
+ "present-differently": "present-differently";
11581
+ "not-checkable": "not-checkable";
11582
+ }>;
11583
+ check: z.ZodString;
11584
+ repo: z.ZodString;
11585
+ from: z.ZodObject<{
11586
+ file: z.ZodString;
11587
+ line: z.ZodNumber;
11588
+ operation: z.ZodOptional<z.ZodString>;
11589
+ task: z.ZodOptional<z.ZodString>;
11590
+ spec: z.ZodOptional<z.ZodString>;
11591
+ }, z.core.$strip>;
11592
+ expected: z.ZodString;
11593
+ found: z.ZodOptional<z.ZodString>;
11594
+ what: z.ZodString;
11595
+ at: z.ZodArray<z.ZodObject<{
11596
+ source: z.ZodEnum<{
11597
+ code: "code";
11598
+ artifact: "artifact";
11599
+ }>;
11600
+ repo: z.ZodOptional<z.ZodString>;
11601
+ path: z.ZodString;
11602
+ line: z.ZodOptional<z.ZodNumber>;
11603
+ }, z.core.$strip>>;
11604
+ why: z.ZodOptional<z.ZodString>;
11605
+ next: z.ZodString;
11606
+ fact: z.ZodOptional<z.ZodString>;
11607
+ finding: z.ZodOptional<z.ZodObject<{
11608
+ id: z.ZodString;
11609
+ state: z.ZodString;
11610
+ }, z.core.$strip>>;
11611
+ }, z.core.$strip>>>;
10364
11612
  unchecked: z.ZodArray<z.ZodObject<{
10365
11613
  flow: z.ZodString;
10366
11614
  item: z.ZodOptional<z.ZodNumber>;
@@ -10375,6 +11623,8 @@ export declare const ChangeConformance: z.ZodObject<{
10375
11623
  change: z.ZodString;
10376
11624
  title: z.ZodString;
10377
11625
  flows: z.ZodNumber;
11626
+ operations: z.ZodOptional<z.ZodNumber>;
11627
+ claims: z.ZodOptional<z.ZodNumber>;
10378
11628
  results: z.ZodArray<z.ZodObject<{
10379
11629
  schemaVersion: z.ZodLiteral<1>;
10380
11630
  change: z.ZodString;
@@ -10389,6 +11639,13 @@ export declare const ChangeConformance: z.ZodObject<{
10389
11639
  missing: z.ZodNumber;
10390
11640
  stillThere: z.ZodNumber;
10391
11641
  unexpected: z.ZodNumber;
11642
+ claims: z.ZodOptional<z.ZodObject<{
11643
+ present: z.ZodNumber;
11644
+ differs: z.ZodNumber;
11645
+ missing: z.ZodNumber;
11646
+ notCheckable: z.ZodNumber;
11647
+ unconfirmed: z.ZodNumber;
11648
+ }, z.core.$strip>>;
10392
11649
  }, z.core.$strip>;
10393
11650
  items: z.ZodArray<z.ZodObject<{
10394
11651
  status: z.ZodEnum<{
@@ -10425,6 +11682,43 @@ export declare const ChangeConformance: z.ZodObject<{
10425
11682
  state: z.ZodString;
10426
11683
  }, z.core.$strip>>;
10427
11684
  }, z.core.$strip>>;
11685
+ claims: z.ZodOptional<z.ZodArray<z.ZodObject<{
11686
+ outcome: z.ZodEnum<{
11687
+ present: "present";
11688
+ unconfirmed: "unconfirmed";
11689
+ missing: "missing";
11690
+ "present-differently": "present-differently";
11691
+ "not-checkable": "not-checkable";
11692
+ }>;
11693
+ check: z.ZodString;
11694
+ repo: z.ZodString;
11695
+ from: z.ZodObject<{
11696
+ file: z.ZodString;
11697
+ line: z.ZodNumber;
11698
+ operation: z.ZodOptional<z.ZodString>;
11699
+ task: z.ZodOptional<z.ZodString>;
11700
+ spec: z.ZodOptional<z.ZodString>;
11701
+ }, z.core.$strip>;
11702
+ expected: z.ZodString;
11703
+ found: z.ZodOptional<z.ZodString>;
11704
+ what: z.ZodString;
11705
+ at: z.ZodArray<z.ZodObject<{
11706
+ source: z.ZodEnum<{
11707
+ code: "code";
11708
+ artifact: "artifact";
11709
+ }>;
11710
+ repo: z.ZodOptional<z.ZodString>;
11711
+ path: z.ZodString;
11712
+ line: z.ZodOptional<z.ZodNumber>;
11713
+ }, z.core.$strip>>;
11714
+ why: z.ZodOptional<z.ZodString>;
11715
+ next: z.ZodString;
11716
+ fact: z.ZodOptional<z.ZodString>;
11717
+ finding: z.ZodOptional<z.ZodObject<{
11718
+ id: z.ZodString;
11719
+ state: z.ZodString;
11720
+ }, z.core.$strip>>;
11721
+ }, z.core.$strip>>>;
10428
11722
  unchecked: z.ZodArray<z.ZodObject<{
10429
11723
  flow: z.ZodString;
10430
11724
  item: z.ZodOptional<z.ZodNumber>;
@@ -10689,10 +11983,10 @@ export declare const NewChangeRequest: z.ZodObject<{
10689
11983
  export declare const ProposeScope: z.ZodEnum<{
10690
11984
  "service-desk": "service-desk";
10691
11985
  "org-pack": "org-pack";
11986
+ upgrade: "upgrade";
10692
11987
  work: "work";
10693
11988
  audit: "audit";
10694
11989
  answers: "answers";
10695
- upgrade: "upgrade";
10696
11990
  corrections: "corrections";
10697
11991
  "owner-answers": "owner-answers";
10698
11992
  baseline: "baseline";
@@ -10703,10 +11997,10 @@ export declare const ProposePlanView: z.ZodObject<{
10703
11997
  scope: z.ZodEnum<{
10704
11998
  "service-desk": "service-desk";
10705
11999
  "org-pack": "org-pack";
12000
+ upgrade: "upgrade";
10706
12001
  work: "work";
10707
12002
  audit: "audit";
10708
12003
  answers: "answers";
10709
- upgrade: "upgrade";
10710
12004
  corrections: "corrections";
10711
12005
  "owner-answers": "owner-answers";
10712
12006
  baseline: "baseline";
@@ -10722,6 +12016,15 @@ export declare const ProposePlanView: z.ZodObject<{
10722
12016
  branch: z.ZodString;
10723
12017
  title: z.ZodString;
10724
12018
  applyFirst: z.ZodOptional<z.ZodArray<z.ZodString>>;
12019
+ raisesProfile: z.ZodOptional<z.ZodArray<z.ZodObject<{
12020
+ file: z.ZodString;
12021
+ from: z.ZodNumber;
12022
+ to: z.ZodNumber;
12023
+ }, z.core.$strip>>>;
12024
+ raisesProfileUnread: z.ZodOptional<z.ZodArray<z.ZodObject<{
12025
+ file: z.ZodString;
12026
+ target: z.ZodString;
12027
+ }, z.core.$strip>>>;
10725
12028
  }, z.core.$strip>;
10726
12029
  /**
10727
12030
  * 3.0.0 (ADR 0186, review round 48): the writes to shared systems a person confirms in the app.
@@ -10792,10 +12095,10 @@ export declare const ProposeRequest: z.ZodObject<{
10792
12095
  scope: z.ZodEnum<{
10793
12096
  "service-desk": "service-desk";
10794
12097
  "org-pack": "org-pack";
12098
+ upgrade: "upgrade";
10795
12099
  work: "work";
10796
12100
  audit: "audit";
10797
12101
  answers: "answers";
10798
- upgrade: "upgrade";
10799
12102
  corrections: "corrections";
10800
12103
  "owner-answers": "owner-answers";
10801
12104
  baseline: "baseline";
@@ -13729,9 +15032,9 @@ export declare const CandidateSuggestion: z.ZodObject<{
13729
15032
  why: z.ZodEnum<{
13730
15033
  prefix: "prefix";
13731
15034
  parameter: "parameter";
15035
+ setting: "setting";
13732
15036
  "same-path": "same-path";
13733
15037
  "names-alike": "names-alike";
13734
- setting: "setting";
13735
15038
  "operation-words": "operation-words";
13736
15039
  "forwarded-path": "forwarded-path";
13737
15040
  }>;
@@ -13766,15 +15069,36 @@ export declare const CandidateCallView: z.ZodObject<{
13766
15069
  joins: z.ZodOptional<z.ZodString>;
13767
15070
  now: z.ZodOptional<z.ZodString>;
13768
15071
  pairedBy: z.ZodOptional<z.ZodString>;
15072
+ how: z.ZodOptional<z.ZodObject<{
15073
+ by: z.ZodEnum<{
15074
+ code: "code";
15075
+ gateway: "gateway";
15076
+ ai: "ai";
15077
+ path: "path";
15078
+ answer: "answer";
15079
+ paired: "paired";
15080
+ kept: "kept";
15081
+ address: "address";
15082
+ }>;
15083
+ who: z.ZodOptional<z.ZodString>;
15084
+ at: z.ZodOptional<z.ZodString>;
15085
+ question: z.ZodOptional<z.ZodString>;
15086
+ through: z.ZodOptional<z.ZodString>;
15087
+ reason: z.ZodOptional<z.ZodString>;
15088
+ }, z.core.$strip>>;
15089
+ codeNames: z.ZodOptional<z.ZodObject<{
15090
+ box: z.ZodString;
15091
+ text: z.ZodString;
15092
+ }, z.core.$strip>>;
13769
15093
  suggestion: z.ZodOptional<z.ZodObject<{
13770
15094
  api: z.ZodString;
13771
15095
  score: z.ZodNumber;
13772
15096
  why: z.ZodEnum<{
13773
15097
  prefix: "prefix";
13774
15098
  parameter: "parameter";
15099
+ setting: "setting";
13775
15100
  "same-path": "same-path";
13776
15101
  "names-alike": "names-alike";
13777
- setting: "setting";
13778
15102
  "operation-words": "operation-words";
13779
15103
  "forwarded-path": "forwarded-path";
13780
15104
  }>;
@@ -13785,9 +15109,9 @@ export declare const CandidateCallView: z.ZodObject<{
13785
15109
  why: z.ZodEnum<{
13786
15110
  prefix: "prefix";
13787
15111
  parameter: "parameter";
15112
+ setting: "setting";
13788
15113
  "same-path": "same-path";
13789
15114
  "names-alike": "names-alike";
13790
- setting: "setting";
13791
15115
  "operation-words": "operation-words";
13792
15116
  "forwarded-path": "forwarded-path";
13793
15117
  }>;
@@ -13844,15 +15168,36 @@ export declare const LinkCandidatesView: z.ZodObject<{
13844
15168
  joins: z.ZodOptional<z.ZodString>;
13845
15169
  now: z.ZodOptional<z.ZodString>;
13846
15170
  pairedBy: z.ZodOptional<z.ZodString>;
15171
+ how: z.ZodOptional<z.ZodObject<{
15172
+ by: z.ZodEnum<{
15173
+ code: "code";
15174
+ gateway: "gateway";
15175
+ ai: "ai";
15176
+ path: "path";
15177
+ answer: "answer";
15178
+ paired: "paired";
15179
+ kept: "kept";
15180
+ address: "address";
15181
+ }>;
15182
+ who: z.ZodOptional<z.ZodString>;
15183
+ at: z.ZodOptional<z.ZodString>;
15184
+ question: z.ZodOptional<z.ZodString>;
15185
+ through: z.ZodOptional<z.ZodString>;
15186
+ reason: z.ZodOptional<z.ZodString>;
15187
+ }, z.core.$strip>>;
15188
+ codeNames: z.ZodOptional<z.ZodObject<{
15189
+ box: z.ZodString;
15190
+ text: z.ZodString;
15191
+ }, z.core.$strip>>;
13847
15192
  suggestion: z.ZodOptional<z.ZodObject<{
13848
15193
  api: z.ZodString;
13849
15194
  score: z.ZodNumber;
13850
15195
  why: z.ZodEnum<{
13851
15196
  prefix: "prefix";
13852
15197
  parameter: "parameter";
15198
+ setting: "setting";
13853
15199
  "same-path": "same-path";
13854
15200
  "names-alike": "names-alike";
13855
- setting: "setting";
13856
15201
  "operation-words": "operation-words";
13857
15202
  "forwarded-path": "forwarded-path";
13858
15203
  }>;
@@ -13863,9 +15208,9 @@ export declare const LinkCandidatesView: z.ZodObject<{
13863
15208
  why: z.ZodEnum<{
13864
15209
  prefix: "prefix";
13865
15210
  parameter: "parameter";
15211
+ setting: "setting";
13866
15212
  "same-path": "same-path";
13867
15213
  "names-alike": "names-alike";
13868
- setting: "setting";
13869
15214
  "operation-words": "operation-words";
13870
15215
  "forwarded-path": "forwarded-path";
13871
15216
  }>;
@@ -14264,800 +15609,1676 @@ export declare const DecisionsView: z.ZodObject<{
14264
15609
  from: z.ZodString;
14265
15610
  }, z.core.$strip>>;
14266
15611
  }, z.core.$strip>>;
14267
- undone: z.ZodOptional<z.ZodObject<{
14268
- by: z.ZodString;
14269
- at: z.ZodString;
15612
+ undone: z.ZodOptional<z.ZodObject<{
15613
+ by: z.ZodString;
15614
+ at: z.ZodString;
15615
+ }, z.core.$strip>>;
15616
+ file: z.ZodString;
15617
+ }, z.core.$strip>>;
15618
+ problems: z.ZodDefault<z.ZodArray<z.ZodObject<{
15619
+ file: z.ZodString;
15620
+ message: z.ZodString;
15621
+ }, z.core.$strip>>>;
15622
+ }, z.core.$strip>;
15623
+ export declare const CorrectDecisionRequest: z.ZodObject<{
15624
+ item: z.ZodString;
15625
+ option: z.ZodOptional<z.ZodNumber>;
15626
+ api: z.ZodOptional<z.ZodString>;
15627
+ repo: z.ZodOptional<z.ZodString>;
15628
+ none: z.ZodOptional<z.ZodBoolean>;
15629
+ similar: z.ZodOptional<z.ZodBoolean>;
15630
+ match: z.ZodOptional<z.ZodString>;
15631
+ preview: z.ZodOptional<z.ZodBoolean>;
15632
+ }, z.core.$strip>;
15633
+ /** One item a correction's rule re-checked, and what became of it. */
15634
+ export declare const SpreadItemView: z.ZodObject<{
15635
+ item: z.ZodString;
15636
+ repo: z.ZodString;
15637
+ what: z.ZodString;
15638
+ was: z.ZodOptional<z.ZodString>;
15639
+ now: z.ZodOptional<z.ZodString>;
15640
+ change: z.ZodEnum<{
15641
+ confirmed: "confirmed";
15642
+ applied: "applied";
15643
+ reverted: "reverted";
15644
+ replaced: "replaced";
15645
+ }>;
15646
+ }, z.core.$strip>;
15647
+ export declare const CorrectDecisionResult: z.ZodObject<{
15648
+ written: z.ZodBoolean;
15649
+ batch: z.ZodOptional<z.ZodString>;
15650
+ item: z.ZodString;
15651
+ answer: z.ZodString;
15652
+ rule: z.ZodOptional<z.ZodObject<{
15653
+ kind: z.ZodEnum<{
15654
+ path: "path";
15655
+ host: "host";
15656
+ topic: "topic";
15657
+ }>;
15658
+ match: z.ZodString;
15659
+ derived: z.ZodBoolean;
15660
+ }, z.core.$strip>>;
15661
+ noRule: z.ZodOptional<z.ZodString>;
15662
+ spread: z.ZodArray<z.ZodObject<{
15663
+ item: z.ZodString;
15664
+ repo: z.ZodString;
15665
+ what: z.ZodString;
15666
+ was: z.ZodOptional<z.ZodString>;
15667
+ now: z.ZodOptional<z.ZodString>;
15668
+ change: z.ZodEnum<{
15669
+ confirmed: "confirmed";
15670
+ applied: "applied";
15671
+ reverted: "reverted";
15672
+ replaced: "replaced";
15673
+ }>;
15674
+ }, z.core.$strip>>;
15675
+ counts: z.ZodObject<{
15676
+ applied: z.ZodNumber;
15677
+ confirmed: z.ZodNumber;
15678
+ replaced: z.ZodNumber;
15679
+ reverted: z.ZodNumber;
15680
+ }, z.core.$strip>;
15681
+ makeRule: z.ZodOptional<z.ZodObject<{
15682
+ corrections: z.ZodNumber;
15683
+ shape: z.ZodString;
15684
+ repo: z.ZodString;
15685
+ line: z.ZodOptional<z.ZodString>;
15686
+ command: z.ZodOptional<z.ZodString>;
15687
+ }, z.core.$strip>>;
15688
+ files: z.ZodArray<z.ZodString>;
15689
+ verify: z.ZodArray<z.ZodString>;
15690
+ commit: z.ZodString;
15691
+ }, z.core.$strip>;
15692
+ export declare const UndoBatchResult: z.ZodObject<{
15693
+ batch: z.ZodString;
15694
+ removed: z.ZodNumber;
15695
+ restored: z.ZodNumber;
15696
+ skipped: z.ZodArray<z.ZodString>;
15697
+ files: z.ZodArray<z.ZodString>;
15698
+ verify: z.ZodArray<z.ZodString>;
15699
+ commit: z.ZodString;
15700
+ }, z.core.$strip>;
15701
+ /**
15702
+ * 2.84.0 (ADR 0181, ninth UX walk): Ask AI to propose answers as a hand-off run. The person's
15703
+ * assistant writes the proposals; Done (POST /api/runs/{runId}/done) reads them in and decides
15704
+ * from them as the AI's when runtime.yaml's decide.questions is auto, else keeps them as proposals.
15705
+ */
15706
+ export declare const QuestionsProposeView: z.ZodObject<{
15707
+ state: z.ZodEnum<{
15708
+ none: "none";
15709
+ waiting: "waiting";
15710
+ }>;
15711
+ run: z.ZodOptional<z.ZodString>;
15712
+ line: z.ZodString;
15713
+ prompt: z.ZodOptional<z.ZodString>;
15714
+ done: z.ZodOptional<z.ZodString>;
15715
+ }, z.core.$strip>;
15716
+ /** 2.84.0: GET /api/upgrade: the upgrade steps this metarepo waits on (atticus upgrade --check). */
15717
+ export declare const UpgradeView: z.ZodObject<{
15718
+ atticus: z.ZodString;
15719
+ newer: z.ZodBoolean;
15720
+ stamp: z.ZodOptional<z.ZodString>;
15721
+ pending: z.ZodArray<z.ZodObject<{
15722
+ id: z.ZodString;
15723
+ summary: z.ZodString;
15724
+ files: z.ZodArray<z.ZodString>;
15725
+ }, z.core.$strip>>;
15726
+ upgraded: z.ZodOptional<z.ZodArray<z.ZodString>>;
15727
+ newerCatalog: z.ZodOptional<z.ZodString>;
15728
+ }, z.core.$strip>;
15729
+ /**
15730
+ * 3.19.0 (ADR 0124 addendum E-ids; the review of 5cc4ce87): POST /api/upgrade confirms a step whose
15731
+ * build waits only for its removals over the limits, its hand edits or both, as `atticus upgrade
15732
+ * --allow-removals <n>` and `--discard-edits <n>` do: the counts and the plan the refused run's
15733
+ * job result gave (`confirm`), the plan worked out again under the lock; another list writes
15734
+ * nothing. Additive: no body runs it as before.
15735
+ */
15736
+ export declare const UpgradeRequest: z.ZodObject<{
15737
+ allowRemovals: z.ZodOptional<z.ZodNumber>;
15738
+ discardEdits: z.ZodOptional<z.ZodNumber>;
15739
+ plan: z.ZodOptional<z.ZodString>;
15740
+ }, z.core.$strict>;
15741
+ /**
15742
+ * 3.19.0 (ADR 0202 point 8): GET /api/status and `atticus status --json`: where a metarepo
15743
+ * stands against this Atticus, and the one thing to do about it.
15744
+ */
15745
+ export declare const StandingView: z.ZodObject<{
15746
+ atticus: z.ZodString;
15747
+ state: z.ZodEnum<{
15748
+ "no-metarepo": "no-metarepo";
15749
+ "catalog-newer": "catalog-newer";
15750
+ "atticus-behind": "atticus-behind";
15751
+ "metarepo-behind": "metarepo-behind";
15752
+ "up-to-date": "up-to-date";
15753
+ }>;
15754
+ stamp: z.ZodOptional<z.ZodString>;
15755
+ stampUnread: z.ZodOptional<z.ZodLiteral<true>>;
15756
+ catalog: z.ZodEnum<{
15757
+ none: "none";
15758
+ read: "read";
15759
+ newer: "newer";
15760
+ }>;
15761
+ catalogBuiltBy: z.ZodOptional<z.ZodString>;
15762
+ extensionNeeds: z.ZodOptional<z.ZodString>;
15763
+ pendingSteps: z.ZodNumber;
15764
+ do: z.ZodOptional<z.ZodString>;
15765
+ line: z.ZodString;
15766
+ }, z.core.$strip>;
15767
+ export type StandingViewT = z.infer<typeof StandingView>;
15768
+ /**
15769
+ * 3.5.0: what a setup edit changed, or with `preview: true` would change: the file
15770
+ * (metarepo-relative), its lines (what each was, none when added; what it is now, none when
15771
+ * removed), whether it was written, and what to do next (Propose).
15772
+ */
15773
+ export declare const FileEditView: z.ZodObject<{
15774
+ path: z.ZodString;
15775
+ changes: z.ZodArray<z.ZodObject<{
15776
+ was: z.ZodOptional<z.ZodString>;
15777
+ now: z.ZodOptional<z.ZodString>;
15778
+ }, z.core.$strip>>;
15779
+ written: z.ZodBoolean;
15780
+ note: z.ZodString;
15781
+ confirm: z.ZodOptional<z.ZodLiteral<"ai-model">>;
15782
+ }, z.core.$strip>;
15783
+ /** GET /api/setup/metarepo: whether this folder is a metarepo, and what Create would use. */
15784
+ export declare const SetupMetarepoView: z.ZodObject<{
15785
+ metarepo: z.ZodBoolean;
15786
+ root: z.ZodString;
15787
+ folder: z.ZodString;
15788
+ suggested: z.ZodObject<{
15789
+ name: z.ZodString;
15790
+ platform: z.ZodString;
15791
+ }, z.core.$strip>;
15792
+ origin: z.ZodOptional<z.ZodString>;
15793
+ metarepoId: z.ZodOptional<z.ZodString>;
15794
+ }, z.core.$strip>;
15795
+ export declare const CreateMetarepoRequest: z.ZodObject<{
15796
+ name: z.ZodString;
15797
+ platform: z.ZodString;
15798
+ owner: z.ZodOptional<z.ZodString>;
15799
+ metarepo: z.ZodOptional<z.ZodString>;
15800
+ }, z.core.$strict>;
15801
+ export declare const OpenFolderRequest: z.ZodObject<{
15802
+ path: z.ZodString;
15803
+ }, z.core.$strict>;
15804
+ export declare const OpenFolderView: z.ZodObject<{
15805
+ url: z.ZodString;
15806
+ root: z.ZodString;
15807
+ metarepo: z.ZodBoolean;
15808
+ }, z.core.$strip>;
15809
+ /** Repos to add: pasted clone URLs (one a line), or a folder of clones (repos discover's code). */
15810
+ export declare const ReposPlanRequest: z.ZodObject<{
15811
+ urls: z.ZodOptional<z.ZodString>;
15812
+ dir: z.ZodOptional<z.ZodString>;
15813
+ platform: z.ZodOptional<z.ZodString>;
15814
+ job: z.ZodOptional<z.ZodBoolean>;
15815
+ }, z.core.$strict>;
15816
+ export declare const PlannedRepoView: z.ZodObject<{
15817
+ id: z.ZodString;
15818
+ url: z.ZodString;
15819
+ given: z.ZodOptional<z.ZodString>;
15820
+ type: z.ZodString;
15821
+ defaultBranch: z.ZodOptional<z.ZodString>;
15822
+ renamed: z.ZodOptional<z.ZodObject<{
15823
+ from: z.ZodString;
15824
+ why: z.ZodString;
15825
+ }, z.core.$strip>>;
15826
+ detected: z.ZodOptional<z.ZodObject<{
15827
+ signals: z.ZodArray<z.ZodString>;
15828
+ confidence: z.ZodString;
15829
+ }, z.core.$strip>>;
15830
+ }, z.core.$strip>;
15831
+ export declare const ReposPlanView: z.ZodObject<{
15832
+ platform: z.ZodOptional<z.ZodString>;
15833
+ platforms: z.ZodArray<z.ZodString>;
15834
+ repos: z.ZodArray<z.ZodObject<{
15835
+ id: z.ZodString;
15836
+ url: z.ZodString;
15837
+ given: z.ZodOptional<z.ZodString>;
15838
+ type: z.ZodString;
15839
+ defaultBranch: z.ZodOptional<z.ZodString>;
15840
+ renamed: z.ZodOptional<z.ZodObject<{
15841
+ from: z.ZodString;
15842
+ why: z.ZodString;
15843
+ }, z.core.$strip>>;
15844
+ detected: z.ZodOptional<z.ZodObject<{
15845
+ signals: z.ZodArray<z.ZodString>;
15846
+ confidence: z.ZodString;
15847
+ }, z.core.$strip>>;
15848
+ }, z.core.$strip>>;
15849
+ listed: z.ZodArray<z.ZodObject<{
15850
+ url: z.ZodString;
15851
+ id: z.ZodString;
15852
+ }, z.core.$strip>>;
15853
+ refused: z.ZodArray<z.ZodObject<{
15854
+ given: z.ZodString;
15855
+ why: z.ZodString;
15856
+ }, z.core.$strip>>;
15857
+ skipped: z.ZodArray<z.ZodObject<{
15858
+ path: z.ZodString;
15859
+ reason: z.ZodString;
15860
+ }, z.core.$strip>>;
15861
+ }, z.core.$strip>;
15862
+ export declare const AddReposRequest: z.ZodObject<{
15863
+ platform: z.ZodOptional<z.ZodString>;
15864
+ repos: z.ZodArray<z.ZodObject<{
15865
+ id: z.ZodString;
15866
+ url: z.ZodString;
15867
+ type: z.ZodOptional<z.ZodString>;
15868
+ owner: z.ZodOptional<z.ZodString>;
15869
+ defaultBranch: z.ZodOptional<z.ZodString>;
15870
+ description: z.ZodOptional<z.ZodString>;
15871
+ }, z.core.$strict>>;
15872
+ preview: z.ZodOptional<z.ZodBoolean>;
15873
+ }, z.core.$strict>;
15874
+ export declare const RepoTypeDetectView: z.ZodObject<{
15875
+ repo: z.ZodString;
15876
+ from: z.ZodEnum<{
15877
+ files: "files";
15878
+ "repo-types": "repo-types";
15879
+ }>;
15880
+ verdict: z.ZodString;
15881
+ type: z.ZodOptional<z.ZodString>;
15882
+ signals: z.ZodOptional<z.ZodArray<z.ZodString>>;
15883
+ confidence: z.ZodOptional<z.ZodString>;
15884
+ matches: z.ZodArray<z.ZodObject<{
15885
+ type: z.ZodString;
15886
+ name: z.ZodString;
15887
+ score: z.ZodNumber;
15888
+ }, z.core.$strip>>;
15889
+ }, z.core.$strip>;
15890
+ export declare const RepoTypeRequest: z.ZodObject<{
15891
+ type: z.ZodString;
15892
+ preview: z.ZodOptional<z.ZodBoolean>;
15893
+ }, z.core.$strict>;
15894
+ export declare const AdaptersView: z.ZodObject<{
15895
+ path: z.ZodString;
15896
+ sha256: z.ZodString;
15897
+ kinds: z.ZodArray<z.ZodObject<{
15898
+ kind: z.ZodString;
15899
+ types: z.ZodArray<z.ZodString>;
15900
+ fields: z.ZodArray<z.ZodObject<{
15901
+ name: z.ZodString;
15902
+ list: z.ZodBoolean;
15903
+ }, z.core.$strip>>;
15904
+ current: z.ZodNullable<z.ZodObject<{
15905
+ type: z.ZodString;
15906
+ settings: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
14270
15907
  }, z.core.$strip>>;
14271
- file: z.ZodString;
14272
15908
  }, z.core.$strip>>;
14273
- problems: z.ZodDefault<z.ZodArray<z.ZodObject<{
14274
- file: z.ZodString;
14275
- message: z.ZodString;
14276
- }, z.core.$strip>>>;
15909
+ problems: z.ZodArray<z.ZodString>;
14277
15910
  }, z.core.$strip>;
14278
- export declare const CorrectDecisionRequest: z.ZodObject<{
14279
- item: z.ZodString;
14280
- option: z.ZodOptional<z.ZodNumber>;
14281
- api: z.ZodOptional<z.ZodString>;
14282
- repo: z.ZodOptional<z.ZodString>;
14283
- none: z.ZodOptional<z.ZodBoolean>;
14284
- similar: z.ZodOptional<z.ZodBoolean>;
14285
- match: z.ZodOptional<z.ZodString>;
15911
+ export declare const AdapterRequest: z.ZodObject<{
15912
+ value: z.ZodNullable<z.ZodObject<{
15913
+ type: z.ZodString;
15914
+ settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>>;
15915
+ }, z.core.$strict>>;
15916
+ baseSha256: z.ZodOptional<z.ZodString>;
14286
15917
  preview: z.ZodOptional<z.ZodBoolean>;
15918
+ }, z.core.$strict>;
15919
+ export declare const OrgPackFileView: z.ZodObject<{
15920
+ path: z.ZodString;
15921
+ rel: z.ZodString;
15922
+ content: z.ZodString;
15923
+ sha256: z.ZodString;
15924
+ exists: z.ZodBoolean;
15925
+ checked: z.ZodBoolean;
14287
15926
  }, z.core.$strip>;
14288
- /** One item a correction's rule re-checked, and what became of it. */
14289
- export declare const SpreadItemView: z.ZodObject<{
14290
- item: z.ZodString;
14291
- repo: z.ZodString;
14292
- what: z.ZodString;
14293
- was: z.ZodOptional<z.ZodString>;
14294
- now: z.ZodOptional<z.ZodString>;
14295
- change: z.ZodEnum<{
14296
- confirmed: "confirmed";
14297
- applied: "applied";
14298
- reverted: "reverted";
14299
- replaced: "replaced";
14300
- }>;
15927
+ export declare const OrgPackFileRequest: z.ZodObject<{
15928
+ path: z.ZodString;
15929
+ content: z.ZodString;
15930
+ baseSha256: z.ZodString;
15931
+ preview: z.ZodOptional<z.ZodBoolean>;
15932
+ confirmation: z.ZodOptional<z.ZodString>;
15933
+ }, z.core.$strict>;
15934
+ export declare const PatternRequest: z.ZodObject<{
15935
+ code: z.ZodString;
15936
+ name: z.ZodString;
15937
+ definition: z.ZodString;
15938
+ interaction: z.ZodString;
15939
+ route: z.ZodString;
15940
+ targetType: z.ZodString;
15941
+ controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
15942
+ source: z.ZodString;
15943
+ version: z.ZodOptional<z.ZodString>;
15944
+ status: z.ZodOptional<z.ZodString>;
15945
+ preview: z.ZodOptional<z.ZodBoolean>;
15946
+ }, z.core.$strict>;
15947
+ export declare const SourceRequest: z.ZodObject<{
15948
+ type: z.ZodString;
15949
+ location: z.ZodString;
15950
+ id: z.ZodOptional<z.ZodString>;
15951
+ path: z.ZodOptional<z.ZodString>;
15952
+ ref: z.ZodOptional<z.ZodString>;
15953
+ preview: z.ZodOptional<z.ZodBoolean>;
15954
+ }, z.core.$strict>;
15955
+ export type FileEditViewT = z.infer<typeof FileEditView>;
15956
+ export type SetupMetarepoViewT = z.infer<typeof SetupMetarepoView>;
15957
+ export type ReposPlanViewT = z.infer<typeof ReposPlanView>;
15958
+ export type PlannedRepoViewT = z.infer<typeof PlannedRepoView>;
15959
+ export type RepoTypeDetectViewT = z.infer<typeof RepoTypeDetectView>;
15960
+ export type AdaptersViewT = z.infer<typeof AdaptersView>;
15961
+ export type OrgPackFileViewT = z.infer<typeof OrgPackFileView>;
15962
+ export type OpenFolderViewT = z.infer<typeof OpenFolderView>;
15963
+ export declare const ConnectLinksRequest: z.ZodObject<{
15964
+ from: z.ZodString;
15965
+ to: z.ZodObject<{
15966
+ repo: z.ZodOptional<z.ZodString>;
15967
+ system: z.ZodOptional<z.ZodString>;
15968
+ }, z.core.$strict>;
15969
+ pairs: z.ZodDefault<z.ZodArray<z.ZodObject<{
15970
+ call: z.ZodString;
15971
+ api: z.ZodString;
15972
+ reason: z.ZodOptional<z.ZodString>;
15973
+ }, z.core.$strip>>>;
15974
+ rule: z.ZodOptional<z.ZodBoolean>;
15975
+ preview: z.ZodOptional<z.ZodBoolean>;
15976
+ job: z.ZodOptional<z.ZodBoolean>;
14301
15977
  }, z.core.$strip>;
14302
- export declare const CorrectDecisionResult: z.ZodObject<{
15978
+ export declare const ConnectLinksResult: z.ZodObject<{
14303
15979
  written: z.ZodBoolean;
14304
- batch: z.ZodOptional<z.ZodString>;
14305
- item: z.ZodString;
14306
- answer: z.ZodString;
15980
+ file: z.ZodString;
15981
+ lines: z.ZodArray<z.ZodString>;
14307
15982
  rule: z.ZodOptional<z.ZodObject<{
14308
- kind: z.ZodEnum<{
14309
- path: "path";
14310
- host: "host";
14311
- topic: "topic";
14312
- }>;
15983
+ question: z.ZodString;
14313
15984
  match: z.ZodString;
14314
- derived: z.ZodBoolean;
15985
+ target: z.ZodString;
14315
15986
  }, z.core.$strip>>;
14316
- noRule: z.ZodOptional<z.ZodString>;
14317
- spread: z.ZodArray<z.ZodObject<{
14318
- item: z.ZodString;
14319
- repo: z.ZodString;
14320
- what: z.ZodString;
14321
- was: z.ZodOptional<z.ZodString>;
14322
- now: z.ZodOptional<z.ZodString>;
14323
- change: z.ZodEnum<{
14324
- confirmed: "confirmed";
14325
- applied: "applied";
14326
- reverted: "reverted";
14327
- replaced: "replaced";
14328
- }>;
15987
+ preview: z.ZodOptional<z.ZodUnknown>;
15988
+ verify: z.ZodString;
15989
+ commit: z.ZodString;
15990
+ }, z.core.$strip>;
15991
+ export declare const UndoCorrectionRequest: z.ZodObject<{
15992
+ line: z.ZodString;
15993
+ }, z.core.$strip>;
15994
+ export declare const LineChangeView: z.ZodObject<{
15995
+ was: z.ZodOptional<z.ZodString>;
15996
+ now: z.ZodOptional<z.ZodString>;
15997
+ }, z.core.$strip>;
15998
+ /** G2: a repo's owner and system, and what each can be set to. */
15999
+ export declare const RepoOwnerView: z.ZodObject<{
16000
+ repo: z.ZodString;
16001
+ owner: z.ZodString;
16002
+ system: z.ZodOptional<z.ZodString>;
16003
+ file: z.ZodString;
16004
+ teams: z.ZodArray<z.ZodObject<{
16005
+ id: z.ZodString;
16006
+ name: z.ZodString;
16007
+ }, z.core.$strip>>;
16008
+ systems: z.ZodArray<z.ZodObject<{
16009
+ id: z.ZodString;
16010
+ name: z.ZodString;
16011
+ }, z.core.$strip>>;
16012
+ }, z.core.$strip>;
16013
+ export declare const SetRepoOwnerRequest: z.ZodObject<{
16014
+ owner: z.ZodOptional<z.ZodString>;
16015
+ system: z.ZodOptional<z.ZodString>;
16016
+ addTeam: z.ZodOptional<z.ZodObject<{
16017
+ id: z.ZodString;
16018
+ name: z.ZodString;
16019
+ }, z.core.$strip>>;
16020
+ preview: z.ZodOptional<z.ZodBoolean>;
16021
+ }, z.core.$strip>;
16022
+ export declare const SetRepoOwnerResult: z.ZodObject<{
16023
+ written: z.ZodBoolean;
16024
+ files: z.ZodArray<z.ZodObject<{
16025
+ file: z.ZodString;
16026
+ changes: z.ZodArray<z.ZodObject<{
16027
+ was: z.ZodOptional<z.ZodString>;
16028
+ now: z.ZodOptional<z.ZodString>;
16029
+ }, z.core.$strip>>;
16030
+ }, z.core.$strip>>;
16031
+ verify: z.ZodString;
16032
+ commit: z.ZodString;
16033
+ }, z.core.$strip>;
16034
+ /** G3: a link the code can't show, declared on the canvas. */
16035
+ export declare const DeclareLinkRequest: z.ZodDiscriminatedUnion<[z.ZodObject<{
16036
+ kind: z.ZodLiteral<"topic">;
16037
+ system: z.ZodString;
16038
+ topic: z.ZodString;
16039
+ side: z.ZodEnum<{
16040
+ publishes: "publishes";
16041
+ listens: "listens";
16042
+ }>;
16043
+ preview: z.ZodOptional<z.ZodBoolean>;
16044
+ }, z.core.$strip>, z.ZodObject<{
16045
+ kind: z.ZodLiteral<"call">;
16046
+ system: z.ZodString;
16047
+ route: z.ZodOptional<z.ZodString>;
16048
+ routes: z.ZodOptional<z.ZodArray<z.ZodString>>;
16049
+ preview: z.ZodOptional<z.ZodBoolean>;
16050
+ }, z.core.$strip>], "kind">;
16051
+ /** 3.17 (ADR 0200): a gateway route a system can be declared to call. */
16052
+ export declare const DeclarableRouteView: z.ZodObject<{
16053
+ id: z.ZodString;
16054
+ method: z.ZodOptional<z.ZodString>;
16055
+ path: z.ZodString;
16056
+ handler: z.ZodOptional<z.ZodString>;
16057
+ at: z.ZodString;
16058
+ say: z.ZodString;
16059
+ declared: z.ZodOptional<z.ZodBoolean>;
16060
+ also: z.ZodOptional<z.ZodArray<z.ZodString>>;
16061
+ }, z.core.$strip>;
16062
+ /**
16063
+ * 3.17 (ADR 0200): what a system can be declared to call. `gateways`: the repos that have
16064
+ * gateway routes. `target`: the repo asked about, its routes by path then method, or
16065
+ * `gateway: false` for a repo with none (a declared call lands only on a gateway route).
16066
+ */
16067
+ export declare const DeclarableRoutesView: z.ZodObject<{
16068
+ system: z.ZodString;
16069
+ inProfile: z.ZodBoolean;
16070
+ gateways: z.ZodArray<z.ZodObject<{
16071
+ repo: z.ZodString;
16072
+ routes: z.ZodNumber;
14329
16073
  }, z.core.$strip>>;
14330
- counts: z.ZodObject<{
14331
- applied: z.ZodNumber;
14332
- confirmed: z.ZodNumber;
14333
- replaced: z.ZodNumber;
14334
- reverted: z.ZodNumber;
14335
- }, z.core.$strip>;
14336
- makeRule: z.ZodOptional<z.ZodObject<{
14337
- corrections: z.ZodNumber;
14338
- shape: z.ZodString;
16074
+ target: z.ZodOptional<z.ZodObject<{
14339
16075
  repo: z.ZodString;
14340
- line: z.ZodOptional<z.ZodString>;
14341
- command: z.ZodOptional<z.ZodString>;
16076
+ gateway: z.ZodBoolean;
16077
+ routes: z.ZodArray<z.ZodObject<{
16078
+ id: z.ZodString;
16079
+ method: z.ZodOptional<z.ZodString>;
16080
+ path: z.ZodString;
16081
+ handler: z.ZodOptional<z.ZodString>;
16082
+ at: z.ZodString;
16083
+ say: z.ZodString;
16084
+ declared: z.ZodOptional<z.ZodBoolean>;
16085
+ also: z.ZodOptional<z.ZodArray<z.ZodString>>;
16086
+ }, z.core.$strip>>;
16087
+ entries: z.ZodNumber;
16088
+ type: z.ZodOptional<z.ZodString>;
16089
+ manifest: z.ZodOptional<z.ZodString>;
16090
+ looksLikeGateway: z.ZodOptional<z.ZodBoolean>;
16091
+ notRead: z.ZodOptional<z.ZodObject<{
16092
+ why: z.ZodEnum<{
16093
+ "not-read": "not-read";
16094
+ unverified: "unverified";
16095
+ }>;
16096
+ command: z.ZodString;
16097
+ }, z.core.$strip>>;
14342
16098
  }, z.core.$strip>>;
14343
- files: z.ZodArray<z.ZodString>;
14344
- verify: z.ZodArray<z.ZodString>;
14345
- commit: z.ZodString;
14346
16099
  }, z.core.$strip>;
14347
- export declare const UndoBatchResult: z.ZodObject<{
14348
- batch: z.ZodString;
14349
- removed: z.ZodNumber;
14350
- restored: z.ZodNumber;
14351
- skipped: z.ZodArray<z.ZodString>;
14352
- files: z.ZodArray<z.ZodString>;
14353
- verify: z.ZodArray<z.ZodString>;
16100
+ export declare const FileChangeResult: z.ZodObject<{
16101
+ written: z.ZodBoolean;
16102
+ files: z.ZodArray<z.ZodObject<{
16103
+ file: z.ZodString;
16104
+ changes: z.ZodArray<z.ZodObject<{
16105
+ was: z.ZodOptional<z.ZodString>;
16106
+ now: z.ZodOptional<z.ZodString>;
16107
+ }, z.core.$strip>>;
16108
+ }, z.core.$strip>>;
16109
+ verify: z.ZodString;
14354
16110
  commit: z.ZodString;
16111
+ created: z.ZodOptional<z.ZodObject<{
16112
+ system: z.ZodString;
16113
+ file: z.ZodString;
16114
+ }, z.core.$strip>>;
16115
+ removed: z.ZodOptional<z.ZodObject<{
16116
+ system: z.ZodString;
16117
+ file: z.ZodString;
16118
+ }, z.core.$strip>>;
14355
16119
  }, z.core.$strip>;
14356
16120
  /**
14357
- * 2.84.0 (ADR 0181, ninth UX walk): Ask AI to propose answers as a hand-off run. The person's
14358
- * assistant writes the proposals; Done (POST /api/runs/{runId}/done) reads them in and decides
14359
- * from them as the AI's when runtime.yaml's decide.questions is auto, else keeps them as proposals.
16121
+ * ADR 0179: a stroke drawn on the canvas for a change (a call, a topic, a table, a step removed
16122
+ * or sent elsewhere, one taken back), checked in full by the planner's Stroke schema.
14360
16123
  */
14361
- export declare const QuestionsProposeView: z.ZodObject<{
14362
- state: z.ZodEnum<{
14363
- none: "none";
14364
- waiting: "waiting";
14365
- }>;
14366
- run: z.ZodOptional<z.ZodString>;
14367
- line: z.ZodString;
14368
- prompt: z.ZodOptional<z.ZodString>;
14369
- done: z.ZodOptional<z.ZodString>;
16124
+ export declare const SketchStrokeRequest: z.ZodObject<{
16125
+ stroke: z.ZodObject<{
16126
+ kind: z.ZodEnum<{
16127
+ table: "table";
16128
+ call: "call";
16129
+ retire: "retire";
16130
+ topic: "topic";
16131
+ undo: "undo";
16132
+ remove: "remove";
16133
+ retarget: "retarget";
16134
+ }>;
16135
+ }, z.core.$loose>;
16136
+ preview: z.ZodOptional<z.ZodBoolean>;
16137
+ expect: z.ZodOptional<z.ZodString>;
14370
16138
  }, z.core.$strip>;
14371
- /** 2.84.0: GET /api/upgrade: the upgrade steps this metarepo waits on (atticus upgrade --check). */
14372
- export declare const UpgradeView: z.ZodObject<{
14373
- atticus: z.ZodString;
14374
- newer: z.ZodBoolean;
14375
- stamp: z.ZodOptional<z.ZodString>;
14376
- pending: z.ZodArray<z.ZodObject<{
14377
- id: z.ZodString;
14378
- summary: z.ZodString;
14379
- files: z.ZodArray<z.ZodString>;
16139
+ export declare const SketchResult: z.ZodObject<{
16140
+ written: z.ZodBoolean;
16141
+ files: z.ZodArray<z.ZodObject<{
16142
+ file: z.ZodString;
16143
+ changes: z.ZodArray<z.ZodObject<{
16144
+ was: z.ZodOptional<z.ZodString>;
16145
+ now: z.ZodOptional<z.ZodString>;
16146
+ }, z.core.$strip>>;
14380
16147
  }, z.core.$strip>>;
14381
- upgraded: z.ZodOptional<z.ZodArray<z.ZodString>>;
14382
- newerCatalog: z.ZodOptional<z.ZodString>;
14383
- }, z.core.$strip>;
14384
- /**
14385
- * 3.5.0: what a setup edit changed, or with `preview: true` would change: the file
14386
- * (metarepo-relative), its lines (what each was, none when added; what it is now, none when
14387
- * removed), whether it was written, and what to do next (Propose).
14388
- */
14389
- export declare const FileEditView: z.ZodObject<{
14390
- path: z.ZodString;
14391
- changes: z.ZodArray<z.ZodObject<{
14392
- was: z.ZodOptional<z.ZodString>;
14393
- now: z.ZodOptional<z.ZodString>;
16148
+ problem: z.ZodOptional<z.ZodString>;
16149
+ pick: z.ZodOptional<z.ZodObject<{
16150
+ flows: z.ZodArray<z.ZodObject<{
16151
+ id: z.ZodString;
16152
+ name: z.ZodString;
16153
+ }, z.core.$strip>>;
14394
16154
  }, z.core.$strip>>;
14395
- written: z.ZodBoolean;
14396
- note: z.ZodString;
14397
- confirm: z.ZodOptional<z.ZodLiteral<"ai-model">>;
16155
+ map: z.ZodOptional<z.ZodObject<{
16156
+ change: z.ZodString;
16157
+ title: z.ZodString;
16158
+ source: z.ZodString;
16159
+ groups: z.ZodArray<z.ZodObject<{
16160
+ id: z.ZodString;
16161
+ label: z.ZodString;
16162
+ kind: z.ZodEnum<{
16163
+ system: "system";
16164
+ datastore: "datastore";
16165
+ }>;
16166
+ boundary: z.ZodOptional<z.ZodEnum<{
16167
+ product: "product";
16168
+ internal: "internal";
16169
+ vendor: "vendor";
16170
+ }>>;
16171
+ legend: z.ZodOptional<z.ZodEnum<{
16172
+ new: "new";
16173
+ modify: "modify";
16174
+ retire: "retire";
16175
+ }>>;
16176
+ }, z.core.$strip>>;
16177
+ nodes: z.ZodArray<z.ZodObject<{
16178
+ id: z.ZodString;
16179
+ label: z.ZodString;
16180
+ kind: z.ZodEnum<{
16181
+ system: "system";
16182
+ component: "component";
16183
+ table: "table";
16184
+ box: "box";
16185
+ topic: "topic";
16186
+ }>;
16187
+ boundary: z.ZodOptional<z.ZodEnum<{
16188
+ product: "product";
16189
+ internal: "internal";
16190
+ vendor: "vendor";
16191
+ }>>;
16192
+ legend: z.ZodOptional<z.ZodEnum<{
16193
+ new: "new";
16194
+ modify: "modify";
16195
+ retire: "retire";
16196
+ }>>;
16197
+ group: z.ZodOptional<z.ZodString>;
16198
+ }, z.core.$strip>>;
16199
+ edges: z.ZodArray<z.ZodObject<{
16200
+ id: z.ZodString;
16201
+ from: z.ZodString;
16202
+ to: z.ZodString;
16203
+ label: z.ZodString;
16204
+ async: z.ZodBoolean;
16205
+ legend: z.ZodOptional<z.ZodEnum<{
16206
+ new: "new";
16207
+ modify: "modify";
16208
+ retire: "retire";
16209
+ }>>;
16210
+ }, z.core.$strip>>;
16211
+ mermaid: z.ZodString;
16212
+ flows: z.ZodNumber;
16213
+ from: z.ZodOptional<z.ZodEnum<{
16214
+ design: "design";
16215
+ tasks: "tasks";
16216
+ }>>;
16217
+ rows: z.ZodOptional<z.ZodNumber>;
16218
+ problems: z.ZodArray<z.ZodString>;
16219
+ }, z.core.$strip>>;
16220
+ drawn: z.ZodArray<z.ZodObject<{
16221
+ flow: z.ZodString;
16222
+ index: z.ZodNumber;
16223
+ what: z.ZodString;
16224
+ by: z.ZodOptional<z.ZodString>;
16225
+ }, z.core.$strip>>;
16226
+ commit: z.ZodString;
16227
+ fingerprint: z.ZodOptional<z.ZodString>;
14398
16228
  }, z.core.$strip>;
14399
- /** GET /api/setup/metarepo: whether this folder is a metarepo, and what Create would use. */
14400
- export declare const SetupMetarepoView: z.ZodObject<{
14401
- metarepo: z.ZodBoolean;
14402
- root: z.ZodString;
14403
- folder: z.ZodString;
14404
- suggested: z.ZodObject<{
14405
- name: z.ZodString;
14406
- platform: z.ZodString;
14407
- }, z.core.$strip>;
14408
- origin: z.ZodOptional<z.ZodString>;
14409
- metarepoId: z.ZodOptional<z.ZodString>;
16229
+ export declare const UndeclareLinkRequest: z.ZodObject<{
16230
+ kind: z.ZodEnum<{
16231
+ call: "call";
16232
+ topic: "topic";
16233
+ }>;
16234
+ system: z.ZodString;
16235
+ value: z.ZodString;
14410
16236
  }, z.core.$strip>;
14411
- export declare const CreateMetarepoRequest: z.ZodObject<{
16237
+ /** G3: what can be added to the picture: repos (read or not), systems and teams. */
16238
+ /** ADR 0180: a component type as the app shows it (the org pack's shape, plus its source and notes). */
16239
+ export declare const ComponentTypeView: z.ZodObject<{
16240
+ id: z.ZodString;
14412
16241
  name: z.ZodString;
14413
- platform: z.ZodString;
16242
+ description: z.ZodString;
14414
16243
  owner: z.ZodOptional<z.ZodString>;
14415
- metarepo: z.ZodOptional<z.ZodString>;
14416
- }, z.core.$strict>;
14417
- export declare const OpenFolderRequest: z.ZodObject<{
14418
- path: z.ZodString;
14419
- }, z.core.$strict>;
14420
- export declare const OpenFolderView: z.ZodObject<{
14421
- url: z.ZodString;
14422
- root: z.ZodString;
14423
- metarepo: z.ZodBoolean;
14424
- }, z.core.$strip>;
14425
- /** Repos to add: pasted clone URLs (one a line), or a folder of clones (repos discover's code). */
14426
- export declare const ReposPlanRequest: z.ZodObject<{
14427
- urls: z.ZodOptional<z.ZodString>;
14428
- dir: z.ZodOptional<z.ZodString>;
14429
- platform: z.ZodOptional<z.ZodString>;
14430
- job: z.ZodOptional<z.ZodBoolean>;
14431
- }, z.core.$strict>;
14432
- export declare const PlannedRepoView: z.ZodObject<{
14433
- id: z.ZodString;
14434
- url: z.ZodString;
14435
- given: z.ZodOptional<z.ZodString>;
14436
- type: z.ZodString;
14437
- defaultBranch: z.ZodOptional<z.ZodString>;
14438
- renamed: z.ZodOptional<z.ZodObject<{
14439
- from: z.ZodString;
14440
- why: z.ZodString;
16244
+ source: z.ZodEnum<{
16245
+ "org-pack": "org-pack";
16246
+ builtin: "builtin";
16247
+ }>;
16248
+ signals: z.ZodArray<z.ZodObject<{
16249
+ kind: z.ZodString;
16250
+ value: z.ZodString;
16251
+ why: z.ZodOptional<z.ZodString>;
14441
16252
  }, z.core.$strip>>;
14442
- detected: z.ZodOptional<z.ZodObject<{
14443
- signals: z.ZodArray<z.ZodString>;
14444
- confidence: z.ZodString;
16253
+ runsOn: z.ZodOptional<z.ZodObject<{
16254
+ platform: z.ZodOptional<z.ZodString>;
16255
+ cloud: z.ZodOptional<z.ZodString>;
16256
+ framework: z.ZodOptional<z.ZodString>;
16257
+ }, z.core.$strip>>;
16258
+ draws: z.ZodOptional<z.ZodObject<{
16259
+ shape: z.ZodOptional<z.ZodString>;
16260
+ colour: z.ZodOptional<z.ZodString>;
16261
+ badge: z.ZodOptional<z.ZodString>;
14445
16262
  }, z.core.$strip>>;
16263
+ must: z.ZodArray<z.ZodString>;
16264
+ mustNot: z.ZodArray<z.ZodString>;
16265
+ notes: z.ZodOptional<z.ZodString>;
16266
+ file: z.ZodOptional<z.ZodString>;
14446
16267
  }, z.core.$strip>;
14447
- export declare const ReposPlanView: z.ZodObject<{
14448
- platform: z.ZodOptional<z.ZodString>;
14449
- platforms: z.ZodArray<z.ZodString>;
14450
- repos: z.ZodArray<z.ZodObject<{
16268
+ export declare const ComponentTypesView: z.ZodObject<{
16269
+ types: z.ZodArray<z.ZodObject<{
14451
16270
  id: z.ZodString;
14452
- url: z.ZodString;
14453
- given: z.ZodOptional<z.ZodString>;
14454
- type: z.ZodString;
14455
- defaultBranch: z.ZodOptional<z.ZodString>;
14456
- renamed: z.ZodOptional<z.ZodObject<{
14457
- from: z.ZodString;
14458
- why: z.ZodString;
16271
+ name: z.ZodString;
16272
+ description: z.ZodString;
16273
+ owner: z.ZodOptional<z.ZodString>;
16274
+ source: z.ZodEnum<{
16275
+ "org-pack": "org-pack";
16276
+ builtin: "builtin";
16277
+ }>;
16278
+ signals: z.ZodArray<z.ZodObject<{
16279
+ kind: z.ZodString;
16280
+ value: z.ZodString;
16281
+ why: z.ZodOptional<z.ZodString>;
14459
16282
  }, z.core.$strip>>;
14460
- detected: z.ZodOptional<z.ZodObject<{
14461
- signals: z.ZodArray<z.ZodString>;
14462
- confidence: z.ZodString;
16283
+ runsOn: z.ZodOptional<z.ZodObject<{
16284
+ platform: z.ZodOptional<z.ZodString>;
16285
+ cloud: z.ZodOptional<z.ZodString>;
16286
+ framework: z.ZodOptional<z.ZodString>;
14463
16287
  }, z.core.$strip>>;
16288
+ draws: z.ZodOptional<z.ZodObject<{
16289
+ shape: z.ZodOptional<z.ZodString>;
16290
+ colour: z.ZodOptional<z.ZodString>;
16291
+ badge: z.ZodOptional<z.ZodString>;
16292
+ }, z.core.$strip>>;
16293
+ must: z.ZodArray<z.ZodString>;
16294
+ mustNot: z.ZodArray<z.ZodString>;
16295
+ notes: z.ZodOptional<z.ZodString>;
16296
+ file: z.ZodOptional<z.ZodString>;
14464
16297
  }, z.core.$strip>>;
14465
- listed: z.ZodArray<z.ZodObject<{
14466
- url: z.ZodString;
14467
- id: z.ZodString;
14468
- }, z.core.$strip>>;
14469
- refused: z.ZodArray<z.ZodObject<{
14470
- given: z.ZodString;
14471
- why: z.ZodString;
14472
- }, z.core.$strip>>;
14473
- skipped: z.ZodArray<z.ZodObject<{
14474
- path: z.ZodString;
14475
- reason: z.ZodString;
14476
- }, z.core.$strip>>;
16298
+ folder: z.ZodString;
14477
16299
  }, z.core.$strip>;
14478
- export declare const AddReposRequest: z.ZodObject<{
14479
- platform: z.ZodOptional<z.ZodString>;
16300
+ export declare const AddableView: z.ZodObject<{
14480
16301
  repos: z.ZodArray<z.ZodObject<{
14481
16302
  id: z.ZodString;
14482
- url: z.ZodString;
14483
- type: z.ZodOptional<z.ZodString>;
14484
- owner: z.ZodOptional<z.ZodString>;
14485
- defaultBranch: z.ZodOptional<z.ZodString>;
14486
- description: z.ZodOptional<z.ZodString>;
14487
- }, z.core.$strict>>;
14488
- preview: z.ZodOptional<z.ZodBoolean>;
14489
- }, z.core.$strict>;
14490
- export declare const RepoTypeDetectView: z.ZodObject<{
14491
- repo: z.ZodString;
14492
- from: z.ZodEnum<{
14493
- files: "files";
14494
- "repo-types": "repo-types";
14495
- }>;
14496
- verdict: z.ZodString;
14497
- type: z.ZodOptional<z.ZodString>;
14498
- signals: z.ZodOptional<z.ZodArray<z.ZodString>>;
14499
- confidence: z.ZodOptional<z.ZodString>;
14500
- matches: z.ZodArray<z.ZodObject<{
14501
- type: z.ZodString;
14502
16303
  name: z.ZodString;
14503
- score: z.ZodNumber;
16304
+ read: z.ZodBoolean;
14504
16305
  }, z.core.$strip>>;
14505
- }, z.core.$strip>;
14506
- export declare const RepoTypeRequest: z.ZodObject<{
14507
- type: z.ZodString;
14508
- preview: z.ZodOptional<z.ZodBoolean>;
14509
- }, z.core.$strict>;
14510
- export declare const AdaptersView: z.ZodObject<{
14511
- path: z.ZodString;
14512
- sha256: z.ZodString;
14513
- kinds: z.ZodArray<z.ZodObject<{
14514
- kind: z.ZodString;
14515
- types: z.ZodArray<z.ZodString>;
14516
- fields: z.ZodArray<z.ZodObject<{
14517
- name: z.ZodString;
14518
- list: z.ZodBoolean;
14519
- }, z.core.$strip>>;
14520
- current: z.ZodNullable<z.ZodObject<{
14521
- type: z.ZodString;
14522
- settings: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
14523
- }, z.core.$strip>>;
16306
+ systems: z.ZodArray<z.ZodObject<{
16307
+ id: z.ZodString;
16308
+ name: z.ZodString;
16309
+ boundary: z.ZodOptional<z.ZodString>;
16310
+ }, z.core.$strip>>;
16311
+ teams: z.ZodArray<z.ZodObject<{
16312
+ id: z.ZodString;
16313
+ name: z.ZodString;
14524
16314
  }, z.core.$strip>>;
14525
- problems: z.ZodArray<z.ZodString>;
14526
- }, z.core.$strip>;
14527
- export declare const AdapterRequest: z.ZodObject<{
14528
- value: z.ZodNullable<z.ZodObject<{
14529
- type: z.ZodString;
14530
- settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>>;
14531
- }, z.core.$strict>>;
14532
- baseSha256: z.ZodOptional<z.ZodString>;
14533
- preview: z.ZodOptional<z.ZodBoolean>;
14534
- }, z.core.$strict>;
14535
- export declare const OrgPackFileView: z.ZodObject<{
14536
- path: z.ZodString;
14537
- rel: z.ZodString;
14538
- content: z.ZodString;
14539
- sha256: z.ZodString;
14540
- exists: z.ZodBoolean;
14541
- checked: z.ZodBoolean;
14542
16315
  }, z.core.$strip>;
14543
- export declare const OrgPackFileRequest: z.ZodObject<{
14544
- path: z.ZodString;
14545
- content: z.ZodString;
14546
- baseSha256: z.ZodString;
14547
- preview: z.ZodOptional<z.ZodBoolean>;
14548
- confirmation: z.ZodOptional<z.ZodString>;
14549
- }, z.core.$strict>;
14550
- export declare const PatternRequest: z.ZodObject<{
14551
- code: z.ZodString;
16316
+ export declare const AddSystemRequest: z.ZodObject<{
16317
+ id: z.ZodString;
14552
16318
  name: z.ZodString;
14553
- definition: z.ZodString;
14554
- interaction: z.ZodString;
14555
- route: z.ZodString;
14556
- targetType: z.ZodString;
14557
- controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
14558
- source: z.ZodString;
14559
- version: z.ZodOptional<z.ZodString>;
14560
- status: z.ZodOptional<z.ZodString>;
14561
- preview: z.ZodOptional<z.ZodBoolean>;
14562
- }, z.core.$strict>;
14563
- export declare const SourceRequest: z.ZodObject<{
14564
- type: z.ZodString;
14565
- location: z.ZodString;
14566
- id: z.ZodOptional<z.ZodString>;
14567
- path: z.ZodOptional<z.ZodString>;
14568
- ref: z.ZodOptional<z.ZodString>;
14569
- preview: z.ZodOptional<z.ZodBoolean>;
14570
- }, z.core.$strict>;
14571
- export type FileEditViewT = z.infer<typeof FileEditView>;
14572
- export type SetupMetarepoViewT = z.infer<typeof SetupMetarepoView>;
14573
- export type ReposPlanViewT = z.infer<typeof ReposPlanView>;
14574
- export type PlannedRepoViewT = z.infer<typeof PlannedRepoView>;
14575
- export type RepoTypeDetectViewT = z.infer<typeof RepoTypeDetectView>;
14576
- export type AdaptersViewT = z.infer<typeof AdaptersView>;
14577
- export type OrgPackFileViewT = z.infer<typeof OrgPackFileView>;
14578
- export type OpenFolderViewT = z.infer<typeof OpenFolderView>;
14579
- export declare const ConnectLinksRequest: z.ZodObject<{
14580
- from: z.ZodString;
14581
- to: z.ZodObject<{
14582
- repo: z.ZodOptional<z.ZodString>;
14583
- system: z.ZodOptional<z.ZodString>;
14584
- }, z.core.$strict>;
14585
- pairs: z.ZodDefault<z.ZodArray<z.ZodObject<{
14586
- call: z.ZodString;
14587
- api: z.ZodString;
14588
- }, z.core.$strip>>>;
14589
- rule: z.ZodOptional<z.ZodBoolean>;
16319
+ boundary: z.ZodEnum<{
16320
+ internal: "internal";
16321
+ vendor: "vendor";
16322
+ }>;
16323
+ owner: z.ZodOptional<z.ZodString>;
14590
16324
  preview: z.ZodOptional<z.ZodBoolean>;
14591
- job: z.ZodOptional<z.ZodBoolean>;
14592
- }, z.core.$strip>;
14593
- export declare const ConnectLinksResult: z.ZodObject<{
14594
- written: z.ZodBoolean;
14595
- file: z.ZodString;
14596
- lines: z.ZodArray<z.ZodString>;
14597
- rule: z.ZodOptional<z.ZodObject<{
14598
- question: z.ZodString;
14599
- match: z.ZodString;
14600
- target: z.ZodString;
14601
- }, z.core.$strip>>;
14602
- preview: z.ZodOptional<z.ZodUnknown>;
14603
- verify: z.ZodString;
14604
- commit: z.ZodString;
14605
16325
  }, z.core.$strip>;
14606
- export declare const UndoCorrectionRequest: z.ZodObject<{
14607
- line: z.ZodString;
16326
+ /** G3: a box's corrections and declarations, each with what undoes it. */
16327
+ export declare const BoxCorrections: z.ZodObject<{
16328
+ items: z.ZodArray<z.ZodObject<{
16329
+ kind: z.ZodEnum<{
16330
+ link: "link";
16331
+ call: "call";
16332
+ wrong: "wrong";
16333
+ topic: "topic";
16334
+ edit: "edit";
16335
+ unlink: "unlink";
16336
+ arrow: "arrow";
16337
+ }>;
16338
+ says: z.ZodString;
16339
+ by: z.ZodOptional<z.ZodString>;
16340
+ ai: z.ZodOptional<z.ZodObject<{
16341
+ runtime: z.ZodString;
16342
+ run: z.ZodString;
16343
+ }, z.core.$strip>>;
16344
+ batch: z.ZodOptional<z.ZodString>;
16345
+ at: z.ZodOptional<z.ZodString>;
16346
+ file: z.ZodString;
16347
+ undo: z.ZodUnion<readonly [z.ZodObject<{
16348
+ repo: z.ZodString;
16349
+ line: z.ZodString;
16350
+ }, z.core.$strip>, z.ZodObject<{
16351
+ kind: z.ZodEnum<{
16352
+ call: "call";
16353
+ topic: "topic";
16354
+ }>;
16355
+ system: z.ZodString;
16356
+ value: z.ZodString;
16357
+ }, z.core.$strip>, z.ZodObject<{
16358
+ kind: z.ZodLiteral<"link">;
16359
+ from: z.ZodObject<{
16360
+ repo: z.ZodOptional<z.ZodString>;
16361
+ system: z.ZodOptional<z.ZodString>;
16362
+ }, z.core.$strict>;
16363
+ to: z.ZodObject<{
16364
+ repo: z.ZodOptional<z.ZodString>;
16365
+ system: z.ZodOptional<z.ZodString>;
16366
+ }, z.core.$strict>;
16367
+ }, z.core.$strip>]>;
16368
+ stale: z.ZodOptional<z.ZodBoolean>;
16369
+ over: z.ZodOptional<z.ZodObject<{
16370
+ box: z.ZodString;
16371
+ text: z.ZodString;
16372
+ reason: z.ZodOptional<z.ZodString>;
16373
+ }, z.core.$strip>>;
16374
+ }, z.core.$strip>>;
14608
16375
  }, z.core.$strip>;
14609
- export declare const LineChangeView: z.ZodObject<{
14610
- was: z.ZodOptional<z.ZodString>;
14611
- now: z.ZodOptional<z.ZodString>;
16376
+ /** G6 (ADR 0175): a canvas's named filters and layers, kept in the metarepo for review. */
16377
+ export declare const SavedCanvasView: z.ZodObject<{
16378
+ name: z.ZodString;
16379
+ lens: z.ZodString;
16380
+ node: z.ZodString;
16381
+ filter: z.ZodDefault<z.ZodString>;
16382
+ layers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
16383
+ overlay: z.ZodDefault<z.ZodEnum<{
16384
+ none: "none";
16385
+ questions: "questions";
16386
+ gaps: "gaps";
16387
+ }>>;
16388
+ mismatches: z.ZodDefault<z.ZodBoolean>;
16389
+ by: z.ZodOptional<z.ZodString>;
16390
+ at: z.ZodOptional<z.ZodString>;
14612
16391
  }, z.core.$strip>;
14613
- /** G2: a repo's owner and system, and what each can be set to. */
14614
- export declare const RepoOwnerView: z.ZodObject<{
14615
- repo: z.ZodString;
14616
- owner: z.ZodString;
14617
- system: z.ZodOptional<z.ZodString>;
14618
- file: z.ZodString;
14619
- teams: z.ZodArray<z.ZodObject<{
14620
- id: z.ZodString;
14621
- name: z.ZodString;
14622
- }, z.core.$strip>>;
14623
- systems: z.ZodArray<z.ZodObject<{
14624
- id: z.ZodString;
16392
+ export declare const SavedCanvasViews: z.ZodObject<{
16393
+ views: z.ZodArray<z.ZodObject<{
14625
16394
  name: z.ZodString;
16395
+ lens: z.ZodString;
16396
+ node: z.ZodString;
16397
+ filter: z.ZodDefault<z.ZodString>;
16398
+ layers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
16399
+ overlay: z.ZodDefault<z.ZodEnum<{
16400
+ none: "none";
16401
+ questions: "questions";
16402
+ gaps: "gaps";
16403
+ }>>;
16404
+ mismatches: z.ZodDefault<z.ZodBoolean>;
16405
+ by: z.ZodOptional<z.ZodString>;
16406
+ at: z.ZodOptional<z.ZodString>;
14626
16407
  }, z.core.$strip>>;
16408
+ dir: z.ZodString;
14627
16409
  }, z.core.$strip>;
14628
- export declare const SetRepoOwnerRequest: z.ZodObject<{
14629
- owner: z.ZodOptional<z.ZodString>;
14630
- system: z.ZodOptional<z.ZodString>;
14631
- addTeam: z.ZodOptional<z.ZodObject<{
14632
- id: z.ZodString;
14633
- name: z.ZodString;
14634
- }, z.core.$strip>>;
14635
- preview: z.ZodOptional<z.ZodBoolean>;
16410
+ /** G6: a cited line, as a file to open in an editor. */
16411
+ export declare const CodeLink: z.ZodObject<{
16412
+ path: z.ZodOptional<z.ZodString>;
16413
+ line: z.ZodNumber;
16414
+ vscode: z.ZodOptional<z.ZodString>;
16415
+ idea: z.ZodOptional<z.ZodString>;
16416
+ missing: z.ZodOptional<z.ZodString>;
14636
16417
  }, z.core.$strip>;
14637
- export declare const SetRepoOwnerResult: z.ZodObject<{
14638
- written: z.ZodBoolean;
14639
- files: z.ZodArray<z.ZodObject<{
14640
- file: z.ZodString;
14641
- changes: z.ZodArray<z.ZodObject<{
14642
- was: z.ZodOptional<z.ZodString>;
14643
- now: z.ZodOptional<z.ZodString>;
14644
- }, z.core.$strip>>;
14645
- }, z.core.$strip>>;
14646
- verify: z.ZodString;
14647
- commit: z.ZodString;
16418
+ export type SavedCanvasViewT = z.infer<typeof SavedCanvasView>;
16419
+ export type SavedCanvasViewsT = z.infer<typeof SavedCanvasViews>;
16420
+ export type CodeLinkT = z.infer<typeof CodeLink>;
16421
+ /** G4 from the canvas (ADR 0176): a draft reading rule for a repo's type, from a pairing. */
16422
+ export declare const RuleFromPairingRequest: z.ZodObject<{
16423
+ repo: z.ZodString;
16424
+ line: z.ZodString;
14648
16425
  }, z.core.$strip>;
14649
- /** G3: a link the code can't show, declared on the canvas. */
14650
- export declare const DeclareLinkRequest: z.ZodDiscriminatedUnion<[z.ZodObject<{
14651
- kind: z.ZodLiteral<"topic">;
14652
- system: z.ZodString;
14653
- topic: z.ZodString;
14654
- side: z.ZodEnum<{
14655
- publishes: "publishes";
14656
- listens: "listens";
14657
- }>;
14658
- preview: z.ZodOptional<z.ZodBoolean>;
14659
- }, z.core.$strip>, z.ZodObject<{
14660
- kind: z.ZodLiteral<"call">;
14661
- system: z.ZodString;
14662
- route: z.ZodOptional<z.ZodString>;
14663
- routes: z.ZodOptional<z.ZodArray<z.ZodString>>;
14664
- preview: z.ZodOptional<z.ZodBoolean>;
14665
- }, z.core.$strip>], "kind">;
14666
- /** 3.17 (ADR 0200): a gateway route a system can be declared to call. */
14667
- export declare const DeclarableRouteView: z.ZodObject<{
14668
- id: z.ZodString;
14669
- method: z.ZodOptional<z.ZodString>;
14670
- path: z.ZodString;
14671
- handler: z.ZodOptional<z.ZodString>;
16426
+ export declare const RuleFromPairingResult: z.ZodObject<{
16427
+ file: z.ZodString;
16428
+ key: z.ZodString;
16429
+ rule: z.ZodString;
16430
+ activate: z.ZodString;
16431
+ }, z.core.$strip>;
16432
+ export type RuleFromPairingResultT = z.infer<typeof RuleFromPairingResult>;
16433
+ export type DeclareLinkRequestT = z.infer<typeof DeclareLinkRequest>;
16434
+ export type FileChangeResultT = z.infer<typeof FileChangeResult>;
16435
+ export type DeclarableRouteViewT = z.infer<typeof DeclarableRouteView>;
16436
+ export type DeclarableRoutesViewT = z.infer<typeof DeclarableRoutesView>;
16437
+ export type SketchStrokeRequestT = z.infer<typeof SketchStrokeRequest>;
16438
+ export type SketchResultT = z.infer<typeof SketchResult>;
16439
+ export type AddableViewT = z.infer<typeof AddableView>;
16440
+ export type ComponentTypeViewT = z.infer<typeof ComponentTypeView>;
16441
+ export type ComponentTypesViewT = z.infer<typeof ComponentTypesView>;
16442
+ export type AddSystemRequestT = z.infer<typeof AddSystemRequest>;
16443
+ export type BoxCorrectionsT = z.infer<typeof BoxCorrections>;
16444
+ export type RepoOwnerViewT = z.infer<typeof RepoOwnerView>;
16445
+ export type SetRepoOwnerRequestT = z.infer<typeof SetRepoOwnerRequest>;
16446
+ export type SetRepoOwnerResultT = z.infer<typeof SetRepoOwnerResult>;
16447
+ export type LinkBoxT = z.infer<typeof LinkBox>;
16448
+ export type CandidateCallViewT = z.infer<typeof CandidateCallView>;
16449
+ export type CandidateApiViewT = z.infer<typeof CandidateApiView>;
16450
+ export type LinkCandidatesViewT = z.infer<typeof LinkCandidatesView>;
16451
+ export type ConnectLinksRequestT = z.infer<typeof ConnectLinksRequest>;
16452
+ export type ConnectLinksResultT = z.infer<typeof ConnectLinksResult>;
16453
+ export type MatchLinksRequestT = z.infer<typeof MatchLinksRequest>;
16454
+ export type MatchLinksViewT = z.infer<typeof MatchLinksView>;
16455
+ export type MatchProposalT = z.infer<typeof MatchProposal>;
16456
+ export type DecisionCountsT = z.infer<typeof DecisionCounts>;
16457
+ export type AiDecisionItemT = z.infer<typeof AiDecisionItem>;
16458
+ export type DecisionBatchViewT = z.infer<typeof DecisionBatchView>;
16459
+ export type DecideStateViewT = z.infer<typeof DecideStateView>;
16460
+ export type DecisionsViewT = z.infer<typeof DecisionsView>;
16461
+ export type CorrectDecisionRequestT = z.infer<typeof CorrectDecisionRequest>;
16462
+ export type SpreadItemViewT = z.infer<typeof SpreadItemView>;
16463
+ export type CorrectDecisionResultT = z.infer<typeof CorrectDecisionResult>;
16464
+ export type UndoBatchResultT = z.infer<typeof UndoBatchResult>;
16465
+ export type QuestionsProposeViewT = z.infer<typeof QuestionsProposeView>;
16466
+ export type UpgradeViewT = z.infer<typeof UpgradeView>;
16467
+ /**
16468
+ * 3.19.0 (ADR 0204): a declared arrow as the profile holds it (C6 version 3, `links`), with the
16469
+ * profile's file relative to the metarepo.
16470
+ */
16471
+ export declare const DeclaredArrowView: z.ZodObject<{
16472
+ from: z.ZodObject<{
16473
+ repo: z.ZodOptional<z.ZodString>;
16474
+ system: z.ZodOptional<z.ZodString>;
16475
+ }, z.core.$strict>;
16476
+ to: z.ZodObject<{
16477
+ repo: z.ZodOptional<z.ZodString>;
16478
+ system: z.ZodOptional<z.ZodString>;
16479
+ }, z.core.$strict>;
16480
+ why: z.ZodString;
16481
+ by: z.ZodString;
14672
16482
  at: z.ZodString;
14673
- say: z.ZodString;
14674
- declared: z.ZodOptional<z.ZodBoolean>;
14675
- also: z.ZodOptional<z.ZodArray<z.ZodString>>;
16483
+ planned: z.ZodOptional<z.ZodBoolean>;
16484
+ file: z.ZodString;
14676
16485
  }, z.core.$strip>;
14677
16486
  /**
14678
- * 3.17 (ADR 0200): what a system can be declared to call. `gateways`: the repos that have
14679
- * gateway routes. `target`: the repo asked about, its routes by path then method, or
14680
- * `gateway: false` for a repo with none (a declared call lands only on a gateway route).
16487
+ * 3.19.0 (ADR 0204 A.6): what the last "Find it in the code" said of one declared arrow, from
16488
+ * `facts/<A>.find.yaml`: told from the catalog after the build, never from the session. `facts`
16489
+ * are the call facts it rests on; `other` the box the code shows instead (`elsewhere`);
16490
+ * `rejected` the facts the verifier refused; `shape` the first found call's type, the exact
16491
+ * reason it was left (5.3) and its line, for Make this a reading rule.
14681
16492
  */
14682
- export declare const DeclarableRoutesView: z.ZodObject<{
14683
- system: z.ZodString;
14684
- inProfile: z.ZodBoolean;
14685
- gateways: z.ZodArray<z.ZodObject<{
14686
- repo: z.ZodString;
14687
- routes: z.ZodNumber;
14688
- }, z.core.$strip>>;
14689
- target: z.ZodOptional<z.ZodObject<{
14690
- repo: z.ZodString;
14691
- gateway: z.ZodBoolean;
14692
- routes: z.ZodArray<z.ZodObject<{
14693
- id: z.ZodString;
14694
- method: z.ZodOptional<z.ZodString>;
14695
- path: z.ZodString;
14696
- handler: z.ZodOptional<z.ZodString>;
14697
- at: z.ZodString;
14698
- say: z.ZodString;
14699
- declared: z.ZodOptional<z.ZodBoolean>;
14700
- also: z.ZodOptional<z.ZodArray<z.ZodString>>;
14701
- }, z.core.$strip>>;
14702
- entries: z.ZodNumber;
14703
- type: z.ZodOptional<z.ZodString>;
14704
- manifest: z.ZodOptional<z.ZodString>;
14705
- looksLikeGateway: z.ZodOptional<z.ZodBoolean>;
14706
- notRead: z.ZodOptional<z.ZodObject<{
14707
- why: z.ZodEnum<{
14708
- "not-read": "not-read";
14709
- unverified: "unverified";
14710
- }>;
14711
- command: z.ZodString;
14712
- }, z.core.$strip>>;
16493
+ export declare const FindOutcome: z.ZodEnum<{
16494
+ "not-found": "not-found";
16495
+ found: "found";
16496
+ elsewhere: "elsewhere";
16497
+ "found-loose": "found-loose";
16498
+ }>;
16499
+ export declare const FindEntryView: z.ZodObject<{
16500
+ to: z.ZodObject<{
16501
+ repo: z.ZodOptional<z.ZodString>;
16502
+ system: z.ZodOptional<z.ZodString>;
16503
+ }, z.core.$strict>;
16504
+ at: z.ZodString;
16505
+ commit: z.ZodOptional<z.ZodString>;
16506
+ outcome: z.ZodEnum<{
16507
+ "not-found": "not-found";
16508
+ found: "found";
16509
+ elsewhere: "elsewhere";
16510
+ "found-loose": "found-loose";
16511
+ }>;
16512
+ facts: z.ZodArray<z.ZodString>;
16513
+ looked: z.ZodArray<z.ZodString>;
16514
+ other: z.ZodOptional<z.ZodString>;
16515
+ rejected: z.ZodOptional<z.ZodArray<z.ZodObject<{
16516
+ fact: z.ZodString;
16517
+ why: z.ZodString;
16518
+ }, z.core.$strip>>>;
16519
+ shape: z.ZodOptional<z.ZodObject<{
16520
+ type: z.ZodString;
16521
+ why: z.ZodOptional<z.ZodString>;
16522
+ at: z.ZodString;
16523
+ value: z.ZodString;
14713
16524
  }, z.core.$strip>>;
14714
16525
  }, z.core.$strip>;
14715
- export declare const FileChangeResult: z.ZodObject<{
14716
- written: z.ZodBoolean;
14717
- files: z.ZodArray<z.ZodObject<{
14718
- file: z.ZodString;
14719
- changes: z.ZodArray<z.ZodObject<{
14720
- was: z.ZodOptional<z.ZodString>;
14721
- now: z.ZodOptional<z.ZodString>;
14722
- }, z.core.$strip>>;
14723
- }, z.core.$strip>>;
14724
- verify: z.ZodString;
14725
- commit: z.ZodString;
14726
- created: z.ZodOptional<z.ZodObject<{
14727
- system: z.ZodString;
14728
- file: z.ZodString;
14729
- }, z.core.$strip>>;
14730
- removed: z.ZodOptional<z.ZodObject<{
14731
- system: z.ZodString;
14732
- file: z.ZodString;
14733
- }, z.core.$strip>>;
16526
+ /** 3.19.0 (ADR 0204 3.1): what is missing before two boxes can be connected, each with its fix. */
16527
+ export declare const ConnectNeed: z.ZodObject<{
16528
+ need: z.ZodEnum<{
16529
+ read: "read";
16530
+ verify: "verify";
16531
+ "pick-repo": "pick-repo";
16532
+ "no-repo": "no-repo";
16533
+ "add-system": "add-system";
16534
+ }>;
16535
+ end: z.ZodEnum<{
16536
+ from: "from";
16537
+ to: "to";
16538
+ }>;
16539
+ label: z.ZodString;
16540
+ repos: z.ZodOptional<z.ZodArray<z.ZodString>>;
16541
+ command: z.ZodOptional<z.ZodString>;
14734
16542
  }, z.core.$strip>;
14735
16543
  /**
14736
- * ADR 0179: a stroke drawn on the canvas for a change (a call, a topic, a table, a step removed
14737
- * or sent elsewhere, one taken back), checked in full by the planner's Stroke schema.
16544
+ * 3.19.0 (ADR 0204 1.3, B.1, B.2): GET /api/connect, what connecting `from` to `to` is: `calls`
16545
+ * (the caller's calls that could be the callee's, in `candidates`: those going elsewhere first),
16546
+ * `connected` (code calls the callee already, `existing` of them, none loose), `declared` (the
16547
+ * profile has the arrow, `declared`), `declare` (no call of the caller could be the callee's, or
16548
+ * either end has no code) or `needs` (what is missing first). `superseded`: the arrow is declared
16549
+ * and the code now shows `calls` real calls the same way (Retire it). The direction is the
16550
+ * request's, never turned round.
14738
16551
  */
14739
- export declare const SketchStrokeRequest: z.ZodObject<{
14740
- stroke: z.ZodObject<{
14741
- kind: z.ZodEnum<{
14742
- table: "table";
14743
- call: "call";
14744
- retire: "retire";
14745
- topic: "topic";
14746
- undo: "undo";
14747
- remove: "remove";
14748
- retarget: "retarget";
16552
+ export declare const ConnectView: z.ZodObject<{
16553
+ from: z.ZodObject<{
16554
+ repo: z.ZodOptional<z.ZodString>;
16555
+ system: z.ZodOptional<z.ZodString>;
16556
+ }, z.core.$strict>;
16557
+ to: z.ZodObject<{
16558
+ repo: z.ZodOptional<z.ZodString>;
16559
+ system: z.ZodOptional<z.ZodString>;
16560
+ }, z.core.$strict>;
16561
+ fromName: z.ZodString;
16562
+ toName: z.ZodString;
16563
+ mechanism: z.ZodEnum<{
16564
+ declared: "declared";
16565
+ needs: "needs";
16566
+ calls: "calls";
16567
+ connected: "connected";
16568
+ declare: "declare";
16569
+ }>;
16570
+ needs: z.ZodArray<z.ZodObject<{
16571
+ need: z.ZodEnum<{
16572
+ read: "read";
16573
+ verify: "verify";
16574
+ "pick-repo": "pick-repo";
16575
+ "no-repo": "no-repo";
16576
+ "add-system": "add-system";
14749
16577
  }>;
14750
- }, z.core.$loose>;
14751
- preview: z.ZodOptional<z.ZodBoolean>;
14752
- expect: z.ZodOptional<z.ZodString>;
14753
- }, z.core.$strip>;
14754
- export declare const SketchResult: z.ZodObject<{
14755
- written: z.ZodBoolean;
14756
- files: z.ZodArray<z.ZodObject<{
14757
- file: z.ZodString;
14758
- changes: z.ZodArray<z.ZodObject<{
14759
- was: z.ZodOptional<z.ZodString>;
14760
- now: z.ZodOptional<z.ZodString>;
14761
- }, z.core.$strip>>;
14762
- }, z.core.$strip>>;
14763
- problem: z.ZodOptional<z.ZodString>;
14764
- pick: z.ZodOptional<z.ZodObject<{
14765
- flows: z.ZodArray<z.ZodObject<{
14766
- id: z.ZodString;
14767
- name: z.ZodString;
14768
- }, z.core.$strip>>;
16578
+ end: z.ZodEnum<{
16579
+ from: "from";
16580
+ to: "to";
16581
+ }>;
16582
+ label: z.ZodString;
16583
+ repos: z.ZodOptional<z.ZodArray<z.ZodString>>;
16584
+ command: z.ZodOptional<z.ZodString>;
14769
16585
  }, z.core.$strip>>;
14770
- map: z.ZodOptional<z.ZodObject<{
14771
- change: z.ZodString;
14772
- title: z.ZodString;
14773
- source: z.ZodString;
14774
- groups: z.ZodArray<z.ZodObject<{
14775
- id: z.ZodString;
14776
- label: z.ZodString;
14777
- kind: z.ZodEnum<{
14778
- system: "system";
14779
- datastore: "datastore";
16586
+ candidates: z.ZodOptional<z.ZodObject<{
16587
+ from: z.ZodString;
16588
+ to: z.ZodObject<{
16589
+ repo: z.ZodOptional<z.ZodString>;
16590
+ system: z.ZodOptional<z.ZodString>;
16591
+ }, z.core.$strict>;
16592
+ toName: z.ZodString;
16593
+ calls: z.ZodArray<z.ZodObject<{
16594
+ fact: z.ZodString;
16595
+ callType: z.ZodString;
16596
+ method: z.ZodOptional<z.ZodString>;
16597
+ path: z.ZodString;
16598
+ at: z.ZodString;
16599
+ status: z.ZodEnum<{
16600
+ asked: "asked";
16601
+ paired: "paired";
16602
+ outside: "outside";
16603
+ left: "left";
16604
+ missed: "missed";
16605
+ joined: "joined";
16606
+ unresolved: "unresolved";
16607
+ undrawn: "undrawn";
16608
+ here: "here";
14780
16609
  }>;
14781
- boundary: z.ZodOptional<z.ZodEnum<{
14782
- product: "product";
14783
- internal: "internal";
14784
- vendor: "vendor";
14785
- }>>;
14786
- legend: z.ZodOptional<z.ZodEnum<{
14787
- new: "new";
14788
- modify: "modify";
14789
- retire: "retire";
16610
+ why: z.ZodOptional<z.ZodString>;
16611
+ paired: z.ZodOptional<z.ZodString>;
16612
+ drawn: z.ZodOptional<z.ZodBoolean>;
16613
+ inside: z.ZodOptional<z.ZodString>;
16614
+ pairedAi: z.ZodOptional<z.ZodBoolean>;
16615
+ pairedWith: z.ZodOptional<z.ZodString>;
16616
+ onward: z.ZodOptional<z.ZodEnum<{
16617
+ forwarded: "forwarded";
16618
+ outranked: "outranked";
14790
16619
  }>>;
16620
+ joins: z.ZodOptional<z.ZodString>;
16621
+ now: z.ZodOptional<z.ZodString>;
16622
+ pairedBy: z.ZodOptional<z.ZodString>;
16623
+ how: z.ZodOptional<z.ZodObject<{
16624
+ by: z.ZodEnum<{
16625
+ code: "code";
16626
+ gateway: "gateway";
16627
+ ai: "ai";
16628
+ path: "path";
16629
+ answer: "answer";
16630
+ paired: "paired";
16631
+ kept: "kept";
16632
+ address: "address";
16633
+ }>;
16634
+ who: z.ZodOptional<z.ZodString>;
16635
+ at: z.ZodOptional<z.ZodString>;
16636
+ question: z.ZodOptional<z.ZodString>;
16637
+ through: z.ZodOptional<z.ZodString>;
16638
+ reason: z.ZodOptional<z.ZodString>;
16639
+ }, z.core.$strip>>;
16640
+ codeNames: z.ZodOptional<z.ZodObject<{
16641
+ box: z.ZodString;
16642
+ text: z.ZodString;
16643
+ }, z.core.$strip>>;
16644
+ suggestion: z.ZodOptional<z.ZodObject<{
16645
+ api: z.ZodString;
16646
+ score: z.ZodNumber;
16647
+ why: z.ZodEnum<{
16648
+ prefix: "prefix";
16649
+ parameter: "parameter";
16650
+ setting: "setting";
16651
+ "same-path": "same-path";
16652
+ "names-alike": "names-alike";
16653
+ "operation-words": "operation-words";
16654
+ "forwarded-path": "forwarded-path";
16655
+ }>;
16656
+ }, z.core.$strip>>;
16657
+ suggestions: z.ZodOptional<z.ZodArray<z.ZodObject<{
16658
+ api: z.ZodString;
16659
+ score: z.ZodNumber;
16660
+ why: z.ZodEnum<{
16661
+ prefix: "prefix";
16662
+ parameter: "parameter";
16663
+ setting: "setting";
16664
+ "same-path": "same-path";
16665
+ "names-alike": "names-alike";
16666
+ "operation-words": "operation-words";
16667
+ "forwarded-path": "forwarded-path";
16668
+ }>;
16669
+ }, z.core.$strip>>>;
16670
+ confident: z.ZodOptional<z.ZodBoolean>;
14791
16671
  }, z.core.$strip>>;
14792
- nodes: z.ZodArray<z.ZodObject<{
16672
+ apis: z.ZodArray<z.ZodObject<{
14793
16673
  id: z.ZodString;
14794
- label: z.ZodString;
14795
16674
  kind: z.ZodEnum<{
14796
- system: "system";
14797
- component: "component";
14798
- table: "table";
14799
- box: "box";
14800
- topic: "topic";
16675
+ route: "route";
16676
+ entry: "entry";
16677
+ operation: "operation";
14801
16678
  }>;
14802
- boundary: z.ZodOptional<z.ZodEnum<{
14803
- product: "product";
14804
- internal: "internal";
14805
- vendor: "vendor";
14806
- }>>;
14807
- legend: z.ZodOptional<z.ZodEnum<{
14808
- new: "new";
14809
- modify: "modify";
14810
- retire: "retire";
14811
- }>>;
14812
- group: z.ZodOptional<z.ZodString>;
16679
+ method: z.ZodOptional<z.ZodString>;
16680
+ path: z.ZodString;
16681
+ at: z.ZodOptional<z.ZodString>;
16682
+ words: z.ZodOptional<z.ZodString>;
16683
+ forwards: z.ZodOptional<z.ZodString>;
14813
16684
  }, z.core.$strip>>;
14814
- edges: z.ZodArray<z.ZodObject<{
14815
- id: z.ZodString;
14816
- from: z.ZodString;
14817
- to: z.ZodString;
14818
- label: z.ZodString;
14819
- async: z.ZodBoolean;
14820
- legend: z.ZodOptional<z.ZodEnum<{
14821
- new: "new";
14822
- modify: "modify";
14823
- retire: "retire";
16685
+ noCalls: z.ZodOptional<z.ZodObject<{
16686
+ command: z.ZodString;
16687
+ why: z.ZodOptional<z.ZodEnum<{
16688
+ unverified: "unverified";
14824
16689
  }>>;
14825
16690
  }, z.core.$strip>>;
14826
- mermaid: z.ZodString;
14827
- flows: z.ZodNumber;
14828
- problems: z.ZodArray<z.ZodString>;
14829
- }, z.core.$strip>>;
14830
- drawn: z.ZodArray<z.ZodObject<{
14831
- flow: z.ZodString;
14832
- index: z.ZodNumber;
14833
- what: z.ZodString;
14834
- by: z.ZodOptional<z.ZodString>;
14835
- }, z.core.$strip>>;
14836
- commit: z.ZodString;
14837
- fingerprint: z.ZodOptional<z.ZodString>;
14838
- }, z.core.$strip>;
14839
- export declare const UndeclareLinkRequest: z.ZodObject<{
14840
- kind: z.ZodEnum<{
14841
- call: "call";
14842
- topic: "topic";
14843
- }>;
14844
- system: z.ZodString;
14845
- value: z.ZodString;
14846
- }, z.core.$strip>;
14847
- /** G3: what can be added to the picture: repos (read or not), systems and teams. */
14848
- /** ADR 0180: a component type as the app shows it (the org pack's shape, plus its source and notes). */
14849
- export declare const ComponentTypeView: z.ZodObject<{
14850
- id: z.ZodString;
14851
- name: z.ZodString;
14852
- description: z.ZodString;
14853
- owner: z.ZodOptional<z.ZodString>;
14854
- source: z.ZodEnum<{
14855
- "org-pack": "org-pack";
14856
- builtin: "builtin";
14857
- }>;
14858
- signals: z.ZodArray<z.ZodObject<{
14859
- kind: z.ZodString;
14860
- value: z.ZodString;
14861
- why: z.ZodOptional<z.ZodString>;
16691
+ noApis: z.ZodOptional<z.ZodObject<{
16692
+ why: z.ZodEnum<{
16693
+ "not-read": "not-read";
16694
+ unverified: "unverified";
16695
+ "no-spec": "no-spec";
16696
+ }>;
16697
+ command: z.ZodString;
16698
+ }, z.core.$strip>>;
16699
+ rule: z.ZodOptional<z.ZodObject<{
16700
+ question: z.ZodString;
16701
+ calls: z.ZodNumber;
16702
+ }, z.core.$strip>>;
16703
+ applyPending: z.ZodOptional<z.ZodBoolean>;
16704
+ noCatalog: z.ZodOptional<z.ZodBoolean>;
14862
16705
  }, z.core.$strip>>;
14863
- runsOn: z.ZodOptional<z.ZodObject<{
14864
- platform: z.ZodOptional<z.ZodString>;
14865
- cloud: z.ZodOptional<z.ZodString>;
14866
- framework: z.ZodOptional<z.ZodString>;
16706
+ existing: z.ZodNumber;
16707
+ declared: z.ZodOptional<z.ZodObject<{
16708
+ from: z.ZodObject<{
16709
+ repo: z.ZodOptional<z.ZodString>;
16710
+ system: z.ZodOptional<z.ZodString>;
16711
+ }, z.core.$strict>;
16712
+ to: z.ZodObject<{
16713
+ repo: z.ZodOptional<z.ZodString>;
16714
+ system: z.ZodOptional<z.ZodString>;
16715
+ }, z.core.$strict>;
16716
+ why: z.ZodString;
16717
+ by: z.ZodString;
16718
+ at: z.ZodString;
16719
+ planned: z.ZodOptional<z.ZodBoolean>;
16720
+ file: z.ZodString;
14867
16721
  }, z.core.$strip>>;
14868
- draws: z.ZodOptional<z.ZodObject<{
14869
- shape: z.ZodOptional<z.ZodString>;
14870
- colour: z.ZodOptional<z.ZodString>;
14871
- badge: z.ZodOptional<z.ZodString>;
16722
+ superseded: z.ZodOptional<z.ZodObject<{
16723
+ calls: z.ZodNumber;
14872
16724
  }, z.core.$strip>>;
14873
- must: z.ZodArray<z.ZodString>;
14874
- mustNot: z.ZodArray<z.ZodString>;
14875
- notes: z.ZodOptional<z.ZodString>;
14876
- file: z.ZodOptional<z.ZodString>;
14877
- }, z.core.$strip>;
14878
- export declare const ComponentTypesView: z.ZodObject<{
14879
- types: z.ZodArray<z.ZodObject<{
14880
- id: z.ZodString;
14881
- name: z.ZodString;
14882
- description: z.ZodString;
14883
- owner: z.ZodOptional<z.ZodString>;
14884
- source: z.ZodEnum<{
14885
- "org-pack": "org-pack";
14886
- builtin: "builtin";
16725
+ routes: z.ZodOptional<z.ZodBoolean>;
16726
+ find: z.ZodOptional<z.ZodObject<{
16727
+ to: z.ZodObject<{
16728
+ repo: z.ZodOptional<z.ZodString>;
16729
+ system: z.ZodOptional<z.ZodString>;
16730
+ }, z.core.$strict>;
16731
+ at: z.ZodString;
16732
+ commit: z.ZodOptional<z.ZodString>;
16733
+ outcome: z.ZodEnum<{
16734
+ "not-found": "not-found";
16735
+ found: "found";
16736
+ elsewhere: "elsewhere";
16737
+ "found-loose": "found-loose";
14887
16738
  }>;
14888
- signals: z.ZodArray<z.ZodObject<{
14889
- kind: z.ZodString;
14890
- value: z.ZodString;
16739
+ facts: z.ZodArray<z.ZodString>;
16740
+ looked: z.ZodArray<z.ZodString>;
16741
+ other: z.ZodOptional<z.ZodString>;
16742
+ rejected: z.ZodOptional<z.ZodArray<z.ZodObject<{
16743
+ fact: z.ZodString;
16744
+ why: z.ZodString;
16745
+ }, z.core.$strip>>>;
16746
+ shape: z.ZodOptional<z.ZodObject<{
16747
+ type: z.ZodString;
14891
16748
  why: z.ZodOptional<z.ZodString>;
16749
+ at: z.ZodString;
16750
+ value: z.ZodString;
14892
16751
  }, z.core.$strip>>;
14893
- runsOn: z.ZodOptional<z.ZodObject<{
14894
- platform: z.ZodOptional<z.ZodString>;
14895
- cloud: z.ZodOptional<z.ZodString>;
14896
- framework: z.ZodOptional<z.ZodString>;
14897
- }, z.core.$strip>>;
14898
- draws: z.ZodOptional<z.ZodObject<{
14899
- shape: z.ZodOptional<z.ZodString>;
14900
- colour: z.ZodOptional<z.ZodString>;
14901
- badge: z.ZodOptional<z.ZodString>;
14902
- }, z.core.$strip>>;
14903
- must: z.ZodArray<z.ZodString>;
14904
- mustNot: z.ZodArray<z.ZodString>;
14905
- notes: z.ZodOptional<z.ZodString>;
14906
- file: z.ZodOptional<z.ZodString>;
14907
16752
  }, z.core.$strip>>;
14908
- folder: z.ZodString;
16753
+ findAgain: z.ZodOptional<z.ZodEnum<{
16754
+ again: "again";
16755
+ anyway: "anyway";
16756
+ }>>;
14909
16757
  }, z.core.$strip>;
14910
- export declare const AddableView: z.ZodObject<{
14911
- repos: z.ZodArray<z.ZodObject<{
14912
- id: z.ZodString;
14913
- name: z.ZodString;
14914
- read: z.ZodBoolean;
14915
- }, z.core.$strip>>;
14916
- systems: z.ZodArray<z.ZodObject<{
14917
- id: z.ZodString;
14918
- name: z.ZodString;
14919
- boundary: z.ZodOptional<z.ZodString>;
14920
- }, z.core.$strip>>;
14921
- teams: z.ZodArray<z.ZodObject<{
14922
- id: z.ZodString;
14923
- name: z.ZodString;
16758
+ /**
16759
+ * 3.19.0 (ADR 0204 1.6, 1.7): GET /api/declared-links/arrow?interface=<id>, the profile's arrow
16760
+ * a drawn declared Interface is; GET /api/declared-links/superseded, the declared arrows the code
16761
+ * now shows (the last build's), for the count above the map.
16762
+ */
16763
+ export declare const ArrowOfInterfaceView: z.ZodObject<{
16764
+ declared: z.ZodObject<{
16765
+ from: z.ZodObject<{
16766
+ repo: z.ZodOptional<z.ZodString>;
16767
+ system: z.ZodOptional<z.ZodString>;
16768
+ }, z.core.$strict>;
16769
+ to: z.ZodObject<{
16770
+ repo: z.ZodOptional<z.ZodString>;
16771
+ system: z.ZodOptional<z.ZodString>;
16772
+ }, z.core.$strict>;
16773
+ why: z.ZodString;
16774
+ by: z.ZodString;
16775
+ at: z.ZodString;
16776
+ planned: z.ZodOptional<z.ZodBoolean>;
16777
+ file: z.ZodString;
16778
+ }, z.core.$strip>;
16779
+ }, z.core.$strip>;
16780
+ export declare const SupersededArrowsView: z.ZodObject<{
16781
+ items: z.ZodArray<z.ZodObject<{
16782
+ from: z.ZodObject<{
16783
+ repo: z.ZodOptional<z.ZodString>;
16784
+ system: z.ZodOptional<z.ZodString>;
16785
+ }, z.core.$strict>;
16786
+ to: z.ZodObject<{
16787
+ repo: z.ZodOptional<z.ZodString>;
16788
+ system: z.ZodOptional<z.ZodString>;
16789
+ }, z.core.$strict>;
16790
+ by: z.ZodString;
16791
+ at: z.ZodString;
16792
+ calls: z.ZodNumber;
14924
16793
  }, z.core.$strip>>;
14925
16794
  }, z.core.$strip>;
14926
- export declare const AddSystemRequest: z.ZodObject<{
14927
- id: z.ZodString;
16795
+ export type ArrowOfInterfaceViewT = z.infer<typeof ArrowOfInterfaceView>;
16796
+ export type SupersededArrowsViewT = z.infer<typeof SupersededArrowsView>;
16797
+ /** 3.19.0: a declared arrow asked for (POST /api/declared-links `kind: link`, Edit the map). */
16798
+ /** ADR 0204 3.1 (`add-system`): the system only the code names, added in the arrow's write. */
16799
+ export declare const AddSystemOnArrow: z.ZodObject<{
14928
16800
  name: z.ZodString;
14929
16801
  boundary: z.ZodEnum<{
14930
16802
  internal: "internal";
14931
16803
  vendor: "vendor";
14932
16804
  }>;
14933
- owner: z.ZodOptional<z.ZodString>;
16805
+ }, z.core.$strict>;
16806
+ export declare const ArrowRequestFields: {
16807
+ from: z.ZodObject<{
16808
+ repo: z.ZodOptional<z.ZodString>;
16809
+ system: z.ZodOptional<z.ZodString>;
16810
+ }, z.core.$strict>;
16811
+ to: z.ZodObject<{
16812
+ repo: z.ZodOptional<z.ZodString>;
16813
+ system: z.ZodOptional<z.ZodString>;
16814
+ }, z.core.$strict>;
16815
+ why: z.ZodString;
16816
+ planned: z.ZodOptional<z.ZodBoolean>;
16817
+ addSystem: z.ZodOptional<z.ZodObject<{
16818
+ name: z.ZodString;
16819
+ boundary: z.ZodEnum<{
16820
+ internal: "internal";
16821
+ vendor: "vendor";
16822
+ }>;
16823
+ }, z.core.$strict>>;
16824
+ };
16825
+ export declare const DeclareArrowRequest: z.ZodObject<{
14934
16826
  preview: z.ZodOptional<z.ZodBoolean>;
14935
- }, z.core.$strip>;
14936
- /** G3: a box's corrections and declarations, each with what undoes it. */
14937
- export declare const BoxCorrections: z.ZodObject<{
14938
- items: z.ZodArray<z.ZodObject<{
14939
- kind: z.ZodEnum<{
14940
- link: "link";
14941
- call: "call";
14942
- wrong: "wrong";
14943
- topic: "topic";
14944
- edit: "edit";
14945
- unlink: "unlink";
16827
+ from: z.ZodObject<{
16828
+ repo: z.ZodOptional<z.ZodString>;
16829
+ system: z.ZodOptional<z.ZodString>;
16830
+ }, z.core.$strict>;
16831
+ to: z.ZodObject<{
16832
+ repo: z.ZodOptional<z.ZodString>;
16833
+ system: z.ZodOptional<z.ZodString>;
16834
+ }, z.core.$strict>;
16835
+ why: z.ZodString;
16836
+ planned: z.ZodOptional<z.ZodBoolean>;
16837
+ addSystem: z.ZodOptional<z.ZodObject<{
16838
+ name: z.ZodString;
16839
+ boundary: z.ZodEnum<{
16840
+ internal: "internal";
16841
+ vendor: "vendor";
14946
16842
  }>;
14947
- says: z.ZodString;
14948
- by: z.ZodOptional<z.ZodString>;
14949
- ai: z.ZodOptional<z.ZodObject<{
14950
- runtime: z.ZodString;
14951
- run: z.ZodString;
14952
- }, z.core.$strip>>;
14953
- batch: z.ZodOptional<z.ZodString>;
14954
- at: z.ZodOptional<z.ZodString>;
16843
+ }, z.core.$strict>>;
16844
+ kind: z.ZodLiteral<"link">;
16845
+ }, z.core.$strict>;
16846
+ /** 3.19.0: POST /api/declared-links/undo of a declared arrow (Remove it, Retire). */
16847
+ export declare const UndeclareArrowRequest: z.ZodObject<{
16848
+ kind: z.ZodLiteral<"link">;
16849
+ from: z.ZodObject<{
16850
+ repo: z.ZodOptional<z.ZodString>;
16851
+ system: z.ZodOptional<z.ZodString>;
16852
+ }, z.core.$strict>;
16853
+ to: z.ZodObject<{
16854
+ repo: z.ZodOptional<z.ZodString>;
16855
+ system: z.ZodOptional<z.ZodString>;
16856
+ }, z.core.$strict>;
16857
+ preview: z.ZodOptional<z.ZodBoolean>;
16858
+ }, z.core.$strict>;
16859
+ /**
16860
+ * 3.19.0 (ADR 0204 2.4): what one write of POST /api/map/edits wrote, for its Undo: lines
16861
+ * appended to a corrections file, or one declared arrow in a profile.
16862
+ */
16863
+ export declare const MapEditWrote: z.ZodUnion<readonly [z.ZodObject<{
16864
+ edit: z.ZodNumber;
16865
+ file: z.ZodString;
16866
+ lines: z.ZodArray<z.ZodString>;
16867
+ }, z.core.$strict>, z.ZodObject<{
16868
+ edit: z.ZodNumber;
16869
+ file: z.ZodString;
16870
+ link: z.ZodObject<{
16871
+ from: z.ZodObject<{
16872
+ repo: z.ZodOptional<z.ZodString>;
16873
+ system: z.ZodOptional<z.ZodString>;
16874
+ }, z.core.$strict>;
16875
+ to: z.ZodObject<{
16876
+ repo: z.ZodOptional<z.ZodString>;
16877
+ system: z.ZodOptional<z.ZodString>;
16878
+ }, z.core.$strict>;
16879
+ why: z.ZodString;
16880
+ by: z.ZodString;
16881
+ at: z.ZodString;
16882
+ planned: z.ZodOptional<z.ZodBoolean>;
14955
16883
  file: z.ZodString;
14956
- undo: z.ZodUnion<readonly [z.ZodObject<{
16884
+ }, z.core.$strip>;
16885
+ addedSystem: z.ZodOptional<z.ZodString>;
16886
+ raisedFrom: z.ZodOptional<z.ZodNumber>;
16887
+ }, z.core.$strict>, z.ZodObject<{
16888
+ edit: z.ZodNumber;
16889
+ file: z.ZodString;
16890
+ route: z.ZodObject<{
16891
+ system: z.ZodString;
16892
+ value: z.ZodString;
16893
+ }, z.core.$strip>;
16894
+ }, z.core.$strict>]>;
16895
+ /** 3.19.0: POST /api/map/edits/undo, exactly what an Apply wrote, then one build. */
16896
+ export declare const MapEditsUndoRequest: z.ZodObject<{
16897
+ wrote: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
16898
+ edit: z.ZodNumber;
16899
+ file: z.ZodString;
16900
+ lines: z.ZodArray<z.ZodString>;
16901
+ }, z.core.$strict>, z.ZodObject<{
16902
+ edit: z.ZodNumber;
16903
+ file: z.ZodString;
16904
+ link: z.ZodObject<{
16905
+ from: z.ZodObject<{
16906
+ repo: z.ZodOptional<z.ZodString>;
16907
+ system: z.ZodOptional<z.ZodString>;
16908
+ }, z.core.$strict>;
16909
+ to: z.ZodObject<{
16910
+ repo: z.ZodOptional<z.ZodString>;
16911
+ system: z.ZodOptional<z.ZodString>;
16912
+ }, z.core.$strict>;
16913
+ why: z.ZodString;
16914
+ by: z.ZodString;
16915
+ at: z.ZodString;
16916
+ planned: z.ZodOptional<z.ZodBoolean>;
16917
+ file: z.ZodString;
16918
+ }, z.core.$strip>;
16919
+ addedSystem: z.ZodOptional<z.ZodString>;
16920
+ raisedFrom: z.ZodOptional<z.ZodNumber>;
16921
+ }, z.core.$strict>, z.ZodObject<{
16922
+ edit: z.ZodNumber;
16923
+ file: z.ZodString;
16924
+ route: z.ZodObject<{
16925
+ system: z.ZodString;
16926
+ value: z.ZodString;
16927
+ }, z.core.$strip>;
16928
+ }, z.core.$strict>]>>;
16929
+ }, z.core.$strict>;
16930
+ /** 3.19.0 (ADR 0204 decision 4): POST /api/setup/repos/run, add, sync, read and apply in one job. */
16931
+ export declare const ReposRunRequest: z.ZodObject<{
16932
+ platform: z.ZodOptional<z.ZodString>;
16933
+ repos: z.ZodArray<z.ZodObject<{
16934
+ id: z.ZodString;
16935
+ url: z.ZodString;
16936
+ type: z.ZodOptional<z.ZodString>;
16937
+ owner: z.ZodOptional<z.ZodString>;
16938
+ defaultBranch: z.ZodOptional<z.ZodString>;
16939
+ description: z.ZodOptional<z.ZodString>;
16940
+ }, z.core.$strict>>;
16941
+ read: z.ZodOptional<z.ZodBoolean>;
16942
+ }, z.core.$strict>;
16943
+ export declare const ReposRunPart: z.ZodObject<{
16944
+ part: z.ZodEnum<{
16945
+ sync: "sync";
16946
+ read: "read";
16947
+ apply: "apply";
16948
+ add: "add";
16949
+ }>;
16950
+ state: z.ZodEnum<{
16951
+ done: "done";
16952
+ failed: "failed";
16953
+ waiting: "waiting";
16954
+ stopped: "stopped";
16955
+ }>;
16956
+ repos: z.ZodArray<z.ZodObject<{
16957
+ repo: z.ZodString;
16958
+ state: z.ZodEnum<{
16959
+ done: "done";
16960
+ failed: "failed";
16961
+ waiting: "waiting";
16962
+ stopped: "stopped";
16963
+ }>;
16964
+ why: z.ZodOptional<z.ZodString>;
16965
+ }, z.core.$strip>>;
16966
+ }, z.core.$strip>;
16967
+ /** The job's result (its `parts`): `handoff` when the read waits for the person's assistant. */
16968
+ export declare const ReposRunResult: z.ZodObject<{
16969
+ parts: z.ZodArray<z.ZodObject<{
16970
+ part: z.ZodEnum<{
16971
+ sync: "sync";
16972
+ read: "read";
16973
+ apply: "apply";
16974
+ add: "add";
16975
+ }>;
16976
+ state: z.ZodEnum<{
16977
+ done: "done";
16978
+ failed: "failed";
16979
+ waiting: "waiting";
16980
+ stopped: "stopped";
16981
+ }>;
16982
+ repos: z.ZodArray<z.ZodObject<{
14957
16983
  repo: z.ZodString;
14958
- line: z.ZodString;
14959
- }, z.core.$strip>, z.ZodObject<{
14960
- kind: z.ZodEnum<{
14961
- call: "call";
14962
- topic: "topic";
16984
+ state: z.ZodEnum<{
16985
+ done: "done";
16986
+ failed: "failed";
16987
+ waiting: "waiting";
16988
+ stopped: "stopped";
16989
+ }>;
16990
+ why: z.ZodOptional<z.ZodString>;
16991
+ }, z.core.$strip>>;
16992
+ }, z.core.$strip>>;
16993
+ handoff: z.ZodOptional<z.ZodObject<{
16994
+ command: z.ZodString;
16995
+ }, z.core.$strip>>;
16996
+ refused: z.ZodOptional<z.ZodObject<{
16997
+ reasons: z.ZodArray<z.ZodEnum<{
16998
+ "nothing-read": "nothing-read";
16999
+ empty: "empty";
17000
+ "unexplained-removals": "unexplained-removals";
17001
+ "large-removals": "large-removals";
17002
+ "hand-edits": "hand-edits";
17003
+ "not-upgraded": "not-upgraded";
17004
+ "newer-atticus": "newer-atticus";
17005
+ }>>;
17006
+ message: z.ZodString;
17007
+ removals: z.ZodOptional<z.ZodArray<z.ZodObject<{
17008
+ path: z.ZodString;
17009
+ kind: z.ZodString;
17010
+ id: z.ZodString;
17011
+ repos: z.ZodArray<z.ZodString>;
17012
+ explainedBy: z.ZodArray<z.ZodString>;
17013
+ reasons: z.ZodOptional<z.ZodArray<z.ZodEnum<{
17014
+ input: "input";
17015
+ build: "build";
17016
+ archived: "archived";
17017
+ manifest: "manifest";
17018
+ curated: "curated";
17019
+ slot: "slot";
17020
+ }>>>;
17021
+ inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
17022
+ what: z.ZodEnum<{
17023
+ other: "other";
17024
+ inputs: "inputs";
17025
+ "org-pack": "org-pack";
17026
+ proposals: "proposals";
17027
+ shared: "shared";
17028
+ answers: "answers";
17029
+ pairings: "pairings";
17030
+ curated: "curated";
17031
+ traffic: "traffic";
17032
+ federated: "federated";
17033
+ }>;
17034
+ path: z.ZodString;
17035
+ }, z.core.$strip>>>;
17036
+ }, z.core.$strip>>>;
17037
+ unexplained: z.ZodOptional<z.ZodArray<z.ZodObject<{
17038
+ path: z.ZodString;
17039
+ kind: z.ZodString;
17040
+ id: z.ZodString;
17041
+ repos: z.ZodArray<z.ZodString>;
17042
+ explainedBy: z.ZodArray<z.ZodString>;
17043
+ reasons: z.ZodOptional<z.ZodArray<z.ZodEnum<{
17044
+ input: "input";
17045
+ build: "build";
17046
+ archived: "archived";
17047
+ manifest: "manifest";
17048
+ curated: "curated";
17049
+ slot: "slot";
17050
+ }>>>;
17051
+ inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
17052
+ what: z.ZodEnum<{
17053
+ other: "other";
17054
+ inputs: "inputs";
17055
+ "org-pack": "org-pack";
17056
+ proposals: "proposals";
17057
+ shared: "shared";
17058
+ answers: "answers";
17059
+ pairings: "pairings";
17060
+ curated: "curated";
17061
+ traffic: "traffic";
17062
+ federated: "federated";
17063
+ }>;
17064
+ path: z.ZodString;
17065
+ }, z.core.$strip>>>;
17066
+ }, z.core.$strip>>>;
17067
+ allowRemovals: z.ZodOptional<z.ZodNumber>;
17068
+ edits: z.ZodOptional<z.ZodArray<z.ZodObject<{
17069
+ path: z.ZodString;
17070
+ how: z.ZodEnum<{
17071
+ added: "added";
17072
+ changed: "changed";
17073
+ deleted: "deleted";
14963
17074
  }>;
14964
- system: z.ZodString;
14965
- value: z.ZodString;
14966
- }, z.core.$strip>]>;
14967
- stale: z.ZodOptional<z.ZodBoolean>;
17075
+ }, z.core.$strip>>>;
17076
+ discardEdits: z.ZodOptional<z.ZodNumber>;
17077
+ unread: z.ZodOptional<z.ZodArray<z.ZodObject<{
17078
+ repo: z.ZodString;
17079
+ why: z.ZodString;
17080
+ }, z.core.$strip>>>;
17081
+ unreadableManifest: z.ZodOptional<z.ZodLiteral<true>>;
17082
+ beforeSlots: z.ZodOptional<z.ZodLiteral<true>>;
17083
+ renames: z.ZodOptional<z.ZodNumber>;
17084
+ newer: z.ZodOptional<z.ZodArray<z.ZodObject<{
17085
+ path: z.ZodString;
17086
+ name: z.ZodString;
17087
+ field: z.ZodString;
17088
+ version: z.ZodNumber;
17089
+ reads: z.ZodNumber;
17090
+ atticus: z.ZodOptional<z.ZodString>;
17091
+ }, z.core.$strip>>>;
17092
+ standing: z.ZodOptional<z.ZodString>;
17093
+ command: z.ZodString;
17094
+ plan: z.ZodOptional<z.ZodString>;
14968
17095
  }, z.core.$strip>>;
17096
+ done: z.ZodNumber;
17097
+ of: z.ZodNumber;
14969
17098
  }, z.core.$strip>;
14970
- /** G6 (ADR 0175): a canvas's named filters and layers, kept in the metarepo for review. */
14971
- export declare const SavedCanvasView: z.ZodObject<{
14972
- name: z.ZodString;
14973
- lens: z.ZodString;
14974
- node: z.ZodString;
14975
- filter: z.ZodDefault<z.ZodString>;
14976
- layers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
14977
- overlay: z.ZodDefault<z.ZodEnum<{
14978
- none: "none";
14979
- questions: "questions";
14980
- gaps: "gaps";
17099
+ export type ReposRunRequestT = z.infer<typeof ReposRunRequest>;
17100
+ export type ReposRunPartT = z.infer<typeof ReposRunPart>;
17101
+ export type ReposRunResultT = z.infer<typeof ReposRunResult>;
17102
+ /** 3.19.0 (ADR 0204 A.9): POST /api/connect/find, a job; its result `answer` is FindResult. */
17103
+ export declare const ConnectFindRequest: z.ZodObject<{
17104
+ from: z.ZodString;
17105
+ to: z.ZodObject<{
17106
+ repo: z.ZodOptional<z.ZodString>;
17107
+ system: z.ZodOptional<z.ZodString>;
17108
+ }, z.core.$strict>;
17109
+ mode: z.ZodOptional<z.ZodEnum<{
17110
+ "hand-off": "hand-off";
17111
+ "copilot-acp": "copilot-acp";
14981
17112
  }>>;
14982
- mismatches: z.ZodDefault<z.ZodBoolean>;
14983
- by: z.ZodOptional<z.ZodString>;
14984
- at: z.ZodOptional<z.ZodString>;
14985
- }, z.core.$strip>;
14986
- export declare const SavedCanvasViews: z.ZodObject<{
14987
- views: z.ZodArray<z.ZodObject<{
14988
- name: z.ZodString;
14989
- lens: z.ZodString;
14990
- node: z.ZodString;
14991
- filter: z.ZodDefault<z.ZodString>;
14992
- layers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
14993
- overlay: z.ZodDefault<z.ZodEnum<{
14994
- none: "none";
14995
- questions: "questions";
14996
- gaps: "gaps";
14997
- }>>;
14998
- mismatches: z.ZodDefault<z.ZodBoolean>;
14999
- by: z.ZodOptional<z.ZodString>;
15000
- at: z.ZodOptional<z.ZodString>;
17113
+ read: z.ZodOptional<z.ZodBoolean>;
17114
+ job: z.ZodOptional<z.ZodBoolean>;
17115
+ }, z.core.$strict>;
17116
+ export declare const FindResult: z.ZodObject<{
17117
+ handoff: z.ZodOptional<z.ZodObject<{
17118
+ brief: z.ZodString;
17119
+ answer: z.ZodString;
17120
+ command: z.ZodString;
17121
+ }, z.core.$strip>>;
17122
+ readFirst: z.ZodOptional<z.ZodObject<{
17123
+ repo: z.ZodString;
17124
+ command: z.ZodString;
17125
+ then: z.ZodString;
17126
+ }, z.core.$strip>>;
17127
+ entry: z.ZodOptional<z.ZodObject<{
17128
+ to: z.ZodObject<{
17129
+ repo: z.ZodOptional<z.ZodString>;
17130
+ system: z.ZodOptional<z.ZodString>;
17131
+ }, z.core.$strict>;
17132
+ at: z.ZodString;
17133
+ commit: z.ZodOptional<z.ZodString>;
17134
+ outcome: z.ZodEnum<{
17135
+ "not-found": "not-found";
17136
+ found: "found";
17137
+ elsewhere: "elsewhere";
17138
+ "found-loose": "found-loose";
17139
+ }>;
17140
+ facts: z.ZodArray<z.ZodString>;
17141
+ looked: z.ZodArray<z.ZodString>;
17142
+ other: z.ZodOptional<z.ZodString>;
17143
+ rejected: z.ZodOptional<z.ZodArray<z.ZodObject<{
17144
+ fact: z.ZodString;
17145
+ why: z.ZodString;
17146
+ }, z.core.$strip>>>;
17147
+ shape: z.ZodOptional<z.ZodObject<{
17148
+ type: z.ZodString;
17149
+ why: z.ZodOptional<z.ZodString>;
17150
+ at: z.ZodString;
17151
+ value: z.ZodString;
17152
+ }, z.core.$strip>>;
17153
+ }, z.core.$strip>>;
17154
+ brief: z.ZodString;
17155
+ report: z.ZodOptional<z.ZodString>;
17156
+ leftOut: z.ZodArray<z.ZodString>;
17157
+ notBuilt: z.ZodOptional<z.ZodObject<{
17158
+ repo: z.ZodOptional<z.ZodString>;
17159
+ readFailed: z.ZodOptional<z.ZodLiteral<true>>;
17160
+ message: z.ZodString;
17161
+ lines: z.ZodArray<z.ZodString>;
17162
+ refused: z.ZodOptional<z.ZodObject<{
17163
+ reasons: z.ZodArray<z.ZodEnum<{
17164
+ "nothing-read": "nothing-read";
17165
+ empty: "empty";
17166
+ "unexplained-removals": "unexplained-removals";
17167
+ "large-removals": "large-removals";
17168
+ "hand-edits": "hand-edits";
17169
+ "not-upgraded": "not-upgraded";
17170
+ "newer-atticus": "newer-atticus";
17171
+ }>>;
17172
+ message: z.ZodString;
17173
+ removals: z.ZodOptional<z.ZodArray<z.ZodObject<{
17174
+ path: z.ZodString;
17175
+ kind: z.ZodString;
17176
+ id: z.ZodString;
17177
+ repos: z.ZodArray<z.ZodString>;
17178
+ explainedBy: z.ZodArray<z.ZodString>;
17179
+ reasons: z.ZodOptional<z.ZodArray<z.ZodEnum<{
17180
+ input: "input";
17181
+ build: "build";
17182
+ archived: "archived";
17183
+ manifest: "manifest";
17184
+ curated: "curated";
17185
+ slot: "slot";
17186
+ }>>>;
17187
+ inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
17188
+ what: z.ZodEnum<{
17189
+ other: "other";
17190
+ inputs: "inputs";
17191
+ "org-pack": "org-pack";
17192
+ proposals: "proposals";
17193
+ shared: "shared";
17194
+ answers: "answers";
17195
+ pairings: "pairings";
17196
+ curated: "curated";
17197
+ traffic: "traffic";
17198
+ federated: "federated";
17199
+ }>;
17200
+ path: z.ZodString;
17201
+ }, z.core.$strip>>>;
17202
+ }, z.core.$strip>>>;
17203
+ unexplained: z.ZodOptional<z.ZodArray<z.ZodObject<{
17204
+ path: z.ZodString;
17205
+ kind: z.ZodString;
17206
+ id: z.ZodString;
17207
+ repos: z.ZodArray<z.ZodString>;
17208
+ explainedBy: z.ZodArray<z.ZodString>;
17209
+ reasons: z.ZodOptional<z.ZodArray<z.ZodEnum<{
17210
+ input: "input";
17211
+ build: "build";
17212
+ archived: "archived";
17213
+ manifest: "manifest";
17214
+ curated: "curated";
17215
+ slot: "slot";
17216
+ }>>>;
17217
+ inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
17218
+ what: z.ZodEnum<{
17219
+ other: "other";
17220
+ inputs: "inputs";
17221
+ "org-pack": "org-pack";
17222
+ proposals: "proposals";
17223
+ shared: "shared";
17224
+ answers: "answers";
17225
+ pairings: "pairings";
17226
+ curated: "curated";
17227
+ traffic: "traffic";
17228
+ federated: "federated";
17229
+ }>;
17230
+ path: z.ZodString;
17231
+ }, z.core.$strip>>>;
17232
+ }, z.core.$strip>>>;
17233
+ allowRemovals: z.ZodOptional<z.ZodNumber>;
17234
+ edits: z.ZodOptional<z.ZodArray<z.ZodObject<{
17235
+ path: z.ZodString;
17236
+ how: z.ZodEnum<{
17237
+ added: "added";
17238
+ changed: "changed";
17239
+ deleted: "deleted";
17240
+ }>;
17241
+ }, z.core.$strip>>>;
17242
+ discardEdits: z.ZodOptional<z.ZodNumber>;
17243
+ unread: z.ZodOptional<z.ZodArray<z.ZodObject<{
17244
+ repo: z.ZodString;
17245
+ why: z.ZodString;
17246
+ }, z.core.$strip>>>;
17247
+ unreadableManifest: z.ZodOptional<z.ZodLiteral<true>>;
17248
+ beforeSlots: z.ZodOptional<z.ZodLiteral<true>>;
17249
+ renames: z.ZodOptional<z.ZodNumber>;
17250
+ newer: z.ZodOptional<z.ZodArray<z.ZodObject<{
17251
+ path: z.ZodString;
17252
+ name: z.ZodString;
17253
+ field: z.ZodString;
17254
+ version: z.ZodNumber;
17255
+ reads: z.ZodNumber;
17256
+ atticus: z.ZodOptional<z.ZodString>;
17257
+ }, z.core.$strip>>>;
17258
+ standing: z.ZodOptional<z.ZodString>;
17259
+ command: z.ZodString;
17260
+ plan: z.ZodOptional<z.ZodString>;
17261
+ }, z.core.$strip>>;
17262
+ command: z.ZodString;
15001
17263
  }, z.core.$strip>>;
15002
- dir: z.ZodString;
15003
- }, z.core.$strip>;
15004
- /** G6: a cited line, as a file to open in an editor. */
15005
- export declare const CodeLink: z.ZodObject<{
15006
- path: z.ZodOptional<z.ZodString>;
15007
- line: z.ZodNumber;
15008
- vscode: z.ZodOptional<z.ZodString>;
15009
- idea: z.ZodOptional<z.ZodString>;
15010
- missing: z.ZodOptional<z.ZodString>;
15011
17264
  }, z.core.$strip>;
15012
- export type SavedCanvasViewT = z.infer<typeof SavedCanvasView>;
15013
- export type SavedCanvasViewsT = z.infer<typeof SavedCanvasViews>;
15014
- export type CodeLinkT = z.infer<typeof CodeLink>;
15015
- /** G4 from the canvas (ADR 0176): a draft reading rule for a repo's type, from a pairing. */
15016
- export declare const RuleFromPairingRequest: z.ZodObject<{
17265
+ /** 3.19.0 (ADR 0204 A.8): POST /api/reading-rules/from-find, a draft rule from a find's call. */
17266
+ export declare const RuleFromFindRequest: z.ZodObject<{
15017
17267
  repo: z.ZodString;
15018
- line: z.ZodString;
15019
- }, z.core.$strip>;
15020
- export declare const RuleFromPairingResult: z.ZodObject<{
15021
- file: z.ZodString;
15022
- key: z.ZodString;
15023
- rule: z.ZodString;
15024
- activate: z.ZodString;
15025
- }, z.core.$strip>;
15026
- export type RuleFromPairingResultT = z.infer<typeof RuleFromPairingResult>;
15027
- export type DeclareLinkRequestT = z.infer<typeof DeclareLinkRequest>;
15028
- export type FileChangeResultT = z.infer<typeof FileChangeResult>;
15029
- export type DeclarableRouteViewT = z.infer<typeof DeclarableRouteView>;
15030
- export type DeclarableRoutesViewT = z.infer<typeof DeclarableRoutesView>;
15031
- export type SketchStrokeRequestT = z.infer<typeof SketchStrokeRequest>;
15032
- export type SketchResultT = z.infer<typeof SketchResult>;
15033
- export type AddableViewT = z.infer<typeof AddableView>;
15034
- export type ComponentTypeViewT = z.infer<typeof ComponentTypeView>;
15035
- export type ComponentTypesViewT = z.infer<typeof ComponentTypesView>;
15036
- export type AddSystemRequestT = z.infer<typeof AddSystemRequest>;
15037
- export type BoxCorrectionsT = z.infer<typeof BoxCorrections>;
15038
- export type RepoOwnerViewT = z.infer<typeof RepoOwnerView>;
15039
- export type SetRepoOwnerRequestT = z.infer<typeof SetRepoOwnerRequest>;
15040
- export type SetRepoOwnerResultT = z.infer<typeof SetRepoOwnerResult>;
15041
- export type LinkBoxT = z.infer<typeof LinkBox>;
15042
- export type CandidateCallViewT = z.infer<typeof CandidateCallView>;
15043
- export type CandidateApiViewT = z.infer<typeof CandidateApiView>;
15044
- export type LinkCandidatesViewT = z.infer<typeof LinkCandidatesView>;
15045
- export type ConnectLinksRequestT = z.infer<typeof ConnectLinksRequest>;
15046
- export type ConnectLinksResultT = z.infer<typeof ConnectLinksResult>;
15047
- export type MatchLinksRequestT = z.infer<typeof MatchLinksRequest>;
15048
- export type MatchLinksViewT = z.infer<typeof MatchLinksView>;
15049
- export type MatchProposalT = z.infer<typeof MatchProposal>;
15050
- export type DecisionCountsT = z.infer<typeof DecisionCounts>;
15051
- export type AiDecisionItemT = z.infer<typeof AiDecisionItem>;
15052
- export type DecisionBatchViewT = z.infer<typeof DecisionBatchView>;
15053
- export type DecideStateViewT = z.infer<typeof DecideStateView>;
15054
- export type DecisionsViewT = z.infer<typeof DecisionsView>;
15055
- export type CorrectDecisionRequestT = z.infer<typeof CorrectDecisionRequest>;
15056
- export type SpreadItemViewT = z.infer<typeof SpreadItemView>;
15057
- export type CorrectDecisionResultT = z.infer<typeof CorrectDecisionResult>;
15058
- export type UndoBatchResultT = z.infer<typeof UndoBatchResult>;
15059
- export type QuestionsProposeViewT = z.infer<typeof QuestionsProposeView>;
15060
- export type UpgradeViewT = z.infer<typeof UpgradeView>;
17268
+ to: z.ZodObject<{
17269
+ repo: z.ZodOptional<z.ZodString>;
17270
+ system: z.ZodOptional<z.ZodString>;
17271
+ }, z.core.$strict>;
17272
+ }, z.core.$strict>;
17273
+ export type FindEntryViewT = z.infer<typeof FindEntryView>;
17274
+ export type ConnectFindRequestT = z.infer<typeof ConnectFindRequest>;
17275
+ export type FindResultT = z.infer<typeof FindResult>;
17276
+ export type DeclaredArrowViewT = z.infer<typeof DeclaredArrowView>;
17277
+ export type ConnectNeedT = z.infer<typeof ConnectNeed>;
17278
+ export type ConnectViewT = z.infer<typeof ConnectView>;
17279
+ export type DeclareArrowRequestT = z.infer<typeof DeclareArrowRequest>;
17280
+ export type UndeclareArrowRequestT = z.infer<typeof UndeclareArrowRequest>;
17281
+ export type MapEditWroteT = z.infer<typeof MapEditWrote>;
15061
17282
  /** What an unattended Copilot run started from the app reads. */
15062
17283
  export declare const CopilotRunKind: z.ZodEnum<{
15063
17284
  repos: "repos";
@@ -15315,6 +17536,11 @@ export declare const ActivityEntry: z.ZodObject<{
15315
17536
  rev: z.ZodOptional<z.ZodString>;
15316
17537
  stop: z.ZodOptional<z.ZodString>;
15317
17538
  stopping: z.ZodOptional<z.ZodBoolean>;
17539
+ stoppable: z.ZodOptional<z.ZodBoolean>;
17540
+ stopLands: z.ZodOptional<z.ZodEnum<{
17541
+ now: "now";
17542
+ "after-write": "after-write";
17543
+ }>>;
15318
17544
  outcome: z.ZodOptional<z.ZodEnum<{
15319
17545
  refused: "refused";
15320
17546
  }>>;
@@ -15375,6 +17601,11 @@ export declare const ActivityList: z.ZodObject<{
15375
17601
  rev: z.ZodOptional<z.ZodString>;
15376
17602
  stop: z.ZodOptional<z.ZodString>;
15377
17603
  stopping: z.ZodOptional<z.ZodBoolean>;
17604
+ stoppable: z.ZodOptional<z.ZodBoolean>;
17605
+ stopLands: z.ZodOptional<z.ZodEnum<{
17606
+ now: "now";
17607
+ "after-write": "after-write";
17608
+ }>>;
15378
17609
  outcome: z.ZodOptional<z.ZodEnum<{
15379
17610
  refused: "refused";
15380
17611
  }>>;
@@ -15548,6 +17779,11 @@ export declare const LiveEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
15548
17779
  rev: z.ZodOptional<z.ZodString>;
15549
17780
  stop: z.ZodOptional<z.ZodString>;
15550
17781
  stopping: z.ZodOptional<z.ZodBoolean>;
17782
+ stoppable: z.ZodOptional<z.ZodBoolean>;
17783
+ stopLands: z.ZodOptional<z.ZodEnum<{
17784
+ now: "now";
17785
+ "after-write": "after-write";
17786
+ }>>;
15551
17787
  outcome: z.ZodOptional<z.ZodEnum<{
15552
17788
  refused: "refused";
15553
17789
  }>>;
@@ -15655,7 +17891,9 @@ export declare const FindingView: z.ZodObject<{
15655
17891
  ux: "ux";
15656
17892
  delivery: "delivery";
15657
17893
  "code-and-test": "code-and-test";
17894
+ persona: "persona";
15658
17895
  }>;
17896
+ persona: z.ZodOptional<z.ZodString>;
15659
17897
  severity: z.ZodEnum<{
15660
17898
  blocking: "blocking";
15661
17899
  gap: "gap";