codex-ralph 0.4.0 โ 0.4.2
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 +3 -3
- package/agent/ralph-loop.sh +18 -13
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ CODEX_RALPH_TG_KEY=123456:bot-token
|
|
|
17
17
|
CODEX_RALPH_TG_CHAT=123456789
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
Provide these as environment variables (e.g., when invoking `npx`). Each session
|
|
20
|
+
Provide these as environment variables (e.g., when invoking `npx`). Each session uses a randomly selected emoji to tag progress messages.
|
|
21
21
|
|
|
22
22
|
Usage:
|
|
23
23
|
|
|
@@ -31,10 +31,10 @@ Optional flags:
|
|
|
31
31
|
--max-iterations=10
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
Message format:
|
|
34
|
+
Message format (session emoji is chosen randomly from a small fixed set and stays constant for the session):
|
|
35
35
|
|
|
36
36
|
```
|
|
37
|
-
|
|
37
|
+
<session emoji>
|
|
38
38
|
๐ <current requirement title>
|
|
39
39
|
๐ฏ <current index> of <total requirements>
|
|
40
40
|
```
|
package/agent/ralph-loop.sh
CHANGED
|
@@ -11,19 +11,22 @@ ROOT_DIR="$(cd "$(dirname "$SCRIPT_PATH")/.." && pwd)"
|
|
|
11
11
|
SPRINT_FILE=""
|
|
12
12
|
MAX_ITERATIONS=10
|
|
13
13
|
NOTES_FILE=""
|
|
14
|
-
|
|
14
|
+
SESSION_EMOJI=""
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
if [[ -n "${
|
|
18
|
-
echo "${
|
|
16
|
+
session_emoji() {
|
|
17
|
+
if [[ -n "${SESSION_EMOJI}" ]]; then
|
|
18
|
+
echo "${SESSION_EMOJI}"
|
|
19
19
|
return
|
|
20
20
|
fi
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
local emoji_pool=(
|
|
22
|
+
"๐งญ" "๐งฉ" "๐งช" "๐ฐ๏ธ" "๐ช"
|
|
23
|
+
"๐ช" "๐๏ธ" "๐งฟ" "๐งฒ" "๐ช"
|
|
24
|
+
"๐งฐ" "๐ช" "๐ช" "๐ชถ" "๐งฏ"
|
|
25
|
+
"๐งต" "๐งถ" "๐งท" "๐ช" "๐ชฌ"
|
|
26
|
+
)
|
|
27
|
+
local index=$((RANDOM % ${#emoji_pool[@]}))
|
|
28
|
+
SESSION_EMOJI="${emoji_pool[$index]}"
|
|
29
|
+
echo "${SESSION_EMOJI}"
|
|
27
30
|
}
|
|
28
31
|
|
|
29
32
|
send_telegram() {
|
|
@@ -49,7 +52,7 @@ Options:
|
|
|
49
52
|
USAGE
|
|
50
53
|
}
|
|
51
54
|
|
|
52
|
-
|
|
55
|
+
session_emoji >/dev/null
|
|
53
56
|
|
|
54
57
|
for arg in "$@"; do
|
|
55
58
|
case "$arg" in
|
|
@@ -195,7 +198,8 @@ while true; do
|
|
|
195
198
|
remaining="$(remaining_count)"
|
|
196
199
|
if [[ "$remaining" == "0" ]]; then
|
|
197
200
|
total="$(total_count)"
|
|
198
|
-
|
|
201
|
+
session_marker="$(session_emoji)"
|
|
202
|
+
send_telegram "${session_marker}"$'\n'"โ
All requirements completed"$'\n'"๐ฏ ${total} of ${total}"
|
|
199
203
|
echo "All sprint requirements complete."
|
|
200
204
|
echo "<promise>DONE</promise>"
|
|
201
205
|
exit 0
|
|
@@ -209,7 +213,8 @@ while true; do
|
|
|
209
213
|
desc="$(next_description)"
|
|
210
214
|
total="$(total_count)"
|
|
211
215
|
current="$(current_index)"
|
|
212
|
-
|
|
216
|
+
session_marker="$(session_emoji)"
|
|
217
|
+
send_telegram "${session_marker}"$'\n'"๐ ${desc}"$'\n'"๐ฏ ${current} of ${total}"
|
|
213
218
|
echo "Iteration $iteration - next requirement: $desc"
|
|
214
219
|
|
|
215
220
|
prompt_tmp="$(mktemp)"
|