Add mobile terminal shortcut bar customization (#3012)
Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
@@ -209,7 +209,7 @@ function resolveRemotePairing(
|
||||
if (!pairing) {
|
||||
throw new RuntimeClientError(
|
||||
'invalid_argument',
|
||||
'Invalid remote pairing code. Expected an orca://pair#... URL or bare pairing payload.'
|
||||
'Invalid remote pairing code. Expected an orca://pair?... URL or bare pairing payload.'
|
||||
)
|
||||
}
|
||||
return pairing
|
||||
|
||||
@@ -66,7 +66,10 @@ describe('CLI remote WebSocket transport', () => {
|
||||
deviceToken: runtime.deviceToken,
|
||||
publicKeyB64: runtime.publicKeyB64
|
||||
}
|
||||
const barePayload = encodePairingOffer(offer).split('#')[1]!
|
||||
const pairingUrl = encodePairingOffer(offer)
|
||||
const barePayload = new URLSearchParams(pairingUrl.slice(pairingUrl.indexOf('?') + 1)).get(
|
||||
'code'
|
||||
)!
|
||||
|
||||
const client = new RuntimeClient('/tmp/unused', 5_000, barePayload)
|
||||
const status = await client.getCliStatus()
|
||||
|
||||
Reference in New Issue
Block a user