@opencode-ai/plugin 1.0.150 → 1.0.151

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 +7 -1
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Event, createOpencodeClient, Project, Model, Provider, Permission, UserMessage, Part, Auth, Config } from "@opencode-ai/sdk";
1
+ import type { Event, createOpencodeClient, Project, Model, Provider, Permission, UserMessage, Message, Part, Auth, Config } from "@opencode-ai/sdk";
2
2
  import type { BunShell } from "./shell";
3
3
  import { type ToolDefinition } from "./tool";
4
4
  export * from "./tool";
@@ -159,6 +159,12 @@ export interface Hooks {
159
159
  output: string;
160
160
  metadata: any;
161
161
  }) => Promise<void>;
162
+ "experimental.chat.messages.transform"?: (input: {}, output: {
163
+ messages: {
164
+ info: Message;
165
+ parts: Part[];
166
+ }[];
167
+ }) => Promise<void>;
162
168
  "experimental.text.complete"?: (input: {
163
169
  sessionID: string;
164
170
  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.150",
4
+ "version": "1.0.151",
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.150",
24
+ "@opencode-ai/sdk": "1.0.151",
25
25
  "zod": "4.1.8"
26
26
  },
27
27
  "devDependencies": {