@keyban/cli 0.4.2 → 0.4.4

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/index.mjs CHANGED
@@ -135399,8 +135399,8 @@ function identityFrom(idToken) {
135399
135399
  }
135400
135400
  function openBrowser(url2) {
135401
135401
  const [command, args] = process.platform === "darwin" ? ["open", [url2]] : process.platform === "win32" ? (
135402
- // cmd would cut the URL at its first `&` were it not quoted.
135403
- ["cmd", ["/c", "start", "", `"${url2}"`]]
135402
+ // Not cmd's start: it cuts the URL at `&`, and execFile re-escapes the quotes that would protect it.
135403
+ ["rundll32", ["url.dll,FileProtocolHandler", url2]]
135404
135404
  ) : ["xdg-open", [url2]];
135405
135405
  execFile(command, args, () => void 0);
135406
135406
  }
@@ -156491,9 +156491,8 @@ ${url2}
156491
156491
  }
156492
156492
  function register(client) {
156493
156493
  const args = ["-y", "--package=install-mcp", "install-mcp", SERVER, "--name", "agent-wallet", "--client", client, "--yes"];
156494
- const run = spawnSync2("npx", args, {
156495
- stdio: ["ignore", 2, 2]
156496
- });
156494
+ const stdio = ["ignore", 2, 2];
156495
+ const run = process.platform === "win32" ? spawnSync2(["npx", ...args.map((arg) => `"${arg}"`)].join(" "), { shell: true, stdio }) : spawnSync2("npx", args, { stdio });
156497
156496
  if (run.status !== 0) throw new Error(`install-mcp exited ${run.status ?? run.signal}: the MCP server is not registered.`);
156498
156497
  }
156499
156498
  function setupCommand() {
@@ -156525,7 +156524,7 @@ function setupCommand() {
156525
156524
  }
156526
156525
 
156527
156526
  // src/index.ts
156528
- var VERSION5 = true ? "0.4.2" : "0.0.0";
156527
+ var VERSION5 = true ? "0.4.4" : "0.0.0";
156529
156528
  if (process.argv[2] !== "mcp" && !process.env.MCP_LOG_LEVEL) logger.setMinLevel("error");
156530
156529
  function typedArgv(argv) {
156531
156530
  if (argv[2] !== "__complete") return argv;