From 70a2953c8ee03b0a8f0c6363f61ee9da7648ae37 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Sun, 25 Oct 2026 15:27:29 -0700 Subject: [PATCH] chore(devices): bump agent-device to 0.21.31 Simlock's gateway relay requires agent-device 0.21.28 or later on both ends. The e2e runner keys its persistent agent-device state by version, because a daemon refuses clients of another version. Co-Authored-By: Claude Opus 5.5 --- apps/server/src/device/deviceToolVersions.json | 2 +- pnpm-lock.yaml | 10 +++++----- scripts/mobile-e2e.ts | 17 +++++++++++++++-- scripts/package.json | 2 +- 4 files changed, 22 insertions(+), 9 deletions(-) diff --git a/apps/server/src/device/deviceToolVersions.json b/apps/server/src/device/deviceToolVersions.json index e0c2880e3f657..83083ffbebfba 100644 --- a/apps/server/src/device/deviceToolVersions.json +++ b/apps/server/src/device/deviceToolVersions.json @@ -1,4 +1,4 @@ { - "agent-device": "0.21.25", + "agent-device": "0.21.31", "expo-device-hub": "0.15.3" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5965e7456bd6e..13631679ec3dd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -2158,8 +2158,8 @@ importers: specifier: workspace:* version: link:../packages/tailscale agent-device: - specifier: 0.21.25 - version: 0.21.25 + specifier: 0.21.31 + version: 0.21.31 effect: specifier: 4.0.5 version: 4.0.5 @@ -7153,8 +7153,8 @@ packages: engines: {node: '>=18.18'} hasBin: true - agent-device@0.21.25: - resolution: {integrity: sha512-JFmAD5AqM03dVU6BVQW1DQ2Kz+MThmbCYBbDxpGw2lka91LcoXHdrb4IjF9NNg4DEQUu41Pg8WnB/7crM3ig2w==} + agent-device@0.21.31: + resolution: {integrity: sha512-541X/tXHqQS3Xg5PutPSek1nQFLgEJEXFdLPiZ9jTvSb+SMHr/Z4kzVCnBkGza59R+EHO1atLWx0ZAW5vK84IQ==} engines: {node: '>=22.12'} hasBin: true peerDependencies: @@ -17001,7 +17001,7 @@ snapshots: agent-cli-detector@0.1.7: {} - agent-device@0.21.25: {} + agent-device@0.21.31: {} agent-install@0.0.5: dependencies: diff --git a/scripts/mobile-e2e.ts b/scripts/mobile-e2e.ts index 9050c28089cf9..4d1c023d2d892 100644 --- a/scripts/mobile-e2e.ts +++ b/scripts/mobile-e2e.ts @@ -18,8 +18,21 @@ const AGENT_DEVICE = NodePath.join( ); const BUNDLE_ID = "com.t3tools.t3code.dev"; const METRO_PORT = 8081; -// Persistent so the XCTest runner agent-device builds per simulator survives between runs. -const AGENT_DEVICE_STATE = NodePath.join(NodeOS.homedir(), ".cache/t3code/mobile-e2e/agent-device"); +const AGENT_DEVICE_VERSION = ( + JSON.parse( + await NodeFSP.readFile( + NodePath.join(REPO_ROOT, "scripts/node_modules/agent-device/package.json"), + "utf8", + ), + ) as { version: string } +).version; +// Persistent so the XCTest runner agent-device builds per simulator survives between runs; +// per version because a daemon refuses clients of another version. +const AGENT_DEVICE_STATE = NodePath.join( + NodeOS.homedir(), + ".cache/t3code/mobile-e2e", + `agent-device-${AGENT_DEVICE_VERSION}`, +); export interface E2eDevice { readonly id: string; diff --git a/scripts/package.json b/scripts/package.json index 5d1ab111b584b..c4de756f800b9 100644 --- a/scripts/package.json +++ b/scripts/package.json @@ -12,7 +12,7 @@ "@electron/osx-sign": "2.7.0", "@t3tools/shared": "workspace:*", "@t3tools/tailscale": "workspace:*", - "agent-device": "0.21.25", + "agent-device": "0.21.31", "effect": "catalog:", "plist": "catalog:", "pngjs": "7.0.0",