peachsim 0.1.1716 → 0.1.1738

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 (282) hide show
  1. package/README.md +21 -3
  2. package/cli/app-bundle-resources.ts +2 -1
  3. package/cli/app-fonts.ts +4 -4
  4. package/cli/app-splash.ts +4 -4
  5. package/cli/app-stubs.ts +17 -0
  6. package/cli/command-registry.ts +1 -0
  7. package/cli/commands/control.ts +83 -822
  8. package/cli/commands/coverage-swift.ts +112 -4
  9. package/cli/commands/daemon.ts +8 -0
  10. package/cli/commands/detox.ts +3 -0
  11. package/cli/commands/doctor.ts +19 -2
  12. package/cli/commands/inspect/actions.ts +74 -14
  13. package/cli/commands/inspect/core.ts +5 -1
  14. package/cli/commands/inspect/settling.ts +5 -2
  15. package/cli/commands/inspect/wait-ready.ts +6 -0
  16. package/cli/commands/inspect.ts +48 -45
  17. package/cli/commands/kotlin.ts +12 -2
  18. package/cli/commands/package.ts +760 -0
  19. package/cli/commands/serve.ts +6 -0
  20. package/cli/commands/shell-url.ts +838 -0
  21. package/cli/commands/swift.ts +42 -102
  22. package/cli/commands/test.ts +20 -0
  23. package/cli/commands/upload.ts +1 -1
  24. package/cli/device-option.ts +1 -1
  25. package/cli/main.ts +13 -1
  26. package/cli/native-input.ts +199 -0
  27. package/cli/outbound-endpoints.ts +26 -1
  28. package/cli/packaged-app-launcher.ts +95 -0
  29. package/cli/scene-video.ts +36 -12
  30. package/detox/index.ts +196 -24
  31. package/dist-lib/agent-daemon-client.cjs +1 -1
  32. package/dist-lib/agent-events.cjs +1 -1
  33. package/dist-lib/attached-projects.cjs +5 -2
  34. package/dist-lib/auth/shared-session.cjs +5 -2
  35. package/dist-lib/backend-origin.cjs +1 -1
  36. package/dist-lib/beta.cjs +1 -1
  37. package/dist-lib/beta.mjs +1 -1
  38. package/dist-lib/bridge-constants.cjs +1 -1
  39. package/dist-lib/bridge-contract-input.cjs +1 -1
  40. package/dist-lib/bridge-contract-input.mjs +1 -1
  41. package/dist-lib/bridge-contract.cjs +1 -1
  42. package/dist-lib/bridge-contract.mjs +1 -1
  43. package/dist-lib/bundle-channel.cjs +39889 -31873
  44. package/dist-lib/capture-contract.cjs +1 -1
  45. package/dist-lib/capture-contract.mjs +1 -1
  46. package/dist-lib/cloud-contract.cjs +1 -1
  47. package/dist-lib/cloud-contract.mjs +1 -1
  48. package/dist-lib/cloud-test-args.cjs +1 -1
  49. package/dist-lib/cloud-test-args.mjs +1 -1
  50. package/dist-lib/cloud.cjs +1 -1
  51. package/dist-lib/cloud.mjs +1 -1
  52. package/dist-lib/config.cjs +1 -1
  53. package/dist-lib/config.mjs +1 -1
  54. package/dist-lib/detox/index.cjs +195 -63
  55. package/dist-lib/dev-bundle-resolution.cjs +14 -13
  56. package/dist-lib/expo-swift-bundle.cjs +18507 -11835
  57. package/dist-lib/expo-swift-metadata.cjs +4 -1
  58. package/dist-lib/expo-swift-metadata.mjs +3 -1
  59. package/dist-lib/home-paths.cjs +27 -3
  60. package/dist-lib/host/bridge-host.cjs +28373 -24090
  61. package/dist-lib/host/fetch-proxy-handler.cjs +235 -225
  62. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  63. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  64. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  65. package/dist-lib/host/websocket-proxy.cjs +1 -1
  66. package/dist-lib/index.cjs +915 -399
  67. package/dist-lib/jump-to-source-babel.cjs +1 -1
  68. package/dist-lib/jump-to-source-native.cjs +1 -1
  69. package/dist-lib/kotlin-host.cjs +335 -47
  70. package/dist-lib/menu.cjs +13 -1
  71. package/dist-lib/menu.mjs +13 -1
  72. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  73. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  74. package/dist-lib/metro-production-bundle.cjs +1 -1
  75. package/dist-lib/metro-production-bundle.mjs +1 -1
  76. package/dist-lib/metro.cjs +918 -411
  77. package/dist-lib/native-app-identity-project.cjs +703 -283
  78. package/dist-lib/native-app-identity-project.mjs +500 -87
  79. package/dist-lib/native-app-identity.cjs +13 -2
  80. package/dist-lib/native-app-identity.mjs +13 -2
  81. package/dist-lib/native-firebase-metadata.cjs +1 -1
  82. package/dist-lib/native-firebase-metadata.mjs +1 -1
  83. package/dist-lib/plist.cjs +1 -1
  84. package/dist-lib/plist.mjs +1 -1
  85. package/dist-lib/profiles.cjs +5 -2
  86. package/dist-lib/public-brand.cjs +1 -1
  87. package/dist-lib/public-origins-lib-esm.json +28 -23
  88. package/dist-lib/public-origins-lib.json +418 -224
  89. package/dist-lib/react-native-host-modules.cjs +35 -2
  90. package/dist-lib/react-native-host-modules.mjs +35 -2
  91. package/dist-lib/reap-browser.cjs +12 -4
  92. package/dist-lib/scripts/dev-server-scanner.cjs +15 -8
  93. package/dist-lib/sdk.cjs +17 -7
  94. package/dist-lib/sdk.mjs +16 -7
  95. package/dist-lib/skills.cjs +44825 -29141
  96. package/dist-lib/swift-compile.cjs +616 -400
  97. package/dist-lib/swift-compile.mjs +528 -315
  98. package/dist-lib/swift-package.cjs +1 -1
  99. package/dist-lib/swift-package.mjs +1 -1
  100. package/dist-lib/swift-submit.cjs +2 -2
  101. package/dist-lib/swift-submit.mjs +2 -2
  102. package/dist-lib/swift-toolchain.cjs +105 -17
  103. package/dist-lib/swift.cjs +1 -1
  104. package/dist-lib/vite-swift.cjs +4660 -2252
  105. package/dist-lib/vite.cjs +248 -234
  106. package/dist-lib/worklet-executable.cjs +1 -1
  107. package/dist-lib/worklet-executable.mjs +1 -1
  108. package/dist-types/packages/peach-compat/src/stubs/native-seams/react-native-cookies.d.ts +17 -8
  109. package/dist-types/packages/peach-engine/src/engine/canvaskit-renderer.d.ts +1 -0
  110. package/dist-types/packages/peach-engine/src/engine/font-config.d.ts +7 -4
  111. package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +9 -6
  112. package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +0 -5
  113. package/dist-types/packages/peach-engine/src/engine/memory-counts.d.ts +11 -1
  114. package/dist-types/packages/peach-engine/src/engine/node.d.ts +5 -12
  115. package/dist-types/packages/peach-engine/src/engine/render-damage.d.ts +2 -2
  116. package/dist-types/packages/peach-engine/src/engine/text-first-baseline.d.ts +5 -0
  117. package/dist-types/packages/peach-engine/src/engine/text-paragraph.d.ts +1 -0
  118. package/dist-types/packages/peach-engine/src/engine/types.d.ts +3 -0
  119. package/dist-types/packages/peach-engine/src/native-preview-bundle.d.ts +2 -0
  120. package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +9 -0
  121. package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +3 -0
  122. package/dist-types/packages/peach-engine/src/render-worker/native-ui-commandContract.d.ts +1 -1
  123. package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +7 -2
  124. package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +5 -0
  125. package/dist-types/packages/peach-engine/src/render-worker/tree-sync-port.d.ts +1 -1
  126. package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +36 -2
  127. package/dist-types/packages/peach-engine/src/shell-events.d.ts +1 -0
  128. package/dist-types/packages/peach-globals/src/audioBridgeContract.d.ts +5 -0
  129. package/dist-types/packages/peach-globals/src/index.d.ts +1 -1
  130. package/dist-types/packages/peach-globals/src/keyboardBridgeContract.d.ts +11 -0
  131. package/dist-types/packages/peach-globals/src/shellBridgeContract.d.ts +1 -0
  132. package/dist-types/packages/peach-globals/src/testBridgeContract.d.ts +9 -2
  133. package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -0
  134. package/kotlin/README.md +3 -0
  135. package/kotlin/sdk.tar.gz +0 -0
  136. package/package.json +1 -1
  137. package/runtime-companion.json +1 -1
  138. package/scripts/dev-server-scanner.ts +12 -25
  139. package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccount.h +55 -0
  140. package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountCredential.h +35 -0
  141. package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountStore.h +94 -0
  142. package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountType.h +53 -0
  143. package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACError.h +37 -0
  144. package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/Accounts.h +13 -0
  145. package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/AccountsDefines.h +13 -0
  146. package/sdk/ios/System/Library/Frameworks/Accounts.framework/Modules/module.modulemap +5 -0
  147. package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASFoundation.h +52 -0
  148. package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASWebAuthenticationSession.h +128 -0
  149. package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASWebAuthenticationSessionCallback.h +35 -0
  150. package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Headers/AuthenticationServices.h +3 -0
  151. package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Modules/module.modulemap +5 -0
  152. package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFHTTPMessage.h +724 -0
  153. package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h +4 -0
  154. package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetworkDefs.h +27 -0
  155. package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Modules/module.modulemap +5 -0
  156. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h +1301 -0
  157. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h +3 -1
  158. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager.h +21 -50
  159. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLRegion.h +6 -6
  160. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes +58 -3
  161. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +711 -46
  162. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h +12 -0
  163. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h +23 -0
  164. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +7 -9
  165. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIOrientation.h +14 -0
  166. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStringDrawing.h +12 -0
  167. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIView.h +14 -0
  168. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewAnimating.h +12 -0
  169. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h +16 -0
  170. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h +2 -0
  171. package/sdk/ios/usr/include/ConditionalMacros.h +619 -0
  172. package/sdk/ios/usr/include/module.modulemap +1 -0
  173. package/sdk/ios/usr/include/objc/objc-sync.h +59 -0
  174. package/sdk/ios/usr/include/os/signpost.h +414 -0
  175. package/sdk/ios/usr/include/os.modulemap +10 -0
  176. package/sdk/ios/usr/include/sys/cdefs.h +5 -0
  177. package/sdk/ios/usr/include/sys/ioccom.h +99 -0
  178. package/sdk/ios/usr/include/sys/syslog.h +236 -0
  179. package/sdk/ios/usr/include/syslog.h +24 -0
  180. package/sdk/ios/wasm/include/errno.h +4 -20
  181. package/sdk/ios/wasm/include/fcntl.h +4 -2
  182. package/sdk/ios/wasm/include/pthread.h +3 -0
  183. package/sdk/ios/wasm/include/setjmp.h +57 -0
  184. package/sdk/ios/wasm/include/stdio.h +24 -0
  185. package/sdk/ios/wasm/include/stdlib.h +32 -7
  186. package/sdk/ios/wasm/include/sys/file.h +7 -0
  187. package/sdk/ios/wasm/include/sys/ioctl.h +6 -0
  188. package/sdk/ios/wasm/include/sys/resource.h +2 -2
  189. package/sdk/ios/wasm/include/sys/syscall.h +9 -0
  190. package/sdk/ios/wasm/include/sys/time.h +10 -0
  191. package/sdk/ios/wasm/include/unistd.h +12 -3
  192. package/sdk/native-hashes.json +4 -3
  193. package/skills/contrast/SKILL.md +2 -1
  194. package/skills/peach-debug/SKILL.md +0 -1
  195. package/skills/peach-perf/SKILL.md +0 -1
  196. package/skills/peach-setup/SKILL.md +0 -1
  197. package/skills/peach-test/SKILL.md +7 -4
  198. package/skills/peach-visual/SKILL.md +0 -1
  199. package/src/admitted-mac-build.ts +3 -0
  200. package/src/android-app-identity.ts +18 -0
  201. package/src/android-autolinking.ts +1 -0
  202. package/src/android-bridge-packages.ts +279 -0
  203. package/src/android-root-module.ts +9 -9
  204. package/src/appPackageContract.ts +83 -0
  205. package/src/bridge-contract.ts +50 -0
  206. package/src/bundle-channel.mjs +41 -6
  207. package/src/cli-runtime.ts +9 -5
  208. package/src/dev-bundle-resolution.ts +7 -27
  209. package/src/dom-source-reference.ts +15 -0
  210. package/src/expo-discovery-cache.ts +134 -26
  211. package/src/expo-kotlin-host.ts +97 -26
  212. package/src/expo-manifest-body.ts +33 -0
  213. package/src/expo-native-workspace.ts +158 -38
  214. package/src/expo-swift-host.ts +350 -75
  215. package/src/expo-swift-ready.ts +5 -1
  216. package/src/expoKotlinContract.ts +12 -2
  217. package/src/expoSwiftContract.ts +10 -0
  218. package/src/generated/swift-c-predefines.json +1 -1
  219. package/src/home-paths.ts +41 -2
  220. package/src/host/app-package-handler.ts +47 -0
  221. package/src/host/bridge-host.ts +8 -0
  222. package/src/host/fetch-proxy-handler.ts +10 -0
  223. package/src/host/staged-host-files.ts +18 -0
  224. package/src/index.ts +3 -0
  225. package/src/kotlin-host.ts +225 -48
  226. package/src/kotlin-instance-source.ts +126 -0
  227. package/src/kotlinSdkContract.ts +2 -1
  228. package/src/menu.ts +14 -0
  229. package/src/native-app-identity-project.ts +7 -2
  230. package/src/native-app-identity.ts +11 -0
  231. package/src/native-firebase-config.ts +24 -1
  232. package/src/native-prebuilt.ts +154 -0
  233. package/src/nitro-adapter.lock.json +270 -270
  234. package/src/nitro-adapter.ts +56 -50
  235. package/src/nitro-bundle.ts +92 -74
  236. package/src/nitro-compile.ts +45 -14
  237. package/src/nitro-dependencies.ts +63 -46
  238. package/src/nitro-source.ts +64 -26
  239. package/src/nitroAdapterContract.ts +146 -98
  240. package/src/nitroContract.ts +71 -21
  241. package/src/react-native-bridge-modules.ts +70 -42
  242. package/src/react-native-host-modules.ts +34 -1
  243. package/src/reactNativeConfigurationContract.ts +14 -0
  244. package/src/reap-browser.ts +15 -3
  245. package/src/sdk.ts +5 -0
  246. package/src/settingsContract.ts +38 -1
  247. package/src/sim-client.ts +4 -1
  248. package/src/storageSnapshotContract.ts +32 -81
  249. package/src/swift-compile.ts +268 -89
  250. package/src/swift-coverage/indexdump.ts +22 -6
  251. package/src/swift-coverage/indexing.ts +4 -4
  252. package/src/swift-coverage/provenance.ts +1 -0
  253. package/src/swift-coverage/sdk.ts +104 -20
  254. package/src/swift-coverage/types.ts +34 -0
  255. package/src/swift-coverage/xcode-asset-symbols.ts +922 -0
  256. package/src/swift-coverage/xcode-assets.ts +89 -131
  257. package/src/swift-coverage/xcode.ts +10 -2
  258. package/src/swift-cxx-reachable.ts +2 -1
  259. package/src/swift-distribution.lock.json +20 -16
  260. package/src/swift-host.ts +98 -22
  261. package/src/swift-icu.ts +1 -1
  262. package/src/swift-link-roots.ts +118 -0
  263. package/src/swift-objc-compile.ts +144 -22
  264. package/src/swift-objc-import.ts +6 -0
  265. package/src/swift-objc-standin.ts +2 -14
  266. package/src/swift-package-manifest.ts +14 -6
  267. package/src/swift-packages.ts +75 -11
  268. package/src/swift-pdf-raster.ts +1 -0
  269. package/src/swift-root-lock.ts +17 -1
  270. package/src/swift-source-pods.ts +2 -10
  271. package/src/swift-standin-emit.ts +597 -57
  272. package/src/swift-standins.ts +599 -56
  273. package/src/swift-submit.ts +7 -1
  274. package/src/swift-toolchain.ts +140 -17
  275. package/src/turbo-bundle.ts +81 -0
  276. package/src/turbo-codegen-intake.ts +91 -0
  277. package/src/turbo-compile.ts +120 -0
  278. package/src/turbo-runtime.lock.json +69 -0
  279. package/src/turbo-source.ts +754 -0
  280. package/src/vite-plugin-one.ts +17 -12
  281. package/src/vite-plugin.ts +28 -15
  282. package/src/xcode-project.ts +223 -22
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1716 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1738 | (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;
@@ -234,6 +234,217 @@ var import_path = __toESM(require("path"), 1);
234
234
 
235
235
  // ../peach-compat/src/lazy-stub-patterns.ts
236
236
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
237
+
238
+ // ../peach-compat/src/version-range.ts
239
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
240
+ var ANY_BOUNDS = {
241
+ lower: null,
242
+ lowerInclusive: false,
243
+ upper: null,
244
+ upperInclusive: false
245
+ };
246
+ var COMPARATOR = /\s*(?:[<>]=?|[=^~])?\s*[^\s]+/g;
247
+ function compareVersions(left, right) {
248
+ if (left.major !== right.major) return left.major < right.major ? -1 : 1;
249
+ if (left.minor !== right.minor) return left.minor < right.minor ? -1 : 1;
250
+ if (left.patch !== right.patch) return left.patch < right.patch ? -1 : 1;
251
+ if (left.prerelease.length === 0) return right.prerelease.length === 0 ? 0 : 1;
252
+ if (right.prerelease.length === 0) return -1;
253
+ const length = Math.max(left.prerelease.length, right.prerelease.length);
254
+ for (let index = 0; index < length; index++) {
255
+ const leftPart = left.prerelease[index];
256
+ const rightPart = right.prerelease[index];
257
+ if (leftPart === void 0) return -1;
258
+ if (rightPart === void 0) return 1;
259
+ if (leftPart === rightPart) continue;
260
+ const leftNumeric = /^\d+$/.test(leftPart);
261
+ const rightNumeric = /^\d+$/.test(rightPart);
262
+ if (leftNumeric && rightNumeric) return Number(leftPart) < Number(rightPart) ? -1 : 1;
263
+ if (leftNumeric !== rightNumeric) return leftNumeric ? -1 : 1;
264
+ return leftPart < rightPart ? -1 : 1;
265
+ }
266
+ return 0;
267
+ }
268
+ function parseComparator(input) {
269
+ const token = input.trim();
270
+ if (token === "" || token === "*" || token === "x" || token === "X") {
271
+ return ANY_BOUNDS;
272
+ }
273
+ const match = /^(>=|<=|>|<|=|\^|~)?\s*v?(\d+|[xX*])(?:\.(\d+|[xX*]))?(?:\.(\d+|[xX*]))?(?:-([0-9A-Za-z.-]+))?(?:\+[0-9A-Za-z.-]+)?$/.exec(
274
+ token
275
+ );
276
+ if (!match) return null;
277
+ const operator = match[1] ?? "=";
278
+ const wildcard = (part) => part === void 0 || part === "x" || part === "X" || part === "*";
279
+ if (wildcard(match[2])) return ANY_BOUNDS;
280
+ const major = Number(match[2]);
281
+ const minor = wildcard(match[3]) ? null : Number(match[3]);
282
+ const patch = wildcard(match[4]) ? null : Number(match[4]);
283
+ const floor = {
284
+ major,
285
+ minor: minor ?? 0,
286
+ patch: patch ?? 0,
287
+ prerelease: match[5] ? match[5].split(".") : []
288
+ };
289
+ if (operator === ">") {
290
+ return { ...ANY_BOUNDS, lower: floor, lowerInclusive: false };
291
+ }
292
+ if (operator === ">=") {
293
+ return { ...ANY_BOUNDS, lower: floor, lowerInclusive: true };
294
+ }
295
+ if (operator === "<") {
296
+ return { ...ANY_BOUNDS, upper: floor, upperInclusive: false };
297
+ }
298
+ if (operator === "<=") {
299
+ return { ...ANY_BOUNDS, upper: floor, upperInclusive: true };
300
+ }
301
+ let upper;
302
+ if (operator === "^") {
303
+ upper = major !== 0 ? { major: major + 1, minor: 0, patch: 0, prerelease: [] } : (minor ?? 0) !== 0 || minor === null ? { major: 0, minor: (minor ?? 0) + 1, patch: 0, prerelease: [] } : { major: 0, minor: 0, patch: (patch ?? 0) + 1, prerelease: [] };
304
+ } else if (operator === "~") {
305
+ upper = minor === null ? { major: major + 1, minor: 0, patch: 0, prerelease: [] } : { major, minor: minor + 1, patch: 0, prerelease: [] };
306
+ } else if (minor === null) {
307
+ upper = { major: major + 1, minor: 0, patch: 0, prerelease: [] };
308
+ } else if (patch === null) {
309
+ upper = { major, minor: minor + 1, patch: 0, prerelease: [] };
310
+ } else {
311
+ return {
312
+ lower: floor,
313
+ lowerInclusive: true,
314
+ upper: floor,
315
+ upperInclusive: true
316
+ };
317
+ }
318
+ return {
319
+ lower: floor,
320
+ lowerInclusive: true,
321
+ upper,
322
+ upperInclusive: false
323
+ };
324
+ }
325
+ function stricterLower(left, right) {
326
+ if (!left.lower) return { lower: right.lower, lowerInclusive: right.lowerInclusive };
327
+ if (!right.lower) return { lower: left.lower, lowerInclusive: left.lowerInclusive };
328
+ const order = compareVersions(left.lower, right.lower);
329
+ if (order > 0) return { lower: left.lower, lowerInclusive: left.lowerInclusive };
330
+ if (order < 0) return { lower: right.lower, lowerInclusive: right.lowerInclusive };
331
+ return {
332
+ lower: left.lower,
333
+ lowerInclusive: left.lowerInclusive && right.lowerInclusive
334
+ };
335
+ }
336
+ function stricterUpper(left, right) {
337
+ if (!left.upper) return { upper: right.upper, upperInclusive: right.upperInclusive };
338
+ if (!right.upper) return { upper: left.upper, upperInclusive: left.upperInclusive };
339
+ const order = compareVersions(left.upper, right.upper);
340
+ if (order < 0) return { upper: left.upper, upperInclusive: left.upperInclusive };
341
+ if (order > 0) return { upper: right.upper, upperInclusive: right.upperInclusive };
342
+ return {
343
+ upper: left.upper,
344
+ upperInclusive: left.upperInclusive && right.upperInclusive
345
+ };
346
+ }
347
+ function hasValues(bounds) {
348
+ if (!bounds.lower || !bounds.upper) return true;
349
+ const order = compareVersions(bounds.lower, bounds.upper);
350
+ return order < 0 || order === 0 && bounds.lowerInclusive && bounds.upperInclusive;
351
+ }
352
+ function parseRange(input) {
353
+ const groups = input.split("||");
354
+ const parsed = [];
355
+ for (const group of groups) {
356
+ const tokens = group.trim().match(COMPARATOR) ?? [];
357
+ if (tokens.length === 0) return null;
358
+ let bounds = ANY_BOUNDS;
359
+ for (const token of tokens) {
360
+ const comparator = parseComparator(token);
361
+ if (!comparator) return null;
362
+ bounds = {
363
+ ...stricterLower(bounds, comparator),
364
+ ...stricterUpper(bounds, comparator)
365
+ };
366
+ }
367
+ if (!hasValues(bounds)) return null;
368
+ parsed.push(bounds);
369
+ }
370
+ return parsed;
371
+ }
372
+ function containsBounds(container, contained) {
373
+ if (container.lower) {
374
+ if (!contained.lower) return false;
375
+ const order = compareVersions(container.lower, contained.lower);
376
+ if (order > 0) return false;
377
+ if (order === 0 && contained.lowerInclusive && !container.lowerInclusive) return false;
378
+ }
379
+ if (container.upper) {
380
+ if (!contained.upper) return false;
381
+ const order = compareVersions(container.upper, contained.upper);
382
+ if (order < 0) return false;
383
+ if (order === 0 && contained.upperInclusive && !container.upperInclusive) return false;
384
+ }
385
+ return true;
386
+ }
387
+ function overlapsBounds(left, right) {
388
+ const intersection = {
389
+ ...stricterLower(left, right),
390
+ ...stricterUpper(left, right)
391
+ };
392
+ return hasValues(intersection);
393
+ }
394
+ function resolveCompatVersionRange(availableRegistryRanges, declaredVersion) {
395
+ const declaredGroups = parseRange(declaredVersion);
396
+ const registryGroups = availableRegistryRanges.map((range) => ({
397
+ range,
398
+ bounds: parseRange(range)
399
+ }));
400
+ if (!declaredGroups || registryGroups.some((candidate) => !candidate.bounds)) {
401
+ return {
402
+ status: "unresolved",
403
+ declaredVersion,
404
+ availableRegistryRanges
405
+ };
406
+ }
407
+ let selectedRange = null;
408
+ for (const declared of declaredGroups) {
409
+ const containing = registryGroups.filter(
410
+ (candidate2) => candidate2.bounds?.length === 1 && containsBounds(candidate2.bounds[0], declared)
411
+ );
412
+ if (containing.length !== 1) {
413
+ const overlaps = registryGroups.some(
414
+ (candidate2) => candidate2.bounds?.some((bounds) => overlapsBounds(bounds, declared))
415
+ );
416
+ return {
417
+ status: overlaps ? "unresolved" : "unmatched",
418
+ declaredVersion,
419
+ availableRegistryRanges
420
+ };
421
+ }
422
+ const candidate = containing[0].range;
423
+ if (selectedRange && selectedRange !== candidate) {
424
+ return {
425
+ status: "unresolved",
426
+ declaredVersion,
427
+ availableRegistryRanges
428
+ };
429
+ }
430
+ selectedRange = candidate;
431
+ }
432
+ if (!selectedRange) {
433
+ return {
434
+ status: "unresolved",
435
+ declaredVersion,
436
+ availableRegistryRanges
437
+ };
438
+ }
439
+ return {
440
+ status: "matched",
441
+ declaredVersion,
442
+ registryRange: selectedRange,
443
+ availableRegistryRanges
444
+ };
445
+ }
446
+
447
+ // ../peach-compat/src/lazy-stub-patterns.ts
237
448
  var LAZY_STUB_PATTERNS = [
238
449
  "@10play/tentap-editor",
239
450
  "@adobe/react-native-aepcore",
@@ -289,13 +500,10 @@ var LAZY_STUB_PATTERNS = [
289
500
  "@shopify/checkout-sheet-kit",
290
501
  "@stream-io/video-react-native-sdk",
291
502
  "@stripe/stripe-identity-react-native",
292
- "@stripe/stripe-react-native",
293
- "@stripe/stripe-react-native/lib/typescript/src/types",
294
503
  "@stripe/stripe-terminal-react-native",
295
504
  "@supersami/rn-foreground-service",
296
505
  "@survicate/react-native-survicate",
297
506
  "@twilio/voice-react-native-sdk",
298
- "@walletconnect/react-native-compat",
299
507
  "@xmartlabs/react-native-line",
300
508
  "@zoontek/react-native-navigation-bar",
301
509
  "clevertap-react-native",
@@ -307,9 +515,7 @@ var LAZY_STUB_PATTERNS = [
307
515
  "expo-modules-core",
308
516
  "expo-superwall",
309
517
  "freerasp-react-native",
310
- "klaviyo-react-native-sdk",
311
518
  "llama.rn",
312
- "mixpanel-react-native",
313
519
  "newrelic-react-native-agent",
314
520
  "realm",
315
521
  "react-native-a11y",
@@ -321,7 +527,6 @@ var LAZY_STUB_PATTERNS = [
321
527
  "react-native-android-location-enabler",
322
528
  "react-native-animateable-text",
323
529
  "react-native-app-clip",
324
- "react-native-appsflyer",
325
530
  "react-native-avoid-softinput",
326
531
  "react-native-azure-auth",
327
532
  "react-native-background-actions",
@@ -330,7 +535,6 @@ var LAZY_STUB_PATTERNS = [
330
535
  "react-native-bluetooth-classic",
331
536
  "react-native-bluetooth-state-manager",
332
537
  "react-native-bottom-tabs",
333
- "react-native-branch",
334
538
  "react-native-camera-kit",
335
539
  "react-native-change-icon",
336
540
  "react-native-charts-wrapper",
@@ -368,7 +572,6 @@ var LAZY_STUB_PATTERNS = [
368
572
  "react-native-moengage",
369
573
  "react-native-navigation-mode",
370
574
  "react-native-network-info",
371
- "react-native-nitro-haptics",
372
575
  "react-native-otp-verify",
373
576
  "react-native-passkey",
374
577
  "react-native-payments",
@@ -389,6 +592,7 @@ var LAZY_STUB_PATTERNS = [
389
592
  "react-native-restart-newarch",
390
593
  "react-native-screenguard",
391
594
  "react-native-screens",
595
+ "react-native-screens/components/Screen",
392
596
  "react-native-screenshot-prevent",
393
597
  "react-native-select-contact",
394
598
  "react-native-send-intent",
@@ -1260,7 +1464,6 @@ var NATIVE_STUB_PACKAGE_NAMES = [
1260
1464
  "@callstack/timezone-hermes-fix",
1261
1465
  "@candlefinance/faster-image",
1262
1466
  "@candlefinance/haptics",
1263
- "@clerk/expo",
1264
1467
  "@clerk/expo-passkeys",
1265
1468
  "@cometchat/chat-uikit-react-native",
1266
1469
  "@computools/react-native-dynamic-app-icon",
@@ -1296,6 +1499,7 @@ var NATIVE_STUB_PACKAGE_NAMES = [
1296
1499
  "@flyskywhy/react-native-gcanvas",
1297
1500
  "@fugood/react-native-audio-pcm-stream",
1298
1501
  "@fullstory/react-native",
1502
+ "@g4rb4g3/react-native-carplay",
1299
1503
  "@gabriel-sisjr/react-native-background-location",
1300
1504
  "@generac/react-native-local-network-permission",
1301
1505
  "@giphy/react-native-sdk",
@@ -1303,6 +1507,7 @@ var NATIVE_STUB_PACKAGE_NAMES = [
1303
1507
  "@goliapkg/sentori-react-native",
1304
1508
  "@google/react-native-make-payment",
1305
1509
  "@googlemaps/react-native-navigation-sdk",
1510
+ "@gutenye/ocr-react-native",
1306
1511
  "@haroldtran/react-native-pax",
1307
1512
  "@hot-updater/react-native",
1308
1513
  "@huymobile/react-native-sms-retriever-nitro-module",
@@ -1431,6 +1636,7 @@ var NATIVE_STUB_PACKAGE_NAMES = [
1431
1636
  "@rn-org/react-native-geofencing",
1432
1637
  "@rn-org/react-native-shortcuts",
1433
1638
  "@rnmapbox/maps",
1639
+ "@rntp/player",
1434
1640
  "@rnw-community/react-native-payments",
1435
1641
  "@rocket.chat/mobile-crypto",
1436
1642
  "@roman.sytnyk/blur-app-in-recents",
@@ -1908,6 +2114,7 @@ var NATIVE_STUB_PACKAGE_NAMES = [
1908
2114
  "react-native-nfc-manager",
1909
2115
  "react-native-nitro-ark",
1910
2116
  "react-native-nitro-audio-manager",
2117
+ "react-native-nitro-base64",
1911
2118
  "react-native-nitro-buffer",
1912
2119
  "react-native-nitro-cloud-uploader",
1913
2120
  "react-native-nitro-cookies",
@@ -2212,7 +2419,7 @@ var NATIVE_RUNTIME_PACKAGE_NAMES = [
2212
2419
  "@valora/react-native-keychain",
2213
2420
  "react-native-app-control",
2214
2421
  "react-native-blue-crypto",
2215
- "react-native-nitro-base64",
2422
+ "react-native-dynamic-theme",
2216
2423
  "react-native-nitro-gzip",
2217
2424
  "react-native-sectioned-slider"
2218
2425
  ];
@@ -2475,6 +2682,10 @@ var SOOTSIM_COMPAT_WRAPPER_REAL_PACKAGES = {
2475
2682
  specifier: "@peach-internal/expo-platform",
2476
2683
  packageName: "expo-modules-core/build/Platform.js"
2477
2684
  },
2685
+ expoLegacyEventEmitter: {
2686
+ specifier: "@peach-internal/expo-legacy-event-emitter",
2687
+ packageName: "expo-modules-core/build/LegacyEventEmitter.js"
2688
+ },
2478
2689
  expoSharedObjectHook: {
2479
2690
  specifier: "@peach-internal/expo-shared-object-hook",
2480
2691
  packageName: "expo-modules-core/build/hooks/useReleasingSharedObject.js"
@@ -3078,217 +3289,6 @@ var COMPAT_STUBS = {
3078
3289
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3079
3290
  var import_node_fs = __toESM(require("node:fs"), 1);
3080
3291
  var import_node_path = __toESM(require("node:path"), 1);
3081
-
3082
- // ../peach-compat/src/version-range.ts
3083
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3084
- var ANY_BOUNDS = {
3085
- lower: null,
3086
- lowerInclusive: false,
3087
- upper: null,
3088
- upperInclusive: false
3089
- };
3090
- var COMPARATOR = /\s*(?:[<>]=?|[=^~])?\s*[^\s]+/g;
3091
- function compareVersions(left, right) {
3092
- if (left.major !== right.major) return left.major < right.major ? -1 : 1;
3093
- if (left.minor !== right.minor) return left.minor < right.minor ? -1 : 1;
3094
- if (left.patch !== right.patch) return left.patch < right.patch ? -1 : 1;
3095
- if (left.prerelease.length === 0) return right.prerelease.length === 0 ? 0 : 1;
3096
- if (right.prerelease.length === 0) return -1;
3097
- const length = Math.max(left.prerelease.length, right.prerelease.length);
3098
- for (let index = 0; index < length; index++) {
3099
- const leftPart = left.prerelease[index];
3100
- const rightPart = right.prerelease[index];
3101
- if (leftPart === void 0) return -1;
3102
- if (rightPart === void 0) return 1;
3103
- if (leftPart === rightPart) continue;
3104
- const leftNumeric = /^\d+$/.test(leftPart);
3105
- const rightNumeric = /^\d+$/.test(rightPart);
3106
- if (leftNumeric && rightNumeric) return Number(leftPart) < Number(rightPart) ? -1 : 1;
3107
- if (leftNumeric !== rightNumeric) return leftNumeric ? -1 : 1;
3108
- return leftPart < rightPart ? -1 : 1;
3109
- }
3110
- return 0;
3111
- }
3112
- function parseComparator(input) {
3113
- const token = input.trim();
3114
- if (token === "" || token === "*" || token === "x" || token === "X") {
3115
- return ANY_BOUNDS;
3116
- }
3117
- const match = /^(>=|<=|>|<|=|\^|~)?\s*v?(\d+|[xX*])(?:\.(\d+|[xX*]))?(?:\.(\d+|[xX*]))?(?:-([0-9A-Za-z.-]+))?(?:\+[0-9A-Za-z.-]+)?$/.exec(
3118
- token
3119
- );
3120
- if (!match) return null;
3121
- const operator = match[1] ?? "=";
3122
- const wildcard = (part) => part === void 0 || part === "x" || part === "X" || part === "*";
3123
- if (wildcard(match[2])) return ANY_BOUNDS;
3124
- const major = Number(match[2]);
3125
- const minor = wildcard(match[3]) ? null : Number(match[3]);
3126
- const patch = wildcard(match[4]) ? null : Number(match[4]);
3127
- const floor = {
3128
- major,
3129
- minor: minor ?? 0,
3130
- patch: patch ?? 0,
3131
- prerelease: match[5] ? match[5].split(".") : []
3132
- };
3133
- if (operator === ">") {
3134
- return { ...ANY_BOUNDS, lower: floor, lowerInclusive: false };
3135
- }
3136
- if (operator === ">=") {
3137
- return { ...ANY_BOUNDS, lower: floor, lowerInclusive: true };
3138
- }
3139
- if (operator === "<") {
3140
- return { ...ANY_BOUNDS, upper: floor, upperInclusive: false };
3141
- }
3142
- if (operator === "<=") {
3143
- return { ...ANY_BOUNDS, upper: floor, upperInclusive: true };
3144
- }
3145
- let upper;
3146
- if (operator === "^") {
3147
- upper = major !== 0 ? { major: major + 1, minor: 0, patch: 0, prerelease: [] } : (minor ?? 0) !== 0 || minor === null ? { major: 0, minor: (minor ?? 0) + 1, patch: 0, prerelease: [] } : { major: 0, minor: 0, patch: (patch ?? 0) + 1, prerelease: [] };
3148
- } else if (operator === "~") {
3149
- upper = minor === null ? { major: major + 1, minor: 0, patch: 0, prerelease: [] } : { major, minor: minor + 1, patch: 0, prerelease: [] };
3150
- } else if (minor === null) {
3151
- upper = { major: major + 1, minor: 0, patch: 0, prerelease: [] };
3152
- } else if (patch === null) {
3153
- upper = { major, minor: minor + 1, patch: 0, prerelease: [] };
3154
- } else {
3155
- return {
3156
- lower: floor,
3157
- lowerInclusive: true,
3158
- upper: floor,
3159
- upperInclusive: true
3160
- };
3161
- }
3162
- return {
3163
- lower: floor,
3164
- lowerInclusive: true,
3165
- upper,
3166
- upperInclusive: false
3167
- };
3168
- }
3169
- function stricterLower(left, right) {
3170
- if (!left.lower) return { lower: right.lower, lowerInclusive: right.lowerInclusive };
3171
- if (!right.lower) return { lower: left.lower, lowerInclusive: left.lowerInclusive };
3172
- const order = compareVersions(left.lower, right.lower);
3173
- if (order > 0) return { lower: left.lower, lowerInclusive: left.lowerInclusive };
3174
- if (order < 0) return { lower: right.lower, lowerInclusive: right.lowerInclusive };
3175
- return {
3176
- lower: left.lower,
3177
- lowerInclusive: left.lowerInclusive && right.lowerInclusive
3178
- };
3179
- }
3180
- function stricterUpper(left, right) {
3181
- if (!left.upper) return { upper: right.upper, upperInclusive: right.upperInclusive };
3182
- if (!right.upper) return { upper: left.upper, upperInclusive: left.upperInclusive };
3183
- const order = compareVersions(left.upper, right.upper);
3184
- if (order < 0) return { upper: left.upper, upperInclusive: left.upperInclusive };
3185
- if (order > 0) return { upper: right.upper, upperInclusive: right.upperInclusive };
3186
- return {
3187
- upper: left.upper,
3188
- upperInclusive: left.upperInclusive && right.upperInclusive
3189
- };
3190
- }
3191
- function hasValues(bounds) {
3192
- if (!bounds.lower || !bounds.upper) return true;
3193
- const order = compareVersions(bounds.lower, bounds.upper);
3194
- return order < 0 || order === 0 && bounds.lowerInclusive && bounds.upperInclusive;
3195
- }
3196
- function parseRange(input) {
3197
- const groups = input.split("||");
3198
- const parsed = [];
3199
- for (const group of groups) {
3200
- const tokens = group.trim().match(COMPARATOR) ?? [];
3201
- if (tokens.length === 0) return null;
3202
- let bounds = ANY_BOUNDS;
3203
- for (const token of tokens) {
3204
- const comparator = parseComparator(token);
3205
- if (!comparator) return null;
3206
- bounds = {
3207
- ...stricterLower(bounds, comparator),
3208
- ...stricterUpper(bounds, comparator)
3209
- };
3210
- }
3211
- if (!hasValues(bounds)) return null;
3212
- parsed.push(bounds);
3213
- }
3214
- return parsed;
3215
- }
3216
- function containsBounds(container, contained) {
3217
- if (container.lower) {
3218
- if (!contained.lower) return false;
3219
- const order = compareVersions(container.lower, contained.lower);
3220
- if (order > 0) return false;
3221
- if (order === 0 && contained.lowerInclusive && !container.lowerInclusive) return false;
3222
- }
3223
- if (container.upper) {
3224
- if (!contained.upper) return false;
3225
- const order = compareVersions(container.upper, contained.upper);
3226
- if (order < 0) return false;
3227
- if (order === 0 && contained.upperInclusive && !container.upperInclusive) return false;
3228
- }
3229
- return true;
3230
- }
3231
- function overlapsBounds(left, right) {
3232
- const intersection = {
3233
- ...stricterLower(left, right),
3234
- ...stricterUpper(left, right)
3235
- };
3236
- return hasValues(intersection);
3237
- }
3238
- function resolveCompatVersionRange(availableRegistryRanges, declaredVersion) {
3239
- const declaredGroups = parseRange(declaredVersion);
3240
- const registryGroups = availableRegistryRanges.map((range) => ({
3241
- range,
3242
- bounds: parseRange(range)
3243
- }));
3244
- if (!declaredGroups || registryGroups.some((candidate) => !candidate.bounds)) {
3245
- return {
3246
- status: "unresolved",
3247
- declaredVersion,
3248
- availableRegistryRanges
3249
- };
3250
- }
3251
- let selectedRange = null;
3252
- for (const declared of declaredGroups) {
3253
- const containing = registryGroups.filter(
3254
- (candidate2) => candidate2.bounds?.length === 1 && containsBounds(candidate2.bounds[0], declared)
3255
- );
3256
- if (containing.length !== 1) {
3257
- const overlaps = registryGroups.some(
3258
- (candidate2) => candidate2.bounds?.some((bounds) => overlapsBounds(bounds, declared))
3259
- );
3260
- return {
3261
- status: overlaps ? "unresolved" : "unmatched",
3262
- declaredVersion,
3263
- availableRegistryRanges
3264
- };
3265
- }
3266
- const candidate = containing[0].range;
3267
- if (selectedRange && selectedRange !== candidate) {
3268
- return {
3269
- status: "unresolved",
3270
- declaredVersion,
3271
- availableRegistryRanges
3272
- };
3273
- }
3274
- selectedRange = candidate;
3275
- }
3276
- if (!selectedRange) {
3277
- return {
3278
- status: "unresolved",
3279
- declaredVersion,
3280
- availableRegistryRanges
3281
- };
3282
- }
3283
- return {
3284
- status: "matched",
3285
- declaredVersion,
3286
- registryRange: selectedRange,
3287
- availableRegistryRanges
3288
- };
3289
- }
3290
-
3291
- // src/installed-native-build-options.ts
3292
3292
  var RIVE_PACKAGE = "@rive-app/react-native";
3293
3293
  var RIVE_05 = [">=0.5.0 <0.6.0"];
3294
3294
  function missing(error) {
@@ -4441,7 +4441,7 @@ var import_node_module = require("node:module");
4441
4441
  var import_node_path5 = require("node:path");
4442
4442
 
4443
4443
  // runtime-companion.json
4444
- var runtime_companion_default = { abi: 1, sha256: "a0dede25c849ecabd639fbb0a0c4edd8e62a34bf12090932dba19832f2369659", file: "node/cli-a0dede25c849ecabd639fbb0a0c4edd8e62a34bf12090932dba19832f2369659.cjs" };
4444
+ var runtime_companion_default = { abi: 1, sha256: "65f18da220835917c493afae338016e2e9c092419e67b12eb3fb00e389637557", file: "node/cli-65f18da220835917c493afae338016e2e9c092419e67b12eb3fb00e389637557.cjs" };
4445
4445
 
4446
4446
  // src/runtime-assets.ts
4447
4447
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
@@ -4465,10 +4465,13 @@ var import_node_os2 = require("node:os");
4465
4465
  var import_node_path4 = __toESM(require("node:path"), 1);
4466
4466
  var PEACH_HOME_ENV = "PEACH_HOME";
4467
4467
  var ACTIVE_RUNTIME_FILE = "active";
4468
+ function ambientHomeDir() {
4469
+ return import_node_path4.default.join((0, import_node_os2.homedir)(), ".peach");
4470
+ }
4468
4471
  function rnxHomeDir() {
4469
4472
  const override = process.env[PEACH_HOME_ENV];
4470
4473
  if (override && override.length > 0) return import_node_path4.default.resolve(override);
4471
- return import_node_path4.default.join((0, import_node_os2.homedir)(), ".peach");
4474
+ return ambientHomeDir();
4472
4475
  }
4473
4476
  function runtimesDir() {
4474
4477
  return import_node_path4.default.join(rnxHomeDir(), "runtimes");
@@ -4555,7 +4558,8 @@ function verifyCliCompanion(root) {
4555
4558
  var loaded;
4556
4559
  function getCliRuntime() {
4557
4560
  if (loaded) return loaded.runtime;
4558
- const root = resolveDevCheckoutRuntimeAssetRoot() ?? resolveActiveRuntimeRoot();
4561
+ const monorepoRoot = findMonorepoRoot();
4562
+ const root = monorepoRoot ? (0, import_node_path5.join)(monorepoRoot, "public/sootsim") : resolveActiveRuntimeRoot();
4559
4563
  if (!root) throw new Error("No Peach runtime installed; run `peach runtime install`");
4560
4564
  verifyCliCompanion(root);
4561
4565
  const require2 = (0, import_node_module.createRequire)(__sootsim_import_meta_url);
@@ -4893,6 +4897,7 @@ async function proxyUpstream(req, res, upstreamUrl, reportFailure, route) {
4893
4897
  else proxyReq.end(nextBody);
4894
4898
  });
4895
4899
  const proxyRes = await send().finally(() => req.off("aborted", markAborted));
4900
+ upstreamAnswered = true;
4896
4901
  const status = proxyRes.statusCode ?? 502;
4897
4902
  const location = proxyRes.headers.location;
4898
4903
  const hopCookies = [...setCookies, ...proxyRes.headers["set-cookie"] ?? []];
@@ -4938,6 +4943,7 @@ async function proxyUpstream(req, res, upstreamUrl, reportFailure, route) {
4938
4943
  }
4939
4944
  await (0, import_promises3.pipeline)(proxyRes, res);
4940
4945
  };
4946
+ let upstreamAnswered = false;
4941
4947
  let body;
4942
4948
  try {
4943
4949
  if (req.method !== "GET" && req.method !== "HEAD") {
@@ -4952,6 +4958,8 @@ async function proxyUpstream(req, res, upstreamUrl, reportFailure, route) {
4952
4958
  await proxy(upstreamUrl, originalMethod, body, 0, []);
4953
4959
  } catch (err) {
4954
4960
  const norm = normalizeHostname(upstreamUrl.hostname);
4961
+ if (upstreamAnswered && !res.headersSent)
4962
+ console.error(`[peach] fetch proxy could not forward ${upstreamUrl.href}:`, err);
4955
4963
  if (!res.headersSent && isLoopbackHost(norm) && err?.code === "ECONNREFUSED") {
4956
4964
  const altHosts = norm === "::1" ? ["127.0.0.1"] : norm === "127.0.0.1" ? ["[::1]"] : ["[::1]", "127.0.0.1"];
4957
4965
  for (const altHost of altHosts) {
@@ -4979,6 +4987,8 @@ async function proxyUpstream(req, res, upstreamUrl, reportFailure, route) {
4979
4987
  res.end();
4980
4988
  return;
4981
4989
  }
4990
+ if (!(err instanceof Error && "code" in err))
4991
+ console.error("[peach] fetch proxy failed:", err);
4982
4992
  if (req instanceof import_node_http2.Http2ServerRequest)
4983
4993
  req.stream.destroy(new Error("fetch proxy upstream failed", { cause: err }));
4984
4994
  else req.socket.destroy();
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1716 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1738 | (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.1716 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1738 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/host/fetch-proxy-overrides.ts
4
4
  var FETCH_PROXY_NATIVE_USER_AGENT_HEADER = "x-sootsim-native-user-agent";
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1716 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1738 | (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.1716 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1738 | (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;