peachsim 0.1.2103 → 0.1.2105

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 (95) hide show
  1. package/cli/commands/detect.ts +26 -5
  2. package/cli/commands/shell-url.ts +41 -4
  3. package/dist-lib/agent-daemon-client.cjs +1 -1
  4. package/dist-lib/agent-events.cjs +1 -1
  5. package/dist-lib/attached-projects.cjs +1 -1
  6. package/dist-lib/auth/shared-session.cjs +1 -1
  7. package/dist-lib/backend-origin.cjs +1 -1
  8. package/dist-lib/beta.cjs +1 -1
  9. package/dist-lib/beta.mjs +1 -1
  10. package/dist-lib/bridge-constants.cjs +1 -1
  11. package/dist-lib/bridge-contract-input.cjs +1 -1
  12. package/dist-lib/bridge-contract-input.mjs +1 -1
  13. package/dist-lib/bridge-contract.cjs +1 -1
  14. package/dist-lib/bridge-contract.mjs +1 -1
  15. package/dist-lib/bundle-channel.cjs +37 -33
  16. package/dist-lib/capture-contract.cjs +1 -1
  17. package/dist-lib/capture-contract.mjs +1 -1
  18. package/dist-lib/cloud-contract.cjs +1 -1
  19. package/dist-lib/cloud-contract.mjs +1 -1
  20. package/dist-lib/cloud-test-args.cjs +1 -1
  21. package/dist-lib/cloud-test-args.mjs +1 -1
  22. package/dist-lib/cloud.cjs +1 -1
  23. package/dist-lib/cloud.mjs +1 -1
  24. package/dist-lib/config.cjs +1 -1
  25. package/dist-lib/config.mjs +1 -1
  26. package/dist-lib/detox/index.cjs +1 -1
  27. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  28. package/dist-lib/expo-swift-bundle.cjs +17 -13
  29. package/dist-lib/expo-swift-metadata.cjs +1 -1
  30. package/dist-lib/expo-swift-metadata.mjs +1 -1
  31. package/dist-lib/home-paths.cjs +1 -1
  32. package/dist-lib/host/bridge-host.cjs +36 -33
  33. package/dist-lib/host/fetch-proxy-handler.cjs +4 -4
  34. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  35. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  36. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  37. package/dist-lib/host/websocket-proxy.cjs +1 -1
  38. package/dist-lib/index.cjs +6 -5
  39. package/dist-lib/jump-to-source-babel.cjs +1 -1
  40. package/dist-lib/jump-to-source-native.cjs +1 -1
  41. package/dist-lib/kotlin-host.cjs +1 -1
  42. package/dist-lib/menu.cjs +1 -1
  43. package/dist-lib/menu.mjs +1 -1
  44. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  45. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  46. package/dist-lib/metro-production-bundle.cjs +1 -1
  47. package/dist-lib/metro-production-bundle.mjs +1 -1
  48. package/dist-lib/metro.cjs +6 -5
  49. package/dist-lib/native-app-identity-project.cjs +5 -3
  50. package/dist-lib/native-app-identity-project.mjs +5 -3
  51. package/dist-lib/native-app-identity.cjs +1 -1
  52. package/dist-lib/native-app-identity.mjs +1 -1
  53. package/dist-lib/native-firebase-metadata.cjs +1 -1
  54. package/dist-lib/native-firebase-metadata.mjs +1 -1
  55. package/dist-lib/pdfium-raster.cjs +1 -1
  56. package/dist-lib/pdfium-raster.mjs +1 -1
  57. package/dist-lib/plist.cjs +1 -1
  58. package/dist-lib/plist.mjs +1 -1
  59. package/dist-lib/profiles.cjs +1 -1
  60. package/dist-lib/public-brand.cjs +1 -1
  61. package/dist-lib/public-origins-lib-esm.json +24 -24
  62. package/dist-lib/public-origins-lib.json +53 -53
  63. package/dist-lib/react-native-host-modules.cjs +1 -1
  64. package/dist-lib/react-native-host-modules.mjs +1 -1
  65. package/dist-lib/reap-browser.cjs +1 -1
  66. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  67. package/dist-lib/sdk.cjs +1 -1
  68. package/dist-lib/sdk.mjs +1 -1
  69. package/dist-lib/skills.cjs +92 -40
  70. package/dist-lib/swift-compile.cjs +9 -7
  71. package/dist-lib/swift-compile.mjs +6 -5
  72. package/dist-lib/swift-package.cjs +1 -1
  73. package/dist-lib/swift-package.mjs +1 -1
  74. package/dist-lib/swift-submit.cjs +1 -1
  75. package/dist-lib/swift-submit.mjs +1 -1
  76. package/dist-lib/swift-toolchain.cjs +1 -1
  77. package/dist-lib/swift.cjs +1 -1
  78. package/dist-lib/vite-swift.cjs +22 -18
  79. package/dist-lib/vite.cjs +4 -4
  80. package/dist-lib/worklet-executable.cjs +1 -1
  81. package/dist-lib/worklet-executable.mjs +1 -1
  82. package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +3 -0
  83. package/dist-types/packages/peach-engine/src/render-worker/tree-sync-port.d.ts +1 -1
  84. package/package.json +1 -1
  85. package/skills/peach-setup/SKILL.md +6 -0
  86. package/skills/peach-setup/references/native-config.md +7 -0
  87. package/src/expo-swift-host.ts +8 -4
  88. package/src/nitro-adapter.lock.json +233 -233
  89. package/src/nitro-superset.lock.json +4 -4
  90. package/src/swift-distribution.lock.json +8 -8
  91. package/src/swift-root-lock.ts +7 -6
  92. package/src/turbo-bundle.ts +2 -10
  93. package/src/turbo-runtime.lock.json +19 -19
  94. package/src/turbo-source.ts +22 -15
  95. package/src/xcode-project.ts +3 -0
