@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
20 lines • 931 B
TypeScript
import type { AgentMessage } from "@earendil-works/pi-agent-core";
import type { AgentEndEvent } from "./extensions/types.ts";
export type AgentAbortSource = NonNullable<AgentEndEvent["abortSource"]>;
export type JoinedAbort = {
readonly abortCurrentAgent: boolean;
readonly userOwned: boolean;
};
export declare class AgentAbortProvenance {
#private;
get hasOpenAgentEndBoundary(): boolean;
get currentSource(): AgentAbortSource | undefined;
begin(source: AgentAbortSource): boolean;
join(source: AgentAbortSource, isStreaming: boolean): JoinedAbort;
beginAgentEnd(messages: AgentMessage[], willRetry: boolean, abortedWithoutSource: boolean): AgentEndEvent;
endAgentEnd(event: AgentEndEvent): void;
takeLateUserJoin(): boolean;
closeAgentEndBoundary(): void;
joinOpenBoundary(source: AgentAbortSource): JoinedAbort | undefined;
}
//# sourceMappingURL=agent-abort-provenance.d.ts.map