codeep 1.1.34 → 1.1.35

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.
@@ -312,17 +312,29 @@ async function executeAgentTask(task, dryRun = false) {
312
312
  // Update agent thinking
313
313
  const shortTarget = target.length > 50 ? '...' + target.slice(-47) : target;
314
314
  app.setAgentThinking(`${actionType}: ${shortTarget}`);
315
- // Set code preview for write/edit operations
315
+ // Set code preview and add chat message for write/edit operations
316
316
  if (actionType === 'write' && tool.parameters.content) {
317
+ const filePath = tool.parameters.path;
318
+ const ext = filePath.split('.').pop() || '';
319
+ app.addMessage({
320
+ role: 'system',
321
+ content: `**Write** \`${filePath}\`\n\n\`\`\`${ext}\n${tool.parameters.content}\n\`\`\``,
322
+ });
317
323
  app.setAgentCodePreview({
318
- path: tool.parameters.path,
324
+ path: filePath,
319
325
  actionType: 'write',
320
326
  content: tool.parameters.content,
321
327
  });
322
328
  }
323
329
  else if (actionType === 'edit' && tool.parameters.new_text) {
330
+ const filePath = tool.parameters.path;
331
+ const ext = filePath.split('.').pop() || '';
332
+ app.addMessage({
333
+ role: 'system',
334
+ content: `**Edit** \`${filePath}\`\n\n\`\`\`${ext}\n${tool.parameters.new_text}\n\`\`\``,
335
+ });
324
336
  app.setAgentCodePreview({
325
- path: tool.parameters.path,
337
+ path: filePath,
326
338
  actionType: 'edit',
327
339
  content: tool.parameters.new_text,
328
340
  oldContent: tool.parameters.old_text,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeep",
3
- "version": "1.1.34",
3
+ "version": "1.1.35",
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",