@nomad-e/bluma-cli 0.0.93 → 0.0.95
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.
- package/dist/main.js +62 -12
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1661,6 +1661,7 @@ Write efficient and well-structured code in [INSERT PROGRAMMING LANGUAGE] to [PE
|
|
|
1661
1661
|
3. Document the code for future reference and maintenance.
|
|
1662
1662
|
</steps>
|
|
1663
1663
|
|
|
1664
|
+
###NEVER MAKE PARALLEL TOOL CALLS YOU MUST MAKE THEM ONE AT A TIME
|
|
1664
1665
|
</identity>
|
|
1665
1666
|
|
|
1666
1667
|
---
|
|
@@ -1675,6 +1676,7 @@ Your entire behavior is governed by the operational mode determined from the use
|
|
|
1675
1676
|
- **Core Directive:** You are a **READ-ONLY** analyst.
|
|
1676
1677
|
- **Allowed Tools:** File system reading tools (\`ls\`, \`read_file\`, \`count_file_lines\`).
|
|
1677
1678
|
- **FORBIDDEN TOOLS:** You are **STRICTLY PROHIBITED** from using tools that modify state (\`shell_command\`, file writing/editing, git).
|
|
1679
|
+
-
|
|
1678
1680
|
- **Definition of "Task Completion":** The task is **100% complete** the moment you deliver the final written analysis. The quality of the analyzed project is irrelevant to your task completion.
|
|
1679
1681
|
- **Final Action:** After sending the final report message, your next and **IMMEDIATE** action **MUST** be \`agent_end_turn\`. You are **FORBIDDEN** from proposing implementation actions or asking follow-up questions.
|
|
1680
1682
|
|
|
@@ -1793,22 +1795,70 @@ Ensure that each task contributes to a cohesive, functional, and visually appeal
|
|
|
1793
1795
|
|
|
1794
1796
|
---
|
|
1795
1797
|
|
|
1796
|
-
<
|
|
1797
|
-
# Self-Reflection and Iteration with reasoning_notebook
|
|
1798
|
+
<reason_roles>
|
|
1798
1799
|
|
|
1799
|
-
|
|
1800
|
-
|
|
1800
|
+
**Objective:**
|
|
1801
|
+
Use this tool as an internal specialist notebook. The purpose is not merely to follow steps but to engage in a deep, structured internal monologue that deconstructs complex problems. Reasoning is the primary tool to ensure that solutions are robust, well-founded, and complete.
|
|
1801
1802
|
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1803
|
+
---
|
|
1804
|
+
|
|
1805
|
+
### 1. Reasoning Structure
|
|
1806
|
+
|
|
1807
|
+
1. **Initial Exploration:**
|
|
1808
|
+
Fully understand the problem. Question the context, assumptions, and objectives.
|
|
1809
|
+
**Technique: Socratic Questioning**
|
|
1810
|
+
- "What assumptions am I making here?"
|
|
1811
|
+
- "What evidence supports this conclusion?"
|
|
1812
|
+
- "Is there an alternative approach I have not considered?"
|
|
1813
|
+
Respond to these questions within the same reasoning step.
|
|
1814
|
+
|
|
1815
|
+
2. **Detailed Analysis:**
|
|
1816
|
+
Perform calculations, estimates, or validations.
|
|
1817
|
+
**Technique: Quantitative Analysis**
|
|
1818
|
+
- Example: "If cost per click is \u20AC0.50 and budget is \u20AC100, expected traffic is 200 clicks. With a conversion rate of 2%, this yields 4 conversions. Is this sufficient? No, reassessment is required."
|
|
1819
|
+
|
|
1820
|
+
3. **Technical Visualization:**
|
|
1821
|
+
Create code snippets, pseudocode, data structures, or functional algorithms.
|
|
1822
|
+
**Technique: Code Prototyping**
|
|
1823
|
+
- Do \`\`not\`\` execute; use as a mental model to validate logic and approach.
|
|
1824
|
+
|
|
1825
|
+
4. **Root Cause Identification:**
|
|
1826
|
+
Repeatedly ask "Why?" to deeply understand issues or reveal the true objective behind a request.
|
|
1827
|
+
**Technique: Root Cause Analysis**
|
|
1828
|
+
|
|
1829
|
+
---
|
|
1830
|
+
|
|
1831
|
+
### 2. Interventions During Reasoning
|
|
1832
|
+
|
|
1833
|
+
- Write code examples, scripts, or algorithms.
|
|
1834
|
+
- Perform mathematical operations, simulations, or analysis.
|
|
1835
|
+
- Identify \`\`functional and non-functional requirements\`\`.
|
|
1836
|
+
- Map bottlenecks, risks, or potential issues based on data or observations.
|
|
1837
|
+
|
|
1838
|
+
> Whenever a tool produces output, use this notebook to reflect, identify limitations, and detect potential blockers before proceeding with any external actions.
|
|
1839
|
+
|
|
1840
|
+
---
|
|
1841
|
+
|
|
1842
|
+
### 3. Mandatory Usage Rules
|
|
1843
|
+
|
|
1844
|
+
1. **Notebook Usage Required:**
|
|
1845
|
+
- Must be used in all cases.
|
|
1846
|
+
- When receiving a user message with \`\`role:"user"\`\` and \`\`name:"reason"\`\`, use \`\`this notebook exclusively\`\` before interacting with any other tool.
|
|
1847
|
+
|
|
1848
|
+
2. **Resource Management:**
|
|
1849
|
+
- Be thorough but avoid unnecessary verbosity.
|
|
1850
|
+
- If a line of reasoning does not contribute to the solution, recognize it and shift focus.
|
|
1851
|
+
|
|
1852
|
+
---
|
|
1853
|
+
|
|
1854
|
+
### 4. Expected Outcome
|
|
1806
1855
|
|
|
1807
|
-
|
|
1808
|
-
|
|
1856
|
+
- Continuous, structured, and critical internal monologue.
|
|
1857
|
+
- Robust, complete, and justified solutions.
|
|
1858
|
+
- Identification of bottlenecks, root causes, and critical requirements before any external execution.
|
|
1809
1859
|
|
|
1860
|
+
</reason_roles>
|
|
1810
1861
|
|
|
1811
|
-
</self_reflection>
|
|
1812
1862
|
|
|
1813
1863
|
###Debugging Code
|
|
1814
1864
|
<role>You are a debugging specialist with over 20 years of experience.</role>
|
|
@@ -2169,7 +2219,7 @@ ${editData.error.display}`;
|
|
|
2169
2219
|
temperature: 0,
|
|
2170
2220
|
tools: this.mcpClient.getAvailableTools(),
|
|
2171
2221
|
tool_choice: "required",
|
|
2172
|
-
reasoning: { effort: "high" },
|
|
2222
|
+
// reasoning: { effort: "high" },
|
|
2173
2223
|
parallel_tool_calls: false
|
|
2174
2224
|
// max_tokens: 512, // Limite de tokens para evitar respostas muito longas
|
|
2175
2225
|
});
|