codeep 1.0.60 → 1.0.61

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.
Files changed (2) hide show
  1. package/dist/app.js +27 -7
  2. package/package.json +1 -1
package/dist/app.js CHANGED
@@ -273,14 +273,34 @@ export const App = () => {
273
273
  setAgentIteration(iteration);
274
274
  },
275
275
  onToolCall: (tool) => {
276
- // Create a placeholder action - will be updated by onToolResult
277
- const placeholderResult = {
278
- success: true,
279
- output: '',
280
- tool: tool.tool,
281
- parameters: tool.parameters,
276
+ // Create action log with content for live code preview
277
+ // For write/edit actions, include content immediately so it shows while agent works
278
+ const toolName = tool.tool.toLowerCase().replace(/-/g, '_');
279
+ let details;
280
+ if (toolName === 'write_file' && tool.parameters.content) {
281
+ details = tool.parameters.content;
282
+ }
283
+ else if (toolName === 'edit_file' && tool.parameters.new_text) {
284
+ details = tool.parameters.new_text;
285
+ }
286
+ const actionLog = {
287
+ type: toolName === 'write_file' ? 'write' :
288
+ toolName === 'edit_file' ? 'edit' :
289
+ toolName === 'read_file' ? 'read' :
290
+ toolName === 'delete_file' ? 'delete' :
291
+ toolName === 'execute_command' ? 'command' :
292
+ toolName === 'search_code' ? 'search' :
293
+ toolName === 'list_files' ? 'list' :
294
+ toolName === 'create_directory' ? 'mkdir' :
295
+ toolName === 'fetch_url' ? 'fetch' : 'command',
296
+ target: tool.parameters.path ||
297
+ tool.parameters.command ||
298
+ tool.parameters.pattern ||
299
+ tool.parameters.url || 'unknown',
300
+ result: 'success', // Will be updated by onToolResult
301
+ details,
302
+ timestamp: Date.now(),
282
303
  };
283
- const actionLog = createActionLog(tool, placeholderResult);
284
304
  setAgentActions(prev => [...prev, actionLog]);
285
305
  },
286
306
  onToolResult: (result, toolCall) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeep",
3
- "version": "1.0.60",
3
+ "version": "1.0.61",
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",