@indigoai-us/hq-cli 5.345.214 → 5.345.215
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 +93 -0
- package/assets/scaffold/core/scripts/hq-delegate-verify.sh +5 -2
- package/dist/command-catalog.generated.d.ts +180 -13
- package/dist/command-catalog.generated.js +221 -13
- package/dist/commands/agents.d.ts +51 -1
- package/dist/commands/agents.js +154 -2
- package/dist/commands/bot-jobs.d.ts +2 -15
- package/dist/commands/bot-jobs.js +2 -94
- package/dist/commands/bot-runtime.d.ts +46 -5
- package/dist/commands/bot-runtime.js +228 -18
- package/dist/commands/bot.d.ts +16 -9
- package/dist/commands/bot.js +231 -55
- package/dist/commands/capacity.d.ts +4 -1
- package/dist/commands/capacity.js +46 -10
- package/dist/commands/cloud.d.ts +66 -13
- package/dist/commands/cloud.js +121 -40
- package/dist/commands/company-restore.d.ts +23 -0
- package/dist/commands/company-restore.js +128 -0
- package/dist/commands/company.js +2 -0
- package/dist/commands/core-delegate-w1b.js +15 -1
- package/dist/commands/core-policy.js +67 -8
- package/dist/commands/daemon.js +5 -0
- package/dist/commands/files-browse.d.ts +11 -4
- package/dist/commands/files-browse.js +21 -4
- package/dist/commands/files.d.ts +1 -1
- package/dist/commands/files.js +25 -11
- package/dist/commands/integrations-auth-rules.d.ts +27 -0
- package/dist/commands/integrations-auth-rules.js +79 -0
- package/dist/commands/integrations-connect.d.ts +10 -3
- package/dist/commands/integrations-connect.js +87 -13
- package/dist/commands/integrations-import.js +124 -12
- package/dist/commands/lanes.js +28 -11
- package/dist/commands/mesh.d.ts +2 -0
- package/dist/commands/mesh.js +60 -35
- package/dist/commands/sources.js +6 -0
- package/dist/commands/storage-offload.d.ts +12 -0
- package/dist/commands/storage-offload.js +41 -3
- package/dist/commands/sync-held.js +5 -2
- package/dist/commands/sync-mode.js +5 -0
- package/dist/commands/whoami.js +4 -0
- package/dist/lazy-commands.js +3 -5
- package/dist/lib/bot/config.d.ts +1 -0
- package/dist/lib/bot/config.js +10 -0
- package/dist/lib/bot/eventbridge-cron.d.ts +22 -0
- package/dist/lib/bot/eventbridge-cron.js +104 -0
- package/dist/lib/bot/fleet-cron.d.ts +8 -0
- package/dist/lib/bot/fleet-cron.js +35 -3
- package/dist/lib/bot/fleet-daemon.d.ts +46 -0
- package/dist/lib/bot/fleet-daemon.js +99 -1
- package/dist/lib/bot/fleet-local.d.ts +33 -1
- package/dist/lib/bot/fleet-local.js +215 -31
- package/dist/lib/bot/fleet-python.d.ts +3 -0
- package/dist/lib/bot/fleet-python.js +34 -4
- package/dist/lib/bot/fleet-runtime-sources.d.ts +15 -0
- package/dist/lib/bot/fleet-runtime-sources.js +30 -0
- package/dist/lib/bot/legacy-provider-login.d.ts +8 -0
- package/dist/lib/bot/legacy-provider-login.js +19 -2
- package/dist/lib/bot/probe.js +7 -1
- package/dist/lib/bot/prompt.js +1 -1
- package/dist/lib/bot/readiness.d.ts +8 -0
- package/dist/lib/bot/readiness.js +17 -3
- package/dist/lib/bot/run.js +20 -1
- package/dist/lib/bot/runtime/codex.js +1 -1
- package/dist/lib/bot/runtime/grok-acp.d.ts +5 -1
- package/dist/lib/bot/runtime/grok-acp.js +6 -3
- package/dist/lib/bot/runtime/index.js +19 -9
- package/dist/lib/bot/runtime/messages-stream.js +2 -2
- package/dist/lib/bot/runtime/types.d.ts +15 -0
- package/dist/lib/bot/runtime/types.js +9 -0
- package/dist/lib/bot/runtime-auth.d.ts +30 -0
- package/dist/lib/bot/runtime-auth.js +94 -3
- package/dist/lib/bot/runtime-failure.d.ts +23 -0
- package/dist/lib/bot/runtime-failure.js +43 -1
- package/dist/lib/bot/status.d.ts +2 -0
- package/dist/lib/capacity/accounts.d.ts +8 -0
- package/dist/lib/capacity/accounts.js +19 -0
- package/dist/lib/capacity/available.d.ts +154 -0
- package/dist/lib/capacity/available.js +905 -0
- package/dist/lib/capacity/codex-availability.d.ts +14 -1
- package/dist/lib/capacity/codex-availability.js +26 -1
- package/dist/lib/capacity/collectors/claude-oauth.d.ts +29 -2
- package/dist/lib/capacity/collectors/claude-oauth.js +104 -7
- package/dist/lib/capacity/collectors/codex.js +10 -7
- package/dist/lib/capacity/collectors/grok-refresh.d.ts +80 -0
- package/dist/lib/capacity/collectors/grok-refresh.js +189 -0
- package/dist/lib/capacity/collectors/grok.d.ts +5 -0
- package/dist/lib/capacity/collectors/grok.js +56 -5
- package/dist/lib/capacity/ledger.d.ts +37 -1
- package/dist/lib/capacity/ledger.js +207 -30
- package/dist/lib/capacity/project.d.ts +26 -0
- package/dist/lib/capacity/project.js +137 -8
- package/dist/lib/capacity/refusal-rows.d.ts +31 -0
- package/dist/lib/capacity/refusal-rows.js +61 -0
- package/dist/lib/capacity/refusal.d.ts +53 -2
- package/dist/lib/capacity/refusal.js +284 -65
- package/dist/lib/capacity/route.js +46 -11
- package/dist/lib/capacity/widget.d.ts +12 -1
- package/dist/lib/capacity/widget.js +91 -3
- package/dist/lib/daemon/catalog.js +11 -1
- package/dist/lib/daemon/resolver.d.ts +2 -0
- package/dist/lib/daemon/resolver.js +3 -0
- package/dist/lib/daemon/run.d.ts +9 -0
- package/dist/lib/daemon/run.js +54 -1
- package/dist/lib/daemon/server.d.ts +2 -0
- package/dist/lib/daemon/server.js +10 -1
- package/dist/lib/daemon/tcc-eperm.d.ts +153 -0
- package/dist/lib/daemon/tcc-eperm.js +310 -0
- package/dist/lib/db/sqlite-binding.d.ts +1 -0
- package/dist/lib/db/sqlite-binding.js +1 -1
- package/dist/lib/delivery/admission.d.ts +86 -0
- package/dist/lib/delivery/admission.js +148 -0
- package/dist/lib/delivery/artifacts.d.ts +105 -0
- package/dist/lib/delivery/artifacts.js +567 -0
- package/dist/lib/delivery/attempt-id.d.ts +13 -0
- package/dist/lib/delivery/attempt-id.js +16 -0
- package/dist/lib/delivery/backup.d.ts +78 -0
- package/dist/lib/delivery/backup.js +343 -0
- package/dist/lib/delivery/cache.d.ts +29 -0
- package/dist/lib/delivery/cache.js +33 -0
- package/dist/lib/delivery/contracts.d.ts +142 -0
- package/dist/lib/delivery/contracts.js +289 -0
- package/dist/lib/delivery/credentials.d.ts +54 -0
- package/dist/lib/delivery/credentials.js +119 -0
- package/dist/lib/delivery/disposable-target.d.ts +42 -0
- package/dist/lib/delivery/disposable-target.js +111 -0
- package/dist/lib/delivery/effects.d.ts +136 -0
- package/dist/lib/delivery/effects.js +541 -0
- package/dist/lib/delivery/enrollment.d.ts +146 -0
- package/dist/lib/delivery/enrollment.js +460 -0
- package/dist/lib/delivery/escalations.d.ts +51 -0
- package/dist/lib/delivery/escalations.js +60 -0
- package/dist/lib/delivery/identity.d.ts +25 -0
- package/dist/lib/delivery/identity.js +82 -0
- package/dist/lib/delivery/inbox.d.ts +116 -0
- package/dist/lib/delivery/inbox.js +260 -0
- package/dist/lib/delivery/lease.d.ts +80 -0
- package/dist/lib/delivery/lease.js +134 -0
- package/dist/lib/delivery/migrations.d.ts +255 -0
- package/dist/lib/delivery/migrations.js +823 -0
- package/dist/lib/delivery/mqtt-adapter.d.ts +50 -0
- package/dist/lib/delivery/mqtt-adapter.js +242 -0
- package/dist/lib/delivery/mqtt.d.ts +63 -0
- package/dist/lib/delivery/mqtt.js +119 -0
- package/dist/lib/delivery/outbox.d.ts +95 -0
- package/dist/lib/delivery/outbox.js +187 -0
- package/dist/lib/delivery/provenance.d.ts +129 -0
- package/dist/lib/delivery/provenance.js +93 -0
- package/dist/lib/delivery/reconciler.d.ts +215 -0
- package/dist/lib/delivery/reconciler.js +703 -0
- package/dist/lib/delivery/restore.d.ts +35 -0
- package/dist/lib/delivery/restore.js +134 -0
- package/dist/lib/delivery/rpc/client.d.ts +22 -0
- package/dist/lib/delivery/rpc/client.js +159 -0
- package/dist/lib/delivery/rpc/port.d.ts +40 -0
- package/dist/lib/delivery/rpc/port.js +16 -0
- package/dist/lib/delivery/rpc/server.d.ts +30 -0
- package/dist/lib/delivery/rpc/server.js +205 -0
- package/dist/lib/delivery/rpc/wire.d.ts +85 -0
- package/dist/lib/delivery/rpc/wire.js +143 -0
- package/dist/lib/delivery/store.d.ts +163 -0
- package/dist/lib/delivery/store.js +944 -0
- package/dist/lib/delivery/windows-service-install.d.ts +262 -0
- package/dist/lib/delivery/windows-service-install.js +892 -0
- package/dist/lib/delivery/workers/macos-job-helper.d.ts +103 -0
- package/dist/lib/delivery/workers/macos-job-helper.js +927 -0
- package/dist/lib/delivery/workers/macos.d.ts +191 -0
- package/dist/lib/delivery/workers/macos.js +943 -0
- package/dist/lib/delivery/workers/windows-job-helper.d.ts +35 -0
- package/dist/lib/delivery/workers/windows-job-helper.js +264 -0
- package/dist/lib/delivery/workers/windows-service-live.d.ts +121 -0
- package/dist/lib/delivery/workers/windows-service-live.js +711 -0
- package/dist/lib/delivery/workers/windows-service-runner.d.ts +33 -0
- package/dist/lib/delivery/workers/windows-service-runner.js +82 -0
- package/dist/lib/delivery/workers/windows-service.d.ts +140 -0
- package/dist/lib/delivery/workers/windows-service.js +584 -0
- package/dist/lib/delivery/workers/windows.d.ts +251 -0
- package/dist/lib/delivery/workers/windows.js +594 -0
- package/dist/lib/hot-channels/adapters/meetings.d.ts +15 -0
- package/dist/lib/hot-channels/adapters/meetings.js +36 -3
- package/dist/lib/hot-channels/signals-pass.d.ts +10 -0
- package/dist/lib/hot-channels/signals-pass.js +71 -2
- package/dist/lib/hot-channels/signals-redo.js +10 -2
- package/dist/lib/install/provider-wrappers.d.ts +2 -0
- package/dist/lib/install/provider-wrappers.js +68 -3
- package/dist/lib/lanes/watcher.js +35 -0
- package/dist/lib/signals/steps/extract.js +40 -4
- package/dist/schemas/hq-available-ai.v1.schema.json +76 -0
- package/dist/utils/catalog-runtime-paths.d.ts +34 -0
- package/dist/utils/catalog-runtime-paths.js +53 -0
- package/dist/utils/cognito-callback-port.d.ts +14 -0
- package/dist/utils/cognito-callback-port.js +24 -0
- package/dist/utils/cognito-session.js +3 -3
- package/dist/utils/deleted-company-notice.d.ts +59 -0
- package/dist/utils/deleted-company-notice.js +156 -0
- package/dist/utils/files-browse-acl.js +1 -1
- package/dist/utils/login-browser.d.ts +1 -1
- package/dist/utils/login-browser.js +7 -5
- package/dist/utils/resident-package-preload.js +30 -15
- package/dist/utils/vault-api.js +7 -0
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,99 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [5.345.215] — 2026-11-12
|
|
6
|
+
|
|
7
|
+
- `hq sync held` and the `hq sync push` hold notice no longer say another account was signed in. A first install on a new computer also holds uploads until `hq sync release-held`; that used to read as a security scare (feedback_baa82c96). The hold itself is unchanged.
|
|
8
|
+
|
|
9
|
+
- `hq login`, `hq auth login` and the automatic browser sign-in now show the provider's account chooser, so a person with several Google accounts picks one instead of being signed in with whichever the browser used last. Set `HQ_COGNITO_PROMPT=` (empty) to turn this off. Token refresh is unchanged.
|
|
10
|
+
- When a company you belonged to was deleted, `hq whoami`, `hq sources entities`, `hq sync mode --show` and the "No active company memberships found" error now say so on stderr, with the date and how to get it back.
|
|
11
|
+
- New `hq company restore <company>` restores a company you deleted in the last 30 days, by name, slug or company ID. A restored company comes back without its paid plan. `--json` prints the result as JSON.
|
|
12
|
+
- `hq agents jobs update <agent> <jobId>` (alias `edit`) edits a hosted agent's scheduled job in place: `--prompt` or `--prompt-file`, `--name`, `--cron` (five-field or `cron(...)`/`rate(...)`) or `--at` with a required `--tz`, `--context` / `--clear-context`, `--script-file` / `--clear-script`. Only the options passed change; the job keeps its id and paused/active status, and the change applies from its next run. Owners and admins of the agent's company can use it, the same as pause, resume and cancel. `hq agents jobs delete` is now an alias of `cancel`, which removes a job for good whether it is active or paused. Paused jobs do not count toward an agent's 25 active-job limit. Needs the hq-pro-agents job edit route; an older server answers with a clear "cannot edit jobs yet" line.
|
|
13
|
+
- On a Mac where `hq daemon` runs local bots, `hq bot create`, `start`, `restart`, `adopt`, `restore` and `auth` now check that the daemon is actually running before handing a bot to it. If its login item is installed but the daemon is stopped, the CLI runs `hq daemon start` and waits up to 20 seconds for it. If it still is not running, the command exits non-zero with one plain sentence (and `reason: "daemon-stopped"` under `--json`) instead of reporting a start that nothing would pick up. `hq bot create` stops before HQ makes the bot's identity.
|
|
14
|
+
- `hq bot switch-account <name> --runtime <claude|codex> --sign-in` signs the bot in with a login of its own first. It runs a browser sign-in into the bot's own folder (`~/.hq/bots/<name>/auth/<runtime>`), the same login `hq bot login` makes, with no terminal needed. Your own Claude Code or Codex sign-in, and every other bot's login, stay as they are. The desktop app's Switch account uses it.
|
|
15
|
+
- `hq bot switch-account --sign-in` keeps the bot's previous own login until the new browser sign-in finishes. It is not signed out first. A failed, cancelled, or killed sign-in puts that login back; the next attempt does not delete it.
|
|
16
|
+
- `hq capacity` and the `/capacity` card show each Claude account's banked limit resets, including Fable-only resets. An account at 100% that still holds a reset reads "used up, reset banked" instead of plain "used up", and a "Resets banked" row lists each reset, what it clears, and when it expires. The collector asks the usage endpoint for the reset block (`cedar_ember=1`) and names the installed Claude Code version in its user agent, because the server returns grants only to a Claude Code client. Banked resets are kept per account; before this the ledger kept one provider-level record, so only the last account read would have shown its resets.
|
|
17
|
+
- `hq capacity`, `hq capacity route` and `hq lanes create --account auto` now give one answer for one login. Codex readings from both collectors use one account id per home, an existing ledger is migrated when `now.json` is rebuilt with no event deleted, and accounts on one home or one Claude identity are merged in `now.json`. (find-available-ai US-002)
|
|
18
|
+
- `hq capacity available --json` and `~/.hq/capacity/available.json` give one token-free `hq-available-ai.v1` answer to what AI can run now. A stale view starts one background read, `--fresh` waits at most 3 seconds, and with no ledger the rows come from each tool's own status command. A process that cannot find the HQ root, or whose `HQ_ROOT` or `CLAUDE_PROJECT_DIR` names a folder that is neither an HQ tree nor holds a lanes config, keeps the last `available.json` rather than writing one without the registry's accounts, and logs why. (find-available-ai US-003)
|
|
19
|
+
- A real usage-limit refusal on a model-CLI bot's turn, `hq bot probe` or a lane now holds that account for the window the refusal names (session, weekly, one model, or no window), and a 429 shows as rate limited with the plan figure kept. A refusal that names no window gets the provider's short hold first, and its reset only on a repeat. A hold ends at its reset, or sooner when a newer reading of that limit is below 100%, and then the account is back on its last real reading. Nothing is recorded when the account cannot be identified. Only the error a tool reports in its own output (including the error Grok returns over its Windows protocol) records a refusal, never raw stderr, which can carry the model's own text. On `hq capacity ingest refusal`, `--account` is required unless `--limit-id` names a limit exactly one account has; a limit id several accounts share is a usage error, and a provider with one account is not a default. The default hold for a refusal that names no window is now 15 minutes, shortened from 1 hour. (find-available-ai US-004)
|
|
20
|
+
- On desktops where `hq daemon` runs the mesh service, restart the daemon after upgrading (`hq daemon restart`) so the already-running mesh service picks up `HQ_ROOT` and expired Claude tokens on the capacity card renew again.
|
|
21
|
+
- `hq integrations connect --client-secret-stdin` (and `--token-stdin`) now print a one-line prompt to stderr and read with input hidden when stdin is a terminal, so the command no longer looks frozen while it waits for the secret. Piped input is unchanged and prints nothing extra (feedback_86a49a5c).
|
|
22
|
+
- `pnpm run build` now passes on Windows. Its command catalog check failed there for two reasons: a checkout with `core.autocrlf=true` has CRLF line endings, and a path in one option's help text was recorded with backslashes. The check now ignores CRLF, the catalog always records the path after `<runtime-home>` or `<runtime-path>` with `/`, and help text shows that path with the platform's own separator. Help text on macOS and Linux is unchanged.
|
|
23
|
+
- `hq integrations connect --auth-header` now applies the same header-name rule as hq-pro: at most 64 characters, and not a header HQ refuses to put a key in (Host, Content-Length, Expect, Content-Encoding, WWW-Authenticate, Cookie, Set-Cookie, Forwarded, Via, X-Real-IP, True-Client-IP, CF-Connecting-IP, X-Original-URL, hop-by-hop headers, HTTP2-Settings, Proxy-Authorization, Proxy-Authenticate, the headers HQ's MCP client sets itself, and any Proxy-* or X-Forwarded-* header). Authorization is still allowed. A pasted key with an inner space is now refused before sending, as hq-pro refuses it for a Bearer or custom-header key. Before, both were sent and came back as a 400 from hq-pro. (feedback_950d8abe)
|
|
24
|
+
- The native credential guard answers hq-core 16.0.46 again. It pins the released guard (25f5507c), hq-core-staging main after #1926 (0555a4bd) and hq-core-staging #1887 (72296f01), and picks the behavior by script hash: the Unicode fold runs only for 72296f01. In a UTF-8 locale it now also matches U+212A and U+0130 as `k` and `i` under nocasematch, as bash does. The 16.0.46 credential guard handback is removed from `core-pins.json`.
|
|
25
|
+
- The native credential guard also answers hq-core-staging main after #1927 (30015cbc), with the Unicode fold on (#1887 is merged there). The pins for 16.0.46 (25f5507c), #1926 (0555a4bd) and #1887 (72296f01) stay.
|
|
26
|
+
- HQ Native delivery: storing a build artifact no longer fails on Windows with `STORE_IO ... EPERM: operation not permitted, fsync`. Windows cannot fsync a directory, so the artifact store now skips that step there, as the rest of the CLI already does. Other platforms still fsync the blob directory and still refuse when that fails.
|
|
27
|
+
- HQ Native delivery on Windows: the service runner's spool writes, including the heartbeat written every 200 ms, now retry for up to 75 ms when Windows refuses to replace a file another process has open (EPERM, EACCES or EBUSY). A write that still fails removes its temporary file, so failed writes no longer leave `.tmp` files in the spool. macOS and Linux still rename once.
|
|
28
|
+
- A process whose `HQ_ROOT` or `CLAUDE_PROJECT_DIR` is a folder inside an HQ tree (a session opened in `repos/...` or `companies/<slug>`) now refreshes `~/.hq/capacity/available.json` from the account registry of the nearest enclosing folder that has a lanes config (`personal/lanes/config.json`), instead of always keeping the last file. A copy of the hq-core template inside HQ (such as `repos/public/hq-core` or an hq-core-staging worktree) has the same folders as an HQ tree but no lanes config, so it no longer stops the search. Before, a root at or below such a copy read an empty registry and wrote available.json as fresh, with a default login the registry turned off named best and the registry's other accounts missing. When no folder on the way has a lanes config, the outermost HQ tree is used, so a fresh install still gets the default logins. A folder with no enclosing HQ tree still keeps the last file, and an explicit `HQ_ROOT` that has a lanes config is still used as given. (find-available-ai follow-up)
|
|
29
|
+
- On Windows, a Grok bot turn over ACP that Grok refuses (for example a usage limit) is now reported as that refusal even when the Grok process exits with code 0 while a process it started still holds its output open. Before, that turn ended as "grok returned non-JSON output" with no reported error, so the refusal was not recorded. (find-available-ai follow-up)
|
|
30
|
+
- `hq files browse` no longer labels files you created as "creator-only" when teammates can read them. When your creator grant and a team, person, group or open grant both cover a file, the shared grant now wins whatever order the server returns them in. The creator label now reads "creator access (you created it; others may also have access)", because browse sees only your own grants. The JSON `aclSource` value is still `creator` (feedback 10ed97a5).
|
|
31
|
+
- The `/delegate` verifier (the bundled `hq-delegate-verify.sh` and its native port) now accepts both the old and the new creator label. A delegation no longer fails its file check, and its pickup DM is no longer blocked, when the installed hq-cli and the verifier print different creator labels (feedback 10ed97a5).
|
|
32
|
+
- `hq files purge` now tells the truth about a scheduled purge. hq-pro answers with `status: "pending_purge"`, `purgeScheduled: true` and `purged: false`; the CLI used to miss those fields and print that the version was deleted immediately and could not be cancelled. It now says the version is scheduled for deletion on the purge date, stays listed and readable until then, and can be cancelled with `hq files purge --cancel`. `--cancel` itself now sends the `cancel_purge` action hq-pro expects and accepts its `purgeCancelled` / `status: "kept"` reply.
|
|
33
|
+
- `/capacity` no longer shows Grok as signed out after its six-hour sign-in token lapses. When the stored token has expired and no `grok` process is running, HQ renews it with the stored refresh token and writes it back to `~/.grok/auth.json`. A token that cannot be renewed shows as expired, and a revoked sign-in shows as "signed out: sign-in revoked".
|
|
34
|
+
- `hq lanes create --provider claude --outpost primary` from a machine that is not an Outpost now reads that Outpost's Claude account snapshot and can create the lane there. The capacity probe for that explicit target waits the single-lane pickup interval. A local-target create still does not call `primary`.
|
|
35
|
+
- Setting up the HQ Fleet Runtime is faster. The private Python is now installed while the runtime downloads instead of after it, and its install no longer freezes the progress bar. On a Mac whose bots run under hq daemon, `hq bot create` asks the daemon to start the new bot before it registers the bot's scheduled jobs, so the bot boots while they are registered.
|
|
36
|
+
- When an HQ Fleet Local release bundles the runtime's Python packages for this platform, the bundle downloads with the runtime, is checked against the signed release manifest, and the runtime environment is installed from it offline instead of from PyPI. A bundle that fails its hash check stops the install with an error. A release with no bundle, or a bundle uv cannot install on this computer, uses the PyPI install as before.
|
|
37
|
+
- A new ChatGPT or Grok bot starts the same way as a Claude bot. When this computer already has a Codex CLI login, a Grok CLI login, or another Fleet bot's Grok login, `hq bot create` imports it without a browser before the start step, asks hq daemon to start the bot with the same request, and reports the same setup steps, with `needsSignIn: false`. Only a computer with no reusable login still gets a bot that waits for `hq bot auth`.
|
|
38
|
+
- `hq bot auth-status --provider <claude|chatgpt|grok> --json` prints `{ provider, signedIn, source, ok }` and changes nothing on disk. `signedIn` is true exactly when `hq bot create` with that brain needs no sign-in step; if create then cannot import that login, it fails with a plain message instead of asking for a sign-in. An unknown brain prints `{ ok: false, reason: "unknown-provider" }` and exits 1.
|
|
39
|
+
- `hq bot sign-in --provider <chatgpt|grok> --json` signs this computer in through the brain's own CLI before any bot exists: `codex login` or `grok login --oauth`, or their device-code login with `--no-browser`, whose code it prints as `{"event":"auth","phase":"device-code","verificationUri","userCode"}`. It ends with `{ ok, provider, signedIn, source }`, and on SIGTERM stops the CLI and ends with `reason: "cancelled"`. A later create reuses the login.
|
|
40
|
+
- `hq bot create`, `hq bot auth-status` and `hq bot sign-in` accept the same brain names: `claude`, `codex` or `chatgpt` (the same brain), and `grok`, in any case. `auth-status` and `sign-in` still answer with `provider: "chatgpt"` for that brain.
|
|
41
|
+
- `hq bot create` and `hq bot list` now count a Fleet bot (runtime 0.4.30 or newer) as ready only when its gateway reports running and ready and the bot's `status.json` for the same process also says `ready: true`. Create no longer reports ready about a second before `status.json` does, which made the app show Ready and then Starting again.
|
|
42
|
+
- `hq bot create --json` reports `greeting: { sent, sentAt }`: whether the new bot's first message is already on HQ, read from the time the runtime sent it. For Fleet bots, `hq bot list --json` rows fall back to the same time for `introSentAt`.
|
|
43
|
+
- `hq bot auth <name> --provider claude` on a Fleet bot first checks the Claude Code login on this computer. When it is signed out, it changes nothing and exits 1 with `{ ok: false, provider: "claude", signedIn: false, brainSignIn }`. A successful `hq bot auth --json` now also reports `signedIn: true` and `retried`; `retried` stays false until the runtime can answer the messages it held during the sign-out.
|
|
44
|
+
- For a Fleet bot whose brain is signed out, `hq bot list --json` reports `runtimeSignIn: { state: "signed-out", runtime, since }` (the tool name: claude, codex or grok) and a `brainSignIn`, read from the runtime's `state/sign-in-needed.json` marker. `hq bot auth` leaves such a running bot alone instead of restarting it, because the bot re-checks its login every 5 s and answers the waiting message itself. It waits up to 20 s for the marker to clear and reports `reloaded: true`, `restarted: false` and `retried: true` once it has.
|
|
45
|
+
- A Fleet bot's persona now tells it to look up its owner's companies with the hq_companies_list tool, because `hq whoami` does not list companies.
|
|
46
|
+
- The native company Git metadata and env-file guards no longer hand calls back to bash. A Windows bash that is not Git Bash and a hook PATH that cannot be built now get a one-line native block that says what to change. The env-file guard also blocks, instead of handing back, an env-file write it cannot classify: a Git Bash locale that is neither UTF-8 nor single-byte, and, off macOS and Windows, content with characters outside ASCII when the locale (LC_ALL, LC_CTYPE or LANG) is not C or POSIX, because gawk and mawk are not modelled yet.
|
|
47
|
+
- hq-hook: adds a shared check (`crates/hq-hook/src/unmodelled.rs`) that native hook ports run first. It blocks a call (exit 2, one line saying what to change) when the hook environment or input is outside what the ports model: bash option variables (`BASHOPTS`, `SHELLOPTS`, `POSIXLY_CORRECT`), exported bash functions other than the ones hosts set for every login shell (RHEL's `which` wrapper, Environment Modules, Lmod, Spack and scl-utils functions pass), a non-empty `CDPATH` or `GLOBIGNORE`, an `OSTYPE` from the other platform family, an unset or empty `PATH` or a `PATH` entry starting with `~`, non-UTF-8 `HOME`/`HQ_ROOT`/`CLAUDE_PROJECT_DIR`, and input that is not one standard UTF-8 JSON value (NaN or other non-standard numbers, numbers of 1e300 or more, unpaired surrogate escapes, a byte-order mark, NUL bytes, nesting past 100 levels, more than one value). `block-hq-glob` and the scope authorizer used to hand these environments back to bash; they now block them the same way (`block-hq-glob` still answers with `CDPATH` or `GLOBIGNORE` set, since its script runs no `cd` and no glob). Claude Code and Codex do not send any of these, and all hook flags stay off.
|
|
48
|
+
- The bot's daily hot-signal-sync script no longer dies with MODULE_NOT_FOUND after an hq-cli update. It still runs `node <baked dist/index.js>` while that file exists; when a pnpm global hash folder is gone, it runs the stable `~/Library/pnpm/bin/hq` launcher (or `hq` on PATH) instead of the old hash path. (feedback_614121bf)
|
|
49
|
+
- The hook engine supports hq-core 16.0.47. `core-pins.json` lists the release, and the native ports for block-company-git-metadata, block-core-writes, block-plans-dir-during-deep-plan, image-context-guard, block-repo-edits-use-worktree and the policy-enforcement gate accept its `hook-lib.sh` (b971dae4), which changes only code those guards never reach. Its credential guard (30015cbc) and block-hq-glob (925bba9f) were already pinned. inject-policy-on-trigger, block-agent-secrets-reveal, lanes-repo-merge-hold and merged-write-guard-shadow run as bash on 16.0.47 until their new behavior is ported. Every earlier pin stays.
|
|
50
|
+
- The native `block-hq-glob` port now also answers hq-core-staging's normalizing guard (sha256 925bba9f), which denies a Glob of `<hq>/./`, `<hq>//`, `<hq>/core/..` and other spellings of the HQ root. The engine keeps the hq-core 16.0.46 guard pinned and answers it with its own string comparison, choosing by script hash. The normalizing pin takes effect only once hq-core-staging ships that script.
|
|
51
|
+
- Adds the HQ Native delivery library under `src/lib/delivery` with its tests. It is not connected to any `hq` command, daemon unit or startup path yet, so nothing changes for users. It contains the delivery contracts, a crash-safe store with versioned migrations and a single-controller lock, attempt reconciliation, worker enrollment and tenant-scoped identity, per-job credential planning, an MQTT outbox and inbox for notifications, a contained macOS worker launcher, signed artifact provenance with promotion, and verified backup and restore with authority transfer. The Windows worker launcher is included and fails closed: it refuses every job unless a boundary service is supplied to it, and this release supplies none. `src/lib/db/sqlite-binding.ts` now exports `isNativeBindingError`, and the delivery tests run as their own vitest project, two files at a time.
|
|
52
|
+
- Adds the Windows worker to the HQ Native delivery library (`src/lib/delivery`). It is not connected to any `hq` command, daemon unit or startup path, so nothing changes for users. Jobs run through a Windows service under its own virtual account, and each job runs inside a Windows Job Object that kills the whole process tree on cancel, on a memory, process-count or CPU-time limit, when the service stops and when the runner is killed. Install and uninstall are bound to one pilot service (`HQNDUS006040`); an unsigned service wrapper is accepted only by its pinned sha256, for that pilot service and root, and only with `--pilot-unsigned-wrapper`. Windows results are untrusted and cannot be promoted. Containment holds against normal and buggy jobs, not a deliberately hostile job, because jobs share the runner's account; a separate job identity is required before Windows runs untrusted third-party code. Uninstall takes two rollbacks with a restart between them. See `docs/delivery-windows-pilot.md`. The earlier boundary-service launcher is removed.
|
|
53
|
+
- Adds deployment admission with fenced effects to the HQ Native delivery library (`src/lib/delivery`). It is not connected to any `hq` command, daemon unit or startup path yet, so nothing changes for users. A deployment needs an exact, verified, promoted release artifact and an explicit company policy that approves the environment. The policy is held in the delivery store, signed, and set only by an authenticated company admin; a worker cannot supply it. Every request records a signed snapshot of the policy, artifact and context, and every refusal records a decision scoped to the company and environment, published to the company's escalation topic. Effects are serialized per environment and carry a fence that the target enforces. A stale or lease-lost publisher is refused, and an unknown outcome must be reconciled against the target before any retry. The in-flight guard has a tunable maximum hold. The delivery store moves to schema v6.
|
|
54
|
+
- Adds the HQ Native delivery gate-one test harness (`test/delivery/gate-one.test.ts` and `test/delivery/gate-one/`). It is test code only: nothing is wired to an `hq` command, daemon unit or startup path, so nothing changes for users. On loopback, it takes a tagged fixture repository through `git archive`, a real build and test run, signed artifacts, a store-held company policy and a fenced deploy, then starts the app from the bytes the deployment target stored and checks that the identity the app serves equals the verified artifact and its required test receipts. The commit stamped into the app and named in its provenance is the one read back from the archive. A runner executes the fault matrix (controller and worker process crashes, broker restart, duplicate and reordered notifications, a stale worker, backup and restore with the old controller still running, cross-company denial) against the real delivery library and records every observation itself. The runner owns the required scenario list, which is frozen with its scenario objects: it runs exactly that matrix or fails without running anything, and it writes the "gate one passed" record (with `matrixComplete` and the scenario ids) only when the complete matrix passed. Leftover processes and non-loopback sockets are sampled from the OS (`ps`, plus `lsof` on macOS or `/proc` on Linux), not taken from what scenarios register, and any failed or timed-out sample fails the run. Self-tests prove that a broken scenario, a wrong source commit, an incomplete or padded matrix, an orphaned child and a failed sample each make the result fail. Must be fixed in a second slice before the live gate-one run counts as evidence: socket sampling misses sockets that open and close between samples, and in this run the in-process brokers of four scenarios were never sampled, so the loopback line covers sampled sockets only (N1); a grandchild whose parent exits before any sample sees it escapes the leftover check, so teardown should also check the test process's group (N2); the deployment target stores the deployed bytes and the harness starts them, so the target's own serving is not probed (I3); S-stale-worker loses its lease by returning it, not by expiry, and does not deploy again after reconciling (I4); the broker scenario restarts the broker but does not cut off one worker while it holds a claim (I5); the broker restarts on the same port, so a port taken in that window would show as a failure, not a false pass (I7).
|
|
55
|
+
- Completes the HQ Native delivery gate-one loopback harness (US-011 slice 2). It is still test code only: no `hq` command, daemon unit or shipped code changes. Gate one now proves six more things, each with a self-test that fails without the change:
|
|
56
|
+
- Socket coverage: sockets opened in the test process are recorded as they open. Each scenario samples its long-lived children while they run, and the gate fails unless it saw every known child and its socket.
|
|
57
|
+
- Escaped processes: scenario children run in their own process groups, and any live member of those groups at teardown fails the gate.
|
|
58
|
+
- Served app: the deployment target, not the harness, starts the deployed bytes, and the served identity is read from that app.
|
|
59
|
+
- Stale worker: after reconcile, a stale worker that tries to deploy again is refused, and a fresh deploy applies at the next fence.
|
|
60
|
+
- Partition: a new `S-partition` scenario cuts one worker's notification path while it holds a claim, then lets it reconnect.
|
|
61
|
+
- Broker restart: the broker restarts on a fresh port behind a client address that stays bound.
|
|
62
|
+
- Cleanup: the run kills only its own process groups that still have a live member: at the end, the groups the leftover check reported; on process exit, SIGINT or SIGTERM, the groups with a live recorded member. A clean run sends no signal.
|
|
63
|
+
- Connect attempts: a failed attempt to reach a non-loopback address also fails the loopback check.
|
|
64
|
+
- Refusals: the stale-worker and partition refusal checks require the specific refusal code.
|
|
65
|
+
|
|
66
|
+
Adds `docs/delivery-proof.md`, which explains what gate one proves, how to run it, and what the live run on enrolled machines must add.
|
|
67
|
+
- Extends the HQ Native delivery gate-one loopback harness (US-011 slice 3). It is still test code and docs only: no `hq` command, daemon unit or shipped code changes.
|
|
68
|
+
- A new required scenario, `S-worker-partition`, cuts the worker-to-controller path while the worker holds a claim. The worker's claim, report and deploy calls go over a test-only loopback transport. With an abrupt close, the worker's report fails at once and is accepted once after the heal. With a silent drop, the worker hits its own timeout instead of hanging. A controller restart then fences it, and its late report and publish are refused with exact codes. The target holds one effect.
|
|
69
|
+
- Self-tests show the scenario fails when the worker bypasses the transport, and fails within a bounded time when the worker's client has no timeout.
|
|
70
|
+
- The full run can keep its report in a chosen folder (`HQ_TEST_GATE_ONE_EVIDENCE_DIR`) for the live run.
|
|
71
|
+
|
|
72
|
+
Adds `docs/delivery-gate-one-live-brief.md`, the brief for running gate one on the owner's Mac. `docs/delivery-proof.md` now lists two live-run gaps: the library has no worker-to-controller network transport, and a held claim has no lease timeout.
|
|
73
|
+
- HQ Native delivery library (not yet used by any `hq` command): a worker's claim now carries a lease, 120 seconds by default, that the worker renews with a heartbeat. When the lease expires, the attempt is abandoned, the job can be claimed again under a new attempt id, and the old worker's late report, artifact upload and deploy publication are refused. Revoking a worker now frees its claims in the same step. A deploy attempt that loses its lease is marked unknown and goes to reconcile. Opening an older delivery store migrates it to schema v7 after writing an exact backup.
|
|
74
|
+
- HQ Native delivery library (not yet used by any `hq` command): workers can now reach the controller over a loopback network connection instead of only in the same process. Only the worker calls (read, claim, report, return, renew) are allowed, every call is authenticated again by the controller, a lost answer is retried without creating a second attempt (and a retry is answered only while the worker still holds that claim), and the connection stays on the local machine unless explicitly allowed otherwise. A worker that cannot renew its claim for too long now gives it up on its own.
|
|
75
|
+
- On macOS the hq daemon now recovers by itself when macOS privacy (TCC) stops letting it read the HQ folder, which happened after HQ.app updated itself and left the daemon running from the deleted old app bundle (feedback d63d2633). When hqd sees "operation not permitted" (EPERM) on reads of several paths under the HQ root within a minute, it logs one event, reports it once to Sentry, and exits with code 74 so launchd starts a fresh daemon, instead of failing every file operation until someone ran `launchctl kickstart -k`. EPERM outside the HQ root, EPERM from chmod, chown, utime, unlink, rmdir or rename, EACCES, other platforms and a daemon that is already stopping are left alone. After 3 such exits in 30 minutes, or when the daemon cannot record the exit, it stays up and `hq daemon status` says HQ needs Full Disk Access instead of restarting in a loop. A daemon that stayed up checks the HQ folder every minute and clears that warning once it can read it again.
|
|
76
|
+
- `hq integrations import` now checks each Claude Desktop connector's key against hq-pro's rules before connecting it. A connector whose key header HQ refuses (Proxy-*, X-Forwarded-* and the rest of hq-pro's denylist), whose header name is invalid or longer than 64 characters, or whose key has a space or a non-ASCII character is skipped with a message that never shows the key. `Authorization: Basic` credentials are now imported as HQ's Basic scheme (username and password) instead of a raw key with a space. If hq-pro still refuses one connector with a 400, that connector is skipped and the rest of the import continues. Before, any of these stopped the whole import. (feedback_950d8abe)
|
|
77
|
+
- `hq sources sync` no longer fails the whole meetings step with "meeting id must be a safe path segment" when a bot transcript has no `recall_bot_id` or `transcript_id` (Recall desktop-SDK recordings, legacy exports). The `meeting:` prefix on the document id is stripped once, so these transcripts get `signal_source_ref: meeting:<id>`. A transcript whose id is still not a safe path segment lands without a `signal_source_ref` and the sync prints one warning for it; the other meetings carry on.
|
|
78
|
+
- `hq mesh claim` and `hq mesh story` no longer stop at `404 PROJECT_VIEW_NOT_FOUND` when the project has no Board yet. If the local `prd.json` lists the story, they register the project from it (the same merge `hq mesh project ensure` does) and retry once. `hq mesh claim` also gains `--no-ensure`, which only prints the `hq mesh project ensure` command, and its `--json` output names `registeredFrom` when it registered the project.
|
|
79
|
+
- Expired Claude tokens on the capacity card renew again on desktops where `hq daemon` runs the mesh service. That service started in the home folder and received the HQ folder only as a `--hq-root` flag, so the capacity collector's lane and account checks (`hq runners list --json`, `hq runners accounts list --json`) exited with `hq_root_unresolved`, the refresh gate failed closed on every collect, and every Claude account stayed "Token expired". The mesh unit now sets `HQ_ROOT`, as the standalone mesh LaunchAgent did before the move under `hq daemon`.
|
|
80
|
+
- Port protected scaffold write checks to Rust, including local-settings bypasses, core YAML exclusions, package mounts, and existing redirects. Pin the guard and shared hook library; leave enablement unchanged. Windows drive letters and MSYS package-mount targets now use the shared path conversion, preventing protected writes from escaping the check. The port runs the shared unmodelled-input deny first, models the Windows hook runner's bash and tool PATH, reads `$PWD` and `HQ_LIB_WINSEP` as bash and hook-lib do, discards every exclusion when yq fails on any document, and denies natively, never handing back, where yq versions, YAML parsers, locales or bash versions would disagree.
|
|
81
|
+
- Port the company Git metadata write guard to the native hook engine with pinned Bash parity on macOS and Windows. Inputs the port does not model (PATH unset, jq-only numbers, deep nesting, bash option variables) get the shared native deny.
|
|
82
|
+
- Port the env-file content guard to native Rust with byte-exact Bash parity and pinned emergency fallback.
|
|
83
|
+
- Port the image-context guard to Rust, including image size and per-context byte/count budgets, sub-agent ledgers, and existing bypasses. The bridge pins the bash guard and shared library; the enablement flag is unchanged. Ledger rows append as one complete write under concurrent reads; incomplete or invalid trailing records do not erase earlier complete charges.
|
|
84
|
+
- Run the merged write guard shadow natively, with the same allow and deny records as the pinned shell and Node helper and no child processes. Inputs the native hooks do not model (unusual JSON, shell option variables, a `core/core.yaml` shape yq reads differently, a missing guard program) now block the call with a one-line message instead of being recorded.
|
|
85
|
+
- Run the numbered policy sibling guard natively, with the same allow and block decisions as the pinned bash hook and no child processes. Inputs the port does not model get the shared native deny, and on Windows it blocks a numbered policy path rather than guess what Git Bash would find on disk.
|
|
86
|
+
- Run the active deep-plan file guard natively with pinned Bash parity and no child processes; inputs the port does not model (bash option variables, exported functions, PATH unset, non-UTF-8 input or paths, deep nesting, non-standard numbers) are blocked natively with a message that says what to change.
|
|
87
|
+
- Run the repository-worktree write guard natively with pinned Bash parity and no child processes.
|
|
88
|
+
- `hq storage offload --current` matches the companies folder by exact case again. On a case-sensitive disk (Linux, Outposts), files under a personal `COMPANIES/<slug>/` folder were treated as that company's files since #2475, and `hq storage fetch` could not restore them; they are now personal files. On a case-insensitive disk (macOS), a companies folder spelled with other letter case on disk is still treated as the companies folder.
|
|
89
|
+
- `hq core policy retire <slug>` now requires `--evidence "<block log path, incident ref or ledger entry>"` and records it as `retired_evidence:` in the policy frontmatter, so a rule is not retired on guesswork. Whitespace-only evidence is refused, and `--reason` and `--evidence` must be single-line (a newline or other control character exits 2); backslashes and quotes in `retired_reason` and `retired_evidence` are now escaped. `--by` (written as the bare `retired_by:` value) must be a plain id: letters, digits, `.`, `_`, `@`, `-`, starting with a letter or `_` (so YAML cannot read it as a number or date, e.g. `0x1F`, `1e3`, `1.5`, `2026-11-04`), and not a YAML keyword such as `null` or `true`; anything else exits 2. The one exemption from `--evidence` is `--by garden-policy-pass`, which the garden automation uses because it derives its evidence from the age report; the exemption is keyed on that `--by` string, which anyone can type, so it is not an identity check (feedback_7dd12e68).
|
|
90
|
+
- The HQ Anywhere `claude` and `codex` wrappers in `~/.hq/bin` no longer loop with another tool's wrapper. Typing `claude` in a cmux workspace started cmux's wrapper, which ran HQ's wrapper, which picked cmux's wrapper again from PATH, at about 230 new processes a minute. HQ's wrapper now runs the next `claude` after itself on PATH (never another HQ wrapper), so cmux's wrapper and your own wrappers still run, each once. When that next one is a shell script, the wrapper sets `HQ_ANYWHERE_CLAUDE_WRAPPER_ACTIVE` (`HQ_ANYWHERE_CODEX_WRAPPER_ACTIVE` for codex). If a wrapper runs HQ's wrapper again while that variable is set, HQ's wrapper runs the real executable directly (the first `claude` on PATH that is not a shell script, then `~/.local/bin/claude` and `~/.claude/local/node_modules/.bin/claude`), or stops with exit 127 and a message that every `claude` on PATH is a wrapper. The sign-in check follows the same rule. Run `hq install --global` again to refresh an installed wrapper (feedback ed078ef7).
|
|
91
|
+
- `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_c5a9b4bb, feedback_719cfab7)
|
|
92
|
+
- `hq signals run`: when Claude itself stops a source at the run's budget cap, the extract step now records `budget-exceeded` and ends the step as partial, the same as when the engine stops between sources. The source stays unprocessed for the next run, the signal and entity candidates the stopped turn had already written for that source are removed so the next run does not write them twice, and the run record names the source under `detail.budgetStoppedAt`. If the stopped turn also wrote a candidate into another company, that file is still deleted and recorded as a failure, and the run still ends at the stop. Before, that stop was recorded as a failed source with a generic error.
|
|
93
|
+
- The hot-channel signals pass (`hq sources sync`, `hq sources signals`) now sends a document again, up to three calls, when Claude's reply is unusable (`claude-bad-output`), and goes on to the remaining documents if all three replies fail. The failed document stays queued and the run still ends as failed. Before, one reply with a JSON syntax error stopped the run, and the same meeting at the front of the queue blocked every meeting behind it on later runs. A run can now make up to three calls per document instead of one; it stops after three documents in a row fail, and it does not resend a document when Claude printed nothing.
|
|
94
|
+
- `hq sources signals --since` no longer re-queues a landed document whose signals were already written under a `meeting:<id>` index `source_ref` instead of the file path. The daily and on-demand backlog was looping the same meetings and duplicating signal files (feedback_1bdd2f65).
|
|
95
|
+
- The build step that bundles the hq-cloud sync runner now works on Windows. It spawned esbuild's JavaScript launcher directly, which Windows cannot run (spawnSync ENOENT). On Windows it now runs the launcher through node. The bundle and the step on macOS and Linux are unchanged.
|
|
96
|
+
- `hq sync status` now takes `--all` to list every local-only file instead of the first 20 per company, and `--json` to print the full status (scope summaries and every local-only list, uncapped) as JSON. The default output is unchanged except that the truncation line now reads "... and N more (use --all to list every file)" (feedback_f29d004a).
|
|
97
|
+
|
|
5
98
|
## [5.345.214] — 2026-11-10
|
|
6
99
|
- `hq agent inbox done` and the `hq_inbox_done` MCP tool now confirm completion before recording it. An id is written to `done-ids.json` only after the server confirms its ack. Until then it is kept in `~/.hq-agent/inbox/ack-pending.json`, which is written before the first ack is sent, so a failed ack or a killed process leaves a record. While it is there, the item stays listed by `hq agent inbox` and `hq_inbox_read` with `ackPending: true`, is marked in the kit wake notice's new `ackPending` list, and is retried by the next inbox read or `done` call. A permanent refusal (HTTP 400, 403 or 404) is not retried: the id moves to `ack-failed.json`, is listed once with `ackFailed` and the reason, and then drops out. A refusal that `done` reports in its own output is not listed again. One listing shows at most 100 of them. `hq_inbox_read` (as `ackFailedMore`) and `hq agent inbox` say how many more wait for the next call. `ack-failed.json` holds at most 5000 records: past that the oldest ones not shown yet are dropped, and the next listing gives their number (`ackFailedDropped`). Refusals are recorded in one write per batch, and an unreadable `ack-failed.json` is moved aside as `ack-failed.json.corrupt-<time>` instead of being overwritten. A 401 (a token problem) and a 409 are not permanent: those ids stay in `ack-pending.json` and are retried. Each ack is bounded and retried once on a transient failure (a lock-held token mint, a 5xx, 408/425/429, a timeout or a dropped connection). A whole batch is bounded by `HQ_AGENT_INBOX_ACK_DEADLINE_MS` (default 60 s), and a read, including its ack retry, returns within 45 s, which stays under the usual 60 s MCP tool timeout. The handled-state files are updated under the inbox lock, so the MCP server and a CLI call cannot drop each other's update. `done` exits 3 when a requested ack is not confirmed and 1 for an invalid id. `--json` (new) and `hq_inbox_done` report `complete`, `ackPending`, `ackFailed`, `ackFailures` and a structured `ackFailureDetails`. `ackFailures` uses the strings `hq_inbox_done` always returned, now one per id: `"<id> (<status>)"` or `"ack skipped: <id>: <message>"`. `marked` now counts only ids whose ack was confirmed, so it can be 0 when acks fail. Before this change, an id was marked done before its ack, so a failed ack hid the item locally while the server kept it pending. Ids already hidden that way before this release stay hidden, because nothing recorded them; the server still lists them as pending. Rerunning `done` is safe because the server ack is idempotent (feedback 3e376c49).
|
|
7
100
|
- `hq integrations connect <domain>` for an app that will not register HQ automatically (for example `shopify.com`) now prints the callback URL to register and the full `--mcp-url … --client-id … --client-secret-stdin` command, with the endpoint taken from the app's blueprint. Only an MCP surface is used for `--mcp-url`; a blueprint that lists only REST or GraphQL APIs falls back to the console. It used to open the generic Integrations page, which has no control, callback URL or credential form for an app the catalog does not list. With `--json`, every sign-in handoff now prints one JSON line on stdout, told apart by `setup`: `sign-in-link` (`authorizationUrl`), `own-oauth-app` (`callbackUrl`, `command`) or `console` (`url`, `serverAddress`). The console handoff used to print nothing on stdout. `hq integrations connect --help` lists the shapes. (feedback_3013b98e)
|
|
@@ -171,8 +171,11 @@ listing_has_exact_key() {
|
|
|
171
171
|
function exact_key(row, expected, modified, size) {
|
|
172
172
|
gsub(/\033\[[0-9;]*m/, "", row)
|
|
173
173
|
sub(/[[:space:]]+$/, "", row)
|
|
174
|
-
|
|
175
|
-
|
|
174
|
+
# hq-cli releases word the creator label differently ("creator access —
|
|
175
|
+
# creator-only", "creator access (...)"). Match the stable "creator access"
|
|
176
|
+
# prefix with either suffix so any verifier/hq-cli version pair agrees.
|
|
177
|
+
if (row !~ / +(shared-with-you|creator access( — creator-only| \([^()]*\))?|role-bypass|personal-vault|private folder — children are creator-only)$/) return 0
|
|
178
|
+
sub(/ +(shared-with-you|creator access( — creator-only| \([^()]*\))?|role-bypass|personal-vault|private folder — children are creator-only)$/, "", row)
|
|
176
179
|
modified = row
|
|
177
180
|
sub(/^.* +/, "", modified)
|
|
178
181
|
if (modified != "—" && modified !~ /^[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]T[0-9][0-9]:[0-9][0-9]:[0-9][0-9]\.[0-9][0-9][0-9]Z$/) return 0
|
|
@@ -992,6 +992,14 @@ export declare const COMMAND_CATALOG: readonly [{
|
|
|
992
992
|
readonly flags: "--company <slug>";
|
|
993
993
|
readonly description: "Show only this company's journal (company slug)";
|
|
994
994
|
readonly hidden: false;
|
|
995
|
+
}, {
|
|
996
|
+
readonly flags: "--all";
|
|
997
|
+
readonly description: "List every local-only file instead of the first 20 per company";
|
|
998
|
+
readonly hidden: false;
|
|
999
|
+
}, {
|
|
1000
|
+
readonly flags: "--json";
|
|
1001
|
+
readonly description: "Print the full status as JSON (every list uncapped) instead of text";
|
|
1002
|
+
readonly hidden: false;
|
|
995
1003
|
}];
|
|
996
1004
|
readonly subcommands: readonly [];
|
|
997
1005
|
}, {
|
|
@@ -1194,7 +1202,7 @@ export declare const COMMAND_CATALOG: readonly [{
|
|
|
1194
1202
|
readonly subcommands: readonly [];
|
|
1195
1203
|
}, {
|
|
1196
1204
|
readonly name: "held";
|
|
1197
|
-
readonly description: "Show uploads held
|
|
1205
|
+
readonly description: "Show uploads held until you confirm they belong to the signed-in account";
|
|
1198
1206
|
readonly aliases: readonly [];
|
|
1199
1207
|
readonly hidden: false;
|
|
1200
1208
|
readonly helpOption: true;
|
|
@@ -7294,6 +7302,27 @@ export declare const COMMAND_CATALOG: readonly [{
|
|
|
7294
7302
|
}];
|
|
7295
7303
|
readonly options: readonly [];
|
|
7296
7304
|
readonly subcommands: readonly [];
|
|
7305
|
+
}, {
|
|
7306
|
+
readonly name: "restore";
|
|
7307
|
+
readonly description: "Restore a company you deleted in the last 30 days (name, slug or company ID)";
|
|
7308
|
+
readonly aliases: readonly [];
|
|
7309
|
+
readonly hidden: false;
|
|
7310
|
+
readonly helpOption: true;
|
|
7311
|
+
readonly helpCommand: false;
|
|
7312
|
+
readonly usage: "[options] <company>";
|
|
7313
|
+
readonly helpText: readonly [];
|
|
7314
|
+
readonly arguments: readonly [{
|
|
7315
|
+
readonly name: "company";
|
|
7316
|
+
readonly required: true;
|
|
7317
|
+
readonly variadic: false;
|
|
7318
|
+
readonly description: "";
|
|
7319
|
+
}];
|
|
7320
|
+
readonly options: readonly [{
|
|
7321
|
+
readonly flags: "--json";
|
|
7322
|
+
readonly description: "Print the result as JSON";
|
|
7323
|
+
readonly hidden: false;
|
|
7324
|
+
}];
|
|
7325
|
+
readonly subcommands: readonly [];
|
|
7297
7326
|
}, {
|
|
7298
7327
|
readonly name: "settings";
|
|
7299
7328
|
readonly description: "Per-company settings (owner-only)";
|
|
@@ -7901,7 +7930,7 @@ export declare const COMMAND_CATALOG: readonly [{
|
|
|
7901
7930
|
readonly subcommands: readonly [];
|
|
7902
7931
|
}, {
|
|
7903
7932
|
readonly name: "jobs";
|
|
7904
|
-
readonly description: "List, pause, resume, or
|
|
7933
|
+
readonly description: "List, edit, pause, resume, or delete an agent's scheduled jobs";
|
|
7905
7934
|
readonly aliases: readonly [];
|
|
7906
7935
|
readonly hidden: false;
|
|
7907
7936
|
readonly helpOption: true;
|
|
@@ -7987,10 +8016,80 @@ export declare const COMMAND_CATALOG: readonly [{
|
|
|
7987
8016
|
readonly hidden: false;
|
|
7988
8017
|
}];
|
|
7989
8018
|
readonly subcommands: readonly [];
|
|
8019
|
+
}, {
|
|
8020
|
+
readonly name: "update";
|
|
8021
|
+
readonly description: "Edit a job in place (instructions, schedule, name). Only the options you pass change; the job keeps its id and status, and the change applies from the next run.";
|
|
8022
|
+
readonly aliases: readonly ["edit"];
|
|
8023
|
+
readonly hidden: false;
|
|
8024
|
+
readonly helpOption: true;
|
|
8025
|
+
readonly helpCommand: false;
|
|
8026
|
+
readonly usage: "[options] <agentUid> <jobId>";
|
|
8027
|
+
readonly helpText: readonly [];
|
|
8028
|
+
readonly arguments: readonly [{
|
|
8029
|
+
readonly name: "agentUid";
|
|
8030
|
+
readonly required: true;
|
|
8031
|
+
readonly variadic: false;
|
|
8032
|
+
readonly description: "";
|
|
8033
|
+
}, {
|
|
8034
|
+
readonly name: "jobId";
|
|
8035
|
+
readonly required: true;
|
|
8036
|
+
readonly variadic: false;
|
|
8037
|
+
readonly description: "";
|
|
8038
|
+
}];
|
|
8039
|
+
readonly options: readonly [{
|
|
8040
|
+
readonly flags: "--company <slug>";
|
|
8041
|
+
readonly description: "Company slug (to resolve an agent by name/slug)";
|
|
8042
|
+
readonly hidden: false;
|
|
8043
|
+
}, {
|
|
8044
|
+
readonly flags: "--prompt <text>";
|
|
8045
|
+
readonly description: "New instructions";
|
|
8046
|
+
readonly hidden: false;
|
|
8047
|
+
}, {
|
|
8048
|
+
readonly flags: "--prompt-file <path>";
|
|
8049
|
+
readonly description: "Read the new instructions from a file";
|
|
8050
|
+
readonly hidden: false;
|
|
8051
|
+
}, {
|
|
8052
|
+
readonly flags: "--name <label>";
|
|
8053
|
+
readonly description: "Short label for the job";
|
|
8054
|
+
readonly hidden: false;
|
|
8055
|
+
}, {
|
|
8056
|
+
readonly flags: "--cron <expr>";
|
|
8057
|
+
readonly description: "New recurring schedule: \"0 9 * * 1-5\" or cron(...)/rate(...)";
|
|
8058
|
+
readonly hidden: false;
|
|
8059
|
+
}, {
|
|
8060
|
+
readonly flags: "--at <iso8601>";
|
|
8061
|
+
readonly description: "New one-time run instant";
|
|
8062
|
+
readonly hidden: false;
|
|
8063
|
+
}, {
|
|
8064
|
+
readonly flags: "--tz <IANA>";
|
|
8065
|
+
readonly description: "Timezone for --cron/--at (required with them)";
|
|
8066
|
+
readonly hidden: false;
|
|
8067
|
+
}, {
|
|
8068
|
+
readonly flags: "--context <json>";
|
|
8069
|
+
readonly description: "Replace the JSON context handed to the agent at run time";
|
|
8070
|
+
readonly hidden: false;
|
|
8071
|
+
}, {
|
|
8072
|
+
readonly flags: "--clear-context";
|
|
8073
|
+
readonly description: "Remove the job's context";
|
|
8074
|
+
readonly hidden: false;
|
|
8075
|
+
}, {
|
|
8076
|
+
readonly flags: "--script-file <path>";
|
|
8077
|
+
readonly description: "Replace the precondition script with this file";
|
|
8078
|
+
readonly hidden: false;
|
|
8079
|
+
}, {
|
|
8080
|
+
readonly flags: "--clear-script";
|
|
8081
|
+
readonly description: "Remove the job's precondition script";
|
|
8082
|
+
readonly hidden: false;
|
|
8083
|
+
}, {
|
|
8084
|
+
readonly flags: "--json";
|
|
8085
|
+
readonly description: "Emit raw JSON";
|
|
8086
|
+
readonly hidden: false;
|
|
8087
|
+
}];
|
|
8088
|
+
readonly subcommands: readonly [];
|
|
7990
8089
|
}, {
|
|
7991
8090
|
readonly name: "cancel";
|
|
7992
|
-
readonly description: "
|
|
7993
|
-
readonly aliases: readonly [];
|
|
8091
|
+
readonly description: "Delete a job for good (active or paused) and its schedule";
|
|
8092
|
+
readonly aliases: readonly ["delete"];
|
|
7994
8093
|
readonly hidden: false;
|
|
7995
8094
|
readonly helpOption: true;
|
|
7996
8095
|
readonly helpCommand: false;
|
|
@@ -11924,6 +12023,42 @@ export declare const COMMAND_CATALOG: readonly [{
|
|
|
11924
12023
|
readonly hidden: false;
|
|
11925
12024
|
}];
|
|
11926
12025
|
readonly subcommands: readonly [];
|
|
12026
|
+
}, {
|
|
12027
|
+
readonly name: "available";
|
|
12028
|
+
readonly description: "What AI can run now, as one token-free hq-available-ai.v1 document (read-only; a stale view starts one background read)";
|
|
12029
|
+
readonly aliases: readonly [];
|
|
12030
|
+
readonly hidden: false;
|
|
12031
|
+
readonly helpOption: true;
|
|
12032
|
+
readonly helpCommand: false;
|
|
12033
|
+
readonly usage: "[options]";
|
|
12034
|
+
readonly helpText: readonly [];
|
|
12035
|
+
readonly arguments: readonly [];
|
|
12036
|
+
readonly options: readonly [{
|
|
12037
|
+
readonly flags: "--json";
|
|
12038
|
+
readonly description: "Print the document as JSON";
|
|
12039
|
+
readonly hidden: false;
|
|
12040
|
+
}, {
|
|
12041
|
+
readonly flags: "--fresh";
|
|
12042
|
+
readonly description: "Start a read and wait for it, at most 3 seconds";
|
|
12043
|
+
readonly hidden: false;
|
|
12044
|
+
}, {
|
|
12045
|
+
readonly flags: "--include-other";
|
|
12046
|
+
readonly description: "Also list capacity-only accounts, each with its organization";
|
|
12047
|
+
readonly hidden: false;
|
|
12048
|
+
}];
|
|
12049
|
+
readonly subcommands: readonly [];
|
|
12050
|
+
}, {
|
|
12051
|
+
readonly name: "collect-once";
|
|
12052
|
+
readonly description: "One capacity read, started in the background by hq capacity available";
|
|
12053
|
+
readonly aliases: readonly [];
|
|
12054
|
+
readonly hidden: true;
|
|
12055
|
+
readonly helpOption: true;
|
|
12056
|
+
readonly helpCommand: false;
|
|
12057
|
+
readonly usage: "[options]";
|
|
12058
|
+
readonly helpText: readonly [];
|
|
12059
|
+
readonly arguments: readonly [];
|
|
12060
|
+
readonly options: readonly [];
|
|
12061
|
+
readonly subcommands: readonly [];
|
|
11927
12062
|
}, {
|
|
11928
12063
|
readonly name: "route";
|
|
11929
12064
|
readonly description: "Pick the account with the most capacity for a new lane (read-only; port of boss-route)";
|
|
@@ -12016,7 +12151,7 @@ export declare const COMMAND_CATALOG: readonly [{
|
|
|
12016
12151
|
readonly subcommands: readonly [];
|
|
12017
12152
|
}, {
|
|
12018
12153
|
readonly name: "refusal";
|
|
12019
|
-
readonly description: "Record a classified provider
|
|
12154
|
+
readonly description: "Record a classified provider refusal as a hold on one named account";
|
|
12020
12155
|
readonly aliases: readonly [];
|
|
12021
12156
|
readonly hidden: false;
|
|
12022
12157
|
readonly helpOption: true;
|
|
@@ -12024,7 +12159,7 @@ export declare const COMMAND_CATALOG: readonly [{
|
|
|
12024
12159
|
readonly usage: "[options]";
|
|
12025
12160
|
readonly helpText: readonly [{
|
|
12026
12161
|
readonly position: "after";
|
|
12027
|
-
readonly text: "\
|
|
12162
|
+
readonly text: "\nA model-CLI bot's turn, hq bot probe and the lane failure path record their\nown refusals. Run this by hand only for a provider failure that was classified\nas a rate-limit refusal (policy\nindigo-provider-failures-classified-not-masked-as-timeout), never for a\ntimeout that was not:\n\n hq capacity ingest refusal --provider <claude|codex|grok> --account <hash> [--limit-id <id>] [--resets-at <iso|epoch>]\n\n--account is required unless --limit-id names a limit that exactly one account\nhas. A limit id that several accounts share, or neither flag, is a usage error:\nnothing is recorded against a guess, even when the provider has one account.\nThe refusal is a hold beside the account's readings, and never replaces one.\n--limit-id names the limit it is about; without it the refusal claims no\nwindow. The hold ends at --resets-at, at that limit's own reset, or after a\nshort default, or sooner when a newer reading of that limit is below 100%.\n";
|
|
12028
12163
|
}];
|
|
12029
12164
|
readonly arguments: readonly [];
|
|
12030
12165
|
readonly options: readonly [{
|
|
@@ -12033,15 +12168,15 @@ export declare const COMMAND_CATALOG: readonly [{
|
|
|
12033
12168
|
readonly hidden: false;
|
|
12034
12169
|
}, {
|
|
12035
12170
|
readonly flags: "--limit-id <id>";
|
|
12036
|
-
readonly description: "
|
|
12171
|
+
readonly description: "The account's limit this refusal is about; without it the refusal claims no window";
|
|
12037
12172
|
readonly hidden: false;
|
|
12038
12173
|
}, {
|
|
12039
12174
|
readonly flags: "--resets-at <when>";
|
|
12040
|
-
readonly description: "UTC timestamp or epoch when
|
|
12175
|
+
readonly description: "UTC timestamp or epoch when the hold ends";
|
|
12041
12176
|
readonly hidden: false;
|
|
12042
12177
|
}, {
|
|
12043
12178
|
readonly flags: "--account <hash>";
|
|
12044
|
-
readonly description: "Hashed account id
|
|
12179
|
+
readonly description: "Hashed account id of the account that refused. Required unless --limit-id names a limit exactly one account has";
|
|
12045
12180
|
readonly hidden: false;
|
|
12046
12181
|
}, {
|
|
12047
12182
|
readonly flags: "--json";
|
|
@@ -12498,6 +12633,10 @@ export declare const COMMAND_CATALOG: readonly [{
|
|
|
12498
12633
|
readonly flags: "--force";
|
|
12499
12634
|
readonly description: "Take the story even when someone else holds it";
|
|
12500
12635
|
readonly hidden: false;
|
|
12636
|
+
}, {
|
|
12637
|
+
readonly flags: "--no-ensure";
|
|
12638
|
+
readonly description: "Do not register the project from its local prd.json when the story is not on the Board";
|
|
12639
|
+
readonly hidden: false;
|
|
12501
12640
|
}, {
|
|
12502
12641
|
readonly flags: "--company <slug|uid>";
|
|
12503
12642
|
readonly description: "Company slug or cloud uid";
|
|
@@ -19575,7 +19714,7 @@ export declare const COMMAND_CATALOG: readonly [{
|
|
|
19575
19714
|
readonly hidden: false;
|
|
19576
19715
|
}, {
|
|
19577
19716
|
readonly flags: "--provider <provider>";
|
|
19578
|
-
readonly description: "HQ Fleet provider: claude|codex|grok (default claude)";
|
|
19717
|
+
readonly description: "HQ Fleet provider: claude|codex|grok, or chatgpt for codex (default claude)";
|
|
19579
19718
|
readonly hidden: false;
|
|
19580
19719
|
}, {
|
|
19581
19720
|
readonly flags: "--hq-fleet-runtime";
|
|
@@ -19903,7 +20042,7 @@ export declare const COMMAND_CATALOG: readonly [{
|
|
|
19903
20042
|
readonly subcommands: readonly [];
|
|
19904
20043
|
}, {
|
|
19905
20044
|
readonly name: "auth-status";
|
|
19906
|
-
readonly description: "Say whether a
|
|
20045
|
+
readonly description: "Say whether a bot created now with this brain starts without a sign-in step, reusing a login already on this computer";
|
|
19907
20046
|
readonly aliases: readonly [];
|
|
19908
20047
|
readonly hidden: false;
|
|
19909
20048
|
readonly helpOption: true;
|
|
@@ -19913,11 +20052,35 @@ export declare const COMMAND_CATALOG: readonly [{
|
|
|
19913
20052
|
readonly arguments: readonly [];
|
|
19914
20053
|
readonly options: readonly [{
|
|
19915
20054
|
readonly flags: "--provider <provider>";
|
|
19916
|
-
readonly description: "
|
|
20055
|
+
readonly description: "Brain: claude, codex (or chatgpt) or grok";
|
|
19917
20056
|
readonly hidden: false;
|
|
19918
20057
|
}, {
|
|
19919
20058
|
readonly flags: "--json";
|
|
19920
|
-
readonly description: "Print machine-readable JSON: { signedIn }";
|
|
20059
|
+
readonly description: "Print machine-readable JSON: { provider, signedIn, source }";
|
|
20060
|
+
readonly hidden: false;
|
|
20061
|
+
}];
|
|
20062
|
+
readonly subcommands: readonly [];
|
|
20063
|
+
}, {
|
|
20064
|
+
readonly name: "sign-in";
|
|
20065
|
+
readonly description: "Sign this computer in to ChatGPT or Grok through its own CLI, so new bots with that brain start without a sign-in step";
|
|
20066
|
+
readonly aliases: readonly [];
|
|
20067
|
+
readonly hidden: false;
|
|
20068
|
+
readonly helpOption: true;
|
|
20069
|
+
readonly helpCommand: false;
|
|
20070
|
+
readonly usage: "[options]";
|
|
20071
|
+
readonly helpText: readonly [];
|
|
20072
|
+
readonly arguments: readonly [];
|
|
20073
|
+
readonly options: readonly [{
|
|
20074
|
+
readonly flags: "--provider <provider>";
|
|
20075
|
+
readonly description: "Brain: codex (or chatgpt) or grok";
|
|
20076
|
+
readonly hidden: false;
|
|
20077
|
+
}, {
|
|
20078
|
+
readonly flags: "--json";
|
|
20079
|
+
readonly description: "Print one JSON line per event (device code, messages) and a final result";
|
|
20080
|
+
readonly hidden: false;
|
|
20081
|
+
}, {
|
|
20082
|
+
readonly flags: "--no-browser";
|
|
20083
|
+
readonly description: "Use the CLI's device-code login instead of its browser login";
|
|
19921
20084
|
readonly hidden: false;
|
|
19922
20085
|
}];
|
|
19923
20086
|
readonly subcommands: readonly [];
|
|
@@ -20053,6 +20216,10 @@ export declare const COMMAND_CATALOG: readonly [{
|
|
|
20053
20216
|
readonly flags: "--runtime <runtime>";
|
|
20054
20217
|
readonly description: "claude|codex|grok";
|
|
20055
20218
|
readonly hidden: false;
|
|
20219
|
+
}, {
|
|
20220
|
+
readonly flags: "--sign-in";
|
|
20221
|
+
readonly description: "Sign the bot in with a login of its own first (claude, codex): a browser sign-in for this bot only; your own sign-in is not touched";
|
|
20222
|
+
readonly hidden: false;
|
|
20056
20223
|
}, {
|
|
20057
20224
|
readonly flags: "--json";
|
|
20058
20225
|
readonly description: "Print machine-readable JSON";
|