@opencode-ai/plugin 0.0.0-snapshot-pnpm-202511302105 → 0.0.0-snapshot-proxy-202512080622

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 +13 -1
  2. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -2,6 +2,11 @@ import type { Event, createOpencodeClient, Project, Model, Provider, Permission,
2
2
  import type { BunShell } from "./shell";
3
3
  import { type ToolDefinition } from "./tool";
4
4
  export * from "./tool";
5
+ export type ProviderContext = {
6
+ source: "env" | "config" | "custom" | "api";
7
+ info: Provider;
8
+ options: Record<string, any>;
9
+ };
5
10
  export type PluginInput = {
6
11
  client: ReturnType<typeof createOpencodeClient>;
7
12
  project: Project;
@@ -128,7 +133,7 @@ export interface Hooks {
128
133
  sessionID: string;
129
134
  agent: string;
130
135
  model: Model;
131
- provider: Provider;
136
+ provider: ProviderContext;
132
137
  message: UserMessage;
133
138
  }, output: {
134
139
  temperature: number;
@@ -154,4 +159,11 @@ export interface Hooks {
154
159
  output: string;
155
160
  metadata: any;
156
161
  }) => Promise<void>;
162
+ "experimental.text.complete"?: (input: {
163
+ sessionID: string;
164
+ messageID: string;
165
+ partID: string;
166
+ }, output: {
167
+ text: string;
168
+ }) => Promise<void>;
157
169
  }
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": "0.0.0-snapshot-pnpm-202511302105",
4
+ "version": "0.0.0-snapshot-proxy-202512080622",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "typecheck": "tsgo --noEmit",
@@ -21,13 +21,13 @@
21
21
  "dist"
22
22
  ],
23
23
  "dependencies": {
24
- "@opencode-ai/sdk": "0.0.0-snapshot-pnpm-202511302105",
24
+ "@opencode-ai/sdk": "0.0.0-snapshot-proxy-202512080622",
25
25
  "zod": "4.1.8"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@tsconfig/node22": "22.0.2",
29
29
  "@types/node": "22.13.9",
30
30
  "typescript": "5.8.2",
31
- "@typescript/native-preview": "7.0.0-dev.20251014.1"
31
+ "@typescript/native-preview": "7.0.0-dev.20251207.1"
32
32
  }
33
33
  }