You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(cli): update no longer copies dist-manifest.yml or dist-templates into adopter projects (cli-3.5.3) (#64)
devtrail update / update-framework used to walk every file in the
extracted release ZIP and copy each one whose path didn't already exist
in the target — which silently deposited the framework's internal
dist-manifest.yml and dist-templates/ directory at the root of every
updated project. devtrail init was already correct: it only extracts
paths declared in manifest.files. update_framework.rs now applies the
same whitelist via matches_manifest(), so only files declared in the
release manifest are copied.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,13 @@ and this project uses [independent versioning](README.md#versioning) for Framewo
7
7
8
8
---
9
9
10
+
## CLI 3.5.3 — `devtrail update` no longer leaks package internals into adopter projects
11
+
12
+
### Fixed (CLI)
13
+
-`devtrail update` (and `devtrail update-framework`) used to copy the framework's internal `dist-manifest.yml` and `dist-templates/` directory into the root of the adopter project. Both are package-internal artifacts: the manifest is the catalogue the CLI reads from the release ZIP, and `dist-templates/` is the source of agent-directive injections that are read into memory and merged via marker blocks — neither is meant to land on disk in the target project. `devtrail init` already filtered correctly via `manifest.files`; only the update path was inconsistent. Update now applies the same whitelist, so only files declared in the release manifest are copied. Existing projects affected by the bug can clean up by deleting `dist-manifest.yml` and `dist-templates/` from their project root and running `devtrail update-framework` again to regenerate `.devtrail/.checksums.json` without orphan entries.
0 commit comments