@astryxdesign/cli 0.1.2-canary.bd8c3d3 → 0.1.2-canary.bfcbf64

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/CHANGELOG.md CHANGED
@@ -110,7 +110,6 @@ Thanks to everyone who contributed to this release:
110
110
  Thanks to everyone who contributed to this release:
111
111
 
112
112
  - @ejhammond
113
- - @joeyfarina
114
113
  - @josephfarina
115
114
  - @nynexman4464
116
115
 
package/README.md CHANGED
@@ -62,7 +62,7 @@ Options:
62
62
  | `upgrade` | Run codemods to migrate between versions |
63
63
  | `theme build` | Compile a defineTheme file to production CSS and JS |
64
64
  | `discover` | Discover external packages and components |
65
- | `doctor` | Diagnose your XDS setup and report problems with fixes (CI-friendly via exit code) |
65
+ | `doctor` | Diagnose your Astryx setup and report problems with fixes (CI-friendly via exit code) |
66
66
 
67
67
  ### Global options
68
68
 
@@ -170,7 +170,7 @@ discriminators each command can emit. Think of it as an OpenAPI spec for the CLI
170
170
 
171
171
  ```bash
172
172
  astryx manifest --json # dedicated surface — type: "manifest"
173
- xds --json # bare invocation — embeds the same payload under data.manifest
173
+ astryx --json # bare invocation — embeds the same payload under data.manifest
174
174
  ```
175
175
 
176
176
  Shape:
@@ -180,7 +180,7 @@ Shape:
180
180
  "apiVersion": 1,
181
181
  "type": "manifest",
