peachsim 0.1.1654 → 0.1.1655

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 (82) 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 +237 -196
  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 +2 -2
  25. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  26. package/dist-lib/expo-swift-bundle.cjs +237 -196
  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 +264 -208
  31. package/dist-lib/host/fetch-proxy-handler.cjs +28 -13
  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 +2 -2
  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 +1 -1
  47. package/dist-lib/native-app-identity-project.cjs +1 -1
  48. package/dist-lib/native-app-identity-project.mjs +1 -1
  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/plist.cjs +1 -1
  54. package/dist-lib/plist.mjs +1 -1
  55. package/dist-lib/profiles.cjs +1 -1
  56. package/dist-lib/public-brand.cjs +1 -1
  57. package/dist-lib/public-origins-lib-esm.json +23 -23
  58. package/dist-lib/public-origins-lib.json +51 -51
  59. package/dist-lib/react-native-host-modules.cjs +1 -1
  60. package/dist-lib/react-native-host-modules.mjs +1 -1
  61. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  62. package/dist-lib/sdk.cjs +1 -1
  63. package/dist-lib/sdk.mjs +1 -1
  64. package/dist-lib/skills.cjs +265 -209
  65. package/dist-lib/swift-compile.cjs +237 -196
  66. package/dist-lib/swift-compile.mjs +237 -196
  67. package/dist-lib/swift-package.cjs +1 -1
  68. package/dist-lib/swift-package.mjs +1 -1
  69. package/dist-lib/swift-submit.cjs +1 -1
  70. package/dist-lib/swift-submit.mjs +1 -1
  71. package/dist-lib/swift-toolchain.cjs +1 -1
  72. package/dist-lib/swift.cjs +1 -1
  73. package/dist-lib/vite-swift.cjs +237 -196
  74. package/dist-lib/vite.cjs +2 -2
  75. package/dist-lib/worklet-executable.cjs +1 -1
  76. package/dist-lib/worklet-executable.mjs +1 -1
  77. package/dist-types/packages/peach-engine/src/rolldown-bundle-inventory.d.ts +4 -0
  78. package/package.json +1 -1
  79. package/runtime-companion.json +1 -1
  80. package/src/host/fetch-proxy-handler.ts +27 -10
  81. package/src/swift-compile.ts +286 -237
  82. package/src/swiftContract.ts +2 -0
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1654 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1655 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1654 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1655 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1654 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1655 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1654 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1655 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1654 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1655 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
package/dist-lib/beta.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1654 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1655 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
package/dist-lib/beta.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1654 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1655 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/beta.ts
4
4
  var IS_BETA = true;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1654 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1655 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1654 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1655 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1654 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1655 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/bridge-contract.ts
4
4
  var SIM_LONG_PRESS_MAX_MS = 5e3;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1654 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1655 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1654 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1655 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/bridge-contract.ts
