ace-assign 0.73.1 → 0.73.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: a031558a7f88ef573b58cb9679f133076219e18f8d4d9983347daa9182a36806
4
- data.tar.gz: 0df74c4d8af671e62137ba86925b9afa12271f5a3cf502a7540d50ff134661c0
3
+ metadata.gz: 45be50d0b2c69c0fbd74f7bc18161dd3be7b65bde526fae3f68d23a409cb345a
4
+ data.tar.gz: a2cb8e240e447a5776d32b2c94ecb8e049ce88b8380c301d8c1c3703aadcaa67
5
5
  SHA512:
6
- metadata.gz: 36452f59294050972ba06a3d62196435f158d3f0bdabaecd4e5c4cdd6233d16a4ca6631e2cfe6d1e7a2da5903d0e17025cd43ad27fe96912c20b986fc34ddebd
7
- data.tar.gz: bcee25f7bb1b31f4f6b2a0013b3607e7f62e5b25b77501cf8f23d19a9f5154ba8c318bdf8eb0d7b8e27c448d505b956abe03b7934db450c6db72ea2905329b49
6
+ metadata.gz: eed439377cd352ba27bd4cece400a9410d19d4be74980b5667b07fa1303f979f064fa52c529410c667602151a6a5fdcccd20b298120a4f7e01e70781eeadac97
7
+ data.tar.gz: 8a32679865c9cf087d550d728d4d8bbdbbd8a25fbd49821568d28bb6606043a94a5dab8085a4dcb6b39822aa3fa9861d6f24268946001d2b0f1d668a0c7dccb0
data/CHANGELOG.md CHANGED
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.73.3] - 2026-11-12
11
+
12
+ ### Fixed
13
+
14
+ - Allow exact step numbers with explicit assignment selection in start and finish, preserving subtree checks and avoiding accidental completion of another active step.
15
+
16
+ ## [0.73.2] - 2026-11-10
17
+
18
+ ### Fixed
19
+
20
+ - Expose assignment discovery through its owner API with per-project configuration and typed read errors.
21
+
10
22
  ## [0.73.1] - 2026-10-20
11
23
 
12
24
  ### Fixed
data/docs/usage.md CHANGED
@@ -101,6 +101,10 @@ Show instructions for the active, next, or explicit step.
101
101
 
102
102
  Start the next workable pending step, or an explicit step number.
103
103
 
104
+ Use `ace-assign start 020 --assignment abc123` to start an exact step in a
105
+ selected assignment. Scoped targets (`abc123@010`) still reject steps outside
106
+ that subtree.
107
+
104
108
  ### `ace-assign finish [STEP] --message VALUE`
105
109
 
106
110
  Complete the active step with report content.
@@ -180,7 +184,7 @@ If several assignments are open, scope every command to the exact assignment
180
184
 
181
185
  ```bash
182
186
  ace-assign status --assignment abc123
183
- ace-assign finish --message report.md --assignment abc123
187
+ ace-assign finish 020 --message report.md --assignment abc123
184
188
  ```
185
189
 
186
190
  ### Recovery from failure
@@ -218,3 +222,21 @@ plans. Each plan keeps its own history.
218
222
  The old protected/attempt-evidence and installation paths are removed from the
219
223
  local flow. No journal, admission service, or second queue is required to
220
224
  create, read, or drive an assignment.
225
+
226
+
227
+ ### Reading assignments from another project in Ruby
228
+
229
+ Use the installed owner's explicit-root inventory when observing a worktree:
230
+
231
+ ```ruby
232
+ Ace::Assign::Molecules::AssignmentDiscoverer
233
+ .for_project(project_root: worktree_path)
234
+ .find_all(include_completed: true)
235
+ ```
236
+
237
+ The call resolves that directory's configuration cascade without changing cwd or
238
+ `Ace::Assign.config`. Relative `cache_dir` and `CACHE_BASE` values resolve against
239
+ the supplied root; absolute values remain absolute. An explicit root takes
240
+ precedence over `PROJECT_ROOT_PATH`. CLI commands retain their existing cwd-based
241
+ cache resolution, including relative `CACHE_BASE`. The API reads current owner
242
+ records on every invocation; it creates no observation cache.
@@ -11,17 +11,13 @@ module Ace
11
11
 
12
12
  desc "Complete active step with report content"
13
13
 
14
- argument :step, required: false, desc: "Step number to finish (active assignment only)"
14
+ argument :step, required: false, desc: "Step number to finish"
15
15
  option :message, aliases: ["-m"], desc: "Report content: string, file path, or pipe stdin"
16
16
  option :assignment, desc: "Target specific assignment ID"
17
17
  option :quiet, aliases: ["-q"], type: :boolean, default: false, desc: "Suppress non-essential output"
18
18
  option :debug, aliases: ["-d"], type: :boolean, default: false, desc: "Show debug output"
19
19
 
20
20
  def call(step: nil, **options)
21
- if step && options[:assignment]
22
- raise Error, "Positional STEP targeting is only supported for active assignment. Use --assignment without STEP for cross-assignment finish."
23
- end
24
-
25
21
  target = resolve_assignment_target(options)
26
22
  executor = build_executor_for_target(target)
27
23
  report_content = resolve_report_content(options)
