codeep 1.1.6 → 1.1.7

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.
@@ -686,8 +686,9 @@ export async function runAgent(prompt, projectContext, options = {}) {
686
686
  // Actually execute the tool
687
687
  toolResult = executeTool(toolCall, projectContext.root || process.cwd());
688
688
  }
689
- // Debug
690
- process.stderr.write(`[AGENT DEBUG] Tool executed: ${toolCall.tool}, calling onToolResult: ${!!opts.onToolResult}\n`);
689
+ // Debug - write to file since Ink captures stdout/stderr
690
+ const fs = require('fs');
691
+ fs.appendFileSync('/tmp/codeep-debug.log', `[${new Date().toISOString()}] Tool executed: ${toolCall.tool}, onToolResult exists: ${!!opts.onToolResult}\n`);
691
692
  opts.onToolResult?.(toolResult, toolCall);
692
693
  // Log action
693
694
  const actionLog = createActionLog(toolCall, toolResult);
@@ -70,8 +70,9 @@ export function setAgentRunning(running, dryRun = false) {
70
70
  * Log agent action
71
71
  */
72
72
  export function logAction(type, target, result, details) {
73
- // Debug - use stderr to bypass Ink
74
- process.stderr.write(`[DEBUG] logAction called: ${type} ${target} ${result}\n`);
73
+ // Debug - write to file since Ink captures stdout/stderr
74
+ const fs = require('fs');
75
+ fs.appendFileSync('/tmp/codeep-debug.log', `[${new Date().toISOString()}] logAction called: ${type} ${target} ${result}\n`);
75
76
  stopSpinner(); // Stop spinner before logging
76
77
  const filename = target.split('/').pop() || target;
77
78
  const lineCount = details ? details.split('\n').length : 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeep",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "description": "AI-powered coding assistant built for the terminal. Multiple LLM providers, project-aware context, and a seamless development workflow.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",