oh-my-opencode 2.5.4 → 2.6.1
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/README.ja.md +13 -5
- package/README.ko.md +13 -5
- package/README.md +43 -5
- package/README.zh-cn.md +13 -5
- package/dist/cli/get-local-version/formatter.d.ts +3 -0
- package/dist/cli/get-local-version/index.d.ts +3 -0
- package/dist/cli/get-local-version/types.d.ts +13 -0
- package/dist/cli/index.js +1241 -108
- package/dist/config/index.d.ts +1 -1
- package/dist/config/schema.d.ts +87 -0
- package/dist/features/background-agent/manager.d.ts +1 -0
- package/dist/features/claude-code-plugin-loader/index.d.ts +3 -0
- package/dist/features/claude-code-plugin-loader/loader.d.ts +20 -0
- package/dist/features/claude-code-plugin-loader/types.d.ts +173 -0
- package/dist/hooks/anthropic-auto-compact/index.d.ts +1 -1
- package/dist/hooks/anthropic-auto-compact/pruning-deduplication.d.ts +7 -0
- package/dist/hooks/anthropic-auto-compact/pruning-deduplication.test.d.ts +1 -0
- package/dist/hooks/anthropic-auto-compact/pruning-executor.d.ts +3 -0
- package/dist/hooks/anthropic-auto-compact/pruning-purge-errors.d.ts +7 -0
- package/dist/hooks/anthropic-auto-compact/pruning-storage.d.ts +2 -0
- package/dist/hooks/anthropic-auto-compact/pruning-supersede.d.ts +6 -0
- package/dist/hooks/anthropic-auto-compact/pruning-types.d.ts +36 -0
- package/dist/hooks/anthropic-auto-compact/types.d.ts +5 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/session-notification-utils.d.ts +9 -0
- package/dist/hooks/thinking-block-validator/index.d.ts +30 -0
- package/dist/index.js +2723 -644
- package/dist/shared/claude-config-dir.d.ts +1 -0
- package/dist/shared/claude-config-dir.test.d.ts +1 -0
- package/dist/shared/index.d.ts +2 -0
- package/dist/shared/jsonc-parser.d.ts +15 -0
- package/dist/shared/jsonc-parser.test.d.ts +1 -0
- package/dist/tools/ast-grep/index.d.ts +2 -90
- package/dist/tools/ast-grep/tools.d.ts +3 -88
- package/dist/tools/background-task/tools.d.ts +4 -38
- package/dist/tools/call-omo-agent/tools.d.ts +2 -21
- package/dist/tools/glob/tools.d.ts +2 -11
- package/dist/tools/grep/tools.d.ts +2 -13
- package/dist/tools/index.d.ts +3 -367
- package/dist/tools/interactive-bash/tools.d.ts +2 -9
- package/dist/tools/look-at/tools.d.ts +2 -12
- package/dist/tools/lsp/tools.d.ts +12 -152
- package/dist/tools/session-manager/tools.d.ts +5 -52
- package/dist/tools/slashcommand/tools.d.ts +2 -9
- package/package.json +2 -1
package/dist/tools/index.d.ts
CHANGED
|
@@ -1,373 +1,9 @@
|
|
|
1
1
|
export { interactive_bash, startBackgroundCheck as startTmuxCheck } from "./interactive-bash";
|
|
2
2
|
export { getTmuxPath } from "./interactive-bash/utils";
|
|
3
|
-
import type { PluginInput } from "@opencode-ai/plugin";
|
|
3
|
+
import type { PluginInput, ToolDefinition } from "@opencode-ai/plugin";
|
|
4
4
|
import type { BackgroundManager } from "../features/background-agent";
|
|
5
5
|
type OpencodeClient = PluginInput["client"];
|
|
6
6
|
export { createCallOmoAgent } from "./call-omo-agent";
|
|
7
7
|
export { createLookAt } from "./look-at";
|
|
8
|
-
export declare function createBackgroundTools(manager: BackgroundManager, client: OpencodeClient):
|
|
9
|
-
|
|
10
|
-
description: string;
|
|
11
|
-
args: {
|
|
12
|
-
description: import("zod").ZodString;
|
|
13
|
-
prompt: import("zod").ZodString;
|
|
14
|
-
agent: import("zod").ZodString;
|
|
15
|
-
};
|
|
16
|
-
execute(args: {
|
|
17
|
-
description: string;
|
|
18
|
-
prompt: string;
|
|
19
|
-
agent: string;
|
|
20
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
21
|
-
};
|
|
22
|
-
background_output: {
|
|
23
|
-
description: string;
|
|
24
|
-
args: {
|
|
25
|
-
task_id: import("zod").ZodString;
|
|
26
|
-
block: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
27
|
-
timeout: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
28
|
-
};
|
|
29
|
-
execute(args: {
|
|
30
|
-
task_id: string;
|
|
31
|
-
block?: boolean | undefined;
|
|
32
|
-
timeout?: number | undefined;
|
|
33
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
34
|
-
};
|
|
35
|
-
background_cancel: {
|
|
36
|
-
description: string;
|
|
37
|
-
args: {
|
|
38
|
-
taskId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
39
|
-
all: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
40
|
-
};
|
|
41
|
-
execute(args: {
|
|
42
|
-
taskId?: string | undefined;
|
|
43
|
-
all?: boolean | undefined;
|
|
44
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
export declare const builtinTools: {
|
|
48
|
-
lsp_hover: {
|
|
49
|
-
description: string;
|
|
50
|
-
args: {
|
|
51
|
-
filePath: import("zod").ZodString;
|
|
52
|
-
line: import("zod").ZodNumber;
|
|
53
|
-
character: import("zod").ZodNumber;
|
|
54
|
-
};
|
|
55
|
-
execute(args: {
|
|
56
|
-
filePath: string;
|
|
57
|
-
line: number;
|
|
58
|
-
character: number;
|
|
59
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
60
|
-
};
|
|
61
|
-
lsp_goto_definition: {
|
|
62
|
-
description: string;
|
|
63
|
-
args: {
|
|
64
|
-
filePath: import("zod").ZodString;
|
|
65
|
-
line: import("zod").ZodNumber;
|
|
66
|
-
character: import("zod").ZodNumber;
|
|
67
|
-
};
|
|
68
|
-
execute(args: {
|
|
69
|
-
filePath: string;
|
|
70
|
-
line: number;
|
|
71
|
-
character: number;
|
|
72
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
73
|
-
};
|
|
74
|
-
lsp_find_references: {
|
|
75
|
-
description: string;
|
|
76
|
-
args: {
|
|
77
|
-
filePath: import("zod").ZodString;
|
|
78
|
-
line: import("zod").ZodNumber;
|
|
79
|
-
character: import("zod").ZodNumber;
|
|
80
|
-
includeDeclaration: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
81
|
-
};
|
|
82
|
-
execute(args: {
|
|
83
|
-
filePath: string;
|
|
84
|
-
line: number;
|
|
85
|
-
character: number;
|
|
86
|
-
includeDeclaration?: boolean | undefined;
|
|
87
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
88
|
-
};
|
|
89
|
-
lsp_document_symbols: {
|
|
90
|
-
description: string;
|
|
91
|
-
args: {
|
|
92
|
-
filePath: import("zod").ZodString;
|
|
93
|
-
};
|
|
94
|
-
execute(args: {
|
|
95
|
-
filePath: string;
|
|
96
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
97
|
-
};
|
|
98
|
-
lsp_workspace_symbols: {
|
|
99
|
-
description: string;
|
|
100
|
-
args: {
|
|
101
|
-
filePath: import("zod").ZodString;
|
|
102
|
-
query: import("zod").ZodString;
|
|
103
|
-
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
104
|
-
};
|
|
105
|
-
execute(args: {
|
|
106
|
-
filePath: string;
|
|
107
|
-
query: string;
|
|
108
|
-
limit?: number | undefined;
|
|
109
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
110
|
-
};
|
|
111
|
-
lsp_diagnostics: {
|
|
112
|
-
description: string;
|
|
113
|
-
args: {
|
|
114
|
-
filePath: import("zod").ZodString;
|
|
115
|
-
severity: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
116
|
-
error: "error";
|
|
117
|
-
all: "all";
|
|
118
|
-
warning: "warning";
|
|
119
|
-
information: "information";
|
|
120
|
-
hint: "hint";
|
|
121
|
-
}>>;
|
|
122
|
-
};
|
|
123
|
-
execute(args: {
|
|
124
|
-
filePath: string;
|
|
125
|
-
severity?: "error" | "all" | "warning" | "information" | "hint" | undefined;
|
|
126
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
127
|
-
};
|
|
128
|
-
lsp_servers: {
|
|
129
|
-
description: string;
|
|
130
|
-
args: {};
|
|
131
|
-
execute(args: Record<string, never>, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
132
|
-
};
|
|
133
|
-
lsp_prepare_rename: {
|
|
134
|
-
description: string;
|
|
135
|
-
args: {
|
|
136
|
-
filePath: import("zod").ZodString;
|
|
137
|
-
line: import("zod").ZodNumber;
|
|
138
|
-
character: import("zod").ZodNumber;
|
|
139
|
-
};
|
|
140
|
-
execute(args: {
|
|
141
|
-
filePath: string;
|
|
142
|
-
line: number;
|
|
143
|
-
character: number;
|
|
144
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
145
|
-
};
|
|
146
|
-
lsp_rename: {
|
|
147
|
-
description: string;
|
|
148
|
-
args: {
|
|
149
|
-
filePath: import("zod").ZodString;
|
|
150
|
-
line: import("zod").ZodNumber;
|
|
151
|
-
character: import("zod").ZodNumber;
|
|
152
|
-
newName: import("zod").ZodString;
|
|
153
|
-
};
|
|
154
|
-
execute(args: {
|
|
155
|
-
filePath: string;
|
|
156
|
-
line: number;
|
|
157
|
-
character: number;
|
|
158
|
-
newName: string;
|
|
159
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
160
|
-
};
|
|
161
|
-
lsp_code_actions: {
|
|
162
|
-
description: string;
|
|
163
|
-
args: {
|
|
164
|
-
filePath: import("zod").ZodString;
|
|
165
|
-
startLine: import("zod").ZodNumber;
|
|
166
|
-
startCharacter: import("zod").ZodNumber;
|
|
167
|
-
endLine: import("zod").ZodNumber;
|
|
168
|
-
endCharacter: import("zod").ZodNumber;
|
|
169
|
-
kind: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
170
|
-
source: "source";
|
|
171
|
-
quickfix: "quickfix";
|
|
172
|
-
refactor: "refactor";
|
|
173
|
-
"refactor.extract": "refactor.extract";
|
|
174
|
-
"refactor.inline": "refactor.inline";
|
|
175
|
-
"refactor.rewrite": "refactor.rewrite";
|
|
176
|
-
"source.organizeImports": "source.organizeImports";
|
|
177
|
-
"source.fixAll": "source.fixAll";
|
|
178
|
-
}>>;
|
|
179
|
-
};
|
|
180
|
-
execute(args: {
|
|
181
|
-
filePath: string;
|
|
182
|
-
startLine: number;
|
|
183
|
-
startCharacter: number;
|
|
184
|
-
endLine: number;
|
|
185
|
-
endCharacter: number;
|
|
186
|
-
kind?: "source" | "quickfix" | "refactor" | "refactor.extract" | "refactor.inline" | "refactor.rewrite" | "source.organizeImports" | "source.fixAll" | undefined;
|
|
187
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
188
|
-
};
|
|
189
|
-
lsp_code_action_resolve: {
|
|
190
|
-
description: string;
|
|
191
|
-
args: {
|
|
192
|
-
filePath: import("zod").ZodString;
|
|
193
|
-
codeAction: import("zod").ZodString;
|
|
194
|
-
};
|
|
195
|
-
execute(args: {
|
|
196
|
-
filePath: string;
|
|
197
|
-
codeAction: string;
|
|
198
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
199
|
-
};
|
|
200
|
-
ast_grep_search: {
|
|
201
|
-
description: string;
|
|
202
|
-
args: {
|
|
203
|
-
pattern: import("zod").ZodString;
|
|
204
|
-
lang: import("zod").ZodEnum<{
|
|
205
|
-
bash: "bash";
|
|
206
|
-
typescript: "typescript";
|
|
207
|
-
csharp: "csharp";
|
|
208
|
-
rust: "rust";
|
|
209
|
-
php: "php";
|
|
210
|
-
c: "c";
|
|
211
|
-
cpp: "cpp";
|
|
212
|
-
css: "css";
|
|
213
|
-
elixir: "elixir";
|
|
214
|
-
go: "go";
|
|
215
|
-
haskell: "haskell";
|
|
216
|
-
html: "html";
|
|
217
|
-
java: "java";
|
|
218
|
-
javascript: "javascript";
|
|
219
|
-
json: "json";
|
|
220
|
-
lua: "lua";
|
|
221
|
-
python: "python";
|
|
222
|
-
ruby: "ruby";
|
|
223
|
-
scala: "scala";
|
|
224
|
-
swift: "swift";
|
|
225
|
-
yaml: "yaml";
|
|
226
|
-
kotlin: "kotlin";
|
|
227
|
-
nix: "nix";
|
|
228
|
-
solidity: "solidity";
|
|
229
|
-
tsx: "tsx";
|
|
230
|
-
}>;
|
|
231
|
-
paths: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
232
|
-
globs: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
233
|
-
context: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
234
|
-
};
|
|
235
|
-
execute(args: {
|
|
236
|
-
pattern: string;
|
|
237
|
-
lang: "bash" | "typescript" | "csharp" | "rust" | "php" | "c" | "cpp" | "css" | "elixir" | "go" | "haskell" | "html" | "java" | "javascript" | "json" | "lua" | "python" | "ruby" | "scala" | "swift" | "yaml" | "kotlin" | "nix" | "solidity" | "tsx";
|
|
238
|
-
paths?: string[] | undefined;
|
|
239
|
-
globs?: string[] | undefined;
|
|
240
|
-
context?: number | undefined;
|
|
241
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
242
|
-
};
|
|
243
|
-
ast_grep_replace: {
|
|
244
|
-
description: string;
|
|
245
|
-
args: {
|
|
246
|
-
pattern: import("zod").ZodString;
|
|
247
|
-
rewrite: import("zod").ZodString;
|
|
248
|
-
lang: import("zod").ZodEnum<{
|
|
249
|
-
bash: "bash";
|
|
250
|
-
typescript: "typescript";
|
|
251
|
-
csharp: "csharp";
|
|
252
|
-
rust: "rust";
|
|
253
|
-
php: "php";
|
|
254
|
-
c: "c";
|
|
255
|
-
cpp: "cpp";
|
|
256
|
-
css: "css";
|
|
257
|
-
elixir: "elixir";
|
|
258
|
-
go: "go";
|
|
259
|
-
haskell: "haskell";
|
|
260
|
-
html: "html";
|
|
261
|
-
java: "java";
|
|
262
|
-
javascript: "javascript";
|
|
263
|
-
json: "json";
|
|
264
|
-
lua: "lua";
|
|
265
|
-
python: "python";
|
|
266
|
-
ruby: "ruby";
|
|
267
|
-
scala: "scala";
|
|
268
|
-
swift: "swift";
|
|
269
|
-
yaml: "yaml";
|
|
270
|
-
kotlin: "kotlin";
|
|
271
|
-
nix: "nix";
|
|
272
|
-
solidity: "solidity";
|
|
273
|
-
tsx: "tsx";
|
|
274
|
-
}>;
|
|
275
|
-
paths: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
276
|
-
globs: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
277
|
-
dryRun: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
278
|
-
};
|
|
279
|
-
execute(args: {
|
|
280
|
-
pattern: string;
|
|
281
|
-
rewrite: string;
|
|
282
|
-
lang: "bash" | "typescript" | "csharp" | "rust" | "php" | "c" | "cpp" | "css" | "elixir" | "go" | "haskell" | "html" | "java" | "javascript" | "json" | "lua" | "python" | "ruby" | "scala" | "swift" | "yaml" | "kotlin" | "nix" | "solidity" | "tsx";
|
|
283
|
-
paths?: string[] | undefined;
|
|
284
|
-
globs?: string[] | undefined;
|
|
285
|
-
dryRun?: boolean | undefined;
|
|
286
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
287
|
-
};
|
|
288
|
-
grep: {
|
|
289
|
-
description: string;
|
|
290
|
-
args: {
|
|
291
|
-
pattern: import("zod").ZodString;
|
|
292
|
-
include: import("zod").ZodOptional<import("zod").ZodString>;
|
|
293
|
-
path: import("zod").ZodOptional<import("zod").ZodString>;
|
|
294
|
-
};
|
|
295
|
-
execute(args: {
|
|
296
|
-
pattern: string;
|
|
297
|
-
include?: string | undefined;
|
|
298
|
-
path?: string | undefined;
|
|
299
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
300
|
-
};
|
|
301
|
-
glob: {
|
|
302
|
-
description: string;
|
|
303
|
-
args: {
|
|
304
|
-
pattern: import("zod").ZodString;
|
|
305
|
-
path: import("zod").ZodOptional<import("zod").ZodString>;
|
|
306
|
-
};
|
|
307
|
-
execute(args: {
|
|
308
|
-
pattern: string;
|
|
309
|
-
path?: string | undefined;
|
|
310
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
311
|
-
};
|
|
312
|
-
slashcommand: {
|
|
313
|
-
description: string;
|
|
314
|
-
args: {
|
|
315
|
-
command: import("zod").ZodString;
|
|
316
|
-
};
|
|
317
|
-
execute(args: {
|
|
318
|
-
command: string;
|
|
319
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
320
|
-
};
|
|
321
|
-
session_list: {
|
|
322
|
-
description: string;
|
|
323
|
-
args: {
|
|
324
|
-
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
325
|
-
from_date: import("zod").ZodOptional<import("zod").ZodString>;
|
|
326
|
-
to_date: import("zod").ZodOptional<import("zod").ZodString>;
|
|
327
|
-
};
|
|
328
|
-
execute(args: {
|
|
329
|
-
limit?: number | undefined;
|
|
330
|
-
from_date?: string | undefined;
|
|
331
|
-
to_date?: string | undefined;
|
|
332
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
333
|
-
};
|
|
334
|
-
session_read: {
|
|
335
|
-
description: string;
|
|
336
|
-
args: {
|
|
337
|
-
session_id: import("zod").ZodString;
|
|
338
|
-
include_todos: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
339
|
-
include_transcript: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
340
|
-
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
341
|
-
};
|
|
342
|
-
execute(args: {
|
|
343
|
-
session_id: string;
|
|
344
|
-
include_todos?: boolean | undefined;
|
|
345
|
-
include_transcript?: boolean | undefined;
|
|
346
|
-
limit?: number | undefined;
|
|
347
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
348
|
-
};
|
|
349
|
-
session_search: {
|
|
350
|
-
description: string;
|
|
351
|
-
args: {
|
|
352
|
-
query: import("zod").ZodString;
|
|
353
|
-
session_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
354
|
-
case_sensitive: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
355
|
-
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
356
|
-
};
|
|
357
|
-
execute(args: {
|
|
358
|
-
query: string;
|
|
359
|
-
session_id?: string | undefined;
|
|
360
|
-
case_sensitive?: boolean | undefined;
|
|
361
|
-
limit?: number | undefined;
|
|
362
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
363
|
-
};
|
|
364
|
-
session_info: {
|
|
365
|
-
description: string;
|
|
366
|
-
args: {
|
|
367
|
-
session_id: import("zod").ZodString;
|
|
368
|
-
};
|
|
369
|
-
execute(args: {
|
|
370
|
-
session_id: string;
|
|
371
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
372
|
-
};
|
|
373
|
-
};
|
|
8
|
+
export declare function createBackgroundTools(manager: BackgroundManager, client: OpencodeClient): Record<string, ToolDefinition>;
|
|
9
|
+
export declare const builtinTools: Record<string, ToolDefinition>;
|
|
@@ -1,14 +1,7 @@
|
|
|
1
|
+
import { type ToolDefinition } from "@opencode-ai/plugin/tool";
|
|
1
2
|
/**
|
|
2
3
|
* Quote-aware command tokenizer with escape handling
|
|
3
4
|
* Handles single/double quotes and backslash escapes without external dependencies
|
|
4
5
|
*/
|
|
5
6
|
export declare function tokenizeCommand(cmd: string): string[];
|
|
6
|
-
export declare const interactive_bash:
|
|
7
|
-
description: string;
|
|
8
|
-
args: {
|
|
9
|
-
tmux_command: import("zod").ZodString;
|
|
10
|
-
};
|
|
11
|
-
execute(args: {
|
|
12
|
-
tmux_command: string;
|
|
13
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
14
|
-
};
|
|
7
|
+
export declare const interactive_bash: ToolDefinition;
|
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
import { type PluginInput } from "@opencode-ai/plugin";
|
|
2
|
-
export declare function createLookAt(ctx: PluginInput):
|
|
3
|
-
description: string;
|
|
4
|
-
args: {
|
|
5
|
-
file_path: import("zod").ZodString;
|
|
6
|
-
goal: import("zod").ZodString;
|
|
7
|
-
};
|
|
8
|
-
execute(args: {
|
|
9
|
-
file_path: string;
|
|
10
|
-
goal: string;
|
|
11
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
12
|
-
};
|
|
1
|
+
import { type PluginInput, type ToolDefinition } from "@opencode-ai/plugin";
|
|
2
|
+
export declare function createLookAt(ctx: PluginInput): ToolDefinition;
|
|
@@ -1,152 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
14
|
-
export declare const lsp_goto_definition: {
|
|
15
|
-
description: string;
|
|
16
|
-
args: {
|
|
17
|
-
filePath: import("zod").ZodString;
|
|
18
|
-
line: import("zod").ZodNumber;
|
|
19
|
-
character: import("zod").ZodNumber;
|
|
20
|
-
};
|
|
21
|
-
execute(args: {
|
|
22
|
-
filePath: string;
|
|
23
|
-
line: number;
|
|
24
|
-
character: number;
|
|
25
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
26
|
-
};
|
|
27
|
-
export declare const lsp_find_references: {
|
|
28
|
-
description: string;
|
|
29
|
-
args: {
|
|
30
|
-
filePath: import("zod").ZodString;
|
|
31
|
-
line: import("zod").ZodNumber;
|
|
32
|
-
character: import("zod").ZodNumber;
|
|
33
|
-
includeDeclaration: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
34
|
-
};
|
|
35
|
-
execute(args: {
|
|
36
|
-
filePath: string;
|
|
37
|
-
line: number;
|
|
38
|
-
character: number;
|
|
39
|
-
includeDeclaration?: boolean | undefined;
|
|
40
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
41
|
-
};
|
|
42
|
-
export declare const lsp_document_symbols: {
|
|
43
|
-
description: string;
|
|
44
|
-
args: {
|
|
45
|
-
filePath: import("zod").ZodString;
|
|
46
|
-
};
|
|
47
|
-
execute(args: {
|
|
48
|
-
filePath: string;
|
|
49
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
50
|
-
};
|
|
51
|
-
export declare const lsp_workspace_symbols: {
|
|
52
|
-
description: string;
|
|
53
|
-
args: {
|
|
54
|
-
filePath: import("zod").ZodString;
|
|
55
|
-
query: import("zod").ZodString;
|
|
56
|
-
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
57
|
-
};
|
|
58
|
-
execute(args: {
|
|
59
|
-
filePath: string;
|
|
60
|
-
query: string;
|
|
61
|
-
limit?: number | undefined;
|
|
62
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
63
|
-
};
|
|
64
|
-
export declare const lsp_diagnostics: {
|
|
65
|
-
description: string;
|
|
66
|
-
args: {
|
|
67
|
-
filePath: import("zod").ZodString;
|
|
68
|
-
severity: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
69
|
-
error: "error";
|
|
70
|
-
all: "all";
|
|
71
|
-
warning: "warning";
|
|
72
|
-
information: "information";
|
|
73
|
-
hint: "hint";
|
|
74
|
-
}>>;
|
|
75
|
-
};
|
|
76
|
-
execute(args: {
|
|
77
|
-
filePath: string;
|
|
78
|
-
severity?: "error" | "all" | "warning" | "information" | "hint" | undefined;
|
|
79
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
80
|
-
};
|
|
81
|
-
export declare const lsp_servers: {
|
|
82
|
-
description: string;
|
|
83
|
-
args: {};
|
|
84
|
-
execute(args: Record<string, never>, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
85
|
-
};
|
|
86
|
-
export declare const lsp_prepare_rename: {
|
|
87
|
-
description: string;
|
|
88
|
-
args: {
|
|
89
|
-
filePath: import("zod").ZodString;
|
|
90
|
-
line: import("zod").ZodNumber;
|
|
91
|
-
character: import("zod").ZodNumber;
|
|
92
|
-
};
|
|
93
|
-
execute(args: {
|
|
94
|
-
filePath: string;
|
|
95
|
-
line: number;
|
|
96
|
-
character: number;
|
|
97
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
98
|
-
};
|
|
99
|
-
export declare const lsp_rename: {
|
|
100
|
-
description: string;
|
|
101
|
-
args: {
|
|
102
|
-
filePath: import("zod").ZodString;
|
|
103
|
-
line: import("zod").ZodNumber;
|
|
104
|
-
character: import("zod").ZodNumber;
|
|
105
|
-
newName: import("zod").ZodString;
|
|
106
|
-
};
|
|
107
|
-
execute(args: {
|
|
108
|
-
filePath: string;
|
|
109
|
-
line: number;
|
|
110
|
-
character: number;
|
|
111
|
-
newName: string;
|
|
112
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
113
|
-
};
|
|
114
|
-
export declare const lsp_code_actions: {
|
|
115
|
-
description: string;
|
|
116
|
-
args: {
|
|
117
|
-
filePath: import("zod").ZodString;
|
|
118
|
-
startLine: import("zod").ZodNumber;
|
|
119
|
-
startCharacter: import("zod").ZodNumber;
|
|
120
|
-
endLine: import("zod").ZodNumber;
|
|
121
|
-
endCharacter: import("zod").ZodNumber;
|
|
122
|
-
kind: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
123
|
-
source: "source";
|
|
124
|
-
quickfix: "quickfix";
|
|
125
|
-
refactor: "refactor";
|
|
126
|
-
"refactor.extract": "refactor.extract";
|
|
127
|
-
"refactor.inline": "refactor.inline";
|
|
128
|
-
"refactor.rewrite": "refactor.rewrite";
|
|
129
|
-
"source.organizeImports": "source.organizeImports";
|
|
130
|
-
"source.fixAll": "source.fixAll";
|
|
131
|
-
}>>;
|
|
132
|
-
};
|
|
133
|
-
execute(args: {
|
|
134
|
-
filePath: string;
|
|
135
|
-
startLine: number;
|
|
136
|
-
startCharacter: number;
|
|
137
|
-
endLine: number;
|
|
138
|
-
endCharacter: number;
|
|
139
|
-
kind?: "source" | "quickfix" | "refactor" | "refactor.extract" | "refactor.inline" | "refactor.rewrite" | "source.organizeImports" | "source.fixAll" | undefined;
|
|
140
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
141
|
-
};
|
|
142
|
-
export declare const lsp_code_action_resolve: {
|
|
143
|
-
description: string;
|
|
144
|
-
args: {
|
|
145
|
-
filePath: import("zod").ZodString;
|
|
146
|
-
codeAction: import("zod").ZodString;
|
|
147
|
-
};
|
|
148
|
-
execute(args: {
|
|
149
|
-
filePath: string;
|
|
150
|
-
codeAction: string;
|
|
151
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
152
|
-
};
|
|
1
|
+
import { type ToolDefinition } from "@opencode-ai/plugin/tool";
|
|
2
|
+
export declare const lsp_hover: ToolDefinition;
|
|
3
|
+
export declare const lsp_goto_definition: ToolDefinition;
|
|
4
|
+
export declare const lsp_find_references: ToolDefinition;
|
|
5
|
+
export declare const lsp_document_symbols: ToolDefinition;
|
|
6
|
+
export declare const lsp_workspace_symbols: ToolDefinition;
|
|
7
|
+
export declare const lsp_diagnostics: ToolDefinition;
|
|
8
|
+
export declare const lsp_servers: ToolDefinition;
|
|
9
|
+
export declare const lsp_prepare_rename: ToolDefinition;
|
|
10
|
+
export declare const lsp_rename: ToolDefinition;
|
|
11
|
+
export declare const lsp_code_actions: ToolDefinition;
|
|
12
|
+
export declare const lsp_code_action_resolve: ToolDefinition;
|
|
@@ -1,52 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
to_date: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7
|
-
};
|
|
8
|
-
execute(args: {
|
|
9
|
-
limit?: number | undefined;
|
|
10
|
-
from_date?: string | undefined;
|
|
11
|
-
to_date?: string | undefined;
|
|
12
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
13
|
-
};
|
|
14
|
-
export declare const session_read: {
|
|
15
|
-
description: string;
|
|
16
|
-
args: {
|
|
17
|
-
session_id: import("zod").ZodString;
|
|
18
|
-
include_todos: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
19
|
-
include_transcript: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
20
|
-
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
21
|
-
};
|
|
22
|
-
execute(args: {
|
|
23
|
-
session_id: string;
|
|
24
|
-
include_todos?: boolean | undefined;
|
|
25
|
-
include_transcript?: boolean | undefined;
|
|
26
|
-
limit?: number | undefined;
|
|
27
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
28
|
-
};
|
|
29
|
-
export declare const session_search: {
|
|
30
|
-
description: string;
|
|
31
|
-
args: {
|
|
32
|
-
query: import("zod").ZodString;
|
|
33
|
-
session_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
34
|
-
case_sensitive: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
35
|
-
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
36
|
-
};
|
|
37
|
-
execute(args: {
|
|
38
|
-
query: string;
|
|
39
|
-
session_id?: string | undefined;
|
|
40
|
-
case_sensitive?: boolean | undefined;
|
|
41
|
-
limit?: number | undefined;
|
|
42
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
43
|
-
};
|
|
44
|
-
export declare const session_info: {
|
|
45
|
-
description: string;
|
|
46
|
-
args: {
|
|
47
|
-
session_id: import("zod").ZodString;
|
|
48
|
-
};
|
|
49
|
-
execute(args: {
|
|
50
|
-
session_id: string;
|
|
51
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
52
|
-
};
|
|
1
|
+
import { type ToolDefinition } from "@opencode-ai/plugin/tool";
|
|
2
|
+
export declare const session_list: ToolDefinition;
|
|
3
|
+
export declare const session_read: ToolDefinition;
|
|
4
|
+
export declare const session_search: ToolDefinition;
|
|
5
|
+
export declare const session_info: ToolDefinition;
|
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
args: {
|
|
4
|
-
command: import("zod").ZodString;
|
|
5
|
-
};
|
|
6
|
-
execute(args: {
|
|
7
|
-
command: string;
|
|
8
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
9
|
-
};
|
|
1
|
+
import { type ToolDefinition } from "@opencode-ai/plugin";
|
|
2
|
+
export declare const slashcommand: ToolDefinition;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oh-my-opencode",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.1",
|
|
4
4
|
"description": "OpenCode plugin - custom agents (oracle, librarian) and enhanced features",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
"@opencode-ai/sdk": "^1.0.162",
|
|
60
60
|
"commander": "^14.0.2",
|
|
61
61
|
"hono": "^4.10.4",
|
|
62
|
+
"jsonc-parser": "^3.3.1",
|
|
62
63
|
"picocolors": "^1.1.1",
|
|
63
64
|
"picomatch": "^4.0.2",
|
|
64
65
|
"xdg-basedir": "^5.1.0",
|