182
182
  "data": {
183
- "name": "xds",
183
+ "name": "astryx",
184
184
  "version": "0.0.14",
185
185
  "description": "Design system CLI — components, themes, and tooling",
186
186
  "globalOptions": [
@@ -247,14 +247,14 @@ the `JSON_SUPPORTED` allowlist and a small declarative `RESPONSE_TYPES` map in
247
247
  `src/lib/manifest.mjs`, guarded by a drift test (`manifest.test.mjs`) so adding a
248
248
  command without describing it fails CI.
249
249
 
250
- **Backwards-compat:** the bare `xds --json` envelope keeps `type: "help"` and its
250
+ **Backwards-compat:** the bare `astryx --json` envelope keeps `type: "help"` and its
251
251
  original shallow fields (`name`, `version`, `commands` as a `string[]` of names,
252
252
  `jsonSupported`); the full structured manifest is additive under `data.manifest`.
253
253
  For the standalone manifest envelope (`type: "manifest"`), use `astryx manifest --json`.
254
254
 
255
255
  ## Programmatic API
256
256
 
257
- The same logic that powers `xds --json` is available as importable, type-safe functions:
257
+ The same logic that powers `astryx --json` is available as importable, type-safe functions:
258
258
 
259
259
  ```typescript
260
260
  import {
@@ -267,20 +267,20 @@ import {
267
267
  AstryxError,
268
268
  } from '@astryxdesign/cli/api';
269
269
 
270
- // Same result as: xds --json component Button
270
+ // Same result as: astryx --json component Button
271
271
  const btn = await component('Button');
272
272
  btn.type; // 'component.detail'
273
273
  btn.data.name; // 'Button' (typed as ComponentDoc)
274
274
 
275
- // Same result as: xds --json component --list
275
+ // Same result as: astryx --json component --list
276
276
  const list = await component(undefined, {list: true});
277
277
  list.data; // Record<string, string[]>
278
278
 
279
- // Same result as: xds --json docs principles
279
+ // Same result as: astryx --json docs principles
280
280
  const principles = await docs('principles');
281
- principles.data.title; // 'XDS Principles'
281
+ principles.data.title; // 'Principles'
282
282
 
283
- // Same result as: xds --json hook useMediaQuery
283
+ // Same result as: astryx --json hook useMediaQuery
284
284
  const useMediaQuery = await hook('useMediaQuery');
285
285
  useMediaQuery.data.params; // typed as HookParamDoc[]
286
286
 
@@ -294,7 +294,7 @@ try {
294
294
  }
295
295
  ```
296
296
 
297
- The CLI command handlers are thin wrappers around these functions: they parse args, call the API, then format the output (JSON or text). This guarantees that `@astryxdesign/cli/api` and `xds --json` always return identical data.
297
+ The CLI command handlers are thin wrappers around these functions: they parse args, call the API, then format the output (JSON or text). This guarantees that `@astryxdesign/cli/api` and `astryx --json` always return identical data.
298
298
 
299
299
  ### Consumer utilities
300
300
 
@@ -324,41 +324,41 @@ detail.data.name; // already narrowed
324
324
 
325
325
  Every response has a `type` string that uniquely identifies it:
326
326
 
327
- | Command | Type | Response |
328
- | ---------------------------------------------- | --------------------------- | --------------------------------- |
329
- | `xds --json component [--list]` | `component.list` | `ComponentListResponse` |
330
- | `xds --json component --list --detail compact` | `component.brief` | `ComponentBriefResponse` |
331
- | `xds --json component --list --detail full` | `component.full` | `ComponentFullResponse` |
332
- | `xds --json component <name>` | `component.detail` | `ComponentDetailResponse` |
333
- | `xds --json component <name> --props` | `component.detail.props` | `ComponentDetailPropsResponse` |
334
- | `xds --json component <name> --source` | `component.detail.source` | `ComponentDetailSourceResponse` |
335
- | `xds --json component <name> --showcase` | `component.detail.showcase` | `ComponentDetailShowcaseResponse` |
336
- | `xds --json component <name> --blocks` | `component.detail.blocks` | `ComponentDetailBlocksResponse` |
337
- | `xds --json discover` | `discover.list` | `DiscoverListResponse` |
338
- | `xds --json discover @scope/name` | `discover.detail` | `DiscoverDetailResponse` |
339
- | `xds --json discover @scope/name/Comp` | `discover.detail.doc` | `DiscoverDetailDocResponse` |
340
- | `xds --json discover <search>` | `discover.search` | `DiscoverSearchResponse` |
341
- | `xds --json docs` | `docs.list` | `DocsListResponse` |
342
- | `xds --json docs <topic>` | `docs.detail` | `DocsDetailResponse` |
343
- | `xds --json docs <topic> <section>` | `docs.detail.section` | `DocsDetailSectionResponse` |
344
- | `xds --json template [--list]` | `template.list` | `TemplateListResponse` |
345
- | `xds --json template <name>` | `template.show` | `TemplateShowResponse` |
346
- | `xds --json template <name> --skeleton` | `template.skeleton` | `TemplateSkeletonResponse` |
347
- | `xds --json template <name> [path]` | `template.copy` | `TemplateCopyResponse` |
348
- | `xds --json hook [--list]` | `hook.list` | `HookListResponse` |
349
- | `xds --json hook --list --detail compact` | `hook.brief` | `HookBriefResponse` |
350
- | `xds --json hook --list --detail full` | `hook.full` | `HookFullResponse` |
351
- | `xds --json hook <name>` | `hook.detail` | `HookDetailResponse` |
352
- | `xds --json hook <name> --params` | `hook.detail.params` | `HookDetailParamsResponse` |
353
- | `xds --json search <query>` | `search` | `SearchResponse` |
354
- | `xds --json swizzle [--list]` | `swizzle.list` | `SwizzleListResponse` |
355
- | `xds --json swizzle <component>` | `swizzle.copy` | `SwizzleCopyResponse` |
356
- | `xds --json theme build <file>` | `theme.build` | `ThemeBuildResponse` |
357
- | `xds --json upgrade --list` | `upgrade.list` | `UpgradeListResponse` |
358
- | `xds --json upgrade [--apply]` | `upgrade.run` | `UpgradeRunResponse` |
359
- | `xds --json doctor` | `doctor` | `DoctorResponse` |
360
- | any error | — | `CLIError` |
361
- | unsupported command | — | `CLIUnsupportedError` |
327
+ | Command | Type | Response |
328
+ | ------------------------------------------------- | --------------------------- | --------------------------------- |
329
+ | `astryx --json component [--list]` | `component.list` | `ComponentListResponse` |
330
+ | `astryx --json component --list --detail compact` | `component.brief` | `ComponentBriefResponse` |
331
+ | `astryx --json component --list --detail full` | `component.full` | `ComponentFullResponse` |
332
+ | `astryx --json component <name>` | `component.detail` | `ComponentDetailResponse` |
333
+ | `astryx --json component <name> --props` | `component.detail.props` | `ComponentDetailPropsResponse` |
334
+ | `astryx --json component <name> --source` | `component.detail.source` | `ComponentDetailSourceResponse` |
335
+ | `astryx --json component <name> --showcase` | `component.detail.showcase` | `ComponentDetailShowcaseResponse` |
336
+ | `astryx --json component <name> --blocks` | `component.detail.blocks` | `ComponentDetailBlocksResponse` |
337
+ | `astryx --json discover` | `discover.list` | `DiscoverListResponse` |
338
+ | `astryx --json discover @scope/name` | `discover.detail` | `DiscoverDetailResponse` |
339
+ | `astryx --json discover @scope/name/Comp` | `discover.detail.doc` | `DiscoverDetailDocResponse` |
340
+ | `astryx --json discover <search>` | `discover.search` | `DiscoverSearchResponse` |
341
+ | `astryx --json docs` | `docs.list` | `DocsListResponse` |
342
+ | `astryx --json docs <topic>` | `docs.detail` | `DocsDetailResponse` |
343
+ | `astryx --json docs <topic> <section>` | `docs.detail.section` | `DocsDetailSectionResponse` |
344
+ | `astryx --json template [--list]` | `template.list` | `TemplateListResponse` |
345
+ | `astryx --json template <name>` | `template.show` | `TemplateShowResponse` |
346
+ | `astryx --json template <name> --skeleton` | `template.skeleton` | `TemplateSkeletonResponse` |
347
+ | `astryx --json template <name> [path]` | `template.copy` | `TemplateCopyResponse` |
348
+ | `astryx --json hook [--list]` | `hook.list` | `HookListResponse` |
349
+ | `astryx --json hook --list --detail compact` | `hook.brief` | `HookBriefResponse` |
350
+ | `astryx --json hook --list --detail full` | `hook.full` | `HookFullResponse` |
351
+ | `astryx --json hook <name>` | `hook.detail` | `HookDetailResponse` |
352
+ | `astryx --json hook <name> --params` | `hook.detail.params` | `HookDetailParamsResponse` |
353
+ | `astryx --json search <query>` | `search` | `SearchResponse` |
354
+ | `astryx --json swizzle [--list]` | `swizzle.list` | `SwizzleListResponse` |
355
+ | `astryx --json swizzle <component>` | `swizzle.copy` | `SwizzleCopyResponse` |
356
+ | `astryx --json theme build <file>` | `theme.build` | `ThemeBuildResponse` |
357
+ | `astryx --json upgrade --list` | `upgrade.list` | `UpgradeListResponse` |
358
+ | `astryx --json upgrade [--apply]` | `upgrade.run` | `UpgradeRunResponse` |
359
+ | `astryx --json doctor` | `doctor` | `DoctorResponse` |
360
+ | any error | — | `CLIError` |
361
+ | unsupported command | — | `CLIUnsupportedError` |
362
362
 
363
363
  ## Doctor
364
364
 
@@ -379,7 +379,7 @@ astryx doctor — diagnosing your setup
379
379
  @astryxdesign/core v0.0.14 is in step with @astryxdesign/cli v0.0.14.
380
380
  ⚠ Theme packages
381
381
  No @astryxdesign/theme-* packages are installed.
382
- → fix: Install a theme, e.g. `npm install @astryxdesign/theme-neutral`, then import its CSS or set xds.theme.
382
+ → fix: Install a theme, e.g. `npm install @astryxdesign/theme-neutral`, then import its CSS or set astryx.theme.
383
383
  ℹ astryx.config.mjs
384
384
  No astryx.config.mjs found — using defaults.
385
385
  ℹ AI agent docs
@@ -404,7 +404,7 @@ No failures — but review the ⚠ warnings above when you can.
404
404
  | Version alignment | pass / warn / info | Installed `@astryxdesign/core` is in step with `@astryxdesign/cli` |
405
405
  | Theme packages | pass / warn | An `@astryxdesign/theme-*` package is installed and a theme is wired |
406
406
  | astryx.config.mjs | pass / fail / info | Config (if present) loads cleanly with a valid shape |
407
- | AI agent docs | pass / warn / info | Agent docs exist and contain the XDS section markers |
407
+ | AI agent docs | pass / warn / info | Agent docs exist and contain the Astryx section markers |
408
408
  | Peer dependencies | pass / warn / info | `@astryxdesign/core`'s peer deps (react, …) are installed |
409
409
  | Package manager | info | Reports the detected package manager |
410
410
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astryxdesign/cli",
3
- "version": "0.1.2-canary.bd8c3d3",
3
+ "version": "0.1.2-canary.bfcbf64",
4
4
  "displayName": "CLI",
5
5
  "description": "Scaffold projects, browse templates, generate themes, and get agent-ready docs from the command line.",
6
6
  "author": "Meta Open Source",
@@ -75,9 +75,9 @@
75
75
  "zod": "^4.4.3"
76
76
  },
77
77
  "peerDependencies": {
78
- "@astryxdesign/core": "0.1.2-canary.bd8c3d3",
79
- "@astryxdesign/lab": "0.1.2-canary.bd8c3d3",
80
- "@astryxdesign/theme-neutral": "0.1.2-canary.bd8c3d3",
78
+ "@astryxdesign/core": "0.1.2-canary.bfcbf64",
79
+ "@astryxdesign/lab": "0.1.2-canary.bfcbf64",
80
+ "@astryxdesign/theme-neutral": "0.1.2-canary.bfcbf64",
81
81
  "gpt-tokenizer": "^2.0.0"
82
82
  },
83
83
  "peerDependenciesMeta": {
@@ -92,9 +92,9 @@
92
92
  }
93
93
  },
