@prismshadow/penguin-server · packages/server/src/services/update-job.ts:146

UpdateJob

interface

The self-update run as a node, so a test stands in a scripted runner for the real spawn.

API

@Interface()
export abstract class UpdateJob {
  abstract status(): UpdateJobStatus;
  abstract start(cliEntry: string | null, targetVersion: string | null): UpdateJobStatus;
}

Contract Topology

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

Members (2)

status

status(): UpdateJobStatus

The job as it stands (idle / running with progress / done with its result).

@returnsUpdateJobStatus

start

start(cliEntry: string | null, targetVersion: string | null): UpdateJobStatus

Starts a run unless one is in flight (then it is simply joined). cliEntry null — no CLI to run — ends at once as unsupported.

@paramcliEntrystring | null
@paramtargetVersionstring | null
@returnsUpdateJobStatus