Skip to content

PluginContext

Defined in: plugins/holocron-plugin-turbo/src/index.ts:33

What the plugin’s capability and probe share: the options, the team and a lazily built client.

client: () => object

Defined in: plugins/holocron-plugin-turbo/src/index.ts:41

Builds the client on first call and reuses it; the token is resolved then, not at plugin load.

object

cache: object

status: (team) => Promise<TurboCacheStatus>

string

Promise<TurboCacheStatus>

token: object

current: () => Promise<TurboTokenResponse>

Promise<TurboTokenResponse>


options: TurboPluginOptions

Defined in: plugins/holocron-plugin-turbo/src/index.ts:35

The options the plugin was created with.


team: () => string | undefined

Defined in: plugins/holocron-plugin-turbo/src/index.ts:37

The configured team, read when called: the option, then HOLOCRON_TURBO_TEAM / TURBO_TEAM; undefined when none.

string | undefined


token: () => string

Defined in: plugins/holocron-plugin-turbo/src/index.ts:39

The resolved token; throws an AuthError when none is set.

string