semantic-atlas 0.1.3 → 0.2.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 (60) hide show
  1. package/.agents/skills/semantic-atlas/SKILL.md +59 -43
  2. package/.agents/skills/semantic-atlas/references/graph-patch.md +22 -5
  3. package/.agents/skills/semantic-atlas/references/result-routing.md +32 -19
  4. package/.agents/skills/semantic-atlas/references/snapshot-bootstrap.md +17 -32
  5. package/README.md +34 -20
  6. package/README.zh-CN.md +30 -20
  7. package/dist/cli/argument-parser.js +41 -23
  8. package/dist/cli/bin.js +12 -15
  9. package/dist/cli/cli-application.d.ts +2 -2
  10. package/dist/cli/cli-application.d.ts.map +1 -1
  11. package/dist/cli/cli-application.js +40 -36
  12. package/dist/cli/standalone-cli.d.ts +3 -0
  13. package/dist/cli/standalone-cli.d.ts.map +1 -0
  14. package/dist/cli/standalone-cli.js +65 -0
  15. package/dist/cli/types.d.ts +7 -6
  16. package/dist/cli/types.d.ts.map +1 -1
  17. package/dist/contracts/cli.d.ts +370 -1360
  18. package/dist/contracts/cli.d.ts.map +1 -1
  19. package/dist/contracts/cli.js +58 -65
  20. package/dist/contracts/graph.d.ts +4 -0
  21. package/dist/contracts/graph.d.ts.map +1 -1
  22. package/dist/contracts/graph.js +2 -2
  23. package/dist/evaluation/contracts.d.ts +11 -2
  24. package/dist/evaluation/contracts.d.ts.map +1 -1
  25. package/dist/evaluation/contracts.js +7 -2
  26. package/dist/graph/graph-store.d.ts +3 -1
  27. package/dist/graph/graph-store.d.ts.map +1 -1
  28. package/dist/graph/graph-store.js +48 -2
  29. package/dist/graph/types.d.ts +30 -9
  30. package/dist/graph/types.d.ts.map +1 -1
  31. package/dist/index.d.ts +0 -1
  32. package/dist/index.d.ts.map +1 -1
  33. package/dist/package-metadata.d.ts +2 -0
  34. package/dist/package-metadata.d.ts.map +1 -0
  35. package/dist/package-metadata.js +9 -0
  36. package/dist/runtime/sqlite-compatibility-process.d.ts +8 -0
  37. package/dist/runtime/sqlite-compatibility-process.d.ts.map +1 -0
  38. package/dist/runtime/sqlite-compatibility-process.js +20 -0
  39. package/dist/setup/skill-installer.d.ts +19 -0
  40. package/dist/setup/skill-installer.d.ts.map +1 -0
  41. package/dist/setup/skill-installer.js +156 -0
  42. package/dist/world/business-map-projector.d.ts +14 -0
  43. package/dist/world/business-map-projector.d.ts.map +1 -0
  44. package/dist/world/business-map-projector.js +178 -0
  45. package/dist/world/world-graph-query.d.ts +8 -13
  46. package/dist/world/world-graph-query.d.ts.map +1 -1
  47. package/dist/world/world-graph-query.js +26 -229
  48. package/docs/README.md +30 -0
  49. package/docs/architecture/codegraph-backend.md +2 -2
  50. package/docs/architecture/continuous-business-learning.md +240 -0
  51. package/docs/contracts/cli-v1.md +40 -17
  52. package/docs/contracts/graph-model.md +11 -7
  53. package/docs/contracts/graph-patch-v1.md +8 -1
  54. package/docs/evaluation.md +20 -15
  55. package/docs/index.md +41 -0
  56. package/docs/log.md +56 -0
  57. package/docs/product-contract.md +10 -5
  58. package/package.json +1 -1
  59. package/schemas/cli-envelope-v1.schema.json +365 -564
  60. package/schemas/evaluation-run-v1.schema.json +4 -1
