eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
10 lines (9 loc) • 820 B
TypeScript
import type { RunInput, SessionAuthContext } from "#channel/types.js";
import { INVOCATION_OWNER_ATTRIBUTE, INVOCATION_TOKEN_ATTRIBUTE } from "#internal/invocation/attributes.js";
export { INVOCATION_OWNER_ATTRIBUTE, INVOCATION_TOKEN_ATTRIBUTE };
export type ExternalInvocationMetadata = NonNullable<RunInput["externalInvocation"]>;
/** Batch-scoped request id exposed to MCP clients for one durable pending-input event. */
export declare function invocationInputRequestId(pendingBatchId: string, requestId: string): string;
/** Fixed-width fingerprint used to bind an invocation to its initiating principal. */
export declare function invocationOwnerKey(auth: SessionAuthContext | null): string;
export declare function buildInvocationAttributes(metadata: ExternalInvocationMetadata): Readonly<Record<string, string>>;