mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-26 20:35:39 -06:00
refactor(deadcode): trim memory-core type exports (#106263)
This commit is contained in:
committed by
GitHub
parent
380f6c8086
commit
581cf6601a
@@ -1,14 +1,7 @@
|
||||
// Memory Core plugin entrypoint registers its OpenClaw integration.
|
||||
export { MemoryIndexManager } from "./manager.js";
|
||||
export type {
|
||||
MemoryEmbeddingProbeResult,
|
||||
MemorySearchManager,
|
||||
MemorySearchResult,
|
||||
} from "openclaw/plugin-sdk/memory-core-host-engine-storage";
|
||||
export {
|
||||
closeAllMemorySearchManagers,
|
||||
closeMemorySearchManager,
|
||||
getMemorySearchManager,
|
||||
type MemorySearchManagerPurpose,
|
||||
type MemorySearchManagerResult,
|
||||
} from "./search-manager.js";
|
||||
|
||||
@@ -128,13 +128,13 @@ const loadManagerRuntime = managerRuntimeLoader;
|
||||
|
||||
const loadQmdManagerModule = createLazyRuntimeModule(() => import("./qmd-manager.js"));
|
||||
|
||||
export type MemorySearchManagerResult = {
|
||||
type MemorySearchManagerResult = {
|
||||
manager: Maybe<MemorySearchManager>;
|
||||
error?: string;
|
||||
debug?: MemorySearchManagerDebug;
|
||||
};
|
||||
|
||||
export type MemorySearchManagerPurpose = "default" | "status" | "cli";
|
||||
type MemorySearchManagerPurpose = "default" | "status" | "cli";
|
||||
type MemorySearchManagerParams = {
|
||||
cfg: OpenClawConfig;
|
||||
agentId: string;
|
||||
|
||||
@@ -320,11 +320,6 @@ export const KNIP_UNUSED_EXPORT_BASELINE = [
|
||||
"extensions/memory-core/src/flush-plan.ts: DEFAULT_MEMORY_FLUSH_FORCE_TRANSCRIPT_BYTES",
|
||||
"extensions/memory-core/src/flush-plan.ts: DEFAULT_MEMORY_FLUSH_PROMPT",
|
||||
"extensions/memory-core/src/flush-plan.ts: DEFAULT_MEMORY_FLUSH_SOFT_TOKENS",
|
||||
"extensions/memory-core/src/memory/index.ts: MemoryEmbeddingProbeResult",
|
||||
"extensions/memory-core/src/memory/index.ts: MemorySearchManager",
|
||||
"extensions/memory-core/src/memory/index.ts: MemorySearchManagerPurpose",
|
||||
"extensions/memory-core/src/memory/index.ts: MemorySearchManagerResult",
|
||||
"extensions/memory-core/src/memory/index.ts: MemorySearchResult",
|
||||
"extensions/memory-core/src/memory/manager-cache.ts: ManagedCache",
|
||||
"extensions/memory-core/src/memory/manager-embedding-ops.ts: resolveEmbeddingTimeoutMs",
|
||||
"extensions/memory-core/src/memory/manager-embedding-ops.ts: resolveMemoryIndexConcurrency",
|
||||
@@ -351,8 +346,6 @@ export const KNIP_UNUSED_EXPORT_BASELINE = [
|
||||
"extensions/memory-core/src/memory/qmd-runtime-cache.ts: QMD_RUNTIME_CACHE_COLLECTION_VALIDATION_TTL_MS",
|
||||
"extensions/memory-core/src/memory/qmd-runtime-cache.ts: QMD_RUNTIME_CACHE_MULTI_COLLECTION_PROBE_NAMESPACE",
|
||||
"extensions/memory-core/src/memory/qmd-runtime-cache.ts: QMD_RUNTIME_CACHE_MULTI_COLLECTION_PROBE_TTL_MS",
|
||||
"extensions/memory-core/src/memory/search-manager.ts: MemorySearchManagerPurpose",
|
||||
"extensions/memory-core/src/memory/search-manager.ts: MemorySearchManagerResult",
|
||||
"extensions/memory-core/src/memory/temporal-decay.ts: applyTemporalDecayToScore",
|
||||
"extensions/memory-core/src/memory/temporal-decay.ts: calculateTemporalDecayMultiplier",
|
||||
"extensions/memory-core/src/short-term-promotion.ts: isShortTermMemoryPath",
|
||||
|
||||
Reference in New Issue
Block a user