@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.
@@ -15,5 +15,5 @@ export declare const DIAGRAM_GRAMMAR_REGISTRY: Readonly<{
15
15
  }>;
16
16
  export declare const DIAGRAM_SEMANTIC_PATTERN_REGISTRY: Readonly<Record<string, unknown>>;
17
17
  export declare function getDiagramGrammar(grammarId: string): DiagramGrammarRegistryEntry | null;
18
- export declare function diagramContractUrl(kind: string): URL;
18
+ export declare function diagramContractUrl(kind: string, options?: { protocolVersion?: '1.6.0' | '1.13.0' }): URL;
19
19
  export declare function diagramDocumentPath(slug: string): string;
@@ -1,4 +1,5 @@
1
1
  import { DIAGRAM_V16_CONTRACT_FILES } from './skill-source-contracts.mjs';
2
+ import { DIAGRAM_AUTHORING_CONTRACT_FILES } from './diagram-authoring-contracts.mjs';
2
3
  import { DIAGRAM_REGISTRIES } from './generated/diagram-registries.mjs';
3
4
 
4
5
  export const DIAGRAM_CONTRACT_FILES = DIAGRAM_V16_CONTRACT_FILES;
@@ -13,10 +14,12 @@ export function getDiagramGrammar(grammarId) {
13
14
  return grammarIndex.get(grammarId) ?? null;
14
15
  }
15
16
 
16
- export function diagramContractUrl(kind) {
17
- const filename = DIAGRAM_CONTRACT_FILES[kind];
18
- if (!filename) throw new RangeError(`Unknown diagram contract: ${kind}@1.6.0`);
19
- return new URL(`../schemas/v1.6.0/${filename}`, import.meta.url);
17
+ export function diagramContractUrl(kind, { protocolVersion = '1.6.0' } = {}) {
18
+ const files = protocolVersion === '1.6.0' ? DIAGRAM_CONTRACT_FILES
19
+ : protocolVersion === '1.13.0' ? DIAGRAM_AUTHORING_CONTRACT_FILES : null;
20
+ const filename = files && Object.hasOwn(files, kind) ? files[kind] : null;
21
+ if (!filename) throw new RangeError(`Unknown diagram contract: ${kind}@${protocolVersion}`);
22
+ return new URL(`../schemas/v${protocolVersion}/${filename}`, import.meta.url);
20
23
  }
21
24
 
22
25
  export function diagramDocumentPath(slug) {
@@ -1444,7 +1444,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
1444
1444
  "ownerPackage": "openplanr",
1445
1445
  "source": {
1446
1446
  "path": "packages/cli/src/cli/commands/diagram/index.ts",
1447
- "digest": "sha256:6a5883e12fe9499b343bdff4a481aa94a82f06c4292ed42436e7961eb3883175"
1447
+ "digest": "sha256:67aeefb682ad56cf3429a38bd98c913261cea3dbaeaf5e31ab11d873bce4b02a"
1448
1448
  },
1449
1449
  "authorityClass": "workflow",
1450
1450
  "machineJson": true,
@@ -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:3ef32f1b1c3b37ae665bb0328b736cafcc1ad40a158875a8c7f32a7de1da1f54"
1531
+ "digest": "sha256:02c19f6bd7d805e1d101c020f64270b17c785b8bffb36184da57a20755b21960"
1532
1532
  },
1533
1533
  "authorityClass": "workflow",
1534
1534
  "machineJson": false,
@@ -1633,7 +1633,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
1633
1633
  "ownerPackage": "openplanr",
1634
1634
  "source": {
1635
1635
  "path": "packages/cli/src/cli/commands/init-deterministic.ts",
1636
- "digest": "sha256:6212d9f0582ab4a8d475b479aae52ed0fedb877c60038b9f88a309d7b93bafd9"
1636
+ "digest": "sha256:7bd117fac77363d2233cf91e8ae280cff7da04b6671ad4e0b3bc39af07701747"
1637
1637
  },
1638
1638
  "authorityClass": "workflow",
1639
1639
  "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:3ef32f1b1c3b37ae665bb0328b736cafcc1ad40a158875a8c7f32a7de1da1f54"
1720
+ "digest": "sha256:02c19f6bd7d805e1d101c020f64270b17c785b8bffb36184da57a20755b21960"
1721
1721
  },
1722
1722
  "authorityClass": "workflow",
1723
1723
  "machineJson": true,
@@ -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:5f559c4d6bf7a1b31477f71c195d086021a8f4b8bc62ba78e6eeb6b5f1b1ac5c"
2119
+ "digest": "sha256:9b644add6535f982df30767f511404592edda7e813fbfcf93b167fcc38ef00fe"
2120
2120
  },
