peachsim 0.1.2423 → 0.1.2425
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 +113 -26
- 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 +112 -25
- 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 +113 -26
- 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 +115 -28
- 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 +88 -16
- 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-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/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/visit-parsed-program.ts +21 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2425 | (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;
|
|
@@ -25791,7 +25791,8 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
25791
25791
|
if (sectionName === "linking") {
|
|
25792
25792
|
const version2 = number3();
|
|
25793
25793
|
if (version2 !== 2) throw new Error("unsupported wasm linking version");
|
|
25794
|
-
const
|
|
25794
|
+
const subsections = [];
|
|
25795
|
+
let objcLoader;
|
|
25795
25796
|
while (offset < section.length) {
|
|
25796
25797
|
const kind = section[offset++];
|
|
25797
25798
|
const length = number3();
|
|
@@ -25854,6 +25855,9 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
25854
25855
|
}
|
|
25855
25856
|
} else if (symbolKind === 3) number3();
|
|
25856
25857
|
else throw new Error("unsupported wasm symbol kind");
|
|
25858
|
+
if (name3 === OBJC_LOAD_FUNCTION && symbolKind === 0 && !(flags & 16)) {
|
|
25859
|
+
objcLoader = i;
|
|
25860
|
+
}
|
|
25857
25861
|
const alias = names.get(name3);
|
|
25858
25862
|
if (flags & 16 && symbolKind === 1 && alias) usedSymbols.add(name3);
|
|
25859
25863
|
if ((name3 === "dlsym" && usesDlsym || name3 === "dlerror" && usesDlerror) && flags & 16 && flags & 64 && symbolKind === 0) {
|
|
@@ -25903,7 +25907,36 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
25903
25907
|
content = Buffer.concat([...entries, ...extraEntries]);
|
|
25904
25908
|
}
|
|
25905
25909
|
offset = stop;
|
|
25906
|
-
|
|
25910
|
+
subsections.push({ kind, content });
|
|
25911
|
+
}
|
|
25912
|
+
const parts = [encodedString(sectionName), encodeNumber(version2)];
|
|
25913
|
+
for (const subsection of subsections) {
|
|
25914
|
+
let content = subsection.content;
|
|
25915
|
+
if (subsection.kind === 6 && objcLoader !== void 0) {
|
|
25916
|
+
const [count, entriesStart] = readNumber(content, 0);
|
|
25917
|
+
const entries = [content.subarray(0, entriesStart)];
|
|
25918
|
+
let entryStart = entriesStart;
|
|
25919
|
+
for (let i = 0; i < count; i++) {
|
|
25920
|
+
const [, symbolStart] = readNumber(content, entryStart);
|
|
25921
|
+
const [symbol2, entryEnd] = readNumber(content, symbolStart);
|
|
25922
|
+
if (symbol2 === objcLoader) entries.push(encodeNumber(1));
|
|
25923
|
+
entries.push(
|
|
25924
|
+
content.subarray(
|
|
25925
|
+
symbol2 === objcLoader ? symbolStart : entryStart,
|
|
25926
|
+
entryEnd
|
|
25927
|
+
)
|
|
25928
|
+
);
|
|
25929
|
+
entryStart = entryEnd;
|
|
25930
|
+
}
|
|
25931
|
+
if (entryStart !== content.length)
|
|
25932
|
+
throw new Error("invalid init functions subsection");
|
|
25933
|
+
content = Buffer.concat(entries);
|
|
25934
|
+
}
|
|
25935
|
+
parts.push(
|
|
25936
|
+
Buffer.from([subsection.kind]),
|
|
25937
|
+
encodeNumber(content.length),
|
|
25938
|
+
content
|
|
25939
|
+
);
|
|
25907
25940
|
}
|
|
25908
25941
|
section = Buffer.concat(parts);
|
|
25909
25942
|
}
|
|
@@ -26197,11 +26230,12 @@ function createGuestImageLedger(input) {
|
|
|
26197
26230
|
llvmIR: ir.join("\n") + "\n"
|
|
26198
26231
|
};
|
|
26199
26232
|
}
|
|
26200
|
-
var OBJC_INIT_RECORD;
|
|
26233
|
+
var OBJC_INIT_RECORD, OBJC_LOAD_FUNCTION;
|
|
26201
26234
|
var init_swift_guest_image_ledger = __esm({
|
|
26202
26235
|
"src/swift-guest-image-ledger.ts"() {
|
|
26203
26236
|
"use strict";
|
|
26204
26237
|
OBJC_INIT_RECORD = ".objc_init";
|
|
26238
|
+
OBJC_LOAD_FUNCTION = ".objcv2_load_function";
|
|
26205
26239
|
}
|
|
26206
26240
|
});
|
|
26207
26241
|
|
|
@@ -28858,7 +28892,7 @@ function sourceGuestClangLinkOptions(options) {
|
|
|
28858
28892
|
commands.set(file, { tool, args: value });
|
|
28859
28893
|
}
|
|
28860
28894
|
}
|
|
28861
|
-
const
|
|
28895
|
+
const replays = [];
|
|
28862
28896
|
for (const [index, file] of [...wanted].entries()) {
|
|
28863
28897
|
const command = commands.get(file);
|
|
28864
28898
|
if (!command) throw new Error(`missing source object producer ${file}`);
|
|
@@ -28884,16 +28918,33 @@ function sourceGuestClangLinkOptions(options) {
|
|
|
28884
28918
|
throw new Error(`missing clang ${flag} for ${file}`);
|
|
28885
28919
|
args[index2 + 1] = flag === "-o" ? output2 : `${output2}.d`;
|
|
28886
28920
|
}
|
|
28887
|
-
|
|
28888
|
-
|
|
28889
|
-
[
|
|
28890
|
-
|
|
28891
|
-
|
|
28921
|
+
replays.push({
|
|
28922
|
+
file,
|
|
28923
|
+
compiler: command.args[0],
|
|
28924
|
+
args: [...args, "-S", "-emit-llvm", "-Xclang", "-disable-llvm-passes"],
|
|
28925
|
+
output: output2
|
|
28926
|
+
});
|
|
28927
|
+
}
|
|
28928
|
+
const plan = import_node_path45.default.join(options.directory, "clang-link-replays.json");
|
|
28929
|
+
(0, import_node_fs48.writeFileSync)(
|
|
28930
|
+
plan,
|
|
28931
|
+
JSON.stringify(replays.map(({ compiler, args }) => [compiler, ...args]))
|
|
28932
|
+
);
|
|
28933
|
+
(0, import_node_child_process25.execFileSync)(process.execPath, ["-e", PARALLEL_REPLAY], {
|
|
28934
|
+
stdio: "inherit",
|
|
28935
|
+
env: {
|
|
28936
|
+
...process.env,
|
|
28937
|
+
PEACH_CLANG_REPLAYS: plan,
|
|
28938
|
+
PEACH_CLANG_JOBS: String(options.jobs)
|
|
28939
|
+
}
|
|
28940
|
+
});
|
|
28941
|
+
const result = /* @__PURE__ */ new Map();
|
|
28942
|
+
for (const { file, output: output2 } of replays) {
|
|
28892
28943
|
const flags = clangIrLinkOptions((0, import_node_fs48.readFileSync)(output2, "utf8"));
|
|
28893
|
-
for (let
|
|
28894
|
-
const flag = flags[
|
|
28944
|
+
for (let index = 0; index < flags.length; index++) {
|
|
28945
|
+
const flag = flags[index];
|
|
28895
28946
|
if (flag === "-framework" || flag === "-l" || flag === "--library") {
|
|
28896
|
-
const name3 = flags[++
|
|
28947
|
+
const name3 = flags[++index];
|
|
28897
28948
|
if (!name3 || name3.startsWith("-"))
|
|
28898
28949
|
throw new Error(`missing clang link name after ${flag}`);
|
|
28899
28950
|
} else if (!/^(-l.+|--library=.+)$/.test(flag)) {
|
|
@@ -29119,7 +29170,7 @@ function logicalGuestLinkOptions(args, identities, roots) {
|
|
|
29119
29170
|
}
|
|
29120
29171
|
return output2;
|
|
29121
29172
|
}
|
|
29122
|
-
var import_node_child_process25, import_node_crypto24, import_node_fs48, import_node_path45, CLANG_TARGET_MODULE_WRAPPER;
|
|
29173
|
+
var import_node_child_process25, import_node_crypto24, import_node_fs48, import_node_path45, CLANG_TARGET_MODULE_WRAPPER, PARALLEL_REPLAY;
|
|
29123
29174
|
var init_swift_guest_source_inputs = __esm({
|
|
29124
29175
|
"src/swift-guest-source-inputs.ts"() {
|
|
29125
29176
|
"use strict";
|
|
@@ -29130,6 +29181,25 @@ var init_swift_guest_source_inputs = __esm({
|
|
|
29130
29181
|
init_swift_guest_source_plan();
|
|
29131
29182
|
init_swift_runtime_products();
|
|
29132
29183
|
CLANG_TARGET_MODULE_WRAPPER = ".peach-clang";
|
|
29184
|
+
PARALLEL_REPLAY = `
|
|
29185
|
+
const { spawn } = require('node:child_process')
|
|
29186
|
+
const commands = JSON.parse(require('node:fs').readFileSync(process.env.PEACH_CLANG_REPLAYS, 'utf8'))
|
|
29187
|
+
let next = 0
|
|
29188
|
+
const run = () => {
|
|
29189
|
+
if (next >= commands.length) return Promise.resolve()
|
|
29190
|
+
const [file, ...args] = commands[next++]
|
|
29191
|
+
return new Promise((resolve, reject) => {
|
|
29192
|
+
const child = spawn(file, args, { stdio: 'inherit' })
|
|
29193
|
+
child.on('error', reject)
|
|
29194
|
+
child.on('close', (code) => (code === 0 ? resolve() : reject(new Error('clang link replay failed: ' + file))))
|
|
29195
|
+
}).then(run)
|
|
29196
|
+
}
|
|
29197
|
+
const jobs = Math.max(1, Number(process.env.PEACH_CLANG_JOBS) || 1)
|
|
29198
|
+
Promise.all(Array.from({ length: jobs }, run)).catch((error) => {
|
|
29199
|
+
console.error(error.message)
|
|
29200
|
+
process.exit(1)
|
|
29201
|
+
})
|
|
29202
|
+
`;
|
|
29133
29203
|
}
|
|
29134
29204
|
});
|
|
29135
29205
|
|
|
@@ -29704,7 +29774,8 @@ async function compileGuestLink(options) {
|
|
|
29704
29774
|
directory: directory2,
|
|
29705
29775
|
toolchainBin: options.toolchainBin,
|
|
29706
29776
|
swiftCompiler: options.swiftCompiler,
|
|
29707
|
-
objects: selectedSource.map((artifact) => artifact.path)
|
|
29777
|
+
objects: selectedSource.map((artifact) => artifact.path),
|
|
29778
|
+
jobs: options.jobs
|
|
29708
29779
|
});
|
|
29709
29780
|
const links = sourceGuestRuntimeLinks({
|
|
29710
29781
|
toolchainBin: options.toolchainBin,
|
|
@@ -36340,7 +36411,8 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
36340
36411
|
generatedOwners: preparation.generatedOwners,
|
|
36341
36412
|
output: output2,
|
|
36342
36413
|
optimized,
|
|
36343
|
-
optimize: input.optimize === true
|
|
36414
|
+
optimize: input.optimize === true,
|
|
36415
|
+
jobs: swiftBuildJobs()
|
|
36344
36416
|
});
|
|
36345
36417
|
else
|
|
36346
36418
|
await lowerWasm(output2, optimized, { optimize: input.optimize === true });
|
|
@@ -36610,7 +36682,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
|
|
|
36610
36682
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
36611
36683
|
MULTI_MANIFEST_VERSION = 72;
|
|
36612
36684
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
36613
|
-
compilerSourceDigest = true ? "
|
|
36685
|
+
compilerSourceDigest = true ? "714dbca336e958240697a0238ee5b0640b2b212c34df4843e82d0c1abe3e8c43" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
36614
36686
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
36615
36687
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
36616
36688
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -40873,7 +40945,7 @@ var init_swift_standin_digest = __esm({
|
|
|
40873
40945
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
40874
40946
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
40875
40947
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
40876
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
40948
|
+
STANDIN_SOURCE_DIGEST = true ? "3a0e0016967d34924d12848e05752d3902596cc16a0f603a5fda32cb024d02f8" : standinSourceDigest();
|
|
40877
40949
|
}
|
|
40878
40950
|
});
|
|
40879
40951
|
|
|
@@ -58331,19 +58403,34 @@ init_public_brand();
|
|
|
58331
58403
|
var import_oxc_parser = require("oxc-parser");
|
|
58332
58404
|
init_is_record();
|
|
58333
58405
|
function visitParsedProgram(program, visitor) {
|
|
58406
|
+
const enterByType = /* @__PURE__ */ new Map();
|
|
58407
|
+
const exitByType = /* @__PURE__ */ new Map();
|
|
58408
|
+
for (const key2 of Object.keys(visitor)) {
|
|
58409
|
+
const handler = Reflect.get(visitor, key2);
|
|
58410
|
+
if (typeof handler !== "function") continue;
|
|
58411
|
+
const invoke = (node) => {
|
|
58412
|
+
handler(node);
|
|
58413
|
+
};
|
|
58414
|
+
if (key2.endsWith(":exit")) exitByType.set(key2.slice(0, -5), invoke);
|
|
58415
|
+
else enterByType.set(key2, invoke);
|
|
58416
|
+
}
|
|
58417
|
+
if (enterByType.size === 0 && exitByType.size === 0) return;
|
|
58418
|
+
const hasExit = exitByType.size > 0;
|
|
58334
58419
|
function visit3(value) {
|
|
58335
58420
|
if (Array.isArray(value)) {
|
|
58336
|
-
for (
|
|
58421
|
+
for (let i = 0; i < value.length; i++) visit3(value[i]);
|
|
58337
58422
|
return;
|
|
58338
58423
|
}
|
|
58339
58424
|
if (!isRecord(value) || typeof value.type !== "string") return;
|
|
58340
58425
|
const keys = import_oxc_parser.visitorKeys[value.type];
|
|
58341
58426
|
if (!keys) return;
|
|
58342
|
-
const enter =
|
|
58343
|
-
if (
|
|
58344
|
-
for (
|
|
58345
|
-
|
|
58346
|
-
|
|
58427
|
+
const enter = enterByType.get(value.type);
|
|
58428
|
+
if (enter) enter(value);
|
|
58429
|
+
for (let i = 0; i < keys.length; i++) visit3(value[keys[i]]);
|
|
58430
|
+
if (hasExit) {
|
|
58431
|
+
const exit = exitByType.get(value.type);
|
|
58432
|
+
if (exit) exit(value);
|
|
58433
|
+
}
|
|
58347
58434
|
}
|
|
58348
58435
|
visit3(program);
|
|
58349
58436
|
}
|
|
@@ -65055,7 +65142,7 @@ init_swift_native_pin();
|
|
|
65055
65142
|
init_xcode_project();
|
|
65056
65143
|
var EXPO_NATIVE_ENTRY_NAME = "ios";
|
|
65057
65144
|
function expoNativeCompilerDigestValue() {
|
|
65058
|
-
return true ? "
|
|
65145
|
+
return true ? "305cb9d6b64ebf2397b29848afd9b634d4012fc3eb51d696e9bdda10ea074097" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
65059
65146
|
}
|
|
65060
65147
|
var IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
|
|
65061
65148
|
function readSources(value) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2425 | (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.2425 | (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.2425 | (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;
|
|
@@ -36077,7 +36077,8 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
36077
36077
|
if (sectionName === "linking") {
|
|
36078
36078
|
const version2 = number4();
|
|
36079
36079
|
if (version2 !== 2) throw new Error("unsupported wasm linking version");
|
|
36080
|
-
const
|
|
36080
|
+
const subsections = [];
|
|
36081
|
+
let objcLoader;
|
|
36081
36082
|
while (offset < section.length) {
|
|
36082
36083
|
const kind = section[offset++];
|
|
36083
36084
|
const length = number4();
|
|
@@ -36140,6 +36141,9 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
36140
36141
|
}
|
|
36141
36142
|
} else if (symbolKind === 3) number4();
|
|
36142
36143
|
else throw new Error("unsupported wasm symbol kind");
|
|
36144
|
+
if (name3 === OBJC_LOAD_FUNCTION && symbolKind === 0 && !(flags & 16)) {
|
|
36145
|
+
objcLoader = i;
|
|
36146
|
+
}
|
|
36143
36147
|
const alias = names.get(name3);
|
|
36144
36148
|
if (flags & 16 && symbolKind === 1 && alias) usedSymbols.add(name3);
|
|
36145
36149
|
if ((name3 === "dlsym" && usesDlsym || name3 === "dlerror" && usesDlerror) && flags & 16 && flags & 64 && symbolKind === 0) {
|
|
@@ -36189,7 +36193,36 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
36189
36193
|
content = Buffer.concat([...entries, ...extraEntries]);
|
|
36190
36194
|
}
|
|
36191
36195
|
offset = stop;
|
|
36192
|
-
|
|
36196
|
+
subsections.push({ kind, content });
|
|
36197
|
+
}
|
|
36198
|
+
const parts = [encodedString(sectionName), encodeNumber(version2)];
|
|
36199
|
+
for (const subsection of subsections) {
|
|
36200
|
+
let content = subsection.content;
|
|
36201
|
+
if (subsection.kind === 6 && objcLoader !== void 0) {
|
|
36202
|
+
const [count, entriesStart] = readNumber(content, 0);
|
|
36203
|
+
const entries = [content.subarray(0, entriesStart)];
|
|
36204
|
+
let entryStart = entriesStart;
|
|
36205
|
+
for (let i = 0; i < count; i++) {
|
|
36206
|
+
const [, symbolStart] = readNumber(content, entryStart);
|
|
36207
|
+
const [symbol2, entryEnd] = readNumber(content, symbolStart);
|
|
36208
|
+
if (symbol2 === objcLoader) entries.push(encodeNumber(1));
|
|
36209
|
+
entries.push(
|
|
36210
|
+
content.subarray(
|
|
36211
|
+
symbol2 === objcLoader ? symbolStart : entryStart,
|
|
36212
|
+
entryEnd
|
|
36213
|
+
)
|
|
36214
|
+
);
|
|
36215
|
+
entryStart = entryEnd;
|
|
36216
|
+
}
|
|
36217
|
+
if (entryStart !== content.length)
|
|
36218
|
+
throw new Error("invalid init functions subsection");
|
|
36219
|
+
content = Buffer.concat(entries);
|
|
36220
|
+
}
|
|
36221
|
+
parts.push(
|
|
36222
|
+
Buffer.from([subsection.kind]),
|
|
36223
|
+
encodeNumber(content.length),
|
|
36224
|
+
content
|
|
36225
|
+
);
|
|
36193
36226
|
}
|
|
36194
36227
|
section = Buffer.concat(parts);
|
|
36195
36228
|
}
|
|
@@ -36483,11 +36516,12 @@ function createGuestImageLedger(input) {
|
|
|
36483
36516
|
llvmIR: ir.join("\n") + "\n"
|
|
36484
36517
|
};
|
|
36485
36518
|
}
|
|
36486
|
-
var OBJC_INIT_RECORD;
|
|
36519
|
+
var OBJC_INIT_RECORD, OBJC_LOAD_FUNCTION;
|
|
36487
36520
|
var init_swift_guest_image_ledger = __esm({
|
|
36488
36521
|
"src/swift-guest-image-ledger.ts"() {
|
|
36489
36522
|
"use strict";
|
|
36490
36523
|
OBJC_INIT_RECORD = ".objc_init";
|
|
36524
|
+
OBJC_LOAD_FUNCTION = ".objcv2_load_function";
|
|
36491
36525
|
}
|
|
36492
36526
|
});
|
|
36493
36527
|
|
|
@@ -39144,7 +39178,7 @@ function sourceGuestClangLinkOptions(options) {
|
|
|
39144
39178
|
commands.set(file, { tool, args: value });
|
|
39145
39179
|
}
|
|
39146
39180
|
}
|
|
39147
|
-
const
|
|
39181
|
+
const replays = [];
|
|
39148
39182
|
for (const [index, file] of [...wanted].entries()) {
|
|
39149
39183
|
const command = commands.get(file);
|
|
39150
39184
|
if (!command) throw new Error(`missing source object producer ${file}`);
|
|
@@ -39170,16 +39204,33 @@ function sourceGuestClangLinkOptions(options) {
|
|
|
39170
39204
|
throw new Error(`missing clang ${flag} for ${file}`);
|
|
39171
39205
|
args[index2 + 1] = flag === "-o" ? output2 : `${output2}.d`;
|
|
39172
39206
|
}
|
|
39173
|
-
|
|
39174
|
-
|
|
39175
|
-
[
|
|
39176
|
-
|
|
39177
|
-
|
|
39207
|
+
replays.push({
|
|
39208
|
+
file,
|
|
39209
|
+
compiler: command.args[0],
|
|
39210
|
+
args: [...args, "-S", "-emit-llvm", "-Xclang", "-disable-llvm-passes"],
|
|
39211
|
+
output: output2
|
|
39212
|
+
});
|
|
39213
|
+
}
|
|
39214
|
+
const plan = import_node_path49.default.join(options.directory, "clang-link-replays.json");
|
|
39215
|
+
(0, import_node_fs51.writeFileSync)(
|
|
39216
|
+
plan,
|
|
39217
|
+
JSON.stringify(replays.map(({ compiler, args }) => [compiler, ...args]))
|
|
39218
|
+
);
|
|
39219
|
+
(0, import_node_child_process26.execFileSync)(process.execPath, ["-e", PARALLEL_REPLAY], {
|
|
39220
|
+
stdio: "inherit",
|
|
39221
|
+
env: {
|
|
39222
|
+
...process.env,
|
|
39223
|
+
PEACH_CLANG_REPLAYS: plan,
|
|
39224
|
+
PEACH_CLANG_JOBS: String(options.jobs)
|
|
39225
|
+
}
|
|
39226
|
+
});
|
|
39227
|
+
const result = /* @__PURE__ */ new Map();
|
|
39228
|
+
for (const { file, output: output2 } of replays) {
|
|
39178
39229
|
const flags = clangIrLinkOptions((0, import_node_fs51.readFileSync)(output2, "utf8"));
|
|
39179
|
-
for (let
|
|
39180
|
-
const flag = flags[
|
|
39230
|
+
for (let index = 0; index < flags.length; index++) {
|
|
39231
|
+
const flag = flags[index];
|
|
39181
39232
|
if (flag === "-framework" || flag === "-l" || flag === "--library") {
|
|
39182
|
-
const name3 = flags[++
|
|
39233
|
+
const name3 = flags[++index];
|
|
39183
39234
|
if (!name3 || name3.startsWith("-"))
|
|
39184
39235
|
throw new Error(`missing clang link name after ${flag}`);
|
|
39185
39236
|
} else if (!/^(-l.+|--library=.+)$/.test(flag)) {
|
|
@@ -39405,7 +39456,7 @@ function logicalGuestLinkOptions(args, identities, roots) {
|
|
|
39405
39456
|
}
|
|
39406
39457
|
return output2;
|
|
39407
39458
|
}
|
|
39408
|
-
var import_node_child_process26, import_node_crypto26, import_node_fs51, import_node_path49, CLANG_TARGET_MODULE_WRAPPER;
|
|
39459
|
+
var import_node_child_process26, import_node_crypto26, import_node_fs51, import_node_path49, CLANG_TARGET_MODULE_WRAPPER, PARALLEL_REPLAY;
|
|
39409
39460
|
var init_swift_guest_source_inputs = __esm({
|
|
39410
39461
|
"src/swift-guest-source-inputs.ts"() {
|
|
39411
39462
|
"use strict";
|
|
@@ -39416,6 +39467,25 @@ var init_swift_guest_source_inputs = __esm({
|
|
|
39416
39467
|
init_swift_guest_source_plan();
|
|
39417
39468
|
init_swift_runtime_products();
|
|
39418
39469
|
CLANG_TARGET_MODULE_WRAPPER = ".peach-clang";
|
|
39470
|
+
PARALLEL_REPLAY = `
|
|
39471
|
+
const { spawn } = require('node:child_process')
|
|
39472
|
+
const commands = JSON.parse(require('node:fs').readFileSync(process.env.PEACH_CLANG_REPLAYS, 'utf8'))
|
|
39473
|
+
let next = 0
|
|
39474
|
+
const run = () => {
|
|
39475
|
+
if (next >= commands.length) return Promise.resolve()
|
|
39476
|
+
const [file, ...args] = commands[next++]
|
|
39477
|
+
return new Promise((resolve, reject) => {
|
|
39478
|
+
const child = spawn(file, args, { stdio: 'inherit' })
|
|
39479
|
+
child.on('error', reject)
|
|
39480
|
+
child.on('close', (code) => (code === 0 ? resolve() : reject(new Error('clang link replay failed: ' + file))))
|
|
39481
|
+
}).then(run)
|
|
39482
|
+
}
|
|
39483
|
+
const jobs = Math.max(1, Number(process.env.PEACH_CLANG_JOBS) || 1)
|
|
39484
|
+
Promise.all(Array.from({ length: jobs }, run)).catch((error) => {
|
|
39485
|
+
console.error(error.message)
|
|
39486
|
+
process.exit(1)
|
|
39487
|
+
})
|
|
39488
|
+
`;
|
|
39419
39489
|
}
|
|
39420
39490
|
});
|
|
39421
39491
|
|
|
@@ -39990,7 +40060,8 @@ async function compileGuestLink(options) {
|
|
|
39990
40060
|
directory: directory2,
|
|
39991
40061
|
toolchainBin: options.toolchainBin,
|
|
39992
40062
|
swiftCompiler: options.swiftCompiler,
|
|
39993
|
-
objects: selectedSource.map((artifact) => artifact.path)
|
|
40063
|
+
objects: selectedSource.map((artifact) => artifact.path),
|
|
40064
|
+
jobs: options.jobs
|
|
39994
40065
|
});
|
|
39995
40066
|
const links = sourceGuestRuntimeLinks({
|
|
39996
40067
|
toolchainBin: options.toolchainBin,
|
|
@@ -46660,7 +46731,8 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
46660
46731
|
generatedOwners: preparation.generatedOwners,
|
|
46661
46732
|
output: output2,
|
|
46662
46733
|
optimized,
|
|
46663
|
-
optimize: input.optimize === true
|
|
46734
|
+
optimize: input.optimize === true,
|
|
46735
|
+
jobs: swiftBuildJobs()
|
|
46664
46736
|
});
|
|
46665
46737
|
else
|
|
46666
46738
|
await lowerWasm(output2, optimized, { optimize: input.optimize === true });
|
|
@@ -46930,7 +47002,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
|
|
|
46930
47002
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
46931
47003
|
MULTI_MANIFEST_VERSION = 72;
|
|
46932
47004
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
46933
|
-
compilerSourceDigest = true ? "
|
|
47005
|
+
compilerSourceDigest = true ? "714dbca336e958240697a0238ee5b0640b2b212c34df4843e82d0c1abe3e8c43" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
46934
47006
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
46935
47007
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
46936
47008
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -51537,7 +51609,7 @@ var init_swift_standin_digest = __esm({
|
|
|
51537
51609
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
51538
51610
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
51539
51611
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
51540
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
51612
|
+
STANDIN_SOURCE_DIGEST = true ? "3a0e0016967d34924d12848e05752d3902596cc16a0f603a5fda32cb024d02f8" : standinSourceDigest();
|
|
51541
51613
|
}
|
|
51542
51614
|
});
|
|
51543
51615
|
|
|
@@ -69837,7 +69909,7 @@ var init_nitro_superset = __esm({
|
|
|
69837
69909
|
init_nitroContract();
|
|
69838
69910
|
init_swift_standin_digest();
|
|
69839
69911
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
69840
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
69912
|
+
NITRO_COMPILER_DIGEST = true ? "5e8f14caf06af284e971f4107b94fe6d6979dd2ac0da718416a93c6e36e8e2a0" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
69841
69913
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
69842
69914
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
69843
69915
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -76348,19 +76420,34 @@ init_public_brand();
|
|
|
76348
76420
|
var import_oxc_parser = require("oxc-parser");
|
|
76349
76421
|
init_is_record();
|
|
76350
76422
|
function visitParsedProgram(program, visitor) {
|
|
76423
|
+
const enterByType = /* @__PURE__ */ new Map();
|
|
76424
|
+
const exitByType = /* @__PURE__ */ new Map();
|
|
76425
|
+
for (const key2 of Object.keys(visitor)) {
|
|
76426
|
+
const handler = Reflect.get(visitor, key2);
|
|
76427
|
+
if (typeof handler !== "function") continue;
|
|
76428
|
+
const invoke = (node) => {
|
|
76429
|
+
handler(node);
|
|
76430
|
+
};
|
|
76431
|
+
if (key2.endsWith(":exit")) exitByType.set(key2.slice(0, -5), invoke);
|
|
76432
|
+
else enterByType.set(key2, invoke);
|
|
76433
|
+
}
|
|
76434
|
+
if (enterByType.size === 0 && exitByType.size === 0) return;
|
|
76435
|
+
const hasExit = exitByType.size > 0;
|
|
76351
76436
|
function visit3(value) {
|
|
76352
76437
|
if (Array.isArray(value)) {
|
|
76353
|
-
for (
|
|
76438
|
+
for (let i = 0; i < value.length; i++) visit3(value[i]);
|
|
76354
76439
|
return;
|
|
76355
76440
|
}
|
|
76356
76441
|
if (!isRecord(value) || typeof value.type !== "string") return;
|
|
76357
76442
|
const keys = import_oxc_parser.visitorKeys[value.type];
|
|
76358
76443
|
if (!keys) return;
|
|
76359
|
-
const enter =
|
|
76360
|
-
if (
|
|
76361
|
-
for (
|
|
76362
|
-
|
|
76363
|
-
|
|
76444
|
+
const enter = enterByType.get(value.type);
|
|
76445
|
+
if (enter) enter(value);
|
|
76446
|
+
for (let i = 0; i < keys.length; i++) visit3(value[keys[i]]);
|
|
76447
|
+
if (hasExit) {
|
|
76448
|
+
const exit = exitByType.get(value.type);
|
|
76449
|
+
if (exit) exit(value);
|
|
76450
|
+
}
|
|
76364
76451
|
}
|
|
76365
76452
|
visit3(program);
|
|
76366
76453
|
}
|
|
@@ -79745,7 +79832,7 @@ init_swift_native_pin();
|
|
|
79745
79832
|
init_xcode_project();
|
|
79746
79833
|
var EXPO_NATIVE_ENTRY_NAME = "ios";
|
|
79747
79834
|
function expoNativeCompilerDigestValue() {
|
|
79748
|
-
return true ? "
|
|
79835
|
+
return true ? "305cb9d6b64ebf2397b29848afd9b634d4012fc3eb51d696e9bdda10ea074097" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
79749
79836
|
}
|
|
79750
79837
|
var IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
|
|
79751
79838
|
function readSources(value) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2425 | (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 ? "3a0e0016967d34924d12848e05752d3902596cc16a0f603a5fda32cb024d02f8" : 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
|
" "
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2425 | (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.2425 | (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.2425 | (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/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2425 | (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;
|
|
@@ -8174,19 +8174,34 @@ var init_nitro_source = __esm({
|
|
|
8174
8174
|
|
|
8175
8175
|
// src/visit-parsed-program.ts
|
|
8176
8176
|
function visitParsedProgram(program, visitor) {
|
|
8177
|
+
const enterByType = /* @__PURE__ */ new Map();
|
|
8178
|
+
const exitByType = /* @__PURE__ */ new Map();
|
|
8179
|
+
for (const key of Object.keys(visitor)) {
|
|
8180
|
+
const handler = Reflect.get(visitor, key);
|
|
8181
|
+
if (typeof handler !== "function") continue;
|
|
8182
|
+
const invoke = (node) => {
|
|
8183
|
+
handler(node);
|
|
8184
|
+
};
|
|
8185
|
+
if (key.endsWith(":exit")) exitByType.set(key.slice(0, -5), invoke);
|
|
8186
|
+
else enterByType.set(key, invoke);
|
|
8187
|
+
}
|
|
8188
|
+
if (enterByType.size === 0 && exitByType.size === 0) return;
|
|
8189
|
+
const hasExit = exitByType.size > 0;
|
|
8177
8190
|
function visit3(value) {
|
|
8178
8191
|
if (Array.isArray(value)) {
|
|
8179
|
-
for (
|
|
8192
|
+
for (let i = 0; i < value.length; i++) visit3(value[i]);
|
|
8180
8193
|
return;
|
|
8181
8194
|
}
|
|
8182
8195
|
if (!isRecord(value) || typeof value.type !== "string") return;
|
|
8183
8196
|
const keys = import_oxc_parser.visitorKeys[value.type];
|
|
8184
8197
|
if (!keys) return;
|
|
8185
|
-
const enter =
|
|
8186
|
-
if (
|
|
8187
|
-
for (
|
|
8188
|
-
|
|
8189
|
-
|
|
8198
|
+
const enter = enterByType.get(value.type);
|
|
8199
|
+
if (enter) enter(value);
|
|
8200
|
+
for (let i = 0; i < keys.length; i++) visit3(value[keys[i]]);
|
|
8201
|
+
if (hasExit) {
|
|
8202
|
+
const exit = exitByType.get(value.type);
|
|
8203
|
+
if (exit) exit(value);
|
|
8204
|
+
}
|
|
8190
8205
|
}
|
|
8191
8206
|
visit3(program);
|
|
8192
8207
|
}
|
|
@@ -10559,7 +10574,7 @@ var STANDIN_SOURCE_DIGEST;
|
|
|
10559
10574
|
var init_swift_standin_digest = __esm({
|
|
10560
10575
|
"src/swift-standin-digest.ts"() {
|
|
10561
10576
|
"use strict";
|
|
10562
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
10577
|
+
STANDIN_SOURCE_DIGEST = true ? "3a0e0016967d34924d12848e05752d3902596cc16a0f603a5fda32cb024d02f8" : standinSourceDigest();
|
|
10563
10578
|
}
|
|
10564
10579
|
});
|
|
10565
10580
|
|
|
@@ -13970,7 +13985,7 @@ var init_swift_compile = __esm({
|
|
|
13970
13985
|
FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
|
|
13971
13986
|
(module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
|
|
13972
13987
|
).join("");
|
|
13973
|
-
compilerSourceDigest = true ? "
|
|
13988
|
+
compilerSourceDigest = true ? "714dbca336e958240697a0238ee5b0640b2b212c34df4843e82d0c1abe3e8c43" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
13974
13989
|
C_WORDS = new Set(
|
|
13975
13990
|
"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(
|
|
13976
13991
|
" "
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2425 | (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;
|