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.
Files changed (112) hide show
  1. package/fixtures/valid/archctx-capabilities.json +2 -2
  2. package/fixtures/valid/product-version-manifest.json +4 -10
  3. package/package.json +4 -1
  4. package/schemas/repo/refactor-decision.schema.json +283 -37
  5. package/schemas/runtime/archctx-capabilities.schema.json +144 -20
  6. package/schemas/runtime/architecture-debt-delta.schema.json +58 -19
  7. package/schemas/runtime/architecture-debt.schema.json +42 -42
  8. package/schemas/runtime/architecture-event.schema.json +1 -1
  9. package/schemas/runtime/architecture-history.schema.json +354 -0
  10. package/schemas/runtime/capability-dependencies.schema.json +266 -59
  11. package/schemas/runtime/cli-check.schema.json +197 -0
  12. package/schemas/runtime/cli-help.schema.json +28 -0
  13. package/schemas/runtime/dependency-constraint-evaluation.schema.json +67 -68
  14. package/schemas/runtime/docs-anchors.schema.json +250 -67
  15. package/schemas/runtime/doctor-code-facts.schema.json +49 -0
  16. package/schemas/runtime/evidence-binding.schema.json +1 -1
  17. package/schemas/runtime/flow-selector-check.schema.json +179 -46
  18. package/schemas/runtime/hook-debt-checkpoint.schema.json +12 -12
  19. package/schemas/runtime/index-seed.schema.json +56 -0
  20. package/schemas/runtime/path-context.schema.json +108 -0
  21. package/schemas/runtime/product-version-manifest.schema.json +142 -54
  22. package/schemas/runtime/projection-slice.schema.json +34 -34
  23. package/schemas/runtime/recommendation-v3.schema.json +372 -1
  24. package/schemas/runtime/ref-impact-batch-request.schema.json +20 -7
  25. package/schemas/runtime/ref-impact-batch.schema.json +83 -13
  26. package/schemas/runtime/ref-impact.schema.json +68 -61
  27. package/schemas/runtime/refactor-scan-v2.schema.json +434 -0
  28. package/schemas/runtime/refactor-simulate.schema.json +505 -0
  29. package/schemas/runtime/refactor-verify-v2.schema.json +172 -0
  30. package/schemas/runtime/resolve-path.schema.json +69 -0
  31. package/schemas/runtime/runtime-recommendation-show.schema.json +531 -2
  32. package/schemas/runtime/runtime-refactor-scan.schema.json +498 -2
  33. package/schemas/runtime/runtime-verify.schema.json +274 -56
  34. package/schemas/runtime/state-machine-check.schema.json +357 -89
  35. package/schemas/runtime/structural-observation-payload.schema.json +372 -1
  36. package/schemas/runtime/sync-check.schema.json +65 -0
  37. package/src/architecture-debt.ts +125 -38
  38. package/src/architecture-history.ts +168 -42
  39. package/src/architecture.ts +100 -0
  40. package/src/cli-read.ts +228 -0
  41. package/src/docs-anchors.ts +105 -50
  42. package/src/explorer-occurrence-ports.ts +175 -0
  43. package/src/explorer-query-ports.ts +270 -0
  44. package/src/failure.ts +3 -0
  45. package/src/index-seed.ts +42 -0
  46. package/src/index.ts +5 -0
  47. package/src/ledger-records.ts +262 -0
  48. package/src/ledger.ts +27 -566
  49. package/src/ownership-dependencies.ts +115 -5
  50. package/src/ports.ts +6 -541
  51. package/src/product-version.ts +74 -55
  52. package/src/projection-apply-types.ts +216 -0
  53. package/src/projection-apply-validators.ts +355 -0
  54. package/src/projection-capabilities.ts +181 -0
  55. package/src/projection-constants.ts +317 -0
  56. package/src/projection-manifest-types.ts +298 -0
  57. package/src/projection-manifest.ts +12 -299
  58. package/src/projection-recovery-validators.ts +229 -0
  59. package/src/projection-request-validators.ts +326 -0
  60. package/src/projection-types.ts +365 -0
  61. package/src/projection-validation-helpers.ts +15 -0
  62. package/src/projection.ts +7 -1689
  63. package/src/ref-impact.ts +225 -33
  64. package/src/refactor-constants.ts +213 -0
  65. package/src/refactor-decision-validators.ts +350 -0
  66. package/src/refactor-evidence-types.ts +286 -0
  67. package/src/refactor-observation-validators.ts +359 -0
  68. package/src/refactor-resolution-validators.ts +229 -0
  69. package/src/refactor-snapshot-validators.ts +368 -0
  70. package/src/refactor-types.ts +270 -0
  71. package/src/refactor-v2.ts +389 -0
  72. package/src/refactor-validation-helpers.ts +195 -0
  73. package/src/refactor.ts +7 -1849
  74. package/src/review-guards.ts +3 -23
  75. package/src/runtime-verify.ts +87 -0
  76. package/src/schema-kit.ts +183 -0
  77. package/src/schema-registry.ts +73 -0
  78. package/src/schema.ts +0 -4
  79. package/src/state-machine-schemas.ts +192 -0
  80. package/src/state-machine-types.ts +188 -0
  81. package/src/state-machine.ts +9 -189
  82. package/fixtures/boundary/agent-job-expired.json +0 -33
  83. package/fixtures/invalid/adapter-fidelity-reverse-sync.json +0 -9
  84. package/fixtures/invalid/agent-job-direct-mutation.json +0 -32
  85. package/fixtures/invalid/cloud-egress-envelope-private-field.json +0 -12
  86. package/fixtures/invalid/investigation-report-direct-mutation.json +0 -38
  87. package/fixtures/invalid/investigation-report-missing-proposed-delta.json +0 -19
  88. package/fixtures/invalid/notification-event-code-field.json +0 -11
  89. package/fixtures/valid/adapter-fidelity.json +0 -9
  90. package/fixtures/valid/agent-job.json +0 -33
  91. package/fixtures/valid/architecture-candidate-delta-policy.json +0 -45
  92. package/fixtures/valid/architecture-candidate-delta.json +0 -188
  93. package/fixtures/valid/chatgpt-ga-tool.json +0 -9
  94. package/fixtures/valid/cloud-egress-envelope.json +0 -11
  95. package/fixtures/valid/entitlement.json +0 -12
  96. package/fixtures/valid/investigation-report.json +0 -38
  97. package/fixtures/valid/likec4-mapping.json +0 -14
  98. package/fixtures/valid/notification-event.json +0 -10
  99. package/fixtures/valid/notification-provider.json +0 -12
  100. package/fixtures/valid/structurizr-mapping.json +0 -15
  101. package/schemas/cloud/cloud-egress-envelope.schema.json +0 -19
  102. package/schemas/cloud/entitlement.schema.json +0 -24
  103. package/schemas/integrations/adapter-fidelity.schema.json +0 -21
  104. package/schemas/integrations/chatgpt-ga-tool.schema.json +0 -25
  105. package/schemas/integrations/likec4-mapping.schema.json +0 -32
  106. package/schemas/integrations/structurizr-mapping.schema.json +0 -33
  107. package/schemas/runtime/agent-job.schema.json +0 -63
  108. package/schemas/runtime/architecture-candidate-delta-policy.schema.json +0 -129
  109. package/schemas/runtime/architecture-candidate-delta.schema.json +0 -386
  110. package/schemas/runtime/investigation-report.schema.json +0 -119
  111. package/schemas/runtime/notification-event.schema.json +0 -18
  112. package/schemas/runtime/notification-provider.schema.json +0 -26
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": "archcontext.capabilities/v1",
3
- "package": { "name": "archctx", "version": "0.17.1" },
3
+ "package": { "name": "archctx", "version": "0.18.0" },
4
4
  "protocols": {
5
5
  "projectionRequest": "archcontext.projection-request/v1",
6
6
  "projectionResult": "archcontext.projection-result/v3",
@@ -10,5 +10,5 @@
10
10
  "architectureDocs": "archcontext.docs-renderer/v6",
11
11
  "agentContext": "archcontext.agent-context-renderer/v2"
12
12
  },
