@opencode-ai/plugin 0.0.0-next-16420 → 0.0.0-next-16473
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/tui/context.d.ts +17 -5
- package/package.json +9 -4
package/dist/tui/context.d.ts
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import type { AgentInfo, CommandInfo, FormInfo, IntegrationInfo, LocationRef, McpResource, McpServer, ModelInfo, OpenCodeClient, OpenCodeEvent, PermissionSavedInfo, PermissionRequest, ProviderInfo, ReferenceInfo, SessionInfo, SessionMessageInfo, SessionPendingInfo, ShellInfo, SkillInfo } from "@opencode-ai/client";
|
|
2
|
+
import type { ResolvedTheme } from "@opencode-ai/theme/tui";
|
|
2
3
|
import type { CliRenderer, KeyEvent, Renderable } from "@opentui/core";
|
|
3
4
|
import type { JSX } from "@opentui/solid";
|
|
5
|
+
import type { Store } from "solid-js/store";
|
|
6
|
+
export interface Storage {
|
|
7
|
+
store<Value extends object>(key: string, options: {
|
|
8
|
+
readonly initial: Value;
|
|
9
|
+
}): readonly [Store<Value>, (mutation: (draft: Value) => void) => Promise<void>];
|
|
10
|
+
}
|
|
4
11
|
interface LocationCollection<Value> {
|
|
5
12
|
list(location?: LocationRef): Value[] | undefined;
|
|
6
13
|
sync(location?: LocationRef): Promise<void>;
|
|
@@ -99,6 +106,10 @@ export interface Page {
|
|
|
99
106
|
export interface SlotMap {
|
|
100
107
|
readonly app: Readonly<Record<string, never>>;
|
|
101
108
|
readonly "home.footer": Readonly<Record<string, never>>;
|
|
109
|
+
readonly "prompt.footer.end": {
|
|
110
|
+
readonly sessionID?: string;
|
|
111
|
+
readonly mode: "normal" | "shell";
|
|
112
|
+
};
|
|
102
113
|
readonly "sidebar.content": {
|
|
103
114
|
readonly sessionID: string;
|
|
104
115
|
};
|
|
@@ -183,11 +194,11 @@ export interface DialogSelectOptions<Value> {
|
|
|
183
194
|
readonly current?: Value;
|
|
184
195
|
}
|
|
185
196
|
export interface Dialog {
|
|
186
|
-
/** Shows a dialog
|
|
187
|
-
show(render: () => JSX.Element, onClose?: () => void):
|
|
188
|
-
/** Sets the
|
|
197
|
+
/** Shows a dialog. */
|
|
198
|
+
show(render: () => JSX.Element, onClose?: () => void): void;
|
|
199
|
+
/** Sets the active dialog's presentation options. */
|
|
189
200
|
set(options: DialogOptions): void;
|
|
190
|
-
/** Closes
|
|
201
|
+
/** Closes the active dialog. */
|
|
191
202
|
clear(): void;
|
|
192
203
|
alert(options: DialogAlertOptions): Promise<void>;
|
|
193
204
|
confirm(options: DialogConfirmOptions): Promise<boolean | undefined>;
|
|
@@ -288,8 +299,9 @@ export interface Context {
|
|
|
288
299
|
readonly client: OpenCodeClient;
|
|
289
300
|
readonly data: Data;
|
|
290
301
|
readonly attention: Attention;
|
|
291
|
-
readonly theme:
|
|
302
|
+
readonly theme: ResolvedTheme;
|
|
292
303
|
readonly keymap: Keymap;
|
|
304
|
+
readonly storage: Storage;
|
|
293
305
|
readonly ui: UI;
|
|
294
306
|
}
|
|
295
307
|
export {};
|
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-16473",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"scripts": {
|
|
@@ -36,21 +36,25 @@
|
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@ai-sdk/provider": "3.0.8",
|
|
39
|
-
"@opencode-ai/ai": "0.0.0-next-
|
|
40
|
-
"@opencode-ai/client": "0.0.0-next-
|
|
41
|
-
"@opencode-ai/schema": "0.0.0-next-
|
|
39
|
+
"@opencode-ai/ai": "0.0.0-next-16473",
|
|
40
|
+
"@opencode-ai/client": "0.0.0-next-16473",
|
|
41
|
+
"@opencode-ai/schema": "0.0.0-next-16473",
|
|
42
42
|
"@opencode-ai/sdk": "1.18.5",
|
|
43
43
|
"@standard-schema/spec": "1.1.0",
|
|
44
44
|
"effect": "4.0.0-beta.101",
|
|
45
45
|
"zod": "4.1.8"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
+
"@opencode-ai/theme": "0.0.0-next-16473",
|
|
48
49
|
"@opentui/core": ">=0.4.5",
|
|
49
50
|
"@opentui/keymap": ">=0.4.5",
|
|
50
51
|
"@opentui/solid": ">=0.4.5",
|
|
51
52
|
"solid-js": ">=1.9.0"
|
|
52
53
|
},
|
|
53
54
|
"peerDependenciesMeta": {
|
|
55
|
+
"@opencode-ai/theme": {
|
|
56
|
+
"optional": true
|
|
57
|
+
},
|
|
54
58
|
"@opentui/core": {
|
|
55
59
|
"optional": true
|
|
56
60
|
},
|
|
@@ -65,6 +69,7 @@
|
|
|
65
69
|
}
|
|
66
70
|
},
|
|
67
71
|
"devDependencies": {
|
|
72
|
+
"@opencode-ai/theme": "0.0.0-next-16473",
|
|
68
73
|
"@opentui/core": "0.4.5",
|
|
69
74
|
"@opentui/keymap": "0.4.5",
|
|
70
75
|
"@opentui/solid": "0.4.5",
|