peachsim 0.1.2406 → 0.1.2409

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 (107) hide show
  1. package/cli/agent-note.ts +231 -0
  2. package/cli/cloud-client.ts +8 -3
  3. package/cli/cloud-dispatch.ts +1 -1
  4. package/cli/command-agent.ts +122 -0
  5. package/cli/commands/agent.ts +29 -26
  6. package/cli/commands/stream.ts +11 -7
  7. package/cli/main.ts +16 -2
  8. package/cli/outbound-endpoints.ts +15 -0
  9. package/cli/ws-bridge.ts +4 -1
  10. package/dist-lib/agent-daemon-client.cjs +23 -3
  11. package/dist-lib/agent-events.cjs +1 -1
  12. package/dist-lib/attached-projects.cjs +1 -1
  13. package/dist-lib/auth/shared-session.cjs +1 -1
  14. package/dist-lib/backend-origin.cjs +1 -1
  15. package/dist-lib/beta.cjs +1 -1
  16. package/dist-lib/beta.mjs +1 -1
  17. package/dist-lib/bridge-constants.cjs +1 -1
  18. package/dist-lib/bridge-contract-input.cjs +1 -1
  19. package/dist-lib/bridge-contract-input.mjs +1 -1
  20. package/dist-lib/bridge-contract.cjs +1 -1
  21. package/dist-lib/bridge-contract.mjs +1 -1
  22. package/dist-lib/bundle-channel.cjs +205 -62
  23. package/dist-lib/capture-contract.cjs +1 -1
  24. package/dist-lib/capture-contract.mjs +1 -1
  25. package/dist-lib/cloud-contract.cjs +20 -1
  26. package/dist-lib/cloud-contract.mjs +18 -1
  27. package/dist-lib/cloud-test-args.cjs +1 -1
  28. package/dist-lib/cloud-test-args.mjs +1 -1
  29. package/dist-lib/cloud.cjs +1 -1
  30. package/dist-lib/cloud.mjs +1 -1
  31. package/dist-lib/config.cjs +1 -1
  32. package/dist-lib/config.mjs +1 -1
  33. package/dist-lib/detox/index.cjs +1630 -1513
  34. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  35. package/dist-lib/expo-swift-bundle.cjs +203 -60
  36. package/dist-lib/expo-swift-metadata.cjs +1 -1
  37. package/dist-lib/expo-swift-metadata.mjs +1 -1
  38. package/dist-lib/home-paths.cjs +1 -1
  39. package/dist-lib/host/bridge-host.cjs +394 -102
  40. package/dist-lib/host/fetch-proxy-handler.cjs +5 -5
  41. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  42. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  43. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  44. package/dist-lib/host/websocket-proxy.cjs +1 -1
  45. package/dist-lib/index.cjs +392 -272
  46. package/dist-lib/jump-to-source-babel.cjs +1 -1
  47. package/dist-lib/jump-to-source-native.cjs +1 -1
  48. package/dist-lib/kotlin-host.cjs +1 -1
  49. package/dist-lib/menu.cjs +1 -1
  50. package/dist-lib/menu.mjs +1 -1
  51. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  52. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  53. package/dist-lib/metro-production-bundle.cjs +1 -1
  54. package/dist-lib/metro-production-bundle.mjs +1 -1
  55. package/dist-lib/metro.cjs +5 -5
  56. package/dist-lib/native-app-identity-project.cjs +3 -3
  57. package/dist-lib/native-app-identity-project.mjs +3 -3
  58. package/dist-lib/native-app-identity.cjs +1 -1
  59. package/dist-lib/native-app-identity.mjs +1 -1
  60. package/dist-lib/native-firebase-metadata.cjs +1 -1
  61. package/dist-lib/native-firebase-metadata.mjs +1 -1
  62. package/dist-lib/pdfium-raster.cjs +1 -1
  63. package/dist-lib/pdfium-raster.mjs +1 -1
  64. package/dist-lib/plist.cjs +1 -1
  65. package/dist-lib/plist.mjs +1 -1
  66. package/dist-lib/profiles.cjs +1 -1
  67. package/dist-lib/public-brand.cjs +1 -1
  68. package/dist-lib/public-origins-lib-esm.json +24 -24
  69. package/dist-lib/public-origins-lib.json +70 -60
  70. package/dist-lib/react-native-host-modules.cjs +1 -1
  71. package/dist-lib/react-native-host-modules.mjs +1 -1
  72. package/dist-lib/reap-browser.cjs +1 -1
  73. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  74. package/dist-lib/sdk.cjs +1 -1
  75. package/dist-lib/sdk.mjs +1 -1
  76. package/dist-lib/skills.cjs +1199 -821
  77. package/dist-lib/swift-compile.cjs +197 -55
  78. package/dist-lib/swift-compile.mjs +197 -55
  79. package/dist-lib/swift-package.cjs +1 -1
  80. package/dist-lib/swift-package.mjs +1 -1
  81. package/dist-lib/swift-submit.cjs +1 -1
  82. package/dist-lib/swift-submit.mjs +1 -1
  83. package/dist-lib/swift-toolchain.cjs +1 -1
  84. package/dist-lib/swift.cjs +1 -1
  85. package/dist-lib/vite-swift.cjs +213 -58
  86. package/dist-lib/vite.cjs +5 -5
  87. package/dist-lib/worklet-executable.cjs +1 -1
  88. package/dist-lib/worklet-executable.mjs +1 -1
  89. package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +2 -2
  90. package/dist-types/packages/peach-globals/src/index.d.ts +1 -1
  91. package/dist-types/packages/peach-globals/src/replayBridgeContract.d.ts +7 -0
  92. package/kotlin/sdk.tar.gz +0 -0
  93. package/package.json +1 -1
  94. package/runtime-companion.json +1 -1
  95. package/skills/peach-setup/SKILL.md +8 -3
  96. package/src/agent-daemon-client.ts +35 -2
  97. package/src/agent-prompt.ts +68 -0
  98. package/src/bridge-contract.ts +4 -0
  99. package/src/canvas-agent-note-delivery.ts +83 -0
  100. package/src/cloud-contract.ts +30 -0
  101. package/src/host/agent-host.ts +128 -18
  102. package/src/swift-compile.ts +124 -66
  103. package/src/swift-host.ts +2 -1
  104. package/src/swift-objc-import.ts +99 -0
  105. package/src/swift-packages.ts +1 -0
  106. package/src/swift-shared-sdk.ts +2 -1
  107. package/src/xcode-header-search.ts +33 -0
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2406 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (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;
@@ -96,6 +96,11 @@ function rnxSelfInvocation() {
96
96
  return { executable: process.execPath, prefixArgs: [entry] };
97
97
  }
98
98
 
99
+ // src/agent-prompt.ts
100
+ var MAX_NOTE_CROP_LENGTH = 2 * 1024 * 1024;
101
+ var MAX_CANVAS_AGENT_NOTE_BODY_BYTES = MAX_NOTE_CROP_LENGTH + 256 * 1024;
102
+ var AGENT_NOTE_TTL_MS = 24 * 60 * 60 * 1e3;
103
+
99
104
  // src/home-paths.ts
100
105
  var import_node_fs2 = __toESM(require("node:fs"), 1);
101
106
  var import_node_path2 = __toESM(require("node:path"), 1);
@@ -253,11 +258,14 @@ var AgentDaemonClient = class {
253
258
  this.commandTimeoutMs = opts.commandTimeoutMs ?? 15e3;
254
259
  this.ws = new import_ws.WebSocket(`ws://127.0.0.1:${this.port}`);
255
260
  this.ready = new Promise((resolve, reject) => {
261
+ const timeout = opts.connectTimeoutMs ? setTimeout(() => this.ws.terminate(), opts.connectTimeoutMs) : void 0;
256
262
  const onOpen = () => {
263
+ clearTimeout(timeout);
257
264
  this.ws.off("error", onError);
258
265
  resolve();
259
266
  };
260
267
  const onError = (err) => {
268
+ clearTimeout(timeout);
261
269
  this.ws.off("open", onOpen);
262
270
  reject(
263
271
  new AgentDaemonError(
@@ -304,8 +312,20 @@ var AgentDaemonClient = class {
304
312
  prompt
305
313
  });
306
314
  }
307
- async listenForInspect(simId) {
308
- return this.send("agent:listen-inspect", { simId });
315
+ async listenForInspect(simId, recipientId) {
316
+ return this.send("agent:listen-inspect", { simId, recipientId });
317
+ }
318
+ async cancelInspectListener(simId) {
319
+ return this.send("agent:cancel-listen-inspect", { simId });
320
+ }
321
+ async takeInspectMessage(simId, recipientId) {
322
+ return this.send("agent:take-inspect-message", { simId, recipientId });
323
+ }
324
+ async sendCanvasNote(simId, note) {
325
+ return this.send("agent:send-canvas-note", { simId, note });
326
+ }
327
+ async canvasNoteStatus(simId, messageId) {
328
+ return this.send("agent:canvas-note-status", { simId, messageId });
309
329
  }
310
330
  async getInspectListenerStatus(simId) {
311
331
  return this.send("agent:get-inspect-listener-status", {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2406 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2406 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2406 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2406 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
package/dist-lib/beta.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2406 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
package/dist-lib/beta.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2406 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (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.2406 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2406 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2406 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (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.2406 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2406 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (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.2406 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (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;
@@ -13300,7 +13300,7 @@ var swiftCoverageProvenance;
13300
13300
  var init_provenance = __esm({
13301
13301
  "src/swift-coverage/provenance.ts"() {
13302
13302
  "use strict";
13303
- swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"a19fe4c5e2efe18bbc3ece544ff2c8be660170d63274cccb0ab58e53083050e4","swift-package.ts":"851417572ca9aff699ad368bdc3ff05309b0256e483d40812b9c0beb869d0a5b","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"dec93d0206df8efbd9f538d1f3e3f6173f6eb022cb9ad6b02271481db7578d77","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"d61be5d97c018bef4cf2a423f3625bac9757ab2c8e8541a00a4f29ebf048640f","xcode-project.ts":"092e07d3f9154f5aaf9f7c668f16c933c3ac5d8c57e5c32df0222ae6f785eaf7","xcode-target-members.ts":"2f25aaf5a3aa34395983c75935491c06bd68554c47ff1cb06b49c79499c03db0","xcode-json-project.ts":"41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6","openstep-plist.ts":"74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3"}') : swiftCoverageSourceDigests((0, import_node_path.join)(__sootsim_import_meta_dirname, ".."));
13303
+ swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"a19fe4c5e2efe18bbc3ece544ff2c8be660170d63274cccb0ab58e53083050e4","swift-package.ts":"851417572ca9aff699ad368bdc3ff05309b0256e483d40812b9c0beb869d0a5b","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"dec93d0206df8efbd9f538d1f3e3f6173f6eb022cb9ad6b02271481db7578d77","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"4a775ba92c7b23ce71dd6bb08c188c4bccd6e1ed500cc9fc7850030b945fc8d4","xcode-project.ts":"092e07d3f9154f5aaf9f7c668f16c933c3ac5d8c57e5c32df0222ae6f785eaf7","xcode-target-members.ts":"2f25aaf5a3aa34395983c75935491c06bd68554c47ff1cb06b49c79499c03db0","xcode-json-project.ts":"41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6","openstep-plist.ts":"74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3"}') : swiftCoverageSourceDigests((0, import_node_path.join)(__sootsim_import_meta_dirname, ".."));
13304
13304
  }
13305
13305
  });
13306
13306
 
@@ -22529,7 +22529,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk2)
22529
22529
  const overlayFiles = (0, import_node_fs27.readdirSync)(overlay, { recursive: true, withFileTypes: true }).filter((entry) => entry.isFile()).map((entry) => import_node_path26.default.join(entry.parentPath, entry.name)).sort();
22530
22530
  const key2 = JSON.stringify([
22531
22531
  // bump the recipe when the transformation changes; bundling changes function text.
22532
- "v24",
22532
+ "v25",
22533
22533
  [...WEAKEN_FOUNDATION_SYMS],
22534
22534
  toolchainBin,
22535
22535
  sdk2,
@@ -22589,6 +22589,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk2)
22589
22589
  "objc/NSObject.h",
22590
22590
  "ObjectiveC.apinotes",
22591
22591
  "net/if.h",
22592
+ "netinet/tcp.h",
22592
22593
  "notify.h",
22593
22594
  "notify.modulemap",
22594
22595
  "module.modulemap",
@@ -30218,6 +30219,61 @@ function swiftClangImporterFlags(flags) {
30218
30219
  (flag) => flag !== "-fobjc-arc" && flag !== "-fno-objc-arc" && !/^-std=(?:c(?!\+\+)|gnu(?!\+\+)|iso9899:)/.test(flag)
30219
30220
  );
30220
30221
  }
30222
+ function compactSwiftClangDefines(flags) {
30223
+ const definitions = /* @__PURE__ */ new Map();
30224
+ const macros = [];
30225
+ for (let index = 0; index < flags.length; index++) {
30226
+ if (flags[index].startsWith("@")) return flags;
30227
+ if (flags[index] !== "-Xcc") continue;
30228
+ const flag = flags[++index];
30229
+ if (flag === void 0 || flags[index - 2] === "-Xfrontend" || flag === "-Xclang" || flag === "-Xpreprocessor" || flag.startsWith("-Wp,") || flag.startsWith("--config") || flag.startsWith("@"))
30230
+ return flags;
30231
+ if (CLANG_PATH_OPTIONS.has(flag) && flags[index + 1] === "-Xcc") {
30232
+ index += 2;
30233
+ continue;
30234
+ }
30235
+ if (!flag.startsWith("-D") && !flag.startsWith("-U")) continue;
30236
+ const name3 = /^-[DU]([A-Za-z_$][\w$]*)(?=[(=]|$)/.exec(flag)?.[1];
30237
+ if (!name3) return flags;
30238
+ const previous = definitions.get(name3);
30239
+ definitions.set(name3, previous === void 0 || previous === flag ? flag : null);
30240
+ macros.push({ index, name: name3, flag });
30241
+ }
30242
+ const seen = /* @__PURE__ */ new Set();
30243
+ const duplicates = /* @__PURE__ */ new Set();
30244
+ for (const { index, name: name3, flag } of macros) {
30245
+ if (definitions.get(name3) !== flag) continue;
30246
+ if (seen.has(name3)) {
30247
+ duplicates.add(index - 1);
30248
+ duplicates.add(index);
30249
+ }
30250
+ seen.add(name3);
30251
+ }
30252
+ return duplicates.size === 0 ? flags : flags.filter((_, index) => !duplicates.has(index));
30253
+ }
30254
+ function compactSwiftClangOverlays(flags, generated) {
30255
+ if (generated.size === 0) return flags;
30256
+ const overlays = /* @__PURE__ */ new Map();
30257
+ const duplicates = /* @__PURE__ */ new Set();
30258
+ for (let index = 0; index < flags.length; index++) {
30259
+ const flag = flags[index];
30260
+ if (flag.startsWith("@")) return flags;
30261
+ if (flag === "-Xcc" && flags[index - 1] === "-Xfrontend") return flags;
30262
+ if (flags[index - 1] === "-Xcc" && (flag.startsWith("--config") || flag === "-Xclang"))
30263
+ return flags;
30264
+ if (!flag.startsWith("-ivfsoverlay") && !flag.startsWith("-vfsoverlay")) continue;
30265
+ if (flag !== "-ivfsoverlay" || flags[index - 1] !== "-Xcc" || flags[index + 1] !== "-Xcc")
30266
+ return flags;
30267
+ const file = flags[index + 2];
30268
+ if (file === void 0 || !generated.has(file)) return flags;
30269
+ const previous = overlays.get(file);
30270
+ if (previous !== void 0)
30271
+ for (let offset = -1; offset < 3; offset++) duplicates.add(previous + offset);
30272
+ overlays.set(file, index);
30273
+ index += 2;
30274
+ }
30275
+ return duplicates.size === 0 ? flags : flags.filter((_, index) => !duplicates.has(index));
30276
+ }
30221
30277
  function swiftSubmoduleImports(sources) {
30222
30278
  const imports2 = /* @__PURE__ */ new Map();
30223
30279
  for (const source of sources)
@@ -30242,7 +30298,7 @@ function swiftObjCModuleMap(module2, headers, submodules = /* @__PURE__ */ new S
30242
30298
  ""
30243
30299
  ].join("\n");
30244
30300
  }
30245
- var SWIFT_OBJC_INTEROP_FLAGS, SWIFT_SUBMODULE_IMPORT;
30301
+ var SWIFT_OBJC_INTEROP_FLAGS, CLANG_PATH_OPTIONS, SWIFT_SUBMODULE_IMPORT;
30246
30302
  var init_swift_objc_import = __esm({
30247
30303
  "src/swift-objc-import.ts"() {
30248
30304
  "use strict";
@@ -30256,6 +30312,23 @@ var init_swift_objc_import = __esm({
30256
30312
  "-Xcc",
30257
30313
  "-fblocks"
30258
30314
  ];
30315
+ CLANG_PATH_OPTIONS = /* @__PURE__ */ new Set([
30316
+ "-I",
30317
+ "-F",
30318
+ "-idirafter",
30319
+ "-iframework",
30320
+ "-iframeworkwithsysroot",
30321
+ "-imacros",
30322
+ "-include",
30323
+ "-iprefix",
30324
+ "-iquote",
30325
+ "-isystem",
30326
+ "-isysroot",
30327
+ "-ivfsoverlay",
30328
+ "-iwithprefix",
30329
+ "-iwithprefixbefore",
30330
+ "--sysroot"
30331
+ ]);
30259
30332
  SWIFT_SUBMODULE_IMPORT = /^[ \t]*(?:@\w+(?:\([^)]*\))?[ \t]+)*import[ \t]+([A-Za-z_]\w*)\.([A-Za-z_]\w*)[ \t]*(?:\/\/.*)?$/gm;
30260
30333
  }
30261
30334
  });
@@ -30625,6 +30698,30 @@ var init_swift_uniform_type_constants = __esm({
30625
30698
  });
30626
30699
 
30627
30700
  // src/xcode-header-search.ts
30701
+ function coalescibleHeaderOverlays(files2) {
30702
+ const aliases = /* @__PURE__ */ new Map();
30703
+ const key2 = (file) => file.replace(/[A-Z]/g, (letter) => letter.toLowerCase());
30704
+ const index = (directory2, entry) => {
30705
+ const name3 = import_node_path41.default.resolve(directory2, entry.name);
30706
+ if (entry.type === "directory")
30707
+ return entry.contents.every((child) => index(name3, child));
30708
+ const source = entry["external-contents"];
30709
+ const previous = aliases.get(key2(name3));
30710
+ if (previous !== void 0 && previous !== source) return false;
30711
+ aliases.set(key2(name3), source);
30712
+ return true;
30713
+ };
30714
+ for (const file of files2) {
30715
+ const overlay = JSON.parse(import_node_fs42.default.readFileSync(file, "utf8"));
30716
+ if (!overlay.roots.every((entry) => index(import_node_path41.default.dirname(file), entry)))
30717
+ return /* @__PURE__ */ new Set();
30718
+ }
30719
+ for (const file of [...files2, ...aliases.values()]) {
30720
+ const source = aliases.get(key2(import_node_path41.default.normalize(file)));
30721
+ if (source !== void 0 && source !== file) return /* @__PURE__ */ new Set();
30722
+ }
30723
+ return files2;
30724
+ }
30628
30725
  function headerMap(entries) {
30629
30726
  const unique = /* @__PURE__ */ new Map();
30630
30727
  for (const entry of entries)
@@ -31549,6 +31646,15 @@ function swiftTargetDependencies(files2, targets, frameworks = OPTIONAL_FRAMEWOR
31549
31646
  )
31550
31647
  );
31551
31648
  const names = /* @__PURE__ */ new Set([...frameworks, ...targets.map((target) => target.name)]);
31649
+ const entriesByPrefix = new Map(
31650
+ targets.map(({ path: path105 }) => [path105 === "." ? "" : `${path105}/`, []])
31651
+ );
31652
+ for (const entry of Object.entries(files2)) {
31653
+ const [file] = entry;
31654
+ entriesByPrefix.get("")?.push(entry);
31655
+ for (let end = file.indexOf("/"); end !== -1; end = file.indexOf("/", end + 1))
31656
+ entriesByPrefix.get(file.slice(0, end + 1))?.push(entry);
31657
+ }
31552
31658
  const siblings = /* @__PURE__ */ new Map();
31553
31659
  for (const target of targets) {
31554
31660
  const prefix = target.path === "." ? "" : `${target.path}/`;
@@ -31562,8 +31668,11 @@ function swiftTargetDependencies(files2, targets, frameworks = OPTIONAL_FRAMEWOR
31562
31668
  (dependency) => dependency.kind === "target" && dependency.name !== target.name && names.has(dependency.name) || dependency.kind === "product" && dependency.package === "sootsim-swift" && OPTIONAL_FRAMEWORKS.has(dependency.name) ? [dependency.name] : []
31563
31669
  )
31564
31670
  );
31565
- for (const [file, contents2] of Object.entries(files2)) {
31566
- if (file === "Package.swift" || !file.startsWith(prefix)) continue;
31671
+ const nested = target.sources === void 0 ? targets.flatMap(
31672
+ (candidate) => candidate.name !== target.name && candidate.path !== "." && candidate.path.startsWith(prefix) ? [`${candidate.path}/`] : []
31673
+ ) : [];
31674
+ for (const [file, contents2] of entriesByPrefix.get(prefix) ?? []) {
31675
+ if (file === "Package.swift") continue;
31567
31676
  const relative4 = file.slice(prefix.length);
31568
31677
  if (target.sources !== void 0 && !target.sources.some(
31569
31678
  (source) => source === "." || relative4 === source || relative4.startsWith(`${source}/`)
@@ -31573,10 +31682,7 @@ function swiftTargetDependencies(files2, targets, frameworks = OPTIONAL_FRAMEWOR
31573
31682
  (excluded) => relative4 === excluded || relative4.startsWith(`${excluded}/`)
31574
31683
  ))
31575
31684
  continue;
31576
- if (target.sources === void 0 && targets.some(
31577
- (candidate) => candidate.name !== target.name && candidate.path !== "." && candidate.path.startsWith(prefix) && file.startsWith(`${candidate.path}/`)
31578
- ))
31579
- continue;
31685
+ if (nested.some((path105) => file.startsWith(path105))) continue;
31580
31686
  const imports2 = file.endsWith(".swift") ? swiftImportNames(contents2) : SWIFT_NATIVE_SOURCE_EXTENSIONS.some((extension) => file.endsWith(extension)) ? clangImportNames(contents2, ownsHeader) : [];
31581
31687
  for (const name3 of imports2) {
31582
31688
  if (names.has(name3) && name3 !== target.name && !(target.dependencies !== void 0 && localNames.has(name3)))
@@ -31821,7 +31927,9 @@ function emitSwiftPackageManifest(args) {
31821
31927
  const flags = JSON.parse(literal3.replace(/,\s*]$/, "]")).filter(
31822
31928
  (flag, index, all) => !mapsPackageModule(flag) && !(flag === "-Xcc" && mapsPackageModule(all[index + 1] ?? ""))
31823
31929
  );
31824
- const content = flags.map((flag) => JSON.stringify(flag)).join("\n") + "\n";
31930
+ const macros = compactSwiftClangDefines(flags);
31931
+ const compact = args.coalescibleOverlays ? compactSwiftClangOverlays(macros, args.coalescibleOverlays) : macros;
31932
+ const content = compact.map((flag) => JSON.stringify(flag)).join("\n") + "\n";
31825
31933
  const digest4 = (0, import_node_crypto21.createHash)("sha256").update(content).digest("hex");
31826
31934
  const file = import_node_path42.default.join(args.root, ".peach-swift-arguments", `${digest4}.rsp`);
31827
31935
  args.files.set(file, content);
@@ -31912,7 +32020,7 @@ function emitSwiftPackageManifest(args) {
31912
32020
  ].map((flag) => `, ${JSON.stringify(flag)}`).join("");
31913
32021
  const header = args.headerDirectory && (args.nativeHeaderDeclarations?.[target.name] || [...args.native?.values() ?? []].some(
31914
32022
  (value) => value.late?.producers.includes(target.name)
31915
- )) ? `, "-emit-objc-header-path", ${JSON.stringify(import_node_path42.default.join(args.headerDirectory, `${target.name}-Swift${args.nativeHeaderDeclarations?.[target.name] ? ".original" : ""}.h`))}` : "";
32023
+ )) ? `, "-emit-objc-header-path", ${JSON.stringify(import_node_path42.default.join(args.headerDirectory, `${target.name}-Swift.original.h`))}` : "";
31916
32024
  const clangMode = target.cxxInterop ? "" : ', "-Xcc", "-fno-cxx-modules"';
31917
32025
  const deployment = `, "-Xfrontend", "-peach-ios-deployment-target", "-Xfrontend", ${JSON.stringify(target.iosDeploymentTarget ?? SWIFTPM_DEFAULT_IOS_DEPLOYMENT_TARGET)}`;
31918
32026
  const swiftSettings = `swiftSettings: [.swiftLanguageMode(.v${target.languageMode}),${isolation}${interoperability}${defines}${features}${upcoming} .unsafeFlags(${swiftFlagArray(`["-Osize", "-Xfrontend", "-enable-cross-import-overlays"${overlayFlags}${FOUNDATION_IMPLICIT_FLAGS}${oneModule ? ONE_IMPLICIT_FLAGS : ""}${imports2}${nativeImportFlags}${objcFlags}${header}${clangMode}${deployment}${upstream}]`)})]`;
@@ -33994,6 +34102,9 @@ module ${moduleName2}.Swift {
33994
34102
  nativeHeaderDeclarations[module2] = [...declared];
33995
34103
  }
33996
34104
  const nativeFlags = native.size > 0 ? /* @__PURE__ */ new Map() : void 0;
34105
+ const generatedOverlays = new Set(
34106
+ headerSearch.files.filter((file) => file.endsWith(".yaml"))
34107
+ );
33997
34108
  if (nativeFlags) {
33998
34109
  const toolchainBin = nativeToolchain();
33999
34110
  const headers = import_node_path42.default.join(swiftSdkPaths(moduleRoot, toolchainBin).sysroot, "darwin");
@@ -34014,8 +34125,11 @@ module ${moduleName2}.Swift {
34014
34125
  throw new Error(
34015
34126
  target.name + ": missing or unsupported declared iOS deployment target " + JSON.stringify(version2)
34016
34127
  );
34128
+ const sdkIntake = objcSdkIntakeFlags(headers, toolchainBin, minimum);
34129
+ const sdkOverlay = sdkIntake.indexOf("-ivfsoverlay");
34130
+ if (sdkOverlay >= 0) generatedOverlays.add(sdkIntake[sdkOverlay + 1]);
34017
34131
  const intake = [
34018
- ...objcSdkIntakeFlags(headers, toolchainBin, minimum),
34132
+ ...sdkIntake,
34019
34133
  "-ivfsoverlay",
34020
34134
  headerSearch.files[0],
34021
34135
  "-I",
@@ -34184,6 +34298,7 @@ module ${moduleName2}.Swift {
34184
34298
  sourceSwiftTargets: swiftTargets,
34185
34299
  nativeFlags,
34186
34300
  nativeImportFlags,
34301
+ coalescibleOverlays: nativeFlags ? coalescibleHeaderOverlays(generatedOverlays) : void 0,
34187
34302
  nativeHeaderFlags,
34188
34303
  nativeSwiftHeaderMaps,
34189
34304
  nativeHeaderDeclarations,
@@ -35482,6 +35597,7 @@ function compileSwiftProjectOnce(input, options) {
35482
35597
  report("compiling and linking Swift modules");
35483
35598
  const frameworkInterfaces = /* @__PURE__ */ new Map();
35484
35599
  const nativeDeclarations = /* @__PURE__ */ new Map();
35600
+ const nativeHeaders = Object.entries(input.files).filter(([name3]) => name3.endsWith(".h") && !name3.endsWith("-Swift.h")).map(([, source]) => source);
35485
35601
  for (const [file, contents2] of Object.entries(input.files)) {
35486
35602
  if (!file.endsWith(".modulemap")) continue;
35487
35603
  const name3 = moduleMapName(contents2);
@@ -35569,54 +35685,83 @@ function compileSwiftProjectOnce(input, options) {
35569
35685
  );
35570
35686
  return value;
35571
35687
  };
35572
- try {
35573
- for (const build of preparation.headerBuilds) {
35574
- await runCompiler(
35575
- swift,
35576
- [...buildArgs, "--target", build.target],
35577
- appOptions,
35578
- SWIFTPM_PROGRESS,
35579
- SWIFTPM_NOISE
35688
+ const compileApp = async () => {
35689
+ const stages = [
35690
+ ...preparation.headerBuilds,
35691
+ ...preparation.nativeProductTarget ? [{ target: preparation.nativeProductTarget, producers: [] }] : []
35692
+ ];
35693
+ const checkpoints = import_node_path42.default.join(root, ".build", "peach-product-checkpoints");
35694
+ const recipe2 = (0, import_node_crypto21.createHash)("sha256").update(hash).update((0, import_node_fs43.readFileSync)(import_node_path42.default.join(root, "Package.swift"))).update(JSON.stringify(buildArgs)).digest("hex");
35695
+ for (const { target, producers } of stages) {
35696
+ const receipt = import_node_path42.default.join(
35697
+ checkpoints,
35698
+ (0, import_node_crypto21.createHash)("sha256").update(target).digest("hex")
35580
35699
  );
35581
- for (const producer of build.producers) {
35582
- const emitted = import_node_path42.default.join(
35700
+ const headers = producers.map((producer) => {
35701
+ const stem = import_node_path42.default.join(
35583
35702
  root,
35584
35703
  ".build",
35585
35704
  "peach-cxx-headers",
35586
- `${producer}-Swift.h`
35705
+ `${producer}-Swift`
35587
35706
  );
35588
- const original = preparation.nativeHeaderDeclarations[producer] ? emitted.replace(/-Swift\.h$/, "-Swift.original.h") : emitted;
35589
- if ((0, import_node_fs43.existsSync)(original)) {
35590
- const generated = clangInterfaceHeader(
35591
- (0, import_node_fs43.readFileSync)(original, "utf8")
35592
- );
35593
- writeBuildFile(
35594
- emitted,
35595
- withoutSwiftDeclarations(
35596
- swiftHeaderWithSuperclassImports(generated, frameworkInterface),
35597
- /* @__PURE__ */ new Set([
35598
- ...preparation.nativeHeaderDeclarations[producer] ?? [],
35599
- ...nativelyDeclaredFunctions(
35600
- generated,
35601
- Object.entries(input.files).filter(
35602
- ([name3]) => name3.endsWith(".h") && !name3.endsWith("-Swift.h")
35603
- ).map(([, source]) => source)
35604
- )
35605
- ]),
35606
- `#import <${producer}/${producer}.h>`
35607
- )
35707
+ return {
35708
+ producer,
35709
+ original: `${stem}.original.h`,
35710
+ emitted: `${stem}.h`
35711
+ };
35712
+ });
35713
+ const fingerprint = () => {
35714
+ const digest4 = (0, import_node_crypto21.createHash)("sha256").update(recipe2);
35715
+ for (const { emitted } of headers) {
35716
+ if (!(0, import_node_fs43.existsSync)(emitted)) return;
35717
+ digest4.update(
35718
+ (0, import_node_crypto21.createHash)("sha256").update((0, import_node_fs43.readFileSync)(emitted)).digest()
35608
35719
  );
35609
35720
  }
35610
- }
35611
- }
35612
- if (preparation.nativeProductTarget) {
35721
+ return digest4.digest("hex");
35722
+ };
35723
+ if (!options.project && (0, import_node_fs43.existsSync)(receipt) && (0, import_node_fs43.readFileSync)(receipt, "utf8") === fingerprint())
35724
+ continue;
35725
+ if (!options.project) (0, import_node_fs43.rmSync)(receipt, { force: true });
35726
+ for (const { producer, original } of headers)
35727
+ if (!(0, import_node_fs43.existsSync)(original))
35728
+ (0, import_node_fs43.rmSync)(
35729
+ import_node_path42.default.join(
35730
+ root,
35731
+ ".build",
35732
+ WASM_TRIPLE,
35733
+ "release",
35734
+ "Modules",
35735
+ `${swiftTargetModuleName(producer)}.swiftmodule`
35736
+ ),
35737
+ { force: true }
35738
+ );
35613
35739
  await runCompiler(
35614
35740
  swift,
35615
- [...buildArgs, "--target", preparation.nativeProductTarget],
35741
+ [...buildArgs, "--target", target],
35616
35742
  appOptions,
35617
35743
  SWIFTPM_PROGRESS,
35618
35744
  SWIFTPM_NOISE
35619
35745
  );
35746
+ for (const { producer, original, emitted } of headers) {
35747
+ const generated = clangInterfaceHeader((0, import_node_fs43.readFileSync)(original, "utf8"));
35748
+ writeBuildFile(
35749
+ emitted,
35750
+ withoutSwiftDeclarations(
35751
+ swiftHeaderWithSuperclassImports(generated, frameworkInterface),
35752
+ /* @__PURE__ */ new Set([
35753
+ ...preparation.nativeHeaderDeclarations[producer] ?? [],
35754
+ ...nativelyDeclaredFunctions(generated, nativeHeaders)
35755
+ ]),
35756
+ `#import <${producer}/${producer}.h>`
35757
+ )
35758
+ );
35759
+ }
35760
+ if (!options.project) {
35761
+ (0, import_node_fs43.mkdirSync)(checkpoints, { recursive: true });
35762
+ (0, import_node_fs43.writeFileSync)(`${receipt}.partial`, fingerprint());
35763
+ (0, import_node_fs43.renameSync)(`${receipt}.partial`, receipt);
35764
+ }
35620
35765
  }
35621
35766
  await runCompiler(
35622
35767
  swift,
@@ -35625,6 +35770,9 @@ function compileSwiftProjectOnce(input, options) {
35625
35770
  SWIFTPM_PROGRESS,
35626
35771
  SWIFTPM_NOISE
35627
35772
  );
35773
+ };
35774
+ try {
35775
+ await compileApp();
35628
35776
  } catch (error) {
35629
35777
  const output3 = outputOf(error);
35630
35778
  const moduleCache = import_node_path42.default.join(
@@ -35637,13 +35785,7 @@ function compileSwiftProjectOnce(input, options) {
35637
35785
  if (output3.includes("was compiled with module cache path") && (0, import_node_fs43.existsSync)(moduleCache)) {
35638
35786
  (0, import_node_fs43.rmSync)(moduleCache, { recursive: true, force: true });
35639
35787
  try {
35640
- await runCompiler(
35641
- swift,
35642
- buildArgs,
35643
- appOptions,
35644
- SWIFTPM_PROGRESS,
35645
- SWIFTPM_NOISE
35646
- );
35788
+ await compileApp();
35647
35789
  } catch (retryError) {
35648
35790
  throw new Error(
35649
35791
  [
@@ -35974,9 +36116,9 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
35974
36116
  `;
35975
36117
  darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...quoted2, "-Wl,--end-lib"] : [];
35976
36118
  REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
35977
- MULTI_MANIFEST_VERSION = 69;
36119
+ MULTI_MANIFEST_VERSION = 71;
35978
36120
  SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
35979
- compilerSourceDigest = true ? "5f7b13ec00e56a1f8e36b1e4f1688c4eb10836e9afffb80f5e63e4fbf23e9070" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
36121
+ compilerSourceDigest = true ? "d287f3ad479477c70004707c1336f37c9baeb81aef1880544a5ca236e088ca16" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
35980
36122
  nativeCxxCompilerFlags = ["-fno-cxx-modules"];
35981
36123
  cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
35982
36124
  cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
@@ -49927,6 +50069,7 @@ async function fetchCheckout(checkouts, identity2, pin2, signal) {
49927
50069
  }
49928
50070
  function fetchedCheckout(checkouts, identity2, pin2) {
49929
50071
  const dir = import_node_path76.default.join(checkouts, identity2);
50072
+ if (preparedSwiftPin(checkouts, identity2, pin2.location, pin2.revision)) return dir;
49930
50073
  const head = import_node_path76.default.join(dir, ".git", "HEAD");
49931
50074
  if (!verified.has(checkoutKey(dir, pin2)) || !import_node_fs75.default.existsSync(head) || import_node_fs75.default.readFileSync(head, "utf8").trim() !== pin2.revision)
49932
50075
  throw new Error(
@@ -50531,7 +50674,7 @@ var init_swift_standin_digest = __esm({
50531
50674
  STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
50532
50675
  SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
50533
50676
  standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
50534
- STANDIN_SOURCE_DIGEST = true ? "2e7f1f173feffee6e539b11d8cd6fa9540f7418a23e3563c8b2d9aa747495bd6" : standinSourceDigest();
50677
+ STANDIN_SOURCE_DIGEST = true ? "f2b2c9a5d56b4cc06d8934ce5600587dcf7893acdf17158203975d997dbd387e" : standinSourceDigest();
50535
50678
  }
50536
50679
  });
50537
50680
 
@@ -55947,7 +56090,7 @@ async function swiftPackages(entry, app) {
55947
56090
  ] : []
55948
56091
  );
55949
56092
  let reached = [...cached2.binaries.filter((binary2) => binary2.reached), ...vendored];
55950
- const standinArtifact = (binary2) => binary2.publicHeaders === void 0 || binary2.unloweredSources !== void 0;
56093
+ const standinArtifact = (binary2) => !binary2.rustCrate && (binary2.publicHeaders === void 0 || binary2.unloweredSources !== void 0);
55951
56094
  const artifacts = reached.filter(standinArtifact);
55952
56095
  if (entry.moduleRoot && entry.provided && artifacts.length > 0) {
55953
56096
  const { provided } = entry;
@@ -65015,7 +65158,7 @@ var init_nitro_superset = __esm({
65015
65158
  init_nitroContract();
65016
65159
  init_swift_standin_digest();
65017
65160
  NITRO_SUPERSET_ENTRY_NAME = "superset";
65018
- NITRO_COMPILER_DIGEST = true ? "2e5b44e9dc857aa080b0fdbc25e3098d25f9ca1deb9250bdd5e7c10f2f96bffc" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
65161
+ NITRO_COMPILER_DIGEST = true ? "69eced6dbfe31f0e81808ff7cd7eb781e3ed61b284e528afaa6cf96ac2d2b871" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
65019
65162
  nitroSupersetLock = parseLock(nitro_superset_lock_default);
65020
65163
  nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
65021
65164
  published = /* @__PURE__ */ new Map();
@@ -66254,7 +66397,7 @@ var init_expo_native_compiler_digest = __esm({
66254
66397
 
66255
66398
  // src/expo-native-prebuilt.ts
66256
66399
  function expoNativeCompilerDigestValue() {
66257
- return true ? "a21e70334c74419c8ca0427886adcfb457911bc210711ce2210c3f98b2dabf6b" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
66400
+ return true ? "07e205f69ed280a405ff8ed7b8e6259e8752f107f8768d265a02d97d85bafdee" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
66258
66401
  }
66259
66402
  function readSources(value) {
66260
66403
  const sources = isRecord(value) ? value.sources : null;
@@ -73149,7 +73292,7 @@ var import_node_path5 = require("node:path");
73149
73292
  init_src();
73150
73293
 
73151
73294
  // runtime-companion.json
73152
- var runtime_companion_default = { abi: 1, sha256: "7e162f525497b8964ff8f7274ce8219416ec01ac8fc6986a80d2df90a54c71c4", file: "node/cli-7e162f525497b8964ff8f7274ce8219416ec01ac8fc6986a80d2df90a54c71c4.cjs" };
73295
+ var runtime_companion_default = { abi: 1, sha256: "f0ebf18540275693f13d5f0638e9e6e2afd2b8a2fa10c6d5c1190341feaa430b", file: "node/cli-f0ebf18540275693f13d5f0638e9e6e2afd2b8a2fa10c6d5c1190341feaa430b.cjs" };
73153
73296
 
73154
73297
  // src/cli-runtime.ts
73155
73298
  init_answeredNativePackages();
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2406 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2406 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2409 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/capture-contract.ts
4
4
  var RNX_SCREEN_CAPTURE_VERSION = 1;