peachsim 0.1.2524 → 0.1.2526
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/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 +2 -2
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +5 -5
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +3 -3
- package/dist-lib/bundle-channel.cjs +17 -13
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +3 -3
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +3 -3
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +2 -2
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +7 -7
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +5 -5
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/esm-chunks/{acorn-KGGCJFIR.mjs → acorn-MLOAECBL.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-DNZYEDGM.mjs → chunk-3DLIY3OR.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-BBY6YF2V.mjs → chunk-3YOJJS7H.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-KJAPQJ5M.mjs → chunk-4YESM4A4.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-HELZYOAQ.mjs → chunk-E4FKWUVQ.mjs} +19 -16
- package/dist-lib/esm-chunks/{chunk-PNDHRQGK.mjs → chunk-ELIHRIP5.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-RDFTEYEW.mjs → chunk-GEGOS3MM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-FBPD5WHL.mjs → chunk-GIUFUP55.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-RJYRT37A.mjs → chunk-JYNVTXYE.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-BSX2F6HM.mjs → chunk-NO53545F.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-2S5NWM2D.mjs → chunk-RNUQNP6B.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-NOGDYYR2.mjs → chunk-RXKLBKJB.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-262EA5FT.mjs → chunk-SA2WMBLR.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-JERPO36D.mjs → chunk-SH34KLDY.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-KYBUNC3L.mjs → chunk-U3BH3P2L.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-EZFXQPBY.mjs → chunk-U53XFQUP.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-4NHN4XAI.mjs → chunk-UAH5U6QS.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-OWOGZY5L.mjs → chunk-UCFTC3LY.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-Z3AIA2Y5.mjs → chunk-UGPLKVFR.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-Q77UHYXP.mjs → chunk-WJN64EWE.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-4QJCL72M.mjs → chunk-XS4Z6ZQU.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-RT5ZCVTJ.mjs → chunk-YZ5KXQE6.mjs} +5 -5
- package/dist-lib/esm-chunks/{metro-layout-parser-M5DV4RRC.mjs → metro-layout-parser-DYOAWVYB.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-NQOPJV3A.mjs → swift-package-prebuilt-DHTYWUTJ.mjs} +10 -10
- package/dist-lib/esm-chunks/{swift-sdk-app-module-HC5BK4XH.mjs → swift-sdk-app-module-G5IBBA2Y.mjs} +13 -13
- package/dist-lib/esm-chunks/{swift-sdk-image-M22DMO6M.mjs → swift-sdk-image-PK3WCN5G.mjs} +13 -13
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-UUTKNIC6.mjs → swift-sdk-image-producer-YU7MG6MN.mjs} +4 -4
- package/dist-lib/expo-swift-bundle.cjs +16 -12
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +7 -7
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +17 -13
- package/dist-lib/host/fetch-proxy-handler.cjs +4 -4
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +3 -3
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +3 -3
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +4 -4
- package/dist-lib/native-app-identity-project.cjs +2 -2
- package/dist-lib/native-app-identity-project.mjs +15 -15
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +6 -6
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +3 -3
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +2 -2
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +3 -3
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +79 -79
- package/dist-lib/public-origins-lib.json +69 -69
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +2 -2
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +7 -7
- package/dist-lib/skills.cjs +17 -13
- package/dist-lib/swift-compile.cjs +8 -5
- package/dist-lib/swift-compile.mjs +10 -10
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +3 -3
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +6 -6
- package/dist-lib/swift-svg-raster.cjs +1 -1
- package/dist-lib/swift-svg-raster.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
- package/dist-lib/vendor/@xmldom/xmldom.cjs +1 -1
- package/dist-lib/vendor/acorn.cjs +1 -1
- package/dist-lib/vendor/bplist-parser.cjs +1 -1
- package/dist-lib/vendor/ignore.cjs +1 -1
- package/dist-lib/vendor/magic-string.cjs +1 -1
- package/dist-lib/vendor/plist.cjs +1 -1
- package/dist-lib/vendor/smol-toml.cjs +1 -1
- package/dist-lib/vendor/stream-json.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
- package/dist-lib/vendor/sucrase.cjs +1 -1
- package/dist-lib/vendor/terser.cjs +1 -1
- package/dist-lib/vendor/valibot.cjs +1 -1
- package/dist-lib/vendor/ws.cjs +1 -1
- package/dist-lib/vendor/zod.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +3 -3
- package/dist-types/packages/peach-engine/src/components/native-ui/context-menu-types.d.ts +0 -3
- package/dist-types/packages/peach-engine/src/engine/canvaskit-renderer.d.ts +4 -1
- package/dist-types/packages/peach-engine/src/engine/native-paint-contract.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/compositor-gpu.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/webgpu-frame-transaction.d.ts +1 -0
- package/dist-types/packages/peach-kit/src/ios-tint.d.ts +1 -1
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/src/conformance-comparison-contract.ts +10 -15
- package/src/conformance-pixel-comparison.ts +6 -2
- package/src/expo-workspace-exclusion.ts +1 -0
- package/src/swift-compile.ts +6 -3
- package/src/swift-host.ts +5 -3
- package/src/swift-submit.ts +2 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getDeviceByFramebufferSize } from './device-catalog'
|
|
2
2
|
|
|
3
|
-
export const CONFORMANCE_COMPARISON_VERSION = 'content-band-local-r1-flat-shade-
|
|
4
|
-
export const CONFORMANCE_PIXEL_THRESHOLD = 0.
|
|
3
|
+
export const CONFORMANCE_COMPARISON_VERSION = 'content-band-local-r1-flat-shade-v6'
|
|
4
|
+
export const CONFORMANCE_PIXEL_THRESHOLD = 0.05
|
|
5
5
|
export const CONFORMANCE_POSITIONAL_RADIUS = 1
|
|
6
6
|
export const CONFORMANCE_MAX_DIFF_PERCENT = 1
|
|
7
7
|
export const CONFORMANCE_MAX_DIFF_RATIO = CONFORMANCE_MAX_DIFF_PERCENT / 100
|
|
@@ -15,15 +15,10 @@ export const CONFORMANCE_INCLUDE_ANTIALIASING = true
|
|
|
15
15
|
export const CONFORMANCE_FLAT_SHADE_TILE = 8
|
|
16
16
|
// a tile counts as flat when no channel varies by more than this within it.
|
|
17
17
|
export const CONFORMANCE_FLAT_SHADE_FLATNESS = 2
|
|
18
|
-
//
|
|
19
|
-
//
|
|
20
|
-
//
|
|
21
|
-
|
|
22
|
-
// blindness this rule exists to close, and 16 fails that while leaving a small
|
|
23
|
-
// offset alone. a case that has been brought close enough to want the tighter
|
|
24
|
-
// bar sets its own `flatShadeTolerance` in comparison-baseline.json; raising the
|
|
25
|
-
// default instead would put every other case into a regrade nobody chose.
|
|
26
|
-
export const CONFORMANCE_FLAT_SHADE_TOLERANCE = 16
|
|
18
|
+
// the 8-level tolerance catches white against grouped light gray while
|
|
19
|
+
// absorbing smaller flat-fill differences. existing cases have explicit
|
|
20
|
+
// temporary ceilings in comparison-baseline.json, tracked in t-mwrtc3is-ws90.
|
|
21
|
+
export const CONFORMANCE_FLAT_SHADE_TOLERANCE = 8
|
|
27
22
|
|
|
28
23
|
// a tolerance is a budget for a difference that can legitimately exist. between
|
|
29
24
|
// two rnx captures none can: three runs at one code state produce byte-identical
|
|
@@ -58,14 +53,14 @@ export const CONFORMANCE_DEFAULT_COMPARISON_SETTINGS = {
|
|
|
58
53
|
flatShadeTolerance: CONFORMANCE_FLAT_SHADE_TOLERANCE,
|
|
59
54
|
} satisfies ConformanceComparisonSettings
|
|
60
55
|
|
|
61
|
-
if (CONFORMANCE_PIXEL_THRESHOLD > 0.
|
|
62
|
-
throw new Error('published conformance pixel threshold may not exceed 0.
|
|
56
|
+
if (CONFORMANCE_PIXEL_THRESHOLD > 0.05) {
|
|
57
|
+
throw new Error('published conformance pixel threshold may not exceed 0.05')
|
|
63
58
|
}
|
|
64
59
|
if (CONFORMANCE_POSITIONAL_RADIUS > 1) {
|
|
65
60
|
throw new Error('published conformance positional radius may not exceed 1')
|
|
66
61
|
}
|
|
67
|
-
if (CONFORMANCE_FLAT_SHADE_TOLERANCE >
|
|
68
|
-
throw new Error('published conformance flat-shade tolerance may not exceed
|
|
62
|
+
if (CONFORMANCE_FLAT_SHADE_TOLERANCE > 8) {
|
|
63
|
+
throw new Error('published conformance flat-shade tolerance may not exceed 8')
|
|
69
64
|
}
|
|
70
65
|
|
|
71
66
|
export function conformancePixelmatchOptions(
|
|
@@ -72,7 +72,7 @@ function colorsMatch(
|
|
|
72
72
|
|
|
73
73
|
export function compareConformancePixels(options: {
|
|
74
74
|
diff?: ConformancePixelData
|
|
75
|
-
flatShadeTolerance: number
|
|
75
|
+
flatShadeTolerance: number | false
|
|
76
76
|
height: number
|
|
77
77
|
includeAA: boolean
|
|
78
78
|
pixelThreshold: number
|
|
@@ -179,7 +179,11 @@ export function compareConformancePixels(options: {
|
|
|
179
179
|
// difference no matter how small the per-pixel delta is. mark the whole tile.
|
|
180
180
|
const shadeFailed = new Uint8Array(options.width * options.height)
|
|
181
181
|
const tile = CONFORMANCE_FLAT_SHADE_TILE
|
|
182
|
-
for (
|
|
182
|
+
for (
|
|
183
|
+
let tileY = region.yStart;
|
|
184
|
+
options.flatShadeTolerance !== false && tileY + tile <= region.yEnd;
|
|
185
|
+
tileY += tile
|
|
186
|
+
) {
|
|
183
187
|
for (let tileX = 0; tileX + tile <= options.width; tileX += tile) {
|
|
184
188
|
// each flat lane varies by at most the flatness limit from its first pixel.
|
|
185
189
|
// if even both extremes stay within tolerance, this tile cannot fail shade.
|
|
@@ -79,6 +79,7 @@ export async function workspaceExclusion(
|
|
|
79
79
|
parts.includes('.git') ||
|
|
80
80
|
parts.includes('.expo') ||
|
|
81
81
|
parts.includes('.one') ||
|
|
82
|
+
parts.some((name) => name === '.beast-gate' || name.startsWith('.beast-gate-')) ||
|
|
82
83
|
(parts.includes('ios') && (parts.includes('Pods') || parts.includes('build')))
|
|
83
84
|
)
|
|
84
85
|
}
|
package/src/swift-compile.ts
CHANGED
|
@@ -7899,7 +7899,8 @@ function stageFrameworkSource(
|
|
|
7899
7899
|
if (!slot) return moduleRoot
|
|
7900
7900
|
const staged = path.join(slot, 'source')
|
|
7901
7901
|
const stagedModule = path.join(staged, 'packages', path.basename(moduleRoot))
|
|
7902
|
-
|
|
7902
|
+
const hadKey = swiftFrameworkSlotKey(slot)
|
|
7903
|
+
if (hadKey !== frameworkKey) {
|
|
7903
7904
|
// an interrupted restage must not look like a finished one
|
|
7904
7905
|
rmSync(path.join(slot, SWIFT_FRAMEWORK_SLOT_KEY), { force: true })
|
|
7905
7906
|
const moduleRestructured = mirrorTree(moduleRoot, stagedModule, '.build')
|
|
@@ -7909,9 +7910,11 @@ function stageFrameworkSource(
|
|
|
7909
7910
|
)
|
|
7910
7911
|
// swiftpm's cached build description misses a removed or renamed source
|
|
7911
7912
|
// and plans its stale path as a missing input; without it swiftpm replans.
|
|
7912
|
-
if (moduleRestructured || sdkRestructured) {
|
|
7913
|
+
if (moduleRestructured || sdkRestructured || hadKey === null) {
|
|
7913
7914
|
rmSync(path.join(slot, 'release.yaml'), { force: true })
|
|
7914
|
-
rmSync(path.join(slot, 'release', 'description.json'), {
|
|
7915
|
+
rmSync(path.join(slot, WASM_TRIPLE, 'release', 'description.json'), {
|
|
7916
|
+
force: true,
|
|
7917
|
+
})
|
|
7915
7918
|
}
|
|
7916
7919
|
// producer inputs outside the mirrored trees also belong to the snapshot.
|
|
7917
7920
|
for (const file of swiftModuleInputFiles(moduleRoot)) {
|
package/src/swift-host.ts
CHANGED
|
@@ -1513,6 +1513,7 @@ async function buildXcodeLayout(root: string): Promise<XcodeLayout | null> {
|
|
|
1513
1513
|
const nativeHeaders = [...nativeFiles.keys()].filter((file) =>
|
|
1514
1514
|
/\.(?:h|hh|hpp|hxx|pch|inc|inl|modulemap)$/.test(file),
|
|
1515
1515
|
)
|
|
1516
|
+
const headers = nativeHeaders.map(relative).sort()
|
|
1516
1517
|
const nativePath = (file: string, directory = app.rootDir) => {
|
|
1517
1518
|
const requested = path.resolve(directory, file)
|
|
1518
1519
|
// module maps resolve relative headers beside the requested symlink.
|
|
@@ -1572,7 +1573,7 @@ async function buildXcodeLayout(root: string): Promise<XcodeLayout | null> {
|
|
|
1572
1573
|
{
|
|
1573
1574
|
name: frameworkNames.get(target) ?? target.moduleName,
|
|
1574
1575
|
deploymentTarget: target.iosDeploymentTarget,
|
|
1575
|
-
headers
|
|
1576
|
+
headers,
|
|
1576
1577
|
publicHeaders: settings.publicHeaders.map(relative),
|
|
1577
1578
|
flattensPublicHeaders: settings.flattensPublicHeaders,
|
|
1578
1579
|
bridgingHeader: settings.bridgingHeader
|
|
@@ -1662,14 +1663,15 @@ async function buildXcodeLayout(root: string): Promise<XcodeLayout | null> {
|
|
|
1662
1663
|
nativeTargets.push({
|
|
1663
1664
|
name: target.name,
|
|
1664
1665
|
deploymentTarget: settings.deploymentTarget,
|
|
1665
|
-
headers
|
|
1666
|
+
headers,
|
|
1666
1667
|
publicHeaders: nativeHeaders
|
|
1667
1668
|
.filter(
|
|
1668
1669
|
(file) =>
|
|
1669
1670
|
file.startsWith(`${settings.publicHeaders}${path.sep}`) &&
|
|
1670
1671
|
/\.(h|hh|hpp|hxx)$/.test(file),
|
|
1671
1672
|
)
|
|
1672
|
-
.map(relative)
|
|
1673
|
+
.map(relative)
|
|
1674
|
+
.sort(),
|
|
1673
1675
|
flattensPublicHeaders: false,
|
|
1674
1676
|
bridgingHeader: null,
|
|
1675
1677
|
prefixHeader: null,
|
package/src/swift-submit.ts
CHANGED
|
@@ -192,7 +192,8 @@ export const MAX_SWIFT_COMPILE_IMAGE_TOTAL_BYTES = 16 * 1024 * 1024
|
|
|
192
192
|
// 111: `peach.dyld_symbol_v1` answers dlsym from the module's range-read symbol table.
|
|
193
193
|
// 112: the sdk binding stores memory fixups as sorted varint deltas.
|
|
194
194
|
// 113: the sdk binding names later data in groups, each sdk part listing the groups it needs.
|
|
195
|
-
|
|
195
|
+
// 114: UIImage pixels without a passed-through jpeg or png register premultiplied rgba through `peach.bitmap_register_rgba`.
|
|
196
|
+
export const SWIFT_HOST_ABI = 114
|
|
196
197
|
|
|
197
198
|
export interface SwiftImageUpload {
|
|
198
199
|
/** the raster file picked for the asset (has the extension). */
|