Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
feat(store): pass hubId and token to GatewayClient for verification
yushen3d13c28cfc6b
diff --git a/packages/store/src/connection-store.ts b/packages/store/src/connection-store.tsindex 765896564b..19dde59067 100644--- a/packages/store/src/connection-store.ts+++ b/packages/store/src/connection-store.ts@@ -73,6 +73,8 @@ let client: GatewayClient | null = nullfunction createClient(url: string,deviceId: string,+ hubId: string,+ token: string,set: (s: Partial<ConnectionStoreState>) => void,getState: () => ConnectionStoreState,): GatewayClient {@@ -80,6 +82,8 @@ function createClient(url,deviceId,deviceType: "client",+ hubId,+ token,})// Sync connection state changes to the store.onStateChange((connectionState) => {@@ -192,7 +196,7 @@ export const useConnectionStore = create<ConnectionStore>()(agentId: code.agentId,})- client = createClient(code.gateway, get().deviceId, set, get)+ client = createClient(code.gateway, get().deviceId, code.hubId, code.token, set, get)client.connect()},