peachsim 0.1.2531 → 0.1.2533

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 (126) hide show
  1. package/dist-lib/agent-daemon-client.cjs +1 -1
  2. package/dist-lib/agent-events.cjs +1 -1
  3. package/dist-lib/attached-projects.cjs +1 -1
  4. package/dist-lib/auth/shared-session.cjs +1 -1
  5. package/dist-lib/backend-origin.cjs +1 -1
  6. package/dist-lib/beta.cjs +1 -1
  7. package/dist-lib/beta.mjs +2 -2
  8. package/dist-lib/bridge-constants.cjs +1 -1
  9. package/dist-lib/bridge-contract-input.cjs +1 -1
  10. package/dist-lib/bridge-contract-input.mjs +5 -5
  11. package/dist-lib/bridge-contract.cjs +1 -1
  12. package/dist-lib/bridge-contract.mjs +3 -3
  13. package/dist-lib/bundle-channel.cjs +27 -11
  14. package/dist-lib/capture-contract.cjs +1 -1
  15. package/dist-lib/capture-contract.mjs +3 -3
  16. package/dist-lib/cloud-contract.cjs +1 -1
  17. package/dist-lib/cloud-contract.mjs +3 -3
  18. package/dist-lib/cloud-test-args.cjs +1 -1
  19. package/dist-lib/cloud-test-args.mjs +2 -2
  20. package/dist-lib/cloud.cjs +1 -1
  21. package/dist-lib/cloud.mjs +7 -7
  22. package/dist-lib/config.cjs +1 -1
  23. package/dist-lib/config.mjs +5 -5
  24. package/dist-lib/detox/index.cjs +1 -1
  25. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  26. package/dist-lib/esm-chunks/{acorn-NHWX2J24.mjs → acorn-HEC2EHMN.mjs} +3 -3
  27. package/dist-lib/esm-chunks/{chunk-WLZGRQB5.mjs → chunk-2INGY6GA.mjs} +1 -1
  28. package/dist-lib/esm-chunks/{chunk-4KTLY5JC.mjs → chunk-3RUGIIFH.mjs} +5 -5
  29. package/dist-lib/esm-chunks/{chunk-D4NCFDNF.mjs → chunk-4BZJFQDX.mjs} +4 -4
  30. package/dist-lib/esm-chunks/{chunk-F52OCOPH.mjs → chunk-6AOEMSAK.mjs} +1 -1
  31. package/dist-lib/esm-chunks/{chunk-CGW4JC44.mjs → chunk-6YM45CZA.mjs} +1 -1
  32. package/dist-lib/esm-chunks/{chunk-GKJ2T3TK.mjs → chunk-7EOERWQR.mjs} +1 -1
  33. package/dist-lib/esm-chunks/{chunk-EQRWIYYK.mjs → chunk-7OHBGPLV.mjs} +2 -2
  34. package/dist-lib/esm-chunks/{chunk-SBKP3U5X.mjs → chunk-AQQIFDNB.mjs} +1 -1
  35. package/dist-lib/esm-chunks/{chunk-6IEHVC3Z.mjs → chunk-CANULX6T.mjs} +1 -1
  36. package/dist-lib/esm-chunks/{chunk-UUWNV4RM.mjs → chunk-CNZ4D6UQ.mjs} +1 -1
  37. package/dist-lib/esm-chunks/{chunk-INLBW6NG.mjs → chunk-DF36CSI3.mjs} +3 -3
  38. package/dist-lib/esm-chunks/{chunk-SUHGSVF2.mjs → chunk-E7DHIJAF.mjs} +1 -1
  39. package/dist-lib/esm-chunks/{chunk-35N2TDU4.mjs → chunk-GSKOG7ZS.mjs} +1 -1
  40. package/dist-lib/esm-chunks/{chunk-4OMQ2R5V.mjs → chunk-GYRPS3EC.mjs} +1 -1
  41. package/dist-lib/esm-chunks/{chunk-PBWV4H5F.mjs → chunk-HBHGOFEK.mjs} +1 -1
  42. package/dist-lib/esm-chunks/{chunk-LLPNDBX5.mjs → chunk-JO66W6XW.mjs} +35 -19
  43. package/dist-lib/esm-chunks/{chunk-AN4HGYLM.mjs → chunk-KMGYTDFG.mjs} +5 -5
  44. package/dist-lib/esm-chunks/{chunk-H4CMYNNG.mjs → chunk-MU2KBQOY.mjs} +1 -1
  45. package/dist-lib/esm-chunks/{chunk-ROJ76CJT.mjs → chunk-PJ3A56DI.mjs} +1 -1
  46. package/dist-lib/esm-chunks/{chunk-7CZNR5FB.mjs → chunk-TJWREDZY.mjs} +1 -1
  47. package/dist-lib/esm-chunks/{chunk-4EBD4OKW.mjs → chunk-UF3PRTVP.mjs} +1 -1
  48. package/dist-lib/esm-chunks/{metro-layout-parser-K5R2NP2H.mjs → metro-layout-parser-5NOEATD7.mjs} +3 -3
  49. package/dist-lib/esm-chunks/{swift-package-prebuilt-FET7FKFD.mjs → swift-package-prebuilt-ZKOSCUWG.mjs} +10 -10
  50. package/dist-lib/esm-chunks/{swift-sdk-app-module-JQOFDB45.mjs → swift-sdk-app-module-Y4FDNWPC.mjs} +13 -13
  51. package/dist-lib/esm-chunks/{swift-sdk-image-M3EDI6PV.mjs → swift-sdk-image-22TNJ3UT.mjs} +13 -13
  52. package/dist-lib/esm-chunks/{swift-sdk-image-producer-ETQMD57W.mjs → swift-sdk-image-producer-7QESOQEI.mjs} +4 -4
  53. package/dist-lib/expo-swift-bundle.cjs +26 -10
  54. package/dist-lib/expo-swift-metadata.cjs +1 -1
  55. package/dist-lib/expo-swift-metadata.mjs +7 -7
  56. package/dist-lib/home-paths.cjs +1 -1
  57. package/dist-lib/host/bridge-host.cjs +27 -11
  58. package/dist-lib/host/fetch-proxy-handler.cjs +4 -4
  59. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  60. package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
  61. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  62. package/dist-lib/host/websocket-proxy.cjs +1 -1
  63. package/dist-lib/index.cjs +1 -1
  64. package/dist-lib/kotlin-host.cjs +1 -1
  65. package/dist-lib/menu.cjs +1 -1
  66. package/dist-lib/menu.mjs +3 -3
  67. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  68. package/dist-lib/metro-fingerprint-registry.mjs +3 -3
  69. package/dist-lib/metro-production-bundle.cjs +1 -1
  70. package/dist-lib/metro-production-bundle.mjs +4 -4
  71. package/dist-lib/native-app-identity-project.cjs +2 -2
  72. package/dist-lib/native-app-identity-project.mjs +15 -15
  73. package/dist-lib/native-app-identity.cjs +1 -1
  74. package/dist-lib/native-app-identity.mjs +6 -6
  75. package/dist-lib/native-firebase-metadata.cjs +1 -1
  76. package/dist-lib/native-firebase-metadata.mjs +3 -3
  77. package/dist-lib/pdfium-raster.cjs +1 -1
  78. package/dist-lib/pdfium-raster.mjs +2 -2
  79. package/dist-lib/plist.cjs +1 -1
  80. package/dist-lib/plist.mjs +3 -3
  81. package/dist-lib/profiles.cjs +1 -1
  82. package/dist-lib/public-brand.cjs +1 -1
  83. package/dist-lib/public-origins-lib-esm.json +79 -79
  84. package/dist-lib/public-origins-lib.json +69 -69
  85. package/dist-lib/react-native-host-modules.cjs +1 -1
  86. package/dist-lib/react-native-host-modules.mjs +2 -2
  87. package/dist-lib/reap-browser.cjs +1 -1
  88. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  89. package/dist-lib/sdk.cjs +1 -1
  90. package/dist-lib/sdk.mjs +7 -7
  91. package/dist-lib/skills.cjs +27 -11
  92. package/dist-lib/swift-compile.cjs +24 -8
  93. package/dist-lib/swift-compile.mjs +10 -10
  94. package/dist-lib/swift-package.cjs +1 -1
  95. package/dist-lib/swift-package.mjs +3 -3
  96. package/dist-lib/swift-submit.cjs +1 -1
  97. package/dist-lib/swift-submit.mjs +5 -5
  98. package/dist-lib/swift-svg-raster.cjs +1 -1
  99. package/dist-lib/swift-svg-raster.mjs +2 -2
  100. package/dist-lib/swift-toolchain.cjs +1 -1
  101. package/dist-lib/swift.cjs +1 -1
  102. package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
  103. package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
  104. package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
  105. package/dist-lib/vendor/@xmldom/xmldom.cjs +1 -1
  106. package/dist-lib/vendor/acorn.cjs +1 -1
  107. package/dist-lib/vendor/bplist-parser.cjs +1 -1
  108. package/dist-lib/vendor/ignore.cjs +1 -1
  109. package/dist-lib/vendor/magic-string.cjs +1 -1
  110. package/dist-lib/vendor/plist.cjs +1 -1
  111. package/dist-lib/vendor/smol-toml.cjs +1 -1
  112. package/dist-lib/vendor/stream-json.cjs +1 -1
  113. package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
  114. package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
  115. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
  116. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
  117. package/dist-lib/vendor/sucrase.cjs +1 -1
  118. package/dist-lib/vendor/terser.cjs +1 -1
  119. package/dist-lib/vendor/valibot.cjs +1 -1
  120. package/dist-lib/vendor/ws.cjs +1 -1
  121. package/dist-lib/vendor/zod.cjs +1 -1
  122. package/dist-lib/worklet-executable.cjs +1 -1
  123. package/dist-lib/worklet-executable.mjs +3 -3
  124. package/package.json +1 -1
  125. package/src/swift-compile.ts +18 -2
  126. package/src/swift-header-compiler.ts +9 -4
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2531 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2533 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  SWIFT_AUTOLINK_LINKER,
4
4
  SWIFT_CACHE_HOLD_MARKER,
