@indigoai-us/hq-cli 5.345.236 → 5.345.238
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 +46 -0
- package/dist/command-catalog.generated.d.ts +1 -1
- package/dist/command-catalog.generated.js +1 -1
- package/dist/commands/bot.d.ts +2 -0
- package/dist/commands/bot.js +32 -0
- package/dist/commands/daemon.d.ts +1 -0
- package/dist/commands/daemon.js +70 -6
- package/dist/commands/deploy-app-db.js +4 -19
- package/dist/commands/deploy-app-upload.js +66 -40
- package/dist/commands/deploy-mutations.js +24 -16
- package/dist/commands/deploy-runtime-bindings.js +7 -26
- package/dist/commands/deploy-ssr.js +5 -24
- package/dist/commands/mesh.js +6 -2
- package/dist/commands/signals-run.d.ts +43 -2
- package/dist/commands/signals-run.js +85 -7
- package/dist/commands/sync-core.d.ts +7 -0
- package/dist/commands/sync-core.js +52 -3
- package/dist/lib/agent-kit/inbox-state.d.ts +2 -1
- package/dist/lib/agent-kit/inbox-state.js +27 -3
- package/dist/lib/bot/continuity.d.ts +21 -2
- package/dist/lib/bot/continuity.js +48 -19
- package/dist/lib/bot/fleet-cron.js +6 -0
- package/dist/lib/bot/fleet-local.d.ts +11 -1
- package/dist/lib/bot/fleet-local.js +21 -1
- package/dist/lib/bot/fleet-state.d.ts +129 -0
- package/dist/lib/bot/fleet-state.js +669 -0
- package/dist/lib/bot/promote.d.ts +32 -3
- package/dist/lib/bot/promote.js +188 -16
- package/dist/lib/bot/promotion-hold-reconcile.d.ts +56 -0
- package/dist/lib/bot/promotion-hold-reconcile.js +155 -0
- package/dist/lib/daemon/catalog.d.ts +13 -0
- package/dist/lib/daemon/catalog.js +32 -6
- package/dist/lib/daemon/lanes-reconcile-status.d.ts +0 -4
- package/dist/lib/daemon/lanes-reconcile-status.js +2 -12
- package/dist/lib/daemon/lanes-reconcile-watcher.d.ts +1 -1
- package/dist/lib/daemon/lanes-reconcile-watcher.js +2 -1
- package/dist/lib/daemon/legacy-handover.d.ts +38 -0
- package/dist/lib/daemon/legacy-handover.js +117 -0
- package/dist/lib/daemon/mesh-owner.js +2 -1
- package/dist/lib/daemon/run.d.ts +35 -2
- package/dist/lib/daemon/run.js +108 -15
- package/dist/lib/daemon/selfcheck.d.ts +28 -0
- package/dist/lib/daemon/selfcheck.js +86 -15
- package/dist/lib/deploy-api.d.ts +1 -1
- package/dist/lib/deploy-api.js +2 -1
- package/dist/lib/deploy-identity.d.ts +18 -0
- package/dist/lib/deploy-identity.js +179 -0
- package/dist/lib/hot-channels/alert.js +13 -6
- package/dist/lib/hot-channels/fleet-complete.d.ts +89 -0
- package/dist/lib/hot-channels/fleet-complete.js +157 -0
- package/dist/lib/hot-channels/run.js +2 -1
- package/dist/lib/hot-channels/signals-claude-login.d.ts +3 -2
- package/dist/lib/hot-channels/signals-claude-login.js +6 -1
- package/dist/lib/hot-channels/signals-pass-failure.d.ts +29 -0
- package/dist/lib/hot-channels/signals-pass-failure.js +36 -0
- package/dist/lib/hot-channels/signals-pass.d.ts +49 -2
- package/dist/lib/hot-channels/signals-pass.js +188 -12
- package/dist/lib/hot-channels/signals-runtime.d.ts +6 -3
- package/dist/lib/hot-channels/signals-runtime.js +11 -2
- package/dist/lib/lanes/reconcile-result.d.ts +5 -0
- package/dist/lib/lanes/reconcile-result.js +20 -2
- package/dist/lib/lanes/reconcile.js +12 -3
- package/dist/lib/mesh/live/emit.js +25 -6
- package/dist/lib/mesh/live/flush.js +119 -15
- package/dist/lib/mesh/live/reporting-privacy.d.ts +41 -0
- package/dist/lib/mesh/live/reporting-privacy.js +147 -1
- package/dist/lib/mesh/live/spool.d.ts +16 -0
- package/dist/lib/mesh/live/spool.js +45 -0
- package/dist/lib/signals/engine.d.ts +17 -3
- package/dist/lib/signals/engine.js +28 -9
- package/dist/lib/signals/failure-alert.d.ts +33 -1
- package/dist/lib/signals/failure-alert.js +72 -5
- package/dist/lib/signals/owner-notice.d.ts +94 -0
- package/dist/lib/signals/owner-notice.js +233 -0
- package/dist/lib/signals/reply.d.ts +7 -0
- package/dist/lib/signals/reply.js +23 -3
- package/dist/lib/signals/steps/adapters.d.ts +51 -2
- package/dist/lib/signals/steps/adapters.js +213 -7
- package/dist/lib/signals/steps/extract.js +18 -4
- package/dist/lib/signals/steps/types.d.ts +63 -1
- package/dist/lib/signals/steps/types.js +32 -0
- package/dist/lib/sync-core/engine-auth.d.ts +35 -0
- package/dist/lib/sync-core/engine-auth.js +96 -0
- package/dist/lib/sync-core/engine-home.d.ts +6 -0
- package/dist/lib/sync-core/engine-home.js +12 -0
- package/dist/lib/sync-core/rollout-state.d.ts +1 -0
- package/dist/lib/sync-core/rollout-state.js +3 -0
- package/dist/lib/vault-sync-switches.d.ts +7 -0
- package/dist/lib/vault-sync-switches.js +56 -0
- package/dist/lib/work-context/errors.d.ts +12 -0
- package/dist/lib/work-context/errors.js +15 -0
- package/dist/lib/work-context/organize.js +6 -1
- package/dist/lib/work-context/reconcile.js +20 -1
- package/dist/utils/resident-package-preload.js +34 -4
- package/docs/anywhere-runtime.md +6 -0
- package/package.json +7 -7
|
@@ -30,6 +30,7 @@ export interface SyncCoreRolloutState {
|
|
|
30
30
|
}
|
|
31
31
|
export declare function syncCoreRolloutStatePath(home: string): string;
|
|
32
32
|
export declare function readSyncCoreRolloutState(home: string): SyncCoreRolloutState | null;
|
|
33
|
+
export declare function engineVaultCount(home: string): number;
|
|
33
34
|
export declare function readSyncCoreRolloutStateFile(file: string): SyncCoreRolloutState | null;
|
|
34
35
|
export declare function writeSyncCoreRolloutState(home: string, state: SyncCoreRolloutState): void;
|
|
35
36
|
//# sourceMappingURL=rollout-state.d.ts.map
|
|
@@ -84,6 +84,9 @@ function vault(value) {
|
|
|
84
84
|
export function readSyncCoreRolloutState(home) {
|
|
85
85
|
return readSyncCoreRolloutStateFile(syncCoreRolloutStatePath(home));
|
|
86
86
|
}
|
|
87
|
+
export function engineVaultCount(home) {
|
|
88
|
+
return readSyncCoreRolloutState(home)?.vaults.filter((vault) => vault.phase === "full").length ?? 0;
|
|
89
|
+
}
|
|
87
90
|
export function readSyncCoreRolloutStateFile(file) {
|
|
88
91
|
let raw;
|
|
89
92
|
try {
|
|
@@ -38,6 +38,13 @@ export declare function unreadableSwitchesWarning(reason: string): string;
|
|
|
38
38
|
* (`HQ_SYNC_SKIP_COMPANIES`, `HQ_SYNC_SKIP_PERSONAL`). Empty when all are on.
|
|
39
39
|
*/
|
|
40
40
|
export declare function vaultSkipEnv(switches: VaultSyncSwitches): Record<string, string>;
|
|
41
|
+
/** When HQ turned each vault's old-sync switch back on, so a runner started before that can be restarted. */
|
|
42
|
+
export interface VaultSwitchOnTimes {
|
|
43
|
+
personal?: string;
|
|
44
|
+
companies: Record<string, string>;
|
|
45
|
+
}
|
|
46
|
+
export declare function vaultSwitchOnTimesPath(home: string): string;
|
|
47
|
+
export declare function readVaultSwitchOnTimes(home: string): VaultSwitchOnTimes;
|
|
41
48
|
export interface VaultSyncSwitchPatch {
|
|
42
49
|
personal?: boolean;
|
|
43
50
|
companies?: Record<string, boolean>;
|
|
@@ -83,6 +83,45 @@ export function vaultSkipEnv(switches) {
|
|
|
83
83
|
env.HQ_SYNC_SKIP_PERSONAL = "1";
|
|
84
84
|
return env;
|
|
85
85
|
}
|
|
86
|
+
export function vaultSwitchOnTimesPath(home) {
|
|
87
|
+
return path.join(home, ".hq", "sync-core", "legacy-switch-on.json");
|
|
88
|
+
}
|
|
89
|
+
export function readVaultSwitchOnTimes(home) {
|
|
90
|
+
let raw;
|
|
91
|
+
try {
|
|
92
|
+
raw = JSON.parse(fs.readFileSync(vaultSwitchOnTimesPath(home), "utf8"));
|
|
93
|
+
}
|
|
94
|
+
catch {
|
|
95
|
+
return { companies: {} };
|
|
96
|
+
}
|
|
97
|
+
const value = raw;
|
|
98
|
+
const companies = {};
|
|
99
|
+
if (value?.companies && typeof value.companies === "object" && !Array.isArray(value.companies)) {
|
|
100
|
+
for (const [slug, at] of Object.entries(value.companies)) {
|
|
101
|
+
if (typeof at === "string")
|
|
102
|
+
companies[slug] = at;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
return { ...(typeof value?.personal === "string" ? { personal: value.personal } : {}), companies };
|
|
106
|
+
}
|
|
107
|
+
function recordSwitchOnTimes(home, turnedOn, turnedOff, at) {
|
|
108
|
+
if (!turnedOn.personal && !turnedOff.personal && turnedOn.companies.length === 0 && turnedOff.companies.length === 0)
|
|
109
|
+
return;
|
|
110
|
+
const times = readVaultSwitchOnTimes(home);
|
|
111
|
+
if (turnedOn.personal)
|
|
112
|
+
times.personal = at;
|
|
113
|
+
if (turnedOff.personal)
|
|
114
|
+
delete times.personal;
|
|
115
|
+
for (const slug of turnedOn.companies)
|
|
116
|
+
times.companies[slug] = at;
|
|
117
|
+
for (const slug of turnedOff.companies)
|
|
118
|
+
delete times.companies[slug];
|
|
119
|
+
const file = vaultSwitchOnTimesPath(home);
|
|
120
|
+
fs.mkdirSync(path.dirname(file), { recursive: true, mode: 0o700 });
|
|
121
|
+
const tmp = `${file}.${process.pid}.tmp`;
|
|
122
|
+
fs.writeFileSync(tmp, `${JSON.stringify(times)}\n`, { mode: 0o600 });
|
|
123
|
+
fs.renameSync(tmp, file);
|
|
124
|
+
}
|
|
86
125
|
export function writeVaultSyncSwitches(home, patch) {
|
|
87
126
|
const file = vaultSyncSettingsPath(home);
|
|
88
127
|
let prefs = {};
|
|
@@ -101,7 +140,13 @@ export function writeVaultSyncSwitches(home, patch) {
|
|
|
101
140
|
prefs = { ...raw };
|
|
102
141
|
}
|
|
103
142
|
let changed = false;
|
|
143
|
+
const turnedOn = { personal: false, companies: [] };
|
|
144
|
+
const turnedOff = { personal: false, companies: [] };
|
|
104
145
|
if (patch.personal !== undefined && prefs.personalSyncEnabled !== patch.personal) {
|
|
146
|
+
if (patch.personal && prefs.personalSyncEnabled === false)
|
|
147
|
+
turnedOn.personal = true;
|
|
148
|
+
if (!patch.personal)
|
|
149
|
+
turnedOff.personal = true;
|
|
105
150
|
prefs.personalSyncEnabled = patch.personal;
|
|
106
151
|
changed = true;
|
|
107
152
|
}
|
|
@@ -112,6 +157,10 @@ export function writeVaultSyncSwitches(home, patch) {
|
|
|
112
157
|
: {};
|
|
113
158
|
for (const [slug, enabled] of Object.entries(patch.companies)) {
|
|
114
159
|
if (map[slug] !== enabled) {
|
|
160
|
+
if (enabled && map[slug] === false)
|
|
161
|
+
turnedOn.companies.push(slug);
|
|
162
|
+
if (!enabled)
|
|
163
|
+
turnedOff.companies.push(slug);
|
|
115
164
|
map[slug] = enabled;
|
|
116
165
|
changed = true;
|
|
117
166
|
}
|
|
@@ -120,6 +169,13 @@ export function writeVaultSyncSwitches(home, patch) {
|
|
|
120
169
|
}
|
|
121
170
|
if (!changed)
|
|
122
171
|
return false;
|
|
172
|
+
try {
|
|
173
|
+
recordSwitchOnTimes(home, turnedOn, turnedOff, new Date().toISOString());
|
|
174
|
+
}
|
|
175
|
+
catch (error) {
|
|
176
|
+
// The switch itself must still change: a failed record only costs the runner restart.
|
|
177
|
+
console.error(`could not record when the sync switches changed in ${vaultSwitchOnTimesPath(home)}: ${error.message}`);
|
|
178
|
+
}
|
|
123
179
|
fs.mkdirSync(path.dirname(file), { recursive: true, mode: 0o700 });
|
|
124
180
|
const tmp = `${file}.${process.pid}.tmp`;
|
|
125
181
|
fs.writeFileSync(tmp, `${JSON.stringify(prefs, null, 2)}\n`, { mode: 0o600 });
|
|
@@ -24,4 +24,16 @@ export declare class UnsafeConfigPathError extends WorkContextError {
|
|
|
24
24
|
export declare const EXIT_OK = 0;
|
|
25
25
|
export declare const EXIT_INVALID_IDENTITY = 2;
|
|
26
26
|
export declare const EXIT_NOT_TRACKING = 3;
|
|
27
|
+
/** `untracked` was asked for a session with a verified company binding. */
|
|
28
|
+
export declare const EXIT_COMPANY_BOUND = 4;
|
|
29
|
+
/** The error code of an `untracked` request refused for a company session. */
|
|
30
|
+
export declare const COMPANY_BOUND = "COMPANY_BOUND";
|
|
31
|
+
/**
|
|
32
|
+
* How a session bound to a company by mistake is corrected: a session company
|
|
33
|
+
* change (docs/work-context-cli.md, "An HQ session company change"). A change
|
|
34
|
+
* to `personal` stops reporting for that session.
|
|
35
|
+
*/
|
|
36
|
+
export declare const SESSION_COMPANY_CHANGE_COMMAND = "hq-session.sh set company_slug <company|personal>";
|
|
37
|
+
/** What the member is told when `untracked` is refused for a company session. */
|
|
38
|
+
export declare function untrackedRefusedMessage(sessionId: string): string;
|
|
27
39
|
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -43,4 +43,19 @@ export class UnsafeConfigPathError extends WorkContextError {
|
|
|
43
43
|
export const EXIT_OK = 0;
|
|
44
44
|
export const EXIT_INVALID_IDENTITY = 2;
|
|
45
45
|
export const EXIT_NOT_TRACKING = 3;
|
|
46
|
+
/** `untracked` was asked for a session with a verified company binding. */
|
|
47
|
+
export const EXIT_COMPANY_BOUND = 4;
|
|
48
|
+
/** The error code of an `untracked` request refused for a company session. */
|
|
49
|
+
export const COMPANY_BOUND = "COMPANY_BOUND";
|
|
50
|
+
/**
|
|
51
|
+
* How a session bound to a company by mistake is corrected: a session company
|
|
52
|
+
* change (docs/work-context-cli.md, "An HQ session company change"). A change
|
|
53
|
+
* to `personal` stops reporting for that session.
|
|
54
|
+
*/
|
|
55
|
+
export const SESSION_COMPANY_CHANGE_COMMAND = "hq-session.sh set company_slug <company|personal>";
|
|
56
|
+
const WRONG_BINDING_WAY_OUT = `If the session was bound by mistake, change its company to the right one or to personal: \`${SESSION_COMPANY_CHANGE_COMMAND}\`.`;
|
|
57
|
+
/** What the member is told when `untracked` is refused for a company session. */
|
|
58
|
+
export function untrackedRefusedMessage(sessionId) {
|
|
59
|
+
return `Session ${sessionId} is bound to a company. Work Mesh reporting of company work is required, so the session cannot be marked untracked. ${WRONG_BINDING_WAY_OUT}`;
|
|
60
|
+
}
|
|
46
61
|
//# sourceMappingURL=errors.js.map
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import * as crypto from "node:crypto";
|
|
10
10
|
import { WORK_CONTEXT_CONTRACT_VERSION } from "./contract.js";
|
|
11
|
-
import { NotTrackingError } from "./errors.js";
|
|
11
|
+
import { COMPANY_BOUND, NotTrackingError, untrackedRefusedMessage } from "./errors.js";
|
|
12
|
+
import { hasWorkMeshCompanyBinding } from "../mesh/live/reporting-privacy.js";
|
|
12
13
|
import { shouldAskAfter } from "./project.js";
|
|
13
14
|
import { mergeLocalSessionFields, readSessionState, writeSessionState, } from "./state.js";
|
|
14
15
|
/** Stable decision id for a session + expiry window. */
|
|
@@ -333,6 +334,10 @@ export async function submitOrganizeDecision(input) {
|
|
|
333
334
|
};
|
|
334
335
|
}
|
|
335
336
|
if (input.untracked) {
|
|
337
|
+
// A session with a verified company binding cannot be marked untracked.
|
|
338
|
+
if (hasWorkMeshCompanyBinding(state)) {
|
|
339
|
+
return { ok: false, errorCode: COMPANY_BOUND, message: untrackedRefusedMessage(input.sessionId) };
|
|
340
|
+
}
|
|
336
341
|
const now = (input.now ?? (() => new Date()))().toISOString();
|
|
337
342
|
writeSessionState({
|
|
338
343
|
contractVersion: WORK_CONTEXT_CONTRACT_VERSION,
|
|
@@ -8,7 +8,8 @@ import { companyCorrectionPath, companySlugFromCwd, resolveCompany, } from "./co
|
|
|
8
8
|
import { companyBindingChanged, isNonCloudCompanySlug, presenceLeaveFromState, reboundSessionProjection, } from "./company-rebind.js";
|
|
9
9
|
import { invalidateDefaultCompanyMemberships, } from "./config.js";
|
|
10
10
|
import { WORK_CONTEXT_CONTRACT_VERSION, normalizeTaskId, } from "./contract.js";
|
|
11
|
-
import { EXIT_INVALID_IDENTITY, EXIT_NOT_TRACKING, EXIT_OK, InvalidDecisionOriginError, NotTrackingError, } from "./errors.js";
|
|
11
|
+
import { COMPANY_BOUND, EXIT_COMPANY_BOUND, EXIT_INVALID_IDENTITY, EXIT_NOT_TRACKING, EXIT_OK, InvalidDecisionOriginError, NotTrackingError, untrackedRefusedMessage, } from "./errors.js";
|
|
12
|
+
import { hasWorkMeshCompanyBinding } from "../mesh/live/reporting-privacy.js";
|
|
12
13
|
import { decisionFromCandidates, sessionDecisionScope, } from "./organize.js";
|
|
13
14
|
import { refineProjectBinding } from "./bind-best.js";
|
|
14
15
|
import { foreignSessionOwnsLane } from "./lane-bind.js";
|
|
@@ -85,6 +86,24 @@ export function loadObservationFromFile(filePath) {
|
|
|
85
86
|
* Mark a session untracked (user origin only). Local receipt; no server write.
|
|
86
87
|
*/
|
|
87
88
|
export function markUntracked(sessionId, deps, clientOperationId = `untracked_${sessionId}`) {
|
|
89
|
+
// Work Mesh reporting of company work has no member off switch: a session
|
|
90
|
+
// with a verified company binding cannot be marked untracked. Its state is
|
|
91
|
+
// left as it is and nothing is written.
|
|
92
|
+
const prior = readSessionState(sessionId, deps.root);
|
|
93
|
+
if (hasWorkMeshCompanyBinding(prior)) {
|
|
94
|
+
return {
|
|
95
|
+
result: resultOf({
|
|
96
|
+
kind: "error",
|
|
97
|
+
classification: prior.contextStatus,
|
|
98
|
+
delivery: "clean",
|
|
99
|
+
sessionId,
|
|
100
|
+
clientOperationId,
|
|
101
|
+
errorCode: COMPANY_BOUND,
|
|
102
|
+
}),
|
|
103
|
+
exitCode: EXIT_COMPANY_BOUND,
|
|
104
|
+
diagnostics: [untrackedRefusedMessage(sessionId)],
|
|
105
|
+
};
|
|
106
|
+
}
|
|
88
107
|
const now = (deps.now ?? (() => new Date()))().toISOString();
|
|
89
108
|
const state = {
|
|
90
109
|
contractVersion: WORK_CONTEXT_CONTRACT_VERSION,
|
|
@@ -35,6 +35,9 @@ export const RESIDENT_PACKAGE_MODULES = {
|
|
|
35
35
|
"../commands/access.js",
|
|
36
36
|
"../commands/sources.js",
|
|
37
37
|
"../lib/hot-channels/adapters/index.js",
|
|
38
|
+
"../lib/hot-channels/signals-pass.js",
|
|
39
|
+
"../lib/hot-channels/signals-runtime.js",
|
|
40
|
+
"../lib/hot-channels/signals-claude-login.js",
|
|
38
41
|
"../utils/vault-api.js",
|
|
39
42
|
"../commands/files-browse.js",
|
|
40
43
|
"@aws-sdk/client-s3",
|
|
@@ -81,18 +84,21 @@ export const RESIDENT_PACKAGE_MODULES = {
|
|
|
81
84
|
"../commands/access.js",
|
|
82
85
|
"../commands/sources.js",
|
|
83
86
|
"../lib/hot-channels/adapters/index.js",
|
|
87
|
+
"../lib/hot-channels/signals-pass.js",
|
|
88
|
+
"../lib/hot-channels/signals-runtime.js",
|
|
89
|
+
"../lib/hot-channels/signals-claude-login.js",
|
|
84
90
|
"../lib/capacity/collect.js",
|
|
85
91
|
"../lib/capacity/accounts.js",
|
|
86
92
|
"../lib/core-utils/hook-timeout-debug-context-flag.js",
|
|
87
93
|
],
|
|
88
94
|
"daemon-logs-follow": [],
|
|
89
95
|
"mesh-daemon": ["../sentry.js", "../lib/doctor/client-health-reason-codes-flag.js", "@indigoai-us/hq-flags-client", "../lib/plan-limit-nag.js", "../utils/plan-gate-error.js", "../utils/deleted-company-notice.js", "open", "../utils/cognito-session.js", "../lib/first-sync-next-step.js", "@indigoai-us/hq-cloud"],
|
|
90
|
-
"lanes-watch": ["../sentry.js", "../lib/doctor/client-health-reason-codes-flag.js", "@indigoai-us/hq-flags-client", "../lib/plan-limit-nag.js", "../utils/plan-gate-error.js", "../utils/deleted-company-notice.js", "open", "../utils/cognito-session.js", "../lib/first-sync-next-step.js", "@indigoai-us/hq-cloud", "../lib/lanes/reconcile.js", "../utils/local-files-overview.js", "../lib/flag-registry.js", "../utils/vault-api.js", "../commands/files-browse.js", "@aws-sdk/client-s3", "../commands/access.js", "../commands/sources.js", "../lib/hot-channels/adapters/index.js", "../commands/lanes.js", "../lib/capacity/collect.js", "../lib/capacity/accounts.js"],
|
|
91
|
-
"monitor-wait": ["../sentry.js", "../lib/doctor/client-health-reason-codes-flag.js", "@indigoai-us/hq-flags-client", "../lib/plan-limit-nag.js", "../utils/plan-gate-error.js", "../utils/deleted-company-notice.js", "open", "../utils/cognito-session.js", "../lib/first-sync-next-step.js", "@indigoai-us/hq-cloud", "../lib/lanes/reconcile.js", "../utils/local-files-overview.js", "../lib/flag-registry.js", "../utils/vault-api.js", "../commands/files-browse.js", "@aws-sdk/client-s3", "../commands/access.js", "../commands/sources.js", "../lib/hot-channels/adapters/index.js", "../commands/lanes.js", "../lib/capacity/collect.js", "../lib/capacity/accounts.js"],
|
|
92
|
-
"monitor-run": ["../commands/lanes.js", "../lib/plan-limit-nag.js", "../utils/plan-gate-error.js", "../utils/deleted-company-notice.js", "../sentry.js", "../lib/doctor/client-health-reason-codes-flag.js", "@indigoai-us/hq-flags-client", "open", "../utils/cognito-session.js", "../lib/first-sync-next-step.js", "@indigoai-us/hq-cloud", "../lib/lanes/reconcile.js", "../utils/local-files-overview.js", "../lib/flag-registry.js", "../utils/vault-api.js", "../commands/files-browse.js", "@aws-sdk/client-s3", "../commands/access.js", "../commands/sources.js", "../lib/hot-channels/adapters/index.js", "../lib/capacity/collect.js", "../lib/capacity/accounts.js"],
|
|
96
|
+
"lanes-watch": ["../sentry.js", "../lib/doctor/client-health-reason-codes-flag.js", "@indigoai-us/hq-flags-client", "../lib/plan-limit-nag.js", "../utils/plan-gate-error.js", "../utils/deleted-company-notice.js", "open", "../utils/cognito-session.js", "../lib/first-sync-next-step.js", "@indigoai-us/hq-cloud", "../lib/lanes/reconcile.js", "../utils/local-files-overview.js", "../lib/flag-registry.js", "../utils/vault-api.js", "../commands/files-browse.js", "@aws-sdk/client-s3", "../commands/access.js", "../commands/sources.js", "../lib/hot-channels/adapters/index.js", "../lib/hot-channels/signals-pass.js", "../lib/hot-channels/signals-runtime.js", "../lib/hot-channels/signals-claude-login.js", "../commands/lanes.js", "../lib/capacity/collect.js", "../lib/capacity/accounts.js"],
|
|
97
|
+
"monitor-wait": ["../sentry.js", "../lib/doctor/client-health-reason-codes-flag.js", "@indigoai-us/hq-flags-client", "../lib/plan-limit-nag.js", "../utils/plan-gate-error.js", "../utils/deleted-company-notice.js", "open", "../utils/cognito-session.js", "../lib/first-sync-next-step.js", "@indigoai-us/hq-cloud", "../lib/lanes/reconcile.js", "../utils/local-files-overview.js", "../lib/flag-registry.js", "../utils/vault-api.js", "../commands/files-browse.js", "@aws-sdk/client-s3", "../commands/access.js", "../commands/sources.js", "../lib/hot-channels/adapters/index.js", "../lib/hot-channels/signals-pass.js", "../lib/hot-channels/signals-runtime.js", "../lib/hot-channels/signals-claude-login.js", "../commands/lanes.js", "../lib/capacity/collect.js", "../lib/capacity/accounts.js"],
|
|
98
|
+
"monitor-run": ["../commands/lanes.js", "../lib/plan-limit-nag.js", "../utils/plan-gate-error.js", "../utils/deleted-company-notice.js", "../sentry.js", "../lib/doctor/client-health-reason-codes-flag.js", "@indigoai-us/hq-flags-client", "open", "../utils/cognito-session.js", "../lib/first-sync-next-step.js", "@indigoai-us/hq-cloud", "../lib/lanes/reconcile.js", "../utils/local-files-overview.js", "../lib/flag-registry.js", "../utils/vault-api.js", "../commands/files-browse.js", "@aws-sdk/client-s3", "../commands/access.js", "../commands/sources.js", "../lib/hot-channels/adapters/index.js", "../lib/hot-channels/signals-pass.js", "../lib/hot-channels/signals-runtime.js", "../lib/hot-channels/signals-claude-login.js", "../lib/capacity/collect.js", "../lib/capacity/accounts.js"],
|
|
93
99
|
"agents-message-wait": ["../sentry.js", "../lib/doctor/client-health-reason-codes-flag.js", "@indigoai-us/hq-flags-client", "../lib/plan-limit-nag.js", "../utils/plan-gate-error.js", "../utils/deleted-company-notice.js", "open", "../utils/cognito-session.js", "../lib/first-sync-next-step.js", "@indigoai-us/hq-cloud"],
|
|
94
100
|
"integrations-oauth-wait": ["../sentry.js", "../lib/doctor/client-health-reason-codes-flag.js", "@indigoai-us/hq-flags-client", "../lib/plan-limit-nag.js", "../utils/plan-gate-error.js", "../utils/deleted-company-notice.js", "open", "../utils/cognito-session.js", "../lib/first-sync-next-step.js", "@indigoai-us/hq-cloud"],
|
|
95
|
-
"outpost-wait": ["../commands/lanes.js", "../lib/plan-limit-nag.js", "../utils/plan-gate-error.js", "../utils/deleted-company-notice.js", "../sentry.js", "../lib/doctor/client-health-reason-codes-flag.js", "@indigoai-us/hq-flags-client", "open", "../utils/cognito-session.js", "../lib/first-sync-next-step.js", "@indigoai-us/hq-cloud", "../lib/lanes/reconcile.js", "../utils/local-files-overview.js", "../lib/flag-registry.js", "../utils/vault-api.js", "../commands/files-browse.js", "@aws-sdk/client-s3", "../commands/access.js", "../commands/sources.js", "../lib/hot-channels/adapters/index.js", "../lib/capacity/collect.js", "../lib/capacity/accounts.js"],
|
|
101
|
+
"outpost-wait": ["../commands/lanes.js", "../lib/plan-limit-nag.js", "../utils/plan-gate-error.js", "../utils/deleted-company-notice.js", "../sentry.js", "../lib/doctor/client-health-reason-codes-flag.js", "@indigoai-us/hq-flags-client", "open", "../utils/cognito-session.js", "../lib/first-sync-next-step.js", "@indigoai-us/hq-cloud", "../lib/lanes/reconcile.js", "../utils/local-files-overview.js", "../lib/flag-registry.js", "../utils/vault-api.js", "../commands/files-browse.js", "@aws-sdk/client-s3", "../commands/access.js", "../commands/sources.js", "../lib/hot-channels/adapters/index.js", "../lib/hot-channels/signals-pass.js", "../lib/hot-channels/signals-runtime.js", "../lib/hot-channels/signals-claude-login.js", "../lib/capacity/collect.js", "../lib/capacity/accounts.js"],
|
|
96
102
|
"secrets-sandbox": [],
|
|
97
103
|
"pkg-update": ["../sentry.js", "../lib/doctor/client-health-reason-codes-flag.js", "@indigoai-us/hq-flags-client", "../utils/cognito-session.js", "@indigoai-us/hq-cloud"],
|
|
98
104
|
"pack-install": [
|
|
@@ -210,6 +216,10 @@ const LOADERS = {
|
|
|
210
216
|
// The adapters step also lazily imports the builtin hot-channel registry
|
|
211
217
|
// (lib/hot-channels/adapters/index.ts) once the adapter catalog is gated.
|
|
212
218
|
() => import("../lib/hot-channels/adapters/index.js"),
|
|
219
|
+
// The adapters step lazily imports the hot-channel signals pass it hands the sync.
|
|
220
|
+
() => import("../lib/hot-channels/signals-pass.js"),
|
|
221
|
+
() => import("../lib/hot-channels/signals-runtime.js"),
|
|
222
|
+
() => import("../lib/hot-channels/signals-claude-login.js"),
|
|
213
223
|
// The upload step (lib/signals/steps/upload.ts) lazily imports the vault
|
|
214
224
|
// API, the company presign client and the S3 client to post contributions.
|
|
215
225
|
() => import("../utils/vault-api.js"),
|
|
@@ -291,6 +301,10 @@ const LOADERS = {
|
|
|
291
301
|
() => import("../commands/access.js"),
|
|
292
302
|
() => import("../commands/sources.js"),
|
|
293
303
|
() => import("../lib/hot-channels/adapters/index.js"),
|
|
304
|
+
// The adapters step lazily imports the hot-channel signals pass it hands the sync.
|
|
305
|
+
() => import("../lib/hot-channels/signals-pass.js"),
|
|
306
|
+
() => import("../lib/hot-channels/signals-runtime.js"),
|
|
307
|
+
() => import("../lib/hot-channels/signals-claude-login.js"),
|
|
294
308
|
// lanes create --account auto takes one fresh capacity reading in-process
|
|
295
309
|
// before it refuses on a stale one.
|
|
296
310
|
() => import("../lib/capacity/collect.js"),
|
|
@@ -340,6 +354,10 @@ const LOADERS = {
|
|
|
340
354
|
() => import("../commands/access.js"),
|
|
341
355
|
() => import("../commands/sources.js"),
|
|
342
356
|
() => import("../lib/hot-channels/adapters/index.js"),
|
|
357
|
+
// The adapters step lazily imports the hot-channel signals pass it hands the sync.
|
|
358
|
+
() => import("../lib/hot-channels/signals-pass.js"),
|
|
359
|
+
() => import("../lib/hot-channels/signals-runtime.js"),
|
|
360
|
+
() => import("../lib/hot-channels/signals-claude-login.js"),
|
|
343
361
|
() => import("../commands/lanes.js"),
|
|
344
362
|
// lanes create --account auto takes one fresh capacity reading in-process
|
|
345
363
|
// before it refuses on a stale one.
|
|
@@ -371,6 +389,10 @@ const LOADERS = {
|
|
|
371
389
|
() => import("../commands/access.js"),
|
|
372
390
|
() => import("../commands/sources.js"),
|
|
373
391
|
() => import("../lib/hot-channels/adapters/index.js"),
|
|
392
|
+
// The adapters step lazily imports the hot-channel signals pass it hands the sync.
|
|
393
|
+
() => import("../lib/hot-channels/signals-pass.js"),
|
|
394
|
+
() => import("../lib/hot-channels/signals-runtime.js"),
|
|
395
|
+
() => import("../lib/hot-channels/signals-claude-login.js"),
|
|
374
396
|
() => import("../commands/lanes.js"),
|
|
375
397
|
// lanes create --account auto takes one fresh capacity reading in-process
|
|
376
398
|
// before it refuses on a stale one.
|
|
@@ -403,6 +425,10 @@ const LOADERS = {
|
|
|
403
425
|
() => import("../commands/access.js"),
|
|
404
426
|
() => import("../commands/sources.js"),
|
|
405
427
|
() => import("../lib/hot-channels/adapters/index.js"),
|
|
428
|
+
// The adapters step lazily imports the hot-channel signals pass it hands the sync.
|
|
429
|
+
() => import("../lib/hot-channels/signals-pass.js"),
|
|
430
|
+
() => import("../lib/hot-channels/signals-runtime.js"),
|
|
431
|
+
() => import("../lib/hot-channels/signals-claude-login.js"),
|
|
406
432
|
// lanes create --account auto takes one fresh capacity reading in-process
|
|
407
433
|
// before it refuses on a stale one.
|
|
408
434
|
() => import("../lib/capacity/collect.js"),
|
|
@@ -464,6 +490,10 @@ const LOADERS = {
|
|
|
464
490
|
() => import("../commands/access.js"),
|
|
465
491
|
() => import("../commands/sources.js"),
|
|
466
492
|
() => import("../lib/hot-channels/adapters/index.js"),
|
|
493
|
+
// The adapters step lazily imports the hot-channel signals pass it hands the sync.
|
|
494
|
+
() => import("../lib/hot-channels/signals-pass.js"),
|
|
495
|
+
() => import("../lib/hot-channels/signals-runtime.js"),
|
|
496
|
+
() => import("../lib/hot-channels/signals-claude-login.js"),
|
|
467
497
|
// lanes create --account auto takes one fresh capacity reading in-process
|
|
468
498
|
// before it refuses on a stale one.
|
|
469
499
|
() => import("../lib/capacity/collect.js"),
|
package/docs/anywhere-runtime.md
CHANGED
|
@@ -11,6 +11,12 @@ archived, or unreadable. An explicit registry false or the local
|
|
|
11
11
|
requires the current person to enable the `hq-anywhere` setting in HQ. If that
|
|
12
12
|
setting cannot be read, runtime access stays off.
|
|
13
13
|
|
|
14
|
+
Work Mesh reporting of company work is the exception. The person's setting and
|
|
15
|
+
the local `HQ_FLAG_HQ_ANYWHERE_RUNTIME=false|0` override do not stop Work Mesh
|
|
16
|
+
events of a session with a verified company binding; only the operator's
|
|
17
|
+
registry switch does. See "Company work has no member off switch" in
|
|
18
|
+
[work-context-cli.md](work-context-cli.md).
|
|
19
|
+
|
|
14
20
|
## Install
|
|
15
21
|
|
|
16
22
|
Install and start hqd before registering global hooks. The global installer
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@indigoai-us/hq-cli",
|
|
3
|
-
"version": "5.345.
|
|
3
|
+
"version": "5.345.238",
|
|
4
4
|
"description": "HQ by Indigo management CLI — modules and cloud sync",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -126,11 +126,11 @@
|
|
|
126
126
|
"*.{ts,tsx,mts,cts,js,jsx,mjs,cjs}": "eslint --cache --no-error-on-unmatched-pattern"
|
|
127
127
|
},
|
|
128
128
|
"optionalDependencies": {
|
|
129
|
-
"@indigoai-us/hq-hook-win32-x64": "5.345.
|
|
130
|
-
"@indigoai-us/hq-hook-win32-arm64": "5.345.
|
|
131
|
-
"@indigoai-us/hq-hook-darwin-x64": "5.345.
|
|
132
|
-
"@indigoai-us/hq-hook-darwin-arm64": "5.345.
|
|
133
|
-
"@indigoai-us/hq-hook-linux-x64": "5.345.
|
|
134
|
-
"@indigoai-us/hq-hook-linux-arm64": "5.345.
|
|
129
|
+
"@indigoai-us/hq-hook-win32-x64": "5.345.238",
|
|
130
|
+
"@indigoai-us/hq-hook-win32-arm64": "5.345.238",
|
|
131
|
+
"@indigoai-us/hq-hook-darwin-x64": "5.345.238",
|
|
132
|
+
"@indigoai-us/hq-hook-darwin-arm64": "5.345.238",
|
|
133
|
+
"@indigoai-us/hq-hook-linux-x64": "5.345.238",
|
|
134
|
+
"@indigoai-us/hq-hook-linux-arm64": "5.345.238"
|
|
135
135
|
}
|
|
136
136
|
}
|