oh-my-opencode 0.1.1 → 0.1.3

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.
Files changed (33) hide show
  1. package/README.en.md +44 -4
  2. package/README.ko.md +6 -0
  3. package/dist/agents/index.d.ts +2 -0
  4. package/dist/agents/types.d.ts +4 -0
  5. package/dist/agents/utils.d.ts +3 -0
  6. package/dist/config/index.d.ts +2 -0
  7. package/dist/config/schema.d.ts +177 -0
  8. package/dist/hooks/comment-checker/constants.d.ts +7 -0
  9. package/dist/hooks/comment-checker/detector.d.ts +3 -0
  10. package/dist/hooks/comment-checker/filters/bdd.d.ts +2 -0
  11. package/dist/hooks/comment-checker/filters/directive.d.ts +2 -0
  12. package/dist/hooks/comment-checker/filters/docstring.d.ts +2 -0
  13. package/dist/hooks/comment-checker/filters/index.d.ts +7 -0
  14. package/dist/hooks/comment-checker/filters/shebang.d.ts +2 -0
  15. package/dist/hooks/comment-checker/index.d.ts +18 -0
  16. package/dist/hooks/comment-checker/output/formatter.d.ts +2 -0
  17. package/dist/hooks/comment-checker/output/index.d.ts +2 -0
  18. package/dist/hooks/comment-checker/output/xml-builder.d.ts +2 -0
  19. package/dist/hooks/comment-checker/types.d.ts +30 -0
  20. package/dist/hooks/index.d.ts +5 -3
  21. package/dist/hooks/session-recovery.d.ts +30 -0
  22. package/dist/index.d.ts +1 -0
  23. package/dist/mcp/context7.d.ts +5 -0
  24. package/dist/mcp/index.d.ts +12 -0
  25. package/dist/mcp/types.d.ts +6 -0
  26. package/dist/mcp/websearch-exa.d.ts +5 -0
  27. package/dist/tools/ast-grep/constants.d.ts +1 -1
  28. package/dist/tools/ast-grep/index.d.ts +26 -26
  29. package/dist/tools/ast-grep/tools.d.ts +34 -34
  30. package/dist/tools/index.d.ts +28 -28
  31. package/dist/tools/lsp/tools.d.ts +2 -2
  32. package/package.json +14 -5
  33. package/dist/index.js +0 -15311
@@ -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";
10
6
  python: "python";
11
7
  javascript: "javascript";
8
+ typescript: "typescript";
9
+ tsx: "tsx";
12
10
  go: "go";
11
+ java: "java";
12
+ kotlin: "kotlin";
13
+ scala: "scala";
13
14
  c: "c";
14
15
  cpp: "cpp";
15
- java: "java";
16
+ rust: "rust";
16
17
  ruby: "ruby";
17
- lua: "lua";
18
+ bash: "bash";
19
+ csharp: "csharp";
18
20
  swift: "swift";
19
21
  elixir: "elixir";
20
- yaml: "yaml";
21
- bash: "bash";
22
+ lua: "lua";
23
+ php: "php";
24
+ html: "html";
22
25
  css: "css";
26
+ yaml: "yaml";
23
27
  haskell: "haskell";
24
- html: "html";
25
28
  json: "json";
26
- kotlin: "kotlin";
27
29
  nix: "nix";
28
- scala: "scala";
29
30
  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: "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";
38
+ lang: "python" | "javascript" | "typescript" | "tsx" | "go" | "java" | "kotlin" | "scala" | "c" | "cpp" | "rust" | "ruby" | "bash" | "csharp" | "swift" | "elixir" | "lua" | "php" | "html" | "css" | "yaml" | "haskell" | "json" | "nix" | "solidity";
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";
54
50
  python: "python";
55
51
  javascript: "javascript";
52
+ typescript: "typescript";
53
+ tsx: "tsx";
56
54
  go: "go";
55
+ java: "java";
56
+ kotlin: "kotlin";
57
+ scala: "scala";
57
58
  c: "c";
58
59
  cpp: "cpp";
59
- java: "java";
60
+ rust: "rust";
60
61
  ruby: "ruby";
61
- lua: "lua";
62
+ bash: "bash";
63
+ csharp: "csharp";
62
64
  swift: "swift";
63
65
  elixir: "elixir";
64
- yaml: "yaml";
65
- bash: "bash";
66
+ lua: "lua";
67
+ php: "php";
68
+ html: "html";
66
69
  css: "css";