13
- "features": ["architecture-change-capabilities-v1", "architecture-debt-v1", "architecture-docs-renderer-v2", "architecture-refresh-signal-v1", "capability-dependencies-declared-v1", "capability-dependencies-v1", "changeset-entity-operations-v1", "changeset-ownership-delta-v1", "code-facts-unavailable-error-v1", "docs-anchors-v1", "flow-selector-check-v1", "module-statistics-v1", "native-context-export-v1", "projection-apply-readback-v1", "projection-apply-receipt-v1", "projection-apply-recovery-v1", "projection-apply-replay-restore-v1", "projection-apply-replay-v1", "projection-architecture-debt-v1", "projection-capability-isolation-v1", "projection-change-classification-v2", "projection-check-freshness-v2", "projection-freshness-v2", "projection-manifest-contract-v4", "projection-observed-major-change-acceptance-v1", "projection-orphan-review-v1", "projection-preview-v1", "projection-prior-committed-applies-v1", "projection-protocol-v2", "projection-publish-v1", "projection-slice-v1", "projection-snapshot-v1", "projection-verify-pr-v1", "recommendation-scan-decision-v1", "recommendation-v3", "refactor-assessment-v1", "refactor-observation-evidence-v1", "refactor-resolution-v1", "refactor-scan-limits-v1", "refactor-scan-untracked-count-v1"]
13
+ "features": ["architecture-change-capabilities-v1", "architecture-debt-v1", "architecture-docs-renderer-v2", "architecture-refresh-signal-v1", "capability-dependencies-declared-v1", "capability-dependencies-v1", "changeset-entity-operations-v1", "changeset-ownership-delta-v1", "cli-check-v1", "code-facts-unavailable-error-v1", "deps-calls-matrix-v1", "docs-anchors-v1", "flow-selector-check-v1", "host-ownership-isolation-v1", "index-seed-v1", "module-statistics-v1", "native-context-export-v1", "projection-apply-receipt-v1", "projection-apply-replay-restore-v1", "projection-apply-replay-v1", "projection-architecture-debt-v1", "projection-capability-isolation-v1", "projection-change-classification-v2", "projection-check-freshness-v2", "projection-freshness-v2", "projection-manifest-contract-v4", "projection-observed-major-change-acceptance-v1", "projection-orphan-review-v1", "projection-preview-v1", "projection-prior-committed-applies-v1", "projection-protocol-v2", "projection-publish-v1", "projection-slice-v1", "projection-snapshot-v1", "projection-verify-pr-v1", "recommendation-scan-decision-v1", "recommendation-v3", "refactor-assessment-v1", "refactor-observation-evidence-v1", "refactor-radar-v2", "refactor-resolution-v1", "refactor-scan-limits-v1", "refactor-scan-untracked-count-v1", "refactor-simulate-v1", "refactor-symbol-kill-list-v1"]
14
14
  }
