@tienne/gestalt 0.150.0 → 0.151.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/dist/package.json +1 -1
  2. package/dist/plugin/.codex-plugin/plugin.json +1 -1
  3. package/dist/plugin/skills/architecture/SKILL.md +103 -16
  4. package/dist/plugin/skills/architecture/references/domain-flow.md +1 -1
  5. package/dist/plugin/skills/architecture/references/merge-analyses.md +4 -3
  6. package/dist/plugin/skills/architecture/references/rerun.md +5 -5
  7. package/dist/schemas/architecture-ir.schema.json +18 -1
  8. package/dist/src/architecture/commit-policy.d.ts +31 -0
  9. package/dist/src/architecture/commit-policy.d.ts.map +1 -0
  10. package/dist/src/architecture/commit-policy.js +95 -0
  11. package/dist/src/architecture/commit-policy.js.map +1 -0
  12. package/dist/src/architecture/csp.d.ts +14 -0
  13. package/dist/src/architecture/csp.d.ts.map +1 -0
  14. package/dist/src/architecture/csp.js +56 -0
  15. package/dist/src/architecture/csp.js.map +1 -0
  16. package/dist/src/architecture/delta-renderer.d.ts.map +1 -1
  17. package/dist/src/architecture/delta-renderer.js +12 -9
  18. package/dist/src/architecture/delta-renderer.js.map +1 -1
  19. package/dist/src/architecture/delta.d.ts +2 -1
  20. package/dist/src/architecture/delta.d.ts.map +1 -1
  21. package/dist/src/architecture/delta.js +4 -2
  22. package/dist/src/architecture/delta.js.map +1 -1
  23. package/dist/src/architecture/did-you-mean.d.ts +14 -0
  24. package/dist/src/architecture/did-you-mean.d.ts.map +1 -0
  25. package/dist/src/architecture/did-you-mean.js +63 -0
  26. package/dist/src/architecture/did-you-mean.js.map +1 -0
  27. package/dist/src/architecture/drilldown.d.ts +53 -1
  28. package/dist/src/architecture/drilldown.d.ts.map +1 -1
  29. package/dist/src/architecture/drilldown.js +441 -32
  30. package/dist/src/architecture/drilldown.js.map +1 -1
  31. package/dist/src/architecture/endpoint-match.d.ts +33 -2
  32. package/dist/src/architecture/endpoint-match.d.ts.map +1 -1
  33. package/dist/src/architecture/endpoint-match.js +295 -42
  34. package/dist/src/architecture/endpoint-match.js.map +1 -1
  35. package/dist/src/architecture/git-facts.d.ts +54 -0
  36. package/dist/src/architecture/git-facts.d.ts.map +1 -0
  37. package/dist/src/architecture/git-facts.js +225 -0
  38. package/dist/src/architecture/git-facts.js.map +1 -0
  39. package/dist/src/architecture/html-client.d.ts +9 -0
  40. package/dist/src/architecture/html-client.d.ts.map +1 -1
  41. package/dist/src/architecture/html-client.js +397 -40
  42. package/dist/src/architecture/html-client.js.map +1 -1
  43. package/dist/src/architecture/html-renderer.d.ts +2 -0
  44. package/dist/src/architecture/html-renderer.d.ts.map +1 -1
  45. package/dist/src/architecture/html-renderer.js +230 -24
  46. package/dist/src/architecture/html-renderer.js.map +1 -1
  47. package/dist/src/architecture/html-theme.d.ts +17 -10
  48. package/dist/src/architecture/html-theme.d.ts.map +1 -1
  49. package/dist/src/architecture/html-theme.js +271 -137
  50. package/dist/src/architecture/html-theme.js.map +1 -1
  51. package/dist/src/architecture/index.d.ts +3 -0
  52. package/dist/src/architecture/index.d.ts.map +1 -1
  53. package/dist/src/architecture/index.js +3 -0
  54. package/dist/src/architecture/index.js.map +1 -1
  55. package/dist/src/architecture/ir-schema.d.ts +296 -264
  56. package/dist/src/architecture/ir-schema.d.ts.map +1 -1
  57. package/dist/src/architecture/ir-schema.js +75 -0
  58. package/dist/src/architecture/ir-schema.js.map +1 -1
  59. package/dist/src/architecture/layout-tuning.d.ts +49 -0
  60. package/dist/src/architecture/layout-tuning.d.ts.map +1 -0
  61. package/dist/src/architecture/layout-tuning.js +51 -0
  62. package/dist/src/architecture/layout-tuning.js.map +1 -0
  63. package/dist/src/architecture/layout.d.ts +35 -3
  64. package/dist/src/architecture/layout.d.ts.map +1 -1
  65. package/dist/src/architecture/layout.js +75 -15
  66. package/dist/src/architecture/layout.js.map +1 -1
  67. package/dist/src/architecture/live-ask.d.ts +35 -0
  68. package/dist/src/architecture/live-ask.d.ts.map +1 -0
  69. package/dist/src/architecture/live-ask.js +69 -0
  70. package/dist/src/architecture/live-ask.js.map +1 -0
  71. package/dist/src/architecture/live-client.d.ts +17 -0
  72. package/dist/src/architecture/live-client.d.ts.map +1 -0
  73. package/dist/src/architecture/live-client.js +272 -0
  74. package/dist/src/architecture/live-client.js.map +1 -0
  75. package/dist/src/architecture/live-port.d.ts +17 -0
  76. package/dist/src/architecture/live-port.d.ts.map +1 -0
  77. package/dist/src/architecture/live-port.js +23 -0
  78. package/dist/src/architecture/live-port.js.map +1 -0
  79. package/dist/src/architecture/live-server.d.ts +79 -0
  80. package/dist/src/architecture/live-server.d.ts.map +1 -0
  81. package/dist/src/architecture/live-server.js +409 -0
  82. package/dist/src/architecture/live-server.js.map +1 -0
  83. package/dist/src/architecture/live-session.d.ts +13 -0
  84. package/dist/src/architecture/live-session.d.ts.map +1 -0
  85. package/dist/src/architecture/live-session.js +48 -0
  86. package/dist/src/architecture/live-session.js.map +1 -0
  87. package/dist/src/architecture/merge.d.ts +17 -0
  88. package/dist/src/architecture/merge.d.ts.map +1 -1
  89. package/dist/src/architecture/merge.js +27 -3
  90. package/dist/src/architecture/merge.js.map +1 -1
  91. package/dist/src/architecture/packs/generic.d.ts +2 -2
  92. package/dist/src/architecture/packs/generic.js +2 -2
  93. package/dist/src/architecture/packs/generic.js.map +1 -1
  94. package/dist/src/architecture/packs/index.d.ts +2 -2
  95. package/dist/src/architecture/repo-visibility.d.ts +32 -0
  96. package/dist/src/architecture/repo-visibility.d.ts.map +1 -0
  97. package/dist/src/architecture/repo-visibility.js +93 -0
  98. package/dist/src/architecture/repo-visibility.js.map +1 -0
  99. package/dist/src/architecture/secret-mask.d.ts +61 -0
  100. package/dist/src/architecture/secret-mask.d.ts.map +1 -0
  101. package/dist/src/architecture/secret-mask.js +618 -0
  102. package/dist/src/architecture/secret-mask.js.map +1 -0
  103. package/dist/src/architecture/store.d.ts +88 -6
  104. package/dist/src/architecture/store.d.ts.map +1 -1
  105. package/dist/src/architecture/store.js +419 -50
  106. package/dist/src/architecture/store.js.map +1 -1
  107. package/dist/src/architecture/types.d.ts +8 -0
  108. package/dist/src/architecture/types.d.ts.map +1 -1
  109. package/dist/src/architecture/types.js.map +1 -1
  110. package/dist/src/architecture/validator.d.ts +75 -3
  111. package/dist/src/architecture/validator.d.ts.map +1 -1
  112. package/dist/src/architecture/validator.js +318 -45
  113. package/dist/src/architecture/validator.js.map +1 -1
  114. package/dist/src/digest/blocks.d.ts +14 -14
  115. package/dist/src/digest/diagram-schema.d.ts +2 -2
  116. package/dist/src/digest/lens-schema.d.ts +38 -38
  117. package/dist/src/digest/lens-source.d.ts +2 -2
  118. package/dist/src/digest/lens-widget-schema.d.ts +58 -58
  119. package/dist/src/digest/lint-lens-context.d.ts +8 -8
  120. package/dist/src/digest/prd-guide.d.ts +1 -1
  121. package/dist/src/digest/prd-schema.d.ts +18 -18
  122. package/dist/src/digest/schema.d.ts +1046 -1046
  123. package/dist/src/digest/session-request.d.ts +2 -2
  124. package/dist/src/lens/attach.d.ts +42 -42
  125. package/dist/src/mcp/schemas.d.ts +16 -8
  126. package/dist/src/mcp/schemas.d.ts.map +1 -1
  127. package/dist/src/mcp/schemas.js +11 -2
  128. package/dist/src/mcp/schemas.js.map +1 -1
  129. package/dist/src/mcp/tools/architecture-passthrough.d.ts +18 -0
  130. package/dist/src/mcp/tools/architecture-passthrough.d.ts.map +1 -1
  131. package/dist/src/mcp/tools/architecture-passthrough.js +244 -33
  132. package/dist/src/mcp/tools/architecture-passthrough.js.map +1 -1
  133. package/dist/src/research/schema.d.ts +395 -395
  134. package/dist/src/research/source-schema.d.ts +5 -5
  135. package/dist/src/research/target.d.ts +37 -37
  136. package/package.json +1 -1
  137. package/plugin/.codex-plugin/plugin.json +1 -1
  138. package/plugin/.mcp.json +1 -1
  139. package/plugin/mcp.json +1 -1
  140. package/plugin/skills/architecture/SKILL.md +103 -16
  141. package/plugin/skills/architecture/references/domain-flow.md +1 -1
  142. package/plugin/skills/architecture/references/merge-analyses.md +4 -3
  143. package/plugin/skills/architecture/references/rerun.md +5 -5
  144. package/schemas/architecture-ir.schema.json +18 -1
@@ -21,15 +21,19 @@ export declare const architectureIrSchema: z.ZodObject<{
21
21
  name: z.ZodString;
22
22
  root: z.ZodOptional<z.ZodString>;
23
23
  remote: z.ZodOptional<z.ZodString>;
24
+ /** render가 저장 IR에만 채우는 렌더 시점 커밋. status가 이걸 현재 HEAD와 비교한다 */
25
+ head: z.ZodOptional<z.ZodString>;
24
26
  }, "strip", z.ZodTypeAny, {
25
27
  id: string;
26
28
  name: string;
27
29
  remote?: string | undefined;
30
+ head?: string | undefined;
28
31
  root?: string | undefined;
29
32
  }, {
30
33
  id: string;
31
34
  name: string;
32
35
  remote?: string | undefined;
36
+ head?: string | undefined;
33
37
  root?: string | undefined;
34
38
  }>, "many">;
