peachsim 0.1.2390 → 0.1.2392

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 (90) hide show
  1. package/cli/commands/canvas.ts +92 -22
  2. package/dist-lib/agent-daemon-client.cjs +1 -1
  3. package/dist-lib/agent-events.cjs +1 -1
  4. package/dist-lib/attached-projects.cjs +1 -1
  5. package/dist-lib/auth/shared-session.cjs +1 -1
  6. package/dist-lib/backend-origin.cjs +1 -1
  7. package/dist-lib/beta.cjs +1 -1
  8. package/dist-lib/beta.mjs +1 -1
  9. package/dist-lib/bridge-constants.cjs +1 -1
  10. package/dist-lib/bridge-contract-input.cjs +1 -1
  11. package/dist-lib/bridge-contract-input.mjs +1 -1
  12. package/dist-lib/bridge-contract.cjs +1 -1
  13. package/dist-lib/bridge-contract.mjs +1 -1
  14. package/dist-lib/bundle-channel.cjs +47 -31
  15. package/dist-lib/capture-contract.cjs +1 -1
  16. package/dist-lib/capture-contract.mjs +1 -1
  17. package/dist-lib/cloud-contract.cjs +1 -1
  18. package/dist-lib/cloud-contract.mjs +1 -1
  19. package/dist-lib/cloud-test-args.cjs +1 -1
  20. package/dist-lib/cloud-test-args.mjs +1 -1
  21. package/dist-lib/cloud.cjs +1 -1
  22. package/dist-lib/cloud.mjs +1 -1
  23. package/dist-lib/config.cjs +1 -1
  24. package/dist-lib/config.mjs +1 -1
  25. package/dist-lib/detox/index.cjs +1 -1
  26. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  27. package/dist-lib/expo-swift-bundle.cjs +46 -30
  28. package/dist-lib/expo-swift-metadata.cjs +1 -1
  29. package/dist-lib/expo-swift-metadata.mjs +1 -1
  30. package/dist-lib/home-paths.cjs +1 -1
  31. package/dist-lib/host/bridge-host.cjs +47 -31
  32. package/dist-lib/host/fetch-proxy-handler.cjs +7 -5
  33. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  34. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  35. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  36. package/dist-lib/host/websocket-proxy.cjs +1 -1
  37. package/dist-lib/index.cjs +10 -7
  38. package/dist-lib/jump-to-source-babel.cjs +1 -1
  39. package/dist-lib/jump-to-source-native.cjs +1 -1
  40. package/dist-lib/kotlin-host.cjs +1 -1
  41. package/dist-lib/menu.cjs +1 -1
  42. package/dist-lib/menu.mjs +1 -1
  43. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  44. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  45. package/dist-lib/metro-production-bundle.cjs +1 -1
  46. package/dist-lib/metro-production-bundle.mjs +1 -1
  47. package/dist-lib/metro.cjs +10 -7
  48. package/dist-lib/native-app-identity-project.cjs +5 -4
  49. package/dist-lib/native-app-identity-project.mjs +5 -4
  50. package/dist-lib/native-app-identity.cjs +1 -1
  51. package/dist-lib/native-app-identity.mjs +1 -1
  52. package/dist-lib/native-firebase-metadata.cjs +1 -1
  53. package/dist-lib/native-firebase-metadata.mjs +1 -1
  54. package/dist-lib/pdfium-raster.cjs +1 -1
  55. package/dist-lib/pdfium-raster.mjs +1 -1
  56. package/dist-lib/plist.cjs +1 -1
  57. package/dist-lib/plist.mjs +1 -1
  58. package/dist-lib/profiles.cjs +1 -1
  59. package/dist-lib/public-brand.cjs +1 -1
  60. package/dist-lib/public-origins-lib-esm.json +24 -24
  61. package/dist-lib/public-origins-lib.json +53 -53
  62. package/dist-lib/react-native-host-modules.cjs +1 -1
  63. package/dist-lib/react-native-host-modules.mjs +1 -1
  64. package/dist-lib/reap-browser.cjs +1 -1
  65. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  66. package/dist-lib/sdk.cjs +1 -1
  67. package/dist-lib/sdk.mjs +1 -1
  68. package/dist-lib/skills.cjs +52 -31
  69. package/dist-lib/swift-compile.cjs +1 -1
  70. package/dist-lib/swift-compile.mjs +1 -1
  71. package/dist-lib/swift-package.cjs +1 -1
  72. package/dist-lib/swift-package.mjs +1 -1
  73. package/dist-lib/swift-submit.cjs +1 -1
  74. package/dist-lib/swift-submit.mjs +1 -1
  75. package/dist-lib/swift-toolchain.cjs +1 -1
  76. package/dist-lib/swift.cjs +1 -1
  77. package/dist-lib/vite-swift.cjs +44 -28
  78. package/dist-lib/vite.cjs +7 -5
  79. package/dist-lib/worklet-executable.cjs +1 -1
  80. package/dist-lib/worklet-executable.mjs +1 -1
  81. package/dist-types/packages/peach-engine/src/engine/metalDirectContract.d.ts +5 -0
  82. package/dist-types/packages/peach-engine/src/ios/apps/canvas-map-data.d.ts +15 -6
  83. package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +1 -6
  84. package/kotlin/sdk.tar.gz +0 -0
  85. package/node-runtime.json +1 -1
  86. package/package.json +1 -1
  87. package/src/swift-host.ts +5 -5
  88. package/src/swift-shipped-binaries.ts +17 -6
  89. package/src/swift-standins.ts +39 -23
  90. package/src/xcode-project.ts +4 -2
