@workit-dev/opencode 2.16.0 → 2.16.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 -5
- package/package.json +2 -2
package/dist/plugin.js
CHANGED
|
@@ -29253,16 +29253,18 @@ var openLog = (env, args) => {
|
|
|
29253
29253
|
return null;
|
|
29254
29254
|
}
|
|
29255
29255
|
};
|
|
29256
|
-
function runCli(args, env
|
|
29256
|
+
function runCli(args, env) {
|
|
29257
29257
|
let log = null;
|
|
29258
29258
|
try {
|
|
29259
29259
|
const cli = locateWorkitCli({ env });
|
|
29260
|
+
const cwd = teardownDir(env);
|
|
29261
|
+
fs31.mkdirSync(cwd, { recursive: true });
|
|
29260
29262
|
log = openLog(env, args);
|
|
29261
29263
|
const started = teardownDeps.spawn({
|
|
29262
29264
|
command: cli.command,
|
|
29263
29265
|
args: [...cli.args, ...args],
|
|
29264
29266
|
env,
|
|
29265
|
-
cwd
|
|
29267
|
+
cwd,
|
|
29266
29268
|
log
|
|
29267
29269
|
});
|
|
29268
29270
|
if (!started && log !== null)
|
|
@@ -29288,7 +29290,7 @@ function endSession(end, env = process.env) {
|
|
|
29288
29290
|
const child = { ...env, WORKIT_SESSION_ID: session, WORKIT_HOST: end.host };
|
|
29289
29291
|
for (const key of HOST_SESSION_VARS2)
|
|
29290
29292
|
delete child[key];
|
|
29291
|
-
return runCli(["stop", "--session", session, "--reason", "session-end"], child
|
|
29293
|
+
return runCli(["stop", "--session", session, "--reason", "session-end"], child);
|
|
29292
29294
|
}
|
|
29293
29295
|
var claim2 = (file, now) => {
|
|
29294
29296
|
for (let attempt = 0;attempt < 2; attempt += 1)
|
|
@@ -29316,7 +29318,7 @@ var fresh = (stamp, now) => {
|
|
|
29316
29318
|
return false;
|
|
29317
29319
|
}
|
|
29318
29320
|
};
|
|
29319
|
-
function reapAtStart(
|
|
29321
|
+
function reapAtStart(_cwd, env = process.env) {
|
|
29320
29322
|
const stamp = reapStamp(env);
|
|
29321
29323
|
const lock = `${stamp}.claim`;
|
|
29322
29324
|
const now = teardownDeps.now();
|
|
@@ -29333,7 +29335,7 @@ function reapAtStart(cwd, env = process.env) {
|
|
|
29333
29335
|
try {
|
|
29334
29336
|
if (fresh(stamp, now))
|
|
29335
29337
|
return false;
|
|
29336
|
-
started = runCli(["stop", "--orphans", "--reason", "session-start"], env
|
|
29338
|
+
started = runCli(["stop", "--orphans", "--reason", "session-start"], env);
|
|
29337
29339
|
if (started) {
|
|
29338
29340
|
const temp = `${stamp}.${process.pid}`;
|
|
29339
29341
|
fs31.writeFileSync(temp, String(now), { mode: 384 });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workit-dev/opencode",
|
|
3
|
-
"version": "2.16.
|
|
3
|
+
"version": "2.16.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": "^2.16.
|
|
44
|
+
"@workit-dev/core": "^2.16.1"
|
|
45
45
|
},
|
|
46
46
|
"engines": {
|
|
47
47
|
"node": ">=24"
|