@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
12 lines • 880 B
TypeScript
export type GuardLogEvent = "breadcrumb_ignored" | "marker_newer" | "call_bound_reached";
/** The log rotates once to `<file>.1` before it would pass this size, so it holds at most about twice this. */
export declare const MAX_GUARD_LOG_BYTES: number;
export declare function guardLogPath(): string;
/**
* One JSON line per distinct event and reason, written asynchronously and in order (senpi#2898): the guard runs on the
* session loop, so it never writes synchronously, and nothing about logging (not even computing where the log lives)
* can throw into the caller; a failure only loses diagnostics. A `count` detail does not make an event distinct.
*/
export declare function logGuardEvent(level: "debug" | "warn", event: GuardLogEvent, details: Record<string, string>): void;
export declare function flushGuardLog(): Promise<void>;
//# sourceMappingURL=guard-log.d.ts.map