semantic-atlas 0.1.4 → 0.3.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 (84) hide show
  1. package/.agents/skills/semantic-atlas/SKILL.md +62 -43
  2. package/.agents/skills/semantic-atlas/references/graph-patch.md +22 -5
  3. package/.agents/skills/semantic-atlas/references/product-feedback.md +34 -0
  4. package/.agents/skills/semantic-atlas/references/result-routing.md +32 -19
  5. package/.agents/skills/semantic-atlas/references/snapshot-bootstrap.md +17 -32
  6. package/.agents/skills/semantic-atlas-insights/SKILL.md +55 -0
  7. package/README.md +209 -80
  8. package/README.zh-CN.md +187 -81
  9. package/dist/cli/argument-parser.js +49 -23
  10. package/dist/cli/bin.js +16 -3
  11. package/dist/cli/cli-application.d.ts +3 -2
  12. package/dist/cli/cli-application.d.ts.map +1 -1
  13. package/dist/cli/cli-application.js +104 -48
  14. package/dist/cli/insights-cli.d.ts +6 -0
  15. package/dist/cli/insights-cli.d.ts.map +1 -0
  16. package/dist/cli/insights-cli.js +236 -0
  17. package/dist/cli/main.d.ts.map +1 -1
  18. package/dist/cli/main.js +94 -2
  19. package/dist/cli/standalone-cli.d.ts +3 -0
  20. package/dist/cli/standalone-cli.d.ts.map +1 -0
  21. package/dist/cli/standalone-cli.js +96 -0
  22. package/dist/cli/types.d.ts +9 -6
  23. package/dist/cli/types.d.ts.map +1 -1
  24. package/dist/contracts/cli.d.ts +473 -1400
  25. package/dist/contracts/cli.d.ts.map +1 -1
  26. package/dist/contracts/cli.js +65 -65
  27. package/dist/contracts/graph.d.ts +4 -0
  28. package/dist/contracts/graph.d.ts.map +1 -1
  29. package/dist/contracts/graph.js +2 -2
  30. package/dist/contracts/insights.d.ts +2 -0
  31. package/dist/contracts/insights.d.ts.map +1 -0
  32. package/dist/contracts/insights.js +1 -0
  33. package/dist/contracts/public-contracts.d.ts +1 -0
  34. package/dist/contracts/public-contracts.d.ts.map +1 -1
  35. package/dist/contracts/public-contracts.js +1 -0
  36. package/dist/evaluation/contracts.d.ts +11 -2
  37. package/dist/evaluation/contracts.d.ts.map +1 -1
  38. package/dist/evaluation/contracts.js +7 -2
  39. package/dist/graph/graph-store.d.ts +3 -1
  40. package/dist/graph/graph-store.d.ts.map +1 -1
  41. package/dist/graph/graph-store.js +48 -2
  42. package/dist/graph/types.d.ts +30 -9
  43. package/dist/graph/types.d.ts.map +1 -1
  44. package/dist/index.d.ts +0 -1
  45. package/dist/index.d.ts.map +1 -1
  46. package/dist/insights/contracts.d.ts +266 -0
  47. package/dist/insights/contracts.d.ts.map +1 -0
  48. package/dist/insights/contracts.js +124 -0
  49. package/dist/insights/insights-store.d.ts +73 -0
  50. package/dist/insights/insights-store.d.ts.map +1 -0
  51. package/dist/insights/insights-store.js +246 -0
  52. package/dist/package-metadata.d.ts +2 -0
  53. package/dist/package-metadata.d.ts.map +1 -0
  54. package/dist/package-metadata.js +9 -0
  55. package/dist/setup/package-upgrader.d.ts +54 -0
  56. package/dist/setup/package-upgrader.d.ts.map +1 -0
  57. package/dist/setup/package-upgrader.js +169 -0
  58. package/dist/setup/skill-installer.d.ts +20 -0
  59. package/dist/setup/skill-installer.d.ts.map +1 -0
  60. package/dist/setup/skill-installer.js +187 -0
  61. package/dist/storage/atlas-database.d.ts +1 -0
  62. package/dist/storage/atlas-database.d.ts.map +1 -1
  63. package/dist/storage/atlas-database.js +13 -6
  64. package/dist/world/business-map-projector.d.ts +14 -0
  65. package/dist/world/business-map-projector.d.ts.map +1 -0
  66. package/dist/world/business-map-projector.js +178 -0
  67. package/dist/world/world-graph-query.d.ts +8 -13
  68. package/dist/world/world-graph-query.d.ts.map +1 -1
  69. package/dist/world/world-graph-query.js +26 -229
  70. package/docs/README.md +30 -0
  71. package/docs/architecture/codegraph-backend.md +2 -2
  72. package/docs/architecture/continuous-business-learning.md +240 -0
  73. package/docs/contracts/cli-v1.md +62 -18
  74. package/docs/contracts/graph-model.md +11 -7
  75. package/docs/contracts/graph-patch-v1.md +8 -1
  76. package/docs/contracts/insights-v1.md +84 -0
  77. package/docs/evaluation.md +20 -15
  78. package/docs/index.md +43 -0
  79. package/docs/log.md +80 -0
  80. package/docs/product-contract.md +24 -12
  81. package/package.json +3 -1
  82. package/schemas/cli-envelope-v1.schema.json +450 -565
  83. package/schemas/evaluation-run-v1.schema.json +4 -1
  84. package/schemas/insights-envelope-v1.schema.json +428 -0
@@ -118,46 +118,6 @@ export declare const mapNodeSchema: z.ZodUnion<readonly [z.ZodObject<{
118
118
  }, z.core.$strict>;
119
119
  contentHash: z.ZodString;
120
120
  }, z.core.$strict>>;
121
- }, z.core.$loose>, z.ZodObject<{
122
- domain: z.ZodLiteral<"structural">;
123
- id: z.ZodString;
124
- kind: z.ZodLiteral<"UnknownBoundary">;
125
- label: z.ZodString;
126
- validity: z.ZodLiteral<"unknown">;
127
- owner: z.ZodObject<{
128
- domain: z.ZodLiteral<"structural">;
129
- id: z.ZodString;
130
- }, z.core.$strict>;
131
- operation: z.ZodString;
132
- reason: z.ZodString;
133
- location: z.ZodObject<{
134
- file: z.ZodString;
135
- range: z.ZodObject<{
136
- start: z.ZodObject<{
137
- line: z.ZodNumber;
138
- column: z.ZodNumber;
139
- }, z.core.$strict>;
140
- end: z.ZodObject<{
141
- line: z.ZodNumber;
142
- column: z.ZodNumber;
143
- }, z.core.$strict>;
144
- }, z.core.$strict>;
145
- }, z.core.$loose>;
146
- candidates: z.ZodArray<z.ZodString>;
147
- support: z.ZodObject<{
148
- status: z.ZodEnum<{
149
- exact: "exact";
150
- inferred: "inferred";
151
- unresolved: "unresolved";
152
- unsupported: "unsupported";
153
- }>;
154
- provenance: z.ZodEnum<{
155
- "tree-sitter": "tree-sitter";
156
- scip: "scip";
157
- heuristic: "heuristic";
158
- backend: "backend";
159
- }>;
160
- }, z.core.$strict>;
161
121
  }, z.core.$loose>]>;
162
122
  export declare const cliCommandDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
163
123
  command: z.ZodLiteral<"status">;
@@ -198,46 +158,18 @@ export declare const cliCommandDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
198
158
  total: z.ZodNumber;
199
159
  }, z.core.$loose>;
200
160
  }, z.core.$loose>, z.ZodObject<{
201
- command: z.ZodLiteral<"map.roots">;
202
- nodes: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
203
- domain: z.ZodLiteral<"structural">;
204
- id: z.ZodString;
205
- label: z.ZodString;
206
- validity: z.ZodEnum<{
207
- valid: "valid";
208
- stale: "stale";
209
- }>;
210
- locations: z.ZodArray<z.ZodObject<{
211
- file: z.ZodString;
212
- range: z.ZodObject<{
213
- start: z.ZodObject<{
214
- line: z.ZodNumber;
215
- column: z.ZodNumber;
216
- }, z.core.$strict>;
217
- end: z.ZodObject<{
218
- line: z.ZodNumber;
219
- column: z.ZodNumber;
220
- }, z.core.$strict>;
221
- }, z.core.$strict>;
222
- }, z.core.$loose>>;
223
- support: z.ZodObject<{
224
- status: z.ZodEnum<{
225
- exact: "exact";
226
- inferred: "inferred";
227
- unresolved: "unresolved";
228
- unsupported: "unsupported";
229
- }>;
230
- provenance: z.ZodEnum<{
231
- "tree-sitter": "tree-sitter";
232
- scip: "scip";
233
- heuristic: "heuristic";
234
- backend: "backend";
235
- }>;
236
- }, z.core.$strict>;
237
- kind: z.ZodLiteral<"Module">;
238
- }, z.core.$loose>, z.ZodObject<{
161
+ command: z.ZodLiteral<"map.view">;
162
+ focus: z.ZodNullable<z.ZodObject<{
239
163
  domain: z.ZodLiteral<"business">;
240
164
  key: z.ZodString;
165
+ kind: z.ZodEnum<{
166
+ Capability: "Capability";
167
+ Scenario: "Scenario";
168
+ Operation: "Operation";
169
+ Invariant: "Invariant";
170
+ Interface: "Interface";
171
+ Data: "Data";
172
+ }>;
241
173
  label: z.ZodString;
242
174
  summary: z.ZodString;
243
175
  aliases: z.ZodArray<z.ZodString>;
@@ -265,54 +197,8 @@ export declare const cliCommandDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
265
197
  }, z.core.$strict>;
266
198
  contentHash: z.ZodString;
267
199
  }, z.core.$strict>>;
268
- kind: z.ZodLiteral<"Capability">;
269
- }, z.core.$loose>]>>;
270
- }, z.core.$loose>, z.ZodObject<{
271
- command: z.ZodLiteral<"map.children">;
272
- nodeId: z.ZodString;
273
- children: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
274
- domain: z.ZodLiteral<"structural">;
275
- id: z.ZodString;
276
- kind: z.ZodEnum<{
277
- Repository: "Repository";
278
- Module: "Module";
279
- File: "File";
280
- Symbol: "Symbol";
281
- Test: "Test";
282
- }>;
283
- label: z.ZodString;
284
- validity: z.ZodEnum<{
285
- valid: "valid";
286
- stale: "stale";
287
- }>;
288
- locations: z.ZodArray<z.ZodObject<{
289
- file: z.ZodString;
290
- range: z.ZodObject<{
291
- start: z.ZodObject<{
292
- line: z.ZodNumber;
293
- column: z.ZodNumber;
294
- }, z.core.$strict>;
295
- end: z.ZodObject<{
296
- line: z.ZodNumber;
297
- column: z.ZodNumber;
298
- }, z.core.$strict>;
299
- }, z.core.$strict>;
300
- }, z.core.$loose>>;
301
- support: z.ZodObject<{
302
- status: z.ZodEnum<{
303
- exact: "exact";
304
- inferred: "inferred";
305
- unresolved: "unresolved";
306
- unsupported: "unsupported";
307
- }>;
308
- provenance: z.ZodEnum<{
309
- "tree-sitter": "tree-sitter";
310
- scip: "scip";
311
- heuristic: "heuristic";
312
- backend: "backend";
313
- }>;
314
- }, z.core.$strict>;
315
- }, z.core.$loose>, z.ZodObject<{
200
+ }, z.core.$loose>>;
201
+ breadcrumbs: z.ZodArray<z.ZodObject<{
316
202
  domain: z.ZodLiteral<"business">;
317
203
  key: z.ZodString;
318
204
  kind: z.ZodEnum<{
@@ -350,69 +236,33 @@ export declare const cliCommandDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
350
236
  }, z.core.$strict>;
351
237
  contentHash: z.ZodString;
352
238
  }, z.core.$strict>>;
