peachsim 0.1.1894 → 0.1.1896

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 (88) hide show
  1. package/cli/commands/package.ts +1 -6
  2. package/detox/index.ts +29 -14
  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 +13 -18
  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 +15 -5
  27. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  28. package/dist-lib/expo-swift-bundle.cjs +4 -4
  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 +9 -9
  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 +2 -2
  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 +2 -2
  49. package/dist-lib/native-app-identity-project.cjs +2 -2
  50. package/dist-lib/native-app-identity-project.mjs +2 -2
  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 +9 -9
  70. package/dist-lib/swift-compile.cjs +2 -2
  71. package/dist-lib/swift-compile.mjs +2 -2
  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 +3 -3
  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/sdk/ios/usr/include/module.modulemap +1 -0
  84. package/src/bundle-channel.mjs +5 -19
  85. package/src/nitro-adapter.lock.json +472 -472
  86. package/src/nitro-superset.lock.json +4 -4
  87. package/src/swift-distribution.lock.json +8 -8
  88. package/src/turbo-runtime.lock.json +25 -25
@@ -3,7 +3,6 @@ import { createHash, randomUUID } from 'node:crypto'
3
3
  import fs from 'node:fs'
4
4
  import os from 'node:os'
5
5
  import path from 'node:path'
6
- import { gunzipSync } from 'node:zlib'
7
6
  import {
8
7
  extractAssetDescriptors,
9
8
  metroAssetScaleFilename,
@@ -327,12 +326,8 @@ export async function runPackage(args: string[]): Promise<void> {
327
326
  platform === 'android' ? 'android' : 'ios',
328
327
  (await detectBundleModeFromText(source)) === 'production' ? 'Release' : 'Debug',
329
328
  )
330
- // gzip assets (the swift icu data) ship inflated, so a launch never
331
- // inflates them in javascript on the tenant's startup thread
332
329
  for (const asset of nativeBundleAssets(natives))
333
- if (asset.contentType === 'application/gzip')
334
- route('/' + asset.path, gunzipSync(asset.bytes), 'application/octet-stream')
335
- else route('/' + asset.path, asset.bytes, asset.contentType)
330
+ route('/' + asset.path, asset.bytes, asset.contentType)
336
331
  source = insertNativeBundleFooters(source, natives, (file) => '/' + file).source
337
332
  return produceConfiguredBundle(
338
333
  source,
package/detox/index.ts CHANGED
@@ -1956,8 +1956,8 @@ async function postRemotePushToSimulator(
1956
1956
  await postPreparedRemotePush(detoxNotificationToApnsPayload(params), launch)
1957
1957
  }
1958
1958
 
1959
- // native finds the onset in its 240fps video, so the first visible change is
1960
- // searched at that resolution; a 60Hz step lands up to 16ms deep into the curve
1959
+ // the onset search steps finer than a display frame so it stops close to the
1960
+ // change the native leg saw on its first moving frame
1961
1961
  const ONSET_STEP_MS = 1000 / 240
1962
1962
 
1963
1963
  // when another platform has no recorded stage times, search for the progress
@@ -2960,15 +2960,26 @@ export const device = {
2960
2960
  const nativeCheckpoint = storedNativeCheckpoint(namePrefix)
2961
2961
  const nativeStagesPath =
2962
2962
  nativeCheckpoint && path.join(nativeCheckpoint, 'stages.json')
2963
- const nativeStages: Array<{
2964
- label: string
2965
- captureMode?: string
2966
- mediaActualMs?: number
2967
- touchOffsetMs?: number
2968
- }> =
2963
+ const nativeRecord: {
2964
+ stages: Array<{
2965
+ label: string
2966
+ captureMode?: string
2967
+ mediaActualMs?: number
2968
+ touchOffsetMs?: number
2969
+ }>
2970
+ videoTriggerDetection?: { changedPixelPercent: number }
2971
+ } | null =
2969
2972
  nativeStagesPath && fs.existsSync(nativeStagesPath)
2970
- ? JSON.parse(fs.readFileSync(nativeStagesPath, 'utf8')).stages
2971
- : []
2973
+ ? JSON.parse(fs.readFileSync(nativeStagesPath, 'utf8'))
2974
+ : null
2975
+ const nativeStages = nativeRecord?.stages ?? []
2976
+ // native first sees the motion on a 60Hz display frame that can land deep
2977
+ // into the curve; the onset here is the first step showing as much change,
2978
+ // so both legs measure their stages from the same progress
2979
+ const onsetChangePercent = Math.max(
2980
+ proofObserver.motionChangeDefinition.minimumChangePercent,
2981
+ nativeRecord?.videoTriggerDetection?.changedPixelPercent ?? 0,
2982
+ )
2972
2983
  const pairedStages: typeof stages = stages.map((stage) => {
2973
2984
  if (DETOX_PLATFORM !== 'ios') return stage
2974
2985
  // ios media times share the native stage's detected anchor. actualMs on
@@ -3325,6 +3336,10 @@ export const device = {
3325
3336
  let previousBitmap: ImageBitmap | null = null
3326
3337
  const detectionFrameLimit = controller.framesForOffset(input.detectionTimeoutMs)
3327
3338
  const onsetFrameLimit = Math.ceil(input.detectionTimeoutMs / input.onsetStepMs)
3339
+ const onsetDefinition = {
3340
+ ...input.motionChangeDefinition,
3341
+ minimumChangePercent: input.onsetChangePercent,
3342
+ }
3328
3343
  // a touch anchor takes stage zero from the delivered touch on both
3329
3344
  // legs, so no visible change gates its drive; a feedback below the
3330
3345
  // change minimum still captures, as it does natively.
@@ -3338,7 +3353,7 @@ export const device = {
3338
3353
  const measurement = measureChange({
3339
3354
  baseline: baseline(candidateBitmap),
3340
3355
  candidate: regionPixels(candidateBitmap),
3341
- definition: input.motionChangeDefinition,
3356
+ definition: onsetDefinition,
3342
3357
  height: bounds.height,
3343
3358
  label: 'peach initial-frame visible-change detector',
3344
3359
  width: bounds.width,
@@ -3363,7 +3378,7 @@ export const device = {
3363
3378
  const measurement = measureChange({
3364
3379
  baseline: baseline(candidateBitmap),
3365
3380
  candidate: regionPixels(candidateBitmap),
3366
- definition: input.motionChangeDefinition,
3381
+ definition: onsetDefinition,
3367
3382
  height: bounds.height,
3368
3383
  label: 'SootSim visible-change detector',
3369
3384
  width: bounds.width,
@@ -3921,8 +3936,7 @@ export const device = {
3921
3936
  changedPixelPercent: detectedMeasurement.changePercent,
3922
3937
  changedPixels: detectedMeasurement.changePixels,
3923
3938
  channelThreshold: input.motionChangeDefinition.channelThreshold,
3924
- minimumChangePercent:
3925
- input.motionChangeDefinition.minimumChangePercent,
3939
+ minimumChangePercent: input.onsetChangePercent,
3926
3940
  totalPixels: detectedMeasurement.totalPixels,
3927
3941
  frameIndex: visibleStart.frameIndex,
3928
3942
  virtualTimestampMs: visibleStart.virtualTimestampMs,
@@ -3941,6 +3955,7 @@ export const device = {
3941
3955
  workletFrameTimestampsSeconds: options.workletFrameTimestampsSeconds,
3942
3956
  detectionTimeoutMs: options.detectionTimeoutMs ?? 3000,
3943
3957
  onsetStepMs: ONSET_STEP_MS,
3958
+ onsetChangePercent,
3944
3959
  phaseSearchMs: PHASE_SEARCH_MS,
3945
3960
  frame: options.frame ?? null,
3946
3961
  anchorAtTouch: options.anchorAtTouch ?? null,
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1894 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1896 | (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.1894 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1896 | (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.1894 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1896 | (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.1894 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1896 | (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.1894 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1896 | (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;
package/dist-lib/beta.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1894 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1896 | (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;
package/dist-lib/beta.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1894 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1896 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/beta.ts
4
4
  var IS_BETA = true;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1894 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1896 | (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.1894 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1896 | (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.1894 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1896 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/bridge-contract.ts
4
4
  var SIM_LONG_PRESS_MAX_MS = 5e3;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1894 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1896 | (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.1894 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1896 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/bridge-contract.ts
4
4
  var REFUSED_PERFORM_STEP_TYPES = [