@fusion.dev/helix-cli 0.218.0 → 0.219.0

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.
Files changed (2) hide show
  1. package/bin.mjs +13 -5
  2. package/package.json +7 -7
package/bin.mjs CHANGED
@@ -230,6 +230,14 @@ const run = (binary) => {
230
230
  process.exit(status ?? 70)
231
231
  }
232
232
 
233
+ /**
234
+ * What a build here asks cargo for: the selection `rs:build` and CI build,
235
+ * the workspace without the desktop app's shell. The shell links the system's
236
+ * webview, which a machine building only the command lines may not have: on
237
+ * CI's runner its `glib-sys` found no `glib-2.0` and every rule check failed.
238
+ */
239
+ const SELECTION = ['--workspace', '--exclude', 'fusion-hartley-desktop']
240
+
233
241
  /* **In this repository, cargo is asked first, and asking is cheap.** A binary
234
242
  under `target/` is whatever the last build left, so after an edit to a rule,
235
243
  or a branch switch, this ran the old rules against the new tree: measured on
@@ -237,8 +245,8 @@ const run = (binary) => {
237
245
  where there is a crate and a cargo, the build comes first and the debug
238
246
  binary it leaves is the one that runs.
239
247
 
240
- **`--workspace`, the selection `rs:build` and CI build.** Cargo unifies
241
- features per selection, so alternating `-p fusion-helix-cli` with `--workspace`
248
+ **`SELECTION`, the one `rs:build` and CI build.** Cargo unifies
249
+ features per selection, so alternating `-p fusion-helix-cli` with the workspace
242
250
  recompiled on every switch, about a second each, where asking for the same
243
251
  selection twice is 0.14s. `HELIX_BIN` still outranks everything, and a checkout
244
252
  with no cargo falls through to whatever is already built, as a probe from
@@ -249,7 +257,7 @@ if (
249
257
  checkout &&
250
258
  hasCargo()
251
259
  ) {
252
- const fresh = spawnSync('cargo', ['build', '--workspace', '--quiet'], {
260
+ const fresh = spawnSync('cargo', ['build', ...SELECTION, '--quiet'], {
253
261
  cwd: WORKSPACE,
254
262
  stdio: 'inherit',
255
263
  })
@@ -346,8 +354,8 @@ if (!hasCargo()) {
346
354
  process.exit(69)
347
355
  }
348
356
 
349
- console.error('helix: no binary yet, building it once (cargo build --workspace)')
350
- const build = spawnSync('cargo', ['build', '--workspace'], {
357
+ console.error(`helix: no binary yet, building it once (cargo build ${SELECTION.join(' ')})`)
358
+ const build = spawnSync('cargo', ['build', ...SELECTION], {
351
359
  cwd: WORKSPACE,
352
360
  stdio: 'inherit',
353
361
  })
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fusion.dev/helix-cli",
3
3
  "description": "The Helix command line, for a workspace that reaches it through npm, and the visual tests it runs.",
4
- "version": "0.218.0",
4
+ "version": "0.219.0",
5
5
  "license": "MIT",
6
6
  "author": "Ross Sheppard <ross.sheppard@fusion.dev>",
7
7
  "repository": {
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "bugs": "https://github.com/project-fusion/fusion/issues",
32
32
  "dependencies": {
33
- "@fusion.dev/helix-templates": "0.218.0"
33
+ "@fusion.dev/helix-templates": "0.219.0"
34
34
  },
35
35
  "homepage": "https://fusion.dev",
36
36
  "keywords": [
@@ -44,11 +44,11 @@
44
44
  "visual-regression"
45
45
  ],
46
46
  "optionalDependencies": {
47
- "@fusion.dev/helix-cli-darwin-arm64": "0.218.0",
48
- "@fusion.dev/helix-cli-darwin-x64": "0.218.0",
49
- "@fusion.dev/helix-cli-linux-arm64": "0.218.0",
50
- "@fusion.dev/helix-cli-linux-x64": "0.218.0",
51
- "@fusion.dev/helix-cli-win32-x64": "0.218.0"
47
+ "@fusion.dev/helix-cli-darwin-arm64": "0.219.0",
48
+ "@fusion.dev/helix-cli-darwin-x64": "0.219.0",
49
+ "@fusion.dev/helix-cli-linux-arm64": "0.219.0",
50
+ "@fusion.dev/helix-cli-linux-x64": "0.219.0",
51
+ "@fusion.dev/helix-cli-win32-x64": "0.219.0"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "@anthropic-ai/sdk": ">=0.132",