2121
2121
  "authorityClass": "workflow",
2122
2122
  "machineJson": false,
@@ -3099,7 +3099,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
3099
3099
  ]
3100
3100
  }
3101
3101
  ],
3102
- "documentDigest": "sha256:ae3955232bf3a97fd1cae7ca01deec957232a64c0c2c3c2fb25a14963c93e310"
3102
+ "documentDigest": "sha256:e7321cb2a962c7fe7906034eb3e0c09bbf6e85de52b779faa44a50d5584cff4d"
3103
3103
  },
3104
3104
  "skills.json": {
3105
3105
  "kind": "skill-catalog",
@@ -3727,7 +3727,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
3727
3727
  "lifecycle": "active",
3728
3728
  "authorityClass": "planning-write",
3729
3729
  "source": "skills/planr-design/openplanr.skill.json",
3730
- "sourceDigest": "sha256:83457207042925d16148dd28054ef69f00c4358136da7eaadc286f01bc6a0797",
3730
+ "sourceDigest": "sha256:b6fb1882f9147414964469f6e3b8089c2ca8d55c0f4a7f92e66b5a107db68051",
3731
3731
  "triggerPolicy": {
3732
3732
  "include": [
3733
3733
  "Create an initial product design direction",
@@ -3788,7 +3788,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
3788
3788
  "lifecycle": "active",
3789
3789
  "authorityClass": "planning-write",
3790
3790
  "source": "skills/planr-design-loop/openplanr.skill.json",
3791
- "sourceDigest": "sha256:cecdbd16879f58de70d1158b776fb47ac5520e22c2d6c0d01b3c6b8c4c843ced",
3791
+ "sourceDigest": "sha256:e74d98bbf31c030727e6cf2bd306b760d1bba2449bbb247148fe6c1dbc684f7b",
3792
3792
  "triggerPolicy": {
3793
3793
  "include": [
3794
3794
  "Explore multiple design directions or variants",
@@ -3849,7 +3849,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
3849
3849
  "lifecycle": "active",
3850
3850
  "authorityClass": "review-evidence",
3851
3851
  "source": "skills/planr-design-review/openplanr.skill.json",
3852
- "sourceDigest": "sha256:6ac49ca8fd2f709aff25f192f55e9c530b95715a626af01afef2ed1d2170e340",
3852
+ "sourceDigest": "sha256:388904d851b0da0e6bc9171db229f80facca68a417bb4e458bf5eebf6cd12be3",
3853
3853
  "triggerPolicy": {
3854
3854
  "include": [
3855
3855
  "Review or critique an existing OpenPlanr design",
@@ -3906,7 +3906,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
3906
3906
  {
3907
3907
  "skillId": "planr-diagram",
3908
3908
  "skillVersion": "1.1.0",
3909
- "description": "Create, inspect, verify, or rerender professional offline diagrams. Use for architecture, process, sequence, data, state, or relationship visuals from intent or source.",
3909
+ "description": "Create, edit, inspect, verify, or rerender professional offline diagrams. Use for architecture, process, sequence, data, state, or relationship visuals from intent or source.",
3910
3910
  "lifecycle": "active",
3911
3911
  "authorityClass": "artifact-authoring",
3912
3912
  "source": "skills/planr-diagram/openplanr.skill.json",
@@ -4282,7 +4282,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
4282
4282
  "lifecycle": "active",
4283
4283
  "authorityClass": "planning-write",
4284
4284
  "source": "skills/planr-plan/openplanr.skill.json",
4285
- "sourceDigest": "sha256:a1e090540db3a4edc2694e1a24c6fc0af85838eb7ee3138cdc53f4be69803479",
4285
+ "sourceDigest": "sha256:e91d221a286bd91b3b7a2343cea8c73564cb3401b968854d38bcf8a9790131f1",
4286
4286
  "triggerPolicy": {
4287
4287
  "include": [
4288
4288
  "Decompose a specification into user stories and implementation tasks",
@@ -4767,7 +4767,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
4767
4767
  }
4768
4768
  ],
4769
4769
  "compatibilityAliases": [],
4770
- "documentDigest": "sha256:afe78935afba9b34e9a5cfe15f4821a424334c90213292252b1b068ba66db958"
4770
+ "documentDigest": "sha256:b1abd9ebb9b724c02ec359e67ec05ebefb38d5b5a64ed04b415fce41b58de5cc"
4771
4771
  },
4772
4772
  "outputs.json": {
4773
4773
  "kind": "output-catalog",