peachsim 0.1.2255 → 0.1.2258

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 (122) hide show
  1. package/cli/bridge-flow-runner.ts +41 -0
  2. package/cli/commands/control.ts +8 -2
  3. package/cli/commands/flow.ts +9 -0
  4. package/cli/commands/swift.ts +5 -0
  5. package/cli/current-sim.ts +23 -15
  6. package/cli/outbound-endpoints.ts +0 -2
  7. package/cli/secure-file.ts +8 -2
  8. package/dist-lib/agent-daemon-client.cjs +1 -1
  9. package/dist-lib/agent-events.cjs +1 -1
  10. package/dist-lib/attached-projects.cjs +1 -1
  11. package/dist-lib/auth/shared-session.cjs +1 -1
  12. package/dist-lib/backend-origin.cjs +1 -1
  13. package/dist-lib/beta.cjs +1 -1
  14. package/dist-lib/beta.mjs +1 -1
  15. package/dist-lib/bridge-constants.cjs +1 -1
  16. package/dist-lib/bridge-contract-input.cjs +1 -1
  17. package/dist-lib/bridge-contract-input.mjs +1 -1
  18. package/dist-lib/bridge-contract.cjs +1 -1
  19. package/dist-lib/bridge-contract.mjs +1 -1
  20. package/dist-lib/bundle-channel.cjs +418 -143
  21. package/dist-lib/capture-contract.cjs +1 -1
  22. package/dist-lib/capture-contract.mjs +1 -1
  23. package/dist-lib/cloud-contract.cjs +1 -1
  24. package/dist-lib/cloud-contract.mjs +1 -1
  25. package/dist-lib/cloud-test-args.cjs +1 -1
  26. package/dist-lib/cloud-test-args.mjs +1 -1
  27. package/dist-lib/cloud.cjs +1 -1
  28. package/dist-lib/cloud.mjs +1 -1
  29. package/dist-lib/config.cjs +1 -1
  30. package/dist-lib/config.mjs +1 -1
  31. package/dist-lib/detox/index.cjs +16 -12
  32. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  33. package/dist-lib/expo-swift-bundle.cjs +359 -116
  34. package/dist-lib/expo-swift-metadata.cjs +1 -1
  35. package/dist-lib/expo-swift-metadata.mjs +1 -1
  36. package/dist-lib/home-paths.cjs +1 -1
  37. package/dist-lib/host/bridge-host.cjs +939 -595
  38. package/dist-lib/host/fetch-proxy-handler.cjs +3607 -1627
  39. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  40. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  41. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  42. package/dist-lib/host/websocket-proxy.cjs +1 -1
  43. package/dist-lib/index.cjs +12611 -11232
  44. package/dist-lib/jump-to-source-babel.cjs +1 -1
  45. package/dist-lib/jump-to-source-native.cjs +1 -1
  46. package/dist-lib/kotlin-host.cjs +5 -4
  47. package/dist-lib/menu.cjs +1 -1
  48. package/dist-lib/menu.mjs +1 -1
  49. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  50. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  51. package/dist-lib/metro-production-bundle.cjs +1 -1
  52. package/dist-lib/metro-production-bundle.mjs +1 -1
  53. package/dist-lib/metro.cjs +9700 -8326
  54. package/dist-lib/native-app-identity-project.cjs +2 -2
  55. package/dist-lib/native-app-identity-project.mjs +2 -2
  56. package/dist-lib/native-app-identity.cjs +1 -1
  57. package/dist-lib/native-app-identity.mjs +1 -1
  58. package/dist-lib/native-firebase-metadata.cjs +1 -1
  59. package/dist-lib/native-firebase-metadata.mjs +1 -1
  60. package/dist-lib/pdfium-raster.cjs +1 -1
  61. package/dist-lib/pdfium-raster.mjs +1 -1
  62. package/dist-lib/plist.cjs +1 -1
  63. package/dist-lib/plist.mjs +1 -1
  64. package/dist-lib/profiles.cjs +1 -1
  65. package/dist-lib/public-brand.cjs +1 -1
  66. package/dist-lib/public-origins-lib-esm.json +24 -24
  67. package/dist-lib/public-origins-lib.json +606 -228
  68. package/dist-lib/react-native-host-modules.cjs +1 -1
  69. package/dist-lib/react-native-host-modules.mjs +1 -1
  70. package/dist-lib/reap-browser.cjs +1 -1
  71. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  72. package/dist-lib/sdk.cjs +1 -1
  73. package/dist-lib/sdk.mjs +1 -1
  74. package/dist-lib/skills.cjs +1192 -797
  75. package/dist-lib/swift-compile.cjs +334 -99
  76. package/dist-lib/swift-compile.mjs +334 -99
  77. package/dist-lib/swift-package.cjs +1 -1
  78. package/dist-lib/swift-package.mjs +1 -1
  79. package/dist-lib/swift-submit.cjs +1 -1
  80. package/dist-lib/swift-submit.mjs +1 -1
  81. package/dist-lib/swift-toolchain.cjs +1 -1
  82. package/dist-lib/swift.cjs +1 -1
  83. package/dist-lib/vite-swift.cjs +340 -101
  84. package/dist-lib/vite.cjs +4729 -2900
  85. package/dist-lib/worklet-executable.cjs +1 -1
  86. package/dist-lib/worklet-executable.mjs +1 -1
  87. package/dist-types/packages/peach-engine/src/engine/node.d.ts +0 -6
  88. package/dist-types/packages/peach-engine/src/render-worker/reanimated-readiness.d.ts +1 -0
  89. package/dist-types/packages/peach-globals/src/appLifecycleBridgeContract.d.ts +1 -0
  90. package/dist-types/packages/peach-globals/src/index.d.ts +1 -0
  91. package/dist-types/packages/peach-globals/src/lockstepCaptureBridgeContract.d.ts +1 -0
  92. package/dist-types/packages/peach-kit/src/transitions/screen-transition-math.d.ts +6 -0
  93. package/java-platform/licenses/android.txt +183 -0
  94. package/java-platform/licenses/arm-optimized-routines.txt +256 -0
  95. package/java-platform/licenses/fdlibm.txt +72 -0
  96. package/java-platform/licenses/icu.txt +50 -0
  97. package/java-platform/licenses/openjdk.txt +395 -0
  98. package/java-platform/licenses/teavm.txt +182 -0
  99. package/java-platform/licenses/threeten-backport.txt +29 -0
  100. package/kotlin/README.md +1 -1
  101. package/kotlin/sdk.tar.gz +0 -0
  102. package/package.json +2 -1
  103. package/runtime-companion.json +1 -1
  104. package/src/expo-autolinking.ts +47 -4
  105. package/src/expo-native-workspace.ts +4 -1
  106. package/src/expo-pod-prebuilt.ts +96 -9
  107. package/src/expo-swift-host.ts +29 -9
  108. package/src/kotlin-host.ts +3 -2
  109. package/src/kotlinSdkContract.ts +1 -0
  110. package/src/native-package-slice-build.ts +386 -0
  111. package/src/native-package-slice.ts +835 -0
  112. package/src/native-prebuilt.ts +4 -0
  113. package/src/native-seam-manifest.ts +0 -8
  114. package/src/nitro-adapter.lock.json +255 -255
  115. package/src/nitro-compile.ts +37 -13
  116. package/src/nitro-superset.lock.json +4 -4
  117. package/src/swift-distribution.lock.json +11 -11
  118. package/src/swift-distribution.ts +7 -2
  119. package/src/swift-link-roots.ts +23 -22
  120. package/src/swift-wasm-prune.ts +436 -105
  121. package/src/turbo-compile.ts +22 -7
  122. package/src/turbo-runtime.lock.json +23 -23
