@polka-codes/core 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.
@@ -1523,10 +1523,10 @@ export { _default_4 as delegate_alias_2 }
1523
1523
  declare const _default_5: {
1524
1524
  handler: ToolHandler<{
1525
1525
  readonly name: "execute_command";
1526
- readonly 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.";
1526
+ readonly 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.";
1527
1527
  readonly parameters: [{
1528
1528
  readonly name: "command";
1529
- readonly description: "The exact command to run (valid for the current OS). It must be correctly formatted and free of harmful instructions.";
1529
+ readonly description: "The exact command to run (valid for the current OS). It must be correctly formatted and free of harmful instructions.";
1530
1530
  readonly required: true;
1531
1531
  readonly usageValue: "your-command-here";
1532
1532
  }, {
@@ -1549,10 +1549,10 @@ declare const _default_5: {
1549
1549
  }, CommandProvider>;
1550
1550
  isAvailable: (provider: CommandProvider) => boolean;
1551
1551
  name: "execute_command";
1552
- 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.";
1552
+ 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.";
1553
1553
  parameters: [{
1554
1554
  readonly name: "command";
1555
- readonly description: "The exact command to run (valid for the current OS). It must be correctly formatted and free of harmful instructions.";
1555
+ readonly description: "The exact command to run (valid for the current OS). It must be correctly formatted and free of harmful instructions.";
1556
1556
  readonly required: true;
1557
1557
  readonly usageValue: "your-command-here";
1558
1558
  }, {
@@ -3238,10 +3238,10 @@ export declare const toolInfo_alias_3: {
3238
3238
 
3239
3239
  export declare const toolInfo_alias_4: {
3240
3240
  readonly name: "execute_command";
3241
- readonly 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.";
3241
+ readonly 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.";
3242
3242
  readonly parameters: [{
3243
3243
  readonly name: "command";
3244
- readonly description: "The exact command to run (valid for the current OS). It must be correctly formatted and free of harmful instructions.";
3244
+ readonly description: "The exact command to run (valid for the current OS). It must be correctly formatted and free of harmful instructions.";
3245
3245
  readonly required: true;
3246
3246
  readonly usageValue: "your-command-here";
3247
3247
  }, {
package/dist/index.js CHANGED
@@ -1401,11 +1401,11 @@ var delegate_default = {
1401
1401
  // src/tools/executeCommand.ts
1402
1402
  var toolInfo4 = {
1403
1403
  name: "execute_command",
1404
- 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.",
1404
+ 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.",
1405
1405
  parameters: [
1406
1406
  {
1407
1407
  name: "command",
1408
- description: "The exact command to run (valid for the current OS). It must be correctly formatted and free of harmful instructions.",
1408
+ description: "The exact command to run (valid for the current OS). It must be correctly formatted and free of harmful instructions.",
1409
1409
  required: true,
1410
1410
  usageValue: "your-command-here"
1411
1411
  },
@@ -2678,7 +2678,7 @@ var toolUsePrompt = (tools, toolNamePrefix) => {
2678
2678
 
2679
2679
  TOOL USE
2680
2680
 
2681
- 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.
2681
+ 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.
2682
2682
 
2683
2683
  # Tool Use Formatting
2684
2684
 
@@ -2743,18 +2743,16 @@ ${tools.map((tool) => {
2743
2743
 
2744
2744
  1. **Outline Your Thought Process**
2745
2745
  - Before using a tool, wrap your reasoning inside \`<thinking>\` tags. Be concise\u2014just enough to clarify your plan and the rationale behind selecting a specific tool.
2746
-
2747
2746
  2. **Wait for Feedback**
2748
2747
  - 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.
2749
-
2750
2748
  3. **Error Handling**
2751
2749
  - If a tool fails or produces an unexpected result, analyze the error, decide on an alternative approach or tool, and proceed carefully.
2752
-
2753
2750
  4. **Avoid Repetition**
2754
2751
  - Do not quote or repeat previous commands or prompts verbatim. Move the conversation forward by focusing on the latest required action.
2755
-
2756
2752
  5. **No Unnecessary Re-invocations**
2757
- - Only invoke the same tool again if a genuine need arises (e.g., different parameters or updated context).`;
2753
+ - Only invoke the same tool again if a genuine need arises (e.g., different parameters or updated context).
2754
+ 6. **Tool Call Limit**
2755
+ - Do not make more than 5 tool calls in a single message.`;
2758
2756
  };
2759
2757
  var agentsPrompt = (agents, name) => `
2760
2758
  ====
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polka-codes/core",
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",