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 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 generates a UUID and includes it in progress messages.
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
- ๐Ÿงญ ~<session-uuid>~
37
+ <session emoji>
38
38
  ๐Ÿ“Œ <current requirement title>
39
39
  ๐ŸŽฏ <current index> of <total requirements>
40
40
  ```
@@ -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
- SESSION_UUID=""
14
+ SESSION_EMOJI=""
15
15
 
16
- session_uuid() {
17
- if [[ -n "${SESSION_UUID}" ]]; then
18
- echo "${SESSION_UUID}"
16
+ session_emoji() {
17
+ if [[ -n "${SESSION_EMOJI}" ]]; then
18
+ echo "${SESSION_EMOJI}"
19
19
  return
20
20
  fi
21
- SESSION_UUID="$(python3 - <<PY
22
- import uuid
23
- print(uuid.uuid4())
24
- PY
25
- )"
26
- echo "${SESSION_UUID}"
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
- session_uuid >/dev/null
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
- send_telegram "๐Ÿงญ ~${SESSION_UUID}~"$'\n'"โœ… All requirements completed"$'\n'"๐ŸŽฏ ${total} of ${total}"
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
- send_telegram "๐Ÿงญ ~${SESSION_UUID}~"$'\n'"๐Ÿ“Œ ${desc}"$'\n'"๐ŸŽฏ ${current} of ${total}"
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)"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codex-ralph",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "Ralph Loop sprint runner for Codex.",
5
5
  "bin": {
6
6
  "ralph-loop": "agent/ralph-loop.sh"