Files
BoosAPI/.trellis/tasks/06-25-desktop-agent-workbench/implement.md
T
2026-06-29 10:56:07 +08:00

34 lines
1.8 KiB
Markdown

# Implementation Plan
1. Integrate Agent Workbench into the existing Chat empty state instead of adding a standalone `agent-workbench` page/nav module.
2. Create `components/chat/AgentWorkbenchComposer.tsx` with:
- mode definitions
- provider-derived model options
- custom model fallback
- local attachment selection/removal with `AttachmentInput` conversion
- mode dropdown, auto toggle, skills and subject popovers
- Agent mode submit that creates an Agent conversation/session and calls existing streaming flow
- skills menu action for `luoluoluo22/jianying-editor-skill` install/enable and prompt priming
- placeholder submit status/result for media modes
3. Extend browser preview mock skill commands so install/list/toggle reflects the JianYing skill integration.
4. Add focused CSS to `desktop/src/index.css`, using restrained desktop styling and avoiding global side effects.
5. Bundle the curated Desktop skill pack in `desktop/src-tauri/builtin-skills`, seed it into `~/.boosapi/skills`, and expose it through marketplace fallback results:
- JianYing editor automation
- Seedance 2 prompt/video skills
- DWG MCP server wrapper
- CAD AI agent wrapper
- Gorden PPT skill
6. Run validation:
- `bun run typecheck`
- `bun run build`
7. Review diff for unrelated churn before final report.
## Validation
- `bun run typecheck` passed in `/root/metapi/desktop` after JianYing skill integration.
- `bun run build` passed in `/root/metapi/desktop` after JianYing skill integration.
- `pnpm --dir desktop exec tsc --noEmit` passed after bundling built-in skills.
- `pnpm --dir desktop run build` passed after bundling built-in skills.
- `cargo check -p open-agent-sdk --manifest-path desktop/src-tauri/Cargo.toml` passed after bundling built-in skills.
- `pnpm --dir desktop exec tsc --noEmit` passed after merging Agent Workbench into Chat.