approval-box 0.1.16 → 0.1.17
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/cli.mjs +3 -2
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -11882,7 +11882,8 @@ function windowsDaemonLaunchScript(executable, entry, cwd, environment) {
|
|
|
11882
11882
|
function launchDaemon(executable, entry, cwd) {
|
|
11883
11883
|
if (process.platform === "win32") {
|
|
11884
11884
|
const script = windowsDaemonLaunchScript(executable, entry, cwd, { ...process.env, APPROVAL_BOX_HOME: resolve(home()) });
|
|
11885
|
-
const result = spawnSync("
|
|
11885
|
+
const result = spawnSync("pwsh.exe", ["-NoProfile", "-NonInteractive", "-EncodedCommand", Buffer.from(script, "utf16le").toString("base64")], { cwd, windowsHide: true, encoding: "utf8", timeout: 15e3 });
|
|
11886
|
+
if (result.error?.code === "ENOENT") throw new Error("PowerShell 7\uFF08pwsh.exe\uFF09\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002\u6A19\u6E96PATH\u306BPowerShell 7\u3092\u5C0E\u5165\u3057\u3066\u304F\u3060\u3055\u3044\u3002");
|
|
11886
11887
|
if (result.error || result.status !== 0 || !/^\s*\d+\s*$/.test(result.stdout ?? "")) throw new Error(`Windows\u306E\u5E38\u99D0\u8D77\u52D5\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF08${result.error?.message ?? `exit ${result.status}`}\uFF09`);
|
|
11887
11888
|
return;
|
|
11888
11889
|
}
|
|
@@ -15813,7 +15814,7 @@ import { existsSync as existsSync6, readFileSync as readFileSync6 } from "node:f
|
|
|
15813
15814
|
import { basename as basename2, join as join8 } from "node:path";
|
|
15814
15815
|
|
|
15815
15816
|
// src/version.ts
|
|
15816
|
-
var VERSION = true ? "0.1.
|
|
15817
|
+
var VERSION = true ? "0.1.17" : "0.0.0-dev";
|
|
15817
15818
|
function osName() {
|
|
15818
15819
|
return process.platform === "darwin" ? "macos" : process.platform === "win32" ? "windows" : process.platform;
|
|
15819
15820
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "approval-box",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.17",
|
|
4
4
|
"description": "Approval Box connector: lets Claude Code, Codex, Cursor and Grok ask you for a decision, and steers your answer back into the same session.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://approval-box.kitepon.dev",
|