onStart(ctx) and onStop(ctx) receive a single ctx object: the plugin’s scoped gateway to shell infrastructure, live flight state, and the pilot. Each accessor is documented on its own page below.
Services
| Accessor | What it does |
|---|---|
ctx.logger | Scoped logging, prefixed with your plugin ID |
ctx.config | Persistent key-value store, namespaced to your plugin |
ctx.ipc | Register IPC handlers and push messages to the renderer |
ctx.auth | Read-only auth state (token, isAuthenticated) |
ctx.airline | The bound airline + a refresh-aware HTTP client |
ctx.database | Per-plugin SQLite database |
ctx.server | Mount Express routes on the shell’s local server |
Flight & Pilot
| Accessor | What it does |
|---|---|
ctx.flight | Live flight state, subscriptions, the flight log, and start guards |
ctx.notify | Fire-and-forget toasts and sounds |
ctx.dialog | Blocking acknowledgement / confirmation dialogs |
ctx.prompt | Blocking prompts that return a value the pilot enters |