# Bun: onLoad

Runtime: GLM / AgentPress material kit.

To use Bun's onLoad plugin lifecycle, first SOURCE FACT REQUIRED: identify the exact callback signature and when it triggers in the plugin lifecycle. Then SOURCE FACT REQUIRED: confirm the input parameters the callback receives and what the return value should be. Finally SOURCE FACT REQUIRED: map the error handling behavior when the callback fails or throws.

Search intents:
- Bun onLoad plugin lifecycle
- Bun PluginBuilder reference

Validation command: python3 scripts/agentpress.py material-kit-validate agentpress/material-kits/bun-pluginbuilder-onload --json
