@drisp/cli 0.5.11 → 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/athena-gateway.js +248 -181
- package/dist/{chunk-2QMUBFZZ.js → chunk-BUNMENOT.js} +557 -446
- package/dist/cli.js +2 -2
- package/dist/dashboard-daemon.js +1 -1
- package/dist/hook-forwarder.js +5 -5
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
writeAttachmentMirror,
|
|
98
98
|
writeGatewayClientConfig,
|
|
99
99
|
wsClientOptionsForEndpoint
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-BUNMENOT.js";
|
|
101
101
|
import {
|
|
102
102
|
generateId as generateId2
|
|
103
103
|
} from "./chunk-BTKQ67RE.js";
|
|
@@ -12670,7 +12670,7 @@ var cachedVersion = null;
|
|
|
12670
12670
|
function readPackageVersion() {
|
|
12671
12671
|
if (cachedVersion !== null) return cachedVersion;
|
|
12672
12672
|
try {
|
|
12673
|
-
const injected = "0.5.
|
|
12673
|
+
const injected = "0.5.13";
|
|
12674
12674
|
if (typeof injected === "string" && injected.length > 0) {
|
|
12675
12675
|
cachedVersion = injected;
|
|
12676
12676
|
return cachedVersion;
|
package/dist/dashboard-daemon.js
CHANGED
package/dist/hook-forwarder.js
CHANGED
|
@@ -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 =
|
|
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 });
|