oh-my-opencode 0.1.24 → 0.1.26

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.
@@ -20,11 +20,11 @@ export declare const builtinTools: {
20
20
  swift: "swift";
21
21
  elixir: "elixir";
22
22
  yaml: "yaml";
23
- bash: "bash";
23
+ json: "json";
24
+ html: "html";
24
25
  css: "css";
26
+ bash: "bash";
25
27
  haskell: "haskell";
26
- html: "html";
27
- json: "json";
28
28
  kotlin: "kotlin";
29
29
  nix: "nix";
30
30
  scala: "scala";
@@ -37,7 +37,7 @@ export declare const builtinTools: {
37
37
  };
38
38
  execute(args: {
39
39
  pattern: string;
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";
40
+ lang: "typescript" | "csharp" | "rust" | "php" | "python" | "javascript" | "go" | "c" | "cpp" | "java" | "ruby" | "lua" | "swift" | "elixir" | "yaml" | "json" | "html" | "css" | "bash" | "haskell" | "kotlin" | "nix" | "scala" | "solidity" | "tsx";
41
41
  paths?: string[] | undefined;
42
42
  globs?: string[] | undefined;
43
43
  context?: number | undefined;
@@ -64,11 +64,11 @@ export declare const builtinTools: {
64
64
  swift: "swift";
65
65
  elixir: "elixir";
66
66
  yaml: "yaml";
67
- bash: "bash";
67
+ json: "json";
68
+ html: "html";
68
69
  css: "css";
70
+ bash: "bash";
69
71
  haskell: "haskell";
70
- html: "html";
71
- json: "json";
72
72
  kotlin: "kotlin";
73
73
  nix: "nix";
74
74
  scala: "scala";
@@ -82,7 +82,7 @@ export declare const builtinTools: {
82
82
  execute(args: {
83
83
  pattern: string;
84
84
  rewrite: string;
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";
85
+ lang: "typescript" | "csharp" | "rust" | "php" | "python" | "javascript" | "go" | "c" | "cpp" | "java" | "ruby" | "lua" | "swift" | "elixir" | "yaml" | "json" | "html" | "css" | "bash" | "haskell" | "kotlin" | "nix" | "scala" | "solidity" | "tsx";
86
86
  paths?: string[] | undefined;
87
87
  globs?: string[] | undefined;
88
88
  dryRun?: boolean | undefined;
@@ -18,11 +18,11 @@ export declare const ast_grep_search: {
18
18
  swift: "swift";
19
19
  elixir: "elixir";
20
20
  yaml: "yaml";
21
- bash: "bash";
21
+ json: "json";
22
+ html: "html";
22
23
  css: "css";
24
+ bash: "bash";
23
25
  haskell: "haskell";
24
- html: "html";
25
- json: "json";
26
26
  kotlin: "kotlin";
27
27
  nix: "nix";
28
28
  scala: "scala";
@@ -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: "typescript" | "csharp" | "rust" | "php" | "python" | "javascript" | "go" | "c" | "cpp" | "java" | "ruby" | "lua" | "swift" | "elixir" | "yaml" | "json" | "html" | "css" | "bash" | "haskell" | "kotlin" | "nix" | "scala" | "solidity" | "tsx";
39
39
  paths?: string[] | undefined;
40
40
  globs?: string[] | undefined;
41
41
  context?: number | undefined;
@@ -62,11 +62,11 @@ export declare const ast_grep_replace: {
62
62
  swift: "swift";
63
63
  elixir: "elixir";
64
64
  yaml: "yaml";
65
- bash: "bash";
65
+ json: "json";
66
+ html: "html";
66
67
  css: "css";
68
+ bash: "bash";
67
69
  haskell: "haskell";
68
- html: "html";
69
- json: "json";
70
70
  kotlin: "kotlin";
71
71
  nix: "nix";
72
72
  scala: "scala";
@@ -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: "typescript" | "csharp" | "rust" | "php" | "python" | "javascript" | "go" | "c" | "cpp" | "java" | "ruby" | "lua" | "swift" | "elixir" | "yaml" | "json" | "html" | "css" | "bash" | "haskell" | "kotlin" | "nix" | "scala" | "solidity" | "tsx";
84
84
  paths?: string[] | undefined;
85
85
  globs?: string[] | undefined;
86
86
  dryRun?: boolean | undefined;
@@ -98,8 +98,8 @@ export declare const ast_grep_analyze: {
98
98
  lang: import("zod").ZodEnum<{
99
99
  typescript: "typescript";
100
100
  javascript: "javascript";
101
- css: "css";
102
101
  html: "html";
102
+ css: "css";
103
103
  tsx: "tsx";
104
104
  }>;
105
105
  pattern: import("zod").ZodOptional<import("zod").ZodString>;
@@ -107,7 +107,7 @@ export declare const ast_grep_analyze: {
107
107
  };
108
108
  execute(args: {
109
109
  code: string;
110
- lang: "typescript" | "javascript" | "css" | "html" | "tsx";
110
+ lang: "typescript" | "javascript" | "html" | "css" | "tsx";
111
111
  pattern?: string | undefined;
112
112
  extractMetaVars?: boolean | undefined;
113
113
  }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
@@ -119,8 +119,8 @@ export declare const ast_grep_transform: {
119
119
  lang: import("zod").ZodEnum<{
120
120
  typescript: "typescript";
121
121
  javascript: "javascript";
122
- css: "css";
123
122
  html: "html";
123
+ css: "css";
124
124
  tsx: "tsx";
125
125
  }>;
126
126
  pattern: import("zod").ZodString;
@@ -128,7 +128,7 @@ export declare const ast_grep_transform: {
128
128
  };
129
129
  execute(args: {
130
130
  code: string;
131
- lang: "typescript" | "javascript" | "css" | "html" | "tsx";
131
+ lang: "typescript" | "javascript" | "html" | "css" | "tsx";
132
132
  pattern: string;
133
133
  rewrite: string;
134
134
  }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
@@ -171,11 +171,11 @@ export declare const builtinTools: {
171
171
  swift: "swift";
172
172
  elixir: "elixir";
173
173
  yaml: "yaml";
174
- bash: "bash";
174
+ json: "json";
175
+ html: "html";
175
176
  css: "css";
177
+ bash: "bash";
176
178
  haskell: "haskell";
177
- html: "html";
178
- json: "json";
179
179
  kotlin: "kotlin";
180
180
  nix: "nix";
181
181
  scala: "scala";
@@ -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: "typescript" | "csharp" | "rust" | "php" | "python" | "javascript" | "go" | "c" | "cpp" | "java" | "ruby" | "lua" | "swift" | "elixir" | "yaml" | "json" | "html" | "css" | "bash" | "haskell" | "kotlin" | "nix" | "scala" | "solidity" | "tsx";
192
192
  paths?: string[] | undefined;
193
193
  globs?: string[] | undefined;
194
194
  context?: number | undefined;
@@ -215,11 +215,11 @@ export declare const builtinTools: {
215
215
  swift: "swift";
216
216
  elixir: "elixir";
217
217
  yaml: "yaml";
218
- bash: "bash";
218
+ json: "json";
219
+ html: "html";
219
220
  css: "css";
221
+ bash: "bash";
220
222
  haskell: "haskell";
221
- html: "html";
222
- json: "json";
223
223
  kotlin: "kotlin";
224
224
  nix: "nix";
225
225
  scala: "scala";
@@ -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: "typescript" | "csharp" | "rust" | "php" | "python" | "javascript" | "go" | "c" | "cpp" | "java" | "ruby" | "lua" | "swift" | "elixir" | "yaml" | "json" | "html" | "css" | "bash" | "haskell" | "kotlin" | "nix" | "scala" | "solidity" | "tsx";
237
237
  paths?: string[] | undefined;
238
238
  globs?: string[] | undefined;
239
239
  dryRun?: boolean | undefined;
@@ -1,4 +1,5 @@
1
1
  import type { ResolvedServer } from "./config";
2
+ import type { Diagnostic } from "./types";
2
3
  declare class LSPServerManager {
3
4
  private static instance;
4
5
  private clients;
@@ -26,6 +27,7 @@ export declare class LSPClient {
26
27
  private openedFiles;
27
28
  private stderrBuffer;
28
29
  private processExited;
30
+ private diagnosticsStore;
29
31
  constructor(root: string, server: ResolvedServer);
30
32
  start(): Promise<void>;
31
33
  private startReading;
@@ -44,7 +46,9 @@ export declare class LSPClient {
44
46
  references(filePath: string, line: number, character: number, includeDeclaration?: boolean): Promise<unknown>;
45
47
  documentSymbols(filePath: string): Promise<unknown>;
46
48
  workspaceSymbols(query: string): Promise<unknown>;
47
- diagnostics(filePath: string): Promise<unknown>;
49
+ diagnostics(filePath: string): Promise<{
50
+ items: Diagnostic[];
51
+ }>;
48
52
  prepareRename(filePath: string, line: number, character: number): Promise<unknown>;
49
53
  rename(filePath: string, line: number, character: number, newName: string): Promise<unknown>;
50
54
  codeAction(filePath: string, startLine: number, startChar: number, endLine: number, endChar: number, only?: string[]): Promise<unknown>;
@@ -1,5 +1,5 @@
1
1
  import { LSPClient } from "./client";
2
- import type { HoverResult, DocumentSymbol, SymbolInfo, Location, LocationLink, Diagnostic, PrepareRenameResult, PrepareRenameDefaultBehavior, WorkspaceEdit, TextEdit, CodeAction, Command } from "./types";
2
+ import type { HoverResult, DocumentSymbol, SymbolInfo, Location, LocationLink, Diagnostic, PrepareRenameResult, PrepareRenameDefaultBehavior, Range, WorkspaceEdit, TextEdit, CodeAction, Command } from "./types";
3
3
  export declare function findWorkspaceRoot(filePath: string): string;
4
4
  export declare function withLspClient<T>(filePath: string, fn: (client: LSPClient) => Promise<T>): Promise<T>;
5
5
  export declare function formatHoverResult(result: HoverResult | null): string;
@@ -10,7 +10,7 @@ export declare function formatDocumentSymbol(symbol: DocumentSymbol, indent?: nu
10
10
  export declare function formatSymbolInfo(symbol: SymbolInfo): string;
11
11
  export declare function formatDiagnostic(diag: Diagnostic): string;
12
12
  export declare function filterDiagnosticsBySeverity(diagnostics: Diagnostic[], severityFilter?: "error" | "warning" | "information" | "hint" | "all"): Diagnostic[];
13
- export declare function formatPrepareRenameResult(result: PrepareRenameResult | PrepareRenameDefaultBehavior | null): string;
13
+ export declare function formatPrepareRenameResult(result: PrepareRenameResult | PrepareRenameDefaultBehavior | Range | null): string;
14
14
  export declare function formatTextEdit(edit: TextEdit): string;
15
15
  export declare function formatWorkspaceEdit(edit: WorkspaceEdit | null): string;
16
16
  export declare function formatCodeAction(action: CodeAction): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oh-my-opencode",
3
- "version": "0.1.24",
3
+ "version": "0.1.26",
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",
@@ -46,6 +46,7 @@
46
46
  "@ast-grep/napi": "^0.40.0",
47
47
  "@code-yeongyu/comment-checker": "^0.4.1",
48
48
  "@opencode-ai/plugin": "^1.0.7",
49
+ "xdg-basedir": "^5.1.0",
49
50
  "zod": "^4.1.8"
50
51
  },
51
52
  "devDependencies": {