@@ -2,7 +2,7 @@
2
2
  "schemaVersion": "archcontext.product-version-manifest/v1",
3
3
  "product": {
4
4
  "name": "archctx",
5
- "version": "0.17.1",
5
+ "version": "0.18.0",
6
6
  "distribution": "one-package"
7
7
  },
8
8
  "packageManager": "bun@1.4.4",
@@ -12,25 +12,19 @@
12
12
  "surfaces": {
13
13
  "cli": {
14
14
  "packageName": "@archcontext/surfaces",
15
- "version": "0.17.1",
15
+ "version": "0.18.0",
16
16
  "entrypoint": "archctx"
17
17
  },
18
18
  "daemon": {
19
19
  "packageName": "@archcontext/local-runtime",
20
- "version": "0.17.1",
20
+ "version": "0.18.0",
21
21
  "entrypoint": "archctx daemon start",
22
22
  "rpcSchemaVersion": "archcontext.runtime-rpc/v2"
23
- },
24
- "mcp": {
25
- "packageName": "@archcontext/surfaces",
26
- "version": "0.17.1",
27
- "entrypoint": "archctx mcp",
28
- "transport": "stdio"
29
23
  }
30
24
  },
31
25
  "schemas": {
32
26
  "schemaSetVersion": "2026-06-25.al0-ledger",
33
- "contractsPackageVersion": "0.17.1"
27
+ "contractsPackageVersion": "0.18.0"
34
28
  },
35
29
  "runtime": {
36
30
  "localRpc": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "archctx-contracts",
3
- "version": "0.17.1",
3
+ "version": "0.18.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -15,5 +15,8 @@
15
15
  "exports": {
16
16
  ".": "./src/index.ts",
17
17
  "./schemas/*": "./schemas/*"
18
+ },
19
+ "dependencies": {
20
+ "@sinclair/typebox": "^0.34.52"
18
21
  }
19
22
  }
@@ -3,8 +3,8 @@
3
3
  "$id": "https://archctx.repoharness.com/schemas/repo/refactor-decision.schema.json",
4
4
  "title": "RefactorDecision",
