@wavilikhin/ralph-wiggum 0.1.16 → 0.1.17

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/README.md CHANGED
@@ -109,6 +109,18 @@ tail -f .ralph/logs/ralph.log
109
109
  - Enforces one commit per iteration.
110
110
  - Requires a clean working tree after each iteration.
111
111
 
112
+ ### Permissions
113
+
114
+ Ralph Wiggum automatically allows `external_directory` permission to prevent OpenCode from blocking the autonomous loop with permission prompts. This setting is merged with your project's `opencode.json` — your other permissions remain intact.
115
+
116
+ If you need full permissive mode (allow all permissions), set the environment variable before running:
117
+
118
+ ```bash
119
+ OPENCODE_CONFIG_CONTENT='{"permission":"allow"}' .ralph/run.sh
120
+ ```
121
+
122
+ See [OpenCode Permissions](https://opencode.ai/docs/permissions) for details.
123
+
112
124
  <details>
113
125
  <summary><strong>AI agent appendix (full detail)</strong></summary>
114
126
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavilikhin/ralph-wiggum",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "Autonomous coding loop for OpenCode - one task, one commit, fresh context per iteration",
5
5
  "type": "module",
6
6
  "bin": {
@@ -282,6 +282,11 @@ for i in $(seq 1 "$MAX_ITERATIONS"); do
282
282
  BEFORE_HEAD=$(git rev-parse HEAD)
283
283
  log_info "HEAD before: ${DIM}${BEFORE_HEAD:0:8}${NC}"
284
284
 
285
+ # Allow external_directory permission to prevent blocking prompts during autonomous execution.
286
+ # This merges with (not replaces) any existing opencode.json permissions in the project.
287
+ # See: https://opencode.ai/docs/permissions
288
+ export OPENCODE_CONFIG_CONTENT='{"permission":{"external_directory":"allow"}}'
289
+
285
290
  OPENCODE_CMD=(
286
291
  opencode run
287
292
  --model "$MODEL"