@polka-codes/cli 0.7.10 → 0.7.12

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 -21
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -24629,7 +24629,7 @@ var {
24629
24629
  Help
24630
24630
  } = import__.default;
24631
24631
  // package.json
24632
- var version = "0.7.10";
24632
+ var version = "0.7.12";
24633
24633
 
24634
24634
  // ../core/src/AiService/AiServiceBase.ts
24635
24635
  class AiServiceBase {
@@ -34568,26 +34568,20 @@ ${tools.map((tool) => {
34568
34568
  }).join("")}
34569
34569
  # Tool Use Guidelines
34570
34570
 
34571
- 1. **Thinking**: Use \`<thinking>\` XCM tag to clearly outline your thought process *before* using any tools. This includes:
34572
- * Assessing the current situation and available information.
34573
- * Defining specific goals and a plan to achieve them.
34574
- * Justifying the selection of a particular tool.
34575
- * Explaining how you intend to use the tool and what you expect to achieve.
34576
- 2. **Tool Selection**: Choose one tool at a time per message based on the task and its description. Do not assume a tool’s outcome without explicit confirmation.
34577
- 3. **Formatting**: Formulate tool use only in the specified XML format for each tool.
34578
- 4. **User Response**: Wait for the user’s response after each tool use. Do not proceed until you have their confirmation. The user’s response may include:
34579
- * Tool success or failure details
34580
- * Linter errors
34581
- * Terminal output or other relevant feedback
34582
- 5. **Conciseness**: Never repeat or quote the entire tool command in your final user-facing message. Summarize outcomes clearly and avoid echoing commands verbatim.
34583
- 6. **Brevity**: Respond concisely and move the conversation forward. Do not re-issue the same command or re-trigger tool use without necessity.
34584
- 7. **Iteration**: Follow these steps iteratively, confirming success and addressing issues as you go.
34585
- 8. **Error Handling**: If a tool returns an error, analyze the error message and adjust your approach accordingly. Consider alternative tools or strategies to achieve the desired outcome.
34586
-
34587
- By adhering to these guidelines:
34588
- - You maintain clarity without accidentally re-invoking tools.
34589
- - You confirm each step’s results before proceeding.
34590
- - You provide only the necessary information in user-facing replies to prevent re-interpretation as new commands.`;
34571
+ 1. **Outline Your Thought Process**
34572
+ - 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.
34573
+
34574
+ 2. **Wait for Feedback**
34575
+ - 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.
34576
+
34577
+ 3. **Error Handling**
34578
+ - If a tool fails or produces an unexpected result, analyze the error, decide on an alternative approach or tool, and proceed carefully.
34579
+
34580
+ 4. **Avoid Repetition**
34581
+ - Do not quote or repeat previous commands or prompts verbatim. Move the conversation forward by focusing on the latest required action.
34582
+
34583
+ 5. **No Unnecessary Re-invocations**
34584
+ - Only invoke the same tool again if a genuine need arises (e.g., different parameters or updated context).`;
34591
34585
  };
34592
34586
  var agentsPrompt = (agents, name2) => `
34593
34587
  ====
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polka-codes/cli",
3
- "version": "0.7.10",
3
+ "version": "0.7.12",
4
4
  "license": "AGPL-3.0",
5
5
  "author": "github@polka.codes",
6
6
  "type": "module",