rralph 0.1.0 → 0.1.1
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.
- checksums.yaml +4 -4
- data/README.md +44 -10
- data/lib/rralph/runner.rb +2 -2
- data/lib/rralph.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3b79d8af045966f8f833068fd24a8533e7b379e16b03912dbd97981424cf752c
|
|
4
|
+
data.tar.gz: eead963484d63d4a4eeb644d982f5b82cb43b24425ff405ee389fa49bbe9ca1f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 43ec81fd93583089e2a86a518465ce5303dc56fb01a436eae948da1a70fafe10a64f990d050268b4c2c42de3ac660f0cb50fbbfe0194b38c7299fddf43faa409
|
|
7
|
+
data.tar.gz: a60b5e50a5b4dec73e53232a1d872eedf47f33d156047d9ad0a4ffc77a76b6ae430e96b09f976108870b30e0d8dc4c54a9f636f9b839ce2cbeb02cfde4578495
|
data/README.md
CHANGED
|
@@ -48,6 +48,25 @@ Requirements:
|
|
|
48
48
|
Test: 0→EVEN, 7→ODD, -4→EVEN, abc→error, no arg→error
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
+
After running `rralph start` you will get a `todo.md` generated for you like:
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
# Todo List
|
|
55
|
+
|
|
56
|
+
- [ ] Create `odd_even.sh` file with bash shebang
|
|
57
|
+
- [ ] Add input validation to check if argument is provided
|
|
58
|
+
- [ ] Add regex validation for integer input (`^-?[0-9]+$`)
|
|
59
|
+
- [ ] Implement even/odd check using `(( ))` arithmetic and `%` operator
|
|
60
|
+
- [ ] Print "IS EVEN" or "IS ODD" based on result
|
|
61
|
+
- [ ] Add error handling with exit code 1 for invalid inputs
|
|
62
|
+
- [ ] Make script executable with `chmod +x`
|
|
63
|
+
- [ ] Test with input `0` (expect "IS EVEN")
|
|
64
|
+
- [ ] Test with input `7` (expect "IS ODD")
|
|
65
|
+
- [ ] Test with input `-4` (expect "IS EVEN")
|
|
66
|
+
- [ ] Test with input `abc` (expect error, exit 1)
|
|
67
|
+
- [ ] Test with no argument (expect error, exit 1)
|
|
68
|
+
```
|
|
69
|
+
|
|
51
70
|
### Basic Usage
|
|
52
71
|
|
|
53
72
|
Run `rralph` with default settings:
|
|
@@ -65,16 +84,31 @@ rralph --max-failures 2 --watch
|
|
|
65
84
|
### Command-Line Options
|
|
66
85
|
|
|
67
86
|
```
|
|
68
|
-
rralph
|
|
87
|
+
➜ rralph help
|
|
88
|
+
Commands:
|
|
89
|
+
rralph help [COMMAND] # Describe available commands or one specific command
|
|
90
|
+
rralph start # Run the rralph orchestrator
|
|
91
|
+
rralph stats # Show progress statistics
|
|
92
|
+
rralph tree # Print a tree of all available commands
|
|
93
|
+
rralph version # Show rralph version
|
|
94
|
+
|
|
95
|
+
➜ rralph help start
|
|
96
|
+
Usage:
|
|
97
|
+
rralph start
|
|
69
98
|
|
|
70
99
|
Options:
|
|
71
|
-
-m, --max-failures
|
|
72
|
-
|
|
73
|
-
-
|
|
74
|
-
|
|
75
|
-
-
|
|
76
|
-
|
|
77
|
-
-
|
|
100
|
+
-m, [--max-failures=N] # Maximum allowed failures before stopping
|
|
101
|
+
# Default: 3
|
|
102
|
+
-a, [--ai-command=AI_COMMAND] # AI command to invoke
|
|
103
|
+
# Default: qwen-code -y -s
|
|
104
|
+
-w, [--watch], [--no-watch], [--skip-watch] # Run in continuous loop until completion or max failures
|
|
105
|
+
# Default: false
|
|
106
|
+
-p, [--plan-path=PLAN_PATH] # Path to plan.md file
|
|
107
|
+
# Default: plan.md
|
|
108
|
+
-l, [--learnings-path=LEARNINGS_PATH] # Path to learnings.md file
|
|
109
|
+
# Default: learnings.md
|
|
110
|
+
-t, [--todo-path=TODO_PATH] # Path to todo.md file
|
|
111
|
+
# Default: todo.md
|
|
78
112
|
```
|
|
79
113
|
|
|
80
114
|
### Examples
|
|
@@ -88,13 +122,13 @@ rralph
|
|
|
88
122
|
Run continuously until all tasks are done or max failures reached:
|
|
89
123
|
|
|
90
124
|
```bash
|
|
91
|
-
rralph --watch --max-failures 5
|
|
125
|
+
rralph start --watch --max-failures 5
|
|
92
126
|
```
|
|
93
127
|
|
|
94
128
|
Use a custom AI command:
|
|
95
129
|
|
|
96
130
|
```bash
|
|
97
|
-
rralph --ai-command "claude --prompt"
|
|
131
|
+
rralph start --ai-command "claude --prompt"
|
|
98
132
|
```
|
|
99
133
|
|
|
100
134
|
View progress statistics:
|
data/lib/rralph/runner.rb
CHANGED
|
@@ -182,9 +182,9 @@ module Rralph
|
|
|
182
182
|
|
|
183
183
|
timestamp = Time.now.strftime("%Y%m%d_%H%M%S")
|
|
184
184
|
filename = "#{logs_dir}/cycle_#{@cycle_count}_#{timestamp}.md"
|
|
185
|
-
|
|
185
|
+
|
|
186
186
|
# Extract just the current task for the header
|
|
187
|
-
task_match = prompt.match(/YOUR CURRENT TASK
|
|
187
|
+
task_match = prompt.match(/YOUR CURRENT TASK.*?\n>\s*(.+?)\n/)
|
|
188
188
|
task_text = task_match ? task_match[1].strip : "Unknown"
|
|
189
189
|
|
|
190
190
|
content = <<~LOG
|
data/lib/rralph.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rralph
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- rralph
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 1980-01-
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: thor
|