peachsim 0.1.1813 → 0.1.1815

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 (136) hide show
  1. package/README.md +2 -1
  2. package/cli/cloud-client.ts +5 -4
  3. package/cli/cloud-session.ts +14 -1
  4. package/cli/commands/compat.ts +12 -2
  5. package/cli/commands/control.ts +10 -2
  6. package/cli/commands/flow.ts +10 -5
  7. package/cli/commands/inspect/env.ts +3 -2
  8. package/cli/commands/inspect/wait-selector.ts +30 -9
  9. package/cli/commands/inspect.ts +43 -385
  10. package/cli/commands/package.ts +6 -1
  11. package/cli/commands/runtime.ts +2 -2
  12. package/cli/outbound-endpoints.ts +1 -1
  13. package/dist-lib/agent-daemon-client.cjs +1 -1
  14. package/dist-lib/agent-events.cjs +1 -1
  15. package/dist-lib/attached-projects.cjs +1 -1
  16. package/dist-lib/auth/shared-session.cjs +1 -1
  17. package/dist-lib/backend-origin.cjs +1 -1
  18. package/dist-lib/beta.cjs +1 -1
  19. package/dist-lib/beta.mjs +1 -1
  20. package/dist-lib/bridge-constants.cjs +1 -1
  21. package/dist-lib/bridge-contract-input.cjs +1 -1
  22. package/dist-lib/bridge-contract-input.mjs +1 -1
  23. package/dist-lib/bridge-contract.cjs +1 -1
  24. package/dist-lib/bridge-contract.mjs +1 -1
  25. package/dist-lib/bundle-channel.cjs +769 -512
  26. package/dist-lib/capture-contract.cjs +1 -1
  27. package/dist-lib/capture-contract.mjs +1 -1
  28. package/dist-lib/cloud-contract.cjs +1 -1
  29. package/dist-lib/cloud-contract.mjs +1 -1
  30. package/dist-lib/cloud-test-args.cjs +1 -1
  31. package/dist-lib/cloud-test-args.mjs +1 -1
  32. package/dist-lib/cloud.cjs +1 -1
  33. package/dist-lib/cloud.mjs +1 -1
  34. package/dist-lib/config.cjs +1 -1
  35. package/dist-lib/config.mjs +1 -1
  36. package/dist-lib/detox/index.cjs +89 -14
  37. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  38. package/dist-lib/expo-swift-bundle.cjs +125 -57
  39. package/dist-lib/expo-swift-metadata.cjs +1 -17
  40. package/dist-lib/expo-swift-metadata.mjs +1 -16
  41. package/dist-lib/home-paths.cjs +1 -1
  42. package/dist-lib/host/bridge-host.cjs +2490 -2290
  43. package/dist-lib/host/fetch-proxy-handler.cjs +14 -14
  44. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  45. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  46. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  47. package/dist-lib/host/websocket-proxy.cjs +1 -1
  48. package/dist-lib/index.cjs +19 -21
  49. package/dist-lib/jump-to-source-babel.cjs +1 -1
  50. package/dist-lib/jump-to-source-native.cjs +1 -1
  51. package/dist-lib/kotlin-host.cjs +1 -1
  52. package/dist-lib/menu.cjs +1 -1
  53. package/dist-lib/menu.mjs +1 -1
  54. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  55. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  56. package/dist-lib/metro-production-bundle.cjs +1 -1
  57. package/dist-lib/metro-production-bundle.mjs +1 -1
  58. package/dist-lib/metro.cjs +16 -17
  59. package/dist-lib/native-app-identity-project.cjs +5 -4
  60. package/dist-lib/native-app-identity-project.mjs +8 -7
  61. package/dist-lib/native-app-identity.cjs +1 -1
  62. package/dist-lib/native-app-identity.mjs +1 -1
  63. package/dist-lib/native-firebase-metadata.cjs +1 -1
  64. package/dist-lib/native-firebase-metadata.mjs +1 -1
  65. package/dist-lib/pdfium-raster.cjs +1 -1
  66. package/dist-lib/pdfium-raster.mjs +1 -1
  67. package/dist-lib/plist.cjs +1 -1
  68. package/dist-lib/plist.mjs +1 -1
  69. package/dist-lib/profiles.cjs +1 -1
  70. package/dist-lib/public-brand.cjs +1 -1
  71. package/dist-lib/public-origins-lib-esm.json +24 -24
  72. package/dist-lib/public-origins-lib.json +77 -77
  73. package/dist-lib/react-native-host-modules.cjs +1 -1
  74. package/dist-lib/react-native-host-modules.mjs +1 -1
  75. package/dist-lib/reap-browser.cjs +1 -1
  76. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  77. package/dist-lib/sdk.cjs +1 -1
  78. package/dist-lib/sdk.mjs +1 -1
  79. package/dist-lib/skills.cjs +851 -541
  80. package/dist-lib/swift-compile.cjs +29 -27
  81. package/dist-lib/swift-compile.mjs +36 -34
  82. package/dist-lib/swift-package.cjs +1 -1
  83. package/dist-lib/swift-package.mjs +1 -1
  84. package/dist-lib/swift-submit.cjs +2 -2
  85. package/dist-lib/swift-submit.mjs +2 -2
  86. package/dist-lib/swift-toolchain.cjs +5 -3
  87. package/dist-lib/swift.cjs +1 -1
  88. package/dist-lib/vite-swift.cjs +100 -46
  89. package/dist-lib/vite.cjs +14 -14
  90. package/dist-lib/worklet-executable.cjs +1 -1
  91. package/dist-lib/worklet-executable.mjs +1 -1
  92. package/dist-types/packages/peach-engine/src/engine/nativeReplayContract.d.ts +2 -0
  93. package/dist-types/packages/peach-engine/src/react-native/host-services.d.ts +7 -0
  94. package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +14 -2
  95. package/install.mjs +21 -8
  96. package/package.json +1 -1
  97. package/runtime-companion.json +1 -1
  98. package/sdk/ios/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewController.h +17 -0
  99. package/sdk/ios/usr/lib/swift/Dispatch.swiftmodule/arm64-apple-ios-simulator.swiftinterface +5 -0
  100. package/sdk/ios/usr/lib/swift/Foundation.swiftmodule/arm64-apple-ios-simulator.swiftinterface +6 -0
  101. package/sdk/ios/usr/lib/swift/ObjectiveC.swiftmodule/arm64-apple-ios-simulator.swiftinterface +10 -1
  102. package/sdk/ios/usr/lib/swift/SwiftUI.swiftmodule/arm64-apple-ios-simulator.swiftinterface +4 -0
  103. package/sdk/ios/usr/lib/swift/SwiftUICore.swiftmodule/arm64-apple-ios-simulator.swiftinterface +11 -0
  104. package/sdk/ios/usr/lib/swift/UIKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +13 -0
  105. package/sdk/ios/wasm/include/string.h +1 -0
  106. package/src/cli-runtime.ts +32 -4
  107. package/src/expo-kotlin-host.ts +69 -35
  108. package/src/expo-swift-host.ts +45 -9
  109. package/src/expo-swift-ready.ts +16 -2
  110. package/src/expoSwiftContract.ts +2 -20
  111. package/src/installed-native-libraries.ts +79 -18
  112. package/src/nitro-adapter.lock.json +251 -251
  113. package/src/nitro-bundle.ts +2 -8
  114. package/src/nitro-compile.ts +6 -3
  115. package/src/nitro-dependencies.ts +8 -2
  116. package/src/nitro-source.ts +34 -3
  117. package/src/nitro-superset.lock.json +14 -14
  118. package/src/nitro-superset.ts +2 -3
  119. package/src/nitroContract.ts +26 -32
  120. package/src/react-native-bridge-modules.ts +2 -9
  121. package/src/runtime-delivery.ts +2 -2
  122. package/src/swift-compile.ts +4 -1
  123. package/src/swift-distribution.lock.json +9 -8
  124. package/src/swift-distribution.ts +1 -0
  125. package/src/swift-icu.ts +21 -27
  126. package/src/swift-installed-targets.ts +13 -0
  127. package/src/swift-project-user.ts +5 -0
  128. package/src/swift-shared-sdk.ts +4 -0
  129. package/src/swift-standins.ts +14 -3
  130. package/src/swift-submit.ts +2 -1
  131. package/src/swift-toolchain.ts +5 -2
  132. package/src/swift-wasm-prune.ts +10 -2
  133. package/src/turbo-bundle.ts +20 -1
  134. package/src/turbo-compile.ts +6 -12
  135. package/src/turbo-runtime.lock.json +18 -18
  136. package/src/turbo-source.ts +176 -37
