@aexol/spectral 0.9.241 → 0.9.243

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/dist/cli.d.ts CHANGED
@@ -12,6 +12,8 @@
12
12
  * browser (the thin replacement for the old desktop app)
13
13
  * - `spectral bind` → link directory to an Aexol Studio project
14
14
  * - `spectral unbind` → remove Aexol Studio project binding
15
+ * - `spectral` (bare) → branded help, exit 0 — this is what the post-install
16
+ * launcher runs, so it must never fail.
15
17
  * - `spectral --version` / `--help` → branded short-circuits, no auth needed.
16
18
  * - anything else → error with usage hint.
17
19
  */
package/dist/cli.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;GAeG"}
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;;;GAiBG"}
package/dist/cli.js CHANGED
@@ -12,6 +12,8 @@
12
12
  * browser (the thin replacement for the old desktop app)
13
13
  * - `spectral bind` → link directory to an Aexol Studio project
14
14
  * - `spectral unbind` → remove Aexol Studio project binding
15
+ * - `spectral` (bare) → branded help, exit 0 — this is what the post-install
16
+ * launcher runs, so it must never fail.
15
17
  * - `spectral --version` / `--help` → branded short-circuits, no auth needed.
16
18
  * - anything else → error with usage hint.
17
19
  */
@@ -82,6 +84,16 @@ async function main() {
82
84
  printHeader();
83
85
  process.exit(0);
84
86
  }
87
+ // Bare invocation (no subcommand): print help and exit 0. The installer's
88
+ // post-install launcher runs the binary exactly like this, so a bare
89
+ // `spectral` must succeed — only an UNKNOWN subcommand is an error.
90
+ if (first === undefined) {
91
+ printHeader();
92
+ // `exitCode` (not `process.exit`) so buffered stdout is flushed when the
93
+ // process exits naturally — same pattern as the desktop branch below.
94
+ process.exitCode = 0;
95
+ return;
96
+ }
85
97
  // Subcommands. Dynamic import keeps the cold-start path light when users
86
98
  // are just running spectral.
87
99
  if (first === "login") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aexol/spectral",
3
- "version": "0.9.241",
3
+ "version": "0.9.243",
4
4
  "description": "AI coding agent for Aexol with relay-based browser access.",
5
5
  "type": "module",
6
6
  "private": false,