peachsim 0.1.2423 → 0.1.2426
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/outbound-endpoints.ts +138 -23
- 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 +122 -29
- 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 +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +121 -28
- 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 +122 -29
- package/dist-lib/host/fetch-proxy-handler.cjs +3 -3
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +24 -9
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +22 -7
- 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 +24 -9
- 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 +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +140 -40
- package/dist-lib/swift-compile.cjs +87 -15
- package/dist-lib/swift-compile.mjs +87 -15
- 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 +97 -19
- package/dist-lib/vite.cjs +24 -9
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/svg-native.d.ts +60 -0
- package/dist-types/packages/peach-globals/src/lockstepCaptureBridgeContract.d.ts +1 -0
- package/kotlin/README.md +4 -3
- package/kotlin/sdk.tar.gz +0 -0
- package/kotlin/toolchain.json +2 -2
- package/package.json +1 -1
- package/src/native-static-libraries.ts +2 -1
- package/src/swift-compile.ts +1 -0
- package/src/swift-guest-compile.ts +2 -0
- package/src/swift-guest-image-ledger.ts +37 -2
- package/src/swift-guest-source-inputs.ts +45 -6
- package/src/swift-standin-builtin-behavior.ts +3 -0
- package/src/swift-standin-emit.ts +10 -1
- package/src/visit-parsed-program.ts +21 -6
package/dist-lib/config.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2426 | (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.2426 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2426 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2426 | (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;
|
|
@@ -10310,7 +10310,10 @@ function emitSwiftStandin(sourceGraphs, options) {
|
|
|
10310
10310
|
/@(\w+)(?:\([^)]*\))?\s*/g,
|
|
10311
10311
|
(attr, name3) => typeByPath.has(name3) ? "" : attr
|
|
10312
10312
|
) : spelledAttrs;
|
|
10313
|
-
const
|
|
10313
|
+
const selector = context.inClass && !options.inert && member.kind.identifier === "swift.type.method" && !/\basync\b/.test(rest) ? /^c:objc\(cs\)\w+\(cm\)([A-Za-z_][A-Za-z_0-9:]*)$/.exec(
|
|
10314
|
+
member.identifier.precise
|
|
10315
|
+
)?.[1] : void 0;
|
|
10316
|
+
const attrs = options.unobjc?.has(path85) ? wrapped.replace(/@objc(?:\([^)]*\))?\s*/g, "") : `${wrapped}${selector ? `@objc(${selector}) ` : ""}`;
|
|
10314
10317
|
const modifiers = /^((?:(?:required|final|override|convenience|unowned(?:\(\w+\))?|weak|lazy|nonisolated|mutating|nonmutating) )*)(.*)$/s.exec(
|
|
10315
10318
|
rest
|
|
10316
10319
|
);
|
|
@@ -25791,7 +25794,8 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
25791
25794
|
if (sectionName === "linking") {
|
|
25792
25795
|
const version2 = number3();
|
|
25793
25796
|
if (version2 !== 2) throw new Error("unsupported wasm linking version");
|
|
25794
|
-
const
|
|
25797
|
+
const subsections = [];
|
|
25798
|
+
let objcLoader;
|
|
25795
25799
|
while (offset < section.length) {
|
|
25796
25800
|
const kind = section[offset++];
|
|
25797
25801
|
const length = number3();
|
|
@@ -25854,6 +25858,9 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
25854
25858
|
}
|
|
25855
25859
|
} else if (symbolKind === 3) number3();
|
|
25856
25860
|
else throw new Error("unsupported wasm symbol kind");
|
|
25861
|
+
if (name3 === OBJC_LOAD_FUNCTION && symbolKind === 0 && !(flags & 16)) {
|
|
25862
|
+
objcLoader = i;
|
|
25863
|
+
}
|
|
25857
25864
|
const alias = names.get(name3);
|
|
25858
25865
|
if (flags & 16 && symbolKind === 1 && alias) usedSymbols.add(name3);
|
|
25859
25866
|
if ((name3 === "dlsym" && usesDlsym || name3 === "dlerror" && usesDlerror) && flags & 16 && flags & 64 && symbolKind === 0) {
|
|
@@ -25903,7 +25910,36 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
25903
25910
|
content = Buffer.concat([...entries, ...extraEntries]);
|
|
25904
25911
|
}
|
|
25905
25912
|
offset = stop;
|
|
25906
|
-
|
|
25913
|
+
subsections.push({ kind, content });
|
|
25914
|
+
}
|
|
25915
|
+
const parts = [encodedString(sectionName), encodeNumber(version2)];
|
|
25916
|
+
for (const subsection of subsections) {
|
|
25917
|
+
let content = subsection.content;
|
|
25918
|
+
if (subsection.kind === 6 && objcLoader !== void 0) {
|
|
25919
|
+
const [count, entriesStart] = readNumber(content, 0);
|
|
25920
|
+
const entries = [content.subarray(0, entriesStart)];
|
|
25921
|
+
let entryStart = entriesStart;
|
|
25922
|
+
for (let i = 0; i < count; i++) {
|
|
25923
|
+
const [, symbolStart] = readNumber(content, entryStart);
|
|
25924
|
+
const [symbol2, entryEnd] = readNumber(content, symbolStart);
|
|
25925
|
+
if (symbol2 === objcLoader) entries.push(encodeNumber(1));
|
|
25926
|
+
entries.push(
|
|
25927
|
+
content.subarray(
|
|
25928
|
+
symbol2 === objcLoader ? symbolStart : entryStart,
|
|
25929
|
+
entryEnd
|
|
25930
|
+
)
|
|
25931
|
+
);
|
|
25932
|
+
entryStart = entryEnd;
|
|
25933
|
+
}
|
|
25934
|
+
if (entryStart !== content.length)
|
|
25935
|
+
throw new Error("invalid init functions subsection");
|
|
25936
|
+
content = Buffer.concat(entries);
|
|
25937
|
+
}
|
|
25938
|
+
parts.push(
|
|
25939
|
+
Buffer.from([subsection.kind]),
|
|
25940
|
+
encodeNumber(content.length),
|
|
25941
|
+
content
|
|
25942
|
+
);
|
|
25907
25943
|
}
|
|
25908
25944
|
section = Buffer.concat(parts);
|
|
25909
25945
|
}
|
|
@@ -26197,11 +26233,12 @@ function createGuestImageLedger(input) {
|
|
|
26197
26233
|
llvmIR: ir.join("\n") + "\n"
|
|
26198
26234
|
};
|
|
26199
26235
|
}
|
|
26200
|
-
var OBJC_INIT_RECORD;
|
|
26236
|
+
var OBJC_INIT_RECORD, OBJC_LOAD_FUNCTION;
|
|
26201
26237
|
var init_swift_guest_image_ledger = __esm({
|
|
26202
26238
|
"src/swift-guest-image-ledger.ts"() {
|
|
26203
26239
|
"use strict";
|
|
26204
26240
|
OBJC_INIT_RECORD = ".objc_init";
|
|
26241
|
+
OBJC_LOAD_FUNCTION = ".objcv2_load_function";
|
|
26205
26242
|
}
|
|
26206
26243
|
});
|
|
26207
26244
|
|
|
@@ -28858,7 +28895,7 @@ function sourceGuestClangLinkOptions(options) {
|
|
|
28858
28895
|
commands.set(file, { tool, args: value });
|
|
28859
28896
|
}
|
|
28860
28897
|
}
|
|
28861
|
-
const
|
|
28898
|
+
const replays = [];
|
|
28862
28899
|
for (const [index, file] of [...wanted].entries()) {
|
|
28863
28900
|
const command = commands.get(file);
|
|
28864
28901
|
if (!command) throw new Error(`missing source object producer ${file}`);
|
|
@@ -28884,16 +28921,33 @@ function sourceGuestClangLinkOptions(options) {
|
|
|
28884
28921
|
throw new Error(`missing clang ${flag} for ${file}`);
|
|
28885
28922
|
args[index2 + 1] = flag === "-o" ? output2 : `${output2}.d`;
|
|
28886
28923
|
}
|
|
28887
|
-
|
|
28888
|
-
|
|
28889
|
-
[
|
|
28890
|
-
|
|
28891
|
-
|
|
28924
|
+
replays.push({
|
|
28925
|
+
file,
|
|
28926
|
+
compiler: command.args[0],
|
|
28927
|
+
args: [...args, "-S", "-emit-llvm", "-Xclang", "-disable-llvm-passes"],
|
|
28928
|
+
output: output2
|
|
28929
|
+
});
|
|
28930
|
+
}
|
|
28931
|
+
const plan = import_node_path45.default.join(options.directory, "clang-link-replays.json");
|
|
28932
|
+
(0, import_node_fs48.writeFileSync)(
|
|
28933
|
+
plan,
|
|
28934
|
+
JSON.stringify(replays.map(({ compiler, args }) => [compiler, ...args]))
|
|
28935
|
+
);
|
|
28936
|
+
(0, import_node_child_process25.execFileSync)(process.execPath, ["-e", PARALLEL_REPLAY], {
|
|
28937
|
+
stdio: "inherit",
|
|
28938
|
+
env: {
|
|
28939
|
+
...process.env,
|
|
28940
|
+
PEACH_CLANG_REPLAYS: plan,
|
|
28941
|
+
PEACH_CLANG_JOBS: String(options.jobs)
|
|
28942
|
+
}
|
|
28943
|
+
});
|
|
28944
|
+
const result = /* @__PURE__ */ new Map();
|
|
28945
|
+
for (const { file, output: output2 } of replays) {
|
|
28892
28946
|
const flags = clangIrLinkOptions((0, import_node_fs48.readFileSync)(output2, "utf8"));
|
|
28893
|
-
for (let
|
|
28894
|
-
const flag = flags[
|
|
28947
|
+
for (let index = 0; index < flags.length; index++) {
|
|
28948
|
+
const flag = flags[index];
|
|
28895
28949
|
if (flag === "-framework" || flag === "-l" || flag === "--library") {
|
|
28896
|
-
const name3 = flags[++
|
|
28950
|
+
const name3 = flags[++index];
|
|
28897
28951
|
if (!name3 || name3.startsWith("-"))
|
|
28898
28952
|
throw new Error(`missing clang link name after ${flag}`);
|
|
28899
28953
|
} else if (!/^(-l.+|--library=.+)$/.test(flag)) {
|
|
@@ -29119,7 +29173,7 @@ function logicalGuestLinkOptions(args, identities, roots) {
|
|
|
29119
29173
|
}
|
|
29120
29174
|
return output2;
|
|
29121
29175
|
}
|
|
29122
|
-
var import_node_child_process25, import_node_crypto24, import_node_fs48, import_node_path45, CLANG_TARGET_MODULE_WRAPPER;
|
|
29176
|
+
var import_node_child_process25, import_node_crypto24, import_node_fs48, import_node_path45, CLANG_TARGET_MODULE_WRAPPER, PARALLEL_REPLAY;
|
|
29123
29177
|
var init_swift_guest_source_inputs = __esm({
|
|
29124
29178
|
"src/swift-guest-source-inputs.ts"() {
|
|
29125
29179
|
"use strict";
|
|
@@ -29130,6 +29184,25 @@ var init_swift_guest_source_inputs = __esm({
|
|
|
29130
29184
|
init_swift_guest_source_plan();
|
|
29131
29185
|
init_swift_runtime_products();
|
|
29132
29186
|
CLANG_TARGET_MODULE_WRAPPER = ".peach-clang";
|
|
29187
|
+
PARALLEL_REPLAY = `
|
|
29188
|
+
const { spawn } = require('node:child_process')
|
|
29189
|
+
const commands = JSON.parse(require('node:fs').readFileSync(process.env.PEACH_CLANG_REPLAYS, 'utf8'))
|
|
29190
|
+
let next = 0
|
|
29191
|
+
const run = () => {
|
|
29192
|
+
if (next >= commands.length) return Promise.resolve()
|
|
29193
|
+
const [file, ...args] = commands[next++]
|
|
29194
|
+
return new Promise((resolve, reject) => {
|
|
29195
|
+
const child = spawn(file, args, { stdio: 'inherit' })
|
|
29196
|
+
child.on('error', reject)
|
|
29197
|
+
child.on('close', (code) => (code === 0 ? resolve() : reject(new Error('clang link replay failed: ' + file))))
|
|
29198
|
+
}).then(run)
|
|
29199
|
+
}
|
|
29200
|
+
const jobs = Math.max(1, Number(process.env.PEACH_CLANG_JOBS) || 1)
|
|
29201
|
+
Promise.all(Array.from({ length: jobs }, run)).catch((error) => {
|
|
29202
|
+
console.error(error.message)
|
|
29203
|
+
process.exit(1)
|
|
29204
|
+
})
|
|
29205
|
+
`;
|
|
29133
29206
|
}
|
|
29134
29207
|
});
|
|
29135
29208
|
|
|
@@ -29704,7 +29777,8 @@ async function compileGuestLink(options) {
|
|
|
29704
29777
|
directory: directory2,
|
|
29705
29778
|
toolchainBin: options.toolchainBin,
|
|
29706
29779
|
swiftCompiler: options.swiftCompiler,
|
|
29707
|
-
objects: selectedSource.map((artifact) => artifact.path)
|
|
29780
|
+
objects: selectedSource.map((artifact) => artifact.path),
|
|
29781
|
+
jobs: options.jobs
|
|
29708
29782
|
});
|
|
29709
29783
|
const links = sourceGuestRuntimeLinks({
|
|
29710
29784
|
toolchainBin: options.toolchainBin,
|
|
@@ -36340,7 +36414,8 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
36340
36414
|
generatedOwners: preparation.generatedOwners,
|
|
36341
36415
|
output: output2,
|
|
36342
36416
|
optimized,
|
|
36343
|
-
optimize: input.optimize === true
|
|
36417
|
+
optimize: input.optimize === true,
|
|
36418
|
+
jobs: swiftBuildJobs()
|
|
36344
36419
|
});
|
|
36345
36420
|
else
|
|
36346
36421
|
await lowerWasm(output2, optimized, { optimize: input.optimize === true });
|
|
@@ -36610,7 +36685,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
|
|
|
36610
36685
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
36611
36686
|
MULTI_MANIFEST_VERSION = 72;
|
|
36612
36687
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
36613
|
-
compilerSourceDigest = true ? "
|
|
36688
|
+
compilerSourceDigest = true ? "714dbca336e958240697a0238ee5b0640b2b212c34df4843e82d0c1abe3e8c43" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
36614
36689
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
36615
36690
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
36616
36691
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -40873,7 +40948,7 @@ var init_swift_standin_digest = __esm({
|
|
|
40873
40948
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
40874
40949
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
40875
40950
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
40876
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
40951
|
+
STANDIN_SOURCE_DIGEST = true ? "76ba6566c9c2d1f2324dcae610243363f830f57e3753da053da53d749835e23a" : standinSourceDigest();
|
|
40877
40952
|
}
|
|
40878
40953
|
});
|
|
40879
40954
|
|
|
@@ -41332,11 +41407,11 @@ function nativeStaticLibrary(file, recipe2, moduleRoot) {
|
|
|
41332
41407
|
return "runtime" in recipe2 ? rustStaticLibrary(archive, moduleRoot) : archive;
|
|
41333
41408
|
}
|
|
41334
41409
|
function isRustSymbol(name3, demangled) {
|
|
41335
|
-
return (name3.startsWith("_R") || /^_ZN.*17h[0-9a-f]{16}E$/.test(name3)) && demangled !== name3 || name3 === "rust_eh_personality" || name3 === "__getrandom_v03_custom";
|
|
41410
|
+
return (name3.startsWith("_R") || /^_ZN.*17h[0-9a-f]{16}E$/.test(name3)) && demangled !== name3 || name3 === "rust_eh_personality" || name3 === "__getrandom_custom" || name3 === "__getrandom_v03_custom";
|
|
41336
41411
|
}
|
|
41337
41412
|
function rustStaticLibrary(file, moduleRoot) {
|
|
41338
41413
|
const toolchain = swiftModuleToolchain(moduleRoot);
|
|
41339
|
-
const key2 = (0, import_node_crypto40.createHash)("sha256").update("rust-c-abi-
|
|
41414
|
+
const key2 = (0, import_node_crypto40.createHash)("sha256").update("rust-c-abi-v3\0").update(toolchain.release).update("\0").update(import_node_fs74.default.readFileSync(file)).digest("hex");
|
|
41340
41415
|
const directory2 = import_node_path73.default.join(cacheDir(), "native-archives", key2);
|
|
41341
41416
|
const archive = import_node_path73.default.join(directory2, "library.a");
|
|
41342
41417
|
if (import_node_fs74.default.existsSync(archive)) return archive;
|
|
@@ -43169,6 +43244,9 @@ var init_swift_standin_builtin_behavior = __esm({
|
|
|
43169
43244
|
"src/swift-standin-builtin-behavior.ts"() {
|
|
43170
43245
|
"use strict";
|
|
43171
43246
|
BUILTIN_STANDIN_BEHAVIOR = {
|
|
43247
|
+
FirebaseAnalytics: {
|
|
43248
|
+
"Analytics.logEvent(_:parameters:)": { body: "" }
|
|
43249
|
+
},
|
|
43172
43250
|
GoogleCast: {
|
|
43173
43251
|
kGCKCastDeviceCategory: { body: 'return "com.google.cast.CastDevice"' },
|
|
43174
43252
|
kGCKDefaultMediaReceiverApplicationID: { body: 'return "CC1AD845"' },
|
|
@@ -58331,19 +58409,34 @@ init_public_brand();
|
|
|
58331
58409
|
var import_oxc_parser = require("oxc-parser");
|
|
58332
58410
|
init_is_record();
|
|
58333
58411
|
function visitParsedProgram(program, visitor) {
|
|
58412
|
+
const enterByType = /* @__PURE__ */ new Map();
|
|
58413
|
+
const exitByType = /* @__PURE__ */ new Map();
|
|
58414
|
+
for (const key2 of Object.keys(visitor)) {
|
|
58415
|
+
const handler = Reflect.get(visitor, key2);
|
|
58416
|
+
if (typeof handler !== "function") continue;
|
|
58417
|
+
const invoke = (node) => {
|
|
58418
|
+
handler(node);
|
|
58419
|
+
};
|
|
58420
|
+
if (key2.endsWith(":exit")) exitByType.set(key2.slice(0, -5), invoke);
|
|
58421
|
+
else enterByType.set(key2, invoke);
|
|
58422
|
+
}
|
|
58423
|
+
if (enterByType.size === 0 && exitByType.size === 0) return;
|
|
58424
|
+
const hasExit = exitByType.size > 0;
|
|
58334
58425
|
function visit3(value) {
|
|
58335
58426
|
if (Array.isArray(value)) {
|
|
58336
|
-
for (
|
|
58427
|
+
for (let i = 0; i < value.length; i++) visit3(value[i]);
|
|
58337
58428
|
return;
|
|
58338
58429
|
}
|
|
58339
58430
|
if (!isRecord(value) || typeof value.type !== "string") return;
|
|
58340
58431
|
const keys = import_oxc_parser.visitorKeys[value.type];
|
|
58341
58432
|
if (!keys) return;
|
|
58342
|
-
const enter =
|
|
58343
|
-
if (
|
|
58344
|
-
for (
|
|
58345
|
-
|
|
58346
|
-
|
|
58433
|
+
const enter = enterByType.get(value.type);
|
|
58434
|
+
if (enter) enter(value);
|
|
58435
|
+
for (let i = 0; i < keys.length; i++) visit3(value[keys[i]]);
|
|
58436
|
+
if (hasExit) {
|
|
58437
|
+
const exit = exitByType.get(value.type);
|
|
58438
|
+
if (exit) exit(value);
|
|
58439
|
+
}
|
|
58347
58440
|
}
|
|
58348
58441
|
visit3(program);
|
|
58349
58442
|
}
|
|
@@ -65055,7 +65148,7 @@ init_swift_native_pin();
|
|
|
65055
65148
|
init_xcode_project();
|
|
65056
65149
|
var EXPO_NATIVE_ENTRY_NAME = "ios";
|
|
65057
65150
|
function expoNativeCompilerDigestValue() {
|
|
65058
|
-
return true ? "
|
|
65151
|
+
return true ? "95d2f7fa52acb2c71a46d85b46df4e8307bc027d7bdcfed61fe9ce704175db4b" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
65059
65152
|
}
|
|
65060
65153
|
var IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
|
|
65061
65154
|
function readSources(value) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2426 | (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/home-paths.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2426 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2426 | (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;
|
|
@@ -11217,7 +11217,10 @@ function emitSwiftStandin(sourceGraphs, options) {
|
|
|
11217
11217
|
/@(\w+)(?:\([^)]*\))?\s*/g,
|
|
11218
11218
|
(attr, name3) => typeByPath.has(name3) ? "" : attr
|
|
11219
11219
|
) : spelledAttrs;
|
|
11220
|
-
const
|
|
11220
|
+
const selector = context.inClass && !options.inert && member.kind.identifier === "swift.type.method" && !/\basync\b/.test(rest) ? /^c:objc\(cs\)\w+\(cm\)([A-Za-z_][A-Za-z_0-9:]*)$/.exec(
|
|
11221
|
+
member.identifier.precise
|
|
11222
|
+
)?.[1] : void 0;
|
|
11223
|
+
const attrs = options.unobjc?.has(path124) ? wrapped.replace(/@objc(?:\([^)]*\))?\s*/g, "") : `${wrapped}${selector ? `@objc(${selector}) ` : ""}`;
|
|
11221
11224
|
const modifiers = /^((?:(?:required|final|override|convenience|unowned(?:\(\w+\))?|weak|lazy|nonisolated|mutating|nonmutating) )*)(.*)$/s.exec(
|
|
11222
11225
|
rest
|
|
11223
11226
|
);
|
|
@@ -36077,7 +36080,8 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
36077
36080
|
if (sectionName === "linking") {
|
|
36078
36081
|
const version2 = number4();
|
|
36079
36082
|
if (version2 !== 2) throw new Error("unsupported wasm linking version");
|
|
36080
|
-
const
|
|
36083
|
+
const subsections = [];
|
|
36084
|
+
let objcLoader;
|
|
36081
36085
|
while (offset < section.length) {
|
|
36082
36086
|
const kind = section[offset++];
|
|
36083
36087
|
const length = number4();
|
|
@@ -36140,6 +36144,9 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
36140
36144
|
}
|
|
36141
36145
|
} else if (symbolKind === 3) number4();
|
|
36142
36146
|
else throw new Error("unsupported wasm symbol kind");
|
|
36147
|
+
if (name3 === OBJC_LOAD_FUNCTION && symbolKind === 0 && !(flags & 16)) {
|
|
36148
|
+
objcLoader = i;
|
|
36149
|
+
}
|
|
36143
36150
|
const alias = names.get(name3);
|
|
36144
36151
|
if (flags & 16 && symbolKind === 1 && alias) usedSymbols.add(name3);
|
|
36145
36152
|
if ((name3 === "dlsym" && usesDlsym || name3 === "dlerror" && usesDlerror) && flags & 16 && flags & 64 && symbolKind === 0) {
|
|
@@ -36189,7 +36196,36 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
36189
36196
|
content = Buffer.concat([...entries, ...extraEntries]);
|
|
36190
36197
|
}
|
|
36191
36198
|
offset = stop;
|
|
36192
|
-
|
|
36199
|
+
subsections.push({ kind, content });
|
|
36200
|
+
}
|
|
36201
|
+
const parts = [encodedString(sectionName), encodeNumber(version2)];
|
|
36202
|
+
for (const subsection of subsections) {
|
|
36203
|
+
let content = subsection.content;
|
|
36204
|
+
if (subsection.kind === 6 && objcLoader !== void 0) {
|
|
36205
|
+
const [count, entriesStart] = readNumber(content, 0);
|
|
36206
|
+
const entries = [content.subarray(0, entriesStart)];
|
|
36207
|
+
let entryStart = entriesStart;
|
|
36208
|
+
for (let i = 0; i < count; i++) {
|
|
36209
|
+
const [, symbolStart] = readNumber(content, entryStart);
|
|
36210
|
+
const [symbol2, entryEnd] = readNumber(content, symbolStart);
|
|
36211
|
+
if (symbol2 === objcLoader) entries.push(encodeNumber(1));
|
|
36212
|
+
entries.push(
|
|
36213
|
+
content.subarray(
|
|
36214
|
+
symbol2 === objcLoader ? symbolStart : entryStart,
|
|
36215
|
+
entryEnd
|
|
36216
|
+
)
|
|
36217
|
+
);
|
|
36218
|
+
entryStart = entryEnd;
|
|
36219
|
+
}
|
|
36220
|
+
if (entryStart !== content.length)
|
|
36221
|
+
throw new Error("invalid init functions subsection");
|
|
36222
|
+
content = Buffer.concat(entries);
|
|
36223
|
+
}
|
|
36224
|
+
parts.push(
|
|
36225
|
+
Buffer.from([subsection.kind]),
|
|
36226
|
+
encodeNumber(content.length),
|
|
36227
|
+
content
|
|
36228
|
+
);
|
|
36193
36229
|
}
|
|
36194
36230
|
section = Buffer.concat(parts);
|
|
36195
36231
|
}
|
|
@@ -36483,11 +36519,12 @@ function createGuestImageLedger(input) {
|
|
|
36483
36519
|
llvmIR: ir.join("\n") + "\n"
|
|
36484
36520
|
};
|
|
36485
36521
|
}
|
|
36486
|
-
var OBJC_INIT_RECORD;
|
|
36522
|
+
var OBJC_INIT_RECORD, OBJC_LOAD_FUNCTION;
|
|
36487
36523
|
var init_swift_guest_image_ledger = __esm({
|
|
36488
36524
|
"src/swift-guest-image-ledger.ts"() {
|
|
36489
36525
|
"use strict";
|
|
36490
36526
|
OBJC_INIT_RECORD = ".objc_init";
|
|
36527
|
+
OBJC_LOAD_FUNCTION = ".objcv2_load_function";
|
|
36491
36528
|
}
|
|
36492
36529
|
});
|
|
36493
36530
|
|
|
@@ -39144,7 +39181,7 @@ function sourceGuestClangLinkOptions(options) {
|
|
|
39144
39181
|
commands.set(file, { tool, args: value });
|
|
39145
39182
|
}
|
|
39146
39183
|
}
|
|
39147
|
-
const
|
|
39184
|
+
const replays = [];
|
|
39148
39185
|
for (const [index, file] of [...wanted].entries()) {
|
|
39149
39186
|
const command = commands.get(file);
|
|
39150
39187
|
if (!command) throw new Error(`missing source object producer ${file}`);
|
|
@@ -39170,16 +39207,33 @@ function sourceGuestClangLinkOptions(options) {
|
|
|
39170
39207
|
throw new Error(`missing clang ${flag} for ${file}`);
|
|
39171
39208
|
args[index2 + 1] = flag === "-o" ? output2 : `${output2}.d`;
|
|
39172
39209
|
}
|
|
39173
|
-
|
|
39174
|
-
|
|
39175
|
-
[
|
|
39176
|
-
|
|
39177
|
-
|
|
39210
|
+
replays.push({
|
|
39211
|
+
file,
|
|
39212
|
+
compiler: command.args[0],
|
|
39213
|
+
args: [...args, "-S", "-emit-llvm", "-Xclang", "-disable-llvm-passes"],
|
|
39214
|
+
output: output2
|
|
39215
|
+
});
|
|
39216
|
+
}
|
|
39217
|
+
const plan = import_node_path49.default.join(options.directory, "clang-link-replays.json");
|
|
39218
|
+
(0, import_node_fs51.writeFileSync)(
|
|
39219
|
+
plan,
|
|
39220
|
+
JSON.stringify(replays.map(({ compiler, args }) => [compiler, ...args]))
|
|
39221
|
+
);
|
|
39222
|
+
(0, import_node_child_process26.execFileSync)(process.execPath, ["-e", PARALLEL_REPLAY], {
|
|
39223
|
+
stdio: "inherit",
|
|
39224
|
+
env: {
|
|
39225
|
+
...process.env,
|
|
39226
|
+
PEACH_CLANG_REPLAYS: plan,
|
|
39227
|
+
PEACH_CLANG_JOBS: String(options.jobs)
|
|
39228
|
+
}
|
|
39229
|
+
});
|
|
39230
|
+
const result = /* @__PURE__ */ new Map();
|
|
39231
|
+
for (const { file, output: output2 } of replays) {
|
|
39178
39232
|
const flags = clangIrLinkOptions((0, import_node_fs51.readFileSync)(output2, "utf8"));
|
|
39179
|
-
for (let
|
|
39180
|
-
const flag = flags[
|
|
39233
|
+
for (let index = 0; index < flags.length; index++) {
|
|
39234
|
+
const flag = flags[index];
|
|
39181
39235
|
if (flag === "-framework" || flag === "-l" || flag === "--library") {
|
|
39182
|
-
const name3 = flags[++
|
|
39236
|
+
const name3 = flags[++index];
|
|
39183
39237
|
if (!name3 || name3.startsWith("-"))
|
|
39184
39238
|
throw new Error(`missing clang link name after ${flag}`);
|
|
39185
39239
|
} else if (!/^(-l.+|--library=.+)$/.test(flag)) {
|
|
@@ -39405,7 +39459,7 @@ function logicalGuestLinkOptions(args, identities, roots) {
|
|
|
39405
39459
|
}
|
|
39406
39460
|
return output2;
|
|
39407
39461
|
}
|
|
39408
|
-
var import_node_child_process26, import_node_crypto26, import_node_fs51, import_node_path49, CLANG_TARGET_MODULE_WRAPPER;
|
|
39462
|
+
var import_node_child_process26, import_node_crypto26, import_node_fs51, import_node_path49, CLANG_TARGET_MODULE_WRAPPER, PARALLEL_REPLAY;
|
|
39409
39463
|
var init_swift_guest_source_inputs = __esm({
|
|
39410
39464
|
"src/swift-guest-source-inputs.ts"() {
|
|
39411
39465
|
"use strict";
|
|
@@ -39416,6 +39470,25 @@ var init_swift_guest_source_inputs = __esm({
|
|
|
39416
39470
|
init_swift_guest_source_plan();
|
|
39417
39471
|
init_swift_runtime_products();
|
|
39418
39472
|
CLANG_TARGET_MODULE_WRAPPER = ".peach-clang";
|
|
39473
|
+
PARALLEL_REPLAY = `
|
|
39474
|
+
const { spawn } = require('node:child_process')
|
|
39475
|
+
const commands = JSON.parse(require('node:fs').readFileSync(process.env.PEACH_CLANG_REPLAYS, 'utf8'))
|
|
39476
|
+
let next = 0
|
|
39477
|
+
const run = () => {
|
|
39478
|
+
if (next >= commands.length) return Promise.resolve()
|
|
39479
|
+
const [file, ...args] = commands[next++]
|
|
39480
|
+
return new Promise((resolve, reject) => {
|
|
39481
|
+
const child = spawn(file, args, { stdio: 'inherit' })
|
|
39482
|
+
child.on('error', reject)
|
|
39483
|
+
child.on('close', (code) => (code === 0 ? resolve() : reject(new Error('clang link replay failed: ' + file))))
|
|
39484
|
+
}).then(run)
|
|
39485
|
+
}
|
|
39486
|
+
const jobs = Math.max(1, Number(process.env.PEACH_CLANG_JOBS) || 1)
|
|
39487
|
+
Promise.all(Array.from({ length: jobs }, run)).catch((error) => {
|
|
39488
|
+
console.error(error.message)
|
|
39489
|
+
process.exit(1)
|
|
39490
|
+
})
|
|
39491
|
+
`;
|
|
39419
39492
|
}
|
|
39420
39493
|
});
|
|
39421
39494
|
|
|
@@ -39990,7 +40063,8 @@ async function compileGuestLink(options) {
|
|
|
39990
40063
|
directory: directory2,
|
|
39991
40064
|
toolchainBin: options.toolchainBin,
|
|
39992
40065
|
swiftCompiler: options.swiftCompiler,
|
|
39993
|
-
objects: selectedSource.map((artifact) => artifact.path)
|
|
40066
|
+
objects: selectedSource.map((artifact) => artifact.path),
|
|
40067
|
+
jobs: options.jobs
|
|
39994
40068
|
});
|
|
39995
40069
|
const links = sourceGuestRuntimeLinks({
|
|
39996
40070
|
toolchainBin: options.toolchainBin,
|
|
@@ -46660,7 +46734,8 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
46660
46734
|
generatedOwners: preparation.generatedOwners,
|
|
46661
46735
|
output: output2,
|
|
46662
46736
|
optimized,
|
|
46663
|
-
optimize: input.optimize === true
|
|
46737
|
+
optimize: input.optimize === true,
|
|
46738
|
+
jobs: swiftBuildJobs()
|
|
46664
46739
|
});
|
|
46665
46740
|
else
|
|
46666
46741
|
await lowerWasm(output2, optimized, { optimize: input.optimize === true });
|
|
@@ -46930,7 +47005,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
|
|
|
46930
47005
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
46931
47006
|
MULTI_MANIFEST_VERSION = 72;
|
|
46932
47007
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
46933
|
-
compilerSourceDigest = true ? "
|
|
47008
|
+
compilerSourceDigest = true ? "714dbca336e958240697a0238ee5b0640b2b212c34df4843e82d0c1abe3e8c43" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
46934
47009
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
46935
47010
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
46936
47011
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -51537,7 +51612,7 @@ var init_swift_standin_digest = __esm({
|
|
|
51537
51612
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
51538
51613
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
51539
51614
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
51540
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
51615
|
+
STANDIN_SOURCE_DIGEST = true ? "76ba6566c9c2d1f2324dcae610243363f830f57e3753da053da53d749835e23a" : standinSourceDigest();
|
|
51541
51616
|
}
|
|
51542
51617
|
});
|
|
51543
51618
|
|
|
@@ -52064,11 +52139,11 @@ function nativeStaticLibrary(file, recipe2, moduleRoot) {
|
|
|
52064
52139
|
return "runtime" in recipe2 ? rustStaticLibrary(archive, moduleRoot) : archive;
|
|
52065
52140
|
}
|
|
52066
52141
|
function isRustSymbol(name3, demangled) {
|
|
52067
|
-
return (name3.startsWith("_R") || /^_ZN.*17h[0-9a-f]{16}E$/.test(name3)) && demangled !== name3 || name3 === "rust_eh_personality" || name3 === "__getrandom_v03_custom";
|
|
52142
|
+
return (name3.startsWith("_R") || /^_ZN.*17h[0-9a-f]{16}E$/.test(name3)) && demangled !== name3 || name3 === "rust_eh_personality" || name3 === "__getrandom_custom" || name3 === "__getrandom_v03_custom";
|
|
52068
52143
|
}
|
|
52069
52144
|
function rustStaticLibrary(file, moduleRoot) {
|
|
52070
52145
|
const toolchain = swiftModuleToolchain(moduleRoot);
|
|
52071
|
-
const key2 = (0, import_node_crypto43.createHash)("sha256").update("rust-c-abi-
|
|
52146
|
+
const key2 = (0, import_node_crypto43.createHash)("sha256").update("rust-c-abi-v3\0").update(toolchain.release).update("\0").update(import_node_fs78.default.readFileSync(file)).digest("hex");
|
|
52072
52147
|
const directory2 = import_node_path78.default.join(cacheDir(), "native-archives", key2);
|
|
52073
52148
|
const archive = import_node_path78.default.join(directory2, "library.a");
|
|
52074
52149
|
if (import_node_fs78.default.existsSync(archive)) return archive;
|
|
@@ -53901,6 +53976,9 @@ var init_swift_standin_builtin_behavior = __esm({
|
|
|
53901
53976
|
"src/swift-standin-builtin-behavior.ts"() {
|
|
53902
53977
|
"use strict";
|
|
53903
53978
|
BUILTIN_STANDIN_BEHAVIOR = {
|
|
53979
|
+
FirebaseAnalytics: {
|
|
53980
|
+
"Analytics.logEvent(_:parameters:)": { body: "" }
|
|
53981
|
+
},
|
|
53904
53982
|
GoogleCast: {
|
|
53905
53983
|
kGCKCastDeviceCategory: { body: 'return "com.google.cast.CastDevice"' },
|
|
53906
53984
|
kGCKDefaultMediaReceiverApplicationID: { body: 'return "CC1AD845"' },
|
|
@@ -69837,7 +69915,7 @@ var init_nitro_superset = __esm({
|
|
|
69837
69915
|
init_nitroContract();
|
|
69838
69916
|
init_swift_standin_digest();
|
|
69839
69917
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
69840
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
69918
|
+
NITRO_COMPILER_DIGEST = true ? "8fdfc68d42fcc8dc68e86c44b43f11e69e48240a6cfcce40075612773e7133f4" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
69841
69919
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
69842
69920
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
69843
69921
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -76348,19 +76426,34 @@ init_public_brand();
|
|
|
76348
76426
|
var import_oxc_parser = require("oxc-parser");
|
|
76349
76427
|
init_is_record();
|
|
76350
76428
|
function visitParsedProgram(program, visitor) {
|
|
76429
|
+
const enterByType = /* @__PURE__ */ new Map();
|
|
76430
|
+
const exitByType = /* @__PURE__ */ new Map();
|
|
76431
|
+
for (const key2 of Object.keys(visitor)) {
|
|
76432
|
+
const handler = Reflect.get(visitor, key2);
|
|
76433
|
+
if (typeof handler !== "function") continue;
|
|
76434
|
+
const invoke = (node) => {
|
|
76435
|
+
handler(node);
|
|
76436
|
+
};
|
|
76437
|
+
if (key2.endsWith(":exit")) exitByType.set(key2.slice(0, -5), invoke);
|
|
76438
|
+
else enterByType.set(key2, invoke);
|
|
76439
|
+
}
|
|
76440
|
+
if (enterByType.size === 0 && exitByType.size === 0) return;
|
|
76441
|
+
const hasExit = exitByType.size > 0;
|
|
76351
76442
|
function visit3(value) {
|
|
76352
76443
|
if (Array.isArray(value)) {
|
|
76353
|
-
for (
|
|
76444
|
+
for (let i = 0; i < value.length; i++) visit3(value[i]);
|
|
76354
76445
|
return;
|
|
76355
76446
|
}
|
|
76356
76447
|
if (!isRecord(value) || typeof value.type !== "string") return;
|
|
76357
76448
|
const keys = import_oxc_parser.visitorKeys[value.type];
|
|
76358
76449
|
if (!keys) return;
|
|
76359
|
-
const enter =
|
|
76360
|
-
if (
|
|
76361
|
-
for (
|
|
76362
|
-
|
|
76363
|
-
|
|
76450
|
+
const enter = enterByType.get(value.type);
|
|
76451
|
+
if (enter) enter(value);
|
|
76452
|
+
for (let i = 0; i < keys.length; i++) visit3(value[keys[i]]);
|
|
76453
|
+
if (hasExit) {
|
|
76454
|
+
const exit = exitByType.get(value.type);
|
|
76455
|
+
if (exit) exit(value);
|
|
76456
|
+
}
|
|
76364
76457
|
}
|
|
76365
76458
|
visit3(program);
|
|
76366
76459
|
}
|
|
@@ -79745,7 +79838,7 @@ init_swift_native_pin();
|
|
|
79745
79838
|
init_xcode_project();
|
|
79746
79839
|
var EXPO_NATIVE_ENTRY_NAME = "ios";
|
|
79747
79840
|
function expoNativeCompilerDigestValue() {
|
|
79748
|
-
return true ? "
|
|
79841
|
+
return true ? "95d2f7fa52acb2c71a46d85b46df4e8307bc027d7bdcfed61fe9ce704175db4b" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
79749
79842
|
}
|
|
79750
79843
|
var IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
|
|
79751
79844
|
function readSources(value) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2426 | (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;
|
|
@@ -294,7 +294,7 @@ var STANDIN_SOURCE_DIGEST;
|
|
|
294
294
|
var init_swift_standin_digest = __esm({
|
|
295
295
|
"src/swift-standin-digest.ts"() {
|
|
296
296
|
"use strict";
|
|
297
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
297
|
+
STANDIN_SOURCE_DIGEST = true ? "76ba6566c9c2d1f2324dcae610243363f830f57e3753da053da53d749835e23a" : standinSourceDigest();
|
|
298
298
|
}
|
|
299
299
|
});
|
|
300
300
|
|
|
@@ -2993,7 +2993,7 @@ var init_swift_compile = __esm({
|
|
|
2993
2993
|
FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
|
|
2994
2994
|
(module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
|
|
2995
2995
|
).join("");
|
|
2996
|
-
compilerSourceDigest = true ? "
|
|
2996
|
+
compilerSourceDigest = true ? "714dbca336e958240697a0238ee5b0640b2b212c34df4843e82d0c1abe3e8c43" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
2997
2997
|
C_WORDS = new Set(
|
|
2998
2998
|
"auto bool break case char const continue default do double else enum extern false float for goto if inline int long register restrict return short signed sizeof static struct switch true typedef union unsigned void volatile while YES NO NULL nil Nil id self super instancetype".split(
|
|
2999
2999
|
" "
|