@drisp/cli 0.5.10 → 0.5.13

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.js CHANGED
@@ -97,7 +97,7 @@ import {
97
97
  writeAttachmentMirror,
98
98
  writeGatewayClientConfig,
99
99
  wsClientOptionsForEndpoint
100
- } from "./chunk-RN5AVH3D.js";
100
+ } from "./chunk-BUNMENOT.js";
101
101
  import {
102
102
  generateId as generateId2
103
103
  } from "./chunk-BTKQ67RE.js";
@@ -1698,6 +1698,13 @@ function useFeed(runtime, messages = [], initialAllowedTools, sessionStore, opti
1698
1698
  () => options?.dashboardFeedPublisher ?? createPairedFeedPublisher(),
1699
1699
  [options?.dashboardFeedPublisher]
1700
1700
  );
1701
+ const ownsFeedPublisher = !options?.dashboardFeedPublisher;
1702
+ useEffect(() => {
1703
+ if (!ownsFeedPublisher) return;
1704
+ return () => {
1705
+ dashboardFeedPublisher.close();
1706
+ };
1707
+ }, [ownsFeedPublisher, dashboardFeedPublisher]);
1701
1708
  const dashboardDecisionInboxRef = useRef(
1702
1709
  options?.dashboardDecisionInbox ?? null
1703
1710
  );
@@ -12663,7 +12670,7 @@ var cachedVersion = null;
12663
12670
  function readPackageVersion() {
12664
12671
  if (cachedVersion !== null) return cachedVersion;
12665
12672
  try {
12666
- const injected = "0.5.10";
12673
+ const injected = "0.5.13";
12667
12674
  if (typeof injected === "string" && injected.length > 0) {
12668
12675
  cachedVersion = injected;
12669
12676
  return cachedVersion;
@@ -3,7 +3,7 @@ import {
3
3
  ensureDaemonStateDir,
4
4
  runDashboardRuntimeDaemon,
5
5
  startUdsServer
6
- } from "./chunk-RN5AVH3D.js";
6
+ } from "./chunk-BUNMENOT.js";
7
7
  import "./chunk-BTKQ67RE.js";
8
8
  import {
9
9
  readDashboardClientConfig,
@@ -9,7 +9,7 @@ import {
9
9
  import * as net from "net";
10
10
  import * as path from "path";
11
11
  var SOCKET_TIMEOUT_MS = 5e3;
12
- var PERMISSION_TIMEOUT_MS = 5 * 60 * 1e3;
12
+ var PERMISSION_TIMEOUT_MS = null;
13
13
  function getSocketPath(cwd) {
14
14
  const explicitSocketPath = process.env[ATHENA_HOOK_SOCKET_ENV];
15
15
  if (explicitSocketPath) {
@@ -44,7 +44,7 @@ async function connectAndSend(socketPath, envelope, timeoutMs) {
44
44
  resolve({ envelope: null, error });
45
45
  }
46
46
  };
47
- const timeoutId = setTimeout(() => cleanup("TIMEOUT"), timeoutMs);
47
+ const timeoutId = timeoutMs === null ? void 0 : setTimeout(() => cleanup("TIMEOUT"), timeoutMs);
48
48
  socket.on("connect", () => {
49
49
  socket.write(JSON.stringify(envelope) + "\n");
50
50
  });
@@ -52,7 +52,7 @@ async function connectAndSend(socketPath, envelope, timeoutMs) {
52
52
  responseData += chunk.toString();
53
53
  const lines = responseData.split("\n");
54
54
  if (lines.length > 1 && lines[0]) {
55
- clearTimeout(timeoutId);
55
+ if (timeoutId) clearTimeout(timeoutId);
56
56
  resolved = true;
57
57
  socket.destroy();
58
58
  try {
@@ -64,7 +64,7 @@ async function connectAndSend(socketPath, envelope, timeoutMs) {
64
64
  }
65
65
  });
66
66
  socket.on("error", (err) => {
67
- clearTimeout(timeoutId);
67
+ if (timeoutId) clearTimeout(timeoutId);
68
68
  if (err.code === "ENOENT") {
69
69
  cleanup("ENOENT");
70
70
  } else if (err.code === "ECONNREFUSED") {
@@ -74,7 +74,7 @@ async function connectAndSend(socketPath, envelope, timeoutMs) {
74
74
  }
75
75
  });
76
76
  socket.on("close", () => {
77
- clearTimeout(timeoutId);
77
+ if (timeoutId) clearTimeout(timeoutId);
78
78
  if (!resolved) {
79
79
  resolved = true;
80
80
  resolve({ envelope: null });
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "hooks",
18
18
  "dashboard"
19
19
  ],
20
- "version": "0.5.10",
20
+ "version": "0.5.13",
21
21
  "license": "MIT",
22
22
  "bin": {
23
23
  "athena": "dist/cli.js",