@openplanr/protocol 0.7.3 → 0.8.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/README.md +13 -0
- package/package.json +5 -1
- package/registries/commands.json +2 -2
- package/registries/skills.json +4 -4
- package/schemas/v1.15.0/diagram-review-bundle.schema.json +1280 -0
- package/schemas/v1.15.0/diagram-review-feedback.schema.json +157 -0
- package/schemas/v1.15.0/diagram-review-workspace.schema.json +108 -0
- package/schemas/v1.15.0/diagram-workspace-create.schema.json +170 -0
- package/schemas/v1.15.0/diagram-workspace-event.schema.json +97 -0
- package/schemas/v1.15.0/diagram-workspace-revision.schema.json +56 -0
- package/src/browser-contracts.d.mts +10 -1
- package/src/browser-contracts.mjs +36 -0
- package/src/contracts.d.mts +1 -0
- package/src/contracts.mjs +16 -3
- package/src/diagram-review-contracts.d.mts +73 -0
- package/src/diagram-review-contracts.mjs +250 -0
- package/src/generated/canonical-registries.mjs +6 -6
- package/src/index.d.mts +1 -0
- package/src/index.mjs +3 -0
package/README.md
CHANGED
|
@@ -57,6 +57,19 @@ and adds an `onPrimary` text colour to both palettes. The artifact package
|
|
|
57
57
|
generates its review theme CSS and JSON from it. The preserved registry keeps its
|
|
58
58
|
original values.
|
|
59
59
|
|
|
60
|
+
## Diagram review contracts
|
|
61
|
+
|
|
62
|
+
Protocol 1.15 adds the browser-safe `@openplanr/protocol/diagram-review-contracts`
|
|
63
|
+
export with diagram review bundle and feedback validators, workspace record
|
|
64
|
+
validation and TypeScript types. Its additive `schemas/v1.15.0/` family contains
|
|
65
|
+
`diagram-review-bundle.schema.json`, `diagram-review-feedback.schema.json`,
|
|
66
|
+
`diagram-review-workspace.schema.json`, `diagram-workspace-create.schema.json`,
|
|
67
|
+
`diagram-workspace-revision.schema.json` and `diagram-workspace-event.schema.json`.
|
|
68
|
+
These contracts use payload `schemaVersion: "1.0.0"`. Review bundles preserve the
|
|
69
|
+
published scene and revision identity without original source bytes or private
|
|
70
|
+
provenance; feedback remains bound to that revision. Validation grants no hosted
|
|
71
|
+
access and does not edit or publish diagrams. Earlier schema families are unchanged.
|
|
72
|
+
|
|
60
73
|
## Design document contract
|
|
61
74
|
|
|
62
75
|
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.8.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Canonical OpenPlanr schemas, registries, typed errors, and portable contract validation",
|
|
6
6
|
"license": "MIT",
|
|
@@ -87,6 +87,10 @@
|
|
|
87
87
|
"./diagram-authoring-contracts": {
|
|
88
88
|
"types": "./src/diagram-authoring-contracts.d.mts",
|
|
89
89
|
"import": "./src/diagram-authoring-contracts.mjs"
|
|
90
|
+
},
|
|
91
|
+
"./diagram-review-contracts": {
|
|
92
|
+
"types": "./src/diagram-review-contracts.d.mts",
|
|
93
|
+
"import": "./src/diagram-review-contracts.mjs"
|
|
90
94
|
}
|
|
91
95
|
},
|
|
92
96
|
"files": [
|
package/registries/commands.json
CHANGED
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
"ownerPackage": "openplanr",
|
|
189
189
|
"source": {
|
|
190
190
|
"path": "packages/cli/src/cli/commands/artifact.ts",
|
|
191
|
-
"digest": "sha256:
|
|
191
|
+
"digest": "sha256:628b64e8a1efda1f0e4899cdc3144c256dce5ce4bcff3c1f6d9a25c3d9a4cbe7"
|
|
192
192
|
},
|
|
193
193
|
"authorityClass": "workflow",
|
|
194
194
|
"machineJson": false,
|
|
@@ -1948,5 +1948,5 @@
|
|
|
1948
1948
|
]
|
|
1949
1949
|
}
|
|
1950
1950
|
],
|
|
1951
|
-
"documentDigest": "sha256:
|
|
1951
|
+
"documentDigest": "sha256:9f34ed8942c28ac6d0cd4bfd3234c50ea8a4d72954a89df6e3596f3cc8e56be2"
|
|
1952
1952
|
}
|
package/registries/skills.json
CHANGED
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
{
|
|
11
11
|
"skillId": "planr-artifact",
|
|
12
12
|
"skillVersion": "1.0.0",
|
|
13
|
-
"description": "Open, share, import, or export an OpenPlanr HTML artifact review. Use when feedback must move between a local artifact and its review board.",
|
|
13
|
+
"description": "Open, share, import, or export an OpenPlanr diagram, design, or HTML artifact review. Use when feedback must move between a local artifact and its review board.",
|
|
14
14
|
"lifecycle": "active",
|
|
15
15
|
"authorityClass": "read-only-view",
|
|
16
16
|
"source": "skills/planr-artifact/openplanr.skill.json",
|
|
17
|
-
"sourceDigest": "sha256:
|
|
17
|
+
"sourceDigest": "sha256:2df9ace1397aedb3beaec79f822f16aac84cdf7f7ffe3cccabf3cd10bffbb352",
|
|
18
18
|
"triggerPolicy": {
|
|
19
19
|
"include": [
|
|
20
20
|
"Open or share an HTML artifact review",
|
|
@@ -807,7 +807,7 @@
|
|
|
807
807
|
"lifecycle": "active",
|
|
808
808
|
"authorityClass": "artifact-authoring",
|
|
809
809
|
"source": "skills/planr-diagram/openplanr.skill.json",
|
|
810
|
-
"sourceDigest": "sha256:
|
|
810
|
+
"sourceDigest": "sha256:806f3c53d56199e00cfa19d27eaf9a8a0ca397692de46948313b7da1f728dd47",
|
|
811
811
|
"triggerPolicy": {
|
|
812
812
|
"include": [
|
|
813
813
|
"Create a professional diagram from English intent or Mermaid",
|
|
@@ -1664,5 +1664,5 @@
|
|
|
1664
1664
|
}
|
|
1665
1665
|
],
|
|
1666
1666
|
"compatibilityAliases": [],
|
|
1667
|
-
"documentDigest": "sha256:
|
|
1667
|
+
"documentDigest": "sha256:e3f61d71a05a268294055de033e2ec2d44bfb7b05a95a18b6607ded3eb61e37b"
|
|
1668
1668
|
}
|