5
5
  "description": "The latest human decision for one refactor recommendation generation, stored at .archcontext/refactor-decisions/<recommendationId>.json (ADR-0046). Identity that needs the core hashers (recommendationId from fingerprint and regressesFrom, the namespace-scoped subject selector) is checked by the runtime reader.",
6
- "type": "object",
7
6
  "additionalProperties": false,
7
+ "type": "object",
8
8
  "required": [
9
9
  "schemaVersion",
10
10
  "namespace",
@@ -29,16 +29,16 @@
29
29
  "const": "archcontext.refactor-decision/v1"
30
30
  },
31
31
  "namespace": {
32
- "type": "string",
33
- "pattern": "^[a-z][a-z0-9]*(\\.[a-z0-9][a-z0-9-]*)+$"
32
+ "pattern": "^[a-z][a-z0-9]*(\\.[a-z0-9][a-z0-9-]*)+$",
33
+ "type": "string"
34
34
  },
35
35
  "recommendationId": {
36
- "type": "string",
37
- "pattern": "^recommendation\\.[a-f0-9]{16}$"
36
+ "pattern": "^recommendation\\.[a-f0-9]{16}$",
37
+ "type": "string"
38
38
  },
39
39
  "fingerprint": {
40
- "type": "string",
41
- "pattern": "^sha256:[a-f0-9]{64}$"
40
+ "pattern": "^sha256:[a-f0-9]{64}$",
41
+ "type": "string"
42
42
  },
43
43
  "fingerprintSchemaVersion": {
44
44
  "const": "archcontext.recommendation-fingerprint/v3"
@@ -58,20 +58,31 @@
58
58
  {
59
59
  "type": "string",
60
60
  "enum": [
61
+ "co-change-coupling",
62
+ "component-cycle",
61
63
  "cycle",
64
+ "dead-public-export",
62
65
  "direction-violation",
66
+ "entrypoint-bypass",
63
67
  "evidence-gap",
68
+ "file-cycle",
69
+ "god-file",
70
+ "low-cohesion-god-file",
64
71
  "ownership-ambiguous",
72
+ "purity-violation",
65
73
  "residual-cycle",
74
+ "shotgun-surgery-hotspot",
75
+ "undeclared-dependency",
66
76
  "undeclared-footprint",
67
- "unowned-paths"
77
+ "unowned-paths",
78
+ "unstable-dependency"
68
79
  ]
69
80
  }
70
81
  ]
71
82
  },
72
83
  "subject": {
73
- "type": "object",
74
84
  "additionalProperties": false,
85
+ "type": "object",
75
86
  "required": [
76
87
  "selectorKind",
77
88
  "stableKey",
@@ -86,29 +97,29 @@
86
97
  ]
87
98
  },
88
99
  "stableKey": {
89
- "type": "string",
90
100
  "minLength": 1,
91
101
  "maxLength": 512,
92
- "pattern": "^\\S(?:[^\\u0000-\\u001f\\u007f]*\\S)?$"
102
+ "pattern": "^\\S(?:[^\\u0000-\\u001f\\u007f]*\\S)?$",
103
+ "type": "string"
93
104
  },
94
105
  "subjectSelectorId": {
95
- "type": "string",
96
- "pattern": "^subject\\.(node|repository)\\.[a-f0-9]{16}$"
106
+ "pattern": "^subject\\.(node|repository)\\.[a-f0-9]{16}$",
107
+ "type": "string"
97
108
  }
98
109
  }
99
110
  },
100
111
  "affectedNodeIds": {
101
- "type": "array",
102
- "maxItems": 32,
103
112
  "uniqueItems": true,
113
+ "maxItems": 32,
114
+ "type": "array",
104
115
  "items": {
105
- "type": "string",
106
- "minLength": 1
116
+ "minLength": 1,
117
+ "type": "string"
107
118
  }
108
119
  },
109
120
  "affectedNodeCount": {
110
- "type": "integer",
111
- "minimum": 0
121
+ "minimum": 0,
122
+ "type": "integer"
112
123
  },
113
124
  "regressesFrom": {
114
125
  "anyOf": [
@@ -116,8 +127,8 @@
116
127
  "type": "null"
117
128
  },
118
129
  {
119
- "type": "string",
120
- "pattern": "^recommendation\\.[a-f0-9]{16}$"
130
+ "pattern": "^recommendation\\.[a-f0-9]{16}$",
131
+ "type": "string"
121
132
  }
122
133
  ]
123
134
  },
@@ -133,9 +144,9 @@
133
144
  ]
134
145
  },
