mirror of
https://github.com/bendtherules/opencode-plugin-compaction-prompt.git
synced 2026-08-18 13:42:55 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1867b9c335 | ||
|
|
459d85e84a | ||
|
|
31f911dee8 | ||
|
|
e4f08ffc7a | ||
|
|
e1ca9ae13e |
@@ -1,6 +1,12 @@
|
|||||||
# opencode-plugin-compaction-prompt
|
# opencode-plugin-compaction-prompt
|
||||||
|
|
||||||
Customize OpenCode's compaction prompt to guide which context carries forward, which details are omitted, and what the next session should retain.
|
Customize OpenCode's compaction prompt - decide which messages are prioritized/discarded in the next session.
|
||||||
|
|
||||||
|
**Compact fearlessly with priority-aware compaction.**
|
||||||
|
|
||||||
|
When you work across multiple features, OpenCode's default compaction doesn't know how to distinguish active work from older discussions, so it gives them equal priority. This can make important current details easy to lose.
|
||||||
|
|
||||||
|
This plugin enables priority-aware compaction, giving you more control and confidence when manually compacting a session. Specify which discussions to discard and which decisions, files, and snippets to prioritize in the summary.
|
||||||
|
|
||||||
[GitHub](https://github.com/bendtherules/opencode-plugin-compaction-prompt) · [npm](https://www.npmjs.com/package/opencode-plugin-compaction-prompt)
|
[GitHub](https://github.com/bendtherules/opencode-plugin-compaction-prompt) · [npm](https://www.npmjs.com/package/opencode-plugin-compaction-prompt)
|
||||||
|
|
||||||
@@ -55,7 +61,11 @@ The npm package exposes the compiled entrypoint at `dist/index.js` and TypeScrip
|
|||||||
|
|
||||||
## Publishing
|
## Publishing
|
||||||
|
|
||||||
Before publishing a release:
|
### Update the changelog
|
||||||
|
|
||||||
|
Add the changes for the new version to `CHANGELOG.md`.
|
||||||
|
|
||||||
|
### Verify the release
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bun run format:check
|
bun run format:check
|
||||||
@@ -63,14 +73,19 @@ bun test
|
|||||||
bun run typecheck
|
bun run typecheck
|
||||||
bun run build
|
bun run build
|
||||||
bun run pack:check
|
bun run pack:check
|
||||||
|
```
|
||||||
|
|
||||||
|
### Publish the release
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm version minor -m "chore: release v%s"
|
||||||
|
git push origin main --follow-tags
|
||||||
VERSION="$(node -p "require('./package.json').version")"
|
VERSION="$(node -p "require('./package.json').version")"
|
||||||
git tag "v$VERSION"
|
|
||||||
git push origin "v$VERSION"
|
|
||||||
gh release create "v$VERSION" --generate-notes
|
gh release create "v$VERSION" --generate-notes
|
||||||
npm publish
|
npm publish
|
||||||
```
|
```
|
||||||
|
|
||||||
Update the version in `package.json`, changelog, and the tag before each release. `npm publish` rebuilds `dist/` automatically.
|
Use `npm version patch` or `npm version major` when appropriate. `npm publish` rebuilds `dist/` automatically.
|
||||||
|
|
||||||
## Compatibility
|
## Compatibility
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "opencode-plugin-compaction-prompt",
|
"name": "opencode-plugin-compaction-prompt",
|
||||||
"version": "0.1.2",
|
"version": "0.2.0",
|
||||||
"description": "Customize OpenCode's compaction prompt to preserve important context and omit unnecessary details.",
|
"description": "Customize OpenCode's compaction prompt to preserve important context and omit unnecessary details.",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
Reference in New Issue
Block a user