@indigoai-us/hq-cli 5.345.222 → 5.345.223
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 +23 -0
- package/dist/command-catalog.generated.d.ts +1 -1
- package/dist/command-catalog.generated.js +1 -1
- package/dist/commands/bot.d.ts +1 -1
- package/dist/commands/bot.js +34 -33
- package/dist/commands/core-delegate-w1b.js +207 -187
- package/dist/commands/packs.js +13 -2
- package/dist/commands/sync-core.js +31 -12
- package/dist/lib/bot/fleet-cron.d.ts +26 -3
- package/dist/lib/bot/fleet-cron.js +44 -4
- package/dist/lib/bot/run.d.ts +4 -4
- package/dist/lib/bot/run.js +5 -3
- package/dist/lib/bot/signals-engine-flag.d.ts +53 -13
- package/dist/lib/bot/signals-engine-flag.js +202 -9
- package/dist/lib/daemon/machine-checks.d.ts +45 -0
- package/dist/lib/daemon/machine-checks.js +95 -11
- package/dist/lib/daemon/native-notice-ledger.d.ts +9 -0
- package/dist/lib/daemon/native-notice-ledger.js +43 -0
- package/dist/lib/daemon/run.js +3 -2
- package/dist/lib/daemon/supervisor.d.ts +10 -0
- package/dist/lib/daemon/supervisor.js +86 -0
- package/dist/lib/flag-registry-worker-source.generated.d.ts +1 -1
- package/dist/lib/flag-registry-worker-source.generated.js +1 -1
- package/dist/lib/flag-registry-worker.js +33 -3
- package/dist/lib/flag-registry.js +13 -0
- package/dist/lib/scan-packages/index.js +8 -9
- package/dist/lib/signals/engine.d.ts +8 -0
- package/dist/lib/signals/engine.js +15 -5
- package/dist/lib/sync-core/flag.d.ts +18 -0
- package/dist/lib/sync-core/flag.js +66 -0
- package/dist/lib/sync-core/reconcile.d.ts +6 -0
- package/dist/lib/sync-core/reconcile.js +15 -0
- package/dist/lib/sync-core/rollout-state.d.ts +2 -0
- package/dist/lib/sync-core/rollout-state.js +7 -0
- package/dist/lib/sync-core/vault-settings.d.ts +12 -1
- package/dist/lib/sync-core/vault-settings.js +23 -7
- package/dist/utils/pack-contributions.d.ts +14 -2
- package/dist/utils/pack-contributions.js +31 -5
- package/package.json +7 -7
- package/scripts/bench-core.mjs +34 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [5.345.223] — 2026-11-17
|
|
6
|
+
- Refresh person-scoped flags for agent callers even when the CLI runs in company context, so recorder overrides take effect and can be removed.
|
|
7
|
+
- hq-hook: the daemon state file reader now refuses what the CLI's own reader refuses. A file whose stated maximum age is under one second is no longer read as fresh for a whole second. A time at second 60 is not a time. A file is not trusted when a folder above the daemon folder can be written by group or others, or belongs to another user. In `HQ_FLAG_DAEMON_STATE_FILE`, U+FEFF around `false` now turns the state file off, and U+0085 around `true` no longer turns it on.
|
|
8
|
+
- On macOS, `hq-hook` now reads when a Grok Build hook process started from the system's monotonic clock, not the wall clock. Before, if the wall clock was set back while the hook was starting, the time spent before the hook began running was not counted. A refusal could then reach Grok after its 5-second cutoff, and the call went through. If only the wall-clock record can be read and it shows a start in the future, the hook now assumes 0.8 seconds were spent before it began running, not none. Claude Code and Codex calls are unchanged.
|
|
9
|
+
- The native company scope guard now refuses four inputs the bash guard it replaces refused but the native guard let through: a `companies/<slug>` path followed by a vertical tab, form feed or Unicode space (such as U+00A0 or U+3000), a tool name with a NUL character or a trailing line break (`Read\n`), `$(git rev-parse --show-toplevel)` while `GIT_DIR`, `GIT_WORK_TREE` or `GIT_CONFIG_PARAMETERS` is set, and a path under an HQ root registered in another Unicode normalisation than the one on disk.
|
|
10
|
+
- bench-core: on Windows, the old core's hook script is now passed to Git Bash as `/c/...` with forward slashes. A backslash path made `master-hook.sh` look for its sibling scripts in the working directory, so every old-core Claude tool call exited 2.
|
|
11
|
+
- bench-core: `--core new` now runs `hq-hook run --host <host> <Event> --hq-root <root>`, the same arguments host registration writes. Without `--hq-root`, every new-core tool call on Windows was refused with "the HQ root is unknown".
|
|
12
|
+
- The new core's user-scope (`--global`) hook entry now stands aside only where the old user-scope command did (the project folder is the HQ root itself, or the working folder is inside an HQ folder); with a project folder nested inside HQ and the working folder outside it, the guards now run instead of being skipped.
|
|
13
|
+
- Serialize confirmed delegation grants and delivery manifest reads with verification so concurrent updates preserve publication receipts.
|
|
14
|
+
- Keep the work-mesh kill-switch regression reliable when the hook exits before reading its input.
|
|
15
|
+
- Make conduct-link deadline regressions deterministic while retaining a real process-group termination check.
|
|
16
|
+
- The daemon's machine-check batch runs the scripts in collect-only mode when the installed core advertises `machineCheckCollectOnly: 1` in `core/core.yaml`. The scripts then report findings without writing their delivery stamps, so a session whose HOME the native notice ledger refuses still shows a finding the daemon batch already collected. Once the native notice has shown a check's finding, the next batch runs that check once in normal mode, so the script records it as shown (the desktop result is claimed, client-health's pending messages clear) without showing it again. With an older core the batch runs as before.
|
|
17
|
+
- Preserve the shell's policy-row format for built-in Bash reminders so triggering a reminder does not block later calls in the session.
|
|
18
|
+
- packs: `hq packs update` no longer removes the namespaced `/<pack>:<skill>` skill links that reindex writes; they stay through the update, and only the links of skills the new version dropped are removed. Before, they disappeared until the next reindex.
|
|
19
|
+
- packs: scan-packages skips the unprefixed skill link only when the pack's own `<pack>:<skill>` wrapper exists. Another pack's or a company's `*:<skill>` folder no longer stops it.
|
|
20
|
+
- Isolate Stop unit fixtures from runner Git overrides so host-format assertions use their declared environment.
|
|
21
|
+
- Make SessionStart timeout tests deterministic with a virtual polling clock and retain a real-process timeout smoke test.
|
|
22
|
+
- Bot: the morning `hot-signal-sync` job now reads the `cli.bot-signals-engine-job` flag for the company each job is for. Before, it was read once with no company, and a personal bot has no company of its own, so turning the flag on for one company never started the signals engine. A bot with several companies now runs the signals engine only for the companies where the flag is on and keeps the plain hot-channel sync for the rest. This covers the HQ Fleet Runtime job script (rewritten when the bot starts), the bot's own job and "Try now". If the flag cannot be read for a company, that company keeps the plain sync and the bot's log says so. `HQ_FLAG_CLI_BOT_SIGNALS_ENGINE_JOB` still decides for every company on that computer.
|
|
23
|
+
- Bot: with `cli.bot-signals-engine-job` on for a company, the morning `hot-signal-sync` job now runs the signals engine only on a computer where `signals_capture` or `ontology_capture` is on for that company. The engine skips a company with both settings off, and those settings are per computer and off by default, so a teammate with capture off would have gone from meeting signals every morning to nothing once the flag was on for their company. Such a computer keeps the plain hot-channel sync (`hq sources sync`), as before, and the bot's log says why. The check is the engine's own, and it covers the HQ Fleet Runtime job script, the bot's own job and "Try now". If the capture settings cannot be read, the job keeps the plain sync and logs it. The Fleet job script is chosen when `hq bot` writes it (for example `hq bot start` or `hq bot restart`), so a capture setting changed later reaches a Fleet bot only then: after turning capture on the bot keeps the plain sync until the script is next written, and after turning capture off it keeps the engine, which skips the company, until then. Restart the bot after changing a capture setting. `HQ_FLAG_CLI_BOT_SIGNALS_ENGINE_JOB=true` turns the flag on for every company on that computer; capture must still be on for the engine to run.
|
|
24
|
+
- A company's parallel downloads for the new sync engine can now be set for all its members' computers from the flag registry. Two company flags form a ladder: `sync.parallel-downloads` gives 8 download streams, `sync.parallel-downloads-16` gives 16 and wins over the first. The sync-core reconcile reads them for each company vault on the engine (every 10 minutes) and hq daemon passes the result to that vault's engine as `HQ_SYNC_PARALLEL_DOWNLOADS` / `HQ_SYNC_DOWNLOAD_STREAMS`. If the registry cannot be read, the vault keeps the value it had; with no flag on, nothing changes and the engine default (off) applies. A computer's own `hq sync-core config` setting still wins: `parallel-downloads off` now opts this computer out of a company value, and the new `parallel-downloads default` follows the company again. When only these settings change, hq daemon restarts that vault's engine when its current sync cycle ends (at most 30 minutes later), never the current sync runner or another vault's engine.
|
|
25
|
+
- Make the real-process update-lock test end on observed state instead of a fixed 3-second crasher window, which failed on Windows under CPU contention (v5.345.222 tag), and add tests for the failing ordering and for reclaiming a takeover mutex left by a holder killed mid-heartbeat.
|
|
26
|
+
- Run written host-registration execution tests in the Windows hook-registration job.
|
|
27
|
+
|
|
5
28
|
## [5.345.222] — 2026-11-16
|
|
6
29
|
- `hq packs uninstall` removes the namespaced `.claude/skills/<pack>:<skill>` host (symlink or empty reindex wrapper) and the uninstall rescan no longer adds unprefixed skill links next to those wrappers.
|
|
7
30
|
|
|
@@ -19732,7 +19732,7 @@ export declare const COMMAND_CATALOG: readonly [{
|
|
|
19732
19732
|
readonly subcommands: readonly [];
|
|
19733
19733
|
}, {
|
|
19734
19734
|
readonly name: "config";
|
|
19735
|
-
readonly description: "Show or change this computer's new sync engine settings for one vault: parallel-downloads on|off, download-streams 1-32|default";
|
|
19735
|
+
readonly description: "Show or change this computer's new sync engine settings for one vault: parallel-downloads on|off|default (default follows the company setting), download-streams 1-32|default";
|
|
19736
19736
|
readonly aliases: readonly [];
|
|
19737
19737
|
readonly hidden: false;
|
|
19738
19738
|
readonly helpOption: true;
|
|
@@ -24067,7 +24067,7 @@ export const COMMAND_CATALOG = [
|
|
|
24067
24067
|
},
|
|
24068
24068
|
{
|
|
24069
24069
|
"name": "config",
|
|
24070
|
-
"description": "Show or change this computer's new sync engine settings for one vault: parallel-downloads on|off, download-streams 1-32|default",
|
|
24070
|
+
"description": "Show or change this computer's new sync engine settings for one vault: parallel-downloads on|off|default (default follows the company setting), download-streams 1-32|default",
|
|
24071
24071
|
"aliases": [],
|
|
24072
24072
|
"hidden": false,
|
|
24073
24073
|
"helpOption": true,
|
package/dist/commands/bot.d.ts
CHANGED
|
@@ -169,7 +169,7 @@ export declare function hotSignalSyncRole(name: string, config: BotConfig, execu
|
|
|
169
169
|
* that is busy (its lock is held) or held for promotion is left for its next
|
|
170
170
|
* start. Returns the names it re-checked.
|
|
171
171
|
*/
|
|
172
|
-
export declare function resyncHotSignalSyncAfterRemoval(removed: string, sync?: (name: string, dir: string, config: BotConfig) => void): Promise<string[]>;
|
|
172
|
+
export declare function resyncHotSignalSyncAfterRemoval(removed: string, sync?: (name: string, dir: string, config: BotConfig) => void | Promise<void>): Promise<string[]>;
|
|
173
173
|
/** Bot-identity token supplier: per-bot creds + per-bot token cache dir. */
|
|
174
174
|
export declare function botTokenSupplier(dir: string): () => Promise<string>;
|
|
175
175
|
/**
|
package/dist/commands/bot.js
CHANGED
|
@@ -6,8 +6,7 @@ import { CLI_VERSION } from "../cli-version.js";
|
|
|
6
6
|
import { BOT_SIGNALS_RUNTIME_SETTINGS, signalsPassRuntime } from "../lib/bot/config.js";
|
|
7
7
|
import { runSignals } from "../lib/signals/engine.js";
|
|
8
8
|
// The main bot's runtime, the same one the signals engine's extract step uses.
|
|
9
|
-
import {
|
|
10
|
-
import { resolveProcessFlagGate } from "../lib/flag-registry.js";
|
|
9
|
+
import { signalsEngineForJob } from "../lib/bot/signals-engine-flag.js";
|
|
11
10
|
import { currentHotSignalSyncCompany, hasScheduledBriefJob, hotSignalSyncJobCompanies, readActiveCompanySlug, registerHotSignalSyncOnStart, runHotSignalSyncJob } from "../lib/bot/jobs/hot-signal-sync.js";
|
|
12
11
|
import { CLAUDE_SIGN_IN_STEPS, CODEX_SIGN_IN_STEPS, codexBotSignalsOptInCommand, createClaudeSignalsPass } from "../lib/hot-channels/signals-pass.js";
|
|
13
12
|
import { executiveSignalsRuntimeOptions, signalsPassCodexLogin } from "../lib/hot-channels/signals-runtime.js";
|
|
@@ -57,7 +56,7 @@ import { describeExecutiveBotSource, resolveExecutiveBot, setExecutiveBot } from
|
|
|
57
56
|
import { executiveHotSignalSyncCompanies } from "../lib/bot/executive-sync.js";
|
|
58
57
|
import { readBotListedProcess } from "../lib/bot/listed-running.js";
|
|
59
58
|
import { DEFAULT_BOT_READY_TIMEOUT_SECONDS, botReadinessReport, clearBotSetupStep, createSetupStepReporter, readBotSetupStep, waitForGatewayReady, fleetStatusCarriesReady, writeBotSetupStep, } from "../lib/bot/readiness.js";
|
|
60
|
-
import { ensureFleetHotSignalSync, fleetCronOps, migrateLegacyJobsToFleet } from "../lib/bot/fleet-cron.js";
|
|
59
|
+
import { ensureFleetHotSignalSync, fleetCronOps, fleetHotSignalSyncEngineCompanies, migrateLegacyJobsToFleet } from "../lib/bot/fleet-cron.js";
|
|
61
60
|
import { resolvePackSetupPrompt } from "../lib/bot/pack-setup.js";
|
|
62
61
|
import { detectCodingToolActivity } from "../lib/bot/coding-tool-activity.js";
|
|
63
62
|
import { setupToolOfferPendingSection, setupToolOfferText, setupWelcomeOpening } from "../lib/bot/setup-tool-offer.js";
|
|
@@ -227,16 +226,7 @@ function fleetSetupToolOffer(dir, config) {
|
|
|
227
226
|
return null;
|
|
228
227
|
}
|
|
229
228
|
}
|
|
230
|
-
|
|
231
|
-
function fleetSignalsJobEnabled() {
|
|
232
|
-
try {
|
|
233
|
-
return resolveProcessFlagGate(BOT_SIGNALS_ENGINE_JOB_FLAG, { fallback: false }, () => false);
|
|
234
|
-
}
|
|
235
|
-
catch {
|
|
236
|
-
return false;
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
function syncFleetRuntimeJobs(name, dir, config) {
|
|
229
|
+
async function syncFleetRuntimeJobs(name, dir, config) {
|
|
240
230
|
const log = createBotLogger(dir);
|
|
241
231
|
let ops;
|
|
242
232
|
try {
|
|
@@ -277,7 +267,12 @@ function syncFleetRuntimeJobs(name, dir, config) {
|
|
|
277
267
|
const executiveBot = resolveExecutiveBot();
|
|
278
268
|
const role = hotSignalSyncRole(name, config, executiveBot);
|
|
279
269
|
const executive = role.executive;
|
|
280
|
-
|
|
270
|
+
// The daily Fleet signals job is gated by the same default-off flag as the
|
|
271
|
+
// in-process engine job (cli.bot-signals-engine-job), read for each company
|
|
272
|
+
// this bot has a job for: a personal bot has no company of its own. A
|
|
273
|
+
// company with the flag on and both capture settings off on this computer
|
|
274
|
+
// keeps the plain sync script (the engine would skip it).
|
|
275
|
+
const jobs = {
|
|
281
276
|
dir,
|
|
282
277
|
config,
|
|
283
278
|
ops,
|
|
@@ -287,10 +282,11 @@ function syncFleetRuntimeJobs(name, dir, config) {
|
|
|
287
282
|
otherBotDirs: role.otherBotDirs,
|
|
288
283
|
nodeBinary: resolveNodeBinary(),
|
|
289
284
|
hqBinary: resolveHqBinary(),
|
|
290
|
-
signalsJobEnabled: fleetSignalsJobEnabled(),
|
|
291
285
|
executive,
|
|
292
286
|
executiveCompanies: role.executiveCompanies,
|
|
293
|
-
}
|
|
287
|
+
};
|
|
288
|
+
const signalsJobEnabled = await fleetHotSignalSyncEngineCompanies(jobs, undefined, (message) => log("warn", message));
|
|
289
|
+
const result = ensureFleetHotSignalSync({ ...jobs, signalsJobEnabled });
|
|
294
290
|
if (executive === false && result.removed.length > 0) {
|
|
295
291
|
log("info", `removed the daily hot-signal-sync from this bot (${result.removed.length} job${result.removed.length === 1 ? "" : "s"}): ${executiveBot ? `${executiveBot.name} is the Executive bot now and runs it` : "only the Executive bot runs it"}`);
|
|
296
292
|
}
|
|
@@ -366,7 +362,7 @@ export async function resyncHotSignalSyncAfterRemoval(removed, sync = syncFleetR
|
|
|
366
362
|
const config = readBotConfig(dir);
|
|
367
363
|
if (!config || config.enabled === false || !isFleetRuntimeBot(config) || hasPromotionHold(dir))
|
|
368
364
|
return;
|
|
369
|
-
sync(other, dir, config);
|
|
365
|
+
await sync(other, dir, config);
|
|
370
366
|
done.push(other);
|
|
371
367
|
}, { command: "hq bot rm (hot-signal-sync hand-over)", waitMs: 5_000 });
|
|
372
368
|
}
|
|
@@ -444,7 +440,7 @@ async function fleetGatewayComesUp(agentUid, waitMs, stepMs = 500) {
|
|
|
444
440
|
await new Promise((r) => setTimeout(r, stepMs));
|
|
445
441
|
}
|
|
446
442
|
}
|
|
447
|
-
function runFleetRuntimeControl(name, config, action, output) {
|
|
443
|
+
async function runFleetRuntimeControl(name, config, action, output) {
|
|
448
444
|
const json = output === true;
|
|
449
445
|
if ((action === "install" || action === "start" || action === "restart") && config.fleetAuthPending === true) {
|
|
450
446
|
const authCommand = fleetAuthCommand(name, config);
|
|
@@ -456,7 +452,7 @@ function runFleetRuntimeControl(name, config, action, output) {
|
|
|
456
452
|
}
|
|
457
453
|
if (action === "install" || action === "start" || action === "restart") {
|
|
458
454
|
refreshFleetLocalInstructions(config.agentUid, fleetBotSystemPrompt(name, config));
|
|
459
|
-
syncFleetRuntimeJobs(name, botDir(name), config);
|
|
455
|
+
await syncFleetRuntimeJobs(name, botDir(name), config);
|
|
460
456
|
}
|
|
461
457
|
const installService = action === "install" || (config.fleetServiceInstallPending === true && (action === "start" || action === "restart"));
|
|
462
458
|
const result = reportDaemonStopped(name, json, () => controlFleetLocalBot(config.agentUid, installService ? "install" : action));
|
|
@@ -1060,7 +1056,7 @@ async function convertLegacyBotToFleet(name, dir, config, from) {
|
|
|
1060
1056
|
// The legacy runner's copy of the machine credentials goes only now: a failed move above still needs it.
|
|
1061
1057
|
fs.rmSync(botCredsPath(dir), { force: true });
|
|
1062
1058
|
log("info", `moved ${name} to the HQ Fleet Runtime under the same identity; its ${config.runtime} runner is retired`);
|
|
1063
|
-
syncFleetRuntimeJobs(name, dir, fleet);
|
|
1059
|
+
await syncFleetRuntimeJobs(name, dir, fleet);
|
|
1064
1060
|
retireLegacyBotAgent(name, dir, config, from === "run" ? "detached" : "inline");
|
|
1065
1061
|
return { fleet, state: null };
|
|
1066
1062
|
}
|
|
@@ -1160,7 +1156,7 @@ async function startFleetRuntimeBot(name, dir, config, output, extra) {
|
|
|
1160
1156
|
}
|
|
1161
1157
|
const adopted = await adoptFleetRuntimeProfile(name, dir, config);
|
|
1162
1158
|
refreshFleetLocalInstructions(config.agentUid, fleetBotSystemPrompt(name, config));
|
|
1163
|
-
syncFleetRuntimeJobs(name, dir, config);
|
|
1159
|
+
await syncFleetRuntimeJobs(name, dir, config);
|
|
1164
1160
|
const before = readBotStatus(dir);
|
|
1165
1161
|
const alreadyRunning = !!before && before.state === "running" && isPidAlive(before.pid);
|
|
1166
1162
|
const installService = adopted || config.fleetServiceInstallPending === true;
|
|
@@ -2019,7 +2015,7 @@ async function runBotCreateLocked(name, opts) {
|
|
|
2019
2015
|
}
|
|
2020
2016
|
}
|
|
2021
2017
|
const startedByRuntime = startNow && !daemonRunsFleetBots && brainLogin !== null && controlFleetLocalBot(agentUid, "install").ok === true;
|
|
2022
|
-
syncFleetRuntimeJobs(name, dir, config);
|
|
2018
|
+
await syncFleetRuntimeJobs(name, dir, config);
|
|
2023
2019
|
const running = fleetBootstrap.running || startedByDaemon || startedByRuntime;
|
|
2024
2020
|
let readyWait = null;
|
|
2025
2021
|
if (!startNow) {
|
|
@@ -2264,9 +2260,13 @@ async function runBotResident(nameArg) {
|
|
|
2264
2260
|
// unless that bot is a Codex bot with signalsRuntime "bot".
|
|
2265
2261
|
signalsPass: createClaudeSignalsPass({ hqRoot: config.hqRoot, company: input.company, ...executiveSignalsRuntimeOptions(), onClaudeLogin: recordSignalsPassClaudeLogin }),
|
|
2266
2262
|
});
|
|
2267
|
-
// The engine is gated default-off (cli.bot-signals-engine-job)
|
|
2268
|
-
//
|
|
2269
|
-
|
|
2263
|
+
// The engine is gated default-off (cli.bot-signals-engine-job), read for the
|
|
2264
|
+
// company the job is for; with the flag off for that company the job runs
|
|
2265
|
+
// the hot-channel sync alone, as before US-006. It also keeps the sync when
|
|
2266
|
+
// the engine would skip the company as prefs-off on this computer (both
|
|
2267
|
+
// capture settings off). The job and "Try now" ask this one function.
|
|
2268
|
+
const signalsEngineFor = (company) => signalsEngineForJob(runSignals, company, { hqRoot: config.hqRoot });
|
|
2269
|
+
const runHotSignalSync = (input) => signalsEngineFor(input.company).then((signals) => hotSignalSyncJob(input, signals));
|
|
2270
2270
|
// Prefer the Executive bot for daily hot-channel sync. Other personal bots
|
|
2271
2271
|
// keep their company covered until the Executive has a replacement job.
|
|
2272
2272
|
// Identity only (never the executive.enabled opt-in); with no personal bot
|
|
@@ -2292,9 +2292,10 @@ async function runBotResident(nameArg) {
|
|
|
2292
2292
|
hotSignalSync: (input) => runHotSignalSync(input),
|
|
2293
2293
|
// US-006 AC9: the member's "Try now" runs the same entry point as the job,
|
|
2294
2294
|
// as `--trigger chat --force`, behind the same cli.bot-signals-engine-job
|
|
2295
|
-
// flag.
|
|
2296
|
-
|
|
2297
|
-
|
|
2295
|
+
// flag and capture check. Engine not chosen: null, and the message goes to
|
|
2296
|
+
// the model as before.
|
|
2297
|
+
signalsTryNow: async (company) => {
|
|
2298
|
+
const signals = await signalsEngineFor(company);
|
|
2298
2299
|
if (!signals)
|
|
2299
2300
|
return null;
|
|
2300
2301
|
return (input) => hotSignalSyncJob({ ...input, catchUp: false, tryNow: true }, signals);
|
|
@@ -3440,7 +3441,7 @@ export async function updateFleetRuntimeBot(nameArg, opts = {}) {
|
|
|
3440
3441
|
const config = readBotConfig(b.dir) ?? b.config;
|
|
3441
3442
|
if (adopted) {
|
|
3442
3443
|
refreshFleetLocalInstructions(config.agentUid, fleetBotSystemPrompt(b.name, config));
|
|
3443
|
-
syncFleetRuntimeJobs(b.name, b.dir, config);
|
|
3444
|
+
await syncFleetRuntimeJobs(b.name, b.dir, config);
|
|
3444
3445
|
}
|
|
3445
3446
|
if (opts.busy?.()) {
|
|
3446
3447
|
patchBotConfig(b.dir, { fleetRestartPending: true });
|
|
@@ -3464,7 +3465,7 @@ async function restartBot(nameArg, opts = {}) {
|
|
|
3464
3465
|
if (isFleetRuntimeBot(b.config)) {
|
|
3465
3466
|
refuseHeldFleetBot(b.dir);
|
|
3466
3467
|
const adopted = await adoptFleetRuntimeProfile(b.name, b.dir, b.config);
|
|
3467
|
-
const result = runFleetRuntimeControl(b.name, b.config, adopted ? "install" : "restart", opts.output === "silent" ? "silent" : opts.json === true || opts.output === "json");
|
|
3468
|
+
const result = await runFleetRuntimeControl(b.name, b.config, adopted ? "install" : "restart", opts.output === "silent" ? "silent" : opts.json === true || opts.output === "json");
|
|
3468
3469
|
return { ok: result.ok === true, detail: typeof result.summary === "string" && result.summary ? result.summary : null };
|
|
3469
3470
|
}
|
|
3470
3471
|
const running = readBotStatus(b.dir);
|
|
@@ -3577,7 +3578,7 @@ export async function runBotAuth(nameArg, opts) {
|
|
|
3577
3578
|
clearFleetMoveRecords(b.dir);
|
|
3578
3579
|
fs.rmSync(botCredsPath(b.dir), { force: true });
|
|
3579
3580
|
createBotLogger(b.dir)("info", `moved ${b.name} to the HQ Fleet Runtime with its ${opts.provider} sign-in; its ${legacy.runtime} runner is retired`);
|
|
3580
|
-
syncFleetRuntimeJobs(b.name, b.dir, moved);
|
|
3581
|
+
await syncFleetRuntimeJobs(b.name, b.dir, moved);
|
|
3581
3582
|
retireLegacyBotAgent(b.name, b.dir, legacy, "inline");
|
|
3582
3583
|
}
|
|
3583
3584
|
const signedInRuntime = result.runtimeProvider === "anthropic" ? "claude" : result.runtimeProvider === "xai-oauth" ? "grok" : result.runtimeProvider === "openai-codex" ? "codex" : null;
|
|
@@ -4286,7 +4287,7 @@ export function registerBotCommand(program) {
|
|
|
4286
4287
|
if (isFleetRuntimeBot(b.config)) {
|
|
4287
4288
|
refuseHeldFleetBot(b.dir);
|
|
4288
4289
|
const adopted = await adoptFleetRuntimeProfile(b.name, b.dir, b.config, { progress: fleetInstallProgressReporter(opts.json ? "silent" : "text") });
|
|
4289
|
-
runFleetRuntimeControl(b.name, b.config, adopted ? "install" : "start", opts.json === true);
|
|
4290
|
+
await runFleetRuntimeControl(b.name, b.config, adopted ? "install" : "start", opts.json === true);
|
|
4290
4291
|
return;
|
|
4291
4292
|
}
|
|
4292
4293
|
await startBot(b.name, b.dir, b.config, opts.json ? "json" : "text");
|
|
@@ -4299,7 +4300,7 @@ export function registerBotCommand(program) {
|
|
|
4299
4300
|
const b = requireBot(name);
|
|
4300
4301
|
if (isFleetRuntimeBot(b.config)) {
|
|
4301
4302
|
refuseHeldFleetBot(b.dir);
|
|
4302
|
-
runFleetRuntimeControl(b.name, b.config, "stop", opts.json === true);
|
|
4303
|
+
await runFleetRuntimeControl(b.name, b.config, "stop", opts.json === true);
|
|
4303
4304
|
return;
|
|
4304
4305
|
}
|
|
4305
4306
|
await stopBot(b.name, b.dir, b.config, opts.json ? "json" : "text");
|