Skip to content

v0.4.0 — Toggle resources from the dashboard

Choose a tag to compare

@NikiforovAll NikiforovAll released this 20 May 07:19
· 3 commits to main since this release

✨ 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 canonical pi config TUI behavior — including package-scoped overrides (+pattern / -pattern inside settings.packages[]).
  • Surface package-scoped disabled resources. Disabled items inside an npm package (e.g. npm:context-mode skills) 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 pi badge 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