UNPKG

zephyr-agent

Version:
35 lines • 2.48 kB
import type { ZeBuildAssetsMap } from 'zephyr-edge-contract'; export interface PartialAssetMaps { [partialKey: string]: ZeBuildAssetsMap; } /** Identifies one logical producer/finalizer invocation and its rebuild generation. */ export interface PartialAssetMapScope { invocationId: string; generation: number; } /** An immutable persisted snapshot. Commit or roll it back after publication. */ export interface PartialAssetMapClaim { claimId: string; scope: PartialAssetMapScope; partialAssetMaps: PartialAssetMaps; } /** An all-or-nothing set of claims acquired under one application store lock. */ export interface PartialAssetMapClaimBatch { claims: readonly PartialAssetMapClaim[]; } export declare function savePartialAssetMap(application_uid: string, partial_key: string, assetMap: ZeBuildAssetsMap, scope?: PartialAssetMapScope): Promise<void>; export declare function getPartialAssetMap(application_uid: string, scope?: PartialAssetMapScope): Promise<PartialAssetMaps | undefined>; /** Atomically claim every requested scope, or none when any scope is unavailable. */ export declare function claimPartialAssetMapBatch(application_uid: string, scopes: readonly PartialAssetMapScope[]): Promise<PartialAssetMapClaimBatch | undefined>; /** Atomically mark one invocation/generation snapshot as claimed without deleting it. */ export declare function claimPartialAssetMap(application_uid: string, scope: PartialAssetMapScope): Promise<PartialAssetMapClaim | undefined>; /** Delete only the exact revisions published by a claim; newer writes always survive. */ export declare function commitPartialAssetMapClaimBatch(application_uid: string, claimIds: readonly string[]): Promise<void>; export declare function commitPartialAssetMapClaim(application_uid: string, claimId: string): Promise<void>; /** Release a claim. Contributions were never removed, so rollback cannot overwrite. */ export declare function rollbackPartialAssetMapClaimBatch(application_uid: string, claimIds: readonly string[]): Promise<void>; export declare function rollbackPartialAssetMapClaim(application_uid: string, claimId: string): Promise<void>; /** Legacy destructive API, isolated to the legacy bucket for compatibility. */ export declare function takePartialAssetMap(application_uid: string): Promise<PartialAssetMaps | undefined>; export declare function removePartialAssetMap(application_uid: string): Promise<void>; //# sourceMappingURL=partial-assets-map.d.mts.map