ace-prompt-prep 0.23.6 → 0.25.7

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: 7420fdec3607ea7299d6279f1471e4dd635bb2b6d6f6ed07d609490f84291875
4
- data.tar.gz: 5e5c1125609e35611555a8ca3585a6cc55c818db30d09156d048747382e2a9c1
3
+ metadata.gz: 9bee1d36cf1dc194defba79f0106cd45b9914cebcd8ff7df548966a3cc60c048
4
+ data.tar.gz: dfa6b8109ccdf9690ebdae87d155190be2c239c73dc299cb68d4937399b66341
5
5
  SHA512:
6
- metadata.gz: 935c958056aaef7995f2bffa656725bd788b933416aa9f72b76f7f048a763ed10ffe9abb2088041d373634f69fd4d4eb763cff619574e186e8e816102b096178
7
- data.tar.gz: 92e53e9fc03df7d01fe05c2859a3b260a42d682a233b74e6c4e163f1874fae128358c52c19f75cb90de69a515067734a8bd1d5b8db64a38932504294f3c42cea
6
+ metadata.gz: 89b54e6d74589f0e2131e812cea28375fd6c54a09f0189239a207c01bf506c113a9fba88f1de50a7bbf73a94937bf2e7e437292a4c837310c95bb22ba416a7dc
7
+ data.tar.gz: f40d948adbf19b1efbfc4726287469233f233774ce6db6c18ac3e59e30a455466618f2819e3d0ecd3e919492a02f51e25fe579476385fc116edecde85807c715
data/CHANGELOG.md CHANGED
@@ -7,6 +7,77 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.25.7] - 2026-06-30
11
+
12
+ ### Fixed
13
+ - Hardened prompt-file root-boundary checks by canonicalizing symlinked paths and missing descendants before rejecting files outside the project.
14
+
15
+ ## [0.25.6] - 2026-04-19
16
+
17
+ ### Technical
18
+ - Tightened `TS-PREP-001` bundle and task-scoped runners to persist required processed-output artifacts immediately after command capture.
19
+
20
+ ## [0.25.5] - 2026-04-18
21
+
22
+ ### Technical
23
+ - Updated retained bundle-context E2E verification to assert the current bundled-output markers instead of obsolete `bundle:` frontmatter formatting.
24
+
25
+ ## [0.25.4] - 2026-04-16
26
+
27
+ ### Technical
28
+ - Updated `TS-PREP-001` task-scoped process evidence to persist `task-create.*`, derive the task ID from real `ace-task create` output when needed, and verify the current `task-create` / `task-setup` / `task-process` contract without relying on a brittle helper file.
29
+
30
+ ## [0.25.3] - 2026-04-16
31
+
32
+ ### Technical
33
+ - Updated `TS-PREP-001` task-scoped process verification to assert the current `task-setup.*` and `task-process.*` artifact contract instead of stale `task-create.*` expectations.
34
+
35
+ ## [0.25.2] - 2026-04-16
36
+
37
+ ### Fixed
38
+ - Updated `TS-PREP-001` task-scoped verification to prove task reuse from workspace, archive, and symlink evidence without requiring setup/process stdout to repeat the task ID verbatim.
39
+
40
+ ## [0.25.1] - 2026-04-16
41
+
42
+ ### Technical
43
+ - Updated `TS-PREP-001` sandbox setup to source `mise.toml` from `${ACE_E2E_SOURCE_ROOT:-$PROJECT_ROOT_PATH}` so prompt-prep smoke runs stay aligned with the shared E2E sandbox contract.
44
+
45
+ ## [0.25.0] - 2026-04-15
46
+
47
+ ### Changed
48
+ - Rewrote `TS-PREP-001` to strengthen bundle-mode evidence and add two public-surface journeys:
49
+ `ace-prompt-prep setup` workspace initialization and task-scoped `setup/process --task` execution.
50
+
51
+ ### Technical
52
+ - Stabilized verifier contracts to prefer impact-first artifact evidence while tolerating deterministic harness
53
+ formatting variance (`content-diff` and task-id/workspace evidence sources).
54
+
55
+ ## [0.24.2] - 2026-04-13
56
+
57
+ ### Technical
58
+ - Replaced the package version assertion with a semantic-version schema check so the fast test validates version shape instead of a loose substring match.
59
+ ## [0.24.1] - 2026-04-13
60
+
61
+ ### Changed
62
+ - Completed the batch i05 migration follow-through for this package and aligned it with the restarted `fast` / `feat` / `e2e` verification model.
63
+
64
+ ### Technical
65
+ - Included in the coordinated assignment-driven patch release for batch i05 package updates.
66
+
67
+
68
+ ## [0.24.0] - 2026-04-12
69
+
70
+ ### Changed
71
+ - Migrated package tests to the restarted `fast` / `feat` / `e2e` model:
72
+ - moved deterministic coverage into `test/fast`
73
+ - moved legacy `test/integration` coverage into `test/feat`
74
+ - retained workflow-value scenario coverage in `test/e2e`
75
+ - Simplified `TS-PREP-001` scenario assets by removing low-value help/setup goals and keeping archive + bundle context workflow checks.
76
+
77
+ ### Technical
78
+ - Updated package docs (`README.md`, `docs/usage.md`) to teach the restarted testing contract:
79
+ `ace-test`, `ace-test feat`, `ace-test all`, and `ace-test-e2e`.
80
+
10
81
  ## [0.23.6] - 2026-03-31
