Add mobile terminal shortcut bar customization (#3012)
Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
+1
-1
@@ -209,7 +209,7 @@ Wait Options:
|
||||
|
||||
Output Options:
|
||||
--json Emit machine-readable JSON instead of human text
|
||||
--pairing-code <code> Connect to a remote Orca runtime using an orca://pair#... code
|
||||
--pairing-code <code> Connect to a remote Orca runtime using an orca://pair?... code
|
||||
--environment <selector> Connect using a saved environment id or name
|
||||
--help Show this help message
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -7,7 +7,7 @@ export const ENVIRONMENT_COMMAND_SPECS: CommandSpec[] = [
|
||||
summary: 'Save a remote Orca runtime environment from a pairing code',
|
||||
usage: 'orca environment add --name <name> --pairing-code <code> [--json]',
|
||||
allowedFlags: [...GLOBAL_FLAGS, 'name'],
|
||||
examples: ['orca environment add --name work-laptop --pairing-code orca://pair#...']
|
||||
examples: ['orca environment add --name work-laptop --pairing-code orca://pair?code=...']
|
||||
},
|
||||
{
|
||||
path: ['environment', 'list'],
|
||||
|
||||
Reference in New Issue
Block a user