histoire
Version:
A fast story book powered by Vite
10 lines • 720 B
TypeScript
import type { UiMcpOperationInfo } from '@histoire/shared';
/** Leave room for client metadata, transport configuration and omission counts. */
export declare const MCP_UI_ACTIVITY_BYTES: number;
/** Existing execution admission reserves room independently of observed reads. */
export declare const MCP_UI_EXECUTION_BYTES: number;
/** Observation may omit reads, but never block the read itself or its execution lane. */
export declare const MCP_UI_READ_BYTES: number;
/** Keep admitted active operations; evict oldest terminal calls by count and UTF-8 bytes. */
export declare function trimMcpHistory<T>(history: Map<string, T>, project: (entry: T) => UiMcpOperationInfo): number;
//# sourceMappingURL=history.d.ts.map