peachsim 0.1.2242 → 0.1.2243
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/flow.ts +4 -0
- package/cli/commands/inspect/settling.ts +7 -2
- 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 +90 -11
- 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 +8 -3
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +89 -10
- 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 +97 -23
- package/dist-lib/host/fetch-proxy-handler.cjs +3 -3
- 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 +10 -5
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +3 -3
- package/dist-lib/native-app-identity-project.cjs +2 -2
- package/dist-lib/native-app-identity-project.mjs +2 -2
- 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 +53 -53
- 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 +8 -3
- package/dist-lib/sdk.mjs +8 -3
- package/dist-lib/skills.cjs +104 -25
- package/dist-lib/swift-compile.cjs +4 -3
- package/dist-lib/swift-compile.mjs +4 -3
- 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 +482 -402
- package/dist-lib/vite.cjs +3 -3
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/src/host/bridge-host.ts +12 -13
- package/src/native-static-libraries.ts +82 -1
- package/src/swift-standins.ts +11 -4
- package/src/swift-submit.ts +3 -1
- package/src/swift-wasm-prune.ts +23 -0
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2243 | (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;
|
|
@@ -30888,7 +30888,7 @@ var init_swift_submit = __esm({
|
|
|
30888
30888
|
MAX_SWIFT_COMPILE_IMAGES = 256;
|
|
30889
30889
|
MAX_SWIFT_COMPILE_IMAGE_BYTES = 4 * 1024 * 1024;
|
|
30890
30890
|
MAX_SWIFT_COMPILE_IMAGE_TOTAL_BYTES = 16 * 1024 * 1024;
|
|
30891
|
-
SWIFT_HOST_ABI =
|
|
30891
|
+
SWIFT_HOST_ABI = 72;
|
|
30892
30892
|
POLL_INTERVAL_MS = 1500;
|
|
30893
30893
|
}
|
|
30894
30894
|
});
|
|
@@ -47668,7 +47668,7 @@ function patchSwiftrtObject(src) {
|
|
|
47668
47668
|
}
|
|
47669
47669
|
return buf;
|
|
47670
47670
|
}
|
|
47671
|
-
function parseWasmObjectBytes(file, buf, isDist) {
|
|
47671
|
+
function parseWasmObjectBytes(file, buf, isDist, symbolFlagOffsets) {
|
|
47672
47672
|
let pos = 8;
|
|
47673
47673
|
let numImportFuncs = 0;
|
|
47674
47674
|
const importFuncNames = [];
|
|
@@ -47824,6 +47824,7 @@ function parseWasmObjectBytes(file, buf, isDist) {
|
|
|
47824
47824
|
let cur = p2;
|
|
47825
47825
|
for (let i = 0; i < cnt; i++) {
|
|
47826
47826
|
const kind = buf[cur++];
|
|
47827
|
+
if (symbolFlagOffsets) symbolFlagOffsets[i] = cur;
|
|
47827
47828
|
const [fl, c2] = readULEB2(buf, cur);
|
|
47828
47829
|
cur = c2;
|
|
47829
47830
|
symKind[i] = kind;
|
|
@@ -48081,6 +48082,23 @@ function parseWasmObjectCached(file, isDist, useCache) {
|
|
|
48081
48082
|
if (useCache) parsedObjectCache.set(key2, parsed);
|
|
48082
48083
|
return parsed;
|
|
48083
48084
|
}
|
|
48085
|
+
function localizeDefinedWasmSymbols(bytes, names) {
|
|
48086
|
+
const offsets = [];
|
|
48087
|
+
const object6 = parseWasmObjectBytes("", bytes, false, offsets);
|
|
48088
|
+
const output2 = Uint8Array.from(bytes);
|
|
48089
|
+
let changed = 0;
|
|
48090
|
+
for (let index = 0; index < object6.symNames.length; index++) {
|
|
48091
|
+
if (!names.has(object6.symNames[index])) continue;
|
|
48092
|
+
if ((object6.symFlags[index] & 3) === 2) continue;
|
|
48093
|
+
if (object6.symFlags[index] & 16)
|
|
48094
|
+
throw new Error("cannot localize an undefined symbol");
|
|
48095
|
+
const offset = offsets[index];
|
|
48096
|
+
output2[offset] = output2[offset] & ~35 | 2;
|
|
48097
|
+
changed++;
|
|
48098
|
+
}
|
|
48099
|
+
if (changed !== names.size) throw new Error("Wasm symbols to localize were not defined");
|
|
48100
|
+
return output2;
|
|
48101
|
+
}
|
|
48084
48102
|
function guestWasmSymbols(bytes) {
|
|
48085
48103
|
const object6 = parseWasmObjectBytes("", bytes, false);
|
|
48086
48104
|
return {
|
|
@@ -59344,7 +59362,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
|
|
|
59344
59362
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
59345
59363
|
MULTI_MANIFEST_VERSION = 68;
|
|
59346
59364
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
59347
|
-
compilerSourceDigest = true ? "
|
|
59365
|
+
compilerSourceDigest = true ? "b60df189803fef5c8b8fd902ae0a694ffbefe056af8f5fc06f707750dc97f09b" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
59348
59366
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
59349
59367
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
59350
59368
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -65826,7 +65844,7 @@ var init_swift_standin_digest = __esm({
|
|
|
65826
65844
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
65827
65845
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
65828
65846
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
65829
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
65847
|
+
STANDIN_SOURCE_DIGEST = true ? "9d24428078636d005cc1401363f5f50704e049f52802b0493da7eea674470942" : standinSourceDigest();
|
|
65830
65848
|
}
|
|
65831
65849
|
});
|
|
65832
65850
|
|
|
@@ -66287,7 +66305,7 @@ var init_package_tree_digest = __esm({
|
|
|
66287
66305
|
|
|
66288
66306
|
// src/expo-native-prebuilt.ts
|
|
66289
66307
|
function expoNativeCompilerDigestValue() {
|
|
66290
|
-
return true ? "
|
|
66308
|
+
return true ? "627212ff3caecd928de8497818fc5fd77af14529e378d77e3ea67a523f33e4c1" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
66291
66309
|
}
|
|
66292
66310
|
function readSources(value) {
|
|
66293
66311
|
const sources = isRecord(value) ? value.sources : null;
|
|
@@ -66649,7 +66667,63 @@ function nativeStaticLibrary(file, recipe2, moduleRoot) {
|
|
|
66649
66667
|
throw new Error(
|
|
66650
66668
|
`${file}: native WebAssembly archive ${entry.name}/${entry.key} is not built for this compiler and SDK`
|
|
66651
66669
|
);
|
|
66652
|
-
|
|
66670
|
+
const archive = import_node_path69.default.join(dir, recipe2.archive);
|
|
66671
|
+
return "runtime" in recipe2 ? rustStaticLibrary(archive, moduleRoot) : archive;
|
|
66672
|
+
}
|
|
66673
|
+
function isRustSymbol(name3, demangled) {
|
|
66674
|
+
return (name3.startsWith("_R") || /^_ZN.*17h[0-9a-f]{16}E$/.test(name3)) && demangled !== name3 || name3 === "rust_eh_personality" || name3 === "__getrandom_v03_custom";
|
|
66675
|
+
}
|
|
66676
|
+
function rustStaticLibrary(file, moduleRoot) {
|
|
66677
|
+
const toolchain = swiftModuleToolchain(moduleRoot);
|
|
66678
|
+
const key2 = (0, import_node_crypto37.createHash)("sha256").update("rust-c-abi-v2\0").update(toolchain.release).update("\0").update(import_node_fs71.default.readFileSync(file)).digest("hex");
|
|
66679
|
+
const directory2 = import_node_path69.default.join(cacheDir(), "native-archives", key2);
|
|
66680
|
+
const archive = import_node_path69.default.join(directory2, "library.a");
|
|
66681
|
+
if (import_node_fs71.default.existsSync(archive)) return archive;
|
|
66682
|
+
const flags = ["--no-sort", "--extern-only", "--defined-only", "--format=just-symbols"];
|
|
66683
|
+
const options = { encoding: "utf8", maxBuffer: 64 * 1024 * 1024 };
|
|
66684
|
+
const symbols = (input) => {
|
|
66685
|
+
const raw2 = (0, import_node_child_process38.execFileSync)(
|
|
66686
|
+
import_node_path69.default.join(toolchain.toolchainBin, "llvm-nm"),
|
|
66687
|
+
[...flags, input],
|
|
66688
|
+
options
|
|
66689
|
+
).trim().split("\n");
|
|
66690
|
+
const demangled = (0, import_node_child_process38.execFileSync)(
|
|
66691
|
+
import_node_path69.default.join(toolchain.toolchainBin, "llvm-nm"),
|
|
66692
|
+
[...flags, "--demangle", input],
|
|
66693
|
+
options
|
|
66694
|
+
).trim().split("\n");
|
|
66695
|
+
if (raw2.length !== demangled.length)
|
|
66696
|
+
throw new Error(`${file}: Rust symbol table changed during intake`);
|
|
66697
|
+
return raw2.map((name3, index) => ({ name: name3, demangled: demangled[index] }));
|
|
66698
|
+
};
|
|
66699
|
+
if (!symbols(file).some(({ name: name3, demangled }) => isRustSymbol(name3, demangled)))
|
|
66700
|
+
return file;
|
|
66701
|
+
import_node_fs71.default.mkdirSync(directory2, { recursive: true });
|
|
66702
|
+
const stage = import_node_fs71.default.mkdtempSync(import_node_path69.default.join(directory2, "build-"));
|
|
66703
|
+
try {
|
|
66704
|
+
const object6 = import_node_path69.default.join(stage, "library.o");
|
|
66705
|
+
(0, import_node_child_process38.execFileSync)(import_node_path69.default.join(toolchain.toolchainBin, "wasm-ld"), [
|
|
66706
|
+
"-mwasm64",
|
|
66707
|
+
"-r",
|
|
66708
|
+
"--whole-archive",
|
|
66709
|
+
file,
|
|
66710
|
+
"--no-whole-archive",
|
|
66711
|
+
"-o",
|
|
66712
|
+
object6
|
|
66713
|
+
]);
|
|
66714
|
+
const names = new Set(
|
|
66715
|
+
symbols(object6).filter(
|
|
66716
|
+
({ name: name3, demangled }) => isRustSymbol(name3, demangled) || name3.startsWith("anon.")
|
|
66717
|
+
).map(({ name: name3 }) => name3)
|
|
66718
|
+
);
|
|
66719
|
+
import_node_fs71.default.writeFileSync(object6, localizeDefinedWasmSymbols(import_node_fs71.default.readFileSync(object6), names));
|
|
66720
|
+
const output2 = import_node_path69.default.join(stage, "library.a");
|
|
66721
|
+
(0, import_node_child_process38.execFileSync)(import_node_path69.default.join(toolchain.toolchainBin, "llvm-ar"), ["rcsD", output2, object6]);
|
|
66722
|
+
import_node_fs71.default.renameSync(output2, archive);
|
|
66723
|
+
} finally {
|
|
66724
|
+
import_node_fs71.default.rmSync(stage, { recursive: true, force: true });
|
|
66725
|
+
}
|
|
66726
|
+
return archive;
|
|
66653
66727
|
}
|
|
66654
66728
|
function combineNativeStaticLibraries(files2, moduleRoot) {
|
|
66655
66729
|
if (files2.length === 1) return files2[0];
|
|
@@ -66687,6 +66761,7 @@ var init_native_static_libraries = __esm({
|
|
|
66687
66761
|
init_native_prebuilt();
|
|
66688
66762
|
init_swift_compile();
|
|
66689
66763
|
init_swift_distribution();
|
|
66764
|
+
init_swift_wasm_prune();
|
|
66690
66765
|
init_swift_xcframework();
|
|
66691
66766
|
NATIVE_STATIC_LIBRARY_RECIPES = [
|
|
66692
66767
|
// react-native-libsodium's minimal apple build of the 1.0.20 release
|
|
@@ -66715,6 +66790,7 @@ var init_native_static_libraries = __esm({
|
|
|
66715
66790
|
},
|
|
66716
66791
|
{
|
|
66717
66792
|
name: "anydoc_mobile",
|
|
66793
|
+
runtime: "rust",
|
|
66718
66794
|
nativeSha256: "03b721dd9e98ec2767f7952aa65cde57d0c33d7ec80c9aaf7ab5ba77e055a25c",
|
|
66719
66795
|
upstream: "e41ad6375fd80b64c4183d1a3f901d1f640a7953",
|
|
66720
66796
|
recipe: "c180538533a79fe1c8babda204170806abe80dd4a546689dcc34c109c9fbfcfc",
|
|
@@ -66722,6 +66798,7 @@ var init_native_static_libraries = __esm({
|
|
|
66722
66798
|
},
|
|
66723
66799
|
{
|
|
66724
66800
|
name: "ratex_ffi",
|
|
66801
|
+
runtime: "rust",
|
|
66725
66802
|
nativeSha256: "8c41abcd8dd4e562e65cf5b88467a3493089c359d0863360dc65a5b88149e837",
|
|
66726
66803
|
upstream: "a4296fa21cd40a56543602511bcf417014f4fee7cf5e1eaab58e0ac9610e3f63",
|
|
66727
66804
|
// the unchanged source build, pinned Rust release and committed Cargo.lock.
|
|
@@ -66730,6 +66807,7 @@ var init_native_static_libraries = __esm({
|
|
|
66730
66807
|
},
|
|
66731
66808
|
{
|
|
66732
66809
|
name: "ratex_ffi_0_1_14",
|
|
66810
|
+
runtime: "rust",
|
|
66733
66811
|
nativeSha256: "bdd2bf679fcc981d98d36733b3bd083225a7397bb82bbd462c89088c6e0580a8",
|
|
66734
66812
|
upstream: "2da907eb5dfcb464c7eef3b4c657fbdee144e3c6633e81efb1e56dcf1c76e01b",
|
|
66735
66813
|
recipe: "537054295b8230548b3959b38459af2606cae69b226e37f6a2e0c227a8ad3cb1",
|
|
@@ -70176,7 +70254,8 @@ function standinLibrary(binary2, searchRoot, toolchain) {
|
|
|
70176
70254
|
throw new Error(
|
|
70177
70255
|
`${import_node_path75.default.relative(searchRoot, supplied)} holds no single static library${library ? ` named ${library}` : ""}`
|
|
70178
70256
|
);
|
|
70179
|
-
|
|
70257
|
+
if (!toolchain) throw new Error("supplied native libraries need the Swift SDK");
|
|
70258
|
+
return rustStaticLibrary(import_node_path75.default.join(supplied, chosen), toolchain.moduleRoot);
|
|
70180
70259
|
}
|
|
70181
70260
|
if (native && toolchain && import_node_fs78.default.existsSync(native.file)) {
|
|
70182
70261
|
const recipe2 = nativeStaticLibraryRecipe(import_node_fs78.default.readFileSync(native.file));
|
|
@@ -70201,8 +70280,8 @@ function standinLibrary(binary2, searchRoot, toolchain) {
|
|
|
70201
70280
|
if (!toolchain) throw new Error("Rust native libraries need the Swift SDK");
|
|
70202
70281
|
const entry = rustCrateEntry(manifest, library, toolchain.moduleRoot, searchRoot);
|
|
70203
70282
|
const prebuilt = fetchNativeEntry("rust", entry.name, entry.key);
|
|
70204
|
-
|
|
70205
|
-
return
|
|
70283
|
+
const archive = prebuilt ? import_node_path75.default.join(prebuilt, library) : buildRustCrate(manifest, library, searchRoot, toolchain.moduleRoot, entry);
|
|
70284
|
+
return rustStaticLibrary(archive, toolchain.moduleRoot);
|
|
70206
70285
|
}
|
|
70207
70286
|
function buildRustCrate(manifest, library, searchRoot, moduleRoot, entry = rustCrateEntry(manifest, library, moduleRoot, searchRoot)) {
|
|
70208
70287
|
const compiler = swiftModuleToolchain(moduleRoot);
|
|
@@ -87028,7 +87107,7 @@ var init_nitro_superset = __esm({
|
|
|
87028
87107
|
init_nitroContract();
|
|
87029
87108
|
init_swift_standin_digest();
|
|
87030
87109
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
87031
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
87110
|
+
NITRO_COMPILER_DIGEST = true ? "8e7da6e1e94c6020fbefec0b7297e54c6b727169dad0f2470f7606913c295d0f" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
87032
87111
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
87033
87112
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
87034
87113
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -105380,20 +105459,17 @@ var init_bridge_host = __esm({
|
|
|
105380
105459
|
})
|
|
105381
105460
|
);
|
|
105382
105461
|
}
|
|
105462
|
+
cliHasPendingCommand(ws) {
|
|
105463
|
+
for (const entry of this.cliBySentId.values()) if (entry.ws === ws) return true;
|
|
105464
|
+
return false;
|
|
105465
|
+
}
|
|
105383
105466
|
sweepIdleCliClients() {
|
|
105384
105467
|
const now = Date.now();
|
|
105385
105468
|
let swept = false;
|
|
105386
105469
|
for (const [ws, simId] of this.cliSimBySocket) {
|
|
105387
105470
|
const lastCommand = this.cliLastCommandAt.get(ws) ?? 0;
|
|
105388
105471
|
if (now - lastCommand < _SootSimBridgeHost.CLI_IDLE_TIMEOUT_MS) continue;
|
|
105389
|
-
|
|
105390
|
-
for (const entry of this.cliBySentId.values()) {
|
|
105391
|
-
if (entry.ws === ws) {
|
|
105392
|
-
hasPendingCommand = true;
|
|
105393
|
-
break;
|
|
105394
|
-
}
|
|
105395
|
-
}
|
|
105396
|
-
if (hasPendingCommand) continue;
|
|
105472
|
+
if (this.cliHasPendingCommand(ws)) continue;
|
|
105397
105473
|
this.cliSimBySocket.delete(ws);
|
|
105398
105474
|
this.cliLastCommandAt.delete(ws);
|
|
105399
105475
|
for (const [sentId, entry] of this.cliBySentId) {
|
|
@@ -105740,11 +105816,9 @@ var init_bridge_host = __esm({
|
|
|
105740
105816
|
const otherKey = this.cliIdentityKeyBySocket.get(cliWs);
|
|
105741
105817
|
if (otherKey && otherKey !== cliIdentityKey) {
|
|
105742
105818
|
this.cliSimBySocket.delete(cliWs);
|
|
105743
|
-
try {
|
|
105744
|
-
cliWs.close(1e3, "lease claimed by another cli");
|
|
105745
|
-
} catch {
|
|
105746
|
-
}
|
|
105747
105819
|
bootedCount++;
|
|
105820
|
+
if (this.cliHasPendingCommand(cliWs)) continue;
|
|
105821
|
+
cliWs.close(1e3, "lease claimed by another cli");
|
|
105748
105822
|
}
|
|
105749
105823
|
}
|
|
105750
105824
|
}
|
|
@@ -133819,6 +133893,7 @@ async function waitForSootsimIdle({
|
|
|
133819
133893
|
let webViewBlocker = ''
|
|
133820
133894
|
let visibleMotion = false
|
|
133821
133895
|
let visibleMotionBy = ''
|
|
133896
|
+
let motionUnavailable = false
|
|
133822
133897
|
// the reads are independent, so they run concurrently: a loaded sim
|
|
133823
133898
|
// answers each one late, and a poll that waits for them in turn
|
|
133824
133899
|
// costs their sum, which fits too few polls in the budget to settle.
|
|
@@ -133889,6 +133964,9 @@ async function waitForSootsimIdle({
|
|
|
133889
133964
|
.slice(0, 4)
|
|
133890
133965
|
.map((anim) => anim.source + '/' + anim.kind + '#' + anim.id + ' at ' + anim.current + (anim.loop ? ' loop' : ''))
|
|
133891
133966
|
.join(', ')
|
|
133967
|
+
} else if (screenStill) {
|
|
133968
|
+
motionUnavailable = true
|
|
133969
|
+
workerBusy = true
|
|
133892
133970
|
}
|
|
133893
133971
|
}
|
|
133894
133972
|
const stats = await statsRead
|
|
@@ -134066,7 +134144,7 @@ async function waitForSootsimIdle({
|
|
|
134066
134144
|
}
|
|
134067
134145
|
}
|
|
134068
134146
|
}
|
|
134069
|
-
return { layout: nodes.join(';'), nodeRows, nativeHierarchy, visibleMotion, visibleMotionBy, animating, animatingBy, shellAnimating, shellBlockers, layoutDirty, pendingFetches, workerBusy, webViewStarting, webViewBlocker, renderStatsAvailable, requestTotal, requestInFlight, appCommits, nodeCount }
|
|
134147
|
+
return { layout: nodes.join(';'), nodeRows, nativeHierarchy, visibleMotion, visibleMotionBy, animating, animatingBy, shellAnimating, shellBlockers, layoutDirty, pendingFetches, workerBusy, motionUnavailable, webViewStarting, webViewBlocker, renderStatsAvailable, requestTotal, requestInFlight, appCommits, nodeCount }
|
|
134070
134148
|
}
|
|
134071
134149
|
|
|
134072
134150
|
// how long generic background network is allowed to keep us waiting AFTER
|
|
@@ -134256,7 +134334,8 @@ async function waitForSootsimIdle({
|
|
|
134256
134334
|
if (!maestro && last.appCommits !== null && report.appCommits !== null && last.appCommits !== report.appCommits) blockers.push('layout commits still landing')
|
|
134257
134335
|
if (!maestro && last.nodeCount !== null && report.nodeCount !== null && last.nodeCount !== report.nodeCount) blockers.push('node count still changing')
|
|
134258
134336
|
if (last.pendingFetches > 0) blockers.push(last.pendingFetches + ' image fetches pending')
|
|
134259
|
-
if (last.
|
|
134337
|
+
if (last.motionUnavailable) blockers.push('animation reporting unavailable')
|
|
134338
|
+
if (last.workerBusy && !last.motionUnavailable) blockers.push('a render worker too busy to report')
|
|
134260
134339
|
if (last.webViewStarting) blockers.push(last.webViewBlocker || 'webView still starting')
|
|
134261
134340
|
if (!maestro && last.layout !== report.layout) blockers.push('layout still changing')
|
|
134262
134341
|
if (maestro && !hierarchyUnchanged(last.nativeHierarchy, report.nativeHierarchy)) blockers.push(last.nativeHierarchy === null ? 'native accessibility hierarchy unavailable' : 'native accessibility hierarchy still changing')
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2243 | (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;
|
|
@@ -5202,7 +5202,7 @@ function patchSwiftrtObject(src) {
|
|
|
5202
5202
|
}
|
|
5203
5203
|
return buf;
|
|
5204
5204
|
}
|
|
5205
|
-
function parseWasmObjectBytes(file, buf, isDist) {
|
|
5205
|
+
function parseWasmObjectBytes(file, buf, isDist, symbolFlagOffsets) {
|
|
5206
5206
|
let pos = 8;
|
|
5207
5207
|
let numImportFuncs = 0;
|
|
5208
5208
|
const importFuncNames = [];
|
|
@@ -5358,6 +5358,7 @@ function parseWasmObjectBytes(file, buf, isDist) {
|
|
|
5358
5358
|
let cur = p2;
|
|
5359
5359
|
for (let i = 0; i < cnt; i++) {
|
|
5360
5360
|
const kind = buf[cur++];
|
|
5361
|
+
if (symbolFlagOffsets) symbolFlagOffsets[i] = cur;
|
|
5361
5362
|
const [fl, c2] = readULEB2(buf, cur);
|
|
5362
5363
|
cur = c2;
|
|
5363
5364
|
symKind[i] = kind;
|
|
@@ -12988,7 +12989,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
12988
12989
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
12989
12990
|
var MULTI_MANIFEST_VERSION = 68;
|
|
12990
12991
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
12991
|
-
var compilerSourceDigest = true ? "
|
|
12992
|
+
var compilerSourceDigest = true ? "b60df189803fef5c8b8fd902ae0a694ffbefe056af8f5fc06f707750dc97f09b" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
12992
12993
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
12993
12994
|
const hash = (0, import_node_crypto13.createHash)("sha256");
|
|
12994
12995
|
hash.update(`swift-compile
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2243 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/swift-compile.ts
|
|
4
4
|
import {
|
|
@@ -5147,7 +5147,7 @@ function patchSwiftrtObject(src) {
|
|
|
5147
5147
|
}
|
|
5148
5148
|
return buf;
|
|
5149
5149
|
}
|
|
5150
|
-
function parseWasmObjectBytes(file, buf, isDist) {
|
|
5150
|
+
function parseWasmObjectBytes(file, buf, isDist, symbolFlagOffsets) {
|
|
5151
5151
|
let pos = 8;
|
|
5152
5152
|
let numImportFuncs = 0;
|
|
5153
5153
|
const importFuncNames = [];
|
|
@@ -5303,6 +5303,7 @@ function parseWasmObjectBytes(file, buf, isDist) {
|
|
|
5303
5303
|
let cur = p2;
|
|
5304
5304
|
for (let i = 0; i < cnt; i++) {
|
|
5305
5305
|
const kind = buf[cur++];
|
|
5306
|
+
if (symbolFlagOffsets) symbolFlagOffsets[i] = cur;
|
|
5306
5307
|
const [fl, c2] = readULEB2(buf, cur);
|
|
5307
5308
|
cur = c2;
|
|
5308
5309
|
symKind[i] = kind;
|
|
@@ -12966,7 +12967,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
12966
12967
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
12967
12968
|
var MULTI_MANIFEST_VERSION = 68;
|
|
12968
12969
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
12969
|
-
var compilerSourceDigest = true ? "
|
|
12970
|
+
var compilerSourceDigest = true ? "b60df189803fef5c8b8fd902ae0a694ffbefe056af8f5fc06f707750dc97f09b" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
12970
12971
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
12971
12972
|
const hash = createHash13("sha256");
|
|
12972
12973
|
hash.update(`swift-compile
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2243 | (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.2243 | (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;
|
|
@@ -86,7 +86,7 @@ var MAX_SWIFT_COMPILE_METAL_TOTAL_BYTES = 8 * 1024 * 1024;
|
|
|
86
86
|
var MAX_SWIFT_COMPILE_IMAGES = 256;
|
|
87
87
|
var MAX_SWIFT_COMPILE_IMAGE_BYTES = 4 * 1024 * 1024;
|
|
88
88
|
var MAX_SWIFT_COMPILE_IMAGE_TOTAL_BYTES = 16 * 1024 * 1024;
|
|
89
|
-
var SWIFT_HOST_ABI =
|
|
89
|
+
var SWIFT_HOST_ABI = 72;
|
|
90
90
|
var POLL_INTERVAL_MS = 1500;
|
|
91
91
|
function swiftNativeEntry(native, file) {
|
|
92
92
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2243 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/is-record.ts
|
|
4
4
|
function isRecord(value) {
|
|
@@ -40,7 +40,7 @@ var MAX_SWIFT_COMPILE_METAL_TOTAL_BYTES = 8 * 1024 * 1024;
|
|
|
40
40
|
var MAX_SWIFT_COMPILE_IMAGES = 256;
|
|
41
41
|
var MAX_SWIFT_COMPILE_IMAGE_BYTES = 4 * 1024 * 1024;
|
|
42
42
|
var MAX_SWIFT_COMPILE_IMAGE_TOTAL_BYTES = 16 * 1024 * 1024;
|
|
43
|
-
var SWIFT_HOST_ABI =
|
|
43
|
+
var SWIFT_HOST_ABI = 72;
|
|
44
44
|
var POLL_INTERVAL_MS = 1500;
|
|
45
45
|
function swiftNativeEntry(native, file) {
|
|
46
46
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2243 | (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;
|
package/dist-lib/swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2243 | (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;
|