@openplanr/protocol 0.12.0 → 0.14.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 +9 -0
- package/package.json +8 -4
- package/registries/commands.json +12 -12
- package/registries/skills.json +131 -9
- package/schemas/v1.20.0/design-document.schema.json +379 -0
- package/schemas/v1.20.0/design-review-bundle.schema.json +692 -0
- package/schemas/v1.21.0/diagram-authoring-bundle.schema.json +1609 -0
- package/schemas/v1.21.0/diagram-edit-transaction.schema.json +4369 -0
- package/schemas/v1.21.0/diagram-review-bundle.schema.json +4047 -0
- package/schemas/v1.21.0/diagram-shape-definition.schema.json +457 -0
- package/src/browser-contracts.d.mts +5 -1
- package/src/browser-contracts.mjs +27 -0
- package/src/contracts.mjs +24 -6
- package/src/design-contracts.d.mts +25 -1
- package/src/design-contracts.mjs +119 -17
- package/src/design-publication-contracts.mjs +3 -1
- package/src/diagram-authoring-contracts.d.mts +2 -0
- package/src/generated/canonical-registries.mjs +143 -21
- package/src/index.d.mts +7 -0
- package/src/index.mjs +7 -0
- package/src/json-schema.mjs +313 -36
- package/src/registries.mjs +2 -0
- package/src/review-experience-contracts.d.mts +1 -0
- package/src/review-experience-contracts.mjs +35 -5
- package/src/shape-library-contracts.d.mts +57 -0
- package/src/shape-library-contracts.mjs +266 -0
- package/src/studio-presentation-contracts.d.mts +50 -2
- package/src/studio-presentation-contracts.mjs +285 -4
- package/src/workspace-contracts.mjs +3 -3
package/src/design-contracts.mjs
CHANGED
|
@@ -7,6 +7,16 @@ import { validateJson } from './json-schema.mjs';
|
|
|
7
7
|
*/
|
|
8
8
|
export const DESIGN_DOCUMENT_VERSION = '1.0.0';
|
|
9
9
|
|
|
10
|
+
/** Initial viewport height for content-sized frames.
|
|
11
|
+
* @type {typeof import('./design-contracts.d.mts').initialFrameHeight}
|
|
12
|
+
*/
|
|
13
|
+
export function initialFrameHeight(document) {
|
|
14
|
+
const fixed = document.frames.flatMap(({ height }) =>
|
|
15
|
+
typeof height === 'number' && Number.isInteger(height) ? [height] : [],
|
|
16
|
+
);
|
|
17
|
+
return fixed.length ? Math.max(...fixed) : 900;
|
|
18
|
+
}
|
|
19
|
+
|
|
10
20
|
const freeze = (value) => {
|
|
11
21
|
if (value && typeof value === 'object') {
|
|
12
22
|
for (const nested of Object.values(value)) freeze(nested);
|
|
@@ -15,12 +25,28 @@ const freeze = (value) => {
|
|
|
15
25
|
return value;
|
|
16
26
|
};
|
|
17
27
|
|
|
28
|
+
const FRAME_SCHEMA = {
|
|
29
|
+
type: 'array',
|
|
30
|
+
minItems: 1,
|
|
31
|
+
items: {
|
|
32
|
+
type: 'object',
|
|
33
|
+
additionalProperties: false,
|
|
34
|
+
required: ['id', 'label', 'width', 'height'],
|
|
35
|
+
properties: {
|
|
36
|
+
id: { $ref: '#/$defs/id' },
|
|
37
|
+
label: { $ref: '#/$defs/text' },
|
|
38
|
+
width: { type: 'integer', minimum: 1, maximum: 16384 },
|
|
39
|
+
height: { type: 'integer', minimum: 1, maximum: 16384 },
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
|
|
18
44
|
/**
|
|
19
45
|
* Portable source of truth for the packaged Protocol 1.9 schema. Rendering,
|
|
20
46
|
* file existence, symlink containment and revisions belong to the design domain.
|
|
21
|
-
* @type {typeof import('./design-contracts.d.mts').
|
|
47
|
+
* @type {typeof import('./design-contracts.d.mts').DESIGN_DOCUMENT_V1_SCHEMA}
|
|
22
48
|
*/
|
|
23
|
-
export const
|
|
49
|
+
export const DESIGN_DOCUMENT_V1_SCHEMA = freeze({
|
|
24
50
|
$schema: 'https://json-schema.org/draft/2020-12/schema',
|
|
25
51
|
$id: 'https://openplanr.dev/schemas/v1.9.0/design-document.schema.json',
|
|
26
52
|
'x-openplanr-contract': { id: 'design-document', version: '1.9.0' },
|
|
@@ -71,21 +97,7 @@ export const DESIGN_DOCUMENT_SCHEMA = freeze({
|
|
|
71
97
|
},
|
|
72
98
|
},
|
|
73
99
|
assets: { $ref: '#/$defs/paths' },
|
|
74
|
-
frames:
|
|
75
|
-
type: 'array',
|
|
76
|
-
minItems: 1,
|
|
77
|
-
items: {
|
|
78
|
-
type: 'object',
|
|
79
|
-
additionalProperties: false,
|
|
80
|
-
required: ['id', 'label', 'width', 'height'],
|
|
81
|
-
properties: {
|
|
82
|
-
id: { $ref: '#/$defs/id' },
|
|
83
|
-
label: { $ref: '#/$defs/text' },
|
|
84
|
-
width: { type: 'integer', minimum: 1, maximum: 16384 },
|
|
85
|
-
height: { type: 'integer', minimum: 1, maximum: 16384 },
|
|
86
|
-
},
|
|
87
|
-
},
|
|
88
|
-
},
|
|
100
|
+
frames: FRAME_SCHEMA,
|
|
89
101
|
screens: {
|
|
90
102
|
type: 'array',
|
|
91
103
|
minItems: 1,
|
|
@@ -163,6 +175,66 @@ export const DESIGN_DOCUMENT_SCHEMA = freeze({
|
|
|
163
175
|
},
|
|
164
176
|
});
|
|
165
177
|
|
|
178
|
+
/** @type {typeof import('./design-contracts.d.mts').DESIGN_DOCUMENT_SCHEMA} */
|
|
179
|
+
export const DESIGN_DOCUMENT_SCHEMA = freeze({
|
|
180
|
+
...DESIGN_DOCUMENT_V1_SCHEMA,
|
|
181
|
+
$id: 'https://openplanr.dev/schemas/v1.20.0/design-document.schema.json',
|
|
182
|
+
'x-openplanr-contract': { id: 'design-document', version: '1.20.0' },
|
|
183
|
+
properties: {
|
|
184
|
+
.../** @type {Record<string, unknown>} */ (DESIGN_DOCUMENT_V1_SCHEMA.properties),
|
|
185
|
+
frames: {
|
|
186
|
+
...FRAME_SCHEMA,
|
|
187
|
+
items: {
|
|
188
|
+
...FRAME_SCHEMA.items,
|
|
189
|
+
properties: {
|
|
190
|
+
...FRAME_SCHEMA.items.properties,
|
|
191
|
+
height: { anyOf: [{ type: 'integer', minimum: 1, maximum: 16384 }, { const: 'auto' }] },
|
|
192
|
+
},
|
|
193
|
+
},
|
|
194
|
+
},
|
|
195
|
+
layout: {
|
|
196
|
+
type: 'object',
|
|
197
|
+
additionalProperties: false,
|
|
198
|
+
properties: {
|
|
199
|
+
boards: {
|
|
200
|
+
type: 'object',
|
|
201
|
+
description:
|
|
202
|
+
'Keys are screenId, screenId/frameId or screenId/frameId/variantId; each ID must exist in the document.',
|
|
203
|
+
additionalProperties: {
|
|
204
|
+
type: 'object',
|
|
205
|
+
additionalProperties: false,
|
|
206
|
+
required: ['x', 'y'],
|
|
207
|
+
properties: {
|
|
208
|
+
x: { $ref: '#/$defs/coordinate' },
|
|
209
|
+
y: { $ref: '#/$defs/coordinate' },
|
|
210
|
+
title: { $ref: '#/$defs/text' },
|
|
211
|
+
},
|
|
212
|
+
},
|
|
213
|
+
},
|
|
214
|
+
sections: {
|
|
215
|
+
type: 'array',
|
|
216
|
+
items: {
|
|
217
|
+
type: 'object',
|
|
218
|
+
additionalProperties: false,
|
|
219
|
+
required: ['id', 'x', 'y', 'text'],
|
|
220
|
+
properties: {
|
|
221
|
+
id: { $ref: '#/$defs/id' },
|
|
222
|
+
x: { $ref: '#/$defs/coordinate' },
|
|
223
|
+
y: { $ref: '#/$defs/coordinate' },
|
|
224
|
+
text: { $ref: '#/$defs/text' },
|
|
225
|
+
maxW: { type: 'integer', minimum: 1, maximum: 16384 },
|
|
226
|
+
},
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
},
|
|
231
|
+
},
|
|
232
|
+
$defs: {
|
|
233
|
+
.../** @type {Record<string, unknown>} */ (DESIGN_DOCUMENT_V1_SCHEMA.$defs),
|
|
234
|
+
coordinate: { type: 'number', minimum: -1e7, maximum: 1e7 },
|
|
235
|
+
},
|
|
236
|
+
});
|
|
237
|
+
|
|
166
238
|
/**
|
|
167
239
|
* Validate structure plus stable identity and cross-reference constraints.
|
|
168
240
|
* @returns {ReturnType<typeof import('./design-contracts.d.mts').validateDesignDocument>}
|
|
@@ -200,6 +272,36 @@ export function validateDesignDocument(value) {
|
|
|
200
272
|
if (!screenIds.has(id)) errors.push(`$.variants[${index}].sources: unknown screen '${id}'`);
|
|
201
273
|
}
|
|
202
274
|
}
|
|
275
|
+
const frameIds = new Set(value.frames.map(({ id }) => id));
|
|
276
|
+
const variantIds = new Set(value.variants.map(({ id }) => id));
|
|
277
|
+
for (const [key, position] of Object.entries(value.layout?.boards ?? {})) {
|
|
278
|
+
const parts = key.split('/');
|
|
279
|
+
const path = `$.layout.boards['${key}']`;
|
|
280
|
+
if (parts.length > 3 || parts.some((id) => !/^[A-Za-z][A-Za-z0-9_-]{0,127}$/.test(id))) {
|
|
281
|
+
errors.push(`${path}: expected screenId, screenId/frameId or screenId/frameId/variantId`);
|
|
282
|
+
} else {
|
|
283
|
+
const [screenId, frameId, variantId] = parts;
|
|
284
|
+
if (!screenIds.has(screenId)) errors.push(`${path}: unknown screen '${screenId}'`);
|
|
285
|
+
if (frameId !== undefined && !frameIds.has(frameId))
|
|
286
|
+
errors.push(`${path}: unknown frame '${frameId}'`);
|
|
287
|
+
if (variantId !== undefined && !variantIds.has(variantId))
|
|
288
|
+
errors.push(`${path}: unknown variant '${variantId}'`);
|
|
289
|
+
}
|
|
290
|
+
for (const axis of ['x', 'y']) {
|
|
291
|
+
if (!Number.isFinite(position[axis]))
|
|
292
|
+
errors.push(`${path}.${axis}: expected a finite coordinate`);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
const sectionIds = new Set();
|
|
296
|
+
for (const [index, section] of (value.layout?.sections ?? []).entries()) {
|
|
297
|
+
if (sectionIds.has(section.id))
|
|
298
|
+
errors.push(`$.layout.sections[${index}].id: duplicate identity '${section.id}'`);
|
|
299
|
+
sectionIds.add(section.id);
|
|
300
|
+
for (const axis of ['x', 'y']) {
|
|
301
|
+
if (!Number.isFinite(section[axis]))
|
|
302
|
+
errors.push(`$.layout.sections[${index}].${axis}: expected a finite coordinate`);
|
|
303
|
+
}
|
|
304
|
+
}
|
|
203
305
|
const selected = value.variants.find(({ id }) => id === value.selectedVariant);
|
|
204
306
|
if (!selected) errors.push(`$.selectedVariant: unknown variant '${value.selectedVariant}'`);
|
|
205
307
|
else if (selected.status !== 'ready')
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
/** Company publication constraints over the existing, compatible review bundle. */
|
|
3
3
|
|
|
4
4
|
import { canonicalizeJson, sha256Hex } from './canonical-json.mjs';
|
|
5
|
+
import { initialFrameHeight } from './design-contracts.mjs';
|
|
5
6
|
import { assertDesignReviewBundle } from './review-experience-contracts.mjs';
|
|
6
7
|
|
|
7
8
|
/** @type {typeof import('./design-publication-contracts.d.mts').COMPANY_DESIGN_MAX_BYTES} */
|
|
@@ -120,7 +121,8 @@ export function assertCompanyDesignBundle(value) {
|
|
|
120
121
|
fail('entries must uniquely map artboards to artifacts.');
|
|
121
122
|
usedArtifacts.add(entry.artifactId);
|
|
122
123
|
combinations.add(key);
|
|
123
|
-
|
|
124
|
+
const height = frame.height === 'auto' ? initialFrameHeight(design) : frame.height;
|
|
125
|
+
if (artifact.viewport.width !== frame.width || artifact.viewport.height !== height)
|
|
124
126
|
fail('artifact viewport must match its declared frame.');
|
|
125
127
|
}
|
|
126
128
|
closed(envelope.viewer, ['mode', 'activeArtifactId', 'presentation'], 'viewer');
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ShapeReference } from './shape-library-contracts.mjs';
|
|
1
2
|
export type DiagramAuthoringDigest = `sha256:${string}`;
|
|
2
3
|
export type DiagramAuthoringProfile = 'flowchart' | 'process' | 'swimlane' | 'architecture';
|
|
3
4
|
export type DiagramAuthoringNodeKind =
|
|
@@ -110,6 +111,7 @@ export interface DiagramRoute {
|
|
|
110
111
|
points: Array<{ x: number; y: number }>;
|
|
111
112
|
}
|
|
112
113
|
export interface DiagramAppearance {
|
|
114
|
+
shapeRef?: ShapeReference;
|
|
113
115
|
shape:
|
|
114
116
|
| 'rectangle'
|
|
115
117
|
| 'rounded-rectangle'
|
|
@@ -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:cdb7e033ae890130d47d06936d0e5b10f38a4b803c39f62abef72add38160e1e"
|
|
1469
1469
|
},
|
|
1470
1470
|
"authorityClass": "workflow",
|
|
1471
1471
|
"machineJson": false,
|
|
@@ -1507,7 +1507,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
1507
1507
|
"ownerPackage": "openplanr",
|
|
1508
1508
|
"source": {
|
|
1509
1509
|
"path": "skills/planr-plan/SKILL.md",
|
|
1510
|
-
"digest": "sha256:
|
|
1510
|
+
"digest": "sha256:ee27dc8136cada6ffed75baa68ebdfd12c4d6414b069d4c89e627e4ec8beb68e"
|
|
1511
1511
|
},
|
|
1512
1512
|
"authorityClass": "workflow",
|
|
1513
1513
|
"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:70f33f5d875899bb2c2b861b6c880aebda58c071d9c11abd3712362318974f15"
|
|
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:
|
|
1636
|
+
"digest": "sha256:cef1f26019ce66c7caf2cfec5c995c96e259e40e1c893e8bcfd7ad54c56c3f39"
|
|
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:
|
|
1720
|
+
"digest": "sha256:70f33f5d875899bb2c2b861b6c880aebda58c071d9c11abd3712362318974f15"
|
|
1721
1721
|
},
|
|
1722
1722
|
"authorityClass": "workflow",
|
|
1723
1723
|
"machineJson": true,
|
|
@@ -1738,7 +1738,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
1738
1738
|
"ownerPackage": "openplanr",
|
|
1739
1739
|
"source": {
|
|
1740
1740
|
"path": "skills/planr-plan/SKILL.md",
|
|
1741
|
-
"digest": "sha256:
|
|
1741
|
+
"digest": "sha256:ee27dc8136cada6ffed75baa68ebdfd12c4d6414b069d4c89e627e4ec8beb68e"
|
|
1742
1742
|
},
|
|
1743
1743
|
"authorityClass": "workflow",
|
|
1744
1744
|
"machineJson": false,
|
|
@@ -2179,7 +2179,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
2179
2179
|
"ownerPackage": "planr-pipeline",
|
|
2180
2180
|
"source": {
|
|
2181
2181
|
"path": "skills/planr-design/SKILL.md",
|
|
2182
|
-
"digest": "sha256:
|
|
2182
|
+
"digest": "sha256:d4f027660fe2cc6e2a1bce254916fe65d01d0ad484f96eebb13f4711685143b8"
|
|
2183
2183
|
},
|
|
2184
2184
|
"authorityClass": "compatibility-router",
|
|
2185
2185
|
"machineJson": false,
|
|
@@ -2242,7 +2242,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
2242
2242
|
"ownerPackage": "planr-pipeline",
|
|
2243
2243
|
"source": {
|
|
2244
2244
|
"path": "skills/planr-plan/SKILL.md",
|
|
2245
|
-
"digest": "sha256:
|
|
2245
|
+
"digest": "sha256:ee27dc8136cada6ffed75baa68ebdfd12c4d6414b069d4c89e627e4ec8beb68e"
|
|
2246
2246
|
},
|
|
2247
2247
|
"authorityClass": "compatibility-router",
|
|
2248
2248
|
"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:a1f65ddec4596070d9627e40d3cb4a1b59470bc1dd97ed68b1962aa30224b6ad"
|
|
2267
2267
|
},
|
|
2268
2268
|
"authorityClass": "compatibility-router",
|
|
2269
2269
|
"machineJson": false,
|
|
@@ -2284,7 +2284,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
2284
2284
|
"ownerPackage": "planr-pipeline",
|
|
2285
2285
|
"source": {
|
|
2286
2286
|
"path": "skills/planr-status/SKILL.md",
|
|
2287
|
-
"digest": "sha256:
|
|
2287
|
+
"digest": "sha256:09683973f4415f5356e9ab57b61df93106c4a2bc886e8b64e409fcfb539ad885"
|
|
2288
2288
|
},
|
|
2289
2289
|
"authorityClass": "compatibility-router",
|
|
2290
2290
|
"machineJson": false,
|
|
@@ -2305,7 +2305,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
2305
2305
|
"ownerPackage": "planr-pipeline",
|
|
2306
2306
|
"source": {
|
|
2307
2307
|
"path": "skills/planr-sync/SKILL.md",
|
|
2308
|
-
"digest": "sha256:
|
|
2308
|
+
"digest": "sha256:4fb542bc7a0685904b6d6f58ec9fae3c539531793e1933474fbc3c3d34702e24"
|
|
2309
2309
|
},
|
|
2310
2310
|
"authorityClass": "compatibility-router",
|
|
2311
2311
|
"machineJson": false,
|
|
@@ -3099,7 +3099,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
3099
3099
|
]
|
|
3100
3100
|
}
|
|
3101
3101
|
],
|
|
3102
|
-
"documentDigest": "sha256:
|
|
3102
|
+
"documentDigest": "sha256:7f82307cddbb39e34a8c2399a6fbb950f0e1a293756201cc46896e7dc59a0edc"
|
|
3103
3103
|
},
|
|
3104
3104
|
"skills.json": {
|
|
3105
3105
|
"kind": "skill-catalog",
|
|
@@ -3476,6 +3476,67 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
3476
3476
|
"evaluation/skills/migrations/planr-cmo-review.json"
|
|
3477
3477
|
]
|
|
3478
3478
|
},
|
|
3479
|
+
{
|
|
3480
|
+
"skillId": "planr-connect",
|
|
3481
|
+
"skillVersion": "1.0.0",
|
|
3482
|
+
"description": "Report which chat, project tracker and source control connections the host has, and guide connecting the missing ones through the host. Use when the user wants to connect a service for OpenPlanr or asks what is connected.",
|
|
3483
|
+
"lifecycle": "active",
|
|
3484
|
+
"authorityClass": "diagnostic",
|
|
3485
|
+
"source": "skills/planr-connect/openplanr.skill.json",
|
|
3486
|
+
"sourceDigest": "sha256:e231e5a446e409f860079f4df07c7abb5d160f35b578c4252516094e100d3994",
|
|
3487
|
+
"triggerPolicy": {
|
|
3488
|
+
"include": [
|
|
3489
|
+
"Connect chat, a project tracker or source control for OpenPlanr",
|
|
3490
|
+
"Check which services OpenPlanr can reach through the host's connections"
|
|
3491
|
+
],
|
|
3492
|
+
"exclude": [
|
|
3493
|
+
"Diagnose OpenPlanr installation or runtime health",
|
|
3494
|
+
"Synchronize planning artifacts with a tracker"
|
|
3495
|
+
],
|
|
3496
|
+
"deferTo": []
|
|
3497
|
+
},
|
|
3498
|
+
"contracts": {
|
|
3499
|
+
"inputs": [],
|
|
3500
|
+
"outputs": [
|
|
3501
|
+
{
|
|
3502
|
+
"id": "connect-result",
|
|
3503
|
+
"version": "1.0.0"
|
|
3504
|
+
}
|
|
3505
|
+
]
|
|
3506
|
+
},
|
|
3507
|
+
"cliRequirements": [],
|
|
3508
|
+
"ruleIds": [
|
|
3509
|
+
"R1",
|
|
3510
|
+
"R5",
|
|
3511
|
+
"R7"
|
|
3512
|
+
],
|
|
3513
|
+
"contributionManifestRefs": [
|
|
3514
|
+
"packages/skill-runtime/contributions/workflows.json"
|
|
3515
|
+
],
|
|
3516
|
+
"hosts": [
|
|
3517
|
+
{
|
|
3518
|
+
"host": "claude-code",
|
|
3519
|
+
"entrypoint": "/planr:connect",
|
|
3520
|
+
"path": "dist/plugins/claude/openplanr/skills/connect/SKILL.md"
|
|
3521
|
+
},
|
|
3522
|
+
{
|
|
3523
|
+
"host": "codex",
|
|
3524
|
+
"entrypoint": "$planr:connect",
|
|
3525
|
+
"path": "dist/plugins/openai/openplanr/skills/connect/SKILL.md"
|
|
3526
|
+
},
|
|
3527
|
+
{
|
|
3528
|
+
"host": "cursor",
|
|
3529
|
+
"entrypoint": "planr-connect",
|
|
3530
|
+
"path": "dist/plugins/cursor/openplanr/rules/planr-connect.mdc"
|
|
3531
|
+
}
|
|
3532
|
+
],
|
|
3533
|
+
"testRefs": [
|
|
3534
|
+
"tests/protocol/skill-catalog.test.mjs"
|
|
3535
|
+
],
|
|
3536
|
+
"certificationRefs": [
|
|
3537
|
+
"evaluation/skills/migrations/planr-connect.json"
|
|
3538
|
+
]
|
|
3539
|
+
},
|
|
3479
3540
|
{
|
|
3480
3541
|
"skillId": "planr-coo-review",
|
|
3481
3542
|
"skillVersion": "2.0.1",
|
|
@@ -3797,7 +3858,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
3797
3858
|
"lifecycle": "active",
|
|
3798
3859
|
"authorityClass": "planning-write",
|
|
3799
3860
|
"source": "skills/planr-design/openplanr.skill.json",
|
|
3800
|
-
"sourceDigest": "sha256:
|
|
3861
|
+
"sourceDigest": "sha256:99baa3d561a0e0e603c8617e1ccce8e0cab27c6cd1304e47f6fd57379076bb95",
|
|
3801
3862
|
"triggerPolicy": {
|
|
3802
3863
|
"include": [
|
|
3803
3864
|
"Create an initial product design direction",
|
|
@@ -3858,7 +3919,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
3858
3919
|
"lifecycle": "active",
|
|
3859
3920
|
"authorityClass": "planning-write",
|
|
3860
3921
|
"source": "skills/planr-design-loop/openplanr.skill.json",
|
|
3861
|
-
"sourceDigest": "sha256:
|
|
3922
|
+
"sourceDigest": "sha256:a1c876dc9bd9770ea7d5c43c8696f3be2e252dd52d084e9411b1d4842f25e636",
|
|
3862
3923
|
"triggerPolicy": {
|
|
3863
3924
|
"include": [
|
|
3864
3925
|
"Explore multiple design directions or variants",
|
|
@@ -3919,7 +3980,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
3919
3980
|
"lifecycle": "active",
|
|
3920
3981
|
"authorityClass": "review-evidence",
|
|
3921
3982
|
"source": "skills/planr-design-review/openplanr.skill.json",
|
|
3922
|
-
"sourceDigest": "sha256:
|
|
3983
|
+
"sourceDigest": "sha256:96d799efff004279b4726b0a285d42b660e3aff5527aa8e2a7ddf8fcee1a67c4",
|
|
3923
3984
|
"triggerPolicy": {
|
|
3924
3985
|
"include": [
|
|
3925
3986
|
"Review or critique an existing OpenPlanr design",
|
|
@@ -4107,7 +4168,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
4107
4168
|
"lifecycle": "active",
|
|
4108
4169
|
"authorityClass": "diagnostic",
|
|
4109
4170
|
"source": "skills/planr-investigate/openplanr.skill.json",
|
|
4110
|
-
"sourceDigest": "sha256:
|
|
4171
|
+
"sourceDigest": "sha256:ad1422ac497f638b739d362a93af8eddc9cd0634c8a737a2c408023bd5cb9797",
|
|
4111
4172
|
"triggerPolicy": {
|
|
4112
4173
|
"include": [
|
|
4113
4174
|
"Investigate a bug, regression, error, or unexplained behavior",
|
|
@@ -4527,6 +4588,67 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
4527
4588
|
"evaluation/skills/migrations/planr-release.json"
|
|
4528
4589
|
]
|
|
4529
4590
|
},
|
|
4591
|
+
{
|
|
4592
|
+
"skillId": "planr-share",
|
|
4593
|
+
"skillVersion": "1.0.0",
|
|
4594
|
+
"description": "Share a status report, sprint note or release notes with the team as a chat message draft that the user approves and sends. Use when the user asks to post a planning update to chat.",
|
|
4595
|
+
"lifecycle": "active",
|
|
4596
|
+
"authorityClass": "external-write",
|
|
4597
|
+
"source": "skills/planr-share/openplanr.skill.json",
|
|
4598
|
+
"sourceDigest": "sha256:832195e643d77f5457d468a530c76512935b4df0d6acf7ab5f3d88b06338c4b2",
|
|
4599
|
+
"triggerPolicy": {
|
|
4600
|
+
"include": [
|
|
4601
|
+
"Share the delivery status, sprint note or release notes with the team in chat",
|
|
4602
|
+
"Post a planning update to a chat channel as a draft"
|
|
4603
|
+
],
|
|
4604
|
+
"exclude": [
|
|
4605
|
+
"Report delivery status without sharing it",
|
|
4606
|
+
"Write or publish release notes"
|
|
4607
|
+
],
|
|
4608
|
+
"deferTo": []
|
|
4609
|
+
},
|
|
4610
|
+
"contracts": {
|
|
4611
|
+
"inputs": [],
|
|
4612
|
+
"outputs": [
|
|
4613
|
+
{
|
|
4614
|
+
"id": "share-result",
|
|
4615
|
+
"version": "1.0.0"
|
|
4616
|
+
}
|
|
4617
|
+
]
|
|
4618
|
+
},
|
|
4619
|
+
"cliRequirements": [],
|
|
4620
|
+
"ruleIds": [
|
|
4621
|
+
"R1",
|
|
4622
|
+
"R5",
|
|
4623
|
+
"R7"
|
|
4624
|
+
],
|
|
4625
|
+
"contributionManifestRefs": [
|
|
4626
|
+
"packages/skill-runtime/contributions/workflows.json"
|
|
4627
|
+
],
|
|
4628
|
+
"hosts": [
|
|
4629
|
+
{
|
|
4630
|
+
"host": "claude-code",
|
|
4631
|
+
"entrypoint": "/planr:share",
|
|
4632
|
+
"path": "dist/plugins/claude/openplanr/skills/share/SKILL.md"
|
|
4633
|
+
},
|
|
4634
|
+
{
|
|
4635
|
+
"host": "codex",
|
|
4636
|
+
"entrypoint": "$planr:share",
|
|
4637
|
+
"path": "dist/plugins/openai/openplanr/skills/share/SKILL.md"
|
|
4638
|
+
},
|
|
4639
|
+
{
|
|
4640
|
+
"host": "cursor",
|
|
4641
|
+
"entrypoint": "planr-share",
|
|
4642
|
+
"path": "dist/plugins/cursor/openplanr/rules/planr-share.mdc"
|
|
4643
|
+
}
|
|
4644
|
+
],
|
|
4645
|
+
"testRefs": [
|
|
4646
|
+
"tests/protocol/skill-catalog.test.mjs"
|
|
4647
|
+
],
|
|
4648
|
+
"certificationRefs": [
|
|
4649
|
+
"evaluation/skills/migrations/planr-share.json"
|
|
4650
|
+
]
|
|
4651
|
+
},
|
|
4530
4652
|
{
|
|
4531
4653
|
"skillId": "planr-ship",
|
|
4532
4654
|
"skillVersion": "1.2.1",
|
|
@@ -4534,7 +4656,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
4534
4656
|
"lifecycle": "active",
|
|
4535
4657
|
"authorityClass": "implementation",
|
|
4536
4658
|
"source": "skills/planr-ship/openplanr.skill.json",
|
|
4537
|
-
"sourceDigest": "sha256:
|
|
4659
|
+
"sourceDigest": "sha256:2fe2353469bb1fbb77029334fcc51b94240bb3baf56c69c5829b47908e2d7d33",
|
|
4538
4660
|
"triggerPolicy": {
|
|
4539
4661
|
"include": [
|
|
4540
4662
|
"Implement a plan, specification, task, fix, or clearly stated local request",
|
|
@@ -4666,7 +4788,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
4666
4788
|
"lifecycle": "active",
|
|
4667
4789
|
"authorityClass": "planning-write",
|
|
4668
4790
|
"source": "skills/planr-sprint/openplanr.skill.json",
|
|
4669
|
-
"sourceDigest": "sha256:
|
|
4791
|
+
"sourceDigest": "sha256:95efe995ab6cd8ed38b09b6d503223d34ea4111de92117346c7984603502b895",
|
|
4670
4792
|
"triggerPolicy": {
|
|
4671
4793
|
"include": [
|
|
4672
4794
|
"Refine the open backlog and select what fits the next sprint or release cut",
|
|
@@ -4728,7 +4850,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
4728
4850
|
"lifecycle": "active",
|
|
4729
4851
|
"authorityClass": "read-only-view",
|
|
4730
4852
|
"source": "skills/planr-status/openplanr.skill.json",
|
|
4731
|
-
"sourceDigest": "sha256:
|
|
4853
|
+
"sourceDigest": "sha256:e6c422eacd009a5db91e038fded747cfe25badae06e5cbde13775982dd258e01",
|
|
4732
4854
|
"triggerPolicy": {
|
|
4733
4855
|
"include": [
|
|
4734
4856
|
"Report current OpenPlanr delivery status or outstanding work",
|
|
@@ -4789,7 +4911,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
4789
4911
|
"lifecycle": "active",
|
|
4790
4912
|
"authorityClass": "planning-write",
|
|
4791
4913
|
"source": "skills/planr-sync/openplanr.skill.json",
|
|
4792
|
-
"sourceDigest": "sha256:
|
|
4914
|
+
"sourceDigest": "sha256:c8061714181e6f4e330c65ba033a3586bf4118352e778865e3e3e0e802ad2cf6",
|
|
4793
4915
|
"triggerPolicy": {
|
|
4794
4916
|
"include": [
|
|
4795
4917
|
"Audit planning artifacts for graph, schema, or protocol drift",
|
|
@@ -4845,7 +4967,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
4845
4967
|
}
|
|
4846
4968
|
],
|
|
4847
4969
|
"compatibilityAliases": [],
|
|
4848
|
-
"documentDigest": "sha256:
|
|
4970
|
+
"documentDigest": "sha256:7201c5ca3f0b6820214e18c4f6a5268e30b9b5be897ff092bb95e196230dbf0b"
|
|
4849
4971
|
},
|
|
4850
4972
|
"outputs.json": {
|
|
4851
4973
|
"kind": "output-catalog",
|
package/src/index.d.mts
CHANGED
|
@@ -13,6 +13,7 @@ export * from './json-schema.mjs';
|
|
|
13
13
|
export * from './large-object-contracts.mjs';
|
|
14
14
|
export * from './planning-contracts.mjs';
|
|
15
15
|
export * from './registries.mjs';
|
|
16
|
+
export * from './shape-library-contracts.mjs';
|
|
16
17
|
export * from './sharing-security-contracts.mjs';
|
|
17
18
|
export {
|
|
18
19
|
assertDiagramPresentation as assertDiagramReviewPresentation,
|
|
@@ -21,11 +22,17 @@ export {
|
|
|
21
22
|
assertVersionedDiagramEditTransaction,
|
|
22
23
|
assertVersionedDiagramReviewBundle,
|
|
23
24
|
DIAGRAM_AUTHORING_BUNDLE_V11_SCHEMA,
|
|
25
|
+
DIAGRAM_AUTHORING_BUNDLE_V12_SCHEMA,
|
|
24
26
|
DIAGRAM_EDIT_TRANSACTION_V11_SCHEMA,
|
|
27
|
+
DIAGRAM_EDIT_TRANSACTION_V12_SCHEMA,
|
|
25
28
|
DIAGRAM_PRESENTATION_SCHEMA,
|
|
26
29
|
DIAGRAM_REVIEW_BUNDLE_V11_SCHEMA,
|
|
30
|
+
DIAGRAM_REVIEW_BUNDLE_V12_SCHEMA,
|
|
31
|
+
diagramAuthoringVersionFields,
|
|
27
32
|
legacyDiagramAuthoringProjection,
|
|
28
33
|
normalizeDiagramPresentation,
|
|
34
|
+
supportsDiagramShapeLibrary,
|
|
35
|
+
supportsDiagramStudioPresentation,
|
|
29
36
|
validateVersionedDiagramAuthoringBundle,
|
|
30
37
|
validateVersionedDiagramEditTransaction,
|
|
31
38
|
versionedDiagramAuthoringBundleDigest,
|
package/src/index.mjs
CHANGED
|
@@ -58,6 +58,7 @@ export {
|
|
|
58
58
|
routeLegacyTask,
|
|
59
59
|
validateCanonicalRegistries,
|
|
60
60
|
} from './registries.mjs';
|
|
61
|
+
export * from './shape-library-contracts.mjs';
|
|
61
62
|
export * from './sharing-security-contracts.mjs';
|
|
62
63
|
export {
|
|
63
64
|
assertDiagramPresentation as assertDiagramReviewPresentation,
|
|
@@ -66,11 +67,17 @@ export {
|
|
|
66
67
|
assertVersionedDiagramEditTransaction,
|
|
67
68
|
assertVersionedDiagramReviewBundle,
|
|
68
69
|
DIAGRAM_AUTHORING_BUNDLE_V11_SCHEMA,
|
|
70
|
+
DIAGRAM_AUTHORING_BUNDLE_V12_SCHEMA,
|
|
69
71
|
DIAGRAM_EDIT_TRANSACTION_V11_SCHEMA,
|
|
72
|
+
DIAGRAM_EDIT_TRANSACTION_V12_SCHEMA,
|
|
70
73
|
DIAGRAM_PRESENTATION_SCHEMA,
|
|
71
74
|
DIAGRAM_REVIEW_BUNDLE_V11_SCHEMA,
|
|
75
|
+
DIAGRAM_REVIEW_BUNDLE_V12_SCHEMA,
|
|
76
|
+
diagramAuthoringVersionFields,
|
|
72
77
|
legacyDiagramAuthoringProjection,
|
|
73
78
|
normalizeDiagramPresentation,
|
|
79
|
+
supportsDiagramShapeLibrary,
|
|
80
|
+
supportsDiagramStudioPresentation,
|
|
74
81
|
validateVersionedDiagramAuthoringBundle,
|
|
75
82
|
validateVersionedDiagramEditTransaction,
|
|
76
83
|
versionedDiagramAuthoringBundleDigest,
|