peachsim 0.1.2268 → 0.1.2270
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/map.ts +1 -1
- package/cli/commands/record.ts +4 -1
- package/cli/commands/screenshot.ts +10 -0
- package/cli/commands/upload.ts +4 -1
- package/detox/index.ts +8 -4
- 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 +48 -32
- 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 +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +14 -7
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +33 -22
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +67 -40
- package/dist-lib/host/fetch-proxy-handler.cjs +13 -10
- 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 +15 -12
- 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 +9 -5
- 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 +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +13 -10
- package/dist-lib/native-app-identity-project.cjs +5 -1
- package/dist-lib/native-app-identity-project.mjs +5 -1
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- 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 +24 -24
- package/dist-lib/public-origins-lib.json +55 -54
- 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 +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +76 -43
- package/dist-lib/swift-compile.cjs +1 -1
- package/dist-lib/swift-compile.mjs +1 -1
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +8 -6
- package/dist-lib/vite.cjs +13 -10
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/paint-boundary-types.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/engine/render-damage.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/preview/compress-node.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +1 -0
- package/java-platform/licenses/android.txt +6 -3
- package/java-platform/licenses/openjdk.txt +11 -4
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/src/answeredNativePackages.ts +16 -1
- package/src/desktop-host-delivery.ts +22 -6
- package/src/expo-pod-prebuilt.ts +29 -3
- package/src/guest-bundle.ts +1 -0
- package/src/kotlin-host.ts +8 -4
- package/src/native-package-slice-build.ts +171 -95
- package/src/package-tree-digest.ts +33 -10
- package/src/swift-submit.ts +2 -1
- package/src/turbo-compile.ts +5 -1
package/cli/commands/map.ts
CHANGED
|
@@ -178,7 +178,7 @@ async function captureTo(
|
|
|
178
178
|
opts: { port?: number; verbose?: boolean },
|
|
179
179
|
): Promise<void> {
|
|
180
180
|
mkdirSync(dirname(pngPath), { recursive: true })
|
|
181
|
-
await runScreenshot(['--output', pngPath], opts)
|
|
181
|
+
await runScreenshot(['--output', pngPath, '--refuse-error-screen'], opts)
|
|
182
182
|
if (!existsSync(pngPath)) throw new Error(`screenshot did not write ${pngPath}`)
|
|
183
183
|
}
|
|
184
184
|
|
package/cli/commands/record.ts
CHANGED
|
@@ -1070,7 +1070,10 @@ async function recordStart(args: string[], opts: RecordOptions) {
|
|
|
1070
1070
|
: args.includes('--no-shell')
|
|
1071
1071
|
? 'tenant'
|
|
1072
1072
|
: undefined
|
|
1073
|
-
const
|
|
1073
|
+
const outputExt = extname(valueOf(args, '--output') ?? '')
|
|
1074
|
+
const formatArg =
|
|
1075
|
+
(valueOf(args, '--format') as OutputFormat | undefined) ??
|
|
1076
|
+
(outputExt === '.mp4' ? 'mp4' : outputExt === '.webm' ? 'webm' : undefined)
|
|
1074
1077
|
const format =
|
|
1075
1078
|
formatArg === 'mp4' || (!formatArg && mode === 'combined') ? 'mp4' : 'webm'
|
|
1076
1079
|
if (formatArg && format !== formatArg) {
|
|
@@ -53,6 +53,9 @@ options:
|
|
|
53
53
|
--shell-only capture only the shell chrome, no tenant content
|
|
54
54
|
--allow-loading capture after caller-owned readiness checks even when
|
|
55
55
|
visible app copy matches a generic loading phrase
|
|
56
|
+
--refuse-error-screen
|
|
57
|
+
fail instead of capturing the red error screen of an app
|
|
58
|
+
that failed to load (peach map uses it)
|
|
56
59
|
--area x,y,w,h crop to a logical peach rect
|
|
57
60
|
--id <testID> crop to a node's bounding box
|
|
58
61
|
--text <text> crop to a node found by text content
|
|
@@ -81,6 +84,7 @@ examples:
|
|
|
81
84
|
}
|
|
82
85
|
|
|
83
86
|
const allowLoading = args.includes('--allow-loading')
|
|
87
|
+
const refuseErrorScreen = args.includes('--refuse-error-screen')
|
|
84
88
|
const withFrame = resolveFrameMode(args)
|
|
85
89
|
const layers = resolveLayers(args)
|
|
86
90
|
|
|
@@ -103,6 +107,7 @@ examples:
|
|
|
103
107
|
'--no-shell',
|
|
104
108
|
'--shell-only',
|
|
105
109
|
'--allow-loading',
|
|
110
|
+
'--refuse-error-screen',
|
|
106
111
|
],
|
|
107
112
|
stripValueFlags: ['--output', '--area', '--id', '--text'],
|
|
108
113
|
})
|
|
@@ -146,6 +151,7 @@ examples:
|
|
|
146
151
|
withFrame,
|
|
147
152
|
layers,
|
|
148
153
|
allowLoading,
|
|
154
|
+
refuseErrorScreen,
|
|
149
155
|
opts.verbose === true || args.includes('--verbose') || args.includes('-v'),
|
|
150
156
|
)
|
|
151
157
|
} catch (err) {
|
|
@@ -200,6 +206,7 @@ async function captureViaBridge(
|
|
|
200
206
|
withFrame: boolean,
|
|
201
207
|
layers: 'full' | 'tenant' | 'shell' | undefined,
|
|
202
208
|
allowLoading: boolean,
|
|
209
|
+
refuseErrorScreen: boolean,
|
|
203
210
|
verbose: boolean,
|
|
204
211
|
) {
|
|
205
212
|
// --verbose names the phase a slow capture spent its time in.
|
|
@@ -262,6 +269,8 @@ async function captureViaBridge(
|
|
|
262
269
|
// needs, and it is the only screen that app will ever paint. capture it,
|
|
263
270
|
// and say plainly what it is so nobody blesses it as a baseline.
|
|
264
271
|
if (!readiness.ready && readiness.externalError) {
|
|
272
|
+
if (refuseErrorScreen)
|
|
273
|
+
throw new Error(`the app failed to load: ${readiness.externalError}`)
|
|
265
274
|
process.stderr.write(
|
|
266
275
|
` ⚠ capturing an ERROR screen. the app failed to load: ${readiness.externalError}\n` +
|
|
267
276
|
' this is failure evidence, not app content. never use it as a baseline.\n\n',
|
|
@@ -392,6 +401,7 @@ const SCREENSHOT_BOOLEAN_FLAGS = new Set([
|
|
|
392
401
|
'--no-shell',
|
|
393
402
|
'--shell-only',
|
|
394
403
|
'--allow-loading',
|
|
404
|
+
'--refuse-error-screen',
|
|
395
405
|
])
|
|
396
406
|
const SCREENSHOT_VALUE_FLAGS = new Set([
|
|
397
407
|
'--output',
|
package/cli/commands/upload.ts
CHANGED
|
@@ -1117,7 +1117,10 @@ export async function runUpload(
|
|
|
1117
1117
|
// minifies in the node build container, and stores one canonical brotli
|
|
1118
1118
|
// bundle. assets stay gzip below.
|
|
1119
1119
|
const bundleBr = bundleBytes
|
|
1120
|
-
? getCliRuntime().preview_compress_node.brotliBundle(
|
|
1120
|
+
? getCliRuntime().preview_compress_node.brotliBundle(
|
|
1121
|
+
bundleBytes,
|
|
1122
|
+
getCliRuntime().preview_compress_node.UPLOAD_BROTLI_QUALITY,
|
|
1123
|
+
)
|
|
1121
1124
|
: undefined
|
|
1122
1125
|
const identityBytes = bundleBytes ?? sceneBytes
|
|
1123
1126
|
if (!identityBytes) throw new Error('upload requires a bundle or scene recording')
|
package/detox/index.ts
CHANGED
|
@@ -3013,10 +3013,14 @@ export const device = {
|
|
|
3013
3013
|
const nativeStages = nativeRecord?.stages ?? []
|
|
3014
3014
|
// native first sees the motion on a 60Hz display frame that can land deep
|
|
3015
3015
|
// into the curve; the onset here is the first step showing as much change,
|
|
3016
|
-
// so both legs measure their stages from the same progress
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3016
|
+
// so both legs measure their stages from the same progress. a native
|
|
3017
|
+
// onset that changed the whole region asks for the most a minimum allows.
|
|
3018
|
+
const onsetChangePercent = Math.min(
|
|
3019
|
+
Math.max(
|
|
3020
|
+
proofObserver.motionChangeDefinition.minimumChangePercent,
|
|
3021
|
+
nativeRecord?.videoTriggerDetection?.changedPixelPercent ?? 0,
|
|
3022
|
+
),
|
|
3023
|
+
99.9,
|
|
3020
3024
|
)
|
|
3021
3025
|
const pairedStages: typeof stages = stages.map((stage) => {
|
|
3022
3026
|
if (DETOX_PLATFORM !== 'ios') return stage
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2270 | (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.2270 | (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.2270 | (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.2270 | (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.2270 | (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.2270 | (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,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2270 | (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.2270 | (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.2270 | (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.2270 | (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;
|
|
@@ -1000,16 +1000,20 @@ function peachAnsweredNativePackages() {
|
|
|
1000
1000
|
const names = readPeachRuntimeJson(ANSWERED_NATIVE_PACKAGES_PATH);
|
|
1001
1001
|
if (!Array.isArray(names) || !names.every((name3) => typeof name3 === "string"))
|
|
1002
1002
|
throw new Error(`${ANSWERED_NATIVE_PACKAGES_PATH} must list package names`);
|
|
1003
|
-
|
|
1003
|
+
const overridden = unansweredStore.getStore();
|
|
1004
|
+
if (!overridden || overridden.size === 0) return new Set(names);
|
|
1005
|
+
return new Set(names.filter((name3) => !overridden.has(name3)));
|
|
1004
1006
|
}
|
|
1005
|
-
var import_node_fs5, import_node_path4, ANSWERED_NATIVE_PACKAGES_PATH;
|
|
1007
|
+
var import_node_async_hooks, import_node_fs5, import_node_path4, ANSWERED_NATIVE_PACKAGES_PATH, unansweredStore;
|
|
1006
1008
|
var init_answeredNativePackages = __esm({
|
|
1007
1009
|
"src/answeredNativePackages.ts"() {
|
|
1008
1010
|
"use strict";
|
|
1011
|
+
import_node_async_hooks = require("node:async_hooks");
|
|
1009
1012
|
import_node_fs5 = require("node:fs");
|
|
1010
1013
|
import_node_path4 = require("node:path");
|
|
1011
1014
|
init_runtime_assets();
|
|
1012
1015
|
ANSWERED_NATIVE_PACKAGES_PATH = "node/answered-native-packages.json";
|
|
1016
|
+
unansweredStore = new import_node_async_hooks.AsyncLocalStorage();
|
|
1013
1017
|
}
|
|
1014
1018
|
});
|
|
1015
1019
|
|
|
@@ -37122,7 +37126,7 @@ var init_swift_submit = __esm({
|
|
|
37122
37126
|
MAX_SWIFT_COMPILE_IMAGES = 256;
|
|
37123
37127
|
MAX_SWIFT_COMPILE_IMAGE_BYTES = 4 * 1024 * 1024;
|
|
37124
37128
|
MAX_SWIFT_COMPILE_IMAGE_TOTAL_BYTES = 16 * 1024 * 1024;
|
|
37125
|
-
SWIFT_HOST_ABI =
|
|
37129
|
+
SWIFT_HOST_ABI = 73;
|
|
37126
37130
|
POLL_INTERVAL_MS = 1500;
|
|
37127
37131
|
}
|
|
37128
37132
|
});
|
|
@@ -44780,7 +44784,7 @@ var init_swift_standin_digest = __esm({
|
|
|
44780
44784
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
44781
44785
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
44782
44786
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
44783
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
44787
|
+
STANDIN_SOURCE_DIGEST = true ? "89e44465df23e51162420571715018b02da9bbaf61840c772745d5ba5f15487c" : standinSourceDigest();
|
|
44784
44788
|
}
|
|
44785
44789
|
});
|
|
44786
44790
|
|
|
@@ -51891,11 +51895,11 @@ function scopedArtifact(project2, entry, moduleRoot, signal) {
|
|
|
51891
51895
|
project2.building = { stamp, promise: fresh, signal };
|
|
51892
51896
|
return fresh;
|
|
51893
51897
|
}
|
|
51894
|
-
var
|
|
51898
|
+
var import_node_async_hooks2, import_node_child_process43, import_node_crypto40, import_node_fs80, import_node_os16, import_node_path79, RESOURCE_PATH, ICU_PATH, SKIP_ROOT_DIRS, NATIVE_DESCRIPTOR, NATIVE_GLUE, SwiftMissingModulesError, sharedProjects, projectScope, projects, sharedSourceEntries, sourceEntries, sharedXcodeProjects, xcodeProjects, preparedScriptInputs, emptyWasmAssembly, XCODE_APP_DIR, XCODE_FRAMEWORKS_DIR, XCODE_PACKAGES_DIR, layoutScope, HOSTED_LIMITS, LOCAL_LIMITS, inputLimits, RESOURCE_CONTENT_TYPES, API_GAP_PATTERNS, IOS_SDK_FRAMEWORKS;
|
|
51895
51899
|
var init_swift_host = __esm({
|
|
51896
51900
|
"src/swift-host.ts"() {
|
|
51897
51901
|
"use strict";
|
|
51898
|
-
|
|
51902
|
+
import_node_async_hooks2 = require("node:async_hooks");
|
|
51899
51903
|
import_node_child_process43 = require("node:child_process");
|
|
51900
51904
|
import_node_crypto40 = require("node:crypto");
|
|
51901
51905
|
import_node_fs80 = __toESM(require("node:fs"), 1);
|
|
@@ -51937,7 +51941,7 @@ var init_swift_host = __esm({
|
|
|
51937
51941
|
SwiftMissingModulesError = class extends Error {
|
|
51938
51942
|
};
|
|
51939
51943
|
sharedProjects = /* @__PURE__ */ new Map();
|
|
51940
|
-
projectScope = new
|
|
51944
|
+
projectScope = new import_node_async_hooks2.AsyncLocalStorage();
|
|
51941
51945
|
projects = () => projectScope.getStore()?.projects ?? sharedProjects;
|
|
51942
51946
|
sharedSourceEntries = /* @__PURE__ */ new Map();
|
|
51943
51947
|
sourceEntries = () => projectScope.getStore()?.sourceEntries ?? sharedSourceEntries;
|
|
@@ -51948,7 +51952,7 @@ var init_swift_host = __esm({
|
|
|
51948
51952
|
XCODE_APP_DIR = "__app__";
|
|
51949
51953
|
XCODE_FRAMEWORKS_DIR = "__frameworks__";
|
|
51950
51954
|
XCODE_PACKAGES_DIR = SWIFT_REMOTE_PACKAGES_DIR;
|
|
51951
|
-
layoutScope = new
|
|
51955
|
+
layoutScope = new import_node_async_hooks2.AsyncLocalStorage();
|
|
51952
51956
|
HOSTED_LIMITS = {
|
|
51953
51957
|
sourceBytes: MAX_SWIFT_COMPILE_SOURCE_BYTES,
|
|
51954
51958
|
resources: MAX_SWIFT_COMPILE_RESOURCES,
|
|
@@ -57225,26 +57229,33 @@ var init_nitro_compiler_digest = __esm({
|
|
|
57225
57229
|
});
|
|
57226
57230
|
|
|
57227
57231
|
// src/package-tree-digest.ts
|
|
57228
|
-
|
|
57232
|
+
function hashPackageTree(root, options) {
|
|
57229
57233
|
const files2 = [];
|
|
57230
57234
|
const walk3 = (directory2, relative4) => {
|
|
57231
57235
|
for (const entry of (0, import_node_fs87.readdirSync)(directory2, { withFileTypes: true }).sort(
|
|
57232
|
-
(a, b) => a.name
|
|
57236
|
+
(a, b) => options.compareNames(a.name, b.name)
|
|
57233
57237
|
)) {
|
|
57234
57238
|
if (entry.name === "node_modules") continue;
|
|
57235
57239
|
const path101 = `${relative4}${entry.name}`;
|
|
57236
57240
|
if (entry.isDirectory()) walk3((0, import_node_path86.join)(directory2, entry.name), `${path101}/`);
|
|
57237
|
-
else if (entry.isFile()) files2.push(path101);
|
|
57241
|
+
else if (entry.isFile() && !options.skipFile?.(entry.name)) files2.push(path101);
|
|
57238
57242
|
}
|
|
57239
57243
|
};
|
|
57240
57244
|
walk3(root, "");
|
|
57241
57245
|
const hash = (0, import_node_crypto45.createHash)("sha256");
|
|
57242
|
-
|
|
57243
|
-
|
|
57244
|
-
|
|
57245
|
-
|
|
57246
|
-
|
|
57247
|
-
|
|
57246
|
+
return (async () => {
|
|
57247
|
+
for (let start = 0; start < files2.length; start += READ_AHEAD) {
|
|
57248
|
+
const batch = files2.slice(start, start + READ_AHEAD);
|
|
57249
|
+
const bytes = await Promise.all(batch.map((file) => (0, import_promises8.readFile)((0, import_node_path86.join)(root, file))));
|
|
57250
|
+
batch.forEach((file, index) => hash.update(`${file}\0`).update(bytes[index]));
|
|
57251
|
+
}
|
|
57252
|
+
return hash.digest("hex");
|
|
57253
|
+
})();
|
|
57254
|
+
}
|
|
57255
|
+
function packageTreeDigest(root) {
|
|
57256
|
+
return hashPackageTree(root, {
|
|
57257
|
+
compareNames: (left, right) => left.localeCompare(right)
|
|
57258
|
+
});
|
|
57248
57259
|
}
|
|
57249
57260
|
var import_node_crypto45, import_node_fs87, import_promises8, import_node_path86, READ_AHEAD;
|
|
57250
57261
|
var init_package_tree_digest = __esm({
|
|
@@ -57389,7 +57400,7 @@ var init_nitro_superset = __esm({
|
|
|
57389
57400
|
init_nitroContract();
|
|
57390
57401
|
init_swift_standin_digest();
|
|
57391
57402
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
57392
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
57403
|
+
NITRO_COMPILER_DIGEST = true ? "1bc5848c1af14dee0bf97f7bd5d31978f14a6253eda5cd08260d1c7e00c5ca49" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
57393
57404
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
57394
57405
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
57395
57406
|
published = /* @__PURE__ */ new Map();
|
|
@@ -58606,7 +58617,7 @@ var init_expo_native_compiler_digest = __esm({
|
|
|
58606
58617
|
|
|
58607
58618
|
// src/expo-native-prebuilt.ts
|
|
58608
58619
|
function expoNativeCompilerDigestValue() {
|
|
58609
|
-
return true ? "
|
|
58620
|
+
return true ? "9b86a3d9b32c1030e03f81631aa8f360f8a5e29bbaf2e75d7110a2d558272880" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
58610
58621
|
}
|
|
58611
58622
|
function readSources(value) {
|
|
58612
58623
|
const sources = isRecord(value) ? value.sources : null;
|
|
@@ -59661,7 +59672,8 @@ async function prepareTurboCompileInput(options) {
|
|
|
59661
59672
|
collection.externalPodSources.map(({ moduleName: moduleName2 }) => moduleName2)
|
|
59662
59673
|
);
|
|
59663
59674
|
for (const target of collection.targets)
|
|
59664
|
-
if (!externalModules.has(target.name)
|
|
59675
|
+
if (!externalModules.has(target.name) || collection.rendererSwiftTargets.includes(target.name))
|
|
59676
|
+
available.add(target.name);
|
|
59665
59677
|
const missing2 = [
|
|
59666
59678
|
.../* @__PURE__ */ new Set([
|
|
59667
59679
|
...missingSwiftModules(collection.files, available).keys(),
|
|
@@ -60096,7 +60108,7 @@ var init_react_native_core = __esm({
|
|
|
60096
60108
|
init_swift_distribution();
|
|
60097
60109
|
init_swift_package();
|
|
60098
60110
|
init_swiftContract();
|
|
60099
|
-
recipe = true ? "
|
|
60111
|
+
recipe = true ? "8e950f0e9749922071dda3e668507e3ff24dd2678085abafc0a8403c6263bddf" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
|
|
60100
60112
|
strings4 = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
|
|
60101
60113
|
building = /* @__PURE__ */ new Map();
|
|
60102
60114
|
}
|
|
@@ -62343,11 +62355,11 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
|
|
|
62343
62355
|
throw failure2;
|
|
62344
62356
|
}
|
|
62345
62357
|
}
|
|
62346
|
-
var
|
|
62358
|
+
var import_node_async_hooks3, import_node_child_process47, import_node_crypto51, import_node_fs98, import_node_module15, import_node_os19, import_node_path96, import_node_url6, import_node_util17, run7, scriptEnv, EXPO_SWIFT_ENTRY, WITNESS_BATCH, traceStore, discoveryCache, preparedCache, savedFs, ignoredRoots, ownTemporaryRoots, preparedExpoSwift, openPreparations, ExpoSwiftLinkRefusal;
|
|
62347
62359
|
var init_expo_swift_host = __esm({
|
|
62348
62360
|
"src/expo-swift-host.ts"() {
|
|
62349
62361
|
"use strict";
|
|
62350
|
-
|
|
62362
|
+
import_node_async_hooks3 = require("node:async_hooks");
|
|
62351
62363
|
import_node_child_process47 = require("node:child_process");
|
|
62352
62364
|
import_node_crypto51 = require("node:crypto");
|
|
62353
62365
|
import_node_fs98 = __toESM(require("node:fs"), 1);
|
|
@@ -62390,7 +62402,7 @@ var init_expo_swift_host = __esm({
|
|
|
62390
62402
|
scriptEnv = { ...process.env, [PEACH_FORKED_SCRIPT_ENV]: "1" };
|
|
62391
62403
|
EXPO_SWIFT_ENTRY = "Sources/PeachExpoApp/PeachExpoEntry.swift";
|
|
62392
62404
|
WITNESS_BATCH = 200;
|
|
62393
|
-
traceStore = new
|
|
62405
|
+
traceStore = new import_node_async_hooks3.AsyncLocalStorage();
|
|
62394
62406
|
discoveryCache = /* @__PURE__ */ new Map();
|
|
62395
62407
|
preparedCache = /* @__PURE__ */ new Map();
|
|
62396
62408
|
savedFs = null;
|
|
@@ -63730,9 +63742,11 @@ function entrySource(ids) {
|
|
|
63730
63742
|
"fun peachSetAndroidDeviceInfo(model: String, release: String, apiLevel: Int, locale: String, timeZone: String, settings: String, properties: String) {",
|
|
63731
63743
|
" Build.setDevice(model, release, apiLevel)",
|
|
63732
63744
|
" java.util.Locale.setDefault(java.util.Locale.forLanguageTag(locale))",
|
|
63733
|
-
" java.util.TimeZone.setDevice(timeZone)",
|
|
63734
63745
|
" dev.peach.android.ProcessSettings.configure(settings)",
|
|
63735
|
-
" android.
|
|
63746
|
+
" // the engine reports the device zone apart; android keeps it in persist.sys.timezone",
|
|
63747
|
+
' android.os.SystemProperties.configure(org.json.JSONObject(properties).put("persist.sys.timezone", timeZone).toString())',
|
|
63748
|
+
" // a later call is the device's time zone change, which ActivityThread answers with setDefault(null)",
|
|
63749
|
+
" if (dalvik.system.RuntimeHooks.getTimeZoneIdSupplier() == null) com.android.internal.os.RuntimeInit.commonInit() else java.util.TimeZone.setDefault(null)",
|
|
63736
63750
|
"}",
|
|
63737
63751
|
"",
|
|
63738
63752
|
"@OptIn(kotlin.js.ExperimentalJsExport::class, kotlinx.coroutines.DelicateCoroutinesApi::class)",
|
|
@@ -64122,9 +64136,11 @@ async function expoKotlinArtifact(root, moduleRoot, origin, modules) {
|
|
|
64122
64136
|
"@JsExport fun peachSetAndroidDeviceInfo(model: String, release: String, apiLevel: Int, locale: String, timeZone: String, settings: String, properties: String) {",
|
|
64123
64137
|
" android.os.Build.setDevice(model, release, apiLevel)",
|
|
64124
64138
|
" java.util.Locale.setDefault(java.util.Locale.forLanguageTag(locale))",
|
|
64125
|
-
" java.util.TimeZone.setDevice(timeZone)",
|
|
64126
64139
|
" dev.peach.android.ProcessSettings.configure(settings)",
|
|
64127
|
-
" android.
|
|
64140
|
+
" // the engine reports the device zone apart; android keeps it in persist.sys.timezone",
|
|
64141
|
+
' android.os.SystemProperties.configure(org.json.JSONObject(properties).put("persist.sys.timezone", timeZone).toString())',
|
|
64142
|
+
" // a later call is the device's time zone change, which ActivityThread answers with setDefault(null)",
|
|
64143
|
+
" if (dalvik.system.RuntimeHooks.getTimeZoneIdSupplier() == null) com.android.internal.os.RuntimeInit.commonInit() else java.util.TimeZone.setDefault(null)",
|
|
64128
64144
|
" PeachExpoRuntime.configureProcessLocale(locale)",
|
|
64129
64145
|
"}",
|
|
64130
64146
|
"",
|
|
@@ -66058,7 +66074,7 @@ var import_node_path5 = require("node:path");
|
|
|
66058
66074
|
init_src();
|
|
66059
66075
|
|
|
66060
66076
|
// runtime-companion.json
|
|
66061
|
-
var runtime_companion_default = { abi: 1, sha256: "
|
|
66077
|
+
var runtime_companion_default = { abi: 1, sha256: "d02533327d5a71a81c4402948c16014a41f69aaec3e413f48e4dbf3b9a2be677", file: "node/cli-d02533327d5a71a81c4402948c16014a41f69aaec3e413f48e4dbf3b9a2be677.cjs" };
|
|
66062
66078
|
|
|
66063
66079
|
// src/cli-runtime.ts
|
|
66064
66080
|
init_answeredNativePackages();
|
|
@@ -69435,7 +69451,7 @@ init_bundleAssets();
|
|
|
69435
69451
|
init_expo_native_workspace();
|
|
69436
69452
|
|
|
69437
69453
|
// src/host/staged-host-files.ts
|
|
69438
|
-
var
|
|
69454
|
+
var import_node_async_hooks4 = require("node:async_hooks");
|
|
69439
69455
|
var import_node_crypto57 = require("node:crypto");
|
|
69440
69456
|
var import_node_fs108 = __toESM(require("node:fs"), 1);
|
|
69441
69457
|
var import_node_path107 = __toESM(require("node:path"), 1);
|
|
@@ -69504,7 +69520,7 @@ var EXTENSION_BY_MIME = new Map([
|
|
|
69504
69520
|
|
|
69505
69521
|
// src/host/staged-host-files.ts
|
|
69506
69522
|
init_home_paths();
|
|
69507
|
-
var stagedCapture = new
|
|
69523
|
+
var stagedCapture = new import_node_async_hooks4.AsyncLocalStorage();
|
|
69508
69524
|
async function captureStagedHostFiles(prepare2) {
|
|
69509
69525
|
const names = /* @__PURE__ */ new Set();
|
|
69510
69526
|
const value = await stagedCapture.run(names, prepare2);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2270 | (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.2270 | (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.2270 | (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/cloud.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2270 | (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/cloud.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2270 | (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);
|
package/dist-lib/config.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2270 | (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/config.mjs
CHANGED
package/dist-lib/detox/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2270 | (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;
|
|
@@ -2475,7 +2475,10 @@ function isValidRuntimeVersion(value) {
|
|
|
2475
2475
|
}
|
|
2476
2476
|
|
|
2477
2477
|
// runtime-companion.json
|
|
2478
|
-
var runtime_companion_default = { abi: 1, sha256: "
|
|
2478
|
+
var runtime_companion_default = { abi: 1, sha256: "d02533327d5a71a81c4402948c16014a41f69aaec3e413f48e4dbf3b9a2be677", file: "node/cli-d02533327d5a71a81c4402948c16014a41f69aaec3e413f48e4dbf3b9a2be677.cjs" };
|
|
2479
|
+
|
|
2480
|
+
// src/answeredNativePackages.ts
|
|
2481
|
+
var import_node_async_hooks = require("node:async_hooks");
|
|
2479
2482
|
|
|
2480
2483
|
// src/runtime-assets.ts
|
|
2481
2484
|
var import_fs = __toESM(require("fs"), 1);
|
|
@@ -2520,6 +2523,7 @@ function resolveActiveRuntimeRoot() {
|
|
|
2520
2523
|
}
|
|
2521
2524
|
|
|
2522
2525
|
// src/answeredNativePackages.ts
|
|
2526
|
+
var unansweredStore = new import_node_async_hooks.AsyncLocalStorage();
|
|
2523
2527
|
function peachRuntimeRoot() {
|
|
2524
2528
|
const root = resolveDevCheckoutRuntimeAssetRoot() ?? resolveActiveRuntimeRoot();
|
|
2525
2529
|
if (!root) throw new Error("No Peach runtime installed; run `peach runtime install`");
|
|
@@ -2641,7 +2645,7 @@ var import_zod = require("zod");
|
|
|
2641
2645
|
var DEFAULT_ORIGIN = peachPublicBrand.origin;
|
|
2642
2646
|
|
|
2643
2647
|
// cli/run-rnx.ts
|
|
2644
|
-
var
|
|
2648
|
+
var import_node_async_hooks2 = require("node:async_hooks");
|
|
2645
2649
|
var PeachExit = class extends Error {
|
|
2646
2650
|
code;
|
|
2647
2651
|
reason;
|
|
@@ -2652,7 +2656,7 @@ var PeachExit = class extends Error {
|
|
|
2652
2656
|
this.reason = reason;
|
|
2653
2657
|
}
|
|
2654
2658
|
};
|
|
2655
|
-
var sinks = new
|
|
2659
|
+
var sinks = new import_node_async_hooks2.AsyncLocalStorage();
|
|
2656
2660
|
function peachExit(code, reason) {
|
|
2657
2661
|
throw new PeachExit(code, reason);
|
|
2658
2662
|
}
|
|
@@ -10577,9 +10581,12 @@ var device = {
|
|
|
10577
10581
|
const nativeStagesPath = nativeCheckpoint && path6.join(nativeCheckpoint, "stages.json");
|
|
10578
10582
|
const nativeRecord = nativeStagesPath && fs4.existsSync(nativeStagesPath) ? JSON.parse(fs4.readFileSync(nativeStagesPath, "utf8")) : null;
|
|
10579
10583
|
const nativeStages = nativeRecord?.stages ?? [];
|
|
10580
|
-
const onsetChangePercent = Math.
|
|
10581
|
-
|
|
10582
|
-
|
|
10584
|
+
const onsetChangePercent = Math.min(
|
|
10585
|
+
Math.max(
|
|
10586
|
+
proofObserver.motionChangeDefinition.minimumChangePercent,
|
|
10587
|
+
nativeRecord?.videoTriggerDetection?.changedPixelPercent ?? 0
|
|
10588
|
+
),
|
|
10589
|
+
99.9
|
|
10583
10590
|
);
|
|
10584
10591
|
const pairedStages = stages.map((stage) => {
|
|
10585
10592
|
if (DETOX_PLATFORM !== "ios") return stage;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2270 | (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;
|