@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @link-assistant/hive-mind
2
2
 
3
+ ## 1.46.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 84aacf7: fix: pass LINK_ASSISTANT_AGENT_VERBOSE env var to agent process for HTTP logging (#1521)
8
+
3
9
  ## 1.46.0
4
10
 
5
11
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@link-assistant/hive-mind",
3
- "version": "1.46.0",
3
+ "version": "1.46.1",
4
4
  "description": "AI-powered issue solver and hive mind for collaborative problem solving",
5
5
  "main": "src/hive.mjs",
6
6
  "type": "module",
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:', '')}`);