Skip to content

fix: restore file content extraction — release v4.2.1#27

Merged
keyamasabaya merged 1 commit into
mainfrom
claude/release-regression-fixes-2n7ca5
Jun 30, 2026
Merged

fix: restore file content extraction — release v4.2.1#27
keyamasabaya merged 1 commit into
mainfrom
claude/release-regression-fixes-2n7ca5

Conversation

@keyamasabaya

Copy link
Copy Markdown
Owner

Context

The published v4.2 release is flagged on GitHub as "DON'T USE, IT WON'T WORK !!". Reproducing it confirms the regression: codepack generated an output file containing only the directory tree, and every file was wrongly reported as empty:

📝 Processed 0 files (skipped 5 empty files)

No file contents were ever written to the output — making the tool useless for its core purpose (feeding code to an AI).

Root cause

The content-extraction pipeline in the v4.2 tag was broken (corrupted sed step in the file reader, fragile file-listing, and mapfile usage incompatible with macOS's default Bash). The working extraction logic was already restored on main through the follow-up fixes (PRs #14#19), but no new release was ever cut, so users installing @w3spi5/codepack still get the broken v4.2.

What this PR does

This is the release cut: it bumps the version so a fixed package can be published. No behavioural code changes beyond the version string — the extraction fixes are already on main.

  • Bump version 4.24.2.1 in the script header, the main() banner, and package.json
  • Document the regression fixes in CHANGELOG.md (new [4.2.1] section)

Verification

  • test/test_basic.sh ✅ and test/test_features.sh ✅ pass
  • bash -n codepack.sh syntax check ✅
  • Manual runs confirm file contents are extracted again across normal, --include, --exclude and --minify modes (e.g. 17/18 files processed with real content vs. 0/5 on the broken v4.2)

After merge to main, the Test & Publish workflow publishes the fixed package to GitHub Packages.

🤖 Generated with Claude Code


Generated by Claude Code

The v4.2 release was flagged "DON'T USE, IT WON'T WORK": the extraction
pipeline produced an output file containing only the directory tree, with
every file wrongly reported as empty ("Processed 0 files"). The working
extraction logic is already on main; this bumps the version so a fixed
release can be published.

- Bump version to 4.2.1 in header, main() banner and package.json
- Document the regression fixes in CHANGELOG.md

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y2XJw3TXS1EuWdgmnGD4ts
@keyamasabaya
keyamasabaya merged commit 89009df into main Jun 30, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants