offhands 0.1.9 → 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/daemon.mjs +5 -3
- package/package.json +2 -2
package/dist/daemon.mjs
CHANGED
|
@@ -5520,7 +5520,8 @@ var OpenCodeRunner = class {
|
|
|
5520
5520
|
if (!pathDir) continue;
|
|
5521
5521
|
const cmdPath = join3(pathDir, "opencode.cmd");
|
|
5522
5522
|
if (existsSync3(cmdPath)) {
|
|
5523
|
-
|
|
5523
|
+
const realExe = join3(dirname2(cmdPath), "node_modules", "opencode-ai", "bin", "opencode.exe");
|
|
5524
|
+
this.resolved = [existsSync3(realExe) ? realExe : cmdPath];
|
|
5524
5525
|
return this.resolved;
|
|
5525
5526
|
}
|
|
5526
5527
|
const nodeModulesBin = join3(pathDir, "node_modules", ".bin", "opencode.cmd");
|
|
@@ -5654,13 +5655,14 @@ var OpenCodeRunner = class {
|
|
|
5654
5655
|
}
|
|
5655
5656
|
}
|
|
5656
5657
|
args2.push("--dir", run.workspace);
|
|
5657
|
-
const
|
|
5658
|
+
const viaShell = process.platform === "win32" && /\.(cmd|bat)$/i.test(cmd[0]);
|
|
5659
|
+
const promptArg = viaShell ? `"${run.prompt.replace(/\r?\n/g, " ").replace(/"/g, '\\"')}"` : run.prompt;
|
|
5658
5660
|
args2.push(promptArg);
|
|
5659
5661
|
try {
|
|
5660
5662
|
child = spawn4(cmd[0], args2, {
|
|
5661
5663
|
cwd: run.workspace,
|
|
5662
5664
|
stdio: ["ignore", "pipe", "pipe"],
|
|
5663
|
-
shell:
|
|
5665
|
+
shell: viaShell,
|
|
5664
5666
|
// One-shot process per prompt — no shared-server cross-session risk
|
|
5665
5667
|
// here, so the session id can go straight on the env unconditionally.
|
|
5666
5668
|
env: { ...process.env, OPENCODE_CONFIG_CONTENT: statusOnlyMcpConfigContent(this.statusUrl, run.sessionId) }
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "offhands",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Phone
|
|
3
|
+
"version": "0.1.10",
|
|
4
|
+
"description": "Phone → coding-agent relay. Daemon runs on your laptop, PWA on your phone. E2E encrypted.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"bin": {
|