peachsim 0.1.1692 → 0.1.1700
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/bridge-flow-runner.ts +61 -39
- package/cli/commands/agent-wrapper.ts +21 -10
- package/cli/commands/control.ts +27 -7
- package/cli/commands/coverage.ts +1 -1
- package/cli/commands/detect.ts +17 -4
- package/cli/commands/maestro-compare.ts +25 -99
- package/cli/help-core.ts +3 -4
- package/cli/maestro-compare.ts +172 -4
- package/cli/outbound-endpoints.ts +2 -10
- package/detox/index.ts +15 -0
- package/detox/launch-permissions.ts +169 -0
- package/dist-lib/agent-daemon-client.cjs +2 -2
- package/dist-lib/agent-events.cjs +2 -2
- package/dist-lib/attached-projects.cjs +2 -2
- package/dist-lib/auth/shared-session.cjs +2 -2
- package/dist-lib/backend-origin.cjs +2 -2
- package/dist-lib/beta.cjs +2 -2
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +2 -2
- package/dist-lib/bridge-contract-input.cjs +2 -2
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +2 -2
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +18273 -15925
- package/dist-lib/capture-contract.cjs +2 -2
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +2 -2
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +2 -2
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +2 -2
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +2 -2
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +104 -3
- package/dist-lib/dev-bundle-resolution.cjs +208 -44
- package/dist-lib/expo-swift-bundle.cjs +2349 -1778
- package/dist-lib/expo-swift-metadata.cjs +2 -2
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +2 -2
- package/dist-lib/host/bridge-host.cjs +7885 -3334
- package/dist-lib/host/fetch-proxy-handler.cjs +331 -39
- package/dist-lib/host/fetch-proxy-overrides.cjs +2 -2
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +2 -2
- package/dist-lib/host/websocket-proxy.cjs +2 -2
- package/dist-lib/index.cjs +297 -77
- package/dist-lib/jump-to-source-babel.cjs +2 -2
- package/dist-lib/jump-to-source-native.cjs +2 -2
- package/dist-lib/kotlin-host.cjs +2 -2
- package/dist-lib/menu.cjs +2 -2
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +2 -2
- 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 +1 -1
- package/dist-lib/metro.cjs +294 -74
- package/dist-lib/native-app-identity-project.cjs +48 -37
- package/dist-lib/native-app-identity-project.mjs +47 -36
- package/dist-lib/native-app-identity.cjs +2 -2
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +2 -2
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/plist.cjs +2 -2
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +2 -2
- package/dist-lib/public-brand.cjs +2 -2
- package/dist-lib/public-origins-lib-esm.json +24 -23
- package/dist-lib/public-origins-lib.json +199 -79
- package/dist-lib/react-native-host-modules.cjs +2 -2
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +2 -2
- package/dist-lib/scripts/dev-server-scanner.cjs +206 -31
- package/dist-lib/sdk.cjs +2 -2
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +19600 -15992
- package/dist-lib/swift-compile.cjs +640 -402
- package/dist-lib/swift-compile.mjs +595 -357
- package/dist-lib/swift-package.cjs +24 -20
- package/dist-lib/swift-package.mjs +23 -19
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +31 -4
- package/dist-lib/swift.cjs +2 -2
- package/dist-lib/vite-swift.cjs +1559 -1208
- package/dist-lib/vite.cjs +251 -42
- package/dist-lib/worklet-executable.cjs +2 -2
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/font-config.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/scroll-pan-contacts.d.ts +3 -1
- package/dist-types/packages/peach-engine/src/engine/scroll.d.ts +7 -0
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/scroll-mirror.d.ts +17 -0
- package/dist-types/packages/peach-engine/src/render-worker/worker-input-runtime.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +3 -0
- package/dist-types/packages/peach-globals/src/cameraBridgeContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/replayBridgeContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/shellHostBridgeContract.d.ts +3 -0
- package/dist-types/packages/peach-kit/src/materials/types.d.ts +1 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/scripts/dev-server-scanner.ts +4 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Alpha.h +2282 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/BasicImageTypes.h +55 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Conversion.h +10551 -6
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Convolution.h +4236 -3
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Geometry.h +827 -8
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Histogram.h +1369 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Morphology.h +1243 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Transform.h +1747 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage.h +291 -2
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_CVUtilities.h +1283 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_Types.h +811 -91
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_Utilities.h +1342 -25
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/BNNS/bnns.h +2738 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/BNNS/bnns_constants.h +1685 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/BNNS/bnns_graph.h +913 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/BNNS/bnns_structures.h +1917 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/LinearAlgebra.h +23 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/arithmetic.h +209 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/base.h +104 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/linear_systems.h +77 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/matrix.h +554 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/norms.h +58 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/object.h +186 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/splat.h +86 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/vector.h +364 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Quadrature/Integration.h +195 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Quadrature/Quadrature.h +44 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/BLAS/BLAS.h +2330 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/BLAS/Types.h +123 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/Solve.h +8339 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/SolveImplementation.h +520 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/SolveImplementationTyped.h +1893 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/Sparse.h +10 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/blas_new.h +1098 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/cblas.h +859 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/cblas_new.h +1134 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/clapack.h +10555 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/fortran_blas.h +695 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/lapack.h +38526 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/lapack_types.h +60 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/lapack_version.h +20 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/thread_api.h +50 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vBasicOps.h +1218 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vBigNum.h +1458 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vDSP.h +10377 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vDSP_translate.h +167 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vForce.h +1243 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vecLib.h +114 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vecLibTypes.h +146 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vectorOps.h +1106 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vfp.h +294 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Headers/Accelerate.h +25 -1
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFArray.h +673 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h +232 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h +827 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCalendar.h +121 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCharacterSet.h +387 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFData.h +79 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDate.h +122 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h +674 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFError.h +182 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFLocale.h +213 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFNotificationCenter.h +82 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFNumber.h +129 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFSet.h +491 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h +883 -2
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFTimeZone.h +98 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +11 -229
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h +2 -6
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +2 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h +1 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecBase.h +906 -3
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecCertificate.h +613 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecItem.h +1284 -29
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecPolicy.h +441 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecTrust.h +845 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/Security.h +4 -0
- package/sdk/ios/usr/include/AvailabilityMacros.h +3985 -0
- package/sdk/ios/usr/include/copyfile.h +143 -0
- package/sdk/ios/usr/include/malloc/_malloc.h +143 -0
- package/sdk/ios/usr/include/malloc/_malloc_type.h +153 -0
- package/sdk/ios/usr/include/malloc/_platform.h +80 -0
- package/sdk/ios/usr/include/malloc/_ptrcheck.h +43 -0
- package/sdk/ios/usr/include/malloc/malloc.h +768 -0
- package/sdk/ios/usr/include/os/availability.h +168 -6
- package/sdk/ios/usr/include/os/base.h +351 -0
- package/sdk/ios/usr/include/os/clock.h +18 -0
- package/sdk/ios/usr/include/os/lock.h +232 -10
- package/sdk/ios/usr/include/os/log.h +521 -38
- package/sdk/ios/usr/include/os/object.h +320 -3
- package/sdk/ios/usr/include/os/trace.h +492 -0
- package/sdk/ios/usr/include/os/trace_base.h +167 -0
- package/sdk/ios/usr/include/os/workgroup.h +37 -0
- package/sdk/ios/usr/include/os/workgroup_base.h +91 -0
- package/sdk/ios/usr/include/os/workgroup_interval.h +156 -0
- package/sdk/ios/usr/include/os/workgroup_object.h +359 -0
- package/sdk/ios/usr/include/os/workgroup_parallel.h +76 -0
- package/sdk/ios/usr/include/sys/cdefs.h +38 -0
- package/sdk/ios/wasm/include/unistd.h +3 -0
- package/skills/contrast/SKILL.md +3 -0
- package/src/codex-client.ts +11 -6
- package/src/dev-bundle-resolution.ts +124 -48
- package/src/expo-native-workspace.ts +176 -0
- package/src/expo-swift-host.ts +161 -26
- package/src/expo-swift-ready.ts +14 -28
- package/src/expoSwiftContract.ts +4 -1
- package/src/generated/swift-c-predefines.json +68 -12
- package/src/host/bridge-host.ts +5 -0
- package/src/installed-package-versions.ts +14 -1
- package/src/metro-project-root.ts +44 -33
- package/src/native-app-identity-project.ts +1 -0
- package/src/nitro-adapter.lock.json +916 -10
- package/src/nitro-adapter.ts +33 -24
- package/src/nitro-bundle.ts +108 -22
- package/src/nitro-compile.ts +32 -5
- package/src/nitro-source.ts +13 -3
- package/src/nitroAdapterContract.ts +100 -20
- package/src/node-http-fetch.ts +116 -0
- package/src/packageVersionsContract.ts +46 -0
- package/src/serverDiscoveryContract.ts +1 -0
- package/src/settingsContract.ts +0 -30
- package/src/swift-binary-modules.ts +20 -5
- package/src/swift-compile.ts +168 -48
- package/src/swift-coverage/xcode-assets.ts +4 -3
- package/src/swift-host.ts +14 -3
- package/src/swift-objc-compile.ts +32 -5
- package/src/swift-objc-metadata.ts +2 -2
- package/src/swift-objc-platform.ts +2 -2
- package/src/swift-objc-standin.ts +43 -13
- package/src/swift-package.ts +33 -26
- package/src/swift-source-pods.ts +126 -41
- package/src/swift-standin-digest.ts +77 -0
- package/src/swift-standin-emit.ts +40 -4
- package/src/swift-standins.ts +68 -19
- package/src/swift-toolchain.ts +38 -0
- package/src/swiftContract.ts +8 -0
- package/src/vite-plugin.ts +0 -10
- package/src/xcode-project.ts +62 -42
- package/src/settings-flags.ts +0 -107
package/cli/maestro-compare.ts
CHANGED
|
@@ -4,11 +4,13 @@
|
|
|
4
4
|
// from both commands.json shapes, the three-panel pixel diff, and the html
|
|
5
5
|
// report. commands/maestro-compare.ts runs the two sides.
|
|
6
6
|
|
|
7
|
+
import * as fs from 'fs'
|
|
7
8
|
import * as path from 'path'
|
|
8
9
|
import { PNG } from 'pngjs'
|
|
9
10
|
import yaml from 'yaml'
|
|
10
11
|
import { CONFORMANCE_DEFAULT_COMPARISON_SETTINGS } from '../src/conformance-comparison-contract'
|
|
11
12
|
import { compareConformancePixels } from '../src/conformance-pixel-comparison'
|
|
13
|
+
import { devices } from '../src/device-catalog'
|
|
12
14
|
import { MAESTRO_YAML_OPTIONS } from './flow-file'
|
|
13
15
|
|
|
14
16
|
// injected captures live under this screenshot path on both sides, so they
|
|
@@ -250,7 +252,12 @@ function isInjectedShot(label: string): boolean {
|
|
|
250
252
|
export function nativeStepsFromCommandsJson(json: unknown): CompareStep[] {
|
|
251
253
|
if (!Array.isArray(json)) return []
|
|
252
254
|
const steps: CompareStep[] = []
|
|
253
|
-
|
|
255
|
+
// the flat per-flow file is not written in run order; its timestamps are
|
|
256
|
+
const entries = [...(json as Array<Record<string, any>>)]
|
|
257
|
+
if (entries.every((entry) => typeof entry?.metadata?.timestamp === 'number')) {
|
|
258
|
+
entries.sort((a, b) => a.metadata.timestamp - b.metadata.timestamp)
|
|
259
|
+
}
|
|
260
|
+
for (const entry of entries) {
|
|
254
261
|
const command = entry?.command
|
|
255
262
|
const metadata = entry?.metadata ?? {}
|
|
256
263
|
if (!command || typeof command !== 'object') continue
|
|
@@ -297,10 +304,62 @@ function decodeXml(text: string): string {
|
|
|
297
304
|
})
|
|
298
305
|
}
|
|
299
306
|
|
|
300
|
-
|
|
307
|
+
// a testcase without a file attribute (maestro 2.3) is keyed by name alone
|
|
308
|
+
export function junitFlowKey(name: string, fileStem: string | null): string {
|
|
301
309
|
return JSON.stringify([name, fileStem])
|
|
302
310
|
}
|
|
303
311
|
|
|
312
|
+
// the failure for one flow, undefined for a pass. a report without file
|
|
313
|
+
// attributes binds by name, only when no other selected flow shares it. exactly
|
|
314
|
+
// one record may match: more cannot be told apart, so none is trusted.
|
|
315
|
+
export function nativeFlowVerdict(
|
|
316
|
+
verdicts: Map<string, Array<string | undefined>>,
|
|
317
|
+
name: string,
|
|
318
|
+
fileStem: string,
|
|
319
|
+
nameIsUnique: boolean,
|
|
320
|
+
): string | undefined {
|
|
321
|
+
const records = [
|
|
322
|
+
...(verdicts.get(junitFlowKey(name, fileStem)) ?? []),
|
|
323
|
+
...(nameIsUnique ? (verdicts.get(junitFlowKey(name, null)) ?? []) : []),
|
|
324
|
+
]
|
|
325
|
+
if (records.length === 0) return 'no native verdict in ios-report.xml'
|
|
326
|
+
if (records.length > 1) {
|
|
327
|
+
return `ios-report.xml has ${records.length} verdict records for this flow; they cannot be told apart`
|
|
328
|
+
}
|
|
329
|
+
return records[0]
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
// the flow a native commands.json belongs to, from the top-level bookkeeping
|
|
333
|
+
// maestro records in it (display names are not paths: maestro replaces
|
|
334
|
+
// slashes and suffixes collisions). undefined when it records no file stem.
|
|
335
|
+
export function nativeFlowIdentity(
|
|
336
|
+
json: unknown,
|
|
337
|
+
): { name: string; fileStem: string } | undefined {
|
|
338
|
+
if (!Array.isArray(json)) return undefined
|
|
339
|
+
let name: string | undefined
|
|
340
|
+
let fileStem: string | undefined
|
|
341
|
+
for (const entry of json) {
|
|
342
|
+
if (entry?.metadata?.depth !== undefined && entry.metadata.depth !== 0) continue
|
|
343
|
+
const config = entry?.command?.applyConfigurationCommand?.config
|
|
344
|
+
if (typeof config?.name === 'string') name ??= config.name
|
|
345
|
+
const env = entry?.command?.defineVariablesCommand?.env
|
|
346
|
+
if (typeof env?.MAESTRO_FILENAME === 'string') fileStem ??= env.MAESTRO_FILENAME
|
|
347
|
+
}
|
|
348
|
+
return fileStem === undefined ? undefined : { name: name ?? fileStem, fileStem }
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
// whether the commands record a finished screenshot at this path
|
|
352
|
+
export function nativeRecordsScreenshot(json: unknown, shot: string): boolean {
|
|
353
|
+
return (
|
|
354
|
+
Array.isArray(json) &&
|
|
355
|
+
json.some(
|
|
356
|
+
(entry) =>
|
|
357
|
+
entry?.command?.takeScreenshotCommand?.path === shot &&
|
|
358
|
+
(entry.metadata?.status === 'COMPLETED' || entry.metadata?.status === 'WARNED'),
|
|
359
|
+
)
|
|
360
|
+
)
|
|
361
|
+
}
|
|
362
|
+
|
|
304
363
|
// maestro's own per-flow report (--format junit): one testcase per flow, whose
|
|
305
364
|
// status and failure text are the verdict whatever the flow did or printed.
|
|
306
365
|
// values hold the failure message per testcase, undefined for a pass, in
|
|
@@ -316,13 +375,16 @@ export function nativeFlowVerdictsFromJunit(
|
|
|
316
375
|
}
|
|
317
376
|
const file = attrs.get('file')
|
|
318
377
|
const name = attrs.get('name')
|
|
319
|
-
if (
|
|
378
|
+
if (name === undefined) continue
|
|
320
379
|
const body = match[3] ?? ''
|
|
321
380
|
const failure =
|
|
322
381
|
/<(?:failure|error)\b[^>]*?(?:\/>|>([\s\S]*?)<\/(?:failure|error)>)/.exec(body)
|
|
323
382
|
const failed = failure !== null || attrs.get('status') === 'ERROR'
|
|
324
383
|
const message = failure?.[1] ? decodeXml(failure[1]).trim() : ''
|
|
325
|
-
const key = junitFlowKey(
|
|
384
|
+
const key = junitFlowKey(
|
|
385
|
+
name,
|
|
386
|
+
file === undefined ? null : path.basename(file).replace(/\.(ya?ml)$/i, ''),
|
|
387
|
+
)
|
|
326
388
|
const list = verdicts.get(key) ?? []
|
|
327
389
|
list.push(failed ? `Maestro failed this flow: ${message || 'no message'}` : undefined)
|
|
328
390
|
verdicts.set(key, list)
|
|
@@ -546,6 +608,112 @@ export function compareScreens(
|
|
|
546
608
|
}
|
|
547
609
|
}
|
|
548
610
|
|
|
611
|
+
// the status bar band of the device whose screen matches the iOS capture's
|
|
612
|
+
// pixel size (peach's own device table); 0 for a size no device has.
|
|
613
|
+
export function statusBarPx(png: Buffer): number {
|
|
614
|
+
// png ihdr: width and height are the big-endian words at bytes 16 and 20
|
|
615
|
+
const width = png.readUInt32BE(16)
|
|
616
|
+
const height = png.readUInt32BE(20)
|
|
617
|
+
const spec = Object.values(devices).find(
|
|
618
|
+
(d) =>
|
|
619
|
+
// maestro can truncate fractional point bounds one pixel below simctl.
|
|
620
|
+
Math.abs(Math.round(d.width * d.scale) - width) <= 1 &&
|
|
621
|
+
Math.abs(Math.round(d.height * d.scale) - height) <= 1,
|
|
622
|
+
)
|
|
623
|
+
return spec ? spec.statusBarHeight * spec.scale : 0
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
// maestro's xctest shot on an ios 27 simulator drops the rightmost column of
|
|
627
|
+
// an odd framebuffer (1179 becomes 1178). diffing at that short width
|
|
628
|
+
// resamples peach off the pixel grid, so restore the column first.
|
|
629
|
+
export function alignNativeCapture(png: Buffer): Buffer {
|
|
630
|
+
const width = png.readUInt32BE(16)
|
|
631
|
+
const height = png.readUInt32BE(20)
|
|
632
|
+
const spec = Object.values(devices).find(
|
|
633
|
+
(d) =>
|
|
634
|
+
Math.abs(Math.round(d.width * d.scale) - width) <= 1 &&
|
|
635
|
+
Math.abs(Math.round(d.height * d.scale) - height) <= 1,
|
|
636
|
+
)
|
|
637
|
+
if (!spec) return png
|
|
638
|
+
const expectedW = Math.round(spec.width * spec.scale)
|
|
639
|
+
const expectedH = Math.round(spec.height * spec.scale)
|
|
640
|
+
if (expectedH !== height || expectedW !== width + 1) return png
|
|
641
|
+
const src = PNG.sync.read(png)
|
|
642
|
+
const dst = new PNG({ width: expectedW, height })
|
|
643
|
+
for (let y = 0; y < height; y++) {
|
|
644
|
+
const srow = y * src.width * 4
|
|
645
|
+
const drow = y * expectedW * 4
|
|
646
|
+
src.data.copy(dst.data, drow, srow, srow + src.width * 4)
|
|
647
|
+
const last = srow + (src.width - 1) * 4
|
|
648
|
+
const o = drow + src.width * 4
|
|
649
|
+
dst.data[o] = src.data[last] ?? 0
|
|
650
|
+
dst.data[o + 1] = src.data[last + 1] ?? 0
|
|
651
|
+
dst.data[o + 2] = src.data[last + 2] ?? 0
|
|
652
|
+
dst.data[o + 3] = 255
|
|
653
|
+
}
|
|
654
|
+
return PNG.sync.write(dst)
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
export function readJson(file: string): unknown {
|
|
658
|
+
try {
|
|
659
|
+
return JSON.parse(fs.readFileSync(file, 'utf8'))
|
|
660
|
+
} catch {
|
|
661
|
+
return null
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
export interface NativeOutput {
|
|
666
|
+
commands: unknown
|
|
667
|
+
// directory holding this flow's own captures; undefined when none is attributable
|
|
668
|
+
shotDir?: string
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
// maestro writes either <run>/<flow>/commands.json with takeScreenshot/ beside
|
|
672
|
+
// it, or a flat <run>/commands-(<name>).json with the run's captures shared in
|
|
673
|
+
// <out>/screenshots. flows bind by the identity recorded inside the commands,
|
|
674
|
+
// never by directory or file name.
|
|
675
|
+
export function discoverNativeOutputs(nativeOut: string): {
|
|
676
|
+
nativeOutputs: Map<string, NativeOutput[]>
|
|
677
|
+
flatShots: string | undefined
|
|
678
|
+
} {
|
|
679
|
+
const nativeRun = fs.existsSync(nativeOut)
|
|
680
|
+
? fs
|
|
681
|
+
.readdirSync(nativeOut)
|
|
682
|
+
.map((d) => path.join(nativeOut, d))
|
|
683
|
+
.filter((d) => path.basename(d) !== 'screenshots' && fs.statSync(d).isDirectory())
|
|
684
|
+
.sort()
|
|
685
|
+
.pop()
|
|
686
|
+
: undefined
|
|
687
|
+
const nativeOutputs = new Map<string, NativeOutput[]>()
|
|
688
|
+
const addNative = (output: NativeOutput) => {
|
|
689
|
+
const identity = nativeFlowIdentity(output.commands)
|
|
690
|
+
if (!identity) return
|
|
691
|
+
const key = JSON.stringify([identity.name, identity.fileStem])
|
|
692
|
+
nativeOutputs.set(key, [...(nativeOutputs.get(key) ?? []), output])
|
|
693
|
+
}
|
|
694
|
+
const flatOutputs: NativeOutput[] = []
|
|
695
|
+
for (const entry of nativeRun
|
|
696
|
+
? fs.readdirSync(nativeRun, { withFileTypes: true })
|
|
697
|
+
: []) {
|
|
698
|
+
const full = path.join(nativeRun!, entry.name)
|
|
699
|
+
if (entry.isDirectory()) {
|
|
700
|
+
const commands = readJson(path.join(full, 'commands.json'))
|
|
701
|
+
if (Array.isArray(commands)) {
|
|
702
|
+
addNative({ commands, shotDir: path.join(full, 'takeScreenshot') })
|
|
703
|
+
}
|
|
704
|
+
} else if (/^commands-\(.*\)\.json$/.test(entry.name)) {
|
|
705
|
+
const commands = readJson(full)
|
|
706
|
+
if (Array.isArray(commands)) flatOutputs.push({ commands })
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
// the flat captures are shared by every flow of the run, so they belong to a
|
|
710
|
+
// flow only when it is the run's single native flow.
|
|
711
|
+
const flatShots =
|
|
712
|
+
flatOutputs.length === 1 ? path.join(nativeOut, 'screenshots') : undefined
|
|
713
|
+
for (const output of flatOutputs) addNative({ ...output, shotDir: flatShots })
|
|
714
|
+
return { nativeOutputs, flatShots }
|
|
715
|
+
}
|
|
716
|
+
|
|
549
717
|
export interface CompareSide {
|
|
550
718
|
status: 'passed' | 'failed' | 'not run'
|
|
551
719
|
durationMs: number
|
|
@@ -678,7 +678,7 @@ export const DECLARED_OUTBOUND_CALLS: Record<string, OutboundCallDeclaration> =
|
|
|
678
678
|
},
|
|
679
679
|
"packages/peach-engine/src/settings/persistence.ts :: fetch :: '/__sootsim/shared-config'":
|
|
680
680
|
{ category: 'same_origin_runtime', count: 1 },
|
|
681
|
-
'packages/peachsim/src/
|
|
681
|
+
'packages/peachsim/src/node-http-fetch.ts :: transport.request :: target': {
|
|
682
682
|
category: 'local_development',
|
|
683
683
|
count: 1,
|
|
684
684
|
},
|
|
@@ -835,11 +835,7 @@ export const DECLARED_OUTBOUND_CALLS: Record<string, OutboundCallDeclaration> =
|
|
|
835
835
|
category: 'local_development',
|
|
836
836
|
count: 1,
|
|
837
837
|
},
|
|
838
|
-
'packages/
|
|
839
|
-
category: 'local_development',
|
|
840
|
-
count: 1,
|
|
841
|
-
},
|
|
842
|
-
'packages/peach-engine/src/expo-swift-compilation.ts :: fetch-alias :: address': {
|
|
838
|
+
'packages/peach-engine/src/swift-compilation.ts :: fetch-alias :: address': {
|
|
843
839
|
category: 'local_development',
|
|
844
840
|
count: 1,
|
|
845
841
|
},
|
|
@@ -859,10 +855,6 @@ export const DECLARED_OUTBOUND_CALLS: Record<string, OutboundCallDeclaration> =
|
|
|
859
855
|
category: 'guest_app_network',
|
|
860
856
|
count: 1,
|
|
861
857
|
},
|
|
862
|
-
'packages/peachsim/src/metro-project-root.ts :: fetch :: `${origin}/status`': {
|
|
863
|
-
category: 'local_development',
|
|
864
|
-
count: 1,
|
|
865
|
-
},
|
|
866
858
|
'packages/peachsim/cli/app-splash.ts :: fetch :: `${origin}/manifest`': {
|
|
867
859
|
category: 'local_development',
|
|
868
860
|
count: 1,
|
package/detox/index.ts
CHANGED
|
@@ -40,6 +40,10 @@ import {
|
|
|
40
40
|
sootsimToPage,
|
|
41
41
|
waitForSootsimGestureHandler,
|
|
42
42
|
} from './gestures'
|
|
43
|
+
import {
|
|
44
|
+
applyDetoxLaunchPermissions,
|
|
45
|
+
type DetoxLaunchPermissions,
|
|
46
|
+
} from './launch-permissions'
|
|
43
47
|
import { by, type Matcher } from './matchers'
|
|
44
48
|
import { describeSootsimBridgeFailure, navigateSootsimPage } from './navigation-lifecycle'
|
|
45
49
|
import {
|
|
@@ -1887,6 +1891,11 @@ export const device = {
|
|
|
1887
1891
|
async launchApp(opts?: {
|
|
1888
1892
|
delete?: boolean
|
|
1889
1893
|
newInstance?: boolean
|
|
1894
|
+
// detox permission presets for the guest app, applied through the
|
|
1895
|
+
// permission store once the test bridge is up and before launchApp
|
|
1896
|
+
// returns. ios only: native android silently ignores launchApp
|
|
1897
|
+
// permissions, so peach android ignores them too.
|
|
1898
|
+
permissions?: DetoxLaunchPermissions
|
|
1890
1899
|
url?: string
|
|
1891
1900
|
sourceApp?: string
|
|
1892
1901
|
launchArgs?: Record<string, any>
|
|
@@ -1934,6 +1943,9 @@ export const device = {
|
|
|
1934
1943
|
)
|
|
1935
1944
|
}
|
|
1936
1945
|
await waitForSootsimTree(page, 10000)
|
|
1946
|
+
if (opts?.permissions && DETOX_PLATFORM === 'ios') {
|
|
1947
|
+
await applyDetoxLaunchPermissions(page, opts.permissions)
|
|
1948
|
+
}
|
|
1937
1949
|
if (opts?.url) {
|
|
1938
1950
|
await device.openURL({ url: opts.url, sourceApp: opts.sourceApp })
|
|
1939
1951
|
}
|
|
@@ -2105,6 +2117,9 @@ export const device = {
|
|
|
2105
2117
|
}
|
|
2106
2118
|
|
|
2107
2119
|
await waitForSootsimTree(_page!, 30000)
|
|
2120
|
+
if (opts?.permissions && DETOX_PLATFORM === 'ios') {
|
|
2121
|
+
await applyDetoxLaunchPermissions(_page!, opts.permissions)
|
|
2122
|
+
}
|
|
2108
2123
|
await waitForSootsimSurfaceMetrics(_page!, 30000)
|
|
2109
2124
|
await waitForSootsimShellReady(_page!, 30000)
|
|
2110
2125
|
await waitForSootsimWorkletsIdle(_page!, 3000)
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
SystemPermissionKind,
|
|
3
|
+
SystemPermissionMutation,
|
|
4
|
+
} from '../../peach-globals/src/index'
|
|
5
|
+
// detox launchApp permission presets for the peach driver.
|
|
6
|
+
//
|
|
7
|
+
// the map shape and value spellings mirror detox's own DevicePermissions
|
|
8
|
+
// (node_modules/detox/detox.d.ts, sourced from applesimutils): only those
|
|
9
|
+
// kinds exist here, and an unknown value fails the launch instead of
|
|
10
|
+
// leaving a permission undetermined behind a prompt nobody answers. native
|
|
11
|
+
// android silently ignores launchApp permissions (detox's driver base
|
|
12
|
+
// no-ops setPermissions), so peach android ignores them too; android
|
|
13
|
+
// preconditions ride a separate helper the way native uses adb.
|
|
14
|
+
import type { Page } from 'playwright-core'
|
|
15
|
+
|
|
16
|
+
export type DetoxBasicPermissionState = 'YES' | 'NO' | 'unset'
|
|
17
|
+
export type DetoxExtendedPermissionState = 'YES' | 'NO' | 'unset' | 'limited'
|
|
18
|
+
export type DetoxLocationPermission = 'always' | 'inuse' | 'never' | 'unset'
|
|
19
|
+
|
|
20
|
+
export interface DetoxLaunchPermissions {
|
|
21
|
+
location?: DetoxLocationPermission
|
|
22
|
+
notifications?: DetoxBasicPermissionState
|
|
23
|
+
calendar?: DetoxBasicPermissionState
|
|
24
|
+
camera?: DetoxBasicPermissionState
|
|
25
|
+
contacts?: DetoxExtendedPermissionState
|
|
26
|
+
health?: DetoxBasicPermissionState
|
|
27
|
+
homekit?: DetoxBasicPermissionState
|
|
28
|
+
medialibrary?: DetoxBasicPermissionState
|
|
29
|
+
microphone?: DetoxBasicPermissionState
|
|
30
|
+
motion?: DetoxBasicPermissionState
|
|
31
|
+
photos?: DetoxExtendedPermissionState
|
|
32
|
+
reminders?: DetoxBasicPermissionState
|
|
33
|
+
siri?: DetoxBasicPermissionState
|
|
34
|
+
speech?: DetoxBasicPermissionState
|
|
35
|
+
faceid?: DetoxBasicPermissionState
|
|
36
|
+
userTracking?: DetoxBasicPermissionState
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface DetoxPermissionMutation {
|
|
40
|
+
kind: SystemPermissionKind
|
|
41
|
+
mutation: SystemPermissionMutation
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// detox names its photos service `photos` and tracks only that one tcc
|
|
45
|
+
// service, so it maps to the read-write library kind alone; add-only stays
|
|
46
|
+
// whatever the app left it, exactly as on the simulator.
|
|
47
|
+
const DETOX_BASIC_PERMISSION_KINDS: Record<string, SystemPermissionKind> = {
|
|
48
|
+
notifications: 'notifications',
|
|
49
|
+
calendar: 'calendars',
|
|
50
|
+
camera: 'camera',
|
|
51
|
+
medialibrary: 'media-library',
|
|
52
|
+
microphone: 'microphone',
|
|
53
|
+
motion: 'motion',
|
|
54
|
+
reminders: 'reminders',
|
|
55
|
+
siri: 'siri',
|
|
56
|
+
speech: 'speech-recognition',
|
|
57
|
+
faceid: 'face-id',
|
|
58
|
+
userTracking: 'app-tracking-transparency',
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
const DETOX_EXTENDED_PERMISSION_KINDS: Record<string, SystemPermissionKind> = {
|
|
62
|
+
contacts: 'contacts',
|
|
63
|
+
photos: 'photo-library',
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// health and homekit have no simulated permission, so they change nothing,
|
|
67
|
+
// the way the maestro flow runner already treats them.
|
|
68
|
+
const DETOX_UNSIMULATED_KINDS = new Set(['health', 'homekit'])
|
|
69
|
+
|
|
70
|
+
function basicMutation(value: string, name: string): SystemPermissionMutation {
|
|
71
|
+
if (value === 'YES') return { status: 'authorized' }
|
|
72
|
+
if (value === 'NO') return { status: 'denied' }
|
|
73
|
+
if (value === 'unset') return { status: 'not-determined' }
|
|
74
|
+
throw new Error(`launchApp.permissions.${name} must be YES, NO, or unset`)
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
function locationMutations(value: string): DetoxPermissionMutation[] {
|
|
78
|
+
// simctl grant location-always authorizes both levels; grant location
|
|
79
|
+
// authorizes when-in-use while always stays undetermined so the app can
|
|
80
|
+
// still escalate; revoke denies both; reset clears both.
|
|
81
|
+
switch (value) {
|
|
82
|
+
case 'always':
|
|
83
|
+
return [
|
|
84
|
+
{ kind: 'location-when-in-use', mutation: { status: 'authorized' } },
|
|
85
|
+
{ kind: 'location-always', mutation: { status: 'authorized' } },
|
|
86
|
+
]
|
|
87
|
+
case 'inuse':
|
|
88
|
+
return [
|
|
89
|
+
{ kind: 'location-when-in-use', mutation: { status: 'authorized' } },
|
|
90
|
+
{ kind: 'location-always', mutation: { status: 'not-determined' } },
|
|
91
|
+
]
|
|
92
|
+
case 'never':
|
|
93
|
+
return [
|
|
94
|
+
{ kind: 'location-when-in-use', mutation: { status: 'denied' } },
|
|
95
|
+
{ kind: 'location-always', mutation: { status: 'denied' } },
|
|
96
|
+
]
|
|
97
|
+
case 'unset':
|
|
98
|
+
return [
|
|
99
|
+
{ kind: 'location-when-in-use', mutation: { status: 'not-determined' } },
|
|
100
|
+
{ kind: 'location-always', mutation: { status: 'not-determined' } },
|
|
101
|
+
]
|
|
102
|
+
default:
|
|
103
|
+
throw new Error(
|
|
104
|
+
'launchApp.permissions.location must be always, inuse, never, or unset',
|
|
105
|
+
)
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export function detoxLaunchPermissionMutations(
|
|
110
|
+
permissions: DetoxLaunchPermissions,
|
|
111
|
+
): DetoxPermissionMutation[] {
|
|
112
|
+
const mutations: DetoxPermissionMutation[] = []
|
|
113
|
+
for (const [name, value] of Object.entries(permissions)) {
|
|
114
|
+
if (value === undefined) continue
|
|
115
|
+
if (name === 'location') {
|
|
116
|
+
mutations.push(...locationMutations(value))
|
|
117
|
+
continue
|
|
118
|
+
}
|
|
119
|
+
if (DETOX_UNSIMULATED_KINDS.has(name)) continue
|
|
120
|
+
const extendedKind = DETOX_EXTENDED_PERMISSION_KINDS[name]
|
|
121
|
+
if (extendedKind) {
|
|
122
|
+
// detox routes limited through simctl's add-only grants; the store
|
|
123
|
+
// holds limited natively, so set the limited state the value names.
|
|
124
|
+
mutations.push({
|
|
125
|
+
kind: extendedKind,
|
|
126
|
+
mutation:
|
|
127
|
+
value === 'limited'
|
|
128
|
+
? { status: 'limited', limitedResourceIds: [] }
|
|
129
|
+
: basicMutation(value, name),
|
|
130
|
+
})
|
|
131
|
+
continue
|
|
132
|
+
}
|
|
133
|
+
const basicKind = DETOX_BASIC_PERMISSION_KINDS[name]
|
|
134
|
+
if (basicKind) {
|
|
135
|
+
mutations.push({ kind: basicKind, mutation: basicMutation(value, name) })
|
|
136
|
+
continue
|
|
137
|
+
}
|
|
138
|
+
// detox's own permission switch has no default case: an unknown name
|
|
139
|
+
// changes nothing on the simulator, so it changes nothing here either.
|
|
140
|
+
}
|
|
141
|
+
return mutations
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export async function applyDetoxLaunchPermissions(
|
|
145
|
+
page: Page,
|
|
146
|
+
permissions: DetoxLaunchPermissions,
|
|
147
|
+
): Promise<void> {
|
|
148
|
+
const mutations = detoxLaunchPermissionMutations(permissions)
|
|
149
|
+
if (mutations.length === 0) return
|
|
150
|
+
await page.evaluate(async (entries) => {
|
|
151
|
+
const test = window.SootSim?.bridges?.test
|
|
152
|
+
if (
|
|
153
|
+
typeof test?.permissionGuestAppId !== 'function' ||
|
|
154
|
+
typeof test?.permissionSetAppPermission !== 'function' ||
|
|
155
|
+
typeof test?.permissionGetAppSettings !== 'function'
|
|
156
|
+
) {
|
|
157
|
+
throw new Error('sootsim permission bridge is unavailable')
|
|
158
|
+
}
|
|
159
|
+
const appId = await test.permissionGuestAppId()
|
|
160
|
+
for (const { kind, mutation } of entries) {
|
|
161
|
+
await test.permissionSetAppPermission(appId, kind, mutation)
|
|
162
|
+
}
|
|
163
|
+
// sync native getters read a retained snapshot, not the store. the
|
|
164
|
+
// set broadcast should refresh it, but a preset that lands before the
|
|
165
|
+
// tenant listens must not leave those getters stale, so re-read the
|
|
166
|
+
// authoritative snapshot once the presets are in.
|
|
167
|
+
await test.permissionGetAppSettings(appId)
|
|
168
|
+
}, mutations)
|
|
169
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
1
|
+
/*! peach v0.1.1700 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
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;
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
1
|
+
/*! peach v0.1.1700 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
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;
|
|
5
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
1
|
+
/*! peach v0.1.1700 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
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;
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
1
|
+
/*! peach v0.1.1700 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
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;
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
1
|
+
/*! peach v0.1.1700 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
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;
|
|
5
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
package/dist-lib/beta.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
1
|
+
/*! peach v0.1.1700 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
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;
|
|
5
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
package/dist-lib/beta.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
1
|
+
/*! peach v0.1.1700 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
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;
|
|
5
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
1
|
+
/*! peach v0.1.1700 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
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;
|
|
5
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
1
|
+
/*! peach v0.1.1700 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
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;
|
|
5
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|