Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 16 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,7 @@ jobs:
- name: Typecheck
run: bun run typecheck

- name: Build
run: bun run build

- name: Bump version
- name: Bump version & sync plugin constant
id: version
run: |
git config --global user.name "github-actions[bot]"
Expand All @@ -67,7 +64,21 @@ jobs:
NEW_VERSION=$(node -p "require('./package.json').version")
echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT

git add package.json
# Keep the PLUGIN_VERSION constant in index.ts in sync with package.json
# so logs and tool metadata report the real version (was frozen at 2.0.0
# because the bump only touched package.json). Build runs after this.
sed -i -E "s/(const PLUGIN_VERSION = \")[^\"]*(\";)/\1${NEW_VERSION}\2/" index.ts
grep -q "const PLUGIN_VERSION = \"${NEW_VERSION}\";" index.ts || {
echo "::error::Failed to sync PLUGIN_VERSION in index.ts to ${NEW_VERSION}"; exit 1;
}

- name: Build
run: bun run build

- name: Commit, tag & push
run: |
NEW_VERSION="${{ steps.version.outputs.new_version }}"
git add package.json package-lock.json index.ts
git commit -m "chore: bump to $NEW_VERSION [skip ci]"
git tag -f "v$NEW_VERSION"
git push origin main --tags --force
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ You should see `morph_edit`, `warpgrep_codebase_search`, and `warpgrep_github_se

## Compaction

Context compression via the Morph Compact API. In current OpenCode 1.14.x releases, only OpenCode native compaction writes the persisted summary message that future turns and the sidebar use. This plugin handles that path by pre-compressing the selected history with Morph before OpenCode's native compaction model writes its summary.
Context compression via the Morph Compact API. In current OpenCode releases (1.14+), only OpenCode native compaction writes the persisted summary message that future turns and the sidebar use. This plugin handles that path by pre-compressing the selected history with Morph before OpenCode's native compaction model writes its summary.

### How it works

Expand Down
Loading
Loading