@link-assistant/hive-mind 1.46.0 → 1.46.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 +6 -0
- package/package.json +1 -1
- package/src/agent.lib.mjs +13 -0
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/agent.lib.mjs
CHANGED
|
@@ -508,9 +508,22 @@ export const executeAgentCommand = async params => {
|
|
|
508
508
|
try {
|
|
509
509
|
// Pipe the prompt file to agent via stdin
|
|
510
510
|
// Use agentArgs which includes --model and optionally --verbose
|
|
511
|
+
|
|
512
|
+
// Issue #1521: Build environment for agent process
|
|
513
|
+
// Pass LINK_ASSISTANT_AGENT_VERBOSE env var when --verbose is enabled
|
|
514
|
+
// This ensures Flag.LINK_ASSISTANT_AGENT_VERBOSE is true at module load time inside the agent,
|
|
515
|
+
// which is required for HTTP request/response logging to work.
|
|
516
|
+
// The --verbose CLI flag alone is not sufficient because the agent's Flag module
|
|
517
|
+
// reads the env var at initialization, before yargs middleware calls Flag.setVerbose().
|
|
518
|
+
const agentEnv = { ...process.env };
|
|
519
|
+
if (argv.verbose) {
|
|
520
|
+
agentEnv.LINK_ASSISTANT_AGENT_VERBOSE = 'true';
|
|
521
|
+
}
|
|
522
|
+
|
|
511
523
|
execCommand = $({
|
|
512
524
|
cwd: tempDir,
|
|
513
525
|
mirror: false,
|
|
526
|
+
env: agentEnv,
|
|
514
527
|
})`cat ${promptFile} | ${agentPath} ${agentArgs}`;
|
|
515
528
|
|
|
516
529
|
await log(`${formatAligned('📋', 'Command details:', '')}`);
|