70
+ yaml: "yaml";
67
71
  haskell: "haskell";
68
- html: "html";
69
72
  json: "json";
70
- kotlin: "kotlin";
71
73
  nix: "nix";
72
- scala: "scala";
73
74
  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: "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";
83
+ lang: "python" | "javascript" | "typescript" | "tsx" | "go" | "java" | "kotlin" | "scala" | "c" | "cpp" | "rust" | "ruby" | "bash" | "csharp" | "swift" | "elixir" | "lua" | "php" | "html" | "css" | "yaml" | "haskell" | "json" | "nix" | "solidity";
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
- typescript: "typescript";
100
99
  javascript: "javascript";
101
- css: "css";
102
- html: "html";
100
+ typescript: "typescript";
103
101
  tsx: "tsx";
102
+ html: "html";
103
+ css: "css";
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: "typescript" | "javascript" | "css" | "html" | "tsx";
110
+ lang: "javascript" | "typescript" | "tsx" | "html" | "css";
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
- typescript: "typescript";
121
120
  javascript: "javascript";
122
- css: "css";
123
- html: "html";
121
+ typescript: "typescript";
124
122
  tsx: "tsx";
123
+ html: "html";
124
+ css: "css";
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: "typescript" | "javascript" | "css" | "html" | "tsx";
131
+ lang: "javascript" | "typescript" | "tsx" | "html" | "css";
132
132
  pattern: string;
133
133
  rewrite: string;
134
134
  }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
@@ -121,12 +121,12 @@ export declare const builtinTools: {
121
121
  endLine: import("zod").ZodNumber;
122
122
  endCharacter: import("zod").ZodNumber;
123
123
  kind: import("zod").ZodOptional<import("zod").ZodEnum<{
124
+ source: "source";
124
125
  quickfix: "quickfix";
125
126
  refactor: "refactor";
126
127
  "refactor.extract": "refactor.extract";
127
128
  "refactor.inline": "refactor.inline";
128
129
  "refactor.rewrite": "refactor.rewrite";
129
- source: "source";
130
130
  "source.organizeImports": "source.organizeImports";
131
131
  "source.fixAll": "source.fixAll";
132
132
  }>>;
@@ -137,7 +137,7 @@ export declare const builtinTools: {
137
137
  startCharacter: number;
138
138
  endLine: number;
139
139
  endCharacter: number;
140
- kind?: "quickfix" | "refactor" | "refactor.extract" | "refactor.inline" | "refactor.rewrite" | "source" | "source.organizeImports" | "source.fixAll" | undefined;
140
+ kind?: "source" | "quickfix" | "refactor" | "refactor.extract" | "refactor.inline" | "refactor.rewrite" | "source.organizeImports" | "source.fixAll" | undefined;
141
141
  }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
142
142
  };
