@openplanr/protocol 0.5.0 → 0.6.1
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/README.md +12 -0
- package/package.json +5 -1
- package/registries/commands.json +6 -6
- package/registries/diagram-authoring-capabilities.json +660 -0
- package/registries/skills.json +6 -6
- package/schemas/v1.13.0/diagram-authoring-bundle.schema.json +1079 -0
- package/schemas/v1.13.0/diagram-authoring-capabilities.schema.json +211 -0
- package/schemas/v1.13.0/diagram-change-proposal.schema.json +3296 -0
- package/schemas/v1.13.0/diagram-document.schema.json +435 -0
- package/schemas/v1.13.0/diagram-edit-transaction.schema.json +3193 -0
- package/schemas/v1.13.0/diagram-fidelity-report.schema.json +157 -0
- package/schemas/v1.13.0/diagram-manifest.schema.json +311 -0
- package/schemas/v1.13.0/diagram-presentation.schema.json +395 -0
- package/schemas/v1.13.0/diagram-publication-state.schema.json +107 -0
- package/schemas/v1.13.0/diagram-source-map.schema.json +170 -0
- package/src/browser-contracts.d.mts +2 -1
- package/src/browser-contracts.mjs +7 -1
- package/src/contracts.mjs +55 -11
- package/src/diagram-authoring-contracts.d.mts +112 -0
- package/src/diagram-authoring-contracts.mjs +668 -0
- package/src/diagram-contracts.d.mts +1 -1
- package/src/diagram-contracts.mjs +7 -4
- package/src/generated/canonical-registries.mjs +12 -12
- package/src/generated/legacy-diagram-schema.mjs +767 -0
- package/src/index.d.mts +1 -0
- package/src/index.mjs +2 -0
package/README.md
CHANGED
|
@@ -35,6 +35,18 @@ report, fidelity report, grammar registry, and semantic-pattern registry.
|
|
|
35
35
|
`diagrams/{slug}/{slug}.planr-diagram.json` path, while grammar fixture and
|
|
36
36
|
reference paths remain package-relative for private and projected consumers.
|
|
37
37
|
|
|
38
|
+
## Diagram authoring contracts
|
|
39
|
+
|
|
40
|
+
Protocol 1.13 adds portable semantic/presentation bundles, typed edit
|
|
41
|
+
transactions, source correspondence, fidelity, proposals, publication references
|
|
42
|
+
and an M1 capability catalog. Import the dependency-free validators from
|
|
43
|
+
`@openplanr/protocol/diagram-authoring-contracts`. The existing diagram URL helper
|
|
44
|
+
retains its Protocol 1.6 default; request `{ protocolVersion: '1.13.0' }` for the
|
|
45
|
+
new contracts. Validation does not apply edits or grant hosted access.
|
|
46
|
+
|
|
47
|
+
See the [authoring contract guide](../../docs/diagrams/authoring-contracts.md) for
|
|
48
|
+
content boundaries, digest coverage and legacy compatibility.
|
|
49
|
+
|
|
38
50
|
## Design document contract
|
|
39
51
|
|
|
40
52
|
The additive `schemas/v1.9.0/design-document.schema.json` defines stable design,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openplanr/protocol",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Canonical OpenPlanr schemas, registries, typed errors, and portable contract validation",
|
|
6
6
|
"license": "MIT",
|
|
@@ -83,6 +83,10 @@
|
|
|
83
83
|
"./enterprise-contracts": {
|
|
84
84
|
"types": "./src/enterprise-contracts.d.mts",
|
|
85
85
|
"import": "./src/enterprise-contracts.mjs"
|
|
86
|
+
},
|
|
87
|
+
"./diagram-authoring-contracts": {
|
|
88
|
+
"types": "./src/diagram-authoring-contracts.d.mts",
|
|
89
|
+
"import": "./src/diagram-authoring-contracts.mjs"
|
|
86
90
|
}
|
|
87
91
|
},
|
|
88
92
|
"files": [
|
package/registries/commands.json
CHANGED
|
@@ -293,7 +293,7 @@
|
|
|
293
293
|
"ownerPackage": "openplanr",
|
|
294
294
|
"source": {
|
|
295
295
|
"path": "packages/cli/src/cli/commands/diagram/index.ts",
|
|
296
|
-
"digest": "sha256:
|
|
296
|
+
"digest": "sha256:67aeefb682ad56cf3429a38bd98c913261cea3dbaeaf5e31ab11d873bce4b02a"
|
|
297
297
|
},
|
|
298
298
|
"authorityClass": "workflow",
|
|
299
299
|
"machineJson": true,
|
|
@@ -377,7 +377,7 @@
|
|
|
377
377
|
"ownerPackage": "openplanr",
|
|
378
378
|
"source": {
|
|
379
379
|
"path": "docs/generated/utility-command-catalog.json",
|
|
380
|
-
"digest": "sha256:
|
|
380
|
+
"digest": "sha256:02c19f6bd7d805e1d101c020f64270b17c785b8bffb36184da57a20755b21960"
|
|
381
381
|
},
|
|
382
382
|
"authorityClass": "workflow",
|
|
383
383
|
"machineJson": false,
|
|
@@ -482,7 +482,7 @@
|
|
|
482
482
|
"ownerPackage": "openplanr",
|
|
483
483
|
"source": {
|
|
484
484
|
"path": "packages/cli/src/cli/commands/init-deterministic.ts",
|
|
485
|
-
"digest": "sha256:
|
|
485
|
+
"digest": "sha256:7bd117fac77363d2233cf91e8ae280cff7da04b6671ad4e0b3bc39af07701747"
|
|
486
486
|
},
|
|
487
487
|
"authorityClass": "workflow",
|
|
488
488
|
"machineJson": false,
|
|
@@ -566,7 +566,7 @@
|
|
|
566
566
|
"ownerPackage": "openplanr",
|
|
567
567
|
"source": {
|
|
568
568
|
"path": "docs/generated/utility-command-catalog.json",
|
|
569
|
-
"digest": "sha256:
|
|
569
|
+
"digest": "sha256:02c19f6bd7d805e1d101c020f64270b17c785b8bffb36184da57a20755b21960"
|
|
570
570
|
},
|
|
571
571
|
"authorityClass": "workflow",
|
|
572
572
|
"machineJson": true,
|
|
@@ -965,7 +965,7 @@
|
|
|
965
965
|
"ownerPackage": "openplanr",
|
|
966
966
|
"source": {
|
|
967
967
|
"path": "packages/cli/src/cli/commands/upgrade.ts",
|
|
968
|
-
"digest": "sha256:
|
|
968
|
+
"digest": "sha256:9b644add6535f982df30767f511404592edda7e813fbfcf93b167fcc38ef00fe"
|
|
969
969
|
},
|
|
970
970
|
"authorityClass": "workflow",
|
|
971
971
|
"machineJson": false,
|
|
@@ -1948,5 +1948,5 @@
|
|
|
1948
1948
|
]
|
|
1949
1949
|
}
|
|
1950
1950
|
],
|
|
1951
|
-
"documentDigest": "sha256:
|
|
1951
|
+
"documentDigest": "sha256:e7321cb2a962c7fe7906034eb3e0c09bbf6e85de52b779faa44a50d5584cff4d"
|
|
1952
1952
|
}
|