@opencode-ai/plugin 1.0.163 → 1.0.165

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.d.ts +9 -0
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -169,6 +169,15 @@ export interface Hooks {
169
169
  "experimental.chat.system.transform"?: (input: {}, output: {
170
170
  system: string[];
171
171
  }) => Promise<void>;
172
+ /**
173
+ * Called before session compaction starts. Allows plugins to append
174
+ * additional context to the compaction prompt.
175
+ */
176
+ "experimental.session.compacting"?: (input: {
177
+ sessionID: string;
178
+ }, output: {
179
+ context: string[];
180
+ }) => Promise<void>;
172
181
  "experimental.text.complete"?: (input: {
173
182
  sessionID: string;
174
183
  messageID: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode-ai/plugin",
4
- "version": "1.0.163",
4
+ "version": "1.0.165",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "typecheck": "tsgo --noEmit",
@@ -21,7 +21,7 @@
21
21
  "dist"
22
22
  ],
23
23
  "dependencies": {
24
- "@opencode-ai/sdk": "1.0.163",
24
+ "@opencode-ai/sdk": "1.0.165",
25
25
  "zod": "4.1.8"
26
26
  },
27
27
  "devDependencies": {