peachsim 0.1.2249 → 0.1.2250
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 +4 -3
- package/cli/commands/flow.ts +4 -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 +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 +60 -20
- 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 +3 -3
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +34 -16
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +67 -21
- 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 +15 -8
- 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 +15 -8
- 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 +2 -2
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +103 -23
- package/dist-lib/swift-compile.cjs +31 -13
- package/dist-lib/swift-compile.mjs +31 -13
- 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 +32 -14
- package/dist-lib/vite.cjs +15 -8
- 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/image-pixel-contract.d.ts +0 -4
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/src/assetCatalogContract.ts +1 -1
- package/src/nitro-compile.ts +23 -1
- package/src/process-group.ts +5 -2
- package/src/runtime-packs.ts +8 -0
- package/src/swift-compile.ts +20 -6
- package/src/swift-guest-source-inputs.ts +5 -1
- package/src/swift-installed-targets.ts +4 -1
- package/src/swift-wasm-prune.ts +4 -2
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2250 | (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;
|
|
@@ -329,7 +329,7 @@ var init_process_table = __esm({
|
|
|
329
329
|
});
|
|
330
330
|
|
|
331
331
|
// src/process-group.ts
|
|
332
|
-
function listProcessChildren(parents, timeoutMs =
|
|
332
|
+
function listProcessChildren(parents, timeoutMs = 1e4) {
|
|
333
333
|
if (parents.some((pid) => !Number.isInteger(pid) || pid <= 1))
|
|
334
334
|
throw new Error("process inspection requires valid parent pids");
|
|
335
335
|
if (parents.length === 0) return [];
|
|
@@ -539,7 +539,7 @@ async function terminateProcessGroup(child, signal = "SIGTERM", gracefulTimeoutM
|
|
|
539
539
|
try {
|
|
540
540
|
signalProcessGroup(child, "SIGSTOP");
|
|
541
541
|
let parents = [child.pid];
|
|
542
|
-
const inspectionDeadline = Date.now() +
|
|
542
|
+
const inspectionDeadline = Date.now() + INSPECTION_TIMEOUT_MS;
|
|
543
543
|
while (parents.length > 0) {
|
|
544
544
|
const remaining = inspectionDeadline - Date.now();
|
|
545
545
|
if (remaining <= 0) {
|
|
@@ -635,7 +635,7 @@ async function terminateProcessGroup(child, signal = "SIGTERM", gracefulTimeoutM
|
|
|
635
635
|
}
|
|
636
636
|
if (inspectionError) throw inspectionError;
|
|
637
637
|
}
|
|
638
|
-
var import_node_child_process3, import_node_fs3, import_node_os2, import_node_path, import_node_stream, import_promises, GRACEFUL_TIMEOUT_MS, FORCED_EXIT_TIMEOUT_MS, FREEZE_GUARD_NAME;
|
|
638
|
+
var import_node_child_process3, import_node_fs3, import_node_os2, import_node_path, import_node_stream, import_promises, GRACEFUL_TIMEOUT_MS, FORCED_EXIT_TIMEOUT_MS, INSPECTION_TIMEOUT_MS, FREEZE_GUARD_NAME;
|
|
639
639
|
var init_process_group = __esm({
|
|
640
640
|
"src/process-group.ts"() {
|
|
641
641
|
"use strict";
|
|
@@ -648,6 +648,7 @@ var init_process_group = __esm({
|
|
|
648
648
|
init_process_table();
|
|
649
649
|
GRACEFUL_TIMEOUT_MS = 3e3;
|
|
650
650
|
FORCED_EXIT_TIMEOUT_MS = 1e3;
|
|
651
|
+
INSPECTION_TIMEOUT_MS = 1e4;
|
|
651
652
|
FREEZE_GUARD_NAME = "process-freeze-guard";
|
|
652
653
|
}
|
|
653
654
|
});
|
|
@@ -48105,6 +48106,7 @@ function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTar
|
|
|
48105
48106
|
const eagerFiles = [];
|
|
48106
48107
|
const lazyBuildObjects = /* @__PURE__ */ new Map();
|
|
48107
48108
|
const extraArchiveObjs = [];
|
|
48109
|
+
const objectBytes = /* @__PURE__ */ new Map();
|
|
48108
48110
|
let inStartLib = false;
|
|
48109
48111
|
let swiftrtOrigPath = "";
|
|
48110
48112
|
for (const t of tokens2) {
|
|
@@ -48151,7 +48153,9 @@ function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTar
|
|
|
48151
48153
|
} else if (!inStartLib && t.endsWith(".a") && !t.endsWith("libclang_rt.builtins-wasm64.a") && import_node_fs38.default.existsSync(t)) {
|
|
48152
48154
|
const members2 = readArMembers(new Uint8Array(import_node_fs38.default.readFileSync(t)));
|
|
48153
48155
|
for (const m of members2) {
|
|
48154
|
-
|
|
48156
|
+
const object6 = parseWasmObjectBytes(`${t}(${m.name})`, m.bytes, false);
|
|
48157
|
+
extraArchiveObjs.push(object6);
|
|
48158
|
+
objectBytes.set(object6, Buffer.from(m.bytes));
|
|
48155
48159
|
}
|
|
48156
48160
|
}
|
|
48157
48161
|
}
|
|
@@ -48522,7 +48526,6 @@ function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTar
|
|
|
48522
48526
|
"$s10Foundation16NSSortDescriptorC7keyPath9ascendingACs03KeyE0Cyxq_G_SbtcSLR_r0_lufC",
|
|
48523
48527
|
"$s10Foundation16NSSortDescriptorC7keyPath9ascendingACs03KeyE0Cyxq_G_SbtcSLR_r0_lufc"
|
|
48524
48528
|
]);
|
|
48525
|
-
const objectBytes = /* @__PURE__ */ new Map();
|
|
48526
48529
|
const keepObjCClassesNamedInSegment = (obj, segIdx) => {
|
|
48527
48530
|
const range2 = obj.segPayloadRanges[segIdx];
|
|
48528
48531
|
if (!range2) return;
|
|
@@ -52365,9 +52368,10 @@ function sourceGuestClangLinkOptions(options) {
|
|
|
52365
52368
|
if (command.tool !== "clang" || compiler !== (0, import_node_fs43.realpathSync)(import_node_path40.default.join(options.toolchainBin, "clang")) && compiler !== (0, import_node_fs43.realpathSync)(import_node_path40.default.join(options.buildDirectory, CLANG_TARGET_MODULE_WRAPPER)))
|
|
52366
52369
|
throw new Error(`unsupported source object producer ${file}`);
|
|
52367
52370
|
const args = command.args.slice(1).filter((arg) => arg !== "-c");
|
|
52371
|
+
const targetBuild = import_node_path40.default.relative(options.buildDirectory, file).split(import_node_path40.default.sep).findLast((part) => part !== ".build" && part.endsWith(".build"));
|
|
52368
52372
|
const outputDirectory = import_node_path40.default.join(
|
|
52369
52373
|
options.directory,
|
|
52370
|
-
import_node_path40.default.basename(import_node_path40.default.dirname(file))
|
|
52374
|
+
targetBuild ?? import_node_path40.default.basename(import_node_path40.default.dirname(file))
|
|
52371
52375
|
);
|
|
52372
52376
|
(0, import_node_fs43.mkdirSync)(outputDirectory, { recursive: true });
|
|
52373
52377
|
const output2 = import_node_path40.default.join(outputDirectory, `clang-link-${index}.ll`);
|
|
@@ -57709,15 +57713,29 @@ module ${moduleName2}.Swift {
|
|
|
57709
57713
|
[
|
|
57710
57714
|
"#!/bin/sh",
|
|
57711
57715
|
"name=",
|
|
57716
|
+
"explicit=",
|
|
57712
57717
|
"prev=",
|
|
57713
57718
|
'for arg in "$@"; do',
|
|
57714
|
-
|
|
57719
|
+
" case $arg in -fmodule-name=*) explicit=1 ;; esac",
|
|
57720
|
+
' if [ "$prev" = -o ]; then',
|
|
57721
|
+
" case $arg in */*) dir=${arg%/*} ;; *) dir= ;; esac",
|
|
57722
|
+
' while [ -n "$dir" ] && [ "$dir" != / ] && [ "$dir" != . ]; do',
|
|
57723
|
+
" base=${dir##*/}",
|
|
57724
|
+
" case $base in",
|
|
57725
|
+
" .build) break ;;",
|
|
57726
|
+
" *.build) name=${base%.build}; break ;;",
|
|
57727
|
+
" esac",
|
|
57728
|
+
" next=${dir%/*}",
|
|
57729
|
+
' [ "$next" = "$dir" ] && break',
|
|
57730
|
+
" dir=$next",
|
|
57731
|
+
" done",
|
|
57732
|
+
" fi",
|
|
57715
57733
|
" prev=$arg",
|
|
57716
57734
|
"done",
|
|
57717
|
-
"
|
|
57718
|
-
`
|
|
57719
|
-
|
|
57720
|
-
"
|
|
57735
|
+
'if [ -n "$name" ] && [ -z "$explicit" ]; then',
|
|
57736
|
+
` exec '${import_node_path50.default.join(nativeToolchain(), "clang")}' "-fmodule-name=$name" "$@"`,
|
|
57737
|
+
"fi",
|
|
57738
|
+
`exec '${import_node_path50.default.join(nativeToolchain(), "clang")}' "$@"`,
|
|
57721
57739
|
""
|
|
57722
57740
|
].join("\n")
|
|
57723
57741
|
);
|
|
@@ -58176,7 +58194,7 @@ function frameworkLinkClosure(scratch2, roots) {
|
|
|
58176
58194
|
const deps = /* @__PURE__ */ new Set();
|
|
58177
58195
|
for (const file of paths) {
|
|
58178
58196
|
const module2 = /\/Modules\/([^/]+)\.swiftmodule$/.exec(file);
|
|
58179
|
-
const object6 = /\/([^/]+)\.build
|
|
58197
|
+
const object6 = /\/release\/([^/]+)\.build\/.+\.o$/.exec(file);
|
|
58180
58198
|
if (module2) deps.add(module2[1]);
|
|
58181
58199
|
else if (object6 && object6[1] !== pending2.name) deps.add(object6[1]);
|
|
58182
58200
|
}
|
|
@@ -59302,7 +59320,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
|
|
|
59302
59320
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
59303
59321
|
MULTI_MANIFEST_VERSION = 68;
|
|
59304
59322
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
59305
|
-
compilerSourceDigest = true ? "
|
|
59323
|
+
compilerSourceDigest = true ? "4a1be1d1296381c7090b5b2b704a7d2bebba03ceaa580613acd0f2c39c31ed4c" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
59306
59324
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
59307
59325
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
59308
59326
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -65768,7 +65786,7 @@ var init_swift_standin_digest = __esm({
|
|
|
65768
65786
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
65769
65787
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
65770
65788
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
65771
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
65789
|
+
STANDIN_SOURCE_DIGEST = true ? "977c30e838b3cb068d200b9a9a12851b01d2192d0d04e2b5a6abe8189c168d42" : standinSourceDigest();
|
|
65772
65790
|
}
|
|
65773
65791
|
});
|
|
65774
65792
|
|
|
@@ -66224,7 +66242,7 @@ var init_package_tree_digest = __esm({
|
|
|
66224
66242
|
|
|
66225
66243
|
// src/expo-native-prebuilt.ts
|
|
66226
66244
|
function expoNativeCompilerDigestValue() {
|
|
66227
|
-
return true ? "
|
|
66245
|
+
return true ? "61015852e514afc4871689bd71712eb2a5ac95c8b04829519dc81f6855f86b30" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
66228
66246
|
}
|
|
66229
66247
|
function readSources(value) {
|
|
66230
66248
|
const sources = isRecord(value) ? value.sources : null;
|
|
@@ -77790,10 +77808,11 @@ function applyInstalledSwiftTargets(collection, snapshot, generatedTargets, root
|
|
|
77790
77808
|
].map((bundle) => [bundle.target, bundle])
|
|
77791
77809
|
).values()
|
|
77792
77810
|
];
|
|
77793
|
-
|
|
77811
|
+
const headerAliases = {
|
|
77794
77812
|
...collection.headerAliases,
|
|
77795
77813
|
...snapshot.input.headerAliases
|
|
77796
77814
|
};
|
|
77815
|
+
collection.headerAliases = headerAliases;
|
|
77797
77816
|
const canonical = /* @__PURE__ */ new Map();
|
|
77798
77817
|
for (const [key2, source] of Object.entries(snapshot.sourcePaths)) {
|
|
77799
77818
|
const real = import_node_fs86.default.realpathSync(source);
|
|
@@ -77863,6 +77882,8 @@ function applyInstalledSwiftTargets(collection, snapshot, generatedTargets, root
|
|
|
77863
77882
|
const match = supplied.get(file.slice(prefix.length))?.find((candidate) => candidate.content === content);
|
|
77864
77883
|
if (!match) continue;
|
|
77865
77884
|
roots2.add(match.root);
|
|
77885
|
+
aliases[file] = copy;
|
|
77886
|
+
headerAliases[file] = copy;
|
|
77866
77887
|
delete collection.files[file];
|
|
77867
77888
|
}
|
|
77868
77889
|
return roots2;
|
|
@@ -86658,6 +86679,7 @@ async function compileNitroModule(options) {
|
|
|
86658
86679
|
options.packageRoots,
|
|
86659
86680
|
options.answers
|
|
86660
86681
|
).flatMap(({ config }) => config.swiftModule ? [config.swiftModule] : []);
|
|
86682
|
+
let installedTargets = [];
|
|
86661
86683
|
if (swiftModules.length > 0 && workspace) {
|
|
86662
86684
|
const available = new Set(
|
|
86663
86685
|
swiftAvailableModules(
|
|
@@ -86681,12 +86703,13 @@ async function compileNitroModule(options) {
|
|
|
86681
86703
|
},
|
|
86682
86704
|
async (root) => {
|
|
86683
86705
|
const snapshot = await installedWorkspaceInput(root, "main.swift");
|
|
86706
|
+
installedTargets = swiftManifestTargets(snapshot.input.files["Package.swift"]);
|
|
86684
86707
|
const swiftFiles = Object.keys(snapshot.input.files).filter(
|
|
86685
86708
|
(file) => file.endsWith(".swift")
|
|
86686
86709
|
);
|
|
86687
86710
|
const mixedTargets = /* @__PURE__ */ new Set([
|
|
86688
86711
|
...collection.targets.map(({ name: name3 }) => name3),
|
|
86689
|
-
...
|
|
86712
|
+
...installedTargets.filter(
|
|
86690
86713
|
(target) => swiftFiles.some((file) => file.startsWith(`${target.path}/`))
|
|
86691
86714
|
).map(({ name: name3 }) => name3)
|
|
86692
86715
|
]);
|
|
@@ -86727,6 +86750,23 @@ async function compileNitroModule(options) {
|
|
|
86727
86750
|
options.moduleRoot,
|
|
86728
86751
|
installedProviders ? [] : unresolvedFrameworkIncludes(collection.files)
|
|
86729
86752
|
);
|
|
86753
|
+
if (dependencies) {
|
|
86754
|
+
const podTargets = new Set(
|
|
86755
|
+
swiftManifestTargets(dependencies.files["Package.swift"]).map(
|
|
86756
|
+
({ name: name3 }) => name3
|
|
86757
|
+
)
|
|
86758
|
+
);
|
|
86759
|
+
for (const target of collection.targets) {
|
|
86760
|
+
const declared = installedTargets.find(({ name: name3 }) => name3 === target.name);
|
|
86761
|
+
const owned = new Set((target.dependencies ?? []).map(({ name: name3 }) => name3));
|
|
86762
|
+
target.dependencies = [
|
|
86763
|
+
...target.dependencies ?? [],
|
|
86764
|
+
...(declared?.dependencies ?? []).filter(
|
|
86765
|
+
(dependency) => dependency.kind === "target" && podTargets.has(dependency.name) && !owned.has(dependency.name)
|
|
86766
|
+
)
|
|
86767
|
+
];
|
|
86768
|
+
}
|
|
86769
|
+
}
|
|
86730
86770
|
}
|
|
86731
86771
|
const iosDeploymentTarget = readIosAppTarget(
|
|
86732
86772
|
options.projectRoot,
|
|
@@ -86976,7 +87016,7 @@ var init_nitro_superset = __esm({
|
|
|
86976
87016
|
init_nitroContract();
|
|
86977
87017
|
init_swift_standin_digest();
|
|
86978
87018
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
86979
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
87019
|
+
NITRO_COMPILER_DIGEST = true ? "0429b227e3c07f9b7eede2db1261fa41aed089c33099b22004c3776da007bf07" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
86980
87020
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
86981
87021
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
86982
87022
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -87684,7 +87724,7 @@ var init_one_sdk_bundle = __esm({
|
|
|
87684
87724
|
var runtime_companion_default;
|
|
87685
87725
|
var init_runtime_companion = __esm({
|
|
87686
87726
|
"runtime-companion.json"() {
|
|
87687
|
-
runtime_companion_default = { abi: 1, sha256: "
|
|
87727
|
+
runtime_companion_default = { abi: 1, sha256: "15053b90437ccef5f18e3e8cde5732e85d2dc9feb3a3e76076cb671a640c465e", file: "node/cli-15053b90437ccef5f18e3e8cde5732e85d2dc9feb3a3e76076cb671a640c465e.cjs" };
|
|
87688
87728
|
}
|
|
87689
87729
|
});
|
|
87690
87730
|
|
|
@@ -87767,7 +87807,8 @@ var init_cli_runtime = __esm({
|
|
|
87767
87807
|
// src/runtime-packs.ts
|
|
87768
87808
|
var runtime_packs_exports = {};
|
|
87769
87809
|
__export(runtime_packs_exports, {
|
|
87770
|
-
ensureRuntimePackFor: () => ensureRuntimePackFor
|
|
87810
|
+
ensureRuntimePackFor: () => ensureRuntimePackFor,
|
|
87811
|
+
installAllRuntimePacks: () => installAllRuntimePacks
|
|
87771
87812
|
});
|
|
87772
87813
|
function listedFiles(runtimeRoot) {
|
|
87773
87814
|
let listed = listedByRoot.get(runtimeRoot);
|
|
@@ -87830,6 +87871,11 @@ async function ensureRuntimePackFor(runtimeRoot, pathname) {
|
|
|
87830
87871
|
if (!/\.m?js$/.test(rel) || import_node_fs104.default.existsSync(import_node_path103.default.join(tenantDir, rel))) return;
|
|
87831
87872
|
await installNamedPack(runtimeRoot, RUNTIME_MERGE_PACK_DIR);
|
|
87832
87873
|
}
|
|
87874
|
+
async function installAllRuntimePacks(runtimeRoot) {
|
|
87875
|
+
for (const name3 of Object.keys(readPacks(runtimeRoot) ?? {}))
|
|
87876
|
+
if (!await installNamedPack(runtimeRoot, name3))
|
|
87877
|
+
throw new Error(`runtime pack ${name3} did not install under ${runtimeRoot}`);
|
|
87878
|
+
}
|
|
87833
87879
|
function installNamedPack(runtimeRoot, name3) {
|
|
87834
87880
|
if (name3 === RUNTIME_MERGE_PACK_DIR) {
|
|
87835
87881
|
const tenantDir = import_node_path103.default.join(runtimeRoot, RUNTIME_MERGE_PACK_DIR);
|
|
@@ -115103,6 +115149,17 @@ function readSource(source) {
|
|
|
115103
115149
|
}
|
|
115104
115150
|
result = { kind: "object", entries };
|
|
115105
115151
|
at++;
|
|
115152
|
+
} else if (is(at, import_types3.TokenType.bracketL)) {
|
|
115153
|
+
at++;
|
|
115154
|
+
const items2 = [];
|
|
115155
|
+
while (at < tokens2.length && !is(at, import_types3.TokenType.bracketR)) {
|
|
115156
|
+
const [item, next] = value(at);
|
|
115157
|
+
items2.push(item);
|
|
115158
|
+
at = next;
|
|
115159
|
+
if (is(at, import_types3.TokenType.comma)) at++;
|
|
115160
|
+
}
|
|
115161
|
+
result = { kind: "array", items: items2 };
|
|
115162
|
+
at++;
|
|
115106
115163
|
} else if (is(at, import_types3.TokenType._true) || is(at, import_types3.TokenType._false)) {
|
|
115107
115164
|
result = { kind: "boolean", value: is(at, import_types3.TokenType._true) };
|
|
115108
115165
|
at++;
|
|
@@ -115235,6 +115292,20 @@ function oneNativeAppIdentity(source, platform2 = "ios") {
|
|
|
115235
115292
|
const purpose = text6(...path142);
|
|
115236
115293
|
if (purpose !== void 0) infoPlistStrings[key2] = purpose;
|
|
115237
115294
|
}
|
|
115295
|
+
const ios = property(app, "ios");
|
|
115296
|
+
const list2 = (input, read) => input?.kind === "array" ? input.items.flatMap((item) => read(item) ?? []) : [];
|
|
115297
|
+
const literal5 = (item) => item?.kind === "string" ? item.value : void 0;
|
|
115298
|
+
const enabled2 = (item) => item !== null && !(item.kind === "boolean" && !item.value);
|
|
115299
|
+
const tasks = property(ios, "backgroundTasks");
|
|
115300
|
+
const refreshTasks = list2(property(tasks, "refresh"), literal5);
|
|
115301
|
+
const processingTasks = list2(property(tasks, "processing"), literal5);
|
|
115302
|
+
const appIntents = property(ios, "appIntents");
|
|
115303
|
+
const backgroundModes = [
|
|
115304
|
+
...enabled2(property(app, "pictureInPicture")) || enabled2(property(property(app, "audio"), "background")) ? ["audio"] : [],
|
|
115305
|
+
...enabled2(property(property(app, "location"), "background")) ? ["location"] : [],
|
|
115306
|
+
...refreshTasks.length ? ["fetch"] : [],
|
|
115307
|
+
...processingTasks.length ? ["processing"] : []
|
|
115308
|
+
];
|
|
115238
115309
|
const permissionUsageDescriptions = Object.fromEntries(
|
|
115239
115310
|
Object.entries(infoPlistStrings).filter(
|
|
115240
115311
|
([key2]) => /^NS.*UsageDescription$/.test(key2)
|
|
@@ -115260,7 +115331,15 @@ function oneNativeAppIdentity(source, platform2 = "ios") {
|
|
|
115260
115331
|
infoPlistStrings,
|
|
115261
115332
|
infoPlistBooleans,
|
|
115262
115333
|
...supportedInterfaceOrientations === void 0 ? {} : { supportedInterfaceOrientations },
|
|
115263
|
-
ipadSupportedInterfaceOrientations: [...landscape, ...portrait]
|
|
115334
|
+
ipadSupportedInterfaceOrientations: [...landscape, ...portrait],
|
|
115335
|
+
...appIntents ? {
|
|
115336
|
+
appIntentIdentifiers: list2(
|
|
115337
|
+
property(appIntents, "actions"),
|
|
115338
|
+
(action) => literal5(property(action, "id"))
|
|
115339
|
+
)
|
|
115340
|
+
} : {},
|
|
115341
|
+
...refreshTasks.length || processingTasks.length ? { backgroundTaskIdentifiers: [...refreshTasks, ...processingTasks] } : {},
|
|
115342
|
+
...backgroundModes.length ? { backgroundModes } : {}
|
|
115264
115343
|
};
|
|
115265
115344
|
}
|
|
115266
115345
|
var import_parser5, import_types3, OPENERS2, CLOSERS, STATEMENT_STARTS, IOS_PURPOSE_STRINGS;
|
|
@@ -134691,6 +134770,7 @@ var bridge_flow_runner_exports = {};
|
|
|
134691
134770
|
__export(bridge_flow_runner_exports, {
|
|
134692
134771
|
SootSimBridgeFlowRunner: () => SootSimBridgeFlowRunner,
|
|
134693
134772
|
firstPlainLaunchPermissions: () => firstPlainLaunchPermissions,
|
|
134773
|
+
normalizeBareStringStep: () => normalizeBareStringStep,
|
|
134694
134774
|
normalizeFlowScreenshotSpec: () => normalizeFlowScreenshotSpec,
|
|
134695
134775
|
parseFlowSteps: () => parseFlowSteps,
|
|
134696
134776
|
resolveFlowScreenshotPathWithMode: () => resolveFlowScreenshotPathWithMode
|
|
@@ -137293,7 +137373,7 @@ var init_bridge_flow_runner = __esm({
|
|
|
137293
137373
|
}
|
|
137294
137374
|
}
|
|
137295
137375
|
async runStepInner(step) {
|
|
137296
|
-
if (!step.assertVisible && !step.assertNotVisible && step.assertTrue === void 0 && !step.assertTreeContains && !step.takeScreenshot && !step.dumpTree && step.copyTextFrom === void 0 && !step.waitFor && !step.extendedWaitUntil && !step.runFlow && !step.repeat && !step.retry)
|
|
137376
|
+
if (!step.tapOn && !step.assertVisible && !step.assertNotVisible && step.assertTrue === void 0 && !step.assertTreeContains && !step.takeScreenshot && !step.dumpTree && step.copyTextFrom === void 0 && !step.waitFor && !step.extendedWaitUntil && !step.runFlow && !step.repeat && !step.retry)
|
|
137297
137377
|
this.stillRevision = null;
|
|
137298
137378
|
if (this.animationClockLocked && !step.advanceAnimationClock && !step.takeScreenshot && !step.assertVisible && !step.assertNotVisible && step.assertTrue === void 0 && !step.assertTreeContains && !step.dumpTree && step.copyTextFrom === void 0 && typeof step.evalScript !== "string" && !step.runScript && step.setClipboard === void 0 && !step.runFlow && !step.repeat && !step.retry) {
|
|
137299
137379
|
await this.releaseAnimationClock();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2250 | (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;
|
|
@@ -2279,8 +2279,9 @@ function readProcessTable(timeoutMs = 1e4, pid) {
|
|
|
2279
2279
|
// src/process-group.ts
|
|
2280
2280
|
var GRACEFUL_TIMEOUT_MS = 3e3;
|
|
2281
2281
|
var FORCED_EXIT_TIMEOUT_MS = 1e3;
|
|
2282
|
+
var INSPECTION_TIMEOUT_MS = 1e4;
|
|
2282
2283
|
var FREEZE_GUARD_NAME = "process-freeze-guard";
|
|
2283
|
-
function listProcessChildren(parents, timeoutMs =
|
|
2284
|
+
function listProcessChildren(parents, timeoutMs = 1e4) {
|
|
2284
2285
|
if (parents.some((pid) => !Number.isInteger(pid) || pid <= 1))
|
|
2285
2286
|
throw new Error("process inspection requires valid parent pids");
|
|
2286
2287
|
if (parents.length === 0) return [];
|
|
@@ -2490,7 +2491,7 @@ async function terminateProcessGroup(child, signal = "SIGTERM", gracefulTimeoutM
|
|
|
2490
2491
|
try {
|
|
2491
2492
|
signalProcessGroup(child, "SIGSTOP");
|
|
2492
2493
|
let parents = [child.pid];
|
|
2493
|
-
const inspectionDeadline = Date.now() +
|
|
2494
|
+
const inspectionDeadline = Date.now() + INSPECTION_TIMEOUT_MS;
|
|
2494
2495
|
while (parents.length > 0) {
|
|
2495
2496
|
const remaining = inspectionDeadline - Date.now();
|
|
2496
2497
|
if (remaining <= 0) {
|
|
@@ -5819,6 +5820,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
5819
5820
|
const eagerFiles = [];
|
|
5820
5821
|
const lazyBuildObjects = /* @__PURE__ */ new Map();
|
|
5821
5822
|
const extraArchiveObjs = [];
|
|
5823
|
+
const objectBytes = /* @__PURE__ */ new Map();
|
|
5822
5824
|
let inStartLib = false;
|
|
5823
5825
|
let swiftrtOrigPath = "";
|
|
5824
5826
|
for (const t of tokens) {
|
|
@@ -5865,7 +5867,9 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
5865
5867
|
} else if (!inStartLib && t.endsWith(".a") && !t.endsWith("libclang_rt.builtins-wasm64.a") && import_node_fs8.default.existsSync(t)) {
|
|
5866
5868
|
const members = readArMembers(new Uint8Array(import_node_fs8.default.readFileSync(t)));
|
|
5867
5869
|
for (const m of members) {
|
|
5868
|
-
|
|
5870
|
+
const object3 = parseWasmObjectBytes(`${t}(${m.name})`, m.bytes, false);
|
|
5871
|
+
extraArchiveObjs.push(object3);
|
|
5872
|
+
objectBytes.set(object3, Buffer.from(m.bytes));
|
|
5869
5873
|
}
|
|
5870
5874
|
}
|
|
5871
5875
|
}
|
|
@@ -6236,7 +6240,6 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
6236
6240
|
"$s10Foundation16NSSortDescriptorC7keyPath9ascendingACs03KeyE0Cyxq_G_SbtcSLR_r0_lufC",
|
|
6237
6241
|
"$s10Foundation16NSSortDescriptorC7keyPath9ascendingACs03KeyE0Cyxq_G_SbtcSLR_r0_lufc"
|
|
6238
6242
|
]);
|
|
6239
|
-
const objectBytes = /* @__PURE__ */ new Map();
|
|
6240
6243
|
const keepObjCClassesNamedInSegment = (obj, segIdx) => {
|
|
6241
6244
|
const range = obj.segPayloadRanges[segIdx];
|
|
6242
6245
|
if (!range) return;
|
|
@@ -9899,9 +9902,10 @@ function sourceGuestClangLinkOptions(options) {
|
|
|
9899
9902
|
if (command.tool !== "clang" || compiler !== (0, import_node_fs13.realpathSync)(import_node_path13.default.join(options.toolchainBin, "clang")) && compiler !== (0, import_node_fs13.realpathSync)(import_node_path13.default.join(options.buildDirectory, CLANG_TARGET_MODULE_WRAPPER)))
|
|
9900
9903
|
throw new Error(`unsupported source object producer ${file}`);
|
|
9901
9904
|
const args = command.args.slice(1).filter((arg) => arg !== "-c");
|
|
9905
|
+
const targetBuild = import_node_path13.default.relative(options.buildDirectory, file).split(import_node_path13.default.sep).findLast((part) => part !== ".build" && part.endsWith(".build"));
|
|
9902
9906
|
const outputDirectory = import_node_path13.default.join(
|
|
9903
9907
|
options.directory,
|
|
9904
|
-
import_node_path13.default.basename(import_node_path13.default.dirname(file))
|
|
9908
|
+
targetBuild ?? import_node_path13.default.basename(import_node_path13.default.dirname(file))
|
|
9905
9909
|
);
|
|
9906
9910
|
(0, import_node_fs13.mkdirSync)(outputDirectory, { recursive: true });
|
|
9907
9911
|
const output = import_node_path13.default.join(outputDirectory, `clang-link-${index}.ll`);
|
|
@@ -13119,7 +13123,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
13119
13123
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
13120
13124
|
var MULTI_MANIFEST_VERSION = 68;
|
|
13121
13125
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
13122
|
-
var compilerSourceDigest = true ? "
|
|
13126
|
+
var compilerSourceDigest = true ? "4a1be1d1296381c7090b5b2b704a7d2bebba03ceaa580613acd0f2c39c31ed4c" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
13123
13127
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
13124
13128
|
const hash = (0, import_node_crypto13.createHash)("sha256");
|
|
13125
13129
|
hash.update(`swift-compile
|
|
@@ -16298,15 +16302,29 @@ module ${moduleName}.Swift {
|
|
|
16298
16302
|
[
|
|
16299
16303
|
"#!/bin/sh",
|
|
16300
16304
|
"name=",
|
|
16305
|
+
"explicit=",
|
|
16301
16306
|
"prev=",
|
|
16302
16307
|
'for arg in "$@"; do',
|
|
16303
|
-
|
|
16308
|
+
" case $arg in -fmodule-name=*) explicit=1 ;; esac",
|
|
16309
|
+
' if [ "$prev" = -o ]; then',
|
|
16310
|
+
" case $arg in */*) dir=${arg%/*} ;; *) dir= ;; esac",
|
|
16311
|
+
' while [ -n "$dir" ] && [ "$dir" != / ] && [ "$dir" != . ]; do',
|
|
16312
|
+
" base=${dir##*/}",
|
|
16313
|
+
" case $base in",
|
|
16314
|
+
" .build) break ;;",
|
|
16315
|
+
" *.build) name=${base%.build}; break ;;",
|
|
16316
|
+
" esac",
|
|
16317
|
+
" next=${dir%/*}",
|
|
16318
|
+
' [ "$next" = "$dir" ] && break',
|
|
16319
|
+
" dir=$next",
|
|
16320
|
+
" done",
|
|
16321
|
+
" fi",
|
|
16304
16322
|
" prev=$arg",
|
|
16305
16323
|
"done",
|
|
16306
|
-
"
|
|
16307
|
-
`
|
|
16308
|
-
|
|
16309
|
-
"
|
|
16324
|
+
'if [ -n "$name" ] && [ -z "$explicit" ]; then',
|
|
16325
|
+
` exec '${import_node_path25.default.join(nativeToolchain(), "clang")}' "-fmodule-name=$name" "$@"`,
|
|
16326
|
+
"fi",
|
|
16327
|
+
`exec '${import_node_path25.default.join(nativeToolchain(), "clang")}' "$@"`,
|
|
16310
16328
|
""
|
|
16311
16329
|
].join("\n")
|
|
16312
16330
|
);
|
|
@@ -16773,7 +16791,7 @@ function frameworkLinkClosure(scratch2, roots) {
|
|
|
16773
16791
|
const deps = /* @__PURE__ */ new Set();
|
|
16774
16792
|
for (const file of paths) {
|
|
16775
16793
|
const module2 = /\/Modules\/([^/]+)\.swiftmodule$/.exec(file);
|
|
16776
|
-
const object3 = /\/([^/]+)\.build
|
|
16794
|
+
const object3 = /\/release\/([^/]+)\.build\/.+\.o$/.exec(file);
|
|
16777
16795
|
if (module2) deps.add(module2[1]);
|
|
16778
16796
|
else if (object3 && object3[1] !== pending.name) deps.add(object3[1]);
|
|
16779
16797
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2250 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/swift-compile.ts
|
|
4
4
|
import {
|
|
@@ -2213,8 +2213,9 @@ function readProcessTable(timeoutMs = 1e4, pid) {
|
|
|
2213
2213
|
// src/process-group.ts
|
|
2214
2214
|
var GRACEFUL_TIMEOUT_MS = 3e3;
|
|
2215
2215
|
var FORCED_EXIT_TIMEOUT_MS = 1e3;
|
|
2216
|
+
var INSPECTION_TIMEOUT_MS = 1e4;
|
|
2216
2217
|
var FREEZE_GUARD_NAME = "process-freeze-guard";
|
|
2217
|
-
function listProcessChildren(parents, timeoutMs =
|
|
2218
|
+
function listProcessChildren(parents, timeoutMs = 1e4) {
|
|
2218
2219
|
if (parents.some((pid) => !Number.isInteger(pid) || pid <= 1))
|
|
2219
2220
|
throw new Error("process inspection requires valid parent pids");
|
|
2220
2221
|
if (parents.length === 0) return [];
|
|
@@ -2424,7 +2425,7 @@ async function terminateProcessGroup(child, signal = "SIGTERM", gracefulTimeoutM
|
|
|
2424
2425
|
try {
|
|
2425
2426
|
signalProcessGroup(child, "SIGSTOP");
|
|
2426
2427
|
let parents = [child.pid];
|
|
2427
|
-
const inspectionDeadline = Date.now() +
|
|
2428
|
+
const inspectionDeadline = Date.now() + INSPECTION_TIMEOUT_MS;
|
|
2428
2429
|
while (parents.length > 0) {
|
|
2429
2430
|
const remaining = inspectionDeadline - Date.now();
|
|
2430
2431
|
if (remaining <= 0) {
|
|
@@ -5769,6 +5770,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
5769
5770
|
const eagerFiles = [];
|
|
5770
5771
|
const lazyBuildObjects = /* @__PURE__ */ new Map();
|
|
5771
5772
|
const extraArchiveObjs = [];
|
|
5773
|
+
const objectBytes = /* @__PURE__ */ new Map();
|
|
5772
5774
|
let inStartLib = false;
|
|
5773
5775
|
let swiftrtOrigPath = "";
|
|
5774
5776
|
for (const t of tokens) {
|
|
@@ -5815,7 +5817,9 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
5815
5817
|
} else if (!inStartLib && t.endsWith(".a") && !t.endsWith("libclang_rt.builtins-wasm64.a") && fs4.existsSync(t)) {
|
|
5816
5818
|
const members = readArMembers(new Uint8Array(fs4.readFileSync(t)));
|
|
5817
5819
|
for (const m of members) {
|
|
5818
|
-
|
|
5820
|
+
const object3 = parseWasmObjectBytes(`${t}(${m.name})`, m.bytes, false);
|
|
5821
|
+
extraArchiveObjs.push(object3);
|
|
5822
|
+
objectBytes.set(object3, Buffer.from(m.bytes));
|
|
5819
5823
|
}
|
|
5820
5824
|
}
|
|
5821
5825
|
}
|
|
@@ -6186,7 +6190,6 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
6186
6190
|
"$s10Foundation16NSSortDescriptorC7keyPath9ascendingACs03KeyE0Cyxq_G_SbtcSLR_r0_lufC",
|
|
6187
6191
|
"$s10Foundation16NSSortDescriptorC7keyPath9ascendingACs03KeyE0Cyxq_G_SbtcSLR_r0_lufc"
|
|
6188
6192
|
]);
|
|
6189
|
-
const objectBytes = /* @__PURE__ */ new Map();
|
|
6190
6193
|
const keepObjCClassesNamedInSegment = (obj, segIdx) => {
|
|
6191
6194
|
const range = obj.segPayloadRanges[segIdx];
|
|
6192
6195
|
if (!range) return;
|
|
@@ -9850,9 +9853,10 @@ function sourceGuestClangLinkOptions(options) {
|
|
|
9850
9853
|
if (command.tool !== "clang" || compiler !== realpathSync2(path15.join(options.toolchainBin, "clang")) && compiler !== realpathSync2(path15.join(options.buildDirectory, CLANG_TARGET_MODULE_WRAPPER)))
|
|
9851
9854
|
throw new Error(`unsupported source object producer ${file}`);
|
|
9852
9855
|
const args = command.args.slice(1).filter((arg) => arg !== "-c");
|
|
9856
|
+
const targetBuild = path15.relative(options.buildDirectory, file).split(path15.sep).findLast((part) => part !== ".build" && part.endsWith(".build"));
|
|
9853
9857
|
const outputDirectory = path15.join(
|
|
9854
9858
|
options.directory,
|
|
9855
|
-
path15.basename(path15.dirname(file))
|
|
9859
|
+
targetBuild ?? path15.basename(path15.dirname(file))
|
|
9856
9860
|
);
|
|
9857
9861
|
mkdirSync2(outputDirectory, { recursive: true });
|
|
9858
9862
|
const output = path15.join(outputDirectory, `clang-link-${index}.ll`);
|
|
@@ -13102,7 +13106,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
13102
13106
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
13103
13107
|
var MULTI_MANIFEST_VERSION = 68;
|
|
13104
13108
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
13105
|
-
var compilerSourceDigest = true ? "
|
|
13109
|
+
var compilerSourceDigest = true ? "4a1be1d1296381c7090b5b2b704a7d2bebba03ceaa580613acd0f2c39c31ed4c" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
13106
13110
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
13107
13111
|
const hash = createHash13("sha256");
|
|
13108
13112
|
hash.update(`swift-compile
|
|
@@ -16281,15 +16285,29 @@ module ${moduleName}.Swift {
|
|
|
16281
16285
|
[
|
|
16282
16286
|
"#!/bin/sh",
|
|
16283
16287
|
"name=",
|
|
16288
|
+
"explicit=",
|
|
16284
16289
|
"prev=",
|
|
16285
16290
|
'for arg in "$@"; do',
|
|
16286
|
-
|
|
16291
|
+
" case $arg in -fmodule-name=*) explicit=1 ;; esac",
|
|
16292
|
+
' if [ "$prev" = -o ]; then',
|
|
16293
|
+
" case $arg in */*) dir=${arg%/*} ;; *) dir= ;; esac",
|
|
16294
|
+
' while [ -n "$dir" ] && [ "$dir" != / ] && [ "$dir" != . ]; do',
|
|
16295
|
+
" base=${dir##*/}",
|
|
16296
|
+
" case $base in",
|
|
16297
|
+
" .build) break ;;",
|
|
16298
|
+
" *.build) name=${base%.build}; break ;;",
|
|
16299
|
+
" esac",
|
|
16300
|
+
" next=${dir%/*}",
|
|
16301
|
+
' [ "$next" = "$dir" ] && break',
|
|
16302
|
+
" dir=$next",
|
|
16303
|
+
" done",
|
|
16304
|
+
" fi",
|
|
16287
16305
|
" prev=$arg",
|
|
16288
16306
|
"done",
|
|
16289
|
-
"
|
|
16290
|
-
`
|
|
16291
|
-
|
|
16292
|
-
"
|
|
16307
|
+
'if [ -n "$name" ] && [ -z "$explicit" ]; then',
|
|
16308
|
+
` exec '${path27.join(nativeToolchain(), "clang")}' "-fmodule-name=$name" "$@"`,
|
|
16309
|
+
"fi",
|
|
16310
|
+
`exec '${path27.join(nativeToolchain(), "clang")}' "$@"`,
|
|
16293
16311
|
""
|
|
16294
16312
|
].join("\n")
|
|
16295
16313
|
);
|
|
@@ -16756,7 +16774,7 @@ function frameworkLinkClosure(scratch2, roots) {
|
|
|
16756
16774
|
const deps = /* @__PURE__ */ new Set();
|
|
16757
16775
|
for (const file of paths) {
|
|
16758
16776
|
const module = /\/Modules\/([^/]+)\.swiftmodule$/.exec(file);
|
|
16759
|
-
const object3 = /\/([^/]+)\.build
|
|
16777
|
+
const object3 = /\/release\/([^/]+)\.build\/.+\.o$/.exec(file);
|
|
16760
16778
|
if (module) deps.add(module[1]);
|
|
16761
16779
|
else if (object3 && object3[1] !== pending.name) deps.add(object3[1]);
|
|
16762
16780
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2250 | (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.2250 | (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.2250 | (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.2250 | (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;
|