peachsim 0.1.746 → 0.1.748

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 (74) hide show
  1. package/cli/cloud-client.ts +28 -12
  2. package/cli/commands/install-desktop.ts +0 -25
  3. package/dist-lib/agent-daemon-client.cjs +1 -1
  4. package/dist-lib/agent-events.cjs +1 -1
  5. package/dist-lib/agent-identity.cjs +1 -1
  6. package/dist-lib/agent-sessions.cjs +1 -1
  7. package/dist-lib/attached-projects.cjs +1 -1
  8. package/dist-lib/auth/shared-session.cjs +1 -1
  9. package/dist-lib/backend-origin.cjs +1 -1
  10. package/dist-lib/beta.cjs +1 -1
  11. package/dist-lib/beta.mjs +1 -1
  12. package/dist-lib/bridge-constants.cjs +1 -1
  13. package/dist-lib/bridge-contract-input.cjs +1 -1
  14. package/dist-lib/bridge-contract-input.mjs +1 -1
  15. package/dist-lib/bridge-contract.cjs +1 -1
  16. package/dist-lib/bridge-contract.mjs +1 -1
  17. package/dist-lib/capture-contract.cjs +1 -1
  18. package/dist-lib/capture-contract.mjs +1 -1
  19. package/dist-lib/cli-constants.cjs +1 -1
  20. package/dist-lib/cloud-contract.cjs +1 -1
  21. package/dist-lib/cloud-contract.mjs +1 -1
  22. package/dist-lib/cloud-test-args.cjs +1 -1
  23. package/dist-lib/cloud-test-args.mjs +1 -1
  24. package/dist-lib/cloud.cjs +1 -1
  25. package/dist-lib/cloud.mjs +1 -1
  26. package/dist-lib/config.cjs +1 -1
  27. package/dist-lib/detox/index.cjs +1 -1
  28. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  29. package/dist-lib/home-paths.cjs +1 -1
  30. package/dist-lib/host/bridge-host.cjs +47 -9
  31. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  32. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  33. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  34. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  35. package/dist-lib/host/websocket-proxy.cjs +1 -1
  36. package/dist-lib/index.cjs +1 -1
  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.cjs +1 -1
  48. package/dist-lib/native-app-identity.mjs +1 -1
  49. package/dist-lib/native-firebase-metadata.cjs +1 -1
  50. package/dist-lib/native-firebase-metadata.mjs +1 -1
  51. package/dist-lib/plist.cjs +1 -1
  52. package/dist-lib/plist.mjs +1 -1
  53. package/dist-lib/profiles.cjs +1 -1
  54. package/dist-lib/public-brand.cjs +1 -1
  55. package/dist-lib/react-native-host-modules.cjs +1 -1
  56. package/dist-lib/react-native-host-modules.mjs +1 -1
  57. package/dist-lib/render-mode.cjs +1 -1
  58. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  59. package/dist-lib/sdk.cjs +1 -1
  60. package/dist-lib/sdk.mjs +1 -1
  61. package/dist-lib/skills.cjs +47 -9
  62. package/dist-lib/swift-compile.cjs +19 -3
  63. package/dist-lib/swift-compile.mjs +18 -3
  64. package/dist-lib/swift-package.cjs +1 -1
  65. package/dist-lib/swift-package.mjs +1 -1
  66. package/dist-lib/swift-submit.cjs +1 -1
  67. package/dist-lib/swift-submit.mjs +1 -1
  68. package/dist-lib/swift-toolchain.cjs +1 -1
  69. package/dist-lib/swift.cjs +1 -1
  70. package/dist-lib/vite-swift.cjs +18 -3
  71. package/dist-lib/vite.cjs +1 -1
  72. package/package.json +1 -1
  73. package/src/desktop-host-delivery.ts +23 -0
  74. package/src/swift-compile.ts +26 -2
