@indigoai-us/hq-cli 5.342.4 → 5.342.5
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,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [5.342.5] — 2026-10-04
|
|
6
|
+
- Pass explicit hook stdin to bundled shell companions through a real pipe on Windows.
|
|
7
|
+
- Run the paired fast-route benchmark only when its executable or build inputs change.
|
|
8
|
+
- Limit `hq mcp serve` resident preloads to its request handler modules; hosted MCP client dependencies remain in the daemon process.
|
|
9
|
+
- Keep a bot's local identity config aligned with reissued credentials during `hq bot restore --all`, preventing heartbeat identity drift.
|
|
10
|
+
|
|
5
11
|
## [5.342.4] — 2026-10-04
|
|
6
12
|
|
|
7
13
|
## [5.342.3] — 2026-10-04
|
package/dist/commands/bot.js
CHANGED
|
@@ -1656,6 +1656,7 @@ async function repairLocalBot(name, api, bot, daemon) {
|
|
|
1656
1656
|
catch (err) {
|
|
1657
1657
|
throw credentialError(err, name);
|
|
1658
1658
|
}
|
|
1659
|
+
writeBotConfig(dir, { ...config, agentUid: bot.agentUid });
|
|
1659
1660
|
writeBotCreds(dir, {
|
|
1660
1661
|
username: reissued.identity.cognitoUsername,
|
|
1661
1662
|
secret: reissued.identity.secret,
|
|
@@ -15,11 +15,14 @@ export function registerCoreDeriveTriggerFactsCommand(core) {
|
|
|
15
15
|
.action(async (args = [], _options, commandContext) => {
|
|
16
16
|
if (!await coreNativeHookHelpersEnabled()) {
|
|
17
17
|
const root = liveRoot();
|
|
18
|
+
const stdin = process.platform === "win32" ? await readStdin() : undefined;
|
|
18
19
|
const result = runBundledScript({
|
|
19
20
|
asset: DERIVE_TRIGGER_FACTS_ASSET,
|
|
20
21
|
args: commandContext.args.length ? commandContext.args : args,
|
|
21
22
|
cwd: root,
|
|
22
23
|
hqRoot: root,
|
|
24
|
+
msysScriptPath: process.platform === "win32",
|
|
25
|
+
...(stdin !== undefined ? { stdin } : {}),
|
|
23
26
|
});
|
|
24
27
|
if (result.code !== 0)
|
|
25
28
|
process.exit(result.code);
|
|
@@ -44,4 +47,10 @@ export function registerCoreDeriveTriggerFactsCommand(core) {
|
|
|
44
47
|
});
|
|
45
48
|
describeCoreCommand(command, { execution: "native", asset: DERIVE_TRIGGER_FACTS_ASSET, root: "live" });
|
|
46
49
|
}
|
|
50
|
+
async function readStdin() {
|
|
51
|
+
const chunks = [];
|
|
52
|
+
for await (const chunk of process.stdin)
|
|
53
|
+
chunks.push(chunk);
|
|
54
|
+
return Buffer.concat(chunks).toString("utf8");
|
|
55
|
+
}
|
|
47
56
|
//# sourceMappingURL=core-derive-trigger-facts-command.js.map
|
package/dist/lib/bot/run.js
CHANGED
|
@@ -540,7 +540,7 @@ export async function runBot(deps) {
|
|
|
540
540
|
configuredAgentUid: config.agentUid,
|
|
541
541
|
...(err.tokenAgentUid ? { tokenAgentUid: err.tokenAgentUid } : {}),
|
|
542
542
|
agentUidSource: deps.agentUidSource ?? "config_file",
|
|
543
|
-
credsSource: deps.credsSource ?? "
|
|
543
|
+
credsSource: deps.credsSource ?? "explicit",
|
|
544
544
|
});
|
|
545
545
|
break;
|
|
546
546
|
}
|
|
@@ -1,19 +1,7 @@
|
|
|
1
1
|
/** Package imports reachable lazily from each resident command's runtime graph. */
|
|
2
2
|
export const RESIDENT_PACKAGE_MODULES = {
|
|
3
3
|
bot: ["../lib/flag-registry.js", "../commands/access.js", "../sentry.js", "open"],
|
|
4
|
-
mcp: [
|
|
5
|
-
"../lib/mcp/tools.js",
|
|
6
|
-
"../lib/mcp/prompts.js",
|
|
7
|
-
"../utils/cognito-session.js",
|
|
8
|
-
"../lib/daemon/mcp-oauth.js",
|
|
9
|
-
"../commands/access.js",
|
|
10
|
-
"../lib/flag-registry.js",
|
|
11
|
-
"@modelcontextprotocol/sdk/client/index.js",
|
|
12
|
-
"@modelcontextprotocol/sdk/client/streamableHttp.js",
|
|
13
|
-
"../sentry.js",
|
|
14
|
-
"open",
|
|
15
|
-
"./staged-npm-install.js",
|
|
16
|
-
],
|
|
4
|
+
mcp: ["../lib/mcp/tools.js", "../lib/mcp/prompts.js"],
|
|
17
5
|
};
|
|
18
6
|
const LOADERS = {
|
|
19
7
|
bot: [
|
|
@@ -25,15 +13,6 @@ const LOADERS = {
|
|
|
25
13
|
mcp: [
|
|
26
14
|
() => import("../lib/mcp/tools.js"),
|
|
27
15
|
() => import("../lib/mcp/prompts.js"),
|
|
28
|
-
() => import("../utils/cognito-session.js"),
|
|
29
|
-
() => import("../lib/daemon/mcp-oauth.js"),
|
|
30
|
-
() => import("../commands/access.js"),
|
|
31
|
-
() => import("../lib/flag-registry.js"),
|
|
32
|
-
() => import("@modelcontextprotocol/sdk/client/index.js"),
|
|
33
|
-
() => import("@modelcontextprotocol/sdk/client/streamableHttp.js"),
|
|
34
|
-
() => import("../sentry.js"),
|
|
35
|
-
() => import("open"),
|
|
36
|
-
() => import("./staged-npm-install.js"),
|
|
37
16
|
],
|
|
38
17
|
};
|
|
39
18
|
export class ResidentPackagePreloadError extends Error {
|
|
@@ -168,8 +168,8 @@ export function runBundledScript(opts) {
|
|
|
168
168
|
try {
|
|
169
169
|
if (opts.stdin !== undefined) {
|
|
170
170
|
// Some scaffold scripts reopen /dev/stdin by pathname. Node's spawnSync
|
|
171
|
-
// input pipe cannot be reopened through /dev/stdin on Linux,
|
|
172
|
-
//
|
|
171
|
+
// input pipe cannot be reopened through /dev/stdin on Git Bash or Linux,
|
|
172
|
+
// so supply a private regular file descriptor to preserve that ABI.
|
|
173
173
|
const sharedMemory = process.platform === "linux" && fs.existsSync("/dev/shm")
|
|
174
174
|
? "/dev/shm"
|
|
175
175
|
: os.tmpdir();
|