PluginRuntimeContributions
PluginRuntimeContributions =
object
Defined in: types/plugin-types/index.ts:272
The env/model-dependent half of a plugin’s contributions, produced by
build() (which may be async, e.g. to validate its own config before
building its tool). Every field optional: a plugin may contribute nothing.
postProcess: the result transform for the plugin’s own tool (seeCliPostProcessor). A formatter decorator may wrap it to render a display; the composition then hands the final one tosessionTools(which is why the factory takes it as an argument rather than closing over it — the wrapping happens afterbuild()returns).sessionTools: builds the plugin’s model-facing tools for one turn, given the session context and the plugin’s (possibly decorated) post-processor. This is how a tool reaches the model without the core knowing what it is.toolStatusDescribers: one per tool name the plugin contributes, turning a tool call’s input into the one-line status shown while it runs, in the turn’s person’s language (t) — so the core can label a plugin’s tool without knowing it’s a CLI.postTurnGuards: run over the model’s finished text (seePostTurnGuard).login: how a plugin acting aspersonlogs one in (seePersonLogin).
Properties
Section titled “Properties”login?
Section titled “login?”
optionallogin?:PersonLogin
Defined in: types/plugin-types/index.ts:274
postProcess?
Section titled “postProcess?”
optionalpostProcess?:CliPostProcessor
Defined in: types/plugin-types/index.ts:273
postTurnGuards?
Section titled “postTurnGuards?”
optionalpostTurnGuards?:PostTurnGuard[]
Defined in: types/plugin-types/index.ts:277
sessionTools?
Section titled “sessionTools?”
optionalsessionTools?: (ctx,postProcess?) =>Record<string,Tool>
Defined in: types/plugin-types/index.ts:275
Parameters
Section titled “Parameters”postProcess?
Section titled “postProcess?”Returns
Section titled “Returns”Record<string, Tool>
toolStatusDescribers?
Section titled “toolStatusDescribers?”
optionaltoolStatusDescribers?:Record<string, (input,t) =>string>
Defined in: types/plugin-types/index.ts:276