peachsim 0.1.2156 → 0.1.2158

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 (84) hide show
  1. package/cli/commands/inspect/shared.ts +4 -6
  2. package/cli/commands/inspect.ts +6 -10
  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 +20 -7
  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 +19 -6
  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 +19 -6
  33. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  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 +1 -1
  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 +1 -1
  49. package/dist-lib/native-app-identity-project.cjs +1 -1
  50. package/dist-lib/native-app-identity-project.mjs +1 -1
  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 +20 -7
  70. package/dist-lib/swift-compile.cjs +1 -1
  71. package/dist-lib/swift-compile.mjs +1 -1
  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 +1 -1
  79. package/dist-lib/vite.cjs +1 -1
  80. package/dist-lib/worklet-executable.cjs +1 -1
  81. package/dist-lib/worklet-executable.mjs +1 -1
  82. package/package.json +1 -1
  83. package/src/expo-discovery-cache.ts +2 -1
  84. package/src/expo-swift-host.ts +18 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "peachsim",
3
- "version": "0.1.2156",
3
+ "version": "0.1.2158",
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",
@@ -403,7 +403,8 @@ function rewritePreparedPaths(options: {
403
403
  const portableText =
404
404
  name === 'Package.swift'
405
405
  ? text.replace(
406
- /("-load-plugin-executable"\s*,\s*)("(?:[^"\\]|\\.)*")/g,
406
+ // xcode passes the value through the frontend as its own -Xfrontend.
407
+ /("-load-plugin-executable"\s*,\s*(?:"-Xfrontend"\s*,\s*)?)("(?:[^"\\]|\\.)*")/g,
407
408
  (match, prefix: string, literal: string) => {
408
409
  const value: unknown = JSON.parse(literal)
409
410
  if (typeof value !== 'string' || !value.includes(preparedRoot))
@@ -160,6 +160,9 @@ type SavedFs = {
160
160
 
161
161
  let savedFs: SavedFs | null = null
162
162
  let ignoredRoots: string[] = []
163
+ // a directory this process made with mkdtemp holds its own scratch output (an
164
+ // evaluated config, a staged bundle), never an input a later discovery reads.
165
+ const ownTemporaryRoots = new Set<string>()
163
166
 
164
167
  function isEnoent(error: unknown): boolean {
165
168
  return error instanceof Error && 'code' in error && error.code === 'ENOENT'
@@ -193,9 +196,10 @@ function ignoredInput(file: string): boolean {
193
196
  file.endsWith(`${path.sep}peach-expo-swift`)
194
197
  )
195
198
  return true
196
- return ignoredRoots.some(
197
- (root) => file === root || file.startsWith(`${root}${path.sep}`),
198
- )
199
+ const within = (root: string) => file === root || file.startsWith(`${root}${path.sep}`)
200
+ if (ignoredRoots.some(within)) return true
201
+ for (const root of ownTemporaryRoots) if (within(root)) return true
202
+ return false
199
203
  }
200
204
 
201
205
  function noteMissing(file: string): void {
@@ -338,6 +342,17 @@ function installSwiftInputTrace(): void {
338
342
  Reflect.set(fs, 'lstatSync', traced(saved.lstatSync))
339
343
  Reflect.set(fs, 'readlinkSync', traced(saved.readlinkSync))
340
344
  Reflect.set(fs, 'realpathSync', realpath)
345
+ const mkdtempSync = fs.mkdtempSync
346
+ Reflect.set(fs, 'mkdtempSync', (...args: unknown[]): unknown => {
347
+ const made: unknown = Reflect.apply(mkdtempSync, undefined, args)
348
+ if (typeof made === 'string' && traceStore.getStore()) {
349
+ // a removed root's unique name never returns, so forgetting it is safe.
350
+ for (const root of ownTemporaryRoots)
351
+ if (!saved.existsSync(root)) ownTemporaryRoots.delete(root)
352
+ ownTemporaryRoots.add(path.resolve(made))
353
+ }
354
+ return made
355
+ })
341
356
  Reflect.set(fs, 'existsSync', (targetPath: fs.PathLike): boolean => {
342
357
  const file = tracedPath(targetPath)
343
358
  const witness = traceStore.getStore()