oh-my-opencode 0.1.8 → 0.1.10
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 +5 -2
- package/dist/tree-sitter-p2whf0kn.wasm +0 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4155,7 +4155,10 @@ async function detectComments(filePath, content, includeDocstrings = true) {
|
|
|
4155
4155
|
}
|
|
4156
4156
|
try {
|
|
4157
4157
|
const Parser2 = (await Promise.resolve().then(() => __toESM(require_tree_sitter(), 1))).default;
|
|
4158
|
-
|
|
4158
|
+
const treeSitterWasmPath = __require.resolve("/home/runner/work/oh-my-opencode/oh-my-opencode/node_modules/web-tree-sitter/tree-sitter.wasm");
|
|
4159
|
+
await Parser2.init({
|
|
4160
|
+
locateFile: () => treeSitterWasmPath
|
|
4161
|
+
});
|
|
4159
4162
|
const parser = new Parser2;
|
|
4160
4163
|
let wasmPath;
|
|
4161
4164
|
try {
|
|
@@ -4358,7 +4361,7 @@ function createCommentCheckerHooks() {
|
|
|
4358
4361
|
if (toolLower !== "write" && toolLower !== "edit" && toolLower !== "multiedit") {
|
|
4359
4362
|
return;
|
|
4360
4363
|
}
|
|
4361
|
-
const filePath = output.args.filePath ?? output.args.file_path;
|
|
4364
|
+
const filePath = output.args.filePath ?? output.args.file_path ?? output.args.path;
|
|
4362
4365
|
const content = output.args.content;
|
|
4363
4366
|
if (!filePath) {
|
|
4364
4367
|
return;
|
|
Binary file
|