eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
12 lines (11 loc) • 995 B
TypeScript
import type { InputRequest, InputResponse } from "#shared/input.js";
import type { PendingInputBatch } from "#harness/pending-input-batches.js";
import type { InputDomainResolverInput, ResolvedInputActionBatch, ResolvePendingInputResult } from "#harness/hitl/pending-input-resolution.js";
import type { HarnessSession } from "#harness/types.js";
export type RejectedActionBatch = ResolvedInputActionBatch;
export declare function findAnsweredApprovalBatches(batches: readonly PendingInputBatch[], responses: readonly InputResponse[]): PendingInputBatch[];
export declare function resolveApprovalInputBatches(input: InputDomainResolverInput & {
readonly resolveApprovalKey?: (request: InputRequest) => string | undefined;
}): ResolvePendingInputResult;
/** Returns recorded approval keys that have no matching request still pending. */
export declare function getApprovedTools(session: HarnessSession, resolveApprovalKey?: (request: InputRequest) => string | undefined): ReadonlySet<string>;