@opencode-ai/plugin 1.3.3 → 1.3.5
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/index.d.ts +15 -4
- package/dist/tui.d.ts +377 -0
- package/dist/tui.js +1 -0
- package/package.json +20 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Event, createOpencodeClient, Project, Model, Provider, Permission, UserMessage, Message, Part, Auth, Config } from "@opencode-ai/sdk";
|
|
1
|
+
import type { Event, createOpencodeClient, Project, Model, Provider, Permission, UserMessage, Message, Part, Auth, Config as SDKConfig } from "@opencode-ai/sdk";
|
|
2
2
|
import type { BunShell } from "./shell.js";
|
|
3
3
|
import { type ToolDefinition } from "./tool.js";
|
|
4
4
|
export * from "./tool.js";
|
|
@@ -15,7 +15,16 @@ export type PluginInput = {
|
|
|
15
15
|
serverUrl: URL;
|
|
16
16
|
$: BunShell;
|
|
17
17
|
};
|
|
18
|
-
export type
|
|
18
|
+
export type PluginOptions = Record<string, unknown>;
|
|
19
|
+
export type Config = Omit<SDKConfig, "plugin"> & {
|
|
20
|
+
plugin?: Array<string | [string, PluginOptions]>;
|
|
21
|
+
};
|
|
22
|
+
export type Plugin = (input: PluginInput, options?: PluginOptions) => Promise<Hooks>;
|
|
23
|
+
export type PluginModule = {
|
|
24
|
+
id?: string;
|
|
25
|
+
server: Plugin;
|
|
26
|
+
tui?: never;
|
|
27
|
+
};
|
|
19
28
|
type Rule = {
|
|
20
29
|
key: string;
|
|
21
30
|
op: "eq" | "neq";
|
|
@@ -49,7 +58,7 @@ export type AuthHook = {
|
|
|
49
58
|
condition?: (inputs: Record<string, string>) => boolean;
|
|
50
59
|
when?: Rule;
|
|
51
60
|
}>;
|
|
52
|
-
authorize(inputs?: Record<string, string>): Promise<
|
|
61
|
+
authorize(inputs?: Record<string, string>): Promise<AuthOAuthResult>;
|
|
53
62
|
} | {
|
|
54
63
|
type: "api";
|
|
55
64
|
label: string;
|
|
@@ -84,7 +93,7 @@ export type AuthHook = {
|
|
|
84
93
|
}>;
|
|
85
94
|
})[];
|
|
86
95
|
};
|
|
87
|
-
export type
|
|
96
|
+
export type AuthOAuthResult = {
|
|
88
97
|
url: string;
|
|
89
98
|
instructions: string;
|
|
90
99
|
} & ({
|
|
@@ -120,6 +129,8 @@ export type AuthOuathResult = {
|
|
|
120
129
|
type: "failed";
|
|
121
130
|
}>;
|
|
122
131
|
});
|
|
132
|
+
/** @deprecated Use AuthOAuthResult instead. */
|
|
133
|
+
export type AuthOuathResult = AuthOAuthResult;
|
|
123
134
|
export interface Hooks {
|
|
124
135
|
event?: (input: {
|
|
125
136
|
event: Event;
|
package/dist/tui.d.ts
ADDED
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
import type { OpencodeClient, Event, LspStatus, McpStatus, Todo, Message, Part, Provider, PermissionRequest, QuestionRequest, SessionStatus, Workspace, Config as SdkConfig } from "@opencode-ai/sdk/v2";
|
|
2
|
+
import type { CliRenderer, ParsedKey, RGBA } from "@opentui/core";
|
|
3
|
+
import type { JSX, SolidPlugin } from "@opentui/solid";
|
|
4
|
+
import type { Config as PluginConfig, PluginOptions } from "./index.js";
|
|
5
|
+
export type { CliRenderer, SlotMode } from "@opentui/core";
|
|
6
|
+
export type TuiRouteCurrent = {
|
|
7
|
+
name: "home";
|
|
8
|
+
} | {
|
|
9
|
+
name: "session";
|
|
10
|
+
params: {
|
|
11
|
+
sessionID: string;
|
|
12
|
+
initialPrompt?: unknown;
|
|
13
|
+
};
|
|
14
|
+
} | {
|
|
15
|
+
name: string;
|
|
16
|
+
params?: Record<string, unknown>;
|
|
17
|
+
};
|
|
18
|
+
export type TuiRouteDefinition = {
|
|
19
|
+
name: string;
|
|
20
|
+
render: (input: {
|
|
21
|
+
params?: Record<string, unknown>;
|
|
22
|
+
}) => JSX.Element;
|
|
23
|
+
};
|
|
24
|
+
export type TuiCommand = {
|
|
25
|
+
title: string;
|
|
26
|
+
value: string;
|
|
27
|
+
description?: string;
|
|
28
|
+
category?: string;
|
|
29
|
+
keybind?: string;
|
|
30
|
+
suggested?: boolean;
|
|
31
|
+
hidden?: boolean;
|
|
32
|
+
enabled?: boolean;
|
|
33
|
+
slash?: {
|
|
34
|
+
name: string;
|
|
35
|
+
aliases?: string[];
|
|
36
|
+
};
|
|
37
|
+
onSelect?: () => void;
|
|
38
|
+
};
|
|
39
|
+
export type TuiKeybind = {
|
|
40
|
+
name: string;
|
|
41
|
+
ctrl: boolean;
|
|
42
|
+
meta: boolean;
|
|
43
|
+
shift: boolean;
|
|
44
|
+
super?: boolean;
|
|
45
|
+
leader: boolean;
|
|
46
|
+
};
|
|
47
|
+
export type TuiKeybindMap = Record<string, string>;
|
|
48
|
+
export type TuiKeybindSet = {
|
|
49
|
+
readonly all: TuiKeybindMap;
|
|
50
|
+
get: (name: string) => string;
|
|
51
|
+
match: (name: string, evt: ParsedKey) => boolean;
|
|
52
|
+
print: (name: string) => string;
|
|
53
|
+
};
|
|
54
|
+
export type TuiDialogProps = {
|
|
55
|
+
size?: "medium" | "large" | "xlarge";
|
|
56
|
+
onClose: () => void;
|
|
57
|
+
children?: JSX.Element;
|
|
58
|
+
};
|
|
59
|
+
export type TuiDialogStack = {
|
|
60
|
+
replace: (render: () => JSX.Element, onClose?: () => void) => void;
|
|
61
|
+
clear: () => void;
|
|
62
|
+
setSize: (size: "medium" | "large" | "xlarge") => void;
|
|
63
|
+
readonly size: "medium" | "large" | "xlarge";
|
|
64
|
+
readonly depth: number;
|
|
65
|
+
readonly open: boolean;
|
|
66
|
+
};
|
|
67
|
+
export type TuiDialogAlertProps = {
|
|
68
|
+
title: string;
|
|
69
|
+
message: string;
|
|
70
|
+
onConfirm?: () => void;
|
|
71
|
+
};
|
|
72
|
+
export type TuiDialogConfirmProps = {
|
|
73
|
+
title: string;
|
|
74
|
+
message: string;
|
|
75
|
+
onConfirm?: () => void;
|
|
76
|
+
onCancel?: () => void;
|
|
77
|
+
};
|
|
78
|
+
export type TuiDialogPromptProps = {
|
|
79
|
+
title: string;
|
|
80
|
+
description?: () => JSX.Element;
|
|
81
|
+
placeholder?: string;
|
|
82
|
+
value?: string;
|
|
83
|
+
busy?: boolean;
|
|
84
|
+
busyText?: string;
|
|
85
|
+
onConfirm?: (value: string) => void;
|
|
86
|
+
onCancel?: () => void;
|
|
87
|
+
};
|
|
88
|
+
export type TuiDialogSelectOption<Value = unknown> = {
|
|
89
|
+
title: string;
|
|
90
|
+
value: Value;
|
|
91
|
+
description?: string;
|
|
92
|
+
footer?: JSX.Element | string;
|
|
93
|
+
category?: string;
|
|
94
|
+
disabled?: boolean;
|
|
95
|
+
onSelect?: () => void;
|
|
96
|
+
};
|
|
97
|
+
export type TuiDialogSelectProps<Value = unknown> = {
|
|
98
|
+
title: string;
|
|
99
|
+
placeholder?: string;
|
|
100
|
+
options: TuiDialogSelectOption<Value>[];
|
|
101
|
+
flat?: boolean;
|
|
102
|
+
onMove?: (option: TuiDialogSelectOption<Value>) => void;
|
|
103
|
+
onFilter?: (query: string) => void;
|
|
104
|
+
onSelect?: (option: TuiDialogSelectOption<Value>) => void;
|
|
105
|
+
skipFilter?: boolean;
|
|
106
|
+
current?: Value;
|
|
107
|
+
};
|
|
108
|
+
export type TuiPromptProps = {
|
|
109
|
+
workspaceID?: string;
|
|
110
|
+
visible?: boolean;
|
|
111
|
+
disabled?: boolean;
|
|
112
|
+
onSubmit?: () => void;
|
|
113
|
+
hint?: JSX.Element;
|
|
114
|
+
showPlaceholder?: boolean;
|
|
115
|
+
placeholders?: {
|
|
116
|
+
normal?: string[];
|
|
117
|
+
shell?: string[];
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
export type TuiToast = {
|
|
121
|
+
variant?: "info" | "success" | "warning" | "error";
|
|
122
|
+
title?: string;
|
|
123
|
+
message: string;
|
|
124
|
+
duration?: number;
|
|
125
|
+
};
|
|
126
|
+
export type TuiThemeCurrent = {
|
|
127
|
+
readonly primary: RGBA;
|
|
128
|
+
readonly secondary: RGBA;
|
|
129
|
+
readonly accent: RGBA;
|
|
130
|
+
readonly error: RGBA;
|
|
131
|
+
readonly warning: RGBA;
|
|
132
|
+
readonly success: RGBA;
|
|
133
|
+
readonly info: RGBA;
|
|
134
|
+
readonly text: RGBA;
|
|
135
|
+
readonly textMuted: RGBA;
|
|
136
|
+
readonly selectedListItemText: RGBA;
|
|
137
|
+
readonly background: RGBA;
|
|
138
|
+
readonly backgroundPanel: RGBA;
|
|
139
|
+
readonly backgroundElement: RGBA;
|
|
140
|
+
readonly backgroundMenu: RGBA;
|
|
141
|
+
readonly border: RGBA;
|
|
142
|
+
readonly borderActive: RGBA;
|
|
143
|
+
readonly borderSubtle: RGBA;
|
|
144
|
+
readonly diffAdded: RGBA;
|
|
145
|
+
readonly diffRemoved: RGBA;
|
|
146
|
+
readonly diffContext: RGBA;
|
|
147
|
+
readonly diffHunkHeader: RGBA;
|
|
148
|
+
readonly diffHighlightAdded: RGBA;
|
|
149
|
+
readonly diffHighlightRemoved: RGBA;
|
|
150
|
+
readonly diffAddedBg: RGBA;
|
|
151
|
+
readonly diffRemovedBg: RGBA;
|
|
152
|
+
readonly diffContextBg: RGBA;
|
|
153
|
+
readonly diffLineNumber: RGBA;
|
|
154
|
+
readonly diffAddedLineNumberBg: RGBA;
|
|
155
|
+
readonly diffRemovedLineNumberBg: RGBA;
|
|
156
|
+
readonly markdownText: RGBA;
|
|
157
|
+
readonly markdownHeading: RGBA;
|
|
158
|
+
readonly markdownLink: RGBA;
|
|
159
|
+
readonly markdownLinkText: RGBA;
|
|
160
|
+
readonly markdownCode: RGBA;
|
|
161
|
+
readonly markdownBlockQuote: RGBA;
|
|
162
|
+
readonly markdownEmph: RGBA;
|
|
163
|
+
readonly markdownStrong: RGBA;
|
|
164
|
+
readonly markdownHorizontalRule: RGBA;
|
|
165
|
+
readonly markdownListItem: RGBA;
|
|
166
|
+
readonly markdownListEnumeration: RGBA;
|
|
167
|
+
readonly markdownImage: RGBA;
|
|
168
|
+
readonly markdownImageText: RGBA;
|
|
169
|
+
readonly markdownCodeBlock: RGBA;
|
|
170
|
+
readonly syntaxComment: RGBA;
|
|
171
|
+
readonly syntaxKeyword: RGBA;
|
|
172
|
+
readonly syntaxFunction: RGBA;
|
|
173
|
+
readonly syntaxVariable: RGBA;
|
|
174
|
+
readonly syntaxString: RGBA;
|
|
175
|
+
readonly syntaxNumber: RGBA;
|
|
176
|
+
readonly syntaxType: RGBA;
|
|
177
|
+
readonly syntaxOperator: RGBA;
|
|
178
|
+
readonly syntaxPunctuation: RGBA;
|
|
179
|
+
readonly thinkingOpacity: number;
|
|
180
|
+
};
|
|
181
|
+
export type TuiTheme = {
|
|
182
|
+
readonly current: TuiThemeCurrent;
|
|
183
|
+
readonly selected: string;
|
|
184
|
+
has: (name: string) => boolean;
|
|
185
|
+
set: (name: string) => boolean;
|
|
186
|
+
install: (jsonPath: string) => Promise<void>;
|
|
187
|
+
mode: () => "dark" | "light";
|
|
188
|
+
readonly ready: boolean;
|
|
189
|
+
};
|
|
190
|
+
export type TuiKV = {
|
|
191
|
+
get: <Value = unknown>(key: string, fallback?: Value) => Value;
|
|
192
|
+
set: (key: string, value: unknown) => void;
|
|
193
|
+
readonly ready: boolean;
|
|
194
|
+
};
|
|
195
|
+
export type TuiState = {
|
|
196
|
+
readonly ready: boolean;
|
|
197
|
+
readonly config: SdkConfig;
|
|
198
|
+
readonly provider: ReadonlyArray<Provider>;
|
|
199
|
+
readonly path: {
|
|
200
|
+
state: string;
|
|
201
|
+
config: string;
|
|
202
|
+
worktree: string;
|
|
203
|
+
directory: string;
|
|
204
|
+
};
|
|
205
|
+
readonly vcs: {
|
|
206
|
+
branch?: string;
|
|
207
|
+
} | undefined;
|
|
208
|
+
readonly workspace: {
|
|
209
|
+
list: () => ReadonlyArray<Workspace>;
|
|
210
|
+
get: (workspaceID: string) => Workspace | undefined;
|
|
211
|
+
};
|
|
212
|
+
session: {
|
|
213
|
+
count: () => number;
|
|
214
|
+
diff: (sessionID: string) => ReadonlyArray<TuiSidebarFileItem>;
|
|
215
|
+
todo: (sessionID: string) => ReadonlyArray<TuiSidebarTodoItem>;
|
|
216
|
+
messages: (sessionID: string) => ReadonlyArray<Message>;
|
|
217
|
+
status: (sessionID: string) => SessionStatus | undefined;
|
|
218
|
+
permission: (sessionID: string) => ReadonlyArray<PermissionRequest>;
|
|
219
|
+
question: (sessionID: string) => ReadonlyArray<QuestionRequest>;
|
|
220
|
+
};
|
|
221
|
+
part: (messageID: string) => ReadonlyArray<Part>;
|
|
222
|
+
lsp: () => ReadonlyArray<TuiSidebarLspItem>;
|
|
223
|
+
mcp: () => ReadonlyArray<TuiSidebarMcpItem>;
|
|
224
|
+
};
|
|
225
|
+
type TuiConfigView = Pick<PluginConfig, "$schema" | "theme" | "keybinds" | "plugin"> & NonNullable<PluginConfig["tui"]> & {
|
|
226
|
+
plugin_enabled?: Record<string, boolean>;
|
|
227
|
+
};
|
|
228
|
+
export type TuiApp = {
|
|
229
|
+
readonly version: string;
|
|
230
|
+
};
|
|
231
|
+
type Frozen<Value> = Value extends (...args: never[]) => unknown ? Value : Value extends ReadonlyArray<infer Item> ? ReadonlyArray<Frozen<Item>> : Value extends object ? {
|
|
232
|
+
readonly [Key in keyof Value]: Frozen<Value[Key]>;
|
|
233
|
+
} : Value;
|
|
234
|
+
export type TuiSidebarMcpItem = {
|
|
235
|
+
name: string;
|
|
236
|
+
status: McpStatus["status"];
|
|
237
|
+
error?: string;
|
|
238
|
+
};
|
|
239
|
+
export type TuiSidebarLspItem = Pick<LspStatus, "id" | "root" | "status">;
|
|
240
|
+
export type TuiSidebarTodoItem = Pick<Todo, "content" | "status">;
|
|
241
|
+
export type TuiSidebarFileItem = {
|
|
242
|
+
file: string;
|
|
243
|
+
additions: number;
|
|
244
|
+
deletions: number;
|
|
245
|
+
};
|
|
246
|
+
export type TuiSlotMap = {
|
|
247
|
+
app: {};
|
|
248
|
+
home_logo: {};
|
|
249
|
+
home_prompt: {
|
|
250
|
+
workspace_id?: string;
|
|
251
|
+
};
|
|
252
|
+
home_bottom: {};
|
|
253
|
+
sidebar_title: {
|
|
254
|
+
session_id: string;
|
|
255
|
+
title: string;
|
|
256
|
+
share_url?: string;
|
|
257
|
+
};
|
|
258
|
+
sidebar_content: {
|
|
259
|
+
session_id: string;
|
|
260
|
+
};
|
|
261
|
+
sidebar_footer: {
|
|
262
|
+
session_id: string;
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
export type TuiSlotContext = {
|
|
266
|
+
theme: TuiTheme;
|
|
267
|
+
};
|
|
268
|
+
type SlotCore = SolidPlugin<TuiSlotMap, TuiSlotContext>;
|
|
269
|
+
export type TuiSlotPlugin = Omit<SlotCore, "id"> & {
|
|
270
|
+
id?: never;
|
|
271
|
+
};
|
|
272
|
+
export type TuiSlots = {
|
|
273
|
+
register: (plugin: TuiSlotPlugin) => string;
|
|
274
|
+
};
|
|
275
|
+
export type TuiEventBus = {
|
|
276
|
+
on: <Type extends Event["type"]>(type: Type, handler: (event: Extract<Event, {
|
|
277
|
+
type: Type;
|
|
278
|
+
}>) => void) => () => void;
|
|
279
|
+
};
|
|
280
|
+
export type TuiDispose = () => void | Promise<void>;
|
|
281
|
+
export type TuiLifecycle = {
|
|
282
|
+
readonly signal: AbortSignal;
|
|
283
|
+
onDispose: (fn: TuiDispose) => () => void;
|
|
284
|
+
};
|
|
285
|
+
export type TuiPluginState = "first" | "updated" | "same";
|
|
286
|
+
export type TuiPluginEntry = {
|
|
287
|
+
id: string;
|
|
288
|
+
source: "file" | "npm" | "internal";
|
|
289
|
+
spec: string;
|
|
290
|
+
target: string;
|
|
291
|
+
requested?: string;
|
|
292
|
+
version?: string;
|
|
293
|
+
modified?: number;
|
|
294
|
+
first_time: number;
|
|
295
|
+
last_time: number;
|
|
296
|
+
time_changed: number;
|
|
297
|
+
load_count: number;
|
|
298
|
+
fingerprint: string;
|
|
299
|
+
};
|
|
300
|
+
export type TuiPluginMeta = TuiPluginEntry & {
|
|
301
|
+
state: TuiPluginState;
|
|
302
|
+
};
|
|
303
|
+
export type TuiPluginStatus = {
|
|
304
|
+
id: string;
|
|
305
|
+
source: TuiPluginEntry["source"];
|
|
306
|
+
spec: string;
|
|
307
|
+
target: string;
|
|
308
|
+
enabled: boolean;
|
|
309
|
+
active: boolean;
|
|
310
|
+
};
|
|
311
|
+
export type TuiPluginInstallOptions = {
|
|
312
|
+
global?: boolean;
|
|
313
|
+
};
|
|
314
|
+
export type TuiPluginInstallResult = {
|
|
315
|
+
ok: true;
|
|
316
|
+
dir: string;
|
|
317
|
+
tui: boolean;
|
|
318
|
+
} | {
|
|
319
|
+
ok: false;
|
|
320
|
+
message: string;
|
|
321
|
+
missing?: boolean;
|
|
322
|
+
};
|
|
323
|
+
export type TuiWorkspace = {
|
|
324
|
+
current: () => string | undefined;
|
|
325
|
+
set: (workspaceID?: string) => void;
|
|
326
|
+
};
|
|
327
|
+
export type TuiPluginApi = {
|
|
328
|
+
app: TuiApp;
|
|
329
|
+
command: {
|
|
330
|
+
register: (cb: () => TuiCommand[]) => () => void;
|
|
331
|
+
trigger: (value: string) => void;
|
|
332
|
+
};
|
|
333
|
+
route: {
|
|
334
|
+
register: (routes: TuiRouteDefinition[]) => () => void;
|
|
335
|
+
navigate: (name: string, params?: Record<string, unknown>) => void;
|
|
336
|
+
readonly current: TuiRouteCurrent;
|
|
337
|
+
};
|
|
338
|
+
ui: {
|
|
339
|
+
Dialog: (props: TuiDialogProps) => JSX.Element;
|
|
340
|
+
DialogAlert: (props: TuiDialogAlertProps) => JSX.Element;
|
|
341
|
+
DialogConfirm: (props: TuiDialogConfirmProps) => JSX.Element;
|
|
342
|
+
DialogPrompt: (props: TuiDialogPromptProps) => JSX.Element;
|
|
343
|
+
DialogSelect: <Value = unknown>(props: TuiDialogSelectProps<Value>) => JSX.Element;
|
|
344
|
+
Prompt: (props: TuiPromptProps) => JSX.Element;
|
|
345
|
+
toast: (input: TuiToast) => void;
|
|
346
|
+
dialog: TuiDialogStack;
|
|
347
|
+
};
|
|
348
|
+
keybind: {
|
|
349
|
+
match: (key: string, evt: ParsedKey) => boolean;
|
|
350
|
+
print: (key: string) => string;
|
|
351
|
+
create: (defaults: TuiKeybindMap, overrides?: Record<string, unknown>) => TuiKeybindSet;
|
|
352
|
+
};
|
|
353
|
+
readonly tuiConfig: Frozen<TuiConfigView>;
|
|
354
|
+
kv: TuiKV;
|
|
355
|
+
state: TuiState;
|
|
356
|
+
theme: TuiTheme;
|
|
357
|
+
client: OpencodeClient;
|
|
358
|
+
scopedClient: (workspaceID?: string) => OpencodeClient;
|
|
359
|
+
workspace: TuiWorkspace;
|
|
360
|
+
event: TuiEventBus;
|
|
361
|
+
renderer: CliRenderer;
|
|
362
|
+
slots: TuiSlots;
|
|
363
|
+
plugins: {
|
|
364
|
+
list: () => ReadonlyArray<TuiPluginStatus>;
|
|
365
|
+
activate: (id: string) => Promise<boolean>;
|
|
366
|
+
deactivate: (id: string) => Promise<boolean>;
|
|
367
|
+
add: (spec: string) => Promise<boolean>;
|
|
368
|
+
install: (spec: string, options?: TuiPluginInstallOptions) => Promise<TuiPluginInstallResult>;
|
|
369
|
+
};
|
|
370
|
+
lifecycle: TuiLifecycle;
|
|
371
|
+
};
|
|
372
|
+
export type TuiPlugin = (api: TuiPluginApi, options: PluginOptions | undefined, meta: TuiPluginMeta) => Promise<void>;
|
|
373
|
+
export type TuiPluginModule = {
|
|
374
|
+
id?: string;
|
|
375
|
+
tui: TuiPlugin;
|
|
376
|
+
server?: never;
|
|
377
|
+
};
|
package/dist/tui.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
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": "1.3.
|
|
4
|
+
"version": "1.3.5",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"scripts": {
|
|
@@ -16,16 +16,34 @@
|
|
|
16
16
|
"./tool": {
|
|
17
17
|
"import": "./dist/tool.js",
|
|
18
18
|
"types": "./dist/tool.d.ts"
|
|
19
|
+
},
|
|
20
|
+
"./tui": {
|
|
21
|
+
"import": "./dist/tui.js",
|
|
22
|
+
"types": "./dist/tui.d.ts"
|
|
19
23
|
}
|
|
20
24
|
},
|
|
21
25
|
"files": [
|
|
22
26
|
"dist"
|
|
23
27
|
],
|
|
24
28
|
"dependencies": {
|
|
25
|
-
"@opencode-ai/sdk": "1.3.
|
|
29
|
+
"@opencode-ai/sdk": "1.3.5",
|
|
26
30
|
"zod": "4.1.8"
|
|
27
31
|
},
|
|
32
|
+
"peerDependencies": {
|
|
33
|
+
"@opentui/core": ">=0.1.92",
|
|
34
|
+
"@opentui/solid": ">=0.1.92"
|
|
35
|
+
},
|
|
36
|
+
"peerDependenciesMeta": {
|
|
37
|
+
"@opentui/core": {
|
|
38
|
+
"optional": true
|
|
39
|
+
},
|
|
40
|
+
"@opentui/solid": {
|
|
41
|
+
"optional": true
|
|
42
|
+
}
|
|
43
|
+
},
|
|
28
44
|
"devDependencies": {
|
|
45
|
+
"@opentui/core": "0.1.92",
|
|
46
|
+
"@opentui/solid": "0.1.92",
|
|
29
47
|
"@tsconfig/node22": "22.0.2",
|
|
30
48
|
"@types/node": "22.13.9",
|
|
31
49
|
"typescript": "5.8.2",
|