35
39
  nodes: z.ZodArray<z.ZodEffects<z.ZodObject<{
@@ -42,6 +46,7 @@ export declare const architectureIrSchema: z.ZodObject<{
42
46
  repo: z.ZodString;
43
47
  parent: z.ZodOptional<z.ZodString>;
44
48
  description: z.ZodOptional<z.ZodString>;
49
+ summary: z.ZodOptional<z.ZodString>;
45
50
  evidence: z.ZodArray<z.ZodEffects<z.ZodObject<{
46
51
  type: z.ZodEnum<["code", "spec", "doc", "user", "live"]>;
47
52
  location: z.ZodString;
@@ -52,36 +57,36 @@ export declare const architectureIrSchema: z.ZodObject<{
52
57
  observedAt: z.ZodOptional<z.ZodString>;
53
58
  }, "strip", z.ZodTypeAny, {
54
59
  type: "spec" | "code" | "user" | "doc" | "live";
55
- location: string;
56
60
  visibility: "public" | "private";
61
+ location: string;
57
62
  command?: string | undefined;
58
63
  updatedAt?: string | undefined;
59
- observedAt?: string | undefined;
60
64
  excerpt?: string | undefined;
65
+ observedAt?: string | undefined;
61
66
  }, {
62
67
  type: "spec" | "code" | "user" | "doc" | "live";
63
- location: string;
64
68
  visibility: "public" | "private";
69
+ location: string;
65
70
  command?: string | undefined;
66
71
  updatedAt?: string | undefined;
67
- observedAt?: string | undefined;
68
72
  excerpt?: string | undefined;
73
+ observedAt?: string | undefined;
69
74
  }>, {
70
75
  type: "spec" | "code" | "user" | "doc" | "live";
71
- location: string;
72
76
  visibility: "public" | "private";
77
+ location: string;
73
78
  command?: string | undefined;
74
79
  updatedAt?: string | undefined;
75
- observedAt?: string | undefined;
76
80
  excerpt?: string | undefined;
81
+ observedAt?: string | undefined;
77
82
  }, {
78
83
  type: "spec" | "code" | "user" | "doc" | "live";
79
- location: string;
80
84
  visibility: "public" | "private";
85
+ location: string;
81
86
  command?: string | undefined;
82
87
  updatedAt?: string | undefined;
83
- observedAt?: string | undefined;
84
88
  excerpt?: string | undefined;
89
+ observedAt?: string | undefined;
85
90
  }>, "many">;
86
91
  environment: z.ZodOptional<z.ZodString>;
87
92
  engine: z.ZodOptional<z.ZodString>;
@@ -101,36 +106,36 @@ export declare const architectureIrSchema: z.ZodObject<{
101
106
  observedAt: z.ZodOptional<z.ZodString>;
102
107
  }, "strip", z.ZodTypeAny, {
103
108
  type: "spec" | "code" | "user" | "doc" | "live";
104
- location: string;
105
109
  visibility: "public" | "private";
110
+ location: string;
106
111
  command?: string | undefined;
107
112
  updatedAt?: string | undefined;
108
- observedAt?: string | undefined;
109
113
  excerpt?: string | undefined;
114
+ observedAt?: string | undefined;
110
115
  }, {
111
116
  type: "spec" | "code" | "user" | "doc" | "live";
112
- location: string;
113
117
  visibility: "public" | "private";
118
+ location: string;
114
119
  command?: string | undefined;
115
120
  updatedAt?: string | undefined;
116
- observedAt?: string | undefined;
117
121
  excerpt?: string | undefined;
122
+ observedAt?: string | undefined;
118
123
  }>, {
119
124
  type: "spec" | "code" | "user" | "doc" | "live";
120
- location: string;
121
125
  visibility: "public" | "private";
126
+ location: string;
122
127
  command?: string | undefined;
123
128
  updatedAt?: string | undefined;
124
- observedAt?: string | undefined;
125
129
  excerpt?: string | undefined;
130
+ observedAt?: string | undefined;
126
131
  }, {
127
132
  type: "spec" | "code" | "user" | "doc" | "live";
128
- location: string;
129
133
  visibility: "public" | "private";
134
+ location: string;
130
135
  command?: string | undefined;
131
136
  updatedAt?: string | undefined;
132
- observedAt?: string | undefined;
133
137
  excerpt?: string | undefined;
138
+ observedAt?: string | undefined;
134
139
  }>, "many">>>;
135
140
  protocol: z.ZodOptional<z.ZodEnum<["http", "mcp"]>>;
136
141
  mcpServer: z.ZodOptional<z.ZodString>;
@@ -168,15 +173,15 @@ export declare const architectureIrSchema: z.ZodObject<{
168
173
  }, "strip", z.ZodTypeAny, {
169
174
  broken: number;
170
175
  total: number;
176
+ branchOnly: number;
171
177
  pinned: number;
172
178
  unchecked: number;
173
- branchOnly: number;
174
179
  }, {
175
180
  broken: number;
176
181
  total: number;
182
+ branchOnly: number;
177
183
  pinned: number;
178
184
  unchecked: number;
179
- branchOnly: number;
180
185
  }>>;
181
186
  routes: z.ZodOptional<z.ZodArray<z.ZodObject<{
182
187
  keywords: z.ZodArray<z.ZodString, "many">;
@@ -248,17 +253,17 @@ export declare const architectureIrSchema: z.ZodObject<{
248
253
  owner?: string | undefined;
249
254
  }[] | undefined;
250
255
  updatedAt?: string | undefined;
256
+ committedAt?: string | undefined;
257
+ sections?: string[] | undefined;
258
+ evidenceMix?: Record<string, number> | undefined;
251
259
  links?: {
252
260
  broken: number;
253
261
  total: number;
262
+ branchOnly: number;
254
263
  pinned: number;
255
264
  unchecked: number;
256
- branchOnly: number;
257
265
  } | undefined;
258
266
  keywords?: string[] | undefined;
259
- committedAt?: string | undefined;
260
- sections?: string[] | undefined;
261
- evidenceMix?: Record<string, number> | undefined;
262
267
  reads?: number | undefined;
263
268
  staleSince?: string | undefined;
264
269
  orphan?: true | undefined;
@@ -287,17 +292,17 @@ export declare const architectureIrSchema: z.ZodObject<{
287
292
  owner?: string | undefined;
288
293
  }[] | undefined;
289
294
  updatedAt?: string | undefined;
295
+ committedAt?: string | undefined;
296
+ sections?: string[] | undefined;
297
+ evidenceMix?: Record<string, number> | undefined;
290
298
  links?: {
291
299
  broken: number;
292
300
  total: number;
301
+ branchOnly: number;
293
302
  pinned: number;
294
303
  unchecked: number;
295
- branchOnly: number;
296
304
  } | undefined;
297
305
  keywords?: string[] | undefined;
298
- committedAt?: string | undefined;
299
- sections?: string[] | undefined;
300
- evidenceMix?: Record<string, number> | undefined;
301
306
  reads?: number | undefined;
302
307
  staleSince?: string | undefined;
303
308
  orphan?: true | undefined;
@@ -352,36 +357,36 @@ export declare const architectureIrSchema: z.ZodObject<{
352
357
  observedAt: z.ZodOptional<z.ZodString>;
353
358
  }, "strip", z.ZodTypeAny, {
354
359
  type: "spec" | "code" | "user" | "doc" | "live";
355
- location: string;
356
360
  visibility: "public" | "private";
361
+ location: string;
357
362
  command?: string | undefined;
358
363
  updatedAt?: string | undefined;
359
- observedAt?: string | undefined;
360
364
  excerpt?: string | undefined;
365
+ observedAt?: string | undefined;
361
366
  }, {
362
367
  type: "spec" | "code" | "user" | "doc" | "live";
363
- location: string;
364
368
  visibility: "public" | "private";
369
+ location: string;
365
370
  command?: string | undefined;
366
371
  updatedAt?: string | undefined;
367
- observedAt?: string | undefined;
368
372
  excerpt?: string | undefined;
373
+ observedAt?: string | undefined;
369
374
  }>, {
370
375
  type: "spec" | "code" | "user" | "doc" | "live";
371
- location: string;
372
376
  visibility: "public" | "private";
377
+ location: string;
373
378
  command?: string | undefined;
374
379
  updatedAt?: string | undefined;
375
- observedAt?: string | undefined;
376
380
  excerpt?: string | undefined;
381
+ observedAt?: string | undefined;
377
382
  }, {
378
383
  type: "spec" | "code" | "user" | "doc" | "live";
379
- location: string;
380
384
  visibility: "public" | "private";
385
+ location: string;
381
386
  command?: string | undefined;
382
387
  updatedAt?: string | undefined;
383
- observedAt?: string | undefined;
384
388
  excerpt?: string | undefined;
389
+ observedAt?: string | undefined;
385
390
  }>, "many">>;
386
391
  }, "strip", z.ZodTypeAny, {
387
392
  name: string;
@@ -389,40 +394,40 @@ export declare const architectureIrSchema: z.ZodObject<{
389
394
  nullable?: boolean | undefined;
390
395
  evidence?: {
391
396
  type: "spec" | "code" | "user" | "doc" | "live";
392
- location: string;
393
397
  visibility: "public" | "private";
398
+ location: string;
394
399
  command?: string | undefined;
395
400
  updatedAt?: string | undefined;
396
- observedAt?: string | undefined;
397
401
  excerpt?: string | undefined;
402
+ observedAt?: string | undefined;
398
403
  }[] | undefined;
404
+ pk?: boolean | undefined;
405
+ unique?: boolean | undefined;
399
406
  references?: {
400
407
  table: string;
401
408
  column?: string | undefined;
402
409
  onDelete?: string | undefined;
403
410
  } | undefined;
404
- pk?: boolean | undefined;
405
- unique?: boolean | undefined;
406
411
  }, {
407
412
  name: string;
408
413
  type?: string | undefined;
409
414
  nullable?: boolean | undefined;
410
415
  evidence?: {
411
416
  type: "spec" | "code" | "user" | "doc" | "live";
412
- location: string;
413
417
  visibility: "public" | "private";
418
+ location: string;
414
419
  command?: string | undefined;
415
420
  updatedAt?: string | undefined;
416
- observedAt?: string | undefined;
417
421
  excerpt?: string | undefined;
422
+ observedAt?: string | undefined;
418
423
  }[] | undefined;
424
+ pk?: boolean | undefined;
425
+ unique?: boolean | undefined;
419
426
  references?: {
420
427
  table: string;
421
428
  column?: string | undefined;
422
429
  onDelete?: string | undefined;
423
430
  } | undefined;
424
- pk?: boolean | undefined;
425
- unique?: boolean | undefined;
426
431
  }>, "many">>;
427
432
  }, "strip", z.ZodTypeAny, {
428
433
  id: string;
@@ -430,12 +435,12 @@ export declare const architectureIrSchema: z.ZodObject<{
430
435
  repo: string;
431
436
  evidence: {
432
437
  type: "spec" | "code" | "user" | "doc" | "live";
433
- location: string;
434
438
  visibility: "public" | "private";
439
+ location: string;
435
440
  command?: string | undefined;
436
441
  updatedAt?: string | undefined;
437
- observedAt?: string | undefined;
438
442
  excerpt?: string | undefined;
443
+ observedAt?: string | undefined;
439
444
  }[];
440
445
  label: string;
441
446
  provider?: "aws" | "gcp" | "azure" | undefined;
@@ -464,27 +469,28 @@ export declare const architectureIrSchema: z.ZodObject<{
464
469
  owner?: string | undefined;
465
470
  }[] | undefined;
466
471
  updatedAt?: string | undefined;
472
+ committedAt?: string | undefined;
473
+ sections?: string[] | undefined;
474
+ evidenceMix?: Record<string, number> | undefined;
467
475
  links?: {
468
476
  broken: number;
469
477
  total: number;
478
+ branchOnly: number;
470
479
  pinned: number;
471
480
  unchecked: number;
472
- branchOnly: number;
473
481
  } | undefined;
474
482
  keywords?: string[] | undefined;
475
- committedAt?: string | undefined;
476
- sections?: string[] | undefined;
477
- evidenceMix?: Record<string, number> | undefined;
478
483
  reads?: number | undefined;
479
484
  staleSince?: string | undefined;
480
485
  orphan?: true | undefined;
481
486
  aged?: true | undefined;
482
487
  } | undefined;
488
+ summary?: string | undefined;
483
489
  actions?: string[] | undefined;
484
- group?: string | undefined;
490
+ protocol?: "mcp" | "http" | undefined;
485
491
  displayName?: string | undefined;
486
- owners?: string[] | undefined;
487
492
  displayNameInferred?: boolean | undefined;
493
+ group?: string | undefined;
488
494
  parent?: string | undefined;
489
495
  environment?: string | undefined;
490
496
  engine?: string | undefined;
@@ -495,14 +501,13 @@ export declare const architectureIrSchema: z.ZodObject<{
495
501
  platforms?: ("web" | "android" | "ios")[] | undefined;
496
502
  platformEvidence?: Partial<Record<"web" | "android" | "ios", {
497
503
  type: "spec" | "code" | "user" | "doc" | "live";
498
- location: string;
499
504
  visibility: "public" | "private";
505
+ location: string;
500
506
  command?: string | undefined;
501
507
  updatedAt?: string | undefined;
502
- observedAt?: string | undefined;
503
508
  excerpt?: string | undefined;
509
+ observedAt?: string | undefined;
504
510
  }[]>> | undefined;
505
- protocol?: "mcp" | "http" | undefined;
506
511
  mcpServer?: string | undefined;
507
512
  displayKind?: string | undefined;
508
513
  renderClass?: "client" | "actor" | "service" | "gateway" | "store" | "queue" | "external" | "infra" | "step" | "state" | "document" | undefined;
@@ -513,26 +518,27 @@ export declare const architectureIrSchema: z.ZodObject<{
513
518
  image: string;
514
519
  commit?: string | undefined;
515
520
  } | undefined;
521
+ owners?: string[] | undefined;
516
522
  columns?: {
517
523
  name: string;
518
524
  type?: string | undefined;
519
525
  nullable?: boolean | undefined;
520
526
  evidence?: {
521
527
  type: "spec" | "code" | "user" | "doc" | "live";
522
- location: string;
523
528
  visibility: "public" | "private";
529
+ location: string;
524
530
  command?: string | undefined;
525
531
  updatedAt?: string | undefined;
526
- observedAt?: string | undefined;
527
532
  excerpt?: string | undefined;
533
+ observedAt?: string | undefined;
528
534
  }[] | undefined;
535
+ pk?: boolean | undefined;
536
+ unique?: boolean | undefined;
529
537
  references?: {
530
538
  table: string;
531
539
  column?: string | undefined;
532
540
  onDelete?: string | undefined;
533
541
  } | undefined;
534
- pk?: boolean | undefined;
535
- unique?: boolean | undefined;
536
542
  }[] | undefined;
537
543
  }, {
538
544
  id: string;
@@ -540,12 +546,12 @@ export declare const architectureIrSchema: z.ZodObject<{
540
546
  repo: string;
541
547
  evidence: {
542
548
  type: "spec" | "code" | "user" | "doc" | "live";
543
- location: string;
544
549
  visibility: "public" | "private";
550
+ location: string;
545
551
  command?: string | undefined;
546
552
  updatedAt?: string | undefined;
547
- observedAt?: string | undefined;
548
553
  excerpt?: string | undefined;
554
+ observedAt?: string | undefined;
549
555
  }[];
550
556
  label: string;
551
557
  provider?: "aws" | "gcp" | "azure" | undefined;
@@ -574,27 +580,28 @@ export declare const architectureIrSchema: z.ZodObject<{
574
580
  owner?: string | undefined;
575
581
  }[] | undefined;
576
582
  updatedAt?: string | undefined;
583
+ committedAt?: string | undefined;
584
+ sections?: string[] | undefined;
585
+ evidenceMix?: Record<string, number> | undefined;
577
586
  links?: {
578
587
  broken: number;
579
588
  total: number;
589
+ branchOnly: number;
580
590
  pinned: number;
581
591
  unchecked: number;
582
- branchOnly: number;
583
592
  } | undefined;
584
593
  keywords?: string[] | undefined;
585
- committedAt?: string | undefined;
586
- sections?: string[] | undefined;
587
- evidenceMix?: Record<string, number> | undefined;
588
594
  reads?: number | undefined;
589
595
  staleSince?: string | undefined;
590
596
  orphan?: true | undefined;
591
597
  aged?: true | undefined;
592
598
  } | undefined;
599
+ summary?: string | undefined;
593
600
  actions?: string[] | undefined;
594
- group?: string | undefined;
601
+ protocol?: "mcp" | "http" | undefined;
595
602
  displayName?: string | undefined;
596
- owners?: string[] | undefined;
597
603
  displayNameInferred?: boolean | undefined;
604
+ group?: string | undefined;
598
605
  parent?: string | undefined;
599
606
  environment?: string | undefined;
600
607
  engine?: string | undefined;
@@ -605,14 +612,13 @@ export declare const architectureIrSchema: z.ZodObject<{
605
612
  platforms?: ("web" | "android" | "ios")[] | undefined;
606
613
  platformEvidence?: Partial<Record<"web" | "android" | "ios", {
607
614
  type: "spec" | "code" | "user" | "doc" | "live";
608
- location: string;
609
615
  visibility: "public" | "private";
616
+ location: string;
610
617
  command?: string | undefined;
611
618
  updatedAt?: string | undefined;
612
- observedAt?: string | undefined;
613
619
  excerpt?: string | undefined;
620
+ observedAt?: string | undefined;
614
621
  }[]>> | undefined;
615
- protocol?: "mcp" | "http" | undefined;
616
622
  mcpServer?: string | undefined;
617
623
  displayKind?: string | undefined;
618
624
  renderClass?: "client" | "actor" | "service" | "gateway" | "store" | "queue" | "external" | "infra" | "step" | "state" | "document" | undefined;
@@ -623,26 +629,27 @@ export declare const architectureIrSchema: z.ZodObject<{
623
629
  image: string;
624
630
  commit?: string | undefined;
625
631
  } | undefined;
632
+ owners?: string[] | undefined;
626
633
  columns?: {
627
634
  name: string;
628
635
  type?: string | undefined;
629
636
  nullable?: boolean | undefined;
630
637
  evidence?: {
631
638
  type: "spec" | "code" | "user" | "doc" | "live";
632
- location: string;
633
639
  visibility: "public" | "private";
640
+ location: string;
634
641
  command?: string | undefined;
635
642
  updatedAt?: string | undefined;
636
- observedAt?: string | undefined;
637
643
  excerpt?: string | undefined;
644
+ observedAt?: string | undefined;
638
645
  }[] | undefined;
646
+ pk?: boolean | undefined;
647
+ unique?: boolean | undefined;
639
648
  references?: {
640
649
  table: string;
641
650
  column?: string | undefined;
642
651
  onDelete?: string | undefined;
643
652
  } | undefined;
644
- pk?: boolean | undefined;
645
- unique?: boolean | undefined;
646
653
  }[] | undefined;
647
654
  }>, {
648
655
  id: string;
@@ -650,12 +657,12 @@ export declare const architectureIrSchema: z.ZodObject<{
650
657
  repo: string;
651
658
  evidence: {
652
659
  type: "spec" | "code" | "user" | "doc" | "live";
653
- location: string;
654
660
  visibility: "public" | "private";
661
+ location: string;
655
662
  command?: string | undefined;
656
663
  updatedAt?: string | undefined;
657
- observedAt?: string | undefined;
658
664
  excerpt?: string | undefined;
665
+ observedAt?: string | undefined;
659
666
  }[];
660
667
  label: string;
661
668
  provider?: "aws" | "gcp" | "azure" | undefined;
@@ -684,27 +691,28 @@ export declare const architectureIrSchema: z.ZodObject<{
684
691
  owner?: string | undefined;
685
692
  }[] | undefined;
686
693
  updatedAt?: string | undefined;
694
+ committedAt?: string | undefined;
695
+ sections?: string[] | undefined;
696
+ evidenceMix?: Record<string, number> | undefined;
687
697
  links?: {
688
698
  broken: number;
689
699
  total: number;
700
+ branchOnly: number;
690
701
  pinned: number;
691
702
  unchecked: number;
692
- branchOnly: number;
693
703
  } | undefined;
694
704
  keywords?: string[] | undefined;
695
- committedAt?: string | undefined;
696
- sections?: string[] | undefined;
697
- evidenceMix?: Record<string, number> | undefined;
698
705
  reads?: number | undefined;
699
706
  staleSince?: string | undefined;
700
707
  orphan?: true | undefined;
701
708
  aged?: true | undefined;
702
709
  } | undefined;
710
+ summary?: string | undefined;
703
711
  actions?: string[] | undefined;
704
- group?: string | undefined;
712
+ protocol?: "mcp" | "http" | undefined;
705
713
  displayName?: string | undefined;
706
- owners?: string[] | undefined;
707
714
  displayNameInferred?: boolean | undefined;
715
+ group?: string | undefined;
708
716
  parent?: string | undefined;
709
717
  environment?: string | undefined;
710
718
  engine?: string | undefined;
@@ -715,14 +723,13 @@ export declare const architectureIrSchema: z.ZodObject<{
715
723
  platforms?: ("web" | "android" | "ios")[] | undefined;
716
724
  platformEvidence?: Partial<Record<"web" | "android" | "ios", {
717
725
  type: "spec" | "code" | "user" | "doc" | "live";
718
- location: string;
719
726
  visibility: "public" | "private";
727
+ location: string;
720
728
  command?: string | undefined;
721
729
  updatedAt?: string | undefined;
722
- observedAt?: string | undefined;
723
730
  excerpt?: string | undefined;
731
+ observedAt?: string | undefined;
724
732
  }[]>> | undefined;
725
- protocol?: "mcp" | "http" | undefined;
726
733
  mcpServer?: string | undefined;
727
734
  displayKind?: string | undefined;
728
735
  renderClass?: "client" | "actor" | "service" | "gateway" | "store" | "queue" | "external" | "infra" | "step" | "state" | "document" | undefined;
@@ -733,26 +740,27 @@ export declare const architectureIrSchema: z.ZodObject<{
733
740
  image: string;
734
741
  commit?: string | undefined;
735
742
  } | undefined;
743
+ owners?: string[] | undefined;
736
744
  columns?: {
737
745
  name: string;
738
746
  type?: string | undefined;
739
747
  nullable?: boolean | undefined;
740
748
  evidence?: {
741
749
  type: "spec" | "code" | "user" | "doc" | "live";
742
- location: string;
743
750
  visibility: "public" | "private";
751
+ location: string;
744
752
  command?: string | undefined;
745
753
  updatedAt?: string | undefined;
746
- observedAt?: string | undefined;
747
754
  excerpt?: string | undefined;
755
+ observedAt?: string | undefined;
748
756
  }[] | undefined;
757
+ pk?: boolean | undefined;
758
+ unique?: boolean | undefined;
749
759
  references?: {
750
760
  table: string;
751
761
  column?: string | undefined;
752
762
  onDelete?: string | undefined;
753
763
  } | undefined;
754
- pk?: boolean | undefined;
755
- unique?: boolean | undefined;
756
764
  }[] | undefined;
757
765
  }, {
758
766
  id: string;
@@ -760,12 +768,12 @@ export declare const architectureIrSchema: z.ZodObject<{
760
768
  repo: string;
761
769
  evidence: {
762
770
  type: "spec" | "code" | "user" | "doc" | "live";
763
- location: string;
764
771
  visibility: "public" | "private";
772
+ location: string;
765
773
  command?: string | undefined;
766
774
  updatedAt?: string | undefined;
767
- observedAt?: string | undefined;
768
775
  excerpt?: string | undefined;
776
+ observedAt?: string | undefined;
769
777
  }[];
770
778
  label: string;
771
779
  provider?: "aws" | "gcp" | "azure" | undefined;
@@ -794,27 +802,28 @@ export declare const architectureIrSchema: z.ZodObject<{
794
802
  owner?: string | undefined;
795
803
  }[] | undefined;
796
804
  updatedAt?: string | undefined;
805
+ committedAt?: string | undefined;
806
+ sections?: string[] | undefined;
807
+ evidenceMix?: Record<string, number> | undefined;
797
808
  links?: {
798
809
  broken: number;
799
810
  total: number;
811
+ branchOnly: number;
800
812
  pinned: number;
801
813
  unchecked: number;
802
- branchOnly: number;
803
814
  } | undefined;
804
815
  keywords?: string[] | undefined;
805
- committedAt?: string | undefined;
806
- sections?: string[] | undefined;
807
- evidenceMix?: Record<string, number> | undefined;
808
816
  reads?: number | undefined;
809
817
  staleSince?: string | undefined;
810
818
  orphan?: true | undefined;
811
819
  aged?: true | undefined;
812
820
  } | undefined;
821
+ summary?: string | undefined;
813
822
  actions?: string[] | undefined;
814
- group?: string | undefined;
823
+ protocol?: "mcp" | "http" | undefined;
815
824
  displayName?: string | undefined;
816
- owners?: string[] | undefined;
817
825
  displayNameInferred?: boolean | undefined;
826
+ group?: string | undefined;
818
827
  parent?: string | undefined;
819
828
  environment?: string | undefined;
820
829
  engine?: string | undefined;
@@ -825,14 +834,13 @@ export declare const architectureIrSchema: z.ZodObject<{
825
834
  platforms?: ("web" | "android" | "ios")[] | undefined;
826
835
  platformEvidence?: Partial<Record<"web" | "android" | "ios", {
827
836
  type: "spec" | "code" | "user" | "doc" | "live";
828
- location: string;
829
837
  visibility: "public" | "private";
838
+ location: string;
830
839
  command?: string | undefined;
831
840
  updatedAt?: string | undefined;
832
- observedAt?: string | undefined;
833
841
  excerpt?: string | undefined;
842
+ observedAt?: string | undefined;
834
843
  }[]>> | undefined;
835
- protocol?: "mcp" | "http" | undefined;
836
844
  mcpServer?: string | undefined;
837
845
  displayKind?: string | undefined;
838
846
  renderClass?: "client" | "actor" | "service" | "gateway" | "store" | "queue" | "external" | "infra" | "step" | "state" | "document" | undefined;
@@ -843,26 +851,27 @@ export declare const architectureIrSchema: z.ZodObject<{
843
851
  image: string;
844
852
  commit?: string | undefined;
845
853
  } | undefined;
854
+ owners?: string[] | undefined;
846
855
  columns?: {
847
856
  name: string;
848
857
  type?: string | undefined;
849
858
  nullable?: boolean | undefined;
850
859
  evidence?: {
851
860
  type: "spec" | "code" | "user" | "doc" | "live";
852
- location: string;
853
861
  visibility: "public" | "private";
862
+ location: string;
854
863
  command?: string | undefined;
855
864
  updatedAt?: string | undefined;
856
- observedAt?: string | undefined;
857
865
  excerpt?: string | undefined;
866
+ observedAt?: string | undefined;
858
867
  }[] | undefined;
868
+ pk?: boolean | undefined;
869
+ unique?: boolean | undefined;
859
870
  references?: {
860
871
  table: string;
861
872
  column?: string | undefined;
862
873
  onDelete?: string | undefined;
863
874
  } | undefined;
864
- pk?: boolean | undefined;
865
- unique?: boolean | undefined;
866
875
  }[] | undefined;
867
876
  }>, "many">;
868
877
  edges: z.ZodArray<z.ZodEffects<z.ZodObject<{
@@ -880,36 +889,36 @@ export declare const architectureIrSchema: z.ZodObject<{
880
889
  observedAt: z.ZodOptional<z.ZodString>;
881
890
  }, "strip", z.ZodTypeAny, {
882
891
  type: "spec" | "code" | "user" | "doc" | "live";
883
- location: string;
884
892
  visibility: "public" | "private";
893
+ location: string;
885
894
  command?: string | undefined;
886
895
  updatedAt?: string | undefined;
887
- observedAt?: string | undefined;
888
896
  excerpt?: string | undefined;
897
+ observedAt?: string | undefined;
889
898
  }, {
890
899
  type: "spec" | "code" | "user" | "doc" | "live";
891
- location: string;
892
900
  visibility: "public" | "private";
901
+ location: string;
893
902
  command?: string | undefined;
894
903
  updatedAt?: string | undefined;
895
- observedAt?: string | undefined;
896
904
  excerpt?: string | undefined;
905
+ observedAt?: string | undefined;
897
906
  }>, {
898
907
  type: "spec" | "code" | "user" | "doc" | "live";
899
- location: string;
900
908
  visibility: "public" | "private";
909
+ location: string;
901
910
  command?: string | undefined;
902
911
  updatedAt?: string | undefined;
903
- observedAt?: string | undefined;
904
912
  excerpt?: string | undefined;
913
+ observedAt?: string | undefined;
905
914
  }, {
906
915
  type: "spec" | "code" | "user" | "doc" | "live";
907
- location: string;
908
916
  visibility: "public" | "private";
917
+ location: string;
909
918
  command?: string | undefined;
910
919
  updatedAt?: string | undefined;
911
- observedAt?: string | undefined;
912
920
  excerpt?: string | undefined;
921
+ observedAt?: string | undefined;
913
922
  }>, "many">;
914
923
  lineStyle: z.ZodEnum<["solid", "dashed"]>;
915
924
  actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -923,28 +932,28 @@ export declare const architectureIrSchema: z.ZodObject<{
923
932
  }, "strip", z.ZodTypeAny, {
924
933
  target: string;
925
934
  verified: boolean;
926
- pinned?: "none" | "branch" | "commit" | undefined;
927
935
  committedAt?: string | undefined;
936
+ pinned?: "none" | "branch" | "commit" | undefined;
928
937
  }, {
929
938
  target: string;
930
939
  verified: boolean;
931
- pinned?: "none" | "branch" | "commit" | undefined;
932
940
  committedAt?: string | undefined;
941
+ pinned?: "none" | "branch" | "commit" | undefined;
933
942
  }>, "many">;
934
943
  }, "strip", z.ZodTypeAny, {
935
944
  refs: {
936
945
  target: string;
937
946
  verified: boolean;
938
- pinned?: "none" | "branch" | "commit" | undefined;
939
947
  committedAt?: string | undefined;
948
+ pinned?: "none" | "branch" | "commit" | undefined;
940
949
  }[];
941
950
  via: "session" | "screen-route" | "code-ref" | "api-path";
942
951
  }, {
943
952
  refs: {
944
953
  target: string;
945
954
  verified: boolean;
946
- pinned?: "none" | "branch" | "commit" | undefined;
947
955
  committedAt?: string | undefined;
956
+ pinned?: "none" | "branch" | "commit" | undefined;
948
957
  }[];
949
958
  via: "session" | "screen-route" | "code-ref" | "api-path";
950
959
  }>>;
@@ -955,12 +964,12 @@ export declare const architectureIrSchema: z.ZodObject<{
955
964
  to: string;
956
965
  evidence: {
957
966
  type: "spec" | "code" | "user" | "doc" | "live";
958
- location: string;
959
967
  visibility: "public" | "private";
968
+ location: string;
960
969
  command?: string | undefined;
961
970
  updatedAt?: string | undefined;
962
- observedAt?: string | undefined;
963
971
  excerpt?: string | undefined;
972
+ observedAt?: string | undefined;
964
973
  }[];
965
974
  lineStyle: "solid" | "dashed";
966
975
  actions?: string[] | undefined;
@@ -968,8 +977,8 @@ export declare const architectureIrSchema: z.ZodObject<{
968
977
  refs: {
969
978
  target: string;
970
979
  verified: boolean;
971
- pinned?: "none" | "branch" | "commit" | undefined;
972
980
  committedAt?: string | undefined;
981
+ pinned?: "none" | "branch" | "commit" | undefined;
973
982
  }[];
974
983
  via: "session" | "screen-route" | "code-ref" | "api-path";
975
984
  } | undefined;
@@ -980,12 +989,12 @@ export declare const architectureIrSchema: z.ZodObject<{
980
989
  to: string;
981
990
  evidence: {
982
991
  type: "spec" | "code" | "user" | "doc" | "live";
983
- location: string;
984
992
  visibility: "public" | "private";
993
+ location: string;
985
994
  command?: string | undefined;
986
995
  updatedAt?: string | undefined;
987
- observedAt?: string | undefined;
988
996
  excerpt?: string | undefined;
997
+ observedAt?: string | undefined;
989
998
  }[];
990
999
  lineStyle: "solid" | "dashed";
991
1000
  actions?: string[] | undefined;
@@ -993,8 +1002,8 @@ export declare const architectureIrSchema: z.ZodObject<{
993
1002
  refs: {
994
1003
  target: string;
995
1004
  verified: boolean;
996
- pinned?: "none" | "branch" | "commit" | undefined;
997
1005
  committedAt?: string | undefined;
1006
+ pinned?: "none" | "branch" | "commit" | undefined;
998
1007
  }[];
999
1008
  via: "session" | "screen-route" | "code-ref" | "api-path";
1000
1009
  } | undefined;
@@ -1005,12 +1014,12 @@ export declare const architectureIrSchema: z.ZodObject<{
1005
1014
  to: string;
1006
1015
  evidence: {
1007
1016
  type: "spec" | "code" | "user" | "doc" | "live";
1008
- location: string;
1009
1017
  visibility: "public" | "private";
1018
+ location: string;
1010
1019
  command?: string | undefined;
1011
1020
  updatedAt?: string | undefined;
1012
- observedAt?: string | undefined;
1013
1021
  excerpt?: string | undefined;
1022
+ observedAt?: string | undefined;
1014
1023
  }[];
1015
1024
  lineStyle: "solid" | "dashed";
1016
1025
  actions?: string[] | undefined;
@@ -1018,8 +1027,8 @@ export declare const architectureIrSchema: z.ZodObject<{
1018
1027
  refs: {
1019
1028
  target: string;
1020
1029
  verified: boolean;
1021
- pinned?: "none" | "branch" | "commit" | undefined;
1022
1030
  committedAt?: string | undefined;
1031
+ pinned?: "none" | "branch" | "commit" | undefined;
1023
1032
  }[];
1024
1033
  via: "session" | "screen-route" | "code-ref" | "api-path";
1025
1034
  } | undefined;
@@ -1030,12 +1039,12 @@ export declare const architectureIrSchema: z.ZodObject<{
1030
1039
  to: string;
1031
1040
  evidence: {
1032
1041
  type: "spec" | "code" | "user" | "doc" | "live";
1033
- location: string;
1034
1042
  visibility: "public" | "private";
1043
+ location: string;
1035
1044
  command?: string | undefined;
1036
1045
  updatedAt?: string | undefined;
1037
- observedAt?: string | undefined;
1038
1046
  excerpt?: string | undefined;
1047
+ observedAt?: string | undefined;
1039
1048
  }[];
1040
1049
  lineStyle: "solid" | "dashed";
1041
1050
  actions?: string[] | undefined;
@@ -1043,8 +1052,8 @@ export declare const architectureIrSchema: z.ZodObject<{
1043
1052
  refs: {
1044
1053
  target: string;
1045
1054
  verified: boolean;
1046
- pinned?: "none" | "branch" | "commit" | undefined;
1047
1055
  committedAt?: string | undefined;
1056
+ pinned?: "none" | "branch" | "commit" | undefined;
1048
1057
  }[];
1049
1058
  via: "session" | "screen-route" | "code-ref" | "api-path";
1050
1059
  } | undefined;
@@ -1115,6 +1124,8 @@ export declare const architectureIrSchema: z.ZodObject<{
1115
1124
  probeHit: boolean;
1116
1125
  }>, "many">;
1117
1126
  generatedAt: z.ZodString;
1127
+ summary: z.ZodOptional<z.ZodString>;
1128
+ note: z.ZodOptional<z.ZodString>;
1118
1129
  groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
1119
1130
  id: z.ZodString;
1120
1131
  name: z.ZodString;
@@ -1167,48 +1178,48 @@ export declare const architectureIrSchema: z.ZodObject<{
1167
1178
  observedAt: z.ZodOptional<z.ZodString>;
1168
1179
  }, "strip", z.ZodTypeAny, {
1169
1180
  type: "spec" | "code" | "user" | "doc" | "live";
1170
- location: string;
1171
1181
  visibility: "public" | "private";
1182
+ location: string;
1172
1183
  command?: string | undefined;
1173
1184
  updatedAt?: string | undefined;
1174
- observedAt?: string | undefined;
1175
1185
  excerpt?: string | undefined;
1186
+ observedAt?: string | undefined;
1176
1187
  }, {
1177
1188
  type: "spec" | "code" | "user" | "doc" | "live";
1178
- location: string;
1179
1189
  visibility: "public" | "private";
1190
+ location: string;
1180
1191
  command?: string | undefined;
1181
1192
  updatedAt?: string | undefined;
1182
- observedAt?: string | undefined;
1183
1193
  excerpt?: string | undefined;
1194
+ observedAt?: string | undefined;
1184
1195
  }>, {
1185
1196
  type: "spec" | "code" | "user" | "doc" | "live";
1186
- location: string;
1187
1197
  visibility: "public" | "private";
1198
+ location: string;
1188
1199
  command?: string | undefined;
1189
1200
  updatedAt?: string | undefined;
1190
- observedAt?: string | undefined;
1191
1201
  excerpt?: string | undefined;
1202
+ observedAt?: string | undefined;
1192
1203
  }, {
1193
1204
  type: "spec" | "code" | "user" | "doc" | "live";
1194
- location: string;
1195
1205
  visibility: "public" | "private";
1206
+ location: string;
1196
1207
  command?: string | undefined;
1197
1208
  updatedAt?: string | undefined;
1198
- observedAt?: string | undefined;
1199
1209
  excerpt?: string | undefined;
1210
+ observedAt?: string | undefined;
1200
1211
  }>, "many">;
1201
1212
  }, "strip", z.ZodTypeAny, {
1202
1213
  id: string;
1203
1214
  actor: string;
1204
1215
  evidence: {
1205
1216
  type: "spec" | "code" | "user" | "doc" | "live";
1206
- location: string;
1207
1217
  visibility: "public" | "private";
1218
+ location: string;
1208
1219
  command?: string | undefined;
1209
1220
  updatedAt?: string | undefined;
1210
- observedAt?: string | undefined;
1211
1221
  excerpt?: string | undefined;
1222
+ observedAt?: string | undefined;
1212
1223
  }[];
1213
1224
  label: string;
1214
1225
  kind?: "step" | "decision" | undefined;
@@ -1222,12 +1233,12 @@ export declare const architectureIrSchema: z.ZodObject<{
1222
1233
  actor: string;
1223
1234
  evidence: {
1224
1235
  type: "spec" | "code" | "user" | "doc" | "live";
1225
- location: string;
1226
1236
  visibility: "public" | "private";
1237
+ location: string;
1227
1238
  command?: string | undefined;
1228
1239
  updatedAt?: string | undefined;
1229
- observedAt?: string | undefined;
1230
1240
  excerpt?: string | undefined;
1241
+ observedAt?: string | undefined;
1231
1242
  }[];
1232
1243
  label: string;
1233
1244
  kind?: "step" | "decision" | undefined;
@@ -1241,12 +1252,12 @@ export declare const architectureIrSchema: z.ZodObject<{
1241
1252
  actor: string;
1242
1253
  evidence: {
1243
1254
  type: "spec" | "code" | "user" | "doc" | "live";
1244
- location: string;
1245
1255
  visibility: "public" | "private";
1256
+ location: string;
1246
1257
  command?: string | undefined;
1247
1258
  updatedAt?: string | undefined;
1248
- observedAt?: string | undefined;
1249
1259
  excerpt?: string | undefined;
1260
+ observedAt?: string | undefined;
1250
1261
  }[];
1251
1262
  label: string;
1252
1263
  kind?: "step" | "decision" | undefined;
@@ -1260,12 +1271,12 @@ export declare const architectureIrSchema: z.ZodObject<{
1260
1271
  actor: string;
1261
1272
  evidence: {
1262
1273
  type: "spec" | "code" | "user" | "doc" | "live";
1263
- location: string;
1264
1274
  visibility: "public" | "private";
1275
+ location: string;
1265
1276
  command?: string | undefined;
1266
1277
  updatedAt?: string | undefined;
1267
- observedAt?: string | undefined;
1268
1278
  excerpt?: string | undefined;
1279
+ observedAt?: string | undefined;
1269
1280
  }[];
1270
1281
  label: string;
1271
1282
  kind?: "step" | "decision" | undefined;
@@ -1294,36 +1305,36 @@ export declare const architectureIrSchema: z.ZodObject<{
1294
1305
  observedAt: z.ZodOptional<z.ZodString>;
1295
1306
  }, "strip", z.ZodTypeAny, {
1296
1307
  type: "spec" | "code" | "user" | "doc" | "live";
1297
- location: string;
1298
1308
  visibility: "public" | "private";
1309
+ location: string;
1299
1310
  command?: string | undefined;
1300
1311
  updatedAt?: string | undefined;
1301
- observedAt?: string | undefined;
1302
1312
  excerpt?: string | undefined;
1313
+ observedAt?: string | undefined;
1303
1314
  }, {
1304
1315
  type: "spec" | "code" | "user" | "doc" | "live";
1305
- location: string;
1306
1316
  visibility: "public" | "private";
1317
+ location: string;
1307
1318
  command?: string | undefined;
1308
1319
  updatedAt?: string | undefined;
1309
- observedAt?: string | undefined;
1310
1320
  excerpt?: string | undefined;
1321
+ observedAt?: string | undefined;
1311
1322
  }>, {
1312
1323
  type: "spec" | "code" | "user" | "doc" | "live";
1313
- location: string;
1314
1324
  visibility: "public" | "private";
1325
+ location: string;
1315
1326
  command?: string | undefined;
1316
1327
  updatedAt?: string | undefined;
1317
- observedAt?: string | undefined;
1318
1328
  excerpt?: string | undefined;
1329
+ observedAt?: string | undefined;
1319
1330
  }, {
1320
1331
  type: "spec" | "code" | "user" | "doc" | "live";
1321
- location: string;
1322
1332
  visibility: "public" | "private";
1333
+ location: string;
1323
1334
  command?: string | undefined;
1324
1335
  updatedAt?: string | undefined;
1325
- observedAt?: string | undefined;
1326
1336
  excerpt?: string | undefined;
1337
+ observedAt?: string | undefined;
1327
1338
  }>, "many">;
1328
1339
  lineStyle: z.ZodEnum<["solid", "dashed"]>;
1329
1340
  }, "strip", z.ZodTypeAny, {
@@ -1333,12 +1344,12 @@ export declare const architectureIrSchema: z.ZodObject<{
1333
1344
  to: string;
1334
1345
  evidence: {
1335
1346
  type: "spec" | "code" | "user" | "doc" | "live";
1336
- location: string;
1337
1347
  visibility: "public" | "private";
1348
+ location: string;
1338
1349
  command?: string | undefined;
1339
1350
  updatedAt?: string | undefined;
1340
- observedAt?: string | undefined;
1341
1351
  excerpt?: string | undefined;
1352
+ observedAt?: string | undefined;
1342
1353
  }[];
1343
1354
  lineStyle: "solid" | "dashed";
1344
1355
  label?: string | undefined;
@@ -1352,12 +1363,12 @@ export declare const architectureIrSchema: z.ZodObject<{
1352
1363
  to: string;
1353
1364
  evidence: {
1354
1365
  type: "spec" | "code" | "user" | "doc" | "live";
1355
- location: string;
1356
1366
  visibility: "public" | "private";
1367
+ location: string;
1357
1368
  command?: string | undefined;
1358
1369
  updatedAt?: string | undefined;
1359
- observedAt?: string | undefined;
1360
1370
  excerpt?: string | undefined;
1371
+ observedAt?: string | undefined;
1361
1372
  }[];
1362
1373
  lineStyle: "solid" | "dashed";
1363
1374
  label?: string | undefined;
@@ -1375,12 +1386,12 @@ export declare const architectureIrSchema: z.ZodObject<{
1375
1386
  to: string;
1376
1387
  evidence: {
1377
1388
  type: "spec" | "code" | "user" | "doc" | "live";
1378
- location: string;
1379
1389
  visibility: "public" | "private";
1390
+ location: string;
1380
1391
  command?: string | undefined;
1381
1392
  updatedAt?: string | undefined;
1382
- observedAt?: string | undefined;
1383
1393
  excerpt?: string | undefined;
1394
+ observedAt?: string | undefined;
1384
1395
  }[];
1385
1396
  lineStyle: "solid" | "dashed";
1386
1397
  label?: string | undefined;
@@ -1388,17 +1399,22 @@ export declare const architectureIrSchema: z.ZodObject<{
1388
1399
  condition?: string | undefined;
1389
1400
  actors?: string[] | undefined;
1390
1401
  }[];
1402
+ actors: {
1403
+ id: string;
1404
+ kind: "system" | "agent" | "person";
1405
+ label: string;
1406
+ }[];
1391
1407
  steps: {
1392
1408
  id: string;
1393
1409
  actor: string;
1394
1410
  evidence: {
1395
1411
  type: "spec" | "code" | "user" | "doc" | "live";
1396
- location: string;
1397
1412
  visibility: "public" | "private";
1413
+ location: string;
1398
1414
  command?: string | undefined;
1399
1415
  updatedAt?: string | undefined;
1400
- observedAt?: string | undefined;
1401
1416
  excerpt?: string | undefined;
1417
+ observedAt?: string | undefined;
1402
1418
  }[];
1403
1419
  label: string;
1404
1420
  kind?: "step" | "decision" | undefined;
@@ -1408,11 +1424,6 @@ export declare const architectureIrSchema: z.ZodObject<{
1408
1424
  outcome?: "done" | "cancel" | "fail" | undefined;
1409
1425
  terminal?: boolean | undefined;
1410
1426
  }[];
1411
- actors: {
1412
- id: string;
1413
- kind: "system" | "agent" | "person";
1414
- label: string;
1415
- }[];
1416
1427
  description?: string | undefined;
1417
1428
  service?: string | undefined;
1418
1429
  stateLabels?: Record<string, string> | undefined;
@@ -1426,12 +1437,12 @@ export declare const architectureIrSchema: z.ZodObject<{
1426
1437
  to: string;
1427
1438
  evidence: {
1428
1439
  type: "spec" | "code" | "user" | "doc" | "live";
1429
- location: string;
1430
1440
  visibility: "public" | "private";
1441
+ location: string;
1431
1442
  command?: string | undefined;
1432
1443
  updatedAt?: string | undefined;
1433
- observedAt?: string | undefined;
1434
1444
  excerpt?: string | undefined;
1445
+ observedAt?: string | undefined;
1435
1446
  }[];
1436
1447
  lineStyle: "solid" | "dashed";
1437
1448
  label?: string | undefined;
@@ -1439,17 +1450,22 @@ export declare const architectureIrSchema: z.ZodObject<{
1439
1450
  condition?: string | undefined;
1440
1451
  actors?: string[] | undefined;
1441
1452
  }[];
1453
+ actors: {
1454
+ id: string;
1455
+ kind: "system" | "agent" | "person";
1456
+ label: string;
1457
+ }[];
1442
1458
  steps: {
1443
1459
  id: string;
1444
1460
  actor: string;
1445
1461
  evidence: {
1446
1462
  type: "spec" | "code" | "user" | "doc" | "live";
1447
- location: string;
1448
1463
  visibility: "public" | "private";
1464
+ location: string;
1449
1465
  command?: string | undefined;
1450
1466
  updatedAt?: string | undefined;
1451
- observedAt?: string | undefined;
1452
1467
  excerpt?: string | undefined;
1468
+ observedAt?: string | undefined;
1453
1469
  }[];
1454
1470
  label: string;
1455
1471
  kind?: "step" | "decision" | undefined;
@@ -1459,11 +1475,6 @@ export declare const architectureIrSchema: z.ZodObject<{
1459
1475
  outcome?: "done" | "cancel" | "fail" | undefined;
1460
1476
  terminal?: boolean | undefined;
1461
1477
  }[];
1462
- actors: {
1463
- id: string;
1464
- kind: "system" | "agent" | "person";
1465
- label: string;
1466
- }[];
1467
1478
  description?: string | undefined;
1468
1479
  service?: string | undefined;
1469
1480
  stateLabels?: Record<string, string> | undefined;
@@ -1509,36 +1520,36 @@ export declare const architectureIrSchema: z.ZodObject<{
1509
1520
  observedAt: z.ZodOptional<z.ZodString>;
1510
1521
  }, "strip", z.ZodTypeAny, {
1511
1522
  type: "spec" | "code" | "user" | "doc" | "live";
1512
- location: string;
1513
1523
  visibility: "public" | "private";
1524
+ location: string;
1514
1525
  command?: string | undefined;
1515
1526
  updatedAt?: string | undefined;
1516
- observedAt?: string | undefined;
1517
1527
  excerpt?: string | undefined;
1528
+ observedAt?: string | undefined;
1518
1529
  }, {
1519
1530
  type: "spec" | "code" | "user" | "doc" | "live";
1520
- location: string;
1521
1531
  visibility: "public" | "private";
1532
+ location: string;
1522
1533
  command?: string | undefined;
1523
1534
  updatedAt?: string | undefined;
1524
- observedAt?: string | undefined;
1525
1535
  excerpt?: string | undefined;
1536
+ observedAt?: string | undefined;
1526
1537
  }>, {
1527
1538
  type: "spec" | "code" | "user" | "doc" | "live";
1528
- location: string;
1529
1539
  visibility: "public" | "private";
1540
+ location: string;
1530
1541
  command?: string | undefined;
1531
1542
  updatedAt?: string | undefined;
1532
- observedAt?: string | undefined;
1533
1543
  excerpt?: string | undefined;
1544
+ observedAt?: string | undefined;
1534
1545
  }, {
1535
1546
  type: "spec" | "code" | "user" | "doc" | "live";
1536
- location: string;
1537
1547
  visibility: "public" | "private";
1548
+ location: string;
1538
1549
  command?: string | undefined;
1539
1550
  updatedAt?: string | undefined;
1540
- observedAt?: string | undefined;
1541
1551
  excerpt?: string | undefined;
1552
+ observedAt?: string | undefined;
1542
1553
  }>, "many">;
1543
1554
  lineStyle: z.ZodEnum<["solid", "dashed"]>;
1544
1555
  reply: z.ZodOptional<z.ZodBoolean>;
@@ -1550,12 +1561,12 @@ export declare const architectureIrSchema: z.ZodObject<{
1550
1561
  to: string;
1551
1562
  evidence: {
1552
1563
  type: "spec" | "code" | "user" | "doc" | "live";
1553
- location: string;
1554
1564
  visibility: "public" | "private";
1565
+ location: string;
1555
1566
  command?: string | undefined;
1556
1567
  updatedAt?: string | undefined;
1557
- observedAt?: string | undefined;
1558
1568
  excerpt?: string | undefined;
1569
+ observedAt?: string | undefined;
1559
1570
  }[];
1560
1571
  label: string;
1561
1572
  lineStyle: "solid" | "dashed";
@@ -1569,12 +1580,12 @@ export declare const architectureIrSchema: z.ZodObject<{
1569
1580
  to: string;
1570
1581
  evidence: {
1571
1582
  type: "spec" | "code" | "user" | "doc" | "live";
1572
- location: string;
1573
1583
  visibility: "public" | "private";
1584
+ location: string;
1574
1585
  command?: string | undefined;
1575
1586
  updatedAt?: string | undefined;
1576
- observedAt?: string | undefined;
1577
1587
  excerpt?: string | undefined;
1588
+ observedAt?: string | undefined;
1578
1589
  }[];
1579
1590
  label: string;
1580
1591
  lineStyle: "solid" | "dashed";
@@ -1637,12 +1648,12 @@ export declare const architectureIrSchema: z.ZodObject<{
1637
1648
  to: string;
1638
1649
  evidence: {
1639
1650
  type: "spec" | "code" | "user" | "doc" | "live";
1640
- location: string;
1641
1651
  visibility: "public" | "private";
1652
+ location: string;
1642
1653
  command?: string | undefined;
1643
1654
  updatedAt?: string | undefined;
1644
- observedAt?: string | undefined;
1645
1655
  excerpt?: string | undefined;
1656
+ observedAt?: string | undefined;
1646
1657
  }[];
1647
1658
  label: string;
1648
1659
  lineStyle: "solid" | "dashed";
@@ -1651,7 +1662,6 @@ export declare const architectureIrSchema: z.ZodObject<{
1651
1662
  edge?: string | undefined;
1652
1663
  reply?: boolean | undefined;
1653
1664
  }[];
1654
- flow?: string | undefined;
1655
1665
  phases?: {
1656
1666
  id: string;
1657
1667
  from: string;
@@ -1669,6 +1679,7 @@ export declare const architectureIrSchema: z.ZodObject<{
1669
1679
  nodes: string[];
1670
1680
  label: string;
1671
1681
  }[] | undefined;
1682
+ flow?: string | undefined;
1672
1683
  }, {
1673
1684
  id: string;
1674
1685
  question: string;
@@ -1680,12 +1691,12 @@ export declare const architectureIrSchema: z.ZodObject<{
1680
1691
  to: string;
1681
1692
  evidence: {
1682
1693
  type: "spec" | "code" | "user" | "doc" | "live";
1683
- location: string;
1684
1694
  visibility: "public" | "private";
1695
+ location: string;
1685
1696
  command?: string | undefined;
1686
1697
  updatedAt?: string | undefined;
1687
- observedAt?: string | undefined;
1688
1698
  excerpt?: string | undefined;
1699
+ observedAt?: string | undefined;
1689
1700
  }[];
1690
1701
  label: string;
1691
1702
  lineStyle: "solid" | "dashed";
@@ -1694,7 +1705,6 @@ export declare const architectureIrSchema: z.ZodObject<{
1694
1705
  edge?: string | undefined;
1695
1706
  reply?: boolean | undefined;
1696
1707
  }[];
1697
- flow?: string | undefined;
1698
1708
  phases?: {
1699
1709
  id: string;
1700
1710
  from: string;
@@ -1712,6 +1722,7 @@ export declare const architectureIrSchema: z.ZodObject<{
1712
1722
  nodes: string[];
1713
1723
  label: string;
1714
1724
  }[] | undefined;
1725
+ flow?: string | undefined;
1715
1726
  }>, "many">>;
1716
1727
  }, "strip", z.ZodTypeAny, {
1717
1728
  generatedAt: string;
@@ -1722,12 +1733,12 @@ export declare const architectureIrSchema: z.ZodObject<{
1722
1733
  repo: string;
1723
1734
  evidence: {
1724
1735
  type: "spec" | "code" | "user" | "doc" | "live";
1725
- location: string;
1726
1736
  visibility: "public" | "private";
1737
+ location: string;
1727
1738
  command?: string | undefined;
1728
1739
  updatedAt?: string | undefined;
1729
- observedAt?: string | undefined;
1730
1740
  excerpt?: string | undefined;
1741
+ observedAt?: string | undefined;
1731
1742
  }[];
1732
1743
  label: string;
1733
1744
  provider?: "aws" | "gcp" | "azure" | undefined;
@@ -1756,27 +1767,28 @@ export declare const architectureIrSchema: z.ZodObject<{
1756
1767
  owner?: string | undefined;
1757
1768
  }[] | undefined;
1758
1769
  updatedAt?: string | undefined;
1770
+ committedAt?: string | undefined;
1771
+ sections?: string[] | undefined;
1772
+ evidenceMix?: Record<string, number> | undefined;
1759
1773
  links?: {
1760
1774
  broken: number;
1761
1775
  total: number;
1776
+ branchOnly: number;
1762
1777
  pinned: number;
1763
1778
  unchecked: number;
1764
- branchOnly: number;
1765
1779
  } | undefined;
1766
1780
  keywords?: string[] | undefined;
1767
- committedAt?: string | undefined;
1768
- sections?: string[] | undefined;
1769
- evidenceMix?: Record<string, number> | undefined;
1770
1781
  reads?: number | undefined;
1771
1782
  staleSince?: string | undefined;
1772
1783
  orphan?: true | undefined;
1773
1784
  aged?: true | undefined;
1774
1785
  } | undefined;
1786
+ summary?: string | undefined;
1775
1787
  actions?: string[] | undefined;
1776
- group?: string | undefined;
1788
+ protocol?: "mcp" | "http" | undefined;
1777
1789
  displayName?: string | undefined;
1778
- owners?: string[] | undefined;
1779
1790
  displayNameInferred?: boolean | undefined;
1791
+ group?: string | undefined;
1780
1792
  parent?: string | undefined;
1781
1793
  environment?: string | undefined;
1782
1794
  engine?: string | undefined;
@@ -1787,14 +1799,13 @@ export declare const architectureIrSchema: z.ZodObject<{
1787
1799
  platforms?: ("web" | "android" | "ios")[] | undefined;
1788
1800
  platformEvidence?: Partial<Record<"web" | "android" | "ios", {
1789
1801
  type: "spec" | "code" | "user" | "doc" | "live";
1790
- location: string;
1791
1802
  visibility: "public" | "private";
1803
+ location: string;
1792
1804
  command?: string | undefined;
1793
1805
  updatedAt?: string | undefined;
1794
- observedAt?: string | undefined;
1795
1806
  excerpt?: string | undefined;
1807
+ observedAt?: string | undefined;
1796
1808
  }[]>> | undefined;
1797
- protocol?: "mcp" | "http" | undefined;
1798
1809
  mcpServer?: string | undefined;
1799
1810
  displayKind?: string | undefined;
1800
1811
  renderClass?: "client" | "actor" | "service" | "gateway" | "store" | "queue" | "external" | "infra" | "step" | "state" | "document" | undefined;
@@ -1805,26 +1816,27 @@ export declare const architectureIrSchema: z.ZodObject<{
1805
1816
  image: string;
1806
1817
  commit?: string | undefined;
1807
1818
  } | undefined;
1819
+ owners?: string[] | undefined;
1808
1820
  columns?: {
1809
1821
  name: string;
1810
1822
  type?: string | undefined;
1811
1823
  nullable?: boolean | undefined;
1812
1824
  evidence?: {
1813
1825
  type: "spec" | "code" | "user" | "doc" | "live";
1814
- location: string;
1815
1826
  visibility: "public" | "private";
1827
+ location: string;
1816
1828
  command?: string | undefined;
1817
1829
  updatedAt?: string | undefined;
1818
- observedAt?: string | undefined;
1819
1830
  excerpt?: string | undefined;
1831
+ observedAt?: string | undefined;
1820
1832
  }[] | undefined;
1833
+ pk?: boolean | undefined;
1834
+ unique?: boolean | undefined;
1821
1835
  references?: {
1822
1836
  table: string;
1823
1837
  column?: string | undefined;
1824
1838
  onDelete?: string | undefined;
1825
1839
  } | undefined;
1826
- pk?: boolean | undefined;
1827
- unique?: boolean | undefined;
1828
1840
  }[] | undefined;
1829
1841
  }[];
1830
1842
  edges: {
@@ -1834,12 +1846,12 @@ export declare const architectureIrSchema: z.ZodObject<{
1834
1846
  to: string;
1835
1847
  evidence: {
1836
1848
  type: "spec" | "code" | "user" | "doc" | "live";
1837
- location: string;
1838
1849
  visibility: "public" | "private";
1850
+ location: string;
1839
1851
  command?: string | undefined;
1840
1852
  updatedAt?: string | undefined;
1841
- observedAt?: string | undefined;
1842
1853
  excerpt?: string | undefined;
1854
+ observedAt?: string | undefined;
1843
1855
  }[];
1844
1856
  lineStyle: "solid" | "dashed";
1845
1857
  actions?: string[] | undefined;
@@ -1847,19 +1859,20 @@ export declare const architectureIrSchema: z.ZodObject<{
1847
1859
  refs: {
1848
1860
  target: string;
1849
1861
  verified: boolean;
1850
- pinned?: "none" | "branch" | "commit" | undefined;
1851
1862
  committedAt?: string | undefined;
1863
+ pinned?: "none" | "branch" | "commit" | undefined;
1852
1864
  }[];
1853
1865
  via: "session" | "screen-route" | "code-ref" | "api-path";
1854
1866
  } | undefined;
1855
1867
  }[];
1868
+ schemaVersion: "1.0.0";
1856
1869
  repos: {
1857
1870
  id: string;
1858
1871
  name: string;
1859
1872
  remote?: string | undefined;
1873
+ head?: string | undefined;
1860
1874
  root?: string | undefined;
1861
1875
  }[];
1862
- schemaVersion: "1.0.0";
1863
1876
  unresolved: {
1864
1877
  id: string;
1865
1878
  question: string;
@@ -1879,6 +1892,8 @@ export declare const architectureIrSchema: z.ZodObject<{
1879
1892
  readOnly: boolean;
1880
1893
  probeHit: boolean;
1881
1894
  }[];
1895
+ note?: string | undefined;
1896
+ summary?: string | undefined;
1882
1897
  flows?: {
1883
1898
  id: string;
1884
1899
  title: string;
@@ -1889,12 +1904,12 @@ export declare const architectureIrSchema: z.ZodObject<{
1889
1904
  to: string;
1890
1905
  evidence: {
1891
1906
  type: "spec" | "code" | "user" | "doc" | "live";
1892
- location: string;
1893
1907
  visibility: "public" | "private";
1908
+ location: string;
1894
1909
  command?: string | undefined;
1895
1910
  updatedAt?: string | undefined;
1896
- observedAt?: string | undefined;
1897
1911
  excerpt?: string | undefined;
1912
+ observedAt?: string | undefined;
1898
1913
  }[];
1899
1914
  lineStyle: "solid" | "dashed";
1900
1915
  label?: string | undefined;
@@ -1902,17 +1917,22 @@ export declare const architectureIrSchema: z.ZodObject<{
1902
1917
  condition?: string | undefined;
1903
1918
  actors?: string[] | undefined;
1904
1919
  }[];
1920
+ actors: {
1921
+ id: string;
1922
+ kind: "system" | "agent" | "person";
1923
+ label: string;
1924
+ }[];
1905
1925
  steps: {
1906
1926
  id: string;
1907
1927
  actor: string;
1908
1928
  evidence: {
1909
1929
  type: "spec" | "code" | "user" | "doc" | "live";
1910
- location: string;
1911
1930
  visibility: "public" | "private";
1931
+ location: string;
1912
1932
  command?: string | undefined;
1913
1933
  updatedAt?: string | undefined;
1914
- observedAt?: string | undefined;
1915
1934
  excerpt?: string | undefined;
1935
+ observedAt?: string | undefined;
1916
1936
  }[];
1917
1937
  label: string;
1918
1938
  kind?: "step" | "decision" | undefined;
@@ -1922,11 +1942,6 @@ export declare const architectureIrSchema: z.ZodObject<{
1922
1942
  outcome?: "done" | "cancel" | "fail" | undefined;
1923
1943
  terminal?: boolean | undefined;
1924
1944
  }[];
1925
- actors: {
1926
- id: string;
1927
- kind: "system" | "agent" | "person";
1928
- label: string;
1929
- }[];
1930
1945
  description?: string | undefined;
1931
1946
  service?: string | undefined;
1932
1947
  stateLabels?: Record<string, string> | undefined;
@@ -1938,6 +1953,12 @@ export declare const architectureIrSchema: z.ZodObject<{
1938
1953
  repos?: string[] | undefined;
1939
1954
  kinds?: import("./packs/index.js").PackNodeKind[] | undefined;
1940
1955
  }[] | undefined;
1956
+ packs?: string[] | undefined;
1957
+ groups?: {
1958
+ id: string;
1959
+ name: string;
1960
+ members: string[];
1961
+ }[] | undefined;
1941
1962
  projections?: {
1942
1963
  id: string;
1943
1964
  question: string;
@@ -1949,12 +1970,12 @@ export declare const architectureIrSchema: z.ZodObject<{
1949
1970
  to: string;
1950
1971
  evidence: {
1951
1972
  type: "spec" | "code" | "user" | "doc" | "live";
1952
- location: string;
1953
1973
  visibility: "public" | "private";
1974
+ location: string;
1954
1975
  command?: string | undefined;
1955
1976
  updatedAt?: string | undefined;
1956
- observedAt?: string | undefined;
1957
1977
  excerpt?: string | undefined;
1978
+ observedAt?: string | undefined;
1958
1979
  }[];
1959
1980
  label: string;
1960
1981
  lineStyle: "solid" | "dashed";
@@ -1963,7 +1984,6 @@ export declare const architectureIrSchema: z.ZodObject<{
1963
1984
  edge?: string | undefined;
1964
1985
  reply?: boolean | undefined;
1965
1986
  }[];
1966
- flow?: string | undefined;
1967
1987
  phases?: {
1968
1988
  id: string;
1969
1989
  from: string;
@@ -1981,13 +2001,8 @@ export declare const architectureIrSchema: z.ZodObject<{
1981
2001
  nodes: string[];
1982
2002
  label: string;
1983
2003
  }[] | undefined;
2004
+ flow?: string | undefined;
1984
2005
  }[] | undefined;
1985
- groups?: {
1986
- id: string;
1987
- name: string;
1988
- members: string[];
1989
- }[] | undefined;
1990
- packs?: string[] | undefined;
1991
2006
  }, {
1992
2007
  generatedAt: string;
1993
2008
  view: "knowledge" | "screen-chain" | "deploy-path" | "knowledge-link";
@@ -1997,12 +2012,12 @@ export declare const architectureIrSchema: z.ZodObject<{
1997
2012
  repo: string;
1998
2013
  evidence: {
1999
2014
  type: "spec" | "code" | "user" | "doc" | "live";
2000
- location: string;
2001
2015
  visibility: "public" | "private";
2016
+ location: string;
2002
2017
  command?: string | undefined;
2003
2018
  updatedAt?: string | undefined;
2004
- observedAt?: string | undefined;
2005
2019
  excerpt?: string | undefined;
2020
+ observedAt?: string | undefined;
2006
2021
  }[];
2007
2022
  label: string;
2008
2023
  provider?: "aws" | "gcp" | "azure" | undefined;
@@ -2031,27 +2046,28 @@ export declare const architectureIrSchema: z.ZodObject<{
2031
2046
  owner?: string | undefined;
2032
2047
  }[] | undefined;
2033
2048
  updatedAt?: string | undefined;
2049
+ committedAt?: string | undefined;
2050
+ sections?: string[] | undefined;
2051
+ evidenceMix?: Record<string, number> | undefined;
2034
2052
  links?: {
2035
2053
  broken: number;
2036
2054
  total: number;
2055
+ branchOnly: number;
2037
2056
  pinned: number;
2038
2057
  unchecked: number;
2039
- branchOnly: number;
2040
2058
  } | undefined;
2041
2059
  keywords?: string[] | undefined;
2042
- committedAt?: string | undefined;
2043
- sections?: string[] | undefined;
2044
- evidenceMix?: Record<string, number> | undefined;
2045
2060
  reads?: number | undefined;
2046
2061
  staleSince?: string | undefined;
2047
2062
  orphan?: true | undefined;
2048
2063
  aged?: true | undefined;
2049
2064
  } | undefined;
2065
+ summary?: string | undefined;
2050
2066
  actions?: string[] | undefined;
2051
- group?: string | undefined;
2067
+ protocol?: "mcp" | "http" | undefined;
2052
2068
  displayName?: string | undefined;
2053
- owners?: string[] | undefined;
2054
2069
  displayNameInferred?: boolean | undefined;
2070
+ group?: string | undefined;
2055
2071
  parent?: string | undefined;
2056
2072
  environment?: string | undefined;
2057
2073
  engine?: string | undefined;
@@ -2062,14 +2078,13 @@ export declare const architectureIrSchema: z.ZodObject<{
2062
2078
  platforms?: ("web" | "android" | "ios")[] | undefined;
2063
2079
  platformEvidence?: Partial<Record<"web" | "android" | "ios", {
2064
2080
  type: "spec" | "code" | "user" | "doc" | "live";
2065
- location: string;
2066
2081
  visibility: "public" | "private";
2082
+ location: string;
2067
2083
  command?: string | undefined;
2068
2084
  updatedAt?: string | undefined;
2069
- observedAt?: string | undefined;
2070
2085
  excerpt?: string | undefined;
2086
+ observedAt?: string | undefined;
2071
2087
  }[]>> | undefined;
2072
- protocol?: "mcp" | "http" | undefined;
2073
2088
  mcpServer?: string | undefined;
2074
2089
  displayKind?: string | undefined;
2075
2090
  renderClass?: "client" | "actor" | "service" | "gateway" | "store" | "queue" | "external" | "infra" | "step" | "state" | "document" | undefined;
@@ -2080,26 +2095,27 @@ export declare const architectureIrSchema: z.ZodObject<{
2080
2095
  image: string;
2081
2096
  commit?: string | undefined;
2082
2097
  } | undefined;
2098
+ owners?: string[] | undefined;
2083
2099
  columns?: {
2084
2100
  name: string;
2085
2101
  type?: string | undefined;
2086
2102
  nullable?: boolean | undefined;
2087
2103
  evidence?: {
2088
2104
  type: "spec" | "code" | "user" | "doc" | "live";
2089
- location: string;
2090
2105
  visibility: "public" | "private";
2106
+ location: string;
2091
2107
  command?: string | undefined;
2092
2108
  updatedAt?: string | undefined;
2093
- observedAt?: string | undefined;
2094
2109
  excerpt?: string | undefined;
2110
+ observedAt?: string | undefined;
2095
2111
  }[] | undefined;
2112
+ pk?: boolean | undefined;
2113
+ unique?: boolean | undefined;
2096
2114
  references?: {
2097
2115
  table: string;
2098
2116
  column?: string | undefined;
2099
2117
  onDelete?: string | undefined;
2100
2118
  } | undefined;
2101
- pk?: boolean | undefined;
2102
- unique?: boolean | undefined;
2103
2119
  }[] | undefined;
2104
2120
  }[];
2105
2121
  edges: {
@@ -2109,12 +2125,12 @@ export declare const architectureIrSchema: z.ZodObject<{
2109
2125
  to: string;
2110
2126
  evidence: {
2111
2127
  type: "spec" | "code" | "user" | "doc" | "live";
2112
- location: string;
2113
2128
  visibility: "public" | "private";
2129
+ location: string;
2114
2130
  command?: string | undefined;
2115
2131
  updatedAt?: string | undefined;
2116
- observedAt?: string | undefined;
2117
2132
  excerpt?: string | undefined;
2133
+ observedAt?: string | undefined;
2118
2134
  }[];
2119
2135
  lineStyle: "solid" | "dashed";
2120
2136
  actions?: string[] | undefined;
@@ -2122,19 +2138,20 @@ export declare const architectureIrSchema: z.ZodObject<{
2122
2138
  refs: {
2123
2139
  target: string;
2124
2140
  verified: boolean;
2125
- pinned?: "none" | "branch" | "commit" | undefined;
2126
2141
  committedAt?: string | undefined;
2142
+ pinned?: "none" | "branch" | "commit" | undefined;
2127
2143
  }[];
2128
2144
  via: "session" | "screen-route" | "code-ref" | "api-path";
2129
2145
  } | undefined;
2130
2146
  }[];
2147
+ schemaVersion: "1.0.0";
2131
2148
  repos: {
2132
2149
  id: string;
2133
2150
  name: string;
2134
2151
  remote?: string | undefined;
2152
+ head?: string | undefined;
2135
2153
  root?: string | undefined;
2136
2154
  }[];
2137
- schemaVersion: "1.0.0";
2138
2155
  unresolved: {
2139
2156
  id: string;
2140
2157
  question: string;
@@ -2154,6 +2171,8 @@ export declare const architectureIrSchema: z.ZodObject<{
2154
2171
  readOnly: boolean;
2155
2172
  probeHit: boolean;
2156
2173
  }[];
2174
+ note?: string | undefined;
2175
+ summary?: string | undefined;
2157
2176
  flows?: {
2158
2177
  id: string;
2159
2178
  title: string;
@@ -2164,12 +2183,12 @@ export declare const architectureIrSchema: z.ZodObject<{
2164
2183
  to: string;
2165
2184
  evidence: {
2166
2185
  type: "spec" | "code" | "user" | "doc" | "live";
2167
- location: string;
2168
2186
  visibility: "public" | "private";
2187
+ location: string;
2169
2188
  command?: string | undefined;
2170
2189
  updatedAt?: string | undefined;
2171
- observedAt?: string | undefined;
2172
2190
  excerpt?: string | undefined;
2191
+ observedAt?: string | undefined;
2173
2192
  }[];
2174
2193
  lineStyle: "solid" | "dashed";
2175
2194
  label?: string | undefined;
@@ -2177,17 +2196,22 @@ export declare const architectureIrSchema: z.ZodObject<{
2177
2196
  condition?: string | undefined;
2178
2197
  actors?: string[] | undefined;
2179
2198
  }[];
2199
+ actors: {
2200
+ id: string;
2201
+ kind: "system" | "agent" | "person";
2202
+ label: string;
2203
+ }[];
2180
2204
  steps: {
2181
2205
  id: string;
2182
2206
  actor: string;
2183
2207
  evidence: {
2184
2208
  type: "spec" | "code" | "user" | "doc" | "live";
2185
- location: string;
2186
2209
  visibility: "public" | "private";
2210
+ location: string;
2187
2211
  command?: string | undefined;
2188
2212
  updatedAt?: string | undefined;
2189
- observedAt?: string | undefined;
2190
2213
  excerpt?: string | undefined;
2214
+ observedAt?: string | undefined;
2191
2215
  }[];
2192
2216
  label: string;
2193
2217
  kind?: "step" | "decision" | undefined;
@@ -2197,11 +2221,6 @@ export declare const architectureIrSchema: z.ZodObject<{
2197
2221
  outcome?: "done" | "cancel" | "fail" | undefined;
2198
2222
  terminal?: boolean | undefined;
2199
2223
  }[];
2200
- actors: {
2201
- id: string;
2202
- kind: "system" | "agent" | "person";
2203
- label: string;
2204
- }[];
2205
2224
  description?: string | undefined;
2206
2225
  service?: string | undefined;
2207
2226
  stateLabels?: Record<string, string> | undefined;
@@ -2213,6 +2232,12 @@ export declare const architectureIrSchema: z.ZodObject<{
2213
2232
  repos?: string[] | undefined;
2214
2233
  kinds?: import("./packs/index.js").PackNodeKind[] | undefined;
2215
2234
  }[] | undefined;
2235
+ packs?: string[] | undefined;
2236
+ groups?: {
2237
+ id: string;
2238
+ name: string;
2239
+ members: string[];
2240
+ }[] | undefined;
2216
2241
  projections?: {
2217
2242
  id: string;
2218
2243
  question: string;
@@ -2224,12 +2249,12 @@ export declare const architectureIrSchema: z.ZodObject<{
2224
2249
  to: string;
2225
2250
  evidence: {
2226
2251
  type: "spec" | "code" | "user" | "doc" | "live";
2227
- location: string;
2228
2252
  visibility: "public" | "private";
2253
+ location: string;
2229
2254
  command?: string | undefined;
2230
2255
  updatedAt?: string | undefined;
2231
- observedAt?: string | undefined;
2232
2256
  excerpt?: string | undefined;
2257
+ observedAt?: string | undefined;
2233
2258
  }[];
2234
2259
  label: string;
2235
2260
  lineStyle: "solid" | "dashed";
@@ -2238,7 +2263,6 @@ export declare const architectureIrSchema: z.ZodObject<{
2238
2263
  edge?: string | undefined;
2239
2264
  reply?: boolean | undefined;
2240
2265
  }[];
2241
- flow?: string | undefined;
2242
2266
  phases?: {
2243
2267
  id: string;
2244
2268
  from: string;
@@ -2256,13 +2280,21 @@ export declare const architectureIrSchema: z.ZodObject<{
2256
2280
  nodes: string[];
2257
2281
  label: string;
2258
2282
  }[] | undefined;
2283
+ flow?: string | undefined;
2259
2284
  }[] | undefined;
2260
- groups?: {
2261
- id: string;
2262
- name: string;
2263
- members: string[];
2264
- }[] | undefined;
2265
- packs?: string[] | undefined;
2266
2285
  }>;
2286
+ /** 스키마에 없는 키 하나. path는 `nodes[3].discription`처럼 입력 JSON에서 찾아갈 수 있는 꼴이다 */
2287
+ export interface UnknownField {
2288
+ path: string;
2289
+ key: string;
2290
+ /** 그 자리에서 받는 키 중 가장 가까운 하나. 가까운 게 없으면 비운다 */
2291
+ suggestion?: string;
2292
+ }
2293
+ /**
2294
+ * zod는 모르는 키를 조용히 버려서 오타 칸(discription 같은)이 에러 없이 사라진다.
2295
+ * 입력을 스키마 모양대로 따라 내려가며 받지 않는 키를 모은다. 스키마 검증과 따로 돌아서
2296
+ * 모양이 틀린 자리(배열이어야 하는데 객체 등)는 건너뛰고 그건 parseArchitectureIr이 알린다.
2297
+ */
2298
+ export declare function findUnknownFields(input: unknown): UnknownField[];
2267
2299
  export declare function parseArchitectureIr(input: unknown): Result<ArchitectureIr, ValidationError>;
2268
2300
  //# sourceMappingURL=ir-schema.d.ts.map