peachsim 0.1.772 → 0.1.773

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.
Files changed (75) hide show
  1. package/cli/commands/desktop.ts +1 -1
  2. package/cli/commands/install-desktop.ts +17 -6
  3. package/cli/drivers/playwright-sim-host.ts +59 -2
  4. package/cli/drivers/playwright.ts +28 -7
  5. package/dist-lib/agent-daemon-client.cjs +1 -1
  6. package/dist-lib/agent-events.cjs +1 -1
  7. package/dist-lib/agent-identity.cjs +1 -1
  8. package/dist-lib/agent-sessions.cjs +1 -1
  9. package/dist-lib/attached-projects.cjs +1 -1
  10. package/dist-lib/auth/shared-session.cjs +1 -1
  11. package/dist-lib/backend-origin.cjs +1 -1
  12. package/dist-lib/beta.cjs +1 -1
  13. package/dist-lib/beta.mjs +1 -1
  14. package/dist-lib/bridge-constants.cjs +1 -1
  15. package/dist-lib/bridge-contract-input.cjs +1 -1
  16. package/dist-lib/bridge-contract-input.mjs +1 -1
  17. package/dist-lib/bridge-contract.cjs +1 -1
  18. package/dist-lib/bridge-contract.mjs +1 -1
  19. package/dist-lib/capture-contract.cjs +1 -1
  20. package/dist-lib/capture-contract.mjs +1 -1
  21. package/dist-lib/cli-constants.cjs +1 -1
  22. package/dist-lib/cloud-contract.cjs +1 -1
  23. package/dist-lib/cloud-contract.mjs +1 -1
  24. package/dist-lib/cloud-test-args.cjs +1 -1
  25. package/dist-lib/cloud-test-args.mjs +1 -1
  26. package/dist-lib/cloud.cjs +1 -1
  27. package/dist-lib/cloud.mjs +1 -1
  28. package/dist-lib/config.cjs +1 -1
  29. package/dist-lib/detox/index.cjs +1 -1
  30. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  31. package/dist-lib/home-paths.cjs +1 -1
  32. package/dist-lib/host/bridge-host.cjs +1 -1
  33. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  34. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  35. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  36. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  37. package/dist-lib/host/websocket-proxy.cjs +1 -1
  38. package/dist-lib/index.cjs +1 -1
  39. package/dist-lib/jump-to-source-babel.cjs +1 -1
  40. package/dist-lib/jump-to-source-native.cjs +1 -1
  41. package/dist-lib/kotlin-host.cjs +1 -1
  42. package/dist-lib/menu.cjs +1 -1
  43. package/dist-lib/menu.mjs +1 -1
  44. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  45. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  46. package/dist-lib/metro-production-bundle.cjs +1 -1
  47. package/dist-lib/metro-production-bundle.mjs +1 -1
  48. package/dist-lib/metro.cjs +1 -1
  49. package/dist-lib/native-app-identity.cjs +1 -1
  50. package/dist-lib/native-app-identity.mjs +1 -1
  51. package/dist-lib/native-firebase-metadata.cjs +1 -1
  52. package/dist-lib/native-firebase-metadata.mjs +1 -1
  53. package/dist-lib/plist.cjs +1 -1
  54. package/dist-lib/plist.mjs +1 -1
  55. package/dist-lib/profiles.cjs +1 -1
  56. package/dist-lib/public-brand.cjs +1 -1
  57. package/dist-lib/react-native-host-modules.cjs +1 -1
  58. package/dist-lib/react-native-host-modules.mjs +1 -1
  59. package/dist-lib/render-mode.cjs +1 -1
  60. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  61. package/dist-lib/sdk.cjs +1 -1
  62. package/dist-lib/sdk.mjs +1 -1
  63. package/dist-lib/skills.cjs +116 -74
  64. package/dist-lib/swift-compile.cjs +1 -1
  65. package/dist-lib/swift-compile.mjs +1 -1
  66. package/dist-lib/swift-package.cjs +1 -1
  67. package/dist-lib/swift-package.mjs +1 -1
  68. package/dist-lib/swift-submit.cjs +1 -1
  69. package/dist-lib/swift-submit.mjs +1 -1
  70. package/dist-lib/swift-toolchain.cjs +1 -1
  71. package/dist-lib/swift.cjs +1 -1
  72. package/dist-lib/vite-swift.cjs +1 -1
  73. package/dist-lib/vite.cjs +1 -1
  74. package/package.json +1 -1
  75. package/src/desktop-host-delivery.ts +47 -8
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.772 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.773 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/swift-package.ts
4
4
  function isSwiftManifestFile(file) {
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.772 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.773 | (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.772 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.773 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/swift-submit.ts
4
4
  var SWIFT_COMPILE_PATH = "/api/swift-compile";
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.772 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.773 | (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.772 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.773 | (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.772 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.773 | (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.772 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.773 | (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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "peachsim",
3
- "version": "0.1.772",
3
+ "version": "0.1.773",
4
4
  "description": "Vite and Metro plugins, testing drivers, and SDK exports for peach.",
5
5
  "author": "Tamagui LLC",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -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 the one at /Applications/Peach.app,
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 'PeachDesktop.app/Contents/MacOS/PeachDesktop'
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 only (this is ${process.platform}-${process.arch})`,
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
- `${prefix}/${version}/PeachDesktop-${version}-${platform}.zip`,
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,