@polka-codes/cli 0.9.76 → 0.9.78

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/index.js +15 -22
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -37660,7 +37660,7 @@ var {
37660
37660
  Help
37661
37661
  } = import__.default;
37662
37662
  // package.json
37663
- var version = "0.9.76";
37663
+ var version = "0.9.78";
37664
37664
 
37665
37665
  // src/commands/code.ts
37666
37666
  import { readFile as readFile4 } from "node:fs/promises";
@@ -64066,6 +64066,14 @@ var agentWorkflow = async (input, { step, tools, logger }) => {
64066
64066
  value: `Tool '${toolCall.toolName}' not found.`
64067
64067
  }
64068
64068
  });
64069
+ toolResults.push({
64070
+ toolCallId: toolCall.toolCallId,
64071
+ toolName: toolCall.toolName,
64072
+ output: {
64073
+ type: "error-text",
64074
+ value: `Error: Tool '${toolCall.toolName}' not found.`
64075
+ }
64076
+ });
64069
64077
  continue;
64070
64078
  }
64071
64079
  await event(`event-tool-use-${toolCall.toolName}-${toolCall.toolCallId}`, {
@@ -86060,10 +86068,7 @@ var fixWorkflow = async (input2, context) => {
86060
86068
  fetchUrl_default,
86061
86069
  readBinaryFile_default,
86062
86070
  removeFile_default,
86063
- renameFile_default,
86064
- readMemory_default,
86065
- updateMemory_default,
86066
- listMemoryTopics_default
86071
+ renameFile_default
86067
86072
  ];
86068
86073
  if (additionalTools?.search) {
86069
86074
  agentTools.push(additionalTools.search);
@@ -86147,16 +86152,7 @@ ${defaultContext}`;
86147
86152
  };
86148
86153
  }
86149
86154
  };
86150
- const agentTools = [
86151
- readFile_default,
86152
- listFiles_default,
86153
- searchFiles_default,
86154
- readBinaryFile_default,
86155
- fetchUrl_default,
86156
- listMemoryTopics_default,
86157
- readMemory_default,
86158
- updateMemory_default
86159
- ];
86155
+ const agentTools = [readFile_default, listFiles_default, searchFiles_default, readBinaryFile_default, fetchUrl_default];
86160
86156
  if (additionalTools?.search) {
86161
86157
  agentTools.push(additionalTools.search);
86162
86158
  }
@@ -86404,10 +86400,7 @@ ${fileContentString}`;
86404
86400
  fetchUrl_default,
86405
86401
  readBinaryFile_default,
86406
86402
  removeFile_default,
86407
- renameFile_default,
86408
- readMemory_default,
86409
- updateMemory_default,
86410
- listMemoryTopics_default
86403
+ renameFile_default
86411
86404
  ];
86412
86405
  if (mode === "interactive") {
86413
86406
  agentTools.push(askFollowupQuestion_default);
@@ -87010,7 +87003,7 @@ ${reviewSummary}`;
87010
87003
  task: fixTask,
87011
87004
  mode: "noninteractive",
87012
87005
  additionalInstructions: TODO_HANDLING_INSTRUCTIONS,
87013
- customTools: [getTodoItem_default, listTodoItems_default, updateTodoItem_default],
87006
+ customTools: [getTodoItem_default, listTodoItems_default, updateTodoItem_default, readMemory_default, updateMemory_default, listMemoryTopics_default],
87014
87007
  interactive: false,
87015
87008
  additionalTools
87016
87009
  }, context);
@@ -87083,7 +87076,7 @@ Focus only on this item, but use the plan for context.`;
87083
87076
  task: taskWithContext,
87084
87077
  mode: "noninteractive",
87085
87078
  additionalInstructions: TODO_HANDLING_INSTRUCTIONS,
87086
- customTools: [getTodoItem_default, listTodoItems_default, updateTodoItem_default],
87079
+ customTools: [getTodoItem_default, listTodoItems_default, updateTodoItem_default, readMemory_default, updateMemory_default, listMemoryTopics_default],
87087
87080
  interactive: false,
87088
87081
  additionalTools
87089
87082
  }, context);
@@ -87218,7 +87211,7 @@ ${reviewSummary}`;
87218
87211
  task: fixTask,
87219
87212
  mode: "noninteractive",
87220
87213
  additionalInstructions: TODO_HANDLING_INSTRUCTIONS,
87221
- customTools: [getTodoItem_default, listTodoItems_default, updateTodoItem_default],
87214
+ customTools: [getTodoItem_default, listTodoItems_default, updateTodoItem_default, readMemory_default, updateMemory_default, listMemoryTopics_default],
87222
87215
  interactive: false,
87223
87216
  additionalTools
87224
87217
  }, context);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polka-codes/cli",
3
- "version": "0.9.76",
3
+ "version": "0.9.78",
4
4
  "license": "AGPL-3.0",
5
5
  "author": "github@polka.codes",
6
6
  "type": "module",