mirror of
https://github.com/getpaseo/paseo.git
synced 2026-12-01 12:46:55 +00:00
Plugins can open, focus, move and close a workspace's panes and tabs, show or hide the Explorer, and read the layout, through a handle available in components, the client entry and commands. Requires Paseo 0.18.3 or later. `openPanel` is deprecated and behaves as before. Tab closing moved out of the workspace screen into `@/workspace-tabs/close`, so plugin and UI closes share the same unsaved-work and destructive prompts. Also fixes two problems a plugin's arrangement could reach: a chat in a phone's Explorer overlay never loaded, and a sheet from a hidden workspace was presented over the workspace on screen. Includes two test-only repairs for CI failures outside this change: an ACP interrupt test with a too-short grace period, and a terminal lifecycle test whose failure message carried no daemon output.
Workspace layout plugin example
Three features that read and arrange a workspace's panes and tabs.
paseo plugin add /absolute/path/to/paseo/plugin-examples/workspace-layout
/aside <message>in an agent's composer starts a child agent and opens its chat as a tab in the Explorer (client/aside.ts).- Review layout in the Command Center puts the agent's chat on the left and a review panel on
the right, with Diff and Findings ready (
client/review.tsx). The findings are the repository'sTODOandFIXMElines. - Show outline in the Command Center opens an Explorer panel with the Markdown headings of the
focused file (
client/outline.tsx).
index.server.ts and server/files.ts read the files: the plugin SDK has no file read.