@@ -12,7 +12,7 @@
12
12
  "checksum": "8a692c7dca8da69d31ea86774a91ea1d01b84ed1e80369481eb14a882ebae718"
13
13
  },
14
14
  "framework": {
15
- "distribution": "543c14e1d154bd8c",
15
+ "distribution": "bb5759d4e7c5aa28",
16
16
  "wireAbi": "246b8412514b644113e6a26252c8ebd6de49ab4156ac5f5c98bb9e4c2ff2568b"
17
17
  },
18
18
  "archives": [
@@ -20,70 +20,70 @@
20
20
  "headers": {
21
21
  "reactNativeJsi": "0f8c2defbca69a27a848a81ae72363073bf9602fd316e57a75811be1a0528358"
22
22
  },
23
- "sha256": "1d49a410376c45415ddcbdf72b7c15a7d4b7064a35476601d237ead1e4e2a134",
24
- "size": 25393
23
+ "sha256": "d0162e9ace7f45edecf4b3cd84f7b987852c04ad24b23fe69653bbbbf37d701b",
24
+ "size": 25395
25
25
  },
26
26
  {
27
27
  "headers": {
28
28
  "reactNativeJsi": "21a624ea24fd17d56bf26832d496fc1177067f89640414c20e6486c7984dfb0a"
29
29
  },
30
- "sha256": "cbb898f69d36d8453204c2c837ebac5e19544b22e68b3628733e75551c068765",
31
- "size": 26134
30
+ "sha256": "26bf241b2299e7be6b243cfd7e289e46775a524fa0eca148013625238b1e3fdc",
31
+ "size": 26137
32
32
  },
33
33
  {
34
34
  "headers": {
35
35
  "reactNativeJsi": "324aefd8591d9ce688bce7589c4c2b516cd33ecb95d35c47239a87a8fcf6a8da"
36
36
  },
37
- "sha256": "be03876220f78c111a4e14257996071a9313cc575050c9602c6db8787ec419ce",
38
- "size": 25393
37
+ "sha256": "fb6fa0d39d16911df6c2a7e346cb7f71e88a3d73248cc1facbc3e7ec93333426",
38
+ "size": 25395
39
39
  },
