feat: add agent targeting + reply overrides

This commit is contained in:
Peter Steinberger committed 2026-01-18 22:50:51 +00:00
1 parent 024691e4e7
commit 404c373153
15 files changed
+374 -64

No files matched your search

+9
View File
@@ -35,6 +35,15 @@ export function resolveAgentMainSessionKey(params: {
return buildAgentMainSessionKey({ agentId: params.agentId, mainKey });
}
export function resolveExplicitAgentSessionKey(params: {
cfg?: { session?: { scope?: SessionScope; mainKey?: string } };
agentId?: string | null;
}): string | undefined {
const agentId = params.agentId?.trim();
if (!agentId) return undefined;
return resolveAgentMainSessionKey({ cfg: params.cfg, agentId });
}
export function canonicalizeMainSessionAlias(params: {
cfg?: { session?: { scope?: SessionScope; mainKey?: string } };
agentId: string;