codex-ralph 0.4.4 → 0.4.5

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.
@@ -198,13 +198,26 @@ else:
198
198
  PY
199
199
  }
200
200
 
201
+ progress_bar() {
202
+ local completed="$1"
203
+ local total="$2"
204
+ python3 - <<PY
205
+ completed = $completed
206
+ total = $total
207
+ filled = "🟩" * completed
208
+ empty = "⬜️" * (total - completed)
209
+ print(filled + empty)
210
+ PY
211
+ }
212
+
201
213
  iteration=1
202
214
  while true; do
203
215
  remaining="$(remaining_count)"
204
216
  if [[ "$remaining" == "0" ]]; then
205
217
  total="$(total_count)"
206
218
  session_marker="$(session_emoji)"
207
- send_telegram "${session_marker}"$'\n'" All requirements completed"$'\n'"🎯 ${total} of ${total}"
219
+ progress="$(progress_bar "$total" "$total")"
220
+ send_telegram "${session_marker}"$'\n'"✅ All requirements completed"$'\n'"🎯 ${total} of ${total}"$'\n'"${progress}"
208
221
  echo "All sprint requirements complete."
209
222
  echo "<promise>DONE</promise>"
210
223
  exit 0
@@ -218,8 +231,10 @@ while true; do
218
231
  desc="$(next_description)"
219
232
  total="$(total_count)"
220
233
  current="$(current_index)"
234
+ completed=$((current - 1))
221
235
  session_marker="$(session_emoji)"
222
- send_telegram "${session_marker}"$'\n'"📌 ${desc}"$'\n'"🎯 ${current} of ${total}"
236
+ progress="$(progress_bar "$completed" "$total")"
237
+ send_telegram "${session_marker} ${desc}"$'\n'"🎯 ${current} of ${total}"$'\n'"${progress}"
223
238
  echo "Iteration $iteration - next requirement: $desc"
224
239
 
225
240
  prompt_tmp="$(mktemp)"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codex-ralph",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
4
4
  "description": "Ralph Loop sprint runner for Codex.",
5
5
  "bin": {
6
6
  "ralph-loop": "agent/ralph-loop.sh"