@prismshadow/penguin-library-trace · library/trace/src/ports.ts:45

HarnessHistoryRuntime

interface

The runtime's frozen operations, reached in-process (the server's HmrControl capability satisfies it): when the boot's swap is over, and the upgrade endpoint a rollback drives.

API

@Interface()
export abstract class HarnessHistoryRuntime {
  abstract current(): Promise<Instance<Park>>;
  abstract endpoint(request: Request): Promise<Response>;
}

Contract Topology

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

Members (2)

current

current(): Promise<Instance<Park>>

Resolves when the swap that booted this platform is over — the runtime's commit included. The instance's api face is the server's PlatformApi, which stays server-side; the history only waits for the swap, it never reads the tree.

@returnsPromise<Instance<Park>>

endpoint

endpoint(request: Request): Promise<Response>

The runtime's own upgrade endpoint, minus the network: no bind address, scheme gate or token.

@paramrequestRequest
@returnsPromise<Response>