@indigoai-us/hq-cli 5.279.0 → 5.281.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.
@@ -20,6 +20,7 @@ import { buildEntityIndex } from "../lib/checkpoint-ontology/tree.js";
20
20
  import { MERGE_COPIES_FLAG, mergeCopies, } from "../lib/checkpoint-ontology/merge-copies.js";
21
21
  import { callDeleteEndpoint } from "./files.js";
22
22
  import { resolveVaultCredential } from "../utils/resolve-vault-credential.js";
23
+ import { registerCoreOntologyNativeCommands } from "./core-ontology-native.js";
23
24
  export const ONTOLOGY_PAYLOAD_FILE = "payload.json";
24
25
  class OntologyUsageError extends Error {
25
26
  }
@@ -267,5 +268,15 @@ export function registerCoreOntologyCommand(core) {
267
268
  }
268
269
  });
269
270
  describeCoreCommand(apply, { execution: "native", root: "live" });
271
+ registerCoreOntologyNativeCommands(ontology, () => {
272
+ const argv = process.argv.slice(2);
273
+ const coreIndex = argv.indexOf("core");
274
+ const ontologyIndex = argv.indexOf("ontology", coreIndex + 1);
275
+ const rootOptionIndex = argv.indexOf("--hq-root", coreIndex + 1);
276
+ const groupRoot = rootOptionIndex >= 0 && (ontologyIndex < 0 || rootOptionIndex < ontologyIndex)
277
+ ? argv[rootOptionIndex + 1]
278
+ : undefined;
279
+ return groupRoot ? rootFor({ hqRoot: groupRoot }) : process.env.HQ_ROOT || rootFor({});
280
+ });
270
281
  }
271
282
  //# sourceMappingURL=core-ontology.js.map
@@ -222,6 +222,15 @@ export const SCAFFOLD_ONLY_ASSETS = [
222
222
  { asset: "core/scripts/hq-delegate-secrets.sh", root: "live", summary: "Rollback shell for native delegate secrets" },
223
223
  { asset: "core/scripts/hq-delegate-transfer.sh", root: "live", summary: "Rollback shell for native delegate transfer" },
224
224
  { asset: "core/scripts/lib/secret-patterns.sh", root: "live", summary: "Secret-pattern library sourced by the delegate rollback shells" },
225
+ // Retained rollback companions for the gated native ontology commands. These
226
+ // are loose HQ-tree assets, but `hq core ontology` dispatches natively.
227
+ { asset: "core/scripts/ontology-audience-grant.sh", root: "live", summary: "Rollback companion for native ontology audience grant" },
228
+ { asset: "core/scripts/ontology-brief.mjs", root: "live", summary: "Rollback companion for native ontology brief" },
229
+ { asset: "core/scripts/ontology-candidate.sh", root: "live", summary: "Rollback companion for native ontology candidate" },
230
+ { asset: "core/scripts/ontology-garden.mjs", root: "live", summary: "Rollback companion for native ontology garden" },
231
+ { asset: "core/scripts/ontology-source-worklist.sh", root: "live", summary: "Rollback companion for native ontology source worklist" },
232
+ { asset: "core/scripts/source-yaml-validate.sh", root: "cwd", summary: "Rollback companion for native source YAML validation" },
233
+ { asset: "core/scripts/knowledge-prefs.sh", root: "live", summary: "Sibling dependency for ontology candidate rollback companion" },
225
234
  ...NATIVE_UTILITY_COMMANDS.map(({ asset, root, summary }) => ({
226
235
  asset,
227
236
  root,
@@ -242,8 +242,9 @@ export function registerGroupGrantsCommand(program) {
242
242
  });
243
243
  grants
244
244
  .command("outbound")
245
- .description("List grants a source-company group holds on other companies")
246
- .requiredOption("--group <groupId>", "Group id to inspect")
245
+ .description("List grants a source-company group holds on other companies; " +
246
+ "requires --group <groupId>.")
247
+ .requiredOption("--group <groupId>", "Group id to inspect (required)")
247
248
  .action(async (opts) => {
248
249
  try {
249
250
  const token = await ensureCognitoToken();
@@ -195,6 +195,7 @@ export interface Ctx {
195
195
  resolveCompany: (company?: string) => Promise<LaneCompanyRef>;
196
196
  resolveActiveCompany: (company: string) => Promise<LaneCompanyRef | null>;
197
197
  listOutpostIds: () => Promise<string[]>;
198
+ listOutpostRoutes: () => Promise<OutpostRouteIdentity[]>;
198
199
  readOutpostIdentity: () => OutpostIdentity;
199
200
  spawnLogin: (opts: {
200
201
  command: string;
@@ -244,6 +245,10 @@ export interface Ctx {
244
245
  mergeHoldEnabled?: (company: LaneCompanyRef) => boolean | Promise<boolean>;
245
246
  mergeReviewEnabled?: (company: LaneCompanyRef) => boolean | Promise<boolean>;
246
247
  }
248
+ export interface OutpostRouteIdentity {
249
+ outpostId: string;
250
+ instanceName?: string;
251
+ }
247
252
  export declare const LANE_OUTPOST_LOAD_BALANCING_FLAG = "lanes.outpost-load-balancing";
248
253
  export declare const CLAUDE_ACCOUNT_BALANCE_SIGNALS_FLAG = "lanes.claude-account-balance-signals";
249
254
  export declare function defaultLanePlacementEnabled(company: LaneCompanyRef | undefined): Promise<boolean>;
@@ -6,7 +6,7 @@
6
6
  * `watch` and the monitor reminder are the line-oriented text surfaces.
7
7
  */
8
8
  import { Command } from "commander";
9
- import { type LanesMesh, type SpawnLoginResult } from "./lanes-shared.js";
9
+ import { type LanesMesh, type OutpostRouteIdentity, type SpawnLoginResult } from "./lanes-shared.js";
10
10
  export type { LanesMesh, SpawnLoginResult } from "./lanes-shared.js";
11
11
  export { CLAUDE_ACCOUNT_BALANCE_SIGNALS_FLAG, LANE_OUTPOST_LOAD_BALANCING_FLAG } from "./lanes-shared.js";
12
12
  export { resolveAnswerChoice } from "./lanes-questions.js";
@@ -25,6 +25,7 @@ export { spawnLaneWorker };
25
25
  export { questionBodyAbsPath };
26
26
  export { MAX_LANE_DEPTH };
27
27
  export declare const LANES_RUNS_REL: string;
28
+ export declare const LANE_REMOTE_MIRROR_SYNC_FLAG = "lanes.remote-done-mirror";
28
29
  /** The lane → mesh seam. Defined in lib/lanes/mesh-events.ts; the watcher shares it. */
29
30
  export { emitLaneDecisionEvents };
30
31
  export interface LanesCommandDeps {
@@ -38,6 +39,7 @@ export interface LanesCommandDeps {
38
39
  /** Membership-backed explicit company selection for account-home writers. */
39
40
  resolveActiveCompany?: (company: string) => Promise<LaneCompanyRef | null>;
40
41
  listOutpostIds?: () => Promise<string[]>;
42
+ listOutpostRoutes?: () => Promise<OutpostRouteIdentity[]>;
41
43
  readOutpostIdentity?: () => OutpostIdentity;
42
44
  spawnLogin?: (opts: {
43
45
  command: string;