@opencode-ai/plugin 1.0.128 → 1.0.129

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 -1
  2. package/package.json +2 -2
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;
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.128",
4
+ "version": "1.0.129",
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.128",
24
+ "@opencode-ai/sdk": "1.0.129",
25
25
  "zod": "4.1.8"
26
26
  },
27
27
  "devDependencies": {