mirror of
https://github.com/bitbaum/openclaw.git
synced 2026-12-04 05:30:11 +01:00
* fix(release): resume failed FRV child attempts * fix(release): harden FRV continuation controller * fix(release): bind FRV continuation source evidence * fix(release): support historical FRV source evidence * fix(release): bind historical FRV source inputs * fix(release): bind historical FRV source evidence * fix(release): preserve historical FRV source identity * fix(release): align FRV continuation CI checks * fix(release): disable fail-fast for FRV continuations * test(release): align FRV fail-fast expectation * fix(release): classify missing FRV artifacts centrally * fix(release): recover FRV state from workflow artifacts * fix(release): overwrite recovered FRV plan artifact * docs(release): clarify FRV plan recovery * fix(release): harden FRV continuation recovery * fix(release): revalidate FRV tooling ref before dispatch * fix(release): authenticate historical FRV plans * fix(release): fail FRV when temporary ref cleanup fails * test(ci): update FRV workflow routing expectations * fix(release): declare FRV workflow ref helper * fix(release): keep FRV recovery on the same parent * fix(release): verify original dispatch on parent recovery
63 lines
2.0 KiB
TypeScript
63 lines
2.0 KiB
TypeScript
export interface FrvChildStatus extends Record<string, unknown> {
|
|
effectiveRunAttempt: number;
|
|
key: string;
|
|
plannedRunAttempt: number;
|
|
runId: string;
|
|
status: string;
|
|
}
|
|
|
|
export interface FrvContinuationStatus {
|
|
active: FrvChildStatus[];
|
|
children: FrvChildStatus[];
|
|
failed: FrvChildStatus[];
|
|
passed: FrvChildStatus[];
|
|
}
|
|
|
|
export interface FrvClient {
|
|
repository?: string;
|
|
getAttemptJobs: (runId: string, runAttempt: number) => Promise<Record<string, unknown>[]>;
|
|
getJobLog: (jobId: number) => Promise<string>;
|
|
getParentJobs: (runId: string) => Promise<Record<string, unknown>[]>;
|
|
getRun: (runId: string) => Promise<Record<string, unknown>>;
|
|
getRunAttempt: (runId: string, runAttempt: number) => Promise<Record<string, unknown>>;
|
|
rerunFailed?: (runId: string) => Promise<unknown>;
|
|
rerunParent?: (runId: string) => Promise<unknown>;
|
|
verify?: (
|
|
runId: string,
|
|
plan: Record<string, unknown>,
|
|
operationDeadline?: number,
|
|
) => Promise<unknown>;
|
|
}
|
|
|
|
export type FrvConcreteClient = FrvClient &
|
|
Required<Pick<FrvClient, "rerunFailed" | "rerunParent" | "verify">>;
|
|
|
|
export function inspectContinuation(
|
|
plan: Record<string, unknown>,
|
|
client: Pick<FrvClient, "getAttemptJobs" | "getRun" | "repository">,
|
|
): Promise<FrvContinuationStatus>;
|
|
export function createClient(
|
|
repository: string,
|
|
dependencies?: Record<string, unknown>,
|
|
): FrvConcreteClient;
|
|
export function preflightContinuation(
|
|
plan: Record<string, unknown>,
|
|
rootRunId: string,
|
|
client: Pick<FrvClient, "getJobLog" | "getParentJobs" | "getRunAttempt">,
|
|
repository?: string,
|
|
): Promise<Record<string, unknown>>;
|
|
export function loadPlan(
|
|
options: Record<string, unknown>,
|
|
loadExecutionPlan?: (...args: unknown[]) => Promise<unknown>,
|
|
): Promise<Record<string, unknown>>;
|
|
export function continueFailed(
|
|
plan: Record<string, unknown>,
|
|
rootRunId: string,
|
|
client: FrvClient,
|
|
options?: Record<string, unknown>,
|
|
): Promise<{
|
|
action: string;
|
|
finalRunId?: string;
|
|
status: FrvContinuationStatus;
|
|
}>;
|