@indigoai-us/hq-cli 5.345.207 → 5.345.210
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 +105 -0
- package/assets/scaffold/core/scripts/derive-trigger-facts.sh +22 -3
- package/dist/command-catalog.generated.d.ts +33 -8
- package/dist/command-catalog.generated.js +40 -8
- package/dist/command-registration-plan.d.ts +2 -2
- package/dist/command-registration-plan.js +1 -1
- package/dist/commands/access.js +11 -5
- package/dist/commands/agents.d.ts +8 -0
- package/dist/commands/agents.js +5 -0
- package/dist/commands/bot.d.ts +8 -0
- package/dist/commands/bot.js +67 -7
- package/dist/commands/channels.js +4 -0
- package/dist/commands/cloud.d.ts +83 -2
- package/dist/commands/cloud.js +161 -31
- package/dist/commands/company.d.ts +9 -0
- package/dist/commands/company.js +44 -14
- package/dist/commands/core-checkpoint-native.js +21 -0
- package/dist/commands/core-derive-trigger-facts-native.js +14 -3
- package/dist/commands/core-generate-workers-registry-fast.d.ts +1 -1
- package/dist/commands/core-generate-workers-registry-fast.js +7 -1
- package/dist/commands/core-job-run-native.d.ts +8 -0
- package/dist/commands/core-job-run-native.js +11 -3
- package/dist/commands/core-jobs-native.js +1 -1
- package/dist/commands/core-register-project-native.js +31 -1
- package/dist/commands/core-scan-packages-fast.d.ts +1 -1
- package/dist/commands/core-scan-packages-fast.js +8 -1
- package/dist/commands/core.js +12 -3
- package/dist/commands/dm-attach.d.ts +10 -0
- package/dist/commands/dm-attach.js +33 -5
- package/dist/commands/integrations-connect.js +47 -2
- package/dist/commands/lanes-session-start.d.ts +17 -0
- package/dist/commands/lanes-session-start.js +281 -13
- package/dist/commands/lanes-watch.js +11 -3
- package/dist/commands/lanes.d.ts +4 -0
- package/dist/commands/lanes.js +95 -22
- package/dist/commands/library.d.ts +10 -0
- package/dist/commands/library.js +30 -3
- package/dist/commands/meetings.d.ts +42 -0
- package/dist/commands/meetings.js +157 -12
- package/dist/commands/mesh.js +3 -0
- package/dist/commands/monitor.d.ts +6 -0
- package/dist/commands/monitor.js +29 -19
- package/dist/commands/onboard.js +8 -1
- package/dist/commands/sources.js +7 -3
- package/dist/commands/storage-offload.d.ts +3 -2
- package/dist/commands/storage-offload.js +30 -16
- package/dist/commands/storage.js +2 -1
- package/dist/index.js +9 -0
- package/dist/lanes-monitor-check-argv.d.ts +1 -1
- package/dist/lanes-monitor-check-argv.js +2 -2
- package/dist/lanes-session-start-argv.d.ts +4 -1
- package/dist/lanes-session-start-argv.js +5 -2
- package/dist/lib/bot/fleet-daemon.d.ts +101 -0
- package/dist/lib/bot/fleet-daemon.js +227 -0
- package/dist/lib/bot/fleet-local.d.ts +26 -0
- package/dist/lib/bot/fleet-local.js +51 -2
- package/dist/lib/bot/index.d.ts +1 -0
- package/dist/lib/bot/index.js +1 -0
- package/dist/lib/bot/jobs/hot-signal-sync.d.ts +4 -0
- package/dist/lib/bot/jobs/hot-signal-sync.js +8 -1
- package/dist/lib/bot/log.js +3 -1
- package/dist/lib/bot/probe.js +2 -0
- package/dist/lib/bot/run.js +28 -3
- package/dist/lib/bot/runtime-failure.d.ts +4 -2
- package/dist/lib/bot/runtime-failure.js +9 -1
- package/dist/lib/bot/status.d.ts +17 -0
- package/dist/lib/bot/status.js +53 -2
- package/dist/lib/capacity/collectors/claude-oauth.d.ts +5 -5
- package/dist/lib/capacity/collectors/claude-oauth.js +6 -6
- package/dist/lib/core-utils/native-scaffold-help.d.ts +16 -0
- package/dist/lib/core-utils/native-scaffold-help.js +26 -0
- package/dist/lib/core-utils/session-company.d.ts +25 -8
- package/dist/lib/core-utils/session-company.js +59 -17
- package/dist/lib/daemon/catalog.d.ts +25 -1
- package/dist/lib/daemon/catalog.js +29 -2
- package/dist/lib/daemon/run.d.ts +0 -1
- package/dist/lib/daemon/run.js +3 -11
- package/dist/lib/daemon/server.js +26 -7
- package/dist/lib/daemon/supervisor.js +1 -1
- package/dist/lib/daemon/tools.js +17 -1
- package/dist/lib/db/sqlite-binding.js +2 -1
- package/dist/lib/doctor/checks/bots.d.ts +2 -0
- package/dist/lib/doctor/checks/bots.js +11 -0
- package/dist/lib/doctor/checks/runtime-health.js +3 -2
- package/dist/lib/doctor/checks/work-context.js +5 -2
- package/dist/lib/hook-engine/resolve.d.ts +1 -1
- package/dist/lib/hook-engine/resolve.js +4 -1
- package/dist/lib/hot-channels/adapters/meeting-providers.d.ts +2 -0
- package/dist/lib/hot-channels/adapters/meeting-providers.js +13 -2
- package/dist/lib/lanes/index.d.ts +1 -1
- package/dist/lib/lanes/index.js +1 -1
- package/dist/lib/lanes/monitor.d.ts +14 -0
- package/dist/lib/lanes/monitor.js +51 -10
- package/dist/lib/lanes/outpost-dispatch.d.ts +3 -0
- package/dist/lib/lanes/outpost-dispatch.js +1 -0
- package/dist/lib/lanes/store.d.ts +1 -1
- package/dist/lib/lanes/store.js +2 -1
- package/dist/lib/mesh/client.js +7 -1
- package/dist/lib/mesh/live/backfill-held.d.ts +3 -0
- package/dist/lib/mesh/live/backfill-held.js +167 -7
- package/dist/lib/mesh/live/flush.d.ts +7 -0
- package/dist/lib/mesh/live/flush.js +10 -1
- package/dist/lib/monitor.d.ts +9 -0
- package/dist/lib/monitor.js +33 -7
- package/dist/lib/onboarding/orchestrator.js +269 -132
- package/dist/lib/onboarding/types.d.ts +2 -0
- package/dist/lib/scaffold-cli-floor.js +2 -1
- package/dist/lib/signals/failure-alert.js +3 -1
- package/dist/lib/work-context/organize.d.ts +6 -0
- package/dist/lib/work-context/organize.js +28 -0
- package/dist/lib/work-context/paths.d.ts +9 -0
- package/dist/lib/work-context/paths.js +15 -0
- package/dist/lib/work-context/prd-sync.js +2 -1
- package/dist/runners-alias.d.ts +54 -0
- package/dist/runners-alias.js +86 -0
- package/dist/utils/install-tree-torn.js +5 -3
- package/dist/utils/npm-install-flags.d.ts +27 -0
- package/dist/utils/npm-install-flags.js +68 -0
- package/dist/utils/package-use-lease.js +1 -1
- package/dist/utils/qmd-native-binding-error.js +2 -1
- package/dist/utils/self-update.js +2 -1
- package/dist/utils/staged-install.js +2 -1
- package/dist/utils/staged-npm-install.js +2 -1
- package/dist/utils/upload-author.d.ts +2 -1
- package/dist/utils/upload-author.js +9 -5
- package/dist/utils/version-check.js +2 -1
- package/dist/utils/version-gate.js +7 -6
- package/package.json +7 -7
- package/scripts/install-hook-engine.mjs +7 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,111 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [5.345.210] — 2026-11-09
|
|
6
|
+
|
|
7
|
+
- On a Mac that runs `hq daemon`, HQ Fleet bots no longer get a login item of their own. The daemon starts each bot's gateway as a `fleet-bots:<name>` unit (visible in `hq daemon status`), restarts it after a crash, and keeps a bot stopped with `hq bot stop` until `hq bot start`. Creating or starting a bot no longer makes macOS report that "python" can run in the background. The daemon unloads and deletes the `ai.hq-fleet.gateway-*` LaunchAgents earlier releases installed, so Login Items shows HQ alone; `hq doctor` warns while one is still there. Linux, Windows, and a Mac without `hq daemon` keep the runtime's own service.
|
|
8
|
+
|
|
9
|
+
- `hq access --as` accepts several paths (and `--stdin` lines) the same way the command already does without `--as`. JSON is one object for a single path and an array for several. The exit code is the highest of the per-path codes. (feedback_f08ba1d5)
|
|
10
|
+
- `hq channels members` prints `No other members listed. You are in this channel.` when the roster is only the caller, instead of a blank line. (feedback_0be24e55)
|
|
11
|
+
- `hq runners` is the canonical advanced detached-execution surface. The full existing command tree remains available as the temporary `hq lanes` compatibility alias, including `hq runners create --runner subagent` for externally managed in-session subagents.
|
|
12
|
+
- `hq lanes ...` is a deprecated alias. When a person runs it at a terminal (stdout and stderr are both terminals), it prints one stderr line saying the alias is deprecated and that `hq runners` replaces it. It prints nothing extra with `--json`, when output is piped, when a hook runs it, or for the subcommands that scripts and hooks call (`session-start`, `monitor-check`, `link`, `watch`, `wait`). No removal release is named for the alias. `hq runners` prints nothing extra, and stdout (including `--json`) is the same under both names. Group help now describes a runner as the detached CLI machinery that runs a conduct lane in advanced mode.
|
|
13
|
+
- `hq runners session-start` picks the conduct instructions it prints from `conduct.runner`, read from `personal/settings/orchestrator.yaml` with a per-key fallback to `core/settings/orchestrator.yaml`. `subagent` (the default when the files, key or value are missing or unknown) prints the block from `.claude/skills/conduct/conductor-core.md`. `runner`, and the legacy `mixed` and `lane`, print the block from `.claude/skills/conduct-runners/conductor-core.md`; when that file is not installed, the default block is printed and one line goes to stderr. When the installed HQ core has `core/scripts/conduct-runner-resolve.sh`, session-start runs it with a 500 ms limit and pins the value it prints (`subagent` or `runner`) as `conduct_runner` in the session's existing meta file. If the resolver is slow, fails or prints anything else, no pin is written. On an older HQ core without the resolver, only the legacy values `mixed`, `subagent` and `lane` are written: the setting's value, with `runner` written as `lane`. There an existing legacy pin is left as it is, and nothing is written when the setting is missing, unknown or unreadable. A change another startup hook makes to the meta file at the same time is kept. There is no flag or environment variable for this choice.
|
|
14
|
+
|
|
15
|
+
- `hq agents list` shows `online` or `offline` in the STATUS column for a local
|
|
16
|
+
bot (`runtimeKind: "local"`), from the server's liveness for it (a heartbeat
|
|
17
|
+
or the bot's own inbox use in the last 90 seconds). A local bot has no
|
|
18
|
+
`agentStatus`, so the column was empty or showed a hosted default. Needs
|
|
19
|
+
hq-pro-agents #1339; older servers keep the old column. (feedback_33037d08)
|
|
20
|
+
- Classify provider credit and payment errors as billing failures, with top-up guidance in bot probes and failure replies instead of restart advice.
|
|
21
|
+
- Local bots keep reading their inbox when the disk fills up. Before, a status.json write that failed with ENOSPC ended the bot's inbox loop while its heartbeat went on, so the bot looked online and stopped answering until someone ran `hq bot restart` (feedback b3320cb6). Failed status writes are now logged once and kept in memory, and status.json catches up as soon as the disk has room. Separately, if either of a bot's loops ever stops on an unexpected error, the bot exits as failed (exit 1), so it shows offline and its launchd or systemd supervisor starts it again.
|
|
22
|
+
- Start the Claude checkpoint sibling without the skill listing, MCP connectors or the chat output style. It used none of them but re-sent about 70 KB of that context on each of its 50 to 80 model calls, which made the sibling about 17% of a user's token use (feedback_8e62a685).
|
|
23
|
+
- Block Git commit-search and unresolved object revisions in the credential guard, including quoted subcommands.
|
|
24
|
+
- Port hq-core-staging #1732 and #1798 to the native credential guard: refuse stdin-fed cat-file batches, resolve git aliases, refuse object names read from input, and refuse pathspec and patch readers whose output covers a tracked credential file. Pin the guard at staging a9eb60311.
|
|
25
|
+
- `derive-trigger-facts.sh PostToolUse --with-command-facts` prints the PostToolUse fact set and then the PreToolUse fact set of the same payload (the command facts) as two records, so the policy hook needs one helper launch per PostToolUse event instead of two (feedback_45868a9c). The shell helper, the native `hq core derive-trigger-facts` handler and the hq-hook bridge port all accept the flag; the flag has no effect on other events. Paired calls also read the git branch once. Older hq-core policy hooks do not pass the flag, so their output is unchanged.
|
|
26
|
+
- Fixed (doctor, feedback_e99bf6b5): `hq doctor` no longer counts `<sessionId>.prd-snapshot.json` files in `~/.hq/work-context/sessions/` as corrupt session state. The state-file check now reads only `<sessionId>.json` files; a real corrupt state file is still reported.
|
|
27
|
+
- `hq integrations connect --auth key` (or `--auth-header`) no longer opens a
|
|
28
|
+
browser sign-in when the MCP endpoint rejects the API key. It reports that the
|
|
29
|
+
key was not accepted and that `--auth key` was honored, instead of printing an
|
|
30
|
+
OAuth URL. Re-run without `--auth key` to use the browser flow. (feedback_0bdcfff1)
|
|
31
|
+
- `hq monitor start` now lasts 30 minutes by default (was 5 minutes), so a
|
|
32
|
+
cold agent wait is less likely to expire before the first event. Pass
|
|
33
|
+
`--timeout` or `--persistent` to change that. (feedback_7ffd6553)
|
|
34
|
+
- `hq monitor` supervisors no longer read every monitor directory on each one-second tick. A tick now checks the monitor's own check-in interval and the target's activity file first, and lists monitors only when a check-in may be due, so finished monitors no longer add to the idle cost. Check-in timing, wording and target-ended detection are unchanged.
|
|
35
|
+
- `hq company settings get` now shows `ontologyEnabled` (owner or admin), and
|
|
36
|
+
when it is off says that HQ is not building a cloud ontology or company brief
|
|
37
|
+
for the company and prints the command that turns the gardener on
|
|
38
|
+
(`hq company --company <slug> settings set --ontology-enabled true`). The
|
|
39
|
+
gardener is off by default per company, and until now nothing told an owner
|
|
40
|
+
why knowledge pushes produced no `ontology/`, `signals/` or `company-brief.md`.
|
|
41
|
+
`--json` output gains an `ontologyEnabled` field. (feedback_4cec1f06)
|
|
42
|
+
- A removed or turned-off local bot no longer blocks another bot from running a company's daily hot-signal-sync. Before, a leftover job marker in a deleted bot's folder, or a bot with `enabled: false`, still counted as "already runs it", so the company got no signals and its meetings showed "signals not yet generated". `hq bot rm` now also re-runs job setup on the other enabled Fleet Runtime bots, so a company the removed bot held is picked up right away instead of at the next restart.
|
|
43
|
+
- hq-hook: when a hook port's bash script (or a file it sources) is not a
|
|
44
|
+
version the port is pinned to, `hq-hook bridge` now exits 75 with no output
|
|
45
|
+
in both `shadow` and `on` mode, and master-hook runs the bash hook itself.
|
|
46
|
+
It used to start bash from the engine, which on an hq-core whose
|
|
47
|
+
policy-enforcement-gate is not pinned yet (16.0.45 with hq-hook 0.3.1)
|
|
48
|
+
added about 240 ms to every Edit. The log still records `script-mismatch`.
|
|
49
|
+
(feedback_a0798fc9)
|
|
50
|
+
- `hq-hook --version` (and `-V`) now prints `hq-hook <version>`, the version
|
|
51
|
+
`hq-hook --self-check` reports, and exits 0. It used to print "unknown hook
|
|
52
|
+
event" and exit 2, so the engine version could only be read from the
|
|
53
|
+
self-check JSON. (feedback_47e16565)
|
|
54
|
+
- hqd now treats a session's persisted company bind (`company_slug`, plus any
|
|
55
|
+
other company its `company_slugs` lock lists, in
|
|
56
|
+
`workspace/sessions/<id>/meta.yaml`) as binding, not only as a fallback.
|
|
57
|
+
`policy.check`, `journal.append` and `session.open` return `company_mismatch`
|
|
58
|
+
when an explicit company, a cwd-linked company or the in-memory session
|
|
59
|
+
company is outside that lock, so a session bound to one company can no longer
|
|
60
|
+
get another company's policy scope by naming it. The `company_slugs` list
|
|
61
|
+
counts only while the multi-company session lock is on for that session, as
|
|
62
|
+
hq-session.sh records it; with the lock off only `company_slug` counts, and
|
|
63
|
+
a `personal` bind still counts as no company bind. hqd also ignores a persisted
|
|
64
|
+
bind reached through a symlinked session folder, as it already did for a
|
|
65
|
+
symlinked `meta.yaml`. The unlinked-root bot fallback from feedback_578dd8ff
|
|
66
|
+
is unchanged. (feedback_76cb8dc3)
|
|
67
|
+
- `hq lanes logs <lane-id>` for an Outpost lane no longer fails with `outpost_lane_logs_invalid` when the lane's full logs are bigger than the Outpost exec output limit (480 KiB). The clipped output was not valid JSON. Without `--tail`, the command now retries with the last 200 lines and then the last 20 lines of each stream, writes a note to stderr, and adds `tail_applied` to the JSON. The completion envelope is at the end of the log, so it is still readable. If even the last 20 lines are too large, or a `--tail` you gave is, the error is `outpost_lane_logs_too_large` and tells you to use a smaller `--tail`. (feedback_b929c4a8)
|
|
68
|
+
- `hq lanes monitor-check` now says when a lane is uncovered because its Monitor ended, and asks for a re-arm. Current Claude Code builds stop every Monitor after 30 minutes, including one armed with `persistent=true`. A lane counts as covered only while a Monitor armed in the last 30 minutes watches it. When the lane's Monitor reached that limit or ended, the human output adds `Monitor ended (Claude Code stops every Monitor after 30 minutes), re-arm it: <lane-ids>`, and `--json` adds `expired_lane_ids`. The suggested Monitor call and the reminder no longer ask for `persistent=true`; JSON `monitor_calls` carry `persistent: false`, so the senior Stop hook still renders a valid call. (feedback_208fd2ea)
|
|
69
|
+
- `hq lanes create --outpost` no longer marks a lane as failed when the Outpost accepted the pickup but HQ stopped waiting before it heard back (for example "Timed out waiting for Outpost pickup"). The Outpost may already be running such a lane. Before, the local copy said `failed`, so `hq lanes watch` reported "failed (terminal)" and exited while `hq lanes show` read the lane as running from the Outpost. The lane now stays queued with an unknown pickup outcome, and the next reconcile updates it from the Outpost's own record, as it already does for a pickup that did not finish. The create still exits with `outpost_delivery_unconfirmed`. (feedback_b929c4a8)
|
|
70
|
+
- `hq library search -n <count>` now sends the count to the server as the page size. Before, the count never reached the server, so the cloud search always returned its default page of 10 and a tag search with 35 matches showed 10 even with `-n 35`. HQ cloud returns at most 50 results per search: a larger count is sent as 50 and the output says so, while the offline local-index search keeps the full count. A count that is not a whole number of 1 or more now gets a clear error instead of being ignored. (feedback_903fdd80)
|
|
71
|
+
- New `hq meetings cancel <botId>` cancels a meeting bot, for example one stuck
|
|
72
|
+
at `scheduled` that never joined, so the meeting can be invited again. A bot
|
|
73
|
+
from a recurring calendar event also cancels that series' upcoming bots, as
|
|
74
|
+
the desktop app does. When `hq meetings invite` gets the "A bot is already
|
|
75
|
+
scheduled" 409, it now names the blocking bot and the cancel command, except when that bot
|
|
76
|
+
is `joining` or `recording`. Before
|
|
77
|
+
this, the CLI had no way to clear a stuck bot. (feedback_b6d23d19)
|
|
78
|
+
- `hq meetings` has a new `--personal` option for `list`, `get`, `search`, `transcript` and `notes`. It reads your recordings that are not attributed to any company, which HQ returns only when no company is sent. The app's Meetings tab shows these recordings next to your companies' meetings. In a session bound to a company, `hq meetings` always sent that company, so such a recording showed in the app but in no `hq meetings` view, with or without `--company`. A company-scoped `list` or `search` now ends with a line pointing at `--personal`. A short-id lookup that finds nothing mentions it too. `--company` and `--personal` together are refused. With no company, HQ also returns your recordings attributed to your default company and that company's HQ Meet calls, so `--personal` drops any row attributed to a company (in `--json` output too), matches a short id only against unattributed rows, and refuses `get`, `transcript` and `notes` for a meeting attributed to a company. `live`, `invite`, `import` and `set-company` refuse `--personal` instead of ignoring it. (feedback_abaa0a2e)
|
|
79
|
+
- `hq mesh context backfill-held` no longer reports device-default sessions as already attributed while their held events stay `needs_company`. It releases such a session only when independent local evidence names the same company: session meta bound explicitly, by a parent or spawn, or by a prompt mention, or a manifest-mapped repository. Session meta that hq-core wrote from the device default (or with no `company_source`, or relabeled `session` by a case-alias repair) does not count, so a device-default-only session stays held and its conversation is not emitted. Dry-run and live runs now use one rule for what counts as recovered, including for a device-default session that has a company slug but no uid. (feedback_c5e9e0db)
|
|
80
|
+
- `hq mesh organize --create-task` and `--create-project` no longer fail with 409 DECISION_WINDOW_MISSING on a new session. The server only accepts an organize after candidates are listed for the session, and `hq mesh organize --list` does not list them until the work-signal threshold is crossed, so an explicit create early in a session was always refused. The CLI now lists candidates before an explicit create, and the create is skipped with CANDIDATES_UNAVAILABLE if that listing fails. A DECISION_WINDOW_MISSING response is now reported under its own code instead of as DECISION_EXPIRED. (feedback_83a0ad1f)
|
|
81
|
+
- Work Mesh register now sends `needs_project` for company-bound sessions that have no project, instead of collapsing them to `unresolved`.
|
|
82
|
+
- Self-update, the version-gate rescue install, the staged npm installs and the daemon's Claude Code and Codex updates now pass `--allow-scripts=<name>` for each package whose install script must run, plus `--include=optional`. npm 12 blocks dependency install scripts that are not listed, so before this an update left better-sqlite3, node-llama-cpp and the tree-sitter grammars unbuilt, skipped hq-cli's own postinstall, and could drop the optional hook engine package. The list matches the HQ desktop app's (`@indigoai-us/hq-cli`, better-sqlite3, node-llama-cpp and the five tree-sitter grammars). Older npm accepts the flags: npm 10 ignores `allow-scripts` and npm 11 before 11.16 only warns. The repair commands printed when better-sqlite3, qmd's native module or the hook engine fail to load now give the same full command. So do the npm commands in the update-available notice, the read-only npm prefix note, the install-tree recovery messages, the scaffold CLI-floor check, the lane-store upgrade warning and the HQ Fleet Local CLI-version warning. `hq doctor`'s install hints for Claude Code and Codex now include the flags they need too. (feedback_d83de3c3)
|
|
83
|
+
- `hq onboard create-company` and `hq onboard join` no longer adopt another account's person record (feedback_a169f6dc, DEV-1695). The create-person step looked up a person by the email's local part across all accounts, so a sign-in whose local part matched someone else's (`jacob@…`) took over that record. `create-company` then stopped at the membership step with a sign-in mismatch, and `hq onboard resume` stopped on the identity-link guard every time. Onboarding now uses only a person record your sign-in owns (email match first, then slug, then the oldest), or creates one. A saved checkpoint that names another sign-in's person is re-linked to yours, the membership step accepts the owner membership the company was created with when its person is one you own, and `resume` continues with a note instead of stopping. With no person record on your sign-in, `resume` still stops with the relink instructions.
|
|
84
|
+
- `hq onboard resume` no longer writes `.hq/config.json` for a company your sign-in never joined (feedback_a169f6dc, follow-up to #2512). When resume re-linked a saved checkpoint to your own person record, it kept that run's company, bucket and completed membership steps, so the config could name the other sign-in's company with `role: owner`. Re-linking now clears them: the company step runs again in your own namespace and the membership steps run again under your person. For `hq onboard join`, an invite that the other sign-in already accepted now stops with instructions to ask for a new invite instead of continuing with no company.
|
|
85
|
+
- `hq onboard` re-links a checkpoint left by another sign-in even when your sign-in owns no person record yet: it creates your own person and company instead of keeping the other sign-in's, so `.hq/config.json` never gets that sign-in's company (feedback_a169f6dc, review of #2516). `hq onboard create-company` now stops when the slug names a company you are only a member of, and the config's role comes from your membership row instead of a fixed `owner`; `hq onboard join` stops instead of guessing `member` when you have no row. After a slug conflict, create-company also checks your auto-suffixed `<slug>-<tag>` company before saying another account holds the slug.
|
|
86
|
+
- `hq integrations reconnect` can repair a custom MCP connection whose install
|
|
87
|
+
never finished. Such a connection has no saved endpoint, and reconnect used to
|
|
88
|
+
refuse it as "not installed through the app catalog", so the broken row could
|
|
89
|
+
not be fixed from the CLI. Pass the endpoint with the new `--mcp-url <url>`
|
|
90
|
+
flag (for example `hq integrations reconnect --provider converge --mcp-url
|
|
91
|
+
https://… --auth key --token-stdin`). Without it, reconnect now names that
|
|
92
|
+
command. `--mcp-url` is refused for a connection that already has a saved
|
|
93
|
+
endpoint or that is not a custom MCP connection. (feedback_558830a4)
|
|
94
|
+
- Fixed (register-project native port, feedback_2b8e4bc8 follow-up): the native `register-project` port updated every Board entry that matched the project, which kept an existing duplicate id alive. When more than one entry in `companies/<co>/board.json` matches, registration (and `--brainstorm`) now refuses before it calls `hq mesh` or changes board.json, and prints the matching ids and `bash core/scripts/board-project-id.sh check <co>`. The message matches the hq-core `register-project.sh` change.
|
|
95
|
+
- `hq core scan-packages --help` (and `-h`) now prints usage and exits without
|
|
96
|
+
scanning. Before, the flag was ignored and the scan ran, re-creating pack skill
|
|
97
|
+
links. `hq core generate-workers-registry --help` gets the same fix.
|
|
98
|
+
(feedback_83ae2e72)
|
|
99
|
+
- `hq dm send --attach` now sends the file's SHA-256 with the vault presign, so S3 Object Lock no longer rejects the upload with "Content-MD5 OR x-amz-checksum- HTTP header is required". (feedback_719cfab7)
|
|
100
|
+
- Fireflies recordings with no calendar invite no longer share a fake calendar id, so later no-invite meetings are not dropped as duplicates.
|
|
101
|
+
- Scheduled jobs and the sync on Outposts and agent machines now mark their syncs as unattended (`HQ_SYNC_UNATTENDED=1`), so an hq-cloud build with the unattended delete hold keeps another member's files in the shared company vault instead of deleting them when a job removes them locally. The variable is set on each job's systemd unit, on every process a job starts (including the remote tmux session), and on the `hq daemon` sync runner when the machine is an Outpost, agent box or agent kit. Desktop and self-hosted daemons are unchanged. `hq sync push` and `hq sync now` now report a held delete as its own warning that names the file and its creator, instead of counting it as a file "NOT uploaded because the vault copy changed". A held delete is a warning only: it is left out of the stale-refused counts and never makes `hq sync push`, `hq sync push --all` or `hq sync now` exit 1 or print "one or more requested uploads were refused". The warning says to run `hq sync pull` to restore the file and to delete it again from an interactive session if the delete is intended, and the `hq sync push --json` complete event reports held deletes in a `heldDeletes` field (count and paths) and leaves them out of `filesRefusedStalePaths`. When several deletes are held, the warning uses plural wording. Uploads from a machine token with no email claim now stamp the machine's sub as the creator (sub only, no `created-by` email), matching `hq-sync-runner`, so files an agent or Outpost creates can later be deleted by that same machine's unattended sync. `hq sources signals` run under such a token now exits 1 with the sign-in message instead of throwing on the missing email. (feedback_65ee9e51)
|
|
102
|
+
|
|
103
|
+
## [5.345.208] — 2026-11-06
|
|
104
|
+
- `hq storage offload --current` resolves files and folders to their on-disk spelling before choosing a vault, including discovery without path arguments. Company paths cannot be routed to the personal vault by different letter casing. Server-owned company paths are refused before membership, sync-journal or vault access, including synced files and restored library originals with a placeholder beside them. Their local bytes stay in place; output says the sync state was not checked.
|
|
105
|
+
- History offload excludes blobs with any company path, including blobs also recorded under personal paths. These versions stay in local history and are not uploaded to the personal vault or passed to the history rewrite. Personal-only history retains its existing upload and verification behavior.
|
|
106
|
+
- Fetch uses the same native path resolution for case-variant folder arguments and containment checks. This change does not repair placeholders or uploads left by earlier versions. Offload still conservatively refuses `board.json` and `ontology/entities/`; a vault failure for another eligible company file can still stop a run.
|
|
107
|
+
|
|
108
|
+
- This corrects the earlier broad offload claim: server-owned protection applies to current files only after canonical path resolution and before journal or vault access; company history is now excluded separately. Earlier releases do not provide these guarantees.
|
|
109
|
+
|
|
5
110
|
## [5.345.207] — 2026-11-05
|
|
6
111
|
- `hq bot eb <name>` now restarts the running bots the change affects, the previous and the new Executive bot, each after its current reply (up to 2 minutes), so the daily Executive jobs move at once; it prints one line per bot, `--json` adds `restarted` and `skipped`, and `--no-restart` keeps the old behaviour.
|
|
7
112
|
|
|
@@ -3,11 +3,15 @@
|
|
|
3
3
|
# evaluated against, for a given hook event.
|
|
4
4
|
#
|
|
5
5
|
# Usage:
|
|
6
|
-
# <hook-json on stdin> | derive-trigger-facts.sh <EVENT> [--with-assistant-intent]
|
|
6
|
+
# <hook-json on stdin> | derive-trigger-facts.sh <EVENT> [--with-assistant-intent|--with-command-facts]
|
|
7
7
|
# EVENT in {PreToolUse, PostToolUse, UserPromptSubmit, AssistantIntent}
|
|
8
8
|
# -> prints a space-separated, de-duplicated fact set to stdout.
|
|
9
9
|
# With --with-assistant-intent (PreToolUse and UserPromptSubmit only), prints
|
|
10
10
|
# the primary and AssistantIntent fact sets as two newline-delimited records.
|
|
11
|
+
# With --with-command-facts (PostToolUse only), prints the PostToolUse fact
|
|
12
|
+
# set and then the PreToolUse fact set of the same payload (the command
|
|
13
|
+
# facts) as two newline-delimited records, so the policy hook needs one
|
|
14
|
+
# launch per PostToolUse event instead of two (feedback_45868a9c).
|
|
11
15
|
#
|
|
12
16
|
# Facts = event tokens + best-effort static facts (company / repo / shared_branch),
|
|
13
17
|
# EXCEPT AssistantIntent, which is AI-message tokens only (no static facts).
|
|
@@ -53,7 +57,11 @@ set -euo pipefail
|
|
|
53
57
|
|
|
54
58
|
EVENT="${1:-}"
|
|
55
59
|
WITH_ASSISTANT_INTENT=0
|
|
56
|
-
|
|
60
|
+
WITH_COMMAND_FACTS=0
|
|
61
|
+
case "${2:-}" in
|
|
62
|
+
--with-assistant-intent) WITH_ASSISTANT_INTENT=1 ;;
|
|
63
|
+
--with-command-facts) WITH_COMMAND_FACTS=1 ;;
|
|
64
|
+
esac
|
|
57
65
|
|
|
58
66
|
# Git Bash may not expose /dev/stdin. Use Bash's builtin there so the hook path
|
|
59
67
|
# does not fork; keep the original command-substitution behavior on POSIX.
|
|
@@ -181,6 +189,10 @@ COMPANY_FACT=""
|
|
|
181
189
|
|
|
182
190
|
FACTS=""
|
|
183
191
|
FACTS_OUTPUT=""
|
|
192
|
+
# The checked-out branch of CWD, read once per process: both records of a
|
|
193
|
+
# paired call use the same payload cwd.
|
|
194
|
+
CWD_BRANCH=""
|
|
195
|
+
CWD_BRANCH_READ=0
|
|
184
196
|
add() { FACTS="$FACTS $*"; }
|
|
185
197
|
|
|
186
198
|
# Preserve the existing splitting and first-seen ordering but do it in one awk
|
|
@@ -264,7 +276,11 @@ derive_event() {
|
|
|
264
276
|
case "$CWD" in
|
|
265
277
|
*repos/public/*|*repos/private/*) add repo ;;
|
|
266
278
|
esac
|
|
267
|
-
|
|
279
|
+
if [ "$CWD_BRANCH_READ" != "1" ]; then
|
|
280
|
+
CWD_BRANCH="$(git -C "$CWD" rev-parse --abbrev-ref HEAD 2>/dev/null || true)"
|
|
281
|
+
CWD_BRANCH_READ=1
|
|
282
|
+
fi
|
|
283
|
+
branch="$CWD_BRANCH"
|
|
268
284
|
fi
|
|
269
285
|
|
|
270
286
|
normalize_facts
|
|
@@ -276,6 +292,9 @@ if [ "$WITH_ASSISTANT_INTENT" = "1" ] \
|
|
|
276
292
|
&& { [ "$EVENT" = "PreToolUse" ] || [ "$EVENT" = "UserPromptSubmit" ]; }; then
|
|
277
293
|
derive_event AssistantIntent
|
|
278
294
|
printf '%s\n%s\n' "$PRIMARY_FACTS" "$FACTS_OUTPUT"
|
|
295
|
+
elif [ "$WITH_COMMAND_FACTS" = "1" ] && [ "$EVENT" = "PostToolUse" ]; then
|
|
296
|
+
derive_event PreToolUse
|
|
297
|
+
printf '%s\n%s\n' "$PRIMARY_FACTS" "$FACTS_OUTPUT"
|
|
279
298
|
else
|
|
280
299
|
printf '%s\n' "$PRIMARY_FACTS"
|
|
281
300
|
fi
|
|
@@ -4974,6 +4974,10 @@ export declare const COMMAND_CATALOG: readonly [{
|
|
|
4974
4974
|
readonly flags: "--company <slug>";
|
|
4975
4975
|
readonly description: "Company slug (defaults to the company this HQ session is bound to)";
|
|
4976
4976
|
readonly hidden: false;
|
|
4977
|
+
}, {
|
|
4978
|
+
readonly flags: "--personal";
|
|
4979
|
+
readonly description: "Read your recordings that are not attributed to any company (list, get, search, transcript, notes)";
|
|
4980
|
+
readonly hidden: false;
|
|
4977
4981
|
}, {
|
|
4978
4982
|
readonly flags: "--json";
|
|
4979
4983
|
readonly description: "Output raw JSON instead of formatted text";
|
|
@@ -5070,6 +5074,23 @@ export declare const COMMAND_CATALOG: readonly [{
|
|
|
5070
5074
|
}];
|
|
5071
5075
|
readonly options: readonly [];
|
|
5072
5076
|
readonly subcommands: readonly [];
|
|
5077
|
+
}, {
|
|
5078
|
+
readonly name: "cancel";
|
|
5079
|
+
readonly description: "Cancel a meeting bot (for example one stuck at scheduled) so the meeting can be invited again. A bot from a recurring calendar event cancels the series' upcoming bots too.";
|
|
5080
|
+
readonly aliases: readonly [];
|
|
5081
|
+
readonly hidden: false;
|
|
5082
|
+
readonly helpOption: true;
|
|
5083
|
+
readonly helpCommand: false;
|
|
5084
|
+
readonly usage: "[options] <botId>";
|
|
5085
|
+
readonly helpText: readonly [];
|
|
5086
|
+
readonly arguments: readonly [{
|
|
5087
|
+
readonly name: "botId";
|
|
5088
|
+
readonly required: true;
|
|
5089
|
+
readonly variadic: false;
|
|
5090
|
+
readonly description: "";
|
|
5091
|
+
}];
|
|
5092
|
+
readonly options: readonly [];
|
|
5093
|
+
readonly subcommands: readonly [];
|
|
5073
5094
|
}, {
|
|
5074
5095
|
readonly name: "get";
|
|
5075
5096
|
readonly description: "Show meeting details";
|
|
@@ -6116,6 +6137,10 @@ export declare const COMMAND_CATALOG: readonly [{
|
|
|
6116
6137
|
readonly flags: "--company-owned";
|
|
6117
6138
|
readonly description: "With --connect: re-add it as a connection the whole company owns";
|
|
6118
6139
|
readonly hidden: false;
|
|
6140
|
+
}, {
|
|
6141
|
+
readonly flags: "--mcp-url <url>";
|
|
6142
|
+
readonly description: "MCP endpoint for a custom app whose install never finished (no saved endpoint)";
|
|
6143
|
+
readonly hidden: false;
|
|
6119
6144
|
}, {
|
|
6120
6145
|
readonly flags: "--json";
|
|
6121
6146
|
readonly description: "Machine-readable output";
|
|
@@ -7314,7 +7339,7 @@ export declare const COMMAND_CATALOG: readonly [{
|
|
|
7314
7339
|
readonly subcommands: readonly [];
|
|
7315
7340
|
}, {
|
|
7316
7341
|
readonly name: "get";
|
|
7317
|
-
readonly description: "Show whether the checkpoint Stop gate is on for this company (GET /company-settings/checkpoint-gate; any member may read it) and, for an owner or admin, the two work tracking switches (GET /company-settings).";
|
|
7342
|
+
readonly description: "Show whether the checkpoint Stop gate is on for this company (GET /company-settings/checkpoint-gate; any member may read it) and, for an owner or admin, the two work tracking switches and whether the cloud ontology gardener is on (GET /company-settings).";
|
|
7318
7343
|
readonly aliases: readonly [];
|
|
7319
7344
|
readonly hidden: false;
|
|
7320
7345
|
readonly helpOption: true;
|
|
@@ -11521,7 +11546,7 @@ export declare const COMMAND_CATALOG: readonly [{
|
|
|
11521
11546
|
readonly hidden: false;
|
|
11522
11547
|
}, {
|
|
11523
11548
|
readonly flags: "-n, --count <count>";
|
|
11524
|
-
readonly description: "Maximum result count";
|
|
11549
|
+
readonly description: "Maximum result count (default 10; HQ cloud returns at most 50)";
|
|
11525
11550
|
readonly hidden: false;
|
|
11526
11551
|
}, {
|
|
11527
11552
|
readonly flags: "--json";
|
|
@@ -14309,9 +14334,9 @@ export declare const COMMAND_CATALOG: readonly [{
|
|
|
14309
14334
|
readonly subcommands: readonly [];
|
|
14310
14335
|
}];
|
|
14311
14336
|
}, {
|
|
14312
|
-
readonly name: "
|
|
14313
|
-
readonly description: "
|
|
14314
|
-
readonly aliases: readonly [];
|
|
14337
|
+
readonly name: "runners";
|
|
14338
|
+
readonly description: "Detached CLI machinery that runs a conduct lane in advanced mode";
|
|
14339
|
+
readonly aliases: readonly ["lanes"];
|
|
14315
14340
|
readonly hidden: false;
|
|
14316
14341
|
readonly helpOption: true;
|
|
14317
14342
|
readonly helpCommand: true;
|
|
@@ -18060,7 +18085,7 @@ export declare const COMMAND_CATALOG: readonly [{
|
|
|
18060
18085
|
readonly hidden: false;
|
|
18061
18086
|
}, {
|
|
18062
18087
|
readonly flags: "--timeout <duration>";
|
|
18063
|
-
readonly description: "Deadline; bare numbers are milliseconds";
|
|
18088
|
+
readonly description: "Deadline; default 30m; bare numbers are milliseconds";
|
|
18064
18089
|
readonly hidden: false;
|
|
18065
18090
|
}, {
|
|
18066
18091
|
readonly flags: "--persistent";
|
|
@@ -19476,7 +19501,7 @@ export declare const COMMAND_CATALOG: readonly [{
|
|
|
19476
19501
|
readonly subcommands: readonly [];
|
|
19477
19502
|
}, {
|
|
19478
19503
|
readonly name: "start";
|
|
19479
|
-
readonly description: "Start the bot (
|
|
19504
|
+
readonly description: "Start the bot (under hq daemon or its own launchd agent when installed, else a detached process)";
|
|
19480
19505
|
readonly aliases: readonly [];
|
|
19481
19506
|
readonly hidden: false;
|
|
19482
19507
|
readonly helpOption: true;
|
|
@@ -19497,7 +19522,7 @@ export declare const COMMAND_CATALOG: readonly [{
|
|
|
19497
19522
|
readonly subcommands: readonly [];
|
|
19498
19523
|
}, {
|
|
19499
19524
|
readonly name: "stop";
|
|
19500
|
-
readonly description: "Stop the bot process
|
|
19525
|
+
readonly description: "Stop the bot process and keep it down until hq bot start";
|
|
19501
19526
|
readonly aliases: readonly [];
|
|
19502
19527
|
readonly hidden: false;
|
|
19503
19528
|
readonly helpOption: true;
|
|
@@ -6036,6 +6036,11 @@ export const COMMAND_CATALOG = [
|
|
|
6036
6036
|
"description": "Company slug (defaults to the company this HQ session is bound to)",
|
|
6037
6037
|
"hidden": false
|
|
6038
6038
|
},
|
|
6039
|
+
{
|
|
6040
|
+
"flags": "--personal",
|
|
6041
|
+
"description": "Read your recordings that are not attributed to any company (list, get, search, transcript, notes)",
|
|
6042
|
+
"hidden": false
|
|
6043
|
+
},
|
|
6039
6044
|
{
|
|
6040
6045
|
"flags": "--json",
|
|
6041
6046
|
"description": "Output raw JSON instead of formatted text",
|
|
@@ -6154,6 +6159,26 @@ export const COMMAND_CATALOG = [
|
|
|
6154
6159
|
"options": [],
|
|
6155
6160
|
"subcommands": []
|
|
6156
6161
|
},
|
|
6162
|
+
{
|
|
6163
|
+
"name": "cancel",
|
|
6164
|
+
"description": "Cancel a meeting bot (for example one stuck at scheduled) so the meeting can be invited again. A bot from a recurring calendar event cancels the series' upcoming bots too.",
|
|
6165
|
+
"aliases": [],
|
|
6166
|
+
"hidden": false,
|
|
6167
|
+
"helpOption": true,
|
|
6168
|
+
"helpCommand": false,
|
|
6169
|
+
"usage": "[options] <botId>",
|
|
6170
|
+
"helpText": [],
|
|
6171
|
+
"arguments": [
|
|
6172
|
+
{
|
|
6173
|
+
"name": "botId",
|
|
6174
|
+
"required": true,
|
|
6175
|
+
"variadic": false,
|
|
6176
|
+
"description": ""
|
|
6177
|
+
}
|
|
6178
|
+
],
|
|
6179
|
+
"options": [],
|
|
6180
|
+
"subcommands": []
|
|
6181
|
+
},
|
|
6157
6182
|
{
|
|
6158
6183
|
"name": "get",
|
|
6159
6184
|
"description": "Show meeting details",
|
|
@@ -7444,6 +7469,11 @@ export const COMMAND_CATALOG = [
|
|
|
7444
7469
|
"description": "With --connect: re-add it as a connection the whole company owns",
|
|
7445
7470
|
"hidden": false
|
|
7446
7471
|
},
|
|
7472
|
+
{
|
|
7473
|
+
"flags": "--mcp-url <url>",
|
|
7474
|
+
"description": "MCP endpoint for a custom app whose install never finished (no saved endpoint)",
|
|
7475
|
+
"hidden": false
|
|
7476
|
+
},
|
|
7447
7477
|
{
|
|
7448
7478
|
"flags": "--json",
|
|
7449
7479
|
"description": "Machine-readable output",
|
|
@@ -8914,7 +8944,7 @@ export const COMMAND_CATALOG = [
|
|
|
8914
8944
|
},
|
|
8915
8945
|
{
|
|
8916
8946
|
"name": "get",
|
|
8917
|
-
"description": "Show whether the checkpoint Stop gate is on for this company (GET /company-settings/checkpoint-gate; any member may read it) and, for an owner or admin, the two work tracking switches (GET /company-settings).",
|
|
8947
|
+
"description": "Show whether the checkpoint Stop gate is on for this company (GET /company-settings/checkpoint-gate; any member may read it) and, for an owner or admin, the two work tracking switches and whether the cloud ontology gardener is on (GET /company-settings).",
|
|
8918
8948
|
"aliases": [],
|
|
8919
8949
|
"hidden": false,
|
|
8920
8950
|
"helpOption": true,
|
|
@@ -14000,7 +14030,7 @@ export const COMMAND_CATALOG = [
|
|
|
14000
14030
|
},
|
|
14001
14031
|
{
|
|
14002
14032
|
"flags": "-n, --count <count>",
|
|
14003
|
-
"description": "Maximum result count",
|
|
14033
|
+
"description": "Maximum result count (default 10; HQ cloud returns at most 50)",
|
|
14004
14034
|
"hidden": false
|
|
14005
14035
|
},
|
|
14006
14036
|
{
|
|
@@ -17423,9 +17453,11 @@ export const COMMAND_CATALOG = [
|
|
|
17423
17453
|
]
|
|
17424
17454
|
},
|
|
17425
17455
|
{
|
|
17426
|
-
"name": "
|
|
17427
|
-
"description": "
|
|
17428
|
-
"aliases": [
|
|
17456
|
+
"name": "runners",
|
|
17457
|
+
"description": "Detached CLI machinery that runs a conduct lane in advanced mode",
|
|
17458
|
+
"aliases": [
|
|
17459
|
+
"lanes"
|
|
17460
|
+
],
|
|
17429
17461
|
"hidden": false,
|
|
17430
17462
|
"helpOption": true,
|
|
17431
17463
|
"helpCommand": true,
|
|
@@ -22035,7 +22067,7 @@ export const COMMAND_CATALOG = [
|
|
|
22035
22067
|
},
|
|
22036
22068
|
{
|
|
22037
22069
|
"flags": "--timeout <duration>",
|
|
22038
|
-
"description": "Deadline; bare numbers are milliseconds",
|
|
22070
|
+
"description": "Deadline; default 30m; bare numbers are milliseconds",
|
|
22039
22071
|
"hidden": false
|
|
22040
22072
|
},
|
|
22041
22073
|
{
|
|
@@ -23744,7 +23776,7 @@ export const COMMAND_CATALOG = [
|
|
|
23744
23776
|
},
|
|
23745
23777
|
{
|
|
23746
23778
|
"name": "start",
|
|
23747
|
-
"description": "Start the bot (
|
|
23779
|
+
"description": "Start the bot (under hq daemon or its own launchd agent when installed, else a detached process)",
|
|
23748
23780
|
"aliases": [],
|
|
23749
23781
|
"hidden": false,
|
|
23750
23782
|
"helpOption": true,
|
|
@@ -23770,7 +23802,7 @@ export const COMMAND_CATALOG = [
|
|
|
23770
23802
|
},
|
|
23771
23803
|
{
|
|
23772
23804
|
"name": "stop",
|
|
23773
|
-
"description": "Stop the bot process
|
|
23805
|
+
"description": "Stop the bot process and keep it down until hq bot start",
|
|
23774
23806
|
"aliases": [],
|
|
23775
23807
|
"hidden": false,
|
|
23776
23808
|
"helpOption": true,
|
|
@@ -498,10 +498,10 @@ export declare const REGISTRATION_PLAN: readonly [{
|
|
|
498
498
|
readonly exportName: "registerMeshCommand";
|
|
499
499
|
}, {
|
|
500
500
|
readonly type: "registrar";
|
|
501
|
-
readonly root: "
|
|
501
|
+
readonly root: "runners";
|
|
502
502
|
readonly parent: "program";
|
|
503
503
|
readonly module: "./commands/lanes.js";
|
|
504
|
-
readonly exportName: "
|
|
504
|
+
readonly exportName: "registerRunnersCommand";
|
|
505
505
|
}, {
|
|
506
506
|
readonly type: "registrar";
|
|
507
507
|
readonly root: "monitor";
|
|
@@ -85,7 +85,7 @@ export const REGISTRATION_PLAN = [
|
|
|
85
85
|
{ type: "registrar", root: "capacity", parent: "program", module: "./commands/capacity.js", exportName: "registerCapacityCommand" },
|
|
86
86
|
{ type: "registrar", root: "doctor", parent: "program", module: "./commands/doctor.js", exportName: "registerDoctorCommand" },
|
|
87
87
|
{ type: "registrar", root: "mesh", parent: "program", module: "./commands/mesh.js", exportName: "registerMeshCommand" },
|
|
88
|
-
{ type: "registrar", root: "
|
|
88
|
+
{ type: "registrar", root: "runners", parent: "program", module: "./commands/lanes.js", exportName: "registerRunnersCommand" },
|
|
89
89
|
{ type: "registrar", root: "monitor", parent: "program", module: "./commands/monitor.js", exportName: "registerMonitorCommand" },
|
|
90
90
|
{ type: "registrar", root: "daemon", parent: "program", module: "./commands/daemon.js", exportName: "registerDaemonCommand", hidden: true },
|
|
91
91
|
{ type: "registrar", root: "sync-core", parent: "program", module: "./commands/sync-core.js", exportName: "registerSyncCoreCommand", hidden: true },
|
package/dist/commands/access.js
CHANGED
|
@@ -1057,12 +1057,18 @@ highest one across the paths.
|
|
|
1057
1057
|
throw new Error("Pass at least one path, or --stdin with one path per line.");
|
|
1058
1058
|
}
|
|
1059
1059
|
if (opts.as) {
|
|
1060
|
-
|
|
1061
|
-
|
|
1060
|
+
const results = [];
|
|
1061
|
+
for (const target of targets) {
|
|
1062
|
+
results.push(await runAccessForPerson(target, opts.as, opts));
|
|
1062
1063
|
}
|
|
1063
|
-
const
|
|
1064
|
-
|
|
1065
|
-
|
|
1064
|
+
const exitCode = results.reduce((max, row) => Math.max(max, row.exitCode), 0);
|
|
1065
|
+
if (opts.json) {
|
|
1066
|
+
console.log(JSON.stringify(results.length === 1 ? results[0] : results));
|
|
1067
|
+
}
|
|
1068
|
+
else {
|
|
1069
|
+
console.log(results.map(formatAccessForPerson).join("\n"));
|
|
1070
|
+
}
|
|
1071
|
+
process.exitCode = exitCode;
|
|
1066
1072
|
return;
|
|
1067
1073
|
}
|
|
1068
1074
|
if (targets.length === 1 && !opts.stdin) {
|
|
@@ -134,6 +134,14 @@ export interface CompanyAgentView {
|
|
|
134
134
|
entityStatus?: string;
|
|
135
135
|
agentStatus?: string;
|
|
136
136
|
setupPhase?: string;
|
|
137
|
+
/** "hosted" | "external" | "local" (local bots have no agentStatus). */
|
|
138
|
+
runtimeKind?: string;
|
|
139
|
+
/** Local bots only: server-derived liveness. */
|
|
140
|
+
local?: {
|
|
141
|
+
online?: boolean;
|
|
142
|
+
lastSeenAt?: string | null;
|
|
143
|
+
lastHeartbeatAt?: string | null;
|
|
144
|
+
};
|
|
137
145
|
provider?: string;
|
|
138
146
|
codexModel?: string;
|
|
139
147
|
codexReasoningEffort?: string;
|
package/dist/commands/agents.js
CHANGED
|
@@ -266,6 +266,11 @@ export function rosterStatusLabel(agent) {
|
|
|
266
266
|
return "removing";
|
|
267
267
|
if (agent.setupPhase === "deprovisioned")
|
|
268
268
|
return "removed";
|
|
269
|
+
// A local bot (runtimeKind "local") has no box and no agentStatus; the
|
|
270
|
+
// server reports its liveness (heartbeat or last own inbox use) instead.
|
|
271
|
+
if (agent.runtimeKind === "local") {
|
|
272
|
+
return agent.local?.online === true ? "online" : "offline";
|
|
273
|
+
}
|
|
269
274
|
return agent.agentStatus ?? "";
|
|
270
275
|
}
|
|
271
276
|
/**
|
package/dist/commands/bot.d.ts
CHANGED
|
@@ -133,6 +133,14 @@ export declare function hotSignalSyncRole(name: string, config: BotConfig, execu
|
|
|
133
133
|
executiveCompanies?: string[];
|
|
134
134
|
otherBotDirs: string[];
|
|
135
135
|
};
|
|
136
|
+
/**
|
|
137
|
+
* After a bot is removed, re-run the HQ Fleet Runtime job setup for every
|
|
138
|
+
* other enabled Fleet Runtime bot here, so a company whose hot-signal-sync the
|
|
139
|
+
* removed bot held is picked up by a bot that still runs. Best effort: a bot
|
|
140
|
+
* that is busy (its lock is held) or held for promotion is left for its next
|
|
141
|
+
* start. Returns the names it re-checked.
|
|
142
|
+
*/
|
|
143
|
+
export declare function resyncHotSignalSyncAfterRemoval(removed: string, sync?: (name: string, dir: string, config: BotConfig) => void): Promise<string[]>;
|
|
136
144
|
/** Bot-identity token supplier: per-bot creds + per-bot token cache dir. */
|
|
137
145
|
export declare function botTokenSupplier(dir: string): () => Promise<string>;
|
|
138
146
|
/**
|