test(remote): include safe update client capability

This commit is contained in:
Jinwoo-H
2026-08-12 22:46:53 -04:00
committed by Jinwoo-H
parent 296872f93d
commit 76d48c5d19
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -19,6 +19,7 @@ import { RuntimeClientError } from './types'
import {
AGENT_SESSION_BOUNDARY_RUNTIME_CAPABILITY,
MIN_COMPATIBLE_RUNTIME_CLIENT_VERSION,
REMOTE_SERVER_SAFE_INSTALL_ACK_CAPABILITY,
RUNTIME_PROTOCOL_VERSION,
SESSION_TAB_CLOSE_INTENT_RUNTIME_CAPABILITY
} from '../../shared/protocol-version'
@@ -64,7 +65,8 @@ describe('CLI remote WebSocket transport', () => {
expect.objectContaining({
clientCapabilities: [
SESSION_TAB_CLOSE_INTENT_RUNTIME_CAPABILITY,
AGENT_SESSION_BOUNDARY_RUNTIME_CAPABILITY
AGENT_SESSION_BOUNDARY_RUNTIME_CAPABILITY,
REMOTE_SERVER_SAFE_INSTALL_ACK_CAPABILITY
]
})
)
+3 -1
View File
@@ -15,6 +15,7 @@ import { sendRemoteRuntimeRequest, subscribeRemoteRuntimeRequest } from './remot
import { MAX_TIMER_DELAY_MS } from './timer-delay'
import {
AGENT_SESSION_BOUNDARY_RUNTIME_CAPABILITY,
REMOTE_SERVER_SAFE_INSTALL_ACK_CAPABILITY,
SESSION_TAB_CLOSE_INTENT_RUNTIME_CAPABILITY
} from './protocol-version'
@@ -74,7 +75,8 @@ describe('subscribeRemoteRuntimeRequest', () => {
deviceToken: 'device-token',
clientCapabilities: [
SESSION_TAB_CLOSE_INTENT_RUNTIME_CAPABILITY,
AGENT_SESSION_BOUNDARY_RUNTIME_CAPABILITY
AGENT_SESSION_BOUNDARY_RUNTIME_CAPABILITY,
REMOTE_SERVER_SAFE_INSTALL_ACK_CAPABILITY
]
})
const bytes = new Uint8Array([1, 2, 3])