@@ -18,7 +18,7 @@ import {
18
18
  windowAdmission,
19
19
  withSwiftRootLock,
20
20
  writeSwiftAutolinkLinker
21
- } from "./chunk-4EBD4OKW.mjs";
21
+ } from "./chunk-UF3PRTVP.mjs";
22
22
  import {
23
23
  SWIFT_BINARY_TREES_DIR,
24
24
  SWIFT_NATIVE_INPUT_ROOT,
@@ -33,7 +33,7 @@ import {
33
33
  isSwiftResourcePath,
34
34
  isSwiftSourceLinkGraph,
35
35
  swiftProjectFilesProblems
36
- } from "./chunk-GKJ2T3TK.mjs";
36
+ } from "./chunk-7EOERWQR.mjs";
37
37
  import {
38
38
  OBJC_RESOURCE_ACCESSOR_BODY,
39
39
  OBJC_RESOURCE_ACCESSOR_HEADER,
@@ -57,16 +57,16 @@ import {
57
57
  swiftPackagePartition,
58
58
  swiftTargetModuleName,
59
59
  withoutGlogModuleMap
60
- } from "./chunk-7CZNR5FB.mjs";
60
+ } from "./chunk-TJWREDZY.mjs";
61
61
  import {
62
62
  rnxPublicBrand
63
- } from "./chunk-SUHGSVF2.mjs";
63
+ } from "./chunk-E7DHIJAF.mjs";
64
64
  import {
65
65
  isRecord
66
- } from "./chunk-PBWV4H5F.mjs";
66
+ } from "./chunk-HBHGOFEK.mjs";
67
67
  import {
68
68
  __publicField
69
- } from "./chunk-ROJ76CJT.mjs";
69
+ } from "./chunk-PJ3A56DI.mjs";
70
70
 
