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.
|
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.
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user