Skip to main content

Variable: PluginRuntimeStreamCreditBodySchema

const PluginRuntimeStreamCreditBodySchema: TObject<{ bytes: TInteger; requestId: TString; workerEpoch: TInteger; workerId: TInteger; }>

Defined in: packages/contracts/src/pluginRuntime.ts:1045

§17 credit streams: consumer credit grant (worker -> host via the runtime). The worker grants bytes of new credit after consuming a chunk; the host producer never creates the next chunk without a free window. Travels as an app-level BRIDGE_MESSAGE with kind: 'rpc-stream-credit'; the runtime relays it opaque and the host client consumes it without re-emitting it as an app-level bridge message.