Skip to content

Commit bbc927f

Browse files
refactor: extract framework-agnostic core into @a2ui/core package
Extract the data processing, type definitions, guards, and message handling logic from @a2ui/lit into a new @a2ui/core package. This enables React, Vue, and other framework developers to integrate A2UI without reimplementing core functionality. The new @a2ui/core package includes: - A2uiMessageProcessor for processing server-to-client messages - Type definitions for all A2UI components and primitives - Type guards for runtime type checking - Event type definitions The @a2ui/lit and @a2ui/angular packages now depend on @a2ui/core and re-export its types for backwards compatibility.
1 parent 21c6d27 commit bbc927f

29 files changed

Lines changed: 3794 additions & 1820 deletions

renderers/angular/ng-package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
"lib": {
55
"entryFile": "src/public-api.ts"
66
},
7-
"allowedNonPeerDependencies": ["markdown-it", "@a2ui/lit"]
7+
"allowedNonPeerDependencies": ["markdown-it", "@a2ui/lit", "@a2ui/core"]
88
}

renderers/angular/package-lock.json

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

renderers/angular/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"build": "ng build && node postprocess-build.mjs"
66
},
77
"dependencies": {
8+
"@a2ui/core": "file:../core",
89
"@a2ui/lit": "file:../lit",
910
"markdown-it": "^14.1.0",
1011
"tslib": "^2.3.0"

0 commit comments

Comments
 (0)