@nomad-e/bluma-cli 0.0.58 → 0.0.59
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 +48 -14
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1896,20 +1896,54 @@ function getUnifiedSystemPrompt() {
|
|
|
1896
1896
|
---
|
|
1897
1897
|
|
|
1898
1898
|
${isGitRepo ? `
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1899
|
+
## GIT USAGE GUIDELINES \u2014 AUTONOMOUS AGENT MODE
|
|
1900
|
+
|
|
1901
|
+
### PERMISSIONS
|
|
1902
|
+
- The agent **is authorized** to execute \`git\` commands directly in the local repository.
|
|
1903
|
+
- The agent **may** add (\`git add\`), stage, and commit (\`git commit\`) changes without prior confirmation, **as long as** it strictly follows the rules below.
|
|
1904
|
+
- The agent **must not** execute \`git push\` or any command that sends changes to a remote repository without explicit user instruction.
|
|
1905
|
+
|
|
1906
|
+
---
|
|
1907
|
+
|
|
1908
|
+
### MANDATORY PROCEDURE
|
|
1909
|
+
|
|
1910
|
+
1. **Before any commit**: execute
|
|
1911
|
+
\`\`\`bash
|
|
1912
|
+
git status && git diff HEAD && git log -n 3
|
|
1913
|
+
\`\`\`
|
|
1914
|
+
- If there are modified, untracked, or unstaged files, execute:
|
|
1915
|
+
\`\`\`bash
|
|
1916
|
+
git add <files>
|
|
1917
|
+
\`\`\`
|
|
1918
|
+
to include them, unless the user specifies which files to include.
|
|
1919
|
+
|
|
1920
|
+
2. **Partial commits**:
|
|
1921
|
+
- Only perform a partial commit if the user explicitly specifies certain files or changes.
|
|
1922
|
+
- In that case, execute:
|
|
1923
|
+
\`\`\`bash
|
|
1924
|
+
git diff --staged
|
|
1925
|
+
\`\`\`
|
|
1926
|
+
to review before confirming.
|
|
1927
|
+
|
|
1928
|
+
3. **Commit message**:
|
|
1929
|
+
- Automatically generate a commit message that follows the style and formatting of the last 3 commits (\`git log -n 3\`).
|
|
1930
|
+
- Messages should be clear, concise, and focus on **why** the change was made, not just **what** was changed.
|
|
1931
|
+
- Never ask the user to provide the full commit message \u2014 the agent must propose an initial version.
|
|
1932
|
+
|
|
1933
|
+
4. **After the commit**:
|
|
1934
|
+
- Execute:
|
|
1935
|
+
\`\`\`bash
|
|
1936
|
+
git status
|
|
1937
|
+
\`\`\`
|
|
1938
|
+
to confirm success.
|
|
1939
|
+
- If the commit fails, **do not attempt to fix the issue independently** \u2014 wait for user instructions.
|
|
1940
|
+
|
|
1941
|
+
---
|
|
1942
|
+
|
|
1943
|
+
### RESTRICTIONS
|
|
1944
|
+
- Never execute \`git push\` without explicit authorization.
|
|
1945
|
+
- Never alter history (\`git rebase\`, \`git reset\`, \`git commit --amend\`, etc.) without explicit authorization.
|
|
1946
|
+
|
|
1913
1947
|
` : ""}
|
|
1914
1948
|
|
|
1915
1949
|
---
|