Files
openclaw/src/plugin-sdk/memory-core-host-runtime-core.ts
Tak Hoffman f74983e442 fix(memory): preserve active recall tool agent context (#76380)
Summary:
- The PR threads the embedded run's trusted requester agent id into plugin tool context and memory-core tool availability/execution, adds regression tests, and records an Active Memory changelog fix.
- Reproducibility: yes. Current main shows Active Memory passing a synthetic `:active-memory:` session key plu ... ently derive memory scope from the session key; I did not run the regression test in this read-only review.

Automerge notes:
- No ClawSweeper repair was needed after automerge opt-in.

Validation:
- ClawSweeper review passed for head 33ab3d7fc7.
- Required merge gates passed before the squash merge.

Prepared head SHA: 33ab3d7fc7
Review: https://github.com/openclaw/openclaw/pull/76380#issuecomment-4365186657

Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
2026-05-03 02:16:48 +00:00

48 lines
1.8 KiB
TypeScript

export * from "../../packages/memory-host-sdk/src/runtime-core.js";
export { DEFAULT_PI_COMPACTION_RESERVE_TOKENS_FLOOR } from "../agents/pi-settings.js";
export {
asToolParamsRecord,
jsonResult,
readNumberParam,
readStringParam,
type AnyAgentTool,
} from "../agents/tools/common.js";
export { resolveCronStyleNow } from "../agents/current-time.js";
export {
resolveDefaultAgentId,
resolveSessionAgentId,
resolveSessionAgentIds,
} from "../agents/agent-scope.js";
export { resolveMemorySearchConfig } from "../agents/memory-search.js";
export { parseNonNegativeByteSize } from "../config/byte-size.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,
MemoryCorpusSearchResult,
MemoryCorpusSupplement,
MemoryCorpusSupplementRegistration,
MemoryFlushPlan,
MemoryFlushPlanResolver,
MemoryPluginCapability,
MemoryPluginPublicArtifact,
MemoryPluginPublicArtifactsProvider,
MemoryPluginRuntime,
MemoryPromptSectionBuilder,
} from "../plugins/memory-state.js";
export {
buildMemoryPromptSection as buildActiveMemoryPromptSection,
clearMemoryPluginState,
getMemoryCapabilityRegistration,
listActiveMemoryPublicArtifacts,
listMemoryCorpusSupplements,
registerMemoryCapability,
registerMemoryCorpusSupplement,
} from "../plugins/memory-state.js";
export type { OpenClawPluginApi } from "../plugins/types.js";
export { parseAgentSessionKey } from "../routing/session-key.js";