MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / controlsFor

Method controlsFor

src/bot/gateway.ts:55–63  ·  view source on GitHub ↗

The small control surface a command may drive for this conversation.

(t: Transport, chatId: string, key: string)

Source from the content-addressed store, hash-verified

53 for (const ac of this.busy.values()) ac.abort();
54 for (const t of this.opts.transports) await t.stop();
55 }
56
57 /** Hub is sink-dumb. We only present asks whose origin is one of our chats. Never live. */
58 private onHub(ev: HubEvent): void {
59 if (ev.kind === 'approval-cleared') {
60 for (const [key, ask] of this.asks) {
61 if (ask.hubId === ev.id) this.asks.delete(key);
62 }
63 return;
64 }
65 if (ev.kind !== 'approval') return;
66 if (!ev.origin || ev.origin === TUI_ORIGIN) return;

Callers 1

onMessageMethod · 0.95

Calls 6

runAndDrainMethod · 0.95
abortMethod · 0.80
deleteMethod · 0.80
resetMethod · 0.65
hasMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected