Перейти к основному содержимому

Interface: WorkerLimits

Defined in: packages/plugin-sdk/src/kernel/limits.ts:8

Plugin SDK revision-4 kernel: programmatic limits (invariant 7).

Every limit is a policy default the host can lower per installation; the SDK never hardcodes a number in docs alone — plugins read api.limits.

Properties

maxBundleBytes

maxBundleBytes: number

Defined in: packages/plugin-sdk/src/kernel/limits.ts:13

Entry bundle cap enforced on the host asset fetch and in the sandbox.


maxInstances

maxInstances: number

Defined in: packages/plugin-sdk/src/kernel/limits.ts:9


maxMessageBytes

maxMessageBytes: number

Defined in: packages/plugin-sdk/src/kernel/limits.ts:11


maxModuleDataUrlBytes

maxModuleDataUrlBytes: number

Defined in: packages/plugin-sdk/src/kernel/limits.ts:21

Cap for .mjs worker bundles, which ride data: URLs inside the opaque sandbox (blob: module workers cannot resolve their entry across opaque origins; ADR-0018). Chromium rejects data: scripts above ~2 MiB, so the module cap sits at 1.5 MiB while classic .js entries keep the full maxBundleBytes over blob:.


memoryMiB

memoryMiB: number

Defined in: packages/plugin-sdk/src/kernel/limits.ts:10