@@ -79,6 +79,7 @@ usage:
79
79
  peach canvas live <id>
80
80
  peach canvas freeze <id>
81
81
  peach canvas camera --at x,y --scale <n>
82
+ peach canvas camera --path <file>
82
83
  peach canvas remove <id>
83
84
  peach canvas list
84
85
  peach canvas push
@@ -99,7 +100,7 @@ verbs:
99
100
  focus select an item, or clear focus without an id
100
101
  live resume an item's app
101
102
  freeze retain an item's last frame and app state
102
- camera set the canvas translation and scale
103
+ camera set the canvas translation and scale, or play a path
103
104
  remove take an item, or a whole map by its name, off the canvas
104
105
  list print the working file's items
105
106
  push post the working file to the canvas sim again, as after a reload
@@ -120,6 +121,7 @@ options:
120
121
  --columns <n> arrange: items per row (default: a square grid)
121
122
  --gap <pt> arrange: space between items (default: ${ITEM_GAP})
122
123
  --flow arrange: lay each map out along its links and leave other items in place
124
+ --path <file> camera: JSON array of {ms,x,y,scale} keyframes, starting at 0 ms
123
125
  --file <path> working file (default: peach-canvas.json)
124
126
  --sim <id> target a specific canvas sim
125
127
 
@@ -469,6 +471,7 @@ function canvasData(canvas: LocalCanvas) {
469
471
  controls: 'embedded',
470
472
  artboardControls: 'none',
471
473
  panPointers: 2,
474
+ moveItems: true,
472
475
  selectedScreenId: canvas.focused ?? undefined,
473
476
  edges: canvas.edges,
474
477
  pins: [],
@@ -570,6 +573,55 @@ function commandCode(command: unknown): string {
570
573
  })()`
571
574
  }
572
575
 
576
+ function cameraPath(file: string): { ms: number; x: number; y: number; scale: number }[] {
577
+ const value: unknown = JSON.parse(readFileSync(file, 'utf8'))
578
+ if (!Array.isArray(value) || value.length < 2)
579
+ throw new Error('camera path needs at least two keyframes')
580
+ const frames: { ms: number; x: number; y: number; scale: number }[] = []
581
+ for (const frame of value) {
582
+ if (
583
+ !isRecord(frame) ||
584
+ typeof frame.ms !== 'number' ||
585
+ !Number.isFinite(frame.ms) ||
586
+ typeof frame.x !== 'number' ||
587
+ !Number.isFinite(frame.x) ||
588
+ typeof frame.y !== 'number' ||
589
+ !Number.isFinite(frame.y) ||
590
+ typeof frame.scale !== 'number' ||
591
+ !Number.isFinite(frame.scale) ||
592
+ frame.scale <= 0 ||
593
+ (frames.length === 0 ? frame.ms !== 0 : frame.ms <= frames[frames.length - 1]!.ms)
594
+ )
595
+ throw new Error(
596
+ 'camera keyframes need increasing ms from 0, finite x,y and positive scale',
597
+ )
598
+ frames.push({ ms: frame.ms, x: frame.x, y: frame.y, scale: frame.scale })
599
+ }
600
+ return frames
601
+ }
602
+
603
+ function cameraPathCode(frames: ReturnType<typeof cameraPath>): string {
604
+ return `(async () => {
605
+ const frames = ${JSON.stringify(frames)}
606
+ const start = performance.now()
607
+ let index = 0
608
+ await new Promise((done) => {
609
+ const step = (now) => {
610
+ const elapsed = now - start
611
+ while (index < frames.length - 2 && elapsed >= frames[index + 1].ms) index++
612
+ const from = frames[index], to = frames[index + 1]
613
+ const t = Math.min(1, Math.max(0, (elapsed - from.ms) / (to.ms - from.ms)))
614
+ const value = { kind: 'camera', x: from.x + (to.x - from.x) * t, y: from.y + (to.y - from.y) * t, scale: from.scale + (to.scale - from.scale) * t }
615
+ window.postMessage({ type: 'contrast-action', action: 'canvas-map-command', value }, '*')
616
+ if (elapsed >= frames[frames.length - 1].ms) done()
617
+ else requestAnimationFrame(step)
618
+ }
619
+ step(start)
620
+ })
621
+ return { ok: true }
622
+ })()`
623
+ }
624
+
573
625
  export async function runCanvas(
574
626
  args: string[],
575
627
  opts: { port?: number; verbose?: boolean },
@@ -603,6 +655,7 @@ async function dispatch(
603
655
  '--radius',
604
656
  '--center',
605
657
  '--scale',
658
+ '--path',
606
659
  '--size',
607
660
  '--map',
608
661
  '--scheme',
@@ -630,6 +683,25 @@ async function dispatch(
630
683
  const file = resolve(flag(args, '--file') ?? 'peach-canvas.json')
631
684
  const canvas = readCanvas(file)
632
685
  if (verb === 'camera') {
686
+ const path = flag(args, '--path')
687
+ if (path) {
688
+ if (flag(args, '--at') || flag(args, '--scale'))
689
+ throw new Error('camera --path cannot be combined with --at or --scale')
690
+ const frames = cameraPath(resolve(path))
691
+ const bridge = createBridgeFromParsed({
692
+ ...parsed,
693
+ commandTimeoutMs: Math.max(
694
+ parsed.commandTimeoutMs,
695
+ frames[frames.length - 1]!.ms + CANVAS_BRIDGE_TIMEOUT_MS,
696
+ ),
697
+ })
698
+ try {
699
+ await evalInBridge(bridge, cameraPathCode(frames))
700
+ } finally {
701
+ bridge.close()
702
+ }
703
+ return 0
704
+ }
633
705
  const at = flag(args, '--at')
634
706
  if (!at) throw new Error('camera takes --at x,y and --scale <n>')
635
707
  const scale = Number(flag(args, '--scale'))
@@ -668,15 +740,7 @@ async function dispatch(
668
740
  animate: false,
669
741
  }
670
742
  } else {
671
- const item = findItem(canvas, target)
672
- const { width, height } = item
673
- command = {
674
- kind: 'view-center',
675
- x: item.x + width / 2,
676
- y: item.y + height / 2,
677
- scale: 1,
678
- animate: false,
679
- }
743
+ command = { kind: 'view-screen', screenId: findItem(canvas, target).id }
680
744
  }
681
745
  const bridge = createBridgeFromParsed(parsed)
682
746
  try {
@@ -690,30 +754,36 @@ async function dispatch(
690
754
  try {
691
755
  const dragged = await evalInBridge(bridge, MOVES_CODE)
692
756
  if (isRecord(dragged) && Array.isArray(dragged.moves)) {
757
+ const groups = canvas.groupBy
758
+ ? new Map(canvasData(canvas).sections.map((section) => [section.id, section]))
759
+ : null
693
760
  for (const move of dragged.moves) {
694
761
  if (!isRecord(move) || move.rev !== canvas.rev) continue
695
762
  if (
696
763
  typeof move.sectionId === 'string' &&
697
764
  typeof move.x === 'number' &&
698
765
  typeof move.y === 'number' &&
699
- canvas.groupBy
766
+ groups
700
767
  ) {
701
- const group = groupCanvasItems(canvas.items, canvas.groupBy).find(
702
- (entry) => `group:${canvas.groupBy}:${entry.key}` === move.sectionId,
703
- )
768
+ const group = groups.get(move.sectionId)
704
769
  if (group) {
705
- const x = Math.min(...group.items.map((item) => item.x)) - 64
706
- const y = Math.min(...group.items.map((item) => item.y)) - 64
707
- for (const item of group.items) {
708
- item.x += move.x - x
709
- item.y += move.y - y
770
+ for (const item of canvas.items) {
771
+ if (!group.members.screenIds.includes(item.id)) continue
772
+ item.x += move.x - group.x
773
+ item.y += move.y - group.y
710
774
  }
775
+ group.x = move.x
776
+ group.y = move.y
711
777
  }
712
778
  continue
713
779
  }
714
- const item = canvas.items.find((entry) => entry.id === move.screenId)
715
- if (item && typeof move.x === 'number' && typeof move.y === 'number')
716
- Object.assign(item, { x: move.x, y: move.y })
780
+ if (!Array.isArray(move.positions)) continue
781
+ for (const position of move.positions) {
782
+ if (!isRecord(position)) continue
783
+ const item = canvas.items.find((entry) => entry.id === position.screenId)
784
+ if (item && typeof position.x === 'number' && typeof position.y === 'number')
785
+ Object.assign(item, { x: position.x, y: position.y })
786
+ }
717
787
  }
718
788
  }
719
789
  } finally {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2390 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2392 | (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.2390 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2392 | (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.2390 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2392 | (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.2390 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2392 | (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.2390 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2392 | (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.2390 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2392 | (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.2390 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2392 | (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.2390 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2392 | (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.2390 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2392 | (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.2390 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2392 | (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.2390 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2392 | (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.2390 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2392 | (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.2390 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2392 | (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":"5f6ae143588b07818af5ab1800ea8f8286d0fabc65af9ea19738716647502e4a","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":"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, ".."));
13304
13304
  }
13305
13305
  });
13306
13306
 
@@ -38931,7 +38931,8 @@ ${output2}`
38931
38931
  "IntentDefinitionCompiled",
