@indigoai-us/hq-cli 5.345.42 → 5.345.44
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 +18 -0
- package/dist/command-catalog.generated.d.ts +2 -2
- package/dist/command-catalog.generated.js +2 -2
- package/dist/commands/db-remote-deps.js +4 -0
- package/dist/commands/install-global.d.ts +8 -1
- package/dist/commands/install-global.js +128 -25
- package/dist/commands/lanes-checks.d.ts +1 -0
- package/dist/commands/lanes-checks.js +6 -1
- package/dist/commands/lanes-message.js +1 -0
- package/dist/commands/lanes-report.d.ts +2 -1
- package/dist/commands/lanes-report.js +63 -6
- package/dist/commands/lanes-resume.js +3 -0
- package/dist/commands/lanes.js +218 -49
- package/dist/index.js +43 -7
- package/dist/lib/anywhere-person-setting.d.ts +2 -0
- package/dist/lib/anywhere-person-setting.js +2 -1
- package/dist/lib/anywhere-runtime-fast-flag.js +8 -2
- package/dist/lib/core-utils/sentry-report.js +8 -1
- package/dist/lib/daemon/anywhere-listener.d.ts +16 -0
- package/dist/lib/daemon/anywhere-listener.js +79 -0
- package/dist/lib/daemon/run.js +30 -23
- package/dist/lib/db/control-plane.d.ts +5 -0
- package/dist/lib/db/control-plane.js +7 -0
- package/dist/lib/doctor/checks/anywhere.d.ts +10 -0
- package/dist/lib/doctor/checks/anywhere.js +45 -17
- package/dist/lib/flag-registry.d.ts +4 -0
- package/dist/lib/flag-registry.js +43 -2
- package/dist/lib/flag-snapshot-file.d.ts +17 -0
- package/dist/lib/flag-snapshot-file.js +153 -37
- package/dist/lib/lanes/flag-keys.d.ts +5 -0
- package/dist/lib/lanes/flag-keys.js +5 -0
- package/dist/lib/lanes/grants.js +1 -1
- package/dist/lib/lanes/reconcile.d.ts +2 -0
- package/dist/lib/lanes/reconcile.js +39 -1
- package/dist/lib/lanes/spawn.d.ts +4 -0
- package/dist/lib/lanes/spawn.js +132 -6
- package/dist/lib/lanes/store.js +35 -0
- package/dist/lib/lanes/tracker-report.d.ts +46 -0
- package/dist/lib/lanes/tracker-report.js +85 -1
- package/dist/lib/lanes/types.d.ts +3 -1
- package/dist/lib/lanes/types.js +1 -0
- package/dist/main.js +5 -1
- package/dist/startup-registration.d.ts +3 -0
- package/dist/startup-registration.js +11 -4
- package/dist/utils/resident-package-preload.js +5 -1
- package/package.json +1 -1
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
* spawns, waits, or a real install tree.
|
|
18
18
|
*/
|
|
19
19
|
import { spawnSync } from "node:child_process";
|
|
20
|
-
import { getVersionGatePhase, resolveRunningInstall } from "./utils/version-gate.js";
|
|
21
20
|
import { stringDerivedPackageRoot } from "./utils/hq-roots.js";
|
|
22
21
|
import { updateLockPath, UPDATE_LOCK_STALE_MS } from "./utils/update-lock.js";
|
|
23
22
|
import { classifyEvalThrow, classifyModuleNotFound, installRewriteInProgress, InstallTreeTornError, waitForInstallTreeSettled, } from "./utils/install-tree-torn.js";
|
|
@@ -122,7 +121,7 @@ export async function registerCommandsWithRecovery(args) {
|
|
|
122
121
|
cause: err,
|
|
123
122
|
classified,
|
|
124
123
|
packageRoot,
|
|
125
|
-
versionGatePhase:
|
|
124
|
+
versionGatePhase: readVersionGatePhase(deps),
|
|
126
125
|
outcome: "guarded",
|
|
127
126
|
treeState: env[INSTALL_TREE_RECOVERY_TREE_STATE_ENV] === "stale" ? "stale" : "in_flight",
|
|
128
127
|
attempt: 2,
|
|
@@ -193,7 +192,7 @@ export async function registerCommandsWithRecovery(args) {
|
|
|
193
192
|
cause: err,
|
|
194
193
|
classified,
|
|
195
194
|
packageRoot,
|
|
196
|
-
versionGatePhase:
|
|
195
|
+
versionGatePhase: readVersionGatePhase(deps),
|
|
197
196
|
outcome: "reexec-failed",
|
|
198
197
|
treeState,
|
|
199
198
|
attempt: 1,
|
|
@@ -225,11 +224,19 @@ export async function registerCommandsWithRecovery(args) {
|
|
|
225
224
|
function resolvePackageRoot(deps) {
|
|
226
225
|
let root;
|
|
227
226
|
try {
|
|
228
|
-
root =
|
|
227
|
+
root = deps.resolveInstall?.().packageRoot ?? null;
|
|
229
228
|
}
|
|
230
229
|
catch {
|
|
231
230
|
root = null;
|
|
232
231
|
}
|
|
233
232
|
return root ?? (deps.deriveInstallRoot ?? stringDerivedPackageRoot)();
|
|
234
233
|
}
|
|
234
|
+
function readVersionGatePhase(deps) {
|
|
235
|
+
try {
|
|
236
|
+
return deps.versionGatePhase?.() ?? "unknown";
|
|
237
|
+
}
|
|
238
|
+
catch {
|
|
239
|
+
return "unknown";
|
|
240
|
+
}
|
|
241
|
+
}
|
|
235
242
|
//# sourceMappingURL=startup-registration.js.map
|
|
@@ -45,7 +45,10 @@ export const RESIDENT_PACKAGE_MODULES = {
|
|
|
45
45
|
coreJobRun: ["../lib/flag-registry.js"],
|
|
46
46
|
"daemon-call": ["../lib/daemon/protocol.js"],
|
|
47
47
|
daemon: [
|
|
48
|
-
"../sentry.js",
|
|
48
|
+
"../sentry.js",
|
|
49
|
+
"../lib/doctor/client-health-reason-codes-flag.js",
|
|
50
|
+
"@indigoai-us/hq-flags-client",
|
|
51
|
+
"../lib/flag-registry.js",
|
|
49
52
|
"../utils/cognito-session.js",
|
|
50
53
|
"../lib/plan-limit-nag.js",
|
|
51
54
|
"../utils/plan-gate-error.js",
|
|
@@ -207,6 +210,7 @@ const LOADERS = {
|
|
|
207
210
|
await import("@indigoai-us/hq-flags-client");
|
|
208
211
|
preloadSentrySdk();
|
|
209
212
|
},
|
|
213
|
+
() => import("../lib/flag-registry.js"),
|
|
210
214
|
() => import("../utils/cognito-session.js"),
|
|
211
215
|
() => import("../lib/plan-limit-nag.js"),
|
|
212
216
|
() => import("../utils/plan-gate-error.js"),
|