feat(telegram): replace Hub URL binding with connection link verification
Replace the two-step Hub URL binding flow with a multica://connect connection link flow that uses the same verify RPC handshake as the SDK/web clients. Changes: - types.ts: replace hubUrl with hubId + agentId fields - telegram-user.store.ts: update DB schema (hub_id, agent_id columns), accept explicit deviceId in upsert - telegram.service.ts: rewrite with parseConnectionCode validation, verify RPC via routeFromVirtualDevice, pending request map for RPC promise tracking, smart sendCallback for stream/message/RPC - package.json: add @multica/store workspace dependency Flow: user pastes multica://connect link -> parse & validate -> check Hub online -> register virtual device -> verify RPC to Hub -> Desktop approval -> save to DB -> route messages Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
604d74d984
commit
dc60cb754d
5 changed files with 279 additions and 136 deletions
|
|
@ -53,6 +53,7 @@
|
|||
"@mariozechner/pi-coding-agent": "^0.52.9",
|
||||
"@mozilla/readability": "^0.6.0",
|
||||
"@multica/sdk": "workspace:*",
|
||||
"@multica/store": "workspace:*",
|
||||
"@nestjs/common": "^11.1.12",
|
||||
"@nestjs/core": "^11.1.12",
|
||||
"@nestjs/platform-express": "^11.1.12",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue