@astryxdesign/cli 0.7.5-canary.34d2513 → 0.7.5-canary.377ab27

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
@@ -71,7 +71,7 @@ Thanks to everyone who contributed to this release:
71
71
  #### New Features
72
72
 
73
73
  - `astryx build` names the right block first far more often. It ranks every block in the catalog by what the request means, read from each block's own name, description, and component, so a block that word matching missed can still come first, with its own score and reason; and the block picker's fixed values are refitted on a larger, more varied set of written example requests, which helps most with requests worded in a product's own terms. A block the request names by its exact name, and a block from an integration, keep their place. The kit never lists more blocks than before, and its fields, page call, start template, and alternatives are unchanged.
74
- - `astryx search` puts the entry you are after first more often: it orders the matches inside each score band, every result keeps its match score and reason, and a query that is an entry's exact name still answers with that entry first ([#7752](https://github.com/facebook/astryx/pull/7752)).
74
+ - `astryx search` puts the entry you are after first more often: it orders the matches inside each score band, every result keeps its match score and reason, and a query that is an entry's exact name still answers with that entry first ([#7752](https://github.com/meta/astryx/pull/7752)).
75
75
  - `astryx doctor integration validate` and `astryx integration check` check the component names a package's docs and blocks give, and list what they find as notes beside validate's issues, each with its fix. Nothing counts a note and `integration check --strict` does not fail on them; they become failing warnings in the next minor release:
