mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 02:10:21 +00:00
refactor: simplify cli conversions
This commit is contained in:
@@ -372,8 +372,9 @@ export function resolveMemoryBackendConfig(params: {
|
||||
const mergedExtraCollections = [
|
||||
...(params.cfg.agents?.defaults?.memorySearch?.qmd?.extraCollections ?? []),
|
||||
...(agentEntry?.memorySearch?.qmd?.extraCollections ?? []),
|
||||
].filter((value): value is MemoryQmdIndexPath =>
|
||||
Boolean(value && typeof value === "object" && typeof value.path === "string"),
|
||||
].filter(
|
||||
(value): value is MemoryQmdIndexPath =>
|
||||
value !== null && typeof value === "object" && typeof value.path === "string",
|
||||
);
|
||||
|
||||
// Combine QMD-specific paths with extraPaths and per-agent cross-agent collections.
|
||||
|
||||
Reference in New Issue
Block a user