@@ -499,18 +499,31 @@ interface MetroAssetSearch {
499
499
  *
500
500
  * a verified placement's bytes reproduce Metro's own digest, so it is the right
501
501
  * content wherever it was read from and two directories that both verified it
502
- * are not in conflict. only the unverified files are a real fork, and they are
503
- * keyed by absolute path because `<dir>/assets` and `<dir>` are both candidates
504
- * and list the same files under different dest-relative names.
502
+ * are not in conflict. unverified choices are keyed by content for each
503
+ * descriptor and scale: nested candidates can choose different byte-identical
504
+ * copies. keeping descriptor positions prevents swapped assets from agreeing.
505
505
  */
506
- function unverifiedFileKey(dest: MetroAssetDest): string {
507
- return dest.placements
508
- .filter((placement) => !placement.verified)
509
- .flatMap((placement) =>
510
- [...placement.files.values()].map((relative) => join(dest.directory, relative)),
511
- )
512
- .sort()
513
- .join('\n')
506
+ function unverifiedContentKey(
507
+ dest: MetroAssetDest,
508
+ fileDigests: Map<string, string>,
509
+ ): string {
510
+ return JSON.stringify(
511
+ dest.placements.map((placement) =>
512
+ placement.verified
513
+ ? null
514
+ : [...placement.files]
515
+ .map(([scale, relative]): [number, string] => {
516
+ const file = join(dest.directory, relative)
517
+ let digest = fileDigests.get(file)
518
+ if (digest === undefined) {
519
+ digest = createHash('sha256').update(readFileSync(file)).digest('hex')
520
+ fileDigests.set(file, digest)
521
+ }
522
+ return [scale, digest]
523
+ })
524
+ .sort(([first], [second]) => first - second),
525
+ ),
526
+ )
514
527
  }
515
528
 
516
529
  /**
@@ -596,7 +609,10 @@ function searchMetroAssetDest(
596
609
  // a directory that confirmed nothing cannot outrank one that confirmed
597
610
  // something, and when nothing anywhere confirmed, every claimant is a rival.
598
611
  const rivals = holders.filter((holder) => holder.verified === best)
599
- const distinct = new Set(rivals.map((rival) => unverifiedFileKey(rival.dest)))
612
+ const fileDigests = new Map<string, string>()
613
+ const distinct = new Set(
614
+ rivals.map((rival) => unverifiedContentKey(rival.dest, fileDigests)),
615
+ )
600
616
  const winner = rivals[0]
601
617
  if (!winner) return { dest: null, searched, truncated, unconfirmed: false }
602
618
  if (distinct.size > 1) {
@@ -415,11 +415,6 @@ examples:
415
415
  console.log(' peach open <target> Open a demo or bundle in it')
416
416
  }
417
417
 
418
- // the native host's identity, checked on the installed copy: the manifest
419
- // checksum proves the bytes are the published ones, this proves who signed them.
420
- const NATIVE_HOST_REQUIREMENT =
421
- '=anchor apple generic and identifier "dev.contrast.peach-desktop" and certificate leaf[subject.OU] = "399WY8X9HY" and certificate leaf[field.1.2.840.113635.100.6.1.13] exists'
422
-
423
418
  async function installNativeHost(args: string[], force: boolean): Promise<void> {
424
419
  const channelIndex = args.indexOf('--channel')
425
420
  const channel = channelIndex >= 0 ? args[channelIndex + 1] : undefined
@@ -440,30 +435,10 @@ async function installNativeHost(args: string[], force: boolean): Promise<void>
440
435
  version,
441
436
  channel: resolvedChannel,
442
437
  force,
443
- // the installed copy becomes active only once its signature checks out
444
- setActive: false,
445
438
  quiet: true,
446
439
  }),
447
440
  )
448
441
  const app = join(result.runtimeDir, 'PeachDesktop.app')
449
- if (result.installed) {
450
- const signature = spawnSync('codesign', [
451
- '--verify',
452
- '--deep',
453
- '--strict',
454
- '-R',
455
- NATIVE_HOST_REQUIREMENT,
456
- app,
457
- ])
458
- const notarization = spawnSync('spctl', ['--assess', '--type', 'execute', app])
459
- if (signature.status !== 0 || notarization.status !== 0) {
460
- rmSync(result.runtimeDir, { recursive: true, force: true })
461
- throw new Error(
462
- `version ${result.version} failed Developer ID or notarization verification`,
463
- )
464
- }
465
- }
466
- delivery.product.writeActiveRuntime(result.version)
467
442
  console.log(
468
443
  ` ${success('✓')} Native desktop host ${result.version} ${result.installed ? 'installed' : 'already installed'} at ${app}`,
469
444
  )
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
package/dist-lib/beta.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
package/dist-lib/beta.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (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
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (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
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (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
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (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
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/cloud-contract.ts
4
4
  var RNX_CLOUD_MAX_ARTIFACT_BYTES = 20 * 1024 * 1024;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/cloud-test-args.ts
4
4
  var CLOUD_TEST_ARGS_MAX_COUNT = 32;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  var __defProp = Object.defineProperty;
3
3
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
4
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -4555,10 +4555,20 @@ function placeMetroDescriptor(listing, descriptor) {
4555
4555
  }
4556
4556
  return { files, ambiguous, verified: false, mismatched: true };
4557
4557
  }
4558
- function unverifiedFileKey(dest) {
4559
- return dest.placements.filter((placement) => !placement.verified).flatMap(
4560
- (placement) => [...placement.files.values()].map((relative2) => (0, import_node_path25.join)(dest.directory, relative2))
4561
- ).sort().join("\n");
4558
+ function unverifiedContentKey(dest, fileDigests) {
4559
+ return JSON.stringify(
4560
+ dest.placements.map(
4561
+ (placement) => placement.verified ? null : [...placement.files].map(([scale, relative2]) => {
4562
+ const file = (0, import_node_path25.join)(dest.directory, relative2);
4563
+ let digest = fileDigests.get(file);
4564
+ if (digest === void 0) {
4565
+ digest = (0, import_node_crypto11.createHash)("sha256").update((0, import_node_fs25.readFileSync)(file)).digest("hex");
4566
+ fileDigests.set(file, digest);
4567
+ }
4568
+ return [scale, digest];
4569
+ }).sort(([first], [second]) => first - second)
4570
+ )
4571
+ );
4562
4572
  }
4563
4573
  function searchMetroAssetDest(bundlePath, descriptors) {
4564
4574
  const bundleDirectory = (0, import_node_path25.dirname)((0, import_node_path25.resolve)(bundlePath));
@@ -4624,7 +4634,10 @@ function searchMetroAssetDest(bundlePath, descriptors) {
4624
4634
  }
4625
4635
  const best = Math.max(...holders.map((holder) => holder.verified));
4626
4636
  const rivals = holders.filter((holder) => holder.verified === best);
4627
- const distinct = new Set(rivals.map((rival) => unverifiedFileKey(rival.dest)));
4637
+ const fileDigests = /* @__PURE__ */ new Map();
4638
+ const distinct = new Set(
4639
+ rivals.map((rival) => unverifiedContentKey(rival.dest, fileDigests))
4640
+ );
4628
4641
  const winner = rivals[0];
4629
4642
  if (!winner) return { dest: null, searched, truncated, unconfirmed: false };
4630
4643
  if (distinct.size > 1) {
@@ -6939,7 +6952,7 @@ var ONE_IMPLICIT_FLAGS = ', "-Xfrontend", "-import-module", "-Xfrontend", "One"'
6939
6952
  var MULTI_MANIFEST_VERSION = 11;
6940
6953
  function swiftArtifactHash(input, release, moduleRoot) {
6941
6954
  const hash = (0, import_node_crypto3.createHash)("sha256");
6942
- hash.update(`swift-compile/v16
6955
+ hash.update(`swift-compile/v17
6943
6956
  ${release}
6944
6957
  `);
6945
6958
  if (input.oneModule) hash.update("one-module\n");
@@ -7458,6 +7471,18 @@ function lowerAnyObjectDoubleValue(source) {
7458
7471
  out = out.slice(0, at) + insert + out.slice(at + remove);
7459
7472
  return out;
7460
7473
  }
7474
+ function lowerAVAssetURLCluster(source) {
7475
+ const masked = swiftCodeMask(source);
7476
+ const pattern = /\bAVAsset\s*(\.\s*init\s*)?\(\s*url\s*:/g;
7477
+ const edits = [];
7478
+ let hit;
7479
+ while ((hit = pattern.exec(masked)) !== null)
7480
+ edits.push([hit.index, "AVAsset".length, "AVURLAsset"]);
7481
+ let out = source;
7482
+ for (const [at, remove, insert] of edits.sort((a, b) => b[0] - a[0]))
7483
+ out = out.slice(0, at) + insert + out.slice(at + remove);
7484
+ return out;
7485
+ }
7461
7486
  function swiftCodeMask(source) {
7462
7487
  const chars = source.split("");
7463
7488
  const blank = (from, to) => {
@@ -7661,7 +7686,9 @@ function swiftSourceAsIOS(original, extraObjCExtensions) {
7661
7686
  out += conditioned.slice(copied, at) + replacement;
7662
7687
  copied = at + match[0].length;
7663
7688
  }
7664
- return lowerAnyObjectDoubleValue(out + conditioned.slice(copied));
7689
+ return lowerAVAssetURLCluster(
7690
+ lowerAnyObjectDoubleValue(out + conditioned.slice(copied))
7691
+ );
7665
7692
  }
7666
7693
  function swiftCodeScan(source) {
7667
7694
  const starts = /* @__PURE__ */ new Set();
@@ -8111,6 +8138,15 @@ function createRuntimeDelivery(product) {
8111
8138
  }
8112
8139
  return { version, channel, entry };
8113
8140
  }
8141
+ function isVerifiedInstall(dir) {
8142
+ if (!import_node_fs9.default.existsSync(import_node_path9.default.join(dir, product.installedMarker))) return false;
8143
+ try {
8144
+ product.verifyInstall?.(dir);
8145
+ return true;
8146
+ } catch {
8147
+ return false;
8148
+ }
8149
+ }
8114
8150
  async function install(opts = {}) {
8115
8151
  product.ensureHome();
8116
8152
  const cdnOrigin = resolveCdnOrigin(opts.cdnOrigin);
@@ -8120,7 +8156,7 @@ function createRuntimeDelivery(product) {
8120
8156
  const setActive = opts.setActive !== false;
8121
8157
  const protectVersions = [version, ...opts.protectVersions ?? []];
8122
8158
  pruneLocalRetention({ protectVersions });
8123
- if (!opts.force && import_node_fs9.default.existsSync(import_node_path9.default.join(destDir, product.installedMarker))) {
8159
+ if (!opts.force && isVerifiedInstall(destDir)) {
8124
8160
  if (setActive) product.writeActiveRuntime(version);
8125
8161
  pruneLocalRetention({ protectVersions });
8126
8162
  return {
@@ -8141,6 +8177,7 @@ function createRuntimeDelivery(product) {
8141
8177
  digest: { algorithm: "sha256", encoding: "hex", value: entry.sha256 },
8142
8178
  destDir,
8143
8179
  installedMarker: product.installedMarker,
8180
+ verify: product.verifyInstall,
8144
8181
  label: `runtime ${version}`
8145
8182
  });
8146
8183
  if (setActive) product.writeActiveRuntime(version);
@@ -8353,6 +8390,7 @@ async function installVerifiedTarball(tarball) {
8353
8390
  if (!import_node_fs9.default.existsSync(import_node_path9.default.join(tmpDir, installedMarker))) {
8354
8391
  throw new Error(`extracted tarball for ${label} is missing ${installedMarker}`);
8355
8392
  }
8393
+ tarball.verify?.(tmpDir);
8356
8394
  try {
8357
8395
  import_node_fs9.default.renameSync(tmpDir, destDir);
8358
8396
  } catch (err) {
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/host/fetch-proxy-overrides.ts
4
4
  var FETCH_PROXY_NATIVE_USER_AGENT_HEADER = "x-sootsim-native-user-agent";
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
package/dist-lib/menu.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
package/dist-lib/menu.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/public-brand.ts
4
4
  var name = "Peach";
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/is-record.ts
4
4
  function isRecord(value) {
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/metro-production-bundle.ts
4
4
  var RNXSIM_METRO_MODULE_PATHS_PREFIX = "globalThis.__sootsimModulePaths=";
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/native-app-identity.ts
4
4
  var NATIVE_APP_IDENTITY_PREFIX = "globalThis.__sootsimNativeAppIdentity=";
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/native-firebase-metadata.ts
4
4
  var PREFIX = "globalThis.__peachNativeFirebaseConfig=";
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/plist.ts
4
4
  import plist from "plist";
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/react-native-host-modules.ts
4
4
  var REACT_NATIVE_PASSTHROUGH_SPECIFIERS = [
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
package/dist-lib/sdk.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
package/dist-lib/sdk.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  var __defProp = Object.defineProperty;
3
3
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
4
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -22064,7 +22064,7 @@ function swiftTargetDependencies(files, targets) {
22064
22064
  }
22065
22065
  function swiftArtifactHash(input, release, moduleRoot) {
22066
22066
  const hash = (0, import_node_crypto3.createHash)("sha256");
22067
- hash.update(`swift-compile/v16
22067
+ hash.update(`swift-compile/v17
22068
22068
  ${release}
22069
22069
  `);
22070
22070
  if (input.oneModule) hash.update("one-module\n");
@@ -22563,6 +22563,18 @@ function lowerAnyObjectDoubleValue(source) {
22563
22563
  out = out.slice(0, at) + insert + out.slice(at + remove);
22564
22564
  return out;
22565
22565
  }
22566
+ function lowerAVAssetURLCluster(source) {
22567
+ const masked = swiftCodeMask(source);
22568
+ const pattern = /\bAVAsset\s*(\.\s*init\s*)?\(\s*url\s*:/g;
22569
+ const edits = [];
22570
+ let hit;
22571
+ while ((hit = pattern.exec(masked)) !== null)
22572
+ edits.push([hit.index, "AVAsset".length, "AVURLAsset"]);
22573
+ let out = source;
22574
+ for (const [at, remove, insert] of edits.sort((a, b) => b[0] - a[0]))
22575
+ out = out.slice(0, at) + insert + out.slice(at + remove);
22576
+ return out;
22577
+ }
22566
22578
  function swiftCodeMask(source) {
22567
22579
  const chars = source.split("");
22568
22580
  const blank = (from, to) => {
@@ -22766,7 +22778,9 @@ function swiftSourceAsIOS(original, extraObjCExtensions) {
22766
22778
  out += conditioned.slice(copied, at) + replacement;
22767
22779
  copied = at + match[0].length;
22768
22780
  }
22769
- return lowerAnyObjectDoubleValue(out + conditioned.slice(copied));
22781
+ return lowerAVAssetURLCluster(
22782
+ lowerAnyObjectDoubleValue(out + conditioned.slice(copied))
22783
+ );
22770
22784
  }
22771
22785
  function swiftCodeScan(source) {
22772
22786
  const starts = /* @__PURE__ */ new Set();
@@ -23281,6 +23295,15 @@ function createRuntimeDelivery(product) {
23281
23295
  }
23282
23296
  return { version, channel, entry };
23283
23297
  }
23298
+ function isVerifiedInstall(dir) {
23299
+ if (!import_node_fs9.default.existsSync(import_node_path9.default.join(dir, product.installedMarker))) return false;
23300
+ try {
23301
+ product.verifyInstall?.(dir);
23302
+ return true;
23303
+ } catch {
23304
+ return false;
23305
+ }
23306
+ }
23284
23307
  async function install(opts = {}) {
23285
23308
  product.ensureHome();
23286
23309
  const cdnOrigin = resolveCdnOrigin(opts.cdnOrigin);
@@ -23290,7 +23313,7 @@ function createRuntimeDelivery(product) {
23290
23313
  const setActive = opts.setActive !== false;
23291
23314
  const protectVersions = [version, ...opts.protectVersions ?? []];
23292
23315
  pruneLocalRetention({ protectVersions });
23293
- if (!opts.force && import_node_fs9.default.existsSync(import_node_path9.default.join(destDir, product.installedMarker))) {
23316
+ if (!opts.force && isVerifiedInstall(destDir)) {
23294
23317
  if (setActive) product.writeActiveRuntime(version);
23295
23318
  pruneLocalRetention({ protectVersions });
23296
23319
  return {
@@ -23311,6 +23334,7 @@ function createRuntimeDelivery(product) {
23311
23334
  digest: { algorithm: "sha256", encoding: "hex", value: entry.sha256 },
23312
23335
  destDir,
23313
23336
  installedMarker: product.installedMarker,
23337
+ verify: product.verifyInstall,
23314
23338
  label: `runtime ${version}`
23315
23339
  });
23316
23340
  if (setActive) product.writeActiveRuntime(version);
@@ -23523,6 +23547,7 @@ async function installVerifiedTarball(tarball) {
23523
23547
  if (!import_node_fs9.default.existsSync(import_node_path9.default.join(tmpDir, installedMarker))) {
23524
23548
  throw new Error(`extracted tarball for ${label} is missing ${installedMarker}`);
23525
23549
  }
23550
+ tarball.verify?.(tmpDir);
23526
23551
  try {
23527
23552
  import_node_fs9.default.renameSync(tmpDir, destDir);
23528
23553
  } catch (err) {
@@ -33127,10 +33152,20 @@ function placeMetroDescriptor(listing, descriptor) {
33127
33152
  }
33128
33153
  return { files, ambiguous, verified: false, mismatched: true };
33129
33154
  }
33130
- function unverifiedFileKey(dest) {
33131
- return dest.placements.filter((placement) => !placement.verified).flatMap(
33132
- (placement) => [...placement.files.values()].map((relative3) => (0, import_node_path25.join)(dest.directory, relative3))
33133
- ).sort().join("\n");
33155
+ function unverifiedContentKey(dest, fileDigests) {
33156
+ return JSON.stringify(
33157
+ dest.placements.map(
33158
+ (placement) => placement.verified ? null : [...placement.files].map(([scale, relative3]) => {
33159
+ const file = (0, import_node_path25.join)(dest.directory, relative3);
33160
+ let digest = fileDigests.get(file);
33161
+ if (digest === void 0) {
33162
+ digest = (0, import_node_crypto11.createHash)("sha256").update((0, import_node_fs25.readFileSync)(file)).digest("hex");
33163
+ fileDigests.set(file, digest);
33164
+ }
33165
+ return [scale, digest];
33166
+ }).sort(([first], [second]) => first - second)
33167
+ )
33168
+ );
33134
33169
  }
33135
33170
  function searchMetroAssetDest(bundlePath, descriptors) {
33136
33171
  const bundleDirectory = (0, import_node_path25.dirname)((0, import_node_path25.resolve)(bundlePath));
@@ -33196,7 +33231,10 @@ function searchMetroAssetDest(bundlePath, descriptors) {
33196
33231
  }
33197
33232
  const best = Math.max(...holders.map((holder) => holder.verified));
33198
33233
  const rivals = holders.filter((holder) => holder.verified === best);
33199
- const distinct = new Set(rivals.map((rival) => unverifiedFileKey(rival.dest)));
33234
+ const fileDigests = /* @__PURE__ */ new Map();
33235
+ const distinct = new Set(
33236
+ rivals.map((rival) => unverifiedContentKey(rival.dest, fileDigests))
33237
+ );
33200
33238
  const winner = rivals[0];
33201
33239
  if (!winner) return { dest: null, searched, truncated, unconfirmed: false };
33202
33240
  if (distinct.size > 1) {
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -37,6 +37,7 @@ __export(swift_compile_exports, {
37
37
  compileSwiftProjectUnit: () => compileSwiftProjectUnit,
38
38
  compileTargets: () => compileTargets,
39
39
  emitSwiftPackageManifest: () => emitSwiftPackageManifest,
40
+ lowerAVAssetURLCluster: () => lowerAVAssetURLCluster,
40
41
  lowerAnyObjectDoubleValue: () => lowerAnyObjectDoubleValue,
41
42
  missingSwiftModules: () => missingSwiftModules,
42
43
  objcExtensionMemberIndex: () => objcExtensionMemberIndex,
@@ -531,7 +532,7 @@ var ONE_IMPLICIT_FLAGS = ', "-Xfrontend", "-import-module", "-Xfrontend", "One"'
531
532
  var MULTI_MANIFEST_VERSION = 11;
532
533
  function swiftArtifactHash(input, release, moduleRoot) {
533
534
  const hash = (0, import_node_crypto2.createHash)("sha256");
534
- hash.update(`swift-compile/v16
535
+ hash.update(`swift-compile/v17
535
536
  ${release}
536
537
  `);
537
538
  if (input.oneModule) hash.update("one-module\n");
@@ -1050,6 +1051,18 @@ function lowerAnyObjectDoubleValue(source) {
1050
1051
  out = out.slice(0, at) + insert + out.slice(at + remove);
1051
1052
  return out;
1052
1053
  }
1054
+ function lowerAVAssetURLCluster(source) {
1055
+ const masked = swiftCodeMask(source);
1056
+ const pattern = /\bAVAsset\s*(\.\s*init\s*)?\(\s*url\s*:/g;
1057
+ const edits = [];
1058
+ let hit;
1059
+ while ((hit = pattern.exec(masked)) !== null)
1060
+ edits.push([hit.index, "AVAsset".length, "AVURLAsset"]);
1061
+ let out = source;
1062
+ for (const [at, remove, insert] of edits.sort((a, b) => b[0] - a[0]))
1063
+ out = out.slice(0, at) + insert + out.slice(at + remove);
1064
+ return out;
1065
+ }
1053
1066
  function swiftCodeMask(source) {
1054
1067
  const chars = source.split("");
1055
1068
  const blank = (from, to) => {
@@ -1253,7 +1266,9 @@ function swiftSourceAsIOS(original, extraObjCExtensions) {
1253
1266
  out += conditioned.slice(copied, at) + replacement;
1254
1267
  copied = at + match[0].length;
1255
1268
  }
1256
- return lowerAnyObjectDoubleValue(out + conditioned.slice(copied));
1269
+ return lowerAVAssetURLCluster(
1270
+ lowerAnyObjectDoubleValue(out + conditioned.slice(copied))
1271
+ );
1257
1272
  }
1258
1273
  function swiftApplicationEntry(file, source) {
1259
1274
  const { tokens } = swiftCodeScan(source);
@@ -1634,6 +1649,7 @@ function compileSwiftProjectUnit(input, options) {
1634
1649
  compileSwiftProjectUnit,
1635
1650
  compileTargets,
1636
1651
  emitSwiftPackageManifest,
1652
+ lowerAVAssetURLCluster,
1637
1653
  lowerAnyObjectDoubleValue,
1638
1654
  missingSwiftModules,
1639
1655
  objcExtensionMemberIndex,
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/swift-compile.ts
4
4
  import { execFile as execFile2, execFileSync } from "node:child_process";
@@ -484,7 +484,7 @@ var ONE_IMPLICIT_FLAGS = ', "-Xfrontend", "-import-module", "-Xfrontend", "One"'
484
484
  var MULTI_MANIFEST_VERSION = 11;
485
485
  function swiftArtifactHash(input, release, moduleRoot) {
486
486
  const hash = createHash2("sha256");
487
- hash.update(`swift-compile/v16
487
+ hash.update(`swift-compile/v17
488
488
  ${release}
489
489
  `);
490
490
  if (input.oneModule) hash.update("one-module\n");
@@ -1003,6 +1003,18 @@ function lowerAnyObjectDoubleValue(source) {
1003
1003
  out = out.slice(0, at) + insert + out.slice(at + remove);
1004
1004
  return out;
1005
1005
  }
1006
+ function lowerAVAssetURLCluster(source) {
1007
+ const masked = swiftCodeMask(source);
1008
+ const pattern = /\bAVAsset\s*(\.\s*init\s*)?\(\s*url\s*:/g;
1009
+ const edits = [];
1010
+ let hit;
1011
+ while ((hit = pattern.exec(masked)) !== null)
1012
+ edits.push([hit.index, "AVAsset".length, "AVURLAsset"]);
1013
+ let out = source;
1014
+ for (const [at, remove, insert] of edits.sort((a, b) => b[0] - a[0]))
1015
+ out = out.slice(0, at) + insert + out.slice(at + remove);
1016
+ return out;
1017
+ }
1006
1018
  function swiftCodeMask(source) {
1007
1019
  const chars = source.split("");
1008
1020
  const blank = (from, to) => {
@@ -1206,7 +1218,9 @@ function swiftSourceAsIOS(original, extraObjCExtensions) {
1206
1218
  out += conditioned.slice(copied, at) + replacement;
1207
1219
  copied = at + match[0].length;
1208
1220
  }
1209
- return lowerAnyObjectDoubleValue(out + conditioned.slice(copied));
1221
+ return lowerAVAssetURLCluster(
1222
+ lowerAnyObjectDoubleValue(out + conditioned.slice(copied))
1223
+ );
1210
1224
  }
1211
1225
  function swiftApplicationEntry(file, source) {
1212
1226
  const { tokens } = swiftCodeScan(source);
@@ -1586,6 +1600,7 @@ export {
1586
1600
  compileSwiftProjectUnit,
1587
1601
  compileTargets,
1588
1602
  emitSwiftPackageManifest,
1603
+ lowerAVAssetURLCluster,
1589
1604
  lowerAnyObjectDoubleValue,
1590
1605
  missingSwiftModules,
1591
1606
  objcExtensionMemberIndex,
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/swift-package.ts
4
4
  function isSwiftManifestFile(file) {
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/swift-submit.ts
4
4
  var SWIFT_COMPILE_PATH = "/api/swift-compile";
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -924,7 +924,7 @@ var ONE_IMPLICIT_FLAGS = ', "-Xfrontend", "-import-module", "-Xfrontend", "One"'
924
924
  var MULTI_MANIFEST_VERSION = 11;
925
925
  function swiftArtifactHash(input, release, moduleRoot) {
926
926
  const hash = (0, import_node_crypto2.createHash)("sha256");
927
- hash.update(`swift-compile/v16
927
+ hash.update(`swift-compile/v17
928
928
  ${release}
929
929
  `);
930
930
  if (input.oneModule) hash.update("one-module\n");
@@ -1443,6 +1443,18 @@ function lowerAnyObjectDoubleValue(source) {
1443
1443
  out = out.slice(0, at) + insert + out.slice(at + remove);
1444
1444
  return out;
1445
1445
  }
1446
+ function lowerAVAssetURLCluster(source) {
1447
+ const masked = swiftCodeMask(source);
1448
+ const pattern = /\bAVAsset\s*(\.\s*init\s*)?\(\s*url\s*:/g;
1449
+ const edits = [];
1450
+ let hit;
1451
+ while ((hit = pattern.exec(masked)) !== null)
1452
+ edits.push([hit.index, "AVAsset".length, "AVURLAsset"]);
1453
+ let out = source;
1454
+ for (const [at, remove, insert] of edits.sort((a, b) => b[0] - a[0]))
1455
+ out = out.slice(0, at) + insert + out.slice(at + remove);
1456
+ return out;
1457
+ }
1446
1458
  function swiftCodeMask(source) {
1447
1459
  const chars = source.split("");
1448
1460
  const blank = (from, to) => {
@@ -1646,7 +1658,9 @@ function swiftSourceAsIOS(original, extraObjCExtensions) {
1646
1658
  out += conditioned.slice(copied, at) + replacement;
1647
1659
  copied = at + match[0].length;
1648
1660
  }
1649
- return lowerAnyObjectDoubleValue(out + conditioned.slice(copied));
1661
+ return lowerAVAssetURLCluster(
1662
+ lowerAnyObjectDoubleValue(out + conditioned.slice(copied))
1663
+ );
1650
1664
  }
1651
1665
  function swiftApplicationEntry(file, source) {
1652
1666
  const { tokens } = swiftCodeScan(source);
@@ -2500,6 +2514,7 @@ async function installVerifiedTarball(tarball) {
2500
2514
  if (!import_node_fs4.default.existsSync(import_node_path5.default.join(tmpDir, installedMarker))) {
2501
2515
  throw new Error(`extracted tarball for ${label} is missing ${installedMarker}`);
2502
2516
  }
2517
+ tarball.verify?.(tmpDir);
2503
2518
  try {
2504
2519
  import_node_fs4.default.renameSync(tmpDir, destDir);
2505
2520
  } catch (err) {
package/dist-lib/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.746 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.748 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "peachsim",
3
- "version": "0.1.746",
3
+ "version": "0.1.748",
4
4
  "description": "Vite and Metro plugins, testing drivers, and SDK exports for peach.",
5
5
  "author": "Tamagui LLC",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -5,6 +5,7 @@
5
5
  // engine runtime. each channel publishes its own manifest per platform, so the
6
6
  // staging and production queues never write the same object.
7
7
 
8
+ import { spawnSync } from 'node:child_process'
8
9
  import path from 'node:path'
9
10
  import { createRuntimeDelivery, type RuntimeDelivery } from '@contrast/runtime-delivery'
10
11
  import {
@@ -38,6 +39,27 @@ export function activeDesktopHostApp(): string | null {
38
39
  return version ? path.join(desktopHostDir(version), 'PeachDesktop.app') : null
39
40
  }
40
41
 
42
+ // the host's identity: the manifest checksum proves the bytes are the published
43
+ // ones, this proves who signed them
44
+ const HOST_REQUIREMENT =
45
+ '=anchor apple generic and identifier "dev.contrast.peach-desktop" and certificate leaf[subject.OU] = "399WY8X9HY" and certificate leaf[field.1.2.840.113635.100.6.1.13] exists'
46
+
47
+ function verifyHost(dir: string): void {
48
+ const app = path.join(dir, 'PeachDesktop.app')
49
+ const signature = spawnSync('codesign', [
50
+ '--verify',
51
+ '--deep',
52
+ '--strict',
53
+ '-R',
54
+ HOST_REQUIREMENT,
55
+ app,
56
+ ])
57
+ const notarization = spawnSync('spctl', ['--assess', '--type', 'execute', app])
58
+ if (signature.status !== 0 || notarization.status !== 0) {
59
+ throw new Error(`${app} failed Developer ID or notarization verification`)
60
+ }
61
+ }
62
+
41
63
  function isChannel(value: string): value is DesktopHostChannel {
42
64
  return DESKTOP_HOST_CHANNELS.some((channel) => channel === value)
43
65
  }
@@ -63,6 +85,7 @@ export function desktopHostDelivery(channelInput?: string): RuntimeDelivery {
63
85
  tarballPath: (version) =>
64
86
  `${prefix}/${version}/PeachDesktop-${version}-${platform}.zip`,
65
87
  installedMarker: desktopHostExecutable(),
88
+ verifyInstall: verifyHost,
66
89
  env: {
67
90
  cdnOrigin: 'PEACH_DESKTOP_CDN_ORIGIN',
68
91
  channel: CHANNEL_ENV,
@@ -427,6 +427,7 @@ export function swiftArtifactHash(
427
427
  moduleRoot: string,
428
428
  ): string {
429
429
  const hash = createHash('sha256')
430
+ // v17: AVAsset(url:) constructs AVURLAsset for the class cluster
430
431
  // v16: overrides of @objc extension members rename to __peach_ovr_
431
432
  // v15: Foundation-only sources see the platform libc (WASILibc, including
432
433
  // math round) and its pthread mutexes (wasi_pthread)
@@ -440,7 +441,7 @@ export function swiftArtifactHash(
440
441
  // v6: app and scene delegate classes compile final
441
442
  // (v5: a target declaring resources gets SwiftPM's Bundle.module accessor;
442
443
  // v4: sources compile through swiftSourceAsIOS)
443
- hash.update(`swift-compile/v16\n${release}\n`)
444
+ hash.update(`swift-compile/v17\n${release}\n`)
444
445
  if (input.oneModule) hash.update('one-module\n')
445
446
  hash.update(swiftModuleDigest(moduleRoot))
446
447
  for (const file of Object.keys(input.files).sort()) {
@@ -1156,6 +1157,27 @@ export function lowerAnyObjectDoubleValue(source: string): string {
1156
1157
  return out
1157
1158
  }
1158
1159
 
1160
+ // AVAsset(url:) is a class cluster: the sdk vends an AVURLAsset for it
1161
+ // (AVAsset.h: "a newly allocated instance of a subclass of AVAsset").
1162
+ // Swift cannot substitute the subclass inside an initializer, so compiled
1163
+ // sources construct the concrete class directly; only the token changes,
1164
+ // spacing and the argument list stay as written. AVURLAsset(url:) never
1165
+ // matches (\bAVAsset cannot start inside it), and neither do strings,
1166
+ // comments, regex literals or the legacy URL: spelling, which stays on the
1167
+ // trapping stub. the base initializer remains for whatever this misses.
1168
+ export function lowerAVAssetURLCluster(source: string): string {
1169
+ const masked = swiftCodeMask(source)
1170
+ const pattern = /\bAVAsset\s*(\.\s*init\s*)?\(\s*url\s*:/g
1171
+ const edits: [number, number, string][] = []
1172
+ let hit: RegExpExecArray | null
1173
+ while ((hit = pattern.exec(masked)) !== null)
1174
+ edits.push([hit.index, 'AVAsset'.length, 'AVURLAsset'])
1175
+ let out = source
1176
+ for (const [at, remove, insert] of edits.sort((a, b) => b[0] - a[0]))
1177
+ out = out.slice(0, at) + insert + out.slice(at + remove)
1178
+ return out
1179
+ }
1180
+
1159
1181
  // the index-preserving view lowerAnyObjectDoubleValue matches on: every
1160
1182
  // char outside code (comments, strings, regex literals) reads as a space,
1161
1183
  // so an identifier that survives is code. newlines stay, keeping every
@@ -1391,7 +1413,9 @@ export function swiftSourceAsIOS(
1391
1413
  out += conditioned.slice(copied, at) + replacement
1392
1414
  copied = at + match[0].length
1393
1415
  }
1394
- return lowerAnyObjectDoubleValue(out + conditioned.slice(copied))
1416
+ return lowerAVAssetURLCluster(
1417
+ lowerAnyObjectDoubleValue(out + conditioned.slice(copied)),
1418
+ )
1395
1419
  }
1396
1420
 
1397
1421
  /** Swift's application entry declarations, ignoring comments and strings. */