Astryx config + integration API
Summary
Brings the Astryx config + integration API work (developed on xds-unprefix-integration) to main. This is a cohesive set of CLI changes establishing a strict, validated configuration surface, a first-class integration system, file-based codemods and static templates, plus the internal architecture to support them. main is merged in, so this includes the 0.1.2 release and the Shell page templates.
Scope note: this branch grew since it was opened — it now carries 17 feature PRs (98 files, ~+7500/−2900). The list below is the full, current scope.
Config + integration core
- Strict
AstryxConfig/AstryxIntegrationschemas (unknown keys rejected); new@astryxdesign/cli/integrationexport withcreateIntegration. (#3261) - Package-name-only integration resolution via a single conventional
astryx.integration.{ts,mjs,js}manifest; identity frompackage.json. - App config resolved as a sibling of the consumer
package.json. Projectconfiguration API — the single entry point for reading resolved config, components, templates, codemods, and issue routing (replaces the oldloadConfig), with a pluggable cache. (#3277)
Authoring APIs (new subpath exports)
@astryxdesign/cli/codemod—createCodemod/createConfigCodemod+ file-based integration codemod discovery inupgrade. (#3264)@astryxdesign/cli/template—createPageTemplate/createBlockTemplatewith type-driven, package-scoped template discovery. (#3263)
Commands
componentis package-ownership aware (--package, source resolution, package-qualified listings). (#3265)swizzlecopies integration-owned components, rewrites escaping imports to the owning package, and routes maintainer feedback through config / integration issue URLs. (#3267)validate-integration— new command + issue model for checking an integration package. (#3266)upgrade— skips misconfigured integrations with a warning instead of hard-failing;--skip-codemodflag; runs core codemods before loading config so a config codemod can repair an otherwise-invalid config, with dry-run guidance that surfaces the exact command to apply the fix. (#3277, #3295)- Removed the standalone
gap-reportcommand;swizzleprints a short feedback link instead. (#3255)
Config codemods
- Unified config-codemod execution on the shared
(file, api)runner used by integration codemods; removed the obsolete xds config-surface codemod (the fleet's@xds/*→@astryxdesign/*config rename is handled out-of-band). (#3286) - v0.1.3 config codemod migrating
astryx.configlayout.components→experimental.xle.components. (#3290)
Architecture / internals
- Shared
module-loaderutil for config / integration / codemod / template loading — one way to load user-authored modules: import, take the default export, validate against a schema at the load boundary.create*factories are now type-only (validation happens at load). (#3276, #3293) - XLE app-component registration moved into validated config under
experimental.xle.components. (#3275) component/template/upgradeprint a one-line, non-blocking warning when a configured integration has validation issues. (#3274)- Error-code type declarations aligned with runtime codes. (#3272)
Validation
Full CLI test suite green (1621 tests), pnpm build + verify-exports clean across all packages, typecheck and changeset gates pass. main was merged into the branch conflict-free and the merged result re-validated end to end (including the docsite XLE-playground removal from main, which is orthogonal to the CLI XLE work here).
Notes for reviewers
- Pre-1.0: all changesets are patch-level; merging this does not publish — publishing remains the separate manual release workflow.
- The branch's temporary CI trigger (used to run PR checks against the integration branch during development) was reverted, so
.github/workflows/ci.ymlis identical tomain.
The latest updates on your projects. Learn more about Vercel for GitHub.
| Project | Deployment | Actions | Updated (UTC) |
|---|---|---|---|
| astryx | Preview, Comment | Jul 1, 2026 3:25pm |
PR Analysis Report
📚 Storybook Preview
View Storybook for this PR GitHub Pages may take up to a minute to hydrate after deploy.
🧪 Sandbox Preview
View Sandbox for this PR GitHub Pages may take up to a minute to hydrate after deploy.
No new or modified components detected.
Bundle Size Summary
| Package | Size (ESM) | Size (CJS) | Gzipped |
|---|---|---|---|
| @astryxdesign/core | N/A | 4.6KB | 0B |
Accessibility Audit
Status: No accessibility violations detected.
Generated by PR Enrichment workflow | Storybook | Sandbox | View full report