@nomad-e/bluma-cli 0.0.66 → 0.0.68
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 +17 -7
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1662,6 +1662,15 @@ You are an interactive CLI agent specializing in software engineering tasks. REM
|
|
|
1662
1662
|
|
|
1663
1663
|
### CORE DIRECTIVES
|
|
1664
1664
|
|
|
1665
|
+
- Never end the turn prematurely.
|
|
1666
|
+
- Whenever an error is found, proactively fix it and keep fixing until there are no more errors.
|
|
1667
|
+
- Never request authorization to fix problems \u2014 the user will not be present to approve.
|
|
1668
|
+
- Enter a *correction loop* until the error is resolved and validated.
|
|
1669
|
+
- Do not switch tasks in \`to_do\` without marking the current one as completed.
|
|
1670
|
+
- Resolve \`to_do\` tasks **one at a time**, marking each as completed before moving to the next.
|
|
1671
|
+
- Never abandon or skip a task with errors \u2014 remain working on it until it is 100% completed and validated.
|
|
1672
|
+
- These rules override any implicit instructions to end early or wait for approval. The agent must act and keep correcting until each task is finished.
|
|
1673
|
+
|
|
1665
1674
|
1. **SEND THE FIRST MESSAGE:** As soon as you receive a task you must send a confirmation message in an informal but technical style. By sending this message your end-to-end shift begins without intervention and without interruption from anyone.
|
|
1666
1675
|
2. **TOOL-ONLY OPERATION:** All actions are performed via tool calls. You do not output free-form text.
|
|
1667
1676
|
3. **COMPLETE THE MISSION:** Your task is complete only when you call \`agent_end_turn\`. Execute all necessary steps to reach this final state.
|
|
@@ -1918,11 +1927,12 @@ ${isGitRepo ? `
|
|
|
1918
1927
|
|
|
1919
1928
|
2. **Partial commits**:
|
|
1920
1929
|
- Only perform a partial commit if the user explicitly specifies certain files or changes.
|
|
1921
|
-
-
|
|
1922
|
-
|
|
1930
|
+
- Always perform partial commits automatically when logically needed to keep commits atomic and meaningful.
|
|
1931
|
+
Select files or changes based on task scope without requiring user specification.
|
|
1932
|
+
\`\`\`bash
|
|
1923
1933
|
git diff --staged
|
|
1924
|
-
\`\`\`
|
|
1925
|
-
to review before confirming.
|
|
1934
|
+
\`\`\`
|
|
1935
|
+
to review before confirming internally.
|
|
1926
1936
|
|
|
1927
1937
|
3. **Commit message**:
|
|
1928
1938
|
- Automatically generate a commit message that follows the style and formatting of the last 3 commits (\`git log -n 3\`).
|
|
@@ -2054,7 +2064,7 @@ var BluMaAgent = class {
|
|
|
2054
2064
|
this.history = history;
|
|
2055
2065
|
if (this.history.length === 0) {
|
|
2056
2066
|
const systemPrompt = getUnifiedSystemPrompt();
|
|
2057
|
-
this.history.push({ role: "
|
|
2067
|
+
this.history.push({ role: "developer", content: systemPrompt });
|
|
2058
2068
|
await saveSessionHistory(this.sessionFile, this.history);
|
|
2059
2069
|
}
|
|
2060
2070
|
}
|
|
@@ -2185,7 +2195,7 @@ ${editData.error.display}`;
|
|
|
2185
2195
|
details: { violationContent: message.content }
|
|
2186
2196
|
});
|
|
2187
2197
|
this.eventBus.emit("backend_message", { type: "protocol_violation", message: feedback.message, content: message.content });
|
|
2188
|
-
this.history.push({ role: "
|
|
2198
|
+
this.history.push({ role: "developer", content: feedback.correction });
|
|
2189
2199
|
await this._continueConversation();
|
|
2190
2200
|
} else {
|
|
2191
2201
|
this.eventBus.emit("backend_message", { type: "info", message: "Agent is thinking... continuing reasoning cycle." });
|
|
@@ -2451,7 +2461,7 @@ var BaseLLMSubAgent = class {
|
|
|
2451
2461
|
const systemPromptContent = getInitPrompt();
|
|
2452
2462
|
if (this.history.length === 0) {
|
|
2453
2463
|
this.history.push({
|
|
2454
|
-
role: "
|
|
2464
|
+
role: "developer",
|
|
2455
2465
|
content: systemPromptContent
|
|
2456
2466
|
});
|
|
2457
2467
|
await saveSessionHistory(this.sessionFile, this.history);
|