@openplanr/protocol 0.7.3 → 0.9.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 +22 -0
- package/package.json +21 -1
- package/registries/commands.json +11 -11
- package/registries/skills.json +89 -11
- package/registry/v1.17.0/commands.json +88 -0
- 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/schemas/v1.16.0/artifact-envelope.schema.json +408 -0
- package/schemas/v1.16.0/design-review-bundle.schema.json +590 -0
- package/schemas/v1.17.0/artifact-paste-v2.schema.json +52 -0
- package/schemas/v1.17.0/artifact-room-append-v3.schema.json +159 -0
- package/schemas/v1.17.0/artifact-room-create-v3.schema.json +111 -0
- package/schemas/v1.17.0/artifact-room-descriptor-v3.schema.json +92 -0
- package/schemas/v1.17.0/artifact-room-event-v3.schema.json +130 -0
- package/schemas/v1.17.0/artifact-room-management-v3.schema.json +47 -0
- package/schemas/v1.17.0/artifact-room-read-page-v3.schema.json +308 -0
- package/schemas/v1.17.0/company-resource-manifest.schema.json +128 -0
- package/schemas/v1.17.0/company-resource-upload-prepare.schema.json +164 -0
- package/schemas/v1.17.0/company-resource-upload-receipt.schema.json +63 -0
- package/schemas/v1.17.0/company-resource-upload-status.schema.json +123 -0
- package/schemas/v1.17.0/diagram-authoring-bundle.schema.json +1117 -0
- package/schemas/v1.17.0/diagram-edit-transaction.schema.json +3295 -0
- package/schemas/v1.17.0/diagram-presentation.schema.json +37 -0
- package/schemas/v1.17.0/diagram-review-bundle.schema.json +2439 -0
- package/schemas/v1.17.0/encrypted-resource-manifest.schema.json +131 -0
- package/schemas/v1.17.0/encrypted-upload-commit.schema.json +38 -0
- package/schemas/v1.17.0/encrypted-upload-prepare.schema.json +234 -0
- package/schemas/v1.17.0/encrypted-upload-receipt.schema.json +54 -0
- package/schemas/v1.17.0/encrypted-upload-status.schema.json +129 -0
- package/schemas/v1.17.0/encrypted-workspace-event-v2.schema.json +79 -0
- package/schemas/v1.17.0/encrypted-workspace-v2.schema.json +91 -0
- package/schemas/v1.17.0/enterprise-agent-handoff.schema.json +985 -0
- package/schemas/v1.17.0/enterprise-artifact-revision.schema.json +115 -0
- package/schemas/v1.17.0/enterprise-change-proposal.schema.json +379 -0
- package/schemas/v1.17.0/enterprise-evidence-reference.schema.json +159 -0
- package/schemas/v1.17.0/enterprise-review-thread.schema.json +298 -0
- package/schemas/v1.17.0/enterprise-sync-state.schema.json +189 -0
- package/schemas/v1.17.0/preview-bridge-message.schema.json +197 -0
- package/schemas/v1.17.0/resource-catalog.schema.json +145 -0
- package/schemas/v1.17.0/sharing-crypto-aad.schema.json +36 -0
- package/schemas/v1.17.0/workspace-management-v2.schema.json +45 -0
- package/schemas/v1.17.0/workspace-rotation-v2.schema.json +61 -0
- package/src/bounded-json-data.d.mts +2 -0
- package/src/bounded-json-data.mjs +56 -0
- package/src/browser-contracts.d.mts +23 -1
- package/src/browser-contracts.mjs +52 -0
- package/src/canonical-json.mjs +17 -16
- package/src/contracts.d.mts +1 -0
- package/src/contracts.mjs +106 -5
- package/src/diagram-authoring-contracts.d.mts +12 -0
- package/src/diagram-authoring-contracts.mjs +174 -1
- package/src/diagram-review-contracts.d.mts +73 -0
- package/src/diagram-review-contracts.mjs +250 -0
- package/src/enterprise-contract-validation.d.mts +44 -0
- package/src/enterprise-contract-validation.mjs +279 -0
- package/src/enterprise-contracts.mjs +25 -231
- package/src/enterprise-resource-contracts.d.mts +72 -0
- package/src/enterprise-resource-contracts.mjs +202 -0
- package/src/generated/artifact-envelope-metadata.mjs +769 -0
- package/src/generated/canonical-registries.mjs +100 -22
- package/src/index.d.mts +22 -0
- package/src/index.mjs +26 -0
- package/src/large-object-contracts.d.mts +107 -0
- package/src/large-object-contracts.mjs +473 -0
- package/src/large-object-limits.d.mts +16 -0
- package/src/large-object-limits.mjs +17 -0
- package/src/registries.mjs +1 -0
- package/src/review-experience-contracts.d.mts +1 -0
- package/src/review-experience-contracts.mjs +25 -4
- package/src/sharing-security-contracts.d.mts +63 -0
- package/src/sharing-security-contracts.mjs +403 -0
- package/src/studio-presentation-contracts.d.mts +92 -0
- package/src/studio-presentation-contracts.mjs +287 -0
|
@@ -1339,7 +1339,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
1339
1339
|
"ownerPackage": "openplanr",
|
|
1340
1340
|
"source": {
|
|
1341
1341
|
"path": "packages/cli/src/cli/commands/artifact.ts",
|
|
1342
|
-
"digest": "sha256:
|
|
1342
|
+
"digest": "sha256:e1a9f83fb437e9199599518cc23e9a2a30b9498c45fa4e402fa02067ae9cf65d"
|
|
1343
1343
|
},
|
|
1344
1344
|
"authorityClass": "workflow",
|
|
1345
1345
|
"machineJson": false,
|
|
@@ -1423,7 +1423,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
1423
1423
|
"ownerPackage": "openplanr",
|
|
1424
1424
|
"source": {
|
|
1425
1425
|
"path": "packages/cli/src/cli/commands/context.ts",
|
|
1426
|
-
"digest": "sha256:
|
|
1426
|
+
"digest": "sha256:0ef9f52a9ca5b36ef79dafce4b762113e590bd8bc872c4b9d77cf61d65eabe93"
|
|
1427
1427
|
},
|
|
1428
1428
|
"authorityClass": "workflow",
|
|
1429
1429
|
"machineJson": false,
|
|
@@ -1465,7 +1465,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
1465
1465
|
"ownerPackage": "openplanr",
|
|
1466
1466
|
"source": {
|
|
1467
1467
|
"path": "packages/cli/src/cli/commands/doctor.ts",
|
|
1468
|
-
"digest": "sha256:
|
|
1468
|
+
"digest": "sha256:11f80ff04cf85dd456de4d487581b9ac1f54d6e84a58aadc75e36ae0250f9793"
|
|
1469
1469
|
},
|
|
1470
1470
|
"authorityClass": "workflow",
|
|
1471
1471
|
"machineJson": false,
|
|
@@ -1528,7 +1528,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
1528
1528
|
"ownerPackage": "openplanr",
|
|
1529
1529
|
"source": {
|
|
1530
1530
|
"path": "docs/generated/utility-command-catalog.json",
|
|
1531
|
-
"digest": "sha256:
|
|
1531
|
+
"digest": "sha256:af86a0898b4fe76e08a4078c7afe8f70094efdcd63e642a0d61ec02709d680b0"
|
|
1532
1532
|
},
|
|
1533
1533
|
"authorityClass": "workflow",
|
|
1534
1534
|
"machineJson": false,
|
|
@@ -1549,7 +1549,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
1549
1549
|
"ownerPackage": "openplanr",
|
|
1550
1550
|
"source": {
|
|
1551
1551
|
"path": "packages/cli/src/cli/commands/export.ts",
|
|
1552
|
-
"digest": "sha256:
|
|
1552
|
+
"digest": "sha256:a9a71ab6ebb0e9c4a91644a39dd1997bceb33679122f65ba969bf582a1f8a128"
|
|
1553
1553
|
},
|
|
1554
1554
|
"authorityClass": "workflow",
|
|
1555
1555
|
"machineJson": false,
|
|
@@ -1717,7 +1717,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
1717
1717
|
"ownerPackage": "openplanr",
|
|
1718
1718
|
"source": {
|
|
1719
1719
|
"path": "docs/generated/utility-command-catalog.json",
|
|
1720
|
-
"digest": "sha256:
|
|
1720
|
+
"digest": "sha256:af86a0898b4fe76e08a4078c7afe8f70094efdcd63e642a0d61ec02709d680b0"
|
|
1721
1721
|
},
|
|
1722
1722
|
"authorityClass": "workflow",
|
|
1723
1723
|
"machineJson": true,
|
|
@@ -1885,7 +1885,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
1885
1885
|
"ownerPackage": "openplanr",
|
|
1886
1886
|
"source": {
|
|
1887
1887
|
"path": "packages/cli/src/cli/commands/runtime.ts",
|
|
1888
|
-
"digest": "sha256:
|
|
1888
|
+
"digest": "sha256:b510add58939a0ca12d96de9f26452843f34c28caf5893881935de0f242de1f3"
|
|
1889
1889
|
},
|
|
1890
1890
|
"authorityClass": "workflow",
|
|
1891
1891
|
"machineJson": false,
|
|
@@ -1927,7 +1927,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
1927
1927
|
"ownerPackage": "openplanr",
|
|
1928
1928
|
"source": {
|
|
1929
1929
|
"path": "packages/cli/src/cli/commands/setup.ts",
|
|
1930
|
-
"digest": "sha256:
|
|
1930
|
+
"digest": "sha256:763a914da03d01561293ed45b5324e088ef2d7bb2421e0602c0f2ef74636d3b1"
|
|
1931
1931
|
},
|
|
1932
1932
|
"authorityClass": "workflow",
|
|
1933
1933
|
"machineJson": false,
|
|
@@ -2116,7 +2116,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
2116
2116
|
"ownerPackage": "openplanr",
|
|
2117
2117
|
"source": {
|
|
2118
2118
|
"path": "packages/cli/src/cli/commands/upgrade.ts",
|
|
2119
|
-
"digest": "sha256:
|
|
2119
|
+
"digest": "sha256:f2d93a0e27dd868309e55559162b167dda535b30574b8b8cdebf0d2d863cb4a2"
|
|
2120
2120
|
},
|
|
2121
2121
|
"authorityClass": "workflow",
|
|
2122
2122
|
"machineJson": false,
|
|
@@ -2263,7 +2263,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
2263
2263
|
"ownerPackage": "planr-pipeline",
|
|
2264
2264
|
"source": {
|
|
2265
2265
|
"path": "skills/planr-ship/SKILL.md",
|
|
2266
|
-
"digest": "sha256:
|
|
2266
|
+
"digest": "sha256:a0f26b0dbec2efd0e61b14072baa277e76b52c07cc25cea0cd7d5614df76c9c5"
|
|
2267
2267
|
},
|
|
2268
2268
|
"authorityClass": "compatibility-router",
|
|
2269
2269
|
"machineJson": false,
|
|
@@ -3099,7 +3099,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
3099
3099
|
]
|
|
3100
3100
|
}
|
|
3101
3101
|
],
|
|
3102
|
-
"documentDigest": "sha256:
|
|
3102
|
+
"documentDigest": "sha256:87839aa69fc9393224231d76b64d296c92c9edca378a8cffbcd3fd64a9456e88"
|
|
3103
3103
|
},
|
|
3104
3104
|
"skills.json": {
|
|
3105
3105
|
"kind": "skill-catalog",
|
|
@@ -3113,11 +3113,11 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
3113
3113
|
{
|
|
3114
3114
|
"skillId": "planr-artifact",
|
|
3115
3115
|
"skillVersion": "1.0.0",
|
|
3116
|
-
"description": "Open, share, import, or export an OpenPlanr HTML artifact review. Use when feedback must move between a local artifact and its review board.",
|
|
3116
|
+
"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.",
|
|
3117
3117
|
"lifecycle": "active",
|
|
3118
3118
|
"authorityClass": "read-only-view",
|
|
3119
3119
|
"source": "skills/planr-artifact/openplanr.skill.json",
|
|
3120
|
-
"sourceDigest": "sha256:
|
|
3120
|
+
"sourceDigest": "sha256:2df9ace1397aedb3beaec79f822f16aac84cdf7f7ffe3cccabf3cd10bffbb352",
|
|
3121
3121
|
"triggerPolicy": {
|
|
3122
3122
|
"include": [
|
|
3123
3123
|
"Open or share an HTML artifact review",
|
|
@@ -3720,6 +3720,76 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
3720
3720
|
"evaluation/skills/migrations/planr-dashboard.json"
|
|
3721
3721
|
]
|
|
3722
3722
|
},
|
|
3723
|
+
{
|
|
3724
|
+
"skillId": "planr-delegate",
|
|
3725
|
+
"skillVersion": "0.1.0",
|
|
3726
|
+
"description": "Coordinate an explicitly requested implementation with Claude Code, Codex or Cursor, then independently review and integrate its observed changes. Use when the user asks another coding agent to implement.",
|
|
3727
|
+
"lifecycle": "active",
|
|
3728
|
+
"authorityClass": "implementation",
|
|
3729
|
+
"source": "skills/planr-delegate/openplanr.skill.json",
|
|
3730
|
+
"sourceDigest": "sha256:52f82f86a292386fffd9809cbf0d307bf220cda7b5eb5195264e4260d9ce2b45",
|
|
3731
|
+
"triggerPolicy": {
|
|
3732
|
+
"include": [
|
|
3733
|
+
"Delegate implementation to another coding agent",
|
|
3734
|
+
"Ask a second coding agent to implement while I orchestrate",
|
|
3735
|
+
"Use planr-delegate for this task",
|
|
3736
|
+
"Have Codex implement this task",
|
|
3737
|
+
"Use Codex to implement this",
|
|
3738
|
+
"Have Claude Code implement this task",
|
|
3739
|
+
"Ask another coding agent to implement this task",
|
|
3740
|
+
"Use another coding agent to build this change"
|
|
3741
|
+
],
|
|
3742
|
+
"exclude": [
|
|
3743
|
+
"Active host implementation",
|
|
3744
|
+
"Ship this change without delegation",
|
|
3745
|
+
"Review existing code",
|
|
3746
|
+
"Review this code using Codex",
|
|
3747
|
+
"Parallel agents",
|
|
3748
|
+
"Fix the delegate runner in the active agent"
|
|
3749
|
+
],
|
|
3750
|
+
"deferTo": []
|
|
3751
|
+
},
|
|
3752
|
+
"contracts": {
|
|
3753
|
+
"inputs": [],
|
|
3754
|
+
"outputs": [
|
|
3755
|
+
{
|
|
3756
|
+
"id": "implementation-result",
|
|
3757
|
+
"version": "1.0.0"
|
|
3758
|
+
}
|
|
3759
|
+
]
|
|
3760
|
+
},
|
|
3761
|
+
"cliRequirements": [],
|
|
3762
|
+
"ruleIds": [
|
|
3763
|
+
"R3",
|
|
3764
|
+
"R5"
|
|
3765
|
+
],
|
|
3766
|
+
"contributionManifestRefs": [
|
|
3767
|
+
"packages/skill-runtime/contributions/workflows.json"
|
|
3768
|
+
],
|
|
3769
|
+
"hosts": [
|
|
3770
|
+
{
|
|
3771
|
+
"host": "claude-code",
|
|
3772
|
+
"entrypoint": "/planr:delegate",
|
|
3773
|
+
"path": "dist/plugins/claude/openplanr/skills/delegate/SKILL.md"
|
|
3774
|
+
},
|
|
3775
|
+
{
|
|
3776
|
+
"host": "codex",
|
|
3777
|
+
"entrypoint": "$planr:delegate",
|
|
3778
|
+
"path": "dist/plugins/openai/openplanr/skills/delegate/SKILL.md"
|
|
3779
|
+
},
|
|
3780
|
+
{
|
|
3781
|
+
"host": "cursor",
|
|
3782
|
+
"entrypoint": "planr-delegate",
|
|
3783
|
+
"path": "dist/plugins/cursor/openplanr/rules/planr-delegate.mdc"
|
|
3784
|
+
}
|
|
3785
|
+
],
|
|
3786
|
+
"testRefs": [
|
|
3787
|
+
"tests/protocol/skill-catalog.test.mjs"
|
|
3788
|
+
],
|
|
3789
|
+
"certificationRefs": [
|
|
3790
|
+
"evaluation/skills/migrations/planr-delegate.json"
|
|
3791
|
+
]
|
|
3792
|
+
},
|
|
3723
3793
|
{
|
|
3724
3794
|
"skillId": "planr-design",
|
|
3725
3795
|
"skillVersion": "2.1.0",
|
|
@@ -3727,7 +3797,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
3727
3797
|
"lifecycle": "active",
|
|
3728
3798
|
"authorityClass": "planning-write",
|
|
3729
3799
|
"source": "skills/planr-design/openplanr.skill.json",
|
|
3730
|
-
"sourceDigest": "sha256:
|
|
3800
|
+
"sourceDigest": "sha256:ec92eb75c02a10d5e4c93111fb70a43b3be601cfcebaa17c66de1cd24959d180",
|
|
3731
3801
|
"triggerPolicy": {
|
|
3732
3802
|
"include": [
|
|
3733
3803
|
"Create an initial product design direction",
|
|
@@ -3788,7 +3858,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
3788
3858
|
"lifecycle": "active",
|
|
3789
3859
|
"authorityClass": "planning-write",
|
|
3790
3860
|
"source": "skills/planr-design-loop/openplanr.skill.json",
|
|
3791
|
-
"sourceDigest": "sha256:
|
|
3861
|
+
"sourceDigest": "sha256:8223853a5f7a694a49e36ccb5edab6c9463d0c9920530704efec4168d6fde061",
|
|
3792
3862
|
"triggerPolicy": {
|
|
3793
3863
|
"include": [
|
|
3794
3864
|
"Explore multiple design directions or variants",
|
|
@@ -3849,7 +3919,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
3849
3919
|
"lifecycle": "active",
|
|
3850
3920
|
"authorityClass": "review-evidence",
|
|
3851
3921
|
"source": "skills/planr-design-review/openplanr.skill.json",
|
|
3852
|
-
"sourceDigest": "sha256:
|
|
3922
|
+
"sourceDigest": "sha256:d17f27c71a5c181d7519e41d63e49a8a34eca2ab3a878bb191feb5c82a46182b",
|
|
3853
3923
|
"triggerPolicy": {
|
|
3854
3924
|
"include": [
|
|
3855
3925
|
"Review or critique an existing OpenPlanr design",
|
|
@@ -3910,7 +3980,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
3910
3980
|
"lifecycle": "active",
|
|
3911
3981
|
"authorityClass": "artifact-authoring",
|
|
3912
3982
|
"source": "skills/planr-diagram/openplanr.skill.json",
|
|
3913
|
-
"sourceDigest": "sha256:
|
|
3983
|
+
"sourceDigest": "sha256:806f3c53d56199e00cfa19d27eaf9a8a0ca397692de46948313b7da1f728dd47",
|
|
3914
3984
|
"triggerPolicy": {
|
|
3915
3985
|
"include": [
|
|
3916
3986
|
"Create a professional diagram from English intent or Mermaid",
|
|
@@ -4156,7 +4226,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
4156
4226
|
{
|
|
4157
4227
|
"skillId": "planr-openplanr",
|
|
4158
4228
|
"skillVersion": "1.0.0",
|
|
4159
|
-
"description": "Route a planning, specification, delivery, design, review, diagram, release, or operating request to the best OpenPlanr skill. Use when the right skill is unclear or the request spans several.",
|
|
4229
|
+
"description": "Route a planning, specification, delivery, delegation, design, review, diagram, release, or operating request to the best OpenPlanr skill. Use when the right skill is unclear or the request spans several.",
|
|
4160
4230
|
"lifecycle": "active",
|
|
4161
4231
|
"authorityClass": "read-only-view",
|
|
4162
4232
|
"source": "skills/planr-openplanr/openplanr.skill.json",
|
|
@@ -4282,7 +4352,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
4282
4352
|
"lifecycle": "active",
|
|
4283
4353
|
"authorityClass": "planning-write",
|
|
4284
4354
|
"source": "skills/planr-plan/openplanr.skill.json",
|
|
4285
|
-
"sourceDigest": "sha256:
|
|
4355
|
+
"sourceDigest": "sha256:c72a19eb0ace1fb491547f8c2e232954c0f03ee0d7624e9658c3223c4c2afafe",
|
|
4286
4356
|
"triggerPolicy": {
|
|
4287
4357
|
"include": [
|
|
4288
4358
|
"Decompose a specification into user stories and implementation tasks",
|
|
@@ -4471,11 +4541,19 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
4471
4541
|
"Build and verify the requested repository change",
|
|
4472
4542
|
"Ship this",
|
|
4473
4543
|
"Ship task",
|
|
4474
|
-
"Implement this task"
|
|
4544
|
+
"Implement this task",
|
|
4545
|
+
"Implement this plan with parallel coding agents",
|
|
4546
|
+
"Use native parallel agents to implement this task",
|
|
4547
|
+
"Fix the delegate runner in the active agent"
|
|
4475
4548
|
],
|
|
4476
4549
|
"exclude": [
|
|
4477
4550
|
"Only plan the work",
|
|
4478
|
-
"Prepare a release without changing code"
|
|
4551
|
+
"Prepare a release without changing code",
|
|
4552
|
+
"Have Codex implement this task",
|
|
4553
|
+
"Use Codex to implement this",
|
|
4554
|
+
"Have Claude Code implement this task",
|
|
4555
|
+
"Ask another coding agent to implement this task",
|
|
4556
|
+
"Use another coding agent to build this change"
|
|
4479
4557
|
],
|
|
4480
4558
|
"deferTo": [
|
|
4481
4559
|
"planr-land"
|
|
@@ -4767,7 +4845,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
4767
4845
|
}
|
|
4768
4846
|
],
|
|
4769
4847
|
"compatibilityAliases": [],
|
|
4770
|
-
"documentDigest": "sha256:
|
|
4848
|
+
"documentDigest": "sha256:99d986439e069b46c6a0a96d18cfd5734fa879a2fbb71266219d8688e137df0c"
|
|
4771
4849
|
},
|
|
4772
4850
|
"outputs.json": {
|
|
4773
4851
|
"kind": "output-catalog",
|
package/src/index.d.mts
CHANGED
|
@@ -4,9 +4,31 @@ export * from './design-handoff-contracts.mjs';
|
|
|
4
4
|
export * from './design-publication-contracts.mjs';
|
|
5
5
|
export * from './diagram-authoring-contracts.mjs';
|
|
6
6
|
export * from './diagram-contracts.mjs';
|
|
7
|
+
export * from './diagram-review-contracts.mjs';
|
|
7
8
|
export * from './enterprise-contracts.mjs';
|
|
9
|
+
export * from './enterprise-resource-contracts.mjs';
|
|
8
10
|
export * from './errors.mjs';
|
|
9
11
|
export * from './json-schema.mjs';
|
|
12
|
+
export * from './large-object-contracts.mjs';
|
|
10
13
|
export * from './planning-contracts.mjs';
|
|
11
14
|
export * from './registries.mjs';
|
|
15
|
+
export * from './sharing-security-contracts.mjs';
|
|
16
|
+
|
|
17
|
+
export {
|
|
18
|
+
assertDiagramPresentation as assertDiagramReviewPresentation,
|
|
19
|
+
assertDiagramReviewBundleV11,
|
|
20
|
+
assertVersionedDiagramAuthoringBundle,
|
|
21
|
+
assertVersionedDiagramEditTransaction,
|
|
22
|
+
assertVersionedDiagramReviewBundle,
|
|
23
|
+
DIAGRAM_AUTHORING_BUNDLE_V11_SCHEMA,
|
|
24
|
+
DIAGRAM_EDIT_TRANSACTION_V11_SCHEMA,
|
|
25
|
+
DIAGRAM_PRESENTATION_SCHEMA,
|
|
26
|
+
DIAGRAM_REVIEW_BUNDLE_V11_SCHEMA,
|
|
27
|
+
legacyDiagramAuthoringProjection,
|
|
28
|
+
normalizeDiagramPresentation,
|
|
29
|
+
validateVersionedDiagramAuthoringBundle,
|
|
30
|
+
validateVersionedDiagramEditTransaction,
|
|
31
|
+
versionedDiagramAuthoringBundleDigest,
|
|
32
|
+
versionedDiagramReviewBundleDigest,
|
|
33
|
+
} from './studio-presentation-contracts.mjs';
|
|
12
34
|
export * from './task-contracts.mjs';
|
package/src/index.mjs
CHANGED
|
@@ -6,7 +6,11 @@ export {
|
|
|
6
6
|
PROTOCOL_V18_CONTRACTS,
|
|
7
7
|
PROTOCOL_V111_CONTRACTS,
|
|
8
8
|
PROTOCOL_V113_CONTRACTS,
|
|
9
|
+
PROTOCOL_V115_CONTRACTS,
|
|
10
|
+
PROTOCOL_V116_CONTRACTS,
|
|
11
|
+
PROTOCOL_V117_CONTRACTS,
|
|
9
12
|
protocolAssetUrl,
|
|
13
|
+
validateDiagramReviewArtifact,
|
|
10
14
|
} from './browser-contracts.mjs';
|
|
11
15
|
export {
|
|
12
16
|
canonicalizeJson,
|
|
@@ -25,7 +29,9 @@ export {
|
|
|
25
29
|
diagramContractUrl,
|
|
26
30
|
getDiagramGrammar,
|
|
27
31
|
} from './diagram-contracts.mjs';
|
|
32
|
+
export * from './diagram-review-contracts.mjs';
|
|
28
33
|
export * from './enterprise-contracts.mjs';
|
|
34
|
+
export * from './enterprise-resource-contracts.mjs';
|
|
29
35
|
export {
|
|
30
36
|
ARTIFACT_ERROR_CODES,
|
|
31
37
|
PIPELINE_ERROR_CODES,
|
|
@@ -34,6 +40,7 @@ export {
|
|
|
34
40
|
ProtocolError,
|
|
35
41
|
} from './errors.mjs';
|
|
36
42
|
export { validate, validateJson } from './json-schema.mjs';
|
|
43
|
+
export * from './large-object-contracts.mjs';
|
|
37
44
|
export {
|
|
38
45
|
normalizePlanningTask,
|
|
39
46
|
validatePlanningAcceptanceCoverage,
|
|
@@ -50,6 +57,25 @@ export {
|
|
|
50
57
|
routeLegacyTask,
|
|
51
58
|
validateCanonicalRegistries,
|
|
52
59
|
} from './registries.mjs';
|
|
60
|
+
export * from './sharing-security-contracts.mjs';
|
|
61
|
+
|
|
62
|
+
export {
|
|
63
|
+
assertDiagramPresentation as assertDiagramReviewPresentation,
|
|
64
|
+
assertDiagramReviewBundleV11,
|
|
65
|
+
assertVersionedDiagramAuthoringBundle,
|
|
66
|
+
assertVersionedDiagramEditTransaction,
|
|
67
|
+
assertVersionedDiagramReviewBundle,
|
|
68
|
+
DIAGRAM_AUTHORING_BUNDLE_V11_SCHEMA,
|
|
69
|
+
DIAGRAM_EDIT_TRANSACTION_V11_SCHEMA,
|
|
70
|
+
DIAGRAM_PRESENTATION_SCHEMA,
|
|
71
|
+
DIAGRAM_REVIEW_BUNDLE_V11_SCHEMA,
|
|
72
|
+
legacyDiagramAuthoringProjection,
|
|
73
|
+
normalizeDiagramPresentation,
|
|
74
|
+
validateVersionedDiagramAuthoringBundle,
|
|
75
|
+
validateVersionedDiagramEditTransaction,
|
|
76
|
+
versionedDiagramAuthoringBundleDigest,
|
|
77
|
+
versionedDiagramReviewBundleDigest,
|
|
78
|
+
} from './studio-presentation-contracts.mjs';
|
|
53
79
|
export {
|
|
54
80
|
assertTaskManifestSemantics,
|
|
55
81
|
assertTaskOutputSemantics,
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
export { canonicalizeJson } from './canonical-json.mjs';
|
|
2
|
+
export interface ChunkDescriptor {
|
|
3
|
+
index: number;
|
|
4
|
+
byteLength: number;
|
|
5
|
+
iv: string;
|
|
6
|
+
sha256: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ResourceSpan {
|
|
9
|
+
offset: number;
|
|
10
|
+
encodedBytes: number;
|
|
11
|
+
decodedBytes: number;
|
|
12
|
+
codec: 'identity' | 'deflate-raw';
|
|
13
|
+
}
|
|
14
|
+
export interface EncryptedResourceManifest {
|
|
15
|
+
schemaVersion: '2.0.0';
|
|
16
|
+
kind: 'openplanr-encrypted-resource-manifest';
|
|
17
|
+
workspaceId: string;
|
|
18
|
+
revisionId: string;
|
|
19
|
+
epoch: number;
|
|
20
|
+
createdAt: string;
|
|
21
|
+
plaintextBytes: number;
|
|
22
|
+
ciphertextBytes: number;
|
|
23
|
+
catalog: ResourceSpan;
|
|
24
|
+
chunks: ChunkDescriptor[];
|
|
25
|
+
signature: string;
|
|
26
|
+
}
|
|
27
|
+
export interface UploadReceipt {
|
|
28
|
+
schemaVersion: '2.0.0';
|
|
29
|
+
workspaceId: string;
|
|
30
|
+
operationId: string;
|
|
31
|
+
revisionId: string;
|
|
32
|
+
manifestSha256: string;
|
|
33
|
+
status: 'committed';
|
|
34
|
+
version: number;
|
|
35
|
+
committedAt: string;
|
|
36
|
+
}
|
|
37
|
+
export interface UploadStatus {
|
|
38
|
+
schemaVersion: '2.0.0';
|
|
39
|
+
workspaceId: string;
|
|
40
|
+
operationId: string;
|
|
41
|
+
revisionId: string;
|
|
42
|
+
manifestSha256: string;
|
|
43
|
+
status: 'prepared' | 'committed';
|
|
44
|
+
receivedChunks: Omit<ChunkDescriptor, 'iv'>[];
|
|
45
|
+
receipt?: UploadReceipt;
|
|
46
|
+
}
|
|
47
|
+
export { LARGE_OBJECT_LIMITS } from './large-object-limits.mjs';
|
|
48
|
+
export declare const LARGE_OBJECT_VERSION: '2.0.0';
|
|
49
|
+
export declare const LARGE_OBJECT_CHUNK_CONTEXT: string;
|
|
50
|
+
export declare const RESOURCE_HTML_SEGMENT_ENCODING: 'openplanr.html-segments.utf8-v1';
|
|
51
|
+
export declare const ENCRYPTED_RESOURCE_MANIFEST_SCHEMA: Record<string, unknown>;
|
|
52
|
+
export declare const ENCRYPTED_UPLOAD_PREPARE_SCHEMA: Record<string, unknown>;
|
|
53
|
+
export declare const ENCRYPTED_UPLOAD_COMMIT_SCHEMA: Record<string, unknown>;
|
|
54
|
+
export declare const ENCRYPTED_UPLOAD_RECEIPT_SCHEMA: Record<string, unknown>;
|
|
55
|
+
export declare const ENCRYPTED_UPLOAD_STATUS_SCHEMA: Record<string, unknown>;
|
|
56
|
+
export declare const ENCRYPTED_WORKSPACE_V2_SCHEMA: Record<string, unknown>;
|
|
57
|
+
export declare const ENCRYPTED_WORKSPACE_EVENT_V2_SCHEMA: Record<string, unknown>;
|
|
58
|
+
export declare const RESOURCE_CATALOG_SCHEMA: Record<string, unknown>;
|
|
59
|
+
export declare const LARGE_OBJECT_SCHEMAS: Readonly<Record<string, Record<string, unknown>>>;
|
|
60
|
+
/** Inspect bounded, inert JSON data without invoking accessors or copying it. */
|
|
61
|
+
export declare function assertLargeObjectData<T>(value: T): T;
|
|
62
|
+
export declare function assertLargeObjectContract<T>(value: T, kind: string): T;
|
|
63
|
+
|
|
64
|
+
export interface CompanyResourceManifest {
|
|
65
|
+
schemaVersion: '2.0.0';
|
|
66
|
+
kind: 'openplanr-company-resource-manifest';
|
|
67
|
+
organizationId: string;
|
|
68
|
+
projectId: string;
|
|
69
|
+
artifactId: string;
|
|
70
|
+
revisionId: string;
|
|
71
|
+
contentDigest: string;
|
|
72
|
+
contentType: 'application/json';
|
|
73
|
+
byteLength: number;
|
|
74
|
+
decodedBytes: number;
|
|
75
|
+
catalog: ResourceSpan;
|
|
76
|
+
chunks: Omit<ChunkDescriptor, 'iv'>[];
|
|
77
|
+
}
|
|
78
|
+
export declare const COMPANY_RESOURCE_MANIFEST_SCHEMA: Record<string, unknown>;
|
|
79
|
+
export declare const COMPANY_RESOURCE_UPLOAD_PREPARE_SCHEMA: Record<string, unknown>;
|
|
80
|
+
export declare const COMPANY_RESOURCE_UPLOAD_RECEIPT_SCHEMA: Record<string, unknown>;
|
|
81
|
+
export declare const WORKSPACE_MANAGEMENT_V2_SCHEMA: Record<string, unknown>;
|
|
82
|
+
export declare const WORKSPACE_ROTATION_V2_SCHEMA: Record<string, unknown>;
|
|
83
|
+
|
|
84
|
+
export declare const COMPANY_RESOURCE_UPLOAD_STATUS_SCHEMA: Record<string, unknown>;
|
|
85
|
+
export declare const ENTERPRISE_ARTIFACT_REVISION_V11_SCHEMA: Record<string, unknown>;
|
|
86
|
+
|
|
87
|
+
export interface EncryptedUploadPrepare {
|
|
88
|
+
schemaVersion: '2.0.0';
|
|
89
|
+
workspaceId: string;
|
|
90
|
+
operationId: string;
|
|
91
|
+
expectedVersion: number;
|
|
92
|
+
epoch: number;
|
|
93
|
+
ownerPublicKey: { kty: 'EC'; crv: 'P-256'; x: string; y: string };
|
|
94
|
+
ownerAuthHash: string;
|
|
95
|
+
reviewerAuthHash: string;
|
|
96
|
+
keyring: { iv: string; ciphertext: string };
|
|
97
|
+
manifest: EncryptedResourceManifest;
|
|
98
|
+
signature: string;
|
|
99
|
+
}
|
|
100
|
+
export interface CompanyResourceUploadPrepare {
|
|
101
|
+
schemaVersion: '2.0.0';
|
|
102
|
+
operationId: string;
|
|
103
|
+
baseRevisionId: string | null;
|
|
104
|
+
manifest: CompanyResourceManifest;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export declare function assertArtifactEnvelopeMetadata<T>(value: T): T;
|