@opencode-ai/plugin 1.0.190 → 1.0.192

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 +6 -2
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -170,13 +170,17 @@ export interface Hooks {
170
170
  system: string[];
171
171
  }) => Promise<void>;
172
172
  /**
173
- * Called before session compaction starts. Allows plugins to append
174
- * additional context to the compaction prompt.
173
+ * Called before session compaction starts. Allows plugins to customize
174
+ * the compaction prompt.
175
+ *
176
+ * - `context`: Additional context strings appended to the default prompt
177
+ * - `prompt`: If set, replaces the default compaction prompt entirely
175
178
  */
176
179
  "experimental.session.compacting"?: (input: {
177
180
  sessionID: string;
178
181
  }, output: {
179
182
  context: string[];
183
+ prompt?: string;
180
184
  }) => Promise<void>;
181
185
  "experimental.text.complete"?: (input: {
182
186
  sessionID: 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.190",
4
+ "version": "1.0.192",
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.190",
24
+ "@opencode-ai/sdk": "1.0.192",
25
25
  "zod": "4.1.8"
26
26
  },
27
27
  "devDependencies": {