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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +44 -10
  3. data/lib/rralph/runner.rb +2 -2
  4. data/lib/rralph.rb +1 -1
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 879adb96bb31b3269ef4f60a200a8689cf4283f694f2aca5e0f9a95c24bef7ff
4
- data.tar.gz: 909224ae6b25857bff64c7c789d66a16025c74601ef397d9f40c8d066707ba94
3
+ metadata.gz: 3b79d8af045966f8f833068fd24a8533e7b379e16b03912dbd97981424cf752c
4
+ data.tar.gz: eead963484d63d4a4eeb644d982f5b82cb43b24425ff405ee389fa49bbe9ca1f
5
5
  SHA512:
6
- metadata.gz: 6411d979dddce3cd5de21d510d5af092c4aa65f0d6af5371c96628320b3658d1b2f5a70495e861c15f77044fc1486fe1de29eb9fb0383a6a6637fe61c4cb11e8
7
- data.tar.gz: '07018c95c8ec9029893b4548ede3e5ef1a1e601bc1243c665ba053c882fdca83ac7523c71df6005c179a85af3f775ef42f9d6a4b997ea6490dc4753918f0748b'
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 run [OPTIONS]
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 N Maximum allowed failures before stopping (default: 3)
72
- -a, --ai-command "CMD" AI command to invoke (default: "qwen-code -y -s")
73
- -w, --watch Run in continuous loop until completion or max failures
74
- -p, --plan-path PATH Path to plan.md file (default: "plan.md")
75
- -l, --learnings-path PATH Path to learnings.md file (default: "learnings.md")
76
- -t, --todo-path PATH Path to todo.md file (default: "todo.md")
77
- -h, --help Show help message
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.*?>\s*(.+?)\n/)
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
@@ -1,5 +1,5 @@
1
1
  module Rralph
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
 
4
4
  class Error < StandardError; end
5
5
  class FileNotFound < Error; end
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.0
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-01 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: thor