@indigoai-us/hq-cli 5.345.160 → 5.345.161
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 +24 -0
- package/assets/scaffold/core/scripts/session-journal.sh +116 -24
- package/dist/command-catalog.generated.d.ts +218 -5
- package/dist/command-catalog.generated.js +269 -5
- package/dist/commands/auth.js +6 -5
- package/dist/commands/core-session-helper-runtime.d.ts +1 -0
- package/dist/commands/core-session-journal-native.d.ts +1 -0
- package/dist/commands/core-session-journal-native.js +158 -34
- package/dist/commands/feedback.d.ts +12 -0
- package/dist/commands/feedback.js +52 -0
- package/dist/commands/files-browse.d.ts +8 -0
- package/dist/commands/files-browse.js +83 -1
- package/dist/commands/install-global.d.ts +2 -0
- package/dist/commands/install-global.js +24 -1
- package/dist/commands/integrations-connect.js +1 -0
- package/dist/commands/integrations-manage.d.ts +2 -0
- package/dist/commands/integrations-manage.js +6 -4
- package/dist/commands/lanes-link.js +5 -3
- package/dist/commands/lanes-session-start.d.ts +12 -0
- package/dist/commands/lanes-session-start.js +93 -12
- package/dist/commands/meetings.d.ts +11 -0
- package/dist/commands/meetings.js +41 -11
- package/dist/hq-cloud-sync-runner/bin/sync-runner.js +2486 -1794
- package/dist/hq-cloud-sync-runner/package.json +1 -1
- package/dist/index.js +21 -0
- package/dist/lanes-session-start-argv.d.ts +7 -0
- package/dist/lanes-session-start-argv.js +9 -0
- package/dist/lib/bot/log.d.ts +3 -2
- package/dist/lib/bot/progress.d.ts +23 -1
- package/dist/lib/bot/progress.js +43 -5
- package/dist/lib/bot/run.js +2 -0
- package/dist/lib/bot/runtime/claude.d.ts +12 -0
- package/dist/lib/bot/runtime/claude.js +20 -0
- package/dist/lib/bot/runtime/index.d.ts +10 -1
- package/dist/lib/bot/runtime/index.js +14 -2
- package/dist/lib/bot/runtime/types.d.ts +8 -0
- package/dist/lib/doctor/checks/ps1-shims.d.ts +21 -0
- package/dist/lib/doctor/checks/ps1-shims.js +82 -0
- package/dist/lib/doctor/fix/apply.d.ts +13 -1
- package/dist/lib/doctor/fix/apply.js +38 -3
- package/dist/lib/doctor/fix/remediation.d.ts +9 -1
- package/dist/lib/doctor/fix/remediation.js +22 -0
- package/dist/lib/doctor/registry.js +2 -0
- package/dist/lib/flag-registry-worker-source.generated.d.ts +1 -1
- package/dist/lib/flag-registry-worker-source.generated.js +1 -1
- package/dist/lib/lanes/links.d.ts +2 -1
- package/dist/lib/lanes/links.js +235 -17
- package/dist/lib/lanes/registry-flag.d.ts +24 -0
- package/dist/lib/lanes/registry-flag.js +72 -6
- package/dist/lib/lanes/store.d.ts +4 -2
- package/dist/lib/lanes/store.js +8 -8
- package/dist/lib/windows/ps1-shims.d.ts +60 -0
- package/dist/lib/windows/ps1-shims.js +152 -0
- package/dist/utils/self-update.d.ts +2 -0
- package/dist/utils/self-update.js +8 -0
- package/dist/utils/staged-npm-install.js +13 -2
- package/dist/utils/token-keychain.d.ts +11 -8
- package/dist/utils/token-keychain.js +36 -15
- package/package.json +8 -8
- package/scripts/install-hook-engine.mjs +12 -0
|
@@ -35,6 +35,14 @@
|
|
|
35
35
|
* and hashes); it never writes the HQ tree. A company
|
|
36
36
|
* scope whose slug did not resolve locally stays
|
|
37
37
|
* manual-only.
|
|
38
|
+
* - `remove-ps1-shims` — Windows only: delete the npm-generated `hq.ps1` /
|
|
39
|
+
* `hq-auth-refresh.ps1` launchers from the npm prefix
|
|
40
|
+
* when the PowerShell execution policy blocks them.
|
|
41
|
+
* `hq.cmd` stays and PowerShell falls back to it. The
|
|
42
|
+
* removal only touches files whose content is npm's
|
|
43
|
+
* hq-cli shim (see `lib/windows/ps1-shims.ts`); the
|
|
44
|
+
* execution policy is never changed. This is the one
|
|
45
|
+
* scoped exception to the no-delete rule below.
|
|
38
46
|
*
|
|
39
47
|
* EVERYTHING else — content drift between platform copies, a missing script, a
|
|
40
48
|
* missing Codex counterpart, an unquoted `$CLAUDE_PROJECT_DIR`, a stale
|
|
@@ -44,6 +52,7 @@
|
|
|
44
52
|
* content-drift finding is manual-only, because that boundary is load-bearing:
|
|
45
53
|
* deciding which of two diverged copies is correct needs human judgement.
|
|
46
54
|
*/
|
|
55
|
+
import * as path from "node:path";
|
|
47
56
|
import { isCompanyJournalSlug, isSafeCompanySlug, isPersonalJournalSlug, journalSlugFromCheckId, } from "../checks/sync-health.js";
|
|
48
57
|
/** Matches an exec-bit remediation command, quoted or not: `chmod +x <path>`. */
|
|
49
58
|
const CHMOD_EXEC = /^chmod\s+\+x\s+(.+)$/;
|
|
@@ -143,6 +152,19 @@ export function deriveRemediation(result) {
|
|
|
143
152
|
command: remediation ?? `hq bot daemon install ${name}`,
|
|
144
153
|
};
|
|
145
154
|
}
|
|
155
|
+
// remove-ps1-shims — PowerShell resolves `hq` to npm's hq.ps1 and the
|
|
156
|
+
// execution policy blocks it (feedback_29d91817). The target is the shim;
|
|
157
|
+
// the fix acts on its directory, the npm prefix.
|
|
158
|
+
if (checkId === "cli-ps1-shim.blocked-by-policy" && result.status === "WARN" && target) {
|
|
159
|
+
const dir = path.win32.dirname(target);
|
|
160
|
+
return {
|
|
161
|
+
autoFixable: true,
|
|
162
|
+
fixClass: "remove-ps1-shims",
|
|
163
|
+
fixTarget: dir,
|
|
164
|
+
action: `Remove the npm-generated hq .ps1 launchers from ${dir} so PowerShell runs hq.cmd (the execution policy is not changed).`,
|
|
165
|
+
command: "hq.cmd install --global",
|
|
166
|
+
};
|
|
167
|
+
}
|
|
146
168
|
// Available hq-core upgrade. WARN is intentional in `hq doctor` and is
|
|
147
169
|
// not a broken sync; --fix has no mechanical repair for it.
|
|
148
170
|
if (checkId === "sync.update.core") {
|
|
@@ -29,6 +29,7 @@ import { scaffoldCliFloorFamily } from "./checks/scaffold-cli-floor.js";
|
|
|
29
29
|
import { strandedLanesFamily } from "./checks/stranded-lanes.js";
|
|
30
30
|
import { releaseLinksFamily } from "./checks/release-links.js";
|
|
31
31
|
import { cliPathFamily } from "./checks/cli-path.js";
|
|
32
|
+
import { ps1ShimsFamily } from "./checks/ps1-shims.js";
|
|
32
33
|
import { tempHomesFamily } from "./checks/temp-homes.js";
|
|
33
34
|
import { fixtureCoverageFamily } from "./fixtures/discover.js";
|
|
34
35
|
import { checkClaudeWiring } from "./checks/claude-wiring.js";
|
|
@@ -280,6 +281,7 @@ export function createDefaultRegistry() {
|
|
|
280
281
|
// Windows: the npm hq.cmd shim folder must be on PATH for a new terminal to
|
|
281
282
|
// find hq. Registry read only; prints the fix, never edits PATH.
|
|
282
283
|
registry.register(cliPathFamily);
|
|
284
|
+
registry.register(ps1ShimsFamily);
|
|
283
285
|
// Idle tmp.* throwaway homes holding a Rust toolchain download. Dry-run
|
|
284
286
|
// scan only; `hq doctor --sweep-temp-homes` is the delete path.
|
|
285
287
|
registry.register(tempHomesFamily);
|