@@ -210,130 +210,152 @@
210
210
  "properties": {
211
211
  "command": {
212
212
  "type": "string",
213
- "const": "map.roots"
213
+ "const": "map.view"
214
214
  },
215
- "nodes": {
215
+ "focus": {
216
+ "anyOf": [
217
+ {
218
+ "$ref": "#/$defs/__schema5"
219
+ },
220
+ {
221
+ "type": "null"
222
+ }
223
+ ]
224
+ },
225
+ "breadcrumbs": {
216
226
  "type": "array",
217
227
  "items": {
218
- "anyOf": [
219
- {
220
- "type": "object",
221
- "properties": {
222
- "domain": {
223
- "$ref": "#/$defs/__schema5"
224
- },
225
- "id": {
226
- "$ref": "#/$defs/__schema6"
227
- },
228
- "kind": {
229
- "type": "string",
230
- "const": "Module"
231
- },
232
- "label": {
233
- "$ref": "#/$defs/__schema7"
234
- },
235
- "validity": {
236
- "$ref": "#/$defs/__schema8"
237
- },
238
- "locations": {
239
- "$ref": "#/$defs/__schema9"
240
- },
241
- "support": {
242
- "$ref": "#/$defs/__schema14"
243
- }
244
- },
245
- "required": [
246
- "domain",
247
- "id",
248
- "kind",
249
- "label",
250
- "validity",
251
- "locations",
252
- "support"
253
- ],
254
- "additionalProperties": {
255
- "$ref": "#/$defs/__schema15"
256
- }
228
+ "$ref": "#/$defs/__schema5"
229
+ }
230
+ },
231
+ "regions": {
232
+ "type": "array",
233
+ "items": {
234
+ "type": "object",
235
+ "properties": {
236
+ "node": {
237
+ "$ref": "#/$defs/__schema5"
257
238
  },
258
- {
259
- "type": "object",
260
- "properties": {
261
- "domain": {
262
- "$ref": "#/$defs/__schema16"
263
- },
264
- "key": {
265
- "$ref": "#/$defs/__schema17"
266
- },
267
- "kind": {
268
- "type": "string",
269
- "const": "Capability"
270
- },
271
- "label": {
272
- "$ref": "#/$defs/__schema18"
273
- },
274
- "summary": {
275
- "$ref": "#/$defs/__schema19"
276
- },
277
- "aliases": {
278
- "$ref": "#/$defs/__schema20"
279
- },
280
- "certainty": {
281
- "$ref": "#/$defs/__schema21"
282
- },
283
- "validity": {
284
- "$ref": "#/$defs/__schema8"
285
- },
286
- "evidence": {
287
- "$ref": "#/$defs/__schema22"
288
- }
289
- },
290
- "required": [
291
- "domain",
292
- "key",
293
- "kind",
294
- "label",
295
- "summary",
296
- "aliases",
297
- "certainty",
298
- "validity",
299
- "evidence"
300
- ],
301
- "additionalProperties": {
302
- "$ref": "#/$defs/__schema24"
303
- }
239
+ "role": {
240
+ "type": "string",
241
+ "enum": [
242
+ "root",
243
+ "child",
244
+ "context"
245
+ ]
246
+ },
247
+ "childCount": {
248
+ "$ref": "#/$defs/__schema4"
249
+ },
250
+ "expandable": {
251
+ "type": "boolean"
304
252
  }
305
- ]
253
+ },
254
+ "required": [
255
+ "node",
256
+ "role",
257
+ "childCount",
258
+ "expandable"
259
+ ],
260
+ "additionalProperties": {}
306
261
  }
307
- }
308
- },
309
- "required": [
310
- "command",
311
- "nodes"
312
- ],
313
- "additionalProperties": {}
314
- },
315
- {
316
- "type": "object",
317
- "properties": {
318
- "command": {
319
- "type": "string",
320
- "const": "map.children"
321
262
  },
322
- "nodeId": {
323
- "type": "string",
324
- "minLength": 1
325
- },
326
- "children": {
263
+ "connections": {
327
264
  "type": "array",
328
265
  "items": {
329
- "$ref": "#/$defs/__schema25"
266
+ "type": "object",
267
+ "properties": {
268
+ "from": {
269
+ "$ref": "#/$defs/__schema13"
270
+ },
271
+ "to": {
272
+ "$ref": "#/$defs/__schema13"
273
+ },
274
+ "relations": {
275
+ "type": "array",
276
+ "items": {
277
+ "type": "object",
278
+ "properties": {
279
+ "type": {
280
+ "type": "string",
281
+ "enum": [
282
+ "invokes",
283
+ "reads",
284
+ "writes",
285
+ "publishes",
286
+ "consumes",
287
+ "constrained_by"
288
+ ]
289
+ },
290
+ "directCount": {
291
+ "$ref": "#/$defs/__schema4"
292
+ },
293
+ "aggregatedCount": {
294
+ "$ref": "#/$defs/__schema4"
295
+ },
296
+ "certainty": {
297
+ "type": "object",
298
+ "properties": {
299
+ "exact": {
300
+ "$ref": "#/$defs/__schema4"
301
+ },
302
+ "inferred": {
303
+ "$ref": "#/$defs/__schema4"
304
+ },
305
+ "hypothesis": {
306
+ "$ref": "#/$defs/__schema4"
307
+ }
308
+ },
309
+ "required": [
310
+ "exact",
311
+ "inferred",
312
+ "hypothesis"
313
+ ],
314
+ "additionalProperties": {}
315
+ },
316
+ "validity": {
317
+ "type": "object",
318
+ "properties": {
319
+ "valid": {
320
+ "$ref": "#/$defs/__schema4"
321
+ },
322
+ "stale": {
323
+ "$ref": "#/$defs/__schema4"
324
+ }
325
+ },
326
+ "required": [
327
+ "valid",
328
+ "stale"
329
+ ],
330
+ "additionalProperties": {}
331
+ }
332
+ },
333
+ "required": [
334
+ "type",
335
+ "directCount",
336
+ "aggregatedCount",
337
+ "certainty",
338
+ "validity"
339
+ ],
340
+ "additionalProperties": {}
341
+ }
342
+ }
343
+ },
344
+ "required": [
345
+ "from",
346
+ "to",
347
+ "relations"
348
+ ],
349
+ "additionalProperties": {}
330
350
  }
331
351
  }
332
352
  },
333
353
  "required": [
334
354
  "command",
335
- "nodeId",
336
- "children"
355
+ "focus",
356
+ "breadcrumbs",
357
+ "regions",
358
+ "connections"
337
359
  ],
338
360
  "additionalProperties": {}
339
361
  },
@@ -364,7 +386,7 @@
364
386
  "maximum": 1
365
387
  },
366
388
  "node": {
367
- "$ref": "#/$defs/__schema25"
389
+ "$ref": "#/$defs/__schema5"
368
390
  }
369
391
  },
370
392
  "required": [
@@ -391,236 +413,120 @@
391
413
  "const": "map.show"
392
414
  },
393
415
  "node": {
394
- "$ref": "#/$defs/__schema25"
395
- },
396
- "depth": {
397
- "type": "integer",
398
- "minimum": 1,
399
- "maximum": 3
416
+ "$ref": "#/$defs/__schema5"
400
417
  },
401
- "neighbors": {
402
- "type": "array",
403
- "items": {
404
- "anyOf": [
405
- {
406
- "type": "object",
407
- "properties": {
408
- "type": {
409
- "type": "string",
410
- "enum": [
411
- "contains",
412
- "declares",
413
- "imports",
414
- "exports",
415
- "references",
416
- "calls",
417
- "extends",
418
- "implements",
419
- "instantiates",
420
- "decorated_by"
421
- ]
422
- },
423
- "direction": {
424
- "type": "string",
425
- "enum": [
426
- "incoming",
427
- "outgoing"
428
- ]
429
- },
430
- "node": {
431
- "$ref": "#/$defs/__schema25"
432
- },
433
- "certainty": {
434
- "type": "null"
435
- },
436
- "validity": {
437
- "$ref": "#/$defs/__schema8"
438
- },
439
- "evidence": {
440
- "type": "array",
441
- "items": {
442
- "$ref": "#/$defs/__schema23"
443
- }
444
- },
445
- "support": {
446
- "$ref": "#/$defs/__schema14"
447
- }
448
- },
449
- "required": [
450
- "type",
451
- "direction",
452
- "node",
453
- "certainty",
454
- "validity",
455
- "evidence",
456
- "support"
457
- ],
458
- "additionalProperties": {}
459
- },
460
- {
461
- "type": "object",
462
- "properties": {
463
- "type": {
464
- "type": "string",
465
- "enum": [
466
- "part_of",
467
- "invokes",
468
- "realized_by",
469
- "reads",
470
- "writes",
471
- "publishes",
472
- "consumes",
473
- "constrained_by",
474
- "verified_by"
475
- ]
476
- },
477
- "direction": {
478
- "type": "string",
479
- "enum": [
480
- "incoming",
481
- "outgoing"
482
- ]
483
- },
484
- "node": {
485
- "$ref": "#/$defs/__schema25"
486
- },
487
- "certainty": {
488
- "$ref": "#/$defs/__schema21"
489
- },
490
- "validity": {
491
- "$ref": "#/$defs/__schema8"
492
- },
493
- "evidence": {
494
- "minItems": 1,
495
- "type": "array",
496
- "items": {
497
- "$ref": "#/$defs/__schema23"
498
- }
499
- }
500
- },
501
- "required": [
502
- "type",
503
- "direction",
504
- "node",
505
- "certainty",
506
- "validity",
507
- "evidence"
508
- ],
509
- "additionalProperties": {}
510
- }
511
- ]
512
- }
513
- },
514
- "invariants": {
418
+ "relations": {
515
419
  "type": "array",
516
420
  "items": {
517
421
  "type": "object",
518
422
  "properties": {
519
- "domain": {
520
- "$ref": "#/$defs/__schema16"
521
- },
522
- "key": {
523
- "$ref": "#/$defs/__schema17"
524
- },
525
- "kind": {
423
+ "type": {
526
424
  "type": "string",
527
- "const": "Invariant"
528
- },
529
- "label": {
530
- "$ref": "#/$defs/__schema18"
425
+ "enum": [
426
+ "part_of",
427
+ "invokes",
428
+ "realized_by",
429
+ "reads",
430
+ "writes",
431
+ "publishes",
432
+ "consumes",
433
+ "constrained_by",
434
+ "verified_by"
435
+ ]
531
436
  },
532
- "summary": {
533
- "$ref": "#/$defs/__schema19"
437
+ "direction": {
438
+ "type": "string",
439
+ "enum": [
440
+ "incoming",
441
+ "outgoing"
442
+ ]
534
443
  },
535
- "aliases": {
536
- "$ref": "#/$defs/__schema20"
444
+ "node": {
445
+ "anyOf": [
446
+ {
447
+ "$ref": "#/$defs/__schema5"
448
+ },
449
+ {
450
+ "$ref": "#/$defs/__schema14"
451
+ }
452
+ ]
537
453
  },
538
454
  "certainty": {
539
- "$ref": "#/$defs/__schema21"
455
+ "$ref": "#/$defs/__schema7"
540
456
  },
541
457
  "validity": {
542
458
  "$ref": "#/$defs/__schema8"
543
459
  },
544
460
  "evidence": {
545
- "$ref": "#/$defs/__schema22"
461
+ "minItems": 1,
462
+ "type": "array",
463
+ "items": {
464
+ "$ref": "#/$defs/__schema9"
465
+ }
546
466
  }
547
467
  },
548
468
  "required": [
549
- "domain",
550
- "key",
551
- "kind",
552
- "label",
553
- "summary",
554
- "aliases",
469
+ "type",
470
+ "direction",
471
+ "node",
555
472
  "certainty",
556
473
  "validity",
557
474
  "evidence"
558
475
  ],
559
- "additionalProperties": {
560
- "$ref": "#/$defs/__schema24"
561
- }
476
+ "additionalProperties": {}
562
477
  }
478
+ }
479
+ },
480
+ "required": [
481
+ "command",
482
+ "node",
483
+ "relations"
484
+ ],
485
+ "additionalProperties": {}
486
+ },
487
+ {
488
+ "type": "object",
489
+ "properties": {
490
+ "command": {
491
+ "type": "string",
492
+ "const": "code.search"
493
+ },
494
+ "query": {
495
+ "type": "string",
496
+ "minLength": 1
497
+ },
498
+ "limit": {
499
+ "type": "integer",
500
+ "exclusiveMinimum": 0,
501
+ "maximum": 9007199254740991
563
502
  },
564
- "tests": {
503
+ "results": {
565
504
  "type": "array",
566
505
  "items": {
567
506
  "type": "object",
568
507
  "properties": {
569
- "domain": {
570
- "$ref": "#/$defs/__schema5"
571
- },
572
- "id": {
573
- "$ref": "#/$defs/__schema6"
574
- },
575
- "kind": {
576
- "type": "string",
577
- "enum": [
578
- "Symbol",
579
- "Test"
580
- ]
581
- },
582
- "label": {
583
- "$ref": "#/$defs/__schema7"
584
- },
585
- "validity": {
586
- "$ref": "#/$defs/__schema8"
587
- },
588
- "locations": {
589
- "$ref": "#/$defs/__schema9"
508
+ "score": {
509
+ "type": "number",
510
+ "minimum": 0,
511
+ "maximum": 1
590
512
  },
591
- "support": {
513
+ "node": {
592
514
  "$ref": "#/$defs/__schema14"
593
515
  }
594
516
  },
595
517
  "required": [
596
- "domain",
597
- "id",
598
- "kind",
599
- "label",
600
- "validity",
601
- "locations",
602
- "support"
518
+ "score",
519
+ "node"
603
520
  ],
604
- "additionalProperties": {
605
- "$ref": "#/$defs/__schema15"
606
- }
607
- }
608
- },
609
- "unknowns": {
610
- "type": "array",
611
- "items": {
612
- "$ref": "#/$defs/__schema26"
521
+ "additionalProperties": {}
613
522
  }
614
523
  }
615
524
  },
616
525
  "required": [
617
526
  "command",
618
- "node",
619
- "depth",
620
- "neighbors",
621
- "invariants",
622
- "tests",
623
- "unknowns"
527
+ "query",
528
+ "limit",
529
+ "results"
624
530
  ],
625
531
  "additionalProperties": {}
626
532
  },
@@ -676,10 +582,10 @@
676
582
  "$ref": "#/$defs/__schema1"
677
583
  },
678
584
  "nodes": {
679
- "$ref": "#/$defs/__schema27"
585
+ "$ref": "#/$defs/__schema15"
680
586
  },
681
587
  "relations": {
682
- "$ref": "#/$defs/__schema27"
588
+ "$ref": "#/$defs/__schema15"
683
589
  },
684
590
  "staleAssertions": {
685
591
  "type": "array",
@@ -704,7 +610,7 @@
704
610
  "warnings": {
705
611
  "type": "array",
706
612
  "items": {
707
- "$ref": "#/$defs/__schema28"
613
+ "$ref": "#/$defs/__schema16"
708
614
  }
709
615
  }
710
616
  },
@@ -759,10 +665,10 @@
759
665
  "enum": [
760
666
  "status",
761
667
  "index",
762
- "map.roots",
763
- "map.children",
668
+ "map.view",
764
669
  "map.search",
765
670
  "map.show",
671
+ "code.search",
766
672
  "learn",
767
673
  "changes"
768
674
  ]
@@ -784,7 +690,7 @@
784
690
  "minLength": 1
785
691
  },
786
692
  "details": {
787
- "$ref": "#/$defs/__schema30"
693
+ "$ref": "#/$defs/__schema18"
788
694
  }
789
695
  },
790
696
  "required": [
@@ -803,7 +709,7 @@
803
709
  "warnings": {
804
710
  "type": "array",
805
711
  "items": {
806
- "$ref": "#/$defs/__schema28"
712
+ "$ref": "#/$defs/__schema16"
807
713
  }
808
714
  }
809
715
  },
@@ -884,16 +790,79 @@
884
790
  "maximum": 9007199254740991
885
791
  },
886
792
  "__schema5": {
887
- "type": "string",
888
- "const": "structural"
793
+ "type": "object",
794
+ "properties": {
795
+ "domain": {
796
+ "type": "string",
797
+ "const": "business"
798
+ },
799
+ "key": {
800
+ "$ref": "#/$defs/__schema6"
801
+ },
802
+ "kind": {
803
+ "type": "string",
804
+ "enum": [
805
+ "Capability",
806
+ "Scenario",
807
+ "Operation",
808
+ "Invariant",
809
+ "Interface",
810
+ "Data"
811
+ ]
812
+ },
813
+ "label": {
814
+ "type": "string",
815
+ "minLength": 1
816
+ },
817
+ "summary": {
818
+ "type": "string",
819
+ "minLength": 1
820
+ },
821
+ "aliases": {
822
+ "type": "array",
823
+ "items": {
824
+ "type": "string",
825
+ "minLength": 1
826
+ }
827
+ },
828
+ "certainty": {
829
+ "$ref": "#/$defs/__schema7"
830
+ },
831
+ "validity": {
832
+ "$ref": "#/$defs/__schema8"
833
+ },
834
+ "evidence": {
835
+ "minItems": 1,
836
+ "type": "array",
837
+ "items": {
838
+ "$ref": "#/$defs/__schema9"
839
+ }
840
+ }
841
+ },
842
+ "required": [
843
+ "domain",
844
+ "key",
845
+ "kind",
846
+ "label",
847
+ "summary",
848
+ "aliases",
849
+ "certainty",
850
+ "validity",
851
+ "evidence"
852
+ ],
853
+ "additionalProperties": {}
889
854
  },
890
855
  "__schema6": {
891
856
  "type": "string",
892
- "pattern": "^(?:repository|module|file|symbol|test|unknown):.+$"
857
+ "pattern": "^[a-z0-9]+(?:[._-][a-z0-9]+)*(?:\\/[a-z0-9]+(?:[._-][a-z0-9]+)*)*$"
893
858
  },
894
859
  "__schema7": {
895
860
  "type": "string",
896
- "minLength": 1
861
+ "enum": [
862
+ "exact",
863
+ "inferred",
864
+ "hypothesis"
865
+ ]
897
866
  },
898
867
  "__schema8": {
899
868
  "type": "string",
@@ -903,40 +872,43 @@
903
872
  ]
904
873
  },
905
874
  "__schema9": {
906
- "type": "array",
907
- "items": {
908
- "$ref": "#/$defs/__schema10"
909
- }
910
- },
911
- "__schema10": {
912
875
  "type": "object",
913
876
  "properties": {
877
+ "symbolId": {
878
+ "type": "string",
879
+ "pattern": "^(?:symbol|test):.+$"
880
+ },
914
881
  "file": {
915
- "$ref": "#/$defs/__schema11"
882
+ "$ref": "#/$defs/__schema10"
916
883
  },
917
884
  "range": {
918
- "$ref": "#/$defs/__schema12"
885
+ "$ref": "#/$defs/__schema11"
886
+ },
887
+ "contentHash": {
888
+ "$ref": "#/$defs/__schema1"
919
889
  }
920
890
  },
921
891
  "required": [
892
+ "symbolId",
922
893
  "file",
923
- "range"
894
+ "range",
895
+ "contentHash"
924
896
  ],
925
- "additionalProperties": {}
897
+ "additionalProperties": false
926
898
  },
927
- "__schema11": {
899
+ "__schema10": {
928
900
  "type": "string",
929
901
  "minLength": 1,
930
902
  "pattern": "^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.\\.?(?:\\/|$))(?!.*\\/\\/).+$"
931
903
  },
932
- "__schema12": {
904
+ "__schema11": {
933
905
  "type": "object",
934
906
  "properties": {
935
907
  "start": {
936
- "$ref": "#/$defs/__schema13"
908
+ "$ref": "#/$defs/__schema12"
937
909
  },
938
910
  "end": {
939
- "$ref": "#/$defs/__schema13"
911
+ "$ref": "#/$defs/__schema12"
940
912
  }
941
913
  },
942
914
  "required": [
@@ -945,7 +917,7 @@
945
917
  ],
946
918
  "additionalProperties": false
947
919
  },
948
- "__schema13": {
920
+ "__schema12": {
949
921
  "type": "object",
950
922
  "properties": {
951
923
  "line": {
@@ -965,206 +937,24 @@
965
937
  ],
966
938
  "additionalProperties": false
967
939
  },
968
- "__schema14": {
969
- "type": "object",
970
- "properties": {
971
- "status": {
972
- "type": "string",
973
- "enum": [
974
- "exact",
975
- "inferred",
976
- "unresolved",
977
- "unsupported"
978
- ]
979
- },
980
- "provenance": {
981
- "type": "string",
982
- "enum": [
983
- "tree-sitter",
984
- "scip",
985
- "heuristic",
986
- "backend"
987
- ]
988
- }
989
- },
990
- "required": [
991
- "status",
992
- "provenance"
993
- ],
994
- "additionalProperties": false
995
- },
996
- "__schema15": {},
997
- "__schema16": {
998
- "type": "string",
999
- "const": "business"
1000
- },
1001
- "__schema17": {
1002
- "type": "string",
1003
- "pattern": "^[a-z0-9]+(?:[._-][a-z0-9]+)*(?:\\/[a-z0-9]+(?:[._-][a-z0-9]+)*)*$"
1004
- },
1005
- "__schema18": {
1006
- "type": "string",
1007
- "minLength": 1
1008
- },
1009
- "__schema19": {
1010
- "type": "string",
1011
- "minLength": 1
1012
- },
1013
- "__schema20": {
1014
- "type": "array",
1015
- "items": {
1016
- "type": "string",
1017
- "minLength": 1
1018
- }
1019
- },
1020
- "__schema21": {
1021
- "type": "string",
1022
- "enum": [
1023
- "exact",
1024
- "inferred",
1025
- "hypothesis"
1026
- ]
1027
- },
1028
- "__schema22": {
1029
- "minItems": 1,
1030
- "type": "array",
1031
- "items": {
1032
- "$ref": "#/$defs/__schema23"
1033
- }
1034
- },
1035
- "__schema23": {
940
+ "__schema13": {
1036
941
  "type": "object",
1037
942
  "properties": {
1038
- "symbolId": {
943
+ "domain": {
1039
944
  "type": "string",
1040
- "pattern": "^(?:symbol|test):.+$"
1041
- },
1042
- "file": {
1043
- "$ref": "#/$defs/__schema11"
1044
- },
1045
- "range": {
1046
- "$ref": "#/$defs/__schema12"
945
+ "const": "business"
1047
946
  },
1048
- "contentHash": {
1049
- "$ref": "#/$defs/__schema1"
947
+ "key": {
948
+ "$ref": "#/$defs/__schema6"
1050
949
  }
1051
950
  },
1052
951
  "required": [
1053
- "symbolId",
1054
- "file",
1055
- "range",
1056
- "contentHash"
952
+ "domain",
953
+ "key"
1057
954
  ],
1058
955
  "additionalProperties": false
1059
956
  },
1060
- "__schema24": {},
1061
- "__schema25": {
1062
- "anyOf": [
1063
- {
1064
- "type": "object",
1065
- "properties": {
1066
- "domain": {
1067
- "$ref": "#/$defs/__schema5"
1068
- },
1069
- "id": {
1070
- "$ref": "#/$defs/__schema6"
1071
- },
1072
- "kind": {
1073
- "type": "string",
1074
- "enum": [
1075
- "Repository",
1076
- "Module",
1077
- "File",
1078
- "Symbol",
1079
- "Test"
1080
- ]
1081
- },
1082
- "label": {
1083
- "$ref": "#/$defs/__schema7"
1084
- },
1085
- "validity": {
1086
- "$ref": "#/$defs/__schema8"
1087
- },
1088
- "locations": {
1089
- "$ref": "#/$defs/__schema9"
1090
- },
1091
- "support": {
1092
- "$ref": "#/$defs/__schema14"
1093
- }
1094
- },
1095
- "required": [
1096
- "domain",
1097
- "id",
1098
- "kind",
1099
- "label",
1100
- "validity",
1101
- "locations",
1102
- "support"
1103
- ],
1104
- "additionalProperties": {
1105
- "$ref": "#/$defs/__schema15"
1106
- }
1107
- },
1108
- {
1109
- "type": "object",
1110
- "properties": {
1111
- "domain": {
1112
- "$ref": "#/$defs/__schema16"
1113
- },
1114
- "key": {
1115
- "$ref": "#/$defs/__schema17"
1116
- },
1117
- "kind": {
1118
- "type": "string",
1119
- "enum": [
1120
- "Capability",
1121
- "Scenario",
1122
- "Operation",
1123
- "Invariant",
1124
- "Interface",
1125
- "Data"
1126
- ]
1127
- },
1128
- "label": {
1129
- "$ref": "#/$defs/__schema18"
1130
- },
1131
- "summary": {
1132
- "$ref": "#/$defs/__schema19"
1133
- },
1134
- "aliases": {
1135
- "$ref": "#/$defs/__schema20"
1136
- },
1137
- "certainty": {
1138
- "$ref": "#/$defs/__schema21"
1139
- },
1140
- "validity": {
1141
- "$ref": "#/$defs/__schema8"
1142
- },
1143
- "evidence": {
1144
- "$ref": "#/$defs/__schema22"
1145
- }
1146
- },
1147
- "required": [
1148
- "domain",
1149
- "key",
1150
- "kind",
1151
- "label",
1152
- "summary",
1153
- "aliases",
1154
- "certainty",
1155
- "validity",
1156
- "evidence"
1157
- ],
1158
- "additionalProperties": {
1159
- "$ref": "#/$defs/__schema24"
1160
- }
1161
- },
1162
- {
1163
- "$ref": "#/$defs/__schema26"
1164
- }
1165
- ]
1166
- },
1167
- "__schema26": {
957
+ "__schema14": {
1168
958
  "type": "object",
1169
959
  "properties": {
1170
960
  "domain": {
@@ -1172,57 +962,72 @@
1172
962
  "const": "structural"
1173
963
  },
1174
964
  "id": {
1175
- "$ref": "#/$defs/__schema6"
965
+ "type": "string",
966
+ "pattern": "^(?:repository|module|file|symbol|test|unknown):.+$"
1176
967
  },
1177
968
  "kind": {
1178
969
  "type": "string",
1179
- "const": "UnknownBoundary"
970
+ "enum": [
971
+ "Repository",
972
+ "Module",
973
+ "File",
974
+ "Symbol",
975
+ "Test"
976
+ ]
1180
977
  },
1181
978
  "label": {
1182
979
  "type": "string",
1183
980
  "minLength": 1
1184
981
  },
1185
982
  "validity": {
1186
- "type": "string",
1187
- "const": "unknown"
983
+ "$ref": "#/$defs/__schema8"
984
+ },
985
+ "locations": {
986
+ "type": "array",
987
+ "items": {
988
+ "type": "object",
989
+ "properties": {
990
+ "file": {
991
+ "$ref": "#/$defs/__schema10"
992
+ },
993
+ "range": {
994
+ "$ref": "#/$defs/__schema11"
995
+ }
996
+ },
997
+ "required": [
998
+ "file",
999
+ "range"
1000
+ ],
1001
+ "additionalProperties": {}
1002
+ }
1188
1003
  },
1189
- "owner": {
1004
+ "support": {
1190
1005
  "type": "object",
1191
1006
  "properties": {
1192
- "domain": {
1007
+ "status": {
1193
1008
  "type": "string",
1194
- "const": "structural"
1009
+ "enum": [
1010
+ "exact",
1011
+ "inferred",
1012
+ "unresolved",
1013
+ "unsupported"
1014
+ ]
1195
1015
  },
1196
- "id": {
1197
- "$ref": "#/$defs/__schema6"
1016
+ "provenance": {
1017
+ "type": "string",
1018
+ "enum": [
1019
+ "tree-sitter",
1020
+ "scip",
1021
+ "heuristic",
1022
+ "backend"
1023
+ ]
1198
1024
  }
1199
1025
  },
1200
1026
  "required": [
1201
- "domain",
1202
- "id"
1027
+ "status",
1028
+ "provenance"
1203
1029
  ],
1204
1030
  "additionalProperties": false
1205
- },
1206
- "operation": {
1207
- "type": "string",
1208
- "minLength": 1
1209
- },
1210
- "reason": {
1211
- "type": "string",
1212
- "minLength": 1
1213
- },
1214
- "location": {
1215
- "$ref": "#/$defs/__schema10"
1216
- },
1217
- "candidates": {
1218
- "type": "array",
1219
- "items": {
1220
- "type": "string",
1221
- "minLength": 1
1222
- }
1223
- },
1224
- "support": {
1225
- "$ref": "#/$defs/__schema14"
1226
1031
  }
1227
1032
  },
1228
1033
  "required": [
@@ -1231,16 +1036,12 @@
1231
1036
  "kind",
1232
1037
  "label",
1233
1038
  "validity",
1234
- "owner",
1235
- "operation",
1236
- "reason",
1237
- "location",
1238
- "candidates",
1039
+ "locations",
1239
1040
  "support"
1240
1041
  ],
1241
1042
  "additionalProperties": {}
1242
1043
  },
1243
- "__schema27": {
1044
+ "__schema15": {
1244
1045
  "type": "object",
1245
1046
  "properties": {
1246
1047
  "added": {
@@ -1272,7 +1073,7 @@
1272
1073
  ],
1273
1074
  "additionalProperties": {}
1274
1075
  },
1275
- "__schema28": {
1076
+ "__schema16": {
1276
1077
  "type": "object",
1277
1078
  "properties": {
1278
1079
  "code": {
@@ -1284,7 +1085,7 @@
1284
1085
  "minLength": 1
1285
1086
  },
1286
1087
  "details": {
1287
- "$ref": "#/$defs/__schema29"
1088
+ "$ref": "#/$defs/__schema17"
1288
1089
  }
1289
1090
  },
1290
1091
  "required": [
@@ -1293,7 +1094,7 @@
1293
1094
  ],
1294
1095
  "additionalProperties": false
1295
1096
  },
1296
- "__schema29": {
1097
+ "__schema17": {
1297
1098
  "anyOf": [
1298
1099
  {
1299
1100
  "type": "string"
@@ -1310,7 +1111,7 @@
1310
1111
  {
1311
1112
  "type": "array",
1312
1113
  "items": {
1313
- "$ref": "#/$defs/__schema29"
1114
+ "$ref": "#/$defs/__schema17"
1314
1115
  }
1315
1116
  },
1316
1117
  {
@@ -1319,12 +1120,12 @@
1319
1120
  "type": "string"
1320
1121
  },
1321
1122
  "additionalProperties": {
1322
- "$ref": "#/$defs/__schema29"
1123
+ "$ref": "#/$defs/__schema17"
1323
1124
  }
1324
1125
  }
1325
1126
  ]
1326
1127
  },
1327
- "__schema30": {
1128
+ "__schema18": {
1328
1129
  "anyOf": [
1329
1130
  {
1330
1131
  "type": "string"
@@ -1341,7 +1142,7 @@
1341
1142
  {
1342
1143
  "type": "array",
1343
1144
  "items": {
1344
- "$ref": "#/$defs/__schema30"
1145
+ "$ref": "#/$defs/__schema18"
1345
1146
  }
1346
1147
  },
1347
1148
  {
@@ -1350,7 +1151,7 @@
1350
1151
  "type": "string"
1351
1152
  },
1352
1153
  "additionalProperties": {
1353
- "$ref": "#/$defs/__schema30"
1154
+ "$ref": "#/$defs/__schema18"
1354
1155
  }
1355
1156
  }
1356
1157
  ]