clawdock 0.2.2 → 0.2.3

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -402,7 +402,7 @@ program.command("run <bundle>").description("Pull and run an agent locally").opt
402
402
  console.log();
403
403
  if (runtimeName === "openclaw") {
404
404
  try {
405
- const list = execSync("openclaw agents list --json 2>/dev/null", { encoding: "utf-8" });
405
+ const list = execSync(`openclaw agents list --json ${devNull}`, { encoding: "utf-8", shell: isWindows ? "cmd.exe" : void 0 });
406
406
  const agents = JSON.parse(list);
407
407
  if (!agents.find((a) => a.name === agentName)) {
408
408
  throw new Error("not found");
@@ -433,7 +433,8 @@ program.command("run <bundle>").description("Pull and run an agent locally").opt
433
433
  ["agent", "--agent", agentName, "--prompt", "Hello! I just pulled you from ClawDock. Introduce yourself."],
434
434
  {
435
435
  stdio: "inherit",
436
- env: { ...process.env }
436
+ env: { ...process.env },
437
+ shell: isWindows
437
438
  }
438
439
  );
439
440
  child.on("error", (err) => {
@@ -467,7 +468,8 @@ program.command("run <bundle>").description("Pull and run an agent locally").opt
467
468
  fs.writeFileSync(configPath, JSON.stringify(nullclawConfig, null, 2));
468
469
  const child = spawn(runtimeBin, ["--config", configPath, "--workspace", workspaceDir], {
469
470
  stdio: "inherit",
470
- cwd: workspaceDir
471
+ cwd: workspaceDir,
472
+ shell: isWindows
471
473
  });
472
474
  child.on("error", (err) => {
473
475
  console.error(`\u274C Failed to start NullClaw: ${err.message}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clawdock",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "CLI for ClawDock — the agent registry",
5
5
  "bin": {
6
6
  "clawdock": "./dist/index.js"