peachsim 0.1.1852 → 0.1.1854

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 (93) hide show
  1. package/cli/commands/serve.ts +5 -2
  2. package/detox/index.ts +34 -5
  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 +7 -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 +23 -5
  27. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  28. package/dist-lib/expo-swift-bundle.cjs +2 -2
  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 +8 -8
  33. package/dist-lib/host/fetch-proxy-handler.cjs +2 -2
  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 +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 +8 -8
  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 +2 -2
  79. package/dist-lib/vite.cjs +2 -2
  80. package/dist-lib/worklet-executable.cjs +1 -1
  81. package/dist-lib/worklet-executable.mjs +1 -1
  82. package/dist-types/packages/peach-engine/src/engine/animated.d.ts +2 -0
  83. package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +4 -0
  84. package/dist-types/packages/peach-engine/src/engine/metalShaderContract.d.ts +3 -1
  85. package/dist-types/packages/peach-engine/src/engine/paint-boundary.d.ts +1 -0
  86. package/dist-types/packages/peach-engine/src/engine/rn-spring.d.ts +2 -0
  87. package/dist-types/packages/peach-engine/src/engine/types.d.ts +14 -0
  88. package/package.json +1 -1
  89. package/src/cli-runtime.ts +1 -1
  90. package/src/nitro-adapter.lock.json +281 -281
  91. package/src/nitro-superset.lock.json +4 -4
  92. package/src/swift-distribution.lock.json +8 -8
  93. package/src/turbo-runtime.lock.json +21 -21
@@ -8,11 +8,12 @@
8
8
  // run in the foreground (ctrl-c to stop). the persistent launchd/systemd
9
9
  // daemon installation is handled by `peach daemon install`.
10
10
 
11
+ import { peachRuntimeRoot } from '../../src/answeredNativePackages'
11
12
  import {
12
13
  assertPeachPortEnvironment,
13
14
  DEFAULT_SOOTSIM_BRIDGE_PORT,
14
15
  } from '../../src/bridge-constants'
15
- import { getCliRuntime } from '../../src/cli-runtime'
16
+ import { ensureCliCompanion, getCliRuntime } from '../../src/cli-runtime'
16
17
  import {
17
18
  ensureRnxHome,
18
19
  isDaemonLockfileFresh,
@@ -121,7 +122,9 @@ examples:
121
122
 
122
123
  // every dev server bundle passes through the companion's inventory code, and
123
124
  // a missing or mismatched one only surfaces there as a reset http/2 stream
124
- // with no cause. refuse to bind without a usable companion.
125
+ // with no cause. a CLI newer than its runtime fetches its own published
126
+ // companion first, as `peach open` does, then refuses without a usable one.
127
+ if (!resolveDevCheckoutRuntimeRoot()) await ensureCliCompanion(peachRuntimeRoot())
125
128
  getCliRuntime()
126
129
 
127
130
  ensureRnxHome()
package/detox/index.ts CHANGED
@@ -2885,9 +2885,9 @@ export const device = {
2885
2885
  nativeOffsetMs: number
2886
2886
  nativeFirstFrameOffsetMs: number
2887
2887
  }
2888
- // a witnessed drag replays native delivered times and samples the
2888
+ // witnessed input replays native delivered times and samples the
2889
2889
  // declared offsets directly, as the native lane does.
2890
- witnessedDrag?: boolean
2890
+ witnessedInput?: boolean
2891
2891
  rootFrame?: { height: number; width: number; x: number; y: number } | null
2892
2892
  settleMs?: number
2893
2893
  trigger?: () => unknown
@@ -3566,7 +3566,7 @@ export const device = {
3566
3566
  const stageOffsetMs = async (offsetMs: number, anchorId: string) => {
3567
3567
  if (
3568
3568
  anchorId !== 'transition' ||
3569
- input.witnessedDrag ||
3569
+ input.witnessedInput ||
3570
3570
  input.anchorAtTouch === 'up'
3571
3571
  )
3572
3572
  return offsetMs
@@ -3620,7 +3620,9 @@ export const device = {
3620
3620
  // a held touch keeps the refresh cadence its press started, as the
3621
3621
  // native display does; a partial step would add a refresh native
3622
3622
  // never drew and move the later touches off their schedule.
3623
- const sampledRefresh = Boolean(input.producerWitness || input.hold)
3623
+ const sampledRefresh = Boolean(
3624
+ input.producerWitness || input.witnessedInput || input.hold,
3625
+ )
3624
3626
  const receipt = await stepToTime(targetMs, sampledRefresh)
3625
3627
  snapshots.push({
3626
3628
  actualMs: receipt.virtualTimestampMs - anchorReceipt.virtualTimestampMs,
@@ -3661,6 +3663,33 @@ export const device = {
3661
3663
  const { anchorId, receipt: anchorReceipt } = await resolveAnchor(stage)
3662
3664
  const touchOffsetMs = await stageOffsetMs(stage.offsetMs, anchorId)
3663
3665
  if (typeof stage.nativeActualMs === 'number') {
3666
+ // the native frame nearest touch-down can precede the touch. the
3667
+ // retained pre-press baseline is the matching Peach frame.
3668
+ if (
3669
+ input.anchorAtTouch === 'down' &&
3670
+ stage.offsetMs === 0 &&
3671
+ stage.nativeActualMs < 0 &&
3672
+ stage.nativeActualMs >= -1000 / 60
3673
+ ) {
3674
+ const baselineFrame = keptFrames.get(anchorReceipt.frameIndex)
3675
+ if (
3676
+ !baselineFrame ||
3677
+ currentReceipt.frameIndex !== anchorReceipt.frameIndex
3678
+ )
3679
+ throw new Error('peach pre-press baseline is unavailable')
3680
+ snapshots.push({
3681
+ actualMs: 0,
3682
+ anchorId,
3683
+ bitmap: await createImageBitmap(baselineFrame.bitmap),
3684
+ frameIndex: baselineFrame.receipt.frameIndex,
3685
+ label: stage.label,
3686
+ offsetMs: stage.offsetMs,
3687
+ virtualTimestampMs: baselineFrame.receipt.virtualTimestampMs,
3688
+ samplingTargetTimestampMs:
3689
+ anchorReceipt.virtualTimestampMs + stage.nativeActualMs,
3690
+ })
3691
+ continue
3692
+ }
3664
3693
  // sample the moment the native leg sampled, as long after this
3665
3694
  // lane's last delivered touch as native was after its own
3666
3695
  await sampleAt(
@@ -3852,7 +3881,7 @@ export const device = {
3852
3881
  frame: options.frame ?? null,
3853
3882
  anchorAtTouch: options.anchorAtTouch ?? null,
3854
3883
  producerWitness: options.producerWitness ?? null,
3855
- witnessedDrag: options.witnessedDrag === true,
3884
+ witnessedInput: options.witnessedInput === true,
3856
3885
  hold: options.hold ?? null,
3857
3886
  motionChangeDefinition: proofObserver.motionChangeDefinition,
3858
3887
  platform: device.getPlatform(),
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1852 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1854 | (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.1852 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1854 | (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.1852 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1854 | (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.1852 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1854 | (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.1852 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1854 | (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.1852 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1854 | (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.1852 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1854 | (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.1852 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1854 | (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.1852 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1854 | (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.1852 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1854 | (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.1852 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1854 | (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.1852 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1854 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/bridge-contract.ts
4
4
  var REFUSED_PERFORM_STEP_TYPES = [