peachsim 0.1.2529 → 0.1.2531
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 +62 -115
- package/cli/commands/flow.ts +72 -29
- package/cli/commands/inspect/settling.ts +17 -0
- package/cli/commands/test.ts +19 -14
- package/cli/outbound-endpoints.ts +1 -1
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +2 -2
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +5 -5
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +3 -3
- package/dist-lib/bundle-channel.cjs +25 -11
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +3 -3
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +3 -3
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +2 -2
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +7 -7
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +5 -5
- package/dist-lib/detox/index.cjs +17 -2
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/esm-chunks/{acorn-DP76I5LX.mjs → acorn-NHWX2J24.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-6Z7IRZOI.mjs → chunk-35N2TDU4.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-KVE5PEF7.mjs → chunk-4EBD4OKW.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-B2AUMFHR.mjs → chunk-4KTLY5JC.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-YMJXYR5V.mjs → chunk-4OMQ2R5V.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-6RFG5TBM.mjs → chunk-6IEHVC3Z.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-LIHP4WC5.mjs → chunk-7CZNR5FB.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-XB5NMNMP.mjs → chunk-AN4HGYLM.mjs} +7 -6
- package/dist-lib/esm-chunks/{chunk-ZH3DACJC.mjs → chunk-CGW4JC44.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-TTSPRDG5.mjs → chunk-D4NCFDNF.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-4ESBMS7N.mjs → chunk-EQRWIYYK.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-FJQ7PIGT.mjs → chunk-F52OCOPH.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-GHQDA4Q6.mjs → chunk-GKJ2T3TK.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-NCT2R5UW.mjs → chunk-H4CMYNNG.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-G7LSGLNN.mjs → chunk-INLBW6NG.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-COT5BNBM.mjs → chunk-LLPNDBX5.mjs} +30 -14
- package/dist-lib/esm-chunks/{chunk-DQKUZ34S.mjs → chunk-PBWV4H5F.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-RXUKY2DH.mjs → chunk-ROJ76CJT.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-UY744LUK.mjs → chunk-SBKP3U5X.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-N6JP6ZEK.mjs → chunk-SUHGSVF2.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-N5IOZ4Y2.mjs → chunk-UUWNV4RM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-7JPE27MR.mjs → chunk-WLZGRQB5.mjs} +1 -1
- package/dist-lib/esm-chunks/{metro-layout-parser-YENXVDM2.mjs → metro-layout-parser-K5R2NP2H.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-VJCKF5Z5.mjs → swift-package-prebuilt-FET7FKFD.mjs} +10 -10
- package/dist-lib/esm-chunks/{swift-sdk-app-module-ISPCBQYV.mjs → swift-sdk-app-module-JQOFDB45.mjs} +15 -15
- package/dist-lib/esm-chunks/{swift-sdk-image-4BCVFTGO.mjs → swift-sdk-image-M3EDI6PV.mjs} +13 -13
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-JWFPWPYM.mjs → swift-sdk-image-producer-ETQMD57W.mjs} +4 -4
- package/dist-lib/expo-swift-bundle.cjs +23 -9
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +7 -7
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +25 -11
- package/dist-lib/host/fetch-proxy-handler.cjs +5 -5
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +16 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +3 -3
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +3 -3
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +4 -4
- package/dist-lib/native-app-identity-project.cjs +2 -2
- package/dist-lib/native-app-identity-project.mjs +15 -15
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +6 -6
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +3 -3
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +2 -2
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +3 -3
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +79 -79
- package/dist-lib/public-origins-lib.json +71 -69
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +2 -2
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +16 -1
- package/dist-lib/sdk.mjs +22 -7
- package/dist-lib/skills.cjs +117 -107
- package/dist-lib/swift-compile.cjs +21 -7
- package/dist-lib/swift-compile.mjs +10 -10
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +3 -3
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +5 -5
- package/dist-lib/swift-svg-raster.cjs +1 -1
- package/dist-lib/swift-svg-raster.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
- package/dist-lib/vendor/@xmldom/xmldom.cjs +1 -1
- package/dist-lib/vendor/acorn.cjs +1 -1
- package/dist-lib/vendor/bplist-parser.cjs +1 -1
- package/dist-lib/vendor/ignore.cjs +1 -1
- package/dist-lib/vendor/magic-string.cjs +1 -1
- package/dist-lib/vendor/plist.cjs +1 -1
- package/dist-lib/vendor/smol-toml.cjs +1 -1
- package/dist-lib/vendor/stream-json.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
- package/dist-lib/vendor/sucrase.cjs +1 -1
- package/dist-lib/vendor/terser.cjs +1 -1
- package/dist-lib/vendor/valibot.cjs +1 -1
- package/dist-lib/vendor/ws.cjs +1 -1
- package/dist-lib/vendor/zod.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +3 -3
- package/dist-types/packages/peach-engine/src/remote-stream/scene-recording.d.ts +62 -0
- package/dist-types/packages/peach-engine/src/render-worker/shellScrollContract.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/tree-sync-port.d.ts +1 -1
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/src/swift-sdk-app-module.ts +2 -5
- package/src/swift-sdk-image.ts +2 -4
- package/src/swift-wasm-prune.ts +17 -1
package/dist-lib/sdk.mjs
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2531 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
SEMANTIC_WAIT_MAX_TIMEOUT_MS,
|
|
4
4
|
parseDiagnosticsResult
|
|
5
|
-
} from "./esm-chunks/chunk-
|
|
5
|
+
} from "./esm-chunks/chunk-INLBW6NG.mjs";
|
|
6
6
|
import {
|
|
7
7
|
LAUNCH_METADATA_KEYS,
|
|
8
8
|
LAUNCH_METADATA_QUERY_PARAM
|
|
9
|
-
} from "./esm-chunks/chunk-
|
|
9
|
+
} from "./esm-chunks/chunk-F52OCOPH.mjs";
|
|
10
10
|
import {
|
|
11
11
|
HEADLESS_TENANT_FETCH_HUNG_MARKER,
|
|
12
12
|
readyProbeContentBasis,
|
|
13
13
|
readyProbeHasContent,
|
|
14
14
|
readyProbeIsReady
|
|
15
|
-
} from "./esm-chunks/chunk-
|
|
15
|
+
} from "./esm-chunks/chunk-35N2TDU4.mjs";
|
|
16
16
|
import {
|
|
17
17
|
sleep
|
|
18
|
-
} from "./esm-chunks/chunk-
|
|
19
|
-
import "./esm-chunks/chunk-
|
|
18
|
+
} from "./esm-chunks/chunk-4OMQ2R5V.mjs";
|
|
19
|
+
import "./esm-chunks/chunk-PBWV4H5F.mjs";
|
|
20
20
|
import {
|
|
21
21
|
__publicField
|
|
22
|
-
} from "./esm-chunks/chunk-
|
|
22
|
+
} from "./esm-chunks/chunk-ROJ76CJT.mjs";
|
|
23
23
|
|
|
24
24
|
// cli/commands/inspect/core.ts
|
|
25
25
|
var MAX_MS_FLAG_ALIASES = ["--max-ms", "--maxMs", "--maxms", "--max_ms", "--timeout"];
|
|
@@ -1835,6 +1835,21 @@ async function waitForSootsimIdle({
|
|
|
1835
1835
|
transitionTimeoutMs = 4e3,
|
|
1836
1836
|
stillSince = null
|
|
1837
1837
|
}) {
|
|
1838
|
+
if (bridge.plane === "cloud") {
|
|
1839
|
+
const started = Date.now();
|
|
1840
|
+
try {
|
|
1841
|
+
await bridge.send({
|
|
1842
|
+
type: "settle",
|
|
1843
|
+
simId,
|
|
1844
|
+
maxFrames: Math.min(600, Math.max(4, Math.ceil(maxMs / 16)))
|
|
1845
|
+
});
|
|
1846
|
+
return { elapsed: Date.now() - started, settled: true, blockedBy: "" };
|
|
1847
|
+
} catch (error) {
|
|
1848
|
+
if (!(error instanceof Error) || !error.message.includes("did not settle"))
|
|
1849
|
+
throw error;
|
|
1850
|
+
return { elapsed: Date.now() - started, settled: false, blockedBy: error.message };
|
|
1851
|
+
}
|
|
1852
|
+
}
|
|
1838
1853
|
let result;
|
|
1839
1854
|
const observationStartedAt = Date.now();
|
|
1840
1855
|
try {
|
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2531 | (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;
|
|
@@ -29987,7 +29987,7 @@ var init_runtime_assets = __esm({
|
|
|
29987
29987
|
var runtime_companion_default;
|
|
29988
29988
|
var init_runtime_companion = __esm({
|
|
29989
29989
|
"runtime-companion.json"() {
|
|
29990
|
-
runtime_companion_default = { abi: 1, sha256: "
|
|
29990
|
+
runtime_companion_default = { abi: 1, sha256: "2df38358a3ae16176e6f31e890e3d87514f926f3425b2496548155d93b0e7691", file: "node/cli-2df38358a3ae16176e6f31e890e3d87514f926f3425b2496548155d93b0e7691.cjs" };
|
|
29991
29991
|
}
|
|
29992
29992
|
});
|
|
29993
29993
|
|
|
@@ -35508,13 +35508,13 @@ var init_swift_standin_digest = __esm({
|
|
|
35508
35508
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
35509
35509
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
35510
35510
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
35511
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
35511
|
+
STANDIN_SOURCE_DIGEST = true ? "e0c1b88559d18e91bb151977436d182a7ce2ddadd071cf4de70a1b1f71e114ac" : standinSourceDigest();
|
|
35512
35512
|
}
|
|
35513
35513
|
});
|
|
35514
35514
|
|
|
35515
35515
|
// src/expo-native-compiler-digest.ts
|
|
35516
35516
|
function expoNativeCompilerDigestValue() {
|
|
35517
|
-
return true ? "
|
|
35517
|
+
return true ? "99f63187155108498f09b99750abf125dd166933250adfa469fb70ce322a266a" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
35518
35518
|
}
|
|
35519
35519
|
var import_node_crypto12;
|
|
35520
35520
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -61181,6 +61181,20 @@ function keepsSwiftUIReflection(file, undefinedSymbols) {
|
|
|
61181
61181
|
}
|
|
61182
61182
|
return false;
|
|
61183
61183
|
}
|
|
61184
|
+
function readSwiftPrunedLinkResponse(directory2) {
|
|
61185
|
+
const file = import_node_path57.default.join(directory2, SWIFT_PRUNED_LINK_RESPONSE);
|
|
61186
|
+
const text7 = import_node_fs58.default.readFileSync(file, "utf8").trim();
|
|
61187
|
+
const argument2 = /("(?:[^"\\]|\\.)*")(?:\s+|$)/gy;
|
|
61188
|
+
const args = [];
|
|
61189
|
+
while (argument2.lastIndex < text7.length) {
|
|
61190
|
+
const offset = argument2.lastIndex;
|
|
61191
|
+
const match = argument2.exec(text7);
|
|
61192
|
+
if (!match) throw new Error(`invalid Swift link argument at ${file}:${offset}`);
|
|
61193
|
+
const token = JSON.parse(match[1]);
|
|
61194
|
+
args.push(token);
|
|
61195
|
+
}
|
|
61196
|
+
return args;
|
|
61197
|
+
}
|
|
61184
61198
|
function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTargets = [], owner, link, resourceReferences = []) {
|
|
61185
61199
|
const rspPath = import_node_path57.default.join(directory2, ".peach-link.rsp");
|
|
61186
61200
|
if (!import_node_fs58.default.existsSync(rspPath)) return;
|
|
@@ -62300,7 +62314,7 @@ function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTar
|
|
|
62300
62314
|
outTokens.push("--start-lib", ...leftoverArchiveFiles, "--end-lib");
|
|
62301
62315
|
leftoverArchiveFiles.length = 0;
|
|
62302
62316
|
}
|
|
62303
|
-
const prunedRspPath = import_node_path57.default.join(directory2,
|
|
62317
|
+
const prunedRspPath = import_node_path57.default.join(directory2, SWIFT_PRUNED_LINK_RESPONSE);
|
|
62304
62318
|
import_node_fs58.default.writeFileSync(prunedRspPath, outTokens.map((t) => JSON.stringify(t)).join(" "));
|
|
62305
62319
|
if (link) {
|
|
62306
62320
|
const sdk2 = { wasiDirectory: sdkWasiDir, objectDirectory: sdkObjsDir };
|
|
@@ -62317,7 +62331,7 @@ function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTar
|
|
|
62317
62331
|
);
|
|
62318
62332
|
import_node_fs58.default.rmSync(rspPath, { force: true });
|
|
62319
62333
|
}
|
|
62320
|
-
var import_node_child_process27, import_node_crypto30, import_node_fs58, import_node_path57, v3, WIDE_DATA_RELOCS, ROOT_SEG_PREFIXES, RECORD_SEGS, PARTITIONED_SEGS, PRUNED_SDK_ARCHIVES, OMIT_SDK_LIB_FLAGS, NEUTRALIZED_SWIFTRT_SECTIONS, relocationBytes, parsedObjectCache, PARSED_ROOTS, SWIFTUI_WRAPPER_HOST_PROTOCOLS, SWIFT_PRUNED_LINK_MAP;
|
|
62334
|
+
var import_node_child_process27, import_node_crypto30, import_node_fs58, import_node_path57, v3, WIDE_DATA_RELOCS, ROOT_SEG_PREFIXES, RECORD_SEGS, PARTITIONED_SEGS, PRUNED_SDK_ARCHIVES, OMIT_SDK_LIB_FLAGS, NEUTRALIZED_SWIFTRT_SECTIONS, relocationBytes, parsedObjectCache, PARSED_ROOTS, SWIFTUI_WRAPPER_HOST_PROTOCOLS, SWIFT_PRUNED_LINK_MAP, SWIFT_PRUNED_LINK_RESPONSE;
|
|
62321
62335
|
var init_swift_wasm_prune = __esm({
|
|
62322
62336
|
"src/swift-wasm-prune.ts"() {
|
|
62323
62337
|
"use strict";
|
|
@@ -62413,6 +62427,7 @@ var init_swift_wasm_prune = __esm({
|
|
|
62413
62427
|
].map((name3) => `$s7SwiftUI${name3.length}${name3}Mp`)
|
|
62414
62428
|
);
|
|
62415
62429
|
SWIFT_PRUNED_LINK_MAP = ".peach-link.map";
|
|
62430
|
+
SWIFT_PRUNED_LINK_RESPONSE = ".peach-link.pruned.rsp";
|
|
62416
62431
|
}
|
|
62417
62432
|
});
|
|
62418
62433
|
|
|
@@ -70775,7 +70790,7 @@ async function linkSwiftSdkImage(moduleRoot, key2, directory2, work, scopedLooku
|
|
|
70775
70790
|
}
|
|
70776
70791
|
function sdkLinkInputs(appRoot) {
|
|
70777
70792
|
const unquote = (token) => token.replace(/^"|"$/g, "").replace(/\\(.)/g, "$1");
|
|
70778
|
-
const tokens2 = (
|
|
70793
|
+
const tokens2 = readSwiftPrunedLinkResponse(appRoot);
|
|
70779
70794
|
const list2 = (0, import_node_fs72.readdirSync)(appRoot).find(
|
|
70780
70795
|
(name3) => name3.startsWith(".peach-distribution-objects-") || name3 === ".peach-framework-objects.rsp"
|
|
70781
70796
|
);
|
|
@@ -71300,11 +71315,10 @@ __export(swift_sdk_app_module_exports, {
|
|
|
71300
71315
|
});
|
|
71301
71316
|
async function buildSwiftAppModule(options2) {
|
|
71302
71317
|
const { buildRoot, toolchainBin, sdk: sdk2, project: project2 } = options2;
|
|
71303
|
-
const rsp = import_node_path71.default.join(buildRoot, ".peach-link.pruned.rsp");
|
|
71304
71318
|
const work = project2 ? (0, import_node_fs73.mkdtempSync)(import_node_path71.default.join(buildRoot, ".peach-sdk-module-")) : import_node_path71.default.join(buildRoot, ".peach-sdk-module");
|
|
71305
71319
|
if (project2) (0, import_node_fs73.chownSync)(work, project2.uid, project2.gid);
|
|
71306
71320
|
else (0, import_node_fs73.mkdirSync)(work, { recursive: true });
|
|
71307
|
-
const tokens2 = (
|
|
71321
|
+
const tokens2 = readSwiftPrunedLinkResponse(buildRoot);
|
|
71308
71322
|
const outputAt = tokens2.indexOf("-o");
|
|
71309
71323
|
const pruned = project2?.linked ?? (outputAt < 0 ? void 0 : tokens2[outputAt + 1]);
|
|
71310
71324
|
if (!pruned) throw new Error("the pruned link names no output");
|
|
@@ -80527,7 +80541,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
|
|
|
80527
80541
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
80528
80542
|
MULTI_MANIFEST_VERSION = 76;
|
|
80529
80543
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
80530
|
-
compilerSourceDigest = true ? "
|
|
80544
|
+
compilerSourceDigest = true ? "c1b31f85f0a9aa78c7579b0a943fc4c766dee06eb085e8d3c25166b6c46646cf" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
80531
80545
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
80532
80546
|
MODULE_MAP_RESPONSE_FILE_RUN = 16;
|
|
80533
80547
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
@@ -141598,7 +141612,7 @@ var init_nitro_superset = __esm({
|
|
|
141598
141612
|
init_nitroContract();
|
|
141599
141613
|
init_swift_standin_digest();
|
|
141600
141614
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
141601
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
141615
|
+
NITRO_COMPILER_DIGEST = true ? "eeecc0d0ffee9c35b75615243249fcd1b164e1035df90ead06fa939e9a3ad0c5" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
141602
141616
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
141603
141617
|
nitroSupersetKey = (inputs2) => nativeEntryKey({ ...inputs2, compiler: NITRO_COMPILER_DIGEST });
|
|
141604
141618
|
published3 = /* @__PURE__ */ new Map();
|
|
@@ -151332,12 +151346,11 @@ var init_maestro_selector = __esm({
|
|
|
151332
151346
|
});
|
|
151333
151347
|
|
|
151334
151348
|
// ../peach-globals/src/appLifecycleBridgeContract.ts
|
|
151335
|
-
var PEACH_FINAL_LAUNCH_GLOBAL
|
|
151349
|
+
var PEACH_FINAL_LAUNCH_GLOBAL;
|
|
151336
151350
|
var init_appLifecycleBridgeContract = __esm({
|
|
151337
151351
|
"../peach-globals/src/appLifecycleBridgeContract.ts"() {
|
|
151338
151352
|
"use strict";
|
|
151339
151353
|
PEACH_FINAL_LAUNCH_GLOBAL = "__peachFinalLaunch";
|
|
151340
|
-
PEACH_RELOAD_APP_BRIDGE_PATH = "SootSim.bridges.hotRemount.reloadExternalApp";
|
|
151341
151354
|
}
|
|
151342
151355
|
});
|
|
151343
151356
|
|
|
@@ -178855,6 +178868,14 @@ var init_frame_compose = __esm({
|
|
|
178855
178868
|
}
|
|
178856
178869
|
});
|
|
178857
178870
|
|
|
178871
|
+
// cli/commands/inspect/resolve-target.ts
|
|
178872
|
+
var init_resolve_target = __esm({
|
|
178873
|
+
"cli/commands/inspect/resolve-target.ts"() {
|
|
178874
|
+
"use strict";
|
|
178875
|
+
init_core();
|
|
178876
|
+
}
|
|
178877
|
+
});
|
|
178878
|
+
|
|
178858
178879
|
// cli/maestro-accessibility.ts
|
|
178859
178880
|
function accessibilityBounds(node) {
|
|
178860
178881
|
const left = Math.trunc(node.frame.x);
|
|
@@ -179006,6 +179027,21 @@ async function waitForSootsimIdle({
|
|
|
179006
179027
|
transitionTimeoutMs = 4e3,
|
|
179007
179028
|
stillSince = null
|
|
179008
179029
|
}) {
|
|
179030
|
+
if (bridge.plane === "cloud") {
|
|
179031
|
+
const started = Date.now();
|
|
179032
|
+
try {
|
|
179033
|
+
await bridge.send({
|
|
179034
|
+
type: "settle",
|
|
179035
|
+
simId,
|
|
179036
|
+
maxFrames: Math.min(600, Math.max(4, Math.ceil(maxMs / 16)))
|
|
179037
|
+
});
|
|
179038
|
+
return { elapsed: Date.now() - started, settled: true, blockedBy: "" };
|
|
179039
|
+
} catch (error) {
|
|
179040
|
+
if (!(error instanceof Error) || !error.message.includes("did not settle"))
|
|
179041
|
+
throw error;
|
|
179042
|
+
return { elapsed: Date.now() - started, settled: false, blockedBy: error.message };
|
|
179043
|
+
}
|
|
179044
|
+
}
|
|
179009
179045
|
let result;
|
|
179010
179046
|
const observationStartedAt = Date.now();
|
|
179011
179047
|
try {
|
|
@@ -179669,6 +179705,26 @@ var init_settling = __esm({
|
|
|
179669
179705
|
}
|
|
179670
179706
|
});
|
|
179671
179707
|
|
|
179708
|
+
// cli/commands/inspect/actions.ts
|
|
179709
|
+
function isTapSuccess(result) {
|
|
179710
|
+
if (!result || result.hit === false || result.ok === false) return false;
|
|
179711
|
+
if (result.handled === false) return false;
|
|
179712
|
+
if (result.hit !== true && result.handled !== true) return false;
|
|
179713
|
+
if (result.requestedTargetMatched === false) return false;
|
|
179714
|
+
if (result.pointerTapHandled === false && !(result.hit === true && result.requestedTargetMatched === true) && !result.keyboardOpened && !result.isTextInput) {
|
|
179715
|
+
return false;
|
|
179716
|
+
}
|
|
179717
|
+
return true;
|
|
179718
|
+
}
|
|
179719
|
+
var init_actions = __esm({
|
|
179720
|
+
"cli/commands/inspect/actions.ts"() {
|
|
179721
|
+
"use strict";
|
|
179722
|
+
init_core();
|
|
179723
|
+
init_resolve_target();
|
|
179724
|
+
init_settling();
|
|
179725
|
+
}
|
|
179726
|
+
});
|
|
179727
|
+
|
|
179672
179728
|
// cli/commands/permissions.ts
|
|
179673
179729
|
var PERMISSION_KINDS;
|
|
179674
179730
|
var init_permissions = __esm({
|
|
@@ -180373,13 +180429,13 @@ var init_bridge_flow_runner = __esm({
|
|
|
180373
180429
|
fs146 = __toESM(require("fs"), 1);
|
|
180374
180430
|
path185 = __toESM(require("path"), 1);
|
|
180375
180431
|
init_src2();
|
|
180376
|
-
init_src2();
|
|
180377
180432
|
import_frame_identity = __toESM(require_frame_identity(), 1);
|
|
180378
180433
|
init_device_catalog();
|
|
180379
180434
|
init_flow_timeout_scale();
|
|
180380
180435
|
init_frame_compose();
|
|
180381
180436
|
init_sleep();
|
|
180382
180437
|
init_storageSnapshotContract();
|
|
180438
|
+
init_actions();
|
|
180383
180439
|
init_core();
|
|
180384
180440
|
init_settling();
|
|
180385
180441
|
init_shared();
|
|
@@ -180566,15 +180622,13 @@ var init_bridge_flow_runner = __esm({
|
|
|
180566
180622
|
args
|
|
180567
180623
|
});
|
|
180568
180624
|
}
|
|
180625
|
+
async query(query) {
|
|
180626
|
+
return this.bridge.send({ type: "query", simId: this.opts.simId, query });
|
|
180627
|
+
}
|
|
180569
180628
|
async screenBounds() {
|
|
180570
|
-
const
|
|
180571
|
-
|
|
180572
|
-
|
|
180573
|
-
const window2 = snapshot?.window;
|
|
180574
|
-
if (!window2 || typeof window2 !== "object" || !("width" in window2) || !("height" in window2) || typeof window2.width !== "number" || typeof window2.height !== "number" || !Number.isFinite(window2.width) || !Number.isFinite(window2.height) || window2.width <= 0 || window2.height <= 0) {
|
|
180575
|
-
throw new Error("live screen dimensions are unavailable");
|
|
180576
|
-
}
|
|
180577
|
-
return { x: 0, y: 0, width: window2.width, height: window2.height };
|
|
180629
|
+
const { screen } = await this.query({ kind: "screen" });
|
|
180630
|
+
if (!screen) throw new Error("live screen dimensions are unavailable");
|
|
180631
|
+
return { x: 0, y: 0, width: screen.width, height: screen.height };
|
|
180578
180632
|
}
|
|
180579
180633
|
// ordered input batch executed inside the page in one round-trip; the
|
|
180580
180634
|
// engine emits agent-cursor actions for every step natively.
|
|
@@ -180830,11 +180884,7 @@ var init_bridge_flow_runner = __esm({
|
|
|
180830
180884
|
return this.findElementScoped(opts, preferHittable);
|
|
180831
180885
|
}
|
|
180832
180886
|
async captureAccessibilityTree() {
|
|
180833
|
-
const tree2 = await this.
|
|
180834
|
-
const test = globalThis.__sootsimTest
|
|
180835
|
-
if (!test || typeof test.captureAccessibilityTree !== 'function') throw new Error('engine accessibility snapshot is unavailable')
|
|
180836
|
-
return await test.captureAccessibilityTree()
|
|
180837
|
-
})()`);
|
|
180887
|
+
const tree2 = (await this.query({ kind: "accessibility" })).accessibility;
|
|
180838
180888
|
if (!isPeachAccessibilityTree(tree2))
|
|
180839
180889
|
throw new Error("engine returned an invalid accessibility snapshot");
|
|
180840
180890
|
return tree2;
|
|
@@ -181030,51 +181080,30 @@ var init_bridge_flow_runner = __esm({
|
|
|
181030
181080
|
}
|
|
181031
181081
|
async preferHittableCandidate(candidates) {
|
|
181032
181082
|
if (candidates.length < 2) return candidates[0] ?? null;
|
|
181033
|
-
const
|
|
181034
|
-
|
|
181035
|
-
|
|
181036
|
-
|
|
181037
|
-
|
|
181038
|
-
|
|
181039
|
-
|
|
181040
|
-
|
|
181041
|
-
|
|
181042
|
-
|
|
181043
|
-
|
|
181044
|
-
|
|
181045
|
-
|
|
181046
|
-
})()`);
|
|
181047
|
-
return candidates[index] ?? candidates[0] ?? null;
|
|
181083
|
+
for (const candidate of candidates) {
|
|
181084
|
+
if (typeof candidate.nodeId !== "number") continue;
|
|
181085
|
+
const resolved = await this.resolveTapTarget(candidate.nodeId);
|
|
181086
|
+
if (!resolved) continue;
|
|
181087
|
+
const { hit } = await this.query({
|
|
181088
|
+
kind: "hitTest",
|
|
181089
|
+
x: resolved.cx,
|
|
181090
|
+
y: resolved.cy,
|
|
181091
|
+
nodeId: resolved.target.nodeId
|
|
181092
|
+
});
|
|
181093
|
+
if (hit?.requestedTargetMatched === true) return candidate;
|
|
181094
|
+
}
|
|
181095
|
+
return candidates[0] ?? null;
|
|
181048
181096
|
}
|
|
181049
181097
|
async resolveTapTarget(nodeId) {
|
|
181050
|
-
return this.
|
|
181051
|
-
const test = globalThis.__sootsimTest
|
|
181052
|
-
if (!test?.resolveTapTarget) return null
|
|
181053
|
-
return await test.resolveTapTarget(${nodeId})
|
|
181054
|
-
})()`);
|
|
181098
|
+
return (await this.query({ kind: "tapTarget", nodeId })).tapTarget ?? null;
|
|
181055
181099
|
}
|
|
181056
181100
|
async activatePressTarget(opts, nodeId, x, y) {
|
|
181057
|
-
const
|
|
181058
|
-
|
|
181059
|
-
|
|
181060
|
-
|
|
181061
|
-
|
|
181062
|
-
|
|
181063
|
-
if (resolved && Number.isFinite(resolved.cx) && Number.isFinite(resolved.cy)) {
|
|
181064
|
-
point = { x: resolved.cx, y: resolved.cy }
|
|
181065
|
-
}
|
|
181066
|
-
const direct = await test.activatePressAt(point.x, point.y, ${nodeId})
|
|
181067
|
-
if (direct?.ok) {
|
|
181068
|
-
globalThis.dispatchEvent(
|
|
181069
|
-
new CustomEvent('sootsim:agentAction', {
|
|
181070
|
-
detail: { type: 'tap', x: point.x, y: point.y, target: ${JSON.stringify(
|
|
181071
|
-
replayTarget
|
|
181072
|
-
)} },
|
|
181073
|
-
}),
|
|
181074
|
-
)
|
|
181075
|
-
}
|
|
181076
|
-
return direct || null
|
|
181077
|
-
})()`);
|
|
181101
|
+
const target = opts.id ? { id: opts.id, testID: opts.id, text: null } : { id: null, testID: null, text: opts.text ?? null };
|
|
181102
|
+
const resolved = await this.resolveTapTarget(nodeId);
|
|
181103
|
+
const point = resolved && Number.isFinite(resolved.cx) && Number.isFinite(resolved.cy) ? { x: resolved.cx, y: resolved.cy } : { x, y };
|
|
181104
|
+
return (await this.perform([
|
|
181105
|
+
{ type: "activatePress", x: point.x, y: point.y, nodeId, target }
|
|
181106
|
+
])).steps[0];
|
|
181078
181107
|
}
|
|
181079
181108
|
async tap(x, y, target) {
|
|
181080
181109
|
return await this.bridge.send({
|
|
@@ -181098,10 +181127,7 @@ var init_bridge_flow_runner = __esm({
|
|
|
181098
181127
|
// the engine's inspect geometry revision: equal readings bracket a span in
|
|
181099
181128
|
// which no tree, layout, scroll or prop write could move any element.
|
|
181100
181129
|
async geometryRevision() {
|
|
181101
|
-
|
|
181102
|
-
`(async () => globalThis.__sootsimTest?.getGeometryRevision?.())()`
|
|
181103
|
-
);
|
|
181104
|
-
return typeof revision === "string" ? revision : null;
|
|
181130
|
+
return (await this.query({ kind: "geometryRevision" })).revision ?? null;
|
|
181105
181131
|
}
|
|
181106
181132
|
async waitForElement(opts, timeoutMs = 5e3, preferHittable = false) {
|
|
181107
181133
|
const deadline = Date.now() + timeoutMs;
|
|
@@ -181208,7 +181234,7 @@ var init_bridge_flow_runner = __esm({
|
|
|
181208
181234
|
}
|
|
181209
181235
|
if (hit?.requestedTargetMatched === false)
|
|
181210
181236
|
throw new Error(`tapOn refused: ${JSON.stringify(hit)}`);
|
|
181211
|
-
if (hit
|
|
181237
|
+
if (isTapSuccess(hit)) {
|
|
181212
181238
|
await repeatTaps(tappedAtMs, () => this.tap(cx, cy, replayTarget));
|
|
181213
181239
|
await this.waitForAppToSettle();
|
|
181214
181240
|
if (!current2.isTextInput) return;
|
|
@@ -181311,12 +181337,9 @@ var init_bridge_flow_runner = __esm({
|
|
|
181311
181337
|
"inputText: no focused TextInput; tap the input and wait for focus before typing"
|
|
181312
181338
|
);
|
|
181313
181339
|
}
|
|
181314
|
-
await this.
|
|
181315
|
-
|
|
181316
|
-
|
|
181317
|
-
action: "type",
|
|
181318
|
-
text: text7
|
|
181319
|
-
});
|
|
181340
|
+
const typed = await this.perform([{ type: "type", text: text7 }]);
|
|
181341
|
+
if (!typed.ok)
|
|
181342
|
+
throw new Error(`inputText failed: ${typed.steps[0]?.error ?? "not typed"}`);
|
|
181320
181343
|
await sleep2(200);
|
|
181321
181344
|
}
|
|
181322
181345
|
async editText(command) {
|
|
@@ -181355,7 +181378,7 @@ var init_bridge_flow_runner = __esm({
|
|
|
181355
181378
|
const deadline = Date.now() + timeoutMs;
|
|
181356
181379
|
do {
|
|
181357
181380
|
try {
|
|
181358
|
-
const focused = await this.
|
|
181381
|
+
const { focused } = await this.query({ kind: "focus" });
|
|
181359
181382
|
if (focused && this.focusedTextInputMatches(focused, expected)) return true;
|
|
181360
181383
|
} catch {
|
|
181361
181384
|
}
|
|
@@ -181364,12 +181387,7 @@ var init_bridge_flow_runner = __esm({
|
|
|
181364
181387
|
return false;
|
|
181365
181388
|
}
|
|
181366
181389
|
async pressKey(name3) {
|
|
181367
|
-
await this.
|
|
181368
|
-
type: "keyboard",
|
|
181369
|
-
simId: this.opts.simId,
|
|
181370
|
-
action: "press",
|
|
181371
|
-
text: name3
|
|
181372
|
-
});
|
|
181390
|
+
await this.perform([{ type: "key", key: name3 }]);
|
|
181373
181391
|
await sleep2(120);
|
|
181374
181392
|
}
|
|
181375
181393
|
async dispatchKey(ch) {
|
|
@@ -181421,12 +181439,12 @@ var init_bridge_flow_runner = __esm({
|
|
|
181421
181439
|
await this.waitForAppToSettle();
|
|
181422
181440
|
}
|
|
181423
181441
|
async isKeyboardVisible() {
|
|
181424
|
-
const
|
|
181425
|
-
|
|
181426
|
-
|
|
181427
|
-
|
|
181428
|
-
|
|
181429
|
-
return visible === true;
|
|
181442
|
+
const state = await this.bridge.send({
|
|
181443
|
+
type: "state",
|
|
181444
|
+
simId: this.opts.simId,
|
|
181445
|
+
stateOptions: { screenshot: false, tree: false, errors: false }
|
|
181446
|
+
});
|
|
181447
|
+
return state.keyboard?.visible === true;
|
|
181430
181448
|
}
|
|
181431
181449
|
async eraseText(count) {
|
|
181432
181450
|
const steps = Array.from({ length: Math.max(0, Math.ceil(count)) }, () => ({
|
|
@@ -181509,15 +181527,12 @@ var init_bridge_flow_runner = __esm({
|
|
|
181509
181527
|
return outputPath2;
|
|
181510
181528
|
}
|
|
181511
181529
|
async readCurrentDeviceModel() {
|
|
181512
|
-
const
|
|
181513
|
-
|
|
181514
|
-
|
|
181515
|
-
|
|
181516
|
-
|
|
181517
|
-
|
|
181518
|
-
const model = settings && typeof settings.deviceModel === "string" ? settings.deviceModel : null;
|
|
181519
|
-
if (!model || !(model in devices)) return null;
|
|
181520
|
-
return model;
|
|
181530
|
+
const info = (await this.perform([{ type: "deviceInfo" }])).steps[0]?.value;
|
|
181531
|
+
if (typeof info !== "object" || info === null || !("model" in info)) return null;
|
|
181532
|
+
for (const model of listDeviceModels()) {
|
|
181533
|
+
if (devices[model].name === info.model) return model;
|
|
181534
|
+
}
|
|
181535
|
+
return null;
|
|
181521
181536
|
}
|
|
181522
181537
|
// the app's console errors and warnings plus failed requests, captured by
|
|
181523
181538
|
// peach's native-globals hook and request recorder (same shape as
|
|
@@ -181906,12 +181921,7 @@ var init_bridge_flow_runner = __esm({
|
|
|
181906
181921
|
}
|
|
181907
181922
|
async reloadGuestAppRuntime(options2) {
|
|
181908
181923
|
await this.bridge.send(
|
|
181909
|
-
{
|
|
181910
|
-
type: "call",
|
|
181911
|
-
simId: this.opts.simId,
|
|
181912
|
-
path: PEACH_RELOAD_APP_BRIDGE_PATH,
|
|
181913
|
-
args: [options2]
|
|
181914
|
-
},
|
|
181924
|
+
{ type: "relaunch", simId: this.opts.simId, relaunchOptions: options2 },
|
|
181915
181925
|
{ timeoutMs: 12e4 }
|
|
181916
181926
|
);
|
|
181917
181927
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2531 | (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;
|
|
@@ -8472,6 +8472,20 @@ function keepsSwiftUIReflection(file, undefinedSymbols) {
|
|
|
8472
8472
|
}
|
|
8473
8473
|
return false;
|
|
8474
8474
|
}
|
|
8475
|
+
function readSwiftPrunedLinkResponse(directory) {
|
|
8476
|
+
const file = import_node_path17.default.join(directory, SWIFT_PRUNED_LINK_RESPONSE);
|
|
8477
|
+
const text2 = import_node_fs16.default.readFileSync(file, "utf8").trim();
|
|
8478
|
+
const argument2 = /("(?:[^"\\]|\\.)*")(?:\s+|$)/gy;
|
|
8479
|
+
const args = [];
|
|
8480
|
+
while (argument2.lastIndex < text2.length) {
|
|
8481
|
+
const offset = argument2.lastIndex;
|
|
8482
|
+
const match = argument2.exec(text2);
|
|
8483
|
+
if (!match) throw new Error(`invalid Swift link argument at ${file}:${offset}`);
|
|
8484
|
+
const token = JSON.parse(match[1]);
|
|
8485
|
+
args.push(token);
|
|
8486
|
+
}
|
|
8487
|
+
return args;
|
|
8488
|
+
}
|
|
8475
8489
|
function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTargets = [], owner, link, resourceReferences = []) {
|
|
8476
8490
|
const rspPath = import_node_path17.default.join(directory, ".peach-link.rsp");
|
|
8477
8491
|
if (!import_node_fs16.default.existsSync(rspPath)) return;
|
|
@@ -9591,7 +9605,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
9591
9605
|
outTokens.push("--start-lib", ...leftoverArchiveFiles, "--end-lib");
|
|
9592
9606
|
leftoverArchiveFiles.length = 0;
|
|
9593
9607
|
}
|
|
9594
|
-
const prunedRspPath = import_node_path17.default.join(directory,
|
|
9608
|
+
const prunedRspPath = import_node_path17.default.join(directory, SWIFT_PRUNED_LINK_RESPONSE);
|
|
9595
9609
|
import_node_fs16.default.writeFileSync(prunedRspPath, outTokens.map((t) => JSON.stringify(t)).join(" "));
|
|
9596
9610
|
if (link) {
|
|
9597
9611
|
const sdk = { wasiDirectory: sdkWasiDir, objectDirectory: sdkObjsDir };
|
|
@@ -9608,7 +9622,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
9608
9622
|
);
|
|
9609
9623
|
import_node_fs16.default.rmSync(rspPath, { force: true });
|
|
9610
9624
|
}
|
|
9611
|
-
var import_node_child_process10, import_node_crypto8, import_node_fs16, import_node_path17, v3, WIDE_DATA_RELOCS, ROOT_SEG_PREFIXES, RECORD_SEGS, PARTITIONED_SEGS, PRUNED_SDK_ARCHIVES, OMIT_SDK_LIB_FLAGS, NEUTRALIZED_SWIFTRT_SECTIONS, relocationBytes, parsedObjectCache, PARSED_ROOTS, SWIFTUI_WRAPPER_HOST_PROTOCOLS, SWIFT_PRUNED_LINK_MAP;
|
|
9625
|
+
var import_node_child_process10, import_node_crypto8, import_node_fs16, import_node_path17, v3, WIDE_DATA_RELOCS, ROOT_SEG_PREFIXES, RECORD_SEGS, PARTITIONED_SEGS, PRUNED_SDK_ARCHIVES, OMIT_SDK_LIB_FLAGS, NEUTRALIZED_SWIFTRT_SECTIONS, relocationBytes, parsedObjectCache, PARSED_ROOTS, SWIFTUI_WRAPPER_HOST_PROTOCOLS, SWIFT_PRUNED_LINK_MAP, SWIFT_PRUNED_LINK_RESPONSE;
|
|
9612
9626
|
var init_swift_wasm_prune = __esm({
|
|
9613
9627
|
"src/swift-wasm-prune.ts"() {
|
|
9614
9628
|
"use strict";
|
|
@@ -9704,6 +9718,7 @@ var init_swift_wasm_prune = __esm({
|
|
|
9704
9718
|
].map((name3) => `$s7SwiftUI${name3.length}${name3}Mp`)
|
|
9705
9719
|
);
|
|
9706
9720
|
SWIFT_PRUNED_LINK_MAP = ".peach-link.map";
|
|
9721
|
+
SWIFT_PRUNED_LINK_RESPONSE = ".peach-link.pruned.rsp";
|
|
9707
9722
|
}
|
|
9708
9723
|
});
|
|
9709
9724
|
|
|
@@ -16148,7 +16163,7 @@ async function linkSwiftSdkImage(moduleRoot, key, directory, work, scopedLookups
|
|
|
16148
16163
|
}
|
|
16149
16164
|
function sdkLinkInputs(appRoot) {
|
|
16150
16165
|
const unquote = (token) => token.replace(/^"|"$/g, "").replace(/\\(.)/g, "$1");
|
|
16151
|
-
const tokens = (
|
|
16166
|
+
const tokens = readSwiftPrunedLinkResponse(appRoot);
|
|
16152
16167
|
const list = (0, import_node_fs35.readdirSync)(appRoot).find(
|
|
16153
16168
|
(name3) => name3.startsWith(".peach-distribution-objects-") || name3 === ".peach-framework-objects.rsp"
|
|
16154
16169
|
);
|
|
@@ -16555,11 +16570,10 @@ __export(swift_sdk_app_module_exports, {
|
|
|
16555
16570
|
});
|
|
16556
16571
|
async function buildSwiftAppModule(options) {
|
|
16557
16572
|
const { buildRoot, toolchainBin, sdk, project } = options;
|
|
16558
|
-
const rsp = import_node_path36.default.join(buildRoot, ".peach-link.pruned.rsp");
|
|
16559
16573
|
const work = project ? (0, import_node_fs36.mkdtempSync)(import_node_path36.default.join(buildRoot, ".peach-sdk-module-")) : import_node_path36.default.join(buildRoot, ".peach-sdk-module");
|
|
16560
16574
|
if (project) (0, import_node_fs36.chownSync)(work, project.uid, project.gid);
|
|
16561
16575
|
else (0, import_node_fs36.mkdirSync)(work, { recursive: true });
|
|
16562
|
-
const tokens = (
|
|
16576
|
+
const tokens = readSwiftPrunedLinkResponse(buildRoot);
|
|
16563
16577
|
const outputAt = tokens.indexOf("-o");
|
|
16564
16578
|
const pruned = project?.linked ?? (outputAt < 0 ? void 0 : tokens[outputAt + 1]);
|
|
16565
16579
|
if (!pruned) throw new Error("the pruned link names no output");
|
|
@@ -25985,7 +25999,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
|
|
|
25985
25999
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
25986
26000
|
MULTI_MANIFEST_VERSION = 76;
|
|
25987
26001
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
25988
|
-
compilerSourceDigest = true ? "
|
|
26002
|
+
compilerSourceDigest = true ? "c1b31f85f0a9aa78c7579b0a943fc4c766dee06eb085e8d3c25166b6c46646cf" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
25989
26003
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
25990
26004
|
MODULE_MAP_RESPONSE_FILE_RUN = 16;
|
|
25991
26005
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2531 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
FOUNDATION_IMPLICIT_MODULES,
|
|
4
4
|
MULTI_MANIFEST_VERSION,
|
|
@@ -63,15 +63,15 @@ import {
|
|
|
63
63
|
withoutSwiftDeclarations,
|
|
64
64
|
wrapUIApplicationMainEntry,
|
|
65
65
|
writeSwiftProject
|
|
66
|
-
} from "./esm-chunks/chunk-
|
|
67
|
-
import "./esm-chunks/chunk-
|
|
68
|
-
import "./esm-chunks/chunk-
|
|
69
|
-
import "./esm-chunks/chunk-
|
|
70
|
-
import "./esm-chunks/chunk-
|
|
71
|
-
import "./esm-chunks/chunk-
|
|
72
|
-
import "./esm-chunks/chunk-
|
|
73
|
-
import "./esm-chunks/chunk-
|
|
74
|
-
import "./esm-chunks/chunk-
|
|
66
|
+
} from "./esm-chunks/chunk-LLPNDBX5.mjs";
|
|
67
|
+
import "./esm-chunks/chunk-4EBD4OKW.mjs";
|
|
68
|
+
import "./esm-chunks/chunk-GKJ2T3TK.mjs";
|
|
69
|
+
import "./esm-chunks/chunk-7CZNR5FB.mjs";
|
|
70
|
+
import "./esm-chunks/chunk-CGW4JC44.mjs";
|
|
71
|
+
import "./esm-chunks/chunk-SUHGSVF2.mjs";
|
|
72
|
+
import "./esm-chunks/chunk-6IEHVC3Z.mjs";
|
|
73
|
+
import "./esm-chunks/chunk-PBWV4H5F.mjs";
|
|
74
|
+
import "./esm-chunks/chunk-ROJ76CJT.mjs";
|
|
75
75
|
export {
|
|
76
76
|
FOUNDATION_IMPLICIT_MODULES,
|
|
77
77
|
MULTI_MANIFEST_VERSION,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2531 | (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.2531 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
OBJC_RESOURCE_ACCESSOR_BODY,
|
|
4
4
|
OBJC_RESOURCE_ACCESSOR_HEADER,
|
|
@@ -33,8 +33,8 @@ import {
|
|
|
33
33
|
swiftResourceBundles,
|
|
34
34
|
swiftTargetModuleName,
|
|
35
35
|
withoutGlogModuleMap
|
|
36
|
-
} from "./esm-chunks/chunk-
|
|
37
|
-
import "./esm-chunks/chunk-
|
|
36
|
+
} from "./esm-chunks/chunk-7CZNR5FB.mjs";
|
|
37
|
+
import "./esm-chunks/chunk-ROJ76CJT.mjs";
|
|
38
38
|
export {
|
|
39
39
|
OBJC_RESOURCE_ACCESSOR_BODY,
|
|
40
40
|
OBJC_RESOURCE_ACCESSOR_HEADER,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2531 | (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,12 +1,12 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2531 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
isSwiftMetalLibrarySources
|
|
4
|
-
} from "./esm-chunks/chunk-
|
|
5
|
-
import "./esm-chunks/chunk-
|
|
4
|
+
} from "./esm-chunks/chunk-GKJ2T3TK.mjs";
|
|
5
|
+
import "./esm-chunks/chunk-CGW4JC44.mjs";
|
|
6
6
|
import {
|
|
7
7
|
isRecord
|
|
8
|
-
} from "./esm-chunks/chunk-
|
|
9
|
-
import "./esm-chunks/chunk-
|
|
8
|
+
} from "./esm-chunks/chunk-PBWV4H5F.mjs";
|
|
9
|
+
import "./esm-chunks/chunk-ROJ76CJT.mjs";
|
|
10
10
|
|
|
11
11
|
// src/swift-submit.ts
|
|
12
12
|
var SWIFT_COMPILE_PATH = "/api/swift-compile";
|