feat: bundle desktop skills

This commit is contained in:
boos
2026-06-26 14:28:13 +08:00
parent 424aaa9b1f
commit cd08ac931d
18 changed files with 719 additions and 17 deletions
@@ -12,12 +12,21 @@
- 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. Run validation:
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`
6. Review diff for unrelated churn before final report.
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.
@@ -14,6 +14,7 @@ Add a first usable Agent Workbench entry to the desktop client so users can star
- The page must follow the desktop app’s existing React/Ant Design/Zustand conventions and be reachable from the sidebar.
- The implementation must avoid new backend schema. Existing Tauri commands may be reused.
- The Workbench skills menu should expose a JianYing/剪映 automation entry that installs/enables `luoluoluo22/jianying-editor-skill` through the existing Desktop skills system and primes the Agent prompt.
- Desktop should bundle the first-party curated skill pack in the project so JianYing, Seedance, DWG/CAD, and PPT skills are available even when the online `skills.sh` market does not return them.
## Acceptance Criteria
@@ -24,6 +25,7 @@ Add a first usable Agent Workbench entry to the desktop client so users can star
- [x] Local file selection displays attachment chips and supports removing them.
- [x] Agent mode creates an Agent conversation/session and sends the prompt plus attachments through the existing Agent stream flow.
- [x] Skills menu can install/enable the JianYing editor skill and insert a matching Agent prompt prefix.
- [x] Desktop seeds bundled skills into the local skills directory and mirrors them in the marketplace/browser preview.
- [x] Unsupported submit paths do not crash; they show a clear in-page result/status.
- [x] `bun run typecheck` and `bun run build` pass in `/root/metapi/desktop`.