@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
22 lines • 947 B
TypeScript
import { AsyncLocalStorage } from "node:async_hooks";
import type { AgentSessionEvent } from "../../core/agent-session.ts";
export declare const clientInputContext: AsyncLocalStorage<Readonly<{
clientMessageId?: string | undefined;
clientTurnId?: string | undefined;
}>>;
/** The record kinds that carry the active client correlation, so one without it answers no client message. */
export declare function correlatedRecord(record: object): boolean;
/** Resolve a turn's input metadata without changing the order of its event prefix. */
export declare class ClientMessageEvents {
private prefix;
private inputs;
private active;
private sawUser;
private readonly emit;
private readonly enabled;
constructor(emit: (event: object) => void, enabled: () => boolean);
accept<T extends AgentSessionEvent>(event: T): void;
private flush;
private output;
}
//# sourceMappingURL=client-message-events.d.ts.map