@openplanr/protocol 0.13.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.
@@ -1,5 +1,5 @@
1
1
  // @ts-check
2
- import { DESIGN_DOCUMENT_SCHEMA } from './design-contracts.mjs';
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(DESIGN_DOCUMENT_SCHEMA.properties)
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(DESIGN_DOCUMENT_SCHEMA.$defs),
174
+ $defs: structuredClone(DESIGN_DOCUMENT_V1_SCHEMA.$defs),
175
175
  };
176
176
 
177
177
  /** @returns {ReturnType<typeof import('./workspace-contracts.d.mts').assertWorkspaceContract>} */