peachsim 0.1.1848 → 0.1.1850

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 (86) hide show
  1. package/dist-lib/agent-daemon-client.cjs +1 -1
  2. package/dist-lib/agent-events.cjs +1 -1
  3. package/dist-lib/attached-projects.cjs +1 -1
  4. package/dist-lib/auth/shared-session.cjs +1 -1
  5. package/dist-lib/backend-origin.cjs +1 -1
  6. package/dist-lib/beta.cjs +1 -1
  7. package/dist-lib/beta.mjs +1 -1
  8. package/dist-lib/bridge-constants.cjs +1 -1
  9. package/dist-lib/bridge-contract-input.cjs +1 -1
  10. package/dist-lib/bridge-contract-input.mjs +1 -1
  11. package/dist-lib/bridge-contract.cjs +1 -1
  12. package/dist-lib/bridge-contract.mjs +1 -1
  13. package/dist-lib/bundle-channel.cjs +45 -23
  14. package/dist-lib/capture-contract.cjs +1 -1
  15. package/dist-lib/capture-contract.mjs +1 -1
  16. package/dist-lib/cloud-contract.cjs +1 -1
  17. package/dist-lib/cloud-contract.mjs +1 -1
  18. package/dist-lib/cloud-test-args.cjs +1 -1
  19. package/dist-lib/cloud-test-args.mjs +1 -1
  20. package/dist-lib/cloud.cjs +1 -1
  21. package/dist-lib/cloud.mjs +1 -1
  22. package/dist-lib/config.cjs +1 -1
  23. package/dist-lib/config.mjs +1 -1
  24. package/dist-lib/detox/index.cjs +1 -1
  25. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  26. package/dist-lib/expo-swift-bundle.cjs +39 -17
  27. package/dist-lib/expo-swift-metadata.cjs +1 -1
  28. package/dist-lib/expo-swift-metadata.mjs +1 -1
  29. package/dist-lib/home-paths.cjs +1 -1
  30. package/dist-lib/host/bridge-host.cjs +44 -22
  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 +2 -2
  37. package/dist-lib/jump-to-source-babel.cjs +1 -1
  38. package/dist-lib/jump-to-source-native.cjs +1 -1
  39. package/dist-lib/kotlin-host.cjs +1 -1
  40. package/dist-lib/menu.cjs +1 -1
  41. package/dist-lib/menu.mjs +1 -1
  42. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  43. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  44. package/dist-lib/metro-production-bundle.cjs +1 -1
  45. package/dist-lib/metro-production-bundle.mjs +1 -1
  46. package/dist-lib/metro.cjs +2 -2
  47. package/dist-lib/native-app-identity-project.cjs +2 -2
  48. package/dist-lib/native-app-identity-project.mjs +2 -2
  49. package/dist-lib/native-app-identity.cjs +1 -1
  50. package/dist-lib/native-app-identity.mjs +1 -1
  51. package/dist-lib/native-firebase-metadata.cjs +1 -1
  52. package/dist-lib/native-firebase-metadata.mjs +1 -1
  53. package/dist-lib/pdfium-raster.cjs +1 -1
  54. package/dist-lib/pdfium-raster.mjs +1 -1
  55. package/dist-lib/plist.cjs +1 -1
  56. package/dist-lib/plist.mjs +1 -1
  57. package/dist-lib/profiles.cjs +1 -1
  58. package/dist-lib/public-brand.cjs +1 -1
  59. package/dist-lib/public-origins-lib-esm.json +24 -24
  60. package/dist-lib/public-origins-lib.json +53 -53
  61. package/dist-lib/react-native-host-modules.cjs +1 -1
  62. package/dist-lib/react-native-host-modules.mjs +1 -1
  63. package/dist-lib/reap-browser.cjs +1 -1
  64. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  65. package/dist-lib/sdk.cjs +1 -1
  66. package/dist-lib/sdk.mjs +1 -1
  67. package/dist-lib/skills.cjs +45 -23
  68. package/dist-lib/swift-compile.cjs +14 -2
  69. package/dist-lib/swift-compile.mjs +14 -2
  70. package/dist-lib/swift-package.cjs +1 -1
  71. package/dist-lib/swift-package.mjs +1 -1
  72. package/dist-lib/swift-submit.cjs +1 -1
  73. package/dist-lib/swift-submit.mjs +1 -1
  74. package/dist-lib/swift-toolchain.cjs +1 -1
  75. package/dist-lib/swift.cjs +1 -1
  76. package/dist-lib/vite-swift.cjs +39 -17
  77. package/dist-lib/vite.cjs +1 -1
  78. package/dist-lib/worklet-executable.cjs +1 -1
  79. package/dist-lib/worklet-executable.mjs +1 -1
  80. package/package.json +1 -1
  81. package/src/nitro-adapter.lock.json +273 -273
  82. package/src/nitro-superset.lock.json +4 -4
  83. package/src/swift-compile.ts +14 -0
  84. package/src/swift-distribution.lock.json +11 -11
  85. package/src/swift-standins.ts +36 -19
  86. package/src/turbo-runtime.lock.json +21 -21
