





















@@ -68,7 +68,7 @@ type ActiveRecallPluginConfig = {
6868model?: string;
6969modelFallback?: string;
7070modelFallbackPolicy?: "default-remote" | "resolved-only";
71-allowedChatTypes?: Array<"direct" | "group" | "channel">;
71+allowedChatTypes?: Array<"direct" | "group" | "channel" | "explicit">;
7272allowedChatIds?: string[];
7373deniedChatIds?: string[];
7474thinking?: ActiveMemoryThinkingLevel;
@@ -105,7 +105,7 @@ type ResolvedActiveRecallPluginConfig = {
105105model?: string;
106106modelFallback?: string;
107107modelFallbackPolicy: "default-remote" | "resolved-only";
108-allowedChatTypes: Array<"direct" | "group" | "channel">;
108+allowedChatTypes: Array<"direct" | "group" | "channel" | "explicit">;
109109allowedChatIds: string[];
110110deniedChatIds: string[];
111111thinking: ActiveMemoryThinkingLevel;
@@ -176,7 +176,7 @@ type CachedActiveRecallResult = {
176176result: ActiveRecallResult;
177177};
178178179-type ActiveMemoryChatType = "direct" | "group" | "channel";
179+type ActiveMemoryChatType = "direct" | "group" | "channel" | "explicit";
180180181181type ActiveMemoryToggleStore = {
182182sessions?: Record<string, { disabled?: boolean; updatedAt?: number }>;
@@ -643,7 +643,7 @@ function normalizePluginConfig(pluginConfig: unknown): ResolvedActiveRecallPlugi
643643const allowedChatTypes = Array.isArray(raw.allowedChatTypes)
644644 ? raw.allowedChatTypes.filter(
645645(value): value is ActiveMemoryChatType =>
646-value === "direct" || value === "group" || value === "channel",
646+value === "direct" || value === "group" || value === "channel" || value === "explicit",
647647)
648648 : [];
649649return {
@@ -913,6 +913,9 @@ function resolveChatType(ctx: {
913913}): ActiveMemoryChatType | undefined {
914914const sessionKey = ctx.sessionKey?.trim().toLowerCase();
915915if (sessionKey) {
916+if (sessionKey.startsWith("agent:") && sessionKey.split(":")[2] === "explicit") {
917+return "explicit";
918+}
916919if (sessionKey.includes(":group:")) {
917920return "group";
918921}
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。