@opencode-ai/plugin 0.0.0-next-15494 → 0.0.0-next-15518
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.
package/dist/v2/tui/context.d.ts
CHANGED
|
@@ -87,7 +87,7 @@ export interface UI {
|
|
|
87
87
|
readonly route: Route;
|
|
88
88
|
}
|
|
89
89
|
export interface Context {
|
|
90
|
-
readonly options: Record<string,
|
|
90
|
+
readonly options: Readonly<Record<string, unknown>>;
|
|
91
91
|
readonly client: OpenCodeClient;
|
|
92
92
|
readonly data: Data;
|
|
93
93
|
readonly ui: UI;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as Plugin from "./plugin.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as Plugin from "./plugin.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Context } from "./context.js";
|
|
2
|
+
export type { Context };
|
|
3
|
+
export type Cleanup = () => Promise<void> | void;
|
|
4
|
+
export interface Definition {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
readonly setup: (context: Context) => Promise<Cleanup | void> | Cleanup | void;
|
|
7
|
+
}
|
|
8
|
+
export declare function define(plugin: Definition): Definition;
|
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-next-
|
|
4
|
+
"version": "0.0.0-next-15518",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"scripts": {
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"import": "./dist/v2/effect/*.js",
|
|
31
31
|
"types": "./dist/v2/effect/*.d.ts"
|
|
32
32
|
},
|
|
33
|
-
"./v2/tui
|
|
34
|
-
"import": "./dist/v2/tui
|
|
35
|
-
"types": "./dist/v2/tui
|
|
33
|
+
"./v2/tui": {
|
|
34
|
+
"import": "./dist/v2/tui/index.js",
|
|
35
|
+
"types": "./dist/v2/tui/index.d.ts"
|
|
36
36
|
},
|
|
37
37
|
"./v2": {
|
|
38
38
|
"import": "./dist/v2/promise/index.js",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
],
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@ai-sdk/provider": "3.0.8",
|
|
51
|
-
"@opencode-ai/client": "0.0.0-next-
|
|
52
|
-
"@opencode-ai/schema": "0.0.0-next-
|
|
53
|
-
"@opencode-ai/sdk": "0.0.0-next-
|
|
51
|
+
"@opencode-ai/client": "0.0.0-next-15518",
|
|
52
|
+
"@opencode-ai/schema": "0.0.0-next-15518",
|
|
53
|
+
"@opencode-ai/sdk": "0.0.0-next-15518",
|
|
54
54
|
"effect": "4.0.0-beta.83",
|
|
55
55
|
"zod": "4.1.8"
|
|
56
56
|
},
|