rralph 0.2.1 → 0.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2e6f657f4d4105579bcc44c846bb182d9f6637fc6a530fdf01490c51b994cf0e
4
- data.tar.gz: b4ad22a14bb0de01d4ba50399fe2e4ed867a40ecc274c9a865ae8c948e8dcfa0
3
+ metadata.gz: 342f736981b882762e1089ae9634979a2ff8a78a479f2ff96e6a48b04092a305
4
+ data.tar.gz: 629522ae73440accec26b6f98d9ad2319ceaaf5e5d6b107874451c510d71cbbd
5
5
  SHA512:
6
- metadata.gz: 597dbd3a4bd200b39ee9bcc7ae8cbe7872826dd90e345b7c24a8b7a92623ddfeeb96d225ea8341ee68f8ca948264ef0dc206c61d66225cabdf54020d41f5e28a
7
- data.tar.gz: 7915ff47830f6cf13a54d0b2d8eb9086c1fb773964eb47dcbc493bda21416a6da3e986f4b985486c833892f3f6c7d3224caf95a73354e6523d032024e0f57447
6
+ metadata.gz: f324c2d16637c7ef11fb888bc19dba3f9463034eccc94ecb32b3e385cc755a4eb5acb94aac6ce5414c1d0011e0cfaac3793923b90273f94947786f080dbfe75e
7
+ data.tar.gz: 1b0218500f664da874a48bec6fe45015b623ea2f0984b283e951714a3d3c92eaf09cf5c62e4450036ca5603eb4cc704ae105880c5d44137f7d65a0839230d246
data/README.md CHANGED
@@ -84,7 +84,7 @@ rralph --max-failures 2 --watch
84
84
  ### Command-Line Options
85
85
 
86
86
  ```
87
- ➜ rralph help
87
+ ➜ rralph help
88
88
  Commands:
89
89
  rralph help [COMMAND] # Describe available commands or one specific command
90
90
  rralph start # Run the rralph orchestrator
@@ -100,7 +100,7 @@ Options:
100
100
  -m, [--max-failures=N] # Maximum allowed failures before stopping
101
101
  # Default: 3
102
102
  -a, [--ai-command=AI_COMMAND] # AI command to invoke
103
- # Default: qwen-code -y -s
103
+ # Default: qwen-code -y -s -o stream-json
104
104
  -w, [--watch], [--no-watch], [--skip-watch] # Run in continuous loop until completion or max failures
105
105
  # Default: false
106
106
  -p, [--plan-path=PLAN_PATH] # Path to plan.md file
@@ -129,10 +129,10 @@ Run continuously until all tasks are done or max failures reached:
129
129
  rralph start --watch --max-failures 5
130
130
  ```
131
131
 
132
- Use a custom AI command:
132
+ Use a custom AI command (e.g claude-code-router + claude-code):
133
133
 
134
134
  ```bash
135
- rralph start --ai-command "claude --prompt"
135
+ rralph start --ai-command "ccr code"
136
136
  ```
137
137
 
138
138
  Skip git commits between tasks (files are updated but not committed):
@@ -192,6 +192,7 @@ rralph start --verbose
192
192
  ```
193
193
 
194
194
  Verbose output shows:
195
+
195
196
  - Thinking: AI's thought process as it thinks
196
197
  - Real-time text output from the AI
197
198
  - Completion metrics (duration, token usage)
data/lib/rralph/cli.rb CHANGED
@@ -11,7 +11,7 @@ module Rralph
11
11
  desc: 'Maximum allowed failures before stopping'
12
12
  method_option :ai_command,
13
13
  type: :string,
14
- default: 'qwen-code -y -s',
14
+ default: 'qwen-code -y -s -o stream-json',
15
15
  aliases: '-a',
16
16
  desc: 'AI command to invoke'
17
17
  method_option :watch,
data/lib/rralph/runner.rb CHANGED
@@ -7,7 +7,7 @@ module Rralph
7
7
 
8
8
  def initialize(
9
9
  max_failures: 3,
10
- ai_command: 'qwen-code -y -s',
10
+ ai_command: 'qwen-code -y -s -o stream-json',
11
11
  watch: false,
12
12
  plan_path: 'plan.md',
13
13
  learnings_path: 'learnings.md',
@@ -157,8 +157,7 @@ module Rralph
157
157
  begin
158
158
  log('Executing AI command...')
159
159
 
160
- # Use stream-json mode for real-time logging
161
- cmd = "#{@ai_command} -y -s -o stream-json"
160
+ cmd = @ai_command
162
161
 
163
162
  Open3.popen3(cmd) do |stdin, stdout, _stderr, wait_thr|
164
163
  # Write prompt to stdin and close
@@ -212,7 +211,8 @@ module Rralph
212
211
  log(" [event: #{event['type']}]") if @verbose
213
212
  end
214
213
  rescue JSON::ParserError
215
- # Skip non-JSON lines
214
+ # Non-JSON output (e.g., plain text from AI) - still capture it
215
+ full_response += line
216
216
  log(" #{line.chomp}") if @verbose
217
217
  end
218
218
 
data/lib/rralph.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Rralph
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
 
4
4
  class Error < StandardError; end
5
5
  class FileNotFound < Error; end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rralph
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - rralph