4
4
  var REFUSED_PERFORM_STEP_TYPES = [
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1654 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1655 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -29050,6 +29050,7 @@ function writeSwiftProject(layout, input, moduleRoot) {
29050
29050
  ] : compileTargets(input);
29051
29051
  const files2 = /* @__PURE__ */ new Map();
29052
29052
  const native = /* @__PURE__ */ new Map();
29053
+ const targetFailures = [];
29053
29054
  const bySourcePath = [...targets].sort(
29054
29055
  (left, right) => right.path.length - left.path.length
29055
29056
  );
@@ -29100,188 +29101,212 @@ function writeSwiftProject(layout, input, moduleRoot) {
29100
29101
  if (units.length === 0) continue;
29101
29102
  const settings = input.nativeTargets?.find((value) => value.name === target.name);
29102
29103
  if (entries.some(([file]) => file.endsWith(".swift")) || settings && units.some(([file]) => /\.mm?$/.test(file))) {
29103
- if (!settings)
29104
- throw new Error(
29105
- `mixed target ${target.name} requires its original native target settings; SwiftPM does not compile mixed source targets`
29104
+ const swift = entries.some(([file]) => file.endsWith(".swift"));
29105
+ try {
29106
+ if (!settings)
29107
+ throw new Error(
29108
+ `mixed target ${target.name} requires its original native target settings; SwiftPM does not compile mixed source targets`
29109
+ );
29110
+ const headers = settings.headers;
29111
+ const roots2 = settings.bridgingHeader ? [settings.bridgingHeader] : settings.publicHeaders;
29112
+ for (const file of headers) {
29113
+ const destination = import_node_path7.default.join(layout.root, file);
29114
+ (0, import_node_fs6.mkdirSync)(import_node_path7.default.dirname(destination), { recursive: true });
29115
+ (0, import_node_fs6.writeFileSync)(destination, input.files[file]);
29116
+ }
29117
+ const search = [
29118
+ .../* @__PURE__ */ new Set([
29119
+ ...settings?.headerSearchPaths ?? [],
29120
+ ...headers.map((file) => import_node_path7.default.posix.dirname(file))
29121
+ ])
29122
+ ].flatMap((dir) => ["-I", import_node_path7.default.join(layout.root, dir)]);
29123
+ const pin = distribution ?? JSON.parse((0, import_node_fs6.readFileSync)(import_node_path7.default.join(moduleRoot, "toolchain.json"), "utf8"));
29124
+ const release = pin.release;
29125
+ const toolchainBin = swiftToolchain(release, swiftModuleSdk(moduleRoot));
29126
+ const sdkHeaders = materializeObjcSdk(
29127
+ import_node_path7.default.join(layout.root, ".build", "peach-objc-sdk")
29106
29128
  );
29107
- const headers = settings.headers;
29108
- const roots2 = settings.bridgingHeader ? [settings.bridgingHeader] : settings.publicHeaders;
29109
- if (!roots2.length)
29110
- throw new Error(`mixed target ${target.name} has no original declaration headers`);
29111
- for (const file of headers) {
29112
- const destination = import_node_path7.default.join(layout.root, file);
29113
- (0, import_node_fs6.mkdirSync)(import_node_path7.default.dirname(destination), { recursive: true });
29114
- (0, import_node_fs6.writeFileSync)(destination, input.files[file]);
29115
- }
29116
- const search = [
29117
- .../* @__PURE__ */ new Set([
29118
- ...settings?.headerSearchPaths ?? [],
29119
- ...headers.map((file) => import_node_path7.default.posix.dirname(file))
29120
- ])
29121
- ].flatMap((dir) => ["-I", import_node_path7.default.join(layout.root, dir)]);
29122
- const pin = distribution ?? JSON.parse((0, import_node_fs6.readFileSync)(import_node_path7.default.join(moduleRoot, "toolchain.json"), "utf8"));
29123
- const release = pin.release;
29124
- const toolchainBin = swiftToolchain(release, swiftModuleSdk(moduleRoot));
29125
- const sdkHeaders = materializeObjcSdk(
29126
- import_node_path7.default.join(layout.root, ".build", "peach-objc-sdk")
29127
- );
29128
- const stageFlags = (flags2, sdkInclude) => flags2.map(
29129
- (flag) => flag.replaceAll(SWIFT_NATIVE_INPUT_ROOT, layout.root).replaceAll(SWIFT_NATIVE_SDK_INCLUDE, sdkInclude)
29130
- );
29131
- const originalFlags = [
29132
- ...settings?.flags ?? [],
29133
- ...search,
29134
- ...(settings?.frameworkSearchPaths ?? []).flatMap((dir) => [
29135
- "-F",
29136
- import_node_path7.default.join(layout.root, dir)
29137
- ]),
29138
- "-I",
29139
- headerDirectory
29140
- ];
29141
- const flags = stageFlags(
29142
- originalFlags,
29143
- import_node_path7.default.join(swiftSdkPaths(moduleRoot, toolchainBin).sysroot, "include")
29144
- );
29145
- const prefixHeader = settings?.prefixHeader ? ["-include", import_node_path7.default.join(layout.root, settings.prefixHeader)] : [];
29146
- const bundleName = entries.some(([file]) => file.endsWith(".swift")) ? void 0 : swiftObjCResourceBundleName({
29147
- target: target.name,
29148
- path: target.path,
29149
- resources: resourceTargets.find((candidate) => candidate.name === target.name)?.resources ?? false,
29150
- usesBundleMacro: entries.some(
29151
- ([file, contents]) => /\.(?:c|cc|cpp|cxx|m|mm|h|hpp|hh|hxx)$/.test(file) && /\bSWIFTPM_MODULE_BUNDLE\b/.test(contents)
29152
- ),
29153
- bundles: input.resourceBundles
29154
- });
29155
- const accessor = bundleName === void 0 ? void 0 : swiftObjCResourceAccessor(bundleName);
29156
- const accessorHeader = import_node_path7.default.join(
29157
- layout.root,
29158
- target.path,
29159
- OBJC_RESOURCE_ACCESSOR_HEADER
29160
- );
29161
- const accessorUnit = `${prefix}${OBJC_RESOURCE_ACCESSOR_BODY}`;
29162
- if (accessor && (input.files[accessorUnit] !== void 0 || input.files[`${prefix}${OBJC_RESOURCE_ACCESSOR_HEADER}`] !== void 0))
29163
- throw new Error(`target ${target.name} already contains its resource accessor`);
29164
- const nativeUnits = accessor ? [...units, [accessorUnit, accessor.body]] : units;
29165
- const accessorFlags = accessor ? ["-include", accessorHeader] : [];
29166
- if (accessor) {
29167
- files2.set(accessorHeader, accessor.header);
29168
- files2.set(import_node_path7.default.join(layout.root, accessorUnit), accessor.body);
29169
- }
29170
- const sourceHeaders = import_node_path7.default.join(
29171
- layout.root,
29172
- ".build",
29173
- "peach-objc-originals",
29174
- target.name
29175
- );
29176
- (0, import_node_fs6.mkdirSync)(sourceHeaders, { recursive: true });
29177
- const modulemap = import_node_path7.default.join(sourceHeaders, "module.modulemap");
29178
- (0, import_node_fs6.writeFileSync)(
29179
- modulemap,
29180
- `module ${swiftTargetModuleName(target.name)} {
29129
+ const stageFlags = (flags2, sdkInclude) => flags2.map(
29130
+ (flag) => flag.replaceAll(SWIFT_NATIVE_INPUT_ROOT, layout.root).replaceAll(SWIFT_NATIVE_SDK_INCLUDE, sdkInclude)
29131
+ );
29132
+ const originalFlags = [
29133
+ ...settings?.flags ?? [],
29134
+ ...search,
29135
+ ...(settings?.frameworkSearchPaths ?? []).flatMap((dir) => [
29136
+ "-F",
29137
+ import_node_path7.default.join(layout.root, dir)
29138
+ ]),
29139
+ "-I",
29140
+ headerDirectory
29141
+ ];
29142
+ const flags = stageFlags(
29143
+ originalFlags,
29144
+ import_node_path7.default.join(swiftSdkPaths(moduleRoot, toolchainBin).sysroot, "include")
29145
+ );
29146
+ const prefixHeader = settings?.prefixHeader ? ["-include", import_node_path7.default.join(layout.root, settings.prefixHeader)] : [];
29147
+ const bundleName = entries.some(([file]) => file.endsWith(".swift")) ? void 0 : swiftObjCResourceBundleName({
29148
+ target: target.name,
29149
+ path: target.path,
29150
+ resources: resourceTargets.find((candidate) => candidate.name === target.name)?.resources ?? false,
29151
+ usesBundleMacro: entries.some(
29152
+ ([file, contents]) => /\.(?:c|cc|cpp|cxx|m|mm|h|hpp|hh|hxx)$/.test(file) && /\bSWIFTPM_MODULE_BUNDLE\b/.test(contents)
29153
+ ),
29154
+ bundles: input.resourceBundles
29155
+ });
29156
+ const accessor = bundleName === void 0 ? void 0 : swiftObjCResourceAccessor(bundleName);
29157
+ const accessorHeader = import_node_path7.default.join(
29158
+ layout.root,
29159
+ target.path,
29160
+ OBJC_RESOURCE_ACCESSOR_HEADER
29161
+ );
29162
+ const accessorUnit = `${prefix}${OBJC_RESOURCE_ACCESSOR_BODY}`;
29163
+ if (accessor && (input.files[accessorUnit] !== void 0 || input.files[`${prefix}${OBJC_RESOURCE_ACCESSOR_HEADER}`] !== void 0))
29164
+ throw new Error(`target ${target.name} already contains its resource accessor`);
29165
+ const nativeUnits = accessor ? [...units, [accessorUnit, accessor.body]] : units;
29166
+ const accessorFlags = accessor ? ["-include", accessorHeader] : [];
29167
+ if (accessor) {
29168
+ files2.set(accessorHeader, accessor.header);
29169
+ files2.set(import_node_path7.default.join(layout.root, accessorUnit), accessor.body);
29170
+ }
29171
+ if (roots2.length) {
29172
+ const sourceHeaders = import_node_path7.default.join(
29173
+ layout.root,
29174
+ ".build",
29175
+ "peach-objc-originals",
29176
+ target.name
29177
+ );
29178
+ (0, import_node_fs6.mkdirSync)(sourceHeaders, { recursive: true });
29179
+ const modulemap = import_node_path7.default.join(sourceHeaders, "module.modulemap");
29180
+ (0, import_node_fs6.writeFileSync)(
29181
+ modulemap,
29182
+ `module ${swiftTargetModuleName(target.name)} {
29181
29183
  ${roots2.map((file) => `header ${JSON.stringify(import_node_path7.default.join(layout.root, file))}`).join("\n")}
29182
29184
  export *
29183
29185
  }
29184
29186
  `
29185
- );
29186
- const view = objcView(
29187
- { module: swiftTargetModuleName(target.name), headers: sourceHeaders, modulemap },
29188
- toolchainBin,
29189
- import_node_path7.default.join(moduleRoot, "ios-simulator-stdlib"),
29190
- import_node_path7.default.join(layout.root, ".build", "peach-objc-sdk"),
29191
- import_node_path7.default.join(layout.root, ".build", "peach-objc-imports", target.name),
29192
- {
29193
- flags: stageFlags(originalFlags, import_node_path7.default.join(sdkHeaders, "usr/include")),
29194
- target: `arm64-apple-ios${settings?.deploymentTarget ?? "16.0"}-simulator`
29187
+ );
29188
+ const view = objcView(
29189
+ {
29190
+ module: swiftTargetModuleName(target.name),
29191
+ headers: sourceHeaders,
29192
+ modulemap
29193
+ },
29194
+ toolchainBin,
29195
+ import_node_path7.default.join(moduleRoot, "ios-simulator-stdlib"),
29196
+ import_node_path7.default.join(layout.root, ".build", "peach-objc-sdk"),
29197
+ import_node_path7.default.join(layout.root, ".build", "peach-objc-imports", target.name),
29198
+ {
29199
+ flags: stageFlags(originalFlags, import_node_path7.default.join(sdkHeaders, "usr/include")),
29200
+ target: `arm64-apple-ios${settings?.deploymentTarget ?? "16.0"}-simulator`
29201
+ }
29202
+ );
29203
+ const defined = /* @__PURE__ */ new Set();
29204
+ const declarations = (node) => {
29205
+ if (!node || typeof node !== "object") return;
29206
+ const name3 = Reflect.get(node, "name");
29207
+ if (Reflect.get(node, "kind") === "ObjCInterfaceDecl" && Reflect.get(node, "super") && typeof name3 === "string")
29208
+ defined.add(name3);
29209
+ const children = Reflect.get(node, "inner");
29210
+ if (Array.isArray(children)) for (const child of children) declarations(child);
29211
+ };
29212
+ declarations(view.clangAST);
29213
+ const foreignTypes = /* @__PURE__ */ new Map();
29214
+ for (const graph of view.graphs)
29215
+ for (const symbol of graph.symbols) {
29216
+ const nativeName = /^c:objc\(cs\)(\w+)$/.exec(
29217
+ symbol.identifier.precise
29218
+ )?.[1];
29219
+ if (nativeName && defined.has(nativeName))
29220
+ foreignTypes.set(symbol.pathComponents[0], nativeName);
29221
+ }
29222
+ imports.set(target.name, {
29223
+ view,
29224
+ classes: [...foreignTypes.values()],
29225
+ headers: roots2.map((file) => import_node_path7.default.join(layout.root, file)),
29226
+ foreignTypes
29227
+ });
29195
29228
  }
29196
- );
29197
- const defined = /* @__PURE__ */ new Set();
29198
- const declarations = (node) => {
29199
- if (!node || typeof node !== "object") return;
29200
- const name3 = Reflect.get(node, "name");
29201
- if (Reflect.get(node, "kind") === "ObjCInterfaceDecl" && Reflect.get(node, "super") && typeof name3 === "string")
29202
- defined.add(name3);
29203
- const children = Reflect.get(node, "inner");
29204
- if (Array.isArray(children)) for (const child of children) declarations(child);
29205
- };
29206
- declarations(view.clangAST);
29207
- const foreignTypes = /* @__PURE__ */ new Map();
29208
- for (const graph of view.graphs)
29209
- for (const symbol of graph.symbols) {
29210
- const nativeName = /^c:objc\(cs\)(\w+)$/.exec(symbol.identifier.precise)?.[1];
29211
- if (nativeName && defined.has(nativeName))
29212
- foreignTypes.set(symbol.pathComponents[0], nativeName);
29213
- }
29214
- imports.set(target.name, {
29215
- view,
29216
- classes: [...foreignTypes.values()],
29217
- headers: roots2.map((file) => import_node_path7.default.join(layout.root, file)),
29218
- foreignTypes
29219
- });
29220
- const thunk = "PeachObjCImports.generated.m";
29221
- const groups = /* @__PURE__ */ new Map();
29222
- for (const [file] of nativeUnits) {
29223
- const origin = settings?.sourceDirectories[file];
29224
- if (origin) (0, import_node_fs6.mkdirSync)(import_node_path7.default.join(layout.root, origin), { recursive: true });
29225
- const perFile = [
29226
- ...origin ? ["-iquote", import_node_path7.default.join(layout.root, origin)] : [],
29227
- ...stageFlags(
29228
- settings?.fileFlags[file] ?? [],
29229
- import_node_path7.default.join(swiftSdkPaths(moduleRoot, toolchainBin).sysroot, "include")
29230
- )
29231
- ];
29232
- const cxx = /\.(?:cc|cpp|cxx|mm)$/.test(file);
29233
- const identity2 = (0, import_node_crypto7.createHash)("sha256").update(JSON.stringify([cxx, perFile])).digest("hex").slice(0, 12);
29234
- const group = groups.get(identity2) ?? {
29235
- name: `${target.name}SwiftImplementation_${identity2}`,
29236
- sources: [],
29237
- flags: [...flags, ...prefixHeader, ...accessorFlags, ...perFile],
29238
- cxxFlags: [
29239
- ...flags,
29240
- ...prefixHeader,
29241
- ...accessorFlags,
29229
+ const thunks = roots2.length ? ["PeachObjCImports.generated.m"] : [];
29230
+ const groups = /* @__PURE__ */ new Map();
29231
+ for (const [file] of nativeUnits) {
29232
+ const origin = settings?.sourceDirectories[file];
29233
+ if (origin) (0, import_node_fs6.mkdirSync)(import_node_path7.default.join(layout.root, origin), { recursive: true });
29234
+ const perFile = [
29235
+ ...origin ? ["-iquote", import_node_path7.default.join(layout.root, origin)] : [],
29242
29236
  ...stageFlags(
29243
- cxx ? settings.cxxFlags : [],
29237
+ settings?.fileFlags[file] ?? [],
29244
29238
  import_node_path7.default.join(swiftSdkPaths(moduleRoot, toolchainBin).sysroot, "include")
29245
- ),
29246
- ...perFile
29247
- ]
29248
- };
29249
- group.sources.push(file.slice(prefix.length));
29250
- groups.set(identity2, group);
29251
- }
29252
- groups.set("imports", {
29253
- name: `${target.name}ObjCImports`,
29254
- sources: [thunk],
29255
- flags: [...flags, "-fobjc-arc"],
29256
- cxxFlags: [...flags, "-fobjc-arc"]
29257
- });
29258
- const include2 = import_node_path7.default.join(layout.root, target.path, "include");
29259
- files2.set(
29260
- import_node_path7.default.join(include2, "module.modulemap"),
29261
- `module ${target.name}ImplementationDeclarations { export * }
29239
+ )
29240
+ ];
29241
+ const cxx = /\.(?:cc|cpp|cxx|mm)$/.test(file);
29242
+ const identity2 = (0, import_node_crypto7.createHash)("sha256").update(JSON.stringify([cxx, perFile])).digest("hex").slice(0, 12);
29243
+ const group = groups.get(identity2) ?? {
29244
+ name: `${target.name}SwiftImplementation_${identity2}`,
29245
+ sources: [],
29246
+ flags: [...flags, ...prefixHeader, ...accessorFlags, ...perFile],
29247
+ cxxFlags: [
29248
+ ...flags,
29249
+ ...prefixHeader,
29250
+ ...accessorFlags,
29251
+ ...stageFlags(
29252
+ cxx ? settings.cxxFlags : [],
29253
+ import_node_path7.default.join(swiftSdkPaths(moduleRoot, toolchainBin).sysroot, "include")
29254
+ ),
29255
+ ...perFile
29256
+ ]
29257
+ };
29258
+ group.sources.push(file.slice(prefix.length));
29259
+ groups.set(identity2, group);
29260
+ }
29261
+ if (thunks.length)
29262
+ groups.set("imports", {
29263
+ name: `${target.name}ObjCImports`,
29264
+ sources: thunks,
29265
+ flags: [...flags, "-fobjc-arc"],
29266
+ cxxFlags: [...flags, "-fobjc-arc"]
29267
+ });
29268
+ const include2 = import_node_path7.default.join(layout.root, target.path, "include");
29269
+ files2.set(
29270
+ import_node_path7.default.join(include2, "module.modulemap"),
29271
+ `module ${target.name}ImplementationDeclarations { export * }
29262
29272
  `
29263
- );
29264
- native.set(target.name, {
29265
- mixed: true,
29266
- path: target.path,
29267
- includeDirectory: include2,
29268
- sources: nativeUnits.map(([file]) => file.slice(prefix.length)),
29269
- lateSources: [...nativeUnits.map(([file]) => file.slice(prefix.length)), thunk],
29270
- exclude: [
29271
- ...entries.filter(([file]) => !file.endsWith(".swift") && !file.endsWith(".metal")).map(([file]) => file.slice(prefix.length)),
29272
- ...accessor ? [OBJC_RESOURCE_ACCESSOR_HEADER, OBJC_RESOURCE_ACCESSOR_BODY] : [],
29273
- thunk,
29274
- "include"
29275
- ],
29276
- groups: [...groups.values()],
29277
- late: {
29278
- name: `${target.name}SwiftImplementation`,
29279
- producers: [
29280
- target.name,
29281
- ...(target.dependencies ?? []).filter((dependency) => swiftTargets.has(dependency.name)).map((dependency) => dependency.name)
29282
- ]
29283
- }
29284
- });
29273
+ );
29274
+ native.set(target.name, {
29275
+ mixed: true,
29276
+ path: target.path,
29277
+ includeDirectory: include2,
29278
+ sources: nativeUnits.map(([file]) => file.slice(prefix.length)),
29279
+ lateSources: [
29280
+ ...nativeUnits.map(([file]) => file.slice(prefix.length)),
29281
+ ...thunks
29282
+ ],
29283
+ exclude: [
29284
+ ...entries.filter(([file]) => !file.endsWith(".swift") && !file.endsWith(".metal")).map(([file]) => file.slice(prefix.length)),
29285
+ ...accessor ? [OBJC_RESOURCE_ACCESSOR_HEADER, OBJC_RESOURCE_ACCESSOR_BODY] : [],
29286
+ ...thunks,
29287
+ "include"
29288
+ ],
29289
+ groups: [...groups.values()],
29290
+ late: {
29291
+ name: `${target.name}SwiftImplementation`,
29292
+ producers: [
29293
+ target.name,
29294
+ ...(target.dependencies ?? []).filter((dependency) => swiftTargets.has(dependency.name)).map((dependency) => dependency.name)
29295
+ ]
29296
+ }
29297
+ });
29298
+ } catch (error) {
29299
+ if (!swift || !(error instanceof Error)) throw error;
29300
+ targetFailures.push(`${target.name}: ${error.message}`);
29301
+ native.set(target.name, {
29302
+ mixed: true,
29303
+ path: target.path,
29304
+ includeDirectory: import_node_path7.default.join(layout.root, target.path, "include"),
29305
+ sources: [],
29306
+ lateSources: [],
29307
+ exclude: entries.filter(([file]) => !file.endsWith(".swift") && !file.endsWith(".metal")).map(([file]) => file.slice(prefix.length))
29308
+ });
29309
+ }
29285
29310
  continue;
29286
29311
  }
