@wairon/cli 5.1.1-dev.102 → 5.1.1-dev.104

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/dist/index.d.ts CHANGED
@@ -515,6 +515,16 @@ declare const ConformanceRuleConfigSchema: z.ZodObject<{
515
515
  }[];
516
516
  revisit?: string | undefined;
517
517
  }>, "many">>;
518
+ /**
519
+ * Opt-in strictness for teams that want CI to say "every designed component
520
+ * has code": every implementation must have begun (some file it names
521
+ * exists). When true, SOURCE_FILE_PLANNED and MISSING_SOURCE_PATH are
522
+ * reported at error, naming this setting, instead of as notices. Off by
523
+ * default, so a design-only tree passes `validate --ci`. Code-conformance
524
+ * tuning like the rest of `rules.conformance`: it enters the analyzer's
525
+ * digest, never the gate identity, so switching it never stales a lock.
526
+ */
527
+ requireCode: z.ZodOptional<z.ZodBoolean>;
518
528
  }, "strip", z.ZodTypeAny, {
519
529
  sourceRoots?: string[] | undefined;
520
530
  exclude?: string[] | undefined;
@@ -531,6 +541,7 @@ declare const ConformanceRuleConfigSchema: z.ZodObject<{
531
541
  }[];
532
542
  revisit?: string | undefined;
533
543
  }[] | undefined;
544
+ requireCode?: boolean | undefined;
534
545
  }, {
535
546
  sourceRoots?: string[] | undefined;
536
547
  exclude?: string[] | undefined;
@@ -547,6 +558,7 @@ declare const ConformanceRuleConfigSchema: z.ZodObject<{
547
558
  }[];
548
559
  revisit?: string | undefined;
549
560
  }[] | undefined;
561
+ requireCode?: boolean | undefined;
550
562
  }>;
551
563
  type ConformanceRuleConfig = z.infer<typeof ConformanceRuleConfigSchema>;
552
564
  /**
@@ -908,6 +920,16 @@ declare const RulesConfigSchema: z.ZodObject<{
908
920
  }[];
909
921
  revisit?: string | undefined;
910
922
  }>, "many">>;
923
+ /**
924
+ * Opt-in strictness for teams that want CI to say "every designed component
925
+ * has code": every implementation must have begun (some file it names
926
+ * exists). When true, SOURCE_FILE_PLANNED and MISSING_SOURCE_PATH are
927
+ * reported at error, naming this setting, instead of as notices. Off by
928
+ * default, so a design-only tree passes `validate --ci`. Code-conformance
929
+ * tuning like the rest of `rules.conformance`: it enters the analyzer's
930
+ * digest, never the gate identity, so switching it never stales a lock.
931
+ */
932
+ requireCode: z.ZodOptional<z.ZodBoolean>;
911
933
  }, "strip", z.ZodTypeAny, {
912
934
  sourceRoots?: string[] | undefined;
913
935
  exclude?: string[] | undefined;
@@ -924,6 +946,7 @@ declare const RulesConfigSchema: z.ZodObject<{
924
946
  }[];
925
947
  revisit?: string | undefined;
926
948
  }[] | undefined;
949
+ requireCode?: boolean | undefined;
927
950
  }, {
928
951
  sourceRoots?: string[] | undefined;
929
952
  exclude?: string[] | undefined;
@@ -940,6 +963,7 @@ declare const RulesConfigSchema: z.ZodObject<{
940
963
  }[];
941
964
  revisit?: string | undefined;
942
965
  }[] | undefined;
966
+ requireCode?: boolean | undefined;
943
967
  }>>;
944
968
  /** Project-default design depth (see DesignDepthSchema); subsystems may override. */
945
969
  designDepth: z.ZodOptional<z.ZodEnum<["components", "interfaces", "implementations", "narratives"]>>;
@@ -1002,6 +1026,7 @@ declare const RulesConfigSchema: z.ZodObject<{
1002
1026
  }[];
1003
1027
  revisit?: string | undefined;
1004
1028
  }[] | undefined;
1029
+ requireCode?: boolean | undefined;
1005
1030
  } | undefined;
1006
1031
  designDepth?: "components" | "interfaces" | "implementations" | "narratives" | undefined;
1007
1032
  }, {
@@ -1063,6 +1088,7 @@ declare const RulesConfigSchema: z.ZodObject<{
1063
1088
  }[];
1064
1089
  revisit?: string | undefined;
1065
1090
  }[] | undefined;
1091
+ requireCode?: boolean | undefined;
1066
1092
  } | undefined;
1067
1093
  designDepth?: "components" | "interfaces" | "implementations" | "narratives" | undefined;
1068
1094
  }>;
@@ -1262,25 +1288,22 @@ type ExternalSource = z.infer<typeof ExternalSourceSchema>;
1262
1288
  declare const ExternalDeclarationSchema: z.ZodObject<{
1263
1289
  /** The producer's project id; defaults to the alias. Plain string: a malformed id is REPORTED, never unreadable. */
1264
1290
  project: z.ZodOptional<z.ZodString>;
1265
- source: z.ZodOptional<z.ZodObject<{
1266
- path: z.ZodOptional<z.ZodString>;
1267
- hosted: z.ZodOptional<z.ZodString>;
1268
- /** A git repository URL holding the producer (stage 8). */
1269
- git: z.ZodOptional<z.ZodString>;
1270
- /** git only: the branch or tag a pin or an update follows; never read by a verdict. */
1271
- ref: z.ZodOptional<z.ZodString>;
1272
- /** git members only: the full commit the member is pinned at (an external's commit is its pin's). */
1273
- commit: z.ZodOptional<z.ZodString>;
1274
- /** git only: the producer's root inside the repository. */
1275
- dir: z.ZodOptional<z.ZodString>;
1276
- }, "strip", z.ZodTypeAny, {
1291
+ /**
1292
+ * Where the producer is found, in either form: the one location string
1293
+ * members use (`../geo-sdk`, `hosted:<id>`, `<git url>`, `<git url>#<commit>`
1294
+ * — a `#<commit>` read as the ref the pin follows) or the object form
1295
+ * ({ path } | { hosted } | { git, ref?, dir? }). Read leniently: any shape
1296
+ * loads, and one that is not a source is the declaration's problem
1297
+ * (readExternalSource), never a configuration that fails to load.
1298
+ */
1299
+ source: z.ZodOptional<z.ZodType<string | {
1277
1300
  path?: string | undefined;
1278
1301
  hosted?: string | undefined;
1279
1302
  git?: string | undefined;
1280
1303
  ref?: string | undefined;
1281
1304
  commit?: string | undefined;
1282
1305
  dir?: string | undefined;
1283
- }, {
1306
+ }, z.ZodTypeDef, string | {
1284
1307
  path?: string | undefined;
1285
1308
  hosted?: string | undefined;
1286
1309
  git?: string | undefined;
@@ -1304,7 +1327,7 @@ declare const ExternalDeclarationSchema: z.ZodObject<{
1304
1327
  description: z.ZodOptional<z.ZodString>;
1305
1328
  }, "strip", z.ZodTypeAny, {
1306
1329
  project?: string | undefined;
1307
- source?: {
1330
+ source?: string | {
1308
1331
  path?: string | undefined;
1309
1332
  hosted?: string | undefined;
1310
1333
  git?: string | undefined;
@@ -1316,7 +1339,7 @@ declare const ExternalDeclarationSchema: z.ZodObject<{
1316
1339
  description?: string | undefined;
1317
1340
  }, {
1318
1341
  project?: string | undefined;
1319
- source?: {
1342
+ source?: string | {
1320
1343
  path?: string | undefined;
1321
1344
  hosted?: string | undefined;
1322
1345
  git?: string | undefined;
@@ -1492,25 +1515,22 @@ declare const ProjectConfigSchema: z.ZodObject<{
1492
1515
  externals: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1493
1516
  /** The producer's project id; defaults to the alias. Plain string: a malformed id is REPORTED, never unreadable. */
1494
1517
  project: z.ZodOptional<z.ZodString>;
1495
- source: z.ZodOptional<z.ZodObject<{
1496
- path: z.ZodOptional<z.ZodString>;
1497
- hosted: z.ZodOptional<z.ZodString>;
1498
- /** A git repository URL holding the producer (stage 8). */
1499
- git: z.ZodOptional<z.ZodString>;
1500
- /** git only: the branch or tag a pin or an update follows; never read by a verdict. */
1501
- ref: z.ZodOptional<z.ZodString>;
1502
- /** git members only: the full commit the member is pinned at (an external's commit is its pin's). */
1503
- commit: z.ZodOptional<z.ZodString>;
1504
- /** git only: the producer's root inside the repository. */
1505
- dir: z.ZodOptional<z.ZodString>;
1506
- }, "strip", z.ZodTypeAny, {
1518
+ /**
1519
+ * Where the producer is found, in either form: the one location string
1520
+ * members use (`../geo-sdk`, `hosted:<id>`, `<git url>`, `<git url>#<commit>`
1521
+ * — a `#<commit>` read as the ref the pin follows) or the object form
1522
+ * ({ path } | { hosted } | { git, ref?, dir? }). Read leniently: any shape
1523
+ * loads, and one that is not a source is the declaration's problem
1524
+ * (readExternalSource), never a configuration that fails to load.
1525
+ */
1526
+ source: z.ZodOptional<z.ZodType<string | {
1507
1527
  path?: string | undefined;
1508
1528
  hosted?: string | undefined;
1509
1529
  git?: string | undefined;
1510
1530
  ref?: string | undefined;
1511
1531
  commit?: string | undefined;
1512
1532
  dir?: string | undefined;
1513
- }, {
1533
+ }, z.ZodTypeDef, string | {
1514
1534
  path?: string | undefined;
1515
1535
  hosted?: string | undefined;
1516
1536
  git?: string | undefined;
@@ -1534,7 +1554,7 @@ declare const ProjectConfigSchema: z.ZodObject<{
1534
1554
  description: z.ZodOptional<z.ZodString>;
1535
1555
  }, "strip", z.ZodTypeAny, {
1536
1556
  project?: string | undefined;
1537
- source?: {
1557
+ source?: string | {
1538
1558
  path?: string | undefined;
1539
1559
  hosted?: string | undefined;
1540
1560
  git?: string | undefined;
@@ -1546,7 +1566,7 @@ declare const ProjectConfigSchema: z.ZodObject<{
1546
1566
  description?: string | undefined;
1547
1567
  }, {
1548
1568
  project?: string | undefined;
1549
- source?: {
1569
+ source?: string | {
1550
1570
  path?: string | undefined;
1551
1571
  hosted?: string | undefined;
1552
1572
  git?: string | undefined;
@@ -2054,6 +2074,16 @@ declare const ProjectConfigSchema: z.ZodObject<{
2054
2074
  }[];
2055
2075
  revisit?: string | undefined;
2056
2076
  }>, "many">>;
2077
+ /**
2078
+ * Opt-in strictness for teams that want CI to say "every designed component
2079
+ * has code": every implementation must have begun (some file it names
2080
+ * exists). When true, SOURCE_FILE_PLANNED and MISSING_SOURCE_PATH are
2081
+ * reported at error, naming this setting, instead of as notices. Off by
2082
+ * default, so a design-only tree passes `validate --ci`. Code-conformance
2083
+ * tuning like the rest of `rules.conformance`: it enters the analyzer's
2084
+ * digest, never the gate identity, so switching it never stales a lock.
2085
+ */
2086
+ requireCode: z.ZodOptional<z.ZodBoolean>;
2057
2087
  }, "strip", z.ZodTypeAny, {
2058
2088
  sourceRoots?: string[] | undefined;
2059
2089
  exclude?: string[] | undefined;
@@ -2070,6 +2100,7 @@ declare const ProjectConfigSchema: z.ZodObject<{
2070
2100
  }[];
2071
2101
  revisit?: string | undefined;
2072
2102
  }[] | undefined;
2103
+ requireCode?: boolean | undefined;
2073
2104
  }, {
2074
2105
  sourceRoots?: string[] | undefined;
2075
2106
  exclude?: string[] | undefined;
@@ -2086,6 +2117,7 @@ declare const ProjectConfigSchema: z.ZodObject<{
2086
2117
  }[];
2087
2118
  revisit?: string | undefined;
2088
2119
  }[] | undefined;
2120
+ requireCode?: boolean | undefined;
2089
2121
  }>>;
2090
2122
  /** Project-default design depth (see DesignDepthSchema); subsystems may override. */
2091
2123
  designDepth: z.ZodOptional<z.ZodEnum<["components", "interfaces", "implementations", "narratives"]>>;
@@ -2148,6 +2180,7 @@ declare const ProjectConfigSchema: z.ZodObject<{
2148
2180
  }[];
2149
2181
  revisit?: string | undefined;
2150
2182
  }[] | undefined;
2183
+ requireCode?: boolean | undefined;
2151
2184
  } | undefined;
2152
2185
  designDepth?: "components" | "interfaces" | "implementations" | "narratives" | undefined;
2153
2186
  }, {
@@ -2209,6 +2242,7 @@ declare const ProjectConfigSchema: z.ZodObject<{
2209
2242
  }[];
2210
2243
  revisit?: string | undefined;
2211
2244
  }[] | undefined;
2245
+ requireCode?: boolean | undefined;
2212
2246
  } | undefined;
2213
2247
  designDepth?: "components" | "interfaces" | "implementations" | "narratives" | undefined;
2214
2248
  }>>;
@@ -2506,6 +2540,7 @@ declare const ProjectConfigSchema: z.ZodObject<{
2506
2540
  }[];
2507
2541
  revisit?: string | undefined;
2508
2542
  }[] | undefined;
2543
+ requireCode?: boolean | undefined;
2509
2544
  } | undefined;
2510
2545
  designDepth?: "components" | "interfaces" | "implementations" | "narratives" | undefined;
2511
2546
  };
@@ -2530,7 +2565,7 @@ declare const ProjectConfigSchema: z.ZodObject<{
2530
2565
  description?: string | undefined;
2531
2566
  externals?: Record<string, {
2532
2567
  project?: string | undefined;
2533
- source?: {
2568
+ source?: string | {
2534
2569
  path?: string | undefined;
2535
2570
  hosted?: string | undefined;
2536
2571
  git?: string | undefined;
@@ -2597,7 +2632,7 @@ declare const ProjectConfigSchema: z.ZodObject<{
2597
2632
  description?: string | undefined;
2598
2633
  externals?: Record<string, {
2599
2634
  project?: string | undefined;
2600
- source?: {
2635
+ source?: string | {
2601
2636
  path?: string | undefined;
2602
2637
  hosted?: string | undefined;
2603
2638
  git?: string | undefined;
@@ -2699,6 +2734,7 @@ declare const ProjectConfigSchema: z.ZodObject<{
2699
2734
  }[];
2700
2735
  revisit?: string | undefined;
2701
2736
  }[] | undefined;
2737
+ requireCode?: boolean | undefined;
2702
2738
  } | undefined;
2703
2739
  designDepth?: "components" | "interfaces" | "implementations" | "narratives" | undefined;
2704
2740
  } | undefined;
@@ -2853,6 +2889,23 @@ interface DeclaredExternal {
2853
2889
  /** The declaration's `use` as written, deduplicated in first-seen order; empty when it imports nothing. */
2854
2890
  use: string[];
2855
2891
  }
2892
+ /** The forms an external's `source` is accepted in, as a refusal names them. */
2893
+ declare const EXTERNAL_SOURCE_FORMS = "a location string (`../sibling`, `hosted:<id>`, `<git url>` or `<git url>#<commit>`) or an object ({ path } | { hosted } | { git, ref?, dir? })";
2894
+ /** An external's source as read: its object form, normalized, or why it cannot be read. */
2895
+ interface ReadExternalSource {
2896
+ /** The object form; absent when nothing usable was written. */
2897
+ source?: ExternalSource;
2898
+ /** Why the source cannot be used as written — the declaration's problem, never a load failure. */
2899
+ problem?: string;
2900
+ }
2901
+ /**
2902
+ * external_declaration.source read leniently: the location string or the
2903
+ * object form, normalized into the object form. A source of the wrong shape,
2904
+ * one naming none or several of path/hosted/git, one naming `commit`, or a
2905
+ * string the grammar refuses is answered as the problem — never thrown — so a
2906
+ * configuration holding it still loads and every other external still shows.
2907
+ */
2908
+ declare function readExternalSource(written: unknown): ReadExternalSource;
2856
2909
  /** One `use` entry: `*`, or a public name of [a-z0-9-_]+. */
2857
2910
  declare const USE_ENTRY_RE: RegExp;
2858
2911
  /**
@@ -3134,6 +3187,14 @@ declare const AgentBriefSchema: z.ZodObject<{
3134
3187
  * agent implements nothing.
3135
3188
  */
3136
3189
  typeMapping: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3190
+ /**
3191
+ * Where an implementing agent may write CODE: each source file its
3192
+ * implementations name, plus the folder they share below the project root as
3193
+ * `<folder>/**`. Empty when nothing names a file yet (the instructions then
3194
+ * ask the spawning session to name the planned files); absent for an agent
3195
+ * that implements nothing.
3196
+ */
3197
+ codeFence: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3137
3198
  /**
3138
3199
  * Set only on a brief for a member's agent (an id qualified `<alias>::`): the
3139
3200
  * member's directory relative to the root the brief was asked from. The
@@ -3212,6 +3273,7 @@ declare const AgentBriefSchema: z.ZodObject<{
3212
3273
  readPaths?: string[] | undefined;
3213
3274
  variantGuidance?: string | undefined;
3214
3275
  typeMapping?: string[] | undefined;
3276
+ codeFence?: string[] | undefined;
3215
3277
  root?: string | undefined;
3216
3278
  budget?: {
3217
3279
  toolClass: "read-only" | "implement" | "orchestrate" | "full";
@@ -3238,6 +3300,7 @@ declare const AgentBriefSchema: z.ZodObject<{
3238
3300
  readPaths?: string[] | undefined;
3239
3301
  variantGuidance?: string | undefined;
3240
3302
  typeMapping?: string[] | undefined;
3303
+ codeFence?: string[] | undefined;
3241
3304
  root?: string | undefined;
3242
3305
  budget?: {
3243
3306
  toolClass: "read-only" | "implement" | "orchestrate" | "full";
@@ -3669,6 +3732,15 @@ declare function assertProjectInitialized(): void;
3669
3732
  interface StateId {
3670
3733
  algorithm: string;
3671
3734
  digest: string;
3735
+ /**
3736
+ * On a gate identity only: the same gate identity computed under the
3737
+ * algorithm the bound project's lock record was taken with, when that is the
3738
+ * previous (full-content, format-2) algorithm this release can still
3739
+ * recompute. Present only while the record on disk carries it, so such a
3740
+ * lock is judged exactly as it was taken. Never recorded: a lock writes
3741
+ * algorithm and digest alone.
3742
+ */
3743
+ asRecorded?: StateId;
3672
3744
  }
3673
3745
  /**
3674
3746
  * Deterministic CONTENT StateId over the current (request-scoped) project's
@@ -3685,6 +3757,18 @@ declare function computeStateId(): StateId;
3685
3757
  * marker as computeStateId, so for a project with no members the two agree.
3686
3758
  */
3687
3759
  declare function computeOwnStateId(): StateId;
3760
+ /**
3761
+ * state_hash.ownDesign — the DESIGN identity of the bound project's own specs:
3762
+ * exactly ownTree's selection, storage-independence and ordering, but each
3763
+ * spec digested in its design view — an implementation, a type and a
3764
+ * component through their type's designView (code linkage and timestamps
3765
+ * out), every other kind with its timestamps out (canonicalize drops them).
3766
+ * A part's implementation needs no re-expression from the part's root: the
3767
+ * paths are linkage, and the view leaves them out. Algorithm marker
3768
+ * `sha256-design`, so it never compares equal to a content identity. The
3769
+ * content half of the gate identity from lock format 3 on.
3770
+ */
3771
+ declare function computeOwnDesignStateId(): StateId;
3688
3772
 
3689
3773
  /** primitive | named | list | set | map | optional | union | async | applied | result. */
3690
3774
  type TypeForm = 'primitive' | 'named' | 'list' | 'set' | 'map' | 'optional' | 'union' | 'async' | 'applied' | 'result';
@@ -4148,6 +4232,16 @@ interface CodeIndex {
4148
4232
  * written down in the code.
4149
4233
  */
4150
4234
  forwardsOf(path: string, name: string, container?: string): ForwardedName[];
4235
+ /**
4236
+ * Whether realization has BEGUN for whatever names these files: true when at
4237
+ * least one of them resolves to a file the run analyzed or could read (any
4238
+ * status but missing or escaped). The one definition every code rule shares
4239
+ * — an implementation has begun when any file it names (its sourcePath or a
4240
+ * method's) exists, a type when its own file or a method's exists; a simPath
4241
+ * harness does not count, it follows the code it wires. Before that a named
4242
+ * file is planned, not missing. Pure: over the index's own facts.
4243
+ */
4244
+ holdsAny(files: string[]): boolean;
4151
4245
  }
4152
4246
  /** One (file, name) a republished name resolves to (forwarded_name). */
4153
4247
  interface ForwardedName {
@@ -4462,6 +4556,13 @@ interface RuleContext {
4462
4556
  * importing it, and the `use` line that would. Null when none does.
4463
4557
  */
4464
4558
  importHint(name: string): string | null;
4559
+ /**
4560
+ * rule_context.aliasSpelling — for a dotted type reference `<first>.<name>`
4561
+ * whose first segment is an alias the bound project declares (not one of its
4562
+ * subsystems) and whose supplier exports the name: the `alias::publicName`
4563
+ * it must be written as. Null otherwise.
4564
+ */
4565
+ aliasSpelling(ref: string): string | null;
4465
4566
  /** Every contract method across the component's interfaces (memoized — eight rules ask per binding or per step). */
4466
4567
  interfaceMethodsOf(compId: string): MethodSignature[];
4467
4568
  /** The run's source-code model keyed for lookup (memoized). */
@@ -4978,6 +5079,7 @@ declare const ProfileDefSchema: z.ZodObject<{
4978
5079
  }[];
4979
5080
  revisit?: string | undefined;
4980
5081
  }>, "many">>;
5082
+ requireCode: z.ZodOptional<z.ZodBoolean>;
4981
5083
  }, "strip", z.ZodTypeAny, {
4982
5084
  sourceRoots?: string[] | undefined;
4983
5085
  exclude?: string[] | undefined;
@@ -4994,6 +5096,7 @@ declare const ProfileDefSchema: z.ZodObject<{
4994
5096
  }[];
4995
5097
  revisit?: string | undefined;
4996
5098
  }[] | undefined;
5099
+ requireCode?: boolean | undefined;
4997
5100
  }, {
4998
5101
  sourceRoots?: string[] | undefined;
4999
5102
  exclude?: string[] | undefined;
@@ -5010,6 +5113,7 @@ declare const ProfileDefSchema: z.ZodObject<{
5010
5113
  }[];
5011
5114
  revisit?: string | undefined;
5012
5115
  }[] | undefined;
5116
+ requireCode?: boolean | undefined;
5013
5117
  }>>>;
5014
5118
  designDepth: z.ZodOptional<z.ZodOptional<z.ZodEnum<["components", "interfaces", "implementations", "narratives"]>>>;
5015
5119
  }, "strip", z.ZodTypeAny, {
@@ -5071,6 +5175,7 @@ declare const ProfileDefSchema: z.ZodObject<{
5071
5175
  }[];
5072
5176
  revisit?: string | undefined;
5073
5177
  }[] | undefined;
5178
+ requireCode?: boolean | undefined;
5074
5179
  } | undefined;
5075
5180
  designDepth?: "components" | "interfaces" | "implementations" | "narratives" | undefined;
5076
5181
  }, {
@@ -5132,6 +5237,7 @@ declare const ProfileDefSchema: z.ZodObject<{
5132
5237
  }[];
5133
5238
  revisit?: string | undefined;
5134
5239
  }[] | undefined;
5240
+ requireCode?: boolean | undefined;
5135
5241
  } | undefined;
5136
5242
  designDepth?: "components" | "interfaces" | "implementations" | "narratives" | undefined;
5137
5243
  }>>;
@@ -5209,6 +5315,7 @@ declare const ProfileDefSchema: z.ZodObject<{
5209
5315
  }[];
5210
5316
  revisit?: string | undefined;
5211
5317
  }[] | undefined;
5318
+ requireCode?: boolean | undefined;
5212
5319
  } | undefined;
5213
5320
  designDepth?: "components" | "interfaces" | "implementations" | "narratives" | undefined;
5214
5321
  } | undefined;
