@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.
Files changed (106) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/assets/scaffold/core/scripts/hq-delegate-grant.sh +11 -4
  3. package/assets/scaffold/core/scripts/hq-delegate-send.sh +11 -4
  4. package/assets/scaffold/core/scripts/hq-job-probe.sh +11 -4
  5. package/assets/scaffold/core/scripts/jobs-validate.sh +11 -4
  6. package/assets/scaffold/core/scripts/register-project.sh +5 -5
  7. package/assets/scaffold/core/scripts/repo-run-registry.sh +8 -8
  8. package/assets/scaffold/core/scripts/resume-thread-lock.sh +4 -4
  9. package/assets/scaffold/core/scripts/session-journal.sh +3 -3
  10. package/assets/scaffold/core/scripts/verify-story-deliverables.sh +1 -1
  11. package/assets/scaffold/core/scripts/worktree-gc.sh +1 -1
  12. package/dist/commands/core-delegate-w1b.js +4 -1
  13. package/dist/commands/core-handoff.js +69 -34
  14. package/dist/commands/core-hq-session-native.js +31 -6
  15. package/dist/commands/core-job-notify-fast.d.ts +2 -0
  16. package/dist/commands/core-job-notify-fast.js +6 -0
  17. package/dist/commands/core-job-probe-fast.d.ts +2 -0
  18. package/dist/commands/core-job-probe-fast.js +11 -0
  19. package/dist/commands/core-job-probe-native.js +1 -1
  20. package/dist/commands/core-job-remediate-fast.d.ts +2 -0
  21. package/dist/commands/core-job-remediate-fast.js +6 -0
  22. package/dist/commands/core-job-run-fast.d.ts +2 -0
  23. package/dist/commands/core-job-run-fast.js +6 -0
  24. package/dist/commands/core-pin-fast.d.ts +2 -0
  25. package/dist/commands/core-pin-fast.js +15 -0
  26. package/dist/commands/core-rebuild-index-fast.d.ts +6 -0
  27. package/dist/commands/core-rebuild-index-fast.js +39 -0
  28. package/dist/commands/core-register-project-native.js +11 -2
  29. package/dist/commands/core-repo-run-registry-native.js +47 -4
  30. package/dist/commands/core-session-journal-native.d.ts +1 -1
  31. package/dist/commands/core-session-journal-native.js +4 -4
  32. package/dist/commands/core-session-project-native.js +2 -1
  33. package/dist/commands/core-share-suggestion-state-native.js +6 -2
  34. package/dist/commands/core-work-mesh-live-rebind-native.js +5 -2
  35. package/dist/commands/core-worker-lint-fast.d.ts +2 -0
  36. package/dist/commands/core-worker-lint-fast.js +11 -0
  37. package/dist/commands/core.js +9 -6
  38. package/dist/fast-scaffold.js +49 -0
  39. package/dist/lib/checkpoint-ontology/merge-copies.d.ts +4 -3
  40. package/dist/lib/core-utils/worktree-resume.d.ts +1 -0
  41. package/dist/lib/core-utils/worktree-resume.js +68 -31
  42. package/dist/lib/daemon/catalog.d.ts +10 -0
  43. package/dist/lib/daemon/catalog.js +8 -0
  44. package/dist/lib/daemon/lanes-reconcile-guard.d.ts +43 -0
  45. package/dist/lib/daemon/lanes-reconcile-guard.js +115 -0
  46. package/dist/lib/daemon/ops/journal.d.ts +0 -1
  47. package/dist/lib/daemon/ops/journal.js +1 -1
  48. package/dist/lib/daemon/ops/mcp.d.ts +0 -1
  49. package/dist/lib/daemon/ops/mcp.js +1 -1
  50. package/dist/lib/daemon/ops/policy.d.ts +0 -7
  51. package/dist/lib/daemon/ops/policy.js +1 -1
  52. package/dist/lib/daemon/run.js +2 -0
  53. package/dist/lib/daemon/supervisor.d.ts +2 -0
  54. package/dist/lib/daemon/supervisor.js +28 -0
  55. package/dist/lib/doctor/checks/sync-health.d.ts +0 -2
  56. package/dist/lib/doctor/checks/sync-health.js +1 -1
  57. package/dist/lib/lanes/admission.d.ts +0 -2
  58. package/dist/lib/lanes/admission.js +2 -2
  59. package/dist/lib/lanes/autopilot-metrics.d.ts +5 -4
  60. package/dist/lib/lanes/autopilot-registry.d.ts +2 -5
  61. package/dist/lib/lanes/autopilot-registry.js +4 -4
  62. package/dist/lib/lanes/compaction.d.ts +2 -1
  63. package/dist/lib/lanes/delivery.d.ts +0 -2
  64. package/dist/lib/lanes/delivery.js +1 -1
  65. package/dist/lib/lanes/hooks-install.d.ts +0 -1
  66. package/dist/lib/lanes/hooks-install.js +1 -1
  67. package/dist/lib/lanes/merge-command.d.ts +2 -1
  68. package/dist/lib/lanes/orphans.d.ts +0 -1
  69. package/dist/lib/lanes/orphans.js +1 -1
  70. package/dist/lib/lanes/outpost-worktree-pruner.d.ts +3 -2
  71. package/dist/lib/lanes/provider-rejection.d.ts +0 -1
  72. package/dist/lib/lanes/provider-rejection.js +1 -1
  73. package/dist/lib/lanes/reconcile.d.ts +0 -5
  74. package/dist/lib/lanes/reconcile.js +4 -4
  75. package/dist/lib/lanes/runaway-tool-guard.d.ts +1 -1
  76. package/dist/lib/lanes/spawn.d.ts +1 -7
  77. package/dist/lib/lanes/spawn.js +4 -4
  78. package/dist/lib/lanes/throttle.d.ts +0 -1
  79. package/dist/lib/lanes/throttle.js +1 -1
  80. package/dist/lib/lanes/types.d.ts +6 -5
  81. package/dist/lib/lanes/watcher.d.ts +0 -9
  82. package/dist/lib/lanes/watcher.js +2 -2
  83. package/dist/lib/mesh/live/daemon/legacy-listen.d.ts +0 -3
  84. package/dist/lib/mesh/live/daemon/legacy-listen.js +3 -3
  85. package/dist/lib/mesh/live/paths.d.ts +0 -1
  86. package/dist/lib/mesh/live/paths.js +1 -1
  87. package/dist/lib/mesh/live/spool.d.ts +0 -8
  88. package/dist/lib/mesh/live/spool.js +3 -3
  89. package/dist/lib/mesh/story-status.d.ts +2 -7
  90. package/dist/lib/mesh/story-status.js +2 -2
  91. package/dist/lib/sync-invalid-entity-warning.d.ts +0 -1
  92. package/dist/lib/sync-invalid-entity-warning.js +1 -1
  93. package/dist/lib/work-context/atomic.d.ts +0 -4
  94. package/dist/lib/work-context/atomic.js +1 -1
  95. package/dist/lib/work-context/contract.d.ts +2 -3
  96. package/dist/lib/work-context/contract.js +1 -1
  97. package/dist/lib/work-context/preflight-contract.d.ts +2 -7
  98. package/dist/lib/work-context/preflight-contract.js +1 -1
  99. package/dist/lib/work-context/repo-remote.d.ts +2 -1
  100. package/dist/utils/manifest.d.ts +0 -2
  101. package/dist/utils/manifest.js +2 -2
  102. package/dist/utils/resident-package-preload.d.ts +0 -5
  103. package/dist/utils/resident-package-preload.js +1 -1
  104. package/dist/utils/run-bundled-script.js +1 -1
  105. package/dist/utils/version-gate.d.ts +2 -2
  106. 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
- export const LOCAL_ONLY_CLASSIFICATION = new Set(["needs_company", "company_conflict", "untracked"]);
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
- export type OfflinePreflightClassification = (typeof OFFLINE_PREFLIGHT_CLASSIFICATIONS)[number];
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
- export function preflightFixtureFor(classification) {
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
- export interface CompaniesManifestEntry {
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
@@ -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;
@@ -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
- export function getLockPath(hqRoot) {
40
+ function getLockPath(hqRoot) {
41
41
  return path.join(hqRoot, LOCK_FILE);
42
42
  }
43
- export function getStatePath(hqRoot) {
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
- export class ResidentPackagePreloadError extends Error {
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
- export type InstallManager = "npm" | "pnpm" | "bun";
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
- export interface StaleInstallFs {
236
+ interface StaleInstallFs {
237
237
  readdirSync: (dir: string) => string[];
238
238
  existsSync: (target: string) => boolean;
239
239
  readFileSync: (target: string, encoding: "utf-8") => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indigoai-us/hq-cli",
3
- "version": "5.345.10",
3
+ "version": "5.345.12",
4
4
  "description": "HQ by Indigo management CLI — modules and cloud sync",
5
5
  "main": "dist/index.js",
6
6
  "bin": {