import type { ExecutionHostConversationTurnRequest, ExecutionHostHeartbeatTaskRequest, ExecutionHostModelCredential, ExecutionScope, RuntimePublicResult } from '../../contracts/index.js'; import type { VerifiedExecutionHostMcpCapability } from '../types.js'; type RuntimeExecutionStreamEnvelope = { runId: string; sequence: number; timestamp: string; }; /** Ordered execution events exposed by any workflow executor. */ export type RuntimeExecutionStreamItem = (RuntimeExecutionStreamEnvelope & { kind: 'activity'; activity: unknown; }) | (RuntimeExecutionStreamEnvelope & { kind: 'result'; result: Result; }) | (RuntimeExecutionStreamEnvelope & { kind: 'cancelled'; reason: string; }) | (RuntimeExecutionStreamEnvelope & { kind: 'error'; error: { code: string; message: string; }; }); export type RuntimeInvocationRequest = ExecutionHostConversationTurnRequest | ExecutionHostHeartbeatTaskRequest; export type RuntimeExecutionInput = { /** Verified product identity forwarded unchanged from host admission. */ scope: Readonly; scopeKey: string; executionSessionId: string; request: Request; modelCredential: ExecutionHostModelCredential; mcpCapability?: VerifiedExecutionHostMcpCapability; abortSignal: AbortSignal; }; export type RuntimeExecutionHandle = { runId: string; result: Promise; events(options?: { signal?: AbortSignal; }): AsyncIterable>; cancel(): boolean; }; /** Outbound execution port for one provider-neutral workflow. */ export type RuntimeWorkflowExecutor = { start(input: RuntimeExecutionInput): Promise>; }; export type RuntimeWorkflowExecutors = { conversationTurn: RuntimeWorkflowExecutor; heartbeatTask: RuntimeWorkflowExecutor; }; export type RuntimeInvocationHandle = { runId: string; acceptedAt: string; events(): AsyncIterable>; cancel(): boolean; result: Promise; }; export type RuntimeSessionConfig = { maxInvocationMs: number; }; export {}; //# sourceMappingURL=types.d.ts.map