peachsim 0.1.791 → 0.1.793
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/commands/compat.ts +0 -6
- package/cli/commands/login.ts +1 -8
- package/cli/commands/upload.ts +1 -8
- package/cli/desktop-companion.ts +3 -0
- package/cli/parse-args.ts +11 -0
- package/cli/ws-bridge.ts +103 -3
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/agent-identity.cjs +1 -1
- package/dist-lib/agent-sessions.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cli-constants.cjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/detox/index.cjs +4 -2
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +1 -1
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +4 -2
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +1 -1
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/render-mode.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +115 -6
- package/dist-lib/swift-compile.cjs +1 -1
- package/dist-lib/swift-compile.mjs +1 -1
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +1 -1
- package/dist-lib/vite.cjs +1 -1
- package/package.json +1 -1
package/cli/commands/compat.ts
CHANGED
|
@@ -117,12 +117,6 @@ function report(args: string[], result: ScanResult, local: LocalNative[] | null)
|
|
|
117
117
|
console.log(`\n peach compatibility report`)
|
|
118
118
|
console.log(` ${formatScanCounts(result)}\n`)
|
|
119
119
|
for (const line of formatDetailedScanLines(result)) console.log(` ${line}`)
|
|
120
|
-
const supported = result.packages.filter((item) => item.status === 'full').length
|
|
121
|
-
if (supported > 0) console.log(` supported: ${supported} packages`)
|
|
122
|
-
const notRelevant = result.packages.filter(
|
|
123
|
-
(item) => item.status === 'not-relevant',
|
|
124
|
-
).length
|
|
125
|
-
if (notRelevant > 0) console.log(` not relevant at runtime: ${notRelevant} packages`)
|
|
126
120
|
if (result.packages.length === 0) {
|
|
127
121
|
console.log(` no React Native ecosystem packages detected`)
|
|
128
122
|
}
|
package/cli/commands/login.ts
CHANGED
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
import { isLoopbackHost } from '../../src/backend-origin'
|
|
11
11
|
import { rnxPublicBrand } from '../../src/public-brand'
|
|
12
12
|
import { openUrl } from '../open-url'
|
|
13
|
+
import { extractStringFlag } from '../parse-args'
|
|
13
14
|
import { rnxExit } from '../run-rnx'
|
|
14
15
|
|
|
15
16
|
const REMOTE_DEFAULT_ORIGIN = process.env.PEACH_AUTH_ORIGIN || 'https://contrast.dev'
|
|
@@ -104,14 +105,6 @@ async function finishLogin(
|
|
|
104
105
|
)
|
|
105
106
|
}
|
|
106
107
|
|
|
107
|
-
function extractStringFlag(args: string[], name: string): string | undefined {
|
|
108
|
-
const idx = args.findIndex((a) => a === name)
|
|
109
|
-
if (idx < 0) return undefined
|
|
110
|
-
const value = args[idx + 1]
|
|
111
|
-
args.splice(idx, 2)
|
|
112
|
-
return value
|
|
113
|
-
}
|
|
114
|
-
|
|
115
108
|
function renderCallbackPage(body: string) {
|
|
116
109
|
return `<!doctype html>
|
|
117
110
|
<html>
|
package/cli/commands/upload.ts
CHANGED
|
@@ -28,6 +28,7 @@ import { fetchAppFontFiles } from '../app-fonts'
|
|
|
28
28
|
import { fetchAppSplashImages } from '../app-splash'
|
|
29
29
|
import { authHeaderValue, githubUploadIdentity, resolveCliAuth } from '../auth'
|
|
30
30
|
import { openUrl } from '../open-url'
|
|
31
|
+
import { extractStringFlag } from '../parse-args'
|
|
31
32
|
import { resolveRunProvenance } from '../run-registry'
|
|
32
33
|
import { rnxExit } from '../run-rnx'
|
|
33
34
|
import {
|
|
@@ -214,14 +215,6 @@ examples:
|
|
|
214
215
|
`)
|
|
215
216
|
}
|
|
216
217
|
|
|
217
|
-
function extractStringFlag(args: string[], name: string): string | undefined {
|
|
218
|
-
const idx = args.findIndex((a) => a === name)
|
|
219
|
-
if (idx < 0) return undefined
|
|
220
|
-
const value = args[idx + 1]
|
|
221
|
-
args.splice(idx, 2)
|
|
222
|
-
return value
|
|
223
|
-
}
|
|
224
|
-
|
|
225
218
|
function extractBoolFlag(args: string[], name: string): boolean {
|
|
226
219
|
const idx = args.findIndex((a) => a === name)
|
|
227
220
|
if (idx < 0) return false
|
package/cli/desktop-companion.ts
CHANGED
|
@@ -366,6 +366,9 @@ export async function launchDesktopCompanion(
|
|
|
366
366
|
// the personal home screen belongs to launches from Spotlight or the Dock;
|
|
367
367
|
// every CLI launch gets the plain one
|
|
368
368
|
if (nativeApp) extraArgs.push('--no-personal-home')
|
|
369
|
+
// a CLI launch builds its windows from its own args: skip appkit's restore of a prior
|
|
370
|
+
// crashed session, whose reopen alert blocks boot, without clearing the saved state
|
|
371
|
+
if (nativeApp) extraArgs.push('-ApplePersistenceIgnoreState', 'YES')
|
|
369
372
|
const openArgs: string[] = ['-g', '-a', install.path]
|
|
370
373
|
if (url) openArgs.push(buildMacLaunchUrl(url, opts, nativeApp))
|
|
371
374
|
else if (
|
package/cli/parse-args.ts
CHANGED
|
@@ -187,3 +187,14 @@ export function parseRnxArgs(args: string[]): ParsedArgs {
|
|
|
187
187
|
export function parseArgs(argv: string[]): ParsedArgs {
|
|
188
188
|
return parseRnxArgs(argv.slice(2))
|
|
189
189
|
}
|
|
190
|
+
|
|
191
|
+
// a command's own flag, consumed from its already-sliced commandArgs: finds
|
|
192
|
+
// `name`, removes it and its value from `args` in place, and returns the
|
|
193
|
+
// value (or undefined if `name` is absent).
|
|
194
|
+
export function extractStringFlag(args: string[], name: string): string | undefined {
|
|
195
|
+
const idx = args.findIndex((a) => a === name)
|
|
196
|
+
if (idx < 0) return undefined
|
|
197
|
+
const value = args[idx + 1]
|
|
198
|
+
args.splice(idx, 2)
|
|
199
|
+
return value
|
|
200
|
+
}
|
package/cli/ws-bridge.ts
CHANGED
|
@@ -362,6 +362,7 @@ interface WsResponse {
|
|
|
362
362
|
}
|
|
363
363
|
|
|
364
364
|
interface WsBridgeOptions {
|
|
365
|
+
connectTimeoutMs?: number
|
|
365
366
|
commandTimeoutMs?: number
|
|
366
367
|
simId?: string
|
|
367
368
|
cliLabel?: string
|
|
@@ -567,7 +568,9 @@ export function createBridge(wsPort: number, opts: WsBridgeOptions = {}): WsBrid
|
|
|
567
568
|
{ resolve: (v: any) => void; reject: (e: Error) => void }
|
|
568
569
|
>()
|
|
569
570
|
|
|
570
|
-
const ws = new WebSocket(bridgeWsUrl(wsPort)
|
|
571
|
+
const ws = new WebSocket(bridgeWsUrl(wsPort), {
|
|
572
|
+
handshakeTimeout: opts.connectTimeoutMs,
|
|
573
|
+
})
|
|
571
574
|
// always key the lease on the stable agent/terminal identity, never on the
|
|
572
575
|
// target simId. keying off `sim:<id>` conflated "which sim" with "who is
|
|
573
576
|
// driving it": a single agent's identity then flipped between its stable key
|
|
@@ -905,11 +908,108 @@ export interface BridgeTransportOption {
|
|
|
905
908
|
export function createBridgeFromParsed(parsed: ParsedBridgeCliArgs): WsBridge {
|
|
906
909
|
const cloudBridge = createCloudBridgeForParsed(parsed)
|
|
907
910
|
if (cloudBridge) return cloudBridge
|
|
908
|
-
|
|
911
|
+
const options = {
|
|
909
912
|
commandTimeoutMs: parsed.commandTimeoutMs,
|
|
910
913
|
simId: parsed.simId,
|
|
911
914
|
simIdSource: parsed.simIdSource,
|
|
912
|
-
}
|
|
915
|
+
}
|
|
916
|
+
if (!parsed.simId || parsed.simIdSource !== 'flag') {
|
|
917
|
+
return createBridge(parsed.wsPort, options)
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
// keep the synchronous transport API while resolving ownership before any
|
|
921
|
+
// command reaches a sim. discovery runs once per invocation, in parallel.
|
|
922
|
+
let selected: Promise<WsBridge> | undefined
|
|
923
|
+
let closed = false
|
|
924
|
+
const getBridge = () => {
|
|
925
|
+
selected ??= resolveBridgePortForSim(parsed).then((port) => {
|
|
926
|
+
if (closed) throw new Error('bridge closed during sim world resolution')
|
|
927
|
+
parsed.wsPort = port
|
|
928
|
+
printBridgeWorldNotice(port)
|
|
929
|
+
return createBridge(port, options)
|
|
930
|
+
})
|
|
931
|
+
return selected
|
|
932
|
+
}
|
|
933
|
+
return {
|
|
934
|
+
plane: 'local',
|
|
935
|
+
async send(cmd, opts) {
|
|
936
|
+
return (await getBridge()).send(cmd, opts)
|
|
937
|
+
},
|
|
938
|
+
async listSims() {
|
|
939
|
+
return (await getBridge()).listSims()
|
|
940
|
+
},
|
|
941
|
+
async resolveReloadedSim(id) {
|
|
942
|
+
return (await getBridge()).resolveReloadedSim(id)
|
|
943
|
+
},
|
|
944
|
+
async focusSim(id) {
|
|
945
|
+
return (await getBridge()).focusSim(id)
|
|
946
|
+
},
|
|
947
|
+
async closeSim(id) {
|
|
948
|
+
return (await getBridge()).closeSim(id)
|
|
949
|
+
},
|
|
950
|
+
async claim(id, opts) {
|
|
951
|
+
return (await getBridge()).claim(id, opts)
|
|
952
|
+
},
|
|
953
|
+
close() {
|
|
954
|
+
closed = true
|
|
955
|
+
void selected?.then(
|
|
956
|
+
(bridge) => bridge.close(),
|
|
957
|
+
() => {},
|
|
958
|
+
)
|
|
959
|
+
},
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
async function resolveBridgePortForSim(parsed: ParsedBridgeCliArgs): Promise<number> {
|
|
964
|
+
const worlds = liveDevBridgeLockfiles().map((lock) => ({
|
|
965
|
+
port: lock.bridgePort,
|
|
966
|
+
record: `dev-bridges/${lock.bridgePort}.json`,
|
|
967
|
+
}))
|
|
968
|
+
const daemon = readDaemonLockfile()
|
|
969
|
+
if (daemon && isDaemonLockfileFresh(daemon)) {
|
|
970
|
+
worlds.push({ port: daemon.bridgePort, record: 'daemon.json' })
|
|
971
|
+
}
|
|
972
|
+
const checked = await Promise.all(
|
|
973
|
+
worlds.map(async (world) => {
|
|
974
|
+
const probe = createBridge(world.port, {
|
|
975
|
+
connectTimeoutMs: 2000,
|
|
976
|
+
commandTimeoutMs: 2000,
|
|
977
|
+
})
|
|
978
|
+
try {
|
|
979
|
+
const sims = await probe.listSims()
|
|
980
|
+
return {
|
|
981
|
+
...world,
|
|
982
|
+
ownsSim: sims.some(
|
|
983
|
+
(sim) => sim.id === parsed.simId && sim.readyState === 'open',
|
|
984
|
+
),
|
|
985
|
+
}
|
|
986
|
+
} catch (error) {
|
|
987
|
+
return {
|
|
988
|
+
...world,
|
|
989
|
+
ownsSim: false,
|
|
990
|
+
error: error instanceof Error ? error.message : String(error),
|
|
991
|
+
}
|
|
992
|
+
} finally {
|
|
993
|
+
probe.close()
|
|
994
|
+
}
|
|
995
|
+
}),
|
|
996
|
+
)
|
|
997
|
+
const owner = checked.find((world) => world.ownsSim)
|
|
998
|
+
if (!owner) {
|
|
999
|
+
const names = checked.map(
|
|
1000
|
+
(world) =>
|
|
1001
|
+
`${world.record} (bridge :${world.port}${'error' in world ? `, ${world.error}` : ''})`,
|
|
1002
|
+
)
|
|
1003
|
+
throw new Error(
|
|
1004
|
+
`no live peach world holds sim ${parsed.simId}; worlds checked: ${names.join(', ') || 'none (no fresh dev-bridge or daemon lockfiles)'}`,
|
|
1005
|
+
)
|
|
1006
|
+
}
|
|
1007
|
+
if (parsed.explicitPort && parsed.wsPort !== owner.port) {
|
|
1008
|
+
throw new Error(
|
|
1009
|
+
`--sim ${parsed.simId} belongs to bridge port ${owner.port}, but --port ${parsed.wsPort} names another world`,
|
|
1010
|
+
)
|
|
1011
|
+
}
|
|
1012
|
+
return owner.port
|
|
913
1013
|
}
|
|
914
1014
|
|
|
915
1015
|
interface SimHealthProbe {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/beta.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/beta.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/cloud.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/cloud.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
package/dist-lib/config.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/detox/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -6504,7 +6504,9 @@ function createBridge(wsPort, opts = {}) {
|
|
|
6504
6504
|
let nextId = 1;
|
|
6505
6505
|
const commandTimeoutMs = opts.commandTimeoutMs ?? 15e3;
|
|
6506
6506
|
const pending = /* @__PURE__ */ new Map();
|
|
6507
|
-
const ws = new import_ws.WebSocket(bridgeWsUrl(wsPort)
|
|
6507
|
+
const ws = new import_ws.WebSocket(bridgeWsUrl(wsPort), {
|
|
6508
|
+
handshakeTimeout: opts.connectTimeoutMs
|
|
6509
|
+
});
|
|
6508
6510
|
const identity = getCliIdentity();
|
|
6509
6511
|
const ready = new Promise((resolve2, reject) => {
|
|
6510
6512
|
ws.on("open", () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/home-paths.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -5576,7 +5576,9 @@ function createBridge(wsPort, opts = {}) {
|
|
|
5576
5576
|
let nextId = 1;
|
|
5577
5577
|
const commandTimeoutMs = opts.commandTimeoutMs ?? 15e3;
|
|
5578
5578
|
const pending = /* @__PURE__ */ new Map();
|
|
5579
|
-
const ws = new import_ws.WebSocket(bridgeWsUrl(wsPort)
|
|
5579
|
+
const ws = new import_ws.WebSocket(bridgeWsUrl(wsPort), {
|
|
5580
|
+
handshakeTimeout: opts.connectTimeoutMs
|
|
5581
|
+
});
|
|
5580
5582
|
const identity = getCliIdentity();
|
|
5581
5583
|
const ready = new Promise((resolve3, reject) => {
|
|
5582
5584
|
ws.on("open", () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/kotlin-host.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/menu.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/menu.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/metro.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/plist.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/plist.mjs
CHANGED
package/dist-lib/profiles.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/render-mode.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/sdk.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/sdk.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -8791,8 +8791,8 @@ var init_registry = __esm({
|
|
|
8791
8791
|
range: ">=0.1.0",
|
|
8792
8792
|
coverage: 0.92,
|
|
8793
8793
|
note: "real canvaskit-wasm backing via the engine instance (`globalThis.__sootsimCanvasKit`); declarative <Canvas> snapshots each commit through an offscreen SkSurface and mounts the encoded PNG as a host image. zero second canvaskit bundle.",
|
|
8794
|
-
working: "<Canvas> with offscreen SkSurface paint\u2192PNG\u2192host <Image>, <Path>/<Rect>/<RoundedRect>/<Circle>/<Oval>/<Line>/<Fill>/<Image>/<Text>/<Paragraph>/<Picture>/<Group> primitives,
|
|
8795
|
-
missing: "<RuntimeShader> SkSL compilation+uniform-binding pipeline, <Points>/<TextPath>/<Glyphs>/<ImageSVG>/<Vertices>/<Patch>/<Atlas>/<FitBox>/<Box>/<BoxShadow> (each logs a one-time hint and renders null),
|
|
8794
|
+
working: "<Canvas> with offscreen SkSurface paint\u2192PNG\u2192host <Image>, <Path>/<Rect>/<RoundedRect>/<Circle>/<Oval>/<Line>/<Fill>/<Image>/<Text>/<Paragraph>/<Picture>/<Group> primitives, transform/origin/matrix and rect/rrect/path clip props on groups and drawings, Circle c/cx/cy and rect-prop geometry with shared-value props, <LinearGradient>/<RadialGradient>/<SweepGradient>/<TwoPointConicalGradient> with local transforms, tile modes, flags and sweep angles, <ColorShader> paint shaders, <BlurMask>/<Blur>/<Mask>/<Shadow> mask + image filters, <BackdropFilter>/<BackdropBlur>, <DashPathEffect>/<DiscretePathEffect>/<CornerPathEffect>, Skia.Path/Paint/Color/Shader/MaskFilter/ImageFilter/ColorFilter/Font/Typeface/FontMgr/ParagraphBuilder factories, built paragraph layout/paint/metrics, Skia.MakeImageFromEncoded, Skia.XYWHRect/LTRBRect/RRectXY/Point/Matrix, vec/rect and 4x4 scale/translate/multiply helpers, useImage (fetches+decodes through canvaskit), useFont (loads typeface from ArrayBuffer / URL), useFonts (URL, module, and Metro asset-id sources with matchFamilyStyle), useCanvasRef + ref.makeImageSnapshot, useValue/useDerivedValue/useComputedValue/useValueEffect/useClockValue listener model, BlendMode/StrokeCap/StrokeJoin/FillType/PaintStyle/TileMode/BlurStyle/FontWeight/FontStyle/FontSlant/FontWidth/ClipOp/PathVerb/PathOp/TextAlign/TextDirection enums.",
|
|
8795
|
+
missing: "<RuntimeShader> SkSL compilation+uniform-binding pipeline, <Points>/<TextPath>/<Glyphs>/<ImageSVG>/<Vertices>/<Patch>/<Atlas>/<FitBox>/<Box>/<BoxShadow> (each logs a one-time hint and renders null), <Paint> as a declarative component, useTouchHandler full gesture state machine (we forward a minimal touch handler shape; consumers should use Pressable wrappers for hit-testing), reanimated worklet-driven canvas redraws (`useSharedValueEffect` subscribes only to the local SkiaValue listener shape; Canvas display-list encoding and setTick/setDataUrl updates remain owned by React useLayoutEffect, so redraws still reconcile through React), advanced ParagraphBuilder run/style APIs beyond pushStyle/pop/addText/reset and built paragraph layout/paint/metrics, Skia.SVG.MakeFromString (canvaskit-wasm omits svg parsing in the size-tuned builds we ship), GPU SkSurface backing on offscreen paints (we use software MakeSurface so each Canvas paint runs on cpu; deferred until a real engine host element owns its own GrDirectContext for paint-only animation)."
|
|
8796
8796
|
}
|
|
8797
8797
|
]
|
|
8798
8798
|
},
|
|
@@ -18897,6 +18897,13 @@ function formatDetailedScanLines(result) {
|
|
|
18897
18897
|
for (const pkg of actionable) {
|
|
18898
18898
|
lines.push(`${formatPackageStatus(pkg)}: ${pkg.name}@${pkg.version} \u2014 ${pkg.note}`);
|
|
18899
18899
|
}
|
|
18900
|
+
const supported = result.packages.filter(
|
|
18901
|
+
(pkg) => pkg.status === "full" && pkg.rnx.coverageSource !== "measured"
|
|
18902
|
+
);
|
|
18903
|
+
if (supported.length > 0) {
|
|
18904
|
+
lines.push("Supported:");
|
|
18905
|
+
for (const pkg of supported) lines.push(` ${pkg.name}@${pkg.version}`);
|
|
18906
|
+
}
|
|
18900
18907
|
const light = result.packages.filter((pkg) => pkg.status === "light");
|
|
18901
18908
|
if (light.length > 0) {
|
|
18902
18909
|
lines.push("Light:");
|
|
@@ -18916,6 +18923,11 @@ function formatDetailedScanLines(result) {
|
|
|
18916
18923
|
"Peach may still work. The simulator will report a concrete runtime error if it finds a gap."
|
|
18917
18924
|
);
|
|
18918
18925
|
}
|
|
18926
|
+
const notRelevant = result.packages.filter((pkg) => pkg.status === "not-relevant");
|
|
18927
|
+
if (notRelevant.length > 0) {
|
|
18928
|
+
lines.push("Not relevant at runtime:");
|
|
18929
|
+
for (const pkg of notRelevant) lines.push(` ${pkg.name}@${pkg.version}`);
|
|
18930
|
+
}
|
|
18919
18931
|
return lines;
|
|
18920
18932
|
}
|
|
18921
18933
|
var COMPAT_RESULT_CAVEAT;
|
|
@@ -47600,7 +47612,9 @@ function createBridge(wsPort, opts = {}) {
|
|
|
47600
47612
|
let nextId = 1;
|
|
47601
47613
|
const commandTimeoutMs = opts.commandTimeoutMs ?? 15e3;
|
|
47602
47614
|
const pending = /* @__PURE__ */ new Map();
|
|
47603
|
-
const ws = new import_ws2.WebSocket(bridgeWsUrl(wsPort)
|
|
47615
|
+
const ws = new import_ws2.WebSocket(bridgeWsUrl(wsPort), {
|
|
47616
|
+
handshakeTimeout: opts.connectTimeoutMs
|
|
47617
|
+
});
|
|
47604
47618
|
const identity = getCliIdentity();
|
|
47605
47619
|
const ready = new Promise((resolve10, reject) => {
|
|
47606
47620
|
ws.on("open", () => {
|
|
@@ -47835,11 +47849,104 @@ function createBridge(wsPort, opts = {}) {
|
|
|
47835
47849
|
function createBridgeFromParsed(parsed) {
|
|
47836
47850
|
const cloudBridge = createCloudBridgeForParsed(parsed);
|
|
47837
47851
|
if (cloudBridge) return cloudBridge;
|
|
47838
|
-
|
|
47852
|
+
const options = {
|
|
47839
47853
|
commandTimeoutMs: parsed.commandTimeoutMs,
|
|
47840
47854
|
simId: parsed.simId,
|
|
47841
47855
|
simIdSource: parsed.simIdSource
|
|
47842
|
-
}
|
|
47856
|
+
};
|
|
47857
|
+
if (!parsed.simId || parsed.simIdSource !== "flag") {
|
|
47858
|
+
return createBridge(parsed.wsPort, options);
|
|
47859
|
+
}
|
|
47860
|
+
let selected;
|
|
47861
|
+
let closed = false;
|
|
47862
|
+
const getBridge = () => {
|
|
47863
|
+
selected ??= resolveBridgePortForSim(parsed).then((port) => {
|
|
47864
|
+
if (closed) throw new Error("bridge closed during sim world resolution");
|
|
47865
|
+
parsed.wsPort = port;
|
|
47866
|
+
printBridgeWorldNotice(port);
|
|
47867
|
+
return createBridge(port, options);
|
|
47868
|
+
});
|
|
47869
|
+
return selected;
|
|
47870
|
+
};
|
|
47871
|
+
return {
|
|
47872
|
+
plane: "local",
|
|
47873
|
+
async send(cmd, opts) {
|
|
47874
|
+
return (await getBridge()).send(cmd, opts);
|
|
47875
|
+
},
|
|
47876
|
+
async listSims() {
|
|
47877
|
+
return (await getBridge()).listSims();
|
|
47878
|
+
},
|
|
47879
|
+
async resolveReloadedSim(id) {
|
|
47880
|
+
return (await getBridge()).resolveReloadedSim(id);
|
|
47881
|
+
},
|
|
47882
|
+
async focusSim(id) {
|
|
47883
|
+
return (await getBridge()).focusSim(id);
|
|
47884
|
+
},
|
|
47885
|
+
async closeSim(id) {
|
|
47886
|
+
return (await getBridge()).closeSim(id);
|
|
47887
|
+
},
|
|
47888
|
+
async claim(id, opts) {
|
|
47889
|
+
return (await getBridge()).claim(id, opts);
|
|
47890
|
+
},
|
|
47891
|
+
close() {
|
|
47892
|
+
closed = true;
|
|
47893
|
+
void selected?.then(
|
|
47894
|
+
(bridge) => bridge.close(),
|
|
47895
|
+
() => {
|
|
47896
|
+
}
|
|
47897
|
+
);
|
|
47898
|
+
}
|
|
47899
|
+
};
|
|
47900
|
+
}
|
|
47901
|
+
async function resolveBridgePortForSim(parsed) {
|
|
47902
|
+
const worlds = liveDevBridgeLockfiles().map((lock) => ({
|
|
47903
|
+
port: lock.bridgePort,
|
|
47904
|
+
record: `dev-bridges/${lock.bridgePort}.json`
|
|
47905
|
+
}));
|
|
47906
|
+
const daemon = readDaemonLockfile();
|
|
47907
|
+
if (daemon && isDaemonLockfileFresh(daemon)) {
|
|
47908
|
+
worlds.push({ port: daemon.bridgePort, record: "daemon.json" });
|
|
47909
|
+
}
|
|
47910
|
+
const checked = await Promise.all(
|
|
47911
|
+
worlds.map(async (world) => {
|
|
47912
|
+
const probe2 = createBridge(world.port, {
|
|
47913
|
+
connectTimeoutMs: 2e3,
|
|
47914
|
+
commandTimeoutMs: 2e3
|
|
47915
|
+
});
|
|
47916
|
+
try {
|
|
47917
|
+
const sims = await probe2.listSims();
|
|
47918
|
+
return {
|
|
47919
|
+
...world,
|
|
47920
|
+
ownsSim: sims.some(
|
|
47921
|
+
(sim) => sim.id === parsed.simId && sim.readyState === "open"
|
|
47922
|
+
)
|
|
47923
|
+
};
|
|
47924
|
+
} catch (error) {
|
|
47925
|
+
return {
|
|
47926
|
+
...world,
|
|
47927
|
+
ownsSim: false,
|
|
47928
|
+
error: error instanceof Error ? error.message : String(error)
|
|
47929
|
+
};
|
|
47930
|
+
} finally {
|
|
47931
|
+
probe2.close();
|
|
47932
|
+
}
|
|
47933
|
+
})
|
|
47934
|
+
);
|
|
47935
|
+
const owner = checked.find((world) => world.ownsSim);
|
|
47936
|
+
if (!owner) {
|
|
47937
|
+
const names = checked.map(
|
|
47938
|
+
(world) => `${world.record} (bridge :${world.port}${"error" in world ? `, ${world.error}` : ""})`
|
|
47939
|
+
);
|
|
47940
|
+
throw new Error(
|
|
47941
|
+
`no live peach world holds sim ${parsed.simId}; worlds checked: ${names.join(", ") || "none (no fresh dev-bridge or daemon lockfiles)"}`
|
|
47942
|
+
);
|
|
47943
|
+
}
|
|
47944
|
+
if (parsed.explicitPort && parsed.wsPort !== owner.port) {
|
|
47945
|
+
throw new Error(
|
|
47946
|
+
`--sim ${parsed.simId} belongs to bridge port ${owner.port}, but --port ${parsed.wsPort} names another world`
|
|
47947
|
+
);
|
|
47948
|
+
}
|
|
47949
|
+
return owner.port;
|
|
47843
47950
|
}
|
|
47844
47951
|
function describeVisibleSimCandidate(sims, currentId) {
|
|
47845
47952
|
const open = sims.filter((sim) => sim.readyState === "open" && sim.id !== currentId);
|
|
@@ -50189,6 +50296,7 @@ async function launchDesktopCompanion(url, install = findDesktopCompanion(), opt
|
|
|
50189
50296
|
if (install.kind === "mac-app" || install.kind === "native-mac-app") {
|
|
50190
50297
|
const nativeApp = install.kind === "native-mac-app";
|
|
50191
50298
|
if (nativeApp) extraArgs.push("--no-personal-home");
|
|
50299
|
+
if (nativeApp) extraArgs.push("-ApplePersistenceIgnoreState", "YES");
|
|
50192
50300
|
const openArgs = ["-g", "-a", install.path];
|
|
50193
50301
|
if (url) openArgs.push(buildMacLaunchUrl(url, opts, nativeApp));
|
|
50194
50302
|
else if (nativeApp && (opts.profileId || opts.ephemeralProfile || opts.ownerPid || opts.device))
|
|
@@ -55503,6 +55611,7 @@ var init_upload = __esm({
|
|
|
55503
55611
|
init_app_splash();
|
|
55504
55612
|
init_auth();
|
|
55505
55613
|
init_open_url2();
|
|
55614
|
+
init_parse_args();
|
|
55506
55615
|
init_run_registry();
|
|
55507
55616
|
init_run_rnx();
|
|
55508
55617
|
init_ws_bridge();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/vite-swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.793 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|