@auto-engineer/narrative 1.152.0 → 1.154.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
@@ -26,9 +26,9 @@
26
26
  "typescript": "^5.9.2",
27
27
  "zod": "^3.22.4",
28
28
  "zod-to-json-schema": "^3.22.3",
29
- "@auto-engineer/id": "1.152.0",
30
- "@auto-engineer/message-bus": "1.152.0",
31
- "@auto-engineer/file-store": "1.152.0"
29
+ "@auto-engineer/file-store": "1.154.0",
30
+ "@auto-engineer/id": "1.154.0",
31
+ "@auto-engineer/message-bus": "1.154.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/node": "^20.0.0",
@@ -38,7 +38,7 @@
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  },
41
- "version": "1.152.0",
41
+ "version": "1.154.0",
42
42
  "scripts": {
43
43
  "build": "tsx scripts/build.ts",
44
44
  "test": "vitest run --reporter=dot",
@@ -678,21 +678,18 @@ describe('ComponentDefinitionSchema', () => {
678
678
  });
679
679
  });
680
680
 
681
- describe('DesignSchema ui field', () => {
682
- it('should accept design with ui containing a spec', () => {
681
+ describe('DesignSchema', () => {
682
+ it('does not include ui (ui lives in client.ui now)', () => {
683
683
  const design = {
684
- ui: {
685
- spec: {
686
- root: 'page',
687
- elements: { page: { type: 'Stack', children: [] } },
688
- state: { title: 'Dashboard' },
689
- },
690
- },
684
+ ui: { spec: { root: 'page', elements: {}, state: {} } },
685
+ imageAsset: { url: 'https://example.com/img.png' },
691
686
  };
692
- expect(DesignSchema.parse(design)).toEqual(design);
687
+ const parsed = DesignSchema.parse(design);
688
+ expect(parsed).toEqual({ imageAsset: { url: 'https://example.com/img.png' } });
689
+ expect('ui' in parsed).toBe(false);
693
690
  });
694
691
 
695
- it('should accept design without ui', () => {
692
+ it('accepts design without ui', () => {
696
693
  expect(DesignSchema.parse({})).toEqual({});
697
694
  });
698
695
  });
package/src/schema.ts CHANGED
@@ -262,7 +262,6 @@ export const DesignSchema = z
262
262
  .object({
263
263
  imageAsset: ImageAssetSchema.optional().describe('Primary image asset for this entity'),
264
264
  metadata: z.record(z.unknown()).optional().describe('Flexible design metadata'),
265
- ui: UISchema.optional().describe('UI composition for this entity'),
266
265
  })
267
266
  .describe('Design fields for visual representation');
268
267