peachsim 0.1.2129 → 0.1.2155

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 (146) hide show
  1. package/README.md +1 -1
  2. package/cli/app-fonts.ts +1 -1
  3. package/cli/app-stubs.ts +1 -1
  4. package/cli/cli-release-origin.ts +1 -0
  5. package/cli/cli-update.ts +1 -1
  6. package/cli/cloud-box-artifact.ts +1 -1
  7. package/cli/cloud-test-tunnel.ts +1 -1
  8. package/cli/commands/compat.ts +1 -1
  9. package/cli/commands/control.ts +2 -0
  10. package/cli/commands/coverage.ts +1 -1
  11. package/cli/commands/flow.ts +8 -1
  12. package/cli/commands/inspect/core.ts +25 -4
  13. package/cli/commands/package.ts +21 -12
  14. package/cli/commands/shell-url.ts +8 -3
  15. package/cli/commands/upgrade.ts +1 -1
  16. package/cli/drivers/linux-browser-libs.ts +1 -1
  17. package/cli/outbound-endpoints.ts +4 -0
  18. package/cli/remote-project-bundle.ts +2 -2
  19. package/detox/index.ts +12 -5
  20. package/dist-lib/agent-daemon-client.cjs +1 -1
  21. package/dist-lib/agent-events.cjs +1 -1
  22. package/dist-lib/attached-projects.cjs +1 -1
  23. package/dist-lib/auth/shared-session.cjs +1 -1
  24. package/dist-lib/backend-origin.cjs +1 -1
  25. package/dist-lib/beta.cjs +1 -1
  26. package/dist-lib/beta.mjs +1 -1
  27. package/dist-lib/bridge-constants.cjs +1 -1
  28. package/dist-lib/bridge-contract-input.cjs +1 -1
  29. package/dist-lib/bridge-contract-input.mjs +1 -1
  30. package/dist-lib/bridge-contract.cjs +1 -1
  31. package/dist-lib/bridge-contract.mjs +1 -1
  32. package/dist-lib/bundle-channel.cjs +1795 -1801
  33. package/dist-lib/capture-contract.cjs +1 -1
  34. package/dist-lib/capture-contract.mjs +1 -1
  35. package/dist-lib/cloud-contract.cjs +1 -1
  36. package/dist-lib/cloud-contract.mjs +1 -1
  37. package/dist-lib/cloud-test-args.cjs +1 -1
  38. package/dist-lib/cloud-test-args.mjs +1 -1
  39. package/dist-lib/cloud.cjs +1 -1
  40. package/dist-lib/cloud.mjs +1 -1
  41. package/dist-lib/config.cjs +2 -2
  42. package/dist-lib/config.mjs +2 -2
  43. package/dist-lib/detox/index.cjs +31 -8
  44. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  45. package/dist-lib/expo-swift-bundle.cjs +41 -33
  46. package/dist-lib/expo-swift-metadata.cjs +10 -2
  47. package/dist-lib/expo-swift-metadata.mjs +9 -2
  48. package/dist-lib/home-paths.cjs +1 -1
  49. package/dist-lib/host/bridge-host.cjs +276 -243
  50. package/dist-lib/host/fetch-proxy-handler.cjs +459 -484
  51. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  52. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  53. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  54. package/dist-lib/host/websocket-proxy.cjs +1 -1
  55. package/dist-lib/index.cjs +266 -266
  56. package/dist-lib/jump-to-source-babel.cjs +1 -1
  57. package/dist-lib/jump-to-source-native.cjs +1 -1
  58. package/dist-lib/kotlin-host.cjs +1 -1
  59. package/dist-lib/menu.cjs +1 -1
  60. package/dist-lib/menu.mjs +1 -1
  61. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  62. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  63. package/dist-lib/metro-production-bundle.cjs +2 -2
  64. package/dist-lib/metro-production-bundle.mjs +2 -2
  65. package/dist-lib/metro.cjs +320 -336
  66. package/dist-lib/native-app-identity-project.cjs +134 -159
  67. package/dist-lib/native-app-identity-project.mjs +428 -459
  68. package/dist-lib/native-app-identity.cjs +18 -18
  69. package/dist-lib/native-app-identity.mjs +18 -18
  70. package/dist-lib/native-firebase-metadata.cjs +2 -2
  71. package/dist-lib/native-firebase-metadata.mjs +2 -2
  72. package/dist-lib/pdfium-raster.cjs +1 -1
  73. package/dist-lib/pdfium-raster.mjs +1 -1
  74. package/dist-lib/plist.cjs +1 -1
  75. package/dist-lib/plist.mjs +1 -1
  76. package/dist-lib/profiles.cjs +1 -1
  77. package/dist-lib/public-brand.cjs +1 -1
  78. package/dist-lib/public-origins-lib-esm.json +32 -36
  79. package/dist-lib/public-origins-lib.json +135 -161
  80. package/dist-lib/react-native-host-modules.cjs +1 -1
  81. package/dist-lib/react-native-host-modules.mjs +1 -1
  82. package/dist-lib/reap-browser.cjs +1 -1
  83. package/dist-lib/scripts/dev-server-scanner.cjs +2 -2
  84. package/dist-lib/sdk.cjs +20 -2
  85. package/dist-lib/sdk.mjs +20 -2
  86. package/dist-lib/skills.cjs +587 -531
  87. package/dist-lib/swift-compile.cjs +23 -8
  88. package/dist-lib/swift-compile.mjs +23 -8
  89. package/dist-lib/swift-package.cjs +1 -1
  90. package/dist-lib/swift-package.mjs +1 -1
  91. package/dist-lib/swift-submit.cjs +1 -1
  92. package/dist-lib/swift-submit.mjs +1 -1
  93. package/dist-lib/swift-toolchain.cjs +1 -1
  94. package/dist-lib/swift.cjs +1 -1
  95. package/dist-lib/vite-swift.cjs +41 -39
  96. package/dist-lib/vite.cjs +745 -768
  97. package/dist-lib/worklet-executable.cjs +1 -1
  98. package/dist-lib/worklet-executable.mjs +1 -1
  99. package/dist-types/packages/peach-compat/src/stubs/native-seams/react-native-cookies.d.ts +1 -1
  100. package/dist-types/packages/peach-engine/src/engine/secureItemHostContract.d.ts +1 -1
  101. package/dist-types/packages/peach-engine/src/render-worker/expo-widgets-activityContract.d.ts +1 -1
  102. package/dist-types/packages/peach-engine/src/render-worker/map-command-channel.d.ts +2 -0
  103. package/dist-types/packages/peach-engine/src/render-worker/metro-bundle-metadata.d.ts +1 -1
  104. package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +1 -1
  105. package/dist-types/packages/peach-engine/src/render-worker/one-native-contentContract.d.ts +1 -1
  106. package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +2 -2
  107. package/dist-types/packages/peach-engine/src/render-worker/worklet-serialize.d.ts +1 -1
  108. package/dist-types/packages/peach-engine/src/render-worker/worklet-wire.d.ts +1 -1
  109. package/dist-types/packages/peach-globals/src/globalsContract.d.ts +1 -1
  110. package/dist-types/packages/peach-globals/src/package-versions.d.ts +16 -0
  111. package/package.json +1 -1
  112. package/runtime-companion.json +1 -1
  113. package/src/androidAutolinkingContract.ts +1 -1
  114. package/src/androidRootModuleContract.ts +1 -1
  115. package/src/bundle-channel.mjs +1 -1
  116. package/src/config.ts +1 -1
  117. package/src/configured-bundle-producer.ts +1 -1
  118. package/src/expo-swift-host.ts +34 -4
  119. package/src/expoKotlinContract.ts +4 -1
  120. package/src/expoSwiftContract.ts +18 -4
  121. package/src/guest-bundle.ts +1 -1
  122. package/src/host/dev-server-package-versions.ts +1 -1
  123. package/src/host/fetch-proxy-handler.ts +1 -1
  124. package/src/installed-native-build-options.ts +2 -2
  125. package/src/installed-package-versions.ts +7 -7
  126. package/src/metro-plugin.ts +1 -1
  127. package/src/metro-production-bundle.ts +1 -1
  128. package/src/native-app-identity.ts +1 -1
  129. package/src/native-firebase-metadata.ts +1 -1
  130. package/src/nitro-adapter.lock.json +244 -244
  131. package/src/nitro-superset.lock.json +4 -4
  132. package/src/nitroContract.ts +1 -1
  133. package/src/oneSdkContract.ts +1 -1
  134. package/src/react-native-coverage/capability-reference-resolution.ts +4 -4
  135. package/src/storageSnapshotContract.ts +2 -2
  136. package/src/swift-compile.ts +24 -7
  137. package/src/swift-coverage/source.ts +1 -1
  138. package/src/swift-distribution.lock.json +8 -8
  139. package/src/turbo-runtime.lock.json +18 -18
  140. package/src/vite-plugin-one.ts +4 -4
  141. package/src/vite-plugin.ts +6 -6
  142. package/src/bundleGlobalFooter.ts +0 -137
  143. package/src/packageVersionsContract.ts +0 -131
  144. /package/dist-types/packages/{peach-compat/src/stubs → peach-engine/src/guest}/native-evaluation-lease.d.ts +0 -0
  145. /package/dist-types/packages/{peach-compat → peach-globals}/src/secure-item-store.d.ts +0 -0
  146. /package/dist-types/packages/{peach-compat/src/stubs → peach-kit/src}/ring-mode-state.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2129 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2155 | (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.2129 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2155 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/react-native-host-modules.ts
4
4
  var REACT_NATIVE_PASSTHROUGH_SPECIFIERS = [
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2129 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2155 | (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.2129 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2155 | (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;
@@ -194,7 +194,7 @@ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
194
194
  // ../contrast-runtime-delivery/src/version.ts
195
195
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
196
196
 
197
- // src/bundleGlobalFooter.ts
197
+ // ../peach-globals/src/bundle-global-footer.ts
198
198
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
199
199
 
200
200
  // src/is-record.ts
package/dist-lib/sdk.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2129 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2155 | (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;
@@ -413,6 +413,14 @@ function scoreLayoutTextContrast(input) {
413
413
  }
414
414
  }
415
415
  } else if (opaqueBackground) {
416
+ if (input.declaredColor && ratioOf(input.declaredColor, opaqueBackground) >= 1.5) {
417
+ return {
418
+ ratio: null,
419
+ required,
420
+ background: hex(opaqueBackground),
421
+ reason: "covered or clipped here; measure it where it is visible"
422
+ };
423
+ }
416
424
  consider(opaqueBackground, opaqueBackground);
417
425
  }
418
426
  if (!bestForeground || !bestBackground || !Number.isFinite(bestRatio)) {
@@ -628,6 +636,15 @@ function layoutGetNativeEval(opts = {}) {
628
636
  }
629
637
  const normal = await capture(false)
630
638
  const background = await capture(true)
639
+ const colorProbe = document.createElement('canvas').getContext('2d')
640
+ const rgbOf = (color) => {
641
+ if (!colorProbe || !color) return undefined
642
+ colorProbe.clearRect(0, 0, 1, 1)
643
+ colorProbe.fillStyle = color
644
+ colorProbe.fillRect(0, 0, 1, 1)
645
+ const pixel = colorProbe.getImageData(0, 0, 1, 1).data
646
+ return pixel[3] === 255 ? [pixel[0], pixel[1], pixel[2]] : undefined
647
+ }
631
648
  for (const element of textElements) {
632
649
  element.contrast = scoreContrast({
633
650
  normal,
@@ -635,6 +652,7 @@ function layoutGetNativeEval(opts = {}) {
635
652
  box: element.box,
636
653
  fontSize: element.fontSize,
637
654
  fontWeight: element.fontWeight,
655
+ declaredColor: rgbOf(element.color),
638
656
  })
639
657
  }
640
658
  return elements
@@ -709,7 +727,7 @@ function formatLayoutElements(elements, opts) {
709
727
  if (el.color) parts.push(`color:${el.color}`);
710
728
  if (el.bg) parts.push(`bg:${el.bg}`);
711
729
  if (el.contrast) {
712
- const score = el.contrast.ratio == null ? `?/${el.contrast.required}` : `${el.contrast.ratio}/${el.contrast.required}${el.contrast.ratio < el.contrast.required && !el.disabled ? " FAIL" : ""}`;
730
+ const score = el.contrast.ratio == null ? `?/${el.contrast.required}${el.contrast.reason ? ` (${el.contrast.reason})` : ""}` : `${el.contrast.ratio}/${el.contrast.required}${el.contrast.ratio < el.contrast.required && !el.disabled ? " FAIL" : ""}`;
713
731
  parts.push(`contrast:${score}`);
714
732
  if (el.contrast.background) parts.push(`on:${el.contrast.background}`);
715
733
  }
package/dist-lib/sdk.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2129 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2155 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  var __defProp = Object.defineProperty;
3
3
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
4
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
@@ -300,6 +300,14 @@ function scoreLayoutTextContrast(input) {
300
300
  }
301
301
  }
302
302
  } else if (opaqueBackground) {
303
+ if (input.declaredColor && ratioOf(input.declaredColor, opaqueBackground) >= 1.5) {
304
+ return {
305
+ ratio: null,
306
+ required,
307
+ background: hex(opaqueBackground),
308
+ reason: "covered or clipped here; measure it where it is visible"
309
+ };
310
+ }
303
311
  consider(opaqueBackground, opaqueBackground);
304
312
  }
305
313
  if (!bestForeground || !bestBackground || !Number.isFinite(bestRatio)) {
@@ -515,6 +523,15 @@ function layoutGetNativeEval(opts = {}) {
515
523
  }
516
524
  const normal = await capture(false)
517
525
  const background = await capture(true)
526
+ const colorProbe = document.createElement('canvas').getContext('2d')
527
+ const rgbOf = (color) => {
528
+ if (!colorProbe || !color) return undefined
529
+ colorProbe.clearRect(0, 0, 1, 1)
530
+ colorProbe.fillStyle = color
531
+ colorProbe.fillRect(0, 0, 1, 1)
532
+ const pixel = colorProbe.getImageData(0, 0, 1, 1).data
533
+ return pixel[3] === 255 ? [pixel[0], pixel[1], pixel[2]] : undefined
534
+ }
518
535
  for (const element of textElements) {
519
536
  element.contrast = scoreContrast({
520
537
  normal,
@@ -522,6 +539,7 @@ function layoutGetNativeEval(opts = {}) {
522
539
  box: element.box,
523
540
  fontSize: element.fontSize,
524
541
  fontWeight: element.fontWeight,
542
+ declaredColor: rgbOf(element.color),
525
543
  })
526
544
  }
527
545
  return elements
@@ -596,7 +614,7 @@ function formatLayoutElements(elements, opts) {
596
614
  if (el.color) parts.push(`color:${el.color}`);
597
615
  if (el.bg) parts.push(`bg:${el.bg}`);
598
616
  if (el.contrast) {
599
- const score = el.contrast.ratio == null ? `?/${el.contrast.required}` : `${el.contrast.ratio}/${el.contrast.required}${el.contrast.ratio < el.contrast.required && !el.disabled ? " FAIL" : ""}`;
617
+ const score = el.contrast.ratio == null ? `?/${el.contrast.required}${el.contrast.reason ? ` (${el.contrast.reason})` : ""}` : `${el.contrast.ratio}/${el.contrast.required}${el.contrast.ratio < el.contrast.required && !el.disabled ? " FAIL" : ""}`;
600
618
  parts.push(`contrast:${score}`);
601
619
  if (el.contrast.background) parts.push(`on:${el.contrast.background}`);
602
620
  }