mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 12:21:24 +00:00
13 lines
415 B
TypeScript
13 lines
415 B
TypeScript
import { createSessionManagerRuntimeRegistry } from "./session-manager-runtime-registry.js";
|
|
|
|
export type CompactionSafeguardRuntimeValue = {
|
|
maxHistoryShare?: number;
|
|
contextWindowTokens?: number;
|
|
};
|
|
|
|
const registry = createSessionManagerRuntimeRegistry<CompactionSafeguardRuntimeValue>();
|
|
|
|
export const setCompactionSafeguardRuntime = registry.set;
|
|
|
|
export const getCompactionSafeguardRuntime = registry.get;
|