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
+33
View File
@@ -0,0 +1,33 @@
import type { RunAttemptStatus } from '../domain/run';
export class RunCommandError extends Error {
constructor(message: string, public readonly code: string) {
super(message);
this.name = new.target.name;
}
}
export class RunNotFoundError extends RunCommandError {
constructor(public readonly runId: string) {
super('Run does not exist', 'RUN_NOT_FOUND');
}
}
export class RunAttemptNotFoundError extends RunCommandError {
constructor(public readonly attemptId: string) {
super('RunAttempt does not exist', 'RUN_ATTEMPT_NOT_FOUND');
}
}
export class RunAttemptConcurrentWriteError extends RunCommandError {
constructor(
public readonly attemptId: string,
public readonly expectedStatus: RunAttemptStatus,
public readonly expectedCallbackSequence: number,
) {
super(
'RunAttempt changed while applying the command',
'RUN_ATTEMPT_CONCURRENT_WRITE',
);
}
}