mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-20 16:07:11 +08:00
22 lines
738 B
TypeScript
22 lines
738 B
TypeScript
import type { ExecutionContext } from '../domain/execution';
|
|
import type { RunDispatchCandidate } from '../domain/runDispatchCandidate';
|
|
|
|
export interface LocalExecutionContextRequest {
|
|
candidate: Readonly<RunDispatchCandidate>;
|
|
contextRef: string;
|
|
}
|
|
|
|
export interface MaterializedLocalExecutionContext {
|
|
context: ExecutionContext;
|
|
/** Opaque bounded reference persisted on the Attempt before spawn. */
|
|
logArtifactId?: string;
|
|
/** Optional non-blocking cleanup; plaintext capability values must not leak. */
|
|
dispose?: () => void | Promise<void>;
|
|
}
|
|
|
|
export interface LocalExecutionContextMaterializer {
|
|
prepare(
|
|
request: Readonly<LocalExecutionContextRequest>,
|
|
): Promise<MaterializedLocalExecutionContext | null>;
|
|
}
|