diff --git a/src/plugin-sdk/memory-core-host-engine-foundation.ts b/src/plugin-sdk/memory-core-host-engine-foundation.ts index 0a7449c7073..b7f28e7599f 100644 --- a/src/plugin-sdk/memory-core-host-engine-foundation.ts +++ b/src/plugin-sdk/memory-core-host-engine-foundation.ts @@ -1,24 +1,56 @@ -export * from "../../packages/memory-host-sdk/src/engine-foundation.js"; export { + CHARS_PER_TOKEN_ESTIMATE, + HEARTBEAT_PROMPT, + HEARTBEAT_TOKEN, + SILENT_REPLY_TOKEN, + getMemoryHostServices, + setMemoryHostServices, + withMemoryHostServices, + type MemoryHostServices, +} from "../../packages/memory-host-sdk/src/engine-foundation.js"; +export { + resolveAgentContextLimits, resolveAgentDir, + resolveAgentWorkspaceDir, resolveDefaultAgentId, resolveSessionAgentId, } from "../agents/agent-scope.js"; export { + resolveMemorySearchConfig, resolveMemorySearchSyncConfig, type ResolvedMemorySearchConfig, type ResolvedMemorySearchSyncConfig, } from "../agents/memory-search.js"; +export { parseDurationMs } from "../cli/parse-duration.js"; export { loadConfig } from "../config/config.js"; +export type { OpenClawConfig } from "../config/config.js"; +export { resolveStateDir } from "../config/paths.js"; export { resolveSessionTranscriptsDirForAgent } from "../config/sessions/paths.js"; export { hasConfiguredSecretInput, normalizeResolvedSecretInputString, + type SecretInput, } from "../config/types.secrets.js"; +export type { SessionSendPolicyConfig } from "../config/types.base.js"; +export type { + MemoryBackend, + MemoryCitationsMode, + MemoryQmdConfig, + MemoryQmdIndexPath, + MemoryQmdMcporterConfig, + MemoryQmdSearchMode, +} from "../config/types.memory.js"; +export type { MemorySearchConfig } from "../config/types.tools.js"; export { writeFileWithinRoot } from "../infra/fs-safe.js"; export { createSubsystemLogger } from "../logging/subsystem.js"; export { detectMime } from "../media/mime.js"; export { onSessionTranscriptUpdate } from "../sessions/transcript-events.js"; export { resolveGlobalSingleton } from "../shared/global-singleton.js"; export { runTasksWithConcurrency } from "../utils/run-with-concurrency.js"; -export { shortenHomeInString, shortenHomePath, truncateUtf16Safe } from "../utils.js"; +export { splitShellArgs } from "../utils/shell-argv.js"; +export { + resolveUserPath, + shortenHomeInString, + shortenHomePath, + truncateUtf16Safe, +} from "../utils.js"; diff --git a/src/plugin-sdk/memory-core-host-runtime-core.ts b/src/plugin-sdk/memory-core-host-runtime-core.ts index 82909c87dad..2e839aeb433 100644 --- a/src/plugin-sdk/memory-core-host-runtime-core.ts +++ b/src/plugin-sdk/memory-core-host-runtime-core.ts @@ -1,4 +1,10 @@ -export * from "../../packages/memory-host-sdk/src/runtime-core.js"; +export { + SILENT_REPLY_TOKEN, + getMemoryHostServices, + setMemoryHostServices, + withMemoryHostServices, + type MemoryHostServices, +} from "../../packages/memory-host-sdk/src/runtime-core.js"; export { DEFAULT_PI_COMPACTION_RESERVE_TOKENS_FLOOR } from "../agents/pi-settings.js"; export { asToolParamsRecord, @@ -9,13 +15,13 @@ export { } from "../agents/tools/common.js"; export { resolveCronStyleNow } from "../agents/current-time.js"; export { resolveDefaultAgentId, resolveSessionAgentId } from "../agents/agent-scope.js"; +export { resolveMemorySearchConfig } from "../agents/memory-search.js"; export { parseNonNegativeByteSize } from "../config/byte-size.js"; -export { - getRuntimeConfig, - /** @deprecated Use getRuntimeConfig(), or pass the already loaded config through the call path. */ - loadConfig, -} from "../config/config.js"; +export { getRuntimeConfig, loadConfig } from "../config/config.js"; +export type { OpenClawConfig } from "../config/config.js"; +export { resolveStateDir } from "../config/paths.js"; export { resolveSessionTranscriptsDirForAgent } from "../config/sessions/paths.js"; +export type { MemoryCitationsMode } from "../config/types.memory.js"; export { emptyPluginConfigSchema } from "../plugins/config-schema.js"; export type { MemoryCorpusGetResult,