v0.4.0 — Toggle resources from the dashboard
✨ Features
- Enable/disable skills and prompts from the dashboard. A Toggle button appears on skill/prompt detail panes. Changes are persisted via the pi SDK (
SettingsManager+DefaultPackageManager), mirroring the canonicalpi configTUI behavior — including package-scoped overrides (+pattern/-patterninsidesettings.packages[]). - Surface package-scoped disabled resources. Disabled items inside an npm package (e.g.
npm:context-modeskills) now appear in the tree, not just top-level disables. - Pending state with restart hint. Resources that are resolved-enabled but not yet in pi's boot-frozen command map render with an orange
restart pibadge so a freshly enabled skill doesn't appear to vanish. - Disabled prompts render under Prompts (previously lumped under Commands).
🛠 How it works
UI → POST /api/toggle → server writes a request file to ~/.pi/agent/inspect/requests/ → extension watches the dir via fs.watch, processes the toggle through the SDK, then re-captures the snapshot and broadcasts via SSE.
⚠️ Notes
- Settings changes don't fully take effect until pi is fully restarted —
pi.getCommands()is loaded once at session boot. The pending badge makes this visible.
Full diff: v0.3.0...v0.4.0