@auto-engineer/narrative 1.152.0 → 1.153.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/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-test.log +3 -3
- package/.turbo/turbo-type-check.log +1 -1
- package/CHANGELOG.md +17 -0
- package/dist/src/schema.d.ts +33 -4909
- package/dist/src/schema.d.ts.map +1 -1
- package/dist/src/schema.js +0 -1
- package/dist/src/schema.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/src/schema.specs.ts +8 -11
- package/src/schema.ts +0 -1
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/
|
|
30
|
-
"@auto-engineer/
|
|
31
|
-
"@auto-engineer/
|
|
29
|
+
"@auto-engineer/file-store": "1.153.0",
|
|
30
|
+
"@auto-engineer/id": "1.153.0",
|
|
31
|
+
"@auto-engineer/message-bus": "1.153.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.
|
|
41
|
+
"version": "1.153.0",
|
|
42
42
|
"scripts": {
|
|
43
43
|
"build": "tsx scripts/build.ts",
|
|
44
44
|
"test": "vitest run --reporter=dot",
|
package/src/schema.specs.ts
CHANGED
|
@@ -678,21 +678,18 @@ describe('ComponentDefinitionSchema', () => {
|
|
|
678
678
|
});
|
|
679
679
|
});
|
|
680
680
|
|
|
681
|
-
describe('DesignSchema
|
|
682
|
-
it('
|
|
681
|
+
describe('DesignSchema', () => {
|
|
682
|
+
it('does not include ui (ui lives in client.ui now)', () => {
|
|
683
683
|
const design = {
|
|
684
|
-
ui: {
|
|
685
|
-
|
|
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
|
-
|
|
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('
|
|
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
|
|