@@ -3,6 +3,7 @@ import { createHash, randomUUID } from 'node:crypto'
3
3
  import fs from 'node:fs'
4
4
  import os from 'node:os'
5
5
  import path from 'node:path'
6
+ import { gunzipSync } from 'node:zlib'
6
7
  import {
7
8
  extractAssetDescriptors,
8
9
  metroAssetScaleFilename,
@@ -255,8 +256,12 @@ export async function runPackage(args: string[]): Promise<void> {
255
256
  platform === 'android' ? 'android' : 'ios',
256
257
  (await detectBundleModeFromText(source)) === 'production' ? 'Release' : 'Debug',
257
258
  )
259
+ // gzip assets (the swift icu data) ship inflated, so a launch never
260
+ // inflates them in javascript on the tenant's startup thread
258
261
  for (const asset of nativeBundleAssets(natives))
259
- route('/' + asset.path, asset.bytes, asset.contentType)
262
+ if (asset.contentType === 'application/gzip')
263
+ route('/' + asset.path, gunzipSync(asset.bytes), 'application/octet-stream')
264
+ else route('/' + asset.path, asset.bytes, asset.contentType)
260
265
  source = insertNativeBundleFooters(source, natives, (file) => '/' + file).source
261
266
  return produceConfiguredBundle(
262
267
  source,
@@ -13,7 +13,7 @@ import fs from 'fs'
13
13
  // so the CLI can change it even when the daemon isn't running.
14
14
  import { compareSemver } from '@contrast/runtime-delivery'
15
15
  import { WebSocket } from 'ws'
16
- import { verifyCliCompanion } from '../../src/cli-runtime'
16
+ import { ensureCliCompanion } from '../../src/cli-runtime'
17
17
  import {
18
18
  ensureRnxHome,
19
19
  readActiveRuntime,
@@ -125,7 +125,7 @@ async function runtimeInstall(args: string[], opts: RuntimeOptions) {
125
125
  }
126
126
 
127
127
  async function activateVersion(version: string) {
128
- verifyCliCompanion(runtimeDir(version))
128
+ await ensureCliCompanion(runtimeDir(version))
129
129
  writeActiveRuntime(version)
130
130
  console.log(` active: ${version}`)
131
131
  // a running daemon reads the active file on every new sim and lockfile
@@ -38,7 +38,7 @@ export const OUTBOUND_ENDPOINTS: Record<string, OutboundEndpointDeclaration> = {
38
38
  runtime_delivery: {
39
39
  category: 'runtime-delivery',
40
40
  destination:
41
- 'https://peachsim.com/runtimes/manifest.json and selected runtime tarball; with `peach desktop install --native`, https://r2.rnxsim.com/releases/native/<channel>/ manifest and versioned host zip',
41
+ "https://peachsim.com/runtimes/manifest.json and selected runtime tarball, plus this CLI release's companion from https://r2.rnxsim.com/rnx-cli/companions/ when the runtime predates it; with `peach desktop install --native`, https://r2.rnxsim.com/releases/native/<channel>/ manifest and versioned host zip",
42
42
  preConsent: true,
43
43
  payload: 'HTTP runtime or desktop host version request; no project or app data',
44
44
  },
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1813 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1813 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1813 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1813 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1813 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
package/dist-lib/beta.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1813 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
package/dist-lib/beta.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1813 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/beta.ts
4
4
  var IS_BETA = true;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1813 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1813 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1813 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/bridge-contract.ts
4
4
  var SIM_LONG_PRESS_MAX_MS = 5e3;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1813 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1813 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/bridge-contract.ts
4
4
  var REFUSED_PERFORM_STEP_TYPES = [