353
- }, z.core.$loose>, z.ZodObject<{
354
- domain: z.ZodLiteral<"structural">;
355
- id: z.ZodString;
356
- kind: z.ZodLiteral<"UnknownBoundary">;
357
- label: z.ZodString;
358
- validity: z.ZodLiteral<"unknown">;
359
- owner: z.ZodObject<{
360
- domain: z.ZodLiteral<"structural">;
361
- id: z.ZodString;
362
- }, z.core.$strict>;
363
- operation: z.ZodString;
364
- reason: z.ZodString;
365
- location: z.ZodObject<{
366
- file: z.ZodString;
367
- range: z.ZodObject<{
368
- start: z.ZodObject<{
369
- line: z.ZodNumber;
370
- column: z.ZodNumber;
371
- }, z.core.$strict>;
372
- end: z.ZodObject<{
373
- line: z.ZodNumber;
374
- column: z.ZodNumber;
375
- }, z.core.$strict>;
376
- }, z.core.$strict>;
377
- }, z.core.$loose>;
378
- candidates: z.ZodArray<z.ZodString>;
379
- support: z.ZodObject<{
380
- status: z.ZodEnum<{
381
- exact: "exact";
382
- inferred: "inferred";
383
- unresolved: "unresolved";
384
- unsupported: "unsupported";
385
- }>;
386
- provenance: z.ZodEnum<{
387
- "tree-sitter": "tree-sitter";
388
- scip: "scip";
389
- heuristic: "heuristic";
390
- backend: "backend";
391
- }>;
392
- }, z.core.$strict>;
393
- }, z.core.$loose>]>>;
394
- }, z.core.$loose>, z.ZodObject<{
395
- command: z.ZodLiteral<"map.search">;
396
- query: z.ZodString;
397
- limit: z.ZodNumber;
398
- results: z.ZodArray<z.ZodObject<{
399
- score: z.ZodNumber;
400
- node: z.ZodUnion<readonly [z.ZodObject<{
401
- domain: z.ZodLiteral<"structural">;
402
- id: z.ZodString;
239
+ }, z.core.$loose>>;
240
+ regions: z.ZodArray<z.ZodObject<{
241
+ node: z.ZodObject<{
242
+ domain: z.ZodLiteral<"business">;
243
+ key: z.ZodString;
403
244
  kind: z.ZodEnum<{
404
- Repository: "Repository";
405
- Module: "Module";
406
- File: "File";
407
- Symbol: "Symbol";
408
- Test: "Test";
245
+ Capability: "Capability";
246
+ Scenario: "Scenario";
247
+ Operation: "Operation";
248
+ Invariant: "Invariant";
249
+ Interface: "Interface";
250
+ Data: "Data";
409
251
  }>;
410
252
  label: z.ZodString;
253
+ summary: z.ZodString;
254
+ aliases: z.ZodArray<z.ZodString>;
255
+ certainty: z.ZodEnum<{
256
+ exact: "exact";
257
+ inferred: "inferred";
258
+ hypothesis: "hypothesis";
259
+ }>;
411
260
  validity: z.ZodEnum<{
412
261
  valid: "valid";
413
262
  stale: "stale";
414
263
  }>;
415
- locations: z.ZodArray<z.ZodObject<{
264
+ evidence: z.ZodArray<z.ZodObject<{
265
+ symbolId: z.ZodString;
416
266
  file: z.ZodString;
417
267
  range: z.ZodObject<{
418
268
  start: z.ZodObject<{
@@ -424,22 +274,55 @@ export declare const cliCommandDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
424
274
  column: z.ZodNumber;
425
275
  }, z.core.$strict>;
426
276
  }, z.core.$strict>;
427
- }, z.core.$loose>>;
428
- support: z.ZodObject<{
429
- status: z.ZodEnum<{
430
- exact: "exact";
431
- inferred: "inferred";
432
- unresolved: "unresolved";
433
- unsupported: "unsupported";
434
- }>;
435
- provenance: z.ZodEnum<{
436
- "tree-sitter": "tree-sitter";
437
- scip: "scip";
438
- heuristic: "heuristic";
439
- backend: "backend";
440
- }>;
441
- }, z.core.$strict>;
442
- }, z.core.$loose>, z.ZodObject<{
277
+ contentHash: z.ZodString;
278
+ }, z.core.$strict>>;
279
+ }, z.core.$loose>;
280
+ role: z.ZodEnum<{
281
+ root: "root";
282
+ child: "child";
283
+ context: "context";
284
+ }>;
285
+ childCount: z.ZodNumber;
286
+ expandable: z.ZodBoolean;
287
+ }, z.core.$loose>>;
288
+ connections: z.ZodArray<z.ZodObject<{
289
+ from: z.ZodObject<{
290
+ domain: z.ZodLiteral<"business">;
291
+ key: z.ZodString;
292
+ }, z.core.$strict>;
293
+ to: z.ZodObject<{
294
+ domain: z.ZodLiteral<"business">;
295
+ key: z.ZodString;
296
+ }, z.core.$strict>;
297
+ relations: z.ZodArray<z.ZodObject<{
298
+ type: z.ZodEnum<{
299
+ invokes: "invokes";
300
+ reads: "reads";
301
+ writes: "writes";
302
+ publishes: "publishes";
303
+ consumes: "consumes";
304
+ constrained_by: "constrained_by";
305
+ }>;
306
+ directCount: z.ZodNumber;
307
+ aggregatedCount: z.ZodNumber;
308
+ certainty: z.ZodObject<{
309
+ exact: z.ZodNumber;
310
+ inferred: z.ZodNumber;
311
+ hypothesis: z.ZodNumber;
312
+ }, z.core.$loose>;
313
+ validity: z.ZodObject<{
314
+ valid: z.ZodNumber;
315
+ stale: z.ZodNumber;
316
+ }, z.core.$loose>;
317
+ }, z.core.$loose>>;
318
+ }, z.core.$loose>>;
319
+ }, z.core.$loose>, z.ZodObject<{
320
+ command: z.ZodLiteral<"map.search">;
321
+ query: z.ZodString;
322
+ limit: z.ZodNumber;
323
+ results: z.ZodArray<z.ZodObject<{
324
+ score: z.ZodNumber;
325
+ node: z.ZodObject<{
443
326
  domain: z.ZodLiteral<"business">;
444
327
  key: z.ZodString;
445
328
  kind: z.ZodEnum<{
@@ -477,117 +360,35 @@ export declare const cliCommandDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
477
360
  }, z.core.$strict>;
478
361
  contentHash: z.ZodString;
479
362
  }, z.core.$strict>>;
480
- }, z.core.$loose>, z.ZodObject<{
481
- domain: z.ZodLiteral<"structural">;
482
- id: z.ZodString;
483
- kind: z.ZodLiteral<"UnknownBoundary">;
484
- label: z.ZodString;
485
- validity: z.ZodLiteral<"unknown">;
486
- owner: z.ZodObject<{
487
- domain: z.ZodLiteral<"structural">;
488
- id: z.ZodString;
489
- }, z.core.$strict>;
490
- operation: z.ZodString;
491
- reason: z.ZodString;
492
- location: z.ZodObject<{
493
- file: z.ZodString;
494
- range: z.ZodObject<{
495
- start: z.ZodObject<{
496
- line: z.ZodNumber;
497
- column: z.ZodNumber;
498
- }, z.core.$strict>;
499
- end: z.ZodObject<{
500
- line: z.ZodNumber;
501
- column: z.ZodNumber;
502
- }, z.core.$strict>;
503
- }, z.core.$strict>;
504
- }, z.core.$loose>;
505
- candidates: z.ZodArray<z.ZodString>;
506
- support: z.ZodObject<{
507
- status: z.ZodEnum<{
508
- exact: "exact";
509
- inferred: "inferred";
510
- unresolved: "unresolved";
511
- unsupported: "unsupported";
512
- }>;
513
- provenance: z.ZodEnum<{
514
- "tree-sitter": "tree-sitter";
515
- scip: "scip";
516
- heuristic: "heuristic";
517
- backend: "backend";
518
- }>;
519
- }, z.core.$strict>;
520
- }, z.core.$loose>]>;
363
+ }, z.core.$loose>;
521
364
  }, z.core.$loose>>;