135
146
  "observationScopeDigest": {
136
- "type": "string",
137
147
  "pattern": "^sha256:[a-f0-9]{64}$",
138
- "description": "Scope of the measured observation metrics. Absent for repository baselines."
148
+ "description": "Scope of the measured observation metrics. Absent for repository baselines.",
149
+ "type": "string"
139
150
  },
140
151
  "observationMetrics": {
141
152
  "anyOf": [
@@ -158,14 +169,14 @@
158
169
  ]
159
170
  },
160
171
  "reason": {
161
- "type": "string",
162
172
  "minLength": 1,
163
173
  "maxLength": 1024,
164
- "pattern": "^\\S(?:[^\\u0000-\\u001f\\u007f]*\\S)?$"
174
+ "pattern": "^\\S(?:[^\\u0000-\\u001f\\u007f]*\\S)?$",
175
+ "type": "string"
165
176
  },
166
177
  "actor": {
167
- "type": "object",
168
178
  "additionalProperties": false,
179
+ "type": "object",
169
180
  "required": [
170
181
  "kind",
171
182
  "id"
@@ -185,20 +196,20 @@
185
196
  ]
186
197
  },
187
198
  "id": {
188
- "type": "string",
189
199
  "minLength": 1,
190
200
  "maxLength": 128,
191
- "pattern": "^\\S(?:[^\\u0000-\\u001f\\u007f]*\\S)?$"
201
+ "pattern": "^\\S(?:[^\\u0000-\\u001f\\u007f]*\\S)?$",
202
+ "type": "string"
192
203
  }
193
204
  }
194
205
  },
195
206
  "decidedAt": {
196
- "type": "string",
197
- "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,9})?(Z|[+-]\\d{2}:\\d{2})$"
207
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,9})?(Z|[+-]\\d{2}:\\d{2})$",
208
+ "type": "string"
198
209
  },
