@indigoai-us/hq-cli 5.345.254 → 5.345.257
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 +68 -0
- package/README.md +29 -0
- package/assets/scaffold/core/scripts/handoff-finalize.sh +981 -46
- package/assets/scaffold/core/scripts/hq-delegate-bundle.sh +51 -2
- package/assets/scaffold/core/scripts/hq-delegate-send.sh +49 -6
- package/assets/scaffold/core/scripts/hq-delegate-transfer.sh +20 -0
- package/assets/scaffold/core/scripts/hq-delegate-verify.sh +56 -10
- package/assets/scaffold/core/scripts/lib/fingerprint.sh +423 -0
- package/assets/scaffold/core/scripts/rebuild-companies-index.sh +10 -1
- package/assets/scaffold/core/scripts/rebuild-company-knowledge-index.sh +10 -1
- package/assets/scaffold/core/scripts/rebuild-projects-index.sh +10 -1
- package/assets/scaffold/core/scripts/register-project.sh +110 -19
- package/contracts/host-canary-release.json +7 -7
- package/dist/command-catalog.generated.d.ts +1 -1
- package/dist/command-catalog.generated.js +1 -1
- package/dist/commands/core-delegate-w1b.js +107 -16
- package/dist/commands/core-delegate.d.ts +7 -0
- package/dist/commands/core-delegate.js +66 -2
- package/dist/commands/core-handoff-fast.d.ts +1 -1
- package/dist/commands/core-handoff-fast.js +2 -2
- package/dist/commands/core-handoff.d.ts +3 -1
- package/dist/commands/core-handoff.js +1407 -177
- package/dist/commands/core-register-project-native.js +1 -1
- package/dist/commands/core.js +2 -2
- package/dist/commands/files.d.ts +2 -0
- package/dist/commands/files.js +34 -5
- package/dist/commands/team-sync.js +1 -1
- package/dist/lib/company-skill-wrapper.js +72 -4
- package/dist/lib/daemon/requests.d.ts +14 -1
- package/dist/lib/daemon/requests.js +17 -3
- package/dist/lib/daemon/run.js +44 -2
- package/dist/lib/daemon/supervisor.d.ts +11 -0
- package/dist/lib/daemon/supervisor.js +33 -0
- package/dist/lib/daemon/sync-perf-telemetry.d.ts +85 -0
- package/dist/lib/daemon/sync-perf-telemetry.js +206 -0
- package/dist/lib/daemon/windows-relaunch.d.ts +55 -0
- package/dist/lib/daemon/windows-relaunch.js +72 -0
- package/dist/lib/hook-engine/coverage.d.ts +10 -1
- package/dist/lib/hook-engine/coverage.js +41 -5
- package/dist/lib/index-render/companies.js +3 -2
- package/dist/lib/index-render/index.js +2 -1
- package/dist/lib/index-render/session-scope.d.ts +2 -3
- package/dist/lib/index-render/session-scope.js +2 -5
- package/dist/lib/index-render/shared.d.ts +7 -0
- package/dist/lib/index-render/shared.js +9 -0
- package/dist/lib/work-context/windows-acl.d.ts +14 -0
- package/dist/lib/work-context/windows-acl.js +26 -0
- package/dist/utils/cli-telemetry.d.ts +26 -7
- package/dist/utils/cli-telemetry.js +70 -13
- package/dist/utils/git.js +1 -1
- package/dist/utils/resident-package-preload.js +4 -0
- package/dist/utils/sync-perf-telemetry-flag.d.ts +26 -0
- package/dist/utils/sync-perf-telemetry-flag.js +32 -0
- package/dist/utils/telemetry-opt-out.d.ts +13 -0
- package/dist/utils/telemetry-opt-out.js +19 -0
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,74 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [5.345.257] — 2026-11-25
|
|
6
|
+
- hq-hook: on agents-v2 bots running the hq-agents-v2 #347 adapter, company PostToolUse hooks now run in the native hook engine when `HQ_MASTER_CHILD_TIMEOUT` is short enough that every hook can run to its limit inside the call budget and the adapter's 18 s start window (for example two hooks at 2 s in the 5 s budget). Before, the engine always handed these calls back to the adapter. Each hook is killed at the same limit master-hook uses. With the stock 120 s limit, more hooks than fit, or a lowered adapter budget, the call still goes to the adapter, and SessionStart is unchanged.
|
|
7
|
+
- Fixed: preserve `RUSTUP_HOME` and `CARGO_HOME` in `credential_grep_sources::real_stdout` when redirecting `HOME` to the fixture directory so `round12_formatter` (`cargo fmt && git diff`) finds the runner's toolchain on AWS Linux runners.
|
|
8
|
+
- Internal: the hq-windows (Beaker) CI jobs rewrite files whose line endings on disk no longer match `.gitattributes` after checkout, so a reused working copy cannot fail the hq-hook sha pin tests (CI-only).
|
|
9
|
+
- Internal: the hq-hook PR test shards and the Grok comparison overflow from the Mac runners to the AWS arm64 pool (hq-cli-main-priority) when the hq-hook-mac queue is deep (4 or more jobs of other runs queued, or `HQ_MAC_QUEUE_MAX`). A hot Mac, a busy Mac without a load reading, or an unreadable queue keep the run on the Macs, as does any route result other than success with that exact answer. Repository or organization variable `HQ_HOOK_AWS_OVERFLOW=off` turns the overflow off. The route job moved from hq-mac-light (MBP5 only) to hq-mac-ci, which both Macs serve, with a 2-minute timeout, so the shards that now wait for it still start while one Mac is down. The reference-tool and locale steps skip apt and sudo when the runner already has a GNU basename and the six test locales. Job and check names are unchanged.
|
|
10
|
+
- Internal: the hq-hook test shards and the Grok comparison take the AWS pool only when repository variable `HQ_HOOK_AWS_SHARDS` is `on` (GitHub compares it case-insensitively). It is off by default (unset or any other value keeps hq-hook-mac) because the AWS image lacks the `x86_64-linux-gnu-gcc` cross compiler that the shards' x86_64 clippy step needs to build ring; set it to `on` once the image has it. The plan and gate jobs keep their AWS placement.
|
|
11
|
+
- Internal: the Windows hq-hook test step on release tags and manual runs passes `--no-fail-fast`, so one failing test binary no longer keeps the test binaries listed after it from running; the job is still red when any test fails (CI-only).
|
|
12
|
+
- Internal: the main Windows baseline of the hq-hook tests runs only on the Beaker runners (custom runner label `beaker`), not on the AWS Windows runners (CI-only).
|
|
13
|
+
- fix(hq-hook): extend credential-search guard for Glob and Grep to Claude Code
|
|
14
|
+
- Make the hook budget tests verify stdin timeout and late delivery without depending on elapsed wall-clock assertions.
|
|
15
|
+
- The Rust hook engine's credential-file read check for hq-core 16.0.52 no longer refuses three kinds of ordinary git calls that the shell version allows: `git grep <pattern> -- <folder>` in a repository that tracks a credential-named fixture file (and `git grep <pattern>` in a linked worktree of one); `git diff`, `git log -p`, `git show` or `git grep` in a command that sets `HOME`, `XDG_CONFIG_HOME` or `GIT_CONFIG_GLOBAL`; and `git diff <rev> -- <path>`, `git show <rev> -- <path>` or `git grep <pattern> <rev> -- <path>` when git itself fails in the hook's environment. macOS and Linux only; Windows answers are unchanged.
|
|
16
|
+
- hq-hook: deduplicate repeated command words before `link_word` symlink checks in the credential guard and avoid re-running `unmodelled_git_shape` across identical-command Windows folder views.
|
|
17
|
+
- Fixed: `hq files delete`: when the company delete limit needs another admin's approval, the message now says how many objects a smaller delete can still remove with a typed confirmation, instead of saying splitting never helps. A refused confirmation now says how to try again, the local expiry check allows for a client clock up to a minute fast, and the `--confirmation` flag, which no HQ command can supply a value for yet, is hidden from help.
|
|
18
|
+
- The native `block-hq-glob` check now finds `cat`, `git`, `grep` and `jq` on the same `PATH` the shell hook runs with, and reads the tool name the dispatcher gives the shell hook, so both give the same answer when the host starts hooks without the Git tool folders on `PATH`. A Glob call the hook cannot read because `cat` or `jq` is missing is refused with a message that names the missing tool.
|
|
19
|
+
- Clear thread-local `errno` inside `locale_lock::locked` before `newlocale` and default zero `errno` on null `newlocale` to `ENOENT` in `vault_write::locale_error`, and accept Bash 5.2's `environment: line 5: HOME: unbound variable` prefix in `fleet_stop_parity`.
|
|
20
|
+
- hq-hook: skip compiling credential-redaction regexes in `redact_within` when `tool_response` has no precheck-matching strings, no strings over the line limit, and stays within the scan window, and compile patterns inside the deadline-bounded worker thread when redaction is needed.
|
|
21
|
+
- Align `host_run` integration test expectations on Windows with enabled Windows store files (`hook-engine.jsonl`, `run-seen.v1`) and documented Windows fail-closed refusals for POSIX rooted file paths and outside-root `SessionStart` fixtures.
|
|
22
|
+
- Escape Windows backslashes in hand-built JSON test inputs and assert the documented Windows fail-closed contract in `numbered_policy_sibling` tests.
|
|
23
|
+
- Use the Windows hook runner `PATH` in `path_rules` integration tests and match the Windows `conduct-link-inherit` unset-PATH refusal.
|
|
24
|
+
- `hq daemon` forwards the sync engine's sampled performance events to HQ's usage ingest (`POST /v1/usage`, rows marked `eventType: "perf"`), only when you have opted in to telemetry (agents always on); HQ then applies the same consent rules as other usage telemetry, including the company's setting for a company vault's rows. Each `{"type":"perf"}` line from hq-syncd is checked against a closed schema (operation name, duration, sample rate, size buckets, small counts and booleans) and dropped if it holds anything else. Valid events are queued and sent in batches off the supervisor's line loop, so a slow or failed send never delays sync. On by default; the hq-flags key `cli.sync-perf-telemetry-v1` is its kill switch. `HQ_TELEMETRY=0` also turns it off, and while either is off the daemon collects nothing.
|
|
25
|
+
- The policy gate's grep, date and kill starts in the Rust hook engine now have a hard time limit (the caller's own deadline under the new core and in strict mode; 2 seconds where bash takes the call back, after which bash runs the hook itself), and a test now fails when shipped hook code starts a program outside the listed call sites.
|
|
26
|
+
- Changed: the host canary record shipped with the CLI is refreshed for this release build.
|
|
27
|
+
- Changed: the host canary record shipped with the CLI is refreshed for this release build.
|
|
28
|
+
- Record the intentional safety-side native-vs-shell session-bind difference on world-writable session store parents in `side-effect-differences.yaml` and add cross-platform regression tests for `SessionStart` and `UserPromptSubmit` (#3960).
|
|
29
|
+
- hq-hook: model `session-machine-checks`, `session-start-checks`, and `setup-reminder` natively on Windows instead of denying every Windows `SessionStart`. Unmodelled inputs (non-empty `active-runs.json` on Windows, paths outside the HQ root, fleet runtimes, spaces/globs in the setup-reminder root) remain denied; Unix behavior is unchanged.
|
|
30
|
+
- Accept hq-core v16.0.52 `core/scripts/hook-lib.sh` (`436493e3`) for `image-context-guard` and update `session_key_lines` for its 9-line shift.
|
|
31
|
+
- hq-hook: the native PreToolUse on Codex accepts the Codex adapter that hq-core v16.0.51 and v16.0.52 ship (`hq-codex-hook-adapter.sh` a905f518) beside the v16.0.50 one. Its PreToolUse checks are unchanged; it only adds the step aside once the native engine has answered the same event. A Codex root on v16.0.51 or v16.0.52 still keeps PreToolUse on the shell adapter until its other changed files are pinned.
|
|
32
|
+
- Pin `hq-core v16.0.51`'s `.claude/hooks/hook-timeout-probe.sh` (`ed0daf8c`) alongside `v16.0.50` (`ae5c4021`) in `pre_tool_use_master` and `coverage.ts` so `hq reindex` registers Claude Code and Codex `PreToolUse` on the native engine for `v16.0.51` roots.
|
|
33
|
+
- The new hook core now accepts the `master-hook.sh` and `hook-adapter-core.sh` that hq-core v16.0.51 and v16.0.52 ship (the latter on Claude Code only), and writes the same session-id alias record `master-hook.sh` writes. `hq reindex` moves Claude Code PreToolUse to the new core on those roots once their other PreToolUse files are supported.
|
|
34
|
+
- Brought four bundled core scripts level with the native commands they pair with, so the published core command check passes again. The bundled `register-project.sh` is the current `hq-core` copy (`--board`, with `--brainstorm` kept as the older spelling), and the bundled `rebuild-index` scripts for `companies`, `company-knowledge` and `projects` print the same `--help` text as `hq core rebuild-index`, including the company scope paragraph. New tests compare each pair before a release.
|
|
35
|
+
- Changed: `simple-git` 3.36.0 -> 4.1.0. The CLI now uses the v4 named `simpleGit` export.
|
|
36
|
+
- fix(skills): a company skill wrapper folder that was deleted and recreated by hand on macOS is no longer mistaken for an HQ-generated wrapper, so `hq skill` no longer replaces it (#3594)
|
|
37
|
+
- Tests: the `command_rules` hq-hook tests match what the hook chain does on Windows (test-only).
|
|
38
|
+
- hq-hook tests: copy `tr.exe` alongside `gawk.exe`/`cat.exe` in `stripped_path_matches_bash` on Windows (fixing `tr: command not found` on stderr) and use `fs::canonicalize` in `fs_folds_to` on Windows so distinct fixture files with identical bytes are not treated as the same file.
|
|
39
|
+
- Record the Windows `missing/../notes` env-file case as a ledger row, add file-name tests without a working folder, and trim comments in the env-file guard and its tests.
|
|
40
|
+
- Updated bundled delegate helpers (`bundle`, `send`, `transfer`, `verify`) from `hq-core` and aligned native `hq core delegate` behaviour with them: absolute `repo.path` schema lookups, folder and read-back verification, board/cache Work Mesh project resolution, unique bundle IDs, knowledge placeholder warnings, checksum pruning and 200-file cap, and `hq dm` stderr passthrough and refusal recovery.
|
|
41
|
+
- Brought native `hq core handoff finalize` level with the current `handoff-finalize.sh`: it accepts `--company`, `--learnings-json-file` and `--deficiencies-json`, and matches the helper on company and path handling, the company mirror, commit scope, the media and size filter, index-lock waits, `handoff.json` updates, `system_info` and the background publish.
|
|
42
|
+
- The native vault-write check accepts the `core/scripts/hook-lib.sh` that hq-core 16.0.52 ships, so `hq reindex` no longer keeps PreToolUse on the shell dispatcher for that file on its account.
|
|
43
|
+
- hq-hook: the fleet-local PostToolUse registry pass tests the policy injector row against the full prefilter text again, as `hook-adapter-core.sh` does; only the master-hook dispatch uses the bounded `policy_tool_text` (follow-up to #3951). agents-v2 answers are unchanged. The dispatch no longer reads the injector script to pick that text unless the call is an `mcp__*` tool.
|
|
44
|
+
- hq-hook: model master-hook.sh PostToolUse `policy_tool_text` (including v16.0.52 `mcp__*` tool names and string inputs) in `dispatch::event` and `dispatch::prefilter::row_text`.
|
|
45
|
+
- Model the Git Bash `pwd -P` (`HQ_ROOT` and `CLAUDE_PROJECT_DIR`) spelling in `session_setup::adapter_vars`, `prompt_up1::adapter_var`, and `prompt_hooks::Ctx::adapter_var` for Codex and Grok on Windows, with `env_fs_path` MSYS-to-drive conversion across audited `SessionStart` and `UserPromptSubmit` ports.
|
|
46
|
+
- Internal: On Windows, Codex and Grok PostToolUse dispatcher bookkeeping is now handled by the native hook engine, as on Claude Code.
|
|
47
|
+
- Fixed: `migrate-policy-triggers` now runs natively on Windows at SessionStart using the same atomic `migrate.lock.d` directory lock (with `owner` marker and 24-hour stale-lock reclaim) that `migrate-policy-triggers.sh` and `hq core migrate-policy-triggers` use when `flock` is absent, instead of skipping with a no-`flock(2)` diagnostic.
|
|
48
|
+
- Fixed: on Windows, Claude Code's bare resume message ("Continue from where you left off.") gets HQ's resume guidance and its log line again. It had been turned away there.
|
|
49
|
+
- Changed: on Windows, session titles refuse a few more HQ folder spellings that Windows reads differently from how they are written.
|
|
50
|
+
- Fixed: on Windows, HQ's session titles in Claude Code work with an HQ folder on any drive letter (`C:\HQ`, `D:\HQ`, or a short-name spelling of either). They had been turned away there.
|
|
51
|
+
- Answer the hq-core v16.0.52 credential guard (`block-credential-file-read.sh` `e8f19ecc`, `Revision::Core16_0_52`) natively on Windows with no script-hash hand-back to bash (US-013 c1).
|
|
52
|
+
- Fixed: a welcome-brief unit test now builds its folders from the resolved temp path, so it passes on macOS, where the temp folder sits under a linked /var.
|
|
53
|
+
- Fixed: on Windows under Git Bash, the bundled `hq-delegate-bundle.sh` no longer warns about knowledge files that exist or stops with an internal error when a project references two or more knowledge folders, and the bundled `hq-delegate-verify.sh` no longer reports referenced knowledge files as missing. Native `hq core delegate` was not affected.
|
|
54
|
+
- On Windows, the env-file check names the file path as it was given in its message, as the hook script does.
|
|
55
|
+
- On Windows, the HQ daemon now starts again after it restarts onto an updated CLI. Before, it stayed stopped until the next sign-in.
|
|
56
|
+
- A daemon restart queued with `hq daemon restart --daemon` while the daemon was stopped no longer makes the next `hq daemon start` stop straight away.
|
|
57
|
+
- On Windows, a package install in an HQ whose hook registry cannot be read is refused for Claude Code and Codex, as on macOS and Linux.
|
|
58
|
+
- The merged write guard parity tests find yq on a Windows parity PATH.
|
|
59
|
+
- On Windows, the repo worktree check reads a project folder or file path given with an 8.3 short name as the same folder as its long name.
|
|
60
|
+
- On Windows, the repo worktree check resolves a company knowledge folder named with a closing slash, as the hook script does.
|
|
61
|
+
- Add an end-to-end Claude Stop check (`registration::claude_stop_registered_binary_blocks_then_allows_end_of_turn_e2e` and `scripts/ci/windows-stop-e2e-check.mjs`) for Beaker verification of Windows Stop allow/block behavior.
|
|
62
|
+
- On Windows, `block-company-repo-creation`, `block-policy-writes-bash` and `block-core-writes-bash` read Windows path spellings (drive letters, backslashes, MSYS `/c/` paths, `~` from `HOME`, any letter case, `.exe` program names) instead of refusing every Bash call. Windows forms they do not read still fail closed. macOS and Linux behavior is unchanged.
|
|
63
|
+
- Fixed: on Windows, when the signed-in user is the machine's built-in Administrator account, hq commands no longer print `work-context: could not evaluate Windows ACL ... (cannot resolve principal "LA" to a SID)` on stderr.
|
|
64
|
+
- Fixed a signal-timing flake in `src/commands/work-env.test.ts` by gating stub teardown completion on a marker file instead of a fixed sleep.
|
|
65
|
+
|
|
66
|
+
## [5.345.255] — 2026-11-25
|
|
67
|
+
- Fixed: a changed HQ hook file no longer makes HQ refuse the end of every turn. HQ now leaves out only the Stop hook that depends on the changed file, runs the others, and tells you which hook it left out and how to restore it.
|
|
68
|
+
- Changed: the host canary record shipped with the CLI is refreshed for this release build.
|
|
69
|
+
- Internal: the `block_hq_glob` dispatcher-call test gives the port the same tool PATH as the other parity cases, so it no longer depends on the shell that started the test binary on Windows (test-only).
|
|
70
|
+
- Answer the `hq-core` `v16.0.52` `block-credential-file-read.sh` natively in the Rust hook engine on macOS and Linux: `curl` and `wget` URLs in a multi-command line are read as URLs, as in the script. On Windows this hook still runs as the shell script on a `v16.0.52` root.
|
|
71
|
+
- hq-hook: on `hq-core` `v16.0.52` the native hook engine answers policy injection and the policy enforcement gate itself. Before, it handed those calls back to bash because the `v16.0.52` `policy-enforcement-gate.sh` (ecdbab7c) was not pinned. The gate is now `gate::Revision::Core16_0_52` beside `hook-lib.sh` 436493e3, its PostToolUse read of `tool_input.cmd` (Codex `exec_command`) is reproduced, and the registration coverage list carries the pair. Windows keeps both hooks on bash as before. As on `v16.0.51`, the native gate still treats `broadcast` inside an identifier as naming work-broadcast. On every pinned gate, a PreToolUse payload whose `tool_input` is not an object now gets the same jq message on stderr as from the bash gate.
|
|
72
|
+
|
|
5
73
|
## [5.345.254] — 2026-11-25
|
|
6
74
|
- Internal: the hosted-agent and local-bot hook registration plan (`hq core hook-registration-plan`) no longer marks an event native when `hq-hook` would hand every call for it back to the shell adapter, for example a PostToolUse call on a root with company PostToolUse hooks that master-hook gives 120 s each. Such an event stays on the plain adapter command, so it no longer pays for the engine's check before the adapter runs. `hq-hook` gains `hand-back --json run <registration>`, which reports that hand-back without running any hook, and advertises it as `hand_back_query` in `capabilities --json`. An engine without it is planned as before.
|
|
7
75
|
- Port `auto-checkpoint-trigger` `PostToolUse` natively for Codex and Grok so edit and bash tool calls evaluate checkpoint triggers instead of returning an unported-host refusal.
|
package/README.md
CHANGED
|
@@ -28,6 +28,14 @@ registry. The flag defaults on when its registry row cannot be read, and an
|
|
|
28
28
|
explicit false turns it off. See [HQ Anywhere runtime](docs/anywhere-runtime.md)
|
|
29
29
|
for install and link commands.
|
|
30
30
|
|
|
31
|
+
The native hook engine, `hq-hook`, is a Rust binary shipped in per-platform
|
|
32
|
+
packages next to the CLI. Its entry points, flags and off switches are in
|
|
33
|
+
[crates/hq-hook/README.md](crates/hq-hook/README.md). See also
|
|
34
|
+
[hook registration](docs/hook-registration.md),
|
|
35
|
+
[hook packages](docs/hook-engine-packaging.md) and the
|
|
36
|
+
[host canary](docs/host-canary.md). `hq doctor --only hook-engine` reports the
|
|
37
|
+
pinned engine.
|
|
38
|
+
|
|
31
39
|
## Live meeting transcripts
|
|
32
40
|
|
|
33
41
|
Use `hq meetings live --company <slug>` to list active meetings, meetings that
|
|
@@ -114,6 +122,27 @@ unchanged. On interactive TTY runs, the first enabled feature event has a
|
|
|
114
122
|
separate one-time notice naming the feature kind, outcome, and company UID
|
|
115
123
|
when available.
|
|
116
124
|
|
|
125
|
+
The `hq daemon` forwards the sync engine's sampled performance events to
|
|
126
|
+
`POST /v1/usage` as rows marked `eventType: "perf"`. The engine (hq-syncd)
|
|
127
|
+
samples one operation in ten by default and writes each sample on its protocol
|
|
128
|
+
output; the daemon checks every line against a closed schema and drops any line
|
|
129
|
+
with another field, another string or an out-of-range number. Each row carries
|
|
130
|
+
`op` (`plan`, `snapshot_ingest`, `index_open` or `first_sync`), `durationMs`,
|
|
131
|
+
`sampleRate`, row and action counts as buckets (`files`, `actions`, `placed`:
|
|
132
|
+
`0-1k`, `1k-10k`, `10k-100k` or `100k+`), the counts `pages` and
|
|
133
|
+
`migrationBatches`, and the booleans `resumed` and `created`; the request
|
|
134
|
+
carries the CLI version. A company vault's samples also carry that company's
|
|
135
|
+
UID; a personal vault's carry none. Rows never carry file or folder names,
|
|
136
|
+
paths, vault names, file contents or secrets. Like the CLI's other telemetry,
|
|
137
|
+
nothing is sent unless you have opted in to telemetry; agents always collect.
|
|
138
|
+
hq-pro then applies the same rules as other usage telemetry, so a company's
|
|
139
|
+
rows are also kept only while that company allows collection. This is on by
|
|
140
|
+
default; the hq-flags key `cli.sync-perf-telemetry-v1` is its kill switch, and
|
|
141
|
+
an absent or unreadable flag row keeps it on. While the kill switch is off or
|
|
142
|
+
`HQ_TELEMETRY=0` is set, the daemon queues and sends nothing. Rows are queued
|
|
143
|
+
and sent in batches of up to 50, at most one request at a time, and a failed send is
|
|
144
|
+
dropped. `HQ_TELEMETRY=0` stops them in the daemon and in the engine.
|
|
145
|
+
|
|
117
146
|
The first signed-in interactive run (stdout is a TTY, and the command is not
|
|
118
147
|
`--json`) prints this line once on stderr and records that it was shown under
|
|
119
148
|
`~/.hq/cli-telemetry-disclosed`:
|