chore: apply formatter

This commit is contained in:
Vignesh Natarajan
2026-02-02 20:45:58 -08:00
committed by Vignesh
parent edd6289f26
commit 9bef525944
10 changed files with 49 additions and 29 deletions

View File

@@ -1,14 +1,13 @@
import { Type } from "@sinclair/typebox";
import type { MoltbotConfig } from "../../config/config.js";
import type { MemoryCitationsMode } from "../../config/types.memory.js";
import type { MemorySearchResult } from "../../memory/types.js";
import type { AnyAgentTool } from "./common.js";
import { resolveMemoryBackendConfig } from "../../memory/backend-config.js";
import { getMemorySearchManager } from "../../memory/index.js";
import type { MemorySearchResult } from "../../memory/types.js";
import { parseAgentSessionKey } from "../../routing/session-key.js";
import { resolveSessionAgentId } from "../agent-scope.js";
import { resolveMemorySearchConfig } from "../memory-search.js";
import type { AnyAgentTool } from "./common.js";
import { jsonResult, readNumberParam, readStringParam } from "./common.js";
const MemorySearchSchema = Type.Object({
@@ -200,10 +199,7 @@ function deriveChatTypeFromSessionKey(sessionKey?: string): "direct" | "group" |
if (!parsed?.rest) {
return "direct";
}
const tokens = parsed.rest
.toLowerCase()
.split(":")
.filter(Boolean);
const tokens = parsed.rest.toLowerCase().split(":").filter(Boolean);
if (tokens.includes("channel")) {
return "channel";
}