@workit-dev/opencode 1.7.0 → 1.7.1
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/plugin.js +7 -1
- package/package.json +2 -2
package/dist/plugin.js
CHANGED
|
@@ -20788,9 +20788,15 @@ var messageOf = (segment, index) => {
|
|
|
20788
20788
|
return null;
|
|
20789
20789
|
return match[3].replace(/\n+$/u, "");
|
|
20790
20790
|
};
|
|
20791
|
+
var sameGitDir = (a, b, platform = process.platform) => {
|
|
20792
|
+
if (platform !== "win32")
|
|
20793
|
+
return path27.posix.resolve(a) === path27.posix.resolve(b);
|
|
20794
|
+
const fold = (value) => path27.win32.resolve(value).toLowerCase();
|
|
20795
|
+
return fold(a) === fold(b);
|
|
20796
|
+
};
|
|
20791
20797
|
var cdCommitCall = (input, command, target, repo) => {
|
|
20792
20798
|
const { top, git, dir: store } = repo.location;
|
|
20793
|
-
if (!top || !git || git.gitDir
|
|
20799
|
+
if (!top || !git || sameGitDir(git.gitDir, path27.dirname(store)) || repoAt(input.cwd)?.location.top === top)
|
|
20794
20800
|
return null;
|
|
20795
20801
|
const bare = command.replaceAll(/'[^']*'|"(?:[^"\\]|\\.)*"/gu, "").replaceAll("&&", "");
|
|
20796
20802
|
if (/[;|&<>`$()\n\\]/u.test(bare))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workit-dev/opencode",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Workit OpenCode plugin — native tools, adaptive policy, and sixteen method skills",
|
|
6
6
|
"keywords": [
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@opencode/plugin": "2.0.18",
|
|
44
|
-
"@workit-dev/core": "^1.7.
|
|
44
|
+
"@workit-dev/core": "^1.7.1"
|
|
45
45
|
},
|
|
46
46
|
"engines": {
|
|
47
47
|
"node": ">=24"
|