@indigoai-us/hq-cli 5.211.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,20 @@
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
+
13
+ ## [5.212.0] — 2026-09-26
14
+
15
+ ### Changed
16
+
17
+ - `checkpoint.ontology.ignore-annotations` now strips annotator entity lists from the ontology inputs only when the checkpoint sibling runs on grok. On a machine that falls back to claude or codex the model reads the annotated inputs as before, because Claude on stripped inputs lost 0.139 recall on the gold-v2 set.
18
+
5
19
  ## [5.211.0] — 2026-09-26
6
20
 
7
21
  ### Fixed
@@ -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
  }
@@ -12,6 +12,12 @@ import { type OntologyCompany } from "./company.js";
12
12
  export declare const ONTOLOGY_FLAG = "checkpoint.ontology";
13
13
  export declare const SHARED_INPUTS_FLAG = "checkpoint.ontology.shared-inputs";
14
14
  export declare const COMPANY_BRIEF_FLAG = "checkpoint.ontology.company-brief";
15
+ /**
16
+ * Applies only when the payload's sibling backend is grok. On gold-v2, Claude
17
+ * with stripped inputs lost 0.139 recall; Grok with stripped inputs gained
18
+ * precision without losing recall. A machine that falls back from grok keeps
19
+ * the annotated inputs.
20
+ */
15
21
  export declare const IGNORE_ANNOTATIONS_FLAG = "checkpoint.ontology.ignore-annotations";
16
22
  /**
17
23
  * With `--backend auto`, `hq core checkpoint` tries grok first for this
@@ -97,6 +103,8 @@ export interface OntologyPlan {
97
103
  }
98
104
  export interface CheckpointPayloadLike {
99
105
  company?: unknown;
106
+ /** The sibling backend `hq core checkpoint` spawned for this payload. */
107
+ backend?: unknown;
100
108
  files?: unknown;
101
109
  summary?: unknown;
102
110
  decisions?: unknown;
@@ -16,6 +16,12 @@ import { buildEntityIndex, listKnowledgeFiles, listSignalFiles, readSignal } fro
16
16
  export const ONTOLOGY_FLAG = "checkpoint.ontology";
17
17
  export const SHARED_INPUTS_FLAG = "checkpoint.ontology.shared-inputs";
18
18
  export const COMPANY_BRIEF_FLAG = "checkpoint.ontology.company-brief";
19
+ /**
20
+ * Applies only when the payload's sibling backend is grok. On gold-v2, Claude
21
+ * with stripped inputs lost 0.139 recall; Grok with stripped inputs gained
22
+ * precision without losing recall. A machine that falls back from grok keeps
23
+ * the annotated inputs.
24
+ */
19
25
  export const IGNORE_ANNOTATIONS_FLAG = "checkpoint.ontology.ignore-annotations";
20
26
  /**
21
27
  * With `--backend auto`, `hq core checkpoint` tries grok first for this
@@ -210,7 +216,7 @@ export async function planOntologyRun(options) {
210
216
  const companyBrief = (await options.readFlag(COMPANY_BRIEF_FLAG, company))
211
217
  ? writeCompanyBrief(hqRoot, company, options.now ?? new Date())
212
218
  : undefined;
213
- const ignoreAnnotations = await options.readFlag(IGNORE_ANNOTATIONS_FLAG, company);
219
+ const ignoreAnnotations = (await options.readFlag(IGNORE_ANNOTATIONS_FLAG, company)) && payload.backend === "grok";
214
220
  recordBackendPreference(hqRoot, company, await options.readFlag(GROK_BACKEND_FLAG, company));
215
221
  const touched = sessionTouched(hqRoot, company, payload.files);
216
222
  const { ledger, firstRun } = refreshLedger(company, readLedger(hqRoot, company), touched, sharedInputs);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indigoai-us/hq-cli",
3
- "version": "5.211.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": {