Snapshots: the mechanism SnapshotService implements.
API
@Interface()
export abstract class Snapshots {
abstract currentVersion(projectId: string, agentId: string): Promise<number>;
abstract importArchive(
projectId: string,
agentId: string,
pkg: AgentPackage,
opts: { preSnapshot: boolean },
): Promise<{ version: number; backup?: string }>;
}Contract Topology
Static AST wiring across @Module / @Provide / @UseMembers (2)
currentVersion
currentVersion(projectId: string, agentId: string): Promise<number>@paramprojectId
string@paramagentId
string@returns
Promise<number>importArchive
importArchive(projectId: string, agentId: string, pkg: AgentPackage, opts: { preSnapshot: boolean }): Promise<{ version: number; backup?: string }>@paramprojectId
string@paramagentId
string@parampkg
AgentPackage@paramopts
{ preSnapshot: boolean }@returns
Promise<{ version: number; backup?: string }>