@karlorz/codexhost-cli-win32-arm64 0.13.3-3 → 0.13.3-4
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/cpa-live-voice-hook.js +6 -9
- package/app/host-runtime.mjs +360 -205
- package/bin/codexhost.exe +0 -0
- package/libexec/codexhost-node-repl.exe +0 -0
- package/libexec/codexhost-shim.exe +0 -0
- package/libexec/codexhost-updater.exe +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.13.3-
|
|
10
|
+
npm install -g @karlorz/codexhost-cli@0.13.3-4
|
|
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.13.3-
|
|
1
|
+
{"schemaVersion":1,"version":"0.13.3-4","distribution":"npm","target":"windows-arm64"}
|
|
@@ -158,11 +158,11 @@
|
|
|
158
158
|
return false;
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
-
function overlayBlocksHostNotification(method, threadId,
|
|
161
|
+
function overlayBlocksHostNotification(method, threadId, allowedRealtimeThreadIds) {
|
|
162
162
|
if (method.startsWith("thread/realtime/")) {
|
|
163
163
|
return false;
|
|
164
164
|
}
|
|
165
|
-
if (threadId !== void 0 &&
|
|
165
|
+
if (threadId !== void 0 && allowedRealtimeThreadIds.has(threadId)) {
|
|
166
166
|
return false;
|
|
167
167
|
}
|
|
168
168
|
if (BLOCKED_METHODS.has(method)) return true;
|
|
@@ -187,23 +187,20 @@
|
|
|
187
187
|
return { status: "disabled", dispose() {
|
|
188
188
|
} };
|
|
189
189
|
}
|
|
190
|
-
const
|
|
190
|
+
const voiceThreadIds = /* @__PURE__ */ new Set();
|
|
191
191
|
const listener = (event) => {
|
|
192
192
|
const message = event.data;
|
|
193
193
|
if (!isRecord2(message) || message.type !== "mcp-notification") return;
|
|
194
194
|
if (typeof message.method !== "string") return;
|
|
195
195
|
const threadId = notificationThreadId(message.params);
|
|
196
196
|
if (message.method === "thread/realtime/started" && threadId) {
|
|
197
|
-
|
|
197
|
+
voiceThreadIds.add(threadId);
|
|
198
198
|
return;
|
|
199
199
|
}
|
|
200
|
-
if ((message.method
|
|
201
|
-
activeRealtimeThreadIds.delete(threadId);
|
|
202
|
-
return;
|
|
203
|
-
}
|
|
204
|
-
if (overlayBlocksHostNotification(message.method, threadId, activeRealtimeThreadIds)) {
|
|
200
|
+
if (overlayBlocksHostNotification(message.method, threadId, voiceThreadIds)) {
|
|
205
201
|
event.stopImmediatePropagation();
|
|
206
202
|
}
|
|
203
|
+
if (message.method === "thread/deleted" && threadId) voiceThreadIds.delete(threadId);
|
|
207
204
|
};
|
|
208
205
|
target.addEventListener("message", listener, true);
|
|
209
206
|
return {
|