@indigoai-us/hq-cli 5.195.0 → 5.195.1
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,13 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [5.195.1] — 2026-09-25
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- A checkpoint run from inside an HQ lane no longer passes the lane's identity
|
|
10
|
+
(`HQ_LANE_ID`, `HQ_PROJECT_ID`, `HQ_STORY_ID`, `HQ_POLICY_WORKER_DIR`) to the
|
|
11
|
+
background sibling. Before, the lane drop-box hook delivered the lane's
|
|
12
|
+
operator messages to the sibling instead of the lane.
|
|
13
|
+
|
|
5
14
|
## [5.195.0] — 2026-09-25
|
|
6
15
|
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- Work Mesh transcript-watch quiet `session_end` for hook-covered sessions now
|
|
19
|
+
uses the shared sequence and counts hook turns (#818).
|
|
20
|
+
|
|
7
21
|
## [5.194.1] — 2026-09-25
|
|
8
22
|
|
|
9
23
|
### Fixed
|
|
10
24
|
|
|
11
|
-
- Work Mesh transcript-watch quiet `session_end` for hook-covered sessions now
|
|
12
25
|
- `hq core ontology apply` no longer creates a new entity that is probably an
|
|
13
26
|
existing one. A candidate whose alias is already another entity's name or
|
|
14
27
|
alias, or a person whose name contains every word of an existing person's
|
|
@@ -81,6 +81,8 @@ export declare function autoBackendPreference(): SpawnableBackend[];
|
|
|
81
81
|
* (Claude Code does) agrees with a host that does not.
|
|
82
82
|
*/
|
|
83
83
|
export declare function siblingEnabledBySetting(liveRoot: string): boolean;
|
|
84
|
+
/** The sibling's environment: the caller's, minus lane identity. */
|
|
85
|
+
export declare function siblingEnv(base: NodeJS.ProcessEnv, backend: SpawnableBackend): NodeJS.ProcessEnv;
|
|
84
86
|
export declare function siblingArgs(backend: SpawnableBackend, prompt: string): string[];
|
|
85
87
|
/** Attach the native checkpoint command to the hidden `hq core` group. */
|
|
86
88
|
export declare function registerCoreCheckpointCommand(core: Command): void;
|
|
@@ -780,6 +780,24 @@ function resolveBackend(requested, liveRoot) {
|
|
|
780
780
|
// failure is a weaker signal than running no maintenance sibling at all.
|
|
781
781
|
return available.find((name) => !crashed.has(name)) ?? available[0];
|
|
782
782
|
}
|
|
783
|
+
/**
|
|
784
|
+
* Lane identity a checkpoint caller may carry. The sibling is HQ maintenance,
|
|
785
|
+
* not the lane: with HQ_LANE_ID set, the lane drop-box hook hands the lane's
|
|
786
|
+
* operator messages to the sibling, and the lane never sees them.
|
|
787
|
+
*/
|
|
788
|
+
const LANE_ENV_KEYS = ["HQ_LANE_ID", "HQ_PROJECT_ID", "HQ_STORY_ID", "HQ_POLICY_WORKER_DIR"];
|
|
789
|
+
/** The sibling's environment: the caller's, minus lane identity. */
|
|
790
|
+
export function siblingEnv(base, backend) {
|
|
791
|
+
const vars = { ...base };
|
|
792
|
+
for (const name of LANE_ENV_KEYS)
|
|
793
|
+
delete vars[name];
|
|
794
|
+
// This prevents the scaffold Stop hook from recursively launching a
|
|
795
|
+
// sibling when the background agent itself finishes a turn.
|
|
796
|
+
vars.HQ_CHECKPOINT_SIBLING = "1";
|
|
797
|
+
if (backend === "claude")
|
|
798
|
+
vars.CLAUDE_EFFORT = CLAUDE_SIBLING_EFFORT;
|
|
799
|
+
return vars;
|
|
800
|
+
}
|
|
783
801
|
export function siblingArgs(backend, prompt) {
|
|
784
802
|
switch (backend) {
|
|
785
803
|
case "claude":
|
|
@@ -978,13 +996,7 @@ function startSibling(liveRoot, input, threadPath, backend) {
|
|
|
978
996
|
detached: true,
|
|
979
997
|
cwd: liveRoot,
|
|
980
998
|
stdio: ["ignore", logFd, logFd],
|
|
981
|
-
|
|
982
|
-
// sibling when the background agent itself finishes a turn.
|
|
983
|
-
env: {
|
|
984
|
-
...process.env,
|
|
985
|
-
HQ_CHECKPOINT_SIBLING: "1",
|
|
986
|
-
...(backend === "claude" ? { CLAUDE_EFFORT: CLAUDE_SIBLING_EFFORT } : {}),
|
|
987
|
-
},
|
|
999
|
+
env: siblingEnv(process.env, backend),
|
|
988
1000
|
});
|
|
989
1001
|
}
|
|
990
1002
|
finally {
|