@karlorz/codexhost-cli-darwin-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 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-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-3","distribution":"npm","target":"macos-arm64"}
1
+ {"schemaVersion":1,"version":"0.13.3-4","distribution":"npm","target":"macos-arm64"}
@@ -158,11 +158,11 @@
158
158
  return false;
159
159
  }
160
160
  }
161
- function overlayBlocksHostNotification(method, threadId, activeRealtimeThreadIds) {
161
+ function overlayBlocksHostNotification(method, threadId, allowedRealtimeThreadIds) {
162
162
  if (method.startsWith("thread/realtime/")) {
163
163
  return false;
164
164
  }
165
- if (threadId !== void 0 && activeRealtimeThreadIds.has(threadId)) {
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 activeRealtimeThreadIds = /* @__PURE__ */ new Set();
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
- activeRealtimeThreadIds.add(threadId);
197
+ voiceThreadIds.add(threadId);
198
198
  return;
199
199
  }
200
- if ((message.method === "thread/realtime/closed" || message.method === "thread/realtime/error") && threadId) {
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 {