71
71
  // src/swift-compile.ts
72
72
  import {
@@ -13454,7 +13454,7 @@ async function compileGuestLink(options) {
13454
13454
  };
13455
13455
  const sdk = options.sdkImage;
13456
13456
  const sdkCallers = sdk?.sdkInterface.guestCallers;
13457
- const sdkObjects = sdk ? (await import("./swift-sdk-image-M3EDI6PV.mjs")).readSwiftSdkManifestIndex(sdk).guestObjects : void 0;
13457
+ const sdkObjects = sdk ? (await import("./swift-sdk-image-22TNJ3UT.mjs")).readSwiftSdkManifestIndex(sdk).guestObjects : void 0;
13458
13458
  if (sdk && (!sdkCallers || !sdkObjects))
13459
13459
  throw new Error("the SDK image has no guest link manifest");
13460
13460
  const result = linkPrunedGuestImages({
@@ -13741,7 +13741,7 @@ async function compileGuestLink(options) {
13741
13741
  finishSwiftAppModule,
13742
13742
  linkSwiftAppModule,
13743
13743
  readSwiftSdkUsage
13744
- } = await import("./swift-sdk-app-module-JQOFDB45.mjs");
13744
+ } = await import("./swift-sdk-app-module-Y4FDNWPC.mjs");
13745
13745
  const project = options.project;
13746
13746
  const work = project ? mkdtempSync2(path24.join(directory, "app-module-")) : path24.join(directory, "app-module");
13747
13747
  if (project) chownSync(work, project.uid, project.gid);
@@ -13893,8 +13893,9 @@ var SWIFT_HEADER_COMPILER_WRAPPER = ".build/peach-swiftc";
13893
13893
  var argument = (value) => `'${value.replaceAll("'", `'"'"'`)}'`;
13894
13894
  var client = `const { request } = require('node:http')
13895
13895
  const { spawnSync } = require('node:child_process')
13896
- const { existsSync } = require('node:fs')
13897
- const [socketPath, moduleName, swiftc, receipt, ...args] = process.argv.slice(2)
13896
+ const { existsSync, readFileSync } = require('node:fs')
13897
+ const [socketFile, moduleName, swiftc, receipt, ...args] = process.argv.slice(2)
13898
+ const socketPath = readFileSync(socketFile, 'utf8')
13898
13899
  const body = JSON.stringify(args)
13899
13900
  const notify = (method) => new Promise((resolve, reject) => {
13900
13901
  const req = request({ socketPath, path: '/' + moduleName, method, agent: false }, response => {
@@ -13960,6 +13961,7 @@ async function withSwiftHeaderCompiler(root, toolchainBin, recipe, producers, bu
13960
13961
  const wrapper = path25.join(root, SWIFT_HEADER_COMPILER_WRAPPER);
13961
13962
  const script = path25.join(root, ".build", "peach-swift-header.cjs");
13962
13963
  const checkpoints = path25.join(root, ".build", "peach-swift-header-checkpoints");
13964
+ const socketFile = path25.join(root, ".build", "peach-swift-header-socket");
13963
13965
  mkdirSync7(checkpoints, { recursive: true });
13964
13966
  const swiftc = argument(path25.join(toolchainBin, "swiftc"));
13965
13967
  writeBuildFile(script, client);
@@ -13975,7 +13977,7 @@ async function withSwiftHeaderCompiler(root, toolchainBin, recipe, producers, bu
13975
13977
  "done",
13976
13978
  'case "$compile:$module" in',
13977
13979
  ` ${[...producers.keys()].map((name) => argument(`1:${name}`)).join("|")})`,
13978
- ` ${PEACH_FORKED_SCRIPT_ENV}=1 exec ${argument(process.execPath)} ${argument(script)} "$PEACH_SWIFT_HEADER_SOCKET" "$module" ${swiftc} ${argument(checkpoints)}/"$module" "$@" ;;`,
13980
+ ` ${PEACH_FORKED_SCRIPT_ENV}=1 exec ${argument(process.execPath)} ${argument(script)} ${argument(socketFile)} "$module" ${swiftc} ${argument(checkpoints)}/"$module" "$@" ;;`,
13979
13981
  "esac",
13980
13982
  `exec ${swiftc} "$@"`,
13981
13983
  ""
@@ -14025,10 +14027,12 @@ async function withSwiftHeaderCompiler(root, toolchainBin, recipe, producers, bu
14025
14027
  server.once("error", reject);
14026
14028
  server.listen(socket, resolve);
14027
14029
  });
14028
- return await build({ SWIFT_EXEC: wrapper, PEACH_SWIFT_HEADER_SOCKET: socket });
14030
+ writeFileSync7(socketFile, socket);
14031
+ return await build({ SWIFT_EXEC: wrapper });
14029
14032
  } finally {
14030
14033
  server.close();
14031
14034
  server.closeAllConnections();
14035
+ rmSync6(socketFile, { force: true });
14032
14036
  rmSync6(directory, { recursive: true, force: true });
14033
14037
  }
14034
14038
  }
@@ -15023,7 +15027,11 @@ async function runCompiler(command, args, options, stream = false, quiet) {
15023
15027
  signal?.throwIfAborted();
15024
15028
  const launch = {
15025
15029
  cwd: options.cwd,
15026
- env: { ...swiftEnvironment(options.env), ...options.confined },
15030
+ env: {
15031
+ ...swiftEnvironment(options.env),
15032
+ ...options.temporaryDirectory ? { TMPDIR: options.temporaryDirectory } : {},
15033
+ ...options.confined
15034
+ },
15027
15035
  uid: options.uid,
15028
15036
  gid: options.gid,
15029
15037
  detached: true,
@@ -16243,7 +16251,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
16243
16251
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
16244
16252
  var MULTI_MANIFEST_VERSION = 76;
16245
16253
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
16246
- var compilerSourceDigest = true ? "c1b31f85f0a9aa78c7579b0a943fc4c766dee06eb085e8d3c25166b6c46646cf" : swiftCompilerSourceDigest(import.meta.dirname);
16254
+ var compilerSourceDigest = true ? "adb515f9946182c8d5bc35b2ffeb4698734e2cdf1baad88e2e2d2bf4ea442b24" : swiftCompilerSourceDigest(import.meta.dirname);
16247
16255
  function swiftArtifactHash(input, release, moduleRoot) {
16248
16256
  return swiftCompileInputHash(input, release).update(swiftModuleDigest(moduleRoot)).digest("hex");
16249
16257
  }
@@ -20802,7 +20810,7 @@ async function compileSwiftProjectOnce(sources, options) {
20802
20810
  const distribution = swiftDistributionAt(moduleRoot);
20803
20811
  const mirrorDistribution = options.linkOnly || options.project ? null : distribution;
20804
20812
  if (distribution) refreshSwiftCacheHold(moduleRoot);
20805
- const input = distribution && !options.intermediates ? (await import("./swift-package-prebuilt-FET7FKFD.mjs")).useSwiftPackagePrebuilts(
20813
+ const input = distribution && !options.intermediates ? (await import("./swift-package-prebuilt-ZKOSCUWG.mjs")).useSwiftPackagePrebuilts(
20806
20814
  sources,
20807
20815
  moduleRoot,
20808
20816
  options.toolchainBin
@@ -20816,7 +20824,7 @@ async function compileSwiftProjectOnce(sources, options) {
20816
20824
  multi: compileTargets(input).length > 0
20817
20825
  };
20818
20826
  const sdkModule = options.sdkModule && !options.linkOnly;
20819
- const sdkImage = sdkModule ? await (await import("./swift-sdk-image-M3EDI6PV.mjs")).buildSwiftSdkImage(
20827
+ const sdkImage = sdkModule ? await (await import("./swift-sdk-image-22TNJ3UT.mjs")).buildSwiftSdkImage(
20820
20828
  moduleRoot,
20821
20829
  !!guestGraph,
20822
20830
  distribution ? [] : linkedFrameworkTargets(moduleRoot, input).imports,
@@ -21048,12 +21056,17 @@ sdk module ${sdkImage.key}`).digest("hex") : sourceHash;
21048
21056
  compiler.PEACH_SWIFTC = path32.join(options.toolchainBin, "swiftc");
