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
@@ -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;
@@ -2530,7 +2530,7 @@ function verifyCompanionFile(file) {
2530
2530
  bytes = (0, import_node_fs3.readFileSync)(file);
2531
2531
  } catch (error) {
2532
2532
  if (error instanceof Error) {
2533
- const missing = "code" in error && error.code === "ENOENT" ? "; run `peach runtime install`, which fetches the companion this CLI published, and check Windows Security protection history if it repeats" : "";
2533
+ const missing = "code" in error && error.code === "ENOENT" ? `; run \`peach runtime install\`, which fetches the companion this CLI published${process.platform === "win32" ? ", and check Windows Security protection history if it repeats" : ""}` : "";
2534
2534
  error.message = `Could not read Peach runtime companion ${file}: ${error.message}${missing}`;
2535
2535
  }
2536
2536
  throw error;
@@ -11115,7 +11115,7 @@ var device = {
11115
11115
  input.hold.durationMs
11116
11116
  ].sort((a, b) => a - b) : [];
11117
11117
  const stageOffsetMs = async (offsetMs, anchorId) => {
11118
- if (anchorId !== "transition" || input.witnessedDrag || input.anchorAtTouch === "up")
11118
+ if (anchorId !== "transition" || input.witnessedInput || input.anchorAtTouch === "up")
11119
11119
  return offsetMs;
11120
11120
  const due = holdScheduleMs.filter((scheduledMs) => scheduledMs <= offsetMs);
11121
11121
  while (controller.inputReceipts.length < due.length) {
@@ -11150,7 +11150,9 @@ var device = {
11150
11150
  return receipt;
11151
11151
  };
11152
11152
  const sampleAt = async (stage, anchorReceipt, anchorId, targetMs) => {
11153
- const sampledRefresh = Boolean(input.producerWitness || input.hold);
11153
+ const sampledRefresh = Boolean(
11154
+ input.producerWitness || input.witnessedInput || input.hold
11155
+ );
11154
11156
  const receipt = await stepToTime(targetMs, sampledRefresh);
11155
11157
  snapshots.push({
11156
11158
  actualMs: receipt.virtualTimestampMs - anchorReceipt.virtualTimestampMs,
@@ -11185,6 +11187,22 @@ var device = {
11185
11187
  const { anchorId, receipt: anchorReceipt } = await resolveAnchor(stage);
11186
11188
  const touchOffsetMs = await stageOffsetMs(stage.offsetMs, anchorId);
11187
11189
  if (typeof stage.nativeActualMs === "number") {
11190
+ if (input.anchorAtTouch === "down" && stage.offsetMs === 0 && stage.nativeActualMs < 0 && stage.nativeActualMs >= -1e3 / 60) {
11191
+ const baselineFrame = keptFrames.get(anchorReceipt.frameIndex);
11192
+ if (!baselineFrame || currentReceipt.frameIndex !== anchorReceipt.frameIndex)
11193
+ throw new Error("peach pre-press baseline is unavailable");
11194
+ snapshots.push({
11195
+ actualMs: 0,
11196
+ anchorId,
11197
+ bitmap: await createImageBitmap(baselineFrame.bitmap),
11198
+ frameIndex: baselineFrame.receipt.frameIndex,
11199
+ label: stage.label,
11200
+ offsetMs: stage.offsetMs,
11201
+ virtualTimestampMs: baselineFrame.receipt.virtualTimestampMs,
11202
+ samplingTargetTimestampMs: anchorReceipt.virtualTimestampMs + stage.nativeActualMs
11203
+ });
11204
+ continue;
11205
+ }
11188
11206
  await sampleAt(
11189
11207
  stage,
11190
11208
  anchorReceipt,
@@ -11345,7 +11363,7 @@ var device = {
11345
11363
  frame: options.frame ?? null,
11346
11364
  anchorAtTouch: options.anchorAtTouch ?? null,
11347
11365
  producerWitness: options.producerWitness ?? null,
11348
- witnessedDrag: options.witnessedDrag === true,
11366
+ witnessedInput: options.witnessedInput === true,
11349
11367
  hold: options.hold ?? null,
11350
11368
  motionChangeDefinition: proofObserver.motionChangeDefinition,
11351
11369
  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 __create = Object.create;
@@ -27400,7 +27400,7 @@ function standinSourceDigest(srcDir = __sootsim_import_meta_dirname) {
27400
27400
  }
27401
27401
  return hash.digest("hex");
27402
27402
  }
27403
- var STANDIN_SOURCE_DIGEST = true ? "e98e2bb7bbe0cfe4a996e183ff2159f9bc5c6af52deefef43409fad184ad8725" : standinSourceDigest();
27403
+ var STANDIN_SOURCE_DIGEST = true ? "9187c18e7a56dd3fd47466df93a74aaf4347e40a79cd9af2fa25d24773004142" : standinSourceDigest();
27404
27404
 
27405
27405
  // src/swift-standins.ts
27406
27406
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
@@ -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/bundleGlobalFooter.ts
4
4
  function findBundleFooter(source, prefix) {
@@ -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;