@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @ts-check
|
|
2
|
-
import {
|
|
2
|
+
import { DESIGN_DOCUMENT_V1_SCHEMA } from './design-contracts.mjs';
|
|
3
3
|
import { validateJson } from './json-schema.mjs';
|
|
4
4
|
|
|
5
5
|
/** @type {typeof import('./workspace-contracts.d.mts').DESIGN_WORKSPACE_VERSION} */
|
|
@@ -98,7 +98,7 @@ export const DESIGN_WORKSPACE_SCHEMA = schema('design-review-workspace', {
|
|
|
98
98
|
// design-system references are deliberately not part of a published workspace.
|
|
99
99
|
const designProperties =
|
|
100
100
|
/** @type {Record<string, { items: { properties: Record<string, unknown>; required: string[] } }>} */ (
|
|
101
|
-
structuredClone(
|
|
101
|
+
structuredClone(DESIGN_DOCUMENT_V1_SCHEMA.properties)
|
|
102
102
|
);
|
|
103
103
|
for (const key of ['kind', 'schemaVersion', 'brief', 'assets', 'designSystem'])
|
|
104
104
|
delete designProperties[key];
|
|
@@ -171,7 +171,7 @@ export const DESIGN_REVIEW_BUNDLE_SCHEMA = {
|
|
|
171
171
|
},
|
|
172
172
|
['kind', 'schemaVersion', 'design', 'envelope', 'entries', 'revision'],
|
|
173
173
|
),
|
|
174
|
-
$defs: structuredClone(
|
|
174
|
+
$defs: structuredClone(DESIGN_DOCUMENT_V1_SCHEMA.$defs),
|
|
175
175
|
};
|
|
176
176
|
|
|
177
177
|
/** @returns {ReturnType<typeof import('./workspace-contracts.d.mts').assertWorkspaceContract>} */
|