@openplanr/protocol 0.15.0 → 0.16.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openplanr/protocol",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "type": "module",
5
5
  "description": "Canonical OpenPlanr schemas, registries, typed errors, and portable contract validation",
6
6
  "license": "MIT",
@@ -108,6 +108,10 @@
108
108
  "types": "./src/large-object-contracts.d.mts",
109
109
  "import": "./src/large-object-contracts.mjs"
110
110
  },
111
+ "./large-object-limits": {
112
+ "types": "./src/large-object-limits.d.mts",
113
+ "import": "./src/large-object-limits.mjs"
114
+ },
111
115
  "./studio-presentation-contracts": {
112
116
  "types": "./src/studio-presentation-contracts.d.mts",
113
117
  "import": "./src/studio-presentation-contracts.mjs"
@@ -188,7 +188,7 @@
188
188
  "ownerPackage": "openplanr",
189
189
  "source": {
190
190
  "path": "packages/cli/src/cli/commands/artifact.ts",
191
- "digest": "sha256:0909468799893a62b11c987af2bcd4f44e9be45544418a1309d58c2b028e4575"
191
+ "digest": "sha256:69a3d163c58a5764fa558f1f9929a123230549eb4a2b180e334a71069d573b60"
192
192
  },
193
193
  "authorityClass": "workflow",
194
194
  "machineJson": false,
@@ -377,7 +377,7 @@
377
377
  "ownerPackage": "openplanr",
378
378
  "source": {
379
379
  "path": "docs/generated/utility-command-catalog.json",
380
- "digest": "sha256:d74dc7fce5bfa26b44c4d127d7fd5875d510403da947b9a9bf6b1ec540db14fa"
380
+ "digest": "sha256:047e9a10a25a226012dc77fe54610d0ae10cdf6ccf40492f97c1f9be47ae418b"
381
381
  },
382
382
  "authorityClass": "workflow",
383
383
  "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:d74dc7fce5bfa26b44c4d127d7fd5875d510403da947b9a9bf6b1ec540db14fa"
569
+ "digest": "sha256:047e9a10a25a226012dc77fe54610d0ae10cdf6ccf40492f97c1f9be47ae418b"
570
570
  },
571
571
  "authorityClass": "workflow",
572
572
  "machineJson": true,
@@ -1112,7 +1112,7 @@
1112
1112
  "ownerPackage": "planr-pipeline",
1113
1113
  "source": {
1114
1114
  "path": "skills/planr-ship/SKILL.md",
1115
- "digest": "sha256:c01e21e744d323a781abce7713500dad948717fa3234112e5740a10def01d6c8"
1115
+ "digest": "sha256:239dc1dc9aa54ba6f2e4782083ce602b2d520680219d328a5d2e1e151f9dd13d"
1116
1116
  },
1117
1117
  "authorityClass": "compatibility-router",
1118
1118
  "machineJson": false,
@@ -1948,5 +1948,5 @@
1948
1948
  ]
1949
1949
  }
1950
1950
  ],
1951
- "documentDigest": "sha256:8f6783884610818f151767e3836c061c9d070573172ad505722f0df4c252e792"
1951
+ "documentDigest": "sha256:c0264769d512b3182aa3e312450cd10e258e1276a8e1b05ad3679634ca5572f2"
1952
1952
  }
@@ -685,7 +685,7 @@
685
685
  "lifecycle": "active",
686
686
  "authorityClass": "implementation",
687
687
  "source": "skills/planr-delegate/openplanr.skill.json",