@@ -2576,17 +2576,35 @@ async function binaryStandins(
2576
2576
  hash.update(fs.readFileSync(file))
2577
2577
  }
2578
2578
  const id = hash.digest('hex').slice(0, 32)
2579
+ const settle = (value: SwiftStandin[] | string) => {
2580
+ if (
2581
+ typeof value === 'string' &&
2582
+ found.some((surface) => configured.has(surface.module))
2583
+ )
2584
+ throw new Error(
2585
+ `Configured native framework ${binary.target} could not be generated: ${value}`,
2586
+ )
2587
+ return value
2588
+ }
2579
2589
  const memo = built.get(id)
2580
2590
  if (memo) {
2581
2591
  fs.rmSync(work, { recursive: true, force: true })
2582
- return memo
2592
+ return settle(memo)
2583
2593
  }
2584
2594
  const cached = path.join(cacheDir, 'standins', `${id}.json`)
2585
2595
  if (fs.existsSync(cached)) {
2586
- const value: SwiftStandin[] = JSON.parse(fs.readFileSync(cached, 'utf8'))
2596
+ const value: SwiftStandin[] | string = JSON.parse(fs.readFileSync(cached, 'utf8'))
2587
2597
  built.set(id, value)
2588
2598
  fs.rmSync(work, { recursive: true, force: true })
2589
- return value
2599
+ return settle(value)
2600
+ }
2601
+ // publish a complete entry so concurrent workspaces never read partial json.
2602
+ const publish = (value: SwiftStandin[] | string) => {
2603
+ fs.mkdirSync(path.dirname(cached), { recursive: true })
2604
+ const pending = `${cached}.${process.pid}.tmp`
2605
+ fs.writeFileSync(pending, JSON.stringify(value))
2606
+ fs.renameSync(pending, cached)
2607
+ built.set(id, value)
2590
2608
  }
2591
2609
  let result: SwiftStandin[] | string
2592
2610
  try {
@@ -2642,30 +2660,29 @@ async function binaryStandins(
2642
2660
  } catch (error) {
2643
2661
  throw new Error(
2644
2662
  `no stand-in for ${surface.module}: ${error instanceof Error && !('stderr' in error) ? error.message : failure(error)}`,
2663
+ { cause: error },
2645
2664
  )
2646
2665
  }
2647
2666
  }
