peachsim 0.1.2172 → 0.1.2173

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 (83) 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 +17 -9
  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 +3 -3
  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 +9 -7
  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 +1 -1
  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 +1 -1
  47. package/dist-lib/native-app-identity-project.cjs +1 -1
  48. package/dist-lib/native-app-identity-project.mjs +1 -1
  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 +9 -7
  68. package/dist-lib/swift-compile.cjs +1 -1
  69. package/dist-lib/swift-compile.mjs +1 -1
  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 +1 -1
  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/one-sdk-bundle.ts +3 -3
  82. package/src/turbo-bundle.ts +14 -1
  83. package/src/turbo-compile.ts +5 -0
package/dist-lib/sdk.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2172 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2173 | (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.2172 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2173 | (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;
@@ -64879,7 +64879,7 @@ var init_package_tree_digest = __esm({
64879
64879
 
64880
64880
  // src/expo-native-prebuilt.ts
64881
64881
  function expoNativeCompilerDigestValue() {
64882
- return true ? "254a26d018bf7c5fdc21acc1532d4ce7a2de2555bc6c801e0d0cfc3d674afa93" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
64882
+ return true ? "57621e9ceaf8c76e83e182d371d61c8a93fb3027fae4ba71381d28654629e908" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
64883
64883
  }
64884
64884
  function readSources(value) {
64885
64885
  const sources = isRecord(value) ? value.sources : null;
@@ -71148,7 +71148,7 @@ var init_react_native_core = __esm({
71148
71148
  init_swift_distribution();
71149
71149
  init_swift_package();
71150
71150
  init_swiftContract();
71151
- recipe = true ? "10497319d09f627da3d3eaa6efb12bf3931e6f0e9bb557cafd548e710ec7e476" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
71151
+ recipe = true ? "473c322e6531b81d6b30435f4179025f3c64faa89f8b8c0df107c24d2ec14e74" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
71152
71152
  strings3 = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
71153
71153
  }
71154
71154
  });
@@ -84808,8 +84808,8 @@ public func peachOneSDK(_ pointer: UnsafePointer<UInt8>, _ length: Int32) -> Uns
84808
84808
  async function compileOneSDKApp(appRoot, origin, moduleRootOverride) {
84809
84809
  const selected = await selectOneSDK(appRoot);
84810
84810
  if (!selected) return null;
84811
- const preparedRoot = await prepareNativeAppRoot(appRoot);
84812
- return compilePreparedOneSDKApp(appRoot, preparedRoot, origin, moduleRootOverride);
84811
+ const prepared = await prepareExpoNativeProject(appRoot);
84812
+ return compilePreparedOneSDKApp(appRoot, prepared.app, origin, moduleRootOverride);
84813
84813
  }
84814
84814
  async function compilePreparedOneSDKApp(appRoot, preparedRoot, origin, moduleRootOverride) {
84815
84815
  const selected = await selectOneSDK(appRoot);
@@ -85325,6 +85325,7 @@ async function compileTurboModule(options) {
85325
85325
  throw new Error(
85326
85326
  `TurboModule compilation needs the app's Xcode project to declare an iOS deployment target: ${options.projectRoot}`
85327
85327
  );
85328
+ await options.prepareReactNativeCore?.(collection.coreMode, options.moduleRoot);
85328
85329
  linkReactNativeCore(
85329
85330
  collection,
85330
85331
  prebuiltReactNativeCore(
@@ -85410,7 +85411,7 @@ async function compiledTurboProviders(appRoot, projectRoot, iosTarget) {
85410
85411
  answered
85411
85412
  );
85412
85413
  }
85413
- async function compileTurboApp(appRoot, origin, moduleRoot, iosTarget) {
85414
+ async function compileTurboApp(appRoot, origin, moduleRoot, iosTarget, prepareReactNativeCore) {
85414
85415
  const prebuilt = moduleRoot ? null : await prebuiltExpoNative(appRoot, iosTarget);
85415
85416
  if (prebuilt) return prebuilt.turbo && { metadata: prebuilt.turbo, artifact: null };
85416
85417
  const providers = await compiledTurboProviders(appRoot, void 0, iosTarget);
@@ -85449,7 +85450,8 @@ async function compileTurboApp(appRoot, origin, moduleRoot, iosTarget) {
85449
85450
  moduleRoot: module2,
85450
85451
  projectRoot,
85451
85452
  iosTarget,
85452
- installedPods: installed2?.pods
85453
+ installedPods: installed2?.pods,
85454
+ prepareReactNativeCore
85453
85455
  });
85454
85456
  return {
85455
85457
  artifact,
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2172 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2173 | (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.2172 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2173 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/swift-compile.ts
4
4
  import {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2172 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2173 | (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.2172 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2173 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/swift-package.ts
4
4
  function swiftManifestSettings(target) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2172 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2173 | (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.2172 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2173 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/is-record.ts
4
4
  function isRecord(value) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2172 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2173 | (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.2172 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2173 | (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.2172 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2173 | (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;
package/dist-lib/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2172 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2173 | (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.2172 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2173 | (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.2172 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2173 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/worklet-executable.ts
4
4
  import { parse } from "acorn";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "peachsim",
3
- "version": "0.1.2172",
3
+ "version": "0.1.2173",
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",
@@ -1,7 +1,7 @@
1
1
  import { createHash } from 'node:crypto'
2
2
  import fs from 'node:fs'
3
3
  import path from 'node:path'
4
- import { prepareNativeAppRoot } from './expo-native-workspace'
4
+ import { prepareExpoNativeProject } from './expo-native-workspace'
5
5
  import { compiledModuleAssets, compiledModuleRequestHandler } from './nitro-bundle'
6
6
  import { selectOneSDK } from './one-sdk-preparation'
7
7
  import { oneSDKApp, oneSDKModule, oneSDKTransport } from './one-sdk/source'
@@ -20,8 +20,8 @@ export async function compileOneSDKApp(
20
20
  ) {
21
21
  const selected = await selectOneSDK(appRoot)
22
22
  if (!selected) return null
23
- const preparedRoot = await prepareNativeAppRoot(appRoot)
24
- return compilePreparedOneSDKApp(appRoot, preparedRoot, origin, moduleRootOverride)
23
+ const prepared = await prepareExpoNativeProject(appRoot)
24
+ return compilePreparedOneSDKApp(appRoot, prepared.app, origin, moduleRootOverride)
25
25
  }
26
26
 
27
27
  export async function compilePreparedOneSDKApp(
@@ -49,6 +49,9 @@ export async function compileTurboApp(
49
49
  origin: string,
50
50
  moduleRoot?: string,
51
51
  iosTarget?: string,
52
+ prepareReactNativeCore?: Parameters<
53
+ typeof compileTurboModule
54
+ >[0]['prepareReactNativeCore'],
52
55
  ): Promise<{ metadata: TurboCompiledModule; artifact: SwiftArtifact | null } | null> {
53
56
  // a standard Expo app's published build needs no prepared workspace
54
57
  const prebuilt = moduleRoot ? null : await prebuiltExpoNative(appRoot, iosTarget)
@@ -101,6 +104,7 @@ export async function compileTurboApp(
101
104
  projectRoot,
102
105
  iosTarget,
103
106
  installedPods: installed?.pods,
107
+ prepareReactNativeCore,
104
108
  })
105
109
  return {
106
110
  artifact,
@@ -119,8 +123,17 @@ export async function compileTurboApp(
119
123
  export async function buildTurboBundle(
120
124
  appRoot: string,
121
125
  moduleRoot?: string,
126
+ prepareReactNativeCore?: Parameters<
127
+ typeof compileTurboModule
128
+ >[0]['prepareReactNativeCore'],
122
129
  ): Promise<{ metadata: TurboCompiledModule; assets: CompiledModuleAsset[] } | null> {
123
- const compiled = await compileTurboApp(appRoot, '', moduleRoot)
130
+ const compiled = await compileTurboApp(
131
+ appRoot,
132
+ '',
133
+ moduleRoot,
134
+ undefined,
135
+ prepareReactNativeCore,
136
+ )
124
137
  if (!compiled) return null
125
138
  return {
126
139
  metadata: compiled.metadata,
@@ -211,6 +211,10 @@ export async function compileTurboModule(options: {
211
211
  moduleRoot: string
212
212
  projectRoot: string
213
213
  iosTarget?: string
214
+ prepareReactNativeCore?: (
215
+ mode: TurboSourceCollection['coreMode'],
216
+ moduleRoot: string,
217
+ ) => Promise<void>
214
218
  /** the installed workspace's pods; without them the podspecs' literal source membership applies. */
215
219
  installedPods?: ReadonlyMap<string, TurboInstalledPod>
216
220
  }): Promise<{ artifact: SwiftArtifact; collection: TurboSourceCollection }> {
@@ -409,6 +413,7 @@ export async function compileTurboModule(options: {
409
413
  throw new Error(
410
414
  `TurboModule compilation needs the app's Xcode project to declare an iOS deployment target: ${options.projectRoot}`,
411
415
  )
416
+ await options.prepareReactNativeCore?.(collection.coreMode, options.moduleRoot)
412
417
  linkReactNativeCore(
413
418
  collection,
414
419
  prebuiltReactNativeCore(