fix: recover and fence atomic activation

This commit is contained in:
2026-09-02 11:49:49 +03:00
parent 79e5d04395
commit a8fa09e21e
12 changed files with 1733 additions and 543 deletions

View File

@@ -3,11 +3,17 @@ export interface BuildReleaseInput {
signedManifestPath: string;
sbomPath: string;
outputPath: string;
verifierModulePath: string;
trustPolicyPath: string;
authorityRoot: string;
protectedState: Record<string, unknown>;
}
export interface BuildReleaseTestInput extends Omit<
BuildReleaseInput,
"authorityRoot"
> {
trustPolicyPath: string;
now: string;
verifySignedReleaseEnvelope?: (input: any) => any;
verifySignedReleaseEnvelope: (input: any) => unknown;
}
export function buildReleasePackage(input: BuildReleaseInput): Promise<{
@@ -15,3 +21,6 @@ export function buildReleasePackage(input: BuildReleaseInput): Promise<{
manifestDigest: string;
archivePath: string;
}>;
export function buildReleasePackageForTest(
input: BuildReleaseTestInput,
): ReturnType<typeof buildReleasePackage>;