38932
38932
  definition2.split(import_node_path47.default.sep).findLast((part) => part.endsWith(".lproj")) ?? ""
38933
38933
  );
38934
- import_node_fs47.default.rmSync(compiled, { recursive: true, force: true });
38934
+ const compiledDefinition = import_node_path47.default.join(compiled, import_node_path47.default.basename(definition2));
38935
+ import_node_fs47.default.rmSync(compiledDefinition, { force: true });
38935
38936
  import_node_fs47.default.mkdirSync(compiled, { recursive: true });
38936
38937
  (0, import_node_child_process28.execFileSync)(
38937
38938
  "xcrun",
@@ -38951,7 +38952,7 @@ ${output2}`
38951
38952
  timeout: runScriptTimeoutMs
38952
38953
  }
38953
38954
  );
38954
- resources.add(import_node_path47.default.join(compiled, import_node_path47.default.basename(definition2)));
38955
+ resources.add(compiledDefinition);
38955
38956
  projectInputs.add(definition2);
38956
38957
  for (const file of walkFiles(output2)) {
38957
38958
  allSources.add(file);
@@ -49701,17 +49702,23 @@ var init_swift_shipped_archives = __esm({
49701
49702
  });
49702
49703
 
49703
49704
  // src/swift-shipped-binaries.ts
49705
+ function shippedBinaryModule(target, checksum) {
49706
+ if (checksum === null) return void 0;
49707
+ const namedArchive = SHIPPED_ARCHIVES.get(target);
49708
+ return namedArchive === void 0 ? SHIPPED_MODULES.get(checksum) : namedArchive === checksum ? target : void 0;
49709
+ }
49704
49710
  function shippedBinaryDiffers(target, checksum) {
49705
- const shipped = SHIPPED_ARCHIVES.get(target);
49706
- return checksum !== null && (shipped !== void 0 ? checksum !== shipped : !SHIPPED_CHECKSUMS.has(checksum));
49711
+ return checksum !== null && shippedBinaryModule(target, checksum) === void 0;
49707
49712
  }
49708
- var SHIPPED_ARCHIVES, SHIPPED_CHECKSUMS;
49713
+ var SHIPPED_ARCHIVES, SHIPPED_MODULES;
49709
49714
  var init_swift_shipped_binaries = __esm({
49710
49715
  "src/swift-shipped-binaries.ts"() {
49711
49716
  "use strict";
49712
49717
  init_swift_shipped_archives();
49713
49718
  SHIPPED_ARCHIVES = new Map(Object.entries(swift_shipped_archives_default));
49714
- SHIPPED_CHECKSUMS = new Set(SHIPPED_ARCHIVES.values());
49719
+ SHIPPED_MODULES = new Map(
49720
+ [...SHIPPED_ARCHIVES].map(([module2, checksum]) => [checksum, module2])
49721
+ );
49715
49722
  }
49716
49723
  });
49717
49724
 
@@ -50516,7 +50523,7 @@ var init_swift_standin_digest = __esm({
50516
50523
  STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
50517
50524
  SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
50518
50525
  standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
50519
- STANDIN_SOURCE_DIGEST = true ? "4a21735d60d5c3e629b478af2bb3e725e89a01e8291b31fcc4e4f3174d7c9b4f" : standinSourceDigest();
50526
+ STANDIN_SOURCE_DIGEST = true ? "d3634d39daaca9d92cbb73d545026970866d7467c4b2204d29159968b18764f6" : standinSourceDigest();
50520
50527
  }
50521
50528
  });
50522
50529
 
@@ -53609,15 +53616,27 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
53609
53616
  }
53610
53617
  return settle(result);
53611
53618
  }
53612
- function standinModuleSources(binaries, candidates) {
53613
- const byModule = new Map(
53614
- candidates.map((candidate) => [swiftTargetModuleName(candidate.target), candidate])
53615
- );
53619
+ function standinDependencies(binaries, packages, provided) {
53620
+ const byModule = /* @__PURE__ */ new Map();
53621
+ for (const candidate of packages.binaries) {
53622
+ if (candidate.reached) continue;
53623
+ const module2 = shippedBinaryModule(candidate.target, candidate.checksum);
53624
+ if (module2 !== void 0 && provided.has(module2)) byModule.set(module2, candidate);
53625
+ }
53626
+ for (const candidate of packages.moduleSources)
53627
+ byModule.set(swiftTargetModuleName(candidate.target), candidate);
53616
53628
  const shipped = /* @__PURE__ */ new Set();
53617
53629
  const pending = [];
53618
53630
  const read = (dir, sources) => sources.flatMap(
53619
53631
  (source) => swiftImportNames(import_node_fs81.default.readFileSync(import_node_path81.default.join(dir, source), "utf8"))
53620
53632
  );
53633
+ const binarySurfaces = (binary2) => {
53634
+ try {
53635
+ return surfaces(swiftBinaryFramework(binary2).dir, binary2.target);
53636
+ } catch {
53637
+ return [];
53638
+ }
53639
+ };
53621
53640
  for (const binary2 of binaries) {
53622
53641
  if (binary2.placeholder !== void 0) {
53623
53642
  shipped.add(swiftTargetModuleName(binary2.target));
@@ -53625,13 +53644,7 @@ function standinModuleSources(binaries, candidates) {
53625
53644
  continue;
53626
53645
  }
53627
53646
  if (binary2.publicHeaders !== void 0) continue;
53628
- let found;
53629
- try {
53630
- found = surfaces(swiftBinaryFramework(binary2).dir, binary2.target);
53631
- } catch {
53632
- continue;
53633
- }
53634
- for (const surface of found) {
53647
+ for (const surface of binarySurfaces(binary2)) {
53635
53648
  shipped.add(surface.module);
53636
53649
  pending.push(...surfaceImports(surface));
53637
53650
  }
@@ -53641,7 +53654,9 @@ function standinModuleSources(binaries, candidates) {
53641
53654
  const candidate = byModule.get(module2);
53642
53655
  if (!candidate || shipped.has(module2) || selected.has(module2)) continue;
53643
53656
  selected.set(module2, candidate);
53644
- pending.push(...read(candidate.dir, candidate.moduleSources?.sources ?? []));
53657
+ pending.push(
53658
+ ...candidate.moduleSources ? read(candidate.dir, candidate.moduleSources.sources) : binarySurfaces(candidate).flatMap(surfaceImports)
53659
+ );
53645
53660
  }
53646
53661
  return [...selected.values()];
53647
53662
  }
@@ -53681,12 +53696,12 @@ function gapText(gap) {
53681
53696
  return text6.length > 600 ? `${text6.slice(0, 600)}\u2026` : text6;
53682
53697
  }
53683
53698
  async function buildStandins(binaries, toolchain, provided, behavior) {
53684
- const requested = binaries.filter(
53685
- (binary2) => !provided.has(binary2.target) || shippedBinaryDiffers(binary2.target, binary2.checksum)
53686
- );
53687
- if (requested.length === 0) return { standins: [], gaps: /* @__PURE__ */ new Map() };
53699
+ if (binaries.every(
53700
+ (binary2) => provided.has(binary2.target) && !shippedBinaryDiffers(binary2.target, binary2.checksum)
53701
+ ))
53702
+ return { standins: [], gaps: /* @__PURE__ */ new Map() };
53688
53703
  if (process.platform === "darwin" && process.env.TM_EXEC_BUILD_PLATFORM !== "mac" && process.env.TM_SESSION && process.env.CI !== "true" && toolchain.moduleRoot === sourceSwiftCheckout() && !swiftDistributionAt(toolchain.moduleRoot))
53689
- return sourceStandins(requested, toolchain, provided, behavior);
53704
+ return sourceStandins(binaries, toolchain, provided, behavior);
53690
53705
  const standins = [];
53691
53706
  const gaps = /* @__PURE__ */ new Map();
53692
53707
  import_node_fs81.default.mkdirSync(cacheDir4, { recursive: true });
@@ -55927,6 +55942,7 @@ async function swiftPackages(entry, app) {
55927
55942
  const standinArtifact = (binary2) => binary2.publicHeaders === void 0 || binary2.unloweredSources !== void 0;
55928
55943
  const artifacts = reached.filter(standinArtifact);
55929
55944
  if (entry.moduleRoot && entry.provided && artifacts.length > 0) {
55945
+ const { provided } = entry;
55930
55946
  const resolved = swiftModuleToolchain(entry.moduleRoot);
55931
55947
  const toolchain = {
55932
55948
  moduleRoot: entry.moduleRoot,
@@ -55950,7 +55966,7 @@ async function swiftPackages(entry, app) {
55950
55966
  );
55951
55967
  const standinInputs = [
55952
55968
  ...cxxArtifacts,
55953
- ...standinModuleSources(cxxArtifacts, cached2.packages.moduleSources)
55969
+ ...standinDependencies(cxxArtifacts, cached2.packages, provided)
55954
55970
  ];
55955
55971
  const generation = standinGenerationInputs(standinInputs, toolchain, entry.behavior);
55956
55972
  if (cached2.standinKey !== generation) {
@@ -55960,7 +55976,7 @@ async function swiftPackages(entry, app) {
55960
55976
  const built2 = await swiftStandins(
55961
55977
  standinInputs,
55962
55978
  toolchain,
55963
- new Set([...entry.provided].filter((name3) => !replaced.has(name3))),
55979
+ new Set([...provided].filter((name3) => !replaced.has(name3))),
55964
55980
  entry.behavior
55965
55981
  );
55966
55982
  cached2.packages = await resolveSwiftPackagesAsync({
@@ -55971,7 +55987,7 @@ async function swiftPackages(entry, app) {
55971
55987
  // an artifact with neither a stand-in nor a gap ships only modules
55972
55988
  // peach provides, so a wrapper target that groups it still compiles
55973
55989
  provided: /* @__PURE__ */ new Set([
55974
- ...entry.provided,
55990
+ ...provided,
55975
55991
  ...cxxArtifacts.map((binary2) => binary2.target).filter((target) => !built2.gaps.has(target))
55976
55992
  ]),
55977
55993
  standinTargets: new Set(
@@ -64843,7 +64859,7 @@ var init_nitro_superset = __esm({
64843
64859
  init_nitroContract();
64844
64860
  init_swift_standin_digest();
64845
64861
  NITRO_SUPERSET_ENTRY_NAME = "superset";
64846
- NITRO_COMPILER_DIGEST = true ? "3850bd0ed6a53b6884a892f2931f95bce16c9ebfde267321be9b146a2e7b88e2" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
64862
+ NITRO_COMPILER_DIGEST = true ? "414025291e65d05d709c42a761fad73cc8cde67ac890990e17b1c20c53fe5fa3" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
64847
64863
  nitroSupersetLock = parseLock(nitro_superset_lock_default);
64848
64864
  nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
64849
64865
  published = /* @__PURE__ */ new Map();
@@ -66082,7 +66098,7 @@ var init_expo_native_compiler_digest = __esm({
66082
66098
 
66083
66099
  // src/expo-native-prebuilt.ts
66084
66100
  function expoNativeCompilerDigestValue() {
66085
- return true ? "c0a9caa08d93ceace645e91aa241a482f2e38e14d7423cee7a2d4d92a65d1793" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
66101
+ return true ? "3022ef80adeb28e25608cc6c658c6c03913af6b9402344105bb26fc421feb609" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
66086
66102
  }
66087
66103
  function readSources(value) {
66088
66104
  const sources = isRecord(value) ? value.sources : null;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2390 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2392 | (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.2390 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2392 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/capture-contract.ts
4
4
  var RNX_SCREEN_CAPTURE_VERSION = 1;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2390 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2392 | (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.2390 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2392 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/cloud-contract.ts
4
4
  var RNX_CLOUD_MAX_ARTIFACT_BYTES = 40761776;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2390 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2392 | (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.2390 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2392 | (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
- /*! peach v0.1.2390 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2392 | (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.2390 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2392 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  var __defProp = Object.defineProperty;
3
3
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
4
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2390 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2392 | (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.2390 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2392 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // ../contrast-runtime-delivery/src/version.ts
4
4
  function isValidRuntimeVersion(value) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2390 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2392 | (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.2390 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2392 | (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;