peachsim 0.1.1900 → 0.1.1901

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 (84) 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 +1 -1
  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 +1 -1
  11. package/dist-lib/bridge-contract.cjs +1 -1
  12. package/dist-lib/bridge-contract.mjs +1 -1
  13. package/dist-lib/bundle-channel.cjs +73 -56
  14. package/dist-lib/capture-contract.cjs +1 -1
  15. package/dist-lib/capture-contract.mjs +1 -1
  16. package/dist-lib/cloud-contract.cjs +1 -1
  17. package/dist-lib/cloud-contract.mjs +1 -1
  18. package/dist-lib/cloud-test-args.cjs +1 -1
  19. package/dist-lib/cloud-test-args.mjs +1 -1
  20. package/dist-lib/cloud.cjs +1 -1
  21. package/dist-lib/cloud.mjs +1 -1
  22. package/dist-lib/config.cjs +1 -1
  23. package/dist-lib/config.mjs +1 -1
  24. package/dist-lib/detox/index.cjs +1 -1
  25. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  26. package/dist-lib/expo-swift-bundle.cjs +49 -33
  27. package/dist-lib/expo-swift-metadata.cjs +1 -1
  28. package/dist-lib/expo-swift-metadata.mjs +1 -1
  29. package/dist-lib/home-paths.cjs +1 -1
  30. package/dist-lib/host/bridge-host.cjs +80 -64
  31. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  32. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  33. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  34. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  35. package/dist-lib/host/websocket-proxy.cjs +1 -1
  36. package/dist-lib/index.cjs +31 -30
  37. package/dist-lib/jump-to-source-babel.cjs +1 -1
  38. package/dist-lib/jump-to-source-native.cjs +1 -1
  39. package/dist-lib/kotlin-host.cjs +1 -1
  40. package/dist-lib/menu.cjs +1 -1
  41. package/dist-lib/menu.mjs +1 -1
  42. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  43. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  44. package/dist-lib/metro-production-bundle.cjs +1 -1
  45. package/dist-lib/metro-production-bundle.mjs +1 -1
  46. package/dist-lib/metro.cjs +29 -28
  47. package/dist-lib/native-app-identity-project.cjs +21 -20
  48. package/dist-lib/native-app-identity-project.mjs +21 -20
  49. package/dist-lib/native-app-identity.cjs +1 -1
  50. package/dist-lib/native-app-identity.mjs +1 -1
  51. package/dist-lib/native-firebase-metadata.cjs +1 -1
  52. package/dist-lib/native-firebase-metadata.mjs +1 -1
  53. package/dist-lib/pdfium-raster.cjs +1 -1
  54. package/dist-lib/pdfium-raster.mjs +1 -1
  55. package/dist-lib/plist.cjs +1 -1
  56. package/dist-lib/plist.mjs +1 -1
  57. package/dist-lib/profiles.cjs +1 -1
  58. package/dist-lib/public-brand.cjs +1 -1
  59. package/dist-lib/public-origins-lib-esm.json +24 -24
  60. package/dist-lib/public-origins-lib.json +53 -53
  61. package/dist-lib/react-native-host-modules.cjs +1 -1
  62. package/dist-lib/react-native-host-modules.mjs +1 -1
  63. package/dist-lib/reap-browser.cjs +1 -1
  64. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  65. package/dist-lib/sdk.cjs +1 -1
  66. package/dist-lib/sdk.mjs +1 -1
  67. package/dist-lib/skills.cjs +97 -80
  68. package/dist-lib/swift-compile.cjs +25 -9
  69. package/dist-lib/swift-compile.mjs +25 -9
  70. package/dist-lib/swift-package.cjs +1 -1
  71. package/dist-lib/swift-package.mjs +1 -1
  72. package/dist-lib/swift-submit.cjs +1 -1
  73. package/dist-lib/swift-submit.mjs +1 -1
  74. package/dist-lib/swift-toolchain.cjs +3 -3
  75. package/dist-lib/swift.cjs +1 -1
  76. package/dist-lib/vite-swift.cjs +35 -19
  77. package/dist-lib/vite.cjs +1 -1
  78. package/dist-lib/worklet-executable.cjs +1 -1
  79. package/dist-lib/worklet-executable.mjs +1 -1
  80. package/package.json +1 -1
  81. package/src/swift-compile.ts +20 -1
  82. package/src/swift-guest-compile.ts +7 -1
  83. package/src/swift-guest-link.ts +3 -2
  84. package/src/swift-toolchain.ts +2 -1
