@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.
Files changed (2) hide show
  1. package/dist/main.js +48 -14
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -1896,20 +1896,54 @@ function getUnifiedSystemPrompt() {
1896
1896
  ---
1897
1897
 
1898
1898
  ${isGitRepo ? `
1899
- ### GIT USAGE GUIDELINES
1900
- - The current working (project) directory is being managed by a git repository.
1901
- - When asked to commit changes or prepare a commit, always start by gathering information using shell commands:
1902
- - \`git status\` to ensure that all relevant files are tracked and staged, using \`git add ...\` as needed.
1903
- - \`git diff HEAD\` to review all changes (including unstaged changes) to tracked files in work tree since last commit.
1904
- - \`git diff --staged\` to review only staged changes when a partial commit makes sense or was requested by the user.
1905
- - \`git log -n 3\` to review recent commit messages and match their style (verbosity, formatting, signature line, etc.)
1906
- - Combine shell commands whenever possible to save time/steps, e.g. \`git status && git diff HEAD && git log -n 3\`.
1907
- - Always propose a draft commit message. Never just ask the user to give you the full commit message.
1908
- - Prefer commit messages that are clear, concise, and focused more on "why" and less on "what".
1909
- - Keep the user informed and ask for clarification or confirmation where needed.
1910
- - After each commit, confirm that it was successful by running \`git status\`.
1911
- - If a commit fails, never attempt to work around the issues without being asked to do so.
1912
- - Never push changes to a remote repository without being asked explicitly by the user.
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
  ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nomad-e/bluma-cli",
3
- "version": "0.0.58",
3
+ "version": "0.0.59",
4
4
  "description": "BluMa independent agent for automation and advanced software engineering.",
5
5
  "author": "Alex Fonseca",
6
6
  "license": "Apache-2.0",