11
82
 
12
83
  ### Changed
data/README.md CHANGED
@@ -36,5 +36,14 @@
36
36
 
37
37
  **Scope prompts to tasks** - use `--task` to route prompt workspaces into [ace-task](../ace-task) directories, keeping prompts connected to delivery work alongside [ace-git](../ace-git) branch workflows.
38
38
 
39
+ ## Testing
40
+
41
+ Use the restarted package testing contract:
42
+
43
+ - `ace-test ace-prompt-prep` for deterministic fast tests
44
+ - `ace-test ace-prompt-prep feat` for deterministic feature-level tests
45
+ - `ace-test ace-prompt-prep all` for complete deterministic coverage
46
+ - `ace-test-e2e ace-prompt-prep` for retained workflow-value scenarios
47
+
39
48
  ---
40
49
  [Getting Started](docs/getting-started.md) | [Usage Guide](docs/usage.md) | [Handbook - Skills, Agents, Templates](docs/handbook.md) | Part of [ACE](https://github.com/cs3b/ace)
@@ -44,15 +44,10 @@ module Ace
44
44
  end
45
45
 
46
46
  # Resolve symlinks and validate project boundaries
47
- real_path = begin
48
- File.realpath(prompt_path)
49
- rescue
50
- prompt_path
51
- end
52
47
  project_root = Ace::Support::Fs::Molecules::ProjectRootFinder.find_or_current
53
48
 
54
- unless real_path.start_with?(project_root)
55
- warn "Error: File path resolves outside project: #{real_path}"
49
+ unless path_within_root?(prompt_path, project_root)
50
+ warn "Error: File path resolves outside project: #{canonical_path(prompt_path)}"
56
51
  return ""
57
52
  end
58
53
 
@@ -172,6 +167,33 @@ module Ace
172
167
 
173
168
  true
174
169
  end
170
+
171
+ def self.path_within_root?(path, root)
172
+ canonical = canonical_path(path)
173
+ canonical_root = canonical_path(root)
174
+ canonical == canonical_root || canonical.start_with?("#{canonical_root}#{File::SEPARATOR}")
175
+ end
176
+
177
+ def self.canonical_path(path)
178
+ expanded = File.expand_path(path)
179
+ return File.realpath(expanded) if File.exist?(expanded)
180
+
181
+ canonical_missing_path(expanded)
182
+ rescue
183
+ File.expand_path(path)
184
+ end
185
+
186
+ def self.canonical_missing_path(path)
187
+ parent = path
188
+ suffix = []
189
+ until File.exist?(parent) || parent == File.dirname(parent)
190
+ suffix.unshift(File.basename(parent))
191
+ parent = File.dirname(parent)
192
+ end
193
+ return path unless File.exist?(parent)
194
+
195
+ File.join(File.realpath(parent), *suffix)
196
+ end
175
197
  end
176
198
  end
177
199
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ace
4
4
  module PromptPrep
5
- VERSION = '0.23.6'
5
+ VERSION = '0.25.7'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ace-prompt-prep
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.6
4
+ version: 0.25.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Czyz
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2026-04-01 00:00:00.000000000 Z
10
+ date: 2026-06-30 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: ace-support-config