40
40
  {
41
41
  "headers": {
42
42
  "reactNativeJsi": "33596664ee7d7a6623f0796a6feb429543316c3a41b211150acda6e1d835286c"
43
43
  },
44
- "sha256": "78df36c6d1f72b9d62c21be50eea5bf8530cf0733c4c9e38e46c31a7a4a20157",
45
- "size": 25159
44
+ "sha256": "188ffe80bafc2adbc9e962d38d9caa81c8a99bc0986a8d279ff07fe53c38b547",
45
+ "size": 25164
46
46
  },
47
47
  {
48
48
  "headers": {
49
49
  "reactNativeJsi": "66b2cd5a38511195207f6c8a76aba735f9b9cc66a52a0d00780ffe5d331623f7"
50
50
  },
51
- "sha256": "d0485a3cc7b36a19124c37de930cd2a79a03fd718e2b84294c9376454a033ba8",
52
- "size": 25395
51
+ "sha256": "3a319ee34739edfdf731e314f29bc486b42d5988115dad2e802c3512927f08c6",
52
+ "size": 25398
53
53
  },
54
54
  {
55
55
  "headers": {
56
56
  "reactNativeJsi": "96db4e758dd53e9320cef7cad485e00aa06e7a982cefd920f17007de8a5bd9f9"
57
57
  },
58
- "sha256": "54b52bb54c3263fec7a80624f9800b50ae7a182875f63e604b1159a037afbce5",
59
- "size": 26137
58
+ "sha256": "30439890cc89fe9853547d63e1773c9ce41cdfabfbff21121d63337a4c36575b",
59
+ "size": 26138
60
60
  },
61
61
  {
62
62
  "headers": {
63
63
  "reactNativeJsi": "aeab590ddd1218df963462242d3954ce467b0fa88f70e91429e4ffc74d230893"
64
64
  },
65
- "sha256": "e9b3fa613e5ddc4c1370e344b1d6d7c3007a86ad5951f498b35bcab72c4544db",
66
- "size": 26135
65
+ "sha256": "a09da78f4dcacf439dcf87c790681737940161aa920785b8d18709f0d542c4c8",
66
+ "size": 26137
67
67
  },
68
68
  {
69
69
  "headers": {
70
70
  "reactNativeJsi": "b5fb260522384dd7ab07d740cdc534b529922446fcec798341c7817d9eaa49f4"
71
71
  },
72
- "sha256": "5899681255b264d7de478d6306e507b35d35bd5323b23900436fe7a01ed933c2",
72
+ "sha256": "d72c56066e1468b0f1689c4e5d0f02c2d8b54e89cd8bf5b194fc75aaff58abac",
73
73
  "size": 25264
74
74
  },
75
75
  {
76
76
  "headers": {
77
77
  "reactNativeJsi": "c6b391a1e870ccf7cdd534be63582862840f8245b99ebd253317deece1e6ffd5"
78
78
  },
79
- "sha256": "89d48560679a1046e8c6f4455893cdd62d10e21f622d8a6d7467f4095889c55e",
80
- "size": 26139
79
+ "sha256": "de81aef8940e05d6b5b96c537c488ede615f6ed99d8964f699e11e9d182f0192",
80
+ "size": 26141
81
81
  },
82
82
  {
83
83
  "headers": {
84
84
  "reactNativeJsi": "c8270f1315745ecc204c4209a4f50f58ff6f14b4a385ad6820a69800270b53c6"
85
85
  },
86
- "sha256": "8463b2d6c851ca0f1aa1cffb09eb3efe334ab62d466a020a1d9aa0eaa7d1f13f",
86
+ "sha256": "09e9e4d1479b981bf66de12c9dc51c82fa88b0611acbc6e08e3076876367a54a",
87
87
  "size": 25103
88
88
  }
89
89
  ]
@@ -952,15 +952,8 @@ function registers(root: string, files: Iterable<string>, objc = true): boolean
952
952
  return false
953
953
  }
954
954
 
