archctx-contracts 0.17.1 → 0.18.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.
- package/fixtures/valid/archctx-capabilities.json +2 -2
- package/fixtures/valid/product-version-manifest.json +4 -10
- package/package.json +4 -1
- package/schemas/repo/refactor-decision.schema.json +283 -37
- package/schemas/runtime/archctx-capabilities.schema.json +144 -20
- package/schemas/runtime/architecture-debt-delta.schema.json +58 -19
- package/schemas/runtime/architecture-debt.schema.json +42 -42
- package/schemas/runtime/architecture-event.schema.json +1 -1
- package/schemas/runtime/architecture-history.schema.json +354 -0
- package/schemas/runtime/capability-dependencies.schema.json +266 -59
- package/schemas/runtime/cli-check.schema.json +197 -0
- package/schemas/runtime/cli-help.schema.json +28 -0
- package/schemas/runtime/dependency-constraint-evaluation.schema.json +67 -68
- package/schemas/runtime/docs-anchors.schema.json +250 -67
- package/schemas/runtime/doctor-code-facts.schema.json +49 -0
- package/schemas/runtime/evidence-binding.schema.json +1 -1
- package/schemas/runtime/flow-selector-check.schema.json +179 -46
- package/schemas/runtime/hook-debt-checkpoint.schema.json +12 -12
- package/schemas/runtime/index-seed.schema.json +56 -0
- package/schemas/runtime/path-context.schema.json +108 -0
- package/schemas/runtime/product-version-manifest.schema.json +142 -54
- package/schemas/runtime/projection-slice.schema.json +34 -34
- package/schemas/runtime/recommendation-v3.schema.json +372 -1
- package/schemas/runtime/ref-impact-batch-request.schema.json +20 -7
- package/schemas/runtime/ref-impact-batch.schema.json +83 -13
- package/schemas/runtime/ref-impact.schema.json +68 -61
- package/schemas/runtime/refactor-scan-v2.schema.json +434 -0
- package/schemas/runtime/refactor-simulate.schema.json +505 -0
- package/schemas/runtime/refactor-verify-v2.schema.json +172 -0
- package/schemas/runtime/resolve-path.schema.json +69 -0
- package/schemas/runtime/runtime-recommendation-show.schema.json +531 -2
- package/schemas/runtime/runtime-refactor-scan.schema.json +498 -2
- package/schemas/runtime/runtime-verify.schema.json +274 -56
- package/schemas/runtime/state-machine-check.schema.json +357 -89
- package/schemas/runtime/structural-observation-payload.schema.json +372 -1
- package/schemas/runtime/sync-check.schema.json +65 -0
- package/src/architecture-debt.ts +125 -38
- package/src/architecture-history.ts +168 -42
- package/src/architecture.ts +100 -0
- package/src/cli-read.ts +228 -0
- package/src/docs-anchors.ts +105 -50
- package/src/explorer-occurrence-ports.ts +175 -0
- package/src/explorer-query-ports.ts +270 -0
- package/src/failure.ts +3 -0
- package/src/index-seed.ts +42 -0
- package/src/index.ts +5 -0
- package/src/ledger-records.ts +262 -0
- package/src/ledger.ts +27 -566
- package/src/ownership-dependencies.ts +115 -5
- package/src/ports.ts +6 -541
- package/src/product-version.ts +74 -55
- package/src/projection-apply-types.ts +216 -0
- package/src/projection-apply-validators.ts +355 -0
- package/src/projection-capabilities.ts +181 -0
- package/src/projection-constants.ts +317 -0
- package/src/projection-manifest-types.ts +298 -0
- package/src/projection-manifest.ts +12 -299
- package/src/projection-recovery-validators.ts +229 -0
- package/src/projection-request-validators.ts +326 -0
- package/src/projection-types.ts +365 -0
- package/src/projection-validation-helpers.ts +15 -0
- package/src/projection.ts +7 -1689
- package/src/ref-impact.ts +225 -33
- package/src/refactor-constants.ts +213 -0
- package/src/refactor-decision-validators.ts +350 -0
- package/src/refactor-evidence-types.ts +286 -0
- package/src/refactor-observation-validators.ts +359 -0
- package/src/refactor-resolution-validators.ts +229 -0
- package/src/refactor-snapshot-validators.ts +368 -0
- package/src/refactor-types.ts +270 -0
- package/src/refactor-v2.ts +389 -0
- package/src/refactor-validation-helpers.ts +195 -0
- package/src/refactor.ts +7 -1849
- package/src/review-guards.ts +3 -23
- package/src/runtime-verify.ts +87 -0
- package/src/schema-kit.ts +183 -0
- package/src/schema-registry.ts +73 -0
- package/src/schema.ts +0 -4
- package/src/state-machine-schemas.ts +192 -0
- package/src/state-machine-types.ts +188 -0
- package/src/state-machine.ts +9 -189
- package/fixtures/boundary/agent-job-expired.json +0 -33
- package/fixtures/invalid/adapter-fidelity-reverse-sync.json +0 -9
- package/fixtures/invalid/agent-job-direct-mutation.json +0 -32
- package/fixtures/invalid/cloud-egress-envelope-private-field.json +0 -12
- package/fixtures/invalid/investigation-report-direct-mutation.json +0 -38
- package/fixtures/invalid/investigation-report-missing-proposed-delta.json +0 -19
- package/fixtures/invalid/notification-event-code-field.json +0 -11
- package/fixtures/valid/adapter-fidelity.json +0 -9
- package/fixtures/valid/agent-job.json +0 -33
- package/fixtures/valid/architecture-candidate-delta-policy.json +0 -45
- package/fixtures/valid/architecture-candidate-delta.json +0 -188
- package/fixtures/valid/chatgpt-ga-tool.json +0 -9
- package/fixtures/valid/cloud-egress-envelope.json +0 -11
- package/fixtures/valid/entitlement.json +0 -12
- package/fixtures/valid/investigation-report.json +0 -38
- package/fixtures/valid/likec4-mapping.json +0 -14
- package/fixtures/valid/notification-event.json +0 -10
- package/fixtures/valid/notification-provider.json +0 -12
- package/fixtures/valid/structurizr-mapping.json +0 -15
- package/schemas/cloud/cloud-egress-envelope.schema.json +0 -19
- package/schemas/cloud/entitlement.schema.json +0 -24
- package/schemas/integrations/adapter-fidelity.schema.json +0 -21
- package/schemas/integrations/chatgpt-ga-tool.schema.json +0 -25
- package/schemas/integrations/likec4-mapping.schema.json +0 -32
- package/schemas/integrations/structurizr-mapping.schema.json +0 -33
- package/schemas/runtime/agent-job.schema.json +0 -63
- package/schemas/runtime/architecture-candidate-delta-policy.schema.json +0 -129
- package/schemas/runtime/architecture-candidate-delta.schema.json +0 -386
- package/schemas/runtime/investigation-report.schema.json +0 -119
- package/schemas/runtime/notification-event.schema.json +0 -18
- package/schemas/runtime/notification-provider.schema.json +0 -26
|
@@ -681,6 +681,164 @@
|
|
|
681
681
|
"type": "boolean"
|
|
682
682
|
}
|
|
683
683
|
}
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
"type": "object",
|
|
687
|
+
"additionalProperties": false,
|
|
688
|
+
"required": [
|
|
689
|
+
"kind",
|
|
690
|
+
"files",
|
|
691
|
+
"totalCount",
|
|
692
|
+
"truncated"
|
|
693
|
+
],
|
|
694
|
+
"properties": {
|
|
695
|
+
"kind": {
|
|
696
|
+
"const": "low-cohesion-god-file"
|
|
697
|
+
},
|
|
698
|
+
"files": {
|
|
699
|
+
"type": "array",
|
|
700
|
+
"maxItems": 20,
|
|
701
|
+
"items": {
|
|
702
|
+
"$ref": "#/$defs/evidenceLowCohesionFile"
|
|
703
|
+
}
|
|
704
|
+
},
|
|
705
|
+
"totalCount": {
|
|
706
|
+
"type": "integer",
|
|
707
|
+
"minimum": 0
|
|
708
|
+
},
|
|
709
|
+
"truncated": {
|
|
710
|
+
"type": "boolean"
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
"type": "object",
|
|
716
|
+
"additionalProperties": false,
|
|
717
|
+
"required": [
|
|
718
|
+
"kind",
|
|
719
|
+
"declaredEntrypointPaths",
|
|
720
|
+
"edges",
|
|
721
|
+
"totalCount",
|
|
722
|
+
"truncated"
|
|
723
|
+
],
|
|
724
|
+
"properties": {
|
|
725
|
+
"kind": {
|
|
726
|
+
"const": "entrypoint-bypass"
|
|
727
|
+
},
|
|
728
|
+
"declaredEntrypointPaths": {
|
|
729
|
+
"type": "array",
|
|
730
|
+
"uniqueItems": true,
|
|
731
|
+
"items": {
|
|
732
|
+
"$ref": "#/$defs/repoRelativePath"
|
|
733
|
+
}
|
|
734
|
+
},
|
|
735
|
+
"edges": {
|
|
736
|
+
"type": "array",
|
|
737
|
+
"maxItems": 20,
|
|
738
|
+
"items": {
|
|
739
|
+
"$ref": "#/$defs/evidenceImportEdge"
|
|
740
|
+
}
|
|
741
|
+
},
|
|
742
|
+
"totalCount": {
|
|
743
|
+
"type": "integer",
|
|
744
|
+
"minimum": 0
|
|
745
|
+
},
|
|
746
|
+
"truncated": {
|
|
747
|
+
"type": "boolean"
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
"type": "object",
|
|
753
|
+
"additionalProperties": false,
|
|
754
|
+
"required": [
|
|
755
|
+
"kind",
|
|
756
|
+
"sourceFanIn",
|
|
757
|
+
"sourceInstability",
|
|
758
|
+
"targets",
|
|
759
|
+
"totalCount",
|
|
760
|
+
"truncated"
|
|
761
|
+
],
|
|
762
|
+
"properties": {
|
|
763
|
+
"kind": {
|
|
764
|
+
"const": "unstable-dependency"
|
|
765
|
+
},
|
|
766
|
+
"sourceFanIn": {
|
|
767
|
+
"type": "integer",
|
|
768
|
+
"minimum": 0
|
|
769
|
+
},
|
|
770
|
+
"sourceInstability": {
|
|
771
|
+
"type": "number",
|
|
772
|
+
"minimum": 0,
|
|
773
|
+
"maximum": 1
|
|
774
|
+
},
|
|
775
|
+
"targets": {
|
|
776
|
+
"type": "array",
|
|
777
|
+
"maxItems": 20,
|
|
778
|
+
"items": {
|
|
779
|
+
"$ref": "#/$defs/evidenceUnstableTarget"
|
|
780
|
+
}
|
|
781
|
+
},
|
|
782
|
+
"totalCount": {
|
|
783
|
+
"type": "integer",
|
|
784
|
+
"minimum": 0
|
|
785
|
+
},
|
|
786
|
+
"truncated": {
|
|
787
|
+
"type": "boolean"
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
"type": "object",
|
|
793
|
+
"additionalProperties": false,
|
|
794
|
+
"required": [
|
|
795
|
+
"kind",
|
|
796
|
+
"memberNodeIds",
|
|
797
|
+
"coverageStatus",
|
|
798
|
+
"windowLimit",
|
|
799
|
+
"observedCommitCount",
|
|
800
|
+
"pairs",
|
|
801
|
+
"totalCount",
|
|
802
|
+
"truncated"
|
|
803
|
+
],
|
|
804
|
+
"properties": {
|
|
805
|
+
"kind": {
|
|
806
|
+
"const": "co-change-coupling"
|
|
807
|
+
},
|
|
808
|
+
"memberNodeIds": {
|
|
809
|
+
"$ref": "#/$defs/evidenceIdList"
|
|
810
|
+
},
|
|
811
|
+
"coverageStatus": {
|
|
812
|
+
"enum": [
|
|
813
|
+
"complete",
|
|
814
|
+
"shallow",
|
|
815
|
+
"insufficient-history",
|
|
816
|
+
"unavailable"
|
|
817
|
+
]
|
|
818
|
+
},
|
|
819
|
+
"windowLimit": {
|
|
820
|
+
"type": "integer",
|
|
821
|
+
"minimum": 1
|
|
822
|
+
},
|
|
823
|
+
"observedCommitCount": {
|
|
824
|
+
"type": "integer",
|
|
825
|
+
"minimum": 0
|
|
826
|
+
},
|
|
827
|
+
"pairs": {
|
|
828
|
+
"type": "array",
|
|
829
|
+
"maxItems": 20,
|
|
830
|
+
"items": {
|
|
831
|
+
"$ref": "#/$defs/evidenceCoChangePair"
|
|
832
|
+
}
|
|
833
|
+
},
|
|
834
|
+
"totalCount": {
|
|
835
|
+
"type": "integer",
|
|
836
|
+
"minimum": 0
|
|
837
|
+
},
|
|
838
|
+
"truncated": {
|
|
839
|
+
"type": "boolean"
|
|
840
|
+
}
|
|
841
|
+
}
|
|
684
842
|
}
|
|
685
843
|
]
|
|
686
844
|
},
|
|
@@ -1011,13 +1169,17 @@
|
|
|
1011
1169
|
},
|
|
1012
1170
|
"kind": {
|
|
1013
1171
|
"enum": [
|
|
1172
|
+
"co-change-coupling",
|
|
1014
1173
|
"cycle",
|
|
1015
1174
|
"direction-violation",
|
|
1175
|
+
"entrypoint-bypass",
|
|
1016
1176
|
"evidence-gap",
|
|
1177
|
+
"low-cohesion-god-file",
|
|
1017
1178
|
"ownership-ambiguous",
|
|
1018
1179
|
"residual-cycle",
|
|
1019
1180
|
"undeclared-footprint",
|
|
1020
|
-
"unowned-paths"
|
|
1181
|
+
"unowned-paths",
|
|
1182
|
+
"unstable-dependency"
|
|
1021
1183
|
]
|
|
1022
1184
|
},
|
|
1023
1185
|
"affectedNodeIds": {
|
|
@@ -1050,6 +1212,26 @@
|
|
|
1050
1212
|
}
|
|
1051
1213
|
},
|
|
1052
1214
|
"allOf": [
|
|
1215
|
+
{
|
|
1216
|
+
"if": {
|
|
1217
|
+
"properties": {
|
|
1218
|
+
"kind": {
|
|
1219
|
+
"const": "co-change-coupling"
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
},
|
|
1223
|
+
"then": {
|
|
1224
|
+
"properties": {
|
|
1225
|
+
"evidence": {
|
|
1226
|
+
"properties": {
|
|
1227
|
+
"kind": {
|
|
1228
|
+
"const": "co-change-coupling"
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
},
|
|
1053
1235
|
{
|
|
1054
1236
|
"if": {
|
|
1055
1237
|
"properties": {
|
|
@@ -1090,6 +1272,26 @@
|
|
|
1090
1272
|
}
|
|
1091
1273
|
}
|
|
1092
1274
|
},
|
|
1275
|
+
{
|
|
1276
|
+
"if": {
|
|
1277
|
+
"properties": {
|
|
1278
|
+
"kind": {
|
|
1279
|
+
"const": "entrypoint-bypass"
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
},
|
|
1283
|
+
"then": {
|
|
1284
|
+
"properties": {
|
|
1285
|
+
"evidence": {
|
|
1286
|
+
"properties": {
|
|
1287
|
+
"kind": {
|
|
1288
|
+
"const": "entrypoint-bypass"
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
},
|
|
1093
1295
|
{
|
|
1094
1296
|
"if": {
|
|
1095
1297
|
"properties": {
|
|
@@ -1110,6 +1312,26 @@
|
|
|
1110
1312
|
}
|
|
1111
1313
|
}
|
|
1112
1314
|
},
|
|
1315
|
+
{
|
|
1316
|
+
"if": {
|
|
1317
|
+
"properties": {
|
|
1318
|
+
"kind": {
|
|
1319
|
+
"const": "low-cohesion-god-file"
|
|
1320
|
+
}
|
|
1321
|
+
}
|
|
1322
|
+
},
|
|
1323
|
+
"then": {
|
|
1324
|
+
"properties": {
|
|
1325
|
+
"evidence": {
|
|
1326
|
+
"properties": {
|
|
1327
|
+
"kind": {
|
|
1328
|
+
"const": "low-cohesion-god-file"
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
}
|
|
1333
|
+
}
|
|
1334
|
+
},
|
|
1113
1335
|
{
|
|
1114
1336
|
"if": {
|
|
1115
1337
|
"properties": {
|
|
@@ -1170,6 +1392,26 @@
|
|
|
1170
1392
|
}
|
|
1171
1393
|
}
|
|
1172
1394
|
},
|
|
1395
|
+
{
|
|
1396
|
+
"if": {
|
|
1397
|
+
"properties": {
|
|
1398
|
+
"kind": {
|
|
1399
|
+
"const": "unstable-dependency"
|
|
1400
|
+
}
|
|
1401
|
+
}
|
|
1402
|
+
},
|
|
1403
|
+
"then": {
|
|
1404
|
+
"properties": {
|
|
1405
|
+
"evidence": {
|
|
1406
|
+
"properties": {
|
|
1407
|
+
"kind": {
|
|
1408
|
+
"const": "unstable-dependency"
|
|
1409
|
+
}
|
|
1410
|
+
}
|
|
1411
|
+
}
|
|
1412
|
+
}
|
|
1413
|
+
}
|
|
1414
|
+
},
|
|
1173
1415
|
{
|
|
1174
1416
|
"if": {
|
|
1175
1417
|
"properties": {
|
|
@@ -1268,6 +1510,135 @@
|
|
|
1268
1510
|
}
|
|
1269
1511
|
}
|
|
1270
1512
|
}
|
|
1513
|
+
},
|
|
1514
|
+
"evidenceLowCohesionCluster": {
|
|
1515
|
+
"type": "object",
|
|
1516
|
+
"additionalProperties": false,
|
|
1517
|
+
"required": [
|
|
1518
|
+
"symbols",
|
|
1519
|
+
"startLine",
|
|
1520
|
+
"endLine",
|
|
1521
|
+
"intraClusterEdges",
|
|
1522
|
+
"crossClusterEdges"
|
|
1523
|
+
],
|
|
1524
|
+
"properties": {
|
|
1525
|
+
"symbols": {
|
|
1526
|
+
"type": "array",
|
|
1527
|
+
"uniqueItems": true,
|
|
1528
|
+
"items": {
|
|
1529
|
+
"type": "string",
|
|
1530
|
+
"minLength": 1
|
|
1531
|
+
}
|
|
1532
|
+
},
|
|
1533
|
+
"startLine": {
|
|
1534
|
+
"type": "integer",
|
|
1535
|
+
"minimum": 1
|
|
1536
|
+
},
|
|
1537
|
+
"endLine": {
|
|
1538
|
+
"type": "integer",
|
|
1539
|
+
"minimum": 1
|
|
1540
|
+
},
|
|
1541
|
+
"intraClusterEdges": {
|
|
1542
|
+
"type": "integer",
|
|
1543
|
+
"minimum": 0
|
|
1544
|
+
},
|
|
1545
|
+
"crossClusterEdges": {
|
|
1546
|
+
"type": "integer",
|
|
1547
|
+
"minimum": 0
|
|
1548
|
+
}
|
|
1549
|
+
}
|
|
1550
|
+
},
|
|
1551
|
+
"evidenceLowCohesionFile": {
|
|
1552
|
+
"type": "object",
|
|
1553
|
+
"additionalProperties": false,
|
|
1554
|
+
"required": [
|
|
1555
|
+
"path",
|
|
1556
|
+
"lineCount",
|
|
1557
|
+
"topLevelSymbolCount",
|
|
1558
|
+
"clusterCount",
|
|
1559
|
+
"clusters"
|
|
1560
|
+
],
|
|
1561
|
+
"properties": {
|
|
1562
|
+
"path": {
|
|
1563
|
+
"$ref": "#/$defs/repoRelativePath"
|
|
1564
|
+
},
|
|
1565
|
+
"lineCount": {
|
|
1566
|
+
"type": "integer",
|
|
1567
|
+
"minimum": 0
|
|
1568
|
+
},
|
|
1569
|
+
"topLevelSymbolCount": {
|
|
1570
|
+
"type": "integer",
|
|
1571
|
+
"minimum": 0
|
|
1572
|
+
},
|
|
1573
|
+
"clusterCount": {
|
|
1574
|
+
"type": "integer",
|
|
1575
|
+
"minimum": 0
|
|
1576
|
+
},
|
|
1577
|
+
"clusters": {
|
|
1578
|
+
"type": "array",
|
|
1579
|
+
"items": {
|
|
1580
|
+
"$ref": "#/$defs/evidenceLowCohesionCluster"
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
}
|
|
1584
|
+
},
|
|
1585
|
+
"evidenceUnstableTarget": {
|
|
1586
|
+
"type": "object",
|
|
1587
|
+
"additionalProperties": false,
|
|
1588
|
+
"required": [
|
|
1589
|
+
"targetNodeId",
|
|
1590
|
+
"targetInstability",
|
|
1591
|
+
"delta",
|
|
1592
|
+
"edgeCount"
|
|
1593
|
+
],
|
|
1594
|
+
"properties": {
|
|
1595
|
+
"targetNodeId": {
|
|
1596
|
+
"type": "string",
|
|
1597
|
+
"minLength": 1,
|
|
1598
|
+
"pattern": "\\S"
|
|
1599
|
+
},
|
|
1600
|
+
"targetInstability": {
|
|
1601
|
+
"type": "number",
|
|
1602
|
+
"minimum": 0,
|
|
1603
|
+
"maximum": 1
|
|
1604
|
+
},
|
|
1605
|
+
"delta": {
|
|
1606
|
+
"type": "number",
|
|
1607
|
+
"minimum": -1,
|
|
1608
|
+
"maximum": 1
|
|
1609
|
+
},
|
|
1610
|
+
"edgeCount": {
|
|
1611
|
+
"type": "integer",
|
|
1612
|
+
"minimum": 1
|
|
1613
|
+
}
|
|
1614
|
+
}
|
|
1615
|
+
},
|
|
1616
|
+
"evidenceCoChangePair": {
|
|
1617
|
+
"type": "object",
|
|
1618
|
+
"additionalProperties": false,
|
|
1619
|
+
"required": [
|
|
1620
|
+
"pathA",
|
|
1621
|
+
"pathB",
|
|
1622
|
+
"coChangeCount",
|
|
1623
|
+
"jaccard"
|
|
1624
|
+
],
|
|
1625
|
+
"properties": {
|
|
1626
|
+
"pathA": {
|
|
1627
|
+
"$ref": "#/$defs/repoRelativePath"
|
|
1628
|
+
},
|
|
1629
|
+
"pathB": {
|
|
1630
|
+
"$ref": "#/$defs/repoRelativePath"
|
|
1631
|
+
},
|
|
1632
|
+
"coChangeCount": {
|
|
1633
|
+
"type": "integer",
|
|
1634
|
+
"minimum": 1
|
|
1635
|
+
},
|
|
1636
|
+
"jaccard": {
|
|
1637
|
+
"type": "number",
|
|
1638
|
+
"minimum": 0,
|
|
1639
|
+
"maximum": 1
|
|
1640
|
+
}
|
|
1641
|
+
}
|
|
1271
1642
|
}
|
|
1272
1643
|
}
|
|
1273
1644
|
}
|
|
@@ -2,22 +2,35 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://archcontext.dev/schemas/runtime/ref-impact-batch-request.schema.json",
|
|
4
4
|
"title": "RefImpactBatchRequestV1",
|
|
5
|
-
"type": "object",
|
|
6
5
|
"additionalProperties": false,
|
|
7
|
-
"
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"schemaVersion",
|
|
9
|
+
"items"
|
|
10
|
+
],
|
|
8
11
|
"properties": {
|
|
9
|
-
"schemaVersion": {
|
|
12
|
+
"schemaVersion": {
|
|
13
|
+
"const": "archcontext.ref-impact-batch-request/v1"
|
|
14
|
+
},
|
|
10
15
|
"items": {
|
|
11
16
|
"type": "array",
|
|
12
17
|
"items": {
|
|
13
|
-
"type": "object",
|
|
14
18
|
"additionalProperties": false,
|
|
15
|
-
"
|
|
19
|
+
"type": "object",
|
|
20
|
+
"required": [
|
|
21
|
+
"id",
|
|
22
|
+
"paths"
|
|
23
|
+
],
|
|
16
24
|
"properties": {
|
|
17
|
-
"id": {
|
|
25
|
+
"id": {
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
18
28
|
"paths": {
|
|
19
29
|
"type": "array",
|
|
20
|
-
"items": {
|
|
30
|
+
"items": {
|
|
31
|
+
"pattern": "^(?!/)(?![\\s\\S]*(?:^|/)\\.\\.(?:/|(?![\\s\\S])))[^\\\\\u0000]+$",
|
|
32
|
+
"type": "string"
|
|
33
|
+
}
|
|
21
34
|
}
|
|
22
35
|
}
|
|
23
36
|
}
|
|
@@ -2,33 +2,103 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://archcontext.dev/schemas/runtime/ref-impact-batch.schema.json",
|
|
4
4
|
"title": "RefImpactBatchV1",
|
|
5
|
-
"type": "object",
|
|
6
5
|
"additionalProperties": false,
|
|
7
|
-
"
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"schemaVersion",
|
|
9
|
+
"items"
|
|
10
|
+
],
|
|
8
11
|
"properties": {
|
|
9
|
-
"schemaVersion": {
|
|
12
|
+
"schemaVersion": {
|
|
13
|
+
"const": "archcontext.ref-impact-batch/v1"
|
|
14
|
+
},
|
|
10
15
|
"items": {
|
|
16
|
+
"description": "One impact or typed refusal/response-limit status per request item, in request order.",
|
|
11
17
|
"type": "array",
|
|
12
|
-
"description": "One impact or response-limit status per request item, in request order.",
|
|
13
18
|
"items": {
|
|
14
19
|
"oneOf": [
|
|
15
20
|
{
|
|
16
|
-
"type": "object",
|
|
17
21
|
"additionalProperties": false,
|
|
18
|
-
"
|
|
22
|
+
"type": "object",
|
|
23
|
+
"required": [
|
|
24
|
+
"id",
|
|
25
|
+
"impact"
|
|
26
|
+
],
|
|
19
27
|
"properties": {
|
|
20
|
-
"id": {
|
|
21
|
-
|
|
28
|
+
"id": {
|
|
29
|
+
"type": "string"
|
|
30
|
+
},
|
|
31
|
+
"impact": {
|
|
32
|
+
"$ref": "https://archctx.repoharness.com/schemas/runtime/ref-impact.schema.json"
|
|
33
|
+
}
|
|
22
34
|
}
|
|
23
35
|
},
|
|
24
36
|
{
|
|
25
|
-
"type": "object",
|
|
26
37
|
"additionalProperties": false,
|
|
27
|
-
"
|
|
38
|
+
"type": "object",
|
|
39
|
+
"required": [
|
|
40
|
+
"id",
|
|
41
|
+
"status",
|
|
42
|
+
"reasonCode"
|
|
43
|
+
],
|
|
28
44
|
"properties": {
|
|
29
|
-
"id": {
|
|
30
|
-
|
|
31
|
-
|
|
45
|
+
"id": {
|
|
46
|
+
"type": "string"
|
|
47
|
+
},
|
|
48
|
+
"status": {
|
|
49
|
+
"const": "unavailable"
|
|
50
|
+
},
|
|
51
|
+
"reasonCode": {
|
|
52
|
+
"enum": [
|
|
53
|
+
"batch-response-bytes",
|
|
54
|
+
"head-ref-unavailable",
|
|
55
|
+
"base-ref-unavailable",
|
|
56
|
+
"diff-limit-exceeded",
|
|
57
|
+
"model-invalid",
|
|
58
|
+
"path-invalid",
|
|
59
|
+
"worktree-error"
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
"error": {
|
|
63
|
+
"additionalProperties": false,
|
|
64
|
+
"type": "object",
|
|
65
|
+
"required": [
|
|
66
|
+
"code",
|
|
67
|
+
"message",
|
|
68
|
+
"severity",
|
|
69
|
+
"retryable",
|
|
70
|
+
"action"
|
|
71
|
+
],
|
|
72
|
+
"properties": {
|
|
73
|
+
"code": {
|
|
74
|
+
"pattern": "^AC_[A-Z_]+$",
|
|
75
|
+
"type": "string"
|
|
76
|
+
},
|
|
77
|
+
"message": {
|
|
78
|
+
"type": "string"
|
|
79
|
+
},
|
|
80
|
+
"severity": {
|
|
81
|
+
"enum": [
|
|
82
|
+
"notice",
|
|
83
|
+
"warning",
|
|
84
|
+
"error",
|
|
85
|
+
"critical"
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
"retryable": {
|
|
89
|
+
"type": "boolean"
|
|
90
|
+
},
|
|
91
|
+
"action": {
|
|
92
|
+
"type": "string"
|
|
93
|
+
},
|
|
94
|
+
"reasonCode": {
|
|
95
|
+
"type": "string"
|
|
96
|
+
},
|
|
97
|
+
"details": {
|
|
98
|
+
"type": "object"
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
32
102
|
}
|
|
33
103
|
}
|
|
34
104
|
]
|