@lesscap/baton-cli 0.8.0 → 0.8.2

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/baton.mjs +17 -10
  2. package/package.json +4 -4
package/dist/baton.mjs CHANGED
@@ -8816,16 +8816,23 @@ var sessionRunCommand = defineCommand({
8816
8816
  process.on("SIGTERM", stop);
8817
8817
  process.on("disconnect", stop);
8818
8818
  if (!process.connected) stop();
8819
- await runDaemon(
8820
- config,
8821
- {
8822
- worker: worker2,
8823
- runnerToken: args["runner-token"],
8824
- eventSourceImpl: authedEventSource(workerToken),
8825
- fetchImpl: bearerFetch(workerToken)
8826
- },
8827
- ac.signal
8828
- );
8819
+ try {
8820
+ await runDaemon(
8821
+ config,
8822
+ {
8823
+ worker: worker2,
8824
+ runnerToken: args["runner-token"],
8825
+ eventSourceImpl: authedEventSource(workerToken),
8826
+ fetchImpl: bearerFetch(workerToken)
8827
+ },
8828
+ ac.signal
8829
+ );
8830
+ } finally {
8831
+ process.off("SIGINT", stop);
8832
+ process.off("SIGTERM", stop);
8833
+ process.off("disconnect", stop);
8834
+ if (process.connected) process.disconnect?.();
8835
+ }
8829
8836
  }
8830
8837
  });
8831
8838
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lesscap/baton-cli",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -26,9 +26,9 @@
26
26
  "@baton/shared": "0.0.0"
27
27
  },
28
28
  "dependencies": {
29
- "@anthropic-ai/claude-agent-sdk": "^0.3.263",
30
- "@openai/codex": "0.153.4",
31
- "@openai/codex-sdk": "0.153.4",
29
+ "@anthropic-ai/claude-agent-sdk": "^0.3.288",
30
+ "@openai/codex": "0.160.0",
31
+ "@openai/codex-sdk": "0.160.0",
32
32
  "mime": "^4.1.0",
33
33
  "node-pty": "^1.1.0",
34
34
  "ws": "^8.21.0"