@indigoai-us/hq-cli 5.345.236 → 5.345.238

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 (96) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/dist/command-catalog.generated.d.ts +1 -1
  3. package/dist/command-catalog.generated.js +1 -1
  4. package/dist/commands/bot.d.ts +2 -0
  5. package/dist/commands/bot.js +32 -0
  6. package/dist/commands/daemon.d.ts +1 -0
  7. package/dist/commands/daemon.js +70 -6
  8. package/dist/commands/deploy-app-db.js +4 -19
  9. package/dist/commands/deploy-app-upload.js +66 -40
  10. package/dist/commands/deploy-mutations.js +24 -16
  11. package/dist/commands/deploy-runtime-bindings.js +7 -26
  12. package/dist/commands/deploy-ssr.js +5 -24
  13. package/dist/commands/mesh.js +6 -2
  14. package/dist/commands/signals-run.d.ts +43 -2
  15. package/dist/commands/signals-run.js +85 -7
  16. package/dist/commands/sync-core.d.ts +7 -0
  17. package/dist/commands/sync-core.js +52 -3
  18. package/dist/lib/agent-kit/inbox-state.d.ts +2 -1
  19. package/dist/lib/agent-kit/inbox-state.js +27 -3
  20. package/dist/lib/bot/continuity.d.ts +21 -2
  21. package/dist/lib/bot/continuity.js +48 -19
  22. package/dist/lib/bot/fleet-cron.js +6 -0
  23. package/dist/lib/bot/fleet-local.d.ts +11 -1
  24. package/dist/lib/bot/fleet-local.js +21 -1
  25. package/dist/lib/bot/fleet-state.d.ts +129 -0
  26. package/dist/lib/bot/fleet-state.js +669 -0
  27. package/dist/lib/bot/promote.d.ts +32 -3
  28. package/dist/lib/bot/promote.js +188 -16
  29. package/dist/lib/bot/promotion-hold-reconcile.d.ts +56 -0
  30. package/dist/lib/bot/promotion-hold-reconcile.js +155 -0
  31. package/dist/lib/daemon/catalog.d.ts +13 -0
  32. package/dist/lib/daemon/catalog.js +32 -6
  33. package/dist/lib/daemon/lanes-reconcile-status.d.ts +0 -4
  34. package/dist/lib/daemon/lanes-reconcile-status.js +2 -12
  35. package/dist/lib/daemon/lanes-reconcile-watcher.d.ts +1 -1
  36. package/dist/lib/daemon/lanes-reconcile-watcher.js +2 -1
  37. package/dist/lib/daemon/legacy-handover.d.ts +38 -0
  38. package/dist/lib/daemon/legacy-handover.js +117 -0
  39. package/dist/lib/daemon/mesh-owner.js +2 -1
  40. package/dist/lib/daemon/run.d.ts +35 -2
  41. package/dist/lib/daemon/run.js +108 -15
  42. package/dist/lib/daemon/selfcheck.d.ts +28 -0
  43. package/dist/lib/daemon/selfcheck.js +86 -15
  44. package/dist/lib/deploy-api.d.ts +1 -1
  45. package/dist/lib/deploy-api.js +2 -1
  46. package/dist/lib/deploy-identity.d.ts +18 -0
  47. package/dist/lib/deploy-identity.js +179 -0
  48. package/dist/lib/hot-channels/alert.js +13 -6
  49. package/dist/lib/hot-channels/fleet-complete.d.ts +89 -0
  50. package/dist/lib/hot-channels/fleet-complete.js +157 -0
  51. package/dist/lib/hot-channels/run.js +2 -1
  52. package/dist/lib/hot-channels/signals-claude-login.d.ts +3 -2
  53. package/dist/lib/hot-channels/signals-claude-login.js +6 -1
  54. package/dist/lib/hot-channels/signals-pass-failure.d.ts +29 -0
  55. package/dist/lib/hot-channels/signals-pass-failure.js +36 -0
  56. package/dist/lib/hot-channels/signals-pass.d.ts +49 -2
  57. package/dist/lib/hot-channels/signals-pass.js +188 -12
  58. package/dist/lib/hot-channels/signals-runtime.d.ts +6 -3
  59. package/dist/lib/hot-channels/signals-runtime.js +11 -2
  60. package/dist/lib/lanes/reconcile-result.d.ts +5 -0
  61. package/dist/lib/lanes/reconcile-result.js +20 -2
  62. package/dist/lib/lanes/reconcile.js +12 -3
  63. package/dist/lib/mesh/live/emit.js +25 -6
  64. package/dist/lib/mesh/live/flush.js +119 -15
  65. package/dist/lib/mesh/live/reporting-privacy.d.ts +41 -0
  66. package/dist/lib/mesh/live/reporting-privacy.js +147 -1
  67. package/dist/lib/mesh/live/spool.d.ts +16 -0
  68. package/dist/lib/mesh/live/spool.js +45 -0
  69. package/dist/lib/signals/engine.d.ts +17 -3
  70. package/dist/lib/signals/engine.js +28 -9
  71. package/dist/lib/signals/failure-alert.d.ts +33 -1
  72. package/dist/lib/signals/failure-alert.js +72 -5
  73. package/dist/lib/signals/owner-notice.d.ts +94 -0
  74. package/dist/lib/signals/owner-notice.js +233 -0
  75. package/dist/lib/signals/reply.d.ts +7 -0
  76. package/dist/lib/signals/reply.js +23 -3
  77. package/dist/lib/signals/steps/adapters.d.ts +51 -2
  78. package/dist/lib/signals/steps/adapters.js +213 -7
  79. package/dist/lib/signals/steps/extract.js +18 -4
  80. package/dist/lib/signals/steps/types.d.ts +63 -1
  81. package/dist/lib/signals/steps/types.js +32 -0
  82. package/dist/lib/sync-core/engine-auth.d.ts +35 -0
  83. package/dist/lib/sync-core/engine-auth.js +96 -0
  84. package/dist/lib/sync-core/engine-home.d.ts +6 -0
  85. package/dist/lib/sync-core/engine-home.js +12 -0
  86. package/dist/lib/sync-core/rollout-state.d.ts +1 -0
  87. package/dist/lib/sync-core/rollout-state.js +3 -0
  88. package/dist/lib/vault-sync-switches.d.ts +7 -0
  89. package/dist/lib/vault-sync-switches.js +56 -0
  90. package/dist/lib/work-context/errors.d.ts +12 -0
  91. package/dist/lib/work-context/errors.js +15 -0
  92. package/dist/lib/work-context/organize.js +6 -1
  93. package/dist/lib/work-context/reconcile.js +20 -1
  94. package/dist/utils/resident-package-preload.js +34 -4
  95. package/docs/anywhere-runtime.md +6 -0
  96. package/package.json +7 -7
