feat(client): add qimingclaw digital adapter

This commit is contained in:
baiyanyun
2026-06-05 15:45:55 +08:00
parent 2eb9a99da3
commit 31b4b5a281
8 changed files with 865 additions and 117 deletions

View File

@@ -5,6 +5,8 @@ This directory records qimingclaw-only adaptations around the sgRobot digital em
- `src/main.tsx` mounts the digital employee page directly at `#/digital`.
- `src/lib/basePath.ts` fixes static assets under `/sgrobot-digital`.
- `src/lib/tauri.ts` disables sgRobot/Tauri gateway detection inside the Electron webview.
- `src/lib/qimingclawAdapter.ts` provides the first qimingclaw-native digital employee API projection.
- `src/lib/api.ts` calls the qimingclaw adapter before falling back to normal HTTP fetch.
- `index.html` injects a local token so copied sgRobot pages do not show the pairing screen.
Run `npm run sync:sgrobot-digital` from `crates/agent-electron-client` after changing the upstream sgRobot digital UI.