@indigoai-us/hq-cli 5.345.253 → 5.345.255
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 +39 -0
- package/README.md +8 -0
- package/contracts/host-canary-release.json +11 -5
- package/dist/command-catalog.generated.d.ts +61 -0
- package/dist/command-catalog.generated.js +75 -0
- package/dist/commands/ci-intake.d.ts +17 -0
- package/dist/commands/ci-intake.js +43 -1
- package/dist/commands/ci-priorities.d.ts +56 -0
- package/dist/commands/ci-priorities.js +144 -0
- package/dist/commands/ci.js +2 -1
- package/dist/commands/cloud.d.ts +11 -0
- package/dist/commands/cloud.js +76 -0
- package/dist/lib/daemon/verified-jq.d.ts +6 -0
- package/dist/lib/daemon/verified-jq.js +17 -5
- package/dist/lib/hook-engine/coverage.js +1 -0
- package/dist/lib/hook-engine/fleet-registration.d.ts +4 -0
- package/dist/lib/hook-engine/fleet-registration.js +25 -3
- package/dist/lib/smart-ci/priorities.d.ts +331 -0
- package/dist/lib/smart-ci/priorities.js +964 -0
- package/dist/lib/smart-ci/priority-refresh.d.ts +192 -0
- package/dist/lib/smart-ci/priority-refresh.js +366 -0
- package/dist/lib/smart-ci/priority-snapshots.d.ts +88 -0
- package/dist/lib/smart-ci/priority-snapshots.js +233 -0
- package/dist/lib/smart-ci/sources.d.ts +294 -0
- package/dist/lib/smart-ci/sources.js +659 -0
- package/dist/lib/smart-ci/text.d.ts +24 -0
- package/dist/lib/smart-ci/text.js +83 -0
- package/dist/lib/smart-ci/work-in-flight.d.ts +68 -0
- package/dist/lib/smart-ci/work-in-flight.js +154 -0
- package/dist/lib/sync/cli-manifest-reconcile.d.ts +20 -0
- package/dist/lib/sync/cli-manifest-reconcile.js +170 -0
- package/dist/utils/host-registration.d.ts +1 -0
- package/dist/utils/host-registration.js +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,45 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [5.345.255] — 2026-11-25
|
|
6
|
+
- 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.
|
|
7
|
+
- Changed: the host canary record shipped with the CLI is refreshed for this release build.
|
|
8
|
+
- 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).
|
|
9
|
+
- 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.
|
|
10
|
+
- 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.
|
|
11
|
+
|
|
12
|
+
## [5.345.254] — 2026-11-25
|
|
13
|
+
- 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.
|
|
14
|
+
- 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.
|
|
15
|
+
- Add `test/helpers/**` and `test/setup/**` (Vitest `setupFiles` and `globalSetup`) to `DISJOINT_GLOBAL_PATHS` in `scripts/ci/batch-train.py`.
|
|
16
|
+
- Register PR-only required checks (`PR_ONLY_CHECKS`) for `hq-pro` and `hq-desktop-app-src` in `scripts/ci/batch-train.py` so multi-repo batch trains pass without failing closed on checks that run only on `pull_request` events.
|
|
17
|
+
- CI: the Windows baseline check also accepts a failure that main's newest complete baseline at or before the tested commit already had, so a baseline that lands after a batch train was built no longer turns failures main has since fixed into "new" ones.
|
|
18
|
+
- Scoped the 90-minute timeout in `.github/workflows/hq-hook.yml` to self-hosted Beaker legs only (`${{ matrix.beaker && 90 || 60 }}`), keeping hosted legs at 60 minutes.
|
|
19
|
+
- CI: sync `crates/hq-hook/ci/test-tiers.json` with the four-part `us012_root_git_codex_grok` and `p4_master_hook_parity` package-install test splits from #3860 and cache repeated source reads in `test/ci/hq-hook-pr-test-list.test.ts` so the slow-test verifier stays well under the 5 s timeout.
|
|
20
|
+
- CI: the Windows hook tests on a batch train now run in 6 parallel shards on the team's Windows runners instead of one after another on one runner, aiming for under 10 minutes instead of about 45. Each test binary also has a 10 minute limit, so a hung test fails fast and the log names it.
|
|
21
|
+
- `hq sync pull` and `hq sync pull --all` now restore each successfully pulled
|
|
22
|
+
company in `companies/manifest.yaml`, matching the menubar sync runner. Joining
|
|
23
|
+
a cloud company no longer leaves the session unable to bind.
|
|
24
|
+
- Allowed first-operand run-id substitutions for `gh run watch`, `view`, `rerun`, `cancel`, and `delete` in the native credential guard while keeping inner reads and other subcommands refused.
|
|
25
|
+
- Increase the daemon jq probe timeout to 10s and cache only passing probes by path and file stat stamp so transient load spikes do not wedge subsequent checks.
|
|
26
|
+
- Aligned Windows `image_context_guard` integration tests with the current Windows store-off refusal contract (`WINDOWS_STORE_OFF`) until native Windows image-context-guard parity lands.
|
|
27
|
+
- Declare the scalar `test` reference for `journal-due-other-hosts` and remove its stale ledger baseline exception after `#3868`.
|
|
28
|
+
- Native PreToolUse missing-library detection now scopes `||` fallbacks to the `source`/`.` command segment before `;`, `&&`, or `#` so a later command or comment on the same line does not treat a required library load as optional.
|
|
29
|
+
- Match Git-for-Windows MSYS2 GNU grep option usage output in native `detect-secrets` diagnostics on Windows.
|
|
30
|
+
- Changed: the host canary record shipped with the CLI is refreshed for this release build.
|
|
31
|
+
- Port `hq-autocommit` PostToolUse daemon request notes for Codex and Grok tool edits (`apply_patch`, `search_replace`, `create_file`).
|
|
32
|
+
- Internal: split the `us012_root_git_codex_grok` and `p4_master_hook_parity` package-install parity tests into four parallel parts each to reduce the single-test wall-time floor in `hq-hook` CI.
|
|
33
|
+
- Fixed: `hq-hook` reads Windows path spellings in shell commands (drive letters, backslashes, `$env:USERPROFILE`, `~`) the same way it reads them for file tools, so the protected-file check gives one answer for a file however its path is written. On Windows a command passes that check only when each path in it is one literal path; a command with a percent sign, a network or device path, a drive or folder root, a working folder with a line break in its name, a folder change, a loop, a wildcard or a variable in a path is refused with a note to run the read as one plain command with a literal path, or from a script file.
|
|
34
|
+
- Port `journal-due` `PostToolUse` natively for Codex so `apply_patch` and `Bash` tool calls evaluate journal milestones instead of returning an unported-host refusal.
|
|
35
|
+
- Add `hq ci priorities`: it ranks a company's work from standups, Work Mesh, open sessions and the ontology, matches open pull requests to it, and lists work in flight with no pull request yet. The map is stored in the Smart CI ledger that `hq ci intake` writes; `hq ci intake --priorities <company>` keeps it refreshed while the intake runs.
|
|
36
|
+
- `hq ci intake` now waits up to 5 seconds for a brief holder of the Smart CI ledger (such as a standalone `hq ci priorities` write) to let go, instead of exiting when it starts at the same moment.
|
|
37
|
+
- Pin scope-guard regression coverage and the replay ledger entry for escaped remote-only `ssh` commands and their local-expansion and cross-company siblings.
|
|
38
|
+
- Pass POSIX `cwd` paths matching `env.home` and `env.pwd` in `credential_native` tests on Windows.
|
|
39
|
+
- Align remaining Windows test assertions in `credential_native` with Windows 8.3 short-name handling and native merge-stage resolution.
|
|
40
|
+
- Strip Windows verbatim path prefixes when resolving relative plans-dir hook roots and align remaining `plans_dir` test expectations with Windows path normalization.
|
|
41
|
+
- Use a multi-letter `/work/.claude/plans/a` fixture path in `plans_dir` tests so Windows MSYS drive rewriting does not rewrite `/x/` to `X:/`.
|
|
42
|
+
- Accept the `core/scripts/hook-lib.sh` that `hq-core` `v16.0.52` ships in the native Rust hook engine for `block-company-git-metadata`, `block-core-writes` and `block-plans-dir-during-deep-plan`, so those hooks answer natively on a `v16.0.52` root, and list `v16.0.52` in the engine's supported releases. On Windows `block-core-writes` still runs as the shell hook.
|
|
43
|
+
|
|
5
44
|
## [5.345.253] — 2026-11-24
|
|
6
45
|
- Resolve `agents-v2` adapter parent and grandparent directories via `Path::parent()` before canonicalizing so Windows verbatim (`\\?\`) paths locate the HQ root instead of failing on `..` normalization.
|
|
7
46
|
- Claim `master-hook:PreToolUse` natively on hosted agents-v2 bots, modelled on master-hook.sh 774bca73 (hq-core v16.0.50) as the hq-agents-v2 adapter e5cec6c1 runs it, with differential tests against both. A `pre_tool_call` goes back to the adapter when the registered fallback is the earlier released adapter a8e9a7e, the root has `.claude/hooks/mandatory-scope-authorizer.sh`, the registry lists any PreToolUse row or is one this reader rejects, a PreToolUse folder hook outside `companies/` exists, or the host is not Unix. A fallback naming any other unknown adapter revision is refused natively when none of these hands the call back. The merge gates (hold records, daemon sections, owner approval, review) no longer answer on agents-v2, matching the released adapter, which never refused a merge there. On Claude Code and Codex, the native hqd policy check with `HOME` unset or empty now looks for the socket at `/.hq/daemon/hqd.sock`, as master-hook does.
|
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
|
|
@@ -1,19 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": "hq.host-canary-release.v1",
|
|
3
|
-
"cliVersion": "5.345.
|
|
3
|
+
"cliVersion": "5.345.255",
|
|
4
4
|
"hosts": {
|
|
5
5
|
"claude": [
|
|
6
6
|
{
|
|
7
7
|
"passed": true,
|
|
8
|
-
"at": "2026-11-
|
|
9
|
-
"engineVersion": "0.3.1+hq.5.345.
|
|
8
|
+
"at": "2026-11-25T05:56:57.077Z",
|
|
9
|
+
"engineVersion": "0.3.1+hq.5.345.255.src.48198305f7520221553f6b695d2a6d7a75698df33d090e813df64eb32d063c05",
|
|
10
10
|
"gateSha256": "a2879dfe692233f5953bac86672947bbd82f3c5247292f3efcb80f16c3d2c6b1"
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
13
|
"passed": true,
|
|
14
|
-
"at": "2026-11-
|
|
15
|
-
"engineVersion": "0.3.1+hq.5.345.
|
|
14
|
+
"at": "2026-11-25T05:57:44.690Z",
|
|
15
|
+
"engineVersion": "0.3.1+hq.5.345.255.src.48198305f7520221553f6b695d2a6d7a75698df33d090e813df64eb32d063c05",
|
|
16
16
|
"gateSha256": "ca58a94859eae0a345c11c8d9c59303eb76350dc1cf223391037d21979c28718"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"passed": true,
|
|
20
|
+
"at": "2026-11-25T05:58:38.986Z",
|
|
21
|
+
"engineVersion": "0.3.1+hq.5.345.255.src.48198305f7520221553f6b695d2a6d7a75698df33d090e813df64eb32d063c05",
|
|
22
|
+
"gateSha256": "ecdbab7c2e0a1d94eb9c98f15e760390f215bc7115a217ded24b4275322722d2"
|
|
17
23
|
}
|
|
18
24
|
]
|
|
19
25
|
}
|
|
@@ -14389,6 +14389,10 @@ export declare const COMMAND_CATALOG: readonly [{
|
|
|
14389
14389
|
readonly flags: "--store-dir <path>";
|
|
14390
14390
|
readonly description: "ledger directory (default: HQ_SMART_CI_STORE_DIR, else ~/.hq/delivery/ledger)";
|
|
14391
14391
|
readonly hidden: false;
|
|
14392
|
+
}, {
|
|
14393
|
+
readonly flags: "--priorities <company>";
|
|
14394
|
+
readonly description: "also refresh and store this company's priority map (hq ci priorities) while the intake owns the ledger";
|
|
14395
|
+
readonly hidden: false;
|
|
14392
14396
|
}, {
|
|
14393
14397
|
readonly flags: "--once";
|
|
14394
14398
|
readonly description: "run one cycle and stop";
|
|
@@ -14491,6 +14495,63 @@ export declare const COMMAND_CATALOG: readonly [{
|
|
|
14491
14495
|
readonly hidden: false;
|
|
14492
14496
|
}];
|
|
14493
14497
|
readonly subcommands: readonly [];
|
|
14498
|
+
}, {
|
|
14499
|
+
readonly name: "priorities";
|
|
14500
|
+
readonly description: "Print the company's priority map: what matters most, which open pull requests it covers, and work in flight with no pull request yet";
|
|
14501
|
+
readonly aliases: readonly [];
|
|
14502
|
+
readonly hidden: false;
|
|
14503
|
+
readonly helpOption: true;
|
|
14504
|
+
readonly helpCommand: false;
|
|
14505
|
+
readonly usage: "[options]";
|
|
14506
|
+
readonly helpText: readonly [];
|
|
14507
|
+
readonly arguments: readonly [];
|
|
14508
|
+
readonly options: readonly [{
|
|
14509
|
+
readonly flags: "--company <slug>";
|
|
14510
|
+
readonly description: "company whose work to read (required; there is no default)";
|
|
14511
|
+
readonly hidden: false;
|
|
14512
|
+
}, {
|
|
14513
|
+
readonly flags: "--repo <owner/name>";
|
|
14514
|
+
readonly description: "repo whose open pull requests are matched; repeat for more (default: the repos of the stored map)";
|
|
14515
|
+
readonly hidden: false;
|
|
14516
|
+
readonly defaultValue: readonly [];
|
|
14517
|
+
}, {
|
|
14518
|
+
readonly flags: "--refresh";
|
|
14519
|
+
readonly description: "refresh the map from its sources before printing";
|
|
14520
|
+
readonly hidden: false;
|
|
14521
|
+
}, {
|
|
14522
|
+
readonly flags: "--no-refresh";
|
|
14523
|
+
readonly description: "print the stored map without reading any source";
|
|
14524
|
+
readonly hidden: false;
|
|
14525
|
+
}, {
|
|
14526
|
+
readonly flags: "--days <n>";
|
|
14527
|
+
readonly description: "days of standups and activity to read (default 7)";
|
|
14528
|
+
readonly hidden: false;
|
|
14529
|
+
}, {
|
|
14530
|
+
readonly flags: "--from <iso>";
|
|
14531
|
+
readonly description: "start of an explicit window (with --to)";
|
|
14532
|
+
readonly hidden: false;
|
|
14533
|
+
}, {
|
|
14534
|
+
readonly flags: "--to <iso>";
|
|
14535
|
+
readonly description: "end of an explicit window (with --from)";
|
|
14536
|
+
readonly hidden: false;
|
|
14537
|
+
}, {
|
|
14538
|
+
readonly flags: "--top <n>";
|
|
14539
|
+
readonly description: "how many priorities count as top (default 5)";
|
|
14540
|
+
readonly hidden: false;
|
|
14541
|
+
}, {
|
|
14542
|
+
readonly flags: "--hq-root <path>";
|
|
14543
|
+
readonly description: "HQ installation to read";
|
|
14544
|
+
readonly hidden: false;
|
|
14545
|
+
}, {
|
|
14546
|
+
readonly flags: "--store-dir <path>";
|
|
14547
|
+
readonly description: "ledger directory (default: HQ_SMART_CI_STORE_DIR, else ~/.hq/delivery/ledger)";
|
|
14548
|
+
readonly hidden: false;
|
|
14549
|
+
}, {
|
|
14550
|
+
readonly flags: "--json";
|
|
14551
|
+
readonly description: "print the map as JSON";
|
|
14552
|
+
readonly hidden: false;
|
|
14553
|
+
}];
|
|
14554
|
+
readonly subcommands: readonly [];
|
|
14494
14555
|
}];
|
|
14495
14556
|
}, {
|
|
14496
14557
|
readonly name: "env";
|
|
@@ -17522,6 +17522,11 @@ export const COMMAND_CATALOG = [
|
|
|
17522
17522
|
"description": "ledger directory (default: HQ_SMART_CI_STORE_DIR, else ~/.hq/delivery/ledger)",
|
|
17523
17523
|
"hidden": false
|
|
17524
17524
|
},
|
|
17525
|
+
{
|
|
17526
|
+
"flags": "--priorities <company>",
|
|
17527
|
+
"description": "also refresh and store this company's priority map (hq ci priorities) while the intake owns the ledger",
|
|
17528
|
+
"hidden": false
|
|
17529
|
+
},
|
|
17525
17530
|
{
|
|
17526
17531
|
"flags": "--once",
|
|
17527
17532
|
"description": "run one cycle and stop",
|
|
@@ -17648,6 +17653,76 @@ export const COMMAND_CATALOG = [
|
|
|
17648
17653
|
}
|
|
17649
17654
|
],
|
|
17650
17655
|
"subcommands": []
|
|
17656
|
+
},
|
|
17657
|
+
{
|
|
17658
|
+
"name": "priorities",
|
|
17659
|
+
"description": "Print the company's priority map: what matters most, which open pull requests it covers, and work in flight with no pull request yet",
|
|
17660
|
+
"aliases": [],
|
|
17661
|
+
"hidden": false,
|
|
17662
|
+
"helpOption": true,
|
|
17663
|
+
"helpCommand": false,
|
|
17664
|
+
"usage": "[options]",
|
|
17665
|
+
"helpText": [],
|
|
17666
|
+
"arguments": [],
|
|
17667
|
+
"options": [
|
|
17668
|
+
{
|
|
17669
|
+
"flags": "--company <slug>",
|
|
17670
|
+
"description": "company whose work to read (required; there is no default)",
|
|
17671
|
+
"hidden": false
|
|
17672
|
+
},
|
|
17673
|
+
{
|
|
17674
|
+
"flags": "--repo <owner/name>",
|
|
17675
|
+
"description": "repo whose open pull requests are matched; repeat for more (default: the repos of the stored map)",
|
|
17676
|
+
"hidden": false,
|
|
17677
|
+
"defaultValue": []
|
|
17678
|
+
},
|
|
17679
|
+
{
|
|
17680
|
+
"flags": "--refresh",
|
|
17681
|
+
"description": "refresh the map from its sources before printing",
|
|
17682
|
+
"hidden": false
|
|
17683
|
+
},
|
|
17684
|
+
{
|
|
17685
|
+
"flags": "--no-refresh",
|
|
17686
|
+
"description": "print the stored map without reading any source",
|
|
17687
|
+
"hidden": false
|
|
17688
|
+
},
|
|
17689
|
+
{
|
|
17690
|
+
"flags": "--days <n>",
|
|
17691
|
+
"description": "days of standups and activity to read (default 7)",
|
|
17692
|
+
"hidden": false
|
|
17693
|
+
},
|
|
17694
|
+
{
|
|
17695
|
+
"flags": "--from <iso>",
|
|
17696
|
+
"description": "start of an explicit window (with --to)",
|
|
17697
|
+
"hidden": false
|
|
17698
|
+
},
|
|
17699
|
+
{
|
|
17700
|
+
"flags": "--to <iso>",
|
|
17701
|
+
"description": "end of an explicit window (with --from)",
|
|
17702
|
+
"hidden": false
|
|
17703
|
+
},
|
|
17704
|
+
{
|
|
17705
|
+
"flags": "--top <n>",
|
|
17706
|
+
"description": "how many priorities count as top (default 5)",
|
|
17707
|
+
"hidden": false
|
|
17708
|
+
},
|
|
17709
|
+
{
|
|
17710
|
+
"flags": "--hq-root <path>",
|
|
17711
|
+
"description": "HQ installation to read",
|
|
17712
|
+
"hidden": false
|
|
17713
|
+
},
|
|
17714
|
+
{
|
|
17715
|
+
"flags": "--store-dir <path>",
|
|
17716
|
+
"description": "ledger directory (default: HQ_SMART_CI_STORE_DIR, else ~/.hq/delivery/ledger)",
|
|
17717
|
+
"hidden": false
|
|
17718
|
+
},
|
|
17719
|
+
{
|
|
17720
|
+
"flags": "--json",
|
|
17721
|
+
"description": "print the map as JSON",
|
|
17722
|
+
"hidden": false
|
|
17723
|
+
}
|
|
17724
|
+
],
|
|
17725
|
+
"subcommands": []
|
|
17651
17726
|
}
|
|
17652
17727
|
]
|
|
17653
17728
|
},
|
|
@@ -11,5 +11,22 @@ export type TokenCommand = (file: string, args: string[], env: NodeJS.ProcessEnv
|
|
|
11
11
|
* refuses to start. The token is held in memory and never printed or logged.
|
|
12
12
|
*/
|
|
13
13
|
export declare function resolveGitHubToken(env?: NodeJS.ProcessEnv, run?: TokenCommand): Promise<string>;
|
|
14
|
+
/** How long a starting intake waits for a brief holder of the ledger to let go. */
|
|
15
|
+
export declare const LEDGER_OPEN_WAIT_MS = 5000;
|
|
16
|
+
export interface PatientOpenOptions {
|
|
17
|
+
waitMs?: number;
|
|
18
|
+
stepMs?: number;
|
|
19
|
+
now?: () => number;
|
|
20
|
+
wait?: (ms: number) => Promise<void>;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Open the ledger, retrying while another live process on this host owns it.
|
|
24
|
+
* A standalone `hq ci priorities` write, or its writability probe, holds the
|
|
25
|
+
* ledger for milliseconds to a few seconds; an intake starting in that window
|
|
26
|
+
* waits for it rather than exiting. After `waitMs` the owner's refusal is
|
|
27
|
+
* thrown as it is. Any other refusal (an owner on another host, an unreadable
|
|
28
|
+
* lock, a delivery store) is thrown at once.
|
|
29
|
+
*/
|
|
30
|
+
export declare function openLedgerPatiently<T>(open: () => T, opts?: PatientOpenOptions): Promise<T>;
|
|
14
31
|
export declare function registerCiIntakeCommand(ci: Command): void;
|
|
15
32
|
//# sourceMappingURL=ci-intake.d.ts.map
|
|
@@ -14,6 +14,9 @@ import { DeliveryStoreError } from "../lib/delivery/store.js";
|
|
|
14
14
|
import { GitHubReadClient, GitHubReadError } from "../lib/smart-ci/github.js";
|
|
15
15
|
import { DEFAULT_HOURLY_BUDGET, DEFAULT_RATE_FLOOR, IntakeInputError, Poller, findSensitive, readFixture, recordWindow, replayFixture, scrubObservation, serializeFixture } from "../lib/smart-ci/intake.js";
|
|
16
16
|
import { SmartCiLedger, SmartCiLedgerError, defaultLedgerDir } from "../lib/smart-ci/ledger.js";
|
|
17
|
+
import { PriorityRefreshHost } from "../lib/smart-ci/priority-refresh.js";
|
|
18
|
+
import { assertCompanySlug } from "../lib/smart-ci/sources.js";
|
|
19
|
+
import { resolveLanesHqRoot } from "../lib/lanes/hq-root.js";
|
|
17
20
|
export const DEFAULT_REPOS = ["indigoai-us/hq-cli", "indigoai-us/hq-pro"];
|
|
18
21
|
export const DEFAULT_RUNNER_ORG = "indigoai-us";
|
|
19
22
|
class UsageError extends Error {
|
|
@@ -70,6 +73,34 @@ function sleep(ms, signal) {
|
|
|
70
73
|
signal.addEventListener("abort", done);
|
|
71
74
|
});
|
|
72
75
|
}
|
|
76
|
+
/** How long a starting intake waits for a brief holder of the ledger to let go. */
|
|
77
|
+
export const LEDGER_OPEN_WAIT_MS = 5_000;
|
|
78
|
+
const LEDGER_OPEN_STEP_MS = 100;
|
|
79
|
+
/**
|
|
80
|
+
* Open the ledger, retrying while another live process on this host owns it.
|
|
81
|
+
* A standalone `hq ci priorities` write, or its writability probe, holds the
|
|
82
|
+
* ledger for milliseconds to a few seconds; an intake starting in that window
|
|
83
|
+
* waits for it rather than exiting. After `waitMs` the owner's refusal is
|
|
84
|
+
* thrown as it is. Any other refusal (an owner on another host, an unreadable
|
|
85
|
+
* lock, a delivery store) is thrown at once.
|
|
86
|
+
*/
|
|
87
|
+
export async function openLedgerPatiently(open, opts = {}) {
|
|
88
|
+
const now = opts.now ?? Date.now;
|
|
89
|
+
const wait = opts.wait ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms)));
|
|
90
|
+
const stepMs = opts.stepMs ?? LEDGER_OPEN_STEP_MS;
|
|
91
|
+
const deadline = now() + (opts.waitMs ?? LEDGER_OPEN_WAIT_MS);
|
|
92
|
+
for (;;) {
|
|
93
|
+
try {
|
|
94
|
+
return open();
|
|
95
|
+
}
|
|
96
|
+
catch (err) {
|
|
97
|
+
const left = deadline - now();
|
|
98
|
+
if (!(err instanceof DeliveryStoreError && err.code === "CONTROLLER_OWNED") || left <= 0)
|
|
99
|
+
throw err;
|
|
100
|
+
await wait(Math.min(stepMs, left));
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
73
104
|
async function runIntake(opts) {
|
|
74
105
|
const out = (line) => process.stdout.write(`${line}\n`);
|
|
75
106
|
const storeDir = opts.storeDir ?? defaultLedgerDir();
|
|
@@ -90,7 +121,7 @@ async function runIntake(opts) {
|
|
|
90
121
|
out(opts.json ? JSON.stringify(summary) : `Recorded ${observations.length} observations to ${opts.recordFixture} with ${counts.total} GitHub read requests.`);
|
|
91
122
|
return;
|
|
92
123
|
}
|
|
93
|
-
const ledger = SmartCiLedger.open({ dir: storeDir, controllerId: `smart-ci-intake@${hostname()}` });
|
|
124
|
+
const ledger = await openLedgerPatiently(() => SmartCiLedger.open({ dir: storeDir, controllerId: `smart-ci-intake@${hostname()}` }));
|
|
94
125
|
try {
|
|
95
126
|
if (opts.replayFixture !== undefined) {
|
|
96
127
|
const fixture = readFixture(opts.replayFixture);
|
|
@@ -122,6 +153,13 @@ async function runIntake(opts) {
|
|
|
122
153
|
checkRuns: opts.checkRuns,
|
|
123
154
|
log: (l) => process.stderr.write(`${l}\n`),
|
|
124
155
|
});
|
|
156
|
+
// The ledger has one owner. With --priorities, the priority map is refreshed here, beside the poll, and
|
|
157
|
+
// stored through this process's ledger; `hq ci priorities` only reads it while the intake runs.
|
|
158
|
+
let priorities = null;
|
|
159
|
+
if (opts.priorities !== undefined) {
|
|
160
|
+
assertCompanySlug(opts.priorities);
|
|
161
|
+
priorities = new PriorityRefreshHost(ledger, { company: opts.priorities, hqRoot: resolveLanesHqRoot(), repos, log: (l) => process.stderr.write(`${l}\n`) });
|
|
162
|
+
}
|
|
125
163
|
const stop = new AbortController();
|
|
126
164
|
const onSignal = () => stop.abort();
|
|
127
165
|
process.once("SIGINT", onSignal);
|
|
@@ -156,6 +194,7 @@ async function runIntake(opts) {
|
|
|
156
194
|
try {
|
|
157
195
|
for (;;) {
|
|
158
196
|
const cycleStart = Date.now();
|
|
197
|
+
priorities?.tick();
|
|
159
198
|
tally(await poller.cycle(), false);
|
|
160
199
|
if (opts.once || stop.signal.aborted)
|
|
161
200
|
break;
|
|
@@ -177,6 +216,8 @@ async function runIntake(opts) {
|
|
|
177
216
|
finally {
|
|
178
217
|
process.removeListener("SIGINT", onSignal);
|
|
179
218
|
process.removeListener("SIGTERM", onSignal);
|
|
219
|
+
// A running refresh writes through this ledger: let it finish before the ledger closes.
|
|
220
|
+
await priorities?.drain();
|
|
180
221
|
}
|
|
181
222
|
const counts = client.counts();
|
|
182
223
|
const summary = {
|
|
@@ -211,6 +252,7 @@ export function registerCiIntakeCommand(ci) {
|
|
|
211
252
|
.option("--no-runners", "do not sample runner pools")
|
|
212
253
|
.option("--no-check-runs", "do not read check runs")
|
|
213
254
|
.option("--store-dir <path>", "ledger directory (default: HQ_SMART_CI_STORE_DIR, else ~/.hq/delivery/ledger)")
|
|
255
|
+
.option("--priorities <company>", "also refresh and store this company's priority map (hq ci priorities) while the intake owns the ledger")
|
|
214
256
|
.option("--once", "run one cycle and stop")
|
|
215
257
|
.option("--duration-minutes <n>", "stop after this many minutes (default: run until stopped)")
|
|
216
258
|
.option("--interval-seconds <n>", "seconds between cycles (default: 60)")
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `hq ci priorities` (smart-ci US-002): print the company's priority map in
|
|
3
|
+
* plain language, with the source of every line.
|
|
4
|
+
*
|
|
5
|
+
* The command reads; it writes only the "priorities" scope of the Smart CI
|
|
6
|
+
* ledger (the one `hq ci intake` writes, default ~/.hq/delivery/ledger). It
|
|
7
|
+
* changes nothing on GitHub, Work Mesh, the ontology or the vault. The company
|
|
8
|
+
* is always given by the caller: there is no default company.
|
|
9
|
+
*
|
|
10
|
+
* By default the map is refreshed first when a refresh is due (the schedule
|
|
11
|
+
* interval has passed, or a new standup transcript has arrived). When a
|
|
12
|
+
* source is down the previous map is printed and the failure is reported on
|
|
13
|
+
* stderr and recorded in the ledger.
|
|
14
|
+
*
|
|
15
|
+
* The ledger has one owner process at a time. While another process owns it
|
|
16
|
+
* (a running `hq ci intake`), this command prints the stored map without
|
|
17
|
+
* refreshing, since it could not store the result; that process refreshes the
|
|
18
|
+
* map when started with `--priorities <company>`. With `--refresh` the map is
|
|
19
|
+
* built and printed anyway, and stderr says it was not stored.
|
|
20
|
+
*/
|
|
21
|
+
import { type Command } from "commander";
|
|
22
|
+
import { type PriorityMap } from "../lib/smart-ci/priorities.js";
|
|
23
|
+
import { type RefreshOptions, type RefreshResult } from "../lib/smart-ci/priority-refresh.js";
|
|
24
|
+
export interface CiPrioritiesOptions {
|
|
25
|
+
company: string;
|
|
26
|
+
/** Repos whose open pull requests are matched, as owner/name. */
|
|
27
|
+
repo?: string[];
|
|
28
|
+
/** true: always refresh. false: never refresh. undefined: refresh when due. */
|
|
29
|
+
refresh?: boolean;
|
|
30
|
+
json?: boolean;
|
|
31
|
+
hqRoot?: string;
|
|
32
|
+
/** Smart CI ledger directory. Default: HQ_SMART_CI_STORE_DIR, else ~/.hq/delivery/ledger. */
|
|
33
|
+
storeDir?: string;
|
|
34
|
+
days?: number;
|
|
35
|
+
/** Explicit window, ISO timestamps. */
|
|
36
|
+
from?: string;
|
|
37
|
+
to?: string;
|
|
38
|
+
top?: number;
|
|
39
|
+
}
|
|
40
|
+
export interface CiPrioritiesDeps {
|
|
41
|
+
out?: (text: string) => void;
|
|
42
|
+
err?: (text: string) => void;
|
|
43
|
+
clock?: () => number;
|
|
44
|
+
/** Extra refresh options (readers, runner) for tests. */
|
|
45
|
+
refreshOptions?: Partial<RefreshOptions>;
|
|
46
|
+
}
|
|
47
|
+
export interface CiPrioritiesResult {
|
|
48
|
+
exitCode: number;
|
|
49
|
+
map: PriorityMap | null;
|
|
50
|
+
refresh: RefreshResult | null;
|
|
51
|
+
}
|
|
52
|
+
/** Run `hq ci priorities`. Directly testable: every effect goes through `opts` and `deps`. */
|
|
53
|
+
export declare function runCiPriorities(opts: CiPrioritiesOptions, deps?: CiPrioritiesDeps): Promise<CiPrioritiesResult>;
|
|
54
|
+
/** Add `priorities` under the `hq ci` parent command. */
|
|
55
|
+
export declare function registerCiPriorities(ci: Command): Command;
|
|
56
|
+
//# sourceMappingURL=ci-priorities.d.ts.map
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `hq ci priorities` (smart-ci US-002): print the company's priority map in
|
|
3
|
+
* plain language, with the source of every line.
|
|
4
|
+
*
|
|
5
|
+
* The command reads; it writes only the "priorities" scope of the Smart CI
|
|
6
|
+
* ledger (the one `hq ci intake` writes, default ~/.hq/delivery/ledger). It
|
|
7
|
+
* changes nothing on GitHub, Work Mesh, the ontology or the vault. The company
|
|
8
|
+
* is always given by the caller: there is no default company.
|
|
9
|
+
*
|
|
10
|
+
* By default the map is refreshed first when a refresh is due (the schedule
|
|
11
|
+
* interval has passed, or a new standup transcript has arrived). When a
|
|
12
|
+
* source is down the previous map is printed and the failure is reported on
|
|
13
|
+
* stderr and recorded in the ledger.
|
|
14
|
+
*
|
|
15
|
+
* The ledger has one owner process at a time. While another process owns it
|
|
16
|
+
* (a running `hq ci intake`), this command prints the stored map without
|
|
17
|
+
* refreshing, since it could not store the result; that process refreshes the
|
|
18
|
+
* map when started with `--priorities <company>`. With `--refresh` the map is
|
|
19
|
+
* built and printed anyway, and stderr says it was not stored.
|
|
20
|
+
*/
|
|
21
|
+
import { InvalidArgumentError } from "commander";
|
|
22
|
+
import { resolveLanesHqRoot } from "../lib/lanes/hq-root.js";
|
|
23
|
+
import { renderPriorityMap } from "../lib/smart-ci/priorities.js";
|
|
24
|
+
import { defaultLedgerDir } from "../lib/smart-ci/ledger.js";
|
|
25
|
+
import { ledgerWritable } from "../lib/smart-ci/priority-snapshots.js";
|
|
26
|
+
import { currentPriorityMap, refreshDue, refreshPriorityMap } from "../lib/smart-ci/priority-refresh.js";
|
|
27
|
+
import { assertCompanySlug } from "../lib/smart-ci/sources.js";
|
|
28
|
+
function validWindow(from, to) {
|
|
29
|
+
if (from === undefined && to === undefined)
|
|
30
|
+
return undefined;
|
|
31
|
+
const fromMs = Date.parse(from ?? "");
|
|
32
|
+
const toMs = Date.parse(to ?? "");
|
|
33
|
+
if (Number.isNaN(fromMs) || Number.isNaN(toMs) || fromMs >= toMs)
|
|
34
|
+
throw new Error("--from and --to must both be ISO timestamps, with --from before --to");
|
|
35
|
+
return { from: new Date(fromMs).toISOString(), to: new Date(toMs).toISOString() };
|
|
36
|
+
}
|
|
37
|
+
function wholeNumber(name, min) {
|
|
38
|
+
return (value) => {
|
|
39
|
+
if (!/^\d+$/.test(value.trim()) || Number(value) < min)
|
|
40
|
+
throw new InvalidArgumentError(`${name} must be a whole number of at least ${min}.`);
|
|
41
|
+
return Number(value);
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function checkCount(name, value, min) {
|
|
45
|
+
if (value !== undefined && (!Number.isInteger(value) || value < min))
|
|
46
|
+
throw new Error(`${name} must be a whole number of at least ${min}; got ${String(value)}`);
|
|
47
|
+
}
|
|
48
|
+
/** Run `hq ci priorities`. Directly testable: every effect goes through `opts` and `deps`. */
|
|
49
|
+
export async function runCiPriorities(opts, deps = {}) {
|
|
50
|
+
const out = deps.out ?? ((text) => process.stdout.write(text));
|
|
51
|
+
const err = deps.err ?? ((text) => process.stderr.write(text));
|
|
52
|
+
assertCompanySlug(opts.company);
|
|
53
|
+
checkCount("--days", opts.days, 1);
|
|
54
|
+
checkCount("--top", opts.top, 1);
|
|
55
|
+
const window = validWindow(opts.from, opts.to);
|
|
56
|
+
const hqRoot = opts.hqRoot ?? resolveLanesHqRoot();
|
|
57
|
+
const ledgerDir = opts.storeDir ?? defaultLedgerDir();
|
|
58
|
+
const build = opts.top === undefined ? undefined : { topCount: opts.top };
|
|
59
|
+
let refresh = null;
|
|
60
|
+
let wanted = opts.refresh === true;
|
|
61
|
+
if (opts.refresh === undefined) {
|
|
62
|
+
const due = refreshDue({ company: opts.company, hqRoot, ledgerDir, clock: deps.clock });
|
|
63
|
+
wanted = due.due;
|
|
64
|
+
if (wanted) {
|
|
65
|
+
// A refresh this process could not store would read every source again on each run: leave it to the owner.
|
|
66
|
+
const writable = ledgerWritable({ target: { dir: ledgerDir }, company: opts.company, clock: deps.clock });
|
|
67
|
+
if (!writable.writable) {
|
|
68
|
+
wanted = false;
|
|
69
|
+
err(`A refresh is due (${due.reason}) but was not run, because it could not be stored: ${writable.reason}\n`);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
if (wanted) {
|
|
74
|
+
// With no --repo, the repos of the stored map are read again, so a refresh does not drop its pull requests.
|
|
75
|
+
let repos = opts.repo ?? [];
|
|
76
|
+
if (repos.length === 0) {
|
|
77
|
+
try {
|
|
78
|
+
repos = [...new Set((currentPriorityMap({ ledgerDir, company: opts.company })?.map.pullRequests ?? []).map((pr) => pr.repo))].sort();
|
|
79
|
+
}
|
|
80
|
+
catch {
|
|
81
|
+
repos = [];
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
refresh = await refreshPriorityMap({
|
|
85
|
+
company: opts.company,
|
|
86
|
+
hqRoot,
|
|
87
|
+
ledgerDir,
|
|
88
|
+
repos,
|
|
89
|
+
clock: deps.clock,
|
|
90
|
+
windowDays: opts.days,
|
|
91
|
+
window,
|
|
92
|
+
build,
|
|
93
|
+
log: (line) => err(`${line}\n`),
|
|
94
|
+
...deps.refreshOptions,
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
const map = refresh ? refresh.map : (currentPriorityMap({ ledgerDir, company: opts.company })?.map ?? null);
|
|
98
|
+
if (!map) {
|
|
99
|
+
err(`No priority map is stored for ${opts.company} yet. Run: hq ci priorities --company ${opts.company} --refresh\n`);
|
|
100
|
+
return { exitCode: 1, map: null, refresh };
|
|
101
|
+
}
|
|
102
|
+
if (opts.json) {
|
|
103
|
+
out(`${JSON.stringify(map, null, 2)}\n`);
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
out(renderPriorityMap(map));
|
|
107
|
+
if (refresh?.kept) {
|
|
108
|
+
out(`\nThis is the map built ${map.builtAt}. A refresh just now kept it because these sources were down: ${refresh.failures.map((f) => `${f.source} (${f.message})`).join("; ")}.\n`);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
return { exitCode: 0, map, refresh };
|
|
112
|
+
}
|
|
113
|
+
function collect(value, previous) {
|
|
114
|
+
return [...previous, value];
|
|
115
|
+
}
|
|
116
|
+
/** Add `priorities` under the `hq ci` parent command. */
|
|
117
|
+
export function registerCiPriorities(ci) {
|
|
118
|
+
return ci
|
|
119
|
+
.command("priorities")
|
|
120
|
+
.description("Print the company's priority map: what matters most, which open pull requests it covers, and work in flight with no pull request yet")
|
|
121
|
+
.requiredOption("--company <slug>", "company whose work to read (required; there is no default)")
|
|
122
|
+
.option("--repo <owner/name>", "repo whose open pull requests are matched; repeat for more (default: the repos of the stored map)", collect, [])
|
|
123
|
+
.option("--refresh", "refresh the map from its sources before printing")
|
|
124
|
+
.option("--no-refresh", "print the stored map without reading any source")
|
|
125
|
+
.option("--days <n>", "days of standups and activity to read (default 7)", wholeNumber("--days", 1))
|
|
126
|
+
.option("--from <iso>", "start of an explicit window (with --to)")
|
|
127
|
+
.option("--to <iso>", "end of an explicit window (with --from)")
|
|
128
|
+
.option("--top <n>", "how many priorities count as top (default 5)", wholeNumber("--top", 1))
|
|
129
|
+
.option("--hq-root <path>", "HQ installation to read")
|
|
130
|
+
.option("--store-dir <path>", "ledger directory (default: HQ_SMART_CI_STORE_DIR, else ~/.hq/delivery/ledger)")
|
|
131
|
+
.option("--json", "print the map as JSON")
|
|
132
|
+
.action(async (options) => {
|
|
133
|
+
try {
|
|
134
|
+
const result = await runCiPriorities(options);
|
|
135
|
+
if (result.exitCode !== 0)
|
|
136
|
+
process.exitCode = result.exitCode;
|
|
137
|
+
}
|
|
138
|
+
catch (error) {
|
|
139
|
+
process.stderr.write(`hq ci priorities: ${error instanceof Error ? error.message : String(error)}\n`);
|
|
140
|
+
process.exitCode = 2;
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
//# sourceMappingURL=ci-priorities.js.map
|
package/dist/commands/ci.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { registerCiIntakeCommand } from "./ci-intake.js";
|
|
2
2
|
import { registerCiMetricsCommand } from "./ci-metrics.js";
|
|
3
|
+
import { registerCiPriorities } from "./ci-priorities.js";
|
|
3
4
|
/** One entry per subcommand, in help order. */
|
|
4
|
-
const CI_SUBCOMMANDS = [registerCiIntakeCommand, registerCiMetricsCommand];
|
|
5
|
+
const CI_SUBCOMMANDS = [registerCiIntakeCommand, registerCiMetricsCommand, registerCiPriorities];
|
|
5
6
|
export function registerCiCommand(program) {
|
|
6
7
|
const ci = program.command("ci").description("Smart CI: record and measure what CI does (watch-only)");
|
|
7
8
|
for (const register of CI_SUBCOMMANDS)
|
package/dist/commands/cloud.d.ts
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* (also `hq daemon sync status --local`)
|
|
15
15
|
*/
|
|
16
16
|
import { Command } from "commander";
|
|
17
|
+
import { type CliManifestTarget } from "../lib/sync/cli-manifest-reconcile.js";
|
|
17
18
|
import { VaultClient, scopeLookupSkipMessage, SyncScopeLookupError, type ConflictStrategy, type EntityContext, type MembershipSyncConfig, type SyncMode, type PullScope, type ExplicitGrant, type ShareOptions, type VaultServiceConfig } from "@indigoai-us/hq-cloud";
|
|
18
19
|
import { withSyncWatchdog, type SyncWatchdogLimits } from "../utils/sync-watchdog.js";
|
|
19
20
|
import { type BannerLevel } from "../lib/narrow-hint-banner.js";
|
|
@@ -356,6 +357,7 @@ export interface PullAllVaultClient {
|
|
|
356
357
|
getEntity(uid: string): Promise<{
|
|
357
358
|
slug?: string;
|
|
358
359
|
name?: string;
|
|
360
|
+
bucketName?: string;
|
|
359
361
|
} | null>;
|
|
360
362
|
/**
|
|
361
363
|
* US-011: optional — when present, `pullAll` calls it once per
|
|
@@ -419,6 +421,15 @@ export interface PullAllDeps {
|
|
|
419
421
|
* leg falls back to `all` (legacy behavior) — only the real path injects it.
|
|
420
422
|
*/
|
|
421
423
|
resolveScope?: (companyUid: string, slug: string) => Promise<PullScope>;
|
|
424
|
+
/**
|
|
425
|
+
* After a successful company pull, restore that company in
|
|
426
|
+
* companies/manifest.yaml (feedback_cff52592). Injected so tests can
|
|
427
|
+
* assert the call without touching the filesystem. Absent = skip.
|
|
428
|
+
*/
|
|
429
|
+
reconcileManifest?: (opts: {
|
|
430
|
+
hqRoot: string;
|
|
431
|
+
targets: readonly CliManifestTarget[];
|
|
432
|
+
}) => Promise<void> | void;
|
|
422
433
|
}
|
|
423
434
|
export interface PullAllOptions {
|
|
424
435
|
hqRoot: string;
|