@aurodesignsystem-dev/auro-cli 0.0.0-pr302.0 → 0.0.0-pr302.2
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/README.md +7 -2
- package/dist/auro-cli.js +141 -57
- package/dist/auro-cli.js.map +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -166,7 +166,10 @@ Reads the repo's commits, classifies each by conventional-commit type, and repor
|
|
|
166
166
|
|
|
167
167
|
Prints an AI-ready context document describing the Auro Design System, its components, and usage patterns. Designed to be piped into or pasted into AI coding assistants (Claude, Cursor, Copilot, etc.) to prime them on Auro.
|
|
168
168
|
|
|
169
|
+
The Component Reference table is enriched from each component's Custom Elements Manifest so descriptions stay current. For components installed in the current project, the manifest is read from `node_modules` (matching your installed version); everything else is fetched from unpkg. The curated built-in list is the fallback for any component that can't be resolved. After generating the document, any installed component that isn't on the latest published release is reported to stderr (so it never pollutes the document itself).
|
|
170
|
+
|
|
169
171
|
- `-o, --output <file>`: write the context document to a file instead of stdout (e.g. `AURO_CONTEXT.md`).
|
|
172
|
+
- `--offline`: skip network fetches — enrich only from locally installed manifests and fall back to the built-in table (also skips the outdated-release check).
|
|
170
173
|
|
|
171
174
|
Print the context to the terminal:
|
|
172
175
|
|
|
@@ -202,11 +205,13 @@ auro cem --output dist/custom-elements.aggregate.json
|
|
|
202
205
|
```
|
|
203
206
|
|
|
204
207
|
`auro component <name>`
|
|
205
|
-
Looks up a single Auro component's API — attributes, properties/methods, slots, events, and CSS parts — from its
|
|
208
|
+
Looks up a single Auro component's API — attributes, properties/methods, slots, events, and CSS parts — from its Custom Elements Manifest. Useful for humans and for AI coding assistants that call the CLI in a tool-use loop to avoid guessing an API.
|
|
209
|
+
|
|
210
|
+
If the component is installed in the current project's `node_modules`, its manifest is read locally so the API matches the version you actually have — the success line shows `(local vX.Y.Z)`. Otherwise it's fetched from unpkg (shown as `(unpkg)`). Passing an explicit `--tag`/version always fetches that version from unpkg.
|
|
206
211
|
|
|
207
212
|
#### Options
|
|
208
213
|
|
|
209
|
-
- `-t, --tag <version>` npm dist-tag or version to look up (default: `latest
|
|
214
|
+
- `-t, --tag <version>` npm dist-tag or version to look up (default: `latest`; forces an unpkg fetch).
|
|
210
215
|
- `--json` Output the raw manifest declaration(s) as JSON instead of formatted text.
|
|
211
216
|
|
|
212
217
|
#### Examples
|