29287
29312
  const includes = `${prefix}include/`;
@@ -29444,20 +29469,27 @@ export *
29444
29469
  for (const name3 of objcProducers) {
29445
29470
  const target = targets.find((value) => value.name === name3);
29446
29471
  const prefix = target.path === "." ? "" : `${target.path}/`;
29447
- const exported = swiftObjCExports({
29448
- module: swiftTargetModuleName(name3),
29449
- sources: Object.entries(input.files).filter(
29450
- ([file]) => file.startsWith(prefix) && file.endsWith(".swift") && !targets.some(
29451
- (candidate) => candidate.name !== name3 && candidate.path !== "." && candidate.path.startsWith(prefix) && file.startsWith(`${candidate.path}/`)
29452
- ) && !target.exclude?.some(
29453
- (excluded) => file.slice(prefix.length) === excluded || file.slice(prefix.length).startsWith(`${excluded}/`)
29454
- )
29455
- ),
29456
- mask: swiftCodeMask,
29457
- declarationStart,
29458
- selector: objcSelectorName,
29459
- foreignTypes: imports.get(name3)?.foreignTypes
29460
- });
29472
+ let exported;
29473
+ try {
29474
+ exported = swiftObjCExports({
29475
+ module: swiftTargetModuleName(name3),
29476
+ sources: Object.entries(input.files).filter(
29477
+ ([file]) => file.startsWith(prefix) && file.endsWith(".swift") && !targets.some(
29478
+ (candidate) => candidate.name !== name3 && candidate.path !== "." && candidate.path.startsWith(prefix) && file.startsWith(`${candidate.path}/`)
29479
+ ) && !target.exclude?.some(
29480
+ (excluded) => file.slice(prefix.length) === excluded || file.slice(prefix.length).startsWith(`${excluded}/`)
29481
+ )
29482
+ ),
29483
+ mask: swiftCodeMask,
29484
+ declarationStart,
29485
+ selector: objcSelectorName,
29486
+ foreignTypes: imports.get(name3)?.foreignTypes
29487
+ });
29488
+ } catch (error) {
29489
+ if (!(error instanceof Error)) throw error;
29490
+ targetFailures.push(`${name3}: ${error.message}`);
29491
+ continue;
29492
+ }
29461
29493
  const original = imports.get(name3);
29462
29494
  if (!exported && !original) continue;
29463
29495
  objcModules.add(name3);
@@ -29729,6 +29761,7 @@ public func __peachObjcExportRoot() { _objcRegisterPeerClass(NSObject.self, nati
29729
29761
  for (const dependency of dependencies.get(producer) ?? []) include(dependency);
29730
29762
  return {
29731
29763
  headerProducers: producers.filter((name3) => !included.has(name3)),
29764
+ targetFailures,
29732
29765
  ...rootOwner && objcExports ? {
29733
29766
  objcImplementations: {
29734
29767
  owner: import_node_path7.default.join(layout.root, rootOwner),
@@ -29947,6 +29980,9 @@ function compileSwiftProjectUnit(input, options) {
29947
29980
  return retain(root, built2);
29948
29981
  }
29949
29982
  const preparation = writeSwiftProject(layout, input, moduleRoot);
29983
+ const unprepared = preparation.targetFailures.map(
29984
+ (failure2) => `error: target ${failure2}`
29985
+ );
29950
29986
  const swift = import_node_path7.default.join(options.toolchainBin, "swift");
29951
29987
  if (!(0, import_node_fs6.existsSync)(swift)) {
29952
29988
  throw new Error(
@@ -30096,18 +30132,23 @@ function compileSwiftProjectUnit(input, options) {
30096
30132
  );
30097
30133
  } catch (retryError) {
30098
30134
  throw new Error(
30099
- projectDiagnostic(outputOf(retryError), layout, input.files),
30100
- {
30101
- cause: retryError
30102
- }
30135
+ [
30136
+ ...unprepared,
30137
+ projectDiagnostic(outputOf(retryError), layout, input.files)
30138
+ ].join("\n"),
30139
+ { cause: retryError }
30103
30140
  );
30104
30141
  }
30105
30142
  } else {
30106
- throw new Error(projectDiagnostic(output, layout, input.files), {
30107
- cause: error
30108
- });
30143
+ throw new Error(
30144
+ [...unprepared, projectDiagnostic(output, layout, input.files)].join(
30145
+ "\n"
30146
+ ),
30147
+ { cause: error }
30148
+ );
30109
30149
  }
30110
30150
  }
30151
+ if (unprepared.length) throw new Error(unprepared.join("\n"));
30111
30152
  const artifact = {
30112
30153
  hash: hash2,
30113
30154
  bytes: (0, import_node_fs6.readFileSync)(builtArtifact(layout)),
@@ -30230,7 +30271,7 @@ var init_swift_compile = __esm({
30230
30271
  `;
30231
30272
  REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
30232
30273
  MULTI_MANIFEST_VERSION = 39;
30233
- compilerSourceDigest = true ? "bcd59db8ba588a1eb76c6f08e64f5b5b6acda2e913adef5edd85345fef2c0cc7" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
30274
+ compilerSourceDigest = true ? "042e57f70d169ec5fd94262a87fc4d50da0c31cc6a6c329e56f12d4b7c5484a1" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
30234
30275
  DIRECTIVE = /^[ \t]*#(?:if|elseif)\b/;
30235
30276
  OS_IOS = /\b(?:os\(\s*iOS\s*\)|targetEnvironment\(\s*simulator\s*\))/g;
30236
30277
  OBJC_ATTRIBUTE = /^@(?:objcMembers\b|objc\b(?:(\s*)\(([^()]*)\))?|IBAction\b)/;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1654 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1655 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1654 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1655 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/capture-contract.ts
4
4
  var RNX_SCREEN_CAPTURE_VERSION = 1;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1654 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1655 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1654 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1655 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/cloud-contract.ts
4
4
  var RNX_CLOUD_MAX_ARTIFACT_BYTES = 40761776;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1654 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1655 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;