@workit-dev/opencode 1.13.0 → 1.14.2
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 -5
- package/package.json +2 -2
package/dist/plugin.js
CHANGED
|
@@ -11128,11 +11128,13 @@ function fastGit(root) {
|
|
|
11128
11128
|
}
|
|
11129
11129
|
function resolveStore(root) {
|
|
11130
11130
|
root = path11.resolve(root);
|
|
11131
|
-
let
|
|
11131
|
+
let stat = null;
|
|
11132
11132
|
try {
|
|
11133
|
-
|
|
11133
|
+
stat = fs7.statSync(root);
|
|
11134
11134
|
} catch {}
|
|
11135
|
-
if (!
|
|
11135
|
+
if (!stat)
|
|
11136
|
+
return new Error(`cannot locate the workit store: ${root} does not exist (removed while workit ran?); nothing is recorded under a missing directory`);
|
|
11137
|
+
if (!stat.isDirectory())
|
|
11136
11138
|
return { dir: path11.join(root, ".workit"), shared: false, top: null };
|
|
11137
11139
|
const fast = fastGit(root);
|
|
11138
11140
|
if (fast?.kind === "none")
|
|
@@ -15990,7 +15992,7 @@ function cleanRebase(cwd, range) {
|
|
|
15990
15992
|
function storeRoot(cwd) {
|
|
15991
15993
|
const location = resolveStore(path21.resolve(cwd));
|
|
15992
15994
|
if (location instanceof Error)
|
|
15993
|
-
return err("unavailable", location.message.replace(/; fix the repository.*$/u, ""), "fix the repository (git status should work here) or run from a non-git directory");
|
|
15995
|
+
return err("unavailable", location.message.replace(/; fix the repository.*$/u, ""), / does not exist /u.test(location.message) ? "run workit from a directory that exists" : "fix the repository (git status should work here) or run from a non-git directory");
|
|
15994
15996
|
return { ok: true, value: { root: location.dir, shared: location.shared } };
|
|
15995
15997
|
}
|
|
15996
15998
|
function ledgerPath(cwd) {
|
|
@@ -16191,7 +16193,7 @@ var sealed = (row, id, at, previous) => {
|
|
|
16191
16193
|
` };
|
|
16192
16194
|
};
|
|
16193
16195
|
function appendRaw(cwd, row, options) {
|
|
16194
|
-
const file = ledgerPath(cwd);
|
|
16196
|
+
const file = options.store ? { ok: true, value: path21.join(options.store.root, "ledger", "ledger.jsonl") } : ledgerPath(cwd);
|
|
16195
16197
|
if (!file.ok)
|
|
16196
16198
|
return file;
|
|
16197
16199
|
const id = newId2();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workit-dev/opencode",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.2",
|
|
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.
|
|
44
|
+
"@workit-dev/core": "^1.14.2"
|
|
45
45
|
},
|
|
46
46
|
"engines": {
|
|
47
47
|
"node": ">=24"
|