mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-21 18:08:20 +08:00
feat(ql3): establish 3.0 incubation baseline
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import type { ExecutionContext, ExecutionSpec } from '../domain/execution';
|
||||
import type { RunDispatchCandidate } from '../domain/runDispatchCandidate';
|
||||
|
||||
export interface LocalRunDispatchPlan {
|
||||
executionSpec: ExecutionSpec;
|
||||
context: ExecutionContext;
|
||||
logArtifactId?: string;
|
||||
/** Optional non-blocking cleanup for attempt-scoped local resources. */
|
||||
dispose?: () => void | Promise<void>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Trusted local materializer. Implementations must resolve the pinned Task
|
||||
* revision and create fresh Attempt-scoped output and Secret capabilities.
|
||||
*/
|
||||
export interface LocalRunDispatchPlanSource {
|
||||
prepare(
|
||||
candidate: Readonly<RunDispatchCandidate>,
|
||||
): Promise<LocalRunDispatchPlan | null>;
|
||||
}
|
||||
Reference in New Issue
Block a user