Pular para o conteúdo principal

Interface: DiagnosticsSnapshot

Defined in: packages/plugin-sdk/src/kernel/diagnostics.ts:27

Read-only runtime snapshot a plugin may request about itself.

Properties​

crash?​

optional crash?: object

Defined in: packages/plugin-sdk/src/kernel/diagnostics.ts:44

rev4 §M3: crash-isolation state — present once the host recorded a heartbeat failure (hung/crashed sandbox). restartBudgetLeft counts automatic restarts remaining inside the restart window; 0 means the next failure disables the plugin.

count​

count: number

lastAt​

lastAt: number | null

restartBudgetLeft​

restartBudgetLeft: number


features​

features: Record<string, number>

Defined in: packages/plugin-sdk/src/kernel/diagnostics.ts:35

Host feature registry (api.runtime.supports keys).


grants​

grants: CapabilityGrant[]

Defined in: packages/plugin-sdk/src/kernel/diagnostics.ts:37

Active grants, capped at 64 entries.


instanceId​

instanceId: string

Defined in: packages/plugin-sdk/src/kernel/diagnostics.ts:31

Sandbox session identifier, stable for the lifetime of the frame.


limits​

limits: PluginLimits | null

Defined in: packages/plugin-sdk/src/kernel/diagnostics.ts:33


plugin​

plugin: DiagnosticsPluginInfo

Defined in: packages/plugin-sdk/src/kernel/diagnostics.ts:32


protocolVersion​

protocolVersion: string

Defined in: packages/plugin-sdk/src/kernel/diagnostics.ts:28


sdkVersion​

sdkVersion: string

Defined in: packages/plugin-sdk/src/kernel/diagnostics.ts:29