688
- "sourceDigest": "sha256:01c074a24328c5eeba8571f75bea5d51e1b6f27a702e390c680055684a105717",
688
+ "sourceDigest": "sha256:f6a7e2a965dff4dab0f6414ae0bcb7289903dfbc2022a88d0528b8b9c0ea2c91",
689
689
  "triggerPolicy": {
690
690
  "include": [
691
691
  "Delegate implementation to another coding agent",
@@ -755,7 +755,7 @@
755
755
  "lifecycle": "active",
756
756
  "authorityClass": "planning-write",
757
757
  "source": "skills/planr-design/openplanr.skill.json",
758
- "sourceDigest": "sha256:8043eaa5fab05b77c3e47d5e0f580dc05a4a5c21c420f4c2815c72d71c323098",
758
+ "sourceDigest": "sha256:e3bee4408eef46eb5e5ab9b61609ea59c94facc8826521959f86c2f4f97df66f",
759
759
  "triggerPolicy": {
760
760
  "include": [
761
761
  "Create an initial product design direction",
@@ -816,7 +816,7 @@
816
816
  "lifecycle": "active",
817
817
  "authorityClass": "planning-write",
818
818
  "source": "skills/planr-design-loop/openplanr.skill.json",
819
- "sourceDigest": "sha256:5a244a415488abb8abb336b799ea475156e7cea9477ce45c2b69955c19f8ce12",
819
+ "sourceDigest": "sha256:ce0117d1025f72830280871dc7d5907a5da666aaf40861de3cc70dafde7b2e77",
820
820
  "triggerPolicy": {
821
821
  "include": [
822
822
  "Explore multiple design directions or variants",
@@ -877,7 +877,7 @@
877
877
  "lifecycle": "active",
878
878
  "authorityClass": "review-evidence",
879
879
  "source": "skills/planr-design-review/openplanr.skill.json",
880
- "sourceDigest": "sha256:935ae48b423ff2bba4eef6e2823d9ca7afda07db1d48b5433951c55baca9dc1c",
880
+ "sourceDigest": "sha256:63713ff38a7416ebe449d1676ee385a72ae38d1a98c5b146e28eb844267c6a9b",
881
881
  "triggerPolicy": {
882
882
  "include": [
883
883
  "Review or critique an existing OpenPlanr design",
@@ -1060,12 +1060,12 @@
1060
1060
  },
1061
1061
  {
1062
1062
  "skillId": "planr-investigate",
1063
- "skillVersion": "2.1.0",
1063
+ "skillVersion": "2.3.0",
1064
1064
  "description": "Diagnose a bug, regression, error, or unexplained behavior and optionally implement a bounded fix. Use for root-cause investigation, including before any fix, not planned feature delivery.",
1065
1065
  "lifecycle": "active",
1066
1066
  "authorityClass": "diagnostic",
1067
1067
  "source": "skills/planr-investigate/openplanr.skill.json",
1068
- "sourceDigest": "sha256:eb14795cb0e58a28178aaead5e2737c191f981f0da182cabeeeb99d7c45d87f4",
1068
+ "sourceDigest": "sha256:2a0fcaacd12fe22b78d4c72e0c6ef27effc2f9c5c1d04758920ec3810c1e6ce4",
1069
1069
  "triggerPolicy": {
1070
1070
  "include": [
1071
1071
  "Investigate a bug, regression, error, or unexplained behavior",
@@ -1548,12 +1548,12 @@
1548
1548
  },
1549
1549
  {
1550
1550
  "skillId": "planr-ship",
1551
- "skillVersion": "1.4.0",
1551
+ "skillVersion": "1.6.0",
1552
1552
  "description": "Implement an OpenPlanr plan, specification, task, or clearly stated request end to end in the current repository. Use when the user asks to build, implement, fix, finish, or ship local work, or to plan and implement an accepted change. Invoke before editing files for the requested change. Not for planning only, landing, release, or work handed to another coding agent.",
1553
1553
  "lifecycle": "active",
1554
1554
  "authorityClass": "implementation",
1555
1555
  "source": "skills/planr-ship/openplanr.skill.json",
1556
- "sourceDigest": "sha256:636a378452d54760d78c5fa5f361de0ced97035e41ba7f3e3361fd5ab5d8058d",
1556
+ "sourceDigest": "sha256:46b7912188268e8f50125cb4554869c05d274544ebd90c59721e206538731cc5",
1557
1557
  "triggerPolicy": {
1558
1558
  "include": [
1559
1559
  "Implement a plan, specification, task, fix, or clearly stated local request",
@@ -1864,5 +1864,5 @@
1864
1864
  }
1865
1865
  ],
1866
1866
  "compatibilityAliases": [],
1867
- "documentDigest": "sha256:84aa1fca15056b29bc848beca237f56ea477090158d158d7e5f7e4234437ee81"
1867
+ "documentDigest": "sha256:668a62e86f24fc591485646f321abbc0bf75b4109e30cd2806c4a2ad035baf33"
1868
1868
  }
@@ -77,12 +77,12 @@
77
77
  "machineJson": true,
78
78
  "source": {
79
79
  "path": "packages/cli/src/cli/commands/artifact.ts",
80
- "digest": "sha256:0909468799893a62b11c987af2bcd4f44e9be45544418a1309d58c2b028e4575"
80
+ "digest": "sha256:69a3d163c58a5764fa558f1f9929a123230549eb4a2b180e334a71069d573b60"
81
81
  },
82
82
  "testRefs": [
83
83
  "packages/cli/tests/unit/artifact-paste-custody.test.ts"
84
84
  ]
85
85
  }
86
86
  ],
87
- "documentDigest": "sha256:0aef7c2b73f515d8528a7c4a46bf50711e7207446e2e658b589c75fa8a2ff8fe"
87
+ "documentDigest": "sha256:1a834e8046a91ad3f75aee5c4f1743ff5a9802b7c6afebb365ed98ea4616c0e5"
88
88
  }
@@ -0,0 +1,181 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://openplanr.dev/schemas/v1.23.0/implementation-result.schema.json",
4
+ "x-openplanr-contract": {
5
+ "id": "implementation-result",
6
+ "version": "1.23.0"
7
+ },
8
+ "type": "object",
9
+ "additionalProperties": false,
10
+ "required": [
11
+ "outcome",
12
+ "task",
13
+ "changed",
14
+ "checks",
15
+ "issues"
16
+ ],
17
+ "properties": {
18
+ "outcome": {
19
+ "type": "object",
20
+ "additionalProperties": false,
21
+ "required": [
22
+ "status",
23
+ "summary"
24
+ ],
25
+ "properties": {
26
+ "status": {
27
+ "enum": [
28
+ "completed",
29
+ "partial",
30
+ "blocked",
31
+ "awaiting-acceptance"
32
+ ]
33
+ },
34
+ "summary": {
35
+ "$ref": "#/$defs/nonBlankText"
36
+ }
37
+ }
38
+ },
39
+ "task": {
40
+ "oneOf": [
41
+ {
42
+ "title": "Planr task",
43
+ "type": "object",
44
+ "additionalProperties": false,
45
+ "required": [
46
+ "kind",
47
+ "id",
48
+ "path"
49
+ ],
50
+ "properties": {
51
+ "kind": {
52
+ "const": "planr-task"
53
+ },
54
+ "id": {
55
+ "$ref": "#/$defs/taskId"
56
+ },
57
+ "path": {
58
+ "$ref": "#/$defs/relativePath"
59
+ }
60
+ }
61
+ },
62
+ {
63
+ "title": "Direct request",
64
+ "type": "object",
65
+ "additionalProperties": false,
66
+ "required": [
67
+ "kind"
68
+ ],
69
+ "properties": {
70
+ "kind": {
71
+ "const": "direct-request"
72
+ }
73
+ }
74
+ }
75
+ ]
76
+ },
77
+ "changed": {
78
+ "type": "array",
79
+ "items": {
80
+ "type": "object",
81
+ "additionalProperties": false,
82
+ "required": [
83
+ "path",
84
+ "purpose"
85
+ ],
86
+ "properties": {
87
+ "path": {
88
+ "$ref": "#/$defs/relativePath"
89
+ },
90
+ "purpose": {
91
+ "$ref": "#/$defs/nonBlankText"
92
+ }
93
+ }
94
+ },
95
+ "minItems": 0,
96
+ "maxItems": 4096
97
+ },
98
+ "checks": {
99
+ "type": "array",
100
+ "items": {
101
+ "type": "object",
102
+ "additionalProperties": false,
103
+ "required": [
104
+ "command",
105
+ "status",
106
+ "detail"
107
+ ],
108
+ "properties": {
109
+ "command": {
110
+ "$ref": "#/$defs/nonBlankText"
111
+ },
112
+ "status": {
113
+ "enum": [
114
+ "passed",
115
+ "failed",
116
+ "not-run"
117
+ ]
118
+ },
119
+ "detail": {
120
+ "$ref": "#/$defs/nonBlankText"
121
+ },
122
+ "acceptanceIds": {
123
+ "type": "array",
124
+ "items": {
125
+ "type": "string",
126
+ "pattern": "^(?:[A-Z][A-Z0-9]*-[0-9]+\\.)?AC-[0-9]+$"
127
+ },
128
+ "minItems": 0,
129
+ "maxItems": 256,
130
+ "uniqueItems": true
131
+ }
132
+ }
133
+ },
134
+ "minItems": 0,
135
+ "maxItems": 256
136
+ },
137
+ "issues": {
138
+ "type": "array",
139
+ "items": {
140
+ "type": "object",
141
+ "additionalProperties": false,
142
+ "required": [
143
+ "problem",
144
+ "impact",
145
+ "nextAction"
146
+ ],
147
+ "properties": {
148
+ "problem": {
149
+ "$ref": "#/$defs/nonBlankText"
150
+ },
151
+ "impact": {
152
+ "$ref": "#/$defs/nonBlankText"
153
+ },
154
+ "nextAction": {
155
+ "$ref": "#/$defs/nonBlankText"
156
+ }
157
+ }
158
+ },
159
+ "minItems": 0,
160
+ "maxItems": 256
161
+ }
162
+ },
163
+ "$defs": {
164
+ "nonBlankText": {
165
+ "type": "string",
166
+ "minLength": 1,
167
+ "maxLength": 16384,
168
+ "pattern": ".*\\S.*"
169
+ },
170
+ "relativePath": {
171
+ "type": "string",
172
+ "minLength": 1,
173
+ "maxLength": 1024,
174
+ "pattern": "^(?!/)(?![A-Za-z]:)(?!.*\\\\)(?!.*(?:^|/)\\.{1,2}(?:/|$))(?!.*//).+$"
175
+ },
176
+ "taskId": {
177
+ "type": "string",
178
+ "pattern": "^T-[0-9]{3}$"
179
+ }
180
+ }
181
+ }
package/src/contracts.mjs CHANGED
@@ -224,7 +224,10 @@ const foundationPaths = {
224
224
  'task-kind-registry': { '1.5.0': 'schemas/v1.5.0/task-kind-registry.schema.json' },
225
225
  'task-manifest': { '1.5.0': 'schemas/v1.5.0/task-manifest.schema.json' },
226
226
  'task-output-manifest': { '1.5.0': 'schemas/v1.5.0/task-output-manifest.schema.json' },
227
- 'implementation-result': { '1.5.0': 'schemas/v1.5.0/implementation-result.schema.json' },
227
+ 'implementation-result': {
228
+ '1.5.0': 'schemas/v1.5.0/implementation-result.schema.json',
229
+ '1.23.0': 'schemas/v1.23.0/implementation-result.schema.json',
230
+ },
228
231
  'rule-catalog': { '1.5.0': 'schemas/v1.5.0/rule-catalog.schema.json' },
229
232
  'command-catalog': { '1.5.0': 'schemas/v1.5.0/command-catalog.schema.json' },
230
233
  'skill-catalog': {
@@ -0,0 +1,3 @@
1
+ /** Exported local design review, without workspace transport fields. */
2
+ export declare const DESIGN_REVIEW_BUNDLE_SCHEMA: Readonly<Record<string, unknown>>;
3
+ export declare const DESIGN_WORKSPACE_VERSION: '1.0.0';
@@ -0,0 +1,92 @@
1
+ // @ts-check
2
+ import { DESIGN_DOCUMENT_V1_SCHEMA } from './design-contracts.mjs';
3
+
4
+ /** @type {typeof import('./design-review-bundle-contracts.d.mts').DESIGN_WORKSPACE_VERSION} */
5
+ export const DESIGN_WORKSPACE_VERSION = '1.0.0';
6
+
7
+ // An explicit presentation-only model. Authored paths, source provenance, and
8
+ // design-system references are deliberately not part of a published workspace.
9
+ const designProperties =
10
+ /** @type {Record<string, { items: { properties: Record<string, unknown>; required: string[] } }>} */ (
11
+ structuredClone(DESIGN_DOCUMENT_V1_SCHEMA.properties)
12
+ );
13
+ for (const key of ['kind', 'schemaVersion', 'brief', 'assets', 'designSystem'])
14
+ delete designProperties[key];
15
+ delete designProperties.screens.items.properties.source;
16
+ designProperties.screens.items.required = ['id', 'title'];
17
+ delete designProperties.variants.items.properties.sources;
18
+ /** @type {typeof import('./design-review-bundle-contracts.d.mts').DESIGN_REVIEW_BUNDLE_SCHEMA} */
19
+ export const DESIGN_REVIEW_BUNDLE_SCHEMA = {
20
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
21
+ $id: 'https://openplanr.dev/schemas/v1.9.0/design-review-bundle.schema.json',
22
+ 'x-openplanr-contract': { id: 'design-review-bundle', version: '1.9.0' },
23
+ type: 'object',
24
+ additionalProperties: false,
25
+ properties: {
26
+ kind: { const: 'openplanr-design-review-bundle' },
27
+ schemaVersion: { const: DESIGN_WORKSPACE_VERSION },
28
+ design: {
29
+ type: 'object',
30
+ additionalProperties: false,
31
+ properties: designProperties,
32
+ required: [
33
+ 'id',
34
+ 'title',
35
+ 'frames',
36
+ 'screens',
37
+ 'screenOrder',
38
+ 'variants',
39
+ 'selectedVariant',
40
+ 'defaultView',
41
+ ],
42
+ },
43
+ envelope: {
44
+ type: 'object',
45
+ required: ['schemaVersion', 'artifacts', 'viewer'],
46
+ },
47
+ entries: {
48
+ type: 'array',
49
+ minItems: 1,
50
+ maxItems: 256,
51
+ items: {
52
+ type: 'object',
53
+ additionalProperties: false,
54
+ required: ['artifactId', 'screenId', 'variantId', 'frameId'],
55
+ properties: Object.fromEntries(
56
+ ['artifactId', 'screenId', 'variantId', 'frameId'].map((key) => [
57
+ key,
58
+ { type: 'string', minLength: 1, maxLength: 128 },
59
+ ]),
60
+ ),
61
+ },
62
+ },
63
+ state: {
64
+ type: ['object', 'null'],
65
+ additionalProperties: false,
66
+ properties: {
67
+ positions: {
68
+ type: 'object',
69
+ additionalProperties: {
70
+ type: 'object',
71
+ additionalProperties: false,
72
+ required: ['x', 'y'],
73
+ properties: {
74
+ x: { type: 'number', minimum: -1e7, maximum: 1e7 },
75
+ y: { type: 'number', minimum: -1e7, maximum: 1e7 },
76
+ },
77
+ },
78
+ },
79
+ },
80
+ },
81
+ revision: { type: 'string', minLength: 1, maxLength: 128 },
82
+ verification: {
83
+ type: ['object', 'null'],
84
+ additionalProperties: false,
85
+ properties: {
86
+ status: { enum: ['verified', 'unverified', 'failed', 'pending'] },
87
+ },
88
+ },
89
+ },
90
+ required: ['kind', 'schemaVersion', 'design', 'envelope', 'entries', 'revision'],
91
+ $defs: structuredClone(DESIGN_DOCUMENT_V1_SCHEMA.$defs),
92
+ };
@@ -1249,7 +1249,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
1249
1249
  "ownerPackage": "openplanr",
1250
1250
  "source": {
1251
1251
  "path": "packages/cli/src/cli/commands/artifact.ts",
1252
- "digest": "sha256:0909468799893a62b11c987af2bcd4f44e9be45544418a1309d58c2b028e4575"
1252
+ "digest": "sha256:69a3d163c58a5764fa558f1f9929a123230549eb4a2b180e334a71069d573b60"
1253
1253
  },
1254
1254
  "authorityClass": "workflow",
1255
1255
  "machineJson": false,
@@ -1438,7 +1438,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
1438
1438
  "ownerPackage": "openplanr",
1439
1439
  "source": {
1440
1440
  "path": "docs/generated/utility-command-catalog.json",
1441
- "digest": "sha256:d74dc7fce5bfa26b44c4d127d7fd5875d510403da947b9a9bf6b1ec540db14fa"
1441
+ "digest": "sha256:047e9a10a25a226012dc77fe54610d0ae10cdf6ccf40492f97c1f9be47ae418b"
1442
1442
  },
1443
1443
  "authorityClass": "workflow",
1444
1444
  "machineJson": false,
@@ -1627,7 +1627,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
1627
1627
  "ownerPackage": "openplanr",
1628
1628
  "source": {
1629
1629
  "path": "docs/generated/utility-command-catalog.json",
1630
- "digest": "sha256:d74dc7fce5bfa26b44c4d127d7fd5875d510403da947b9a9bf6b1ec540db14fa"
1630
+ "digest": "sha256:047e9a10a25a226012dc77fe54610d0ae10cdf6ccf40492f97c1f9be47ae418b"
1631
1631
  },
1632
1632
  "authorityClass": "workflow",
1633
1633
  "machineJson": true,
@@ -2173,7 +2173,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
2173
2173
  "ownerPackage": "planr-pipeline",
2174
2174
  "source": {
2175
2175
  "path": "skills/planr-ship/SKILL.md",
2176
- "digest": "sha256:c01e21e744d323a781abce7713500dad948717fa3234112e5740a10def01d6c8"
2176
+ "digest": "sha256:239dc1dc9aa54ba6f2e4782083ce602b2d520680219d328a5d2e1e151f9dd13d"
2177
2177
  },
2178
2178
  "authorityClass": "compatibility-router",
2179
2179
  "machineJson": false,
@@ -3009,7 +3009,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
3009
3009
  ]
3010
3010
  }
3011
3011
  ],
3012
- "documentDigest": "sha256:8f6783884610818f151767e3836c061c9d070573172ad505722f0df4c252e792"
3012
+ "documentDigest": "sha256:c0264769d512b3182aa3e312450cd10e258e1276a8e1b05ad3679634ca5572f2"
3013
3013
  },
3014
3014
  "skills.json": {
3015
3015
  "kind": "skill-catalog",
@@ -3698,7 +3698,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
3698
3698
  "lifecycle": "active",
3699
3699
  "authorityClass": "implementation",
3700
3700
  "source": "skills/planr-delegate/openplanr.skill.json",
3701
- "sourceDigest": "sha256:01c074a24328c5eeba8571f75bea5d51e1b6f27a702e390c680055684a105717",
3701
+ "sourceDigest": "sha256:f6a7e2a965dff4dab0f6414ae0bcb7289903dfbc2022a88d0528b8b9c0ea2c91",
3702
3702
  "triggerPolicy": {
3703
3703
  "include": [
3704
3704
  "Delegate implementation to another coding agent",
@@ -3768,7 +3768,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
3768
3768
  "lifecycle": "active",
3769
3769
  "authorityClass": "planning-write",
3770
3770
  "source": "skills/planr-design/openplanr.skill.json",
3771
- "sourceDigest": "sha256:8043eaa5fab05b77c3e47d5e0f580dc05a4a5c21c420f4c2815c72d71c323098",
3771
+ "sourceDigest": "sha256:e3bee4408eef46eb5e5ab9b61609ea59c94facc8826521959f86c2f4f97df66f",
3772
3772
  "triggerPolicy": {
3773
3773
  "include": [
3774
3774
  "Create an initial product design direction",
@@ -3829,7 +3829,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
3829
3829
  "lifecycle": "active",
3830
3830
  "authorityClass": "planning-write",
3831
3831
  "source": "skills/planr-design-loop/openplanr.skill.json",
3832
- "sourceDigest": "sha256:5a244a415488abb8abb336b799ea475156e7cea9477ce45c2b69955c19f8ce12",
3832
+ "sourceDigest": "sha256:ce0117d1025f72830280871dc7d5907a5da666aaf40861de3cc70dafde7b2e77",
3833
3833
  "triggerPolicy": {
3834
3834
  "include": [
3835
3835
  "Explore multiple design directions or variants",
@@ -3890,7 +3890,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
3890
3890
  "lifecycle": "active",
3891
3891
  "authorityClass": "review-evidence",
3892
3892
  "source": "skills/planr-design-review/openplanr.skill.json",
3893
- "sourceDigest": "sha256:935ae48b423ff2bba4eef6e2823d9ca7afda07db1d48b5433951c55baca9dc1c",
3893
+ "sourceDigest": "sha256:63713ff38a7416ebe449d1676ee385a72ae38d1a98c5b146e28eb844267c6a9b",
3894
3894
  "triggerPolicy": {
3895
3895
  "include": [
3896
3896
  "Review or critique an existing OpenPlanr design",
@@ -4073,12 +4073,12 @@ export const CANONICAL_REGISTRIES = deepFreeze({
4073
4073
  },
4074
4074
  {
4075
4075
  "skillId": "planr-investigate",
4076
- "skillVersion": "2.1.0",
4076
+ "skillVersion": "2.3.0",
4077
4077
  "description": "Diagnose a bug, regression, error, or unexplained behavior and optionally implement a bounded fix. Use for root-cause investigation, including before any fix, not planned feature delivery.",
4078
4078
  "lifecycle": "active",
4079
4079
  "authorityClass": "diagnostic",
4080
4080
  "source": "skills/planr-investigate/openplanr.skill.json",
4081
- "sourceDigest": "sha256:eb14795cb0e58a28178aaead5e2737c191f981f0da182cabeeeb99d7c45d87f4",
4081
+ "sourceDigest": "sha256:2a0fcaacd12fe22b78d4c72e0c6ef27effc2f9c5c1d04758920ec3810c1e6ce4",
4082
4082
  "triggerPolicy": {
4083
4083
  "include": [
4084
4084
  "Investigate a bug, regression, error, or unexplained behavior",
@@ -4561,12 +4561,12 @@ export const CANONICAL_REGISTRIES = deepFreeze({
4561
4561
  },
4562
4562
  {
4563
4563
  "skillId": "planr-ship",
4564
- "skillVersion": "1.4.0",
4564
+ "skillVersion": "1.6.0",
4565
4565
  "description": "Implement an OpenPlanr plan, specification, task, or clearly stated request end to end in the current repository. Use when the user asks to build, implement, fix, finish, or ship local work, or to plan and implement an accepted change. Invoke before editing files for the requested change. Not for planning only, landing, release, or work handed to another coding agent.",
4566
4566
  "lifecycle": "active",
4567
4567
  "authorityClass": "implementation",
4568
4568
  "source": "skills/planr-ship/openplanr.skill.json",
4569
- "sourceDigest": "sha256:636a378452d54760d78c5fa5f361de0ced97035e41ba7f3e3361fd5ab5d8058d",
4569
+ "sourceDigest": "sha256:46b7912188268e8f50125cb4554869c05d274544ebd90c59721e206538731cc5",
4570
4570
  "triggerPolicy": {
4571
4571
  "include": [
4572
4572
  "Implement a plan, specification, task, fix, or clearly stated local request",
@@ -4877,7 +4877,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
4877
4877
  }
4878
4878
  ],
4879
4879
  "compatibilityAliases": [],
4880
- "documentDigest": "sha256:84aa1fca15056b29bc848beca237f56ea477090158d158d7e5f7e4234437ee81"
4880
+ "documentDigest": "sha256:668a62e86f24fc591485646f321abbc0bf75b4109e30cd2806c4a2ad035baf33"
4881
4881
  },
4882
4882
  "outputs.json": {
4883
4883
  "kind": "output-catalog",
@@ -6,8 +6,8 @@ import {
6
6
  DESIGN_DOCUMENT_V120_SCHEMA,
7
7
  validateDesignProps,
8
8
  } from './design-contracts.mjs';
9
+ import { DESIGN_REVIEW_BUNDLE_SCHEMA } from './design-review-bundle-contracts.mjs';
9
10
  import { validateJson } from './json-schema.mjs';
10
- import { DESIGN_REVIEW_BUNDLE_SCHEMA } from './workspace-contracts.mjs';
11
11
 
12
12
  const text = { type: 'string', maxLength: 16384 };
13
13
  const id = { type: 'string', minLength: 1, maxLength: 128 };
@@ -35,7 +35,6 @@ export interface DesignReviewWorkspace {
35
35
  ownerPublicKey: WorkspacePublicKey;
36
36
  keyring: WorkspaceCiphertext;
37
37
  }
38
- export declare const DESIGN_WORKSPACE_VERSION: '1.0.0';
39
38
  export declare const DESIGN_WORKSPACE_API: '/api/v1/design-workspaces';
40
39
  export declare const DESIGN_WORKSPACE_MAX_BYTES: number;
41
40
  export declare const DESIGN_WORKSPACE_MAX_EVENT_BYTES: number;
@@ -44,7 +43,6 @@ export declare const DESIGN_WORKSPACE_SCHEMA: Readonly<Record<string, unknown>>;
44
43
  export declare const DESIGN_WORKSPACE_CREATE_SCHEMA: Readonly<Record<string, unknown>>;
45
44
  export declare const DESIGN_WORKSPACE_REVISION_SCHEMA: Readonly<Record<string, unknown>>;
46
45
  export declare const DESIGN_WORKSPACE_EVENT_SCHEMA: Readonly<Record<string, unknown>>;
47
- export declare const DESIGN_REVIEW_BUNDLE_SCHEMA: Readonly<Record<string, unknown>>;
48
46
  export declare const DESIGN_WORKSPACE_SCHEMAS: Readonly<
49
47
  Record<string, Readonly<Record<string, unknown>>>
50
48
  >;
@@ -52,3 +50,7 @@ export declare function assertWorkspaceContract<T>(
52
50
  value: T,
53
51
  contract: Readonly<Record<string, unknown>>,
54
52
  ): T;
53
+ export {
54
+ DESIGN_REVIEW_BUNDLE_SCHEMA,
55
+ DESIGN_WORKSPACE_VERSION,
56
+ } from './design-review-bundle-contracts.mjs';
@@ -1,9 +1,11 @@
1
1
  // @ts-check
2
- import { DESIGN_DOCUMENT_V1_SCHEMA } from './design-contracts.mjs';
2
+ import {
3
+ DESIGN_REVIEW_BUNDLE_SCHEMA,
4
+ DESIGN_WORKSPACE_VERSION,
5
+ } from './design-review-bundle-contracts.mjs';
3
6
  import { validateJson } from './json-schema.mjs';
4
7
 
5
- /** @type {typeof import('./workspace-contracts.d.mts').DESIGN_WORKSPACE_VERSION} */
6
- export const DESIGN_WORKSPACE_VERSION = '1.0.0';
8
+ export { DESIGN_REVIEW_BUNDLE_SCHEMA, DESIGN_WORKSPACE_VERSION };
7
9
  /** @type {typeof import('./workspace-contracts.d.mts').DESIGN_WORKSPACE_API} */
8
10
  export const DESIGN_WORKSPACE_API = '/api/v1/design-workspaces';
9
11
  /** @type {typeof import('./workspace-contracts.d.mts').DESIGN_WORKSPACE_MAX_BYTES} */
@@ -94,86 +96,6 @@ export const DESIGN_WORKSPACE_SCHEMA = schema('design-review-workspace', {
94
96
  keyring: sealed,
95
97
  });
96
98
 
97
- // An explicit presentation-only model. Authored paths, source provenance, and
98
- // design-system references are deliberately not part of a published workspace.
99
- const designProperties =
100
- /** @type {Record<string, { items: { properties: Record<string, unknown>; required: string[] } }>} */ (
101
- structuredClone(DESIGN_DOCUMENT_V1_SCHEMA.properties)
102
- );
103
- for (const key of ['kind', 'schemaVersion', 'brief', 'assets', 'designSystem'])
104
- delete designProperties[key];
105
- delete designProperties.screens.items.properties.source;
106
- designProperties.screens.items.required = ['id', 'title'];
107
- delete designProperties.variants.items.properties.sources;
108
- /** @type {typeof import('./workspace-contracts.d.mts').DESIGN_REVIEW_BUNDLE_SCHEMA} */
109
- export const DESIGN_REVIEW_BUNDLE_SCHEMA = {
110
- ...schema(
111
- 'design-review-bundle',
112
- {
113
- kind: { const: 'openplanr-design-review-bundle' },
114
- schemaVersion: { const: DESIGN_WORKSPACE_VERSION },
115
- design: {
116
- type: 'object',
117
- additionalProperties: false,
118
- properties: designProperties,
119
- required: [
120
- 'id',
121
- 'title',
122
- 'frames',
123
- 'screens',
124
- 'screenOrder',
125
- 'variants',
126
- 'selectedVariant',
127
- 'defaultView',
128
- ],
129
- },
130
- envelope: { type: 'object', required: ['schemaVersion', 'artifacts', 'viewer'] },
131
- entries: {
132
- type: 'array',
133
- minItems: 1,
134
- maxItems: 256,
135
- items: {
136
- type: 'object',
137
- additionalProperties: false,
138
- required: ['artifactId', 'screenId', 'variantId', 'frameId'],
139
- properties: Object.fromEntries(
140
- ['artifactId', 'screenId', 'variantId', 'frameId'].map((key) => [
141
- key,
142
- { type: 'string', minLength: 1, maxLength: 128 },
143
- ]),
144
- ),
145
- },
146
- },
147
- state: {
148
- type: ['object', 'null'],
149
- additionalProperties: false,
150
- properties: {
151
- positions: {
152
- type: 'object',
153
- additionalProperties: {
154
- type: 'object',
155
- additionalProperties: false,
156
- required: ['x', 'y'],
157
- properties: {
158
- x: { type: 'number', minimum: -1e7, maximum: 1e7 },
159
- y: { type: 'number', minimum: -1e7, maximum: 1e7 },
160
- },
161
- },
162
- },
163
- },
164
- },
165
- revision: { type: 'string', minLength: 1, maxLength: 128 },
166
- verification: {
167
- type: ['object', 'null'],
168
- additionalProperties: false,
169
- properties: { status: { enum: ['verified', 'unverified', 'failed', 'pending'] } },
170
- },
171
- },
172
- ['kind', 'schemaVersion', 'design', 'envelope', 'entries', 'revision'],
173
- ),
174
- $defs: structuredClone(DESIGN_DOCUMENT_V1_SCHEMA.$defs),
175
- };
176
-
177
99
  /** @returns {ReturnType<typeof import('./workspace-contracts.d.mts').assertWorkspaceContract>} */
178
100
  export function assertWorkspaceContract(value, contract) {
179
101
  const errors = validateJson(value, contract);