peachsim 0.1.2248 → 0.1.2249
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 +28 -2
- package/cli/commands/inspect/settling.ts +35 -4
- package/cli/drivers/playwright.ts +2 -0
- 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 +150 -40
- 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 +32 -8
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +148 -38
- 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 +150 -40
- package/dist-lib/host/fetch-proxy-handler.cjs +4 -4
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +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 +34 -10
- 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 +4 -4
- 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 +31 -7
- package/dist-lib/sdk.mjs +31 -7
- package/dist-lib/skills.cjs +194 -49
- package/dist-lib/swift-compile.cjs +137 -28
- package/dist-lib/swift-compile.mjs +137 -28
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +146 -36
- package/dist-lib/vite.cjs +4 -4
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/shell-tree-wire.d.ts +8 -0
- package/dist-types/packages/peach-engine/src/render-worker/webview-capture-protocol.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/globalsContract.d.ts +5 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/wasm/include/math.h +1 -1
- package/sdk/ios/wasm/include/pthread.h +1 -1
- package/src/assetCatalogContract.ts +6 -0
- package/src/sfSymbolMetricsContract.ts +73 -37
- package/src/swift-compile.ts +99 -7
- package/src/swift-guest-image-ledger.ts +10 -5
- package/src/swift-guest-link.ts +20 -14
- package/src/swift-standins.ts +11 -8
- package/src/swift-wasm-prune.ts +30 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2249 | (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;
|
|
@@ -20455,7 +20455,11 @@ function parseWasmObjectBytes(file, buf, isDist, symbolFlagOffsets) {
|
|
|
20455
20455
|
objcClassSymToTypePrefix,
|
|
20456
20456
|
typePrefixesInObj,
|
|
20457
20457
|
rootFuncs,
|
|
20458
|
-
rootSegs
|
|
20458
|
+
rootSegs,
|
|
20459
|
+
segPayloadRanges: sEnds.map((end, i) => [
|
|
20460
|
+
dataStart + sPayloadStarts[i],
|
|
20461
|
+
dataStart + end
|
|
20462
|
+
])
|
|
20459
20463
|
};
|
|
20460
20464
|
}
|
|
20461
20465
|
function parseWasmObjectCached(file, isDist, useCache) {
|
|
@@ -21120,9 +21124,29 @@ function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTar
|
|
|
21120
21124
|
"$s10Foundation16NSSortDescriptorC7keyPath9ascendingACs03KeyE0Cyxq_G_SbtcSLR_r0_lufC",
|
|
21121
21125
|
"$s10Foundation16NSSortDescriptorC7keyPath9ascendingACs03KeyE0Cyxq_G_SbtcSLR_r0_lufc"
|
|
21122
21126
|
]);
|
|
21127
|
+
const objectBytes = /* @__PURE__ */ new Map();
|
|
21128
|
+
const keepObjCClassesNamedInSegment = (obj, segIdx) => {
|
|
21129
|
+
const range2 = obj.segPayloadRanges[segIdx];
|
|
21130
|
+
if (!range2) return;
|
|
21131
|
+
let bytes = objectBytes.get(obj);
|
|
21132
|
+
if (!bytes) objectBytes.set(obj, bytes = import_node_fs26.default.readFileSync(obj.file));
|
|
21133
|
+
const text6 = bytes.toString("latin1", range2[0], range2[1]);
|
|
21134
|
+
for (const match of text6.matchAll(/So(\d+)/g)) {
|
|
21135
|
+
const start = match.index + 2 + match[1].length;
|
|
21136
|
+
const length = Number(match[1]);
|
|
21137
|
+
if (text6[start + length] !== "C") continue;
|
|
21138
|
+
const symbol2 = `._OBJC_CLASS_${text6.slice(start, start + length)}`;
|
|
21139
|
+
for (const provider of lazyProviders.get(symbol2) ?? []) {
|
|
21140
|
+
eagerDynamicObjects.add(provider);
|
|
21141
|
+
extractObject(provider);
|
|
21142
|
+
activateSymbolInObj(provider, provider.symNames.indexOf(symbol2));
|
|
21143
|
+
}
|
|
21144
|
+
}
|
|
21145
|
+
};
|
|
21123
21146
|
while (workQueue.length > 0) {
|
|
21124
21147
|
const item = workQueue.pop();
|
|
21125
21148
|
const obj = item.obj;
|
|
21149
|
+
if (item.kind === "seg") keepObjCClassesNamedInSegment(obj, item.idx);
|
|
21126
21150
|
let relocs;
|
|
21127
21151
|
if (item.kind === "func") {
|
|
21128
21152
|
relocs = obj.funcRelocs[item.idx];
|
|
@@ -22068,8 +22092,12 @@ function createGuestImageLedger(input) {
|
|
|
22068
22092
|
}
|
|
22069
22093
|
}
|
|
22070
22094
|
}
|
|
22095
|
+
const nameBytes = /* @__PURE__ */ new Map();
|
|
22096
|
+
for (const definition2 of definitions)
|
|
22097
|
+
if (!nameBytes.has(definition2.name))
|
|
22098
|
+
nameBytes.set(definition2.name, Buffer.from(definition2.name));
|
|
22071
22099
|
definitions.sort(
|
|
22072
|
-
(a, b) => Buffer.compare(
|
|
22100
|
+
(a, b) => Buffer.compare(nameBytes.get(a.name), nameBytes.get(b.name)) || a.image - b.image
|
|
22073
22101
|
);
|
|
22074
22102
|
const preserveCanonical = /* @__PURE__ */ new Set();
|
|
22075
22103
|
const definitionsByName = Map.groupBy(definitions, (definition2) => definition2.name);
|
|
@@ -22099,12 +22127,12 @@ function createGuestImageLedger(input) {
|
|
|
22099
22127
|
preserveCanonical.add(name3);
|
|
22100
22128
|
for (const name3 of input.commandLineSymbols ?? []) preserveCanonical.add(name3);
|
|
22101
22129
|
const bindingsByImage = /* @__PURE__ */ new Map();
|
|
22130
|
+
const definitionsByImage = Map.groupBy(definitions, (definition2) => definition2.image);
|
|
22102
22131
|
for (const caller of input.callers) {
|
|
22103
22132
|
const bindings = /* @__PURE__ */ new Map();
|
|
22104
22133
|
const seen = /* @__PURE__ */ new Map();
|
|
22105
22134
|
for (const image of [caller.image, ...caller.next])
|
|
22106
|
-
for (const definition2 of
|
|
22107
|
-
if (definition2.image !== image) continue;
|
|
22135
|
+
for (const definition2 of definitionsByImage.get(image) ?? []) {
|
|
22108
22136
|
const previous = seen.get(definition2.name);
|
|
22109
22137
|
if (previous?.image === definition2.image) {
|
|
22110
22138
|
if (previous.weak && !definition2.weak) {
|
|
@@ -22144,8 +22172,9 @@ function createGuestImageLedger(input) {
|
|
|
22144
22172
|
definitionsByAlias.set(definition2.alias, definition2);
|
|
22145
22173
|
}
|
|
22146
22174
|
const objects = units.map(({ image, object: object6, aliases, functionImports }) => {
|
|
22147
|
-
const
|
|
22148
|
-
|
|
22175
|
+
const shared = bindingsByImage.get(image);
|
|
22176
|
+
const own = startup.get(object6.path);
|
|
22177
|
+
const bindings = own ? new Map([...shared, ...own]) : shared;
|
|
22149
22178
|
for (const [name3, type] of functionImports) {
|
|
22150
22179
|
const alias = bindings.get(name3);
|
|
22151
22180
|
const provider = alias === void 0 ? void 0 : definitionsByAlias.get(alias);
|
|
@@ -24064,6 +24093,7 @@ function linkGuestImages(options) {
|
|
|
24064
24093
|
);
|
|
24065
24094
|
}
|
|
24066
24095
|
const archives = /* @__PURE__ */ new Map();
|
|
24096
|
+
const memberBytes = /* @__PURE__ */ new Map();
|
|
24067
24097
|
const prepare2 = (provider2) => {
|
|
24068
24098
|
const trace = runLink("discovery", [
|
|
24069
24099
|
...withOutput(args, discovery, true),
|
|
@@ -24107,20 +24137,23 @@ function linkGuestImages(options) {
|
|
|
24107
24137
|
}
|
|
24108
24138
|
const objectsByImage = /* @__PURE__ */ new Map();
|
|
24109
24139
|
for (const image of plan.images) objectsByImage.set(image.id, []);
|
|
24140
|
+
const artifacts = new Map(plan.artifacts.map((artifact) => [artifact.path, artifact]));
|
|
24110
24141
|
for (const item of selected2) {
|
|
24111
|
-
const artifact =
|
|
24112
|
-
(candidate) => candidate.path === item.artifact
|
|
24113
|
-
);
|
|
24142
|
+
const artifact = artifacts.get(item.artifact);
|
|
24114
24143
|
const image = selectedGuestInputImage(artifact, item.member);
|
|
24115
24144
|
let bytes;
|
|
24116
24145
|
if (item.member === null) bytes = import_node_fs30.default.readFileSync(item.artifact);
|
|
24117
24146
|
else {
|
|
24118
|
-
let
|
|
24119
|
-
if (!
|
|
24120
|
-
members2 = readArMembers(import_node_fs30.default.readFileSync(item.artifact));
|
|
24147
|
+
let byName = memberBytes.get(item.artifact);
|
|
24148
|
+
if (!byName) {
|
|
24149
|
+
const members2 = readArMembers(import_node_fs30.default.readFileSync(item.artifact));
|
|
24121
24150
|
archives.set(item.artifact, members2);
|
|
24151
|
+
byName = /* @__PURE__ */ new Map();
|
|
24152
|
+
for (const member of members2)
|
|
24153
|
+
if (!byName.has(member.name)) byName.set(member.name, member.bytes);
|
|
24154
|
+
memberBytes.set(item.artifact, byName);
|
|
24122
24155
|
}
|
|
24123
|
-
bytes =
|
|
24156
|
+
bytes = byName.get(item.member);
|
|
24124
24157
|
}
|
|
24125
24158
|
const objects = objectsByImage.get(image);
|
|
24126
24159
|
if (!objects) throw new Error(`unknown image ${image}`);
|
|
@@ -24153,10 +24186,11 @@ function linkGuestImages(options) {
|
|
|
24153
24186
|
const { selected, ledger } = prepared;
|
|
24154
24187
|
const replacements = /* @__PURE__ */ new Map();
|
|
24155
24188
|
const linkedOwners = /* @__PURE__ */ new Map();
|
|
24189
|
+
const ledgerObjects = new Map(ledger.objects.map((item) => [item.path, item]));
|
|
24156
24190
|
for (const [index, artifact] of plan.artifacts.entries()) {
|
|
24157
24191
|
const prefix = `${artifact.path}(`;
|
|
24158
24192
|
if (artifact.kind === "object") {
|
|
24159
|
-
const object6 =
|
|
24193
|
+
const object6 = ledgerObjects.get(artifact.path);
|
|
24160
24194
|
if (!object6) continue;
|
|
24161
24195
|
const output3 = import_node_path29.default.join(directory2, `object-${index}.o`);
|
|
24162
24196
|
import_node_fs30.default.writeFileSync(output3, object6.bytes);
|
|
@@ -24176,9 +24210,7 @@ function linkGuestImages(options) {
|
|
|
24176
24210
|
const output2 = import_node_path29.default.join(directory2, `archive-${index}.a`);
|
|
24177
24211
|
const inputs = members2.map((member) => {
|
|
24178
24212
|
const memberOutput = import_node_path29.default.join(memberDir, member.name);
|
|
24179
|
-
const rewritten =
|
|
24180
|
-
(item) => item.path === `${prefix}${member.name})`
|
|
24181
|
-
);
|
|
24213
|
+
const rewritten = ledgerObjects.get(`${prefix}${member.name})`);
|
|
24182
24214
|
import_node_fs30.default.writeFileSync(memberOutput, rewritten?.bytes ?? member.bytes);
|
|
24183
24215
|
if (rewritten) {
|
|
24184
24216
|
linkedOwners.set(
|
|
@@ -24517,10 +24549,13 @@ function selectedGuestSymbolInputs(plan, selected) {
|
|
|
24517
24549
|
else {
|
|
24518
24550
|
let members2 = archives.get(item.artifact);
|
|
24519
24551
|
if (!members2) {
|
|
24520
|
-
members2 =
|
|
24552
|
+
members2 = Map.groupBy(
|
|
24553
|
+
readArMembers(import_node_fs30.default.readFileSync(item.artifact)),
|
|
24554
|
+
(member) => member.name
|
|
24555
|
+
);
|
|
24521
24556
|
archives.set(item.artifact, members2);
|
|
24522
24557
|
}
|
|
24523
|
-
const matching2 = members2.
|
|
24558
|
+
const matching2 = members2.get(item.member) ?? [];
|
|
24524
24559
|
if (matching2.length !== 1)
|
|
24525
24560
|
throw new Error(
|
|
24526
24561
|
`ambiguous selected symbol input ${item.artifact}(${item.member})`
|
|
@@ -26921,6 +26956,46 @@ function swiftModuleInterface(moduleRoot, name3, interfaceRoot) {
|
|
|
26921
26956
|
if (declared.size === 0) return null;
|
|
26922
26957
|
return { declared, header: clangInterfaceHeader((0, import_node_fs41.readFileSync)(built2, "utf8")) };
|
|
26923
26958
|
}
|
|
26959
|
+
function nativelyDeclaredFunctions(generated, headers) {
|
|
26960
|
+
const candidates = [
|
|
26961
|
+
...new Set(
|
|
26962
|
+
[...generated.matchAll(/^\s*SWIFT_EXTERN\b[^(\n]*?\b(\w+)\s*\(/gm)].map(
|
|
26963
|
+
(match) => match[1]
|
|
26964
|
+
)
|
|
26965
|
+
)
|
|
26966
|
+
];
|
|
26967
|
+
if (candidates.length === 0) return [];
|
|
26968
|
+
const declaration = new RegExp(`^[^\\n#/*]*?\\b(${candidates.join("|")})\\s*\\(`, "gm");
|
|
26969
|
+
const found = /* @__PURE__ */ new Set();
|
|
26970
|
+
for (const header of headers)
|
|
26971
|
+
for (const match of header.matchAll(declaration)) found.add(match[1]);
|
|
26972
|
+
return [...found];
|
|
26973
|
+
}
|
|
26974
|
+
function sdkObjCDeclarationOwners(frameworks) {
|
|
26975
|
+
const known = sdkDeclarationOwners.get(frameworks);
|
|
26976
|
+
if (known) return known;
|
|
26977
|
+
const owners = /* @__PURE__ */ new Map();
|
|
26978
|
+
for (const framework of (0, import_node_fs41.readdirSync)(frameworks))
|
|
26979
|
+
if (framework.endsWith(".framework")) {
|
|
26980
|
+
const headers = import_node_path40.default.join(frameworks, framework, "Headers");
|
|
26981
|
+
if ((0, import_node_fs41.existsSync)(headers)) {
|
|
26982
|
+
for (const file of (0, import_node_fs41.readdirSync)(headers, { recursive: true, encoding: "utf8" }))
|
|
26983
|
+
if (file.endsWith(".h")) {
|
|
26984
|
+
const header = (0, import_node_fs41.readFileSync)(import_node_path40.default.join(headers, file), "utf8");
|
|
26985
|
+
for (const name3 of [
|
|
26986
|
+
...swiftInterfaceDeclarations(header),
|
|
26987
|
+
...objcEnumerations(header),
|
|
26988
|
+
...[
|
|
26989
|
+
...header.matchAll(/^[A-Z_]*_(?:EXTERN|EXPORT)\b[^;(\n]*?\b(\w+)\s*\(/gm)
|
|
26990
|
+
].map((match) => match[1])
|
|
26991
|
+
])
|
|
26992
|
+
owners.set(name3, framework.slice(0, -".framework".length));
|
|
26993
|
+
}
|
|
26994
|
+
}
|
|
26995
|
+
}
|
|
26996
|
+
sdkDeclarationOwners.set(frameworks, owners);
|
|
26997
|
+
return owners;
|
|
26998
|
+
}
|
|
26924
26999
|
function swiftHeaderWithSuperclassImports(header, interfaceFor) {
|
|
26925
27000
|
const superclasses = new Set(
|
|
26926
27001
|
[...header.matchAll(/@interface\s+\w+\s*:\s*(\w+)/g)].map((match) => match[1])
|
|
@@ -26953,6 +27028,10 @@ function withoutSwiftDeclarations(text6, declared, interfaceImport) {
|
|
|
26953
27028
|
const name3 = /^\s*(?:[A-Z_]\w*(?:\([^()\n]*\))?\s+)*@(?:protocol|interface)\s+(\w+)\s*(?=[:<{]|$)/.exec(
|
|
26954
27029
|
line
|
|
26955
27030
|
)?.[1];
|
|
27031
|
+
const external = /^\s*SWIFT_EXTERN\b[^(\n]*?\b(\w+)\s*\(.*\)[^;\n]*;\s*$/.exec(
|
|
27032
|
+
line
|
|
27033
|
+
)?.[1];
|
|
27034
|
+
if (external && declared.has(external)) continue;
|
|
26956
27035
|
const enumeration = /^\s*typedef\s+(?:NS_ENUM|NS_OPTIONS|SWIFT_ENUM(?:_NAMED)?)\s*\(\s*\w+\s*,\s*(\w+)\b/.exec(
|
|
26957
27036
|
line
|
|
26958
27037
|
)?.[1];
|
|
@@ -31325,11 +31404,28 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
31325
31404
|
))
|
|
31326
31405
|
declared.add(name4);
|
|
31327
31406
|
}
|
|
31328
|
-
const
|
|
31407
|
+
const own = withoutSwiftDeclarations(
|
|
31329
31408
|
clangInterfaceHeader((0, import_node_fs41.readFileSync)(source, "utf8")),
|
|
31330
31409
|
declared,
|
|
31331
31410
|
`#import <${name3}/${name3}.h>`
|
|
31332
31411
|
);
|
|
31412
|
+
const owners = sdkObjCDeclarationOwners(import_node_path40.default.dirname(import_node_path40.default.dirname(headers)));
|
|
31413
|
+
const foreign = /* @__PURE__ */ new Map();
|
|
31414
|
+
for (const declaration of [
|
|
31415
|
+
...swiftInterfaceDeclarations(own),
|
|
31416
|
+
...objcEnumerations(own),
|
|
31417
|
+
...[...own.matchAll(/^\s*SWIFT_EXTERN\b[^(\n]*?\b(\w+)\s*\(/gm)].map(
|
|
31418
|
+
(match) => match[1]
|
|
31419
|
+
)
|
|
31420
|
+
]) {
|
|
31421
|
+
const owner = owners.get(declaration);
|
|
31422
|
+
if (owner && owner !== name3) foreign.set(declaration, owner);
|
|
31423
|
+
}
|
|
31424
|
+
const header = foreign.size ? withoutSwiftDeclarations(
|
|
31425
|
+
own,
|
|
31426
|
+
new Set(foreign.keys()),
|
|
31427
|
+
[...new Set(foreign.values())].map((owner) => `#import <${owner}/${owner}.h>`).join("\n")
|
|
31428
|
+
) : own;
|
|
31333
31429
|
const value = {
|
|
31334
31430
|
file: import_node_path40.default.join(root, ".build/peach-framework-objc", `${name3}-Swift.h`),
|
|
31335
31431
|
header,
|
|
@@ -31366,18 +31462,25 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
31366
31462
|
`${producer}-Swift.h`
|
|
31367
31463
|
);
|
|
31368
31464
|
const original = preparation.nativeHeaderDeclarations[producer] ? emitted.replace(/-Swift\.h$/, "-Swift.original.h") : emitted;
|
|
31369
|
-
if ((0, import_node_fs41.existsSync)(original))
|
|
31465
|
+
if ((0, import_node_fs41.existsSync)(original)) {
|
|
31466
|
+
const generated = clangInterfaceHeader((0, import_node_fs41.readFileSync)(original, "utf8"));
|
|
31370
31467
|
writeBuildFile(
|
|
31371
31468
|
emitted,
|
|
31372
31469
|
withoutSwiftDeclarations(
|
|
31373
|
-
swiftHeaderWithSuperclassImports(
|
|
31374
|
-
|
|
31375
|
-
|
|
31376
|
-
|
|
31377
|
-
|
|
31470
|
+
swiftHeaderWithSuperclassImports(generated, frameworkInterface),
|
|
31471
|
+
/* @__PURE__ */ new Set([
|
|
31472
|
+
...preparation.nativeHeaderDeclarations[producer] ?? [],
|
|
31473
|
+
...nativelyDeclaredFunctions(
|
|
31474
|
+
generated,
|
|
31475
|
+
Object.entries(input.files).filter(
|
|
31476
|
+
([name3]) => name3.endsWith(".h") && !name3.endsWith("-Swift.h")
|
|
31477
|
+
).map(([, source]) => source)
|
|
31478
|
+
)
|
|
31479
|
+
]),
|
|
31378
31480
|
`#import <${producer}/${producer}.h>`
|
|
31379
31481
|
)
|
|
31380
31482
|
);
|
|
31483
|
+
}
|
|
31381
31484
|
}
|
|
31382
31485
|
}
|
|
31383
31486
|
const checkpoints = import_node_path40.default.join(
|
|
@@ -31515,7 +31618,7 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
31515
31618
|
options.signal
|
|
31516
31619
|
);
|
|
31517
31620
|
}
|
|
31518
|
-
var import_node_child_process24, import_node_crypto19, import_node_fs41, import_node_os10, import_node_path40, v5, WASM_TRIPLE, SWIFTPM_PROGRESS, SWIFTPM_NOISE, SWIFT_BUILDER_TRANSPORT_MARGIN_MS, SWIFT_BUILDER_DEFAULT_COMPILE_MS, clangInterfaceHeader, swiftInterfaceDeclarations, linkedModuleDigests, SYSTEM_MODULE_LIBRARIES, SYSTEM_MODULE_IMPORT, OPTIONAL_FRAMEWORK_DEPENDENCIES, OPTIONAL_FRAMEWORKS, SWIFT_IMPORT, kleeneNot, kleeneAnd, kleeneOr, sdkPaths, availableModules, sdkOverlayFrameworks, DISTRIBUTION_CLANG_MODULES, ONE_PRODUCT, GAME_FAMILY, gameProducts, gameProduct, GAME_REACH, FOUNDATION_IMPLICIT_MODULES, PRECONCURRENCY_FOUNDATION_IMPORT, FOUNDATION_IMPLICIT_FLAGS, ONE_IMPLICIT_FLAGS, executableLinkFlags, darwinRecordsRegion, REACTOR_FLAG, MULTI_MANIFEST_VERSION, SWIFT_HEADER_PRODUCTS_TARGET, compilerSourceDigest, nativeCxxCompilerFlags, cFlagArray, cxxFlagArray, SWIFTPM_DEFAULT_IOS_DEPLOYMENT_TARGET, DIRECTIVE, OS_IOS, NOT_ON_IOS, DELEGATE_CLASS, FOUNDATION_NETWORKING_TYPES, FOUNDATION_OVERLAY_TYPES, FOUNDATION_OVERLAY_GLOBALS, CORE_FOUNDATION_OVERLAY_GLOBALS, CORE_FOUNDATION_GEOMETRY_TYPES, CORE_FOUNDATION_GRAPHICS_TYPES, CORE_FOUNDATION_HANDLE_IMPORTS, emptyMacroEnvironment, wasmMacroEnvironment, HIDDEN_UNITS, LIBXML_REFERENCE, LIBXML_SOURCE, ROOT_LOCKS, host, rootLocks, SHARED_ARTIFACT_BUDGET_BYTES, SHARED_ARTIFACT_GRACE_MS, RETIRED_PREFIX, retainedArtifacts, FRAMEWORK_LINK_TARGET, SWIFT_LINK_STAMP, SWIFT_FRAMEWORK_SLOTS, SWIFT_FRAMEWORK_SLOT_KEY, SWIFT_FRAMEWORK_SLOT_ORIGIN;
|
|
31621
|
+
var import_node_child_process24, import_node_crypto19, import_node_fs41, import_node_os10, import_node_path40, v5, WASM_TRIPLE, SWIFTPM_PROGRESS, SWIFTPM_NOISE, SWIFT_BUILDER_TRANSPORT_MARGIN_MS, SWIFT_BUILDER_DEFAULT_COMPILE_MS, clangInterfaceHeader, objcEnumerations, sdkDeclarationOwners, swiftInterfaceDeclarations, linkedModuleDigests, SYSTEM_MODULE_LIBRARIES, SYSTEM_MODULE_IMPORT, OPTIONAL_FRAMEWORK_DEPENDENCIES, OPTIONAL_FRAMEWORKS, SWIFT_IMPORT, kleeneNot, kleeneAnd, kleeneOr, sdkPaths, availableModules, sdkOverlayFrameworks, DISTRIBUTION_CLANG_MODULES, ONE_PRODUCT, GAME_FAMILY, gameProducts, gameProduct, GAME_REACH, FOUNDATION_IMPLICIT_MODULES, PRECONCURRENCY_FOUNDATION_IMPORT, FOUNDATION_IMPLICIT_FLAGS, ONE_IMPLICIT_FLAGS, executableLinkFlags, darwinRecordsRegion, REACTOR_FLAG, MULTI_MANIFEST_VERSION, SWIFT_HEADER_PRODUCTS_TARGET, compilerSourceDigest, nativeCxxCompilerFlags, cFlagArray, cxxFlagArray, SWIFTPM_DEFAULT_IOS_DEPLOYMENT_TARGET, DIRECTIVE, OS_IOS, NOT_ON_IOS, DELEGATE_CLASS, FOUNDATION_NETWORKING_TYPES, FOUNDATION_OVERLAY_TYPES, FOUNDATION_OVERLAY_GLOBALS, CORE_FOUNDATION_OVERLAY_GLOBALS, CORE_FOUNDATION_GEOMETRY_TYPES, CORE_FOUNDATION_GRAPHICS_TYPES, CORE_FOUNDATION_HANDLE_IMPORTS, emptyMacroEnvironment, wasmMacroEnvironment, HIDDEN_UNITS, LIBXML_REFERENCE, LIBXML_SOURCE, ROOT_LOCKS, host, rootLocks, SHARED_ARTIFACT_BUDGET_BYTES, SHARED_ARTIFACT_GRACE_MS, RETIRED_PREFIX, retainedArtifacts, FRAMEWORK_LINK_TARGET, SWIFT_LINK_STAMP, SWIFT_FRAMEWORK_SLOTS, SWIFT_FRAMEWORK_SLOT_KEY, SWIFT_FRAMEWORK_SLOT_ORIGIN;
|
|
31519
31622
|
var init_swift_compile = __esm({
|
|
31520
31623
|
"src/swift-compile.ts"() {
|
|
31521
31624
|
"use strict";
|
|
@@ -31562,6 +31665,12 @@ var init_swift_compile = __esm({
|
|
|
31562
31665
|
/^@import (?:CoreFoundation|FoundationNetworking);$/gm,
|
|
31563
31666
|
"@import Foundation;"
|
|
31564
31667
|
).replace(/\b_TtC10Foundation\d+(NS\w+)\b/g, "$1").replace(/\b__attribute__\(\(objc_subclassing_restricted\)\)\s*/g, "");
|
|
31668
|
+
objcEnumerations = (header) => [
|
|
31669
|
+
...header.matchAll(
|
|
31670
|
+
/^\s*typedef\s+(?:NS|CF|SWIFT)_\w*(?:ENUM|OPTIONS)\w*\s*\(\s*\w+\s*,\s*(\w+)\b/gm
|
|
31671
|
+
)
|
|
31672
|
+
].map((match) => match[1]);
|
|
31673
|
+
sdkDeclarationOwners = /* @__PURE__ */ new Map();
|
|
31565
31674
|
swiftInterfaceDeclarations = (header) => /* @__PURE__ */ new Set([
|
|
31566
31675
|
...[
|
|
31567
31676
|
...header.matchAll(
|
|
@@ -31744,7 +31853,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
|
|
|
31744
31853
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
31745
31854
|
MULTI_MANIFEST_VERSION = 68;
|
|
31746
31855
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
31747
|
-
compilerSourceDigest = true ? "
|
|
31856
|
+
compilerSourceDigest = true ? "660487c29d9a45fcb5a83e23f25f239be6cc1cc7338a3a2c2f756a4c985ae043" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
31748
31857
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
31749
31858
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
31750
31859
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -43685,7 +43794,7 @@ var init_swift_standin_digest = __esm({
|
|
|
43685
43794
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
43686
43795
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
43687
43796
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
43688
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
43797
|
+
STANDIN_SOURCE_DIGEST = true ? "089050e56f3e4935fed286174446973ff56c0fb4ee8c326f19a71b9fecbe9d05" : standinSourceDigest();
|
|
43689
43798
|
}
|
|
43690
43799
|
});
|
|
43691
43800
|
|
|
@@ -44451,9 +44560,9 @@ function exec(file, args, cwd) {
|
|
|
44451
44560
|
}
|
|
44452
44561
|
function failure(error) {
|
|
44453
44562
|
const output2 = error && typeof error === "object" && "stderr" in error ? `${String(error.stderr)}
|
|
44454
|
-
${"stdout" in error ? String(error.stdout) : ""}` : String(error);
|
|
44455
|
-
const errors = output2.split("\n").filter((line) =>
|
|
44456
|
-
return [...new Set(errors)].slice(0, 3).join("; ") || output2.trim().slice(
|
|
44563
|
+
${"stdout" in error ? String(error.stdout) : ""}` : error instanceof Error ? error.message : String(error);
|
|
44564
|
+
const errors = output2.split("\n").filter((line) => /^(\S.*?:\d+:\d+: )?error:/.test(line)).map((line) => line.replace(/^(.*?:\d+:\d+: )?error:\s*/, "").trim());
|
|
44565
|
+
return [...new Set(errors)].slice(0, 3).join("; ") || output2.trim().slice(-600);
|
|
44457
44566
|
}
|
|
44458
44567
|
function treeDigest(root) {
|
|
44459
44568
|
const names = [];
|
|
@@ -44964,6 +45073,8 @@ function peachModuleDirs(toolchain, imports2, sdkIncludes) {
|
|
|
44964
45073
|
target,
|
|
44965
45074
|
"-Xswiftc",
|
|
44966
45075
|
"-Osize",
|
|
45076
|
+
"-Xswiftc",
|
|
45077
|
+
"-gnone",
|
|
44967
45078
|
...plugins.libraries.flatMap((library) => [
|
|
44968
45079
|
"-Xswiftc",
|
|
44969
45080
|
"-load-plugin-library",
|
|
@@ -46599,10 +46710,9 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
|
|
|
46599
46710
|
) : binary2.cxxHeaders ? await cxxStandin(surface, binary2, toolchain, dir) : cStandin(surface, binary2, toolchain, dir)
|
|
46600
46711
|
);
|
|
46601
46712
|
} catch (error) {
|
|
46602
|
-
throw new Error(
|
|
46603
|
-
|
|
46604
|
-
|
|
46605
|
-
);
|
|
46713
|
+
throw new Error(`no stand-in for ${surface.module}: ${failure(error)}`, {
|
|
46714
|
+
cause: error
|
|
46715
|
+
});
|
|
46606
46716
|
}
|
|
46607
46717
|
}
|
|
46608
46718
|
publish(result);
|
|
@@ -56250,7 +56360,7 @@ var init_nitro_superset = __esm({
|
|
|
56250
56360
|
init_nitroContract();
|
|
56251
56361
|
init_swift_standin_digest();
|
|
56252
56362
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
56253
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
56363
|
+
NITRO_COMPILER_DIGEST = true ? "c57cf64c215ae5447c1378bb3a9511f6b48bc5fd2b4f52e392fb171077898926" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
56254
56364
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
56255
56365
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
56256
56366
|
published = /* @__PURE__ */ new Map();
|
|
@@ -57467,7 +57577,7 @@ var init_expo_native_compiler_digest = __esm({
|
|
|
57467
57577
|
|
|
57468
57578
|
// src/expo-native-prebuilt.ts
|
|
57469
57579
|
function expoNativeCompilerDigestValue() {
|
|
57470
|
-
return true ? "
|
|
57580
|
+
return true ? "892bd8a2c9864f5fadde8b48730dd4ac3a08d9a46503d5fc4e0332afdaa86657" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
57471
57581
|
}
|
|
57472
57582
|
function readSources(value) {
|
|
57473
57583
|
const sources = isRecord(value) ? value.sources : null;
|
|
@@ -64911,7 +65021,7 @@ var import_node_path5 = require("node:path");
|
|
|
64911
65021
|
init_src();
|
|
64912
65022
|
|
|
64913
65023
|
// runtime-companion.json
|
|
64914
|
-
var runtime_companion_default = { abi: 1, sha256: "
|
|
65024
|
+
var runtime_companion_default = { abi: 1, sha256: "0576baa8f64749f044d1fee413b30d3459d6a2a5caf1435ecc04500a7031bf93", file: "node/cli-0576baa8f64749f044d1fee413b30d3459d6a2a5caf1435ecc04500a7031bf93.cjs" };
|
|
64915
65025
|
|
|
64916
65026
|
// src/cli-runtime.ts
|
|
64917
65027
|
init_answeredNativePackages();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2249 | (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.2249 | (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.2249 | (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.2249 | (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.2249 | (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.2249 | (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.2249 | (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;
|
|
@@ -1714,7 +1714,8 @@ async function waitForSootsimIdle({
|
|
|
1714
1714
|
skipIfInspectActive = false,
|
|
1715
1715
|
readyPlayback = false,
|
|
1716
1716
|
transitionStartWindowMs = 80,
|
|
1717
|
-
transitionTimeoutMs = 4e3
|
|
1717
|
+
transitionTimeoutMs = 4e3,
|
|
1718
|
+
stillSince = null
|
|
1718
1719
|
}) {
|
|
1719
1720
|
let result;
|
|
1720
1721
|
const observationStartedAt = Date.now();
|
|
@@ -1753,6 +1754,7 @@ async function waitForSootsimIdle({
|
|
|
1753
1754
|
const accessibilityBounds = ${accessibilityBounds.toString()}
|
|
1754
1755
|
const sameNativeAccessibilityShape = ${sameNativeAccessibilityShape.toString()}
|
|
1755
1756
|
const readyPlayback = ${readyPlayback ? "true" : "false"}
|
|
1757
|
+
const stillSince = ${JSON.stringify(stillSince)}
|
|
1756
1758
|
// full mounted-geometry observation needs at least two hierarchy reads
|
|
1757
1759
|
// plus the stillness window, which a sub-second budget cannot afford:
|
|
1758
1760
|
// tight budgets (auto-wait) settle on worker stillness plus root
|
|
@@ -1771,7 +1773,7 @@ async function waitForSootsimIdle({
|
|
|
1771
1773
|
// those that began after it drained still can. a loaded host runs a
|
|
1772
1774
|
// push past a tap's budget, so the transition gets its own timeout and
|
|
1773
1775
|
// the budget restarts once it drains.
|
|
1774
|
-
|
|
1776
|
+
const watchTransition = async () => {
|
|
1775
1777
|
try {
|
|
1776
1778
|
const wfst = globalThis.__sootsimTest?.waitForScreenTransitions
|
|
1777
1779
|
if (typeof wfst === 'function' && budgetMs > 120) {
|
|
@@ -1791,7 +1793,9 @@ async function waitForSootsimIdle({
|
|
|
1791
1793
|
}
|
|
1792
1794
|
} catch {}
|
|
1793
1795
|
return false
|
|
1794
|
-
}
|
|
1796
|
+
}
|
|
1797
|
+
// a wait that may settle on its first poll watches only once that poll does not
|
|
1798
|
+
let transitionWait = stillSince === null ? watchTransition() : null
|
|
1795
1799
|
|
|
1796
1800
|
// a worker that cannot answer within the remaining budget is busy, not
|
|
1797
1801
|
// idle: its poll reads as unsettled. bounding each read by the budget
|
|
@@ -2143,6 +2147,9 @@ async function waitForSootsimIdle({
|
|
|
2143
2147
|
if (clockNow() >= deadline) break
|
|
2144
2148
|
}
|
|
2145
2149
|
const pollStarted = clockNow()
|
|
2150
|
+
const readRevision = () =>
|
|
2151
|
+
answer(() => globalThis.__sootsimTest?.getGeometryRevision?.()).catch(() => null)
|
|
2152
|
+
const pollRevision = readRevision()
|
|
2146
2153
|
const snapshot = await readSnapshot()
|
|
2147
2154
|
if (snapshot.runtimeUnsupported) return snapshot.runtimeUnsupported
|
|
2148
2155
|
// a read the deadline cut short observed nothing: the last full poll
|
|
@@ -2150,6 +2157,18 @@ async function waitForSootsimIdle({
|
|
|
2150
2157
|
// the loop head drains a transition still in flight before it ends.
|
|
2151
2158
|
if (snapshot.workerBusy && clockNow() >= deadline && report) continue
|
|
2152
2159
|
polls++
|
|
2160
|
+
if (
|
|
2161
|
+
polls === 1 && stillSince !== null &&
|
|
2162
|
+
!snapshot.workerBusy && snapshot.pendingFetches === 0 && snapshot.requestInFlight === 0 &&
|
|
2163
|
+
!snapshot.webViewStarting && !snapshot.animating && !snapshot.shellAnimating &&
|
|
2164
|
+
!snapshot.layoutDirty && !snapshot.visibleMotion
|
|
2165
|
+
) {
|
|
2166
|
+
const [proving, replying] = await Promise.all([pollRevision, readRevision()])
|
|
2167
|
+
if (proving === stillSince && replying === stillSince) {
|
|
2168
|
+
return { settled: true, elapsed: clockNow() - start, blockedBy: '', stillRevision: stillSince }
|
|
2169
|
+
}
|
|
2170
|
+
}
|
|
2171
|
+
if (polls === 1 && stillSince !== null) transitionWait = watchTransition()
|
|
2153
2172
|
report = { snapshot, nativeHierarchy: lastNativeHierarchy, layout: lastLayout, requestTotal: lastRequestTotal, appCommits: lastAppCommits, nodeCount: lastNodeCount }
|
|
2154
2173
|
if (snapshot.layoutDirty) dirtyPolls++
|
|
2155
2174
|
if (snapshot.animating || snapshot.shellAnimating) animatingPolls++
|
|
@@ -2234,7 +2253,11 @@ async function waitForSootsimIdle({
|
|
|
2234
2253
|
await transitionWait
|
|
2235
2254
|
transitionWait = null
|
|
2236
2255
|
}
|
|
2237
|
-
if (stillProven())
|
|
2256
|
+
if (stillProven()) {
|
|
2257
|
+
const [proving, replying] = await Promise.all([pollRevision, readRevision()])
|
|
2258
|
+
const stillRevision = typeof proving === 'string' && proving === replying ? proving : undefined
|
|
2259
|
+
return { settled: true, elapsed: clockNow() - start, blockedBy: '', stillRevision }
|
|
2260
|
+
}
|
|
2238
2261
|
}
|
|
2239
2262
|
} else {
|
|
2240
2263
|
stillPolls = []
|
|
@@ -2299,11 +2322,12 @@ async function waitForSootsimIdle({
|
|
|
2299
2322
|
result.missingFields
|
|
2300
2323
|
);
|
|
2301
2324
|
}
|
|
2302
|
-
const { elapsed, settled, blockedBy } = result ?? {};
|
|
2325
|
+
const { elapsed, settled, blockedBy, stillRevision } = result ?? {};
|
|
2303
2326
|
return {
|
|
2304
2327
|
elapsed: typeof elapsed === "number" ? elapsed : maxMs,
|
|
2305
2328
|
settled: settled === true,
|
|
2306
|
-
blockedBy: typeof blockedBy === "string" ? blockedBy : "unknown"
|
|
2329
|
+
blockedBy: typeof blockedBy === "string" ? blockedBy : "unknown",
|
|
2330
|
+
...settled === true && typeof stillRevision === "string" ? { stillRevision } : {}
|
|
2307
2331
|
};
|
|
2308
2332
|
}
|
|
2309
2333
|
|
|
@@ -2451,7 +2475,7 @@ function isValidRuntimeVersion(value) {
|
|
|
2451
2475
|
}
|
|
2452
2476
|
|
|
2453
2477
|
// runtime-companion.json
|
|
2454
|
-
var runtime_companion_default = { abi: 1, sha256: "
|
|
2478
|
+
var runtime_companion_default = { abi: 1, sha256: "0576baa8f64749f044d1fee413b30d3459d6a2a5caf1435ecc04500a7031bf93", file: "node/cli-0576baa8f64749f044d1fee413b30d3459d6a2a5caf1435ecc04500a7031bf93.cjs" };
|
|
2455
2479
|
|
|
2456
2480
|
// src/runtime-assets.ts
|
|
2457
2481
|
var import_fs = __toESM(require("fs"), 1);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2249 | (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;
|