@karlorz/codexhost-cli-darwin-x64 0.22.0-7 → 0.22.0-8
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/README.md +1 -1
- package/app/codexhost-distribution.json +1 -1
- package/app/desktop-controller.mjs +1 -1
- package/app/host-runtime.mjs +11 -4
- package/app/web-modules/server.mjs +1 -1
- package/bin/codexhost +0 -0
- package/libexec/codexhost-shim +0 -0
- package/libexec/codexhost-updater +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Run Pi and Claude Code as first-class external harnesses inside Codex Desktop.
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npm install -g @karlorz/codexhost-cli@0.22.0-
|
|
10
|
+
npm install -g @karlorz/codexhost-cli@0.22.0-8
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
Do not install this package directly. npm selects it through the optional dependencies of `@karlorz/codexhost-cli`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"schemaVersion":1,"version":"0.22.0-
|
|
1
|
+
{"schemaVersion":1,"version":"0.22.0-8","distribution":"npm","target":"macos-x64"}
|
|
@@ -184,7 +184,7 @@ var CdpClient = class _CdpClient {
|
|
|
184
184
|
};
|
|
185
185
|
const onError = () => {
|
|
186
186
|
cleanup();
|
|
187
|
-
reject(new
|
|
187
|
+
reject(new CdpConnectionClosedError("CDP WebSocket connection failed"));
|
|
188
188
|
};
|
|
189
189
|
const cleanup = () => {
|
|
190
190
|
clearTimeout(timeout);
|
package/app/host-runtime.mjs
CHANGED
|
@@ -48137,7 +48137,7 @@ var CdpClient = class _CdpClient {
|
|
|
48137
48137
|
};
|
|
48138
48138
|
const onError = () => {
|
|
48139
48139
|
cleanup();
|
|
48140
|
-
reject(new
|
|
48140
|
+
reject(new CdpConnectionClosedError("CDP WebSocket connection failed"));
|
|
48141
48141
|
};
|
|
48142
48142
|
const cleanup = () => {
|
|
48143
48143
|
clearTimeout(timeout);
|
|
@@ -74888,7 +74888,8 @@ function attachRemoteAppServerSession(options) {
|
|
|
74888
74888
|
input.destroy();
|
|
74889
74889
|
if (closing || finished) return;
|
|
74890
74890
|
closing = true;
|
|
74891
|
-
socket.
|
|
74891
|
+
if (socket.readyState === socket.OPEN) socket.close(1e3);
|
|
74892
|
+
else socket.terminate();
|
|
74892
74893
|
try {
|
|
74893
74894
|
session.close();
|
|
74894
74895
|
} catch (error51) {
|
|
@@ -74942,6 +74943,7 @@ function attachRemoteAppServerSession(options) {
|
|
|
74942
74943
|
if (code !== 0 && socket.readyState === socket.OPEN)
|
|
74943
74944
|
socket.close(1011, "Host Runtime exited");
|
|
74944
74945
|
}).catch((error51) => {
|
|
74946
|
+
if (closing) return;
|
|
74945
74947
|
diagnosticOutput.write(`codexhost app-server: ${String(error51)}
|
|
74946
74948
|
`);
|
|
74947
74949
|
if (socket.readyState === socket.OPEN)
|
|
@@ -79808,7 +79810,9 @@ async function startClientChannelServer(options) {
|
|
|
79808
79810
|
close() {
|
|
79809
79811
|
return closing ??= (async () => {
|
|
79810
79812
|
for (const session of desktopSessions) session.close();
|
|
79811
|
-
for (const client of desktop.clients)
|
|
79813
|
+
for (const client of desktop.clients) {
|
|
79814
|
+
if (client.readyState === import_websocket.default.OPEN) client.close(1e3);
|
|
79815
|
+
}
|
|
79812
79816
|
desktop.close();
|
|
79813
79817
|
const closed = new Promise((resolve3) => {
|
|
79814
79818
|
server.close(() => resolve3());
|
|
@@ -81528,7 +81532,10 @@ async function connectStream(launch, desktop, endpoint = "/v1/desktop") {
|
|
|
81528
81532
|
});
|
|
81529
81533
|
const stream = (0, import_stream2.default)(socket);
|
|
81530
81534
|
socket.once("close", (code, reason) => {
|
|
81531
|
-
if (code === 1e3 || code === 1005)
|
|
81535
|
+
if (code === 1e3 || code === 1005) {
|
|
81536
|
+
stream.destroy();
|
|
81537
|
+
return;
|
|
81538
|
+
}
|
|
81532
81539
|
const error51 = code === 1011 && reason.toString() === CODEX_RUNTIME_REMOVED_MESSAGE ? new CodexRuntimeFilesRemovedError() : new Error("Independent Host connection closed unexpectedly");
|
|
81533
81540
|
stream.destroy(error51);
|
|
81534
81541
|
});
|
|
@@ -81340,7 +81340,7 @@ var CdpClient = class _CdpClient {
|
|
|
81340
81340
|
}, connectTimeoutMs), onOpen = () => {
|
|
81341
81341
|
cleanup(), resolve22();
|
|
81342
81342
|
}, onError = () => {
|
|
81343
|
-
cleanup(), reject(new
|
|
81343
|
+
cleanup(), reject(new CdpConnectionClosedError("CDP WebSocket connection failed"));
|
|
81344
81344
|
}, cleanup = () => {
|
|
81345
81345
|
clearTimeout(timeout), socket.removeEventListener("open", onOpen), socket.removeEventListener("error", onError);
|
|
81346
81346
|
};
|
package/bin/codexhost
CHANGED
|
Binary file
|
package/libexec/codexhost-shim
CHANGED
|
Binary file
|
|
Binary file
|