@indigoai-us/hq-cli 5.345.10 → 5.345.12
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 +10 -0
- package/assets/scaffold/core/scripts/hq-delegate-grant.sh +11 -4
- package/assets/scaffold/core/scripts/hq-delegate-send.sh +11 -4
- package/assets/scaffold/core/scripts/hq-job-probe.sh +11 -4
- package/assets/scaffold/core/scripts/jobs-validate.sh +11 -4
- package/assets/scaffold/core/scripts/register-project.sh +5 -5
- package/assets/scaffold/core/scripts/repo-run-registry.sh +8 -8
- package/assets/scaffold/core/scripts/resume-thread-lock.sh +4 -4
- package/assets/scaffold/core/scripts/session-journal.sh +3 -3
- package/assets/scaffold/core/scripts/verify-story-deliverables.sh +1 -1
- package/assets/scaffold/core/scripts/worktree-gc.sh +1 -1
- package/dist/commands/core-delegate-w1b.js +4 -1
- package/dist/commands/core-handoff.js +69 -34
- package/dist/commands/core-hq-session-native.js +31 -6
- package/dist/commands/core-job-notify-fast.d.ts +2 -0
- package/dist/commands/core-job-notify-fast.js +6 -0
- package/dist/commands/core-job-probe-fast.d.ts +2 -0
- package/dist/commands/core-job-probe-fast.js +11 -0
- package/dist/commands/core-job-probe-native.js +1 -1
- package/dist/commands/core-job-remediate-fast.d.ts +2 -0
- package/dist/commands/core-job-remediate-fast.js +6 -0
- package/dist/commands/core-job-run-fast.d.ts +2 -0
- package/dist/commands/core-job-run-fast.js +6 -0
- package/dist/commands/core-pin-fast.d.ts +2 -0
- package/dist/commands/core-pin-fast.js +15 -0
- package/dist/commands/core-rebuild-index-fast.d.ts +6 -0
- package/dist/commands/core-rebuild-index-fast.js +39 -0
- package/dist/commands/core-register-project-native.js +11 -2
- package/dist/commands/core-repo-run-registry-native.js +47 -4
- package/dist/commands/core-session-journal-native.d.ts +1 -1
- package/dist/commands/core-session-journal-native.js +4 -4
- package/dist/commands/core-session-project-native.js +2 -1
- package/dist/commands/core-share-suggestion-state-native.js +6 -2
- package/dist/commands/core-work-mesh-live-rebind-native.js +5 -2
- package/dist/commands/core-worker-lint-fast.d.ts +2 -0
- package/dist/commands/core-worker-lint-fast.js +11 -0
- package/dist/commands/core.js +9 -6
- package/dist/fast-scaffold.js +49 -0
- package/dist/lib/checkpoint-ontology/merge-copies.d.ts +4 -3
- package/dist/lib/core-utils/worktree-resume.d.ts +1 -0
- package/dist/lib/core-utils/worktree-resume.js +68 -31
- package/dist/lib/daemon/catalog.d.ts +10 -0
- package/dist/lib/daemon/catalog.js +8 -0
- package/dist/lib/daemon/lanes-reconcile-guard.d.ts +43 -0
- package/dist/lib/daemon/lanes-reconcile-guard.js +115 -0
- package/dist/lib/daemon/ops/journal.d.ts +0 -1
- package/dist/lib/daemon/ops/journal.js +1 -1
- package/dist/lib/daemon/ops/mcp.d.ts +0 -1
- package/dist/lib/daemon/ops/mcp.js +1 -1
- package/dist/lib/daemon/ops/policy.d.ts +0 -7
- package/dist/lib/daemon/ops/policy.js +1 -1
- package/dist/lib/daemon/run.js +2 -0
- package/dist/lib/daemon/supervisor.d.ts +2 -0
- package/dist/lib/daemon/supervisor.js +28 -0
- package/dist/lib/doctor/checks/sync-health.d.ts +0 -2
- package/dist/lib/doctor/checks/sync-health.js +1 -1
- package/dist/lib/lanes/admission.d.ts +0 -2
- package/dist/lib/lanes/admission.js +2 -2
- package/dist/lib/lanes/autopilot-metrics.d.ts +5 -4
- package/dist/lib/lanes/autopilot-registry.d.ts +2 -5
- package/dist/lib/lanes/autopilot-registry.js +4 -4
- package/dist/lib/lanes/compaction.d.ts +2 -1
- package/dist/lib/lanes/delivery.d.ts +0 -2
- package/dist/lib/lanes/delivery.js +1 -1
- package/dist/lib/lanes/hooks-install.d.ts +0 -1
- package/dist/lib/lanes/hooks-install.js +1 -1
- package/dist/lib/lanes/merge-command.d.ts +2 -1
- package/dist/lib/lanes/orphans.d.ts +0 -1
- package/dist/lib/lanes/orphans.js +1 -1
- package/dist/lib/lanes/outpost-worktree-pruner.d.ts +3 -2
- package/dist/lib/lanes/provider-rejection.d.ts +0 -1
- package/dist/lib/lanes/provider-rejection.js +1 -1
- package/dist/lib/lanes/reconcile.d.ts +0 -5
- package/dist/lib/lanes/reconcile.js +4 -4
- package/dist/lib/lanes/runaway-tool-guard.d.ts +1 -1
- package/dist/lib/lanes/spawn.d.ts +1 -7
- package/dist/lib/lanes/spawn.js +4 -4
- package/dist/lib/lanes/throttle.d.ts +0 -1
- package/dist/lib/lanes/throttle.js +1 -1
- package/dist/lib/lanes/types.d.ts +6 -5
- package/dist/lib/lanes/watcher.d.ts +0 -9
- package/dist/lib/lanes/watcher.js +2 -2
- package/dist/lib/mesh/live/daemon/legacy-listen.d.ts +0 -3
- package/dist/lib/mesh/live/daemon/legacy-listen.js +3 -3
- package/dist/lib/mesh/live/paths.d.ts +0 -1
- package/dist/lib/mesh/live/paths.js +1 -1
- package/dist/lib/mesh/live/spool.d.ts +0 -8
- package/dist/lib/mesh/live/spool.js +3 -3
- package/dist/lib/mesh/story-status.d.ts +2 -7
- package/dist/lib/mesh/story-status.js +2 -2
- package/dist/lib/sync-invalid-entity-warning.d.ts +0 -1
- package/dist/lib/sync-invalid-entity-warning.js +1 -1
- package/dist/lib/work-context/atomic.d.ts +0 -4
- package/dist/lib/work-context/atomic.js +1 -1
- package/dist/lib/work-context/contract.d.ts +2 -3
- package/dist/lib/work-context/contract.js +1 -1
- package/dist/lib/work-context/preflight-contract.d.ts +2 -7
- package/dist/lib/work-context/preflight-contract.js +1 -1
- package/dist/lib/work-context/repo-remote.d.ts +2 -1
- package/dist/utils/manifest.d.ts +0 -2
- package/dist/utils/manifest.js +2 -2
- package/dist/utils/resident-package-preload.d.ts +0 -5
- package/dist/utils/resident-package-preload.js +1 -1
- package/dist/utils/run-bundled-script.js +1 -1
- package/dist/utils/version-gate.d.ts +2 -2
- package/package.json +1 -1
|
@@ -34,7 +34,7 @@ export const CONTEXT_RESULT_KINDS = [
|
|
|
34
34
|
"error",
|
|
35
35
|
];
|
|
36
36
|
/** Local-only classification: no tenant read or write. */
|
|
37
|
-
|
|
37
|
+
const LOCAL_ONLY_CLASSIFICATION = new Set(["needs_company", "company_conflict", "untracked"]);
|
|
38
38
|
/**
|
|
39
39
|
* Normalize taskId / storyId ingress. taskId is canonical; storyId is alias.
|
|
40
40
|
* Conflicting dual aliases are rejected.
|
|
@@ -11,13 +11,7 @@ import { type ContextResult } from "./contract.js";
|
|
|
11
11
|
export declare const PREFLIGHT_CONTRACT_VERSION: 1;
|
|
12
12
|
/** Classifications reconcile actually returns on the offline preflight path. */
|
|
13
13
|
export declare const OFFLINE_PREFLIGHT_CLASSIFICATIONS: readonly ["unresolved", "needs_company", "company_conflict", "needs_project", "needs_task", "bound", "untracked"];
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* One representative result per emitted classification, using the kind and
|
|
17
|
-
* delivery the offline path actually returns (company-resolved results are
|
|
18
|
-
* kind "queued" / delivery "queued"; local-only results are delivery "clean").
|
|
19
|
-
*/
|
|
20
|
-
export declare function preflightFixtureFor(classification: OfflinePreflightClassification): ContextResult;
|
|
14
|
+
type OfflinePreflightClassification = (typeof OFFLINE_PREFLIGHT_CLASSIFICATIONS)[number];
|
|
21
15
|
export interface PreflightFixtureFile {
|
|
22
16
|
contractVersion: typeof PREFLIGHT_CONTRACT_VERSION;
|
|
23
17
|
source: "hq-cli contracts/preflight/v1/fixtures.json";
|
|
@@ -25,4 +19,5 @@ export interface PreflightFixtureFile {
|
|
|
25
19
|
fixtures: ContextResult[];
|
|
26
20
|
}
|
|
27
21
|
export declare function buildPreflightFixtures(): PreflightFixtureFile;
|
|
22
|
+
export {};
|
|
28
23
|
//# sourceMappingURL=preflight-contract.d.ts.map
|
|
@@ -37,7 +37,7 @@ function base(classification, kind, delivery) {
|
|
|
37
37
|
* delivery the offline path actually returns (company-resolved results are
|
|
38
38
|
* kind "queued" / delivery "queued"; local-only results are delivery "clean").
|
|
39
39
|
*/
|
|
40
|
-
|
|
40
|
+
function preflightFixtureFor(classification) {
|
|
41
41
|
switch (classification) {
|
|
42
42
|
case "unresolved":
|
|
43
43
|
return base("unresolved", "queued", "queued");
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* (no git subprocess), normalises to owner/name, and matches against
|
|
6
6
|
* companies/manifest.yaml repos. Zero or multiple matches → no signal.
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
interface CompaniesManifestEntry {
|
|
9
9
|
repos?: unknown;
|
|
10
10
|
[k: string]: unknown;
|
|
11
11
|
}
|
|
@@ -57,4 +57,5 @@ export declare function deriveRemoteOwnerSlug(opts: {
|
|
|
57
57
|
/** Injectable manifest reader (tests). */
|
|
58
58
|
readManifest?: (hqRoot: string) => CompaniesManifestMap | null;
|
|
59
59
|
}): string | null;
|
|
60
|
+
export {};
|
|
60
61
|
//# sourceMappingURL=repo-remote.d.ts.map
|
package/dist/utils/manifest.d.ts
CHANGED
|
@@ -14,8 +14,6 @@ export declare function findHqRoot(): string;
|
|
|
14
14
|
* Exported for tests.
|
|
15
15
|
*/
|
|
16
16
|
export declare function getManifestPath(hqRoot: string): string;
|
|
17
|
-
export declare function getLockPath(hqRoot: string): string;
|
|
18
|
-
export declare function getStatePath(hqRoot: string): string;
|
|
19
17
|
export declare function getModulesDir(hqRoot: string): string;
|
|
20
18
|
export declare function readManifest(hqRoot: string): ModulesManifest | null;
|
|
21
19
|
export declare function writeManifest(hqRoot: string, manifest: ModulesManifest): void;
|
package/dist/utils/manifest.js
CHANGED
|
@@ -37,10 +37,10 @@ export function getManifestPath(hqRoot) {
|
|
|
37
37
|
return flat;
|
|
38
38
|
return nested; // default for fresh HQs — see getModulesDir()
|
|
39
39
|
}
|
|
40
|
-
|
|
40
|
+
function getLockPath(hqRoot) {
|
|
41
41
|
return path.join(hqRoot, LOCK_FILE);
|
|
42
42
|
}
|
|
43
|
-
|
|
43
|
+
function getStatePath(hqRoot) {
|
|
44
44
|
return path.join(hqRoot, STATE_FILE);
|
|
45
45
|
}
|
|
46
46
|
export function getModulesDir(hqRoot) {
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
export type ResidentPackagePath = "agent-kit" | "agent-mcp" | "auth-login" | "agents-terminal" | "bot" | "bot-logs-follow" | "childWrapper" | "coreJobRun" | "daemon-call" | "login" | "mcp" | "daemon" | "daemon-logs-follow" | "mesh-daemon" | "lanes-watch" | "monitor-wait" | "monitor-run" | "agents-message-wait" | "integrations-oauth-wait" | "outpost-wait" | "secrets-sandbox" | "pkg-update" | "pack-install";
|
|
2
2
|
/** Runtime modules that resident commands may need after a wait starts. */
|
|
3
3
|
export declare const RESIDENT_PACKAGE_MODULES: Record<ResidentPackagePath, readonly string[]>;
|
|
4
|
-
export declare class ResidentPackagePreloadError extends Error {
|
|
5
|
-
readonly moduleSpecifier: string;
|
|
6
|
-
readonly errorClass: string;
|
|
7
|
-
constructor(moduleSpecifier: string, errorClass: string);
|
|
8
|
-
}
|
|
9
4
|
/** Report only bounded runtime metadata; never include an exception message or path. */
|
|
10
5
|
export declare function reportResidentPackagePreloadFailure(error: unknown): void;
|
|
11
6
|
/** Resolve every lazy package module before a resident command releases its lease. */
|
|
@@ -311,7 +311,7 @@ const LOADERS = {
|
|
|
311
311
|
() => import("@indigoai-us/hq-cloud"),
|
|
312
312
|
],
|
|
313
313
|
};
|
|
314
|
-
|
|
314
|
+
class ResidentPackagePreloadError extends Error {
|
|
315
315
|
moduleSpecifier;
|
|
316
316
|
errorClass;
|
|
317
317
|
constructor(moduleSpecifier, errorClass) {
|
|
@@ -33,7 +33,7 @@ import { spawnSync } from "child_process";
|
|
|
33
33
|
import * as fs from "node:fs";
|
|
34
34
|
import * as os from "node:os";
|
|
35
35
|
import * as path from "path";
|
|
36
|
-
import { resolveBundledAsset } from "./hq-roots.js";
|
|
36
|
+
import { resolveBundledAsset } from "./hq-roots-core.js";
|
|
37
37
|
/**
|
|
38
38
|
* Which interpreter runs a bundled asset, chosen by extension.
|
|
39
39
|
*
|
|
@@ -33,7 +33,7 @@ export type VersionGatePhase = "preflight" | "lock_acquired" | "installer_runnin
|
|
|
33
33
|
/** The last closed version-gate phase observed in this process. */
|
|
34
34
|
export declare function getVersionGatePhase(): VersionGatePhase;
|
|
35
35
|
/** Which package manager owns the running global install. */
|
|
36
|
-
|
|
36
|
+
type InstallManager = "npm" | "pnpm" | "bun";
|
|
37
37
|
export interface VersionCheckResponse {
|
|
38
38
|
clientId: string;
|
|
39
39
|
currentVersion: string;
|
|
@@ -233,7 +233,7 @@ export declare function buildBunInstallArgv(): string[];
|
|
|
233
233
|
* Filesystem surface used by {@link cleanStalePartialInstall}. Injected so the
|
|
234
234
|
* cleanup logic is unit-testable without touching a real global prefix.
|
|
235
235
|
*/
|
|
236
|
-
|
|
236
|
+
interface StaleInstallFs {
|
|
237
237
|
readdirSync: (dir: string) => string[];
|
|
238
238
|
existsSync: (target: string) => boolean;
|
|
239
239
|
readFileSync: (target: string, encoding: "utf-8") => string;
|