oh-my-opencode 0.1.11 → 0.1.12

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.js CHANGED
@@ -4159,7 +4159,9 @@ async function initParserClass() {
4159
4159
  parserInitPromise = (async () => {
4160
4160
  debugLog("importing web-tree-sitter...");
4161
4161
  parserClass = (await Promise.resolve().then(() => __toESM(require_tree_sitter(), 1))).default;
4162
- const treeSitterWasmPath = __require.resolve("/home/runner/work/oh-my-opencode/oh-my-opencode/node_modules/web-tree-sitter/tree-sitter.wasm");
4162
+ const webTreeSitterPath = import.meta.resolve("web-tree-sitter");
4163
+ const packageDir = webTreeSitterPath.replace(/\/[^/]+$/, "").replace("file://", "");
4164
+ const treeSitterWasmPath = `${packageDir}/tree-sitter.wasm`;
4163
4165
  debugLog("wasm path:", treeSitterWasmPath);
4164
4166
  await parserClass.init({
4165
4167
  locateFile: () => treeSitterWasmPath
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oh-my-opencode",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
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",
Binary file