codex-ralph 0.4.2 → 0.4.4
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/agent/ralph-loop.sh +11 -2
- package/package.json +1 -1
package/agent/ralph-loop.sh
CHANGED
|
@@ -12,6 +12,7 @@ SPRINT_FILE=""
|
|
|
12
12
|
MAX_ITERATIONS=10
|
|
13
13
|
NOTES_FILE=""
|
|
14
14
|
SESSION_EMOJI=""
|
|
15
|
+
USE_CURSOR_AGENT=false
|
|
15
16
|
|
|
16
17
|
session_emoji() {
|
|
17
18
|
if [[ -n "${SESSION_EMOJI}" ]]; then
|
|
@@ -43,11 +44,12 @@ send_telegram() {
|
|
|
43
44
|
|
|
44
45
|
usage() {
|
|
45
46
|
cat <<USAGE
|
|
46
|
-
Usage: ralph-loop SPRINT_PATH [--max-iterations=N]
|
|
47
|
+
Usage: ralph-loop SPRINT_PATH [--max-iterations=N] [--cursor-agent]
|
|
47
48
|
|
|
48
49
|
Options:
|
|
49
50
|
SPRINT_PATH Path to the sprint markdown file (required).
|
|
50
51
|
--max-iterations=N Stop after N iterations (0 = no limit, default 10).
|
|
52
|
+
--cursor-agent Use cursor-agent instead of codex (default: disabled).
|
|
51
53
|
-h, --help Show this help.
|
|
52
54
|
USAGE
|
|
53
55
|
}
|
|
@@ -59,6 +61,9 @@ for arg in "$@"; do
|
|
|
59
61
|
--max-iterations=*)
|
|
60
62
|
MAX_ITERATIONS="${arg#*=}"
|
|
61
63
|
;;
|
|
64
|
+
--cursor-agent)
|
|
65
|
+
USE_CURSOR_AGENT=true
|
|
66
|
+
;;
|
|
62
67
|
-h|--help)
|
|
63
68
|
usage
|
|
64
69
|
exit 0
|
|
@@ -228,7 +233,11 @@ while true; do
|
|
|
228
233
|
current_item_block
|
|
229
234
|
} > "$prompt_tmp"
|
|
230
235
|
|
|
231
|
-
|
|
236
|
+
if [[ "$USE_CURSOR_AGENT" == "true" ]]; then
|
|
237
|
+
cursor-agent -f -p < "$prompt_tmp"
|
|
238
|
+
else
|
|
239
|
+
codex exec - < "$prompt_tmp"
|
|
240
|
+
fi
|
|
232
241
|
|
|
233
242
|
rm -f "$prompt_tmp"
|
|
234
243
|
|