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.
- package/README.md +1 -1
- package/cli/app-fonts.ts +1 -1
- package/cli/app-stubs.ts +1 -1
- package/cli/cli-release-origin.ts +1 -0
- package/cli/cli-update.ts +1 -1
- package/cli/cloud-box-artifact.ts +1 -1
- package/cli/cloud-test-tunnel.ts +1 -1
- package/cli/commands/compat.ts +1 -1
- package/cli/commands/control.ts +2 -0
- package/cli/commands/coverage.ts +1 -1
- package/cli/commands/flow.ts +8 -1
- package/cli/commands/inspect/core.ts +25 -4
- package/cli/commands/package.ts +21 -12
- package/cli/commands/shell-url.ts +8 -3
- package/cli/commands/upgrade.ts +1 -1
- package/cli/drivers/linux-browser-libs.ts +1 -1
- package/cli/outbound-endpoints.ts +4 -0
- package/cli/remote-project-bundle.ts +2 -2
- package/detox/index.ts +12 -5
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +1795 -1801
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +2 -2
- package/dist-lib/config.mjs +2 -2
- package/dist-lib/detox/index.cjs +31 -8
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +41 -33
- package/dist-lib/expo-swift-metadata.cjs +10 -2
- package/dist-lib/expo-swift-metadata.mjs +9 -2
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +276 -243
- package/dist-lib/host/fetch-proxy-handler.cjs +459 -484
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +266 -266
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +2 -2
- package/dist-lib/metro-production-bundle.mjs +2 -2
- package/dist-lib/metro.cjs +320 -336
- package/dist-lib/native-app-identity-project.cjs +134 -159
- package/dist-lib/native-app-identity-project.mjs +428 -459
- package/dist-lib/native-app-identity.cjs +18 -18
- package/dist-lib/native-app-identity.mjs +18 -18
- package/dist-lib/native-firebase-metadata.cjs +2 -2
- package/dist-lib/native-firebase-metadata.mjs +2 -2
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +32 -36
- package/dist-lib/public-origins-lib.json +135 -161
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +2 -2
- package/dist-lib/sdk.cjs +20 -2
- package/dist-lib/sdk.mjs +20 -2
- package/dist-lib/skills.cjs +587 -531
- package/dist-lib/swift-compile.cjs +23 -8
- package/dist-lib/swift-compile.mjs +23 -8
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +41 -39
- package/dist-lib/vite.cjs +745 -768
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-compat/src/stubs/native-seams/react-native-cookies.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/secureItemHostContract.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/expo-widgets-activityContract.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/map-command-channel.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/metro-bundle-metadata.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/one-native-contentContract.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/render-worker/worklet-serialize.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/worklet-wire.d.ts +1 -1
- package/dist-types/packages/peach-globals/src/globalsContract.d.ts +1 -1
- package/dist-types/packages/peach-globals/src/package-versions.d.ts +16 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/src/androidAutolinkingContract.ts +1 -1
- package/src/androidRootModuleContract.ts +1 -1
- package/src/bundle-channel.mjs +1 -1
- package/src/config.ts +1 -1
- package/src/configured-bundle-producer.ts +1 -1
- package/src/expo-swift-host.ts +34 -4
- package/src/expoKotlinContract.ts +4 -1
- package/src/expoSwiftContract.ts +18 -4
- package/src/guest-bundle.ts +1 -1
- package/src/host/dev-server-package-versions.ts +1 -1
- package/src/host/fetch-proxy-handler.ts +1 -1
- package/src/installed-native-build-options.ts +2 -2
- package/src/installed-package-versions.ts +7 -7
- package/src/metro-plugin.ts +1 -1
- package/src/metro-production-bundle.ts +1 -1
- package/src/native-app-identity.ts +1 -1
- package/src/native-firebase-metadata.ts +1 -1
- package/src/nitro-adapter.lock.json +244 -244
- package/src/nitro-superset.lock.json +4 -4
- package/src/nitroContract.ts +1 -1
- package/src/oneSdkContract.ts +1 -1
- package/src/react-native-coverage/capability-reference-resolution.ts +4 -4
- package/src/storageSnapshotContract.ts +2 -2
- package/src/swift-compile.ts +24 -7
- package/src/swift-coverage/source.ts +1 -1
- package/src/swift-distribution.lock.json +8 -8
- package/src/turbo-runtime.lock.json +18 -18
- package/src/vite-plugin-one.ts +4 -4
- package/src/vite-plugin.ts +6 -6
- package/src/bundleGlobalFooter.ts +0 -137
- package/src/packageVersionsContract.ts +0 -131
- /package/dist-types/packages/{peach-compat/src/stubs → peach-engine/src/guest}/native-evaluation-lease.d.ts +0 -0
- /package/dist-types/packages/{peach-compat → peach-globals}/src/secure-item-store.d.ts +0 -0
- /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.
|
|
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.
|
|
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.
|
|
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/
|
|
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.
|
|
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.
|
|
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
|
}
|