Repository navigation
Replies: 2 comments
|
I opened a PR with a working version: #9602. It adds Here are real screenshots from the example plugin in the PR (fictional data, web only):
Happy to change the API shape if you'd rather it look different. |
|
shipped in #9602 as |
Uh oh!
There was an error while loading. Please reload this page.
The plugin API is great at changing Paseo's built-in views in place: timeline transformers and renderers, sidebar views and items, panels, composer pills, themes, and putting text in a composer. What a plugin can't do is show a built-in view somewhere else. This proposal starts with the agent timeline, the view plugins most often end up rebuilding.
Mockup: a plugin screen with its own list of agents on the left, and on the right the selected agent's timeline as Paseo draws it, with a plain message box. The timeline is real 0.16 rendering placed into the plugin's pane; the hidden composer controls are a preview of the proposed API. All names are made up.
What are you trying to do?
We build plugins that watch and steer many agents from one screen. Follow-up has an "Overseer" view: a list of workspaces and agents, and next to it the chat of the agent you picked. Kontor (#7672) does the same with a few hundred sessions.
The right side of that screen should be the agent's real timeline: tool rows, streaming Markdown, other plugins' timeline renderers, permission and question rows, history paging and find. A simple message box under it lets you reply without leaving the list.
How do you do it today?
On 0.16 (checked against
@getpaseo/plugin0.16.0-beta.1 and main):navigation.openAgent({ agentId })opens the agent's own tab. That leaves the plugin screen, which is what Let a plugin open an agent's chat as a full page, and return to the plugin when it closes #7672 runs into.addAgentPanel/openPanel(id, { workspaceId, agentId })put plugin UI beside an agent. That's the reverse direction.addTimelineTransformer/addTimelineRendererchange rows inside the built-in timeline, but can't show it anywhere else.getPaseoClient(serverId)→fetchAgentTimeline(...)returns raw items. So each plugin draws its own copy, as Follow-up's Overseer does today.Where does Paseo get in the way?
A hand-drawn timeline is always behind the real one. It misses tool rows, streaming, other plugins' renderers, find and the outline, and it drifts whenever the timeline changes. Paseo already embeds the view outside the agent tab itself: the provider subagent panel shows
AgentStreamViewread-only with history paging. Plugins just can't reach it.The same gap shows up elsewhere: #4546 (reuse the native file UI) and #8848 (watch several chats at once). #3887 shows the direction that already works:
Icon,StreamedTextandMarkdownare now host components plugins import from@getpaseo/plugin/client/ui.What would a better workflow look like?
A host-rendered component in
@getpaseo/plugin/client/ui. Simple by default, customizable when needed:Plugins can already set an agent's model, mode and thinking through
useComposers(setModel,setMode,setThinking). So "force a model" becomes: the plugin sets it, and the embedded view hides or locks the picker.Mockup: the same view customized, with the model locked and only the plugin's own pill. The lock and the pill label are previews of the proposed API, not current behaviour.
Open questions
useComposers, so plugins can fall back toopenAgent.I'm working on a small PR for the simple case as a reference implementation, and I'll link it here with real screenshots.
All reactions