AI Tooling - #302
Draft
jason-capsule42 wants to merge 10 commits into
Draft
Conversation
…B#1592463 Adds a new 'auro context' command that prints an AI-ready context document describing the Auro Design System — component list, package names, usage patterns, and rules — for priming AI coding assistants (Claude, Cursor, Copilot, etc.). - src/static/auroContext.ts: the context document, exposed via a new #static/* import alias - src/commands/context.ts: the command, supporting stdout and --output <file> - Wires #static/* into package.json imports, tsconfig paths, and the esbuild build config - Documents the command in the README Inspired by prior art in Meta's Astryx design system (npx astryx init).
…92463 Addresses review findings — the doc shipped examples that would mislead the AI assistants it exists to ground: - auro-formkit: label is a slot, not an attribute; import via subpath (no root export) instead of a bare package import - auro-icon: use a real icon name (plane-side-fill) and drop the non-existent customSize property - design tokens: correct prefixes to --ds-basic-* / --ds-advanced-* - auro-pane and auro-nav: accurate descriptions
Reconcile the component set with llms.txt and the auro cem component list so all three sources agree.
…592463 Adds 'auro cem' which fetches each published Auro component's custom-elements.json from unpkg and merges them into a single aggregated Custom Elements Manifest. Components that don't publish a manifest are skipped with a warning. Source module paths are namespaced by package so consumers can trace each declaration to its component. Produces one machine-readable API index for IDEs, docs tooling, and AI assistants. - src/static/auroComponents.ts: list of component packages to aggregate - src/commands/cem.ts: the command (--output, --aggregate) - registers the command and documents it in the README
…B#1592463 Addresses review feedback on the cem aggregation command: - Deep-namespace internal module references (exports' declaration.module, references, etc.), not just the top-level module path, so the merged manifest's internal references stay valid. External references (those with a package) are left untouched. - Distinguish genuine 404s (component has no CEM yet) from transient network/5xx failures; exit non-zero when the aggregate is incomplete due to transient errors so CI can retry. - Defer skip messages until after the spinner so output isn't garbled. - Warn on mixed CEM schema versions. - Drop the no-op --aggregate flag and the empty readme field. - Correct the component-list doc comment (not all components publish a CEM).
feat(context): add auro context command for AI assistant onboarding
feat(cem): add auro cem command to aggregate component manifests
Reviewer's GuideAdds AI-focused CLI tooling to the Auro Design System CLI: a context generator, a Custom Elements Manifest aggregator, and a per-component API lookup command, backed by new static metadata files and updated module resolution aliases. Sequence diagram for the new auro component CLI API lookupsequenceDiagram
actor User
participant AuroCLI
participant Unpkg
User->>AuroCLI: auro component <name> [commander action]
AuroCLI->>AuroCLI: toPackageName(name)
AuroCLI->>Unpkg: fetch custom-elements.json
Unpkg-->>AuroCLI: manifest JSON or 404/error
AuroCLI->>AuroCLI: formatDeclaration(pkg, declaration)
alt options.json
AuroCLI->>User: write JSON declarations to stdout
else formatted text
AuroCLI->>User: write formatted API summary to stdout
AuroCLI->>User: Logger.info full docs URL
end
Sequence diagram for the new auro cem CLI manifest aggregationsequenceDiagram
actor User
participant AuroCLI
participant Unpkg
participant FileSystem
User->>AuroCLI: auro cem [commander action]
AuroCLI->>AuroCLI: iterate AURO_COMPONENT_PACKAGES
AuroCLI->>Unpkg: fetchManifest(pkg)
Unpkg-->>AuroCLI: manifest or skip reason
AuroCLI->>AuroCLI: mergeManifests(sources)
AuroCLI->>FileSystem: writeFile(outputPath, aggregate)
FileSystem-->>AuroCLI: write success or error
alt write success
AuroCLI->>User: spinner.succeed aggregated summary
AuroCLI->>User: Logger.info skipped components
AuroCLI->>User: Logger.error if transientFailures
else write failure
AuroCLI->>User: spinner.fail error message
end
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- The CEM-related type definitions are duplicated between
component.tsandcem.ts; consider extracting shared interfaces/types into a common module to keep them consistent and easier to maintain. - The commands call
process.exitdirectly in multiple error paths, which makes programmatic reuse and testing harder; consider centralizing error handling or returning non-zero exit codes via commander instead of exiting inside actions. - The large
AURO_CONTEXTmarkdown blob is embedded as a template string in code; consider moving it into a standalone.mdasset that is read at runtime so it can be edited and linted as documentation without touching the CLI source.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The CEM-related type definitions are duplicated between `component.ts` and `cem.ts`; consider extracting shared interfaces/types into a common module to keep them consistent and easier to maintain.
- The commands call `process.exit` directly in multiple error paths, which makes programmatic reuse and testing harder; consider centralizing error handling or returning non-zero exit codes via commander instead of exiting inside actions.
- The large `AURO_CONTEXT` markdown blob is embedded as a template string in code; consider moving it into a standalone `.md` asset that is read at runtime so it can be edited and linted as documentation without touching the CLI source.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
jason-capsule42
force-pushed
the
jbaker/AITooling
branch
from
July 24, 2026 20:27
677d39b to
c7556f1
Compare
jason-capsule42
marked this pull request as draft
July 24, 2026 21:08
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Alaska Airlines Pull Request
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Checklist:
By submitting this Pull Request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Pull Requests will be evaluated by their quality of update and whether it is consistent with the goals and values of this project. Any submission is to be considered a conversation between the submitter and the maintainers of this project and may require changes to your submission.
Thank you for your submission!
-- Auro Design System Team
Summary by Sourcery
Add AI-focused tooling and static metadata to the Auro CLI to improve discoverability and machine-readable access to Auro components.
New Features:
auro contextcommand to generate an AI assistant context document for the Auro Design System to stdout or a file.auro cemcommand to aggregate Custom Elements Manifests for all published Auro components into a single manifest file.auro component <name>command to retrieve a single component’s API from its published Custom Elements Manifest, with optional JSON output.Enhancements:
Build:
#staticdirectory used by the AI tooling.