143
143
  lsp_code_action_resolve: {
@@ -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";
163
159
  python: "python";
164
160
  javascript: "javascript";
161
+ typescript: "typescript";
162
+ tsx: "tsx";
165
163
  go: "go";
164
+ java: "java";
165
+ kotlin: "kotlin";
166
+ scala: "scala";
166
167
  c: "c";
167
168
  cpp: "cpp";
168
- java: "java";
169
+ rust: "rust";
169
170
  ruby: "ruby";
170
- lua: "lua";
171
+ bash: "bash";
172
+ csharp: "csharp";
171
173
  swift: "swift";
172
174
  elixir: "elixir";
173
- yaml: "yaml";
174
- bash: "bash";
175
+ lua: "lua";
176
+ php: "php";
177
+ html: "html";
175
178
  css: "css";
179
+ yaml: "yaml";
176
180
  haskell: "haskell";
177
- html: "html";
178
181
  json: "json";
179
- kotlin: "kotlin";
180
182
  nix: "nix";
181
- scala: "scala";
182
183
  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: "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";
191
+ lang: "python" | "javascript" | "typescript" | "tsx" | "go" | "java" | "kotlin" | "scala" | "c" | "cpp" | "rust" | "ruby" | "bash" | "csharp" | "swift" | "elixir" | "lua" | "php" | "html" | "css" | "yaml" | "haskell" | "json" | "nix" | "solidity";
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";
207
203
  python: "python";
208
204
  javascript: "javascript";
205
+ typescript: "typescript";
206
+ tsx: "tsx";
209
207
  go: "go";
208
+ java: "java";
209
+ kotlin: "kotlin";
210
+ scala: "scala";
210
211
  c: "c";
211
212
  cpp: "cpp";
212
- java: "java";
213
+ rust: "rust";
213
214
  ruby: "ruby";
214
- lua: "lua";
215
+ bash: "bash";
216
+ csharp: "csharp";
215
217
  swift: "swift";
216
218
  elixir: "elixir";
217
- yaml: "yaml";
218
- bash: "bash";
219
+ lua: "lua";
220
+ php: "php";
221
+ html: "html";
219
222
  css: "css";
223
+ yaml: "yaml";
220
224
  haskell: "haskell";
221
- html: "html";
222
225
  json: "json";
223
- kotlin: "kotlin";
224
226
  nix: "nix";
225
- scala: "scala";
226
227
  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: "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";
236
+ lang: "python" | "javascript" | "typescript" | "tsx" | "go" | "java" | "kotlin" | "scala" | "c" | "cpp" | "rust" | "ruby" | "bash" | "csharp" | "swift" | "elixir" | "lua" | "php" | "html" | "css" | "yaml" | "haskell" | "json" | "nix" | "solidity";
237
237
  paths?: string[] | undefined;
238
238
  globs?: string[] | undefined;
239
239
  dryRun?: boolean | undefined;
@@ -120,12 +120,12 @@ export declare const lsp_code_actions: {
120
120
  endLine: import("zod").ZodNumber;
121
121
  endCharacter: import("zod").ZodNumber;
122
122
  kind: import("zod").ZodOptional<import("zod").ZodEnum<{
123
+ source: "source";
123
124
  quickfix: "quickfix";
124
125
  refactor: "refactor";
125
126
  "refactor.extract": "refactor.extract";
126
127
  "refactor.inline": "refactor.inline";
127
128
  "refactor.rewrite": "refactor.rewrite";
128
- source: "source";
129
129
  "source.organizeImports": "source.organizeImports";
130
130
  "source.fixAll": "source.fixAll";
131
131
  }>>;
@@ -136,7 +136,7 @@ export declare const lsp_code_actions: {
136
136
  startCharacter: number;
137
137
  endLine: number;
138
138
  endCharacter: number;
139
- kind?: "quickfix" | "refactor" | "refactor.extract" | "refactor.inline" | "refactor.rewrite" | "source" | "source.organizeImports" | "source.fixAll" | undefined;
139
+ kind?: "source" | "quickfix" | "refactor" | "refactor.extract" | "refactor.inline" | "refactor.rewrite" | "source.organizeImports" | "source.fixAll" | undefined;
140
140
  }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
141
141
  };
142
142
  export declare const lsp_code_action_resolve: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oh-my-opencode",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
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",
@@ -12,10 +12,12 @@
12
12
  ".": {
13
13
  "types": "./dist/index.d.ts",
14
14
  "import": "./dist/index.js"
15
- }
15
+ },
16
+ "./schema.json": "./dist/oh-my-opencode.schema.json"
16
17
  },
17
18
  "scripts": {
18
- "build": "bun build src/index.ts --outdir dist --target bun --format esm --external @ast-grep/napi && tsc --emitDeclarationOnly",
19
+ "build": "bun build src/index.ts --outdir dist --target bun --format esm --external @ast-grep/napi && tsc --emitDeclarationOnly && bun run build:schema",
20
+ "build:schema": "bun run script/build-schema.ts",
19
21
  "clean": "rm -rf dist",
20
22
  "prepublishOnly": "bun run clean && bun run build",
21
23
  "typecheck": "tsc --noEmit"
@@ -40,8 +42,12 @@
40
42
  },
41
43
  "homepage": "https://github.com/code-yeongyu/oh-my-opencode#readme",
42
44
  "dependencies": {
45
+ "@ast-grep/cli": "^0.40.0",
43
46
  "@ast-grep/napi": "^0.40.0",
44
- "@opencode-ai/plugin": "^1.0.7"
47
+ "@opencode-ai/plugin": "^1.0.7",
48
+ "tree-sitter-wasms": "^0.1.12",
49
+ "web-tree-sitter": "^0.24.7",
50
+ "zod": "^4.1.8"
45
51
  },
46
52
  "devDependencies": {
47
53
  "bun-types": "latest",
@@ -49,5 +55,8 @@
49
55
  },
50
56
  "peerDependencies": {
51
57
  "bun": ">=1.0.0"
52
- }
58
+ },
59
+ "trustedDependencies": [
60
+ "@ast-grep/cli"
61
+ ]
53
62
  }