@polka-codes/cli-shared 0.8.12 → 0.8.14

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 +6 -8
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -37265,11 +37265,11 @@ var delegate_default = {
37265
37265
  // ../core/src/tools/executeCommand.ts
37266
37266
  var toolInfo4 = {
37267
37267
  name: "execute_command",
37268
- 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.",
37268
+ 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.",
37269
37269
  parameters: [
37270
37270
  {
37271
37271
  name: "command",
37272
- description: "The exact command to run (valid for the current OS). It must be correctly formatted and free of harmful instructions.",
37272
+ description: "The exact command to run (valid for the current OS). It must be correctly formatted and free of harmful instructions.",
37273
37273
  required: true,
37274
37274
  usageValue: "your-command-here"
37275
37275
  },
@@ -38545,7 +38545,7 @@ var toolUsePrompt = (tools, toolNamePrefix) => {
38545
38545
 
38546
38546
  TOOL USE
38547
38547
 
38548
- 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.
38548
+ 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.
38549
38549
 
38550
38550
  # Tool Use Formatting
38551
38551
 
@@ -38611,18 +38611,16 @@ ${tools.map((tool) => {
38611
38611
 
38612
38612
  1. **Outline Your Thought Process**
38613
38613
  - 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.
38614
-
38615
38614
  2. **Wait for Feedback**
38616
38615
  - 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.
38617
-
38618
38616
  3. **Error Handling**
38619
38617
  - If a tool fails or produces an unexpected result, analyze the error, decide on an alternative approach or tool, and proceed carefully.
38620
-
38621
38618
  4. **Avoid Repetition**
38622
38619
  - Do not quote or repeat previous commands or prompts verbatim. Move the conversation forward by focusing on the latest required action.
38623
-
38624
38620
  5. **No Unnecessary Re-invocations**
38625
- - Only invoke the same tool again if a genuine need arises (e.g., different parameters or updated context).`;
38621
+ - Only invoke the same tool again if a genuine need arises (e.g., different parameters or updated context).
38622
+ 6. **Tool Call Limit**
38623
+ - Do not make more than 5 tool calls in a single message.`;
38626
38624
  };
38627
38625
  var agentsPrompt = (agents, name) => `
38628
38626
  ====
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polka-codes/cli-shared",
3
- "version": "0.8.12",
3
+ "version": "0.8.14",
4
4
  "license": "AGPL-3.0",
5
5
  "author": "github@polka.codes",
6
6
  "type": "module",