@@ -10,7 +10,8 @@ import { resolveBotMemoryDir } from "./config.js";
10
10
  import { packageRoot } from "../../utils/hq-roots.js";
11
11
  const MAX_FILES = 2000;
12
12
  const MAX_BYTES = 32 * 1024 * 1024;
13
- const PRIVATE_NAME = /^(?:\.env(?:\..*)?|\.ssh|\.aws|\.gnupg|\.netrc|\.git|node_modules|machine-creds\.json|bot\.json|auth\.json|credentials(?:\..*)?|id_rsa|id_ed25519)$/i;
13
+ export { MAX_FILES as MAX_TRANSFER_FILES, MAX_BYTES as MAX_TRANSFER_BYTES };
14
+ export const PRIVATE_NAME = /^(?:\.env(?:\..*)?|\.ssh|\.aws|\.gnupg|\.netrc|\.git|node_modules|machine-creds\.json|bot\.json|auth\.json|credentials(?:\..*)?|id_rsa|id_ed25519)$/i;
14
15
  const BUNDLED_SETUP_WORKER_DIR = "assets/bot-workers/setup";
15
16
  const BUNDLED_SETUP_CONTEXT = new Set([
16
17
  "skills/",
@@ -46,8 +47,33 @@ function plainDirectory(absolute, allowPrivateComponents = false) {
46
47
  }
47
48
  return resolved;
48
49
  }
50
+ /** No link is followed, and a file that changes while it is read is refused. */
51
+ export function readStableFile(absolute, label, st = fs.lstatSync(absolute)) {
52
+ if (st.isSymbolicLink())
53
+ reject(`symlink in context: ${label}`);
54
+ if (!st.isFile())
55
+ reject(`not a regular file: ${label}`);
56
+ if (st.size > MAX_BYTES)
57
+ reject(`file exceeds the transfer limit: ${label}`);
58
+ const fd = fs.openSync(absolute, fs.constants.O_RDONLY | fs.constants.O_NOFOLLOW);
59
+ try {
60
+ const current = fs.fstatSync(fd);
61
+ if (!current.isFile() || current.ino !== st.ino || current.dev !== st.dev)
62
+ reject(`file changed while reading: ${label}`);
63
+ const bytes = fs.readFileSync(fd);
64
+ const after = fs.fstatSync(fd);
65
+ if (after.size !== current.size || after.mtimeMs !== current.mtimeMs || bytes.length !== current.size)
66
+ reject(`file changed while reading: ${label}`);
67
+ return { bytes, executable: Boolean(st.mode & 0o111) };
68
+ }
69
+ finally {
70
+ fs.closeSync(fd);
71
+ }
72
+ }
73
+ /** Reserved folder in area `memory` for state carried out of the HQ Fleet Runtime profile. */
74
+ export const FLEET_STATE_DIR = "fleet-state";
49
75
  /** Capture original bytes, including supporting scripts and Mac-only memory. */
50
- export function snapshotBotContinuity(config, stateDir) {
76
+ export function snapshotBotContinuity(config, stateDir, fleetState = []) {
51
77
  assertIdentity(config.agentUid, config.ownerUid);
52
78
  const configuredWorkerRoot = path.resolve(config.hqRoot, config.workerDir);
53
79
  const bundledSetupRoot = path.resolve(packageRoot(), BUNDLED_SETUP_WORKER_DIR);
@@ -90,27 +116,30 @@ export function snapshotBotContinuity(config, stateDir) {
90
116
  reject(`not a regular file: ${child}`);
91
117
  if (files.length >= MAX_FILES || total + st.size > MAX_BYTES)
92
118
  reject("context exceeds transfer limit; nothing was truncated");
93
- const fd = fs.openSync(absolute, fs.constants.O_RDONLY | fs.constants.O_NOFOLLOW);
94
- try {
95
- const current = fs.fstatSync(fd);
96
- if (!current.isFile() || current.ino !== st.ino || current.dev !== st.dev)
97
- reject(`file changed while reading: ${child}`);
98
- const bytes = fs.readFileSync(fd);
99
- const after = fs.fstatSync(fd);
100
- if (after.size !== current.size || after.mtimeMs !== current.mtimeMs || bytes.length !== current.size)
101
- reject(`file changed while reading: ${child}`);
102
- total += bytes.length;
103
- if (total > MAX_BYTES)
104
- reject("context exceeds transfer limit");
105
- files.push({ area, path: child, bytes: bytes.length, sha256: sha(bytes), executable: Boolean(st.mode & 0o111), base64: bytes.toString("base64") });
106
- }
107
- finally {
108
- fs.closeSync(fd);
109
- }
119
+ const read = readStableFile(absolute, child, st);
120
+ total += read.bytes.length;
121
+ if (total > MAX_BYTES)
122
+ reject("context exceeds transfer limit");
123
+ files.push({ area, path: child, bytes: read.bytes.length, sha256: sha(read.bytes), executable: read.executable, base64: read.bytes.toString("base64") });
110
124
  }
111
125
  };
112
126
  walk(workerRoot, "worker");
113
127
  walk(memoryRoot, "memory");
128
+ if (fleetState.length) {
129
+ if (fs.lstatSync(path.join(memoryRoot, FLEET_STATE_DIR), { throwIfNoEntry: false }))
130
+ reject(`the memory folder already has an entry named ${FLEET_STATE_DIR}; rename it, then retry`);
131
+ for (const extra of fleetState) {
132
+ if (!extra.path.startsWith(`${FLEET_STATE_DIR}/`))
133
+ reject(`carried bot state must stay under ${FLEET_STATE_DIR}/`);
134
+ relativeFile(extra.path);
135
+ if (files.length >= MAX_FILES)
136
+ reject(`the bot's learned skills and scheduled jobs exceed the ${MAX_FILES}-file transfer limit; nothing was truncated`);
137
+ total += extra.bytes.length;
138
+ if (total > MAX_BYTES)
139
+ reject(`the bot's learned skills and scheduled jobs exceed the ${MAX_BYTES / (1024 * 1024)} MiB transfer limit; nothing was truncated`);
140
+ files.push({ area: "memory", path: extra.path, bytes: extra.bytes.length, sha256: sha(extra.bytes), executable: extra.executable, base64: extra.bytes.toString("base64") });
141
+ }
142
+ }
114
143
  if (!files.some((f) => f.area === "worker" && f.path === "worker.yaml"))
115
144
  reject("worker.yaml is missing");
116
145
  const payload = {
@@ -342,6 +342,10 @@ def classify(out, err, code):
342
342
  text = ANSI.sub('', (err or '') + '\n' + (out or ''))
343
343
  if re.search(r"HQ session has expired|not signed in to HQ|Sign in to HQ first|run .hq login", text, re.I):
344
344
  return 'you are signed out of HQ', FIXES['hq_signed_out']
345
+ if re.search(r'bot-api-key-login', text, re.I):
346
+ return "the Executive bot uses an API key", FIXES['bot_api_key']
347
+ if re.search(r'bot-logged-out', text, re.I):
348
+ return "the Executive bot's own login needs renewing", FIXES['bot_signed_out']
345
349
  # Before the plain claude checks: a Codex main bot whose signals still run
346
350
  # on Claude Code is pointed at running them on its own Codex.
347
351
  if re.search(r'claude-logged-out-codex-bot', text, re.I):
@@ -458,6 +462,8 @@ export function renderFleetHotSignalSyncScript(input) {
458
462
  const syncCommand = `hq sources sync --company ${input.company}`;
459
463
  const claudeSignInFix = `open HQ, go to Settings → AI tools, and use the Claude Code button there (Connect Claude, or Install Claude if it is not installed yet). Or run \`${signInCommand("claude")}\` in a terminal on this computer.`;
460
464
  const fixes = {
465
+ bot_signed_out: "open the Executive bot's profile in HQ, go to Brain, and reconnect its subscription login.",
466
+ bot_api_key: "open the Executive bot's profile in HQ, go to Brain, and connect its Claude or ChatGPT subscription instead of an API key.",
461
467
  hq_signed_out: "run `hq login`.",
462
468
  // The desktop app first (Settings → AI tools lists Claude Code with a
463
469
  // "Connect Claude" or "Install Claude" button), the terminal as the fallback.
@@ -322,6 +322,15 @@ export declare const FLEET_LOCAL_DISTRIBUTION_LOCK_STALE_MS: number;
322
322
  /** Whether the pinned release is installed on this machine (no download needed). */
323
323
  export declare function fleetLocalDistributionInstalled(release?: FleetLocalReleasePin, root?: string): boolean;
324
324
  export declare function installPinnedFleetLocalDistribution(deps?: FleetLocalInstallDeps): Promise<FleetLocalInstallation>;
325
+ /**
326
+ * The installed `hq-fleet-local` helper and the profile folder of an HQ Fleet
327
+ * bot, or null when the profile, the runtime or the helper is not installed.
328
+ * Never throws. Says nothing about which commands that helper release has.
329
+ */
330
+ export declare function fleetLocalHelper(agentUid: string, deps?: Pick<FleetLocalControlDeps, "fleetHome" | "platform">): {
331
+ profileDir: string;
332
+ helper: string;
333
+ } | null;
325
334
  /** The process id the bot's gateway recorded, when its file reads; the caller checks whether it is alive. */
326
335
  export declare function fleetLocalGatewayPid(agentUid: string, deps?: Pick<FleetLocalControlDeps, "fleetHome">): number | null;
327
336
  /**
@@ -369,7 +378,8 @@ export declare function fleetLocalPromotionRuntime(agentUid: string, deps?: Flee
369
378
  export declare function fleetLocalProfileProvider(agentUid: string, deps?: Pick<FleetLocalControlDeps, "fleetHome">): Partial<FleetLocalProfile["provider"]> | null;
370
379
  /**
371
380
  * The model brain a Fleet profile provider runs, or null when it names none
372
- * this hq knows. Any Anthropic sign of the provider means Claude.
381
+ * this hq knows. Any Anthropic sign of the provider, or a Claude model, means
382
+ * Claude; a Grok model means Grok.
373
383
  */
374
384
  export declare function fleetProviderBrainRuntime(provider: Partial<FleetLocalProfile["provider"]>): BotRuntimeId | null;
375
385
  export declare function removeFleetLocalBot(agentUid: string, deps?: FleetLocalControlDeps): FleetLocalRemovalResult;
@@ -1186,6 +1186,20 @@ function fleetLocalExecutables(agentUid, deps) {
1186
1186
  }
1187
1187
  return { profileDir, profile, runtime, helper, runtimeDir, sourcesDir };
1188
1188
  }
1189
+ /**
1190
+ * The installed `hq-fleet-local` helper and the profile folder of an HQ Fleet
1191
+ * bot, or null when the profile, the runtime or the helper is not installed.
1192
+ * Never throws. Says nothing about which commands that helper release has.
1193
+ */
1194
+ export function fleetLocalHelper(agentUid, deps = {}) {
1195
+ try {
1196
+ const { profileDir, helper } = fleetLocalExecutables(agentUid, deps);
1197
+ return { profileDir, helper };
1198
+ }
1199
+ catch {
1200
+ return null;
1201
+ }
1202
+ }
1189
1203
  function runJson(run, executable, args, options, label) {
1190
1204
  let output;
1191
1205
  try {
@@ -1474,12 +1488,18 @@ export function fleetLocalProfileProvider(agentUid, deps = {}) {
1474
1488
  }
1475
1489
  /**
1476
1490
  * The model brain a Fleet profile provider runs, or null when it names none
1477
- * this hq knows. Any Anthropic sign of the provider means Claude.
1491
+ * this hq knows. Any Anthropic sign of the provider, or a Claude model, means
1492
+ * Claude; a Grok model means Grok.
1478
1493
  */
1479
1494
  export function fleetProviderBrainRuntime(provider) {
1480
1495
  const { id, credentialProvider, transport } = provider;
1496
+ const model = provider.model?.toLowerCase() ?? "";
1481
1497
  if (id === "anthropic" || id === "custom:personal-anthropic" || credentialProvider === "anthropic" || transport === "anthropic_messages")
1482
1498
  return "claude";
1499
+ if (model.startsWith("claude") || model.startsWith("anthropic/"))
1500
+ return "claude";
1501
+ if (model.startsWith("grok") || model.startsWith("x-ai/") || model.startsWith("xai/"))
1502
+ return "grok";
1483
1503
  const preset = id ? (Object.hasOwn(providerProfiles, id) ? providerProfiles[id] : Object.values(providerProfiles).find((profile) => profile.provider === id)) : undefined;
1484
1504
  const runtimeProvider = credentialProvider ?? preset?.runtimeProvider ?? id ?? "";
1485
1505
  return Object.hasOwn(SIGN_IN_PROVIDER_RUNTIME, runtimeProvider) ? SIGN_IN_PROVIDER_RUNTIME[runtimeProvider] : null;
@@ -0,0 +1,129 @@
1
+ import type { BotPromotionBrain } from "./api.js";
2
+ import { type BotConfig } from "./config.js";
3
+ import { type BotContinuityBundle, type ContinuityExtraFile } from "./continuity.js";
4
+ /** The box installer refuses a single file larger than this. */
5
+ export declare const MAX_SKILL_FILE_BYTES: number;
6
+ /** The box installer accepts at most this many carried jobs. */
7
+ export declare const MAX_CARRIED_JOBS = 200;
8
+ /** One year; a longer interval is treated as unreadable. */
9
+ export declare const MAX_INTERVAL_MINUTES = 525600;
10
+ /** A line longer than this is not scanned: the text is treated as possibly holding a secret. */
11
+ export declare const MAX_SCANNED_LINE: number;
12
+ export declare const SKILL_FILE_TOO_LARGE = "has a file over 4 MiB";
13
+ export declare const SKILL_MAY_HOLD_SECRET = "may contain a secret";
14
+ export declare const BUNDLED_MANIFEST_MISSING = "bundled-manifest-missing";
15
+ /** The box installer installs at most this many carried skills. */
16
+ export declare const MAX_CARRIED_SKILLS = 500;
17
+ export declare const SKILL_PAST_LIMIT = "is past the 500-skill limit for one move";
18
+ /** Written in place of a skill folder name that looks like a credential. */
19
+ export declare const WITHHELD_SKILL_NAME = "(name withheld)";
20
+ /** Shared-store notes are never carried; `anyStayed` says whether any were
21
+ * left on this computer (true when they could not be counted safely). No count
22
+ * leaves the computer. The skipped counters stay 0 for readers of the original
23
+ * contract shape.
24
+ */
25
+ export interface FleetStateMemoryCounts {
26
+ file?: string;
27
+ entries: number;
28
+ anyStayed?: boolean;
29
+ skippedOtherBots: number;
30
+ skippedUntagged: number;
31
+ skippedOlderThanBot: number;
32
+ }
33
+ export interface FleetStateSkippedJob {
34
+ id: string;
35
+ name: string;
36
+ reason: string;
37
+ }
38
+ export interface FleetStateSkippedSkill {
39
+ skill: string;
40
+ reason: string;
41
+ }
42
+ export interface FleetStateSettings {
43
+ runtime: string | null;
44
+ provider: string | null;
45
+ model: string | null;
46
+ effort: string | null;
47
+ timezone: string | null;
48
+ }
49
+ export interface FleetStateManifest {
50
+ schemaVersion: 1;
51
+ agentUid: string;
52
+ botName: string;
53
+ exportedAt: string;
54
+ memory: FleetStateMemoryCounts;
55
+ user: FleetStateMemoryCounts;
56
+ skills: string[];
57
+ skippedSkills?: FleetStateSkippedSkill[];
58
+ skillsNotCarried?: {
59
+ reason: typeof BUNDLED_MANIFEST_MISSING;
60
+ };
61
+ jobs: {
62
+ file?: string;
63
+ count: number;
64
+ skipped: FleetStateSkippedJob[];
65
+ };
66
+ settings: FleetStateSettings;
67
+ }
68
+ export interface FleetStateExport {
69
+ manifest: FleetStateManifest;
70
+ files: ContinuityExtraFile[];
71
+ }
72
+ export interface FleetStateDeps {
73
+ fleetHome?: string;
74
+ now?: () => Date;
75
+ /** The computer's IANA zone, used when the profile names none. */
76
+ machineTimeZone?: string;
77
+ /** The brain sent at prepare (profile first); its runtime, model and effort are the settings recorded. */
78
+ brain?: BotPromotionBrain;
79
+ /** Scan results by file path, size and change time, shared by the pre-flight and the frozen snapshot of one promotion. */
80
+ scanCache?: Map<string, boolean>;
81
+ }
82
+ /** Learned skills hold more than one transfer allows; `skills` names them, largest first. */
83
+ export declare class FleetStateLimitError extends Error {
84
+ readonly skills: string[];
85
+ constructor(message: string, skills: string[]);
86
+ }
87
+ /** Entries in one shared-store file, counted by delimiter only. Null when the
88
+ * folder or file is a link or cannot be read.
89
+ */
90
+ export declare function countSharedMemoryEntries(memoriesDir: string, file: string): number | null;
91
+ /** Relative directories under `skills/` that hold a skill the bot made itself:
92
+ * not shipped with the runtime and not installed from the hub. Without the
93
+ * runtime's bundled list no skill can be told apart, so none is returned.
94
+ */
95
+ export declare function learnedSkillDirs(skillsDir: string): {
96
+ dirs: string[];
97
+ bundledManifestMissing: boolean;
98
+ };
99
+ /** True when the HQ secret scanner finds a credential in the text, or when a
100
+ * line is too long to scan in reasonable time. Allow markers do not count:
101
+ * carried state is not code under review. The scanner skips some file types
102
+ * by name, so those are scanned as plain text. Long text is scanned in
103
+ * overlapping windows of whole lines, so each rule only runs where its
104
+ * keyword appears.
105
+ */
106
+ export declare function textMayHoldSecret(text: string, file?: string): boolean;
107
+ /** True when a file's name, relative path or text looks like a credential. */
108
+ export declare function mayHoldSecret(file: ContinuityExtraFile): boolean;
109
+ /** Split a profile's job list into jobs that can run on the cloud computer and
110
+ * jobs tied to this one. Carried jobs keep only their portable fields.
111
+ */
112
+ export declare function selectPortableJobs(records: readonly unknown[], input: {
113
+ hqRoot: string;
114
+ ownerUid: string;
115
+ now: Date;
116
+ timeZone?: string | null;
117
+ /** Scan results by text digest, shared by the pre-flight and the frozen snapshot of one promotion. */
118
+ scanCache?: Map<string, boolean>;
119
+ }): {
120
+ jobs: Array<Record<string, unknown>>;
121
+ skipped: FleetStateSkippedJob[];
122
+ };
123
+ /** Null for a bot that does not run on the HQ Fleet Runtime: it has no profile. */
124
+ export declare function collectFleetState(config: BotConfig, stateDir: string, deps?: FleetStateDeps): FleetStateExport | null;
125
+ /** The manifest a frozen snapshot carries; null for one frozen by an older CLI. */
126
+ export declare function fleetStateManifestOf(bundle: BotContinuityBundle): FleetStateManifest | null;
127
+ /** Plain lines for `hq bot promote`: what moves, what stays, and the model note. */
128
+ export declare function describeFleetState(manifest: FleetStateManifest): string[];
129
+ //# sourceMappingURL=fleet-state.d.ts.map