UNPKG

eve

Version:

Filesystem-first framework for durable backend AI agents that run anywhere.

13 lines (12 loc) 959 B
import type { SendTurnPayload } from "#client/types.js"; import { type MessageStreamEvent } from "#protocol/message.js"; import type { UserContent } from "ai"; export declare function isSettledSessionTail(events: readonly MessageStreamEvent[]): boolean; export declare function collectPendingAuthorizations(events: readonly MessageStreamEvent[]): Set<string>; export declare function updatePendingAuthorizations(pending: Set<string>, event: MessageStreamEvent): void; export declare function assertExclusiveTurnInput(input: SendTurnPayload): void; export declare function createSubmissionId(): string; export declare function createAbortSignal(first: AbortSignal | undefined, second: AbortSignal): AbortSignal; export declare function summarizeUserContent(message: string | UserContent): string; export declare function isAbortError(error: unknown): boolean; export declare function toTerminalStreamFailureError(event: MessageStreamEvent): Error | undefined;