21049
21057
  }
21050
21058
  const projectProcess = options.project ? prepareSwiftProjectProcess(root, options.project) : void 0;
21059
+ const temporaryDirectory = projectProcess ? void 0 : path32.join(root, ".build", "peach-compiler-tmp");
21051
21060
  const appOptions = projectProcess ? {
21052
21061
  ...buildOptions,
21053
21062
  uid: projectProcess.uid,
21054
21063
  gid: projectProcess.gid,
21055
21064
  confined: { ...projectProcess.env, ...compiler }
21056
- } : { ...buildOptions, env: { ...buildOptions.env, ...compiler } };
21065
+ } : {
21066
+ ...buildOptions,
21067
+ temporaryDirectory,
21068
+ env: { ...buildOptions.env, ...compiler }
21069
+ };
21057
21070
  const unprepared = preparation.targetFailures.map(
21058
21071
  (failure) => `error: target ${failure}`
21059
21072
  );
@@ -21347,6 +21360,7 @@ sdk module ${sdkImage.key}`).digest("hex") : sourceHash;
21347
21360
  runApp
21348
21361
  ) : runApp();
21349
21362
  try {
21363
+ if (temporaryDirectory) mkdirSync8(temporaryDirectory, { recursive: true });
21350
21364
  await compileApp();
21351
21365
  } catch (error) {
21352
21366
  const output2 = outputOf(error);
@@ -21379,6 +21393,8 @@ sdk module ${sdkImage.key}`).digest("hex") : sourceHash;
21379
21393
  );
