docs: add publishing and repository links

This commit is contained in:
2026-08-01 16:55:17 +05:30
parent 9b70b18295
commit 33429d1ab9
2 changed files with 25 additions and 0 deletions
+17
View File
@@ -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.