rralph 0.1.1 → 0.1.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: 3b79d8af045966f8f833068fd24a8533e7b379e16b03912dbd97981424cf752c
4
- data.tar.gz: eead963484d63d4a4eeb644d982f5b82cb43b24425ff405ee389fa49bbe9ca1f
3
+ metadata.gz: ebba7ca8a7b704f97c3dbc0df60c6df68d29542641fb91c9251574af1d79ecc5
4
+ data.tar.gz: 1846e26ecb26b0eab7f0df14330d2f1e8b279da785101e2b885e02d9b99d27e4
5
5
  SHA512:
6
- metadata.gz: 43ec81fd93583089e2a86a518465ce5303dc56fb01a436eae948da1a70fafe10a64f990d050268b4c2c42de3ac660f0cb50fbbfe0194b38c7299fddf43faa409
7
- data.tar.gz: a60b5e50a5b4dec73e53232a1d872eedf47f33d156047d9ad0a4ffc77a76b6ae430e96b09f976108870b30e0d8dc4c54a9f636f9b839ce2cbeb02cfde4578495
6
+ metadata.gz: 7e586e53ebba5ab3886388929d731eecfff9cdf74d8684a20ec7949fa249192cae9634d93e68b25cf96dedb2830b0471517e043cca0b28579b3a4794d8ebd756
7
+ data.tar.gz: f3ea37403f48d24dd1b506079450f7ed05e33c5462f6319d3735a7e4688223078020d624bc5f05c8fa8fb51389de646647a058996f460e7c52f470da18237d68
data/README.md CHANGED
@@ -109,6 +109,8 @@ Options:
109
109
  # Default: learnings.md
110
110
  -t, [--todo-path=TODO_PATH] # Path to todo.md file
111
111
  # Default: todo.md
112
+ -s, [--skip-commit], [--no-skip-commit] # Skip git commits between tasks
113
+ # Default: false
112
114
  ```
113
115
 
114
116
  ### Examples
@@ -131,6 +133,12 @@ Use a custom AI command:
131
133
  rralph start --ai-command "claude --prompt"
132
134
  ```
133
135
 
136
+ Skip git commits between tasks (files are updated but not committed):
137
+
138
+ ```bash
139
+ rralph start --skip-commit
140
+ ```
141
+
134
142
  View progress statistics:
135
143
 
136
144
  ```bash
data/lib/rralph/cli.rb CHANGED
@@ -34,6 +34,11 @@ module Rralph
34
34
  default: "todo.md",
35
35
  aliases: "-t",
36
36
  desc: "Path to todo.md file"
37
+ method_option :skip_commit,
38
+ type: :boolean,
39
+ default: false,
40
+ aliases: "-s",
41
+ desc: "Skip git commits between tasks"
37
42
 
38
43
  def start
39
44
  runner = Runner.new(
@@ -42,7 +47,8 @@ module Rralph
42
47
  watch: options[:watch],
43
48
  plan_path: options[:plan_path],
44
49
  learnings_path: options[:learnings_path],
45
- todo_path: options[:todo_path]
50
+ todo_path: options[:todo_path],
51
+ skip_commit: options[:skip_commit]
46
52
  )
47
53
 
48
54
  runner.run
data/lib/rralph/runner.rb CHANGED
@@ -8,7 +8,8 @@ module Rralph
8
8
  watch: false,
9
9
  plan_path: "plan.md",
10
10
  learnings_path: "learnings.md",
11
- todo_path: "todo.md"
11
+ todo_path: "todo.md",
12
+ skip_commit: false
12
13
  )
13
14
  @max_failures = max_failures
14
15
  @ai_command = ai_command
@@ -16,6 +17,7 @@ module Rralph
16
17
  @plan_path = plan_path
17
18
  @learnings_path = learnings_path
18
19
  @todo_path = todo_path
20
+ @skip_commit = skip_commit
19
21
 
20
22
  @cycle_count = 0
21
23
  @failure_count = 0
@@ -115,11 +117,15 @@ module Rralph
115
117
  new_learnings = @parser.extract_learnings(response)
116
118
  @file_updater.append_learnings(new_learnings) if new_learnings.any?
117
119
 
118
- commit_message = "rralph: completed task and updated artifacts [cycle #{@cycle_count}]"
119
- sha = @git.commit_changes(commit_message)
120
+ if @skip_commit
121
+ log("⏭️ [Cycle #{@cycle_count}] Skipping commit (skip_commit enabled)")
122
+ else
123
+ commit_message = "rralph: completed task and updated artifacts [cycle #{@cycle_count}]"
124
+ sha = @git.commit_changes(commit_message)
120
125
 
121
- if sha
122
- log(" Git commit: #{sha}")
126
+ if sha
127
+ log(" Git commit: #{sha}")
128
+ end
123
129
  end
124
130
 
125
131
  true
@@ -233,11 +239,15 @@ module Rralph
233
239
 
234
240
  File.write(@todo_path, todo_content)
235
241
 
236
- commit_message = "rralph: generated todo from plan.md"
237
- sha = @git.commit_changes(commit_message)
242
+ if @skip_commit
243
+ log("⏭️ Generated #{todo_items.size} tasks (skip_commit enabled, no commit)")
244
+ else
245
+ commit_message = "rralph: generated todo from plan.md"
246
+ sha = @git.commit_changes(commit_message)
238
247
 
239
- if sha
240
- log("✅ Generated #{todo_items.size} tasks. Git commit: #{sha}")
248
+ if sha
249
+ log("✅ Generated #{todo_items.size} tasks. Git commit: #{sha}")
250
+ end
241
251
  end
242
252
  else
243
253
  log("❌ Could not parse tasks from AI response")
data/lib/rralph.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Rralph
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
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.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - rralph
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 1980-01-02 00:00:00.000000000 Z
10
+ date: 1980-01-01 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: thor