oh-my-opencode 0.1.13 → 0.1.15
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.ko.md +191 -13
- package/README.md +179 -21
- package/dist/hooks/comment-checker/cli.d.ts +28 -1
- package/dist/hooks/comment-checker/constants.d.ts +0 -4
- package/dist/hooks/comment-checker/downloader.d.ts +24 -0
- package/dist/hooks/comment-checker/types.d.ts +0 -5
- package/dist/index.js +2207 -17731
- package/dist/tools/ast-grep/index.d.ts +26 -26
- package/dist/tools/ast-grep/tools.d.ts +34 -34
- package/dist/tools/index.d.ts +26 -26
- package/package.json +4 -4
- package/dist/hooks/comment-checker/detector.d.ts +0 -4
|
@@ -5,31 +5,31 @@ export declare const builtinTools: {
|
|
|
5
5
|
args: {
|
|
6
6
|
pattern: import("zod").ZodString;
|
|
7
7
|
lang: import("zod").ZodEnum<{
|
|
8
|
+
typescript: "typescript";
|
|
9
|
+
csharp: "csharp";
|
|
10
|
+
rust: "rust";
|
|
11
|
+
php: "php";
|
|
8
12
|
python: "python";
|
|
9
13
|
javascript: "javascript";
|
|
10
|
-
typescript: "typescript";
|
|
11
|
-
tsx: "tsx";
|
|
12
14
|
go: "go";
|
|
13
|
-
java: "java";
|
|
14
|
-
kotlin: "kotlin";
|
|
15
|
-
scala: "scala";
|
|
16
15
|
c: "c";
|
|
17
16
|
cpp: "cpp";
|
|
18
|
-
|
|
17
|
+
java: "java";
|
|
19
18
|
ruby: "ruby";
|
|
20
|
-
|
|
21
|
-
csharp: "csharp";
|
|
19
|
+
lua: "lua";
|
|
22
20
|
swift: "swift";
|
|
23
21
|
elixir: "elixir";
|
|
24
|
-
lua: "lua";
|
|
25
|
-
php: "php";
|
|
26
|
-
html: "html";
|
|
27
|
-
css: "css";
|
|
28
22
|
yaml: "yaml";
|
|
23
|
+
bash: "bash";
|
|
24
|
+
css: "css";
|
|
29
25
|
haskell: "haskell";
|
|
26
|
+
html: "html";
|
|
30
27
|
json: "json";
|
|
28
|
+
kotlin: "kotlin";
|
|
31
29
|
nix: "nix";
|
|
30
|
+
scala: "scala";
|
|
32
31
|
solidity: "solidity";
|
|
32
|
+
tsx: "tsx";
|
|
33
33
|
}>;
|
|
34
34
|
paths: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
35
35
|
globs: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
@@ -37,7 +37,7 @@ export declare const builtinTools: {
|
|
|
37
37
|
};
|
|
38
38
|
execute(args: {
|
|
39
39
|
pattern: string;
|
|
40
|
-
lang: "
|
|
40
|
+
lang: "typescript" | "csharp" | "rust" | "php" | "python" | "javascript" | "go" | "c" | "cpp" | "java" | "ruby" | "lua" | "swift" | "elixir" | "yaml" | "bash" | "css" | "haskell" | "html" | "json" | "kotlin" | "nix" | "scala" | "solidity" | "tsx";
|
|
41
41
|
paths?: string[] | undefined;
|
|
42
42
|
globs?: string[] | undefined;
|
|
43
43
|
context?: number | undefined;
|
|
@@ -49,31 +49,31 @@ export declare const builtinTools: {
|
|
|
49
49
|
pattern: import("zod").ZodString;
|
|
50
50
|
rewrite: import("zod").ZodString;
|
|
51
51
|
lang: import("zod").ZodEnum<{
|
|
52
|
+
typescript: "typescript";
|
|
53
|
+
csharp: "csharp";
|
|
54
|
+
rust: "rust";
|
|
55
|
+
php: "php";
|
|
52
56
|
python: "python";
|
|
53
57
|
javascript: "javascript";
|
|
54
|
-
typescript: "typescript";
|
|
55
|
-
tsx: "tsx";
|
|
56
58
|
go: "go";
|
|
57
|
-
java: "java";
|
|
58
|
-
kotlin: "kotlin";
|
|
59
|
-
scala: "scala";
|
|
60
59
|
c: "c";
|
|
61
60
|
cpp: "cpp";
|
|
62
|
-
|
|
61
|
+
java: "java";
|
|
63
62
|
ruby: "ruby";
|
|
64
|
-
|
|
65
|
-
csharp: "csharp";
|
|
63
|
+
lua: "lua";
|
|
66
64
|
swift: "swift";
|
|
67
65
|
elixir: "elixir";
|
|
68
|
-
lua: "lua";
|
|
69
|
-
php: "php";
|
|
70
|
-
html: "html";
|
|
71
|
-
css: "css";
|
|
72
66
|
yaml: "yaml";
|
|
67
|
+
bash: "bash";
|
|
68
|
+
css: "css";
|
|
73
69
|
haskell: "haskell";
|
|
70
|
+
html: "html";
|
|
74
71
|
json: "json";
|
|
72
|
+
kotlin: "kotlin";
|
|
75
73
|
nix: "nix";
|
|
74
|
+
scala: "scala";
|
|
76
75
|
solidity: "solidity";
|
|
76
|
+
tsx: "tsx";
|
|
77
77
|
}>;
|
|
78
78
|
paths: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
79
79
|
globs: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
@@ -82,7 +82,7 @@ export declare const builtinTools: {
|
|
|
82
82
|
execute(args: {
|
|
83
83
|
pattern: string;
|
|
84
84
|
rewrite: string;
|
|
85
|
-
lang: "
|
|
85
|
+
lang: "typescript" | "csharp" | "rust" | "php" | "python" | "javascript" | "go" | "c" | "cpp" | "java" | "ruby" | "lua" | "swift" | "elixir" | "yaml" | "bash" | "css" | "haskell" | "html" | "json" | "kotlin" | "nix" | "scala" | "solidity" | "tsx";
|
|
86
86
|
paths?: string[] | undefined;
|
|
87
87
|
globs?: string[] | undefined;
|
|
88
88
|
dryRun?: boolean | undefined;
|
|
@@ -3,31 +3,31 @@ export declare const ast_grep_search: {
|
|
|
3
3
|
args: {
|
|
4
4
|
pattern: import("zod").ZodString;
|
|
5
5
|
lang: import("zod").ZodEnum<{
|
|
6
|
+
typescript: "typescript";
|
|
7
|
+
csharp: "csharp";
|
|
8
|
+
rust: "rust";
|
|
9
|
+
php: "php";
|
|
6
10
|
python: "python";
|
|
7
11
|
javascript: "javascript";
|
|
8
|
-
typescript: "typescript";
|
|
9
|
-
tsx: "tsx";
|
|
10
12
|
go: "go";
|
|
11
|
-
java: "java";
|
|
12
|
-
kotlin: "kotlin";
|
|
13
|
-
scala: "scala";
|
|
14
13
|
c: "c";
|
|
15
14
|
cpp: "cpp";
|
|
16
|
-
|
|
15
|
+
java: "java";
|
|
17
16
|
ruby: "ruby";
|
|
18
|
-
|
|
19
|
-
csharp: "csharp";
|
|
17
|
+
lua: "lua";
|
|
20
18
|
swift: "swift";
|
|
21
19
|
elixir: "elixir";
|
|
22
|
-
lua: "lua";
|
|
23
|
-
php: "php";
|
|
24
|
-
html: "html";
|
|
25
|
-
css: "css";
|
|
26
20
|
yaml: "yaml";
|
|
21
|
+
bash: "bash";
|
|
22
|
+
css: "css";
|
|
27
23
|
haskell: "haskell";
|
|
24
|
+
html: "html";
|
|
28
25
|
json: "json";
|
|
26
|
+
kotlin: "kotlin";
|
|
29
27
|
nix: "nix";
|
|
28
|
+
scala: "scala";
|
|
30
29
|
solidity: "solidity";
|
|
30
|
+
tsx: "tsx";
|
|
31
31
|
}>;
|
|
32
32
|
paths: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
33
33
|
globs: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
@@ -35,7 +35,7 @@ export declare const ast_grep_search: {
|
|
|
35
35
|
};
|
|
36
36
|
execute(args: {
|
|
37
37
|
pattern: string;
|
|
38
|
-
lang: "
|
|
38
|
+
lang: "typescript" | "csharp" | "rust" | "php" | "python" | "javascript" | "go" | "c" | "cpp" | "java" | "ruby" | "lua" | "swift" | "elixir" | "yaml" | "bash" | "css" | "haskell" | "html" | "json" | "kotlin" | "nix" | "scala" | "solidity" | "tsx";
|
|
39
39
|
paths?: string[] | undefined;
|
|
40
40
|
globs?: string[] | undefined;
|
|
41
41
|
context?: number | undefined;
|
|
@@ -47,31 +47,31 @@ export declare const ast_grep_replace: {
|
|
|
47
47
|
pattern: import("zod").ZodString;
|
|
48
48
|
rewrite: import("zod").ZodString;
|
|
49
49
|
lang: import("zod").ZodEnum<{
|
|
50
|
+
typescript: "typescript";
|
|
51
|
+
csharp: "csharp";
|
|
52
|
+
rust: "rust";
|
|
53
|
+
php: "php";
|
|
50
54
|
python: "python";
|
|
51
55
|
javascript: "javascript";
|
|
52
|
-
typescript: "typescript";
|
|
53
|
-
tsx: "tsx";
|
|
54
56
|
go: "go";
|
|
55
|
-
java: "java";
|
|
56
|
-
kotlin: "kotlin";
|
|
57
|
-
scala: "scala";
|
|
58
57
|
c: "c";
|
|
59
58
|
cpp: "cpp";
|
|
60
|
-
|
|
59
|
+
java: "java";
|
|
61
60
|
ruby: "ruby";
|
|
62
|
-
|
|
63
|
-
csharp: "csharp";
|
|
61
|
+
lua: "lua";
|
|
64
62
|
swift: "swift";
|
|
65
63
|
elixir: "elixir";
|
|
66
|
-
lua: "lua";
|
|
67
|
-
php: "php";
|
|
68
|
-
html: "html";
|
|
69
|
-
css: "css";
|
|
70
64
|
yaml: "yaml";
|
|
65
|
+
bash: "bash";
|
|
66
|
+
css: "css";
|
|
71
67
|
haskell: "haskell";
|
|
68
|
+
html: "html";
|
|
72
69
|
json: "json";
|
|
70
|
+
kotlin: "kotlin";
|
|
73
71
|
nix: "nix";
|
|
72
|
+
scala: "scala";
|
|
74
73
|
solidity: "solidity";
|
|
74
|
+
tsx: "tsx";
|
|
75
75
|
}>;
|
|
76
76
|
paths: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
77
77
|
globs: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
@@ -80,7 +80,7 @@ export declare const ast_grep_replace: {
|
|
|
80
80
|
execute(args: {
|
|
81
81
|
pattern: string;
|
|
82
82
|
rewrite: string;
|
|
83
|
-
lang: "
|
|
83
|
+
lang: "typescript" | "csharp" | "rust" | "php" | "python" | "javascript" | "go" | "c" | "cpp" | "java" | "ruby" | "lua" | "swift" | "elixir" | "yaml" | "bash" | "css" | "haskell" | "html" | "json" | "kotlin" | "nix" | "scala" | "solidity" | "tsx";
|
|
84
84
|
paths?: string[] | undefined;
|
|
85
85
|
globs?: string[] | undefined;
|
|
86
86
|
dryRun?: boolean | undefined;
|
|
@@ -96,18 +96,18 @@ export declare const ast_grep_analyze: {
|
|
|
96
96
|
args: {
|
|
97
97
|
code: import("zod").ZodString;
|
|
98
98
|
lang: import("zod").ZodEnum<{
|
|
99
|
-
javascript: "javascript";
|
|
100
99
|
typescript: "typescript";
|
|
101
|
-
|
|
102
|
-
html: "html";
|
|
100
|
+
javascript: "javascript";
|
|
103
101
|
css: "css";
|
|
102
|
+
html: "html";
|
|
103
|
+
tsx: "tsx";
|
|
104
104
|
}>;
|
|
105
105
|
pattern: import("zod").ZodOptional<import("zod").ZodString>;
|
|
106
106
|
extractMetaVars: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
107
107
|
};
|
|
108
108
|
execute(args: {
|
|
109
109
|
code: string;
|
|
110
|
-
lang: "
|
|
110
|
+
lang: "typescript" | "javascript" | "css" | "html" | "tsx";
|
|
111
111
|
pattern?: string | undefined;
|
|
112
112
|
extractMetaVars?: boolean | undefined;
|
|
113
113
|
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
@@ -117,18 +117,18 @@ export declare const ast_grep_transform: {
|
|
|
117
117
|
args: {
|
|
118
118
|
code: import("zod").ZodString;
|
|
119
119
|
lang: import("zod").ZodEnum<{
|
|
120
|
-
javascript: "javascript";
|
|
121
120
|
typescript: "typescript";
|
|
122
|
-
|
|
123
|
-
html: "html";
|
|
121
|
+
javascript: "javascript";
|
|
124
122
|
css: "css";
|
|
123
|
+
html: "html";
|
|
124
|
+
tsx: "tsx";
|
|
125
125
|
}>;
|
|
126
126
|
pattern: import("zod").ZodString;
|
|
127
127
|
rewrite: import("zod").ZodString;
|
|
128
128
|
};
|
|
129
129
|
execute(args: {
|
|
130
130
|
code: string;
|
|
131
|
-
lang: "
|
|
131
|
+
lang: "typescript" | "javascript" | "css" | "html" | "tsx";
|
|
132
132
|
pattern: string;
|
|
133
133
|
rewrite: string;
|
|
134
134
|
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -156,31 +156,31 @@ export declare const builtinTools: {
|
|
|
156
156
|
args: {
|
|
157
157
|
pattern: import("zod").ZodString;
|
|
158
158
|
lang: import("zod").ZodEnum<{
|
|
159
|
+
typescript: "typescript";
|
|
160
|
+
csharp: "csharp";
|
|
161
|
+
rust: "rust";
|
|
162
|
+
php: "php";
|
|
159
163
|
python: "python";
|
|
160
164
|
javascript: "javascript";
|
|
161
|
-
typescript: "typescript";
|
|
162
|
-
tsx: "tsx";
|
|
163
165
|
go: "go";
|
|
164
|
-
java: "java";
|
|
165
|
-
kotlin: "kotlin";
|
|
166
|
-
scala: "scala";
|
|
167
166
|
c: "c";
|
|
168
167
|
cpp: "cpp";
|
|
169
|
-
|
|
168
|
+
java: "java";
|
|
170
169
|
ruby: "ruby";
|
|
171
|
-
|
|
172
|
-
csharp: "csharp";
|
|
170
|
+
lua: "lua";
|
|
173
171
|
swift: "swift";
|
|
174
172
|
elixir: "elixir";
|
|
175
|
-
lua: "lua";
|
|
176
|
-
php: "php";
|
|
177
|
-
html: "html";
|
|
178
|
-
css: "css";
|
|
179
173
|
yaml: "yaml";
|
|
174
|
+
bash: "bash";
|
|
175
|
+
css: "css";
|
|
180
176
|
haskell: "haskell";
|
|
177
|
+
html: "html";
|
|
181
178
|
json: "json";
|
|
179
|
+
kotlin: "kotlin";
|
|
182
180
|
nix: "nix";
|
|
181
|
+
scala: "scala";
|
|
183
182
|
solidity: "solidity";
|
|
183
|
+
tsx: "tsx";
|
|
184
184
|
}>;
|
|
185
185
|
paths: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
186
186
|
globs: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
@@ -188,7 +188,7 @@ export declare const builtinTools: {
|
|
|
188
188
|
};
|
|
189
189
|
execute(args: {
|
|
190
190
|
pattern: string;
|
|
191
|
-
lang: "
|
|
191
|
+
lang: "typescript" | "csharp" | "rust" | "php" | "python" | "javascript" | "go" | "c" | "cpp" | "java" | "ruby" | "lua" | "swift" | "elixir" | "yaml" | "bash" | "css" | "haskell" | "html" | "json" | "kotlin" | "nix" | "scala" | "solidity" | "tsx";
|
|
192
192
|
paths?: string[] | undefined;
|
|
193
193
|
globs?: string[] | undefined;
|
|
194
194
|
context?: number | undefined;
|
|
@@ -200,31 +200,31 @@ export declare const builtinTools: {
|
|
|
200
200
|
pattern: import("zod").ZodString;
|
|
201
201
|
rewrite: import("zod").ZodString;
|
|
202
202
|
lang: import("zod").ZodEnum<{
|
|
203
|
+
typescript: "typescript";
|
|
204
|
+
csharp: "csharp";
|
|
205
|
+
rust: "rust";
|
|
206
|
+
php: "php";
|
|
203
207
|
python: "python";
|
|
204
208
|
javascript: "javascript";
|
|
205
|
-
typescript: "typescript";
|
|
206
|
-
tsx: "tsx";
|
|
207
209
|
go: "go";
|
|
208
|
-
java: "java";
|
|
209
|
-
kotlin: "kotlin";
|
|
210
|
-
scala: "scala";
|
|
211
210
|
c: "c";
|
|
212
211
|
cpp: "cpp";
|
|
213
|
-
|
|
212
|
+
java: "java";
|
|
214
213
|
ruby: "ruby";
|
|
215
|
-
|
|
216
|
-
csharp: "csharp";
|
|
214
|
+
lua: "lua";
|
|
217
215
|
swift: "swift";
|
|
218
216
|
elixir: "elixir";
|
|
219
|
-
lua: "lua";
|
|
220
|
-
php: "php";
|
|
221
|
-
html: "html";
|
|
222
|
-
css: "css";
|
|
223
217
|
yaml: "yaml";
|
|
218
|
+
bash: "bash";
|
|
219
|
+
css: "css";
|
|
224
220
|
haskell: "haskell";
|
|
221
|
+
html: "html";
|
|
225
222
|
json: "json";
|
|
223
|
+
kotlin: "kotlin";
|
|
226
224
|
nix: "nix";
|
|
225
|
+
scala: "scala";
|
|
227
226
|
solidity: "solidity";
|
|
227
|
+
tsx: "tsx";
|
|
228
228
|
}>;
|
|
229
229
|
paths: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
230
230
|
globs: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
@@ -233,7 +233,7 @@ export declare const builtinTools: {
|
|
|
233
233
|
execute(args: {
|
|
234
234
|
pattern: string;
|
|
235
235
|
rewrite: string;
|
|
236
|
-
lang: "
|
|
236
|
+
lang: "typescript" | "csharp" | "rust" | "php" | "python" | "javascript" | "go" | "c" | "cpp" | "java" | "ruby" | "lua" | "swift" | "elixir" | "yaml" | "bash" | "css" | "haskell" | "html" | "json" | "kotlin" | "nix" | "scala" | "solidity" | "tsx";
|
|
237
237
|
paths?: string[] | undefined;
|
|
238
238
|
globs?: string[] | undefined;
|
|
239
239
|
dryRun?: boolean | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oh-my-opencode",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.15",
|
|
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",
|
|
@@ -44,9 +44,8 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@ast-grep/cli": "^0.40.0",
|
|
46
46
|
"@ast-grep/napi": "^0.40.0",
|
|
47
|
+
"@code-yeongyu/comment-checker": "^0.4.1",
|
|
47
48
|
"@opencode-ai/plugin": "^1.0.7",
|
|
48
|
-
"tree-sitter-wasms": "^0.1.12",
|
|
49
|
-
"web-tree-sitter": "^0.24.7",
|
|
50
49
|
"zod": "^4.1.8"
|
|
51
50
|
},
|
|
52
51
|
"devDependencies": {
|
|
@@ -58,6 +57,7 @@
|
|
|
58
57
|
},
|
|
59
58
|
"trustedDependencies": [
|
|
60
59
|
"@ast-grep/cli",
|
|
61
|
-
"@ast-grep/napi"
|
|
60
|
+
"@ast-grep/napi",
|
|
61
|
+
"@code-yeongyu/comment-checker"
|
|
62
62
|
]
|
|
63
63
|
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { CommentInfo } from "./types";
|
|
2
|
-
export declare function warmupCommonLanguages(): void;
|
|
3
|
-
export declare function isSupportedFile(filePath: string): boolean;
|
|
4
|
-
export declare function detectComments(filePath: string, content: string, includeDocstrings?: boolean): Promise<CommentInfo[]>;
|