21380
21394
  }
21381
21395
  } finally {
21396
+ if (temporaryDirectory)
21397
+ rmSync7(temporaryDirectory, { recursive: true, force: true });
21382
21398
  if (options.project) endSwiftProjectProcesses(options.project);
21383
21399
  }
21384
21400
  if (unprepared.length) throw new Error(unprepared.join("\n"));
@@ -21441,7 +21457,7 @@ sdk module ${sdkImage.key}`).digest("hex") : sourceHash;
21441
21457
  if (sdkImage && binding)
21442
21458
  sdkAsset = { key: sdkImage.key, sha256: sdkImage.sha256, binding };
21443
21459
  } else if (sdkImage) {
21444
- const { buildSwiftAppModule } = await import("./swift-sdk-app-module-JQOFDB45.mjs");
21460
+ const { buildSwiftAppModule } = await import("./swift-sdk-app-module-Y4FDNWPC.mjs");
21445
21461
  const binding = await buildSwiftAppModule({
21446
21462
  buildRoot: root,
21447
21463
  toolchainBin: options.toolchainBin,
@@ -1,7 +1,7 @@
1
- /*! peach v0.1.2531 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2533 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  swiftModuleToolchain
4
- } from "./chunk-4KTLY5JC.mjs";
4
+ } from "./chunk-3RUGIIFH.mjs";
5
5
  import {
6
6
  DARWIN_RECORDS_PREFIX,
7
7
  KEEP_WASM_NAMES,
@@ -31,13 +31,13 @@ import {
31
31
  swiftSdkPaths,
32
32
  unslottedFunctions,
33
33
  wasmSections
34
- } from "./chunk-LLPNDBX5.mjs";
34
+ } from "./chunk-JO66W6XW.mjs";
35
35
  import {
36
36
  SWIFT_WASM_TRIPLE,
37
37
  sourceSwiftCheckout,
38
38
  swiftCacheDir,
39
39
  withSwiftRootLock
40
- } from "./chunk-4EBD4OKW.mjs";
40
+ } from "./chunk-UF3PRTVP.mjs";
41
41
 
42
42
  // src/swift-sdk-image.ts
43
43
  import { execFile } from "node:child_process";
@@ -192,7 +192,7 @@ async function buildSwiftSdkImage(moduleRoot, scopedLookups = false, frameworkIm
192
192
  const existing = cached(directory, key);
193
193
  if (existing) return existing;
194
194
  if (!options?.producer && !swiftDistributionAt(moduleRoot) && path.resolve(moduleRoot) === sourceSwiftCheckout() && process.platform === "linux" && process.env.TM_SESSION) {
195
- const { produceSwiftSdkImage } = await import("./swift-sdk-image-producer-ETQMD57W.mjs");
195
+ const { produceSwiftSdkImage } = await import("./swift-sdk-image-producer-7QESOQEI.mjs");
196
196
  await produceSwiftSdkImage({
197
197
  moduleRoot,
198
198
  key,
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2531 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2533 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // ../peach-globals/src/bundle-global-footer.ts
4
4
  function findBundleFooter(source, prefix) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2531 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2533 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  var __create = Object.create;
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2531 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2533 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/swift-package.ts
4
4
  function swiftManifestSettings(target) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2531 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2533 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/swiftTargetContract.ts
4
4
  var SWIFT_WASM_TRIPLE = "wasm64-unknown-wasip1-threads";
@@ -1,5 +1,5 @@
1
- /*! peach v0.1.2531 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
- import "./chunk-ROJ76CJT.mjs";
1
+ /*! peach v0.1.2533 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
+ import "./chunk-PJ3A56DI.mjs";
3
3
 
4
4
  // src/metro-layout-parser.ts
5
5
  var whitespace = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/y;
@@ -8,7 +8,7 @@ var lineBreak = /[\r\n\u2028\u2029]/;
8
8
  var metroLayoutParser;
9
9
  async function loadMetroLayoutParser() {
10
10
  if (metroLayoutParser) return metroLayoutParser;
11
- const { Parser } = await import("./acorn-NHWX2J24.mjs");
11
+ const { Parser } = await import("./acorn-HEC2EHMN.mjs");
12
12
  metroLayoutParser = Parser.extend(
13
13
  (Base) => {
14
14
  const parseFunctionBody = Reflect.get(Base.prototype, "parseFunctionBody");
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2531 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2533 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  compileTargets,
4
4
  fetchNativeEntry,
@@ -6,19 +6,19 @@ import {
6
6
  swiftAvailableModules,
7
7
  swiftDistributionAt,
8
8
  swiftImportNames
9
- } from "./chunk-LLPNDBX5.mjs";
10
- import "./chunk-4EBD4OKW.mjs";
9
+ } from "./chunk-JO66W6XW.mjs";
10
+ import "./chunk-UF3PRTVP.mjs";
11
11
  import {
12
12
  SWIFT_REMOTE_PACKAGES_DIR
13
- } from "./chunk-GKJ2T3TK.mjs";
13
+ } from "./chunk-7EOERWQR.mjs";
14
14
  import {
15
15
  manifestCalls
16
- } from "./chunk-7CZNR5FB.mjs";
17
- import "./chunk-CGW4JC44.mjs";
18
- import "./chunk-SUHGSVF2.mjs";
19
- import "./chunk-6IEHVC3Z.mjs";
20
- import "./chunk-PBWV4H5F.mjs";
21
- import "./chunk-ROJ76CJT.mjs";
16
+ } from "./chunk-TJWREDZY.mjs";
17
+ import "./chunk-6YM45CZA.mjs";
18
+ import "./chunk-E7DHIJAF.mjs";
19
+ import "./chunk-CANULX6T.mjs";
20
+ import "./chunk-HBHGOFEK.mjs";
21
+ import "./chunk-PJ3A56DI.mjs";
22
22
 
23
23
  // src/swift-package-prebuilt.ts
24
24
  import { createHash } from "node:crypto";
@@ -1,13 +1,13 @@
1
- /*! peach v0.1.2531 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2533 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  SWIFT_SDK_APP_MEMORY_BASE,
4
4
  SWIFT_SDK_APP_TABLE_BASE,
5
5
  SWIFT_SDK_MEMORY_BASE,
6
6
  SWIFT_SDK_PIECE_FIELDS,
7
7
  readSwiftSdkManifest
8
- } from "./chunk-AN4HGYLM.mjs";
9
- import "./chunk-4KTLY5JC.mjs";
10
- import "./chunk-F52OCOPH.mjs";
8
+ } from "./chunk-KMGYTDFG.mjs";
9
+ import "./chunk-3RUGIIFH.mjs";
10
+ import "./chunk-6AOEMSAK.mjs";
11
11
  import {
12
12
  ADDEND_RELOCATIONS,
13
13
  KEEP_WASM_NAMES,
@@ -35,17 +35,17 @@ import {
35
35
  wasmReader,
36
36
  wasmSections,
37
37
  writeWasmCustomSection
38
- } from "./chunk-LLPNDBX5.mjs";
38
+ } from "./chunk-JO66W6XW.mjs";
39
39
  import {
40
40
  SWIFT_WASM_TRIPLE
41
- } from "./chunk-4EBD4OKW.mjs";
42
- import "./chunk-GKJ2T3TK.mjs";
43
- import "./chunk-7CZNR5FB.mjs";
44
- import "./chunk-CGW4JC44.mjs";
45
- import "./chunk-SUHGSVF2.mjs";
46
- import "./chunk-6IEHVC3Z.mjs";
47
- import "./chunk-PBWV4H5F.mjs";
48
- import "./chunk-ROJ76CJT.mjs";
41
+ } from "./chunk-UF3PRTVP.mjs";
42
+ import "./chunk-7EOERWQR.mjs";
43
+ import "./chunk-TJWREDZY.mjs";
44
+ import "./chunk-6YM45CZA.mjs";
45
+ import "./chunk-E7DHIJAF.mjs";
46
+ import "./chunk-CANULX6T.mjs";
47
+ import "./chunk-HBHGOFEK.mjs";
48
+ import "./chunk-PJ3A56DI.mjs";
49
49
 
50
50
  // src/swift-sdk-app-module.ts
51
51
  import { execFile } from "node:child_process";
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2531 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2533 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  SWIFT_SDK_APP_MEMORY_BASE,
4
4
  SWIFT_SDK_APP_TABLE_BASE,
@@ -15,18 +15,18 @@ import {
15
15
  swiftSdkImageFile,
16
16
  swiftSdkImageKey,
17
17
  swiftSdkImageProducts
18
- } from "./chunk-AN4HGYLM.mjs";
19
- import "./chunk-4KTLY5JC.mjs";
20
- import "./chunk-F52OCOPH.mjs";
21
- import "./chunk-LLPNDBX5.mjs";
22
- import "./chunk-4EBD4OKW.mjs";
23
- import "./chunk-GKJ2T3TK.mjs";
24
- import "./chunk-7CZNR5FB.mjs";
25
- import "./chunk-CGW4JC44.mjs";
26
- import "./chunk-SUHGSVF2.mjs";
27
- import "./chunk-6IEHVC3Z.mjs";
28
- import "./chunk-PBWV4H5F.mjs";
29
- import "./chunk-ROJ76CJT.mjs";
18
+ } from "./chunk-KMGYTDFG.mjs";
19
+ import "./chunk-3RUGIIFH.mjs";
20
+ import "./chunk-6AOEMSAK.mjs";
21
+ import "./chunk-JO66W6XW.mjs";
22
+ import "./chunk-UF3PRTVP.mjs";
23
+ import "./chunk-7EOERWQR.mjs";
24
+ import "./chunk-TJWREDZY.mjs";
25
+ import "./chunk-6YM45CZA.mjs";
26
+ import "./chunk-E7DHIJAF.mjs";
27
+ import "./chunk-CANULX6T.mjs";
28
+ import "./chunk-HBHGOFEK.mjs";
29
+ import "./chunk-PJ3A56DI.mjs";
30
30
  export {
31
31
  SWIFT_SDK_APP_MEMORY_BASE,
32
32
  SWIFT_SDK_APP_TABLE_BASE,
@@ -1,13 +1,13 @@
1
- /*! peach v0.1.2531 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2533 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  swiftCacheDir,
4
4
  windowAdmission,
5
5
  withSwiftRootLock
6
- } from "./chunk-4EBD4OKW.mjs";
6
+ } from "./chunk-UF3PRTVP.mjs";
7
7
  import {
8
8
  isRecord
9
- } from "./chunk-PBWV4H5F.mjs";
10
- import "./chunk-ROJ76CJT.mjs";
9
+ } from "./chunk-HBHGOFEK.mjs";
10
+ import "./chunk-PJ3A56DI.mjs";
11
11
 
12
12
  // src/swift-sdk-image-producer.ts
13
13
  import { execFile, execFileSync } from "node:child_process";
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2531 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2533 | (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;
@@ -26242,13 +26242,13 @@ var init_swift_standin_digest = __esm({
26242
26242
  STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
26243
26243
  SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
26244
26244
  standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
26245
- STANDIN_SOURCE_DIGEST = true ? "e0c1b88559d18e91bb151977436d182a7ce2ddadd071cf4de70a1b1f71e114ac" : standinSourceDigest();
26245
+ STANDIN_SOURCE_DIGEST = true ? "3c0d3091fecc74c357d2001cc5200e0f35cd0bd9e211202c2ea5e93c1c5ecdf1" : standinSourceDigest();
26246
26246
  }
26247
26247
  });
26248
26248
 
26249
26249
  // src/expo-native-compiler-digest.ts
26250
26250
  function expoNativeCompilerDigestValue() {
26251
- return true ? "99f63187155108498f09b99750abf125dd166933250adfa469fb70ce322a266a" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
26251
+ return true ? "fcdfff4f946cb24bd66c00fa9ed30223c9245e4004e2d39f4a5694ad38ba8d3e" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
26252
26252
  }
26253
26253
  var import_node_crypto17;
26254
26254
  var init_expo_native_compiler_digest = __esm({
@@ -44957,6 +44957,7 @@ async function withSwiftHeaderCompiler(root, toolchainBin, recipe2, producers, b
44957
44957
  const wrapper = import_node_path59.default.join(root, SWIFT_HEADER_COMPILER_WRAPPER);
44958
44958
  const script = import_node_path59.default.join(root, ".build", "peach-swift-header.cjs");
44959
44959
  const checkpoints = import_node_path59.default.join(root, ".build", "peach-swift-header-checkpoints");
44960
+ const socketFile = import_node_path59.default.join(root, ".build", "peach-swift-header-socket");
44960
44961
  (0, import_node_fs61.mkdirSync)(checkpoints, { recursive: true });
44961
44962
  const swiftc = argument(import_node_path59.default.join(toolchainBin, "swiftc"));
44962
44963
  writeBuildFile(script, client);
@@ -44972,7 +44973,7 @@ async function withSwiftHeaderCompiler(root, toolchainBin, recipe2, producers, b
44972
44973
  "done",
44973
44974
  'case "$compile:$module" in',
44974
44975
  ` ${[...producers.keys()].map((name3) => argument(`1:${name3}`)).join("|")})`,
44975
- ` ${PEACH_FORKED_SCRIPT_ENV}=1 exec ${argument(process.execPath)} ${argument(script)} "$PEACH_SWIFT_HEADER_SOCKET" "$module" ${swiftc} ${argument(checkpoints)}/"$module" "$@" ;;`,
44976
+ ` ${PEACH_FORKED_SCRIPT_ENV}=1 exec ${argument(process.execPath)} ${argument(script)} ${argument(socketFile)} "$module" ${swiftc} ${argument(checkpoints)}/"$module" "$@" ;;`,
44976
44977
  "esac",
44977
44978
  `exec ${swiftc} "$@"`,
44978
44979
  ""
@@ -45022,10 +45023,12 @@ async function withSwiftHeaderCompiler(root, toolchainBin, recipe2, producers, b
45022
45023
  server.once("error", reject);
45023
45024
  server.listen(socket, resolve3);
45024
45025
  });
45025
- return await build2({ SWIFT_EXEC: wrapper, PEACH_SWIFT_HEADER_SOCKET: socket });
45026
+ (0, import_node_fs61.writeFileSync)(socketFile, socket);
45027
+ return await build2({ SWIFT_EXEC: wrapper });
45026
45028
  } finally {
45027
45029
  server.close();
45028
45030
  server.closeAllConnections();
45031
+ (0, import_node_fs61.rmSync)(socketFile, { force: true });
45029
45032
  (0, import_node_fs61.rmSync)(directory2, { recursive: true, force: true });
45030
45033
  }
45031
45034
  }
@@ -45044,8 +45047,9 @@ var init_swift_header_compiler = __esm({
45044
45047
  argument = (value) => `'${value.replaceAll("'", `'"'"'`)}'`;
