@polka-codes/runner 0.8.12 → 0.8.13

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 +7 -9
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -32748,7 +32748,7 @@ var {
32748
32748
  Help
32749
32749
  } = import__.default;
32750
32750
  // package.json
32751
- var version = "0.8.12";
32751
+ var version = "0.8.13";
32752
32752
 
32753
32753
  // src/runner.ts
32754
32754
  import { execSync } from "node:child_process";
@@ -42531,11 +42531,11 @@ var delegate_default = {
42531
42531
  // ../core/src/tools/executeCommand.ts
42532
42532
  var toolInfo4 = {
42533
42533
  name: "execute_command",
42534
- description: "Run a single CLI command. The command is always executed in the project-root working directory (regardless of earlier commands). Prefer one-off shell commands over wrapper scripts for flexibility. After an `execute_command` call, no other tool calls are allowed in the same assistant response.",
42534
+ description: "Run a single CLI command. The command is always executed in the project-root working directory (regardless of earlier commands). Prefer one-off shell commands over wrapper scripts for flexibility. **IMPORTANT**: After an `execute_command` call, you MUST stop and NOT allowed to make further tool calls in the same message.",
42535
42535
  parameters: [
42536
42536
  {
42537
42537
  name: "command",
42538
- description: "The exact command to run (valid for the current OS). It must be correctly formatted and free of harmful instructions.",
42538
+ description: "The exact command to run (valid for the current OS). It must be correctly formatted and free of harmful instructions.",
42539
42539
  required: true,
42540
42540
  usageValue: "your-command-here"
42541
42541
  },
@@ -43811,7 +43811,7 @@ var toolUsePrompt = (tools, toolNamePrefix) => {
43811
43811
 
43812
43812
  TOOL USE
43813
43813
 
43814
- You have access to a set of tools that are executed upon the user's approval. You can use one tool per message, and will receive the result of that tool use in the user's response. You use tools step-by-step to accomplish a given task, with each tool use informed by the result of the previous tool use.
43814
+ You have access to a set of tools that are executed upon the user's approval. You can use up to 5 tool calls per message, and will receive the results of those tool uses in the user's response. You use tools step-by-step to accomplish a given task, with each tool use informed by the result of the previous tool use.
43815
43815
 
43816
43816
  # Tool Use Formatting
43817
43817
 
@@ -43877,18 +43877,16 @@ ${tools.map((tool) => {
43877
43877
 
43878
43878
  1. **Outline Your Thought Process**
43879
43879
  - Before using a tool, wrap your reasoning inside \`<thinking>\` tags. Be concise—just enough to clarify your plan and the rationale behind selecting a specific tool.
43880
-
43881
43880
  2. **Wait for Feedback**
43882
43881
  - After using a tool, wait for the user's response indicating success/failure or any output logs. Do not assume the result of a tool without explicit confirmation.
43883
-
43884
43882
  3. **Error Handling**
43885
43883
  - If a tool fails or produces an unexpected result, analyze the error, decide on an alternative approach or tool, and proceed carefully.
43886
-
43887
43884
  4. **Avoid Repetition**
43888
43885
  - Do not quote or repeat previous commands or prompts verbatim. Move the conversation forward by focusing on the latest required action.
43889
-
43890
43886
  5. **No Unnecessary Re-invocations**
43891
- - Only invoke the same tool again if a genuine need arises (e.g., different parameters or updated context).`;
43887
+ - Only invoke the same tool again if a genuine need arises (e.g., different parameters or updated context).
43888
+ 6. **Tool Call Limit**
43889
+ - Do not make more than 5 tool calls in a single message.`;
43892
43890
  };
43893
43891
  var agentsPrompt = (agents, name) => `
43894
43892
  ====
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polka-codes/runner",
3
- "version": "0.8.12",
3
+ "version": "0.8.13",
4
4
  "license": "AGPL-3.0",
5
5
  "author": "github@polka.codes",
6
6
  "type": "module",