peachsim 0.1.1991 → 0.1.1992

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 (87) hide show
  1. package/cli/app-catalog.ts +24 -8
  2. package/cli/commands/package.ts +1 -20
  3. package/cli/commands/shell-url.ts +16 -18
  4. package/dist-lib/agent-daemon-client.cjs +1 -1
  5. package/dist-lib/agent-events.cjs +1 -1
  6. package/dist-lib/attached-projects.cjs +1 -1
  7. package/dist-lib/auth/shared-session.cjs +1 -1
  8. package/dist-lib/backend-origin.cjs +1 -1
  9. package/dist-lib/beta.cjs +1 -1
  10. package/dist-lib/beta.mjs +1 -1
  11. package/dist-lib/bridge-constants.cjs +1 -1
  12. package/dist-lib/bridge-contract-input.cjs +1 -1
  13. package/dist-lib/bridge-contract-input.mjs +1 -1
  14. package/dist-lib/bridge-contract.cjs +1 -1
  15. package/dist-lib/bridge-contract.mjs +1 -1
  16. package/dist-lib/bundle-channel.cjs +7 -4
  17. package/dist-lib/capture-contract.cjs +1 -1
  18. package/dist-lib/capture-contract.mjs +1 -1
  19. package/dist-lib/cloud-contract.cjs +1 -1
  20. package/dist-lib/cloud-contract.mjs +1 -1
  21. package/dist-lib/cloud-test-args.cjs +1 -1
  22. package/dist-lib/cloud-test-args.mjs +1 -1
  23. package/dist-lib/cloud.cjs +1 -1
  24. package/dist-lib/cloud.mjs +1 -1
  25. package/dist-lib/config.cjs +1 -1
  26. package/dist-lib/config.mjs +1 -1
  27. package/dist-lib/detox/index.cjs +1 -1
  28. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  29. package/dist-lib/expo-swift-bundle.cjs +6 -3
  30. package/dist-lib/expo-swift-metadata.cjs +1 -1
  31. package/dist-lib/expo-swift-metadata.mjs +1 -1
  32. package/dist-lib/home-paths.cjs +1 -1
  33. package/dist-lib/host/bridge-host.cjs +33 -30
  34. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  35. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  36. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  37. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  38. package/dist-lib/host/websocket-proxy.cjs +1 -1
  39. package/dist-lib/index.cjs +1 -1
  40. package/dist-lib/jump-to-source-babel.cjs +1 -1
  41. package/dist-lib/jump-to-source-native.cjs +1 -1
  42. package/dist-lib/kotlin-host.cjs +1 -1
  43. package/dist-lib/menu.cjs +1 -1
  44. package/dist-lib/menu.mjs +1 -1
  45. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  46. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  47. package/dist-lib/metro-production-bundle.cjs +1 -1
  48. package/dist-lib/metro-production-bundle.mjs +1 -1
  49. package/dist-lib/metro.cjs +1 -1
  50. package/dist-lib/native-app-identity-project.cjs +1 -1
  51. package/dist-lib/native-app-identity-project.mjs +1 -1
  52. package/dist-lib/native-app-identity.cjs +1 -1
  53. package/dist-lib/native-app-identity.mjs +1 -1
  54. package/dist-lib/native-firebase-metadata.cjs +1 -1
  55. package/dist-lib/native-firebase-metadata.mjs +1 -1
  56. package/dist-lib/pdfium-raster.cjs +1 -1
  57. package/dist-lib/pdfium-raster.mjs +1 -1
  58. package/dist-lib/plist.cjs +1 -1
  59. package/dist-lib/plist.mjs +1 -1
  60. package/dist-lib/profiles.cjs +1 -1
  61. package/dist-lib/public-brand.cjs +1 -1
  62. package/dist-lib/public-origins-lib-esm.json +24 -24
  63. package/dist-lib/public-origins-lib.json +56 -56
  64. package/dist-lib/react-native-host-modules.cjs +1 -1
  65. package/dist-lib/react-native-host-modules.mjs +1 -1
  66. package/dist-lib/reap-browser.cjs +1 -1
  67. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  68. package/dist-lib/sdk.cjs +1 -1
  69. package/dist-lib/sdk.mjs +1 -1
  70. package/dist-lib/skills.cjs +182 -172
  71. package/dist-lib/swift-compile.cjs +1 -1
  72. package/dist-lib/swift-compile.mjs +1 -1
  73. package/dist-lib/swift-package.cjs +1 -1
  74. package/dist-lib/swift-package.mjs +1 -1
  75. package/dist-lib/swift-submit.cjs +1 -1
  76. package/dist-lib/swift-submit.mjs +1 -1
  77. package/dist-lib/swift-toolchain.cjs +1 -1
  78. package/dist-lib/swift.cjs +1 -1
  79. package/dist-lib/vite-swift.cjs +1 -1
  80. package/dist-lib/vite.cjs +1 -1
  81. package/dist-lib/worklet-executable.cjs +1 -1
  82. package/dist-lib/worklet-executable.mjs +1 -1
  83. package/dist-types/packages/peach-engine/src/engine/canvaskit-renderer.d.ts +1 -1
  84. package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +2 -0
  85. package/dist-types/packages/peach-engine/src/engine/types.d.ts +5 -0
  86. package/package.json +1 -1
  87. package/src/expo-native-workspace.ts +14 -7
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1991 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1992 | (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;
@@ -63005,10 +63005,13 @@ async function prepareWorkspace(app, stage, key2, podsEnvironment) {
63005
63005
  current.set(key2, { watch: watch2, edits, result });
63006
63006
  return result;
63007
63007
  }
63008
+ function declaresNativeDependency(manifest, name3) {
63009
+ return Object.hasOwn(manifest.dependencies ?? {}, name3) || Object.hasOwn(manifest.devDependencies ?? {}, name3);
63010
+ }
63008
63011
  async function prepareNativeProject(app, manifest, stage, execute, run12, report) {
63009
63012
  const appRequire = (0, import_node_module5.createRequire)(import_node_path58.default.join(app, "package.json"));
63010
63013
  const sourcePodEnv = { EXPO_USE_PRECOMPILED_MODULES: "0", RCT_NEW_ARCH_ENABLED: "1" };
63011
- const declares2 = (name3) => Object.hasOwn(manifest.dependencies ?? {}, name3) || Object.hasOwn(manifest.devDependencies ?? {}, name3);
63014
+ const declares2 = (name3) => declaresNativeDependency(manifest, name3);
63012
63015
  if (!import_node_fs60.default.existsSync(import_node_path58.default.join(app, "ios", "Podfile"))) {
63013
63016
  if (!declares2("expo") && !declares2("one"))
63014
63017
  throw new Error(
@@ -64324,7 +64327,7 @@ var init_expo_native_prebuilt = __esm({
64324
64327
  init_swift_native_pin();
64325
64328
  init_xcode_project();
64326
64329
  EXPO_NATIVE_ENTRY_NAME = "ios";
64327
- EXPO_NATIVE_COMPILER_DIGEST = true ? "b97b974e1c79e0378a84d6425a715ab2970e69dbd944b25d530f3f4648e78daf" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
64330
+ EXPO_NATIVE_COMPILER_DIGEST = true ? "ca053b9698cc7dc41cfecccc6e527c6e38e79726701ee8d767a7c088e4a19fc8" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
64328
64331
  IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
64329
64332
  expoNativeEntryUrl = (key2, file) => `${NATIVE_PREBUILT_ORIGIN}/${nativeEntryPrefix("expo", EXPO_NATIVE_ENTRY_NAME, key2)}/${file}`;
64330
64333
  isStringRecord = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
@@ -81127,131 +81130,6 @@ var init_expo_swift_host = __esm({
81127
81130
  }
81128
81131
  });
81129
81132
 
81130
- // src/one-native-app-accent.ts
81131
- function parseOneNativeAppAccent(value) {
81132
- if (!isRecord(value) || typeof value.light !== "string") return null;
81133
- if (!HEX_COLOR.test(value.light)) return null;
81134
- const dark = typeof value.dark === "string" && HEX_COLOR.test(value.dark) ? value.dark : value.light;
81135
- return { light: value.light, dark };
81136
- }
81137
- var ONE_NATIVE_APP_ACCENT_ROUTE, HEX_COLOR;
81138
- var init_one_native_app_accent = __esm({
81139
- "src/one-native-app-accent.ts"() {
81140
- "use strict";
81141
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
81142
- init_is_record();
81143
- ONE_NATIVE_APP_ACCENT_ROUTE = "/__peach/native-app-accent";
81144
- HEX_COLOR = /^#[\da-f]{6}$/i;
81145
- }
81146
- });
81147
-
81148
- // cli/app-catalog.ts
81149
- function listDir2(dir) {
81150
- try {
81151
- return import_node_fs86.default.readdirSync(dir, { withFileTypes: true });
81152
- } catch {
81153
- return [];
81154
- }
81155
- }
81156
- function readText(file) {
81157
- try {
81158
- return import_node_fs86.default.readFileSync(file, "utf8");
81159
- } catch {
81160
- return null;
81161
- }
81162
- }
81163
- function catalogFiles(dir, found) {
81164
- for (const entry of listDir2(dir)) {
81165
- const full = import_node_path83.default.join(dir, entry.name);
81166
- if (entry.isDirectory()) catalogFiles(full, found);
81167
- else if (entry.name === "Contents.json") found.push(full);
81168
- }
81169
- }
81170
- function readAssetCatalog(files2, readContents2, imageUri, accentName) {
81171
- const colors = enumerateBundleColors(files2, readContents2);
81172
- const symbols = enumerateBundleSymbols(files2, readContents2, () => ".");
81173
- const images = {};
81174
- for (const { name: name3, file, scale, renderingMode } of enumerateBundleImages(
81175
- files2,
81176
- readContents2
81177
- )) {
81178
- const uri = imageUri(file);
81179
- if (uri !== null)
81180
- (images[name3] ??= []).push({
81181
- uri,
81182
- scale,
81183
- ...renderingMode ? { renderingMode } : {}
81184
- });
81185
- }
81186
- if (accentName === null && Object.keys(colors).length === 0 && Object.keys(images).length === 0 && Object.keys(symbols).length === 0)
81187
- return null;
81188
- return { colors, images, symbols, accentName };
81189
- }
81190
- function discoverAppCatalog(appDir, metroOrigin) {
81191
- const iosDir = import_node_path83.default.join(appDir, "ios");
81192
- const target = listDir2(iosDir).find(
81193
- (entry) => entry.isDirectory() && entry.name !== "Pods" && listDir2(import_node_path83.default.join(iosDir, entry.name)).some(
81194
- (file) => /^AppDelegate\.(swift|mm|m)$/.test(file.name)
81195
- )
81196
- );
81197
- if (!target) return null;
81198
- const targetDir = import_node_path83.default.join(iosDir, target.name);
81199
- const files2 = [];
81200
- for (const entry of listDir2(targetDir)) {
81201
- if (entry.isDirectory() && entry.name.endsWith(".xcassets"))
81202
- catalogFiles(import_node_path83.default.join(targetDir, entry.name), files2);
81203
- }
81204
- const relative5 = files2.map(
81205
- (file) => import_node_path83.default.relative(targetDir, file).split(import_node_path83.default.sep).join(import_node_path83.default.posix.sep)
81206
- );
81207
- const readContents2 = (candidate) => readText(import_node_path83.default.join(targetDir, candidate));
81208
- const served = import_node_path83.default.relative(appDir, targetDir).split(import_node_path83.default.sep).join(import_node_path83.default.posix.sep);
81209
- const pbxproj = listDir2(iosDir).find((entry) => entry.name.endsWith(".xcodeproj"));
81210
- const accentName = readText(import_node_path83.default.join(targetDir, "Info.plist"))?.match(PLIST_ACCENT)?.[1] ?? (pbxproj ? readText(import_node_path83.default.join(iosDir, pbxproj.name, "project.pbxproj"))?.match(
81211
- ACCENT_BUILD_SETTING
81212
- )?.[1] : void 0) ?? null;
81213
- return readAssetCatalog(
81214
- relative5,
81215
- readContents2,
81216
- (file) => {
81217
- if (file.toLowerCase().endsWith(".pdf")) {
81218
- console.error(
81219
- `peach: pdf asset catalog image '${file}' needs swift-host rasterizing; it stays a miss under metro`
81220
- );
81221
- return null;
81222
- }
81223
- return `${metroOrigin}/assets/${served}/${file}`;
81224
- },
81225
- accentName
81226
- );
81227
- }
81228
- async function discoverOneNativeAppCatalog(metroOrigin) {
81229
- const response = await fetch(`${metroOrigin}${ONE_NATIVE_APP_ACCENT_ROUTE}`, {
81230
- signal: AbortSignal.timeout(1500)
81231
- }).catch(() => null);
81232
- if (!response?.ok) return null;
81233
- const accent2 = parseOneNativeAppAccent(await response.json());
81234
- return accent2 ? {
81235
- colors: { AccentColor: accent2 },
81236
- images: {},
81237
- symbols: {},
81238
- accentName: "AccentColor"
81239
- } : null;
81240
- }
81241
- var import_node_fs86, import_node_path83, ACCENT_BUILD_SETTING, PLIST_ACCENT;
81242
- var init_app_catalog = __esm({
81243
- "cli/app-catalog.ts"() {
81244
- "use strict";
81245
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
81246
- import_node_fs86 = __toESM(require("node:fs"), 1);
81247
- import_node_path83 = __toESM(require("node:path"), 1);
81248
- init_bundleAssets();
81249
- init_one_native_app_accent();
81250
- ACCENT_BUILD_SETTING = /ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = "?([^";]+)"?;/;
81251
- PLIST_ACCENT = /<key>NSAccentColorName<\/key>\s*<string>([^<]+)<\/string>/;
81252
- }
81253
- });
81254
-
81255
81133
  // ../peach-compat/src/stubs/uttype-mime.ts
81256
81134
  function preferredMimeType(path124) {
81257
81135
  const name3 = path124.split(/[?#]/, 1)[0].replace(/\/+$/, "").split("/").pop() ?? "";
@@ -81367,7 +81245,7 @@ var init_launchMetadataContract = __esm({
81367
81245
 
81368
81246
  // src/host/staged-host-files.ts
81369
81247
  function stagedDir() {
81370
- return import_node_path84.default.join(cacheDir(), "staged");
81248
+ return import_node_path83.default.join(cacheDir(), "staged");
81371
81249
  }
81372
81250
  function contentType(extension) {
81373
81251
  return extension === ".js" || extension === ".bundle" || extension === ".jsbundle" ? "application/javascript; charset=utf-8" : preferredMimeTypeForExtension(extension?.slice(1) ?? "") ?? "application/octet-stream";
@@ -81388,7 +81266,7 @@ function stageHostLaunchMetadata(url, origin) {
81388
81266
  return url.toString();
81389
81267
  }
81390
81268
  function stageHostFile(filePath, origin) {
81391
- return stageHostBytes(import_node_fs87.default.readFileSync(filePath), origin, import_node_path84.default.extname(filePath));
81269
+ return stageHostBytes(import_node_fs86.default.readFileSync(filePath), origin, import_node_path83.default.extname(filePath));
81392
81270
  }
81393
81271
  function stageHostBytes(bytes, origin, extension = "") {
81394
81272
  const directory2 = prepareStagedDirectory();
@@ -81405,25 +81283,25 @@ function stageHostMetroAssets(assets2, origin) {
81405
81283
  const index = metroIndexName(url);
81406
81284
  if (!index) throw new Error(`invalid Metro asset URL: ${asset.url}`);
81407
81285
  const staged = new URL(
81408
- writeStagedBytes(asset.bytes, origin, import_node_path84.default.extname(url.pathname), directory2)
81286
+ writeStagedBytes(asset.bytes, origin, import_node_path83.default.extname(url.pathname), directory2)
81409
81287
  );
81410
81288
  const name3 = staged.pathname.slice(STAGED_PREFIX.length);
81411
- const destination = import_node_path84.default.join(directory2, index);
81289
+ const destination = import_node_path83.default.join(directory2, index);
81412
81290
  stagedCapture.getStore()?.add(index);
81413
- const temporary = import_node_path84.default.join(directory2, (0, import_node_crypto47.randomUUID)());
81291
+ const temporary = import_node_path83.default.join(directory2, (0, import_node_crypto47.randomUUID)());
81414
81292
  try {
81415
- import_node_fs87.default.writeFileSync(temporary, name3, { flag: "wx" });
81293
+ import_node_fs86.default.writeFileSync(temporary, name3, { flag: "wx" });
81416
81294
  try {
81417
- import_node_fs87.default.linkSync(temporary, destination);
81295
+ import_node_fs86.default.linkSync(temporary, destination);
81418
81296
  } catch (error) {
81419
81297
  if (!(error instanceof Error && "code" in error && error.code === "EEXIST"))
81420
81298
  throw error;
81421
- if (import_node_fs87.default.readFileSync(destination, "utf8") !== name3)
81299
+ if (import_node_fs86.default.readFileSync(destination, "utf8") !== name3)
81422
81300
  throw new Error(`Metro asset identity collision: ${url.pathname}`);
81423
- import_node_fs87.default.utimesSync(destination, /* @__PURE__ */ new Date(), /* @__PURE__ */ new Date());
81301
+ import_node_fs86.default.utimesSync(destination, /* @__PURE__ */ new Date(), /* @__PURE__ */ new Date());
81424
81302
  }
81425
81303
  } finally {
81426
- import_node_fs87.default.rmSync(temporary, { force: true });
81304
+ import_node_fs86.default.rmSync(temporary, { force: true });
81427
81305
  }
81428
81306
  }
81429
81307
  }
@@ -81451,12 +81329,12 @@ function metroRequestIndex(rawUrl) {
81451
81329
  }
81452
81330
  function prepareStagedDirectory() {
81453
81331
  const directory2 = stagedDir();
81454
- import_node_fs87.default.mkdirSync(directory2, { recursive: true });
81332
+ import_node_fs86.default.mkdirSync(directory2, { recursive: true });
81455
81333
  const now = Date.now();
81456
- for (const entry of import_node_fs87.default.readdirSync(directory2, { withFileTypes: true })) {
81457
- const stale = import_node_path84.default.join(directory2, entry.name);
81458
- if (entry.isFile() && now - import_node_fs87.default.statSync(stale).mtimeMs > STAGED_RETENTION_MS)
81459
- import_node_fs87.default.rmSync(stale, { force: true });
81334
+ for (const entry of import_node_fs86.default.readdirSync(directory2, { withFileTypes: true })) {
81335
+ const stale = import_node_path83.default.join(directory2, entry.name);
81336
+ if (entry.isFile() && now - import_node_fs86.default.statSync(stale).mtimeMs > STAGED_RETENTION_MS)
81337
+ import_node_fs86.default.rmSync(stale, { force: true });
81460
81338
  }
81461
81339
  return directory2;
81462
81340
  }
@@ -81465,17 +81343,17 @@ function writeStagedBytes(bytes, origin, extension, directory2) {
81465
81343
  extension = extension.toLowerCase();
81466
81344
  const name3 = STAGED_NAME.test(digest3 + extension) ? digest3 + extension : digest3;
81467
81345
  stagedCapture.getStore()?.add(name3);
81468
- const destination = import_node_path84.default.join(directory2, name3);
81346
+ const destination = import_node_path83.default.join(directory2, name3);
81469
81347
  const now = Date.now();
81470
- if (import_node_fs87.default.existsSync(destination)) {
81471
- import_node_fs87.default.utimesSync(destination, new Date(now), new Date(now));
81348
+ if (import_node_fs86.default.existsSync(destination)) {
81349
+ import_node_fs86.default.utimesSync(destination, new Date(now), new Date(now));
81472
81350
  } else {
81473
- const temporary = import_node_path84.default.join(directory2, (0, import_node_crypto47.randomUUID)());
81351
+ const temporary = import_node_path83.default.join(directory2, (0, import_node_crypto47.randomUUID)());
81474
81352
  try {
81475
- import_node_fs87.default.writeFileSync(temporary, bytes, { flag: "wx" });
81476
- import_node_fs87.default.renameSync(temporary, destination);
81353
+ import_node_fs86.default.writeFileSync(temporary, bytes, { flag: "wx" });
81354
+ import_node_fs86.default.renameSync(temporary, destination);
81477
81355
  } finally {
81478
- import_node_fs87.default.rmSync(temporary, { force: true });
81356
+ import_node_fs86.default.rmSync(temporary, { force: true });
81479
81357
  }
81480
81358
  }
81481
81359
  return new URL(STAGED_PREFIX + name3, origin).toString();
@@ -81483,7 +81361,7 @@ function writeStagedBytes(bytes, origin, extension, directory2) {
81483
81361
  function isStagedHostFileRequest(rawUrl) {
81484
81362
  if (rawUrl?.startsWith(STAGED_PREFIX)) return true;
81485
81363
  const index = metroRequestIndex(rawUrl);
81486
- return index !== null && import_node_fs87.default.existsSync(import_node_path84.default.join(stagedDir(), index));
81364
+ return index !== null && import_node_fs86.default.existsSync(import_node_path83.default.join(stagedDir(), index));
81487
81365
  }
81488
81366
  async function handleStagedHostFileRequest(req, res) {
81489
81367
  const pathname = new URL(req.url ?? "/", "http://localhost").pathname;
@@ -81491,7 +81369,7 @@ async function handleStagedHostFileRequest(req, res) {
81491
81369
  let name3 = pathname.slice(STAGED_PREFIX.length);
81492
81370
  if (!pathname.startsWith(STAGED_PREFIX) && index && METRO_INDEX_NAME.test(index)) {
81493
81371
  try {
81494
- name3 = await import_node_fs87.default.promises.readFile(import_node_path84.default.join(stagedDir(), index), "utf8");
81372
+ name3 = await import_node_fs86.default.promises.readFile(import_node_path83.default.join(stagedDir(), index), "utf8");
81495
81373
  } catch (error) {
81496
81374
  if (!(error instanceof Error && "code" in error && error.code === "ENOENT"))
81497
81375
  throw error;
@@ -81520,7 +81398,7 @@ async function handleStagedHostFileRequest(req, res) {
81520
81398
  return;
81521
81399
  }
81522
81400
  try {
81523
- const bytes = await import_node_fs87.default.promises.readFile(import_node_path84.default.join(stagedDir(), name3));
81401
+ const bytes = await import_node_fs86.default.promises.readFile(import_node_path83.default.join(stagedDir(), name3));
81524
81402
  res.writeHead(200, {
81525
81403
  "Content-Type": contentType(match[2]),
81526
81404
  "Content-Length": String(bytes.byteLength),
@@ -81536,15 +81414,15 @@ async function handleStagedHostFileRequest(req, res) {
81536
81414
  throw error;
81537
81415
  }
81538
81416
  }
81539
- var import_node_async_hooks3, import_node_crypto47, import_node_fs87, import_node_path84, stagedCapture, STAGED_PREFIX, STAGED_NAME, METRO_INDEX_NAME, STAGED_RETENTION_MS;
81417
+ var import_node_async_hooks3, import_node_crypto47, import_node_fs86, import_node_path83, stagedCapture, STAGED_PREFIX, STAGED_NAME, METRO_INDEX_NAME, STAGED_RETENTION_MS;
81540
81418
  var init_staged_host_files = __esm({
81541
81419
  "src/host/staged-host-files.ts"() {
81542
81420
  "use strict";
81543
81421
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
81544
81422
  import_node_async_hooks3 = require("node:async_hooks");
81545
81423
  import_node_crypto47 = require("node:crypto");
81546
- import_node_fs87 = __toESM(require("node:fs"), 1);
81547
- import_node_path84 = __toESM(require("node:path"), 1);
81424
+ import_node_fs86 = __toESM(require("node:fs"), 1);
81425
+ import_node_path83 = __toESM(require("node:path"), 1);
81548
81426
  init_uttype_mime();
81549
81427
  init_home_paths();
81550
81428
  init_launchMetadataContract();
@@ -81556,6 +81434,141 @@ var init_staged_host_files = __esm({
81556
81434
  }
81557
81435
  });
81558
81436
 
81437
+ // src/one-native-app-accent.ts
81438
+ function parseOneNativeAppAccent(value) {
81439
+ if (!isRecord(value) || typeof value.light !== "string") return null;
81440
+ if (!HEX_COLOR.test(value.light)) return null;
81441
+ const dark = typeof value.dark === "string" && HEX_COLOR.test(value.dark) ? value.dark : value.light;
81442
+ return { light: value.light, dark };
81443
+ }
81444
+ var ONE_NATIVE_APP_ACCENT_ROUTE, HEX_COLOR;
81445
+ var init_one_native_app_accent = __esm({
81446
+ "src/one-native-app-accent.ts"() {
81447
+ "use strict";
81448
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
81449
+ init_is_record();
81450
+ ONE_NATIVE_APP_ACCENT_ROUTE = "/__peach/native-app-accent";
81451
+ HEX_COLOR = /^#[\da-f]{6}$/i;
81452
+ }
81453
+ });
81454
+
81455
+ // cli/app-catalog.ts
81456
+ function listDir2(dir) {
81457
+ try {
81458
+ return import_node_fs87.default.readdirSync(dir, { withFileTypes: true });
81459
+ } catch {
81460
+ return [];
81461
+ }
81462
+ }
81463
+ function readText(file) {
81464
+ try {
81465
+ return import_node_fs87.default.readFileSync(file, "utf8");
81466
+ } catch {
81467
+ return null;
81468
+ }
81469
+ }
81470
+ function catalogFiles(dir, found) {
81471
+ for (const entry of listDir2(dir)) {
81472
+ const full = import_node_path84.default.join(dir, entry.name);
81473
+ if (entry.isDirectory()) catalogFiles(full, found);
81474
+ else if (entry.name === "Contents.json") found.push(full);
81475
+ }
81476
+ }
81477
+ function readAssetCatalog(files2, readContents2, imageUri, accentName) {
81478
+ const colors = enumerateBundleColors(files2, readContents2);
81479
+ const symbols = enumerateBundleSymbols(files2, readContents2, () => ".");
81480
+ const images = {};
81481
+ for (const { name: name3, file, scale, renderingMode } of enumerateBundleImages(
81482
+ files2,
81483
+ readContents2
81484
+ )) {
81485
+ const uri = imageUri(file);
81486
+ if (uri !== null)
81487
+ (images[name3] ??= []).push({
81488
+ uri,
81489
+ scale,
81490
+ ...renderingMode ? { renderingMode } : {}
81491
+ });
81492
+ }
81493
+ if (accentName === null && Object.keys(colors).length === 0 && Object.keys(images).length === 0 && Object.keys(symbols).length === 0)
81494
+ return null;
81495
+ return { colors, images, symbols, accentName };
81496
+ }
81497
+ async function discoverAppCatalog(appDir, assetOrigin) {
81498
+ if (!import_node_fs87.default.existsSync(import_node_path84.default.join(appDir, "ios")) && findExpoAppConfig(appDir)) {
81499
+ const packageJson = readText(import_node_path84.default.join(appDir, "package.json"));
81500
+ if (packageJson) {
81501
+ const manifest = JSON.parse(packageJson);
81502
+ if (declaresNativeDependency(manifest, "expo") || declaresNativeDependency(manifest, "one"))
81503
+ appDir = (await prepareExpoNativeProject(appDir)).app;
81504
+ }
81505
+ }
81506
+ const iosDir = import_node_path84.default.join(appDir, "ios");
81507
+ const target = listDir2(iosDir).find(
81508
+ (entry) => entry.isDirectory() && entry.name !== "Pods" && listDir2(import_node_path84.default.join(iosDir, entry.name)).some(
81509
+ (file) => /^AppDelegate\.(swift|mm|m)$/.test(file.name)
81510
+ )
81511
+ );
81512
+ if (!target) return null;
81513
+ const targetDir = import_node_path84.default.join(iosDir, target.name);
81514
+ const files2 = [];
81515
+ for (const entry of listDir2(targetDir)) {
81516
+ if (entry.isDirectory() && entry.name.endsWith(".xcassets"))
81517
+ catalogFiles(import_node_path84.default.join(targetDir, entry.name), files2);
81518
+ }
81519
+ const relative5 = files2.map(
81520
+ (file) => import_node_path84.default.relative(targetDir, file).split(import_node_path84.default.sep).join(import_node_path84.default.posix.sep)
81521
+ );
81522
+ const readContents2 = (candidate) => readText(import_node_path84.default.join(targetDir, candidate));
81523
+ const pbxproj = listDir2(iosDir).find((entry) => entry.name.endsWith(".xcodeproj"));
81524
+ const accentName = readText(import_node_path84.default.join(targetDir, "Info.plist"))?.match(PLIST_ACCENT)?.[1] ?? (pbxproj ? readText(import_node_path84.default.join(iosDir, pbxproj.name, "project.pbxproj"))?.match(
81525
+ ACCENT_BUILD_SETTING
81526
+ )?.[1] : void 0) ?? null;
81527
+ return readAssetCatalog(
81528
+ relative5,
81529
+ readContents2,
81530
+ (file) => {
81531
+ if (file.toLowerCase().endsWith(".pdf")) {
81532
+ console.error(
81533
+ `peach: pdf asset catalog image '${file}' needs swift-host rasterizing; it stays a miss under metro`
81534
+ );
81535
+ return null;
81536
+ }
81537
+ return stageHostFile(import_node_path84.default.join(targetDir, file), assetOrigin);
81538
+ },
81539
+ accentName
81540
+ );
81541
+ }
81542
+ async function discoverOneNativeAppCatalog(metroOrigin) {
81543
+ const response = await fetch(`${metroOrigin}${ONE_NATIVE_APP_ACCENT_ROUTE}`, {
81544
+ signal: AbortSignal.timeout(1500)
81545
+ }).catch(() => null);
81546
+ if (!response?.ok) return null;
81547
+ const accent2 = parseOneNativeAppAccent(await response.json());
81548
+ return accent2 ? {
81549
+ colors: { AccentColor: accent2 },
81550
+ images: {},
81551
+ symbols: {},
81552
+ accentName: "AccentColor"
81553
+ } : null;
81554
+ }
81555
+ var import_node_fs87, import_node_path84, ACCENT_BUILD_SETTING, PLIST_ACCENT;
81556
+ var init_app_catalog = __esm({
81557
+ "cli/app-catalog.ts"() {
81558
+ "use strict";
81559
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
81560
+ import_node_fs87 = __toESM(require("node:fs"), 1);
81561
+ import_node_path84 = __toESM(require("node:path"), 1);
81562
+ init_bundleAssets();
81563
+ init_expo_native_workspace();
81564
+ init_staged_host_files();
81565
+ init_one_native_app_accent();
81566
+ init_app_project();
81567
+ ACCENT_BUILD_SETTING = /ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = "?([^";]+)"?;/;
81568
+ PLIST_ACCENT = /<key>NSAccentColorName<\/key>\s*<string>([^<]+)<\/string>/;
81569
+ }
81570
+ });
81571
+
81559
81572
  // src/expo-widget-assets.ts
81560
81573
  function stagePreparedExpoWidgetAssets(preparedApp, origin) {
81561
81574
  const ios = import_node_path85.default.join(preparedApp, "ios");
@@ -82767,7 +82780,7 @@ var init_nitro_superset = __esm({
82767
82780
  init_swift_standin_digest();
82768
82781
  NITRO_SUPERSET_ENTRY_NAME = "superset";
82769
82782
  packageVersion = (root) => JSON.parse((0, import_node_fs93.readFileSync)((0, import_node_path90.join)(root, "package.json"), "utf8")).version;
82770
- NITRO_COMPILER_DIGEST = true ? "903f50131e79ab545c6ff3713c3617c6282dc1633e18b0ab443929b38b4bacf2" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
82783
+ NITRO_COMPILER_DIGEST = true ? "1aa1e9843dd943e48529f956328c5d72ff507c9a42538a7e08cccb51c993c096" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
82771
82784
  nitroSupersetLock = parseLock(nitro_superset_lock_default);
82772
82785
  nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
82773
82786
  published2 = /* @__PURE__ */ new Map();
@@ -110629,21 +110642,17 @@ async function stampAppSplash(urlStr, project2, oneAppSplash) {
110629
110642
  return urlStr;
110630
110643
  }
110631
110644
  }
110632
- async function stampAppCatalog(urlStr, project2) {
110633
- try {
110634
- const url = new URL(urlStr);
110635
- const metroOrigin = loopbackOriginOf(url.searchParams.get("bundle") ?? "");
110636
- if (!metroOrigin || !project2) return urlStr;
110637
- const catalog = discoverAppCatalog(project2.appDir, metroOrigin) ?? await discoverOneNativeAppCatalog(metroOrigin);
110638
- if (!catalog) return urlStr;
110639
- url.searchParams.set(
110640
- "appCatalog",
110641
- getCliRuntime().engine_app_catalog_wire.encodeAppCatalogWire(catalog)
110642
- );
110643
- return url.toString();
110644
- } catch {
110645
- return urlStr;
110646
- }
110645
+ async function stampAppCatalog(urlStr, assetOrigin, project2) {
110646
+ const url = new URL(urlStr);
110647
+ const metroOrigin = loopbackOriginOf(url.searchParams.get("bundle") ?? "");
110648
+ if (!metroOrigin || !project2) return urlStr;
110649
+ const catalog = await discoverAppCatalog(project2.appDir, assetOrigin) ?? await discoverOneNativeAppCatalog(metroOrigin);
110650
+ if (!catalog) return urlStr;
110651
+ url.searchParams.set(
110652
+ "appCatalog",
110653
+ getCliRuntime().engine_app_catalog_wire.encodeAppCatalogWire(catalog)
110654
+ );
110655
+ return url.toString();
110647
110656
  }
110648
110657
  function splashImageOnDisk(imageUrl, appDir) {
110649
110658
  const { pathname } = new URL(imageUrl);
@@ -110758,6 +110767,7 @@ async function buildShellUrl(target, baseUrl = resolveDefaultShellBaseUrl(), opt
110758
110767
  project2,
110759
110768
  opts.oneAppSplash
110760
110769
  ),
110770
+ nativeAssetOrigin,
110761
110771
  project2
110762
110772
  );
110763
110773
  const expoStamped = new URL(stamped);
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1991 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1992 | (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.1991 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1992 | (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.1991 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1992 | (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.1991 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1992 | (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.1991 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1992 | (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.1991 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1992 | (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.1991 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1992 | (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.1991 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1992 | (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.1991 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1992 | (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.1991 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1992 | (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.1991 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1992 | (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.1991 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1992 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/worklet-executable.ts
4
4
  import { parse } from "acorn";
@@ -22,7 +22,7 @@ export declare function getBlurMaskFilter(ck: CanvasKit, sigma: number): ReturnT
22
22
  export declare function setPaintContinuationRenderCallback(cb: ((node: SootSimNode) => void) | null): void;
23
23
  export declare function glassTakesAnimatedParameters(node: SootSimNode): boolean;
24
24
  export declare function glassFoldsIntoPeers(node: SootSimNode): boolean;
25
- export declare function prewarmPaintBoundaries(root: SootSimNode, ctx: RenderContext, budgetMs: number, realizeInto?: Surface | null, reach?: PrewarmReach, requireProgress?: boolean, paintedNodeIds?: ReadonlySet<number>): {
25
+ export declare function prewarmPaintBoundaries(root: SootSimNode, ctx: RenderContext, budgetMs: number, realizeInto?: Surface | null, reach?: PrewarmReach, requireProgress?: boolean, paintedNodeIds?: ReadonlySet<number>, discoveryRoots?: readonly SootSimNode[]): {
26
26
  records: number;
27
27
  nodesCompleted: number;
28
28
  rasterPromotions: number;
@@ -404,6 +404,8 @@ export interface SceneLaneProgram {
404
404
  readonly glassIndexes: Readonly<Record<string, number>>;
405
405
  readonly glassRectIndexes: Readonly<Record<string, number>>;
406
406
  readonly glassOpacityIndex: number;
407
+ readonly sdfDisplacementIndexes: Readonly<Record<string, number>>;
408
+ readonly liquidGlassSdfIndexes: Readonly<Record<string, number>>;
407
409
  }
408
410
  export declare function compileSceneLaneProgram(template: Record<string, unknown>, slotIds: readonly number[], foldedGlassKeys?: readonly string[]): SceneLaneProgram | string;
409
411
  export declare const sceneTable: SceneTable;
@@ -658,6 +658,11 @@ export interface PrewarmPass {
658
658
  realizeRasterBlits: number;
659
659
  reach: PrewarmReach;
660
660
  paintedNodeIds?: ReadonlySet<number>;
661
+ discovery?: {
662
+ roots: ReadonlySet<number>;
663
+ ancestors: ReadonlySet<number>;
664
+ depth: number;
665
+ };
661
666
  }
662
667
  export interface PrewarmHeld {
663
668
  revision: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "peachsim",
3
- "version": "0.1.1991",
3
+ "version": "0.1.1992",
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",