45045
45048
  client = `const { request } = require('node:http')
45046
45049
  const { spawnSync } = require('node:child_process')
45047
- const { existsSync } = require('node:fs')
45048
- const [socketPath, moduleName, swiftc, receipt, ...args] = process.argv.slice(2)
45050
+ const { existsSync, readFileSync } = require('node:fs')
45051
+ const [socketFile, moduleName, swiftc, receipt, ...args] = process.argv.slice(2)
45052
+ const socketPath = readFileSync(socketFile, 'utf8')
45049
45053
  const body = JSON.stringify(args)
45050
45054
  const notify = (method) => new Promise((resolve, reject) => {
45051
45055
  const req = request({ socketPath, path: '/' + moduleName, method, agent: false }, response => {
@@ -46210,7 +46214,11 @@ async function runCompiler(command, args, options2, stream = false, quiet) {
46210
46214
  signal?.throwIfAborted();
46211
46215
  const launch = {
46212
46216
  cwd: options2.cwd,
46213
- env: { ...swiftEnvironment(options2.env), ...options2.confined },
46217
+ env: {
46218
+ ...swiftEnvironment(options2.env),
46219
+ ...options2.temporaryDirectory ? { TMPDIR: options2.temporaryDirectory } : {},
46220
+ ...options2.confined
46221
+ },
46214
46222
  uid: options2.uid,
46215
46223
  gid: options2.gid,
46216
46224
  detached: true,
@@ -51532,12 +51540,17 @@ sdk module ${sdkImage.key}`).digest("hex") : sourceHash;
51532
51540
  compiler.PEACH_SWIFTC = import_node_path67.default.join(options2.toolchainBin, "swiftc");