@@ -204,7 +204,7 @@ export function collectTurboCompileInput(
204
204
  }
205
205
  }
206
206
 
207
- export async function compileTurboModule(options: {
207
+ export interface CompileTurboModuleOptions {
208
208
  appRoot: string
209
209
  reactNativeRoot: string
210
210
  providers: TurboProvider[]
@@ -217,7 +217,16 @@ export async function compileTurboModule(options: {
217
217
  ) => Promise<void>
218
218
  /** the installed workspace's pods; without them the podspecs' literal source membership applies. */
219
219
  installedPods?: ReadonlyMap<string, TurboInstalledPod>
220
- }): Promise<{ artifact: SwiftArtifact; collection: TurboSourceCollection }> {
220
+ }
221
+
222
+ /** prepares the SwiftPM package input and source collection for TurboModule compilation. */
223
+ export async function prepareTurboCompileInput(
224
+ options: CompileTurboModuleOptions & { iosDeploymentTargetFallback?: string },
225
+ ): Promise<{
226
+ input: SwiftCompileInput
227
+ collection: TurboSourceCollection
228
+ scratch: string
229
+ }> {
221
230
  await prepareTurboSourceDependencies(options.reactNativeRoot)
222
231
  const key = createHash('sha256')
223
232
  .update(options.providers.map(({ root }) => fs.realpathSync(root)).join('\0'))
@@ -405,11 +414,10 @@ export async function compileTurboModule(options: {
405
414
  (await installedWorkspaceInput(root, 'main.swift', options.moduleRoot)).input,
406
415
  )
407
416
  }
408
- // the compiled sources target the app's own declared iOS minimum
409
- const iosDeploymentTarget = readIosAppTarget(
410
- options.projectRoot,
411
- options.iosTarget,
412
- )?.iosDeploymentTarget
417
+ // the compiled sources target the app's own declared iOS minimum, or fallback when building standalone slices
418
+ const iosDeploymentTarget =
419
+ readIosAppTarget(options.projectRoot, options.iosTarget)?.iosDeploymentTarget ??
420
+ options.iosDeploymentTargetFallback
413
421
  if (!iosDeploymentTarget)
414
422
  throw new Error(
415
423
  `TurboModule compilation needs the app's Xcode project to declare an iOS deployment target: ${options.projectRoot}`,
@@ -436,6 +444,13 @@ export async function compileTurboModule(options: {
436
444
  iosDeploymentTarget,
437
445
  dependencies,
438
446
  )
447
+ return { input, collection, scratch }
448
+ }
449
+
450
+ export async function compileTurboModule(
451
+ options: CompileTurboModuleOptions,
452
+ ): Promise<{ artifact: SwiftArtifact; collection: TurboSourceCollection }> {
453
+ const { input, collection, scratch } = await prepareTurboCompileInput(options)
439
454
  const packagePath = path.join(scratch, 'package')
440
455
  syncSwiftTree(
441
456
  packagePath,
@@ -8,11 +8,11 @@
8
8
  },
9
9
  "compiler": "swift-6.4.0-RELEASE-custom-fb42d2535739dfd2",
10
10
  "sdk": {
11
- "id": "swift-6.4.0-RELEASE_wasm-peach-4dcccce1",
12
- "checksum": "a1139bae6549a600a3fbc3c8d6032f5a6b4c3392a64f5d1ece867a6ac11ce92b"
11
+ "id": "swift-6.4.0-RELEASE_wasm-peach-6ff7e819",
12
+ "checksum": "ac7bf36166760fd4074f430847dcf1d12bdb6727c061919ee1425dbb9fb7f128"
13
13
  },
14
14
  "framework": {
15
- "distribution": "fab4e40b5d51a4ba",
15
+ "distribution": "0c0e33b4b191ff3a",
16
16
  "wireAbi": "38eed69f6b7391584112981b7892914e7033d7e0c17c2e8d4a4448030618bd2b"
17
17
  },
18
18
  "archives": [
@@ -20,71 +20,71 @@
20
20
  "headers": {
21
21
  "reactNativeJsi": "0f8c2defbca69a27a848a81ae72363073bf9602fd316e57a75811be1a0528358"
22
22
  },
23
- "sha256": "db2fc1e28dab37c75aebd1e806c75f96c8a4b09dd3da246499280d93c6ac22f3",
24
- "size": 26175
23
+ "sha256": "5342f72977d90aea9aba94e9eaa47c384ef574784902c746844011412da629ea",
24
+ "size": 26177
25
25
  },
26
26
  {
27
27
  "headers": {
28
28
  "reactNativeJsi": "21a624ea24fd17d56bf26832d496fc1177067f89640414c20e6486c7984dfb0a"
29
29
  },
30
- "sha256": "cb39ce60008d8b1ee55b85d3765739cd6f2dd8c3088cae9954935405c32b29c0",
31
- "size": 26911
30
+ "sha256": "b22da620504ce03ad3a3cb64d670c937c0434921a97c0f53b05b76777331403f",
31
+ "size": 26915
32
32
  },
33
33
  {
34
34
  "headers": {
35
35
  "reactNativeJsi": "324aefd8591d9ce688bce7589c4c2b516cd33ecb95d35c47239a87a8fcf6a8da"
36
36
  },
37
- "sha256": "c9015a121ee6cde5589ba8b3cd8d77a2534b6fe74360bd195231eed3eca7f3de",
38
- "size": 26169
37
+ "sha256": "9f3b3cfba36850c6730d5f387e69a39b658139f9ee2f7e5c92b20720c6436b53",
38
+ "size": 26173
39
39
  },
40
40
  {
41
41
  "headers": {
42
42
  "reactNativeJsi": "33596664ee7d7a6623f0796a6feb429543316c3a41b211150acda6e1d835286c"
43
43
  },
44
- "sha256": "a409ff8ac07dd2de079f5c772d00b27989d5af2ce0e43417caf8699675e110af",
45
- "size": 25954
44
+ "sha256": "4b09d9f54a0a7c5c9a8a6ccdbcd6697113eaa0b81fce5521183a6932821a9ebb",
45
+ "size": 25956
46
46
  },
47
47
  {
48
48
  "headers": {
49
49
  "reactNativeJsi": "66b2cd5a38511195207f6c8a76aba735f9b9cc66a52a0d00780ffe5d331623f7"
50
50
  },
51
- "sha256": "5beab3affe783a710850741e48ddf10311d211614286511034f4e17c0d12f2ca",
52
- "size": 26175
51
+ "sha256": "a2c0cc17a8a2d6f460146065b278fbf02636ce448ab79c09eb81f2903312b871",
52
+ "size": 26176
53
53
  },
54
54
  {
55
55
  "headers": {
56
56
  "reactNativeJsi": "96db4e758dd53e9320cef7cad485e00aa06e7a982cefd920f17007de8a5bd9f9"
57
57
  },
58
- "sha256": "f66d579210c50e888d7b56076de1aaf01b3abbb10dbd11dd2f28697fa1973d6d",
59
- "size": 26910
58
+ "sha256": "620f9a7a0651e7f940ea754331e878537bbe9799d325dee525dc53c76c29b16c",
59
+ "size": 26911
60
60
  },
61
61
  {
62
62
  "headers": {
63
63
  "reactNativeJsi": "aeab590ddd1218df963462242d3954ce467b0fa88f70e91429e4ffc74d230893"
64
64
  },
65
- "sha256": "69708a94c93655eebbe88a36c40b00b52ade6914bcea747f68aa42c8caf27b9e",
66
- "size": 26912
65
+ "sha256": "10359242755f0cf752cf56d5bfae72d17b1c605aa7adb72fabc22ccac8c3a088",
66
+ "size": 26913
67
67
  },
68
68
  {
69
69
  "headers": {
70
70
  "reactNativeJsi": "b5fb260522384dd7ab07d740cdc534b529922446fcec798341c7817d9eaa49f4"
71
71
  },
72
- "sha256": "67be94e46cb799d81221f71ec63b819752429e3dc9b1afd1fda0ec206deb9ee4",
73
- "size": 26044
72
+ "sha256": "50a30bfb2d01e9cd2f62426ebe0350bfb47a62dabb55c68b1498dde6dd394068",
73
+ "size": 26045
74
74
  },
75
75
  {
76
76
  "headers": {
77
77
  "reactNativeJsi": "c6b391a1e870ccf7cdd534be63582862840f8245b99ebd253317deece1e6ffd5"
78
78
  },
79
- "sha256": "87f021b0d37edc7569c56548b53ec00aadc03e4d892afbf07589af032a3ebc15",
80
- "size": 26911
79
+ "sha256": "82e9cc7b7478bc9a430d7885814b237e36fa087e7b728ffe9bc64b87689342e1",
80
+ "size": 26912
81
81
  },
82
82
  {
83
83
  "headers": {
84
84
  "reactNativeJsi": "c8270f1315745ecc204c4209a4f50f58ff6f14b4a385ad6820a69800270b53c6"
85
85
  },
86
- "sha256": "6e1fff6565c1359e63ff7d8f27557c073bd13497d39bc9c33c801ceabf791ce5",
87
- "size": 25917
86
+ "sha256": "9b8e5e762ead8d4a2e2efe55530b455c4b8a5202f9e636202ea079d99fd9d8a0",
87
+ "size": 25919
88
88
  }
89
89
  ]
90
90
  }