peachsim 0.1.1973 → 0.1.1976

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 (82) 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 +29 -11
  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 +22 -5
  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 +29 -11
  31. package/dist-lib/host/fetch-proxy-handler.cjs +7 -6
  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 +7 -6
  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 +7 -6
  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 +29 -11
  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 +7 -6
  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/expo-native-workspace.ts +20 -3
  82. package/src/installed-package-versions.ts +10 -6
package/dist-lib/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1973 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1976 | (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;
@@ -4004,11 +4004,11 @@ function createInstalledPackageReader() {
4004
4004
  }
4005
4005
  };
4006
4006
  }
4007
- function* installedVersionsWalk(projectRoot, names) {
4007
+ function* installedVersionsWalk(projectRoot, names, selectedPackages) {
4008
4008
  const readInstalledPackage = createInstalledPackageReader();
4009
4009
  const versions = {};
4010
4010
  for (const name of [...names].sort()) {
4011
- const installed = yield* readInstalledPackage(projectRoot, name);
4011
+ const installed = selectedPackages ? selectedPackages.get(name) : yield* readInstalledPackage(projectRoot, name);
4012
4012
  const version = installed && Reflect.get(installed.manifest, "version");
4013
4013
  if (typeof version === "string" && version.length > 0) versions[name] = version;
4014
4014
  if (name === "react-native-worklets" && installed) {
@@ -4041,7 +4041,7 @@ function* nativePackageVersionsWalk(projectRoot) {
4041
4041
  const readInstalledPackage = createInstalledPackageReader();
4042
4042
  const pending = [{ root: appRoot, manifest }];
4043
4043
  const visited = /* @__PURE__ */ new Set();
4044
- const needed = /* @__PURE__ */ new Set();
4044
+ const needed = /* @__PURE__ */ new Map();
4045
4045
  for (let next = pending.pop(); next; next = pending.pop()) {
4046
4046
  const root = yield* realpath(next.root);
4047
4047
  if (visited.has(root)) continue;
@@ -4060,12 +4060,13 @@ function* nativePackageVersionsWalk(projectRoot) {
4060
4060
  }
4061
4061
  const installed = yield* readInstalledPackage(root, name);
4062
4062
  if (!installed) continue;
4063
- if (nativeNames.has(name)) needed.add(name);
4063
+ if (nativeNames.has(name) && !needed.has(name))
4064
+ needed.set(name, (yield* readInstalledPackage(appRoot, name)) ?? installed);
4064
4065
  pending.push(installed);
4065
4066
  }
4066
4067
  }
4067
4068
  }
4068
- return yield* installedVersionsWalk(projectRoot, needed);
4069
+ return yield* installedVersionsWalk(projectRoot, needed.keys(), needed);
4069
4070
  }
4070
4071
  function readInstalledNativePackageVersions(projectRoot) {
4071
4072
  const versions = runSync(nativePackageVersionsWalk(projectRoot));
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1973 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1976 | (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.1973 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1976 | (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.1973",
3
+ "version": "0.1.1976",
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",
@@ -844,10 +844,27 @@ async function prepareWorkspace(
844
844
  await execute(install, work, installEnv)
845
845
  report('installed js dependencies')
846
846
  }
847
- if (!projectReady || (stage === 'workspace' && !fs.existsSync(marker))) {
848
- await prepareNativeProject(preparedApp, appManifest, stage, execute, run, report)
847
+ if (!projectReady) {
848
+ await prepareNativeProject(
849
+ preparedApp,
850
+ appManifest,
851
+ 'project',
852
+ execute,
853
+ run,
854
+ report,
855
+ )
849
856
  fs.writeFileSync(projectMarker, 'complete\n')
850
- if (stage === 'workspace') fs.writeFileSync(marker, 'complete\n')
857
+ }
858
+ if (stage === 'workspace' && !fs.existsSync(marker)) {
859
+ await prepareNativeProject(
860
+ preparedApp,
861
+ appManifest,
862
+ 'workspace',
863
+ execute,
864
+ run,
865
+ report,
866
+ )
867
+ fs.writeFileSync(marker, 'complete\n')
851
868
  }
852
869
  const now = new Date()
853
870
  fs.utimesSync(work, now, now)
@@ -1,7 +1,7 @@
1
1
  // the version of each bundled package as the app installed it. a device
2
2
  // compiles a package's native side from the copy autolinking finds, which is
3
- // Node resolution from the project root, so that is the copy read here even
4
- // when the graph also bundles a nested one.
3
+ // Node resolution from the project root where available; a dependency visible
4
+ // only through its importer uses that installed copy from the dependency walk.
5
5
  //
6
6
  // each walk yields the file system reads it needs. the sync driver answers
7
7
  // them for one-shot callers; the async one for servers that must keep
@@ -140,11 +140,14 @@ function createInstalledPackageReader() {
140
140
  function* installedVersionsWalk(
141
141
  projectRoot: string,
142
142
  names: Iterable<string>,
143
+ selectedPackages?: ReadonlyMap<string, InstalledPackage>,
143
144
  ): FsWalk<PackageVersions> {
144
145
  const readInstalledPackage = createInstalledPackageReader()
145
146
  const versions: PackageVersions = {}
146
147
  for (const name of [...names].sort()) {
147
- const installed = yield* readInstalledPackage(projectRoot, name)
148
+ const installed = selectedPackages
149
+ ? selectedPackages.get(name)
150
+ : yield* readInstalledPackage(projectRoot, name)
148
151
  const version = installed && Reflect.get(installed.manifest, 'version')
149
152
  if (typeof version === 'string' && version.length > 0) versions[name] = version
150
153
  if (name === 'react-native-worklets' && installed) {
@@ -197,7 +200,7 @@ function* nativePackageVersionsWalk(projectRoot: string): FsWalk<PackageVersions
197
200
  const readInstalledPackage = createInstalledPackageReader()
198
201
  const pending: InstalledPackage[] = [{ root: appRoot, manifest }]
199
202
  const visited = new Set<string>()
200
- const needed = new Set<string>()
203
+ const needed = new Map<string, InstalledPackage>()
201
204
  for (let next = pending.pop(); next; next = pending.pop()) {
202
205
  const root = yield* realpath(next.root)
203
206
  if (visited.has(root)) continue
@@ -216,12 +219,13 @@ function* nativePackageVersionsWalk(projectRoot: string): FsWalk<PackageVersions
216
219
  }
217
220
  const installed = yield* readInstalledPackage(root, name)
218
221
  if (!installed) continue
219
- if (nativeNames.has(name)) needed.add(name)
222
+ if (nativeNames.has(name) && !needed.has(name))
223
+ needed.set(name, (yield* readInstalledPackage(appRoot, name)) ?? installed)
220
224
  pending.push(installed)
221
225
  }
222
226
  }
223
227
  }
224
- return yield* installedVersionsWalk(projectRoot, needed)
228
+ return yield* installedVersionsWalk(projectRoot, needed.keys(), needed)
225
229
  }
226
230
 
227
231
  export function readInstalledNativePackageVersions(projectRoot: string): PackageVersions {