ace-git-commit 0.25.4 → 0.26.3

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: fe255d22880f11d134ff36c7f85ea857d9ee4b4ab17fe6ae418b10bca5c9d379
4
- data.tar.gz: d3a95b0901bde739ed17122d7d6d4073c513ec12f642d10bf57d939e583df1f8
3
+ metadata.gz: 2599fd8c9470d524bf85ca5eb8b50e612a62936dbda4a5d75b0b2576361d8c2f
4
+ data.tar.gz: b1b83adf72a08ff94c13fdeecb70be43574431255fab3a144d01fb3c92afd1cd
5
5
  SHA512:
6
- metadata.gz: 7e40e443492428deaa6e565ae015cc06f0c0b40395525ad96760d88f50ab831abc2a61e547aabc277f8912e68c021c33996a4c9bd13309441502b28ba7d92f0b
7
- data.tar.gz: c192c1309e9b95cf887ec24f69bca59af088f943aa4fb31dcc1ac36165888a1b524648ba218bb7fa84f7cc2386e56ef46b918326018fe75d031f1838c4f873ca
6
+ metadata.gz: 61cf4c04784c908d0f5257db3021fe1f3aa34b24212b6b7af8c950190fd23aa5c6f64b841ce8aa300dc00d416821f0b4863cc21c9956c813cd94fa4a067ae4a8
7
+ data.tar.gz: 5853eef8a0bd648f524254e3081f997f4d54ecfd9270150e090476601c5c5a460c7eec520462becd0fec3dcd518121480d27545ec10de05f1384500a9eae9bc2
data/CHANGELOG.md CHANGED
@@ -7,6 +7,32 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.26.3] - 2026-04-24
11
+
12
+ ### Changed
13
+ - Clarified first-setup commit recovery across quick-start, package docs, and workflow guidance so users can inspect staged setup files, use the deterministic `--only-staged --no-split -m` path, and treat LLM-backed generation as optional after readiness checks.
14
+
15
+ ## [0.26.2] - 2026-04-23
16
+
17
+
18
+ ### Changed
19
+ - Clarified staged-only and setup-failure commit workflows, including explicit path-scoped command contracts for single-package commits and recovery guidance.
20
+ - Added commit contract coverage for staged-first and fallback paths so split/no-split behavior is deterministic before automatic path-scoped commit flow.
21
+
22
+
23
+ ## [0.26.1] - 2026-04-22
24
+
25
+ ### Technical
26
+ - Tightened `TS-COMMIT-001` Goal 7/8 staging contracts to require explicit-path staging and prove `results/` artifacts are excluded from the cached staged set before `--only-staged` execution.
27
+
28
+ ## [0.26.0] - 2026-04-22
29
+
30
+ ### Changed
31
+ - Improved setup-time LLM failure diagnostics to include failed role/model context, provider/setup remediation commands, and a deterministic `--only-staged --no-split -m` fallback commit path.
32
+
33
+ ### Technical
34
+ - Extended `TS-COMMIT-001` with goal 8 setup-failure guidance coverage and added fast tests for role/model failure guidance and explicit CLI error routing.
35
+
10
36
  ## [0.25.4] - 2026-04-16
11
37
 
12
38
  ### Technical
@@ -59,6 +59,7 @@ ace-git-commit automatically:
59
59
  - Specific files: `ace-git-commit file1 file2`
60
60
  - Only staged: `ace-git-commit --only-staged`
61
61
  - Dry run first: `ace-git-commit --dry-run -i "$intention"`
62
+ - First setup snapshot after provider-readiness issues: `ace-git-commit --only-staged --no-split -m "chore: set up ace tooling"`
62
63
 
63
64
  3. **Verify result**:
