mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-28 05:16:23 -06:00
fix(state): preserve doctor import TTL
This commit is contained in:
committed by
Josh Avant
parent
d25e89d1ee
commit
505d7b9f52
@@ -59,10 +59,10 @@ export type PluginDoctorStateMigrationDetection = {
|
||||
|
||||
export type PluginDoctorStateMigrationContext = {
|
||||
openPluginStateKeyedStore: <T>(options: OpenKeyedStoreOptions) => PluginStateKeyedStore<T>;
|
||||
/** Doctor-only batch import preserving source age for retention ordering. */
|
||||
/** Doctor-only batch import preserving source age and remaining retention. */
|
||||
importPluginStateEntries?: (
|
||||
options: OpenKeyedStoreOptions,
|
||||
entries: readonly { key: string; value: unknown; createdAt: number }[],
|
||||
entries: readonly { key: string; value: unknown; createdAt: number; ttlMs?: number }[],
|
||||
) => void;
|
||||
/** Plugin-wide live-row capacity for import preflight. Older test hosts may omit it. */
|
||||
getPluginStateCapacity?: () => { liveEntries: number; maxEntries: number };
|
||||
|
||||
Reference in New Issue
Block a user