2648
- if (typeof result === 'string') throw new Error(result)
2649
- fs.mkdirSync(path.dirname(cached), { recursive: true })
2650
- // publish a complete entry so concurrent workspaces never read partial json.
2651
- const pending = `${cached}.${process.pid}.tmp`
2652
- fs.writeFileSync(pending, JSON.stringify(result))
2653
- fs.renameSync(pending, cached)
2654
- built.set(id, result)
2667
+ publish(result)
2655
2668
  } catch (error) {
2656
- // a failure is not cached: a fixed peach module or interface retries it
2657
2669
  result = error instanceof Error ? error.message : String(error)
2670
+ // the id covers the framework, peach's modules and sdk and this generator,
2671
+ // so a failed generation holds until one of them changes, as a built one
2672
+ // does. a failure of the host itself (a missing tool, a full disk, a
2673
+ // killed compiler) retries.
2674
+ let cause: unknown = error
2675
+ while (
2676
+ cause instanceof Error &&
2677
+ !('code' in cause && typeof cause.code === 'string') &&
2678
+ !('signal' in cause && typeof cause.signal === 'string')
2679
+ )
2680
+ cause = cause.cause
2681
+ if (!(cause instanceof Error)) publish(result)
2658
2682
  } finally {
2659
2683
  fs.rmSync(work, { recursive: true, force: true })
2660
2684
  }
2661
- if (
2662
- typeof result === 'string' &&
2663
- found.some((surface) => configured.has(surface.module))
2664
- )
2665
- throw new Error(
2666
- `Configured native framework ${binary.target} could not be generated: ${result}`,
2667
- )
2668
- return result
2685
+ return settle(result)
2669
2686
  }
2670
2687
 
