peachsim 0.1.2129 → 0.1.2155

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 (146) hide show
  1. package/README.md +1 -1
  2. package/cli/app-fonts.ts +1 -1
  3. package/cli/app-stubs.ts +1 -1
  4. package/cli/cli-release-origin.ts +1 -0
  5. package/cli/cli-update.ts +1 -1
  6. package/cli/cloud-box-artifact.ts +1 -1
  7. package/cli/cloud-test-tunnel.ts +1 -1
  8. package/cli/commands/compat.ts +1 -1
  9. package/cli/commands/control.ts +2 -0
  10. package/cli/commands/coverage.ts +1 -1
  11. package/cli/commands/flow.ts +8 -1
  12. package/cli/commands/inspect/core.ts +25 -4
  13. package/cli/commands/package.ts +21 -12
  14. package/cli/commands/shell-url.ts +8 -3
  15. package/cli/commands/upgrade.ts +1 -1
  16. package/cli/drivers/linux-browser-libs.ts +1 -1
  17. package/cli/outbound-endpoints.ts +4 -0
  18. package/cli/remote-project-bundle.ts +2 -2
  19. package/detox/index.ts +12 -5
  20. package/dist-lib/agent-daemon-client.cjs +1 -1
  21. package/dist-lib/agent-events.cjs +1 -1
  22. package/dist-lib/attached-projects.cjs +1 -1
  23. package/dist-lib/auth/shared-session.cjs +1 -1
  24. package/dist-lib/backend-origin.cjs +1 -1
  25. package/dist-lib/beta.cjs +1 -1
  26. package/dist-lib/beta.mjs +1 -1
  27. package/dist-lib/bridge-constants.cjs +1 -1
  28. package/dist-lib/bridge-contract-input.cjs +1 -1
  29. package/dist-lib/bridge-contract-input.mjs +1 -1
  30. package/dist-lib/bridge-contract.cjs +1 -1
  31. package/dist-lib/bridge-contract.mjs +1 -1
  32. package/dist-lib/bundle-channel.cjs +1795 -1801
  33. package/dist-lib/capture-contract.cjs +1 -1
  34. package/dist-lib/capture-contract.mjs +1 -1
  35. package/dist-lib/cloud-contract.cjs +1 -1
  36. package/dist-lib/cloud-contract.mjs +1 -1
  37. package/dist-lib/cloud-test-args.cjs +1 -1
  38. package/dist-lib/cloud-test-args.mjs +1 -1
  39. package/dist-lib/cloud.cjs +1 -1
  40. package/dist-lib/cloud.mjs +1 -1
  41. package/dist-lib/config.cjs +2 -2
  42. package/dist-lib/config.mjs +2 -2
  43. package/dist-lib/detox/index.cjs +31 -8
  44. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  45. package/dist-lib/expo-swift-bundle.cjs +41 -33
  46. package/dist-lib/expo-swift-metadata.cjs +10 -2
  47. package/dist-lib/expo-swift-metadata.mjs +9 -2
  48. package/dist-lib/home-paths.cjs +1 -1
  49. package/dist-lib/host/bridge-host.cjs +276 -243
  50. package/dist-lib/host/fetch-proxy-handler.cjs +459 -484
  51. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  52. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  53. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  54. package/dist-lib/host/websocket-proxy.cjs +1 -1
  55. package/dist-lib/index.cjs +266 -266
  56. package/dist-lib/jump-to-source-babel.cjs +1 -1
  57. package/dist-lib/jump-to-source-native.cjs +1 -1
  58. package/dist-lib/kotlin-host.cjs +1 -1
  59. package/dist-lib/menu.cjs +1 -1
  60. package/dist-lib/menu.mjs +1 -1
  61. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  62. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  63. package/dist-lib/metro-production-bundle.cjs +2 -2
  64. package/dist-lib/metro-production-bundle.mjs +2 -2
  65. package/dist-lib/metro.cjs +320 -336
  66. package/dist-lib/native-app-identity-project.cjs +134 -159
  67. package/dist-lib/native-app-identity-project.mjs +428 -459
  68. package/dist-lib/native-app-identity.cjs +18 -18
  69. package/dist-lib/native-app-identity.mjs +18 -18
  70. package/dist-lib/native-firebase-metadata.cjs +2 -2
  71. package/dist-lib/native-firebase-metadata.mjs +2 -2
  72. package/dist-lib/pdfium-raster.cjs +1 -1
  73. package/dist-lib/pdfium-raster.mjs +1 -1
  74. package/dist-lib/plist.cjs +1 -1
  75. package/dist-lib/plist.mjs +1 -1
  76. package/dist-lib/profiles.cjs +1 -1
  77. package/dist-lib/public-brand.cjs +1 -1
  78. package/dist-lib/public-origins-lib-esm.json +32 -36
  79. package/dist-lib/public-origins-lib.json +135 -161
  80. package/dist-lib/react-native-host-modules.cjs +1 -1
  81. package/dist-lib/react-native-host-modules.mjs +1 -1
  82. package/dist-lib/reap-browser.cjs +1 -1
  83. package/dist-lib/scripts/dev-server-scanner.cjs +2 -2
  84. package/dist-lib/sdk.cjs +20 -2
  85. package/dist-lib/sdk.mjs +20 -2
  86. package/dist-lib/skills.cjs +587 -531
  87. package/dist-lib/swift-compile.cjs +23 -8
  88. package/dist-lib/swift-compile.mjs +23 -8
  89. package/dist-lib/swift-package.cjs +1 -1
  90. package/dist-lib/swift-package.mjs +1 -1
  91. package/dist-lib/swift-submit.cjs +1 -1
  92. package/dist-lib/swift-submit.mjs +1 -1
  93. package/dist-lib/swift-toolchain.cjs +1 -1
  94. package/dist-lib/swift.cjs +1 -1
  95. package/dist-lib/vite-swift.cjs +41 -39
  96. package/dist-lib/vite.cjs +745 -768
  97. package/dist-lib/worklet-executable.cjs +1 -1
  98. package/dist-lib/worklet-executable.mjs +1 -1
  99. package/dist-types/packages/peach-compat/src/stubs/native-seams/react-native-cookies.d.ts +1 -1
  100. package/dist-types/packages/peach-engine/src/engine/secureItemHostContract.d.ts +1 -1
  101. package/dist-types/packages/peach-engine/src/render-worker/expo-widgets-activityContract.d.ts +1 -1
  102. package/dist-types/packages/peach-engine/src/render-worker/map-command-channel.d.ts +2 -0
  103. package/dist-types/packages/peach-engine/src/render-worker/metro-bundle-metadata.d.ts +1 -1
  104. package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +1 -1
  105. package/dist-types/packages/peach-engine/src/render-worker/one-native-contentContract.d.ts +1 -1
  106. package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +2 -2
  107. package/dist-types/packages/peach-engine/src/render-worker/worklet-serialize.d.ts +1 -1
  108. package/dist-types/packages/peach-engine/src/render-worker/worklet-wire.d.ts +1 -1
  109. package/dist-types/packages/peach-globals/src/globalsContract.d.ts +1 -1
  110. package/dist-types/packages/peach-globals/src/package-versions.d.ts +16 -0
  111. package/package.json +1 -1
  112. package/runtime-companion.json +1 -1
  113. package/src/androidAutolinkingContract.ts +1 -1
  114. package/src/androidRootModuleContract.ts +1 -1
  115. package/src/bundle-channel.mjs +1 -1
  116. package/src/config.ts +1 -1
  117. package/src/configured-bundle-producer.ts +1 -1
  118. package/src/expo-swift-host.ts +34 -4
  119. package/src/expoKotlinContract.ts +4 -1
  120. package/src/expoSwiftContract.ts +18 -4
  121. package/src/guest-bundle.ts +1 -1
  122. package/src/host/dev-server-package-versions.ts +1 -1
  123. package/src/host/fetch-proxy-handler.ts +1 -1
  124. package/src/installed-native-build-options.ts +2 -2
  125. package/src/installed-package-versions.ts +7 -7
  126. package/src/metro-plugin.ts +1 -1
  127. package/src/metro-production-bundle.ts +1 -1
  128. package/src/native-app-identity.ts +1 -1
  129. package/src/native-firebase-metadata.ts +1 -1
  130. package/src/nitro-adapter.lock.json +244 -244
  131. package/src/nitro-superset.lock.json +4 -4
  132. package/src/nitroContract.ts +1 -1
  133. package/src/oneSdkContract.ts +1 -1
  134. package/src/react-native-coverage/capability-reference-resolution.ts +4 -4
  135. package/src/storageSnapshotContract.ts +2 -2
  136. package/src/swift-compile.ts +24 -7
  137. package/src/swift-coverage/source.ts +1 -1
  138. package/src/swift-distribution.lock.json +8 -8
  139. package/src/turbo-runtime.lock.json +18 -18
  140. package/src/vite-plugin-one.ts +4 -4
  141. package/src/vite-plugin.ts +6 -6
  142. package/src/bundleGlobalFooter.ts +0 -137
  143. package/src/packageVersionsContract.ts +0 -131
  144. /package/dist-types/packages/{peach-compat/src/stubs → peach-engine/src/guest}/native-evaluation-lease.d.ts +0 -0
  145. /package/dist-types/packages/{peach-compat → peach-globals}/src/secure-item-store.d.ts +0 -0
  146. /package/dist-types/packages/{peach-compat/src/stubs → peach-kit/src}/ring-mode-state.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2129 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2155 | (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;
@@ -14,8 +14,8 @@ var __commonJS = (cb, mod) => function __require() {
14
14
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
15
15
  };
16
16
  var __export = (target, all) => {
17
- for (var name2 in all)
18
- __defProp(target, name2, { get: all[name2], enumerable: true });
17
+ for (var name in all)
18
+ __defProp(target, name, { get: all[name], enumerable: true });
19
19
  };
20
20
  var __copyProps = (to, from, except, desc) => {
21
21
  if (from && typeof from === "object" || typeof from === "function") {
@@ -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": "0b82b3773f9c0b27636f277d9c123b3e631b9c9980995d67d67efa6b3176df4a", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "65a0698bf022ace2f4254f3f891828dedf403d61c102238e242084a2279e04eb", "home-paths.ts": "783c20faf3235e3fc1846b056d788f29d9bfdfc946822b62acf722341b3a10fd", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "5f41cd0bd86cb0cffbfb0047348b963f81d5e51cb0e8dd574c739b1a27aa56de", "xcode-target-members.ts": "ad7589132bffab265e8a10b64e24484fe88b4a2b1cc0ee19a97f151a002eca77", "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": "c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee", "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": "0b82b3773f9c0b27636f277d9c123b3e631b9c9980995d67d67efa6b3176df4a", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "65a0698bf022ace2f4254f3f891828dedf403d61c102238e242084a2279e04eb", "home-paths.ts": "783c20faf3235e3fc1846b056d788f29d9bfdfc946822b62acf722341b3a10fd", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "5f41cd0bd86cb0cffbfb0047348b963f81d5e51cb0e8dd574c739b1a27aa56de", "xcode-target-members.ts": "ad7589132bffab265e8a10b64e24484fe88b4a2b1cc0ee19a97f151a002eca77", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
43
43
  }
44
44
  });
