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. 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 ## Install
```bash ```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`. 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 ## 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. 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.
+8
View File
@@ -3,6 +3,14 @@
"version": "0.1.0", "version": "0.1.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": {
"type": "git",
"url": "https://github.com/bendtherules/opencode-plugin-compaction-prompt.git"
},
"homepage": "https://github.com/bendtherules/opencode-plugin-compaction-prompt#readme",
"bugs": {
"url": "https://github.com/bendtherules/opencode-plugin-compaction-prompt/issues"
},
"exports": { "exports": {
".": { ".": {
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",