@@ -49,8 +49,9 @@ module Ace
49
49
  option :debug, aliases: ["-d"], type: :boolean, default: false, desc: "Show debug output"
50
50
 
51
51
  def call(**options)
52
- discoverer = Molecules::AssignmentDiscoverer.new
53
- manager = Molecules::AssignmentManager.new
52
+ cache = Ace::Assign.cache_dir
53
+ discoverer = Molecules::AssignmentDiscoverer.new(cache_base: cache)
54
+ manager = Molecules::AssignmentManager.new(cache_base: cache)
54
55
  current_id = manager.current_id
55
56
 
56
57
  all_assignments = discoverer.find_all(include_completed: true)
@@ -11,16 +11,12 @@ module Ace
11
11
 
12
12
  desc "Start next workable pending step"
13
13
 
14
- argument :step, required: false, desc: "Step number to start (active assignment only)"
14
+ argument :step, required: false, desc: "Step number to start"
15
15
  option :assignment, desc: "Target specific assignment ID"
16
16
  option :quiet, aliases: ["-q"], type: :boolean, default: false, desc: "Suppress non-essential output"
17
17
  option :debug, aliases: ["-d"], type: :boolean, default: false, desc: "Show debug output"
18
18
 
19
19
  def call(step: nil, **options)
20
- if step && options[:assignment]
21
- raise Error, "Positional STEP targeting is only supported for active assignment. Use --assignment without STEP for cross-assignment start."
22
- end
23
-
24
20
  target = resolve_assignment_target(options)
25
21
  executor = build_executor_for_target(target)
26
22
  result = executor.start_step(step_number: step, fork_root: target.scope)
@@ -9,6 +9,11 @@ module Ace
9
9
  # (step scanning) to produce AssignmentInfo objects with full
10
10
  # state, progress, and current step information.
11
11
  class AssignmentDiscoverer
12
+ # Public read-only inventory for a specified project/worktree.
13
+ def self.for_project(project_root:, env: ENV)
14
+ new(cache_base: Ace::Assign.cache_dir_for(project_root: project_root, env: env))
15
+ end
16
+
12
17
  # @param cache_base [String, nil] Base cache directory
13
18
  def initialize(cache_base: nil)
14
19
  @cache_base = cache_base || Ace::Assign.cache_dir
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ace
4
4
  module Assign
5
- VERSION = "0.73.1"
5
+ VERSION = "0.73.3"
6
6
  end
7
7
  end
data/lib/ace/assign.rb CHANGED
@@ -47,6 +47,19 @@ module Ace
47
47
  end
48
48
  end
49
49
 
50
+ # Resolve another project's inventory without changing cwd or the cached
51
+ # configuration used by this process. Explicit roots override PROJECT_ROOT_PATH.
52
+ def self.cache_dir_for(project_root:, env: ENV)
53
+ root = File.expand_path(project_root)
54
+ override = env["CACHE_BASE"]
55
+ return File.expand_path(override, root) unless override.to_s.empty?
56
+
57
+ gem_root = Gem.loaded_specs["ace-assign"]&.gem_dir || File.expand_path("../..", __dir__)
58
+ config = Ace::Support::Config.create(start_path: root, gem_path: gem_root,
59
+ test_mode: false).resolve_namespace("assign").data
60
+ File.expand_path(config.fetch("cache_dir", ".ace-local/assign"), root)
61
+ end
62
+
50
63
  # Reset config cache (useful for testing)
51
64
  def self.reset_config!
52
65
  @config = nil
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ace-assign
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.73.1
4
+ version: 0.73.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Czyz
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2026-10-20 00:00:00.000000000 Z
10
+ date: 2026-11-12 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: ace-llm-providers-cli
@@ -16,6 +16,9 @@ dependencies:
16
16
  - - "~>"
17
17
  - !ruby/object:Gem::Version
18
18
  version: 0.36.1
19
+ - - ">="
20
+ - !ruby/object:Gem::Version
21
+ version: 0.36.3
19
22
  type: :runtime
20
23
  prerelease: false
21
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -23,6 +26,9 @@ dependencies:
23
26
  - - "~>"
24
27
  - !ruby/object:Gem::Version
25
28
  version: 0.36.1
29
+ - - ">="
30
+ - !ruby/object:Gem::Version
31
+ version: 0.36.3
26
32
  - !ruby/object:Gem::Dependency
27
33
  name: ace-support-fs
28
34
  requirement: !ruby/object:Gem::Requirement
@@ -112,6 +118,9 @@ dependencies:
112
118
  - - "~>"
113
119
  - !ruby/object:Gem::Version
114
120
  version: '0.18'
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: 0.18.4
115
124
  type: :runtime
116
125
  prerelease: false
117
126
  version_requirements: !ruby/object:Gem::Requirement
@@ -119,6 +128,9 @@ dependencies:
119
128
  - - "~>"
120
129
  - !ruby/object:Gem::Version
121
130
  version: '0.18'
131
+ - - ">="
132
+ - !ruby/object:Gem::Version
133
+ version: 0.18.4
122
134
  - !ruby/object:Gem::Dependency
123
135
  name: ace-support-nav
124
136
  requirement: !ruby/object:Gem::Requirement