@@ -5272,6 +5379,7 @@ declare const ProfileDefSchema: z.ZodObject<{
5272
5379
  }[];
5273
5380
  revisit?: string | undefined;
5274
5381
  }[] | undefined;
5382
+ requireCode?: boolean | undefined;
5275
5383
  } | undefined;
5276
5384
  designDepth?: "components" | "interfaces" | "implementations" | "narratives" | undefined;
5277
5385
  } | undefined;
@@ -5788,6 +5896,7 @@ declare const DeclarativePackSchema: z.ZodObject<{
5788
5896
  }[];
5789
5897
  revisit?: string | undefined;
5790
5898
  }>, "many">>;
5899
+ requireCode: z.ZodOptional<z.ZodBoolean>;
5791
5900
  }, "strip", z.ZodTypeAny, {
5792
5901
  sourceRoots?: string[] | undefined;
5793
5902
  exclude?: string[] | undefined;
@@ -5804,6 +5913,7 @@ declare const DeclarativePackSchema: z.ZodObject<{
5804
5913
  }[];
5805
5914
  revisit?: string | undefined;
5806
5915
  }[] | undefined;
5916
+ requireCode?: boolean | undefined;
5807
5917
  }, {
5808
5918
  sourceRoots?: string[] | undefined;
5809
5919
  exclude?: string[] | undefined;
@@ -5820,6 +5930,7 @@ declare const DeclarativePackSchema: z.ZodObject<{
5820
5930
  }[];
5821
5931
  revisit?: string | undefined;
5822
5932
  }[] | undefined;
5933
+ requireCode?: boolean | undefined;
5823
5934
  }>>>;
5824
5935
  designDepth: z.ZodOptional<z.ZodOptional<z.ZodEnum<["components", "interfaces", "implementations", "narratives"]>>>;
5825
5936
  }, "strip", z.ZodTypeAny, {
@@ -5881,6 +5992,7 @@ declare const DeclarativePackSchema: z.ZodObject<{
5881
5992
  }[];
5882
5993
  revisit?: string | undefined;
5883
5994
  }[] | undefined;
5995
+ requireCode?: boolean | undefined;
5884
5996
  } | undefined;
5885
5997
  designDepth?: "components" | "interfaces" | "implementations" | "narratives" | undefined;
5886
5998
  }, {
@@ -5942,6 +6054,7 @@ declare const DeclarativePackSchema: z.ZodObject<{
5942
6054
  }[];
5943
6055
  revisit?: string | undefined;
5944
6056
  }[] | undefined;
6057
+ requireCode?: boolean | undefined;
5945
6058
  } | undefined;
5946
6059
  designDepth?: "components" | "interfaces" | "implementations" | "narratives" | undefined;
5947
6060
  }>>;
@@ -6019,6 +6132,7 @@ declare const DeclarativePackSchema: z.ZodObject<{
6019
6132
  }[];
6020
6133
  revisit?: string | undefined;
6021
6134
  }[] | undefined;
6135
+ requireCode?: boolean | undefined;
6022
6136
  } | undefined;
6023
6137
  designDepth?: "components" | "interfaces" | "implementations" | "narratives" | undefined;
6024
6138
  } | undefined;
@@ -6082,6 +6196,7 @@ declare const DeclarativePackSchema: z.ZodObject<{
6082
6196
  }[];
6083
6197
  revisit?: string | undefined;
6084
6198
  }[] | undefined;
6199
+ requireCode?: boolean | undefined;
6085
6200
  } | undefined;
6086
6201
  designDepth?: "components" | "interfaces" | "implementations" | "narratives" | undefined;
6087
6202
  } | undefined;
@@ -6437,6 +6552,7 @@ declare const DeclarativePackSchema: z.ZodObject<{
6437
6552
  }[];
6438
6553
  revisit?: string | undefined;
6439
6554
  }[] | undefined;
6555
+ requireCode?: boolean | undefined;
6440
6556
  } | undefined;
6441
6557
  designDepth?: "components" | "interfaces" | "implementations" | "narratives" | undefined;
6442
6558
  } | undefined;
@@ -6566,6 +6682,7 @@ declare const DeclarativePackSchema: z.ZodObject<{
6566
6682
  }[];
6567
6683
  revisit?: string | undefined;
6568
6684
  }[] | undefined;
6685
+ requireCode?: boolean | undefined;
6569
6686
  } | undefined;
6570
6687
  designDepth?: "components" | "interfaces" | "implementations" | "narratives" | undefined;
6571
6688
  } | undefined;
@@ -7060,6 +7177,14 @@ interface ValidationIssue {
7060
7177
  * root. Absent on the owner's own run.
7061
7178
  */
7062
7179
  project?: string;
7180
+ /**
7181
+ * True on a finding reported beside a gate rather than by it — the live
7182
+ * comparison of an external with its producer (family_validator.advise).
7183
+ * Printed and counted with its severity, but never part of a failure
7184
+ * decision: `valid` and `validate --ci` both ignore it, because the pin is
7185
+ * the reproducible gate and a live producer is not.
7186
+ */
7187
+ advisory?: boolean;
7063
7188
  }
