feat(ql3): establish 3.0 incubation baseline

This commit is contained in:
whyour
2026-08-12 00:25:26 +08:00
parent 4bf92dcfeb
commit c699c32461
2817 changed files with 779642 additions and 653 deletions
@@ -0,0 +1,36 @@
import type { ExecutionStopKind, ExecutorType } from '../domain/execution';
export const MAX_PRIMARY_CANCELLATION_BATCH_SIZE = 64;
export interface PrimaryCancellationCursor {
requestedAtMs: number;
runId: string;
}
export interface PrimaryCancellationAttemptReference {
attemptId: string;
executorType: ExecutorType;
executorHandle?: string;
pid?: number;
}
export interface PrimaryCancellationCandidate {
runId: string;
requestedAtMs: number;
reason: ExecutionStopKind;
attempts: readonly PrimaryCancellationAttemptReference[];
}
export interface PrimaryCancellationPage {
candidates: readonly PrimaryCancellationCandidate[];
truncated: boolean;
unsafeAttemptOverflow: boolean;
nextCursor?: PrimaryCancellationCursor;
}
export interface PrimaryCancellationSource {
listCandidates(options?: {
cursor?: PrimaryCancellationCursor;
limit?: number;
}): Promise<PrimaryCancellationPage>;
}