mirror of
https://github.com/bendtherules/opencode-plugin-compaction-prompt.git
synced 2026-08-18 13:42:55 +00:00
docs: add publishing and repository links
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
Customize OpenCode's compaction prompt to guide which context carries forward, which details are omitted, and what the next session should retain.
|
||||
|
||||
[GitHub](https://github.com/bendtherules/opencode-plugin-compaction-prompt) · [npm](https://www.npmjs.com/package/opencode-plugin-compaction-prompt)
|
||||
|
||||
## Install
|
||||
|
||||
```bash
|
||||
@@ -51,6 +53,21 @@ bun run pack:check
|
||||
|
||||
The npm package exposes the compiled entrypoint at `dist/index.js` and TypeScript declarations at `dist/index.d.ts`.
|
||||
|
||||
## Publishing
|
||||
|
||||
Before publishing a release:
|
||||
|
||||
```bash
|
||||
bun run format:check
|
||||
bun test
|
||||
bun run typecheck
|
||||
bun run build
|
||||
bun run pack:check
|
||||
npm publish
|
||||
```
|
||||
|
||||
Update the version in `package.json` before each release. `npm publish` rebuilds `dist/` automatically.
|
||||
|
||||
## Compatibility
|
||||
|
||||
The plugin uses OpenCode's `experimental.session.compacting` hook. OpenCode may change experimental plugin APIs between releases; test the package against the OpenCode version you support.
|
||||
|
||||
Reference in New Issue
Block a user