199
210
  "provenance": {
200
- "type": "object",
201
211
  "additionalProperties": false,
212
+ "type": "object",
202
213
  "required": [
203
214
  "headSha",
204
215
  "assessmentDigest",
@@ -206,17 +217,252 @@
206
217
  ],
207
218
  "properties": {
208
219
  "headSha": {
209
- "type": "string",
210
- "pattern": "^[a-f0-9]{40}$"
220
+ "pattern": "^[a-f0-9]{40}$",
221
+ "type": "string"
211
222
  },
212
223
  "assessmentDigest": {
213
- "type": "string",
214
- "pattern": "^sha256:[a-f0-9]{64}$"
224
+ "pattern": "^sha256:[a-f0-9]{64}$",
225
+ "type": "string"
215
226
  },
216
227
  "baselineSnapshotDigest": {
217
- "type": "string",
218
- "pattern": "^sha256:[a-f0-9]{64}$"
228
+ "pattern": "^sha256:[a-f0-9]{64}$",
229
+ "type": "string"
230
+ }
231
+ }
232
+ },
233
+ "snapshotDigest": {
234
+ "pattern": "^sha256:[a-f0-9]{64}$",
235
+ "type": "string"
236
+ },
237
+ "evidenceDigest": {
238
+ "pattern": "^sha256:[a-f0-9]{64}$",
239
+ "type": "string"
240
+ },
241
+ "resolutionDigest": {
242
+ "pattern": "^sha256:[a-f0-9]{64}$",
243
+ "type": "string"
244
+ },
245
+ "scope": {
246
+ "oneOf": [
247
+ {
248
+ "additionalProperties": false,
249
+ "type": "object",
250
+ "required": [
251
+ "kind"
252
+ ],
253
+ "properties": {
254
+ "kind": {
255
+ "const": "repository"
256
+ }
257
+ }
258
+ },
259
+ {
260
+ "additionalProperties": false,
261
+ "type": "object",
262
+ "required": [
263
+ "kind",
264
+ "nodeId"
265
+ ],
266
+ "properties": {
267
+ "kind": {
268
+ "const": "node"
269
+ },
270
+ "nodeId": {
271
+ "minLength": 1,
272
+ "type": "string"
273
+ }
274
+ }
275
+ },
276
+ {
277
+ "additionalProperties": false,
278
+ "type": "object",
279
+ "required": [
280
+ "kind",
281
+ "paths"
282
+ ],
283
+ "properties": {
284
+ "kind": {
285
+ "const": "paths"
286
+ },
287
+ "paths": {
288
+ "uniqueItems": true,
289
+ "minItems": 1,
290
+ "type": "array",
291
+ "items": {
292
+ "type": "string",
293
+ "minLength": 1,
294
+ "not": {
295
+ "anyOf": [
296
+ {
297
+ "pattern": "^/"
298
+ },
299
+ {
300
+ "pattern": "\\\\"
301
+ },
302
+ {
303
+ "pattern": "(^|/)\\.\\.(/|$)"
304
+ }
305
+ ]
306
+ }
307
+ }
308
+ }
309
+ }
219
310
  }
311
+ ]
312
+ },
313
+ "importNodeLimit": {
314
+ "minimum": 1,
315
+ "type": "integer"
316
+ },
317
+ "targetOutcomes": {
318
+ "type": "array",
319
+ "items": {
320
+ "additionalProperties": false,
321
+ "type": "object",
322
+ "required": [
323
+ "outcomeId",
324
+ "metric",
325
+ "subjectSelectorId",
326
+ "nodeId",
327
+ "operator",
328
+ "value",
329
+ "required"
330
+ ],
331
+ "properties": {
332
+ "outcomeId": {
333
+ "minLength": 1,
334
+ "type": "string"
335
+ },
336
+ "metric": {
337
+ "minLength": 1,
338
+ "type": "string"
339
+ },
340
+ "subjectSelectorId": {
341
+ "minLength": 1,
342
+ "type": "string"
343
+ },
344
+ "nodeId": {
345
+ "type": [
346
+ "string",
347
+ "null"
348
+ ]
349
+ },
350
+ "memberNodeIds": {
351
+ "uniqueItems": true,
352
+ "minItems": 2,
353
+ "type": "array",
354
+ "items": {
355
+ "minLength": 1,
356
+ "type": "string"
357
+ }
358
+ },
359
+ "operator": {
360
+ "type": "string",
361
+ "enum": [
362
+ "absent",
363
+ "equals",
364
+ "greater_than",
365
+ "less_than",
366
+ "present"
367
+ ]
368
+ },
369
+ "value": {
370
+ "anyOf": [
371
+ {
372
+ "type": "number"
373
+ },
374
+ {
375
+ "type": "null"
376
+ }
377
+ ]
378
+ },
379
+ "required": {
380
+ "type": "boolean"
381
+ }
382
+ }
383
+ }
384
+ },
385
+ "killList": {
386
+ "type": "array",
387
+ "items": {
388
+ "oneOf": [
389
+ {
390
+ "additionalProperties": false,
391
+ "type": "object",
392
+ "required": [
393
+ "kind",
394
+ "target",
395
+ "required"
396
+ ],
397
+ "properties": {
398
+ "kind": {
399
+ "const": "path"
400
+ },
401
+ "target": {
402
+ "type": "string",
403
+ "minLength": 1,
404
+ "not": {
405
+ "anyOf": [
406
+ {
407
+ "pattern": "^/"
408
+ },
409
+ {
410
+ "pattern": "\\\\"
411
+ },
412
+ {
413
+ "pattern": "(^|/)\\.\\.(/|$)"
414
+ }
415
+ ]
416
+ }
417
+ },
418
+ "required": {
419
+ "type": "boolean"
420
+ }
421
+ }
422
+ },
423
+ {
424
+ "additionalProperties": false,
425
+ "type": "object",
426
+ "required": [
427
+ "kind",
428
+ "target",
429
+ "required"
430
+ ],
431
+ "properties": {
432
+ "kind": {
433
+ "const": "relation"
434
+ },
435
+ "target": {
436
+ "minLength": 1,
437
+ "type": "string"
438
+ },
439
+ "required": {
440
+ "type": "boolean"
441
+ }
442
+ }
443
+ },
444
+ {
445
+ "additionalProperties": false,
446
+ "type": "object",
447
+ "required": [
448
+ "kind",
449
+ "target",
450
+ "required"
451
+ ],
452
+ "properties": {
453
+ "kind": {
454
+ "const": "symbol"
455
+ },
456
+ "target": {
457
+ "pattern": "^(?!/)(?!.*(?:^|/)\\.\\.(?:/|$))[^#\\s\\\\\\u0000-\\u001f\\u007f]+#[^\\s\\u0000-\\u001f\\u007f]+$",
458
+ "type": "string"
459
+ },
460
+ "required": {
461
+ "type": "boolean"
462
+ }
463
+ }
464
+ }
465
+ ]
220
466
  }
221
467
  }
222
468
  }