@indigoai-us/hq-cli 5.212.0 → 5.213.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [5.213.0] — 2026-09-26
6
+
7
+ ### Fixed
8
+
9
+ - `hq lanes accounts set-home` and `login` return
10
+ `company_selection_failed` for company-selection errors without a stack
11
+ trace. Other resolver failures remain `internal` and include a stack trace.
12
+
5
13
  ## [5.212.0] — 2026-09-26
6
14
 
7
15
  ### Changed
@@ -121,15 +121,18 @@ function printJson(value) {
121
121
  console.log(JSON.stringify(withoutProviderHome(value), null, 2));
122
122
  }
123
123
  function failJson(err) {
124
- if (isLanesError(err)) {
125
- if (err.error === "hire_grant_exhausted") {
126
- process.stderr.write(`hq lanes: ${err.message}\n`);
127
- }
128
- printJson({ ...err.toJSON(), message: err.message });
124
+ const commandError = err instanceof CompanySelectionError
125
+ ? new LanesError("company_selection_failed", err.message)
126
+ : err;
127
+ if (isLanesError(commandError)) {
128
+ if (commandError.error === "hire_grant_exhausted") {
129
+ process.stderr.write(`hq lanes: ${commandError.message}\n`);
130
+ }
131
+ printJson({ ...commandError.toJSON(), message: commandError.message });
129
132
  process.exit(1);
130
133
  }
131
- const message = err instanceof Error ? err.message : String(err);
132
- process.stderr.write(`hq lanes: ${message}${err instanceof Error && err.stack ? `\n${err.stack}` : ""}\n`);
134
+ const message = commandError instanceof Error ? commandError.message : String(commandError);
135
+ process.stderr.write(`hq lanes: ${message}${commandError instanceof Error && commandError.stack ? `\n${commandError.stack}` : ""}\n`);
133
136
  printJson({ error: "internal", message });
134
137
  process.exit(1);
135
138
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indigoai-us/hq-cli",
3
- "version": "5.212.0",
3
+ "version": "5.213.0",
4
4
  "description": "HQ by Indigo management CLI — modules and cloud sync",
5
5
  "main": "dist/index.js",
6
6
  "bin": {