Skip to content

Commit

Permalink
Automated remote-control Version Update (#4387)
Browse files Browse the repository at this point in the history
Co-authored-by: 10zingpd <10zingpd@users.noreply.github.com>
Co-authored-by: Naveed Jooma <naveed@viam.com>
  • Loading branch information
3 people authored Sep 24, 2024
1 parent fb5e3cf commit 875d27d
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 11 deletions.
15 changes: 8 additions & 7 deletions web/frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions web/frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@viamrobotics/remote-control",
"version": "2.23.0",
"version": "2.24.0",
"license": "Apache-2.0",
"type": "module",
"scripts": {
Expand Down Expand Up @@ -37,7 +37,7 @@
"@improbable-eng/grpc-web": ">=0.15",
"@viamrobotics/prime": ">=0.5",
"@viamrobotics/rpc": ">=0.2",
"@viamrobotics/sdk": "0.23.1",
"@viamrobotics/sdk": "0.24.0",
"google-protobuf": ">=3",
"maplibre-gl": ">=4",
"tailwindcss": ">=3.3",
Expand All @@ -60,7 +60,7 @@
"@viamrobotics/prime-blocks": "^0.1.3",
"@viamrobotics/prime-core": "^0.0.87",
"@viamrobotics/rpc": "0.2.3",
"@viamrobotics/sdk": "0.23.1",
"@viamrobotics/sdk": "0.24.0",
"@viamrobotics/three": "^0.0.3",
"@viamrobotics/typescript-config": "^0.1.0",
"cypress": "12.17.3",
Expand Down
14 changes: 13 additions & 1 deletion web/frontend/src/lib/components/robot-client.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
robotApi,
commonApi,
type ServiceError,
type CredentialType,
} from '@viamrobotics/sdk';
import { notify } from '@viamrobotics/prime';
import { StreamManager } from '@/lib/stream-manager';
Expand Down Expand Up @@ -441,9 +442,20 @@ const start = () => {
const connect = async (creds?: Credentials, authEntity?: string) => {
$connectionStatus = 'connecting';
let sdkCreds = undefined;
const c = creds ?? bakedAuth.creds;
const ae = authEntity ?? bakedAuth.authEntity;
if (c && ae) {
sdkCreds = {
type: c.type as CredentialType,
payload: c.payload,
authEntity: ae,
};
}
await $robotClient.connect({
authEntity: authEntity ?? bakedAuth.authEntity,
creds: creds ?? bakedAuth.creds,
creds: sdkCreds,
priority: 1,
});
Expand Down

0 comments on commit 875d27d

Please sign in to comment.