@nomad-e/bluma-cli 0.0.107 → 0.0.108

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 +15 -4
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -4107,8 +4107,13 @@ You MUST use \`command_status\` to get the output.
4107
4107
  [Step 1] shell_command({ command: "docker build -t myapp .", timeout: 600 })
4108
4108
  \u2192 { command_id: "cmd_004" }
4109
4109
 
4110
- [Step 2] command_status({ command_id: "cmd_004", wait_seconds: 300 })
4111
- \u2192 { status: "completed", exit_code: 0, truncated: true, stdout: "..." }
4110
+ [Step 2] command_status({ command_id: "cmd_004", wait_seconds: 10 })
4111
+ \u2192 { status: "running" }
4112
+
4113
+ [Step 3] message_notify_user("Building Docker image, please wait...")
4114
+
4115
+ [Step 4] command_status({ command_id: "cmd_004", wait_seconds: 10 })
4116
+ \u2192 { status: "completed", exit_code: 0, stdout: "Successfully built abc123" }
4112
4117
  \`\`\`
4113
4118
 
4114
4119
  **[WRONG] Never forget command_status:**
@@ -4117,6 +4122,11 @@ shell_command({ command: "npm install" })
4117
4122
  message_notify_user("Installed!") // WRONG: You don't know if it succeeded!
4118
4123
  \`\`\`
4119
4124
 
4125
+ **[WRONG] Never use long waits (blocks user):**
4126
+ \`\`\`
4127
+ command_status({ id: "...", wait_seconds: 300 }) // WRONG: User can't interrupt!
4128
+ \`\`\`
4129
+
4120
4130
  **[WRONG] Never use blocked commands:**
4121
4131
  \`\`\`
4122
4132
  shell_command({ command: "sudo apt install ..." }) // BLOCKED
@@ -4126,8 +4136,9 @@ shell_command({ command: "vim file.txt" }) // BLOCKED (interactive)
4126
4136
 
4127
4137
  ### Tips:
4128
4138
  - Always check \`exit_code\` - 0 means success, non-zero is error
4129
- - If \`status: "running"\`, call command_status again with longer wait
4130
- - If \`truncated: true\`, the output was too long - use \`| head\` or \`| tail\`
4139
+ - Use wait_seconds: 5-10 for polling (allows user interrupts)
4140
+ - If \`status: "running"\`, notify user and poll again
4141
+ - If \`truncated: true\`, output was too long - use \`| head\` or \`| tail\`
4131
4142
  - Use \`send_command_input\` for commands that need input (y/n prompts)
4132
4143
  - Use \`kill_command\` to stop a stuck command
4133
4144
  </shell_command>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nomad-e/bluma-cli",
3
- "version": "0.0.107",
3
+ "version": "0.0.108",
4
4
  "description": "BluMa independent agent for automation and advanced software engineering.",
5
5
  "author": "Alex Fonseca",
6
6
  "license": "Apache-2.0",