clawmoney 0.17.42 → 0.17.43

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.
@@ -1,5 +1,5 @@
1
1
  import { spawn } from "node:child_process";
2
- import { openSync } from "node:fs";
2
+ import { openSync, closeSync } from "node:fs";
3
3
  import { join } from "node:path";
4
4
  import { homedir } from "node:os";
5
5
  import chalk from "chalk";
@@ -35,6 +35,11 @@ export async function taskStartCommand() {
35
35
  },
36
36
  });
37
37
  child.unref();
38
+ // Release fds in the parent — keeping them open keeps node's event
39
+ // loop alive (the parent never exits), and stale parent processes
40
+ // mean each desktop dashboard refresh would re-spawn another daemon.
41
+ closeSync(out);
42
+ closeSync(err);
38
43
  await new Promise((r) => setTimeout(r, 1000));
39
44
  const pid = readTaskPid();
40
45
  if (pid && isPidAlive(pid)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clawmoney",
3
- "version": "0.17.42",
3
+ "version": "0.17.43",
4
4
  "description": "ClawMoney CLI -- Earn rewards with your AI agent",
5
5
  "type": "module",
6
6
  "bin": {