7064
7189
  interface ValidationResult {
7065
7190
  valid: boolean;
@@ -7083,6 +7208,12 @@ interface ValidationResult {
7083
7208
  * and on a family run.
7084
7209
  */
7085
7210
  analysis?: CodeAnalysis;
7211
+ /**
7212
+ * A family run only: the aliases of the bound project's externals the run
7213
+ * composed as part of its gate (their producers in reach) — the advisory
7214
+ * live comparison skips them, so they get no second word.
7215
+ */
7216
+ composed?: string[];
7086
7217
  }
7087
7218
  /**
7088
7219
  * project_verdict — one project's line in a family run: which project it is,
@@ -7213,7 +7344,7 @@ declare function builtinProjectKinds(): string[];
7213
7344
  /**
7214
7345
  * The gate identity a lock records and every staleness check compares
7215
7346
  * (ispec_validator/ivalidator_portal.computeGateStateId): the project's OWN
7216
- * content identity, the design doctrine, its own consumed contract inputs, its
7347
+ * DESIGN identity (code linkage and timestamps out), the design doctrine, its own consumed contract inputs, its
7217
7348
  * `composition`, and each direct member's composition subject — read from the
7218
7349
  * member's own lock record, never recomputed and never its specs. So a
7219
7350
  * parent's identity costs its own tree plus one lock file per direct member,
@@ -7289,6 +7420,31 @@ interface CodeAnalysis {
7289
7420
  warnings: number;
7290
7421
  notices: number;
7291
7422
  }
7423
+ /**
7424
+ * spec_digest_reading — which reading of a spec file a lock record's per-spec
7425
+ * digests were taken in. `content`: the raw text, line endings normalized —
7426
+ * what every record written before format 3 carries (the field absent).
7427
+ * `design`: the spec's design view (code linkage and timestamps out) in
7428
+ * canonical form, so a sourcePath, a whitespace edit or a no-op re-save never
7429
+ * moves it.
7430
+ */
7431
+ type SpecDigestReading = 'content' | 'design';
7432
+ /**
7433
+ * lock_reexpression — provenance on a lock record a tool carried into a newer
7434
+ * reading after PROVING the design is the one approved (its own earlier
7435
+ * identity, recomputed over the tree as it stands, matched), rather than a
7436
+ * human re-approving it. Who approved and when stay the human's.
7437
+ */
7438
+ interface LockReexpression {
7439
+ /** ISO-8601 time of the re-expression. */
7440
+ at: string;
7441
+ /** The gate algorithm the record carried before. */
7442
+ fromAlgorithm: string;
7443
+ /** The per-spec digest reading the record carried before. */
7444
+ fromReading: SpecDigestReading;
7445
+ /** The command that re-expressed it (e.g. `wairon doctor --fix`), never a person. */
7446
+ by: string;
7447
+ }
7292
7448
  /** A project's approval state as seen from its own root. */
7293
7449
  type ProjectApprovalState = 'approved' | 'drifted' | 'never';
7294
7450
  /** How a parent's lock pinned a member. */
@@ -7386,8 +7542,26 @@ interface LockRecord {
7386
7542
  * one release as the member pins; never written from stage 5 on.
7387
7543
  */
7388
7544
  children?: Record<string, string>;
7389
- /** The record format: 2 from stage 5 on; absent means format 1. */
7545
+ /**
7546
+ * The record format: 3 from the release in which code linkage left the
7547
+ * approval (stateId under the design gate algorithm, `specs` in the design
7548
+ * reading), 2 from stage 5 on, absent means format 1. A format-2 record stays
7549
+ * valid as written: it is judged under its own algorithm (StateId.asRecorded)
7550
+ * and its own reading until it is re-locked or re-expressed.
7551
+ */
7390
7552
  format?: number;
7553
+ /**
7554
+ * The reading `specs` was digested in: `design` on every record written from
7555
+ * format 3 on, absent on an earlier record (raw-content digests). A reader
7556
+ * compares the tree in the reading the record names, never in another.
7557
+ */
7558
+ specsReading?: SpecDigestReading;
7559
+ /**
7560
+ * Present when a tool carried this record into the current reading and gate
7561
+ * algorithm after proving the design unchanged (doctor --fix), instead of a
7562
+ * human re-approving it.
7563
+ */
7564
+ reexpressed?: LockReexpression;
7391
7565
  /**
7392
7566
  * Each DIRECT member, keyed by alias → its composition subject and approval
7393
7567
  * state as they stood when this project locked. Present (possibly empty) on
@@ -7414,11 +7588,6 @@ interface LockRecord {
7414
7588
  }
7415
7589
  /** Read the current project's lock record, or null when absent/unreadable. */
7416
7590
  declare function readLockRecord(): LockRecord | null;
7417
- /**
7418
- * Persist the lock record atomically to .wai/lock.json (overwrites any prior).
7419
- * A legacy `children` map is never written: `members` is recorded instead.
7420
- */
7421
- declare function writeLockRecord(record: LockRecord): void;
7422
7591
 
7423
7592
  declare class WaironError extends Error {
7424
7593
  constructor(message: string);
@@ -7483,6 +7652,241 @@ interface CarriedRekey {
7483
7652
  to: string;
7484
7653
  }
7485
7654
 
7655
+ interface CanvasModel {
7656
+ system: {
7657
+ name: string;
7658
+ vision?: string;
7659
+ targetLanguage?: string;
7660
+ databases?: {
7661
+ id: string;
7662
+ name: string;
7663
+ engine: string;
7664
+ description?: string;
7665
+ tables?: string[];
7666
+ }[];
7667
+ diagram?: {
7668
+ lineStyle?: 'bezier' | 'straight' | 'taxi';
7669
+ defaultView?: 'architecture' | 'types' | 'databases';
7670
+ showDatabases?: boolean;
7671
+ };
7672
+ };
7673
+ generatedAt: string;
7674
+ subsystems: {
7675
+ id: string;
7676
+ name: string;
7677
+ description: string;
7678
+ targetLanguage?: string;
7679
+ status?: string;
7680
+ trustedLinks: {
7681
+ subsystem: string;
7682
+ reason: string;
7683
+ }[];
7684
+ /** A member project's node (stage 3): its id is the member's key, its name the
7685
+ * alias its parent declares it under; the member's specs hang under it. */
7686
+ project?: boolean;
7687
+ /** Hosted (stage 7): a member project node's record id, present only when the
7688
+ * caller may read that record — the web app links the node to its page. */
7689
+ recordId?: string;
7690
+ /** Stage 8: the storage badge of a subsystem a PART holds (it is this
7691
+ * project's own subsystem, stored elsewhere) — `part <alias> · contained`,
7692
+ * `… · ../admin`, `… · git a1b2c3d` — or of a referenced project node. */
7693
+ storage?: string;
7694
+ /** A declared external that is no project of the family, drawn as a
7695
+ * project node of its own (dashed) that its consumption edges land on. */
7696
+ external?: boolean;
7697
+ /** Opt-in deep expansion: with Internals on, this subsystem's box renders
7698
+ * its WHOLE subtree (nested boundary boxes + leaf tiles + direct relation
7699
+ * lines) instead of one layer. Never set by buildCanvasModel — the hosted
7700
+ * environment adapter stamps it on unit-derived frames. Absent ⇒ the
7701
+ * engine behaves exactly as before. */
7702
+ deepInternals?: boolean;
7703
+ }[];
7704
+ components: {
7705
+ id: string;
7706
+ name: string;
7707
+ description: string;
7708
+ subsystem: string;
7709
+ componentType: string;
7710
+ portalType?: string;
7711
+ status?: string;
7712
+ public: boolean;
7713
+ /** The L0 gateway entry id this component backs (the OpenAPI operation tag),
7714
+ * present only for a component published in the system's public surface. */
7715
+ apiTag?: string;
7716
+ owner?: string;
7717
+ owns: string[];
7718
+ dependsOn: string[];
7719
+ interfaces: {
7720
+ id: string;
7721
+ name: string;
7722
+ description: string;
7723
+ methods: {
7724
+ name: string;
7725
+ description: string;
7726
+ signature: string;
7727
+ returns: string;
7728
+ params?: {
7729
+ name: string;
7730
+ type: string;
7731
+ optional?: boolean;
7732
+ }[];
7733
+ /** Where the method takes its params and returns from, shown beside its signature ("from X"). */
7734
+ signatureFrom?: string;
7735
+ endpoint?: unknown;
7736
+ guarantees?: string[];
7737
+ }[];
7738
+ }[];
7739
+ narratives: {
7740
+ method: string;
7741
+ steps: {
7742
+ n: number;
7743
+ text: string;
7744
+ kind: string;
7745
+ call?: {
7746
+ component: string;
7747
+ method: string;
7748
+ };
7749
+ cond?: string;
7750
+ onTrue?: number;
7751
+ onFalse?: number;
7752
+ on?: string;
7753
+ cases?: {
7754
+ value: string;
7755
+ step: number;
7756
+ }[];
7757
+ defaultStep?: number;
7758
+ loopKind?: string;
7759
+ over?: string;
7760
+ end?: number;
7761
+ catches?: {
7762
+ error: string;
7763
+ step: number;
7764
+ }[];
7765
+ fin?: number;
7766
+ to?: number;
7767
+ /** parallel: arm entry steps (contiguous ordered sub-regions of the body). */
7768
+ branches?: {
7769
+ step: number;
7770
+ name?: string;
7771
+ }[];
7772
+ /** call/dispatch: fire-and-forget — failure does not propagate to this flow. */
7773
+ detach?: boolean;
7774
+ outcome?: string;
7775
+ err?: string;
7776
+ }[];
7777
+ }[];
7778
+ /** Opaque external references surfaced on the canvas element (see ExternalLinkSchema).
7779
+ * wairon never fetches them; an `implementation` link is the external source-of-record. */
7780
+ externalLinks?: {
7781
+ url: string;
7782
+ type: string;
7783
+ label?: string;
7784
+ }[];
7785
+ /** Methods specified as intent prose instead of a narrative (the detail dial). */
7786
+ intents: {
7787
+ method: string;
7788
+ text: string;
7789
+ }[];
7790
+ }[];
7791
+ /** `consumption`: the edge's ends lie in different projects (or it lands on a
7792
+ * referenced or external project node); `relation`: the CanvasRelation it
7793
+ * takes its health from, present only when the model carries relations. */
7794
+ edges: {
7795
+ from: string;
7796
+ to: string;
7797
+ cross: boolean;
7798
+ consumption?: boolean;
7799
+ relation?: string;
7800
+ }[];
7801
+ /** Relation health, one per consumer→producer pair the edges connect. PRESENT
7802
+ * only when health was computed (empty when nothing is consumed); ABSENT when
7803
+ * it was not — then consumption edges are drawn neutral, "not checked". */
7804
+ relations?: CanvasRelation[];
7805
+ types: {
7806
+ id: string;
7807
+ name: string;
7808
+ kind: string;
7809
+ subsystem?: string;
7810
+ fields: {
7811
+ name: string;
7812
+ type: string;
7813
+ optional?: boolean;
7814
+ key?: string;
7815
+ references?: string;
7816
+ }[];
7817
+ methods: {
7818
+ name: string;
7819
+ signature: string;
7820
+ returns: string;
7821
+ description?: string;
7822
+ }[];
7823
+ /** A signature type's derived text, `(a: T, b?: U): R` — drawn in place of a field list. */
7824
+ signature?: string;
7825
+ /** An enum's values in declared order — drawn in place of a field list. */
7826
+ values?: {
7827
+ name: string;
7828
+ description?: string;
7829
+ }[];
7830
+ /** A named scalar's primitive — drawn compactly beside its name, with no field rows and no edges. */
7831
+ holds?: string;
7832
+ /** Interface methods whose params/returns reference this type (usage trace). */
7833
+ usedBy: {
7834
+ component: string;
7835
+ method: string;
7836
+ }[];
7837
+ componentClass?: string;
7838
+ database?: string;
7839
+ table?: string;
7840
+ linkedEntity?: string;
7841
+ }[];
7842
+ /** Type → type references derived from field type strings (ERD edges). */
7843
+ typeEdges: {
7844
+ from: string;
7845
+ to: string;
7846
+ field: string;
7847
+ card: '1' | '0..1' | '*';
7848
+ }[];
7849
+ /** Data-coupling edges: a component depends on another subsystem's data
7850
+ * (uses a type it owns), pointed at that subsystem's published portal. */
7851
+ dataEdges: {
7852
+ from: string;
7853
+ to: string;
7854
+ }[];
7855
+ issues: {
7856
+ severity: string;
7857
+ code: string;
7858
+ message: string;
7859
+ specId?: string;
7860
+ }[];
7861
+ }
7862
+ /**
7863
+ * canvas_relation — one consumer-project-to-producer-project relation as the
7864
+ * canvas draws it: the health every consumption edge between the two takes,
7865
+ * and the detail a reader sees on hover or in the details panel.
7866
+ */
7867
+ interface CanvasRelation {
7868
+ /** `<consumer>→<producer>`: the key a consumption edge names in its `relation`. */
7869
+ id: string;
7870
+ /** The consuming project's key ('' for the bound root). */
7871
+ consumer: string;
7872
+ /** The alias the consumer reaches the producer under. */
7873
+ producer: string;
7874
+ health: RelationHealth;
7875
+ /** The uses that are NOT unchanged, with their state and why. */
7876
+ uses: {
7877
+ name: string;
7878
+ state: string;
7879
+ detail?: string;
7880
+ }[];
7881
+ /** How many uses compared unchanged. */
7882
+ unchanged: number;
7883
+ pinnedCommit?: string;
7884
+ pinnedDigest?: string;
7885
+ comparedAt: string;
7886
+ /** Why the relation is unavailable, when it is. */
7887
+ detail?: string;
7888
+ }
7889
+
7486
7890
  /** What a landscape edge says about its two ends. */
7487
7891
  type LandscapeEdgeKind = 'contains' | 'owns' | 'shared_with' | 'publishes' | 'consumes' | 'depends_on' | 'mirrors';
7488
7892
  /** A directed edge of the hosted landscape graph. */
@@ -7534,6 +7938,49 @@ interface WebGraphModel {
7534
7938
  scope?: string;
7535
7939
  }
7536
7940
 
7941
+ /** The formats the architecture diagram renders to. */
7942
+ type DiagramFormat = 'canvas' | 'mermaid' | 'drawio' | 'excalidraw';
7943
+ /**
7944
+ * The full CanvasModel for the current (request-scoped) project — the same model
7945
+ * `renderDiagram('canvas')` renders to the standalone HTML, but returned as data
7946
+ * so the React web app can mount the shared renderer directly (no iframe) and,
7947
+ * later, receive it in on-demand scope slices. Pure derivation, no side effects;
7948
+ * relation health is drawn only when passed in.
7949
+ */
7950
+ declare function buildCanvasDataModel(relations?: ProjectRelations[]): CanvasModel;
7951
+ interface DiagramFile {
7952
+ /** Path relative to the diagrams output directory, using forward slashes. */
7953
+ relPath: string;
7954
+ title: string;
7955
+ /** Raw mermaid source (no markdown fence). */
7956
+ mermaid: string;
7957
+ }
7958
+ interface SpecGraph {
7959
+ systemName: string;
7960
+ subsystems: SubsystemSpec[];
7961
+ components: ComponentSpec[];
7962
+ interfaces: InterfaceSpec[];
7963
+ implementations: ImplementationSpec[];
7964
+ /** Component ids published via some subsystem's publicInterfaces. */
7965
+ publicComponents: Set<string>;
7966
+ }
7967
+ declare function loadSpecGraph(): SpecGraph;
7968
+ interface ComponentDiagramOptions {
7969
+ /** Scope to one subsystem (its components plus directly-connected externals). */
7970
+ subsystem?: string;
7971
+ }
7972
+ declare function generateComponentDiagram(options?: ComponentDiagramOptions): string;
7973
+ interface SequenceDiagramOptions {
7974
+ /** Max call-expansion depth (default 3). Depth 1 = only the method's own steps. */
7975
+ depth?: number;
7976
+ }
7977
+ declare function generateSequenceDiagram(componentId: string, methodName: string, options?: SequenceDiagramOptions): string;
7978
+ declare function generateDiagramSet(): DiagramFile[];
7979
+ /** Wrap raw mermaid in a titled markdown document (renders on GitHub / IDEs). */
7980
+ declare function toMarkdown(file: DiagramFile): string;
7981
+ /** Index README linking every generated diagram. */
7982
+ declare function diagramSetIndex(files: DiagramFile[], systemName: string): string;
7983
+
7537
7984
  /** spec_index — the bound tree as one scan read it: every spec by kind, and the file each is stored in. */
7538
7985
  interface SpecIndex {
7539
7986
  subsystems: SubsystemSpec[];
@@ -7930,7 +8377,8 @@ interface LockStatus {
7930
8377
  /**
7931
8378
  * Resolve the project's lock into one of three honest states, comparing the
7932
8379
  * recorded gate identity against the one the caller computed now
7933
- * (validator_portal.computeGateStateId). Nothing is hashed here: the gate
8380
+ * (validator_portal.computeGateStateId) — or, for a format-2 record, against
8381
+ * its asRecorded reading. Nothing is hashed here: the gate
7934
8382
  * identity is the validator's, because the doctrine it covers is the
7935
8383
  * validator's rule set.
7936
8384
  *
@@ -7942,6 +8390,18 @@ interface LockStatus {
7942
8390
  * every caller now shares this.
7943
8391
  */
7944
8392
  declare function readLockState(current: StateId): LockStatus;
8393
+ /**
8394
+ * core_orchestrator.writeLockRecord — the lock record written through the lock
8395
+ * store. The approval portal publishes THIS function, so a Portal never reaches
8396
+ * the store's write itself: writes route through the Orchestrator.
8397
+ */
8398
+ declare function writeLockRecord(record: LockRecord): void;
8399
+ /**
8400
+ * core_orchestrator.renderDiagram — the spec tree rendered in the requested
8401
+ * format by the architecture diagrams, with the relation health passed through
8402
+ * (only the canvas draws it). The spec tree portal publishes this function.
8403
+ */
8404
+ declare function renderDiagram(format: DiagramFormat, relations?: ProjectRelations[]): string;
7945
8405
  /** Write a fresh configuration for a project that has none; refuses when one exists. */
7946
8406
  declare function createProjectConfig(config: ProjectConfig): void;
7947
8407
  /** Select a pack by name, moving a re-selected pack last; returns whether an earlier selection was replaced. */
@@ -14847,6 +15307,57 @@ declare function storedTypeMethod<M extends StoredTypeMethod>(method: M): Stored
14847
15307
  declare function typeSourceFiles(type: Pick<TypeSpec, 'sourcePath'> & {
14848
15308
  methods?: ReadonlyArray<Pick<TypeMethod, 'sourcePath'>>;
14849
15309
  }): string[];
15310
+ /** Each schema's fields, split into the design (approved) and the code linkage (not approved). */
15311
+ declare const DESIGN_VIEW_FIELDS: {
15312
+ readonly implementation: {
15313
+ readonly linkage: readonly ["sourcePath", "simPath", "injectedParams", "conformance", "createdAt", "updatedAt"];
15314
+ readonly design: readonly ["id", "name", "description", "contract", "technologies", "methods", "detail", "previousIds", "lint", "ext", "status"];
15315
+ };
15316
+ readonly implementationMethod: {
15317
+ readonly linkage: readonly ["sourcePath", "symbol", "exportedVia", "conformance"];
15318
+ readonly design: readonly ["name", "narrative", "detail", "intent", "calls", "ext"];
15319
+ };
15320
+ readonly type: {
15321
+ readonly linkage: readonly ["sourcePath", "symbol", "createdAt", "updatedAt"];
15322
+ readonly design: readonly ["kind", "id", "name", "description", "subsystem", "group", "fields", "methods", "componentClass", "invariants", "database", "table", "linkedEntity", "previousIds", "lint", "ext", "params", "returns", "values", "holds"];
15323
+ };
15324
+ readonly typeMethod: {
15325
+ readonly linkage: readonly ["sourcePath", "symbol"];
15326
+ readonly design: readonly ["name", "signature", "params", "returns", "description"];
15327
+ };
15328
+ readonly component: {
15329
+ readonly linkage: readonly ["externalLinks", "createdAt", "updatedAt"];
15330
+ readonly design: readonly ["id", "name", "description", "subsystem", "componentType", "owns", "dependsOn", "portalType", "basePath", "auth", "dispatch", "mounts", "durability", "dependencyClass", "emits", "subscribesTo", "patterns", "variant", "previousIds", "lint", "ext", "status"];
15331
+ };
15332
+ readonly portalMount: {
15333
+ readonly linkage: readonly ["via"];
15334
+ readonly design: readonly ["portal", "prefixes"];
15335
+ };
15336
+ };
15337
+ /**
15338
+ * implementation_spec.designView — this implementation as the approval sees it:
15339
+ * its own sourcePath, simPath, injectedParams and conformance tier, each
15340
+ * method's sourcePath, symbol, exportedVia and conformance tier, and the
15341
+ * timestamps left out. Everything else — the contract, technologies, the
15342
+ * detail dial, each method's narrative, intent and calls, the rename trace,
15343
+ * lint, ext, status — stays. Pure: a sourcePath added, moved or removed never
15344
+ * changes it. Reads a stored (raw) spec as readily as a loaded one.
15345
+ */
15346
+ declare function implementationDesignView<T extends object>(impl: T): T;
15347
+ /**
15348
+ * type_spec.designView — this type as the approval sees it: its own sourcePath
15349
+ * and symbol, each method's sourcePath and symbol, and the timestamps left
15350
+ * out; its fields, methods' signatures and descriptions, invariants, values,
15351
+ * holds, rename trace, lint and ext stay. Pure.
15352
+ */
15353
+ declare function typeDesignView<T extends object>(type: T): T;
15354
+ /**
15355
+ * component_spec.designView — this component as the approval sees it: each
15356
+ * mount's `via` (the router entry the portal's file exports, held to code by
15357
+ * UNREALIZED_EXPORT_HANDLE), its externalLinks and the timestamps left out. A
15358
+ * mount's portal and prefixes, and every other field, stay. Pure.
15359
+ */
15360
+ declare function componentDesignView<T extends object>(component: T): T;
14850
15361
  declare const SurfaceOriginSchema: z.ZodEnum<["generated", "exchanged", "authored"]>;
14851
15362
  type SurfaceOrigin = z.infer<typeof SurfaceOriginSchema>;
14852
15363
  /** A self-contained type definition embedded in a snapshot (closure member). */
@@ -14902,6 +15413,12 @@ declare const SurfaceTypeDefSchema: z.ZodObject<{
14902
15413
  }>, "many">>;
14903
15414
  /** A named scalar's one primitive, in place of fields; only on a value-object that declares it. */
14904
15415
  holds: z.ZodOptional<z.ZodString>;
15416
+ /**
15417
+ * The type's rename trace as the producer recorded it (previousIds), so a
15418
+ * consumer pinned to a former name reads a rename rather than a removal.
15419
+ * Provenance, never signature: it enters no digest. Absent when never renamed.
15420
+ */
15421
+ formerly: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
14905
15422
  }, "strip", z.ZodTypeAny, {
14906
15423
  id: string;
14907
15424
  name: string;
@@ -14924,6 +15441,7 @@ declare const SurfaceTypeDefSchema: z.ZodObject<{
14924
15441
  }[] | undefined;
14925
15442
  returns?: string | undefined;
14926
15443
  holds?: string | undefined;
15444
+ formerly?: string[] | undefined;
14927
15445
  }, {
14928
15446
  id: string;
14929
15447
  name: string;
@@ -14946,6 +15464,7 @@ declare const SurfaceTypeDefSchema: z.ZodObject<{
14946
15464
  kind?: string | undefined;
14947
15465
  returns?: string | undefined;
14948
15466
  holds?: string | undefined;
15467
+ formerly?: string[] | undefined;
14949
15468
  }>;
14950
15469
  type SurfaceTypeDef = z.infer<typeof SurfaceTypeDefSchema>;
14951
15470
  /** A type the producer exports by name (a typeDef export); its definition is in the type closure. */
@@ -14976,7 +15495,11 @@ declare const SurfaceContractEntrySchema: z.ZodObject<{
14976
15495
  type: z.ZodDefault<z.ZodString>;
14977
15496
  /** Local name of the backing Portal in the producing project. */
14978
15497
  component: z.ZodString;
14979
- /** Full contract methods (params, returns, guarantees, effect, endpoint), resolved: a snapshot names no producer-internal source. */
15498
+ /**
15499
+ * Full contract methods (params, returns, guarantees, effect, endpoint),
15500
+ * resolved: a snapshot names no producer-internal source. A renamed method
15501
+ * carries its former names as `formerly` (provenance, outside every digest).
15502
+ */
14980
15503
  methods: z.ZodDefault<z.ZodArray<z.ZodObject<{
14981
15504
  name: z.ZodString;
14982
15505
  description: z.ZodString;
@@ -15135,6 +15658,8 @@ declare const SurfaceContractEntrySchema: z.ZodObject<{
15135
15658
  } & {
15136
15659
  signature: z.ZodString;
15137
15660
  returns: z.ZodString;
15661
+ } & {
15662
+ formerly: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
15138
15663
  }, "strip", z.ZodTypeAny, {
15139
15664
  name: string;
15140
15665
  description: string;
@@ -15191,6 +15716,7 @@ declare const SurfaceContractEntrySchema: z.ZodObject<{
15191
15716
  caller?: string | undefined;
15192
15717
  } | undefined;
15193
15718
  previousNames?: string[] | undefined;
15719
+ formerly?: string[] | undefined;
15194
15720
  }, {
15195
15721
  name: string;
15196
15722
  description: string;
@@ -15247,6 +15773,7 @@ declare const SurfaceContractEntrySchema: z.ZodObject<{
15247
15773
  caller?: string | undefined;
15248
15774
  } | undefined;
15249
15775
  previousNames?: string[] | undefined;
15776
+ formerly?: string[] | undefined;
15250
15777
  }>, "many">>;
15251
15778
  /** The backing portal's capability dispatch table, when generic-dispatch. */
15252
15779
  dispatch: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -15335,6 +15862,15 @@ declare const SurfaceContractEntrySchema: z.ZodObject<{
15335
15862
  componentType: z.ZodOptional<z.ZodString>;
15336
15863
  /** The L3 interface the export narrows to, when it narrows. */
15337
15864
  interface: z.ZodOptional<z.ZodString>;
15865
+ /**
15866
+ * The rename trace behind the entry's public name: the former public names
15867
+ * the producer's rename trace (the narrowed interface's, else the backing
15868
+ * component's previousIds) records. Carried into the pin snapshot and the
15869
+ * surface export so a consumer can follow a rename instead of reading a
15870
+ * delete plus an add. Provenance, never signature: it enters neither
15871
+ * memberDigest nor contentDigest. Absent when never renamed.
15872
+ */
15873
+ formerly: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
15338
15874
  }, "strip", z.ZodTypeAny, {
15339
15875
  id: string;
15340
15876
  type: string;
@@ -15395,6 +15931,7 @@ declare const SurfaceContractEntrySchema: z.ZodObject<{
15395
15931
  caller?: string | undefined;
15396
15932
  } | undefined;
15397
15933
  previousNames?: string[] | undefined;
15934
+ formerly?: string[] | undefined;
15398
15935
  }[];
15399
15936
  component: string;
15400
15937
  details: string;
@@ -15427,6 +15964,7 @@ declare const SurfaceContractEntrySchema: z.ZodObject<{
15427
15964
  capability: string;
15428
15965
  description?: string | undefined;
15429
15966
  }[] | undefined;
15967
+ formerly?: string[] | undefined;
15430
15968
  }, {
15431
15969
  id: string;
15432
15970
  name: string;
@@ -15489,6 +16027,7 @@ declare const SurfaceContractEntrySchema: z.ZodObject<{
15489
16027
  caller?: string | undefined;
15490
16028
  } | undefined;
15491
16029
  previousNames?: string[] | undefined;
16030
+ formerly?: string[] | undefined;
15492
16031
  }[] | undefined;
15493
16032
  interface?: string | undefined;
15494
16033
  componentType?: string | undefined;
@@ -15519,6 +16058,7 @@ declare const SurfaceContractEntrySchema: z.ZodObject<{
15519
16058
  capability: string;
15520
16059
  description?: string | undefined;
15521
16060
  }[] | undefined;
16061
+ formerly?: string[] | undefined;
15522
16062
  }>;
15523
16063
  type SurfaceContractEntry = z.infer<typeof SurfaceContractEntrySchema>;
15524
16064
  declare const SurfaceSnapshotSchema: z.ZodObject<{
@@ -15539,7 +16079,11 @@ declare const SurfaceSnapshotSchema: z.ZodObject<{
15539
16079
  type: z.ZodDefault<z.ZodString>;
15540
16080
  /** Local name of the backing Portal in the producing project. */
15541
16081
  component: z.ZodString;
15542
- /** Full contract methods (params, returns, guarantees, effect, endpoint), resolved: a snapshot names no producer-internal source. */
16082
+ /**
16083
+ * Full contract methods (params, returns, guarantees, effect, endpoint),
16084
+ * resolved: a snapshot names no producer-internal source. A renamed method
16085
+ * carries its former names as `formerly` (provenance, outside every digest).
16086
+ */
15543
16087
  methods: z.ZodDefault<z.ZodArray<z.ZodObject<{
15544
16088
  name: z.ZodString;
15545
16089
  description: z.ZodString;
@@ -15698,6 +16242,8 @@ declare const SurfaceSnapshotSchema: z.ZodObject<{
15698
16242
  } & {
15699
16243
  signature: z.ZodString;
15700
16244
  returns: z.ZodString;
16245
+ } & {
16246
+ formerly: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
15701
16247
  }, "strip", z.ZodTypeAny, {
15702
16248
  name: string;
15703
16249
  description: string;
@@ -15754,6 +16300,7 @@ declare const SurfaceSnapshotSchema: z.ZodObject<{
15754
16300
  caller?: string | undefined;
15755
16301
  } | undefined;
15756
16302
  previousNames?: string[] | undefined;
16303
+ formerly?: string[] | undefined;
15757
16304
  }, {
15758
16305
  name: string;
15759
16306
  description: string;
@@ -15810,6 +16357,7 @@ declare const SurfaceSnapshotSchema: z.ZodObject<{
15810
16357
  caller?: string | undefined;
15811
16358
  } | undefined;
15812
16359
  previousNames?: string[] | undefined;
16360
+ formerly?: string[] | undefined;
15813
16361
  }>, "many">>;
15814
16362
  /** The backing portal's capability dispatch table, when generic-dispatch. */
15815
16363
  dispatch: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -15898,6 +16446,15 @@ declare const SurfaceSnapshotSchema: z.ZodObject<{
15898
16446
  componentType: z.ZodOptional<z.ZodString>;
15899
16447
  /** The L3 interface the export narrows to, when it narrows. */
15900
16448
  interface: z.ZodOptional<z.ZodString>;
16449
+ /**
16450
+ * The rename trace behind the entry's public name: the former public names
16451
+ * the producer's rename trace (the narrowed interface's, else the backing
16452
+ * component's previousIds) records. Carried into the pin snapshot and the
16453
+ * surface export so a consumer can follow a rename instead of reading a
16454
+ * delete plus an add. Provenance, never signature: it enters neither
16455
+ * memberDigest nor contentDigest. Absent when never renamed.
16456
+ */
16457
+ formerly: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
15901
16458
  }, "strip", z.ZodTypeAny, {
15902
16459
  id: string;
15903
16460
  type: string;
@@ -15958,6 +16515,7 @@ declare const SurfaceSnapshotSchema: z.ZodObject<{
15958
16515
  caller?: string | undefined;
15959
16516
  } | undefined;
15960
16517
  previousNames?: string[] | undefined;
16518
+ formerly?: string[] | undefined;
15961
16519
  }[];
15962
16520
  component: string;
15963
16521
  details: string;
@@ -15990,6 +16548,7 @@ declare const SurfaceSnapshotSchema: z.ZodObject<{
15990
16548
  capability: string;
15991
16549
  description?: string | undefined;
15992
16550
  }[] | undefined;
16551
+ formerly?: string[] | undefined;
15993
16552
  }, {
15994
16553
  id: string;
15995
16554
  name: string;
@@ -16052,6 +16611,7 @@ declare const SurfaceSnapshotSchema: z.ZodObject<{
16052
16611
  caller?: string | undefined;
16053
16612
  } | undefined;
16054
16613
  previousNames?: string[] | undefined;
16614
+ formerly?: string[] | undefined;
16055
16615
  }[] | undefined;
16056
16616
  interface?: string | undefined;
16057
16617
  componentType?: string | undefined;
@@ -16082,6 +16642,7 @@ declare const SurfaceSnapshotSchema: z.ZodObject<{
16082
16642
  capability: string;
16083
16643
  description?: string | undefined;
16084
16644
  }[] | undefined;
16645
+ formerly?: string[] | undefined;
16085
16646
  }>, "many">>;
16086
16647
  /** Transitive type closure of every exported signature and exported type — self-contained. */
16087
16648
  types: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -16136,6 +16697,12 @@ declare const SurfaceSnapshotSchema: z.ZodObject<{
16136
16697
  }>, "many">>;
16137
16698
  /** A named scalar's one primitive, in place of fields; only on a value-object that declares it. */
16138
16699
  holds: z.ZodOptional<z.ZodString>;
16700
+ /**
16701
+ * The type's rename trace as the producer recorded it (previousIds), so a
16702
+ * consumer pinned to a former name reads a rename rather than a removal.
16703
+ * Provenance, never signature: it enters no digest. Absent when never renamed.
16704
+ */
16705
+ formerly: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
16139
16706
  }, "strip", z.ZodTypeAny, {
16140
16707
  id: string;
16141
16708
  name: string;
@@ -16158,6 +16725,7 @@ declare const SurfaceSnapshotSchema: z.ZodObject<{
16158
16725
  }[] | undefined;
16159
16726
  returns?: string | undefined;
16160
16727
  holds?: string | undefined;
16728
+ formerly?: string[] | undefined;
16161
16729
  }, {
16162
16730
  id: string;
16163
16731
  name: string;
@@ -16180,6 +16748,7 @@ declare const SurfaceSnapshotSchema: z.ZodObject<{
16180
16748
  kind?: string | undefined;
16181
16749
  returns?: string | undefined;
16182
16750
  holds?: string | undefined;
16751
+ formerly?: string[] | undefined;
16183
16752
  }>, "many">>;
16184
16753
  /** The producing project's effective id, beside the display-oriented projectName. */
16185
16754
  projectId: z.ZodOptional<z.ZodString>;
@@ -16267,6 +16836,7 @@ declare const SurfaceSnapshotSchema: z.ZodObject<{
16267
16836
  caller?: string | undefined;
16268
16837
  } | undefined;
16269
16838
  previousNames?: string[] | undefined;
16839
+ formerly?: string[] | undefined;
16270
16840
  }[];
16271
16841
  component: string;
16272
16842
  details: string;
@@ -16299,6 +16869,7 @@ declare const SurfaceSnapshotSchema: z.ZodObject<{
16299
16869
  capability: string;
16300
16870
  description?: string | undefined;
16301
16871
  }[] | undefined;
16872
+ formerly?: string[] | undefined;
16302
16873
  }[];
16303
16874
  types: {
16304
16875
  id: string;
@@ -16322,6 +16893,7 @@ declare const SurfaceSnapshotSchema: z.ZodObject<{
16322
16893
  }[] | undefined;
16323
16894
  returns?: string | undefined;
16324
16895
  holds?: string | undefined;
16896
+ formerly?: string[] | undefined;
16325
16897
  }[];
16326
16898
  projectName: string;
16327
16899
  origin: "generated" | "exchanged" | "authored";
@@ -16402,6 +16974,7 @@ declare const SurfaceSnapshotSchema: z.ZodObject<{
16402
16974
  caller?: string | undefined;
16403
16975
  } | undefined;
16404
16976
  previousNames?: string[] | undefined;
16977
+ formerly?: string[] | undefined;
16405
16978
  }[] | undefined;
16406
16979
  interface?: string | undefined;
16407
16980
  componentType?: string | undefined;
@@ -16432,6 +17005,7 @@ declare const SurfaceSnapshotSchema: z.ZodObject<{
16432
17005
  capability: string;
16433
17006
  description?: string | undefined;
16434
17007
  }[] | undefined;
17008
+ formerly?: string[] | undefined;
16435
17009
  }[] | undefined;
16436
17010
  types?: {
16437
17011
  id: string;
@@ -16455,6 +17029,7 @@ declare const SurfaceSnapshotSchema: z.ZodObject<{
16455
17029
  kind?: string | undefined;
16456
17030
  returns?: string | undefined;
16457
17031
  holds?: string | undefined;
17032
+ formerly?: string[] | undefined;
16458
17033
  }[] | undefined;
16459
17034
  audience?: string | undefined;
16460
17035
  stateId?: string | undefined;
@@ -16675,8 +17250,53 @@ interface ExternalPin {
16675
17250
  /** Why an alias was unresolved or unreachable, or which used members could not be pinned. */
16676
17251
  detail?: string;
16677
17252
  }
17253
+ /**
17254
+ * external_request — what `wairon externals add` and sdd_add_external ask for:
17255
+ * one external to declare in the bound project's `.wai/project.yaml`, written
17256
+ * exactly as a person would say it.
17257
+ */
17258
+ interface ExternalRequest {
17259
+ /** The alias the project's specs will reference it by (`alias::name`). */
17260
+ alias: string;
17261
+ /** Where the producer is, in the one location grammar; omitted when the family provides it. */
17262
+ source?: string;
17263
+ /** The producer's project id when it differs from the alias. */
17264
+ project?: string;
17265
+ /** git only: the branch, tag or full commit the pin follows. */
17266
+ ref?: string;
17267
+ /** git only: the producer's root inside the repository. */
17268
+ dir?: string;
17269
+ /** Public names to import bare (`*` for all). */
17270
+ use?: string[];
17271
+ /** What the producer is to this project. */
17272
+ description?: string;
17273
+ /** Pin it right after declaring it (default true). */
17274
+ pin?: boolean;
17275
+ /** Answer what would be declared, writing nothing. */
17276
+ dryRun?: boolean;
17277
+ }
17278
+ /**
17279
+ * external_addition — the answer to declaring one external: what was written
17280
+ * (or would be, on a dry run), the producer it reached and the pin — or why
17281
+ * nothing was written, as one sentence naming the accepted form.
17282
+ */
17283
+ interface ExternalAddition {
17284
+ alias: string;
17285
+ /** Whether `.wai/project.yaml` now carries the declaration (false on a refusal and on a dry run). */
17286
+ written: boolean;
17287
+ /** The declaration as written (object form, normalized); null on a refusal. */
17288
+ declaration: ExternalDeclaration | null;
17289
+ /** The producer's project id as the producer answered to it. */
17290
+ project?: string;
17291
+ /** The pin taken right after, when asked. */
17292
+ pin?: ExternalPin | null;
17293
+ /** Why nothing was written, in one sentence naming the accepted form. */
17294
+ refusal?: string;
17295
+ /** Set when the declaration was written but its producer could not be read: why, and that nothing was pinned. */
17296
+ unreachable?: string;
17297
+ }
16678
17298
  /** The verdict on one used member of a pinned external. */
16679
- type ExternalUseState = 'unchanged' | 'changed' | 'removed' | 'unlocked' | 'unavailable';
17299
+ type ExternalUseState = 'unchanged' | 'changed' | 'removed' | 'unlocked' | 'unavailable' | 'renamed';
16680
17300
  /** external_use_status — the verdict on one used member of one pinned external. */
16681
17301
  interface ExternalUseStatus {
16682
17302
  publicName?: string;
@@ -16685,6 +17305,12 @@ interface ExternalUseStatus {
16685
17305
  /** EXTERNAL_CHECK_UNAVAILABLE on an unavailable entry — never a pass. */
16686
17306
  code?: string;
16687
17307
  detail?: string;
17308
+ /**
17309
+ * On a renamed use: the public name (and member, as `name.member`) the live
17310
+ * producer's rename trace carries the used name forward to — what the
17311
+ * consumer's references should now name.
17312
+ */
17313
+ renamedTo?: string;
16688
17314
  }
16689
17315
  /** external_status — the status of one declared external. */
16690
17316
  interface ExternalStatus {
@@ -17098,6 +17724,20 @@ interface CallSiteFact {
17098
17724
  * and only where the class holds a body under the invoked name.
17099
17725
  */
17100
17726
  enclosingClass?: string;
17727
+ /**
17728
+ * The receiver written as a CHAIN of property accesses — set only when the
17729
+ * call was written `this.<field>.<property>….name(…)`
17730
+ * (`this.c.tracker.checkIn()` → ["this", "c", "tracker"]) or
17731
+ * `<name>.<property>….name(…)` (`deps.tracker.checkIn()` → ["deps",
17732
+ * "tracker"]), and never together with `via`, `field`, `constructed`,
17733
+ * `returnedBy` or `enclosingClass`. The shape constructor-injected
17734
+ * collaborators take when they arrive as ONE bag object. Followed link by
17735
+ * link through what the code DECLARES each link to be — the root's field
17736
+ * or annotated type, then each property's declared type on the shape that
17737
+ * declares it — and, like every receiver past an import binding, a
17738
+ * POSSIBLE origin and never a proven one.
17739
+ */
17740
+ receiverPath?: string[];
17101
17741
  /**
17102
17742
  * The file this site was READ in, set only when it is not the file these
17103
17743
  * facts describe — a pure re-export barrel carries the sites of the function
@@ -17348,7 +17988,9 @@ interface SourceFileFacts {
17348
17988
  * bindings therefore keep EVERY declared type, and a wider answer only ever
17349
17989
  * widens what a call may have reached. A binding the file annotates with
17350
17990
  * nothing records nothing, and so does one annotated with anything but a
17351
- * plain type reference: what an initializer INFERS is not what the code
17991
+ * plain type reference or a member-preserving utility (`Pick`, `Omit`,
17992
+ * `Partial`, `Required`, `Readonly`) around one, which names the type it
17993
+ * wraps: what an initializer INFERS is not what the code
17352
17994
  * declares, and a guess is not a fact.
17353
17995
  */
17354
17996
  localTypes?: Record<string, string[]>;
@@ -17362,6 +18004,27 @@ interface SourceFileFacts {
17362
18004
  * rather than folded in.
17363
18005
  */
17364
18006
  typeOnlyBindings?: Record<string, string>;
18007
+ /**
18008
+ * The type names each PROPERTY of a named shape the file declares is
18009
+ * DECLARED with, keyed `<shape>.<property>` — an interface's or a type
18010
+ * literal alias's property signatures, and a class's property declarations
18011
+ * and constructor parameter properties. EXACT grade only.
18012
+ *
18013
+ * What a receiver CHAIN (`CallSiteFact.receiverPath`) is followed through:
18014
+ * a bag of collaborators handed to a constructor names each one's type
18015
+ * exactly here. Read the way `fieldTypes` is, and a property annotated with
18016
+ * anything else records nothing.
18017
+ */
18018
+ memberTypes?: Record<string, string[]>;
18019
+ /**
18020
+ * The ONE type each type alias NAMES outright, by alias name —
18021
+ * `type Contract = Pick<HabitRepository, 'find'>` names HabitRepository,
18022
+ * `type Store = SpecStore` names SpecStore. EXACT grade only. Read the way
18023
+ * `fieldTypes` is, so a union, an intersection, a literal or any other
18024
+ * generic names nothing. The one hop a declared type is followed through
18025
+ * when it is an alias of this file.
18026
+ */
18027
+ aliasTargets?: Record<string, string>;
17365
18028
  /**
17366
18029
  * The members of each named shape the file declares, by declaration name
17367
18030
  * (see TypeShapeFact). EXACT grade only — below it a member list cannot be
@@ -17513,6 +18176,20 @@ declare function fieldTypesOf(facts: SourceFileFacts, field: string): string[];
17513
18176
  * field.
17514
18177
  */
17515
18178
  declare function localTypesOf(facts: SourceFileFacts, name: string): string[];
18179
+ /**
18180
+ * source_file_facts.memberTypesOf — the type names a property of a named
18181
+ * shape this file declares is DECLARED with, or EMPTY when the file declares
18182
+ * no such shape or property, annotates it with nothing, or was analyzed below
18183
+ * exact grade. The empty answer keeps an unresolvable link of a receiver
18184
+ * chain from becoming a guess.
18185
+ */
18186
+ declare function memberTypesOf(facts: SourceFileFacts, shape: string, property: string): string[];
18187
+ /**
18188
+ * source_file_facts.aliasTargetOf — the type a type alias this file declares
18189
+ * names outright, or undefined when the name is no such alias or its right
18190
+ * side names no single type.
18191
+ */
18192
+ declare function aliasTargetOf(facts: SourceFileFacts, name: string): string | undefined;
17516
18193
  /**
17517
18194
  * source_file_facts.typeBindingOf — the module specifier a NAME was imported
17518
18195
  * from, whether the import was type-only or a runtime one, since a declared
@@ -35965,7 +36642,7 @@ type DesignExport = z.infer<typeof DesignExportSchema>;
35965
36642
 
35966
36643
  declare const DEFAULT_TARGET_DIRS: Record<string, string>;
35967
36644
  declare function defaultTargetConfig(type: 'claude' | 'gemini' | 'agy' | 'cursor' | 'copilot' | 'codex'): BuiltinTargetConfig;
35968
- declare const WAIRON_VERSION = "5.1.1-dev.102";
36645
+ declare const WAIRON_VERSION = "5.1.1-dev.104";
35969
36646
  declare const GITHUB_REPO = "SYW-Apps/Waffle-AIron";
35970
36647
  declare const ARCHITECT_AGENT_ID = "agent-architect";
35971
36648
  declare const ARCHITECT_TEMPLATE_ID = "architect";
@@ -35988,9 +36665,11 @@ declare function saveTopologyConfig(config: TopologyConfig): void;
35988
36665
  /**
35989
36666
  * iexternal_producers.resolveDeclared — every declared external of the bound
35990
36667
  * project, and every referenced project member it declares (stage 8), bound to
35991
- * its producer, each with the project's usage of it by public name.
36668
+ * its producer, each with the project's usage of it by public name. Offline,
36669
+ * nothing touches the network: a git external is bound unreachable with the
36670
+ * reason that `wairon externals status` fetches it.
35992
36671
  */
35993
- declare function resolveDeclared(): ExternalBinding[];
36672
+ declare function resolveDeclared(offline?: boolean): ExternalBinding[];
35994
36673
 
35995
36674
  /**
35996
36675
  * ipart_context.excerpt — with a part's root bound: the ParentExcerpt it can
@@ -36122,7 +36801,7 @@ declare function moveMember(alias: string, newPath: string): void;
36122
36801
  * `as: project` it then promotes the new part — the pre-stage-8 externalize —
36123
36802
  * every promote refusal found before anything moves.
36124
36803
  */
36125
- declare function externalizeSubsystem(subsystemId: string, path: string, as?: string): void;
36804
+ declare function externalizeSubsystem(subsystemId: string, path: string, as?: string): PromoteResult | undefined;
36126
36805
  /**
36127
36806
  * core_orchestrator.promoteMember — promote a part of the bound project to an
36128
36807
  * independent project IN PLACE (stage 8): its files stay where they are and
@@ -36132,7 +36811,24 @@ declare function externalizeSubsystem(subsystemId: string, path: string, as?: st
36132
36811
  * `<parent id>::name` the other), the parent declared as its external and its
36133
36812
  * L0 re-exports re-pointed at the member. Locks nothing.
36134
36813
  */
36135
- declare function promoteMember(alias: string, id?: string): void;
36814
+ declare function promoteMember(alias: string, id?: string): PromoteResult;
36815
+ /**
36816
+ * promote_result — what a promote (or an externalize as project) wrote across
36817
+ * the new boundary, each one named, so a plan lists exactly what its rehearsal
36818
+ * wrote.
36819
+ */
36820
+ interface PromoteResult {
36821
+ /** Every reference of the parent's specs respelled across the boundary, at its parsed position. */
36822
+ respelled: ReferenceEdit[];
36823
+ /** Every reference of the new project's specs respelled: back into the parent, or a self-prefix made bare. */
36824
+ memberRespelled: ReferenceEdit[];
36825
+ /** One line per export entry written, naming the side. */
36826
+ exported: string[];
36827
+ /** One line per bare type name imported by name. */
36828
+ imported: string[];
36829
+ /** One line per consumers entry dropped because it named a subsystem across the boundary. */
36830
+ consumersDropped: string[];
36831
+ }
36136
36832
  /**
36137
36833
  * internalize_result — what internalizing a member did with each thing the
36138
36834
  * member held: the subsystems and types it moved, where each piece of the
@@ -36147,6 +36843,12 @@ interface InternalizeResult {
36147
36843
  deleted: string[];
36148
36844
  /** Each piece of metadata deliberately not carried, with the reason. */
36149
36845
  notCarried: string[];
36846
+ /**
36847
+ * Demote only: one line per consumers list widened by the subsystems across
36848
+ * the old boundary that depend on the surface it restricts — the use the
36849
+ * project boundary's export table granted, kept as the list a part needs.
36850
+ */
36851
+ consumersRestored: string[];
36150
36852
  }
36151
36853
  /**
36152
36854
  * core_orchestrator.internalizeMember — fold a member back into the bound
@@ -36290,16 +36992,6 @@ interface TypeRename {
36290
36992
  /** Every edit the rename made to the debt register: an entry anchored on the type. */
36291
36993
  carried: CarriedRekey[];
36292
36994
  }
36293
- /**
36294
- * Rename a type and every reference to it in the bound tree (core_orchestrator.renameType).
36295
- * The type moves to the new id under the same owner, its old id appended to
36296
- * its rename trace; every type position naming it is respelled, and an export
36297
- * entry's typeDef — one that stated no `as` first keeping its public name.
36298
- * Before writing anything it refuses a type that does not exist
36299
- * (type-missing), one in another project (chained-type), a new id outside the
36300
- * id grammar (invalid-id), and a new id another type of the same owner holds
36301
- * or retired (id-taken, id-retired).
36302
- */
36303
36995
  declare function renameType(typeId: string, newId: string): TypeRename;
36304
36996
  /**
36305
36997
  * core_orchestrator.moveMountToMembers — move one legacy L1 mount of the bound
@@ -36316,285 +37008,6 @@ declare function moveMountToMembers(alias: string): boolean;
36316
37008
  */
36317
37009
  declare function normalizeReferences(kind: WritableSpecKind, id: string): boolean;
36318
37010
 
36319
- interface CanvasModel {
36320
- system: {
36321
- name: string;
36322
- vision?: string;
36323
- targetLanguage?: string;
36324
- databases?: {
36325
- id: string;
36326
- name: string;
36327
- engine: string;
36328
- description?: string;
36329
- tables?: string[];
36330
- }[];
36331
- diagram?: {
36332
- lineStyle?: 'bezier' | 'straight' | 'taxi';
36333
- defaultView?: 'architecture' | 'types' | 'databases';
36334
- showDatabases?: boolean;
36335
- };
36336
- };
36337
- generatedAt: string;
36338
- subsystems: {
36339
- id: string;
36340
- name: string;
36341
- description: string;
36342
- targetLanguage?: string;
36343
- status?: string;
36344
- trustedLinks: {
36345
- subsystem: string;
36346
- reason: string;
36347
- }[];
36348
- /** A member project's node (stage 3): its id is the member's key, its name the
36349
- * alias its parent declares it under; the member's specs hang under it. */
36350
- project?: boolean;
36351
- /** Hosted (stage 7): a member project node's record id, present only when the
36352
- * caller may read that record — the web app links the node to its page. */
36353
- recordId?: string;
36354
- /** Stage 8: the storage badge of a subsystem a PART holds (it is this
36355
- * project's own subsystem, stored elsewhere) — `part <alias> · contained`,
36356
- * `… · ../admin`, `… · git a1b2c3d` — or of a referenced project node. */
36357
- storage?: string;
36358
- /** A declared external that is no project of the family, drawn as a
36359
- * project node of its own (dashed) that its consumption edges land on. */
36360
- external?: boolean;
36361
- /** Opt-in deep expansion: with Internals on, this subsystem's box renders
36362
- * its WHOLE subtree (nested boundary boxes + leaf tiles + direct relation
36363
- * lines) instead of one layer. Never set by buildCanvasModel — the hosted
36364
- * environment adapter stamps it on unit-derived frames. Absent ⇒ the
36365
- * engine behaves exactly as before. */
36366
- deepInternals?: boolean;
36367
- }[];
36368
- components: {
36369
- id: string;
36370
- name: string;
36371
- description: string;
36372
- subsystem: string;
36373
- componentType: string;
36374
- portalType?: string;
36375
- status?: string;
36376
- public: boolean;
36377
- /** The L0 gateway entry id this component backs (the OpenAPI operation tag),
36378
- * present only for a component published in the system's public surface. */
36379
- apiTag?: string;
36380
- owner?: string;
36381
- owns: string[];
36382
- dependsOn: string[];
36383
- interfaces: {
36384
- id: string;
36385
- name: string;
36386
- description: string;
36387
- methods: {
36388
- name: string;
36389
- description: string;
36390
- signature: string;
36391
- returns: string;
36392
- params?: {
36393
- name: string;
36394
- type: string;
36395
- optional?: boolean;
36396
- }[];
36397
- /** Where the method takes its params and returns from, shown beside its signature ("from X"). */
36398
- signatureFrom?: string;
36399
- endpoint?: unknown;
36400
- guarantees?: string[];
36401
- }[];
36402
- }[];
36403
- narratives: {
36404
- method: string;
36405
- steps: {
36406
- n: number;
36407
- text: string;
36408
- kind: string;
36409
- call?: {
36410
- component: string;
36411
- method: string;
36412
- };
36413
- cond?: string;
36414
- onTrue?: number;
36415
- onFalse?: number;
36416
- on?: string;
36417
- cases?: {
36418
- value: string;
36419
- step: number;
36420
- }[];
36421
- defaultStep?: number;
36422
- loopKind?: string;
36423
- over?: string;
36424
- end?: number;
36425
- catches?: {
36426
- error: string;
36427
- step: number;
36428
- }[];
36429
- fin?: number;
36430
- to?: number;
36431
- /** parallel: arm entry steps (contiguous ordered sub-regions of the body). */
36432
- branches?: {
36433
- step: number;
36434
- name?: string;
36435
- }[];
36436
- /** call/dispatch: fire-and-forget — failure does not propagate to this flow. */
36437
- detach?: boolean;
36438
- outcome?: string;
36439
- err?: string;
36440
- }[];
36441
- }[];
36442
- /** Opaque external references surfaced on the canvas element (see ExternalLinkSchema).
36443
- * wairon never fetches them; an `implementation` link is the external source-of-record. */
36444
- externalLinks?: {
36445
- url: string;
36446
- type: string;
36447
- label?: string;
36448
- }[];
36449
- /** Methods specified as intent prose instead of a narrative (the detail dial). */
36450
- intents: {
36451
- method: string;
36452
- text: string;
36453
- }[];
36454
- }[];
36455
- /** `consumption`: the edge's ends lie in different projects (or it lands on a
36456
- * referenced or external project node); `relation`: the CanvasRelation it
36457
- * takes its health from, present only when the model carries relations. */
36458
- edges: {
36459
- from: string;
36460
- to: string;
36461
- cross: boolean;
36462
- consumption?: boolean;
36463
- relation?: string;
36464
- }[];
36465
- /** Relation health, one per consumer→producer pair the edges connect. PRESENT
36466
- * only when health was computed (empty when nothing is consumed); ABSENT when
36467
- * it was not — then consumption edges are drawn neutral, "not checked". */
36468
- relations?: CanvasRelation[];
36469
- types: {
36470
- id: string;
36471
- name: string;
36472
- kind: string;
36473
- subsystem?: string;
36474
- fields: {
36475
- name: string;
36476
- type: string;
36477
- optional?: boolean;
36478
- key?: string;
36479
- references?: string;
36480
- }[];
36481
- methods: {
36482
- name: string;
36483
- signature: string;
36484
- returns: string;
36485
- description?: string;
36486
- }[];
36487
- /** A signature type's derived text, `(a: T, b?: U): R` — drawn in place of a field list. */
36488
- signature?: string;
36489
- /** An enum's values in declared order — drawn in place of a field list. */
36490
- values?: {
36491
- name: string;
36492
- description?: string;
36493
- }[];
36494
- /** A named scalar's primitive — drawn compactly beside its name, with no field rows and no edges. */
36495
- holds?: string;
36496
- /** Interface methods whose params/returns reference this type (usage trace). */
36497
- usedBy: {
36498
- component: string;
36499
- method: string;
36500
- }[];
36501
- componentClass?: string;
36502
- database?: string;
36503
- table?: string;
36504
- linkedEntity?: string;
36505
- }[];
36506
- /** Type → type references derived from field type strings (ERD edges). */
36507
- typeEdges: {
36508
- from: string;
36509
- to: string;
36510
- field: string;
36511
- card: '1' | '0..1' | '*';
36512
- }[];
36513
- /** Data-coupling edges: a component depends on another subsystem's data
36514
- * (uses a type it owns), pointed at that subsystem's published portal. */
36515
- dataEdges: {
36516
- from: string;
36517
- to: string;
36518
- }[];
36519
- issues: {
36520
- severity: string;
36521
- code: string;
36522
- message: string;
36523
- specId?: string;
36524
- }[];
36525
- }
36526
- /**
36527
- * canvas_relation — one consumer-project-to-producer-project relation as the
36528
- * canvas draws it: the health every consumption edge between the two takes,
36529
- * and the detail a reader sees on hover or in the details panel.
36530
- */
36531
- interface CanvasRelation {
36532
- /** `<consumer>→<producer>`: the key a consumption edge names in its `relation`. */
36533
- id: string;
36534
- /** The consuming project's key ('' for the bound root). */
36535
- consumer: string;
36536
- /** The alias the consumer reaches the producer under. */
36537
- producer: string;
36538
- health: RelationHealth;
36539
- /** The uses that are NOT unchanged, with their state and why. */
36540
- uses: {
36541
- name: string;
36542
- state: string;
36543
- detail?: string;
36544
- }[];
36545
- /** How many uses compared unchanged. */
36546
- unchanged: number;
36547
- pinnedCommit?: string;
36548
- pinnedDigest?: string;
36549
- comparedAt: string;
36550
- /** Why the relation is unavailable, when it is. */
36551
- detail?: string;
36552
- }
36553
-
36554
- /** The formats the architecture diagram renders to. */
36555
- type DiagramFormat = 'canvas' | 'mermaid' | 'drawio' | 'excalidraw';
36556
- declare function renderDiagram(format: DiagramFormat, relations?: ProjectRelations[]): string;
36557
- /**
36558
- * The full CanvasModel for the current (request-scoped) project — the same model
36559
- * `renderDiagram('canvas')` renders to the standalone HTML, but returned as data
36560
- * so the React web app can mount the shared renderer directly (no iframe) and,
36561
- * later, receive it in on-demand scope slices. Pure derivation, no side effects;
36562
- * relation health is drawn only when passed in.
36563
- */
36564
- declare function buildCanvasDataModel(relations?: ProjectRelations[]): CanvasModel;
36565
- interface DiagramFile {
36566
- /** Path relative to the diagrams output directory, using forward slashes. */
36567
- relPath: string;
36568
- title: string;
36569
- /** Raw mermaid source (no markdown fence). */
36570
- mermaid: string;
36571
- }
36572
- interface SpecGraph {
36573
- systemName: string;
36574
- subsystems: SubsystemSpec[];
36575
- components: ComponentSpec[];
36576
- interfaces: InterfaceSpec[];
36577
- implementations: ImplementationSpec[];
36578
- /** Component ids published via some subsystem's publicInterfaces. */
36579
- publicComponents: Set<string>;
36580
- }
36581
- declare function loadSpecGraph(): SpecGraph;
36582
- interface ComponentDiagramOptions {
36583
- /** Scope to one subsystem (its components plus directly-connected externals). */
36584
- subsystem?: string;
36585
- }
36586
- declare function generateComponentDiagram(options?: ComponentDiagramOptions): string;
36587
- interface SequenceDiagramOptions {
36588
- /** Max call-expansion depth (default 3). Depth 1 = only the method's own steps. */
36589
- depth?: number;
36590
- }
36591
- declare function generateSequenceDiagram(componentId: string, methodName: string, options?: SequenceDiagramOptions): string;
36592
- declare function generateDiagramSet(): DiagramFile[];
36593
- /** Wrap raw mermaid in a titled markdown document (renders on GitHub / IDEs). */
36594
- declare function toMarkdown(file: DiagramFile): string;
36595
- /** Index README linking every generated diagram. */
36596
- declare function diagramSetIndex(files: DiagramFile[], systemName: string): string;
36597
-
36598
37011
  /**
36599
37012
  * Scan a project root and return all domain candidates.
36600
37013
  * Already-tracked domain paths are marked with alreadyTracked: true.
@@ -37029,6 +37442,18 @@ declare function approvalRecord(root?: string): LockRecord | null;
37029
37442
  * which is the behaviour a project has before anyone has gated it.
37030
37443
  */
37031
37444
  declare function settledSpecPaths(root?: string): Set<string> | null;
37445
+ /**
37446
+ * approval_comparison.reexpress — the record on file carried into the design
37447
+ * reading WITHOUT a new approval, when that is provably sound: a record that
37448
+ * names no design reading (format 2) whose stateId equals gate.asRecorded —
37449
+ * the identity it certified, recomputed over the tree as it stands, so nothing
37450
+ * it covered moved. Keeps lockedAt, lockedBy, the validation and code results,
37451
+ * the members' pins and the provenance exactly; replaces stateId with the gate
37452
+ * (asRecorded dropped), specs with the design-reading capture, and adds
37453
+ * `reexpressed`. Null when there is nothing to carry or it cannot be proven.
37454
+ * Writes nothing: the caller writes the answer.
37455
+ */
37456
+ declare function reexpress(gate: StateId): LockRecord | null;
37032
37457
  /**
37033
37458
  * What the lock says about the tree as it stands: the sentence to show, and
37034
37459
  * whether it is drift.
@@ -37043,6 +37468,8 @@ interface ApprovalVerdict {
37043
37468
  text: string;
37044
37469
  /** Whether the tree has actually moved since it was approved. */
37045
37470
  drifted: boolean;
37471
+ /** Every own spec that moved since the approval, prefixed `~` changed, `+` added, `-` removed; absent when none moved. */
37472
+ moved?: string[];
37046
37473
  }
37047
37474
  /**
37048
37475
  * What has changed since the human last approved this tree.
@@ -37420,9 +37847,25 @@ declare function getRequestParentReach(): {
37420
37847
  declare function setProjectRoot(dir: string | null): void;
37421
37848
  /** Get the raw project root override value (or null if none set) */
37422
37849
  declare function getProjectRootOverride(): string | null;
37850
+ /** How a project came to be bound. */
37851
+ type ProjectBindingVia = 'here' | 'ancestor' | 'declared-member';
37852
+ /** project_binding — the project a folder binds to, and how. */
37853
+ interface ProjectBinding {
37854
+ /** The bound project root (absolute). */
37855
+ root: string;
37856
+ /** here: the folder itself; ancestor: a folder above it, inside its repository; declared-member: a project above the repository root that declares it. */
37857
+ via: ProjectBindingVia;
37858
+ /** The repository root the walk was bounded by, when the folder is inside one. */
37859
+ repositoryRoot?: string;
37860
+ }
37423
37861
  /**
37424
- * Walk up from startDir to the nearest ancestor containing a wairon project
37425
- * with system.yaml in its specs folder. Returns null if none is found.
37862
+ * Resolve the project a folder binds to by the binding rule; null when none
37863
+ * does. Never fails: an unreadable ancestor configuration declares nothing.
37864
+ */
37865
+ declare function resolveProjectBinding(startDir: string): ProjectBinding | null;
37866
+ /**
37867
+ * The root the binding rule binds from startDir (resolveProjectBinding), or
37868
+ * null when no project binds it.
37426
37869
  */
37427
37870
  declare function findSystemRoot(startDir: string): string | null;
37428
37871
  /** The resolved project root: the request-scoped root if bound (hosting server),
@@ -37536,7 +37979,8 @@ declare function listSnapshots(): SurfaceSnapshot[];
37536
37979
  declare function getSnapshot(projectName: string): SurfaceSnapshot | null;
37537
37980
  declare function removeSnapshot(projectName: string): boolean;
37538
37981
  declare function pinExternals(aliases?: string[]): ExternalPin[];
37539
- declare function getExternalsStatus(): ExternalStatus[];
37982
+ /** isurface_portal.getExternalsStatus — each declared external's pin against its live producer; offline, no producer is read over the network. */
37983
+ declare function getExternalsStatus(offline?: boolean): ExternalStatus[];
37540
37984
  declare function listExternals(): ExternalListing[];
37541
37985
  declare function listPinnedExternals(): PinnedExternal[];
37542
37986
  /** isurface_portal.pinnedParent — a part's pinned parent, from its own .wai/externals files only (stage 8); null at a project. */
@@ -37559,4 +38003,4 @@ declare function schemaFingerprint(): string;
37559
38003
  */
37560
38004
  declare function loadProjectConfig(): ProjectConfig;
37561
38005
 
37562
- export { AI_PATHS, ARCHITECT_AGENT_ID, ARCHITECT_TEMPLATE_ID, type AgentBrief, AgentBriefSchema, type AgentRecord, AgentRecordSchema, type AgentStatus, AgentStatusSchema, type AgentTemplate, AgentTemplateSchema, type AnalysisGrade, type ApiKeyLocation, ApiKeyLocationSchema, type ApprovalDiff, type ApprovalVerdict, type ArchProfile, type AuthoredReference, BACKEND_COMMANDS, BUILTIN_PROFILES, type BoundaryItem, BoundaryItemSchema, type BuildContextOptions, type BuiltinTarget, type BuiltinTargetConfig, BuiltinTargetConfigSchema, BuiltinTargetSchema, BundleNotFoundError, type CallSiteFact, type CarriedDebt, type CarriedDebtKind, CarriedDebtKindSchema, CarriedDebtSchema, type CarriedFinding, type CarriedFindingEntry, CarriedFindingSchema, type CatchClause, CatchClauseSchema, ChainingMigrationRefusedError, ClaudeExporter, type ClaudeExporterOptions, type CodeIndex, type CodeModel, type ComplexityRuleConfig, ComplexityRuleConfigSchema, type ComponentRename, type ComponentSpec, ComponentSpecSchema, type ComponentType, ComponentTypeSchema, type CompositionConfig, CompositionConfigSchema, ConfigValidationError, type ConformanceRuleConfig, ConformanceRuleConfigSchema, type ConformanceTier, ConformanceTierSchema, type CrossProjectReference, CustomExporter, type CustomTarget, type CustomTargetConfig, CustomTargetConfigSchema, CustomTargetSchema, DEFAULT_TARGET_DIRS, DESIGN_APPROVALS, DESIGN_DEPENDENCY_ROLES, DESIGN_FORMAT, DESIGN_FORMAT_VERSION, type DatabaseSpec, DatabaseSpecSchema, type DeclarativePack, type DeclaredCall, type DeclaredExternal, type DeclaredMember, type DependencyClass, DependencyClassSchema, type DependencyEdge, type DependencyEdges, type DesignApproval, DesignApprovalSchema, type DesignComponent, DesignComponentSchema, type DesignDependency, type DesignDependencyRole, DesignDependencyRoleSchema, DesignDependencySchema, type DesignDepth, DesignDepthSchema, type DesignExport, type DesignExportEntry, DesignExportEntrySchema, DesignExportSchema, type DesignField, DesignFieldSchema, type DesignImplementation, DesignImplementationSchema, type DesignInterface, DesignInterfaceSchema, type DesignMethod, type DesignMethodBody, DesignMethodBodySchema, DesignMethodSchema, type DesignParam, DesignParamSchema, type DesignProject, DesignProjectSchema, type DesignSource, DesignSourceSchema, type DesignSubsystem, DesignSubsystemSchema, type DesignType, type DesignTypeRef, DesignTypeRefSchema, DesignTypeSchema, type DetectedDomainCandidate, type DiagramConfig, DiagramConfigSchema, type DiagramLineStyle, DiagramLineStyleSchema, type DiagramView, DiagramViewSchema, type DispatchBinding, DispatchBindingSchema, DoctorOptionsError, type DocumentationRuleConfig, DocumentationRuleConfigSchema, type Domain, DomainSchema, type DomainType, DomainTypeSchema, type Durability, DurabilitySchema, EXTERNAL_ALIAS_RE, type EdgeReach, type Endpoint, EndpointSchema, type EnumValue, EnumValueSchema, type EventBinding, EventBindingSchema, type ExportAliasFact, type ExportContext, type ExportKind, type ExportProblem, type ExportProblemKind, type ExportResult, type ExportTableLevel, type ExportUsage, type ExportUse, type Exporter, type ExtData, ExtDataSchema, type ExtensionPack, type ExternalBinding, type ExternalDeclaration, ExternalDeclarationSchema, type ExternalLink, ExternalLinkSchema, type ExternalLinkType, ExternalLinkTypeSchema, type ExternalListing, type ExternalLockEntry, ExternalLockEntrySchema, type ExternalPin, type ExternalPinOutcome, type ExternalRelation, type ExternalRole, type ExternalSource, type ExternalSourceKind, ExternalSourceSchema, type ExternalStatus, type ExternalUseState, type ExternalUseStatus, type ExternalsLock, ExternalsLockSchema, FULL_COMMIT_RE, type FamilyProblemKind, type FamilySwitches, type FindingDeclaration, FindingDeclarationSchema, type FindingParts, type ForeignFieldRepair, type ForwardedName, type FunctionBodyFact, GITHUB_REPO, GeminiExporter, type GenerateOptions, type GenerateSummary, type GroupSpec, GroupSpecSchema, type Guarantee, GuaranteeSchema, HOLDABLE_PRIMITIVES, type HostedRecordLookup, type HttpMethod, HttpMethodSchema, type ImplementationSpec, ImplementationSpecSchema, type ImportBindingFact, type ImportGraph, type ImportSection, type InstalledPack, type InterfaceSpec, InterfaceSpecSchema, type InternalizeDestination, type InternalizeResult, type Invariant, InvariantSchema, type InvocationKind, InvocationKindSchema, type IssueSeverity, type LegacySpecFile, type LifecycleEntrypoint, LifecycleEntrypointSchema, type LifecyclePhase, LifecyclePhaseSchema, type LintAllow, LintAllowSchema, type LintConfig, LintConfigSchema, type LoadedExtensions, type LoadedPackSkill, type LockRecord, type LockStatus, type LogLevel, type LoopKind, LoopKindSchema, type MemberAdvance, type MemberCreation, type MemberDeclaration, MemberDeclarationSchema, type MemberKind, type MemberPin, type MemberSource, type MemberStorage, type MethodEffect, MethodEffectSchema, type MethodImplementation, MethodImplementationSchema, type MethodLike, type MethodParam, MethodParamSchema, type MethodRename, type MethodSignature, MethodSignatureSchema, type MountForm, type NamedOpenApiSpec, NamedOpenApiSpecSchema, type NamingRuleConfig, NamingRuleConfigSchema, type NarrativeDetail, NarrativeDetailSchema, type NarrativeStep, NarrativeStepSchema, type NarrativeStepType, NarrativeStepTypeSchema, type OAuthFlow, OAuthFlowSchema, type OutputTarget, OutputTargetSchema, type OwnershipIndex, PATTERN_TYPES, PRIMITIVE_TYPES, PROJECT_ID_RE, PROJECT_KINDS, PUBLIC_NAME_RE, type PackDiagnosis, type PackEntry, type PackPath, type PackRef, type PackRequirement, PackRequirementSchema, type PackScope, type PackSelection, PackSelectionSchema, type ParallelBranch, ParallelBranchSchema, type ParameterFact, type ParentExcerpt, ParentExcerptSchema, type ParsedMemberSource, type PartOf, PartOfSchema, type PathsConfig, PathsConfigSchema, type PatternRef, PatternRefSchema, type PinnedExternal, type PinnedParent, type PortalAuth, PortalAuthSchema, type PortalAuthScheme, PortalAuthSchemeSchema, type PortalMount, PortalMountSchema, type PortalType, PortalTypeSchema, PreviousIdsSchema, PreviousNamesSchema, ProfileSelectionSubjectSchema, type ProjectConfig, ProjectConfigSchema, type ProjectFamily, type ProjectFamilyProblem, type ProjectIdOrigin, type ProjectIdSource, type ProjectIdentity, type ProjectIdentityProblem, type ProjectImport, type ProjectNode, ProjectNotInitializedError, type ProjectProfileSelection, ProjectProfileSelectionSchema, type ProjectRelations, type PublicInterface, PublicInterfaceSchema, type PublicInterfaceType, PublicInterfaceTypeSchema, RETIRED_STEREOTYPES, type ReadableProject, type RealizationIndex, type ReexportBindingFact, type ReferenceBinding, type ReferenceEdit, type ReferenceForm, type ReferenceLanding, type ReferenceResolution, type Registry, RegistrySchema, type RelationHealth, type RenameTraceHolders, type RequirementItem, RequirementItemSchema, type ResolutionOutcome, type ResolvedBody, type ResolvedDetail, type ResolvedExport, type ResolvedExportTable, type ResolvedExternal, ResolvedInterfaceSpecSchema, type ResolvedMethod, ResolvedMethodSignatureSchema, ResolvedTypeMethodSchema, ResolvedTypeSpecSchema, type RouteFact, type RuleCode, type RuleContext, type RuleJudgement, type RuleScope, type RulesConfig, RulesConfigSchema, SCAN_EXCLUDE_DIRS, SDD_RULES, SEMANTIC_GUARANTEES, STEP_COMMON_FIELDS, STEP_LABEL_TWINS, STEP_TYPE_FIELDS, SUPPORTED_ALIASES, SURFACE_AUDIENCES, type ScopeFilterOptions, type SddRule, type Severity, type ShapeMemberFact, type ShapeOrigin, type SignatureFacts, type SignatureResolution, type SignatureSourceFact, type SignatureTextRepair, type SourceFileFacts, type SourceFileStatus, type SpecId, type SpecIdKind, SpecIdSchema, type SpecIndex, type SpecScanOptions, type SpecStatus, SpecStatusSchema, type SpecialistRetirement, type SpecialistRetype, type StaleSignatureText, type StateId, type StatusDecor, type StatusOptions, type StatusReport, type StepConfigCode, type StepConfigProblem, type StepConfigVerdict, type StepGraph, type StoredInterfaceSpec, type StoredMethodSignature, StoredMethodSignatureSchema, type StoredTypeMethod, StoredTypeMethodSchema, type StoredTypeSpec, type SubsystemSpec, SubsystemSpecSchema, type SubsystemWriteRule, type SupportedAlias, type SurfaceAudience, SurfaceAudienceSchema, type SurfaceContractEntry, SurfaceContractEntrySchema, type SurfaceOrigin, SurfaceOriginSchema, type SurfaceRefResolution, type SurfaceSnapshot, SurfaceSnapshotSchema, type SurfaceTypeDef, SurfaceTypeDefSchema, type SurfaceTypeExport, SurfaceTypeExportSchema, type SwitchCase, SwitchCaseSchema, type SyncResult, type SystemPublicInterface, SystemPublicInterfaceSchema, type SystemSpec, SystemSpecSchema, type TargetConfig, TargetConfigSchema, type Technology, TechnologySchema, type Template, TemplateNotFoundError, TemplateSchema, type TopologyConfig, TopologyConfigSchema, type Transport, TransportSchema, type TreeExportResult, type TreeImportOptions, type TreeImportResult, type TrustedLink, TrustedLinkSchema, type TypeCanonicalization, type TypeDialect, type TypeEnumProposal, type TypeExpression, type TypeExpressionProblem, TypeExpressionSchema, type TypeField, TypeFieldSchema, type TypeForm, type TypeKind, TypeKindSchema, type TypeMethod, TypeMethodSchema, type TypeParse, type TypePosition, type TypeProblemCode, type TypeRename, type TypeRespelling, type TypeShapeFact, type TypeSpec, TypeSpecSchema, type TypeSpellingFacts, type TypeSpellingRepair, type TypedSpecKind, USE_ENTRY_RE, WAIRON_MANAGED_BANNER, WAIRON_MANAGED_MARKER, WAIRON_VERSION, type WaiPaths, WaironError, type WriteReach, activeTargetTypes, addDomain, admits, advanceMember, aiDir, aiDirAt, aiPathsAt, ambiguityMessage, approvalKeyIn, approvalRecord, approvalVerdict, assertContainedProjectPath, assertProjectInitialized, backendCommand, backfillChainedSubprojectConfigs, backupBeside, bodySitesOf, buildCanvasDataModel, buildProjectGraph, buildRuleContext, builtinProfileIds, builtinProjectKinds, callSitesOf, canonicalTypeRef, canonicalTypeText, captureApprovedSpecs, checkDeclarativePack, clearLoaderIssues, cognitiveScore, complexityLevel, composeAgentBrief, composeRuleSequence, computeGateStateId, computeOwnStateId, computeStateId, computeStateIdAt, conceptNoun, consumedContractInputs, containedPathOf, contentDigest, createAgentRecord, createEmptyRegistry, createEmptyTopologyConfig, createMember, createProjectConfig, currentRootBinding, declareExternal, declareMember, declaredExternals, declaredMembers, declaredPackNames, declaredProfileIds, declares, declaresGlobalPacks, defaultConformanceTier, defaultNarrativeDetail, defaultPackSelections, defaultTargetConfig, deleteSpec, demoteMember, dependencyCycles, deregisterPackRef, deriveExecutionProfile, deriveMethodSignature, deriveTypeSignature, derivedDocPaths, describeProject, detectDomainCandidates, diagnoseProjectPacks, diagramSetIndex, dialectOf, diffAgainstApproval, diffSize, discoverPacks, dryRunSerializeSpecs, effectiveDetail, effectiveProjectId, emptyExtensions, emptyTypeSpellingFacts, ensureDir, ensureProjectInitialized, excerpt as excerptParent, exportDesign, exportSpecTree, exportSurface, exportTargetKey, exportUsage, externalizeSubsystem, extractTypeIdentifiers, factsFor, familyApprovals, familyNode, familyRelations, fieldTypeRefs, fieldTypesOf, findChainingParent, findChainingSubprojectsMissingConfig, findLegacySpecFiles, findProjectRoot, findSystemRoot, findTestsReferencing, fromProjectRoot, generateAgent, generateAll, generateComponentDiagram, generateDiagramSet, generateSequenceDiagram, getExporter, getExternalsStatus, getHostedLookup, getLoaderIssues, getProjectRoot, getProjectRootOverride, getRequestParentReach, getRequestProjectRoot, getSnapshot, getStatusReport, getWriteReach, globalGuideFilePath, globalPacksDir, globalPacksEnabled, globalTemplatesDir, hasContext, hasFunctionBody, headNoun, holdsState, implementationSourceFiles, importBindingOf, importNames, importSpecTree, importSurface, injectGuide, installPackFromDirectory, interfaceCanonicalTypes, interfaceGenericParameters, internalizeMember, isDraftSubsystem, isLogic, isOutsideRoot, isOwnComponentEntry, isPart, isPattern, isProjectInitialized, isProvidedBy, isRetired, isTypeVocabulary, judgesCode, keyIn, landReference, languageOfSourcePath, lineEndingFor, listDirectChainedSubprojects, listExternals, listFiles, listFilesRecursive, listInstalledPacks, listPinnedExternals, listRules, listSnapshots, loadComponentSpec, loadComponentSpecs, loadExtensionPacks, loadExtensions, loadFor as loadExtensionsFor, loadImplementationSpec, loadImplementationSpecs, loadInterfaceSpec, loadInterfaceSpecs, loadProjectConfig, loadProjectExtensions, loadProjectVariants, loadRegistry, loadSpec, loadSpecGraph, loadSubsystemSpec, loadSubsystemSpecs, loadSystemSpec, loadTopologyConfig, loadTypeSpec, loadTypeSpecs, localApprover, localGuideFilePath, localTypesOf, logger, makeScopeFilter, markSelectionsBundled, matchTypeRef, measurePackDoctrine, measurePackImpact, memberDeclarationOf, memberDigest, memberLocationOf, methodGenericParameters, methodSourceFile, methodTypeRefs, moveMember, moveMethods, moveMountToMembers, nameKey, namesAnInteger, narrativeStepForeignFields, normalizeReferences, ownerOf, packDirEntry, packEntryLabel, packEntryRef, manifestOf as packManifest, packStoreDir, parseDeclarativePack, parseDeclaredCall, parseMemberSource, parseTypeExpression, parseTypePosition, parseYaml, passesIntentFloor, pathExists, pathKey, pinExternals, pinInstalledPacksAsSelections, pinnedParent, producerOf, projectConfigExists, graph as projectFamily, projectIdentity, promoteMember, provisionProject, qualifiedTypeId, rangeProblem, readCodeAnnotation, readFileOrNull, readJsonFile, readLockRecord, readLockState, readStampVersion, readYamlFile, recordProfileSelection, registerExporter, registerPackRef, reinjectLocalGuides, relationHealth, removeDomain, removeExternal, removeMember, removePackSelection, removeSnapshot, renameAlias, renameComponent, renameProjectId as renameId, renameMethod, renameType, renderDiagram, repairForeignStepFields, repairSignatures, repairTypeSpellings, repointExternal, requiredPolicies, resolveAgentTopology, resolveBudget, resolveChainingParent, resolveDomains, resolveExpectedOutputPaths, resolveDeclared as resolveExternals, resolveImport, resolveInstalledPack, resolveProjectExports, resolveSignatures, resolveSubprojectForNamespace, resolveSubsystemExports, resolveVariantGuidance, retireSpecialists, returnTypeOf, rewriteReferences, runWithHostedLookup, runWithProjectBinding, runWithProjectRoot, sameContract, saveSpec, saveTopologyConfig, scanAllSpecs, schemaFingerprint, selectsFamily, serializeYaml, setExecutionTier, setProjectId as setId, setLogLevel, setProjectRoot, setProjectType, settledSpecPaths, signatureFacts, signatureTypeRefs, specIndexRetiredBy, specPathsInScope, splitNamespace, stepConfigVerdict, stepFieldsFor, stepGraph, storedMethodSignature, storedTypeMethod, syncContextFiles, technologyName, technologyTokens, toMarkdown, typeBindingOf, typeCanonicalTypes, typeDialectFor, typeGenericParameters, typeIsMany, typeMatchesRef, typeNamedRefs, typeProblemEnumProposal, typeProblemIntProposal, typeSourceFiles, typeSpellingFacts, uninstallPack, updateMember, updateSpec, upsertPackSelection, validateAsComplete, validateComponentCandidate, validateFamily, validateProject, validateProjectConfig, validateRegistry, withLineEndings, withPack, writeFile, writeFileIfChanged, writeJsonFile, writeLockRecord, writeReachDenials, writeReachPermits, writeRootGuideDelegator, writeYamlFile, writtenTypeRefs };
38006
+ export { AI_PATHS, ARCHITECT_AGENT_ID, ARCHITECT_TEMPLATE_ID, type AgentBrief, AgentBriefSchema, type AgentRecord, AgentRecordSchema, type AgentStatus, AgentStatusSchema, type AgentTemplate, AgentTemplateSchema, type AnalysisGrade, type ApiKeyLocation, ApiKeyLocationSchema, type ApprovalDiff, type ApprovalVerdict, type ArchProfile, type AuthoredReference, BACKEND_COMMANDS, BUILTIN_PROFILES, type BoundaryItem, BoundaryItemSchema, type BuildContextOptions, type BuiltinTarget, type BuiltinTargetConfig, BuiltinTargetConfigSchema, BuiltinTargetSchema, BundleNotFoundError, type CallSiteFact, type CarriedDebt, type CarriedDebtKind, CarriedDebtKindSchema, CarriedDebtSchema, type CarriedFinding, type CarriedFindingEntry, CarriedFindingSchema, type CatchClause, CatchClauseSchema, ChainingMigrationRefusedError, ClaudeExporter, type ClaudeExporterOptions, type CodeIndex, type CodeModel, type ComplexityRuleConfig, ComplexityRuleConfigSchema, type ComponentRename, type ComponentSpec, ComponentSpecSchema, type ComponentType, ComponentTypeSchema, type CompositionConfig, CompositionConfigSchema, ConfigValidationError, type ConformanceRuleConfig, ConformanceRuleConfigSchema, type ConformanceTier, ConformanceTierSchema, type CrossProjectReference, CustomExporter, type CustomTarget, type CustomTargetConfig, CustomTargetConfigSchema, CustomTargetSchema, DEFAULT_TARGET_DIRS, DESIGN_APPROVALS, DESIGN_DEPENDENCY_ROLES, DESIGN_FORMAT, DESIGN_FORMAT_VERSION, DESIGN_VIEW_FIELDS, type DatabaseSpec, DatabaseSpecSchema, type DeclarativePack, type DeclaredCall, type DeclaredExternal, type DeclaredMember, type DependencyClass, DependencyClassSchema, type DependencyEdge, type DependencyEdges, type DesignApproval, DesignApprovalSchema, type DesignComponent, DesignComponentSchema, type DesignDependency, type DesignDependencyRole, DesignDependencyRoleSchema, DesignDependencySchema, type DesignDepth, DesignDepthSchema, type DesignExport, type DesignExportEntry, DesignExportEntrySchema, DesignExportSchema, type DesignField, DesignFieldSchema, type DesignImplementation, DesignImplementationSchema, type DesignInterface, DesignInterfaceSchema, type DesignMethod, type DesignMethodBody, DesignMethodBodySchema, DesignMethodSchema, type DesignParam, DesignParamSchema, type DesignProject, DesignProjectSchema, type DesignSource, DesignSourceSchema, type DesignSubsystem, DesignSubsystemSchema, type DesignType, type DesignTypeRef, DesignTypeRefSchema, DesignTypeSchema, type DetectedDomainCandidate, type DiagramConfig, DiagramConfigSchema, type DiagramLineStyle, DiagramLineStyleSchema, type DiagramView, DiagramViewSchema, type DispatchBinding, DispatchBindingSchema, DoctorOptionsError, type DocumentationRuleConfig, DocumentationRuleConfigSchema, type Domain, DomainSchema, type DomainType, DomainTypeSchema, type Durability, DurabilitySchema, EXTERNAL_ALIAS_RE, EXTERNAL_SOURCE_FORMS, type EdgeReach, type Endpoint, EndpointSchema, type EnumValue, EnumValueSchema, type EventBinding, EventBindingSchema, type ExportAliasFact, type ExportContext, type ExportKind, type ExportProblem, type ExportProblemKind, type ExportResult, type ExportTableLevel, type ExportUsage, type ExportUse, type Exporter, type ExtData, ExtDataSchema, type ExtensionPack, type ExternalAddition, type ExternalBinding, type ExternalDeclaration, ExternalDeclarationSchema, type ExternalLink, ExternalLinkSchema, type ExternalLinkType, ExternalLinkTypeSchema, type ExternalListing, type ExternalLockEntry, ExternalLockEntrySchema, type ExternalPin, type ExternalPinOutcome, type ExternalRelation, type ExternalRequest, type ExternalRole, type ExternalSource, type ExternalSourceKind, ExternalSourceSchema, type ExternalStatus, type ExternalUseState, type ExternalUseStatus, type ExternalsLock, ExternalsLockSchema, FULL_COMMIT_RE, type FamilyProblemKind, type FamilySwitches, type FindingDeclaration, FindingDeclarationSchema, type FindingParts, type ForeignFieldRepair, type ForwardedName, type FunctionBodyFact, GITHUB_REPO, GeminiExporter, type GenerateOptions, type GenerateSummary, type GroupSpec, GroupSpecSchema, type Guarantee, GuaranteeSchema, HOLDABLE_PRIMITIVES, type HostedRecordLookup, type HttpMethod, HttpMethodSchema, type ImplementationSpec, ImplementationSpecSchema, type ImportBindingFact, type ImportGraph, type ImportSection, type InstalledPack, type InterfaceSpec, InterfaceSpecSchema, type InternalizeDestination, type InternalizeResult, type Invariant, InvariantSchema, type InvocationKind, InvocationKindSchema, type IssueSeverity, type LegacySpecFile, type LifecycleEntrypoint, LifecycleEntrypointSchema, type LifecyclePhase, LifecyclePhaseSchema, type LintAllow, LintAllowSchema, type LintConfig, LintConfigSchema, type LoadedExtensions, type LoadedPackSkill, type LockRecord, type LockStatus, type LogLevel, type LoopKind, LoopKindSchema, type MemberAdvance, type MemberCreation, type MemberDeclaration, MemberDeclarationSchema, type MemberKind, type MemberPin, type MemberSource, type MemberStorage, type MethodEffect, MethodEffectSchema, type MethodImplementation, MethodImplementationSchema, type MethodLike, type MethodParam, MethodParamSchema, type MethodRename, type MethodSignature, MethodSignatureSchema, type MountForm, type NamedOpenApiSpec, NamedOpenApiSpecSchema, type NamingRuleConfig, NamingRuleConfigSchema, type NarrativeDetail, NarrativeDetailSchema, type NarrativeStep, NarrativeStepSchema, type NarrativeStepType, NarrativeStepTypeSchema, type OAuthFlow, OAuthFlowSchema, type OutputTarget, OutputTargetSchema, type OwnershipIndex, PATTERN_TYPES, PRIMITIVE_TYPES, PROJECT_ID_RE, PROJECT_KINDS, PUBLIC_NAME_RE, type PackDiagnosis, type PackEntry, type PackPath, type PackRef, type PackRequirement, PackRequirementSchema, type PackScope, type PackSelection, PackSelectionSchema, type ParallelBranch, ParallelBranchSchema, type ParameterFact, type ParentExcerpt, ParentExcerptSchema, type ParsedMemberSource, type PartOf, PartOfSchema, type PathsConfig, PathsConfigSchema, type PatternRef, PatternRefSchema, type PinnedExternal, type PinnedParent, type PortalAuth, PortalAuthSchema, type PortalAuthScheme, PortalAuthSchemeSchema, type PortalMount, PortalMountSchema, type PortalType, PortalTypeSchema, PreviousIdsSchema, PreviousNamesSchema, ProfileSelectionSubjectSchema, type ProjectBinding, type ProjectBindingVia, type ProjectConfig, ProjectConfigSchema, type ProjectFamily, type ProjectFamilyProblem, type ProjectIdOrigin, type ProjectIdSource, type ProjectIdentity, type ProjectIdentityProblem, type ProjectImport, type ProjectNode, ProjectNotInitializedError, type ProjectProfileSelection, ProjectProfileSelectionSchema, type ProjectRelations, type PromoteResult, type PublicInterface, PublicInterfaceSchema, type PublicInterfaceType, PublicInterfaceTypeSchema, RETIRED_STEREOTYPES, type ReadExternalSource, type ReadableProject, type RealizationIndex, type ReexportBindingFact, type ReferenceBinding, type ReferenceEdit, type ReferenceForm, type ReferenceLanding, type ReferenceResolution, type Registry, RegistrySchema, type RelationHealth, type RenameTraceHolders, type RequirementItem, RequirementItemSchema, type ResolutionOutcome, type ResolvedBody, type ResolvedDetail, type ResolvedExport, type ResolvedExportTable, type ResolvedExternal, ResolvedInterfaceSpecSchema, type ResolvedMethod, ResolvedMethodSignatureSchema, ResolvedTypeMethodSchema, ResolvedTypeSpecSchema, type RouteFact, type RuleCode, type RuleContext, type RuleJudgement, type RuleScope, type RulesConfig, RulesConfigSchema, SCAN_EXCLUDE_DIRS, SDD_RULES, SEMANTIC_GUARANTEES, STEP_COMMON_FIELDS, STEP_LABEL_TWINS, STEP_TYPE_FIELDS, SUPPORTED_ALIASES, SURFACE_AUDIENCES, type ScopeFilterOptions, type SddRule, type Severity, type ShapeMemberFact, type ShapeOrigin, type SignatureFacts, type SignatureResolution, type SignatureSourceFact, type SignatureTextRepair, type SourceFileFacts, type SourceFileStatus, type SpecId, type SpecIdKind, SpecIdSchema, type SpecIndex, type SpecScanOptions, type SpecStatus, SpecStatusSchema, type SpecialistRetirement, type SpecialistRetype, type StaleSignatureText, type StateId, type StatusDecor, type StatusOptions, type StatusReport, type StepConfigCode, type StepConfigProblem, type StepConfigVerdict, type StepGraph, type StoredInterfaceSpec, type StoredMethodSignature, StoredMethodSignatureSchema, type StoredTypeMethod, StoredTypeMethodSchema, type StoredTypeSpec, type SubsystemSpec, SubsystemSpecSchema, type SubsystemWriteRule, type SupportedAlias, type SurfaceAudience, SurfaceAudienceSchema, type SurfaceContractEntry, SurfaceContractEntrySchema, type SurfaceOrigin, SurfaceOriginSchema, type SurfaceRefResolution, type SurfaceSnapshot, SurfaceSnapshotSchema, type SurfaceTypeDef, SurfaceTypeDefSchema, type SurfaceTypeExport, SurfaceTypeExportSchema, type SwitchCase, SwitchCaseSchema, type SyncResult, type SystemPublicInterface, SystemPublicInterfaceSchema, type SystemSpec, SystemSpecSchema, type TargetConfig, TargetConfigSchema, type Technology, TechnologySchema, type Template, TemplateNotFoundError, TemplateSchema, type TopologyConfig, TopologyConfigSchema, type Transport, TransportSchema, type TreeExportResult, type TreeImportOptions, type TreeImportResult, type TrustedLink, TrustedLinkSchema, type TypeCanonicalization, type TypeDialect, type TypeEnumProposal, type TypeExpression, type TypeExpressionProblem, TypeExpressionSchema, type TypeField, TypeFieldSchema, type TypeForm, type TypeKind, TypeKindSchema, type TypeMethod, TypeMethodSchema, type TypeParse, type TypePosition, type TypeProblemCode, type TypeRename, type TypeRespelling, type TypeShapeFact, type TypeSpec, TypeSpecSchema, type TypeSpellingFacts, type TypeSpellingRepair, type TypedSpecKind, USE_ENTRY_RE, WAIRON_MANAGED_BANNER, WAIRON_MANAGED_MARKER, WAIRON_VERSION, type WaiPaths, WaironError, type WriteReach, activeTargetTypes, addDomain, admits, advanceMember, aiDir, aiDirAt, aiPathsAt, aliasTargetOf, ambiguityMessage, approvalKeyIn, approvalRecord, approvalVerdict, assertContainedProjectPath, assertProjectInitialized, backendCommand, backfillChainedSubprojectConfigs, backupBeside, bodySitesOf, buildCanvasDataModel, buildProjectGraph, buildRuleContext, builtinProfileIds, builtinProjectKinds, callSitesOf, canonicalTypeRef, canonicalTypeText, captureApprovedSpecs, checkDeclarativePack, clearLoaderIssues, cognitiveScore, complexityLevel, componentDesignView, composeAgentBrief, composeRuleSequence, computeGateStateId, computeOwnDesignStateId as computeOwnDesignId, computeOwnStateId, computeStateId, computeStateIdAt, conceptNoun, consumedContractInputs, containedPathOf, contentDigest, createAgentRecord, createEmptyRegistry, createEmptyTopologyConfig, createMember, createProjectConfig, currentRootBinding, declareExternal, declareMember, declaredExternals, declaredMembers, declaredPackNames, declaredProfileIds, declares, declaresGlobalPacks, defaultConformanceTier, defaultNarrativeDetail, defaultPackSelections, defaultTargetConfig, deleteSpec, demoteMember, dependencyCycles, deregisterPackRef, deriveExecutionProfile, deriveMethodSignature, deriveTypeSignature, derivedDocPaths, describeProject, detectDomainCandidates, diagnoseProjectPacks, diagramSetIndex, dialectOf, diffAgainstApproval, diffSize, discoverPacks, dryRunSerializeSpecs, effectiveDetail, effectiveProjectId, emptyExtensions, emptyTypeSpellingFacts, ensureDir, ensureProjectInitialized, excerpt as excerptParent, exportDesign, exportSpecTree, exportSurface, exportTargetKey, exportUsage, externalizeSubsystem, extractTypeIdentifiers, factsFor, familyApprovals, familyNode, familyRelations, fieldTypeRefs, fieldTypesOf, findChainingParent, findChainingSubprojectsMissingConfig, findLegacySpecFiles, findProjectRoot, findSystemRoot, findTestsReferencing, fromProjectRoot, generateAgent, generateAll, generateComponentDiagram, generateDiagramSet, generateSequenceDiagram, getExporter, getExternalsStatus, getHostedLookup, getLoaderIssues, getProjectRoot, getProjectRootOverride, getRequestParentReach, getRequestProjectRoot, getSnapshot, getStatusReport, getWriteReach, globalGuideFilePath, globalPacksDir, globalPacksEnabled, globalTemplatesDir, hasContext, hasFunctionBody, headNoun, holdsState, implementationDesignView, implementationSourceFiles, importBindingOf, importNames, importSpecTree, importSurface, injectGuide, installPackFromDirectory, interfaceCanonicalTypes, interfaceGenericParameters, internalizeMember, isDraftSubsystem, isLogic, isOutsideRoot, isOwnComponentEntry, isPart, isPattern, isProjectInitialized, isProvidedBy, isRetired, isTypeVocabulary, judgesCode, keyIn, landReference, languageOfSourcePath, lineEndingFor, listDirectChainedSubprojects, listExternals, listFiles, listFilesRecursive, listInstalledPacks, listPinnedExternals, listRules, listSnapshots, loadComponentSpec, loadComponentSpecs, loadExtensionPacks, loadExtensions, loadFor as loadExtensionsFor, loadImplementationSpec, loadImplementationSpecs, loadInterfaceSpec, loadInterfaceSpecs, loadProjectConfig, loadProjectExtensions, loadProjectVariants, loadRegistry, loadSpec, loadSpecGraph, loadSubsystemSpec, loadSubsystemSpecs, loadSystemSpec, loadTopologyConfig, loadTypeSpec, loadTypeSpecs, localApprover, localGuideFilePath, localTypesOf, logger, makeScopeFilter, markSelectionsBundled, matchTypeRef, measurePackDoctrine, measurePackImpact, memberDeclarationOf, memberDigest, memberLocationOf, memberTypesOf, methodGenericParameters, methodSourceFile, methodTypeRefs, moveMember, moveMethods, moveMountToMembers, nameKey, namesAnInteger, narrativeStepForeignFields, normalizeReferences, ownerOf, packDirEntry, packEntryLabel, packEntryRef, manifestOf as packManifest, packStoreDir, parseDeclarativePack, parseDeclaredCall, parseMemberSource, parseTypeExpression, parseTypePosition, parseYaml, passesIntentFloor, pathExists, pathKey, pinExternals, pinInstalledPacksAsSelections, pinnedParent, producerOf, projectConfigExists, graph as projectFamily, projectIdentity, promoteMember, provisionProject, qualifiedTypeId, rangeProblem, readCodeAnnotation, readExternalSource, readFileOrNull, readJsonFile, readLockRecord, readLockState, readStampVersion, readYamlFile, recordProfileSelection, reexpress, registerExporter, registerPackRef, reinjectLocalGuides, relationHealth, removeDomain, removeExternal, removeMember, removePackSelection, removeSnapshot, renameAlias, renameComponent, renameProjectId as renameId, renameMethod, renameType, renderDiagram, repairForeignStepFields, repairSignatures, repairTypeSpellings, repointExternal, requiredPolicies, resolveAgentTopology, resolveBudget, resolveChainingParent, resolveDomains, resolveExpectedOutputPaths, resolveDeclared as resolveExternals, resolveImport, resolveInstalledPack, resolveProjectBinding, resolveProjectExports, resolveSignatures, resolveSubprojectForNamespace, resolveSubsystemExports, resolveVariantGuidance, retireSpecialists, returnTypeOf, rewriteReferences, runWithHostedLookup, runWithProjectBinding, runWithProjectRoot, sameContract, saveSpec, saveTopologyConfig, scanAllSpecs, schemaFingerprint, selectsFamily, serializeYaml, setExecutionTier, setProjectId as setId, setLogLevel, setProjectRoot, setProjectType, settledSpecPaths, signatureFacts, signatureTypeRefs, specIndexRetiredBy, specPathsInScope, splitNamespace, stepConfigVerdict, stepFieldsFor, stepGraph, storedMethodSignature, storedTypeMethod, syncContextFiles, technologyName, technologyTokens, toMarkdown, typeBindingOf, typeCanonicalTypes, typeDesignView, typeDialectFor, typeGenericParameters, typeIsMany, typeMatchesRef, typeNamedRefs, typeProblemEnumProposal, typeProblemIntProposal, typeSourceFiles, typeSpellingFacts, uninstallPack, updateMember, updateSpec, upsertPackSelection, validateAsComplete, validateComponentCandidate, validateFamily, validateProject, validateProjectConfig, validateRegistry, withLineEndings, withPack, writeFile, writeFileIfChanged, writeJsonFile, writeLockRecord, writeReachDenials, writeReachPermits, writeRootGuideDelegator, writeYamlFile, writtenTypeRefs };