mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-24 19:35:28 -06:00
6f29fc88e9
* refactor(sessions): migrate pure readers to read-only session accessors * test(sessions): teach mocks and declarations the read-only accessors * test(sessions): align remaining harnesses with read-only accessors
18 lines
717 B
TypeScript
18 lines
717 B
TypeScript
/** Runtime-only dispatch dependencies shared by config-driven reply delivery. */
|
|
/** Runtime-only dispatch dependencies shared by config-driven reply delivery. */
|
|
import { loadSessionEntryReadOnly } from "../../config/sessions/session-accessor.js";
|
|
import type { SessionEntry } from "../../config/sessions/types.js";
|
|
|
|
export { resolveStorePath } from "../../config/sessions/paths.js";
|
|
export { createInternalHookEvent, triggerInternalHook } from "../../hooks/internal-hooks.js";
|
|
|
|
export function loadSessionStoreEntry(params: {
|
|
agentId?: string;
|
|
storePath: string;
|
|
sessionKey: string;
|
|
readConsistency?: "latest";
|
|
clone?: boolean;
|
|
}): SessionEntry | undefined {
|
|
return loadSessionEntryReadOnly(params);
|
|
}
|