switchroom 0.12.15 → 0.12.17
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/agent-scheduler/index.js +82 -81
- package/dist/auth-broker/index.js +82 -81
- package/dist/cli/drive-write-pretool.mjs +10 -10
- package/dist/cli/skill-validate-pretool.mjs +72 -72
- package/dist/cli/switchroom.js +359 -358
- package/dist/host-control/main.js +101 -100
- package/dist/vault/approvals/kernel-server.js +84 -83
- package/dist/vault/broker/server.js +85 -84
- package/package.json +1 -1
- package/telegram-plugin/bridge/bridge.ts +7 -0
- package/telegram-plugin/dist/bridge/bridge.js +115 -113
- package/telegram-plugin/dist/gateway/gateway.js +484 -287
- package/telegram-plugin/dist/server.js +163 -161
- package/telegram-plugin/gateway/gateway.ts +154 -5
- package/telegram-plugin/gateway/ipc-protocol.ts +9 -0
- package/telegram-plugin/gateway/pending-inbound-buffer.ts +32 -0
- package/telegram-plugin/gateway/proactive-compact.ts +84 -0
- package/telegram-plugin/tests/pending-inbound-buffer.test.ts +48 -1
- package/telegram-plugin/tests/proactive-compact.test.ts +101 -0
package/package.json
CHANGED
|
@@ -616,11 +616,18 @@ function forwardSessionEvent(ev: SessionEvent): void {
|
|
|
616
616
|
chatId = ev.chatId ?? ''
|
|
617
617
|
threadId = ev.threadId != null ? Number(ev.threadId) : undefined
|
|
618
618
|
}
|
|
619
|
+
// Forward the tailer's already-attached file (its tracked
|
|
620
|
+
// currentFile) so the gateway's proactive-compaction check reads
|
|
621
|
+
// occupancy from the exact session JSONL the tailer is on, never an
|
|
622
|
+
// independent findActiveSessionFile re-scan (which can transiently
|
|
623
|
+
// resolve a sub-agent transcript or a stale rotated file).
|
|
624
|
+
const activeFile = sessionTailHandle?.getActiveFile() ?? null
|
|
619
625
|
ipc.sendSessionEvent({
|
|
620
626
|
type: 'session_event',
|
|
621
627
|
event: ev as unknown as Record<string, unknown>,
|
|
622
628
|
chatId,
|
|
623
629
|
...(threadId != null ? { threadId } : {}),
|
|
630
|
+
...(activeFile ? { activeFile } : {}),
|
|
624
631
|
})
|
|
625
632
|
}
|
|
626
633
|
|