@indigoai-us/hq-cli 5.345.103 → 5.345.104
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
CHANGED
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
-
## [5.345.
|
|
5
|
+
## [5.345.104] — 2026-10-12
|
|
6
|
+
- Session-start health no longer files a leftover personal-files journal
|
|
7
|
+
warning plus an ordinary HQ Core upgrade as failed doctor repairs.
|
|
8
|
+
`hq doctor --json` drops both leftover warnings, including from its
|
|
9
|
+
summary; `hq doctor` still prints them.
|
|
6
10
|
- On Macs, idle `hq lanes` work no longer sits queued on the memory throttle
|
|
7
11
|
just because reclaimable cache made free RAM look too low.
|
|
8
12
|
|
|
@@ -106,13 +106,14 @@ export interface BuildDoctorJsonInput {
|
|
|
106
106
|
clientHealthCheckStatusEnabledCheckIds?: ReadonlySet<string>;
|
|
107
107
|
/**
|
|
108
108
|
* JSON consumed by the SessionStart health hook (`--client-health-report`).
|
|
109
|
-
* Ordinary hq-core upgrade WARNs
|
|
110
|
-
* (`--json` and `--client-health-report`),
|
|
111
|
-
* `--fix` cannot apply a release, and
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
109
|
+
* Ordinary hq-core upgrade WARNs and leftover `sync.journal.personal` WARNs
|
|
110
|
+
* are omitted from every JSON document (`--json` and `--client-health-report`),
|
|
111
|
+
* including `summary` tallies: `--fix` cannot apply a release, and the leftover
|
|
112
|
+
* personal shard is not a live sync target. Both current hooks and older ones
|
|
113
|
+
* that only call `hq doctor --json` treated those leftover WARNs as unrepaired
|
|
114
|
+
* failures. Human `hq doctor` still prints them. Company journals this `--fix`
|
|
115
|
+
* pass did not try to refresh are omitted only from `--client-health-report`:
|
|
116
|
+
* the repair cap leaves them for a later session.
|
|
116
117
|
*/
|
|
117
118
|
clientHealthReport?: boolean;
|
|
118
119
|
/** Clock for the leftover-journal freshness window. Default: `Date.now`. */
|
|
@@ -129,6 +130,17 @@ export declare function isOrdinaryCoreUpdateWarn(result: {
|
|
|
129
130
|
checkId: string;
|
|
130
131
|
status: DoctorStatus;
|
|
131
132
|
}): boolean;
|
|
133
|
+
/**
|
|
134
|
+
* True when doctor still WARNs on the leftover `personal` journal shard.
|
|
135
|
+
* That file is not the live personal-files target; `--fix` refreshes the vault
|
|
136
|
+
* journal instead. JSON omits the WARN so older `--json` health hooks do not
|
|
137
|
+
* file it as a failed repair. FAIL stays visible. NA leftover rows stay in
|
|
138
|
+
* JSON so operators can still see the unused shard.
|
|
139
|
+
*/
|
|
140
|
+
export declare function isLeftoverPersonalJournalWarn(result: {
|
|
141
|
+
checkId: string;
|
|
142
|
+
status: DoctorStatus;
|
|
143
|
+
}): boolean;
|
|
132
144
|
/** Assemble the machine-readable document from a completed run. */
|
|
133
145
|
export declare function buildDoctorJson(input: BuildDoctorJsonInput): DoctorJsonDocument;
|
|
134
146
|
/** Serialise the document as pretty-printed JSON with a trailing newline. */
|
|
@@ -40,6 +40,19 @@ export const DOCTOR_JSON_SCHEMA_VERSION = 2;
|
|
|
40
40
|
export function isOrdinaryCoreUpdateWarn(result) {
|
|
41
41
|
return result.checkId === "sync.update.core" && result.status === "WARN";
|
|
42
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* True when doctor still WARNs on the leftover `personal` journal shard.
|
|
45
|
+
* That file is not the live personal-files target; `--fix` refreshes the vault
|
|
46
|
+
* journal instead. JSON omits the WARN so older `--json` health hooks do not
|
|
47
|
+
* file it as a failed repair. FAIL stays visible. NA leftover rows stay in
|
|
48
|
+
* JSON so operators can still see the unused shard.
|
|
49
|
+
*/
|
|
50
|
+
export function isLeftoverPersonalJournalWarn(result) {
|
|
51
|
+
return result.checkId === "sync.journal.personal" && result.status === "WARN";
|
|
52
|
+
}
|
|
53
|
+
function omitFromDoctorJson(result) {
|
|
54
|
+
return isOrdinaryCoreUpdateWarn(result) || isLeftoverPersonalJournalWarn(result);
|
|
55
|
+
}
|
|
43
56
|
/** Tally the results that actually ship in the JSON document. */
|
|
44
57
|
function summarizeJsonResults(results) {
|
|
45
58
|
const counts = emptyStatusCounts();
|
|
@@ -55,7 +68,7 @@ export function buildDoctorJson(input) {
|
|
|
55
68
|
const results = [];
|
|
56
69
|
for (const run of input.families) {
|
|
57
70
|
for (const result of run.results) {
|
|
58
|
-
if (
|
|
71
|
+
if (omitFromDoctorJson(result)) {
|
|
59
72
|
continue;
|
|
60
73
|
}
|
|
61
74
|
if (input.clientHealthReport === true &&
|