package/dist-lib/sdk.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1900 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1901 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  var __defProp = Object.defineProperty;
3
3
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
4
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1900 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1901 | (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;
@@ -39,7 +39,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
39
39
  var define_SWIFT_COVERAGE_SOURCE_DIGESTS_default;
40
40
  var init_define_SWIFT_COVERAGE_SOURCE_DIGESTS = __esm({
41
41
  "<define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>"() {
42
- define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "8b398ceb60faf4a5729842cab60f49c2e601d6fc6bbbc1faec9023ecb8141990", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "8e6020d17d24474150a5a50d042aca6261819ef75c79680a287a66f395909915", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "4b7d4a715cdaf57468ead23f2ff9dce76d02c6a888d73d144d4baa2ae571ba3c", "swift-package.ts": "e66452b430a7dc749e0db64e21a2f3cd969ba48fa1ae31cd5de5c366c3783bf7", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "b45a1c1e945499f5864e9d9a88eb9a9bbdd0c2d46468a552056593c975962a99", "home-paths.ts": "744d0e29fcc4baae6748161da45dd75e357348703331dad685c74ec813abcc83", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "0669e4cca53dc8db00059018d7f93ff9139915fc0f4fb0c82a938febb7862dfe", "xcode-target-members.ts": "75a23a5fc54cc6f5e952d545f2f0f86241ff36525ab4e568c172e83c3bfb9da4", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
42
+ define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "8b398ceb60faf4a5729842cab60f49c2e601d6fc6bbbc1faec9023ecb8141990", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "8e6020d17d24474150a5a50d042aca6261819ef75c79680a287a66f395909915", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "4b7d4a715cdaf57468ead23f2ff9dce76d02c6a888d73d144d4baa2ae571ba3c", "swift-package.ts": "e66452b430a7dc749e0db64e21a2f3cd969ba48fa1ae31cd5de5c366c3783bf7", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "450ee02b48bcdbbacbb4e94cd161308f1dac1bdb540ed5033c2433f717f738d2", "home-paths.ts": "744d0e29fcc4baae6748161da45dd75e357348703331dad685c74ec813abcc83", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "0669e4cca53dc8db00059018d7f93ff9139915fc0f4fb0c82a938febb7862dfe", "xcode-target-members.ts": "75a23a5fc54cc6f5e952d545f2f0f86241ff36525ab4e568c172e83c3bfb9da4", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
43
43
  }
44
44
  });
45
45
 
@@ -21308,7 +21308,7 @@ var init_applyReviver = __esm({
21308
21308
  // ../../node_modules/yaml/browser/dist/nodes/toJS.js
21309
21309
  function toJS(value, arg, ctx) {
21310
21310
  if (Array.isArray(value))
21311
- return value.map((v5, i) => toJS(v5, String(i), ctx));
21311
+ return value.map((v6, i) => toJS(v6, String(i), ctx));
21312
21312
  if (value && typeof value.toJSON === "function") {
21313
21313
  if (!ctx || !hasAnchor(value))
21314
21314
  return value.toJSON(arg, ctx);
@@ -21597,18 +21597,18 @@ var init_createNode = __esm({
21597
21597
 
21598
21598
  // ../../node_modules/yaml/browser/dist/nodes/Collection.js
21599
21599
  function collectionFromPath(schema4, path124, value) {
21600
- let v5 = value;
21600
+ let v6 = value;
21601
21601
  for (let i = path124.length - 1; i >= 0; --i) {
21602
21602
  const k = path124[i];
21603
21603
  if (typeof k === "number" && Number.isInteger(k) && k >= 0) {
21604
21604
  const a = [];
21605
- a[k] = v5;
21606
- v5 = a;
21605
+ a[k] = v6;
21606
+ v6 = a;
21607
21607
  } else {
21608
- v5 = /* @__PURE__ */ new Map([[k, v5]]);
21608
+ v6 = /* @__PURE__ */ new Map([[k, v6]]);
21609
21609
  }
21610
21610
  }
21611
- return createNode(v5, void 0, {
21611
+ return createNode(v6, void 0, {
21612
21612
  aliasDuplicateObjects: false,
21613
21613
  keepUndefined: false,
21614
21614
  onAnchor: () => {
@@ -22556,8 +22556,8 @@ var init_addPairToJSMap = __esm({
22556
22556
  // ../../node_modules/yaml/browser/dist/nodes/Pair.js
22557
22557
  function createPair(key2, value, ctx) {
22558
22558
  const k = createNode(key2, void 0, ctx);
22559
- const v5 = createNode(value, void 0, ctx);
22560
- return new Pair(k, v5);
22559
+ const v6 = createNode(value, void 0, ctx);
22560
+ return new Pair(k, v6);
22561
22561
  }
22562
22562
  var Pair;
22563
22563
  var init_Pair = __esm({
@@ -24215,7 +24215,7 @@ var init_Document = __esm({
24215
24215
  value = replacer.call({ "": value }, "", value);
24216
24216
  _replacer = replacer;
24217
24217
  } else if (Array.isArray(replacer)) {
24218
- const keyToStr = (v5) => typeof v5 === "number" || v5 instanceof String || v5 instanceof Number;
24218
+ const keyToStr = (v6) => typeof v6 === "number" || v6 instanceof String || v6 instanceof Number;
24219
24219
  const asStr = replacer.filter(keyToStr).map(String);
24220
24220
  if (asStr.length > 0)
24221
24221
  replacer = replacer.concat(asStr);
@@ -24251,8 +24251,8 @@ var init_Document = __esm({
24251
24251
  */
24252
24252
  createPair(key2, value, options = {}) {
24253
24253
  const k = this.createNode(key2, null, options);
24254
- const v5 = this.createNode(value, null, options);
24255
- return new Pair(k, v5);
24254
+ const v6 = this.createNode(value, null, options);
24255
+ return new Pair(k, v6);
24256
24256
  }
24257
24257
  /**
24258
24258
  * Removes a value from the document.
@@ -29071,16 +29071,16 @@ function runtimeTarballCacheName(product, version2) {
29071
29071
  return import_node_path4.default.posix.basename(product.tarballPath(version2));
29072
29072
  }
29073
29073
  function compareSemver(a, b) {
29074
- const parse12 = (v5) => {
29075
- const hyphen = v5.indexOf("-");
29076
- const core = hyphen >= 0 ? v5.slice(0, hyphen) : v5;
29077
- const pre = hyphen >= 0 ? v5.slice(hyphen + 1) : "";
29074
+ const parse13 = (v6) => {
29075
+ const hyphen = v6.indexOf("-");
29076
+ const core = hyphen >= 0 ? v6.slice(0, hyphen) : v6;
29077
+ const pre = hyphen >= 0 ? v6.slice(hyphen + 1) : "";
29078
29078
  const parts = core.split(".").map((n) => Number.parseInt(n, 10));
29079
- if (parts.some((n) => !Number.isFinite(n))) return [[Number.POSITIVE_INFINITY], v5];
29079
+ if (parts.some((n) => !Number.isFinite(n))) return [[Number.POSITIVE_INFINITY], v6];
29080
29080
  return [parts, pre];
29081
29081
  };
29082
- const [an, ap] = parse12(a);
29083
- const [bn, bp] = parse12(b);
29082
+ const [an, ap] = parse13(a);
29083
+ const [bn, bp] = parse13(b);
29084
29084
  for (let i = 0; i < Math.max(an.length, bn.length); i++) {
29085
29085
  const av = an[i] ?? 0;
29086
29086
  const bv = bn[i] ?? 0;
@@ -32256,7 +32256,7 @@ var require_parse = __commonJS({
32256
32256
  var token;
32257
32257
  var key2;
32258
32258
  var root;
32259
- module2.exports = function parse12(text6, reviver) {
32259
+ module2.exports = function parse13(text6, reviver) {
32260
32260
  source = String(text6);
32261
32261
  parseState = "start";
32262
32262
  stack = [];
@@ -33111,12 +33111,12 @@ var require_stringify = __commonJS({
33111
33111
  replacerFunc = replacer;
33112
33112
  } else if (Array.isArray(replacer)) {
33113
33113
  propertyList = [];
33114
- for (const v5 of replacer) {
33114
+ for (const v6 of replacer) {
33115
33115
  let item;
33116
- if (typeof v5 === "string") {
33117
- item = v5;
33118
- } else if (typeof v5 === "number" || v5 instanceof String || v5 instanceof Number) {
33119
- item = String(v5);
33116
+ if (typeof v6 === "string") {
33117
+ item = v6;
33118
+ } else if (typeof v6 === "number" || v6 instanceof String || v6 instanceof Number) {
33119
+ item = String(v6);
33120
33120
  }
33121
33121
  if (item !== void 0 && propertyList.indexOf(item) < 0) {
33122
33122
  propertyList.push(item);
@@ -33314,10 +33314,10 @@ var require_stringify = __commonJS({
33314
33314
  var require_lib = __commonJS({
33315
33315
  "../../node_modules/json5/lib/index.js"(exports2, module2) {
33316
33316
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
33317
- var parse12 = require_parse();
33317
+ var parse13 = require_parse();
33318
33318
  var stringify4 = require_stringify();
33319
33319
  var JSON53 = {
33320
- parse: parse12,
33320
+ parse: parse13,
33321
33321
  stringify: stringify4
33322
33322
  };
33323
33323
  module2.exports = JSON53;
@@ -35605,8 +35605,8 @@ function nativeAppIdentityFromIos(files2, parseInfoPlist, iosTarget, resourceUri
35605
35605
  if (typeof configId === "string") {
35606
35606
  const configObj = objects[configId];
35607
35607
  if (isRecord(configObj) && configObj.name === "Release" && isRecord(configObj.buildSettings)) {
35608
- for (const [k, v5] of Object.entries(configObj.buildSettings)) {
35609
- if (typeof v5 === "string") settings[k] = v5;
35608
+ for (const [k, v6] of Object.entries(configObj.buildSettings)) {
35609
+ if (typeof v6 === "string") settings[k] = v6;
35610
35610
  }
35611
35611
  }
35612
35612
  }
@@ -35621,8 +35621,8 @@ function nativeAppIdentityFromIos(files2, parseInfoPlist, iosTarget, resourceUri
35621
35621
  if (typeof configId === "string") {
35622
35622
  const configObj = objects[configId];
35623
35623
  if (isRecord(configObj) && configObj.name === "Release" && isRecord(configObj.buildSettings)) {
35624
- for (const [k, v5] of Object.entries(configObj.buildSettings)) {
35625
- if (typeof v5 === "string") settings[k] = v5;
35624
+ for (const [k, v6] of Object.entries(configObj.buildSettings)) {
35625
+ if (typeof v6 === "string") settings[k] = v6;
35626
35626
  }
35627
35627
  }
35628
35628
  }
@@ -41738,7 +41738,7 @@ function swiftToolchainBin(release) {
41738
41738
  return import_node_path26.default.join(peachHome(), "swift", "toolchains", release, "usr/bin");
41739
41739
  return (process.env.PATH ?? "").split(import_node_path26.default.delimiter).find((dir) => dir && import_node_fs31.default.existsSync(import_node_path26.default.join(dir, "swift"))) ?? image;
41740
41740
  }
41741
- function writeSwiftAutolinkLinker(directory2, toolchainBin) {
41741
+ function writeSwiftAutolinkLinker(directory2, toolchainBin, omitLibraries = []) {
41742
41742
  const linker = import_node_path26.default.join(directory2, SWIFT_AUTOLINK_LINKER);
41743
41743
  const script = `#!/bin/sh
41744
41744
  set -eu
@@ -41746,7 +41746,7 @@ for arg in "$@"; do
41746
41746
  case $arg in
41747
41747
  @*)
41748
41748
  rsp=\${arg#@}
41749
- awk 'BEGIN { RS = " "; ORS = " " } /^"-l/ { if (seen[$0]++) next } { print }' "$rsp" > "$rsp.dedup"
41749
+ awk 'BEGIN { RS = " "; ORS = " " } /^"-l/ { if (seen[$0]++) next }${omitLibraries.map((name3) => ` $0 == "\\"-l${name3}\\"" { next }`).join("")} { print }' "$rsp" > "$rsp.dedup"
41750
41750
  mv "$rsp.dedup" "$rsp"
41751
41751
  if [ "\${PEACH_DEFER_WASM_LINK:-}" = "1" ] && grep -q '"--start-lib"' "$rsp"; then
41752
41752
  cp "$rsp" ${JSON.stringify(import_node_path26.default.join(directory2, ".peach-link.rsp"))}
@@ -48813,7 +48813,7 @@ function emitGuestImageProjection(images) {
48813
48813
  lines.push("const struct peach_guest_image __peach_guest_images[] = {");
48814
48814
  for (const [i, image] of images.entries()) {
48815
48815
  const uuid = image.uuid.match(/../g).map((byte) => `0x${byte}`).join(", ");
48816
- const version2 = (v5) => (v5.major * 65536 + v5.minor * 256 + v5.patch).toString();
48816
+ const version2 = (v6) => (v6.major * 65536 + v6.minor * 256 + v6.patch).toString();
48817
48817
  lines.push(
48818
48818
  ` {${cString(image.installName)}, ${image.fileType === "executable" ? 2 : 6}u, {${uuid}}, ${image.buildVersion.platform}u, ${version2(image.buildVersion.minimum)}u, ${version2(image.buildVersion.sdk)}u, ${image.regions.length}u, ${image.regions.length ? `regions_${i}` : "0"}},`
48819
48819
  );
@@ -50559,8 +50559,8 @@ function verifyGuestSymbolScopes(options) {
50559
50559
  providers: /* @__PURE__ */ new Map(),
50560
50560
  physicalModule: false
50561
50561
  };
50562
- if (object6 === "<internal>" && kind === "definition of") {
50563
- record3.physicalModule = true;
50562
+ if (object6 === "<internal>") {
50563
+ if (kind === "definition of") record3.physicalModule = true;
50564
50564
  } else {
50565
50565
  const image = options.owners.get(object6);
50566
50566
  if (image === void 0)
@@ -51535,9 +51535,14 @@ async function compileGuestLink(options) {
51535
51535
  systemProviders,
51536
51536
  hostImports: scope2.hostImports
51537
51537
  });
51538
+ const wrapped = new Set(
51539
+ prepared.args.flatMap(
51540
+ (arg) => arg.startsWith("--wrap=") ? [arg.slice(7), `__wrap_${arg.slice(7)}`] : []
51541
+ )
51542
+ );
51538
51543
  return {
51539
51544
  ...plan,
51540
- symbols: scope2.definitions,
51545
+ symbols: scope2.definitions.filter((symbol2) => !wrapped.has(symbol2)),
51541
51546
  directBindings: verified2.directBindings
51542
51547
  };
51543
51548
  }
@@ -56569,7 +56574,17 @@ function compileSwiftProjectOnce(input, options) {
56569
56574
  report("framework revision changed; rebuilding the app link");
56570
56575
  const nativeToolset = needsNativeToolset(input, prebuilt);
56571
56576
  const preparation = writeSwiftProject(layout2, input, frameworkRoot, prebuilt);
56572
- writeSwiftAutolinkLinker(root, options.toolchainBin);
56577
+ const productFile = import_node_path46.default.join(frameworkRoot, SWIFT_FRAMEWORK_PRODUCT_FILE);
56578
+ writeSwiftAutolinkLinker(
56579
+ root,
56580
+ options.toolchainBin,
56581
+ (0, import_node_fs49.existsSync)(productFile) ? [
56582
+ v5.parse(
56583
+ swiftFrameworkProductSchema,
56584
+ JSON.parse((0, import_node_fs49.readFileSync)(productFile, "utf8"))
56585
+ ).product.name
56586
+ ] : []
56587
+ );
56573
56588
  const projectProcess = options.project ? prepareSwiftProjectProcess(root, options.project) : void 0;
56574
56589
  const appOptions = projectProcess ? {
56575
56590
  ...buildOptions,
@@ -56795,7 +56810,7 @@ function compileSwiftProjectOnce(input, options) {
56795
56810
  options.signal
56796
56811
  );
56797
56812
  }
56798
- var import_node_child_process30, import_node_crypto23, import_node_fs49, import_node_os12, import_node_path46, WASM_TRIPLE, SWIFTPM_PROGRESS, SWIFTPM_NOISE, admittedCores, SWIFT_BUILD_JOBS, BUILD_JOBS, SWIFT_BUILDER_TRANSPORT_MARGIN_MS, SWIFT_BUILDER_DEFAULT_COMPILE_MS, clangInterfaceHeader, swiftInterfaceDeclarations, linkedModuleDigests, SYSTEM_MODULE_LIBRARIES, SYSTEM_MODULE_IMPORT, OPTIONAL_FRAMEWORK_DEPENDENCIES, OPTIONAL_FRAMEWORKS, SWIFT_IMPORT, kleeneNot, kleeneAnd, kleeneOr, sdkPaths, availableModules, sdkOverlayFrameworks, ONE_PRODUCT, SPRITEKIT_PRODUCT, importsSpriteKit, FOUNDATION_IMPLICIT_MODULES, FOUNDATION_IMPLICIT_FLAGS, ONE_IMPLICIT_FLAGS, executableLinkFlags, darwinRecordsRegion, REACTOR_FLAG, MULTI_MANIFEST_VERSION, SWIFT_HEADER_PRODUCTS_TARGET, compilerSourceDigest, nativeCxxCompilerFlags, cFlagArray, cxxFlagArray, DIRECTIVE, OS_IOS, DELEGATE_CLASS, REUSABLE_INIT, REUSABLE_VIEW_BASES, CLASS_BASE, FRAME_INIT, FOUNDATION_NETWORKING_TYPES, FOUNDATION_OVERLAY_TYPES, FOUNDATION_OVERLAY_GLOBALS, CORE_FOUNDATION_OVERLAY_GLOBALS, CORE_FOUNDATION_GEOMETRY_TYPES, CORE_FOUNDATION_GRAPHICS_TYPES, CORE_FOUNDATION_HANDLE_IMPORTS, emptyMacroEnvironment, cPredefineTable, cPredefineCache, HIDDEN_UNITS, LIBXML_REFERENCE, LIBXML_SOURCE, ROOT_LOCKS, host, rootLocks, SHARED_ARTIFACT_BUDGET_BYTES, SHARED_ARTIFACT_GRACE_MS, RETIRED_PREFIX, retainedArtifacts, FRAMEWORK_LINK_TARGET, SWIFT_LINK_STAMP, SWIFT_FRAMEWORK_SLOTS, SWIFT_FRAMEWORK_SLOT_KEY;
56813
+ var import_node_child_process30, import_node_crypto23, import_node_fs49, import_node_os12, import_node_path46, v5, WASM_TRIPLE, SWIFTPM_PROGRESS, SWIFTPM_NOISE, admittedCores, SWIFT_BUILD_JOBS, BUILD_JOBS, SWIFT_BUILDER_TRANSPORT_MARGIN_MS, SWIFT_BUILDER_DEFAULT_COMPILE_MS, clangInterfaceHeader, swiftInterfaceDeclarations, linkedModuleDigests, SYSTEM_MODULE_LIBRARIES, SYSTEM_MODULE_IMPORT, OPTIONAL_FRAMEWORK_DEPENDENCIES, OPTIONAL_FRAMEWORKS, SWIFT_IMPORT, kleeneNot, kleeneAnd, kleeneOr, sdkPaths, availableModules, sdkOverlayFrameworks, ONE_PRODUCT, SPRITEKIT_PRODUCT, importsSpriteKit, FOUNDATION_IMPLICIT_MODULES, FOUNDATION_IMPLICIT_FLAGS, ONE_IMPLICIT_FLAGS, executableLinkFlags, darwinRecordsRegion, REACTOR_FLAG, MULTI_MANIFEST_VERSION, SWIFT_HEADER_PRODUCTS_TARGET, compilerSourceDigest, nativeCxxCompilerFlags, cFlagArray, cxxFlagArray, DIRECTIVE, OS_IOS, DELEGATE_CLASS, REUSABLE_INIT, REUSABLE_VIEW_BASES, CLASS_BASE, FRAME_INIT, FOUNDATION_NETWORKING_TYPES, FOUNDATION_OVERLAY_TYPES, FOUNDATION_OVERLAY_GLOBALS, CORE_FOUNDATION_OVERLAY_GLOBALS, CORE_FOUNDATION_GEOMETRY_TYPES, CORE_FOUNDATION_GRAPHICS_TYPES, CORE_FOUNDATION_HANDLE_IMPORTS, emptyMacroEnvironment, cPredefineTable, cPredefineCache, HIDDEN_UNITS, LIBXML_REFERENCE, LIBXML_SOURCE, ROOT_LOCKS, host, rootLocks, SHARED_ARTIFACT_BUDGET_BYTES, SHARED_ARTIFACT_GRACE_MS, RETIRED_PREFIX, retainedArtifacts, FRAMEWORK_LINK_TARGET, SWIFT_LINK_STAMP, SWIFT_FRAMEWORK_SLOTS, SWIFT_FRAMEWORK_SLOT_KEY;
56799
56814
  var init_swift_compile = __esm({
56800
56815
  "src/swift-compile.ts"() {
56801
56816
  "use strict";
@@ -56805,6 +56820,7 @@ var init_swift_compile = __esm({
56805
56820
  import_node_fs49 = require("node:fs");
56806
56821
  import_node_os12 = __toESM(require("node:os"), 1);
56807
56822
  import_node_path46 = __toESM(require("node:path"), 1);
56823
+ v5 = __toESM(require("valibot"), 1);
56808
56824
  init_admitted_mac_build();
56809
56825
  init_swift_c_predefines();
56810
56826
  init_process_group();
@@ -56829,6 +56845,7 @@ var init_swift_compile = __esm({
56829
56845
  init_swift_uniform_type_constants();
56830
56846
  init_swift_wasm_prune();
56831
56847
  init_swiftContract();
56848
+ init_swiftRuntimeProductContract();
56832
56849
  init_wasm_optimize();
56833
56850
  init_write_build_file();
56834
56851
  init_xcode_header_search();
@@ -56966,7 +56983,7 @@ var init_swift_compile = __esm({
56966
56983
  REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
56967
56984
  MULTI_MANIFEST_VERSION = 66;
56968
56985
  SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
56969
- compilerSourceDigest = true ? "c4be619695260b40451023081c8cb00c1b676995061c31aaa9b066d256fb8134" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
56986
+ compilerSourceDigest = true ? "8768dadacf2e909cf808df3a31fe261832d51fb29d48f2b45bd4df5c117c6f69" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
56970
56987
  nativeCxxCompilerFlags = ["-fno-cxx-modules"];
56971
56988
  cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
56972
56989
  cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
@@ -63241,7 +63258,7 @@ var init_swift_standin_digest = __esm({
63241
63258
  STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
63242
63259
  SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
63243
63260
  standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
63244
- STANDIN_SOURCE_DIGEST = true ? "9b1dee31aea8a68f7104c200a867dec631b3b62ff6faec06fd1d86ae79748957" : standinSourceDigest();
63261
+ STANDIN_SOURCE_DIGEST = true ? "ae26db314b6d3703c6fc172d019e3cb0fe28a018e5f614bb804fae720ab78ff8" : standinSourceDigest();
63245
63262
  }
63246
63263
  });
63247
63264
 
@@ -63356,14 +63373,14 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
63356
63373
  const querySchemes = dictionary2.LSApplicationQueriesSchemes;
63357
63374
  const urlQuerySchemes = Array.isArray(querySchemes) ? querySchemes : [];
63358
63375
  const intentIds = dictionary2.OneAppIntentIdentifiers;
63359
- const appIntentIdentifiers = Array.isArray(intentIds) && intentIds.every((v5) => typeof v5 === "string") ? intentIds : [];
63376
+ const appIntentIdentifiers = Array.isArray(intentIds) && intentIds.every((v6) => typeof v6 === "string") ? intentIds : [];
63360
63377
  const backgroundIds = dictionary2.BGTaskSchedulerPermittedIdentifiers;
63361
- const backgroundTaskIdentifiers = Array.isArray(backgroundIds) && backgroundIds.every((v5) => typeof v5 === "string") ? backgroundIds : [];
63378
+ const backgroundTaskIdentifiers = Array.isArray(backgroundIds) && backgroundIds.every((v6) => typeof v6 === "string") ? backgroundIds : [];
63362
63379
  const declaredModes = dictionary2.UIBackgroundModes;
63363
- const backgroundModes = Array.isArray(declaredModes) && declaredModes.every((v5) => typeof v5 === "string") ? declaredModes : [];
63364
- const supportedInterfaceOrientations = Array.isArray(dictionary2.UISupportedInterfaceOrientations) && dictionary2.UISupportedInterfaceOrientations.every((v5) => typeof v5 === "string") ? dictionary2.UISupportedInterfaceOrientations : [];
63380
+ const backgroundModes = Array.isArray(declaredModes) && declaredModes.every((v6) => typeof v6 === "string") ? declaredModes : [];
63381
+ const supportedInterfaceOrientations = Array.isArray(dictionary2.UISupportedInterfaceOrientations) && dictionary2.UISupportedInterfaceOrientations.every((v6) => typeof v6 === "string") ? dictionary2.UISupportedInterfaceOrientations : [];
63365
63382
  const ipadSupportedInterfaceOrientations = Array.isArray(dictionary2["UISupportedInterfaceOrientations~ipad"]) && dictionary2["UISupportedInterfaceOrientations~ipad"].every(
63366
- (v5) => typeof v5 === "string"
63383
+ (v6) => typeof v6 === "string"
63367
63384
  ) ? dictionary2["UISupportedInterfaceOrientations~ipad"] : [];
63368
63385
  const defaultScreenOrientationMask = nonEmptyString2(
63369
63386
  dictionary2.EXDefaultScreenOrientationMask
@@ -63971,7 +63988,7 @@ var init_expo_native_prebuilt = __esm({
63971
63988
  init_swift_native_pin();
63972
63989
  init_xcode_project();
63973
63990
  EXPO_NATIVE_ENTRY_NAME = "ios";
63974
- EXPO_NATIVE_COMPILER_DIGEST = true ? "f26ec75f0f0bfa34f4209a9edeb7ca919eac8aae7c661b0e4b736c7ada99f2fb" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
63991
+ EXPO_NATIVE_COMPILER_DIGEST = true ? "780db33c9e8fb9ec57f0ee9b47692f5b01abb32d39a360da96f271bdea787e67" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
63975
63992
  IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
63976
63993
  expoNativeEntryUrl = (key2, file) => `${NATIVE_PREBUILT_ORIGIN}/${nativeEntryPrefix("expo", EXPO_NATIVE_ENTRY_NAME, key2)}/${file}`;
63977
63994
  isStringRecord = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
@@ -74399,7 +74416,7 @@ function tokenize2(src, file) {
74399
74416
  const fail = (message) => {
74400
74417
  throw new UnsupportedPodspec(`${file}:${line}: ${message}`);
74401
74418
  };
74402
- const push = (t, v5) => toks.push({ t, v: v5, line });
74419
+ const push = (t, v6) => toks.push({ t, v: v6, line });
74403
74420
  while (i < src.length) {
74404
74421
  const c = src[i];
74405
74422
  if (c === "\n") {
@@ -74525,7 +74542,7 @@ function tokenize2(src, file) {
74525
74542
  }
74526
74543
  return toks;
74527
74544
  }
74528
- function parse6(src, file) {
74545
+ function parse7(src, file) {
74529
74546
  const parser = new Parser2(tokenize2(src, file), file);
74530
74547
  const body = parser.body();
74531
74548
  if (parser.i < parser.toks.length) parser.fail(`unexpected ${parser.toks[parser.i].v}`);
@@ -74575,7 +74592,7 @@ function loadPodspec(file, appRoot = null) {
74575
74592
  ])
74576
74593
  );
74577
74594
  global.vars.set("__dir__", import_node_path78.default.dirname(import_node_path78.default.resolve(file)));
74578
- evaluator.run(global, parse6(import_node_fs81.default.readFileSync(file, "utf8"), file));
74595
+ evaluator.run(global, parse7(import_node_fs81.default.readFileSync(file, "utf8"), file));
74579
74596
  if (evaluator.roots.length !== 1)
74580
74597
  throw new UnsupportedPodspec(
74581
74598
  `${file}: expected one Pod::Spec, found ${evaluator.roots.length}`
@@ -74792,9 +74809,9 @@ var init_podspec_sources = __esm({
74792
74809
  `${this.file}:${this.toks[this.i]?.line ?? "end"}: ${message}`
74793
74810
  );
74794
74811
  }
74795
- at(v5) {
74812
+ at(v6) {
74796
74813
  const tok = this.toks[this.i];
74797
- return tok?.t === "id" && tok.v === v5;
74814
+ return tok?.t === "id" && tok.v === v6;
74798
74815
  }
74799
74816
  body() {
74800
74817
  const out = [];
@@ -74989,12 +75006,12 @@ var init_podspec_sources = __esm({
74989
75006
  while (this.depth > 0 && this.toks[this.i]?.t === "nl") this.i++;
74990
75007
  return this.toks[this.i];
74991
75008
  }
74992
- isOp(v5) {
75009
+ isOp(v6) {
74993
75010
  const tok = this.peek();
74994
- return tok?.t === "op" && tok.v === v5;
75011
+ return tok?.t === "op" && tok.v === v6;
74995
75012
  }
74996
- eatOp(v5) {
74997
- if (!this.isOp(v5)) return false;
75013
+ eatOp(v6) {
75014
+ if (!this.isOp(v6)) return false;
74998
75015
  this.i++;
74999
75016
  return true;
75000
75017
  }
@@ -75006,8 +75023,8 @@ var init_podspec_sources = __esm({
75006
75023
  `${this.file}:${this.toks[this.i]?.line ?? "end"}: ${why}`
75007
75024
  );
75008
75025
  }
75009
- expect(v5) {
75010
- if (!this.eatOp(v5)) this.fail(`expected ${v5}`);
75026
+ expect(v6) {
75027
+ if (!this.eatOp(v6)) this.fail(`expected ${v6}`);
75011
75028
  }
75012
75029
  done() {
75013
75030
  this.skipNl();
@@ -75409,8 +75426,8 @@ var init_podspec_sources = __esm({
75409
75426
  const l = this.ev(scope2, node.l);
75410
75427
  const r = this.ev(scope2, node.r);
75411
75428
  if (node.op === "==" || node.op === "!=") {
75412
- if (Array.isArray(l) && Array.isArray(r) && [...l, ...r].every((v5) => typeof v5 === "string"))
75413
- return (l.length === r.length && l.every((v5, index) => v5 === r[index])) === (node.op === "==");
75429
+ if (Array.isArray(l) && Array.isArray(r) && [...l, ...r].every((v6) => typeof v6 === "string"))
75430
+ return (l.length === r.length && l.every((v6, index) => v6 === r[index])) === (node.op === "==");
75414
75431
  if (typeof l === "object" && l !== null) this.fail("object comparison");
75415
75432
  return l === r === (node.op === "==");
75416
75433
  }
@@ -75512,7 +75529,7 @@ var init_podspec_sources = __esm({
75512
75529
  return value;
75513
75530
  if (Array.isArray(value)) return value.map(json);
75514
75531
  if (typeof value !== "object") return new Opaque("a JSON number");
75515
- return new Map(Object.entries(value).map(([k, v5]) => [k, json(v5)]));
75532
+ return new Map(Object.entries(value).map(([k, v6]) => [k, json(v6)]));
75516
75533
  };
75517
75534
  let parsed;
75518
75535
  try {
@@ -75592,7 +75609,7 @@ var init_podspec_sources = __esm({
75592
75609
  if (name3 === "select" && block2)
75593
75610
  return new Map(
75594
75611
  [...recv.entries()].filter(
75595
- ([k, v5]) => truthy(this.yieldBlock(scope2, block2, [k, v5]))
75612
+ ([k, v6]) => truthy(this.yieldBlock(scope2, block2, [k, v6]))
75596
75613
  )
75597
75614
  );
75598
75615
  return void 0;
@@ -75750,7 +75767,7 @@ var init_podspec_sources = __esm({
75750
75767
  const outer = this.current;
75751
75768
  this.current = file;
75752
75769
  try {
75753
- this.exec(new Scope(this.constants), parse6(import_node_fs81.default.readFileSync(file, "utf8"), file));
75770
+ this.exec(new Scope(this.constants), parse7(import_node_fs81.default.readFileSync(file, "utf8"), file));
75754
75771
  } finally {
75755
75772
  this.current = outer;
75756
75773
  }
@@ -81964,7 +81981,7 @@ var init_nitro_superset = __esm({
81964
81981
  init_swift_standin_digest();
81965
81982
  NITRO_SUPERSET_ENTRY_NAME = "superset";
81966
81983
  packageVersion = (root) => JSON.parse((0, import_node_fs92.readFileSync)((0, import_node_path89.join)(root, "package.json"), "utf8")).version;
81967
- NITRO_COMPILER_DIGEST = true ? "2578e0a117972ebfe44c2dab5ef161d102cc1c4b757eac0ebb3d5a43f04cba76" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
81984
+ NITRO_COMPILER_DIGEST = true ? "dfa17c6e2cbecb906db123df784c6bf7a048b88c14fb188da27719440bbe221c" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
81968
81985
  nitroSupersetLock = parseLock(nitro_superset_lock_default);
81969
81986
  nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
81970
81987
  published2 = /* @__PURE__ */ new Map();
@@ -84865,8 +84882,8 @@ var init_dev_server_scanner = __esm({
84865
84882
  // src/agent-events.ts
84866
84883
  function isAgentEvent(value) {
84867
84884
  if (!value || typeof value !== "object") return false;
84868
- const v5 = value;
84869
- return typeof v5.type === "string" && typeof v5.ts === "number";
84885
+ const v6 = value;
84886
+ return typeof v6.type === "string" && typeof v6.ts === "number";
84870
84887
  }
84871
84888
  function parseAgentEventLine(line) {
84872
84889
  const trimmed = line.trim();
@@ -92213,7 +92230,7 @@ function readExpoTypes(output2) {
92213
92230
  };
92214
92231
  });
92215
92232
  }
92216
- async function scanSources(tool, parse12, toolchain, moduleRoot, files2) {
92233
+ async function scanSources(tool, parse13, toolchain, moduleRoot, files2) {
92217
92234
  const digest3 = (0, import_node_crypto59.createHash)("sha256").update(JSON.stringify(toolchain.compiler));
92218
92235
  const sdk = await loadKotlinSdk(moduleRoot, toolchain);
92219
92236
  digest3.update(import_node_fs111.default.readFileSync(import_node_path112.default.join(moduleRoot, "sdk.tar.gz")));
@@ -92244,7 +92261,7 @@ async function scanSources(tool, parse12, toolchain, moduleRoot, files2) {
92244
92261
  });
92245
92262
  toolScans.set(key2, scan2);
92246
92263
  }
92247
- return parse12(await scan2);
92264
+ return parse13(await scan2);
92248
92265
  }
92249
92266
  async function scanExpoTypes(toolchain, moduleRoot, sources) {
92250
92267
  const candidates = sources.filter(
@@ -100936,9 +100953,9 @@ function createBridge(wsPort, opts = {}) {
100936
100953
  lineageBySimId.get(payload.simId)?.hostPid
100937
100954
  );
100938
100955
  pending.set(id, {
100939
- resolve: (v5) => {
100956
+ resolve: (v6) => {
100940
100957
  clearTimeoutFn();
100941
- resolve13(v5);
100958
+ resolve13(v6);
100942
100959
  },
100943
100960
  reject: (e) => {
100944
100961
  clearTimeoutFn();
@@ -104347,8 +104364,8 @@ function option(flag, description, hidden) {
104347
104364
  function example(command, description, hidden) {
104348
104365
  return hidden ? { command, description, hidden } : { command, description };
104349
104366
  }
104350
- function verb(v5, description, usage, examples, notes, extras) {
104351
- return { verb: v5, description, usage, examples, notes, ...extras };
104367
+ function verb(v6, description, usage, examples, notes, extras) {
104368
+ return { verb: v6, description, usage, examples, notes, ...extras };
104352
104369
  }
104353
104370
  function inspectVerbPathKey(group, verb2) {
104354
104371
  return `${group ?? ""}:${verb2}`;
@@ -110517,9 +110534,9 @@ async function runtimeList(_args) {
110517
110534
  if (installed2.length === 0) {
110518
110535
  console.log(` (none)`);
110519
110536
  } else {
110520
- for (const v5 of installed2) {
110521
- const marker = v5 === active ? "*" : " ";
110522
- console.log(` ${marker} ${v5}`);
110537
+ for (const v6 of installed2) {
110538
+ const marker = v6 === active ? "*" : " ";
110539
+ console.log(` ${marker} ${v6}`);
110523
110540
  }
110524
110541
  }
110525
110542
  try {
@@ -110531,7 +110548,7 @@ async function runtimeList(_args) {
110531
110548
  const hosted = Object.keys(manifest.versions).sort(compareSemver).reverse();
110532
110549
  if (hosted.length > 1) {
110533
110550
  console.log(`hosted versions:`);
110534
- for (const v5 of hosted) console.log(` ${v5}`);
110551
+ for (const v6 of hosted) console.log(` ${v6}`);
110535
110552
  }
110536
110553
  } catch (err) {
110537
110554
  console.log(`available: (could not fetch manifest: ${describeError(err)})`);
@@ -122701,7 +122718,7 @@ var init_maestro_js = __esm({
122701
122718
  const previous = this.envScopeStack.pop();
122702
122719
  if (previous) {
122703
122720
  this.envBinding.clear();
122704
- for (const [k, v5] of previous) this.envBinding.set(k, v5);
122721
+ for (const [k, v6] of previous) this.envBinding.set(k, v6);
122705
122722
  }
122706
122723
  }
122707
122724
  // evaluate a JS snippet in the shared context. mirrors upstream
@@ -122713,7 +122730,7 @@ var init_maestro_js = __esm({
122713
122730
  if (env && Object.keys(env).length > 0) {
122714
122731
  this.enterEnvScope();
122715
122732
  try {
122716
- for (const [k, v5] of Object.entries(env)) this.envBinding.set(k, v5);
122733
+ for (const [k, v6] of Object.entries(env)) this.envBinding.set(k, v6);
122717
122734
  return this.evalRaw(script);
122718
122735
  } finally {
122719
122736
  this.leaveEnvScope();
@@ -125690,7 +125707,7 @@ var init_bridge_flow_runner = __esm({
125690
125707
  this.js.enterEnvScope();
125691
125708
  try {
125692
125709
  if (env) {
125693
- for (const [k, v5] of Object.entries(env)) this.js.putEnv(k, v5);
125710
+ for (const [k, v6] of Object.entries(env)) this.js.putEnv(k, v6);
125694
125711
  }
125695
125712
  if (file) {
125696
125713
  const flowPath = path122.resolve(this.opts.flowDir, file);
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1900 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1901 | (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;
@@ -95,6 +95,7 @@ var import_node_crypto12 = require("node:crypto");
95
95
  var import_node_fs23 = require("node:fs");
96
96
  var import_node_os9 = __toESM(require("node:os"), 1);
97
97
  var import_node_path25 = __toESM(require("node:path"), 1);
98
+ var v5 = __toESM(require("valibot"), 1);
98
99
 
99
100
  // src/admitted-mac-build.ts
100
101
  var import_node_child_process = require("node:child_process");
@@ -2933,7 +2934,7 @@ function swiftToolchainBin(release) {
2933
2934
  return (process.env.PATH ?? "").split(import_node_path4.default.delimiter).find((dir) => dir && import_node_fs6.default.existsSync(import_node_path4.default.join(dir, "swift"))) ?? image;
2934
2935
  }
2935
2936
  var SWIFT_AUTOLINK_LINKER = ".peach-wasm-ld";
2936
- function writeSwiftAutolinkLinker(directory, toolchainBin) {
2937
+ function writeSwiftAutolinkLinker(directory, toolchainBin, omitLibraries = []) {
2937
2938
  const linker = import_node_path4.default.join(directory, SWIFT_AUTOLINK_LINKER);
2938
2939
  const script = `#!/bin/sh
2939
2940
  set -eu
@@ -2941,7 +2942,7 @@ for arg in "$@"; do
2941
2942
  case $arg in
2942
2943
  @*)
2943
2944
  rsp=\${arg#@}
2944
- awk 'BEGIN { RS = " "; ORS = " " } /^"-l/ { if (seen[$0]++) next } { print }' "$rsp" > "$rsp.dedup"
2945
+ awk 'BEGIN { RS = " "; ORS = " " } /^"-l/ { if (seen[$0]++) next }${omitLibraries.map((name2) => ` $0 == "\\"-l${name2}\\"" { next }`).join("")} { print }' "$rsp" > "$rsp.dedup"
2945
2946
  mv "$rsp.dedup" "$rsp"
2946
2947
  if [ "\${PEACH_DEFER_WASM_LINK:-}" = "1" ] && grep -q '"--start-lib"' "$rsp"; then
2947
2948
  cp "$rsp" ${JSON.stringify(import_node_path4.default.join(directory, ".peach-link.rsp"))}
@@ -7579,7 +7580,7 @@ function emitGuestImageProjection(images) {
7579
7580
  lines.push("const struct peach_guest_image __peach_guest_images[] = {");
7580
7581
  for (const [i, image] of images.entries()) {
7581
7582
  const uuid = image.uuid.match(/../g).map((byte) => `0x${byte}`).join(", ");
7582
- const version2 = (v5) => (v5.major * 65536 + v5.minor * 256 + v5.patch).toString();
7583
+ const version2 = (v6) => (v6.major * 65536 + v6.minor * 256 + v6.patch).toString();
7583
7584
  lines.push(
7584
7585
  ` {${cString(image.installName)}, ${image.fileType === "executable" ? 2 : 6}u, {${uuid}}, ${image.buildVersion.platform}u, ${version2(image.buildVersion.minimum)}u, ${version2(image.buildVersion.sdk)}u, ${image.regions.length}u, ${image.regions.length ? `regions_${i}` : "0"}},`
7585
7586
  );
@@ -9281,8 +9282,8 @@ function verifyGuestSymbolScopes(options) {
9281
9282
  providers: /* @__PURE__ */ new Map(),
9282
9283
  physicalModule: false
9283
9284
  };
9284
- if (object3 === "<internal>" && kind === "definition of") {
9285
- record.physicalModule = true;
9285
+ if (object3 === "<internal>") {
9286
+ if (kind === "definition of") record.physicalModule = true;
9286
9287
  } else {
9287
9288
  const image = options.owners.get(object3);
9288
9289
  if (image === void 0)
@@ -10222,9 +10223,14 @@ async function compileGuestLink(options) {
10222
10223
  systemProviders,
10223
10224
  hostImports: scope.hostImports
10224
10225
  });
10226
+ const wrapped = new Set(
10227
+ prepared.args.flatMap(
10228
+ (arg) => arg.startsWith("--wrap=") ? [arg.slice(7), `__wrap_${arg.slice(7)}`] : []
10229
+ )
10230
+ );
10225
10231
  return {
10226
10232
  ...plan,
10227
- symbols: scope.definitions,
10233
+ symbols: scope.definitions.filter((symbol) => !wrapped.has(symbol)),
10228
10234
  directBindings: verified.directBindings
10229
10235
  };
10230
10236
  }
@@ -12080,7 +12086,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
12080
12086
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
12081
12087
  var MULTI_MANIFEST_VERSION = 66;
12082
12088
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
12083
- var compilerSourceDigest = true ? "c4be619695260b40451023081c8cb00c1b676995061c31aaa9b066d256fb8134" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
12089
+ var compilerSourceDigest = true ? "8768dadacf2e909cf808df3a31fe261832d51fb29d48f2b45bd4df5c117c6f69" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
12084
12090
  function swiftArtifactHash(input, release, moduleRoot) {
12085
12091
  const hash = (0, import_node_crypto12.createHash)("sha256");
12086
12092
  hash.update(`swift-compile
@@ -16198,7 +16204,17 @@ function compileSwiftProjectOnce(input, options) {
16198
16204
  report("framework revision changed; rebuilding the app link");
16199
16205
  const nativeToolset = needsNativeToolset(input, prebuilt);
16200
16206
  const preparation = writeSwiftProject(layout2, input, frameworkRoot, prebuilt);
16201
- writeSwiftAutolinkLinker(root, options.toolchainBin);
16207
+ const productFile = import_node_path25.default.join(frameworkRoot, SWIFT_FRAMEWORK_PRODUCT_FILE);
16208
+ writeSwiftAutolinkLinker(
16209
+ root,
16210
+ options.toolchainBin,
16211
+ (0, import_node_fs23.existsSync)(productFile) ? [
16212
+ v5.parse(
16213
+ swiftFrameworkProductSchema,
16214
+ JSON.parse((0, import_node_fs23.readFileSync)(productFile, "utf8"))
16215
+ ).product.name
16216
+ ] : []
16217
+ );
16202
16218
  const projectProcess = options.project ? prepareSwiftProjectProcess(root, options.project) : void 0;
16203
16219
  const appOptions = projectProcess ? {
16204
16220
  ...buildOptions,