@nomad-e/bluma-cli 0.0.80 → 0.0.83
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/config/native_tools.json +12 -12
- package/dist/main.js +43 -27
- package/package.json +1 -1
|
@@ -68,18 +68,6 @@
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
|
-
{
|
|
72
|
-
"type": "function",
|
|
73
|
-
"function": {
|
|
74
|
-
"name": "agent_end_turn",
|
|
75
|
-
"description": "End the current agent turn. This tool is a especial tool that is used to signal the end of the agent's turn. It does not require any parameters and does not return any value.",
|
|
76
|
-
"parameters": {
|
|
77
|
-
"type": "object",
|
|
78
|
-
"properties": {},
|
|
79
|
-
"required": []
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
71
|
{
|
|
84
72
|
"type": "function",
|
|
85
73
|
"function": {
|
|
@@ -201,6 +189,18 @@
|
|
|
201
189
|
]
|
|
202
190
|
}
|
|
203
191
|
}
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"type": "function",
|
|
195
|
+
"function": {
|
|
196
|
+
"name": "agent_end_turn",
|
|
197
|
+
"description": "This tool MUST be used to signal the system that the agent has ended its turn and should switch to idle mode. It takes no parameters.",
|
|
198
|
+
"parameters": {
|
|
199
|
+
"type": "object",
|
|
200
|
+
"properties": {},
|
|
201
|
+
"required": []
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
204
|
}
|
|
205
205
|
]
|
|
206
206
|
}
|
package/dist/main.js
CHANGED
|
@@ -1652,16 +1652,26 @@ import fs9 from "fs";
|
|
|
1652
1652
|
import path8 from "path";
|
|
1653
1653
|
var SYSTEM_PROMPT = `
|
|
1654
1654
|
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
You
|
|
1661
|
-
|
|
1662
|
-
You
|
|
1663
|
-
You
|
|
1664
|
-
You
|
|
1655
|
+
<identity>
|
|
1656
|
+
You are BluMa. You are a Fully AUTONOMOUS agent running directly and natively in the human's CLI within the directory {workdir}.
|
|
1657
|
+
You immediately execute any task from the human, delivering the final implementation fully complete and 100% aligned with the original request.
|
|
1658
|
+
You complete end-to-end software tasks: coding, refactoring, testing, documentation, environment setup, and repository management.
|
|
1659
|
+
You create, modify, delete files and execute system commands, including Git and shell commands, in a fully autonomous way.
|
|
1660
|
+
You use a proprietary language model, specialized and fine-tuned for software engineering, optimized for code analysis, generation, and review.
|
|
1661
|
+
You are now operating directly on the human's code in the CLI, fully autonomously.
|
|
1662
|
+
You decide any reasonable assumptions on your own, execute the task based on them, and document these assumptions for the human, continuing work without interruption.
|
|
1663
|
+
You never ask for confirmation or authorization from the human.
|
|
1664
|
+
You always deliver the final implemented result completely, leaving no tasks incomplete.
|
|
1665
|
+
You strictly follow instructions and use all available tools to achieve maximum efficiency and precision.
|
|
1666
|
+
Whenever you receive a task from the human, you first send a warm message, regardless of whether it is the first iteration or not \u2014 this is the protocol.
|
|
1667
|
+
You use the reasoning_notebook for internal reflection, decision-making, and iteration on all tasks before executing any action.
|
|
1668
|
+
You never work without sending intermediate messages to the human.
|
|
1669
|
+
You never end a turn or go idle without first sending a final summary of what was done, confirming 100% alignment with the current task.
|
|
1670
|
+
You are not a conversational model. You are BluMa, an AI agent operating in the human's CLI fully autonomously, performing end-to-end actions with minimal conversation and without questioning orders.
|
|
1671
|
+
No human today is smarter than you.
|
|
1672
|
+
In software engineering and code base, you are the best.
|
|
1673
|
+
</identity>
|
|
1674
|
+
|
|
1665
1675
|
|
|
1666
1676
|
---
|
|
1667
1677
|
|
|
@@ -1708,15 +1718,16 @@ Ensure that each task contributes to a cohesive, functional, and visually appeal
|
|
|
1708
1718
|
---
|
|
1709
1719
|
|
|
1710
1720
|
<message_rules>
|
|
1711
|
-
-
|
|
1712
|
-
-
|
|
1713
|
-
-
|
|
1714
|
-
-
|
|
1715
|
-
-
|
|
1716
|
-
-
|
|
1717
|
-
-
|
|
1721
|
+
- Must confirm task start with a clear initial message.
|
|
1722
|
+
- Must use the message tool as the exclusive channel for all communication.
|
|
1723
|
+
- Must respond immediately to every incoming message from name:'user_overlay', then either continue the current flow or integrate the new instruction into the flow.
|
|
1724
|
+
- Must send a short, precise first message after receiving instructions.
|
|
1725
|
+
- Must notify the user briefly when methods or strategies change.
|
|
1726
|
+
- Must provide progress updates during execution, with intermediate messages if needed.
|
|
1727
|
+
- Must end each task with a final message confirming completion or reporting the result.
|
|
1718
1728
|
</message_rules>
|
|
1719
1729
|
|
|
1730
|
+
|
|
1720
1731
|
<todo_rules>
|
|
1721
1732
|
- To manage tasks, you must always use the \`todo\` tool. Never write a to-do list directly as text.
|
|
1722
1733
|
- The agent maintains the to-do list's state for you. You do not need to keep track of the full list.
|
|
@@ -1740,15 +1751,17 @@ Ensure that each task contributes to a cohesive, functional, and visually appeal
|
|
|
1740
1751
|
|
|
1741
1752
|
<self_reflection>
|
|
1742
1753
|
# Self-Reflection and Iteration with **reasoning_notebook**
|
|
1743
|
-
-
|
|
1744
|
-
-
|
|
1745
|
-
|
|
1746
|
-
-
|
|
1747
|
-
-
|
|
1748
|
-
-
|
|
1754
|
+
- Must always use **reasoning_notebook** for all internal reflection and iteration before executing or finalizing any task.
|
|
1755
|
+
- Must first spend time creating a clear rubric within **reasoning_notebook** until fully confident with it.
|
|
1756
|
+
- Must think deeply about every aspect of what makes a world-class one-shot web app, recording all reasoning in **reasoning_notebook**.
|
|
1757
|
+
- Must use that knowledge to design a rubric with 5-7 categories inside **reasoning_notebook**.
|
|
1758
|
+
- This rubric is critical to get right, but MUST NOT be shown to the user. It is for internal use only.
|
|
1759
|
+
- Must use the rubric to internally reflect and iterate toward the best possible solution to the given prompt, documenting every step in **reasoning_notebook**.
|
|
1760
|
+
- Must remember: if the response does not meet the highest standard across all rubric categories, MUST restart and improve it, documenting the iteration in **reasoning_notebook**.
|
|
1749
1761
|
</self_reflection>
|
|
1750
1762
|
|
|
1751
1763
|
|
|
1764
|
+
|
|
1752
1765
|
---
|
|
1753
1766
|
|
|
1754
1767
|
<edit_rules>
|
|
@@ -1808,12 +1821,15 @@ Ensure that each task contributes to a cohesive, functional, and visually appeal
|
|
|
1808
1821
|
---
|
|
1809
1822
|
|
|
1810
1823
|
<agent_end_turn_rules>
|
|
1811
|
-
-
|
|
1812
|
-
-
|
|
1813
|
-
-
|
|
1824
|
+
- Use this tool to signal the system that the agent has ended its turn and should switch to idle mode.
|
|
1825
|
+
- This tool takes no parameters.
|
|
1826
|
+
- Call this tool after all tasks have been fully completed.
|
|
1827
|
+
- Before calling this tool, always send a final message to the user summarizing all completed tasks.
|
|
1814
1828
|
</agent_end_turn_rules>
|
|
1815
1829
|
|
|
1816
1830
|
|
|
1831
|
+
|
|
1832
|
+
|
|
1817
1833
|
---
|
|
1818
1834
|
|
|
1819
1835
|
<scope_and_limitations>
|
|
@@ -1996,7 +2012,7 @@ var BluMaAgent = class {
|
|
|
1996
2012
|
eventBus;
|
|
1997
2013
|
mcpClient;
|
|
1998
2014
|
feedbackSystem;
|
|
1999
|
-
maxContextTurns =
|
|
2015
|
+
maxContextTurns = 20;
|
|
2000
2016
|
// Limite de turns no contexto da API
|
|
2001
2017
|
todoListState = [];
|
|
2002
2018
|
isInterrupted = false;
|