@astryxdesign/cli 0.1.4-canary.78adf45 → 0.1.4-canary.79d73f3

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.
@@ -125,7 +125,7 @@ If you don't know all three, run \`npx astryx init --features agents\` to genera
125
125
  lang: 'json',
126
126
  label: 'package.json',
127
127
  code: `"scripts": {
128
- "xds": "node node_modules/@astryxdesign/cli/bin/astryx.mjs"
128
+ "astryx": "node node_modules/@astryxdesign/cli/bin/astryx.mjs"
129
129
  }`,
130
130
  },
131
131
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astryxdesign/cli",
3
- "version": "0.1.4-canary.78adf45",
3
+ "version": "0.1.4-canary.79d73f3",
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",
@@ -68,17 +68,17 @@
68
68
  "CHANGELOG.md"
69
69
  ],
70
70
  "dependencies": {
71
- "@clack/prompts": "^1.5.1",
71
+ "@clack/prompts": "^1.7.0",
72
72
  "commander": "^12.1.0",
73
73
  "jiti": "^2.7.0",
74
74
  "jscodeshift": "^17.3.0",
75
75
  "zod": "^4.4.3"
76
76
  },
77
77
  "peerDependencies": {
78
- "@astryxdesign/charts": "0.1.4-canary.78adf45",
79
- "@astryxdesign/core": "0.1.4-canary.78adf45",
80
- "@astryxdesign/lab": "0.1.4-canary.78adf45",
81
- "@astryxdesign/theme-neutral": "0.1.4-canary.78adf45",
78
+ "@astryxdesign/charts": "0.1.4-canary.79d73f3",
79
+ "@astryxdesign/core": "0.1.4-canary.79d73f3",
80
+ "@astryxdesign/lab": "0.1.4-canary.79d73f3",
81
+ "@astryxdesign/theme-neutral": "0.1.4-canary.79d73f3",
82
82
  "gpt-tokenizer": "^3.4.0"
83
83
  },
84
84
  "peerDependenciesMeta": {
@@ -96,10 +96,10 @@
96
96
  }
97
97
  },
98
98
  "devDependencies": {
99
- "@astryxdesign/charts": "0.1.4-canary.78adf45",
100
- "@astryxdesign/core": "0.1.4-canary.78adf45",
101
- "@astryxdesign/lab": "0.1.4-canary.78adf45",
102
- "@astryxdesign/theme-neutral": "0.1.4-canary.78adf45",
99
+ "@astryxdesign/charts": "0.1.4-canary.79d73f3",
100
+ "@astryxdesign/core": "0.1.4-canary.79d73f3",
101
+ "@astryxdesign/lab": "0.1.4-canary.79d73f3",
102
+ "@astryxdesign/theme-neutral": "0.1.4-canary.79d73f3",
103
103
  "gpt-tokenizer": "^3.4.0"
104
104
  },
105
105
  "scripts": {
@@ -28,20 +28,10 @@ import * as fs from 'node:fs';
28
28
  import * as path from 'node:path';
29
29
  import * as os from 'node:os';
30
30
  import {fileURLToPath} from 'node:url';
31
+ import {ensureCoreBuilt} from './ensure-core-built.mjs';
31
32
 
32
33
  const __dirname = path.dirname(fileURLToPath(import.meta.url));
33
34
  const CLI_BIN = path.resolve(__dirname, '../../bin/astryx.mjs');
34
- const REPO_ROOT = path.resolve(__dirname, '../../../..');
35
- const CORE_THEME_ENTRY = path.join(
36
- REPO_ROOT,
37
- 'packages/core/dist/theme/index.js',
38
- );
39
- // The fix reads core's shipped component declarations to decide whether an
40
- // interface is augmentable; those .d.ts files come from the same core build.
41
- const CORE_BUTTON_DTS = path.join(
42
- REPO_ROOT,
43
- 'packages/core/dist/Button/index.d.ts',
44
- );
45
35
 
46
36
  function runCli(args, cwd) {
47
37
  try {
@@ -68,14 +58,13 @@ function writeTheme(dir, contents) {
68
58
  return file;
69
59
  }
70
60
 
61
+ // Build core through the shared lock helper — this suite previously ran its
62
+ // own unguarded `if (!exists) pnpm -F core build`, and when Vitest scheduled
63
+ // it alongside the other build-theme suites on a fresh checkout, the
64
+ // concurrent builds collided on packages/core/dist (core's build starts by
65
+ // wiping dist), nondeterministically breaking whichever suite was mid-read.
71
66
  beforeAll(() => {
72
- if (!fs.existsSync(CORE_THEME_ENTRY) || !fs.existsSync(CORE_BUTTON_DTS)) {
73
- execFileSync('pnpm', ['-F', '@astryxdesign/core', 'build'], {
74
- cwd: REPO_ROOT,
75
- stdio: 'pipe',
76
- timeout: 180_000,
77
- });
78
- }
67
+ ensureCoreBuilt();
79
68
  }, 200_000);
80
69
 
81
70
  let tmpDir;