peachsim 0.1.2502 → 0.1.2504

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 (133) hide show
  1. package/cli/commands/serve.ts +18 -3
  2. package/dist-lib/agent-daemon-client.cjs +1 -1
  3. package/dist-lib/agent-events.cjs +1 -1
  4. package/dist-lib/attached-projects.cjs +1 -1
  5. package/dist-lib/auth/shared-session.cjs +1 -1
  6. package/dist-lib/backend-origin.cjs +1 -1
  7. package/dist-lib/beta.cjs +1 -1
  8. package/dist-lib/beta.mjs +2 -2
  9. package/dist-lib/bridge-constants.cjs +1 -1
  10. package/dist-lib/bridge-contract-input.cjs +1 -1
  11. package/dist-lib/bridge-contract-input.mjs +5 -5
  12. package/dist-lib/bridge-contract.cjs +1 -1
  13. package/dist-lib/bridge-contract.mjs +3 -3
  14. package/dist-lib/bundle-channel.cjs +36 -24
  15. package/dist-lib/capture-contract.cjs +1 -1
  16. package/dist-lib/capture-contract.mjs +3 -3
  17. package/dist-lib/cloud-contract.cjs +1 -1
  18. package/dist-lib/cloud-contract.mjs +3 -3
  19. package/dist-lib/cloud-test-args.cjs +1 -1
  20. package/dist-lib/cloud-test-args.mjs +2 -2
  21. package/dist-lib/cloud.cjs +1 -1
  22. package/dist-lib/cloud.mjs +7 -7
  23. package/dist-lib/config.cjs +1 -1
  24. package/dist-lib/config.mjs +5 -5
  25. package/dist-lib/detox/index.cjs +1 -1
  26. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  27. package/dist-lib/esm-chunks/{acorn-HRFUCXR5.mjs → acorn-DZ3FZPN5.mjs} +3 -3
  28. package/dist-lib/esm-chunks/{chunk-GX7N2SW5.mjs → chunk-23JMWKCM.mjs} +43 -31
  29. package/dist-lib/esm-chunks/{chunk-AYFVZGCF.mjs → chunk-2QUL4MCM.mjs} +1 -1
  30. package/dist-lib/esm-chunks/{chunk-CMDNKJOI.mjs → chunk-2RTG4NLY.mjs} +1 -1
  31. package/dist-lib/esm-chunks/{chunk-Z7ADEKCT.mjs → chunk-6KM6PV76.mjs} +1 -1
  32. package/dist-lib/esm-chunks/{chunk-V6YLFISL.mjs → chunk-6LORNFLE.mjs} +1 -1
  33. package/dist-lib/esm-chunks/{chunk-37O42K5V.mjs → chunk-7DCP3FDN.mjs} +2 -2
  34. package/dist-lib/esm-chunks/{chunk-NIMWWDYK.mjs → chunk-AL5BXTCH.mjs} +5 -5
  35. package/dist-lib/esm-chunks/{chunk-6EI5ZYVR.mjs → chunk-B36QTJ72.mjs} +1 -1
  36. package/dist-lib/esm-chunks/{chunk-YOTWZURB.mjs → chunk-GCZZ3VUR.mjs} +5 -5
  37. package/dist-lib/esm-chunks/{chunk-Y65Y3AJJ.mjs → chunk-GOQF3FW2.mjs} +1 -1
  38. package/dist-lib/esm-chunks/{chunk-6J4R7OWH.mjs → chunk-HCFG4HWL.mjs} +1 -1
  39. package/dist-lib/esm-chunks/{chunk-QIB2DK6I.mjs → chunk-HRCV7O2I.mjs} +1 -1
  40. package/dist-lib/esm-chunks/{chunk-FMJEMRVE.mjs → chunk-MM6J7OJS.mjs} +4 -4
  41. package/dist-lib/esm-chunks/{chunk-PKKP4XUA.mjs → chunk-NPJJ4J5F.mjs} +1 -1
  42. package/dist-lib/esm-chunks/{chunk-IYXN7AG2.mjs → chunk-O7RM7JLW.mjs} +1 -1
  43. package/dist-lib/esm-chunks/{chunk-OLSMOR2Y.mjs → chunk-OO5NYSIB.mjs} +3 -3
  44. package/dist-lib/esm-chunks/{chunk-KW4JXYU3.mjs → chunk-PCUCYGKF.mjs} +1 -1
  45. package/dist-lib/esm-chunks/{chunk-PUITEIXR.mjs → chunk-Q7U2B5QU.mjs} +1 -1
  46. package/dist-lib/esm-chunks/{chunk-TTYGOV2S.mjs → chunk-TQ7XDRKN.mjs} +1 -1
  47. package/dist-lib/esm-chunks/{chunk-RRWBXVXP.mjs → chunk-UQQ2HW3S.mjs} +1 -1
  48. package/dist-lib/esm-chunks/{chunk-I4MZA236.mjs → chunk-W7PZ7UZP.mjs} +1 -1
  49. package/dist-lib/esm-chunks/{metro-layout-parser-BWNZDYPD.mjs → metro-layout-parser-AAZ5CCHO.mjs} +3 -3
  50. package/dist-lib/esm-chunks/{swift-package-prebuilt-UPNUH62D.mjs → swift-package-prebuilt-6QS5B4RC.mjs} +10 -10
  51. package/dist-lib/esm-chunks/{swift-sdk-app-module-R3I5TJ3L.mjs → swift-sdk-app-module-XOLLBEZA.mjs} +13 -13
  52. package/dist-lib/esm-chunks/{swift-sdk-image-GY7JFP4D.mjs → swift-sdk-image-WU5X25ZM.mjs} +13 -13
  53. package/dist-lib/esm-chunks/{swift-sdk-image-producer-JDBFLCAV.mjs → swift-sdk-image-producer-GSO6UW57.mjs} +4 -4
  54. package/dist-lib/expo-swift-bundle.cjs +35 -23
  55. package/dist-lib/expo-swift-metadata.cjs +1 -1
  56. package/dist-lib/expo-swift-metadata.mjs +7 -7
  57. package/dist-lib/home-paths.cjs +1 -1
  58. package/dist-lib/host/bridge-host.cjs +24 -37
  59. package/dist-lib/host/fetch-proxy-handler.cjs +4 -4
  60. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  61. package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
  62. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  63. package/dist-lib/host/websocket-proxy.cjs +1 -1
  64. package/dist-lib/index.cjs +1 -1
  65. package/dist-lib/kotlin-host.cjs +1 -1
  66. package/dist-lib/menu.cjs +1 -1
  67. package/dist-lib/menu.mjs +3 -3
  68. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  69. package/dist-lib/metro-fingerprint-registry.mjs +3 -3
  70. package/dist-lib/metro-production-bundle.cjs +1 -1
  71. package/dist-lib/metro-production-bundle.mjs +4 -4
  72. package/dist-lib/native-app-identity-project.cjs +2 -2
  73. package/dist-lib/native-app-identity-project.mjs +15 -15
  74. package/dist-lib/native-app-identity.cjs +1 -1
  75. package/dist-lib/native-app-identity.mjs +6 -6
  76. package/dist-lib/native-firebase-metadata.cjs +1 -1
  77. package/dist-lib/native-firebase-metadata.mjs +3 -3
  78. package/dist-lib/pdfium-raster.cjs +1 -1
  79. package/dist-lib/pdfium-raster.mjs +2 -2
  80. package/dist-lib/plist.cjs +1 -1
  81. package/dist-lib/plist.mjs +3 -3
  82. package/dist-lib/profiles.cjs +1 -1
  83. package/dist-lib/public-brand.cjs +1 -1
  84. package/dist-lib/public-origins-lib-esm.json +79 -79
  85. package/dist-lib/public-origins-lib.json +69 -69
  86. package/dist-lib/react-native-host-modules.cjs +1 -1
  87. package/dist-lib/react-native-host-modules.mjs +2 -2
  88. package/dist-lib/reap-browser.cjs +1 -1
  89. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  90. package/dist-lib/sdk.cjs +1 -1
  91. package/dist-lib/sdk.mjs +7 -7
  92. package/dist-lib/skills.cjs +24 -37
  93. package/dist-lib/swift-compile.cjs +33 -21
  94. package/dist-lib/swift-compile.mjs +10 -10
  95. package/dist-lib/swift-package.cjs +1 -1
  96. package/dist-lib/swift-package.mjs +3 -3
  97. package/dist-lib/swift-submit.cjs +1 -1
  98. package/dist-lib/swift-submit.mjs +5 -5
  99. package/dist-lib/swift-svg-raster.cjs +1 -1
  100. package/dist-lib/swift-svg-raster.mjs +2 -2
  101. package/dist-lib/swift-toolchain.cjs +1 -1
  102. package/dist-lib/swift.cjs +1 -1
  103. package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
  104. package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
  105. package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
  106. package/dist-lib/vendor/@xmldom/xmldom.cjs +1 -1
  107. package/dist-lib/vendor/acorn.cjs +1 -1
  108. package/dist-lib/vendor/bplist-parser.cjs +1 -1
  109. package/dist-lib/vendor/ignore.cjs +1 -1
  110. package/dist-lib/vendor/magic-string.cjs +1 -1
  111. package/dist-lib/vendor/plist.cjs +1 -1
  112. package/dist-lib/vendor/smol-toml.cjs +1 -1
  113. package/dist-lib/vendor/stream-json.cjs +1 -1
  114. package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
  115. package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
  116. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
  117. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
  118. package/dist-lib/vendor/sucrase.cjs +1 -1
  119. package/dist-lib/vendor/terser.cjs +1 -1
  120. package/dist-lib/vendor/valibot.cjs +1 -1
  121. package/dist-lib/vendor/ws.cjs +1 -1
  122. package/dist-lib/vendor/zod.cjs +1 -1
  123. package/dist-lib/worklet-executable.cjs +1 -1
  124. package/dist-lib/worklet-executable.mjs +3 -3
  125. package/dist-types/packages/peach-engine/src/demo/demo-bundle-platform.d.ts +2 -1
  126. package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +1 -0
  127. package/dist-types/packages/peach-engine/src/render-worker/compositor-surface-host.d.ts +2 -1
  128. package/dist-types/packages/peach-engine/src/render-worker/native-widget-host.d.ts +1 -0
  129. package/dist-types/packages/peach-globals/src/bundle-mode-url.d.ts +3 -0
  130. package/package.json +2 -1
  131. package/src/node-tenant-artifact.ts +17 -0
  132. package/src/swift-compiler-digest.ts +1 -0
  133. package/src/swift-guest-dyld-functions.ts +21 -33
