@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 +8 -0
- package/dist/commands/lanes.js +10 -7
- package/package.json +1 -1
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
|
package/dist/commands/lanes.js
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
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
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 =
|
|
132
|
-
process.stderr.write(`hq lanes: ${message}${
|
|
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
|
}
|