@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.
- package/CHANGELOG.md +25 -0
- package/assets/scaffold/core/scripts/knowledge-prefs.sh +55 -0
- package/assets/scaffold/core/scripts/ontology-audience-grant.sh +81 -0
- package/assets/scaffold/core/scripts/ontology-brief.mjs +93 -0
- package/assets/scaffold/core/scripts/ontology-candidate.sh +100 -0
- package/assets/scaffold/core/scripts/ontology-garden.mjs +238 -0
- package/assets/scaffold/core/scripts/ontology-source-worklist.sh +79 -0
- package/assets/scaffold/core/scripts/source-yaml-validate.sh +36 -0
- package/dist/command-catalog.generated.d.ts +80 -2
- package/dist/command-catalog.generated.js +98 -2
- package/dist/commands/auth.js +40 -2
- package/dist/commands/core-ontology-native.d.ts +16 -0
- package/dist/commands/core-ontology-native.js +924 -0
- package/dist/commands/core-ontology.js +11 -0
- package/dist/commands/core.js +9 -0
- package/dist/commands/group-grants.js +3 -2
- package/dist/commands/lanes-shared.d.ts +5 -0
- package/dist/commands/lanes.d.ts +3 -1
- package/dist/commands/lanes.js +368 -31
- package/dist/lib/lanes/outpost-dispatch.d.ts +3 -1
- package/dist/lib/lanes/outpost-dispatch.js +4 -0
- package/dist/lib/lanes/store.js +11 -0
- package/dist/lib/lanes/types.d.ts +4 -0
- package/dist/lib/lanes/types.js +1 -1
- package/package.json +1 -1
|
@@ -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
|
package/dist/commands/core.js
CHANGED
|
@@ -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
|
-
|
|
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>;
|
package/dist/commands/lanes.d.ts
CHANGED
|
@@ -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;
|