@indigoai-us/hq-cli 5.345.80 → 5.345.82
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 +17 -0
- package/dist/command-catalog.generated.d.ts +146 -0
- package/dist/command-catalog.generated.js +178 -0
- package/dist/command-help.js +2 -0
- package/dist/command-registration-plan.d.ts +6 -0
- package/dist/command-registration-plan.js +1 -0
- package/dist/commands/doctor.d.ts +5 -0
- package/dist/commands/doctor.js +2 -0
- package/dist/commands/storage-core.d.ts +98 -0
- package/dist/commands/storage-core.js +223 -0
- package/dist/commands/storage-gate.d.ts +35 -0
- package/dist/commands/storage-gate.js +85 -0
- package/dist/commands/storage-offload.d.ts +342 -0
- package/dist/commands/storage-offload.js +943 -0
- package/dist/commands/storage.d.ts +249 -0
- package/dist/commands/storage.js +1171 -0
- package/dist/fast-scaffold.js +5 -0
- package/dist/hq-cloud-sync-runner/bin/sync-runner.js +5140 -3412
- package/dist/hq-cloud-sync-runner/package.json +1 -1
- package/dist/lib/cli-flag-keys.d.ts +6 -0
- package/dist/lib/cli-flag-keys.js +6 -0
- package/dist/lib/doctor/fix/remediation.js +10 -0
- package/dist/lib/doctor/json-output.d.ts +16 -0
- package/dist/lib/doctor/json-output.js +10 -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/storage-feature-flag.d.ts +56 -0
- package/dist/lib/storage-feature-flag.js +104 -0
- package/dist/main.js +12 -1
- package/dist/utils/resident-package-preload.js +3 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"hq-cli-daemon-sync-runner","type":"module","version":"6.18.
|
|
1
|
+
{"name":"hq-cli-daemon-sync-runner","type":"module","version":"6.18.61","bundleSha256":"08a41f64915b26432d804644a2d516ef670e6d2133e8937a46c3a93f7398ab65","formatVersion":1}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
/** hq-flags keys used by CLI-wide routes. */
|
|
2
2
|
export declare const CLI_COMMAND_HELP_CATALOG_FLAG = "cli.command-help-catalog";
|
|
3
3
|
export declare const MULTI_COMPANY_SESSION_LOCK_FLAG = "hooks.multi-company-session-lock";
|
|
4
|
+
/**
|
|
5
|
+
* hq-flags key for HQ Storage (`hq storage` and Settings > Storage in the
|
|
6
|
+
* desktop app). Shared with hq-desktop-app, so it carries no `cli.` prefix,
|
|
7
|
+
* like `hq-anywhere-runtime`.
|
|
8
|
+
*/
|
|
9
|
+
export declare const HQ_STORAGE_FLAG = "hq-storage";
|
|
4
10
|
//# sourceMappingURL=cli-flag-keys.d.ts.map
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
/** hq-flags keys used by CLI-wide routes. */
|
|
2
2
|
export const CLI_COMMAND_HELP_CATALOG_FLAG = "cli.command-help-catalog";
|
|
3
3
|
export const MULTI_COMPANY_SESSION_LOCK_FLAG = "hooks.multi-company-session-lock";
|
|
4
|
+
/**
|
|
5
|
+
* hq-flags key for HQ Storage (`hq storage` and Settings > Storage in the
|
|
6
|
+
* desktop app). Shared with hq-desktop-app, so it carries no `cli.` prefix,
|
|
7
|
+
* like `hq-anywhere-runtime`.
|
|
8
|
+
*/
|
|
9
|
+
export const HQ_STORAGE_FLAG = "hq-storage";
|
|
4
10
|
//# sourceMappingURL=cli-flag-keys.js.map
|
|
@@ -119,6 +119,16 @@ export function deriveRemediation(result) {
|
|
|
119
119
|
command: remediation ?? `hq bot start ${target}`,
|
|
120
120
|
};
|
|
121
121
|
}
|
|
122
|
+
// Available hq-core upgrade. WARN is intentional in `hq doctor` and is
|
|
123
|
+
// not a broken sync; --fix has no mechanical repair for it.
|
|
124
|
+
if (checkId === "sync.update.core") {
|
|
125
|
+
return {
|
|
126
|
+
autoFixable: false,
|
|
127
|
+
fixClass: null,
|
|
128
|
+
action: "Ordinary hq-core upgrade, not a failed repair. hq doctor --fix will leave this WARN in place. Run /update-hq in a fresh session.",
|
|
129
|
+
command: "",
|
|
130
|
+
};
|
|
131
|
+
}
|
|
122
132
|
// refresh-sync — a company journal that is stale or never-synced, or a
|
|
123
133
|
// live personal / personal-vault journal. Leftover shards are NA at the
|
|
124
134
|
// check layer, so they never reach this classifier. A SessionStart
|
|
@@ -104,7 +104,23 @@ export interface BuildDoctorJsonInput {
|
|
|
104
104
|
clientHealthReasonCodesEnabledCheckIds?: ReadonlySet<string>;
|
|
105
105
|
/** Check ids whose own company enabled per-check status reporting in hq-flags. */
|
|
106
106
|
clientHealthCheckStatusEnabledCheckIds?: ReadonlySet<string>;
|
|
107
|
+
/**
|
|
108
|
+
* JSON consumed by the SessionStart health hook (`--client-health-report`).
|
|
109
|
+
* Ordinary hq-core upgrade WARNs stay in human `hq doctor` output and in
|
|
110
|
+
* default `--json`, but they are omitted here: `--fix` cannot apply a
|
|
111
|
+
* release, and older hooks treated the leftover WARN as an unrepaired
|
|
112
|
+
* failure.
|
|
113
|
+
*/
|
|
114
|
+
clientHealthReport?: boolean;
|
|
107
115
|
}
|
|
116
|
+
/**
|
|
117
|
+
* True when a sync finding is an ordinary, non-repairable hq-core upgrade.
|
|
118
|
+
* FAIL stays visible: that is a broken local core, not "a newer release exists".
|
|
119
|
+
*/
|
|
120
|
+
export declare function isOrdinaryCoreUpdateWarn(result: {
|
|
121
|
+
checkId: string;
|
|
122
|
+
status: DoctorStatus;
|
|
123
|
+
}): boolean;
|
|
108
124
|
/** Assemble the machine-readable document from a completed run. */
|
|
109
125
|
export declare function buildDoctorJson(input: BuildDoctorJsonInput): DoctorJsonDocument;
|
|
110
126
|
/** Serialise the document as pretty-printed JSON with a trailing newline. */
|
|
@@ -29,11 +29,21 @@ import { deriveRemediation } from "./fix/remediation.js";
|
|
|
29
29
|
* was passed, so a consumer can see what `--fix` would do without invoking it.
|
|
30
30
|
*/
|
|
31
31
|
export const DOCTOR_JSON_SCHEMA_VERSION = 2;
|
|
32
|
+
/**
|
|
33
|
+
* True when a sync finding is an ordinary, non-repairable hq-core upgrade.
|
|
34
|
+
* FAIL stays visible: that is a broken local core, not "a newer release exists".
|
|
35
|
+
*/
|
|
36
|
+
export function isOrdinaryCoreUpdateWarn(result) {
|
|
37
|
+
return result.checkId === "sync.update.core" && result.status === "WARN";
|
|
38
|
+
}
|
|
32
39
|
/** Assemble the machine-readable document from a completed run. */
|
|
33
40
|
export function buildDoctorJson(input) {
|
|
34
41
|
const results = [];
|
|
35
42
|
for (const run of input.families) {
|
|
36
43
|
for (const result of run.results) {
|
|
44
|
+
if (input.clientHealthReport === true && isOrdinaryCoreUpdateWarn(result)) {
|
|
45
|
+
continue;
|
|
46
|
+
}
|
|
37
47
|
results.push(toJsonResult(run.family.id, result, input.clientHealthReasonCodesEnabledCheckIds, input.clientHealthCheckStatusEnabledCheckIds));
|
|
38
48
|
}
|
|
39
49
|
}
|