feat(client): bridge digital employee status

This commit is contained in:
baiyanyun
2026-06-05 15:59:48 +08:00
parent 31b4b5a281
commit 15a3285ed5
7 changed files with 268 additions and 60 deletions

View File

@@ -8,5 +8,6 @@ This directory records qimingclaw-only adaptations around the sgRobot digital em
- `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.
- `window.QimingClawBridge.digital.getSnapshot()` is read when the page runs inside qimingclaw's Electron webview.
Run `npm run sync:sgrobot-digital` from `crates/agent-electron-client` after changing the upstream sgRobot digital UI.