2671
2688
  /**
@@ -8,11 +8,11 @@
8
8
  },
9
9
  "compiler": "swift-6.4.0-RELEASE-custom-a560ff35bf882b5c",
10
10
  "sdk": {
11
- "id": "swift-6.4.0-RELEASE_wasm-peach-c9c3c3c7",
12
- "checksum": "7101048f346f7e807f728dd4aa768080efe57fbef79499e160c75da6dc719a02"
11
+ "id": "swift-6.4.0-RELEASE_wasm-peach-e210d44b",
12
+ "checksum": "02a87a688b4644f23c470433356f23ce90a3e6c95507a787a11d2cd671152c0c"
13
13
  },
14
14
  "framework": {
15
- "distribution": "b4feca21090b970d",
15
+ "distribution": "91533c6a2b6f2eda",
16
16
  "wireAbi": "246b8412514b644113e6a26252c8ebd6de49ab4156ac5f5c98bb9e4c2ff2568b"
17
17
  },
18
18
  "archives": [
@@ -20,71 +20,71 @@
20
20
  "headers": {
21
21
  "reactNativeJsi": "0f8c2defbca69a27a848a81ae72363073bf9602fd316e57a75811be1a0528358"
22
22
  },
23
- "sha256": "c077daa2aba43572feec410142ff6fc5fb5875757c756887bae8f6aee3a6423e",
24
- "size": 25407
23
+ "sha256": "3fa076afff29dbb9b10875c8417fc74b7c9c8cbbf44e4055b6c7d3946e73927e",
24
+ "size": 25399
25
25
  },
26
26
  {
27
27
  "headers": {
28
28
  "reactNativeJsi": "21a624ea24fd17d56bf26832d496fc1177067f89640414c20e6486c7984dfb0a"
29
29
  },
30
- "sha256": "d217365a7f26f898a3e930a67c5092865cadab46269af162f05b078b00d21e1f",
30
+ "sha256": "1ef8ff0b6ce0b5cd93962524d261b1a17cb380834fb03295345cdc5a78a13b6f",
31
31
  "size": 26144
32
32
  },
33
33
  {
34
34
  "headers": {
35
35
  "reactNativeJsi": "324aefd8591d9ce688bce7589c4c2b516cd33ecb95d35c47239a87a8fcf6a8da"
36
36
  },
37
- "sha256": "cd636902f68f21b9582cffc1409e1db67d16a170392e0fd1d73ecefbde894822",
38
- "size": 25399
37
+ "sha256": "02168b73deb4665e3cdfe91349cedb6cf8e835bb1bb27d023e76f559efde50f5",
38
+ "size": 25395
39
39
  },
40
40
  {
41
41
  "headers": {
42
42
  "reactNativeJsi": "33596664ee7d7a6623f0796a6feb429543316c3a41b211150acda6e1d835286c"
43
43
  },
44
- "sha256": "09cd955dda835226f4e8691916238397fd420b984efd5bca4fc594c4e8f50c40",
45
- "size": 25166
44
+ "sha256": "56034fbe349b9b12894bee5e57488b0dfe85885de7fb0cd77ee823f3915177f1",
45
+ "size": 25168
46
46
  },
47
47
  {
48
48
  "headers": {
49
49
  "reactNativeJsi": "66b2cd5a38511195207f6c8a76aba735f9b9cc66a52a0d00780ffe5d331623f7"
50
50
  },
51
- "sha256": "f3f5b98e1e1928466785f2efdaabeb52fdc7d52c3bf12c9aace686c1152840f6",
52
- "size": 25401
51
+ "sha256": "42a0921da64a363352288d05bc6601283e5154a07c756ab1fa00b62b03ebaaee",
52
+ "size": 25398
53
53
  },
54
54
  {
55
55
  "headers": {
56
56
  "reactNativeJsi": "96db4e758dd53e9320cef7cad485e00aa06e7a982cefd920f17007de8a5bd9f9"
57
57
  },
58
- "sha256": "af10723cd8543bb66455a0d4ce14eb6ef3abd12b09ea3d2fe5da1afde20b91ff",
59
- "size": 26144
58
+ "sha256": "97cf9fab3826e8e8c5080619ac7af3d246d011a1929ba033bc349dc81f420ee0",
59
+ "size": 26142
60
60
  },
61
61
  {
62
62
  "headers": {
63
63
  "reactNativeJsi": "aeab590ddd1218df963462242d3954ce467b0fa88f70e91429e4ffc74d230893"
64
64
  },
65
- "sha256": "f03dfced898e0ef4813ac5717c11e78a50af9510f4d8d95b7b5d9a65051d7076",
65
+ "sha256": "efacd65e2e51f3204fe7a29e101f0d33cf99f2f171ef8d570371e0d693867b23",
66
66
  "size": 26143
67
67
  },
68
68
  {
69
69
  "headers": {
70
70
  "reactNativeJsi": "b5fb260522384dd7ab07d740cdc534b529922446fcec798341c7817d9eaa49f4"
71
71
  },
72
- "sha256": "19100230080e6101ce5b7221c80e6e3a40cfb5118546db94a4943e33ece498fc",
73
- "size": 25269
72
+ "sha256": "41e27ad494407880b3f1b49518de6efd1c8342494c0a37543d8480c91e9bbc29",
73
+ "size": 25271
74
74
  },
75
75
  {
76
76
  "headers": {
77
77
  "reactNativeJsi": "c6b391a1e870ccf7cdd534be63582862840f8245b99ebd253317deece1e6ffd5"
78
78
  },
79
- "sha256": "3b2d073fd575cc76d6c4871f7a44a0734536a1a4c6c1b98bbf798e867ff1d065",
80
- "size": 26147
79
+ "sha256": "7ec954c4a642fae73373529a96a42d3199a1d7c6a8adb65f3b57662128188277",
80
+ "size": 26145
81
81
  },
82
82
  {
83
83
  "headers": {
84
84
  "reactNativeJsi": "c8270f1315745ecc204c4209a4f50f58ff6f14b4a385ad6820a69800270b53c6"
85
85
  },
86
- "sha256": "e65b49dae6fcfc710f1cb4f1f9a644ba58828339d1f5b16c9f1992af5d0ee96c",
87
- "size": 25108
86
+ "sha256": "01fad23458a9caee61139f241a64f946a3640e7d8baec9d506de89b43949c550",
87
+ "size": 25109
88
88
  }
89
89
  ]
90
90
  }