feat: add acp bridge

This commit is contained in:
Peter Steinberger committed 2026-01-18 06:07:00 +00:00
1 parent f5f7f47c81
commit 41fbcc405f
17 files changed
+1102

No files matched your search

+9
View File
@@ -92,6 +92,15 @@ export function isSubagentSessionKey(sessionKey: string | undefined | null): boo
return Boolean((parsed?.rest ?? "").toLowerCase().startsWith("subagent:"));
}
export function isAcpSessionKey(sessionKey: string | undefined | null): boolean {
const raw = (sessionKey ?? "").trim();
if (!raw) return false;
const normalized = raw.toLowerCase();
if (normalized.startsWith("acp:")) return true;
const parsed = parseAgentSessionKey(raw);
return Boolean((parsed?.rest ?? "").toLowerCase().startsWith("acp:"));
}
export function buildAgentMainSessionKey(params: {
agentId: string;
mainKey?: string | undefined;