@@ -9,6 +9,7 @@
9
9
  // daemon installation is handled by `peach daemon install`.
10
10
 
11
11
  import { spawn } from 'node:child_process'
12
+ import { readFile } from 'node:fs/promises'
12
13
  import { basename, join, resolve } from 'node:path'
13
14
  import { createInterface } from 'node:readline'
14
15
  import {
@@ -23,6 +24,10 @@ import {
23
24
  rnxHomeDir,
24
25
  } from '../../src/home-paths'
25
26
  import { SootSimBridgeHost } from '../../src/host/bridge-host'
27
+ import {
28
+ nodeTenantArtifactName,
29
+ resolveNodeTenantBundleMode,
30
+ } from '../../src/node-tenant-artifact'
26
31
  import { findMonorepoRoot, resolveDevCheckoutRuntimeRoot } from '../../src/runtime-assets'
27
32
  import {
28
33
  DEV_BUILD_REBUILD_COMMAND,
@@ -91,11 +96,17 @@ examples:
91
96
  if (!app || app.startsWith('-')) throw new Error(`${args[index]} requires a file`)
92
97
  const root = findMonorepoRoot()
93
98
  if (!root) throw new Error(`${args[index]} requires a source checkout`)
99
+ const appFile = resolve(app)
94
100
  const nodeArgs = [...args]
95
- nodeArgs.splice(index, 2, metro ? '--bundle' : '--app', resolve(app))
101
+ nodeArgs.splice(index, 2, metro ? '--bundle' : '--app', appFile)
96
102
  if (opts.port !== undefined && !args.includes('--port')) {
97
103
  nodeArgs.push('--port', String(opts.port))
98
104
  }
105
+ const bundleUrlIndex = nodeArgs.indexOf('--bundle-url')
106
+ const bundleUrl = bundleUrlIndex === -1 ? undefined : nodeArgs[bundleUrlIndex + 1]
107
+ const bundleMode = metro
108
+ ? await resolveNodeTenantBundleMode(await readFile(appFile, 'utf8'), bundleUrl)
109
+ : null
99
110
  const streamIndex = nodeArgs.indexOf(STREAM_FLAG)
100
111
  const nameIndex = nodeArgs.indexOf('--name')
101
112
  const explicitName =
@@ -118,11 +129,15 @@ examples:
118
129
  }
119
130
  let program: string
120
131
  let launchArgs: string[]
121
- if (metro) {
132
+ if (bundleMode) {
122
133
  program = 'node'
123
134
  launchArgs = [
124
135
  '--optimize-for-size',
125
- join(root, 'packages/peachsim/dist-node-tenant/node-tenant.mjs'),
136
+ join(
137
+ root,
138
+ 'packages/peachsim/dist-node-tenant',
139
+ nodeTenantArtifactName(bundleMode),
140
+ ),
126
141
  ...nodeArgs,
127
142
  ]
128
143
  } else {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2502 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2504 | (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.2502 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2504 | (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.2502 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2504 | (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.2502 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2504 | (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.2502 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2504 | (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.2502 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2504 | (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,5 +1,5 @@
1
- /*! peach v0.1.2502 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
- import "./esm-chunks/chunk-6J4R7OWH.mjs";
1
+ /*! peach v0.1.2504 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
+ import "./esm-chunks/chunk-HCFG4HWL.mjs";
3
3
 
4
4
  // src/beta.ts
5
5
  var IS_BETA = true;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2502 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2504 | (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.2502 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2504 | (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.2502 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2504 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  BridgeInputError,
4
4
  SEMANTIC_WAIT_MAX_TIMEOUT_MS,
@@ -17,10 +17,10 @@ import {
17
17
  parseSemanticWaitOptions,
18
18
  parseStateOptions,
19
19
  parseTapTarget
20
- } from "./esm-chunks/chunk-OLSMOR2Y.mjs";
21
- import "./esm-chunks/chunk-IYXN7AG2.mjs";
22
- import "./esm-chunks/chunk-6EI5ZYVR.mjs";
23
- import "./esm-chunks/chunk-6J4R7OWH.mjs";
20
+ } from "./esm-chunks/chunk-OO5NYSIB.mjs";
21
+ import "./esm-chunks/chunk-O7RM7JLW.mjs";
22
+ import "./esm-chunks/chunk-B36QTJ72.mjs";
23
+ import "./esm-chunks/chunk-HCFG4HWL.mjs";
24
24
  export {
25
25
  BridgeInputError,
26
26
  SEMANTIC_WAIT_MAX_TIMEOUT_MS,
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2502 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2504 | (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.2502 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2504 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  HEADLESS_TENANT_FETCH_HUNG_MARKER,
4
4
  REFUSED_PERFORM_STEP_TYPES,
@@ -13,8 +13,8 @@ import {
13
13
  readyProbeHasContent,
14
14
  readyProbeIsReady,
15
15
  refusedPerformStepReason
16
- } from "./esm-chunks/chunk-IYXN7AG2.mjs";
17
- import "./esm-chunks/chunk-6J4R7OWH.mjs";
16
+ } from "./esm-chunks/chunk-O7RM7JLW.mjs";
17
+ import "./esm-chunks/chunk-HCFG4HWL.mjs";
18
18
  export {
19
19
  HEADLESS_TENANT_FETCH_HUNG_MARKER,
20
20
  REFUSED_PERFORM_STEP_TYPES,
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2502 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2504 | (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;
@@ -27560,20 +27560,18 @@ function appendLazyPlacement(bytes, functions, table) {
27560
27560
  }
27561
27561
  const types2 = entries(bytes, section2(1), (r) => {
27562
27562
  if (r.byte() !== 96) throw new Error("native image has a non-function type");
27563
- for (let side = 0; side < 2; side++)
27564
- for (let n = r.u(); n > 0; n--) skipValueType(r);
27563
+ for (let side = 0; side < 2; side++) for (let n = r.u(); n > 0; n--) skipValueType(r);
27565
27564
  });
27566
27565
  const declared = entries(bytes, section2(3), (r) => r.u());
27567
27566
  const bodies = entries(bytes, section2(10), (r) => r.skip(r.u()));
27568
27567
  const exports2 = entries(bytes, section2(7), readExport);
27569
- const elements = section2(9);
27570
- let segments = 0;
27571
- let existing = new Uint8Array();
27572
- if (elements) {
27573
- const header = wasmReader(bytes, elements.start);
27574
- segments = header.u();
27575
- existing = bytes.subarray(header.at, elements.end);
27576
- }
27568
+ const elements = entries(bytes, section2(9), skipElementSegment);
27569
+ const placementIndex = lastTableElement(elements) + 1;
27570
+ elements.splice(
27571
+ placementIndex,
27572
+ 0,
27573
+ Buffer.from([1, 0, ...uleb2(functions.length), ...functions.flatMap(uleb2)])
27574
+ );
27577
27575
  const place2 = imports2.functions + declared.length;
27578
27576
  const instructions = [
27579
27577
  0,
@@ -27586,7 +27584,7 @@ function appendLazyPlacement(bytes, functions, table) {
27586
27584
  1,
27587
27585
  252,
27588
27586
  12,
27589
- ...uleb2(segments),
27587
+ ...uleb2(placementIndex),
27590
27588
  0,
27591
27589
  11
27592
27590
  ];
@@ -27617,13 +27615,7 @@ function appendLazyPlacement(bytes, functions, table) {
27617
27615
  Buffer.from([...uleb2(name3.length), ...name3, 0, ...uleb2(place2)])
27618
27616
  ])
27619
27617
  ],
27620
- [
27621
- 9,
27622
- vectorSection(9, segments + 1, [
27623
- existing,
27624
- Buffer.from([1, 0, ...uleb2(functions.length), ...functions.flatMap(uleb2)])
27625
- ])
27626
- ],
27618
+ [9, vectorSection(9, elements.length, elements)],
27627
27619
  [
27628
27620
  10,
27629
27621
  vectorSection(10, bodies.length + 1, [
@@ -27634,6 +27626,25 @@ function appendLazyPlacement(bytes, functions, table) {
27634
27626
  ])
27635
27627
  );
27636
27628
  }
27629
+ function skipConstant(r) {
27630
+ for (let op = r.byte(); op !== 11; op = r.byte()) {
27631
+ if (op === 65 || op === 66) r.s();
27632
+ else if (op === 35 || op === 210) r.u();
27633
+ else if (op === 208) r.s();
27634
+ else if (![106, 107, 108, 124, 125, 126].includes(op))
27635
+ throw new Error(`unsupported constant expression op ${op}`);
27636
+ }
27637
+ }
27638
+ function skipElementSegment(r) {
27639
+ const flags = r.u();
27640
+ if (flags > 7) throw new Error(`unsupported element segment flags ${flags}`);
27641
+ if ((flags & 3) === 2) r.u();
27642
+ if (!(flags & 1)) skipConstant(r);
27643
+ if (flags & 3) skipValueType(r);
27644
+ for (let count = r.u(); count > 0; count--)
27645
+ if (flags & 4) skipConstant(r);
27646
+ else r.u();
27647
+ }
27637
27648
  function placeGuestLazyFunctions(bytes, lazy) {
27638
27649
  const sections = wasmSections(bytes);
27639
27650
  const lazyIndex = new Map(lazy.map((name3, index) => [name3, index]));
@@ -27662,7 +27673,7 @@ function placeGuestLazyFunctions(bytes, lazy) {
27662
27673
  function guestLazyExports(lazy) {
27663
27674
  return lazy.map((name3) => JSON.stringify(`--export=${name3}`)).join("\n");
27664
27675
  }
27665
- var uleb2, SECTION_ORDER, readExport;
27676
+ var uleb2, SECTION_ORDER, readExport, lastTableElement;
27666
27677
  var init_swift_guest_dyld_functions = __esm({
27667
27678
  "src/swift-guest-dyld-functions.ts"() {
27668
27679
  "use strict";
@@ -27684,6 +27695,7 @@ var init_swift_guest_dyld_functions = __esm({
27684
27695
  r.byte();
27685
27696
  r.u();
27686
27697
  };
27698
+ lastTableElement = (segments) => segments.findLastIndex((segment3) => (segment3[0] & 3) !== 3);
27687
27699
  }
27688
27700
  });
27689
27701
 
@@ -45043,7 +45055,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
45043
45055
  REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
45044
45056
  MULTI_MANIFEST_VERSION = 76;
45045
45057
  SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
45046
- compilerSourceDigest = true ? "dcb10780c2128e802cb01490773135728a8f6323775ba7d295276f1ff5980521" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
45058
+ compilerSourceDigest = true ? "731f2ab475e957b034eb629f3431c7172f2987db133cc905bd6c31bb292281e9" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
45047
45059
  nativeCxxCompilerFlags = ["-fno-cxx-modules"];
45048
45060
  MODULE_MAP_RESPONSE_FILE_RUN = 16;
45049
45061
  cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
@@ -85478,7 +85490,7 @@ var init_swift_standin_digest = __esm({
85478
85490
  STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
85479
85491
  SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
85480
85492
  standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
85481
- STANDIN_SOURCE_DIGEST = true ? "57af28cb35bec2dbd23d4897de909295bc016a4678c51d6b33b09a4f7cb5555d" : standinSourceDigest();
85493
+ STANDIN_SOURCE_DIGEST = true ? "3735beeccdcef74cf568bb5b4615abc1e8441941ca0a94f1d50c1af680d0be0e" : standinSourceDigest();
85482
85494
  }
85483
85495
  });
85484
85496
 
@@ -101537,7 +101549,7 @@ var init_nitro_superset = __esm({
101537
101549
  init_nitroContract();
101538
101550
  init_swift_standin_digest();
101539
101551
  NITRO_SUPERSET_ENTRY_NAME = "superset";
101540
- NITRO_COMPILER_DIGEST = true ? "568659da45e509ebe0d33a3d422a79d991f51eda24b0d27dee0250dafd7b466b" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
101552
+ NITRO_COMPILER_DIGEST = true ? "0f401b7d360c4274c740ab4e9d1071dde90f60c025a1f7d6718cfc4d5db2983f" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
101541
101553
  nitroSupersetLock = parseLock(nitro_superset_lock_default);
101542
101554
  nitroSupersetKey = (inputs2) => nativeEntryKey({ ...inputs2, compiler: NITRO_COMPILER_DIGEST });
101543
101555
  published = /* @__PURE__ */ new Map();
@@ -102404,7 +102416,7 @@ var init_expo_eager_seam_contract = __esm({
102404
102416
 
102405
102417
  // src/expo-native-compiler-digest.ts
102406
102418
  function expoNativeCompilerDigestValue() {
102407
- return true ? "a7ff5300bae931ebf21e26dfdcbb52702d82a51a01d0c4f3067a193fa1503a1d" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
102419
+ return true ? "2c4ef7845391113c7191f8c696c1d469827cf46a1de7f0754cbd74d95c7c6478" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
102408
102420
  }
102409
102421
  var import_node_crypto77;
102410
102422
  var init_expo_native_compiler_digest = __esm({
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2502 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2504 | (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.2502 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2504 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  RNX_SCREEN_CAPTURE_VERSION,
4
4
  describeInvalidScreenCapture,
@@ -10,8 +10,8 @@ import {
10
10
  rnxRasterFrames,
11
11
  rnxRasterRegionRequests,
12
12
  selectRnxRasterNodeIds
13
- } from "./esm-chunks/chunk-PKKP4XUA.mjs";
14
- import "./esm-chunks/chunk-6J4R7OWH.mjs";
13
+ } from "./esm-chunks/chunk-NPJJ4J5F.mjs";
14
+ import "./esm-chunks/chunk-HCFG4HWL.mjs";
15
15
  export {
16
16
  RNX_SCREEN_CAPTURE_VERSION,
17
17
  describeInvalidScreenCapture,
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2502 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2504 | (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.2502 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2504 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  AGENT_IDENTITY_MAX_CHARS,
4
4
  RNX_CLOUD_ALL_COMMAND_SCOPES,
@@ -31,8 +31,8 @@ import {
31
31
  readRnxLaunchUrl,
32
32
  rnxCloudCommandScope,
33
33
  rnxCloudScopesAllowCommand
34
- } from "./esm-chunks/chunk-Z7ADEKCT.mjs";
35
- import "./esm-chunks/chunk-6J4R7OWH.mjs";
34
+ } from "./esm-chunks/chunk-6KM6PV76.mjs";
35
+ import "./esm-chunks/chunk-HCFG4HWL.mjs";
36
36
  export {
37
37
  AGENT_IDENTITY_MAX_CHARS,
38
38
  RNX_CLOUD_ALL_COMMAND_SCOPES,
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2502 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2504 | (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,5 +1,5 @@
1
- /*! peach v0.1.2502 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
- import "./esm-chunks/chunk-6J4R7OWH.mjs";
1
+ /*! peach v0.1.2504 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
+ import "./esm-chunks/chunk-HCFG4HWL.mjs";
3
3
 
4
4
  // src/cloud-test-args.ts
5
5
  var CLOUD_TEST_ARGS_MAX_COUNT = 32;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2502 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2504 | (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,10 +1,10 @@
1
- /*! peach v0.1.2502 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2504 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  sleep
4
- } from "./esm-chunks/chunk-QIB2DK6I.mjs";
4
+ } from "./esm-chunks/chunk-HRCV7O2I.mjs";
5
5
  import {
6
6
  isRnxScreenCapture
7
- } from "./esm-chunks/chunk-PKKP4XUA.mjs";
7
+ } from "./esm-chunks/chunk-NPJJ4J5F.mjs";
8
8
  import {
9
9
  RNX_CLOUD_COMMAND_TYPES,
10
10
  RNX_CLOUD_MAX_ARTIFACT_BYTES,
@@ -14,16 +14,16 @@ import {
14
14
  isRnxCloudCommandType,
15
15
  rnxCloudCommandScope,
16
16
  rnxCloudScopesAllowCommand
17
- } from "./esm-chunks/chunk-Z7ADEKCT.mjs";
17
+ } from "./esm-chunks/chunk-6KM6PV76.mjs";
18
18
  import {
19
19
  rnxPublicBrand
20
- } from "./esm-chunks/chunk-KW4JXYU3.mjs";
20
+ } from "./esm-chunks/chunk-PCUCYGKF.mjs";
21
21
  import {
22
22
  isRecord
23
- } from "./esm-chunks/chunk-6EI5ZYVR.mjs";
23
+ } from "./esm-chunks/chunk-B36QTJ72.mjs";
24
24
  import {
25
25
  __publicField
26
- } from "./esm-chunks/chunk-6J4R7OWH.mjs";
26
+ } from "./esm-chunks/chunk-HCFG4HWL.mjs";
27
27
 
28
28
  // src/backend-origin.ts
29
29
  var NativeURL = globalThis.URL;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2502 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2504 | (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,14 +1,14 @@
1
- /*! peach v0.1.2502 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2504 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  isValidRuntimeVersion
4
- } from "./esm-chunks/chunk-AYFVZGCF.mjs";
4
+ } from "./esm-chunks/chunk-2QUL4MCM.mjs";
5
5
  import {
6
6
  findBundleFooter
7
- } from "./esm-chunks/chunk-CMDNKJOI.mjs";
7
+ } from "./esm-chunks/chunk-2RTG4NLY.mjs";
8
8
  import {
9
9
  isRecord
10
- } from "./esm-chunks/chunk-6EI5ZYVR.mjs";
11
- import "./esm-chunks/chunk-6J4R7OWH.mjs";
10
+ } from "./esm-chunks/chunk-B36QTJ72.mjs";
11
+ import "./esm-chunks/chunk-HCFG4HWL.mjs";
12
12
 
13
13
  // src/nativeViewSourceContract.ts
14
14
  function isNativeViewSource(value) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2502 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2504 | (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.2502 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2504 | (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.2502 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2504 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  Node,
4
4
  Parser,
@@ -22,8 +22,8 @@ import {
22
22
  types,
23
23
  types$1,
24
24
  version
25
- } from "./chunk-Y65Y3AJJ.mjs";
26
- import "./chunk-6J4R7OWH.mjs";
25
+ } from "./chunk-GOQF3FW2.mjs";
26
+ import "./chunk-HCFG4HWL.mjs";
27
27
  export {
28
28
  Node,
29
29
  Parser,