peachsim 0.1.772 → 0.1.774
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/desktop.ts +1 -1
- package/cli/commands/install-desktop.ts +17 -6
- package/cli/drivers/playwright-sim-host.ts +59 -2
- package/cli/drivers/playwright.ts +28 -7
- 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 +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +8 -3
- 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 +1 -1
- 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 +123 -76
- package/dist-lib/swift-compile.cjs +7 -2
- package/dist-lib/swift-compile.mjs +7 -2
- 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 +7 -2
- package/dist-lib/vite.cjs +1 -1
- package/package.json +1 -1
- package/src/desktop-host-delivery.ts +47 -8
- package/src/swift-compile.ts +6 -1
- package/src/swift-standin-emit.ts +619 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.774 | (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.774 | (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.774 | (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.774 | (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;
|
|
@@ -721,13 +721,18 @@ var OPTIONAL_FRAMEWORK_DEPENDENCIES = {
|
|
|
721
721
|
TikTokBusinessSDK: [],
|
|
722
722
|
nSure: [],
|
|
723
723
|
Statsig: [],
|
|
724
|
+
RiveRuntime: ["MetalKit"],
|
|
725
|
+
MetalKit: [],
|
|
724
726
|
DatadogCore: [],
|
|
725
727
|
DatadogLogs: ["DatadogCore"],
|
|
726
728
|
DatadogRUM: ["DatadogCore"],
|
|
727
729
|
DatadogTrace: ["DatadogCore"],
|
|
728
730
|
AppLovinSDK: [],
|
|
729
731
|
AppsFlyerLib: [],
|
|
730
|
-
FBSDKCoreKit: [],
|
|
732
|
+
FBSDKCoreKit: ["FBAEMKit", "FBSDKCoreKit_Basics"],
|
|
733
|
+
FBAEMKit: ["FBSDKCoreKit_Basics"],
|
|
734
|
+
FBSDKCoreKit_Basics: [],
|
|
735
|
+
Intercom: [],
|
|
731
736
|
FBAudienceNetwork: []
|
|
732
737
|
};
|
|
733
738
|
var OPTIONAL_FRAMEWORKS = new Set(Object.keys(OPTIONAL_FRAMEWORK_DEPENDENCIES));
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.774 | (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/package.json
CHANGED
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
// desktop host. the host releases on its own (packages/peach-desktop's Native
|
|
3
3
|
// Desktop Release workflow) and the CLI downloads and verifies each version
|
|
4
4
|
// into ~/.peach/desktop/versions/<version>/, exactly as `peach runtime install` manages
|
|
5
|
-
// the engine runtime. the active version is
|
|
5
|
+
// the engine runtime. on macOS the active version is at /Applications/Peach.app,
|
|
6
6
|
// where Spotlight finds it and the CLI, the fleet installer and the app's own
|
|
7
7
|
// updater share it. each channel publishes its own manifest per platform, so
|
|
8
|
-
// the staging and production queues never write the same object.
|
|
8
|
+
// the staging and production queues never write the same object. linux stores
|
|
9
|
+
// its active version under ~/.peach and bundles node and software vulkan.
|
|
9
10
|
|
|
10
11
|
import { spawnSync } from 'node:child_process'
|
|
11
12
|
import fs from 'node:fs'
|
|
@@ -20,14 +21,17 @@ export type DesktopHostChannel = (typeof DESKTOP_HOST_CHANNELS)[number]
|
|
|
20
21
|
const CHANNEL_ENV = 'PEACH_DESKTOP_CHANNEL'
|
|
21
22
|
|
|
22
23
|
/** the artifact platform this machine installs, or null where no host ships. */
|
|
23
|
-
export function desktopHostPlatform(): 'mac-arm64' | null {
|
|
24
|
+
export function desktopHostPlatform(): 'mac-arm64' | 'linux-x64' | null {
|
|
24
25
|
if (process.platform === 'darwin' && process.arch === 'arm64') return 'mac-arm64'
|
|
26
|
+
if (process.platform === 'linux' && process.arch === 'x64') return 'linux-x64'
|
|
25
27
|
return null
|
|
26
28
|
}
|
|
27
29
|
|
|
28
30
|
/** the executable inside an installed version, relative to its directory. */
|
|
29
31
|
export function desktopHostExecutable(): string {
|
|
30
|
-
return '
|
|
32
|
+
return desktopHostPlatform() === 'linux-x64'
|
|
33
|
+
? 'bin/node'
|
|
34
|
+
: 'PeachDesktop.app/Contents/MacOS/PeachDesktop'
|
|
31
35
|
}
|
|
32
36
|
|
|
33
37
|
export const MAC_HOST_APP = '/Applications/Peach.app'
|
|
@@ -73,6 +77,19 @@ export function isNativeHostBundle(app: string): boolean {
|
|
|
73
77
|
}
|
|
74
78
|
|
|
75
79
|
function placedHostVersion(): string | null {
|
|
80
|
+
if (desktopHostPlatform() === 'linux-x64') {
|
|
81
|
+
try {
|
|
82
|
+
const version = fs
|
|
83
|
+
.readFileSync(path.join(desktopHostsDir(), 'active'), 'utf8')
|
|
84
|
+
.trim()
|
|
85
|
+
return /^\d+\.\d+$/.test(version) &&
|
|
86
|
+
fs.existsSync(path.join(desktopHostDir(version), desktopHostExecutable()))
|
|
87
|
+
? version
|
|
88
|
+
: null
|
|
89
|
+
} catch {
|
|
90
|
+
return null
|
|
91
|
+
}
|
|
92
|
+
}
|
|
76
93
|
return isNativeHostBundle(MAC_HOST_APP)
|
|
77
94
|
? bundleValue(MAC_HOST_APP, 'CFBundleVersion')
|
|
78
95
|
: null
|
|
@@ -80,7 +97,20 @@ function placedHostVersion(): string | null {
|
|
|
80
97
|
|
|
81
98
|
/** the active native host's app bundle, or null when none is installed. */
|
|
82
99
|
export function activeDesktopHostApp(): string | null {
|
|
83
|
-
return placedHostVersion() ? MAC_HOST_APP : null
|
|
100
|
+
return process.platform === 'darwin' && placedHostVersion() ? MAC_HOST_APP : null
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/** the installed standalone host command; the driver appends its connection arguments. */
|
|
104
|
+
export function headlessHostCommand(): string[] | null {
|
|
105
|
+
if (desktopHostPlatform() !== 'linux-x64') return null
|
|
106
|
+
const version = placedHostVersion()
|
|
107
|
+
if (!version) return null
|
|
108
|
+
const dir = desktopHostDir(version)
|
|
109
|
+
return [
|
|
110
|
+
path.join(dir, 'bin/node'),
|
|
111
|
+
'--experimental-vm-modules',
|
|
112
|
+
path.join(dir, 'node/host.mjs'),
|
|
113
|
+
]
|
|
84
114
|
}
|
|
85
115
|
|
|
86
116
|
function run(command: string, args: string[]): void {
|
|
@@ -94,6 +124,13 @@ function run(command: string, args: string[]): void {
|
|
|
94
124
|
// failure leaves the previous app in place. an Electron app in the slot moves to
|
|
95
125
|
// ~/Applications, where the CLI still finds it.
|
|
96
126
|
function placeHost(version: string): void {
|
|
127
|
+
if (desktopHostPlatform() === 'linux-x64') {
|
|
128
|
+
const active = path.join(desktopHostsDir(), 'active')
|
|
129
|
+
const incoming = `${active}.${process.pid}.tmp`
|
|
130
|
+
fs.writeFileSync(incoming, `${version}\n`)
|
|
131
|
+
fs.renameSync(incoming, active)
|
|
132
|
+
return
|
|
133
|
+
}
|
|
97
134
|
if (placedHostVersion() === version) return
|
|
98
135
|
const parent = path.dirname(MAC_HOST_APP)
|
|
99
136
|
const incoming = path.join(parent, `.Peach-incoming-${process.pid}.app`)
|
|
@@ -131,7 +168,7 @@ export function desktopHostDelivery(channelInput?: string): RuntimeDelivery {
|
|
|
131
168
|
const platform = desktopHostPlatform()
|
|
132
169
|
if (!platform) {
|
|
133
170
|
throw new Error(
|
|
134
|
-
`the native desktop host ships for macOS arm64
|
|
171
|
+
`the native desktop host ships for macOS arm64 and Linux x64 (this is ${process.platform}-${process.arch})`,
|
|
135
172
|
)
|
|
136
173
|
}
|
|
137
174
|
const channel = channelInput || process.env[CHANNEL_ENV] || 'production'
|
|
@@ -146,9 +183,11 @@ export function desktopHostDelivery(channelInput?: string): RuntimeDelivery {
|
|
|
146
183
|
defaultCdnOrigin: DESKTOP_HOST_CDN_ORIGIN,
|
|
147
184
|
manifestPath: `${prefix}/manifest-${platform}.json`,
|
|
148
185
|
tarballPath: (version) =>
|
|
149
|
-
|
|
186
|
+
platform === 'linux-x64'
|
|
187
|
+
? `${prefix}/${version}/PeachHost-${version}-${platform}.tar.gz`
|
|
188
|
+
: `${prefix}/${version}/PeachDesktop-${version}-${platform}.zip`,
|
|
150
189
|
installedMarker: desktopHostExecutable(),
|
|
151
|
-
verifyInstall: verifyHost,
|
|
190
|
+
verifyInstall: platform === 'mac-arm64' ? verifyHost : undefined,
|
|
152
191
|
env: {
|
|
153
192
|
cdnOrigin: 'PEACH_DESKTOP_CDN_ORIGIN',
|
|
154
193
|
channel: CHANNEL_ENV,
|
package/src/swift-compile.ts
CHANGED
|
@@ -259,13 +259,18 @@ const OPTIONAL_FRAMEWORK_DEPENDENCIES: Record<string, string[]> = {
|
|
|
259
259
|
TikTokBusinessSDK: [],
|
|
260
260
|
nSure: [],
|
|
261
261
|
Statsig: [],
|
|
262
|
+
RiveRuntime: ['MetalKit'],
|
|
263
|
+
MetalKit: [],
|
|
262
264
|
DatadogCore: [],
|
|
263
265
|
DatadogLogs: ['DatadogCore'],
|
|
264
266
|
DatadogRUM: ['DatadogCore'],
|
|
265
267
|
DatadogTrace: ['DatadogCore'],
|
|
266
268
|
AppLovinSDK: [],
|
|
267
269
|
AppsFlyerLib: [],
|
|
268
|
-
FBSDKCoreKit: [],
|
|
270
|
+
FBSDKCoreKit: ['FBAEMKit', 'FBSDKCoreKit_Basics'],
|
|
271
|
+
FBAEMKit: ['FBSDKCoreKit_Basics'],
|
|
272
|
+
FBSDKCoreKit_Basics: [],
|
|
273
|
+
Intercom: [],
|
|
269
274
|
FBAudienceNetwork: [],
|
|
270
275
|
}
|
|
271
276
|
const OPTIONAL_FRAMEWORKS = new Set(Object.keys(OPTIONAL_FRAMEWORK_DEPENDENCIES))
|