45
45
 
@@ -111,8 +111,8 @@ var require_parse = __commonJS({
111
111
  }
112
112
  return root;
113
113
  };
114
- function internalize(holder, name2, reviver) {
115
- const value = holder[name2];
114
+ function internalize(holder, name, reviver) {
115
+ const value = holder[name];
116
116
  if (value != null && typeof value === "object") {
117
117
  if (Array.isArray(value)) {
118
118
  for (let i = 0; i < value.length; i++) {
@@ -145,7 +145,7 @@ var require_parse = __commonJS({
145
145
  }
146
146
  }
147
147
  }
148
- return reviver.call(holder, name2, value);
148
+ return reviver.call(holder, name, value);
149
149
  }
150
150
  var lexState;
151
151
  var buffer;
@@ -1250,18 +1250,18 @@ function parseXml(text2, file) {
1250
1250
  if (!match)
1251
1251
  throw new Error(`${file}: unreadable markup at ${body.slice(open, open + 40)}`);
1252
1252
  index = TAG.lastIndex;
1253
- const [, closing, name2, rawAttributes, selfClosing] = match;
1254
- if (!name2) continue;
1253
+ const [, closing, name, rawAttributes, selfClosing] = match;
1254
+ if (!name) continue;
1255
1255
  if (closing) {
1256
1256
  const element2 = stack.pop();
1257
- if (element2?.name !== name2)
1258
- throw new Error(`${file}: </${name2}> closes <${element2?.name}>`);
1257
+ if (element2?.name !== name)
1258
+ throw new Error(`${file}: </${name}> closes <${element2?.name}>`);
1259
1259
  continue;
1260
1260
  }
1261
1261
  const attributes = {};
1262
1262
  for (const [, key, double, single] of (rawAttributes ?? "").matchAll(ATTRIBUTE))
1263
1263
  if (key) attributes[key] = decodeXmlText(double ?? single ?? "", file);
1264
- const element = { name: name2, attributes, children: [], text: "" };
1264
+ const element = { name, attributes, children: [], text: "" };
1265
1265
  stack.at(-1)?.children.push(element);
1266
1266
  if (!selfClosing) stack.push(element);
1267
1267
  }
@@ -1277,7 +1277,7 @@ function nativeAppIdentityFromAndroidManifest(source, file, files = {}) {
1277
1277
  const manifest = document.children[0];
1278
1278
  if (manifest.name !== "manifest") return null;
1279
1279
  const androidPrefix = Object.entries(manifest.attributes).find(
1280
- ([name2, value]) => name2.startsWith("xmlns:") && value === "http://schemas.android.com/apk/res/android"
1280
+ ([name, value]) => name.startsWith("xmlns:") && value === "http://schemas.android.com/apk/res/android"
1281
1281
  )?.[0].slice("xmlns:".length);
1282
1282
  if (!androidPrefix) return null;
1283
1283
  const attribute = `${androidPrefix}:`;
@@ -1288,8 +1288,8 @@ function nativeAppIdentityFromAndroidManifest(source, file, files = {}) {
1288
1288
  if (!application || !bundleIdentifier || !appVersion || !buildVersion || !/^[1-9][0-9]*$/.test(buildVersion) || [bundleIdentifier, appVersion].some((value) => /\$\{|^[@?]/.test(value)))
1289
1289
  return null;
1290
1290
  const toolsPrefixes = Object.entries(manifest.attributes).filter(
1291
- ([name2, value]) => name2.startsWith("xmlns:") && value === "http://schemas.android.com/tools"
1292
- ).map(([name2]) => `${name2.slice("xmlns:".length)}:`);
1291
+ ([name, value]) => name.startsWith("xmlns:") && value === "http://schemas.android.com/tools"
1292
+ ).map(([name]) => `${name.slice("xmlns:".length)}:`);
1293
1293
  const androidManifestPermissions = [];
1294
1294
  for (const element of manifest.children) {
1295
1295
  if (!["uses-permission", "uses-permission-sdk-23", "uses-permission-sdk-m"].includes(
@@ -1300,12 +1300,12 @@ function nativeAppIdentityFromAndroidManifest(source, file, files = {}) {
1300
1300
  (key) => toolsPrefixes.some((prefix) => key.startsWith(prefix))
1301
1301
  ))
1302
1302
  return null;
1303
- const name2 = element.attributes[`${attribute}name`];
1303
+ const name = element.attributes[`${attribute}name`];
1304
1304
  const max = element.attributes[`${attribute}maxSdkVersion`];
1305
- if (!name2 || /\$\{|^[@?]/.test(name2) || element.attributes[`${attribute}requiredFeature`] !== void 0 || element.attributes[`${attribute}requiredNotFeature`] !== void 0 || max !== void 0 && !/^\d+$/.test(max))
1305
+ if (!name || /\$\{|^[@?]/.test(name) || element.attributes[`${attribute}requiredFeature`] !== void 0 || element.attributes[`${attribute}requiredNotFeature`] !== void 0 || max !== void 0 && !/^\d+$/.test(max))
1306
1306
  return null;
1307
1307
  androidManifestPermissions.push({
1308
- name: name2,
1308
+ name,
1309
1309
  minSdkVersion: element.name === "uses-permission" ? 1 : 23,
1310
1310
  ...max === void 0 ? {} : { maxSdkVersion: Number(max) }
1311
1311
  });
@@ -1329,15 +1329,15 @@ function nativeAppIdentityFromAndroidManifest(source, file, files = {}) {
1329
1329
  const root = document2.children[0];
1330
1330
  if (document2.children.length === 1 && root?.name === "resources") {
1331
1331
  const qualified = Object.entries(files).filter(
1332
- ([name2]) => name2.startsWith(`${resourceDirectory}/values-`) && name2.endsWith(".xml")
1333
- ).flatMap(([name2, source2]) => parseXml(source2, name2).children).flatMap((root2) => root2.children);
1332
+ ([name]) => name.startsWith(`${resourceDirectory}/values-`) && name.endsWith(".xml")
1333
+ ).flatMap(([name, source2]) => parseXml(source2, name).children).flatMap((root2) => root2.children);
1334
1334
  const visited = /* @__PURE__ */ new Set();
1335
1335
  while (label?.startsWith("@string/") && !visited.has(label)) {
1336
1336
  visited.add(label);
1337
- const name2 = label.slice("@string/".length);
1338
- if (qualified.some((element) => element.attributes.name === name2)) break;
1337
+ const name = label.slice("@string/".length);
1338
+ if (qualified.some((element) => element.attributes.name === name)) break;
1339
1339
  const matches = root.children.filter(
1340
- (element) => (element.name === "string" || element.name === "item" && element.attributes.type === "string") && element.attributes.name === name2
1340
+ (element) => (element.name === "string" || element.name === "item" && element.attributes.type === "string") && element.attributes.name === name
1341
1341
  );
1342
1342
  const value = matches.length === 1 ? matches[0] : void 0;
1343
1343
  if (!value || value.children.length) break;
@@ -1379,7 +1379,7 @@ function isRecord(value) {
1379
1379
  // src/native-app-identity.ts
1380
1380
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
1381
1381
 
1382
- // src/bundleGlobalFooter.ts
1382
+ // ../peach-globals/src/bundle-global-footer.ts
1383
1383
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
1384
1384
 
1385
1385
  // src/nativeAppIconContract.ts
@@ -1395,13 +1395,13 @@ function resolveNativeAppIconArtwork(resources, readText, resourceUri, icons, pr
1395
1395
  const alternates = Object.fromEntries(
1396
1396
  Object.entries(
1397
1397
  isRecord(dictionary.CFBundleAlternateIcons) ? dictionary.CFBundleAlternateIcons : {}
1398
- ).map(([name2, declaration]) => [resolveReference(name2), declaration])
1398
+ ).map(([name, declaration]) => [resolveReference(name), declaration])
1399
1399
  );
1400
1400
  const resolve = (declaration, defaultName) => {
1401
1401
  const entry = isRecord(declaration) ? declaration : {};
1402
- const name2 = typeof entry.CFBundleIconName === "string" ? resolveReference(entry.CFBundleIconName) : resolveReference(defaultName);
1402
+ const name = typeof entry.CFBundleIconName === "string" ? resolveReference(entry.CFBundleIconName) : resolveReference(defaultName);
1403
1403
  const catalogs = resources.filter(
1404
- (file) => file.endsWith(`/${name2}.appiconset/Contents.json`)
1404
+ (file) => file.endsWith(`/${name}.appiconset/Contents.json`)
1405
1405
  );
1406
1406
  const populatedCatalogs = [];
1407
1407
  for (const catalog of catalogs) {
@@ -1422,7 +1422,7 @@ function resolveNativeAppIconArtwork(resources, readText, resourceUri, icons, pr
1422
1422
  if (catalogCandidates.length > 0) populatedCatalogs.push(catalogCandidates);
1423
1423
  }
1424
1424
  if (populatedCatalogs.length > 1)
1425
- throw new Error(`native app icon catalog ${name2} is ambiguous`);
1425
+ throw new Error(`native app icon catalog ${name} is ambiguous`);
1426
1426
  const candidates = [];
1427
1427
  if (populatedCatalogs.length === 1) {
1428
1428
  candidates.push(...populatedCatalogs[0]);
@@ -1452,9 +1452,9 @@ function resolveNativeAppIconArtwork(resources, readText, resourceUri, icons, pr
1452
1452
  return {
1453
1453
  ...primary.length ? { primary } : {},
1454
1454
  alternates: Object.fromEntries(
1455
- alternateNames.flatMap((name2) => {
1456
- const images = resolve(alternates[name2], name2);
1457
- return images.length ? [[name2, images]] : [];
1455
+ alternateNames.flatMap((name) => {
1456
+ const images = resolve(alternates[name], name);
1457
+ return images.length ? [[name, images]] : [];
1458
1458
  })
1459
1459
  )
1460
1460
  };
@@ -1837,7 +1837,7 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
1837
1837
  targetName = [...applicationTargetNames][0];
1838
1838
  } else if (applicationTargetNames.size > 1) {
1839
1839
  const delegateTargets = Object.keys(files).filter((path11) => !path11.includes("/Pods/")).map((path11) => path11.match(APP_DELEGATE_PATH_RE)?.[1]).filter(
1840
- (name2) => typeof name2 === "string" && applicationTargetNames.has(name2)
1840
+ (name) => typeof name === "string" && applicationTargetNames.has(name)
1841
1841
  );
1842
1842
  if (delegateTargets.length === 1) {
1843
1843
  targetName = delegateTargets[0];
@@ -1954,8 +1954,8 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
1954
1954
  const icons = dictionary.CFBundleIcons;
1955
1955
  const alternates = isRecord(icons) ? icons.CFBundleAlternateIcons : void 0;
1956
1956
  const alternateIconNames = /* @__PURE__ */ new Set();
1957
- for (const name2 of isRecord(alternates) ? Object.keys(alternates) : []) {
1958
- const resolved = resolveBuildSetting(name2, settings);
1957
+ for (const name of isRecord(alternates) ? Object.keys(alternates) : []) {
1958
+ const resolved = resolveBuildSetting(name, settings);
1959
1959
  if (resolved === null) throw new Error("native alternate icon name is unresolved");
1960
1960
  alternateIconNames.add(resolved);
1961
1961
  }
@@ -2502,7 +2502,7 @@ var WASI_EMULATION = [
2502
2502
  "_WASI_EMULATED_MMAN",
2503
2503
  "_WASI_EMULATED_PROCESS_CLOCKS"
2504
2504
  ];
2505
- var WASI_EMULATION_FLAGS = WASI_EMULATION.map((name2) => `-D${name2}`);
2505
+ var WASI_EMULATION_FLAGS = WASI_EMULATION.map((name) => `-D${name}`);
2506
2506
  var NATIVE_GRAPH_INPUTS = {
2507
2507
  sdk: NATIVE_GRAPH_SDK_VERSION,
2508
2508
  settings: "e68503e5e534e9194af5efe8c636ca8b824e2d8237c5f38ec84aa4d155bc8418",
@@ -2897,34 +2897,9 @@ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
2897
2897
  // cli/drivers/linux-browser-libs.ts
2898
2898
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
2899
2899
 
2900
- // cli/cli-update.ts
2900
+ // cli/cli-release-origin.ts
2901
2901
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
2902
2902
 
2903
- // src/automatic-update-policy.ts
2904
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
2905
-
2906
- // src/cli-version.ts
2907
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
2908
-
2909
- // src/public-brand.ts
2910
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
2911
- var name = "Peach";
2912
- var peachPublicBrand = Object.freeze({
2913
- name,
2914
- packageName: "peachsim",
2915
- commandName: "peach",
2916
- domain: "peachsim.com",
2917
- origin: "https://peachsim.com",
2918
- boxOrigin: "https://rnx-box.contrast.dev"
2919
- });
2920
-
2921
- // cli/commands/inspect/env.ts
2922
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
2923
-
2924
- // cli/cli-update.ts
2925
- var CLI_UPDATE_CHECK_INTERVAL_MS = 20 * 60 * 60 * 1e3;
2926
- var CLI_UPDATE_NOTIFICATION_COOLDOWN_MS = 7 * 24 * 60 * 60 * 1e3;
2927
-
2928
2903
  // src/swift-compile.ts
2929
2904
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
2930
2905
  var v5 = __toESM(require("valibot"), 1);
@@ -3187,7 +3162,7 @@ var import_node_zlib = require("node:zlib");
3187
3162
  // ../sootsim-swift/src/icuData.ts
3188
3163
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3189
3164
 
3190
- // ../peach-compat/src/stubs/wasm-memory.ts
3165
+ // ../peach-kit/src/wasm-memory.ts
3191
3166
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3192
3167
 
3193
3168
  // ../sootsim-swift/src/icuData.ts
@@ -3302,7 +3277,7 @@ var FOUNDATION_IMPLICIT_MODULES = [
3302
3277
  var FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
3303
3278
  (module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
3304
3279
  ).join("");
3305
- var compilerSourceDigest = true ? "843f17528adac933fd6c87617d5563cab5006f5a85cd541b2bc4f09a4c3fbb91" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
3280
+ var compilerSourceDigest = true ? "91c8105b0a382e74c2395d36f69294e1ec6afa3aa0b66c61b6b11e63e0dbe5d7" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
3306
3281
  var CORE_FOUNDATION_HANDLE_IMPORTS = [
3307
3282
  "CFAllocator",
3308
3283
  "CFArray",
@@ -3317,7 +3292,7 @@ var CORE_FOUNDATION_HANDLE_IMPORTS = [
3317
3292
  "CFSet",
3318
3293
  "CFString",
3319
3294
  "CFURL"
3320
- ].map((name2) => `import class CoreFoundation.${name2}`).concat([
3295
+ ].map((name) => `import class CoreFoundation.${name}`).concat([
3321
3296
  "import typealias CoreFoundation.CFPropertyList",
3322
3297
  "import typealias CoreFoundation.CFTypeRef",
3323
3298
  "import CoreGraphics"
@@ -3438,8 +3413,8 @@ function readXcodeJsonProject(xcodeproj, source) {
3438
3413
  const kind = text(entry.kind) ?? "file-reference";
3439
3414
  const raw = text(entry.path) ?? "";
3440
3415
  const located = raw === "" ? null : locate(raw, parent.dir);
3441
- const name2 = text(entry.name) ?? import_node_path9.default.basename(raw);
3442
- const node = { id: "", name: name2, dir: null, parent, children: [] };
3416
+ const name = text(entry.name) ?? import_node_path9.default.basename(raw);
3417
+ const node = { id: "", name, dir: null, parent, children: [] };
3443
3418
  if (kind === "group" || kind === "variant-group" || kind === "version-group") {
3444
3419
  node.dir = raw === "" ? parent.dir : located?.sourceTree === "<absolute>" ? located.path : null;
3445
3420
  const childIds = walk(items(entry.children), node);
@@ -3452,7 +3427,7 @@ function readXcodeJsonProject(xcodeproj, source) {
3452
3427
  isa: kind === "variant-group" ? "PBXVariantGroup" : "PBXGroup",
3453
3428
  children: childIds,
3454
3429
  ...kind === "variant-group" ? {} : { sourceTree: "<absolute>", path: node.dir ?? "" },
3455
- name: name2
3430
+ name
3456
3431
  },
3457
3432
  text(entry.id)
3458
3433
  );
@@ -3470,7 +3445,7 @@ function readXcodeJsonProject(xcodeproj, source) {
3470
3445
  {
3471
3446
  isa: "PBXFileReference",
3472
3447
  ...located ?? { sourceTree: "SDKROOT", path: raw },
3473
- name: name2
3448
+ name
3474
3449
  },
3475
3450
  text(entry.id)
3476
3451
  );
@@ -3522,8 +3497,8 @@ function readXcodeJsonProject(xcodeproj, source) {
3522
3497
  return node;
3523
3498
  };
3524
3499
  const configurations = items(json.configurations).flatMap((entry) => {
3525
- const name2 = isObject(entry) ? text(entry.name) : text(entry);
3526
- return name2 ? [{ name: name2, file: isObject(entry) ? entry.file : void 0 }] : [];
3500
+ const name = isObject(entry) ? text(entry.name) : text(entry);
3501
+ return name ? [{ name, file: isObject(entry) ? entry.file : void 0 }] : [];
3527
3502
  });
3528
3503
  const settingsOf = (value) => Object.fromEntries(
3529
3504
  Object.entries(isObject(value) ? value : {}).flatMap(
@@ -3538,14 +3513,14 @@ function readXcodeJsonProject(xcodeproj, source) {
3538
3513
  const configurationList = (settings, specialized) => add({
3539
3514
  isa: "XCConfigurationList",
3540
3515
  defaultConfigurationName: text(json["default-configuration"]) ?? "Debug",
3541
- buildConfigurations: configurations.map(({ name: name2, file }) => {
3542
- const reference = specialized.has(name2) ? specialized.get(name2) : file;
3516
+ buildConfigurations: configurations.map(({ name, file }) => {
3517
+ const reference = specialized.has(name) ? specialized.get(name) : file;
3543
3518
  const base = lookup(reference);
3544
3519
  const anchor = isObject(reference) ? lookupNode(reference.anchor, root)?.id : null;
3545
3520
  const relative = isObject(reference) ? text(reference["relative-path"]) : null;
3546
3521
  return add({
3547
3522
  isa: "XCBuildConfiguration",
3548
- name: name2,
3523
+ name,
3549
3524
  buildSettings: settings,
3550
3525
  ...base ? { baseConfigurationReference: base } : anchor && relative ? {
3551
3526
  baseConfigurationReferenceAnchor: anchor,
@@ -3559,13 +3534,13 @@ function readXcodeJsonProject(xcodeproj, source) {
3559
3534
  if (!isObject(entry)) continue;
3560
3535
  const repository = text(entry.repository);
3561
3536
  const local = text(entry.path);
3562
- const name2 = local !== void 0 ? import_node_path9.default.basename(import_node_path9.default.resolve(import_node_path9.default.dirname(xcodeproj), local)) : import_node_path9.default.basename(repository ?? "").replace(/\.git$/, "");
3537
+ const name = local !== void 0 ? import_node_path9.default.basename(import_node_path9.default.resolve(import_node_path9.default.dirname(xcodeproj), local)) : import_node_path9.default.basename(repository ?? "").replace(/\.git$/, "");
3563
3538
  const id = text(entry.kind) === "local" && local !== void 0 ? add({ isa: "XCLocalSwiftPackageReference", relativePath: local }) : add({
3564
3539
  isa: "XCRemoteSwiftPackageReference",
3565
3540
  repositoryURL: repository ?? "",
3566
3541
  ...remoteVersionRequirement(entry)
3567
3542
  });
3568
- packageIds.set(name2.toLowerCase(), id);
3543
+ packageIds.set(name.toLowerCase(), id);
3569
3544
  }
3570
3545
  const productDependency = (entry) => add({
3571
3546
  isa: "XCSwiftPackageProductDependency",
@@ -3585,12 +3560,12 @@ function readXcodeJsonProject(xcodeproj, source) {
3585
3560
  const targets = [];
3586
3561
  for (const entry of items(json.targets)) {
3587
3562
  if (!isObject(entry)) continue;
3588
- const name2 = text(entry.name) ?? "";
3563
+ const name = text(entry.name) ?? "";
3589
3564
  const productType = text(entry["product-type"]);
3590
3565
  const target = {
3591
3566
  isa: text(entry.kind) === "aggregate" ? "PBXAggregateTarget" : "PBXNativeTarget",
3592
- name: name2,
3593
- productName: name2,
3567
+ name,
3568
+ productName: name,
3594
3569
  productType: productType ? `com.apple.product-type.${productType}` : text(entry["full-product-type"]) ?? "",
3595
3570
  buildPhases: [],
3596
3571
  dependencies: [],
@@ -3600,7 +3575,7 @@ function readXcodeJsonProject(xcodeproj, source) {
3600
3575
  const product = lookup(entry.product);
3601
3576
  if (product) target.productReference = product;
3602
3577
  const id = add(target, text(entry.id));
3603
- targetIds.set(name2, id);
3578
+ targetIds.set(name, id);
3604
3579
  targets.push({ id, target, entry });
3605
3580
  for (const phase of items(entry["build-phases"])) {
3606
3581
  const kind = isObject(phase) ? text(phase.kind) : text(phase);
@@ -3612,7 +3587,7 @@ function readXcodeJsonProject(xcodeproj, source) {
3612
3587
  isObject(phase) ? text(phase.id) : void 0
3613
3588
  );
3614
3589
  target.buildPhases.push(phaseId);
3615
- phases.set([name2, kind, phaseName].filter(Boolean).join("/"), phaseId);
3590
+ phases.set([name, kind, phaseName].filter(Boolean).join("/"), phaseId);
3616
3591
  phases.set(`id:${phaseId}`, phaseId);
3617
3592
  }
3618
3593
  }
@@ -3628,7 +3603,7 @@ function readXcodeJsonProject(xcodeproj, source) {
3628
3603
  files?.push(add({ isa: "PBXBuildFile", fileRef: refId }));
3629
3604
  }
3630
3605
  for (const { target, entry } of targets) {
3631
- const name2 = text(entry.name) ?? "";
3606
+ const name = text(entry.name) ?? "";
3632
3607
  target.buildConfigurationList = configurationList(
3633
3608
  settingsOf(entry["build-settings"]),
3634
3609
  new Map(
@@ -3666,7 +3641,7 @@ function readXcodeJsonProject(xcodeproj, source) {
3666
3641
  const dependency = productDependency(member);
3667
3642
  target.packageProductDependencies.push(dependency);
3668
3643
  const buildFile = member["build-phase"];
3669
- phaseFiles(isObject(buildFile) ? buildFile["build-phase"] : buildFile, name2)?.push(
3644
+ phaseFiles(isObject(buildFile) ? buildFile["build-phase"] : buildFile, name)?.push(
3670
3645
  add({ isa: "PBXBuildFile", productRef: dependency })
3671
3646
  );
3672
3647
  }
@@ -3820,8 +3795,8 @@ function applyConditions(raw, configuration) {
3820
3795
  continue;
3821
3796
  }
3822
3797
  const matches = [...key.slice(bracket).matchAll(/\[([^=\]]+)=([^\]]*)\]/g)].every(
3823
- ([, name2, pattern]) => {
3824
- const actual = name2 === "config" ? configuration : CONDITIONS[name2];
3798
+ ([, name, pattern]) => {
3799
+ const actual = name === "config" ? configuration : CONDITIONS[name];
3825
3800
  return actual !== void 0 && new RegExp(
3826
3801
  `^${pattern.replace(/[.+^${}()|\\]/g, "\\$&").replaceAll("*", ".*").replaceAll("?", ".")}$`
3827
3802
  ).test(actual);
@@ -3915,8 +3890,8 @@ function remotePackageRequirements(projects) {
3915
3890
  }
3916
3891
  var loaded = /* @__PURE__ */ new Map();
3917
3892
  function xcodeProjectFile(xcodeproj) {
3918
- for (const name2 of ["project.pbxproj", "project.xcproj"]) {
3919
- const file = import_node_path10.default.join(xcodeproj, name2);
3893
+ for (const name of ["project.pbxproj", "project.xcproj"]) {
3894
+ const file = import_node_path10.default.join(xcodeproj, name);
3920
3895
  if (import_node_fs6.default.existsSync(file)) return file;
3921
3896
  }
3922
3897
  return null;
@@ -3976,7 +3951,7 @@ function targetSettings(ref, configuration, builtins, options = {}, overrides =
3976
3951
  };
3977
3952
  const level = (config) => {
3978
3953
  if (!config) return [];
3979
- const name2 = str(config.name) ?? configuration;
3954
+ const name = str(config.name) ?? configuration;
3980
3955
  const base = str(config.baseConfigurationReference);
3981
3956
  const anchor = str(config.baseConfigurationReferenceAnchor);
3982
3957
  const relative = str(config.baseConfigurationReferenceRelativePath);
@@ -3991,14 +3966,14 @@ function targetSettings(ref, configuration, builtins, options = {}, overrides =
3991
3966
  const fromFile = baseFile ? readXcconfig(baseFile, read) : {};
3992
3967
  xcconfigs.push(...read);
3993
3968
  return [
3994
- ...applyConditions(fromFile, name2),
3969
+ ...applyConditions(fromFile, name),
3995
3970
  ...applyConditions(
3996
3971
  Object.fromEntries(
3997
3972
  Object.entries(own).flatMap(
3998
3973
  ([key, value]) => typeof value === "string" ? [[key, value]] : Array.isArray(value) ? [[key, list(value).join(" ")]] : []
3999
3974
  )
4000
3975
  ),
4001
- name2
3976
+ name
4002
3977
  )
4003
3978
  ];
4004
3979
  };
@@ -4020,7 +3995,7 @@ function targetSettings(ref, configuration, builtins, options = {}, overrides =
4020
3995
  resolving.add(marker);
4021
3996
  const value = expand(
4022
3997
  levels[at][key],
4023
- (name2) => name2 === "inherited" || name2 === key ? valueAt(key, at - 1) : valueAt(name2, levels.length - 1)
3998
+ (name) => name === "inherited" || name === key ? valueAt(key, at - 1) : valueAt(name, levels.length - 1)
4024
3999
  );
4025
4000
  resolving.delete(marker);
4026
4001
  return value;
@@ -4135,9 +4110,9 @@ function expand(value, lookup) {
4135
4110
  return value.replace(
4136
4111
  /\$(?:\(([A-Za-z_][A-Za-z0-9_]*)((?::[^)]*)?)\)|\{([A-Za-z_][A-Za-z0-9_]*)((?::[^}]*)?)\}|([A-Za-z_][A-Za-z0-9_]*))/g,
4137
4112
  (_match, paren, parenOps, brace, braceOps, bare) => {
4138
- const name2 = paren ?? brace ?? bare;
4113
+ const name = paren ?? brace ?? bare;
4139
4114
  const operators = parenOps ?? braceOps ?? "";
4140
- return operators.split(":").slice(1).reduce((current, operator) => applyOperator(current, operator), lookup(name2));
4115
+ return operators.split(":").slice(1).reduce((current, operator) => applyOperator(current, operator), lookup(name));
4141
4116
  }
4142
4117
  );
4143
4118
  }
@@ -4180,8 +4155,8 @@ function shellCopies(script, settings, projectDir) {
4180
4155
  const assigned = /* @__PURE__ */ new Map();
4181
4156
  const copies = [];
4182
4157
  let resolved = true;
4183
- const lookup = (name2) => {
4184
- const value = assigned.get(name2) ?? settings(name2);
4158
+ const lookup = (name) => {
4159
+ const value = assigned.get(name) ?? settings(name);
4185
4160
  if (value === "") resolved = false;
4186
4161
  return value;
4187
4162
  };
@@ -4570,7 +4545,7 @@ function installedPodsSandbox(pods) {
4570
4545
  podfileLock,
4571
4546
  manifestLock,
4572
4547
  specChecksums,
4573
- localPodspecs: isDirectory(specs) ? import_node_fs6.default.readdirSync(specs).filter((name2) => name2.endsWith(".podspec.json")).sort().map((name2) => import_node_path10.default.join(specs, name2)) : []
4548
+ localPodspecs: isDirectory(specs) ? import_node_fs6.default.readdirSync(specs).filter((name) => name.endsWith(".podspec.json")).sort().map((name) => import_node_path10.default.join(specs, name)) : []
4574
4549
  };
4575
4550
  }
4576
4551
  function workspaceProjects(xcodeprojOrWorkspace, installedPods = false) {
@@ -4639,8 +4614,8 @@ function isIosAppTarget(ref, options = {}) {
4639
4614
  const sdk = get("SDKROOT");
4640
4615
  return sdk === "auto" ? settingList(get("SUPPORTED_PLATFORMS")).some(isIosPlatform) : sdk === "" || isIosPlatform(sdk);
4641
4616
  }
4642
- function isIosPlatform(name2) {
4643
- return name2.startsWith("iphoneos") || name2.startsWith("iphonesimulator");
4617
+ function isIosPlatform(name) {
4618
+ return name.startsWith("iphoneos") || name.startsWith("iphonesimulator");
4644
4619
  }
4645
4620
  function listXcodeAppTargets(xcodeprojOrWorkspace, options = {}) {
4646
4621
  return workspaceProjects(xcodeprojOrWorkspace).projects.flatMap(projectTargets).filter((ref) => isIosAppTarget(ref, options)).map((ref) => str(ref.target.name) ?? ref.id);
@@ -4670,7 +4645,7 @@ function readXcodeScheme(xcodeprojOrWorkspace, scheme) {
4670
4645
  ).find((candidate) => import_node_fs6.default.existsSync(candidate.file));
4671
4646
  if (!found) {
4672
4647
  const known = containers.flatMap(
4673
- (dir) => import_node_fs6.default.existsSync(import_node_path10.default.join(dir, "xcshareddata", "xcschemes")) ? import_node_fs6.default.readdirSync(import_node_path10.default.join(dir, "xcshareddata", "xcschemes")).filter((name3) => name3.endsWith(".xcscheme")).map((name3) => name3.slice(0, -".xcscheme".length)).sort() : []
4648
+ (dir) => import_node_fs6.default.existsSync(import_node_path10.default.join(dir, "xcshareddata", "xcschemes")) ? import_node_fs6.default.readdirSync(import_node_path10.default.join(dir, "xcshareddata", "xcschemes")).filter((name2) => name2.endsWith(".xcscheme")).map((name2) => name2.slice(0, -".xcscheme".length)).sort() : []
4674
4649
  );
4675
4650
  throw new Error(
4676
4651
  `${import_node_path10.default.basename(container)} has no scheme ${scheme}; it shares ${known.join(", ") || "none"}`
@@ -4679,8 +4654,8 @@ function readXcodeScheme(xcodeprojOrWorkspace, scheme) {
4679
4654
  const launch = /<LaunchAction\b([^>]*)>([\s\S]*?)<\/LaunchAction>/.exec(
4680
4655
  import_node_fs6.default.readFileSync(found.file, "utf8")
4681
4656
  );
4682
- const attribute = (text2, name3) => {
4683
- const value = new RegExp(`\\b${name3}\\s*=\\s*"([^"]*)"`).exec(text2)?.[1];
4657
+ const attribute = (text2, name2) => {
4658
+ const value = new RegExp(`\\b${name2}\\s*=\\s*"([^"]*)"`).exec(text2)?.[1];
4684
4659
  return value === void 0 ? void 0 : decodeXml(value);
4685
4660
  };
4686
4661
  const runnable = launch ? /<BuildableProductRunnable\b[\s\S]*?<BuildableReference\b([^>]*)>/.exec(launch[2]) : null;
@@ -4698,8 +4673,8 @@ function readXcodeScheme(xcodeprojOrWorkspace, scheme) {
4698
4673
  (candidate) => import_node_fs6.default.existsSync(projectPath) && candidate.xcodeproj === import_node_fs6.default.realpathSync.native(projectPath)
4699
4674
  );
4700
4675
  const target = project && projectTargets(project).find((ref) => ref.id === blueprint);
4701
- const name2 = target && str(target.target.name);
4702
- if (!name2) {
4676
+ const name = target && str(target.target.name);
4677
+ if (!name) {
4703
4678
  const declared = (project ? [project] : projects).flatMap(
4704
4679
  (candidate) => projectTargets(candidate).flatMap((ref) => {
4705
4680
  const targetName = str(ref.target.name);
@@ -4710,7 +4685,7 @@ function readXcodeScheme(xcodeprojOrWorkspace, scheme) {
4710
4685
  `scheme ${scheme} runs blueprint ${blueprint}, which no project here declares (declared targets: ${declared.join(", ") || "none"})`
4711
4686
  );
4712
4687
  }
4713
- return { target: name2, configuration };
4688
+ return { target: name, configuration };
4714
4689
  }
4715
4690
  var NativeAppTargetSelectionError = class extends Error {
4716
4691
  };
@@ -4962,13 +4937,13 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
4962
4937
  for (const ref of projectTargets(project)) {
4963
4938
  const product = productName(ref);
4964
4939
  for (const { file, visibility } of headerPhase(ref)) {
4965
- const name2 = import_node_path10.default.basename(file);
4966
- if (!entries.has(name2))
4967
- entries.set(name2, visibility !== "Project" ? `${product}/${name2}` : file);
4940
+ const name = import_node_path10.default.basename(file);
4941
+ if (!entries.has(name))
4942
+ entries.set(name, visibility !== "Project" ? `${product}/${name}` : file);
4968
4943
  }
4969
4944
  for (const file of synchronizedHeaders(ref)) {
4970
- const name2 = import_node_path10.default.basename(file);
4971
- if (!entries.has(name2)) entries.set(name2, file);
4945
+ const name = import_node_path10.default.basename(file);
4946
+ if (!entries.has(name)) entries.set(name, file);
4972
4947
  }
4973
4948
  }
4974
4949
  for (const ref of projectTargets(project)) {
@@ -4977,8 +4952,8 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
4977
4952
  if (folder === null) continue;
4978
4953
  for (const file of walkFiles(folder)) {
4979
4954
  if (!HEADER_FILE.test(file)) continue;
4980
- const name2 = import_node_path10.default.basename(file);
4981
- if (!entries.has(name2)) entries.set(name2, file);
4955
+ const name = import_node_path10.default.basename(file);
4956
+ if (!entries.has(name)) entries.set(name, file);
4982
4957
  }
4983
4958
  }
4984
4959
  }
@@ -4999,7 +4974,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
4999
4974
  OBJROOT: import_node_path10.default.join(buildDir(app.project), "Intermediates.noindex")
5000
4975
  };
5001
4976
  const moduleTarget = (ref) => {
5002
- const name2 = str(ref.target.name) ?? ref.id;
4977
+ const name = str(ref.target.name) ?? ref.id;
5003
4978
  const {
5004
4979
  get: settings2,
5005
4980
  keys,
@@ -5008,7 +4983,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5008
4983
  ref,
5009
4984
  configuration,
5010
4985
  {
5011
- TARGET_NAME: name2,
4986
+ TARGET_NAME: name,
5012
4987
  TARGETNAME: "$(TARGET_NAME)",
5013
4988
  PROJECT: "$(PROJECT_NAME)",
5014
4989
  PROJECT_NAME: import_node_path10.default.basename(ref.project.xcodeproj, ".xcodeproj"),
@@ -5082,15 +5057,15 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5082
5057
  const outputUmbrella = outputs.find((file) => file.endsWith("-umbrella.h"));
5083
5058
  const outputHeader = outputs.find((file) => file.endsWith(`/${moduleName}-Swift.h`));
5084
5059
  if (!moduleMap2 || !umbrella || !outputModuleMap || !outputUmbrella || !outputHeader)
5085
- throw new Error(`${name2}: incomplete CocoaPods Swift compatibility header phase`);
5060
+ throw new Error(`${name}: incomplete CocoaPods Swift compatibility header phase`);
5086
5061
  return [{ id, moduleMap: moduleMap2, umbrella, outputModuleMap, outputUmbrella, outputHeader }];
5087
5062
  });
5088
5063
  if (compatibilityPhases.length > 1)
5089
- throw new Error(`${name2}: multiple CocoaPods Swift compatibility header phases`);
5064
+ throw new Error(`${name}: multiple CocoaPods Swift compatibility header phases`);
5090
5065
  const compatibility = compatibilityPhases[0];
5091
5066
  if (compatibility && members.sources.length === 0)
5092
5067
  throw new Error(
5093
- `${name2}: Swift compatibility header phase has no Swift producer sources`
5068
+ `${name}: Swift compatibility header phase has no Swift producer sources`
5094
5069
  );
5095
5070
  const building = options.prepareGeneratedSources && options.requireSources !== false;
5096
5071
  const versioning = building && allSources.length > 0 && settings2("VERSIONING_SYSTEM") === "apple-generic" ? import_node_path10.default.join(settings2("DERIVED_FILE_DIR"), `${product}_vers.c`) : null;
@@ -5106,7 +5081,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5106
5081
  ].filter((key) => settings2(key));
5107
5082
  if (custom.length)
5108
5083
  throw new Error(
5109
- `${name2}: Xcode generates ${import_node_path10.default.basename(versioning)} with ${custom.join(", ")}; peach does not model VERSION_INFO_* overrides`
5084
+ `${name}: Xcode generates ${import_node_path10.default.basename(versioning)} with ${custom.join(", ")}; peach does not model VERSION_INFO_* overrides`
5110
5085
  );
5111
5086
  const symbol = product.replace(/^[^A-Za-z_]/, "_").replace(/[^A-Za-z0-9_]/g, "_");
5112
5087
  const [major, minor] = version.split(".");
@@ -5130,28 +5105,28 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5130
5105
  if (native && building) {
5131
5106
  if (list(ref.target.buildRules).length > 0)
5132
5107
  throw new Error(
5133
- `${name2}: Xcode's generated-files header map for build rules is not modeled`
5108
+ `${name}: Xcode's generated-files header map for build rules is not modeled`
5134
5109
  );
5135
5110
  if (settings2("ALWAYS_SEARCH_USER_PATHS") === "YES" && settings2("USER_HEADER_SEARCH_PATHS").trim())
5136
5111
  throw new Error(
5137
- `${name2}: ALWAYS_SEARCH_USER_PATHS=YES also searches USER_HEADER_SEARCH_PATHS for angle-bracket includes, which is not modeled`
5112
+ `${name}: ALWAYS_SEARCH_USER_PATHS=YES also searches USER_HEADER_SEARCH_PATHS for angle-bracket includes, which is not modeled`
5138
5113
  );
5139
5114
  }
5140
5115
  const headerFiles = headerPhase(ref);
5141
5116
  const ownHeaders = /* @__PURE__ */ new Map();
5142
5117
  for (const { file, visibility } of headerFiles) {
5143
- const name3 = import_node_path10.default.basename(file);
5118
+ const name2 = import_node_path10.default.basename(file);
5144
5119
  const published = visibility !== "Project";
5145
- if (!ownHeaders.has(name3))
5146
- ownHeaders.set(name3, published ? `${product}/${name3}` : file);
5147
- if (!published && !ownHeaders.has(`${product}/${name3}`))
5148
- ownHeaders.set(`${product}/${name3}`, file);
5120
+ if (!ownHeaders.has(name2))
5121
+ ownHeaders.set(name2, published ? `${product}/${name2}` : file);
5122
+ if (!published && !ownHeaders.has(`${product}/${name2}`))
5123
+ ownHeaders.set(`${product}/${name2}`, file);
5149
5124
  }
5150
5125
  for (const file of synchronizedHeaders(ref)) {
5151
- const name3 = import_node_path10.default.basename(file);
5152
- if (ownHeaders.has(name3)) continue;
5153
- ownHeaders.set(name3, file);
5154
- const qualified = `${product}/${name3}`;
5126
+ const name2 = import_node_path10.default.basename(file);
5127
+ if (ownHeaders.has(name2)) continue;
5128
+ ownHeaders.set(name2, file);
5129
+ const qualified = `${product}/${name2}`;
5155
5130
  if (!ownHeaders.has(qualified)) ownHeaders.set(qualified, file);
5156
5131
  }
5157
5132
  const nonFrameworkHeaders = /* @__PURE__ */ new Map();
@@ -5219,7 +5194,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5219
5194
  keys,
5220
5195
  module: {
5221
5196
  id: `${ref.project.projectFile}#${ref.id}`,
5222
- name: name2,
5197
+ name,
5223
5198
  targetIdentity: JSON.stringify([ref.project.xcodeproj, ref.id]),
5224
5199
  targetDependencies: Array(),
5225
5200
  moduleName,
@@ -5344,7 +5319,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5344
5319
  return [];
5345
5320
  const destination = expand(
5346
5321
  str(phase.dstPath) ?? "",
5347
- (name3) => name3 === "PUBLIC_HEADERS_FOLDER_PATH" ? import_node_path10.default.join(wrapper, "Headers") : name3 === "PRIVATE_HEADERS_FOLDER_PATH" ? import_node_path10.default.join(wrapper, "PrivateHeaders") : settings2(name3)
5322
+ (name2) => name2 === "PUBLIC_HEADERS_FOLDER_PATH" ? import_node_path10.default.join(wrapper, "Headers") : name2 === "PRIVATE_HEADERS_FOLDER_PATH" ? import_node_path10.default.join(wrapper, "PrivateHeaders") : settings2(name2)
5348
5323
  );
5349
5324
  return list(phase.files).flatMap((id) => {
5350
5325
  const file = ref.project.resolvePath(
@@ -5387,7 +5362,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5387
5362
  };
5388
5363
  for (const { ref, module: module3 } of builtTargets)
5389
5364
  if (options.nativeModules?.some(
5390
- (name2) => name2 === module3.moduleName || name2 === module3.name
5365
+ (name) => name === module3.moduleName || name === module3.name
5391
5366
  ))
5392
5367
  includeNativeTarget(ref);
5393
5368
  const selectedTargets = options.nativeModules ? builtTargets.filter((target) => nativeTargets.has(target.ref)) : builtTargets;
@@ -5591,15 +5566,15 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5591
5566
  for (const { ref, settings: settings2 } of builtTargets) {
5592
5567
  const ldflags = settingList(settings2("OTHER_LDFLAGS"));
5593
5568
  ldflags.forEach((flag, index) => {
5594
- const name2 = ldflags[index + 1];
5595
- if ((flag === "-framework" || flag === "-weak_framework") && name2)
5596
- sdkFrameworks.add(name2);
5569
+ const name = ldflags[index + 1];
5570
+ if ((flag === "-framework" || flag === "-weak_framework") && name)
5571
+ sdkFrameworks.add(name);
5597
5572
  });
5598
5573
  const absolute = (raw) => import_node_path10.default.resolve(ref.project.projectDir, expand(raw, settings2));
5599
5574
  const requested = options.nativeModules;
5600
- const includeBinary = (name2, dir) => {
5601
- if (!requested || nativeTargets.has(ref) || requested.includes(name2) || dir.endsWith(".xcframework") && localSwiftBinaryModules(dir).some((module3) => requested.includes(module3)))
5602
- binaryFrameworks.set(name2, dir);
5575
+ const includeBinary = (name, dir) => {
5576
+ if (!requested || nativeTargets.has(ref) || requested.includes(name) || dir.endsWith(".xcframework") && localSwiftBinaryModules(dir).some((module3) => requested.includes(module3)))
5577
+ binaryFrameworks.set(name, dir);
5603
5578
  };
5604
5579
  if (!options.nativeModules || nativeTargets.has(ref)) {
5605
5580
  const searchRules = recursiveSearchRules(settings2);
@@ -5610,12 +5585,12 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5610
5585
  if (!import_node_fs6.default.statSync(directory, { throwIfNoEntry: false })?.isDirectory() || /\.sdk\/(?:System|Developer)\/Library\/Frameworks\/?$/.test(directory))
5611
5586
  continue;
5612
5587
  for (const entry of import_node_fs6.default.readdirSync(directory, { withFileTypes: true })) {
5613
- const name2 = /^(.+)\.framework$/.exec(entry.name)?.[1];
5614
- if (!name2 || byProduct.has(entry.name) || searchedFrameworks.has(name2))
5588
+ const name = /^(.+)\.framework$/.exec(entry.name)?.[1];
5589
+ if (!name || byProduct.has(entry.name) || searchedFrameworks.has(name))
5615
5590
  continue;
5616
5591
  const file = import_node_path10.default.join(directory, entry.name);
5617
5592
  if (import_node_fs6.default.statSync(file, { throwIfNoEntry: false })?.isDirectory())
5618
- searchedFrameworks.set(name2, file);
5593
+ searchedFrameworks.set(name, file);
5619
5594
  }
5620
5595
  }
5621
5596
  }
@@ -5624,8 +5599,8 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5624
5599
  const dir = absolute(raw);
5625
5600
  const modulemap = import_node_path10.default.join(dir, "module.modulemap");
5626
5601
  if (!import_node_fs6.default.existsSync(modulemap)) continue;
5627
- const name2 = moduleMapName(import_node_fs6.default.readFileSync(modulemap, "utf8"));
5628
- if (name2 && !binaryFrameworks.has(name2)) includeBinary(name2, dir);
5602
+ const name = moduleMapName(import_node_fs6.default.readFileSync(modulemap, "utf8"));
5603
+ if (name && !binaryFrameworks.has(name)) includeBinary(name, dir);
5629
5604
  }
5630
5605
  for (const phaseId of list(ref.target.buildPhases)) {
5631
5606
  const phase = ref.project.object(phaseId);
@@ -5638,8 +5613,8 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5638
5613
  inputs.push(...fileListEntries(file, absolute));
5639
5614
  }
5640
5615
  for (const file of inputs) {
5641
- const name2 = /([^/]+)\.xcframework$/.exec(file)?.[1];
5642
- if (name2 && !binaryFrameworks.has(name2)) includeBinary(name2, file);
5616
+ const name = /([^/]+)\.xcframework$/.exec(file)?.[1];
5617
+ if (name && !binaryFrameworks.has(name)) includeBinary(name, file);
5643
5618
  }
5644
5619
  }
5645
5620
  }
@@ -5725,10 +5700,10 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5725
5700
  const file = project.object(fileId);
5726
5701
  const tree2 = str(file?.sourceTree);
5727
5702
  const rawPath = str(file?.path) ?? "";
5728
- const name2 = /([^/]+)\.(xc)?framework$/.exec(rawPath)?.[1];
5729
- if (file?.isa !== "PBXFileReference" || !name2) continue;
5703
+ const name = /([^/]+)\.(xc)?framework$/.exec(rawPath)?.[1];
5704
+ if (file?.isa !== "PBXFileReference" || !name) continue;
5730
5705
  if (tree2 === "SDKROOT" || /\/System\/Library\/Frameworks\/[^/]+$/.test(`/${rawPath}`)) {
5731
- sdkFrameworks.add(name2);
5706
+ sdkFrameworks.add(name);
5732
5707
  continue;
5733
5708
  }
5734
5709
  if (tree2 === "BUILT_PRODUCTS_DIR" || tree2 === "DEVELOPER_DIR" || // a target in the workspace builds it, so it exists only after that build
@@ -5737,14 +5712,14 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5737
5712
  const resolved = fileId ? project.resolvePath(fileId) : null;
5738
5713
  if (fileId && resolved !== null && !import_node_fs6.default.existsSync(resolved))
5739
5714
  throw new Error(
5740
- `${str(target.name) ?? "target"}: linked framework ${name2} (${fileId}) points at missing ${resolved} in ${project.projectFile}`
5715
+ `${str(target.name) ?? "target"}: linked framework ${name} (${fileId}) points at missing ${resolved} in ${project.projectFile}`
5741
5716
  );
5742
- if (!binaryFrameworks.get(name2)) binaryFrameworks.set(name2, resolved);
5717
+ if (!binaryFrameworks.get(name)) binaryFrameworks.set(name, resolved);
5743
5718
  }
5744
5719
  }
5745
5720
  }
5746
- for (const [name2, file] of searchedFrameworks)
5747
- if (!binaryFrameworks.get(name2)) binaryFrameworks.set(name2, file);
5721
+ for (const [name, file] of searchedFrameworks)
5722
+ if (!binaryFrameworks.get(name)) binaryFrameworks.set(name, file);
5748
5723
  for (const { project, linked } of productReferences) {
5749
5724
  if (linked.source.kind === "unnamed" && qualifiedProductKeys.has(`${project}\0${linked.product}`))
5750
5725
  continue;
@@ -5839,9 +5814,9 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5839
5814
  localPackageDirs: [
5840
5815
  ...new Set(localPackageDirs.map((dir) => import_node_fs6.default.realpathSync.native(dir)))
5841
5816
  ].sort(),
5842
- binaryFrameworks: [...binaryFrameworks].map(([name2, file]) => ({ name: name2, path: file })).sort((left, right) => left.name.localeCompare(right.name)),
5817
+ binaryFrameworks: [...binaryFrameworks].map(([name, file]) => ({ name, path: file })).sort((left, right) => left.name.localeCompare(right.name)),
5843
5818
  sdkFrameworks: [...sdkFrameworks].filter(
5844
- (name2) => !binaryFrameworks.has(name2) && !byProduct.has(`${name2}.framework`)
5819
+ (name) => !binaryFrameworks.has(name) && !byProduct.has(`${name}.framework`)
5845
5820
  ).sort(),
5846
5821
  packageResolved,
5847
5822
  appTargets: appTargetNames,
@@ -5893,8 +5868,8 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
5893
5868
  const icons = dictionary.CFBundleIcons;
5894
5869
  const alternates = isRecord(icons) ? icons.CFBundleAlternateIcons : void 0;
5895
5870
  if (isRecord(alternates)) {
5896
- for (const name2 of Object.keys(alternates)) {
5897
- if (name2) alternateIconNames.add(name2);
5871
+ for (const name of Object.keys(alternates)) {
5872
+ if (name) alternateIconNames.add(name);
5898
5873
  }
5899
5874
  }
5900
5875
  const alternateSetting = settings?.("ASSETCATALOG_COMPILER_ALTERNATE_APPICON_NAMES") ?? "";
@@ -6008,10 +5983,10 @@ function readNativeAppIdentityFromSources(projectRoot, platform, parseInfoPlist,
6008
5983
  "AppDelegate.swift",
6009
5984
  "AppDelegate.mm",
6010
5985
  "AppDelegate.m",
6011
- ...import_node_fs7.default.readdirSync(import_node_path11.default.join(iosRoot, entry.name)).filter((name2) => name2.endsWith(".entitlements"))
5986
+ ...import_node_fs7.default.readdirSync(import_node_path11.default.join(iosRoot, entry.name)).filter((name) => name.endsWith(".entitlements"))
6012
5987
  ];
6013
- for (const name2 of names) {
6014
- const relative = `${prefix}${entry.name}/${name2}`;
5988
+ for (const name of names) {
5989
+ const relative = `${prefix}${entry.name}/${name}`;
6015
5990
  const file = import_node_path11.default.join(projectRoot, relative);
6016
5991
  if (import_node_fs7.default.existsSync(file)) files[relative] = import_node_fs7.default.readFileSync(file, "utf8");
6017
5992
  }
@@ -6122,8 +6097,8 @@ function readIosNativeAppIdentity(projectRoot, parseInfoPlist, iosTarget, enviro
6122
6097
  throw new Error("Reanimated static flag overrides are malformed");
6123
6098
  }
6124
6099
  const flags = {};
6125
- for (const [name2, value] of Object.entries({ ...defaults, ...overrides })) {
6126
- flags[name2] = String(value) === "true";
6100
+ for (const [name, value] of Object.entries({ ...defaults, ...overrides })) {
6101
+ flags[name] = String(value) === "true";
6127
6102
  }
6128
6103
  if (flags.USE_LEGACY_LAYOUT_ANIMATIONS_PROXY && flags.ENABLE_SHARED_ELEMENT_TRANSITIONS) {
6129
6104
  throw new Error(