94
94
  "devDependencies": {
95
- "@astryxdesign/core": "0.1.2-canary.bd8c3d3",
96
- "@astryxdesign/lab": "0.1.2-canary.bd8c3d3",
97
- "@astryxdesign/theme-neutral": "0.1.2-canary.bd8c3d3",
95
+ "@astryxdesign/core": "0.1.2-canary.bfcbf64",
96
+ "@astryxdesign/lab": "0.1.2-canary.bfcbf64",
97
+ "@astryxdesign/theme-neutral": "0.1.2-canary.bfcbf64",
98
98
  "gpt-tokenizer": "^2.0.0"
99
99
  },
100
100
  "scripts": {
@@ -240,7 +240,7 @@ export function checkThemes(ctx) {
240
240
  label: 'Theme packages',
241
241
  status: 'warn',
242
242
  message: 'No @astryxdesign/theme-* packages are installed.',
243
- fix: 'Install a theme, e.g. `npm install @astryxdesign/theme-neutral`, then import its CSS or set xds.theme.',
243
+ fix: 'Install a theme, e.g. `npm install @astryxdesign/theme-neutral`, then import its CSS or set astryx.theme.',
244
244
  };
245
245
  }
246
246
 
@@ -354,7 +354,7 @@ export function checkAgentDocs(ctx) {
354
354
  label: 'AI agent docs',
355
355
  status: 'warn',
356
356
  message: `Agent docs present (${present.join(', ')}) but no Astryx section markers found.`,
357
- fix: 'Add the XDS section to your agent docs with `astryx init --features agents`.',
357
+ fix: 'Add the Astryx section to your agent docs with `astryx init --features agents`.',
358
358
  };
359
359
  }
360
360
 
@@ -362,7 +362,7 @@ export function checkAgentDocs(ctx) {
362
362
  id: 'agent-docs',
363
363
  label: 'AI agent docs',
364
364
  status: 'pass',
365
- message: `XDS agent docs section present in ${withMarkers.join(', ')}.`,
365
+ message: `Astryx agent docs section present in ${withMarkers.join(', ')}.`,
366
366
  };
367
367
  }
368
368