955
- /** autolinked iOS pods that provide modules or original Fabric components. */
956
- export async function discoverTurboProviders(
957
- appRoot: string,
958
- projectRoot?: string,
959
- iosTarget?: string,
960
- answered: ReadonlySet<string> = new Set(),
961
- ): Promise<TurboProvider[]> {
962
- const providers: TurboProvider[] = []
963
- const candidates: { provider: TurboProvider; fabric: boolean }[] = []
955
+ export async function turboProviderCandidates(appRoot: string) {
956
+ const candidates: { provider: TurboProvider; fabric: boolean; expo: boolean }[] = []
964
957
  const autolinked = await iosAutolinkedDependencies(appRoot)
965
958
  // the React Native autolinker leaves out Expo modules, whose Objective-C
966
959
  // can still register with React Native
@@ -973,8 +966,24 @@ export async function discoverTurboProviders(
973
966
  // a pod can register Nitro objects and Fabric components independently.
974
967
  const fabric = fabricComponents(root)
975
968
  if (!podspecPath) continue
976
- candidates.push({ provider: { name, root, podspecPath }, fabric })
969
+ candidates.push({
970
+ provider: { name, root, podspecPath },
971
+ fabric,
972
+ expo: expoPods.some((pod) => pod.root === root),
973
+ })
977
974
  }
975
+ return candidates
976
+ }
977
+
978
+ /** autolinked iOS pods that provide modules or original Fabric components. */
979
+ export async function discoverTurboProviders(
980
+ appRoot: string,
981
+ projectRoot?: string,
982
+ iosTarget?: string,
983
+ answered: ReadonlySet<string> = new Set(),
984
+ ): Promise<TurboProvider[]> {
985
+ const providers: TurboProvider[] = []
986
+ const candidates = await turboProviderCandidates(appRoot)
978
987
  const installed =
979
988
  projectRoot && installedXcodeWorkspace(projectRoot)
980
989
  ? installedNativeSources(
@@ -983,7 +992,7 @@ export async function discoverTurboProviders(
983
992
  iosTarget,
984
993
  )
985
994
  : null
986
- for (const { provider, fabric } of candidates) {
995
+ for (const { provider, fabric, expo } of candidates) {
987
996
  const pod = readPod(provider, appRoot)
988
997
  const sources = installed
989
998
  ? installed.get(provider.name)
@@ -1004,9 +1013,7 @@ export async function discoverTurboProviders(
1004
1013
  ),
1005
1014
  )
1006
1015
  // an Expo module's own Swift runs on the Expo route
1007
- const swiftPod =
1008
- expoPods.some((expo) => expo.name === provider.name) &&
1009
- files?.some((file) => file.endsWith('.swift'))
1016
+ const swiftPod = expo && files?.some((file) => file.endsWith('.swift'))
1010
1017
  if (
1011
1018
  !swiftPod &&
1012
1019
  !dependencies.some((dep) => dep?.files.some((file) => file.endsWith('.swift')))
@@ -2279,7 +2286,7 @@ export async function collectTurboSources(options: {
2279
2286
  )) {
2280
2287
  // fmt 11.0.2's FMT_STRING checks fail under clang's default constant
2281
2288
  // interpreter, which crashes on jsi.cpp, so fmt compiles in its own target
2282
- const fmtUnit = unit.name === 'fmt' && !fabric
2289
+ const fmtUnit = unit.name === 'fmt'
2283
2290
  const unitTarget = fmtUnit ? TURBO_FMT_TARGET : TURBO_CORE_TARGET
2284
2291
  if (fmtUnit && !result.targets.some((t) => t.name === TURBO_FMT_TARGET)) {
2285
2292
  result.targets.push({
@@ -2822,6 +2822,9 @@ export function readXcodeAppTarget(
2822
2822
  plist.parse(fs.readFileSync(entitlementsFile, 'utf8')),
2823
2823
  (value) =>
2824
2824
  expand(value, (key) => {
2825
+ // simulator product packaging supplies these outside build settings.
2826
+ if (key === 'AppIdentifierPrefix') return 'FAKETEAMID.'
2827
+ if (key === 'TeamIdentifierPrefix') return ''
2825
2828
  const resolved =
2826
2829
  key === 'CFBundleIdentifier' ? bundleIdentifier : settings(key)
2827
2830
  if (!resolved)