76
76
  - `doc_name_mismatch` lists a component doc whose `name` is not the name the component is listed under when the module its printed import names (the doc's `import`, the published subpath, or the package root) provably does not export that name, so `astryx component` would print a broken import. The `Fix:` proposes the file name when that module exports it, otherwise the component it exports. A name that module's exports cannot prove or rule out (a re-export from another package, `export =`, a destructured binding, a namespace, an import that resolves to no file, or, when no import can be resolved, a source that only exports a default) is listed as not checked, with the reason, in validate's new `docNames` report.
77
77
  - `unknown_block_component` lists a name a template's `exampleFor` or `componentsUsed` gives that neither the package nor Core has (every doc `astryx component` resolves in Core counts) and the template does not import it. Imports the template's local helpers make count too, including through a barrel such as `parts/index.ts`. A name is judged only where the template reaches components solely through named imports and re-exports from Core, React, StyleX, local helpers read in full, or the package's own name (followed through its `exports` like a helper). Anything else is listed as not checked in validate's new `blockComponents` report: an import from another package, which may render other components; any `default` binding other than React's or StyleX's; a namespace import; an alias of or member read off an imported binding; a component held in a variable; `require()`; a dynamic `import()`; a file that does not parse cleanly; a local module this check cannot read; and, without Core installed, any name only Core could resolve.
@@ -141,7 +141,7 @@ Thanks to everyone who contributed to this release:
141
141
  - Agents that follow the guide global mode writes to the home folder now know what to do when `astryx` is not found: run the command that installed the CLI for the computer first, with the same package manager and folder, such as `npm i -g @astryxdesign/cli` or `pnpm add -g @astryxdesign/cli`. On machines that keep the home folder but reset system folders on restart, the guide outlived the CLI installed for the computer and told agents to run a command that was gone. Outside a project, when the guide names `astryx` and no `astryx` command is on the search path, apart from a package runner's own copy, `astryx doctor` now says so and names the install step the guide records, or npm's when it records none. The global-mode guide for CI and containers explains how to keep the CLI across restarts. A guide written for a host's own command is unchanged. No JSON shape or exit code changes.
142
142
  - The butter, stone, and y2k themes no longer show the secondary hover fill on a disabled `ComplexSelector` trigger, whether the trigger is natively disabled or exposes `aria-disabled="true"`, the focusable form every disabled control now uses. Before, the guard only recognized a natively disabled trigger. The themes `astryx theme eject` copies carry the same guard.
143
143
  - Apps that use Core's prebuilt CSS without a StyleX build step now get the default data colors: the prebuilt CSS defines the canonical `dataVars` defaults, so compiled imports and raw CSS references paint correctly.
144
- - `astryx init` writes the agent docs at the project root, in files the project commits, so Codex, Gemini CLI, Copilot CLI and Claude Code all read the block from the project root or any folder below it ([#7497](https://github.com/facebook/astryx/pull/7497)). It no longer writes agent docs into a project's subfolder, the home folder, or a settings folder in it such as `~/.gemini`.
144
+ - `astryx init` writes the agent docs at the project root, in files the project commits, so Codex, Gemini CLI, Copilot CLI and Claude Code all read the block from the project root or any folder below it ([#7497](https://github.com/meta/astryx/pull/7497)). It no longer writes agent docs into a project's subfolder, the home folder, or a settings folder in it such as `~/.gemini`.
145
145
  - `AGENTS.md` holds the block, created when missing. Before, a project with only `CLAUDE.md` got the block only there, so Codex and Gemini CLI never saw it.
146
146
  - Claude Code skips `AGENTS.md` in a folder that has a `CLAUDE.md` or `.claude/CLAUDE.md`, so the Claude Code file the project already has keeps a full copy: root `CLAUDE.md`, else `.claude/CLAUDE.md`. It keeps the copy even when it imports `AGENTS.md`, because Claude Code does not follow that import in a session started in a subfolder; started at the root, Claude Code then reads two. When both exist, the copy goes in root `CLAUDE.md`, which projects commit even when they ignore `.claude/`, and a block in `.claude/CLAUDE.md` is removed. Init creates no Claude file. `astryx upgrade` refreshes every copy, except in a project at the top of a home settings folder (see the next entry).
147
147
  - Gemini CLI reads only `GEMINI.md`: init adds a one-line import, `@./AGENTS.md`, creating `GEMINI.md` when it is missing. It adds none when `GEMINI.md` already imports `AGENTS.md`, inline or on its own line. It adds the import even when the project's `.gemini/settings.json` has Gemini read `AGENTS.md` through `context.fileName`: Gemini loads those settings only when it starts at the project root, so a session started in a subfolder would otherwise get no copy. Started at the root, Gemini then reads two.
@@ -160,7 +160,7 @@ Thanks to everyone who contributed to this release:
160
160
  - **Migration:** run `astryx init` from the project's own folder, or add the block to the file by hand. Move a project rooted at the home folder or a settings folder into a folder of its own, or update or remove its block by hand. To remove a block an earlier version wrote into `~/.claude/CLAUDE.md`, run `astryx init --remove-agents` in the home folder.
161
161
  - Repeated searches in one process answer faster: `astryx search` reuses its entry index while the catalog is unchanged, and ties that reuse to one list of the fields the index reads, so the index is never reused after any of them changes. Every answer is unchanged.
162
162
  - Tools that bundle the CLI into a server function no longer pack their whole project folder into it: one path in `integration check`'s import checks was built in a way file tracers cannot follow. The path and its results are unchanged.
163
- - `search()` from `@astryxdesign/cli/api` answers faster when one process searches again: it reuses the components, docs, templates and themes it gathered for the same folder and `type` while no file it read, and no folder it listed, has changed since (a linked workspace package included). To see those reads, the first such search in a process wraps `node:fs`'s read functions for that process; outside a search they behave exactly as before. Results are unchanged. Short-lived runs are unaffected: each `astryx search` command gathers once, as before ([#7830](https://github.com/facebook/astryx/pull/7830)).
163
+ - `search()` from `@astryxdesign/cli/api` answers faster when one process searches again: it reuses the components, docs, templates and themes it gathered for the same folder and `type` while no file it read, and no folder it listed, has changed since (a linked workspace package included). To see those reads, the first such search in a process wraps `node:fs`'s read functions for that process; outside a search they behave exactly as before. Results are unchanged. Short-lived runs are unaffected: each `astryx search` command gathers once, as before ([#7830](https://github.com/meta/astryx/pull/7830)).
164
164
  - `astryx search` and `astryx build` find a block by its authored display name when that name has two words or more and holds every word of the component the block shows: a query naming it, such as "rich text editor" for an integration's Rich Text Editor block, ranks it first. A display name that labels only the variant, such as "Inside a card", is not read.
165
165
 
166
166
  #### Documentation
@@ -27,6 +27,17 @@ describe('hook.detail leaf', () => {
27
27
  expect(Array.isArray(res.data.returns)).toBe(true);
28
28
  }, SLOW);
29
29
 
30
+ it('resolves useCombobox from the Selector entry point with its field props and the requirements it names', async () => {
31
+ const res = await detail('useCombobox', {cwd: REPO});
32
+ expect(res.data.importPath).toBe('@astryxdesign/core/Selector');
33
+ expect(res.data.returns.map(entry => entry.name)).toEqual(
34
+ expect.arrayContaining(['getFieldProps', 'getListboxProps', 'getOptionProps']),
35
+ );
36
+ expect(res.data.usage.accessibility?.map(entry => entry.requirement)).toEqual(
37
+ [1, 2, 3, 4, 5, 6, 7].map(n => `AST-075 FR${n}`),
38
+ );
39
+ }, SLOW);
40
+
30
41
  it('throws ERR_UNKNOWN_HOOK with fuzzy suggestions for an unknown hook', async () => {
31
42
  let err;
32
43
  try {
@@ -30,7 +30,7 @@ import {ERROR_CODES} from '../../../foundation/response/error-codes.mjs';
30
30
  import {AstryxError, writeFailed} from '../../error.mjs';
31
31
 
32
32
  /** Default issue tracker for maintainer feedback after swizzling. */
33
- const DEFAULT_ISSUES_URL = 'https://github.com/facebook/astryx/issues/new';
33
+ const DEFAULT_ISSUES_URL = 'https://github.com/meta/astryx/issues/new';
34
34
 
35
35
  /**
36
36
  * Rewrite relative imports that point outside the component directory to use
@@ -2,7 +2,7 @@
2
2
 
3
3
  /**
4
4
  * @file Codemod: Rename Text/Heading/Link/Timestamp color "active" to "accent"
5
- * @see https://github.com/facebook/astryx/issues/2863
5
+ * @see https://github.com/meta/astryx/issues/2863
6
6
  *
7
7
  * The `active` text-color value is renamed to `accent` and now maps to the
8
8
  * dedicated `--color-text-accent` token (legible accent ink) instead of
@@ -2,7 +2,7 @@
2
2
 
3
3
  /**
4
4
  * @file Codemod: Rename Switch labelSpacing "default" to "hug"
5
- * @see https://github.com/facebook/astryx/issues/2889
5
+ * @see https://github.com/meta/astryx/issues/2889
6
6
  *
7
7
  * The `labelSpacing="default"` value is renamed to `labelSpacing="hug"` so
8
8
  * the name describes the behavior (label and switch hug each other), matching
@@ -2,7 +2,7 @@
2
2
 
3
3
  /**
4
4
  * @file Codemod: Migrate Table tableProps to direct root props
5
- * @see https://github.com/facebook/astryx/issues/3679
5
+ * @see https://github.com/meta/astryx/issues/3679
6
6
  *
7
7
  * `tableProps` (typed HTMLAttributes<HTMLTableElement>, nesting HTML
8
8
  * attributes one level deep) is deprecated. As of v0.1.7, <Table> honors
@@ -2,7 +2,7 @@
2
2
 
3
3
  /**
4
4
  * @file Codemod: Rename Avatar named sizes to Icon's abbreviated scale
5
- * @see https://github.com/facebook/astryx/issues/2672
5
+ * @see https://github.com/meta/astryx/issues/2672
6
6
  *
7
7
  * This transform is deliberately limited to static literals written directly
8
8
  * in the `size` prop of an imported Avatar or AvatarGroup JSX element. It does
@@ -2,7 +2,7 @@
2
2
 
3
3
  /**
4
4
  * @file Codemod: Remove TabList orientation prop
5
- * @see https://github.com/facebook/astryx/issues/4231
5
+ * @see https://github.com/meta/astryx/issues/4231
6
6
  *
7
7
  * As of v0.2.0, TabList no longer accepts an `orientation` prop. The prop
8
8
  * was misleading: it only drove the keyboard-hint badge, not a real vertical
@@ -2,7 +2,7 @@
2
2
 
3
3
  /**
4
4
  * @file Codemod: Migrate Dialog position left/right -> start/end
5
- * @see https://github.com/facebook/astryx/pull/4568
5
+ * @see https://github.com/meta/astryx/pull/4568
6
6
  *
7
7
  * The Dialog `position` prop's physical `left`/`right` offsets are deprecated
8
8
  * in favor of the logical `start`/`end` offsets. `start`/`end` map to
@@ -32,22 +32,22 @@ A public authoring-quality rubric is also caller-facing when it helps someone ev
32
32
 
33
33
  ## Where the rest goes
34
34
 
35
- The material is usually good; the finding is placement, not quality. It goes in the [wiki](https://github.com/facebook/astryx/wiki) — **as a section on the page that already covers it, not a new page.** The wiki is at nearly 60 pages, several of them overlapping, because every stray section got its own.
35
+ The material is usually good; the finding is placement, not quality. It goes in the [wiki](https://github.com/meta/astryx/wiki) — **as a section on the page that already covers it, not a new page.** The wiki is at nearly 60 pages, several of them overlapping, because every stray section got its own.
36
36
 
37
37
  | what you wrote | where it goes |
38
38
  | --------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
39
- | how a component is graded — checks, scoring | [Component-Audit-Rubric](https://github.com/facebook/astryx/wiki/Component-Audit-Rubric) |
40
- | lab → core promotion, what a component must satisfy | [Component-Lifecycle](https://github.com/facebook/astryx/wiki/Component-Lifecycle) |
41
- | how to build a new component | [Component-Authoring-Guide](https://github.com/facebook/astryx/wiki/Component-Authoring-Guide), [Creating-New-Components](https://github.com/facebook/astryx/wiki/Creating-New-Components) |
42
- | what a component must be hardened against | [Component-Hardening-Protocol](https://github.com/facebook/astryx/wiki/Component-Hardening-Protocol), [Hardening-Audit-Guide](https://github.com/facebook/astryx/wiki/Hardening-Audit-Guide) |
43
- | a11y requirements as checks we run | [Accessibility-Checklist](https://github.com/facebook/astryx/wiki/Accessibility-Checklist) |
44
- | how the system is put together | [System-Architecture](https://github.com/facebook/astryx/wiki/System-Architecture), [Theming-Infrastructure](https://github.com/facebook/astryx/wiki/Theming-Infrastructure) |
45
- | API naming and shape decisions | [API-Conventions](https://github.com/facebook/astryx/wiki/API-Conventions), [API-Arbitration](https://github.com/facebook/astryx/wiki/API-Arbitration) |
46
- | contributor workflow, PR process | [Contributing](https://github.com/facebook/astryx/wiki/Contributing), [Contributing-with-AI-Assistants](https://github.com/facebook/astryx/wiki/Contributing-with-AI-Assistants) |
47
- | release mechanics | [Release-Process](https://github.com/facebook/astryx/wiki/Release-Process) |
48
- | what a nightly agent role does | the Night-Watch pages, from [Night-Watch-Overview](https://github.com/facebook/astryx/wiki/Night-Watch-Overview) |
49
-
50
- **Fits no row?** It is still not caller-facing. Default it to [Contributing](https://github.com/facebook/astryx/wiki/Contributing), or `CONTRIBUTING.md` when it is a step someone follows with the repo cloned. Never default it back to this directory.
39
+ | how a component is graded — checks, scoring | [Component-Audit-Rubric](https://github.com/meta/astryx/wiki/Component-Audit-Rubric) |
40
+ | lab → core promotion, what a component must satisfy | [Component-Lifecycle](https://github.com/meta/astryx/wiki/Component-Lifecycle) |
41
+ | how to build a new component | [Component-Authoring-Guide](https://github.com/meta/astryx/wiki/Component-Authoring-Guide), [Creating-New-Components](https://github.com/meta/astryx/wiki/Creating-New-Components) |
42
+ | what a component must be hardened against | [Component-Hardening-Protocol](https://github.com/meta/astryx/wiki/Component-Hardening-Protocol), [Hardening-Audit-Guide](https://github.com/meta/astryx/wiki/Hardening-Audit-Guide) |
43
+ | a11y requirements as checks we run | [Accessibility-Checklist](https://github.com/meta/astryx/wiki/Accessibility-Checklist) |
44
+ | how the system is put together | [System-Architecture](https://github.com/meta/astryx/wiki/System-Architecture), [Theming-Infrastructure](https://github.com/meta/astryx/wiki/Theming-Infrastructure) |
45
+ | API naming and shape decisions | [API-Conventions](https://github.com/meta/astryx/wiki/API-Conventions), [API-Arbitration](https://github.com/meta/astryx/wiki/API-Arbitration) |
46
+ | contributor workflow, PR process | [Contributing](https://github.com/meta/astryx/wiki/Contributing), [Contributing-with-AI-Assistants](https://github.com/meta/astryx/wiki/Contributing-with-AI-Assistants) |
47
+ | release mechanics | [Release-Process](https://github.com/meta/astryx/wiki/Release-Process) |
48
+ | what a nightly agent role does | the Night-Watch pages, from [Night-Watch-Overview](https://github.com/meta/astryx/wiki/Night-Watch-Overview) |
49
+
50
+ **Fits no row?** It is still not caller-facing. Default it to [Contributing](https://github.com/meta/astryx/wiki/Contributing), or `CONTRIBUTING.md` when it is a step someone follows with the repo cloned. Never default it back to this directory.
51
51
 
52
52
  Worked example: a responsive-and-interaction readiness rubric is grading criteria → **Component-Audit-Rubric**, or **Component-Lifecycle** if it is a promotion gate.
53
53
 
@@ -193,22 +193,22 @@ const overrides = stylex.create({
193
193
  [
194
194
  'Next.js',
195
195
  'Next.js + theme CSS',
196
- '[apps/example-nextjs](https://github.com/facebook/astryx/tree/main/apps/example-nextjs)',
196
+ '[apps/example-nextjs](https://github.com/meta/astryx/tree/main/apps/example-nextjs)',
197
197
  ],
198
198
  [
199
199
  'Next.js + StyleX',
200
200
  'Next.js + StyleX for custom styles',
201
- '[apps/example-nextjs-stylex](https://github.com/facebook/astryx/tree/main/apps/example-nextjs-stylex)',
201
+ '[apps/example-nextjs-stylex](https://github.com/meta/astryx/tree/main/apps/example-nextjs-stylex)',
202
202
  ],
203
203
  [
204
204
  'Next.js + Tailwind',
205
205
  'Next.js + Tailwind bridge',
206
- '[apps/example-nextjs-tailwind](https://github.com/facebook/astryx/tree/main/apps/example-nextjs-tailwind)',
206
+ '[apps/example-nextjs-tailwind](https://github.com/meta/astryx/tree/main/apps/example-nextjs-tailwind)',
207
207
  ],
208
208
  [
209
209
  'Vite + Tailwind',
210
210
  'Vite + Tailwind bridge',
211
- '[apps/example-vite-tailwind](https://github.com/facebook/astryx/tree/main/apps/example-vite-tailwind)',
211
+ '[apps/example-vite-tailwind](https://github.com/meta/astryx/tree/main/apps/example-vite-tailwind)',
212
212
  ],
213
213
  ],
214
214
  },
@@ -216,7 +216,7 @@ const overrides = stylex.create({
216
216
  type: 'code',
217
217
  lang: 'bash',
218
218
  label: 'Clone and run an example',
219
- code: `git clone https://github.com/facebook/astryx.git
219
+ code: `git clone https://github.com/meta/astryx.git
220
220
  cd astryx/apps/example-nextjs
221
221
  {@pm install}
222
222
  {@pm run dev}`,
@@ -50,7 +50,7 @@ export const docs = {
50
50
  content: [
51
51
  {
52
52
  type: 'prose',
53
- text: 'One easing curve, `--ease-standard`.',
53
+ text: 'Two easing curves. `--ease-standard` decelerates, for things arriving and state changes. `--ease-exit` accelerates, for things leaving: it moves off from rest and leaves fast, so the travel stays visible for the whole duration.',
54
54
  },
55
55
  {
56
56
  type: 'token-ref',
@@ -111,7 +111,7 @@ export default function App() {
111
111
  },
112
112
  {
113
113
  type: 'prose',
114
- text: "Single-catalog usage (where an external i18n runtime like react-intl or i18next resolves both your app strings AND astryx's strings through one provider) is on the roadmap via a `Translator` adapter. Track [facebook/astryx#4029](https://github.com/facebook/astryx/issues/4029). For now, run the two providers side by side as shown above.",
114
+ text: "Single-catalog usage (where an external i18n runtime like react-intl or i18next resolves both your app strings AND astryx's strings through one provider) is on the roadmap via a `Translator` adapter. Track [meta/astryx#4029](https://github.com/meta/astryx/issues/4029). For now, run the two providers side by side as shown above.",
115
115
  },
116
116
  ],
117
117
  },
@@ -36,6 +36,10 @@ export const docs = {
36
36
  [
37
37
  "--ease-standard",
38
38
  "cubic-bezier(0.24, 1, 0.4, 1)"
39
+ ],
40
+ [
41
+ "--ease-exit",
42
+ "cubic-bezier(0.3, 0, 0.6, 0.6)"
39
43
  ]
40
44
  ]
41
45
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  // AUTO-GENERATED — do not edit manually.
4
4
  // Run: node scripts/generate-token-docs.mjs
5
- // Total: 282 tokens across 15 categories.
5
+ // Total: 283 tokens across 15 categories.
6
6
 
7
7
  /** @type {import('@astryxdesign/cli/authoring').NamespaceDoc} */
8
8
  export const docs = {
@@ -217,7 +217,7 @@ export const myTheme = defineTheme({
217
217
  // --radius-* none · inner · element · container · page · chat · full
218
218
  // --shadow-* low/med/high + inset-{hover,selected,success,warning,error}
219
219
  // --duration-* {fast,medium,slow} × {-min, base, -max}
220
- // --ease-standard
220
+ // --ease-* standard (arriving, state) · exit (leaving)
221
221
  // --font-family-* body · heading · code
222
222
  // --font-size-* 4xs … 5xl
223
223
  // --font-weight-* normal · medium · semibold · bold
@@ -31,7 +31,7 @@ export const doc = {
31
31
  type: 'string',
32
32
  description:
33
33
  "Where reports about Core go: `{@command gap-report}` routes a Core report here when no handler is loaded, gapReport handlers receive it as `report.target.issuesUrl`, and `{@command swizzle}` prints it as the feedback link for a Core component. A report or swizzle for an integration's component uses that integration's own issuesUrl, never this one. An absolute URL; a value that is not a URL makes the config invalid.",
34
- default: "'https://github.com/facebook/astryx/issues/new'",
34
+ default: "'https://github.com/meta/astryx/issues/new'",
35
35
  },
36
36
  {
37
37
  name: 'hooks',
@@ -155,7 +155,7 @@ describe('swizzle — core feedback routing via config', () => {
155
155
  expect(result.code).toBe(0);
156
156
  const env = JSON.parse(result.stdout);
157
157
  expect(env.data.feedback.issuesUrl).toBe(
158
- 'https://github.com/facebook/astryx/issues/new',
158
+ 'https://github.com/meta/astryx/issues/new',
159
159
  );
160
160
  });
161
161
  });
@@ -44,7 +44,7 @@ export function providerLedgerOf(project: Project): import("../integrations/prov
44
44
  /** Conventional config basenames, in load-precedence order. */
45
45
  export const CONFIG_BASENAMES: string[];
46
46
  /** Default issue tracker used when neither config nor integration routes one. */
47
- export const DEFAULT_ISSUES_URL: "https://github.com/facebook/astryx/issues/new";
47
+ export const DEFAULT_ISSUES_URL: "https://github.com/meta/astryx/issues/new";
48
48
  /**
49
49
  * The single API for reading resolved project configuration. Construct via the
50
50
  * async {@link Project.load} factory.
@@ -330,7 +330,7 @@ export const CONFIG_BASENAMES = [
330
330
 
331
331
  /** Default issue tracker used when neither config nor integration routes one. */
332
332
  export const DEFAULT_ISSUES_URL =
333
- 'https://github.com/facebook/astryx/issues/new';
333
+ 'https://github.com/meta/astryx/issues/new';
334
334
 
335
335
  /**
336
336
  * Whether this project accepts `debug` handlers contributed by the
@@ -305,7 +305,7 @@ describe('credential scrubbing', () => {
305
305
  });
306
306
 
307
307
  it.each([
308
- ['a URL', 'GET https://api.github.com/repos/facebook/astryx/pulls/4812'],
308
+ ['a URL', 'GET https://api.github.com/repos/meta/astryx/pulls/4812'],
309
309
  ['a websocket URL', 'ws://localhost:5173/hmr/client'],
310
310
  ['a proxy URL', 'http://127.0.0.1:8931/a/b/c'],
311
311
  ['a time', 'elapsed 12:30 done'],
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
- import {describe, it, expect, afterEach, vi} from 'vitest';
3
+ import {describe, it, expect, afterEach, beforeAll, vi} from 'vitest';
4
4
  import {spawnSync} from 'node:child_process';
5
5
  import * as fs from 'node:fs';
6
6
  import * as path from 'node:path';
@@ -847,6 +847,19 @@ describe('commandInFolder', () => {
847
847
  );
848
848
 
849
849
  describe.runIf(PWSH)('in PowerShell, where it is installed', () => {
850
+ // The first `pwsh` a job starts pays PowerShell's cold start, which on a
851
+ // busy runner has outlasted a test's 30 s. `spawnSync` blocks, so that
852
+ // start landed on the first test's clock. Starting it once here, on the
853
+ // hook's own timeout, leaves each test's clock to its command.
854
+ beforeAll(() => {
855
+ const warm = spawnSync(
856
+ /** @type {string} */ (PWSH),
857
+ ['-NoProfile', '-NonInteractive', '-Command', 'exit 0'],
858
+ {encoding: 'utf8'},
859
+ );
860
+ expect(warm.status, warm.stderr).toBe(0);
861
+ }, 120_000);
862
+
850
863
  it('runs in the folder with every argument unchanged', () => {
851
864
  const root = makeTmpDir();
852
865
  const project = path.join(root, 'it\'s Macy’s ‘q’ $5 %x% !y `z` "q" [1]');
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@astryxdesign/cli",
3
- "version": "0.7.5-canary.34d2513",
3
+ "version": "0.7.5-canary.377ab27",
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",
7
7
  "license": "MIT",
8
- "homepage": "https://github.com/facebook/astryx#readme",
8
+ "homepage": "https://github.com/meta/astryx#readme",
9
9
  "repository": {
10
10
  "type": "git",
11
- "url": "git+https://github.com/facebook/astryx.git",
11
+ "url": "git+https://github.com/meta/astryx.git",
12
12
  "directory": "packages/cli"
13
13
  },
14
14
  "bugs": {
15
- "url": "https://github.com/facebook/astryx/issues"
15
+ "url": "https://github.com/meta/astryx/issues"
16
16
  },
17
17
  "keywords": [
18
18
  "astryx",
@@ -111,10 +111,10 @@
111
111
  "zod": "^4.4.3"
112
112
  },
113
113
  "peerDependencies": {
114
- "@astryxdesign/charts": "0.7.5-canary.34d2513",
115
- "@astryxdesign/core": "0.7.5-canary.34d2513",
116
- "@astryxdesign/lab": "0.7.5-canary.34d2513",
117
- "@astryxdesign/theme-neutral": "0.7.5-canary.34d2513"
114
+ "@astryxdesign/charts": "0.7.5-canary.377ab27",
115
+ "@astryxdesign/core": "0.7.5-canary.377ab27",
116
+ "@astryxdesign/lab": "0.7.5-canary.377ab27",
117
+ "@astryxdesign/theme-neutral": "0.7.5-canary.377ab27"
118
118
  },
119
119
  "peerDependenciesMeta": {
120
120
  "@astryxdesign/charts": {
@@ -131,10 +131,10 @@
131
131
  }
132
132
  },
133
133
  "devDependencies": {
134
- "@astryxdesign/charts": "0.7.5-canary.34d2513",
135
- "@astryxdesign/core": "0.7.5-canary.34d2513",
136
- "@astryxdesign/lab": "0.7.5-canary.34d2513",
137
- "@astryxdesign/theme-neutral": "0.7.5-canary.34d2513",
134
+ "@astryxdesign/charts": "0.7.5-canary.377ab27",
135
+ "@astryxdesign/core": "0.7.5-canary.377ab27",
136
+ "@astryxdesign/lab": "0.7.5-canary.377ab27",
137
+ "@astryxdesign/theme-neutral": "0.7.5-canary.377ab27",
138
138
  "@heroicons/react": "^2.2.0",
139
139
  "@stylexjs/stylex": "^0.19.0",
140
140
  "@types/babel__core": "^7.20.5",