@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
10 lines • 657 B
TypeScript
import type { AgentMessage } from "@earendil-works/pi-agent-core";
/** Bound normalized JSON before estimating tokens or replaying provider state. */
export declare function isSafeBoundedValue(value: unknown, seen?: Set<object>, depth?: number): boolean;
/**
* #3060: a fallback projects the same JSON as the session writer, then omits unsafe
* payloads rather than poisoning every suffix containing them. The positional
* mapping is preserved so SessionManager can carry entry provenance onto copies.
*/
export declare function projectRetainedMessages(messages: AgentMessage[]): AgentMessage[];
//# sourceMappingURL=retained-message-projection.d.ts.map