Kotlin sdk treeshake common types#1395
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a comprehensive streaming parser for A2UI, supporting both v0.8 and v0.9 specifications. Key additions include the StreamingParser hierarchy, a SchemaInspector for heuristic component detection, and a TopologyAnalyzer for reachability analysis. The A2uiCatalog was also updated with logic to prune unused common types. Review feedback highlights several critical performance concerns in the parser implementation, such as inefficient string concatenation in buffers, frequent regex compilation during metadata sniffing, and redundant serialization when tracking yielded components.
263339c to
6a1ba9c
Compare
There was a problem hiding this comment.
The unit tests should be covered by the conformance tests in catalog.yaml.
If not, we should update the conformance tests.
56de6c0 to
d26e2fe
Compare
d26e2fe to
76aea88
Compare
Description
Treeshake common types schema
Port of Python SDK commit 1ea689d
Pre-launch Checklist
If you need help, consider asking for advice on the discussion board.