Sessions: move session target shaping to plugins

This commit is contained in:
Gustavo Madeira Santana
2026-03-18 02:41:52 +00:00
parent 44521d6b20
commit b942dacf48
5 changed files with 116 additions and 13 deletions

View File

@@ -382,6 +382,11 @@ export type ChannelThreadingToolContext = {
export type ChannelMessagingAdapter = {
normalizeTarget?: (raw: string) => string | undefined;
resolveSessionTarget?: (params: {
kind: "group" | "channel";
id: string;
threadId?: string | null;
}) => string | undefined;
parseExplicitTarget?: (params: { raw: string }) => {
to: string;
threadId?: string | number;