carson 4.2.0 → 4.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 57e828abcdfc77caa38be92fa08a41d8d13abd37a09e7a4bf726d07253a48749
4
- data.tar.gz: 5a6141be7046db72d03971fc9c4f45f1b7c81a47d685b13c97810711ebe9db39
3
+ metadata.gz: 251588ff2b1c952538965ea349b498e424c9646f6c57965dd516e7729e002035
4
+ data.tar.gz: 2fee9945faa9fbace57ef59dfd77cf5fb9c38992f4e573e796daeef8b1972017
5
5
  SHA512:
6
- metadata.gz: 409ab608b1bed1423f16aa257efcc53f608643112db23020ac1786bd77fcc94a1776df32991be7ff0c00eb5d9b31f6db454e1ea4ad6020b65aaeb4dd186e39aa
7
- data.tar.gz: a482b66aa5220c17d9d1b4c2852cc10b9cfeaa0d8af803e0b7974c20994754b1eb2affbb4d3a5659804764a398f25f7c822ffe3feaaa61b4c6b7fea46cf4b88a
6
+ metadata.gz: 3981e6facd927beb517b18151eb0d4804863e6adab4d4d39039e6e9313e644f57caae09e0b292e1e33d49b383e1f3f7975decfe3d0672dc372f3582b757bc513
7
+ data.tar.gz: 55175ac0b094290e602d79854e65208fb5f1baa23753ed05c786c48ddda562b2015de76fb7244dc90c12a2495b2d84269e40c3f9521077d646776eeab843c760
data/RELEASE.md CHANGED
@@ -7,6 +7,16 @@ Release-note scope rule:
7
7
 
8
8
  ## Unreleased
9
9
 
10
+ ## 4.2.1
11
+
12
+ ### Fixed
13
+
14
+ - **`label_absorbed?` detects rebase-merged branches** — previously only detected merge commits, missing branches integrated via rebase merge.
15
+
16
+ ### UX
17
+
18
+ - **`carson --help` promotes the agent workflow** — `checkin` and `deliver` now appear in a dedicated "Agent workflow" section at the top of repository commands. `recover` and `worktree` removed from help — agents reach these through Carson's block messages, not by browsing.
19
+
10
20
  ## 4.2.0
11
21
 
12
22
  ### New
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.2.0
1
+ 4.2.1
@@ -148,10 +148,15 @@ module Carson
148
148
  output.lines.map { it.strip }.reject { it.empty? }
149
149
  end
150
150
 
151
- # Has this label been merged into main?
151
+ # Has this label's content been absorbed into main?
152
+ # Content-aware: compares tree content, not SHA ancestry.
153
+ # Catches rebase-merged and squash-merged branches that
154
+ # `git branch --merged` misses (replayed SHAs differ).
152
155
  def label_absorbed?( name )
153
- merged_output, = git( "branch", "--merged", main_label, "--format", "%(refname:short)" )
154
- merged_output.lines.map { it.strip }.include?( name )
156
+ _, _, status = Open3.capture3(
157
+ "git", "diff", "--quiet", @main_label, name,
158
+ chdir: path )
159
+ status.success?
155
160
  end
156
161
 
157
162
  # All worktree paths (transitional — use workbenches for Worktree instances).
data/lib/cli.rb CHANGED
@@ -140,12 +140,14 @@ module Carson
140
140
  parser.separator " refresh Re-install hooks and configuration (all governed repos)"
141
141
  parser.separator " version Show Carson version"
142
142
  parser.separator ""
143
+ parser.separator "Agent workflow:"
144
+ parser.separator " checkin Prepare a fresh workbench from the latest standard"
145
+ parser.separator " deliver Ship committed work — push, PR, merge, cleanup"
146
+ parser.separator ""
143
147
  parser.separator "Repository commands (from CWD or with explicit repo):"
148
+ parser.separator " checkout Release a workbench when done"
144
149
  parser.separator " status Show repository delivery state"
145
150
  parser.separator " audit Run pre-commit health checks"
146
- parser.separator " deliver Start autonomous branch delivery"
147
- parser.separator " recover Merge the repair PR for one baseline-red governance check"
148
- parser.separator " worktree Manage isolated coding worktrees"
149
151
  parser.separator ""
150
152
  parser.separator "Run `carson <command> --help` for details on a specific command."
151
153
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carson
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.0
4
+ version: 4.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hailei Wang