peachsim 0.1.2608 → 0.1.2610
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/cli/commands/perf-native.ts +120 -6
- package/cli/drivers/playwright-provisioning.ts +4 -1
- 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 +60485 -60177
- 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-4QDEL7IO.mjs → acorn-L2SFCOHG.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-4C57RZXG.mjs → chunk-2LJTZ2KG.mjs} +17 -328
- package/dist-lib/esm-chunks/{chunk-X6CONUT6.mjs → chunk-42NDD4R7.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-F724FZHJ.mjs → chunk-73NIGS7D.mjs} +1490 -3950
- package/dist-lib/esm-chunks/{chunk-KNCWQQZG.mjs → chunk-CUBTZPSZ.mjs} +1 -1
- package/dist-lib/esm-chunks/chunk-EU5WMP5O.mjs +322 -0
- package/dist-lib/esm-chunks/{chunk-NXG27NGU.mjs → chunk-EYSNLE5V.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-IKFFQXJN.mjs → chunk-FP447MCW.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-JIW4PICV.mjs → chunk-HMTSU22Q.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-7KU5ROOE.mjs → chunk-KTAGV5U6.mjs} +14 -12
- package/dist-lib/esm-chunks/{chunk-3DUFAH5J.mjs → chunk-MJP4WOSX.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-H3QASOKR.mjs → chunk-MK4DOEDN.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-ZFI5OF6U.mjs → chunk-N3M5KT33.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-F2FHFORX.mjs → chunk-N7XU2WWO.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-UHYHEJ3N.mjs → chunk-RN73P2DY.mjs} +34 -28
- package/dist-lib/esm-chunks/{chunk-VICI67J5.mjs → chunk-VDLPNJ6P.mjs} +1 -1
- package/dist-lib/esm-chunks/chunk-W3LNUIUA.mjs +2655 -0
- package/dist-lib/esm-chunks/{chunk-R25MOOFS.mjs → chunk-WBQFHIGS.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-YBMBAXAZ.mjs → chunk-WZHEW7Z7.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-RTXAZMTP.mjs → chunk-X74N3K5N.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-IJX7PBNG.mjs → chunk-XN74REO2.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-RZLGVWHK.mjs → chunk-YLUD2UET.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-BEWJL2LY.mjs → chunk-YVLXYLNV.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-W5EHCHDD.mjs → chunk-YYGSN3BN.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-GPPOU5DO.mjs → chunk-ZZB2LFYV.mjs} +1 -1
- package/dist-lib/esm-chunks/{metro-layout-parser-YWPJI3L6.mjs → metro-layout-parser-VDPXJ7LW.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-MWTLCMQD.mjs → swift-package-prebuilt-HRPDLN2P.mjs} +14 -11
- package/dist-lib/esm-chunks/{swift-sdk-app-module-PF5QMK5X.mjs → swift-sdk-app-module-5DOGMU3M.mjs} +16 -14
- package/dist-lib/esm-chunks/{swift-sdk-image-5IMAACRF.mjs → swift-sdk-image-W3UU4H4L.mjs} +16 -14
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-JPIJI25U.mjs → swift-sdk-image-producer-OJWD6ZOH.mjs} +8 -6
- package/dist-lib/expo-swift-bundle.cjs +42524 -42216
- 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 +43716 -43244
- package/dist-lib/host/fetch-proxy-handler.cjs +670 -645
- 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 +1499 -2889
- package/dist-lib/native-app-identity-project.mjs +317 -339
- 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 +166 -154
- package/dist-lib/public-origins-lib.json +141 -198
- 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 +8 -8
- package/dist-lib/skills.cjs +38979 -38507
- package/dist-lib/swift-compile.cjs +12239 -12121
- package/dist-lib/swift-compile.mjs +36 -33
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +3 -3
- package/dist-lib/swift-submit.cjs +1 -1
- 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/acorn.cjs +1 -1
- package/dist-lib/vendor/magic-string.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/ios/apps/canvas-map-data.d.ts +13 -0
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +3 -0
- package/package.json +1 -1
- package/src/agent-prompt.ts +15 -2
- package/src/binaryen.lock.json +3 -3
- package/src/genrule-archives.ts +5 -2
- package/src/native-framework-compiler.ts +1 -1
- package/src/native-static-libraries.ts +2 -3
- package/src/native-swift-slices.ts +1 -1
- package/src/nitro-dependencies.ts +3 -7
- package/src/one-native-controls-package.ts +165 -11
- package/src/oneNativeControlsContract.ts +1 -0
- package/src/rive-runtime-dependencies.ts +1 -2
- package/src/swift-compile.ts +165 -1796
- package/src/swift-compiler-digest.ts +2 -0
- package/src/swift-distribution.ts +39 -15
- package/src/swift-objc-compile.ts +194 -32
- package/src/swift-package-manifest.ts +6 -29
- package/src/swift-packages.ts +6 -14
- package/src/swift-sdk-surface.ts +1811 -0
- package/src/swift-standin-digest.ts +28 -5
- package/src/swift-standins.ts +16 -19
- package/src/swift-wasm-archive.ts +200 -0
- package/src/swift-wasm-prune.ts +3 -93
- package/src/swift-wasm64-native-source.ts +4 -2
- package/src/swiftWasm64ConfigContract.ts +10 -0
- package/src/wasm-optimize.ts +18 -14
- package/src/xcode-project.ts +2 -4
|
@@ -63,6 +63,7 @@ type NativeProfileReport = {
|
|
|
63
63
|
worstStall: Record<string, unknown> | null
|
|
64
64
|
slowBridgeCalls: Record<string, unknown>[]
|
|
65
65
|
slowBridgeTotal: number
|
|
66
|
+
spans: Record<string, unknown>[]
|
|
66
67
|
files: {
|
|
67
68
|
cpuprofile: string
|
|
68
69
|
trace: string
|
|
@@ -766,6 +767,7 @@ function formatLocation(url: string, line: number): string {
|
|
|
766
767
|
function printSummary(
|
|
767
768
|
report: NativeProfileReport,
|
|
768
769
|
outFiles: { cpuprofile: string; trace: string; summary: string },
|
|
770
|
+
filter: SpanFilter,
|
|
769
771
|
): void {
|
|
770
772
|
console.log(
|
|
771
773
|
`One Profiler: ${report.bundleId || 'app'} (build ${report.build}, route ${report.route})`,
|
|
@@ -850,12 +852,92 @@ function printSummary(
|
|
|
850
852
|
}
|
|
851
853
|
}
|
|
852
854
|
|
|
855
|
+
printSpanGroups(groupSpans(report.spans, filter))
|
|
856
|
+
|
|
853
857
|
console.log('\nArtifacts:')
|
|
854
858
|
console.log(` cpuprofile: ${outFiles.cpuprofile}`)
|
|
855
859
|
console.log(` trace: ${outFiles.trace}`)
|
|
856
860
|
console.log(` summary: ${outFiles.summary}`)
|
|
857
861
|
}
|
|
858
862
|
|
|
863
|
+
type SpanFilter = { kinds: string[]; route?: string; target?: string }
|
|
864
|
+
|
|
865
|
+
type SpanGroup = {
|
|
866
|
+
kind: string
|
|
867
|
+
target: string
|
|
868
|
+
spans: number
|
|
869
|
+
durationMs: number
|
|
870
|
+
fpsP50: number
|
|
871
|
+
fpsP95: number
|
|
872
|
+
droppedFrames: number
|
|
873
|
+
longestFrameMs: number
|
|
874
|
+
worstStall: { durationMs: number; phase: string; route: string } | null
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
// the value that share of spans reached or beat, so fps p95 is the slow tail
|
|
878
|
+
function percentileFloor(values: number[], share: number): number {
|
|
879
|
+
const sorted = [...values].sort((a, b) => b - a)
|
|
880
|
+
return sorted[Math.min(sorted.length - 1, Math.ceil(share * sorted.length) - 1)] ?? 0
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
// groups interaction spans by kind and target; idle windows group by route
|
|
884
|
+
function groupSpans(spans: Record<string, unknown>[], filter: SpanFilter): SpanGroup[] {
|
|
885
|
+
const groups = new Map<string, Record<string, unknown>[]>()
|
|
886
|
+
for (const span of spans) {
|
|
887
|
+
const kind = asStr(span.kind)
|
|
888
|
+
const route = asStr(span.route)
|
|
889
|
+
const target = kind === 'idle' ? route : asStr(span.target) || route
|
|
890
|
+
if (filter.kinds.length && !filter.kinds.includes(kind)) continue
|
|
891
|
+
if (filter.route && !route.includes(filter.route)) continue
|
|
892
|
+
if (filter.target && !target.includes(filter.target)) continue
|
|
893
|
+
const key = `${kind}\u0000${target}`
|
|
894
|
+
groups.set(key, [...(groups.get(key) ?? []), span])
|
|
895
|
+
}
|
|
896
|
+
return [...groups.entries()]
|
|
897
|
+
.map(([key, rows]) => {
|
|
898
|
+
const [kind = '', target = ''] = key.split('\u0000')
|
|
899
|
+
const fps = rows.map((row) => asNum(row.fps))
|
|
900
|
+
let worstStall: SpanGroup['worstStall'] = null
|
|
901
|
+
for (const row of rows) {
|
|
902
|
+
const stall = isRecord(row.worstStall) ? row.worstStall : null
|
|
903
|
+
if (stall && asNum(stall.durationMs) > (worstStall?.durationMs ?? 0))
|
|
904
|
+
worstStall = {
|
|
905
|
+
durationMs: asNum(stall.durationMs),
|
|
906
|
+
phase: asStr(stall.phase),
|
|
907
|
+
route: asStr(row.route),
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
return {
|
|
911
|
+
kind,
|
|
912
|
+
target,
|
|
913
|
+
spans: rows.length,
|
|
914
|
+
durationMs: rows.reduce((sum, row) => sum + asNum(row.durationMs), 0),
|
|
915
|
+
fpsP50: percentileFloor(fps, 0.5),
|
|
916
|
+
fpsP95: percentileFloor(fps, 0.95),
|
|
917
|
+
droppedFrames: rows.reduce((sum, row) => sum + asNum(row.droppedFrames), 0),
|
|
918
|
+
longestFrameMs: Math.max(0, ...rows.map((row) => asNum(row.longestFrameMs))),
|
|
919
|
+
worstStall,
|
|
920
|
+
}
|
|
921
|
+
})
|
|
922
|
+
.sort((a, b) => a.kind.localeCompare(b.kind) || b.durationMs - a.durationMs)
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
function printSpanGroups(groups: SpanGroup[]): void {
|
|
926
|
+
if (!groups.length) {
|
|
927
|
+
console.log('\nInteractions: none')
|
|
928
|
+
return
|
|
929
|
+
}
|
|
930
|
+
console.log('\nInteractions (fps p95 is the rate 95% of spans reached):')
|
|
931
|
+
for (const group of groups) {
|
|
932
|
+
const stall = group.worstStall
|
|
933
|
+
? ` | worst stall ${group.worstStall.durationMs.toFixed(1)} ms ${group.worstStall.phase}`
|
|
934
|
+
: ''
|
|
935
|
+
console.log(
|
|
936
|
+
` ${group.kind.padEnd(8)} ${group.target.padEnd(32)} ${String(group.spans).padStart(4)}x ${(group.durationMs / 1000).toFixed(1).padStart(6)} s | fps p50 ${group.fpsP50.toFixed(1).padStart(5)} p95 ${group.fpsP95.toFixed(1).padStart(5)} | ${group.droppedFrames} dropped | longest ${group.longestFrameMs.toFixed(1)} ms${stall}`,
|
|
937
|
+
)
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
|
|
859
941
|
function printHelp(): void {
|
|
860
942
|
console.log(`
|
|
861
943
|
peach perf native: profile a running One v3 iOS simulator or device app
|
|
@@ -866,6 +948,7 @@ usage:
|
|
|
866
948
|
peach perf native --overlay <on|off|toggle> [--bundle-id <id>] [--udid <sim-udid>]
|
|
867
949
|
peach perf native --start|--stop [--bundle-id <id>] [--udid <sim-udid>] [-o <prefix>]
|
|
868
950
|
peach perf native --telemetry <jsonl> --source-maps <path> [-o <file>]
|
|
951
|
+
peach perf native --telemetry <jsonl> [--kind <kinds>] [--route <text>] [--target <text>] [--json]
|
|
869
952
|
|
|
870
953
|
options:
|
|
871
954
|
--bundle-id <id> App bundle identifier (auto-detected if one user app is running on simulator)
|
|
@@ -875,7 +958,11 @@ options:
|
|
|
875
958
|
--duration <sec> Capture window in seconds (default: 5)
|
|
876
959
|
-o, --output <path> Output file prefix or directory (default: /tmp/one-profile-<ts>)
|
|
877
960
|
--source-maps <path> Path to OneJavaScriptSourceMaps-<uuid>.json or build directory for AoT symbolication
|
|
878
|
-
--telemetry <jsonl>
|
|
961
|
+
--telemetry <jsonl> With --source-maps, symbolicate saved rolling snapshots and print JSON; alone, group their interaction spans
|
|
962
|
+
--kind <kinds> Show interaction spans of these kinds (comma separated: scroll,navigate,tap,type,sheet,idle)
|
|
963
|
+
--route <text> Show interaction spans whose route contains text
|
|
964
|
+
--target <text> Show interaction spans whose target contains text
|
|
965
|
+
--interactions <mode> Which interactions record spans: auto (default), explicit or off
|
|
879
966
|
--overlay <mode> Toggle floating overlay: on, off, or toggle
|
|
880
967
|
--start Start profiling without waiting
|
|
881
968
|
--stop Stop an active profile and pull artifacts
|
|
@@ -962,6 +1049,7 @@ function parseNativeReport(value: unknown): NativeProfileReport | undefined {
|
|
|
962
1049
|
worstStall: isRecord(value.worstStall) ? value.worstStall : null,
|
|
963
1050
|
slowBridgeCalls: records(value.slowBridgeCalls),
|
|
964
1051
|
slowBridgeTotal: asNum(value.slowBridgeTotal),
|
|
1052
|
+
spans: records(value.spans),
|
|
965
1053
|
files: {
|
|
966
1054
|
cpuprofile: asStr(files.cpuprofile),
|
|
967
1055
|
trace: asStr(files.trace),
|
|
@@ -1006,12 +1094,36 @@ export async function runPerfNative(args: string[]): Promise<number> {
|
|
|
1006
1094
|
start: { type: 'boolean', default: false },
|
|
1007
1095
|
stop: { type: 'boolean', default: false },
|
|
1008
1096
|
json: { type: 'boolean', default: false },
|
|
1097
|
+
kind: { type: 'string' },
|
|
1098
|
+
route: { type: 'string' },
|
|
1099
|
+
target: { type: 'string' },
|
|
1100
|
+
interactions: { type: 'string' },
|
|
1009
1101
|
},
|
|
1010
1102
|
strict: true,
|
|
1011
1103
|
})
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1104
|
+
const filter: SpanFilter = {
|
|
1105
|
+
kinds: values.kind ? values.kind.split(',').filter(Boolean) : [],
|
|
1106
|
+
route: values.route,
|
|
1107
|
+
target: values.target,
|
|
1108
|
+
}
|
|
1109
|
+
if (values.interactions && !['auto', 'explicit', 'off'].includes(values.interactions))
|
|
1110
|
+
throw new Error('--interactions must be auto, explicit or off')
|
|
1111
|
+
|
|
1112
|
+
if (values.telemetry && !values['source-maps']) {
|
|
1113
|
+
const spans = readFileSync(values.telemetry, 'utf8')
|
|
1114
|
+
.split('\n')
|
|
1115
|
+
.filter((line) => line.trim())
|
|
1116
|
+
.flatMap((line) => {
|
|
1117
|
+
const row: unknown = JSON.parse(line)
|
|
1118
|
+
const snapshot = isRecord(row) && isRecord(row.details) ? row.details : row
|
|
1119
|
+
return isRecord(snapshot) ? records(snapshot.spans) : []
|
|
1120
|
+
})
|
|
1121
|
+
const groups = groupSpans(spans, filter)
|
|
1122
|
+
if (values.json) console.log(JSON.stringify(groups, null, 2))
|
|
1123
|
+
else printSpanGroups(groups)
|
|
1124
|
+
return 0
|
|
1125
|
+
}
|
|
1126
|
+
if (values.telemetry && values['source-maps']) {
|
|
1015
1127
|
const named = symbolicateTelemetry(values.telemetry, values['source-maps'])
|
|
1016
1128
|
if (values.output) writeFileSync(values.output, named, { mode: 0o600 })
|
|
1017
1129
|
else process.stdout.write(named)
|
|
@@ -1118,7 +1230,7 @@ export async function runPerfNative(args: string[]): Promise<number> {
|
|
|
1118
1230
|
writeFileSync(outFiles.summary, JSON.stringify(env.report, null, 2) + '\n')
|
|
1119
1231
|
rmSync(pullDir, { recursive: true, force: true })
|
|
1120
1232
|
if (values.json) console.log(JSON.stringify(env.report, null, 2))
|
|
1121
|
-
else printSummary(env.report, outFiles)
|
|
1233
|
+
else printSummary(env.report, outFiles, filter)
|
|
1122
1234
|
return 0
|
|
1123
1235
|
}
|
|
1124
1236
|
|
|
@@ -1158,6 +1270,8 @@ export async function runPerfNative(args: string[]): Promise<number> {
|
|
|
1158
1270
|
payload.sampleJs = true
|
|
1159
1271
|
payload.react = true
|
|
1160
1272
|
}
|
|
1273
|
+
if (values.interactions && (action === 'capture' || action === 'start'))
|
|
1274
|
+
payload.interactions = values.interactions
|
|
1161
1275
|
|
|
1162
1276
|
writeFileSync(commandFile, JSON.stringify(payload))
|
|
1163
1277
|
execFileSync('xcrun', [
|
|
@@ -1204,6 +1318,6 @@ export async function runPerfNative(args: string[]): Promise<number> {
|
|
|
1204
1318
|
writeFileSync(outFiles.summary, JSON.stringify(report, null, 2) + '\n')
|
|
1205
1319
|
|
|
1206
1320
|
if (values.json) console.log(JSON.stringify(report, null, 2))
|
|
1207
|
-
else printSummary(report, outFiles)
|
|
1321
|
+
else printSummary(report, outFiles, filter)
|
|
1208
1322
|
return 0
|
|
1209
1323
|
}
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
writeFileSync,
|
|
11
11
|
} from 'node:fs'
|
|
12
12
|
import { createRequire } from 'node:module'
|
|
13
|
-
import { basename, dirname, join, relative, resolve } from 'node:path'
|
|
13
|
+
import { basename, dirname, join, relative, resolve, sep } from 'node:path'
|
|
14
14
|
import { installVerifiedTarball } from '@contrast/runtime-delivery'
|
|
15
15
|
import { cacheDir, playwrightCoreDir } from '../../src/home-paths'
|
|
16
16
|
import { isRecord } from '../../src/is-record'
|
|
@@ -62,6 +62,9 @@ export function resolvePlaywright(): ResolvedPlaywright | null {
|
|
|
62
62
|
for (const spec of ['playwright', 'playwright-chromium', 'playwright-core']) {
|
|
63
63
|
try {
|
|
64
64
|
const modulePath = requireFromRoot.resolve(spec)
|
|
65
|
+
// bun auto-installs the latest release for a root with no node_modules,
|
|
66
|
+
// which is neither the project's playwright nor the pinned one
|
|
67
|
+
if (!modulePath.includes(`${sep}node_modules${sep}`)) continue
|
|
65
68
|
const packageJsonPath = requireFromRoot.resolve(`${spec}/package.json`)
|
|
66
69
|
const parsed: unknown = JSON.parse(readFileSync(packageJsonPath, 'utf8'))
|
|
67
70
|
if (!isRecord(parsed) || typeof parsed.version !== 'string') continue
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2610 | (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.2610 | (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.2610 | (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.2610 | (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.2610 | (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.
|
|
1
|
+
/*! peach v0.1.2610 | (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,5 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
import "./esm-chunks/chunk-
|
|
1
|
+
/*! peach v0.1.2610 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
|
+
import "./esm-chunks/chunk-N3M5KT33.mjs";
|
|
3
3
|
|
|
4
4
|
// src/beta.ts
|
|
5
5
|
var IS_BETA = true;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2610 | (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.2610 | (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.2610 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
BridgeInputError,
|
|
4
4
|
SEMANTIC_WAIT_MAX_TIMEOUT_MS,
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
parseSemanticWaitOptions,
|
|
18
18
|
parseStateOptions,
|
|
19
19
|
parseTapTarget
|
|
20
|
-
} from "./esm-chunks/chunk-
|
|
21
|
-
import "./esm-chunks/chunk-
|
|
22
|
-
import "./esm-chunks/chunk-
|
|
23
|
-
import "./esm-chunks/chunk-
|
|
20
|
+
} from "./esm-chunks/chunk-YYGSN3BN.mjs";
|
|
21
|
+
import "./esm-chunks/chunk-VDLPNJ6P.mjs";
|
|
22
|
+
import "./esm-chunks/chunk-XN74REO2.mjs";
|
|
23
|
+
import "./esm-chunks/chunk-N3M5KT33.mjs";
|
|
24
24
|
export {
|
|
25
25
|
BridgeInputError,
|
|
26
26
|
SEMANTIC_WAIT_MAX_TIMEOUT_MS,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2610 | (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.2610 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
HEADLESS_TENANT_FETCH_HUNG_MARKER,
|
|
4
4
|
REFUSED_PERFORM_STEP_TYPES,
|
|
@@ -13,8 +13,8 @@ import {
|
|
|
13
13
|
readyProbeHasContent,
|
|
14
14
|
readyProbeIsReady,
|
|
15
15
|
refusedPerformStepReason
|
|
16
|
-
} from "./esm-chunks/chunk-
|
|
17
|
-
import "./esm-chunks/chunk-
|
|
16
|
+
} from "./esm-chunks/chunk-VDLPNJ6P.mjs";
|
|
17
|
+
import "./esm-chunks/chunk-N3M5KT33.mjs";
|
|
18
18
|
export {
|
|
19
19
|
HEADLESS_TENANT_FETCH_HUNG_MARKER,
|
|
20
20
|
REFUSED_PERFORM_STEP_TYPES,
|