mirror of
https://github.com/openclaw/openclaw.git
synced 2026-10-03 17:53:39 +00:00
Join signal-aware artifact waits and release ownership won after cancellation. Preserve the published updater native wait contract. Validated cancellation races, published updater lock handoff, and exact-head CI.
16 lines
481 B
TypeScript
16 lines
481 B
TypeScript
// Shared callable contract for compiled callers loading source-checkout writers.
|
|
type PreparedBundledPluginRuntime = {
|
|
changed: boolean;
|
|
publish(assertCurrent: () => void | Promise<void>): Promise<void>;
|
|
cleanup(): Promise<void>;
|
|
};
|
|
|
|
export type PrepareBundledPluginRuntime = (params: {
|
|
repoRoot: string;
|
|
}) => PreparedBundledPluginRuntime;
|
|
|
|
export type WithDistArtifactOwnership = <T>(
|
|
rootDir: string,
|
|
run: () => Promise<T>,
|
|
signal?: AbortSignal,
|
|
) => Promise<T>;
|