51533
51541
  }
51534
51542
  const projectProcess = options2.project ? prepareSwiftProjectProcess(root, options2.project) : void 0;
51543
+ const temporaryDirectory = projectProcess ? void 0 : import_node_path67.default.join(root, ".build", "peach-compiler-tmp");
51535
51544
  const appOptions = projectProcess ? {
51536
51545
  ...buildOptions,
51537
51546
  uid: projectProcess.uid,
51538
51547
  gid: projectProcess.gid,
51539
51548
  confined: { ...projectProcess.env, ...compiler }
51540
- } : { ...buildOptions, env: { ...buildOptions.env, ...compiler } };
51549
+ } : {
51550
+ ...buildOptions,
51551
+ temporaryDirectory,
51552
+ env: { ...buildOptions.env, ...compiler }
51553
+ };
51541
51554
  const unprepared = preparation.targetFailures.map(
51542
51555
  (failure2) => `error: target ${failure2}`
51543
51556
  );
@@ -51831,6 +51844,7 @@ sdk module ${sdkImage.key}`).digest("hex") : sourceHash;
51831
51844
  runApp
51832
51845
  ) : runApp();
51833
51846
  try {
51847
+ if (temporaryDirectory) (0, import_node_fs68.mkdirSync)(temporaryDirectory, { recursive: true });
51834
51848
  await compileApp();
51835
51849
  } catch (error) {
51836
51850
  const output2 = outputOf(error);
@@ -51863,6 +51877,8 @@ sdk module ${sdkImage.key}`).digest("hex") : sourceHash;
51863
51877
  );
