@prismshadow/penguin-library-trace · library/trace/src/harness-history.ts:41

HarnessHistoryIface

interface

No JSDoc comment in source yet.

API

@Interface("@prismshadow/penguin-server#HarnessHistoryIface")
export abstract class HarnessHistoryIface {
  abstract list(): Promise<HarnessHistory>;
  abstract table(hash: string): Promise<unknown | null>;
  abstract rollback(id: string): Promise<boolean>;
}

Contract Topology

Static AST wiring across @Module / @Provide / @Use
@Useconsumed by (1)

Members (3)

list

list(): Promise<HarnessHistory>

The recorded versions, newest first, with the runtime's current commit and the last rollback that failed.

@returnsPromise<HarnessHistory>

table

table(hash: string): Promise<unknown | null>

A recorded interface table by hash, or null.

@paramhashstring
@returnsPromise<unknown | null>

rollback

rollback(id: string): Promise<boolean>

Pushes a kept version back through the runtime's own upgrade channel. Resolves true once the runtime has taken it (this platform is then being replaced); false when this platform kept no artifacts for that id; throws when the runtime refused, after recording the refusal for list().

@paramidstring
@returnsPromise<boolean>