522
365
  }, z.core.$loose>, z.ZodObject<{
523
366
  command: z.ZodLiteral<"map.show">;
524
- node: z.ZodUnion<readonly [z.ZodObject<{
525
- domain: z.ZodLiteral<"structural">;
526
- id: z.ZodString;
367
+ node: z.ZodObject<{
368
+ domain: z.ZodLiteral<"business">;
369
+ key: z.ZodString;
527
370
  kind: z.ZodEnum<{
528
- Repository: "Repository";
529
- Module: "Module";
530
- File: "File";
531
- Symbol: "Symbol";
532
- Test: "Test";
371
+ Capability: "Capability";
372
+ Scenario: "Scenario";
373
+ Operation: "Operation";
374
+ Invariant: "Invariant";
375
+ Interface: "Interface";
376
+ Data: "Data";
533
377
  }>;
534
378
  label: z.ZodString;
379
+ summary: z.ZodString;
380
+ aliases: z.ZodArray<z.ZodString>;
381
+ certainty: z.ZodEnum<{
382
+ exact: "exact";
383
+ inferred: "inferred";
384
+ hypothesis: "hypothesis";
385
+ }>;
535
386
  validity: z.ZodEnum<{
536
387
  valid: "valid";
537
388
  stale: "stale";
538
389
  }>;
539
- locations: z.ZodArray<z.ZodObject<{
540
- file: z.ZodString;
541
- range: z.ZodObject<{
542
- start: z.ZodObject<{
543
- line: z.ZodNumber;
544
- column: z.ZodNumber;
545
- }, z.core.$strict>;
546
- end: z.ZodObject<{
547
- line: z.ZodNumber;
548
- column: z.ZodNumber;
549
- }, z.core.$strict>;
550
- }, z.core.$strict>;
551
- }, z.core.$loose>>;
552
- support: z.ZodObject<{
553
- status: z.ZodEnum<{
554
- exact: "exact";
555
- inferred: "inferred";
556
- unresolved: "unresolved";
557
- unsupported: "unsupported";
558
- }>;
559
- provenance: z.ZodEnum<{
560
- "tree-sitter": "tree-sitter";
561
- scip: "scip";
562
- heuristic: "heuristic";
563
- backend: "backend";
564
- }>;
565
- }, z.core.$strict>;
566
- }, z.core.$loose>, z.ZodObject<{
567
- domain: z.ZodLiteral<"business">;
568
- key: z.ZodString;
569
- kind: z.ZodEnum<{
570
- Capability: "Capability";
571
- Scenario: "Scenario";
572
- Operation: "Operation";
573
- Invariant: "Invariant";
574
- Interface: "Interface";
575
- Data: "Data";
576
- }>;
577
- label: z.ZodString;
578
- summary: z.ZodString;
579
- aliases: z.ZodArray<z.ZodString>;
580
- certainty: z.ZodEnum<{
581
- exact: "exact";
582
- inferred: "inferred";
583
- hypothesis: "hypothesis";
584
- }>;
585
- validity: z.ZodEnum<{
586
- valid: "valid";
587
- stale: "stale";
588
- }>;
589
- evidence: z.ZodArray<z.ZodObject<{
590
- symbolId: z.ZodString;
390
+ evidence: z.ZodArray<z.ZodObject<{
391
+ symbolId: z.ZodString;
591
392
  file: z.ZodString;
592
393
  range: z.ZodObject<{
593
394
  start: z.ZodObject<{
@@ -601,108 +402,24 @@ export declare const cliCommandDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
601
402
  }, z.core.$strict>;
602
403
  contentHash: z.ZodString;
603
404
  }, z.core.$strict>>;
604
- }, z.core.$loose>, z.ZodObject<{
605
- domain: z.ZodLiteral<"structural">;
606
- id: z.ZodString;
607
- kind: z.ZodLiteral<"UnknownBoundary">;
608
- label: z.ZodString;
609
- validity: z.ZodLiteral<"unknown">;
610
- owner: z.ZodObject<{
611
- domain: z.ZodLiteral<"structural">;
612
- id: z.ZodString;
613
- }, z.core.$strict>;
614
- operation: z.ZodString;
615
- reason: z.ZodString;
616
- location: z.ZodObject<{
617
- file: z.ZodString;
618
- range: z.ZodObject<{
619
- start: z.ZodObject<{
620
- line: z.ZodNumber;
621
- column: z.ZodNumber;
622
- }, z.core.$strict>;
623
- end: z.ZodObject<{
624
- line: z.ZodNumber;
625
- column: z.ZodNumber;
626
- }, z.core.$strict>;
627
- }, z.core.$strict>;
628
- }, z.core.$loose>;
629
- candidates: z.ZodArray<z.ZodString>;
630
- support: z.ZodObject<{
631
- status: z.ZodEnum<{
632
- exact: "exact";
633
- inferred: "inferred";
634
- unresolved: "unresolved";
635
- unsupported: "unsupported";
636
- }>;
637
- provenance: z.ZodEnum<{
638
- "tree-sitter": "tree-sitter";
639
- scip: "scip";
640
- heuristic: "heuristic";
641
- backend: "backend";
642
- }>;
643
- }, z.core.$strict>;
644
- }, z.core.$loose>]>;
645
- depth: z.ZodNumber;
646
- neighbors: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
405
+ }, z.core.$loose>;
406
+ relations: z.ZodArray<z.ZodObject<{
647
407
  type: z.ZodEnum<{
648
- contains: "contains";
649
- declares: "declares";
650
- imports: "imports";
651
- exports: "exports";
652
- references: "references";
653
- calls: "calls";
654
- extends: "extends";
655
- implements: "implements";
656
- instantiates: "instantiates";
657
- decorated_by: "decorated_by";
408
+ part_of: "part_of";
409
+ invokes: "invokes";
410
+ realized_by: "realized_by";
411
+ reads: "reads";
412
+ writes: "writes";
413
+ publishes: "publishes";
414
+ consumes: "consumes";
415
+ constrained_by: "constrained_by";
416
+ verified_by: "verified_by";
658
417
  }>;
659
418
  direction: z.ZodEnum<{
660
419
  incoming: "incoming";
661
420
  outgoing: "outgoing";
662
421
  }>;
663
422
  node: z.ZodUnion<readonly [z.ZodObject<{
664
- domain: z.ZodLiteral<"structural">;
665
- id: z.ZodString;
666
- kind: z.ZodEnum<{
667
- Repository: "Repository";
668
- Module: "Module";
669
- File: "File";
670
- Symbol: "Symbol";
671
- Test: "Test";
672
- }>;
673
- label: z.ZodString;
674
- validity: z.ZodEnum<{
675
- valid: "valid";
676
- stale: "stale";
677
- }>;
678
- locations: z.ZodArray<z.ZodObject<{
679
- file: z.ZodString;
680
- range: z.ZodObject<{
681
- start: z.ZodObject<{
682
- line: z.ZodNumber;
683
- column: z.ZodNumber;
684
- }, z.core.$strict>;
685
- end: z.ZodObject<{
686
- line: z.ZodNumber;
687
- column: z.ZodNumber;
688
- }, z.core.$strict>;
689
- }, z.core.$strict>;
690
- }, z.core.$loose>>;
691
- support: z.ZodObject<{
692
- status: z.ZodEnum<{
693
- exact: "exact";
694
- inferred: "inferred";
695
- unresolved: "unresolved";
696
- unsupported: "unsupported";
697
- }>;
698
- provenance: z.ZodEnum<{
699
- "tree-sitter": "tree-sitter";
700
- scip: "scip";
701
- heuristic: "heuristic";
702
- backend: "backend";
703
- }>;
704
- }, z.core.$strict>;
705
- }, z.core.$loose>, z.ZodObject<{
706
423
  domain: z.ZodLiteral<"business">;
707
424
  key: z.ZodString;
708
425
  kind: z.ZodEnum<{
@@ -743,16 +460,19 @@ export declare const cliCommandDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
743
460
  }, z.core.$loose>, z.ZodObject<{
744
461
  domain: z.ZodLiteral<"structural">;
745
462
  id: z.ZodString;
746
- kind: z.ZodLiteral<"UnknownBoundary">;
463
+ kind: z.ZodEnum<{
464
+ Repository: "Repository";
465
+ Module: "Module";
466
+ File: "File";
467
+ Symbol: "Symbol";
468
+ Test: "Test";
469
+ }>;
747
470
  label: z.ZodString;
748
- validity: z.ZodLiteral<"unknown">;
749
- owner: z.ZodObject<{
750
- domain: z.ZodLiteral<"structural">;
751
- id: z.ZodString;
752
- }, z.core.$strict>;
753
- operation: z.ZodString;
754
- reason: z.ZodString;
755
- location: z.ZodObject<{
471
+ validity: z.ZodEnum<{
472
+ valid: "valid";
473
+ stale: "stale";
474
+ }>;
475
+ locations: z.ZodArray<z.ZodObject<{
756
476
  file: z.ZodString;
757
477
  range: z.ZodObject<{
758
478
  start: z.ZodObject<{
@@ -764,8 +484,7 @@ export declare const cliCommandDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
764
484
  column: z.ZodNumber;
765
485
  }, z.core.$strict>;
766
486
  }, z.core.$strict>;
767
- }, z.core.$loose>;
768
- candidates: z.ZodArray<z.ZodString>;
487
+ }, z.core.$loose>>;
769
488
  support: z.ZodObject<{
770
489
  status: z.ZodEnum<{
771
490
  exact: "exact";
@@ -781,7 +500,11 @@ export declare const cliCommandDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
781
500
  }>;
782
501
  }, z.core.$strict>;
783
502
  }, z.core.$loose>]>;
784
- certainty: z.ZodNull;
503
+ certainty: z.ZodEnum<{
504
+ exact: "exact";
505
+ inferred: "inferred";
506
+ hypothesis: "hypothesis";
507
+ }>;
785
508
  validity: z.ZodEnum<{
786
509
  valid: "valid";
787
510
  stale: "stale";
@@ -801,37 +524,14 @@ export declare const cliCommandDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
801
524
  }, z.core.$strict>;
802
525
  contentHash: z.ZodString;
803
526
  }, z.core.$strict>>;
804
- support: z.ZodObject<{
805
- status: z.ZodEnum<{
806
- exact: "exact";
807
- inferred: "inferred";
808
- unresolved: "unresolved";
809
- unsupported: "unsupported";
810
- }>;
811
- provenance: z.ZodEnum<{
812
- "tree-sitter": "tree-sitter";
813
- scip: "scip";
814
- heuristic: "heuristic";
815
- backend: "backend";
816
- }>;
817
- }, z.core.$strict>;
818
- }, z.core.$loose>, z.ZodObject<{
819
- type: z.ZodEnum<{
820
- part_of: "part_of";
821
- invokes: "invokes";
822
- realized_by: "realized_by";
823
- reads: "reads";
824
- writes: "writes";
825
- publishes: "publishes";
826
- consumes: "consumes";
827
- constrained_by: "constrained_by";
828
- verified_by: "verified_by";
829
- }>;
830
- direction: z.ZodEnum<{
831
- incoming: "incoming";
832
- outgoing: "outgoing";
833
- }>;
834
- node: z.ZodUnion<readonly [z.ZodObject<{
527
+ }, z.core.$loose>>;
528
+ }, z.core.$loose>, z.ZodObject<{
529
+ command: z.ZodLiteral<"code.search">;
530
+ query: z.ZodString;
531
+ limit: z.ZodNumber;
532
+ results: z.ZodArray<z.ZodObject<{
533
+ score: z.ZodNumber;
534
+ node: z.ZodObject<{
835
535
  domain: z.ZodLiteral<"structural">;
836
536
  id: z.ZodString;
837
537
  kind: z.ZodEnum<{
@@ -873,645 +573,148 @@ export declare const cliCommandDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
873
573
  backend: "backend";
874
574
  }>;
875
575
  }, z.core.$strict>;
576
+ }, z.core.$loose>;
577
+ }, z.core.$loose>>;
578
+ }, z.core.$loose>, z.ZodObject<{
579
+ command: z.ZodLiteral<"learn">;
580
+ baseSnapshotId: z.ZodString;
581
+ snapshotId: z.ZodString;
582
+ applied: z.ZodObject<{
583
+ nodeOperations: z.ZodNumber;
584
+ relationOperations: z.ZodNumber;
585
+ }, z.core.$loose>;
586
+ }, z.core.$loose>, z.ZodObject<{
587
+ command: z.ZodLiteral<"changes">;
588
+ fromSnapshotId: z.ZodString;
589
+ toSnapshotId: z.ZodString;
590
+ nodes: z.ZodObject<{
591
+ added: z.ZodArray<z.ZodString>;
592
+ changed: z.ZodArray<z.ZodString>;
593
+ removed: z.ZodArray<z.ZodString>;
594
+ }, z.core.$loose>;
595
+ relations: z.ZodObject<{
596
+ added: z.ZodArray<z.ZodString>;
597
+ changed: z.ZodArray<z.ZodString>;
598
+ removed: z.ZodArray<z.ZodString>;
599
+ }, z.core.$loose>;
600
+ staleAssertions: z.ZodArray<z.ZodString>;
601
+ }, z.core.$loose>, z.ZodObject<{
602
+ command: z.ZodLiteral<"feedback.report">;
603
+ report: z.ZodObject<{
604
+ id: z.ZodString;
605
+ kind: z.ZodEnum<{
606
+ problem: "problem";
607
+ suggestion: "suggestion";
608
+ }>;
609
+ category: z.ZodEnum<{
610
+ "misleading-result": "misleading-result";
611
+ "missing-knowledge": "missing-knowledge";
612
+ "workflow-friction": "workflow-friction";
613
+ performance: "performance";
614
+ "cli-error": "cli-error";
615
+ "skill-instruction": "skill-instruction";
616
+ }>;
617
+ impact: z.ZodEnum<{
618
+ minor: "minor";
619
+ blocked: "blocked";
620
+ slowed: "slowed";
621
+ }>;
622
+ sourceConfirmed: z.ZodBoolean;
623
+ status: z.ZodEnum<{
624
+ new: "new";
625
+ triaged: "triaged";
626
+ resolved: "resolved";
627
+ dismissed: "dismissed";
628
+ }>;
629
+ contextEventCount: z.ZodNumber;
630
+ createdAt: z.ZodISODateTime;
631
+ }, z.core.$strict>;
632
+ }, z.core.$loose>], "command">;
633
+ export declare const cliEnvelopeSchema: z.ZodUnion<readonly [z.ZodObject<{
634
+ schemaVersion: z.ZodLiteral<1>;
635
+ repository: z.ZodObject<{
636
+ id: z.ZodString;
637
+ root: z.ZodString;
638
+ headCommit: z.ZodString;
639
+ }, z.core.$strict>;
640
+ snapshot: z.ZodNullable<z.ZodObject<{
641
+ id: z.ZodString;
642
+ gitHead: z.ZodString;
643
+ createdAt: z.ZodISODateTime;
644
+ freshness: z.ZodEnum<{
645
+ stale: "stale";
646
+ current: "current";
647
+ }>;
648
+ }, z.core.$strict>>;
649
+ status: z.ZodEnum<{
650
+ ok: "ok";
651
+ partial: "partial";
652
+ }>;
653
+ data: z.ZodDiscriminatedUnion<[z.ZodObject<{
654
+ command: z.ZodLiteral<"status">;
655
+ currentRevision: z.ZodObject<{
656
+ headCommit: z.ZodString;
657
+ changes: z.ZodObject<{
658
+ staged: z.ZodNumber;
659
+ unstaged: z.ZodNumber;
660
+ untracked: z.ZodNumber;
661
+ }, z.core.$loose>;
662
+ }, z.core.$loose>;
663
+ freshness: z.ZodEnum<{
664
+ stale: "stale";
665
+ missing: "missing";
666
+ current: "current";
667
+ }>;
668
+ storeLocation: z.ZodString;
669
+ languages: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
670
+ language: z.ZodString;
671
+ support: z.ZodLiteral<"supported">;
876
672
  }, z.core.$loose>, z.ZodObject<{
877
- domain: z.ZodLiteral<"business">;
878
- key: z.ZodString;
879
- kind: z.ZodEnum<{
880
- Capability: "Capability";
881
- Scenario: "Scenario";
882
- Operation: "Operation";
883
- Invariant: "Invariant";
884
- Interface: "Interface";
885
- Data: "Data";
886
- }>;
887
- label: z.ZodString;
888
- summary: z.ZodString;
889
- aliases: z.ZodArray<z.ZodString>;
890
- certainty: z.ZodEnum<{
891
- exact: "exact";
892
- inferred: "inferred";
893
- hypothesis: "hypothesis";
894
- }>;
895
- validity: z.ZodEnum<{
896
- valid: "valid";
897
- stale: "stale";
898
- }>;
899
- evidence: z.ZodArray<z.ZodObject<{
900
- symbolId: z.ZodString;
901
- file: z.ZodString;
902
- range: z.ZodObject<{
903
- start: z.ZodObject<{
904
- line: z.ZodNumber;
905
- column: z.ZodNumber;
906
- }, z.core.$strict>;
907
- end: z.ZodObject<{
908
- line: z.ZodNumber;
909
- column: z.ZodNumber;
910
- }, z.core.$strict>;
911
- }, z.core.$strict>;
912
- contentHash: z.ZodString;
913
- }, z.core.$strict>>;
914
- }, z.core.$loose>, z.ZodObject<{
915
- domain: z.ZodLiteral<"structural">;
916
- id: z.ZodString;
917
- kind: z.ZodLiteral<"UnknownBoundary">;
918
- label: z.ZodString;
919
- validity: z.ZodLiteral<"unknown">;
920
- owner: z.ZodObject<{
921
- domain: z.ZodLiteral<"structural">;
922
- id: z.ZodString;
923
- }, z.core.$strict>;
924
- operation: z.ZodString;
925
- reason: z.ZodString;
926
- location: z.ZodObject<{
927
- file: z.ZodString;
928
- range: z.ZodObject<{
929
- start: z.ZodObject<{
930
- line: z.ZodNumber;
931
- column: z.ZodNumber;
932
- }, z.core.$strict>;
933
- end: z.ZodObject<{
934
- line: z.ZodNumber;
935
- column: z.ZodNumber;
936
- }, z.core.$strict>;
937
- }, z.core.$strict>;
938
- }, z.core.$loose>;
939
- candidates: z.ZodArray<z.ZodString>;
940
- support: z.ZodObject<{
941
- status: z.ZodEnum<{
942
- exact: "exact";
943
- inferred: "inferred";
944
- unresolved: "unresolved";
945
- unsupported: "unsupported";
946
- }>;
947
- provenance: z.ZodEnum<{
948
- "tree-sitter": "tree-sitter";
949
- scip: "scip";
950
- heuristic: "heuristic";
951
- backend: "backend";
952
- }>;
953
- }, z.core.$strict>;
954
- }, z.core.$loose>]>;
955
- certainty: z.ZodEnum<{
956
- exact: "exact";
957
- inferred: "inferred";
958
- hypothesis: "hypothesis";
959
- }>;
960
- validity: z.ZodEnum<{
961
- valid: "valid";
962
- stale: "stale";
963
- }>;
964
- evidence: z.ZodArray<z.ZodObject<{
965
- symbolId: z.ZodString;
966
- file: z.ZodString;
967
- range: z.ZodObject<{
968
- start: z.ZodObject<{
969
- line: z.ZodNumber;
970
- column: z.ZodNumber;
971
- }, z.core.$strict>;
972
- end: z.ZodObject<{
973
- line: z.ZodNumber;
974
- column: z.ZodNumber;
975
- }, z.core.$strict>;
976
- }, z.core.$strict>;
977
- contentHash: z.ZodString;
978
- }, z.core.$strict>>;
979
- }, z.core.$loose>]>>;
980
- invariants: z.ZodArray<z.ZodObject<{
981
- domain: z.ZodLiteral<"business">;
982
- key: z.ZodString;
983
- label: z.ZodString;
984
- summary: z.ZodString;
985
- aliases: z.ZodArray<z.ZodString>;
986
- certainty: z.ZodEnum<{
987
- exact: "exact";
988
- inferred: "inferred";
989
- hypothesis: "hypothesis";
990
- }>;
991
- validity: z.ZodEnum<{
992
- valid: "valid";
993
- stale: "stale";
994
- }>;
995
- evidence: z.ZodArray<z.ZodObject<{
996
- symbolId: z.ZodString;
997
- file: z.ZodString;
998
- range: z.ZodObject<{
999
- start: z.ZodObject<{
1000
- line: z.ZodNumber;
1001
- column: z.ZodNumber;
1002
- }, z.core.$strict>;
1003
- end: z.ZodObject<{
1004
- line: z.ZodNumber;
1005
- column: z.ZodNumber;
1006
- }, z.core.$strict>;
1007
- }, z.core.$strict>;
1008
- contentHash: z.ZodString;
1009
- }, z.core.$strict>>;
1010
- kind: z.ZodLiteral<"Invariant">;
1011
- }, z.core.$loose>>;
1012
- tests: z.ZodArray<z.ZodObject<{
1013
- domain: z.ZodLiteral<"structural">;
1014
- id: z.ZodString;
1015
- label: z.ZodString;
1016
- validity: z.ZodEnum<{
1017
- valid: "valid";
1018
- stale: "stale";
1019
- }>;
1020
- locations: z.ZodArray<z.ZodObject<{
1021
- file: z.ZodString;
1022
- range: z.ZodObject<{
1023
- start: z.ZodObject<{
1024
- line: z.ZodNumber;
1025
- column: z.ZodNumber;
1026
- }, z.core.$strict>;
1027
- end: z.ZodObject<{
1028
- line: z.ZodNumber;
1029
- column: z.ZodNumber;
1030
- }, z.core.$strict>;
1031
- }, z.core.$strict>;
1032
- }, z.core.$loose>>;
1033
- support: z.ZodObject<{
1034
- status: z.ZodEnum<{
1035
- exact: "exact";
1036
- inferred: "inferred";
1037
- unresolved: "unresolved";
1038
- unsupported: "unsupported";
1039
- }>;
1040
- provenance: z.ZodEnum<{
1041
- "tree-sitter": "tree-sitter";
1042
- scip: "scip";
1043
- heuristic: "heuristic";
1044
- backend: "backend";
1045
- }>;
1046
- }, z.core.$strict>;
1047
- kind: z.ZodEnum<{
1048
- Symbol: "Symbol";
1049
- Test: "Test";
1050
- }>;
1051
- }, z.core.$loose>>;
1052
- unknowns: z.ZodArray<z.ZodObject<{
1053
- domain: z.ZodLiteral<"structural">;
1054
- id: z.ZodString;
1055
- kind: z.ZodLiteral<"UnknownBoundary">;
1056
- label: z.ZodString;
1057
- validity: z.ZodLiteral<"unknown">;
1058
- owner: z.ZodObject<{
1059
- domain: z.ZodLiteral<"structural">;
1060
- id: z.ZodString;
1061
- }, z.core.$strict>;
1062
- operation: z.ZodString;
1063
- reason: z.ZodString;
1064
- location: z.ZodObject<{
1065
- file: z.ZodString;
1066
- range: z.ZodObject<{
1067
- start: z.ZodObject<{
1068
- line: z.ZodNumber;
1069
- column: z.ZodNumber;
1070
- }, z.core.$strict>;
1071
- end: z.ZodObject<{
1072
- line: z.ZodNumber;
1073
- column: z.ZodNumber;
1074
- }, z.core.$strict>;
1075
- }, z.core.$strict>;
1076
- }, z.core.$loose>;
1077
- candidates: z.ZodArray<z.ZodString>;
1078
- support: z.ZodObject<{
1079
- status: z.ZodEnum<{
1080
- exact: "exact";
1081
- inferred: "inferred";
1082
- unresolved: "unresolved";
1083
- unsupported: "unsupported";
1084
- }>;
1085
- provenance: z.ZodEnum<{
1086
- "tree-sitter": "tree-sitter";
1087
- scip: "scip";
1088
- heuristic: "heuristic";
1089
- backend: "backend";
1090
- }>;
1091
- }, z.core.$strict>;
1092
- }, z.core.$loose>>;
1093
- }, z.core.$loose>, z.ZodObject<{
1094
- command: z.ZodLiteral<"learn">;
1095
- baseSnapshotId: z.ZodString;
1096
- snapshotId: z.ZodString;
1097
- applied: z.ZodObject<{
1098
- nodeOperations: z.ZodNumber;
1099
- relationOperations: z.ZodNumber;
1100
- }, z.core.$loose>;
1101
- }, z.core.$loose>, z.ZodObject<{
1102
- command: z.ZodLiteral<"changes">;
1103
- fromSnapshotId: z.ZodString;
1104
- toSnapshotId: z.ZodString;
1105
- nodes: z.ZodObject<{
1106
- added: z.ZodArray<z.ZodString>;
1107
- changed: z.ZodArray<z.ZodString>;
1108
- removed: z.ZodArray<z.ZodString>;
1109
- }, z.core.$loose>;
1110
- relations: z.ZodObject<{
1111
- added: z.ZodArray<z.ZodString>;
1112
- changed: z.ZodArray<z.ZodString>;
1113
- removed: z.ZodArray<z.ZodString>;
1114
- }, z.core.$loose>;
1115
- staleAssertions: z.ZodArray<z.ZodString>;
1116
- }, z.core.$loose>], "command">;
1117
- export declare const cliEnvelopeSchema: z.ZodUnion<readonly [z.ZodObject<{
1118
- schemaVersion: z.ZodLiteral<1>;
1119
- repository: z.ZodObject<{
1120
- id: z.ZodString;
1121
- root: z.ZodString;
1122
- headCommit: z.ZodString;
1123
- }, z.core.$strict>;
1124
- snapshot: z.ZodNullable<z.ZodObject<{
1125
- id: z.ZodString;
1126
- gitHead: z.ZodString;
1127
- createdAt: z.ZodISODateTime;
1128
- freshness: z.ZodEnum<{
1129
- stale: "stale";
1130
- current: "current";
1131
- }>;
1132
- }, z.core.$strict>>;
1133
- status: z.ZodEnum<{
1134
- ok: "ok";
1135
- partial: "partial";
1136
- }>;
1137
- data: z.ZodDiscriminatedUnion<[z.ZodObject<{
1138
- command: z.ZodLiteral<"status">;
1139
- currentRevision: z.ZodObject<{
1140
- headCommit: z.ZodString;
1141
- changes: z.ZodObject<{
1142
- staged: z.ZodNumber;
1143
- unstaged: z.ZodNumber;
1144
- untracked: z.ZodNumber;
1145
- }, z.core.$loose>;
1146
- }, z.core.$loose>;
1147
- freshness: z.ZodEnum<{
1148
- stale: "stale";
1149
- missing: "missing";
1150
- current: "current";
1151
- }>;
1152
- storeLocation: z.ZodString;
1153
- languages: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1154
- language: z.ZodString;
1155
- support: z.ZodLiteral<"supported">;
1156
- }, z.core.$loose>, z.ZodObject<{
1157
- language: z.ZodString;
1158
- support: z.ZodLiteral<"unsupported">;
1159
- reason: z.ZodString;
1160
- }, z.core.$loose>], "support">>;
1161
- }, z.core.$loose>, z.ZodObject<{
1162
- command: z.ZodLiteral<"index">;
1163
- snapshotId: z.ZodString;
1164
- facts: z.ZodObject<{
1165
- added: z.ZodNumber;
1166
- changed: z.ZodNumber;
1167
- reused: z.ZodNumber;
1168
- removed: z.ZodNumber;
1169
- }, z.core.$loose>;
1170
- unknowns: z.ZodObject<{
1171
- added: z.ZodNumber;
1172
- resolved: z.ZodNumber;
1173
- total: z.ZodNumber;
1174
- }, z.core.$loose>;
1175
- }, z.core.$loose>, z.ZodObject<{
1176
- command: z.ZodLiteral<"map.roots">;
1177
- nodes: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1178
- domain: z.ZodLiteral<"structural">;
1179
- id: z.ZodString;
1180
- label: z.ZodString;
1181
- validity: z.ZodEnum<{
1182
- valid: "valid";
1183
- stale: "stale";
1184
- }>;
1185
- locations: z.ZodArray<z.ZodObject<{
1186
- file: z.ZodString;
1187
- range: z.ZodObject<{
1188
- start: z.ZodObject<{
1189
- line: z.ZodNumber;
1190
- column: z.ZodNumber;
1191
- }, z.core.$strict>;
1192
- end: z.ZodObject<{
1193
- line: z.ZodNumber;
1194
- column: z.ZodNumber;
1195
- }, z.core.$strict>;
1196
- }, z.core.$strict>;
1197
- }, z.core.$loose>>;
1198
- support: z.ZodObject<{
1199
- status: z.ZodEnum<{
1200
- exact: "exact";
1201
- inferred: "inferred";
1202
- unresolved: "unresolved";
1203
- unsupported: "unsupported";
1204
- }>;
1205
- provenance: z.ZodEnum<{
1206
- "tree-sitter": "tree-sitter";
1207
- scip: "scip";
1208
- heuristic: "heuristic";
1209
- backend: "backend";
1210
- }>;
1211
- }, z.core.$strict>;
1212
- kind: z.ZodLiteral<"Module">;
1213
- }, z.core.$loose>, z.ZodObject<{
1214
- domain: z.ZodLiteral<"business">;
1215
- key: z.ZodString;
1216
- label: z.ZodString;
1217
- summary: z.ZodString;
1218
- aliases: z.ZodArray<z.ZodString>;
1219
- certainty: z.ZodEnum<{
1220
- exact: "exact";
1221
- inferred: "inferred";
1222
- hypothesis: "hypothesis";
1223
- }>;
1224
- validity: z.ZodEnum<{
1225
- valid: "valid";
1226
- stale: "stale";
1227
- }>;
1228
- evidence: z.ZodArray<z.ZodObject<{
1229
- symbolId: z.ZodString;
1230
- file: z.ZodString;
1231
- range: z.ZodObject<{
1232
- start: z.ZodObject<{
1233
- line: z.ZodNumber;
1234
- column: z.ZodNumber;
1235
- }, z.core.$strict>;
1236
- end: z.ZodObject<{
1237
- line: z.ZodNumber;
1238
- column: z.ZodNumber;
1239
- }, z.core.$strict>;
1240
- }, z.core.$strict>;
1241
- contentHash: z.ZodString;
1242
- }, z.core.$strict>>;
1243
- kind: z.ZodLiteral<"Capability">;
1244
- }, z.core.$loose>]>>;
1245
- }, z.core.$loose>, z.ZodObject<{
1246
- command: z.ZodLiteral<"map.children">;
1247
- nodeId: z.ZodString;
1248
- children: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1249
- domain: z.ZodLiteral<"structural">;
1250
- id: z.ZodString;
1251
- kind: z.ZodEnum<{
1252
- Repository: "Repository";
1253
- Module: "Module";
1254
- File: "File";
1255
- Symbol: "Symbol";
1256
- Test: "Test";
1257
- }>;
1258
- label: z.ZodString;
1259
- validity: z.ZodEnum<{
1260
- valid: "valid";
1261
- stale: "stale";
1262
- }>;
1263
- locations: z.ZodArray<z.ZodObject<{
1264
- file: z.ZodString;
1265
- range: z.ZodObject<{
1266
- start: z.ZodObject<{
1267
- line: z.ZodNumber;
1268
- column: z.ZodNumber;
1269
- }, z.core.$strict>;
1270
- end: z.ZodObject<{
1271
- line: z.ZodNumber;
1272
- column: z.ZodNumber;
1273
- }, z.core.$strict>;
1274
- }, z.core.$strict>;
1275
- }, z.core.$loose>>;
1276
- support: z.ZodObject<{
1277
- status: z.ZodEnum<{
1278
- exact: "exact";
1279
- inferred: "inferred";
1280
- unresolved: "unresolved";
1281
- unsupported: "unsupported";
1282
- }>;
1283
- provenance: z.ZodEnum<{
1284
- "tree-sitter": "tree-sitter";
1285
- scip: "scip";
1286
- heuristic: "heuristic";
1287
- backend: "backend";
1288
- }>;
1289
- }, z.core.$strict>;
1290
- }, z.core.$loose>, z.ZodObject<{
1291
- domain: z.ZodLiteral<"business">;
1292
- key: z.ZodString;
1293
- kind: z.ZodEnum<{
1294
- Capability: "Capability";
1295
- Scenario: "Scenario";
1296
- Operation: "Operation";
1297
- Invariant: "Invariant";
1298
- Interface: "Interface";
1299
- Data: "Data";
1300
- }>;
1301
- label: z.ZodString;
1302
- summary: z.ZodString;
1303
- aliases: z.ZodArray<z.ZodString>;
1304
- certainty: z.ZodEnum<{
1305
- exact: "exact";
1306
- inferred: "inferred";
1307
- hypothesis: "hypothesis";
1308
- }>;
1309
- validity: z.ZodEnum<{
1310
- valid: "valid";
1311
- stale: "stale";
1312
- }>;
1313
- evidence: z.ZodArray<z.ZodObject<{
1314
- symbolId: z.ZodString;
1315
- file: z.ZodString;
1316
- range: z.ZodObject<{
1317
- start: z.ZodObject<{
1318
- line: z.ZodNumber;
1319
- column: z.ZodNumber;
1320
- }, z.core.$strict>;
1321
- end: z.ZodObject<{
1322
- line: z.ZodNumber;
1323
- column: z.ZodNumber;
1324
- }, z.core.$strict>;
1325
- }, z.core.$strict>;
1326
- contentHash: z.ZodString;
1327
- }, z.core.$strict>>;
1328
- }, z.core.$loose>, z.ZodObject<{
1329
- domain: z.ZodLiteral<"structural">;
1330
- id: z.ZodString;
1331
- kind: z.ZodLiteral<"UnknownBoundary">;
1332
- label: z.ZodString;
1333
- validity: z.ZodLiteral<"unknown">;
1334
- owner: z.ZodObject<{
1335
- domain: z.ZodLiteral<"structural">;
1336
- id: z.ZodString;
1337
- }, z.core.$strict>;
1338
- operation: z.ZodString;
1339
- reason: z.ZodString;
1340
- location: z.ZodObject<{
1341
- file: z.ZodString;
1342
- range: z.ZodObject<{
1343
- start: z.ZodObject<{
1344
- line: z.ZodNumber;
1345
- column: z.ZodNumber;
1346
- }, z.core.$strict>;
1347
- end: z.ZodObject<{
1348
- line: z.ZodNumber;
1349
- column: z.ZodNumber;
1350
- }, z.core.$strict>;
1351
- }, z.core.$strict>;
1352
- }, z.core.$loose>;
1353
- candidates: z.ZodArray<z.ZodString>;
1354
- support: z.ZodObject<{
1355
- status: z.ZodEnum<{
1356
- exact: "exact";
1357
- inferred: "inferred";
1358
- unresolved: "unresolved";
1359
- unsupported: "unsupported";
1360
- }>;
1361
- provenance: z.ZodEnum<{
1362
- "tree-sitter": "tree-sitter";
1363
- scip: "scip";
1364
- heuristic: "heuristic";
1365
- backend: "backend";
1366
- }>;
1367
- }, z.core.$strict>;
1368
- }, z.core.$loose>]>>;
1369
- }, z.core.$loose>, z.ZodObject<{
1370
- command: z.ZodLiteral<"map.search">;
1371
- query: z.ZodString;
1372
- limit: z.ZodNumber;
1373
- results: z.ZodArray<z.ZodObject<{
1374
- score: z.ZodNumber;
1375
- node: z.ZodUnion<readonly [z.ZodObject<{
1376
- domain: z.ZodLiteral<"structural">;
1377
- id: z.ZodString;
1378
- kind: z.ZodEnum<{
1379
- Repository: "Repository";
1380
- Module: "Module";
1381
- File: "File";
1382
- Symbol: "Symbol";
1383
- Test: "Test";
1384
- }>;
1385
- label: z.ZodString;
1386
- validity: z.ZodEnum<{
1387
- valid: "valid";
1388
- stale: "stale";
1389
- }>;
1390
- locations: z.ZodArray<z.ZodObject<{
1391
- file: z.ZodString;
1392
- range: z.ZodObject<{
1393
- start: z.ZodObject<{
1394
- line: z.ZodNumber;
1395
- column: z.ZodNumber;
1396
- }, z.core.$strict>;
1397
- end: z.ZodObject<{
1398
- line: z.ZodNumber;
1399
- column: z.ZodNumber;
1400
- }, z.core.$strict>;
1401
- }, z.core.$strict>;
1402
- }, z.core.$loose>>;
1403
- support: z.ZodObject<{
1404
- status: z.ZodEnum<{
1405
- exact: "exact";
1406
- inferred: "inferred";
1407
- unresolved: "unresolved";
1408
- unsupported: "unsupported";
1409
- }>;
1410
- provenance: z.ZodEnum<{
1411
- "tree-sitter": "tree-sitter";
1412
- scip: "scip";
1413
- heuristic: "heuristic";
1414
- backend: "backend";
1415
- }>;
1416
- }, z.core.$strict>;
1417
- }, z.core.$loose>, z.ZodObject<{
1418
- domain: z.ZodLiteral<"business">;
1419
- key: z.ZodString;
1420
- kind: z.ZodEnum<{
1421
- Capability: "Capability";
1422
- Scenario: "Scenario";
1423
- Operation: "Operation";
1424
- Invariant: "Invariant";
1425
- Interface: "Interface";
1426
- Data: "Data";
1427
- }>;
1428
- label: z.ZodString;
1429
- summary: z.ZodString;
1430
- aliases: z.ZodArray<z.ZodString>;
1431
- certainty: z.ZodEnum<{
1432
- exact: "exact";
1433
- inferred: "inferred";
1434
- hypothesis: "hypothesis";
1435
- }>;
1436
- validity: z.ZodEnum<{
1437
- valid: "valid";
1438
- stale: "stale";
1439
- }>;
1440
- evidence: z.ZodArray<z.ZodObject<{
1441
- symbolId: z.ZodString;
1442
- file: z.ZodString;
1443
- range: z.ZodObject<{
1444
- start: z.ZodObject<{
1445
- line: z.ZodNumber;
1446
- column: z.ZodNumber;
1447
- }, z.core.$strict>;
1448
- end: z.ZodObject<{
1449
- line: z.ZodNumber;
1450
- column: z.ZodNumber;
1451
- }, z.core.$strict>;
1452
- }, z.core.$strict>;
1453
- contentHash: z.ZodString;
1454
- }, z.core.$strict>>;
1455
- }, z.core.$loose>, z.ZodObject<{
1456
- domain: z.ZodLiteral<"structural">;
1457
- id: z.ZodString;
1458
- kind: z.ZodLiteral<"UnknownBoundary">;
1459
- label: z.ZodString;
1460
- validity: z.ZodLiteral<"unknown">;
1461
- owner: z.ZodObject<{
1462
- domain: z.ZodLiteral<"structural">;
1463
- id: z.ZodString;
1464
- }, z.core.$strict>;
1465
- operation: z.ZodString;
1466
- reason: z.ZodString;
1467
- location: z.ZodObject<{
1468
- file: z.ZodString;
1469
- range: z.ZodObject<{
1470
- start: z.ZodObject<{
1471
- line: z.ZodNumber;
1472
- column: z.ZodNumber;
1473
- }, z.core.$strict>;
1474
- end: z.ZodObject<{
1475
- line: z.ZodNumber;
1476
- column: z.ZodNumber;
1477
- }, z.core.$strict>;
1478
- }, z.core.$strict>;
1479
- }, z.core.$loose>;
1480
- candidates: z.ZodArray<z.ZodString>;
1481
- support: z.ZodObject<{
1482
- status: z.ZodEnum<{
1483
- exact: "exact";
1484
- inferred: "inferred";
1485
- unresolved: "unresolved";
1486
- unsupported: "unsupported";
1487
- }>;
1488
- provenance: z.ZodEnum<{
1489
- "tree-sitter": "tree-sitter";
1490
- scip: "scip";
1491
- heuristic: "heuristic";
1492
- backend: "backend";
1493
- }>;
1494
- }, z.core.$strict>;
1495
- }, z.core.$loose>]>;
1496
- }, z.core.$loose>>;
673
+ language: z.ZodString;
674
+ support: z.ZodLiteral<"unsupported">;
675
+ reason: z.ZodString;
676
+ }, z.core.$loose>], "support">>;
1497
677
  }, z.core.$loose>, z.ZodObject<{
1498
- command: z.ZodLiteral<"map.show">;
1499
- node: z.ZodUnion<readonly [z.ZodObject<{
1500
- domain: z.ZodLiteral<"structural">;
1501
- id: z.ZodString;
678
+ command: z.ZodLiteral<"index">;
679
+ snapshotId: z.ZodString;
680
+ facts: z.ZodObject<{
681
+ added: z.ZodNumber;
682
+ changed: z.ZodNumber;
683
+ reused: z.ZodNumber;
684
+ removed: z.ZodNumber;
685
+ }, z.core.$loose>;
686
+ unknowns: z.ZodObject<{
687
+ added: z.ZodNumber;
688
+ resolved: z.ZodNumber;
689
+ total: z.ZodNumber;
690
+ }, z.core.$loose>;
691
+ }, z.core.$loose>, z.ZodObject<{
692
+ command: z.ZodLiteral<"map.view">;
693
+ focus: z.ZodNullable<z.ZodObject<{
694
+ domain: z.ZodLiteral<"business">;
695
+ key: z.ZodString;
1502
696
  kind: z.ZodEnum<{
1503
- Repository: "Repository";
1504
- Module: "Module";
1505
- File: "File";
1506
- Symbol: "Symbol";
1507
- Test: "Test";
697
+ Capability: "Capability";
698
+ Scenario: "Scenario";
699
+ Operation: "Operation";
700
+ Invariant: "Invariant";
701
+ Interface: "Interface";
702
+ Data: "Data";
1508
703
  }>;
1509
704
  label: z.ZodString;
705
+ summary: z.ZodString;
706
+ aliases: z.ZodArray<z.ZodString>;
707
+ certainty: z.ZodEnum<{
708
+ exact: "exact";
709
+ inferred: "inferred";
710
+ hypothesis: "hypothesis";
711
+ }>;
1510
712
  validity: z.ZodEnum<{
1511
713
  valid: "valid";
1512
714
  stale: "stale";
1513
715
  }>;
1514
- locations: z.ZodArray<z.ZodObject<{
716
+ evidence: z.ZodArray<z.ZodObject<{
717
+ symbolId: z.ZodString;
1515
718
  file: z.ZodString;
1516
719
  range: z.ZodObject<{
1517
720
  start: z.ZodObject<{
@@ -1523,22 +726,10 @@ export declare const cliEnvelopeSchema: z.ZodUnion<readonly [z.ZodObject<{
1523
726
  column: z.ZodNumber;
1524
727
  }, z.core.$strict>;
1525
728
  }, z.core.$strict>;
1526
- }, z.core.$loose>>;
1527
- support: z.ZodObject<{
1528
- status: z.ZodEnum<{
1529
- exact: "exact";
1530
- inferred: "inferred";
1531
- unresolved: "unresolved";
1532
- unsupported: "unsupported";
1533
- }>;
1534
- provenance: z.ZodEnum<{
1535
- "tree-sitter": "tree-sitter";
1536
- scip: "scip";
1537
- heuristic: "heuristic";
1538
- backend: "backend";
1539
- }>;
1540
- }, z.core.$strict>;
1541
- }, z.core.$loose>, z.ZodObject<{
729
+ contentHash: z.ZodString;
730
+ }, z.core.$strict>>;
731
+ }, z.core.$loose>>;
732
+ breadcrumbs: z.ZodArray<z.ZodObject<{
1542
733
  domain: z.ZodLiteral<"business">;
1543
734
  key: z.ZodString;
1544
735
  kind: z.ZodEnum<{
@@ -1576,81 +767,33 @@ export declare const cliEnvelopeSchema: z.ZodUnion<readonly [z.ZodObject<{
1576
767
  }, z.core.$strict>;
1577
768
  contentHash: z.ZodString;
1578
769
  }, z.core.$strict>>;
1579
- }, z.core.$loose>, z.ZodObject<{
1580
- domain: z.ZodLiteral<"structural">;
1581
- id: z.ZodString;
1582
- kind: z.ZodLiteral<"UnknownBoundary">;
1583
- label: z.ZodString;
1584
- validity: z.ZodLiteral<"unknown">;
1585
- owner: z.ZodObject<{
1586
- domain: z.ZodLiteral<"structural">;
1587
- id: z.ZodString;
1588
- }, z.core.$strict>;
1589
- operation: z.ZodString;
1590
- reason: z.ZodString;
1591
- location: z.ZodObject<{
1592
- file: z.ZodString;
1593
- range: z.ZodObject<{
1594
- start: z.ZodObject<{
1595
- line: z.ZodNumber;
1596
- column: z.ZodNumber;
1597
- }, z.core.$strict>;
1598
- end: z.ZodObject<{
1599
- line: z.ZodNumber;
1600
- column: z.ZodNumber;
1601
- }, z.core.$strict>;
1602
- }, z.core.$strict>;
1603
- }, z.core.$loose>;
1604
- candidates: z.ZodArray<z.ZodString>;
1605
- support: z.ZodObject<{
1606
- status: z.ZodEnum<{
1607
- exact: "exact";
1608
- inferred: "inferred";
1609
- unresolved: "unresolved";
1610
- unsupported: "unsupported";
1611
- }>;
1612
- provenance: z.ZodEnum<{
1613
- "tree-sitter": "tree-sitter";
1614
- scip: "scip";
1615
- heuristic: "heuristic";
1616
- backend: "backend";
1617
- }>;
1618
- }, z.core.$strict>;
1619
- }, z.core.$loose>]>;
1620
- depth: z.ZodNumber;
1621
- neighbors: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1622
- type: z.ZodEnum<{
1623
- contains: "contains";
1624
- declares: "declares";
1625
- imports: "imports";
1626
- exports: "exports";
1627
- references: "references";
1628
- calls: "calls";
1629
- extends: "extends";
1630
- implements: "implements";
1631
- instantiates: "instantiates";
1632
- decorated_by: "decorated_by";
1633
- }>;
1634
- direction: z.ZodEnum<{
1635
- incoming: "incoming";
1636
- outgoing: "outgoing";
1637
- }>;
1638
- node: z.ZodUnion<readonly [z.ZodObject<{
1639
- domain: z.ZodLiteral<"structural">;
1640
- id: z.ZodString;
770
+ }, z.core.$loose>>;
771
+ regions: z.ZodArray<z.ZodObject<{
772
+ node: z.ZodObject<{
773
+ domain: z.ZodLiteral<"business">;
774
+ key: z.ZodString;
1641
775
  kind: z.ZodEnum<{
1642
- Repository: "Repository";
1643
- Module: "Module";
1644
- File: "File";
1645
- Symbol: "Symbol";
1646
- Test: "Test";
776
+ Capability: "Capability";
777
+ Scenario: "Scenario";
778
+ Operation: "Operation";
779
+ Invariant: "Invariant";
780
+ Interface: "Interface";
781
+ Data: "Data";
1647
782
  }>;
1648
783
  label: z.ZodString;
784
+ summary: z.ZodString;
785
+ aliases: z.ZodArray<z.ZodString>;
786
+ certainty: z.ZodEnum<{
787
+ exact: "exact";
788
+ inferred: "inferred";
789
+ hypothesis: "hypothesis";
790
+ }>;
1649
791
  validity: z.ZodEnum<{
1650
792
  valid: "valid";
1651
793
  stale: "stale";
1652
794
  }>;
1653
- locations: z.ZodArray<z.ZodObject<{
795
+ evidence: z.ZodArray<z.ZodObject<{
796
+ symbolId: z.ZodString;
1654
797
  file: z.ZodString;
1655
798
  range: z.ZodObject<{
1656
799
  start: z.ZodObject<{
@@ -1662,22 +805,55 @@ export declare const cliEnvelopeSchema: z.ZodUnion<readonly [z.ZodObject<{
1662
805
  column: z.ZodNumber;
1663
806
  }, z.core.$strict>;
1664
807
  }, z.core.$strict>;
1665
- }, z.core.$loose>>;
1666
- support: z.ZodObject<{
1667
- status: z.ZodEnum<{
1668
- exact: "exact";
1669
- inferred: "inferred";
1670
- unresolved: "unresolved";
1671
- unsupported: "unsupported";
1672
- }>;
1673
- provenance: z.ZodEnum<{
1674
- "tree-sitter": "tree-sitter";
1675
- scip: "scip";
1676
- heuristic: "heuristic";
1677
- backend: "backend";
1678
- }>;
1679
- }, z.core.$strict>;
1680
- }, z.core.$loose>, z.ZodObject<{
808
+ contentHash: z.ZodString;
809
+ }, z.core.$strict>>;
810
+ }, z.core.$loose>;
811
+ role: z.ZodEnum<{
812
+ root: "root";
813
+ child: "child";
814
+ context: "context";
815
+ }>;
816
+ childCount: z.ZodNumber;
817
+ expandable: z.ZodBoolean;
818
+ }, z.core.$loose>>;
819
+ connections: z.ZodArray<z.ZodObject<{
820
+ from: z.ZodObject<{
821
+ domain: z.ZodLiteral<"business">;
822
+ key: z.ZodString;
823
+ }, z.core.$strict>;
824
+ to: z.ZodObject<{
825
+ domain: z.ZodLiteral<"business">;
826
+ key: z.ZodString;
827
+ }, z.core.$strict>;
828
+ relations: z.ZodArray<z.ZodObject<{
829
+ type: z.ZodEnum<{
830
+ invokes: "invokes";
831
+ reads: "reads";
832
+ writes: "writes";
833
+ publishes: "publishes";
834
+ consumes: "consumes";
835
+ constrained_by: "constrained_by";
836
+ }>;
837
+ directCount: z.ZodNumber;
838
+ aggregatedCount: z.ZodNumber;
839
+ certainty: z.ZodObject<{
840
+ exact: z.ZodNumber;
841
+ inferred: z.ZodNumber;
842
+ hypothesis: z.ZodNumber;
843
+ }, z.core.$loose>;
844
+ validity: z.ZodObject<{
845
+ valid: z.ZodNumber;
846
+ stale: z.ZodNumber;
847
+ }, z.core.$loose>;
848
+ }, z.core.$loose>>;
849
+ }, z.core.$loose>>;
850
+ }, z.core.$loose>, z.ZodObject<{
851
+ command: z.ZodLiteral<"map.search">;
852
+ query: z.ZodString;
853
+ limit: z.ZodNumber;
854
+ results: z.ZodArray<z.ZodObject<{
855
+ score: z.ZodNumber;
856
+ node: z.ZodObject<{
1681
857
  domain: z.ZodLiteral<"business">;
1682
858
  key: z.ZodString;
1683
859
  kind: z.ZodEnum<{
@@ -1701,62 +877,43 @@ export declare const cliEnvelopeSchema: z.ZodUnion<readonly [z.ZodObject<{
1701
877
  stale: "stale";
1702
878
  }>;
1703
879
  evidence: z.ZodArray<z.ZodObject<{
1704
- symbolId: z.ZodString;
1705
- file: z.ZodString;
1706
- range: z.ZodObject<{
1707
- start: z.ZodObject<{
1708
- line: z.ZodNumber;
1709
- column: z.ZodNumber;
1710
- }, z.core.$strict>;
1711
- end: z.ZodObject<{
1712
- line: z.ZodNumber;
1713
- column: z.ZodNumber;
1714
- }, z.core.$strict>;
1715
- }, z.core.$strict>;
1716
- contentHash: z.ZodString;
1717
- }, z.core.$strict>>;
1718
- }, z.core.$loose>, z.ZodObject<{
1719
- domain: z.ZodLiteral<"structural">;
1720
- id: z.ZodString;
1721
- kind: z.ZodLiteral<"UnknownBoundary">;
1722
- label: z.ZodString;
1723
- validity: z.ZodLiteral<"unknown">;
1724
- owner: z.ZodObject<{
1725
- domain: z.ZodLiteral<"structural">;
1726
- id: z.ZodString;
1727
- }, z.core.$strict>;
1728
- operation: z.ZodString;
1729
- reason: z.ZodString;
1730
- location: z.ZodObject<{
1731
- file: z.ZodString;
1732
- range: z.ZodObject<{
1733
- start: z.ZodObject<{
1734
- line: z.ZodNumber;
1735
- column: z.ZodNumber;
1736
- }, z.core.$strict>;
1737
- end: z.ZodObject<{
1738
- line: z.ZodNumber;
1739
- column: z.ZodNumber;
1740
- }, z.core.$strict>;
1741
- }, z.core.$strict>;
1742
- }, z.core.$loose>;
1743
- candidates: z.ZodArray<z.ZodString>;
1744
- support: z.ZodObject<{
1745
- status: z.ZodEnum<{
1746
- exact: "exact";
1747
- inferred: "inferred";
1748
- unresolved: "unresolved";
1749
- unsupported: "unsupported";
1750
- }>;
1751
- provenance: z.ZodEnum<{
1752
- "tree-sitter": "tree-sitter";
1753
- scip: "scip";
1754
- heuristic: "heuristic";
1755
- backend: "backend";
1756
- }>;
1757
- }, z.core.$strict>;
1758
- }, z.core.$loose>]>;
1759
- certainty: z.ZodNull;
880
+ symbolId: z.ZodString;
881
+ file: z.ZodString;
882
+ range: z.ZodObject<{
883
+ start: z.ZodObject<{
884
+ line: z.ZodNumber;
885
+ column: z.ZodNumber;
886
+ }, z.core.$strict>;
887
+ end: z.ZodObject<{
888
+ line: z.ZodNumber;
889
+ column: z.ZodNumber;
890
+ }, z.core.$strict>;
891
+ }, z.core.$strict>;
892
+ contentHash: z.ZodString;
893
+ }, z.core.$strict>>;
894
+ }, z.core.$loose>;
895
+ }, z.core.$loose>>;
896
+ }, z.core.$loose>, z.ZodObject<{
897
+ command: z.ZodLiteral<"map.show">;
898
+ node: z.ZodObject<{
899
+ domain: z.ZodLiteral<"business">;
900
+ key: z.ZodString;
901
+ kind: z.ZodEnum<{
902
+ Capability: "Capability";
903
+ Scenario: "Scenario";
904
+ Operation: "Operation";
905
+ Invariant: "Invariant";
906
+ Interface: "Interface";
907
+ Data: "Data";
908
+ }>;
909
+ label: z.ZodString;
910
+ summary: z.ZodString;
911
+ aliases: z.ZodArray<z.ZodString>;
912
+ certainty: z.ZodEnum<{
913
+ exact: "exact";
914
+ inferred: "inferred";
915
+ hypothesis: "hypothesis";
916
+ }>;
1760
917
  validity: z.ZodEnum<{
1761
918
  valid: "valid";
1762
919
  stale: "stale";
@@ -1776,21 +933,8 @@ export declare const cliEnvelopeSchema: z.ZodUnion<readonly [z.ZodObject<{
1776
933
  }, z.core.$strict>;
1777
934
  contentHash: z.ZodString;
1778
935
  }, z.core.$strict>>;
1779
- support: z.ZodObject<{
1780
- status: z.ZodEnum<{
1781
- exact: "exact";
1782
- inferred: "inferred";
1783
- unresolved: "unresolved";
1784
- unsupported: "unsupported";
1785
- }>;
1786
- provenance: z.ZodEnum<{
1787
- "tree-sitter": "tree-sitter";
1788
- scip: "scip";
1789
- heuristic: "heuristic";
1790
- backend: "backend";
1791
- }>;
1792
- }, z.core.$strict>;
1793
- }, z.core.$loose>, z.ZodObject<{
936
+ }, z.core.$loose>;
937
+ relations: z.ZodArray<z.ZodObject<{
1794
938
  type: z.ZodEnum<{
1795
939
  part_of: "part_of";
1796
940
  invokes: "invokes";
@@ -1807,48 +951,6 @@ export declare const cliEnvelopeSchema: z.ZodUnion<readonly [z.ZodObject<{
1807
951
  outgoing: "outgoing";
1808
952
  }>;
1809
953
  node: z.ZodUnion<readonly [z.ZodObject<{
1810
- domain: z.ZodLiteral<"structural">;
1811
- id: z.ZodString;
1812
- kind: z.ZodEnum<{
1813
- Repository: "Repository";
1814
- Module: "Module";
1815
- File: "File";
1816
- Symbol: "Symbol";
1817
- Test: "Test";
1818
- }>;
1819
- label: z.ZodString;
1820
- validity: z.ZodEnum<{
1821
- valid: "valid";
1822
- stale: "stale";
1823
- }>;
1824
- locations: z.ZodArray<z.ZodObject<{
1825
- file: z.ZodString;
1826
- range: z.ZodObject<{
1827
- start: z.ZodObject<{
1828
- line: z.ZodNumber;
1829
- column: z.ZodNumber;
1830
- }, z.core.$strict>;
1831
- end: z.ZodObject<{
1832
- line: z.ZodNumber;
1833
- column: z.ZodNumber;
1834
- }, z.core.$strict>;
1835
- }, z.core.$strict>;
1836
- }, z.core.$loose>>;
1837
- support: z.ZodObject<{
1838
- status: z.ZodEnum<{
1839
- exact: "exact";
1840
- inferred: "inferred";
1841
- unresolved: "unresolved";
1842
- unsupported: "unsupported";
1843
- }>;
1844
- provenance: z.ZodEnum<{
1845
- "tree-sitter": "tree-sitter";
1846
- scip: "scip";
1847
- heuristic: "heuristic";
1848
- backend: "backend";
1849
- }>;
1850
- }, z.core.$strict>;
1851
- }, z.core.$loose>, z.ZodObject<{
1852
954
  domain: z.ZodLiteral<"business">;
1853
955
  key: z.ZodString;
1854
956
  kind: z.ZodEnum<{
@@ -1889,16 +991,19 @@ export declare const cliEnvelopeSchema: z.ZodUnion<readonly [z.ZodObject<{
1889
991
  }, z.core.$loose>, z.ZodObject<{
1890
992
  domain: z.ZodLiteral<"structural">;
1891
993
  id: z.ZodString;
1892
- kind: z.ZodLiteral<"UnknownBoundary">;
994
+ kind: z.ZodEnum<{
995
+ Repository: "Repository";
996
+ Module: "Module";
997
+ File: "File";
998
+ Symbol: "Symbol";
999
+ Test: "Test";
1000
+ }>;
1893
1001
  label: z.ZodString;
1894
- validity: z.ZodLiteral<"unknown">;
1895
- owner: z.ZodObject<{
1896
- domain: z.ZodLiteral<"structural">;
1897
- id: z.ZodString;
1898
- }, z.core.$strict>;
1899
- operation: z.ZodString;
1900
- reason: z.ZodString;
1901
- location: z.ZodObject<{
1002
+ validity: z.ZodEnum<{
1003
+ valid: "valid";
1004
+ stale: "stale";
1005
+ }>;
1006
+ locations: z.ZodArray<z.ZodObject<{
1902
1007
  file: z.ZodString;
1903
1008
  range: z.ZodObject<{
1904
1009
  start: z.ZodObject<{
@@ -1910,8 +1015,7 @@ export declare const cliEnvelopeSchema: z.ZodUnion<readonly [z.ZodObject<{
1910
1015
  column: z.ZodNumber;
1911
1016
  }, z.core.$strict>;
1912
1017
  }, z.core.$strict>;
1913
- }, z.core.$loose>;
1914
- candidates: z.ZodArray<z.ZodString>;
1018
+ }, z.core.$loose>>;
1915
1019
  support: z.ZodObject<{
1916
1020
  status: z.ZodEnum<{
1917
1021
  exact: "exact";
@@ -1951,119 +1055,56 @@ export declare const cliEnvelopeSchema: z.ZodUnion<readonly [z.ZodObject<{
1951
1055
  }, z.core.$strict>;
1952
1056
  contentHash: z.ZodString;
1953
1057
  }, z.core.$strict>>;
1954
- }, z.core.$loose>]>>;
1955
- invariants: z.ZodArray<z.ZodObject<{
1956
- domain: z.ZodLiteral<"business">;
1957
- key: z.ZodString;
1958
- label: z.ZodString;
1959
- summary: z.ZodString;
1960
- aliases: z.ZodArray<z.ZodString>;
1961
- certainty: z.ZodEnum<{
1962
- exact: "exact";
1963
- inferred: "inferred";
1964
- hypothesis: "hypothesis";
1965
- }>;
1966
- validity: z.ZodEnum<{
1967
- valid: "valid";
1968
- stale: "stale";
1969
- }>;
1970
- evidence: z.ZodArray<z.ZodObject<{
1971
- symbolId: z.ZodString;
1972
- file: z.ZodString;
1973
- range: z.ZodObject<{
1974
- start: z.ZodObject<{
1975
- line: z.ZodNumber;
1976
- column: z.ZodNumber;
1977
- }, z.core.$strict>;
1978
- end: z.ZodObject<{
1979
- line: z.ZodNumber;
1980
- column: z.ZodNumber;
1981
- }, z.core.$strict>;
1982
- }, z.core.$strict>;
1983
- contentHash: z.ZodString;
1984
- }, z.core.$strict>>;
1985
- kind: z.ZodLiteral<"Invariant">;
1986
- }, z.core.$loose>>;
1987
- tests: z.ZodArray<z.ZodObject<{
1988
- domain: z.ZodLiteral<"structural">;
1989
- id: z.ZodString;
1990
- label: z.ZodString;
1991
- validity: z.ZodEnum<{
1992
- valid: "valid";
1993
- stale: "stale";
1994
- }>;
1995
- locations: z.ZodArray<z.ZodObject<{
1996
- file: z.ZodString;
1997
- range: z.ZodObject<{
1998
- start: z.ZodObject<{
1999
- line: z.ZodNumber;
2000
- column: z.ZodNumber;
2001
- }, z.core.$strict>;
2002
- end: z.ZodObject<{
2003
- line: z.ZodNumber;
2004
- column: z.ZodNumber;
2005
- }, z.core.$strict>;
2006
- }, z.core.$strict>;
2007
- }, z.core.$loose>>;
2008
- support: z.ZodObject<{
2009
- status: z.ZodEnum<{
2010
- exact: "exact";
2011
- inferred: "inferred";
2012
- unresolved: "unresolved";
2013
- unsupported: "unsupported";
2014
- }>;
2015
- provenance: z.ZodEnum<{
2016
- "tree-sitter": "tree-sitter";
2017
- scip: "scip";
2018
- heuristic: "heuristic";
2019
- backend: "backend";
2020
- }>;
2021
- }, z.core.$strict>;
2022
- kind: z.ZodEnum<{
2023
- Symbol: "Symbol";
2024
- Test: "Test";
2025
- }>;
2026
1058
  }, z.core.$loose>>;
2027
- unknowns: z.ZodArray<z.ZodObject<{
2028
- domain: z.ZodLiteral<"structural">;
2029
- id: z.ZodString;
2030
- kind: z.ZodLiteral<"UnknownBoundary">;
2031
- label: z.ZodString;
2032
- validity: z.ZodLiteral<"unknown">;
2033
- owner: z.ZodObject<{
1059
+ }, z.core.$loose>, z.ZodObject<{
1060
+ command: z.ZodLiteral<"code.search">;
1061
+ query: z.ZodString;
1062
+ limit: z.ZodNumber;
1063
+ results: z.ZodArray<z.ZodObject<{
1064
+ score: z.ZodNumber;
1065
+ node: z.ZodObject<{
2034
1066
  domain: z.ZodLiteral<"structural">;
2035
1067
  id: z.ZodString;
2036
- }, z.core.$strict>;
2037
- operation: z.ZodString;
2038
- reason: z.ZodString;
2039
- location: z.ZodObject<{
2040
- file: z.ZodString;
2041
- range: z.ZodObject<{
2042
- start: z.ZodObject<{
2043
- line: z.ZodNumber;
2044
- column: z.ZodNumber;
2045
- }, z.core.$strict>;
2046
- end: z.ZodObject<{
2047
- line: z.ZodNumber;
2048
- column: z.ZodNumber;
1068
+ kind: z.ZodEnum<{
1069
+ Repository: "Repository";
1070
+ Module: "Module";
1071
+ File: "File";
1072
+ Symbol: "Symbol";
1073
+ Test: "Test";
1074
+ }>;
1075
+ label: z.ZodString;
1076
+ validity: z.ZodEnum<{
1077
+ valid: "valid";
1078
+ stale: "stale";
1079
+ }>;
1080
+ locations: z.ZodArray<z.ZodObject<{
1081
+ file: z.ZodString;
1082
+ range: z.ZodObject<{
1083
+ start: z.ZodObject<{
1084
+ line: z.ZodNumber;
1085
+ column: z.ZodNumber;
1086
+ }, z.core.$strict>;
1087
+ end: z.ZodObject<{
1088
+ line: z.ZodNumber;
1089
+ column: z.ZodNumber;
1090
+ }, z.core.$strict>;
2049
1091
  }, z.core.$strict>;
1092
+ }, z.core.$loose>>;
1093
+ support: z.ZodObject<{
1094
+ status: z.ZodEnum<{
1095
+ exact: "exact";
1096
+ inferred: "inferred";
1097
+ unresolved: "unresolved";
1098
+ unsupported: "unsupported";
1099
+ }>;
1100
+ provenance: z.ZodEnum<{
1101
+ "tree-sitter": "tree-sitter";
1102
+ scip: "scip";
1103
+ heuristic: "heuristic";
1104
+ backend: "backend";
1105
+ }>;
2050
1106
  }, z.core.$strict>;
2051
1107
  }, z.core.$loose>;
2052
- candidates: z.ZodArray<z.ZodString>;
2053
- support: z.ZodObject<{
2054
- status: z.ZodEnum<{
2055
- exact: "exact";
2056
- inferred: "inferred";
2057
- unresolved: "unresolved";
2058
- unsupported: "unsupported";
2059
- }>;
2060
- provenance: z.ZodEnum<{
2061
- "tree-sitter": "tree-sitter";
2062
- scip: "scip";
2063
- heuristic: "heuristic";
2064
- backend: "backend";
2065
- }>;
2066
- }, z.core.$strict>;
2067
1108
  }, z.core.$loose>>;
2068
1109
  }, z.core.$loose>, z.ZodObject<{
2069
1110
  command: z.ZodLiteral<"learn">;
@@ -2088,6 +1129,37 @@ export declare const cliEnvelopeSchema: z.ZodUnion<readonly [z.ZodObject<{
2088
1129
  removed: z.ZodArray<z.ZodString>;
2089
1130
  }, z.core.$loose>;
2090
1131
  staleAssertions: z.ZodArray<z.ZodString>;
1132
+ }, z.core.$loose>, z.ZodObject<{
1133
+ command: z.ZodLiteral<"feedback.report">;
1134
+ report: z.ZodObject<{
1135
+ id: z.ZodString;
1136
+ kind: z.ZodEnum<{
1137
+ problem: "problem";
1138
+ suggestion: "suggestion";
1139
+ }>;
1140
+ category: z.ZodEnum<{
1141
+ "misleading-result": "misleading-result";
1142
+ "missing-knowledge": "missing-knowledge";
1143
+ "workflow-friction": "workflow-friction";
1144
+ performance: "performance";
1145
+ "cli-error": "cli-error";
1146
+ "skill-instruction": "skill-instruction";
1147
+ }>;
1148
+ impact: z.ZodEnum<{
1149
+ minor: "minor";
1150
+ blocked: "blocked";
1151
+ slowed: "slowed";
1152
+ }>;
1153
+ sourceConfirmed: z.ZodBoolean;
1154
+ status: z.ZodEnum<{
1155
+ new: "new";
1156
+ triaged: "triaged";
1157
+ resolved: "resolved";
1158
+ dismissed: "dismissed";
1159
+ }>;
1160
+ contextEventCount: z.ZodNumber;
1161
+ createdAt: z.ZodISODateTime;
1162
+ }, z.core.$strict>;
2091
1163
  }, z.core.$loose>], "command">;
2092
1164
  warnings: z.ZodArray<z.ZodObject<{
2093
1165
  code: z.ZodString;
@@ -2117,10 +1189,11 @@ export declare const cliEnvelopeSchema: z.ZodUnion<readonly [z.ZodObject<{
2117
1189
  index: "index";
2118
1190
  changes: "changes";
2119
1191
  learn: "learn";
2120
- "map.roots": "map.roots";
2121
- "map.children": "map.children";
1192
+ "map.view": "map.view";
2122
1193
  "map.search": "map.search";
2123
1194
  "map.show": "map.show";
1195
+ "code.search": "code.search";
1196
+ "feedback.report": "feedback.report";
2124
1197
  }>>;
2125
1198
  error: z.ZodObject<{
2126
1199
  code: z.ZodString;