51864
51878
  }
51865
51879
  } finally {
51880
+ if (temporaryDirectory)
51881
+ (0, import_node_fs68.rmSync)(temporaryDirectory, { recursive: true, force: true });
51866
51882
  if (options2.project) endSwiftProjectProcesses(options2.project);
51867
51883
  }
51868
51884
  if (unprepared.length) throw new Error(unprepared.join("\n"));
@@ -52222,7 +52238,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
52222
52238
  REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
52223
52239
  MULTI_MANIFEST_VERSION = 76;
52224
52240
  SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
52225
- compilerSourceDigest = true ? "c1b31f85f0a9aa78c7579b0a943fc4c766dee06eb085e8d3c25166b6c46646cf" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
52241
+ compilerSourceDigest = true ? "adb515f9946182c8d5bc35b2ffeb4698734e2cdf1baad88e2e2d2bf4ea442b24" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
52226
52242
  nativeCxxCompilerFlags = ["-fno-cxx-modules"];
52227
52243
  MODULE_MAP_RESPONSE_FILE_RUN = 16;
52228
52244
  cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2531 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2533 | (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,19 +1,19 @@
1
- /*! peach v0.1.2531 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2533 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  isSwiftResourcePath
4
- } from "./esm-chunks/chunk-GKJ2T3TK.mjs";
4
+ } from "./esm-chunks/chunk-7EOERWQR.mjs";
5
5
  import {
6
6
  isNativeAppIdentity
7
- } from "./esm-chunks/chunk-D4NCFDNF.mjs";
8
- import "./esm-chunks/chunk-CGW4JC44.mjs";
7
+ } from "./esm-chunks/chunk-4BZJFQDX.mjs";
8
+ import "./esm-chunks/chunk-6YM45CZA.mjs";
9
9
  import {
10
10
  insertBundleGlobalFooter,
11
11
  readBundleGlobalFooter
12
- } from "./esm-chunks/chunk-H4CMYNNG.mjs";
12
+ } from "./esm-chunks/chunk-MU2KBQOY.mjs";
13
13
  import {
14
14
  isRecord
15
- } from "./esm-chunks/chunk-PBWV4H5F.mjs";
16
- import "./esm-chunks/chunk-ROJ76CJT.mjs";
15
+ } from "./esm-chunks/chunk-HBHGOFEK.mjs";
16
+ import "./esm-chunks/chunk-PJ3A56DI.mjs";
17
17
 
18
18
  // src/expoSwiftContract.ts
19
19
  function strings(value) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2531 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2533 | (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;