64
65
  ```bash
@@ -71,6 +72,7 @@ ace-git-commit automatically:
71
72
  - `-m, --message`: Use direct message (bypass LLM)
72
73
  - `--model MODEL`: Override LLM model (e.g., gflash)
73
74
  - `-s, --only-staged`: Commit only staged changes
75
+ - `--no-split`: Force one commit across detected scopes
74
76
  - `-n, --dry-run`: Preview without committing
75
77
  - `-d, --debug`: Enable debug output
76
78
 
@@ -83,6 +83,8 @@ module Ace
83
83
  raise Ace::Support::Cli::Error.new("Commit failed") unless success
84
84
  rescue GitError => e
85
85
  raise Ace::Support::Cli::Error.new(e.message)
86
+ rescue Ace::GitCommit::Error => e
87
+ raise Ace::Support::Cli::Error.new(e.message)
86
88
  rescue Interrupt
87
89
  raise Ace::Support::Cli::Error.new("Commit cancelled", exit_code: 130)
88
90
  end
@@ -29,10 +29,11 @@ module Ace
29
29
  def generate(diff, intention: nil, files: [], config: nil)
30
30
  system_prompt = load_system_prompt
31
31
  user_prompt = build_user_prompt(diff, intention, files)
32
+ model = resolve_model(config)
32
33
 
33
34
  # Use QueryInterface with named parameters matching CLI
34
35
  response = Ace::LLM::QueryInterface.query(
35
- resolve_model(config),
36
+ model,
36
37
  user_prompt,
37
38
  system: system_prompt,
38
39
  temperature: 0.7,
@@ -42,7 +43,7 @@ module Ace
42
43
 
43
44
  clean_commit_message(response[:text])
44
45
  rescue Ace::LLM::Error => e
45
- raise Error, "Failed to generate commit message: #{e.message}"
46
+ raise Error, llm_failure_message("Failed to generate commit message", model, e)
46
47
  end
47
48
 
48
49
  # Generate commit messages for multiple groups in one LLM call
@@ -60,9 +61,10 @@ module Ace
60
61
 
61
62
  system_prompt = load_batch_system_prompt
62
63
  user_prompt = build_batch_user_prompt(groups_context, intention)
64
+ model = resolve_model(config)
63
65
 
64
66
  response = Ace::LLM::QueryInterface.query(
65
- resolve_model(config),
67
+ model,
66
68
  user_prompt,
67
69
  system: system_prompt,
68
70
  temperature: 0.7,
@@ -77,7 +79,7 @@ module Ace
77
79
 
78
80
  raise Error, "Failed to generate batch commit messages: #{e.message}"
79
81
  rescue Ace::LLM::Error => e
80
- raise Error, "Failed to generate batch commit messages: #{e.message}"
82
+ raise Error, llm_failure_message("Failed to generate batch commit messages", model, e)
81
83
  end
82
84
 
83
85
  private
@@ -260,10 +262,11 @@ module Ace
260
262
 
261
263
  def retry_batch_parse(groups_context, intention, previous_response, reason, config)
262
264
  warn "[ace-git-commit] Batch parse failed, retrying with strict JSON repair: #{reason}"
265
+ model = resolve_model(config)
263
266
 
264
267
  repair_prompt = build_batch_repair_user_prompt(groups_context, intention, previous_response, reason)
265
268
  repair_response = Ace::LLM::QueryInterface.query(
266
- resolve_model(config),
269
+ model,
267
270
  repair_prompt,
268
271
  system: load_batch_system_prompt,
269
272
  temperature: 0.2,
@@ -275,6 +278,8 @@ module Ace
275
278
  rescue BatchParseError => e
276
279
  warn "[ace-git-commit] Batch parse retry failed: #{e.message}"
277
280
  nil
281
+ rescue Ace::LLM::Error => e
282
+ raise Error, llm_failure_message("Failed to generate batch commit messages", model, e)
278
283
  end
279
284
 
280
285
  def build_batch_repair_user_prompt(groups_context, intention, bad_response, reason)
@@ -299,6 +304,25 @@ module Ace
299
304
  config_override.fetch("model", @model)
300
305
  end
301
306
 
307
+ def llm_failure_message(prefix, model, error)
308
+ effective_model = model.to_s.empty? ? DEFAULT_MODEL : model
309
+ surface = setup_surface_label(effective_model)
310
+ lines = []
311
+ lines << "#{prefix} with #{surface} '#{effective_model}': #{error.message}"
312
+ lines << ""
313
+ lines << "LLM setup checks:"
314
+ lines << " ace-llm --list-providers"
315
+ lines << " ace-config doctor"
316
+ lines << ""
317
+ lines << "Fallback commit command:"
318
+ lines << ' ace-git-commit --only-staged --no-split -m "chore: set up ace tooling"'
319
+ lines.join("\n")
320
+ end
321
+
322
+ def setup_surface_label(model)
323
+ model.start_with?("role:") ? "ACE role" : "LLM model"
324
+ end
325
+
302
326
  # Load system prompt from template
303
327
  # @return [String] System prompt content
304
328
  def load_system_prompt
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ace
4
4
  module GitCommit
5
- VERSION = '0.25.4'
5
+ VERSION = '0.26.3'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ace-git-commit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.25.4
4
+ version: 0.26.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Czyz
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2026-04-20 00:00:00.000000000 Z
10
+ date: 2026-04-26 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: ace-support-cli