Seed Bible extension API (v1.18.0) / seed-bible/extensions / SandboxExtensionDefinition
Interface: SandboxExtensionDefinition
What defineExtension takes.
Properties
main?
main?: (sb: SandboxContext) => void | Promise<void>;Runs once in the extension's hidden background frame when it starts: register tools and providers here. If it throws, the extension fails to start. Don't wait on the user in it.
Parameters
| Parameter | Type |
|---|---|
sb | SandboxContext |
Returns
void | Promise<void>
views?
views?: Record<string, (props: SandboxViewProps) => ComponentChild>;The UI for each pane, dialog or settings panel the extension shows, by name. Each renders in its own frame, with the app's theme and fonts applied, and is destroyed when it closes. Styles must come from the bundle (inline, or CSS imported with ?inline).