peachsim 0.1.2433 → 0.1.2435
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/app-project.ts +5 -0
- package/cli/commands/box.ts +3 -0
- package/cli/commands/control.ts +14 -6
- package/cli/commands/platform.ts +3 -3
- package/cli/commands/stream.ts +8 -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 +109 -38
- 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 +99 -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 +100 -29
- package/dist-lib/host/fetch-proxy-handler.cjs +4 -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 +15 -6
- 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 -6
- package/dist-lib/native-app-identity-project.cjs +13 -5
- package/dist-lib/native-app-identity-project.mjs +13 -5
- 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 +25 -25
- package/dist-lib/public-origins-lib.json +56 -56
- 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 +122 -39
- package/dist-lib/swift-compile.cjs +78 -25
- package/dist-lib/swift-compile.mjs +78 -25
- 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 +101 -31
- package/dist-lib/vite.cjs +4 -3
- 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/ios/apps/canvas-map-data.d.ts +2 -2
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/src/bazel-project.ts +11 -3
- package/src/react-native-coverage/native-typescript-parser.ts +29 -1
- package/src/swift-compile.ts +49 -5
- package/src/swift-guest-image-ledger.ts +15 -12
- package/src/swift-guest-link.ts +13 -2
- package/src/swift-guest-source-inputs.ts +5 -1
- package/src/swift-host.ts +12 -0
- package/src/swift-submit.ts +2 -0
- package/src/swift-wasm-prune.ts +8 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2435 | (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;
|
|
@@ -6571,7 +6571,11 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
6571
6571
|
const def = definedGlobalSyms.get(symName);
|
|
6572
6572
|
if (def) activateSymbolInObj(def.obj, def.symIdx);
|
|
6573
6573
|
}
|
|
6574
|
-
for (const symName of [
|
|
6574
|
+
for (const symName of [
|
|
6575
|
+
"__peach_dlsym_from_image",
|
|
6576
|
+
"__peach_dlerror",
|
|
6577
|
+
...link ? ["_dyld_register_func_for_add_image"] : []
|
|
6578
|
+
]) {
|
|
6575
6579
|
const provider = lazyProviders.get(symName)?.[0];
|
|
6576
6580
|
if (provider) extractObject(provider);
|
|
6577
6581
|
const def = definedGlobalSyms.get(symName);
|
|
@@ -7124,7 +7128,7 @@ function readString(bytes, position) {
|
|
|
7124
7128
|
const [length, start] = readNumber(bytes, position);
|
|
7125
7129
|
if (start + length > bytes.length) throw new Error("invalid wasm string");
|
|
7126
7130
|
return [
|
|
7127
|
-
Buffer.from(bytes.
|
|
7131
|
+
Buffer.from(bytes.buffer, bytes.byteOffset + start, length).toString("utf8"),
|
|
7128
7132
|
start + length
|
|
7129
7133
|
];
|
|
7130
7134
|
}
|
|
@@ -7151,7 +7155,7 @@ var OBJC_LOAD_FUNCTION = ".objcv2_load_function";
|
|
|
7151
7155
|
function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLookups, preserveCanonical) {
|
|
7152
7156
|
if (Buffer.from(bytes.subarray(0, 8)).toString("hex") !== "0061736d01000000")
|
|
7153
7157
|
throw new Error("expected wasm object");
|
|
7154
|
-
const sections2 = [Buffer.from(bytes.subarray(0, 8))];
|
|
7158
|
+
const sections2 = binding ? [Buffer.from(bytes.subarray(0, 8))] : void 0;
|
|
7155
7159
|
const types = [];
|
|
7156
7160
|
const functionTypes = [];
|
|
7157
7161
|
const definitions = [];
|
|
@@ -7165,8 +7169,9 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
7165
7169
|
const [size, start] = readNumber(bytes, position);
|
|
7166
7170
|
const end = start + size;
|
|
7167
7171
|
if (end > bytes.length) throw new Error("invalid wasm section");
|
|
7168
|
-
let section = Buffer.from(bytes.subarray(start, end));
|
|
7169
7172
|
position = end;
|
|
7173
|
+
if (!sections2 && id > 3) continue;
|
|
7174
|
+
let section = Buffer.from(bytes.buffer, bytes.byteOffset + start, size);
|
|
7170
7175
|
let offset = 0;
|
|
7171
7176
|
const number3 = () => {
|
|
7172
7177
|
const [value, next] = readNumber(section, offset);
|
|
@@ -7194,7 +7199,7 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
7194
7199
|
}
|
|
7195
7200
|
} else if (id === 2) {
|
|
7196
7201
|
const count = number3();
|
|
7197
|
-
const imports = [encodeNumber(count)];
|
|
7202
|
+
const imports = sections2 ? [encodeNumber(count)] : void 0;
|
|
7198
7203
|
for (let i = 0; i < count; i++) {
|
|
7199
7204
|
const module2 = string3();
|
|
7200
7205
|
const name2 = string3();
|
|
@@ -7238,17 +7243,17 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
7238
7243
|
}
|
|
7239
7244
|
if (isDlsym) usesDlsym = true;
|
|
7240
7245
|
if (isDlerror) usesDlerror = true;
|
|
7241
|
-
imports
|
|
7246
|
+
imports?.push(
|
|
7242
7247
|
encodedString(module2),
|
|
7243
7248
|
encodedString(
|
|
7244
|
-
isDlsym ? callerAlias : isDlerror ? "__peach_dlerror" : module2 === "env" && name2 !== "dlsym" && name2 !== "dlerror" ? binding(name2) ?? name2 : name2
|
|
7249
|
+
isDlsym ? callerAlias : isDlerror ? "__peach_dlerror" : module2 === "env" && name2 !== "dlsym" && name2 !== "dlerror" ? binding?.(name2) ?? name2 : name2
|
|
7245
7250
|
),
|
|
7246
7251
|
Buffer.from([kind]),
|
|
7247
7252
|
section.subarray(typeStart, offset)
|
|
7248
7253
|
);
|
|
7249
7254
|
}
|
|
7250
7255
|
if (offset !== section.length) throw new Error("invalid wasm import section");
|
|
7251
|
-
section = Buffer.concat(imports);
|
|
7256
|
+
if (imports) section = Buffer.concat(imports);
|
|
7252
7257
|
} else if (id === 3) {
|
|
7253
7258
|
const count = number3();
|
|
7254
7259
|
for (let i = 0; i < count; i++) functionTypes.push(number3());
|
|
@@ -7332,7 +7337,7 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
7332
7337
|
encodedString(name2 === "dlsym" ? callerAlias : "__peach_dlerror"),
|
|
7333
7338
|
section.subarray(nameEnd, offset)
|
|
7334
7339
|
);
|
|
7335
|
-
} else if (flags & 16 && name2 !== "dlsym" && name2 !== "dlerror" && binding(name2) !== void 0) {
|
|
7340
|
+
} else if (flags & 16 && name2 !== "dlsym" && name2 !== "dlerror" && binding?.(name2) !== void 0) {
|
|
7336
7341
|
entries.push(
|
|
7337
7342
|
section.subarray(begin, nameStart),
|
|
7338
7343
|
encodedString(binding(name2)),
|
|
@@ -7407,10 +7412,10 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
7407
7412
|
section = Buffer.concat(parts);
|
|
7408
7413
|
}
|
|
7409
7414
|
}
|
|
7410
|
-
sections2
|
|
7415
|
+
sections2?.push(Buffer.from([id]), encodeNumber(section.length), section);
|
|
7411
7416
|
}
|
|
7412
7417
|
return {
|
|
7413
|
-
bytes: Buffer.concat(sections2),
|
|
7418
|
+
bytes: sections2 ? Buffer.concat(sections2) : bytes,
|
|
7414
7419
|
definitions,
|
|
7415
7420
|
functionImports,
|
|
7416
7421
|
usesDlsym,
|
|
@@ -7466,7 +7471,7 @@ function createGuestImageLedger(input) {
|
|
|
7466
7471
|
object3.bytes,
|
|
7467
7472
|
aliases,
|
|
7468
7473
|
`__peach_dlsym_caller_${image.id}`,
|
|
7469
|
-
|
|
7474
|
+
void 0,
|
|
7470
7475
|
object3.instrumentDynamicLookups,
|
|
7471
7476
|
/* @__PURE__ */ new Set()
|
|
7472
7477
|
);
|
|
@@ -10062,13 +10067,21 @@ function verifyGuestSymbolScopes(options) {
|
|
|
10062
10067
|
continue;
|
|
10063
10068
|
if (!scope.includes(provider)) {
|
|
10064
10069
|
const candidates = options.definitionObjects.get(symbol) ?? /* @__PURE__ */ new Set();
|
|
10065
|
-
const
|
|
10070
|
+
const traced = [...record.providers.keys()];
|
|
10071
|
+
const strongTraced = traced.filter(
|
|
10072
|
+
(definer) => !options.weakDefinitions.get(definer)?.has(symbol)
|
|
10073
|
+
);
|
|
10074
|
+
const providers = strongTraced.length === 1 ? strongTraced : traced;
|
|
10066
10075
|
if (options.weakReferences.get(object3)?.has(symbol) && !providers.some((provider2) => options.systemProviders.has(provider2)))
|
|
10067
10076
|
continue;
|
|
10068
10077
|
const equivalentCopies = providers.length === 1 && candidates.has(providers[0]) && [...candidates].every(
|
|
10069
10078
|
(definer) => options.weakDefinitions.get(definer)?.has(symbol)
|
|
10070
10079
|
);
|
|
10071
|
-
|
|
10080
|
+
const strongCandidates = [...candidates].filter(
|
|
10081
|
+
(definer) => !options.weakDefinitions.get(definer)?.has(symbol)
|
|
10082
|
+
);
|
|
10083
|
+
const soleCandidate = candidates.size === 1 || strongCandidates.length === 1 && strongCandidates[0] === providers[0];
|
|
10084
|
+
if (!equivalentCopies && (!soleCandidate || providers.length !== 1 || !candidates.has(providers[0]) || !(options.systemProviders.has(providers[0]) || // a strong undefined reference binds through the process global
|
|
10072
10085
|
// scope, the root image and its dependency closure, as in elf.
|
|
10073
10086
|
provider === 0 || callers.get(0)?.includes(provider) || !options.weakReferences.get(object3)?.has(symbol) && options.frameworkProviders.get(object3)?.has(providers[0]))))
|
|
10074
10087
|
throw new Error(
|
|
@@ -10216,6 +10229,11 @@ var import_node_child_process11 = require("node:child_process");
|
|
|
10216
10229
|
var import_node_crypto10 = require("node:crypto");
|
|
10217
10230
|
var import_node_fs15 = require("node:fs");
|
|
10218
10231
|
var import_node_path15 = __toESM(require("node:path"), 1);
|
|
10232
|
+
|
|
10233
|
+
// src/forked-script-contract.ts
|
|
10234
|
+
var PEACH_FORKED_SCRIPT_ENV = "PEACH_RUNS_FORKED_SCRIPTS";
|
|
10235
|
+
|
|
10236
|
+
// src/swift-guest-source-inputs.ts
|
|
10219
10237
|
function clangIrLinkOptions(ir) {
|
|
10220
10238
|
const list = /^!llvm\.linker\.options = !\{([^\n]*)\}$/m.exec(ir);
|
|
10221
10239
|
if (!list) {
|
|
@@ -10336,10 +10354,13 @@ function sourceGuestClangLinkOptions(options) {
|
|
|
10336
10354
|
plan,
|
|
10337
10355
|
JSON.stringify(replays.map(({ compiler, args }) => [compiler, ...args]))
|
|
10338
10356
|
);
|
|
10339
|
-
|
|
10357
|
+
const script = import_node_path15.default.join(options.directory, "clang-link-replay.cjs");
|
|
10358
|
+
(0, import_node_fs15.writeFileSync)(script, PARALLEL_REPLAY);
|
|
10359
|
+
(0, import_node_child_process11.execFileSync)(process.execPath, [script], {
|
|
10340
10360
|
stdio: "inherit",
|
|
10341
10361
|
env: {
|
|
10342
10362
|
...process.env,
|
|
10363
|
+
[PEACH_FORKED_SCRIPT_ENV]: "1",
|
|
10343
10364
|
PEACH_CLANG_REPLAYS: plan,
|
|
10344
10365
|
PEACH_CLANG_JOBS: String(options.jobs)
|
|
10345
10366
|
}
|
|
@@ -11613,11 +11634,6 @@ var import_node_crypto12 = require("node:crypto");
|
|
|
11613
11634
|
var import_node_fs19 = require("node:fs");
|
|
11614
11635
|
var import_node_http = require("node:http");
|
|
11615
11636
|
var import_node_path20 = __toESM(require("node:path"), 1);
|
|
11616
|
-
|
|
11617
|
-
// src/forked-script-contract.ts
|
|
11618
|
-
var PEACH_FORKED_SCRIPT_ENV = "PEACH_RUNS_FORKED_SCRIPTS";
|
|
11619
|
-
|
|
11620
|
-
// src/swift-header-compiler.ts
|
|
11621
11637
|
var SWIFT_HEADER_COMPILER_WRAPPER = ".build/peach-swiftc";
|
|
11622
11638
|
var argument = (value) => `'${value.replaceAll("'", `'"'"'`)}'`;
|
|
11623
11639
|
var client = `const { request } = require('node:http')
|
|
@@ -14064,7 +14080,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
14064
14080
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
14065
14081
|
var MULTI_MANIFEST_VERSION = 72;
|
|
14066
14082
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
14067
|
-
var compilerSourceDigest = true ? "
|
|
14083
|
+
var compilerSourceDigest = true ? "4a6e02699924195639b15c5cdfd8852b5f17fb2ffacb8f9f964ef3daeee8b9dc" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
14068
14084
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
14069
14085
|
const hash = (0, import_node_crypto15.createHash)("sha256");
|
|
14070
14086
|
hash.update(`swift-compile
|
|
@@ -14116,6 +14132,8 @@ ${WASM_LOWER_IDENTITY}
|
|
|
14116
14132
|
hash.update(JSON.stringify(input.staticClangTargets ?? []));
|
|
14117
14133
|
hash.update(JSON.stringify(input.headerAliases ?? {}));
|
|
14118
14134
|
hash.update(JSON.stringify(input.packageGuestImports ?? []));
|
|
14135
|
+
if (input.packageHostMacros?.length)
|
|
14136
|
+
hash.update("package-host-macros\n" + JSON.stringify(input.packageHostMacros));
|
|
14119
14137
|
if (input.defaultLocalization)
|
|
14120
14138
|
hash.update(`default-localization
|
|
14121
14139
|
${input.defaultLocalization}
|
|
@@ -18158,6 +18176,7 @@ ${args.frameworkKey}`, scratch2, [
|
|
|
18158
18176
|
};
|
|
18159
18177
|
}
|
|
18160
18178
|
var SWIFT_LINK_STAMP = ".peach-link-stamp";
|
|
18179
|
+
var SWIFT_HOST_COMPILER_WRAPPER = ".peach-swiftc";
|
|
18161
18180
|
var SWIFT_FRAMEWORK_SLOTS = 8;
|
|
18162
18181
|
var SWIFT_FRAMEWORK_SLOT_KEY = ".peach-framework-key";
|
|
18163
18182
|
var SWIFT_FRAMEWORK_SLOT_ORIGIN = ".peach-framework-origin";
|
|
@@ -18315,6 +18334,8 @@ function swiftLinkStamp(args) {
|
|
|
18315
18334
|
hash.update(`swift-link/v1
|
|
18316
18335
|
${args.frameworkKey}
|
|
18317
18336
|
`);
|
|
18337
|
+
if (args.packageHostMacros?.length)
|
|
18338
|
+
hash.update("package-host-macros\n" + JSON.stringify(args.packageHostMacros));
|
|
18318
18339
|
if (!args.prebuilt) return hash.digest("hex");
|
|
18319
18340
|
const statOf = (file) => {
|
|
18320
18341
|
const stat = (0, import_node_fs26.statSync)(file, { bigint: true });
|
|
@@ -18539,11 +18560,13 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
18539
18560
|
});
|
|
18540
18561
|
}
|
|
18541
18562
|
if (options.project) removeProjectLinks(root);
|
|
18563
|
+
const packageHostMacros = process.platform === "linux" ? input.packageHostMacros : void 0;
|
|
18542
18564
|
if (retireStaleSwiftLink(
|
|
18543
18565
|
root,
|
|
18544
18566
|
swiftLinkStamp({
|
|
18545
18567
|
frameworkKey,
|
|
18546
|
-
prebuilt
|
|
18568
|
+
prebuilt,
|
|
18569
|
+
packageHostMacros
|
|
18547
18570
|
})
|
|
18548
18571
|
))
|
|
18549
18572
|
report("framework revision changed; rebuilding the app link");
|
|
@@ -18566,8 +18589,38 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
18566
18589
|
).product.name
|
|
18567
18590
|
] : []
|
|
18568
18591
|
);
|
|
18569
|
-
const projectProcess = options.project ? prepareSwiftProjectProcess(root, options.project) : void 0;
|
|
18570
18592
|
const compiler = preparation.targetToolset ? { CC: import_node_path28.default.join(root, CLANG_TARGET_MODULE_WRAPPER) } : {};
|
|
18593
|
+
if (packageHostMacros?.length) {
|
|
18594
|
+
const swiftc = import_node_path28.default.join(root, SWIFT_HOST_COMPILER_WRAPPER);
|
|
18595
|
+
writeBuildFile(
|
|
18596
|
+
swiftc,
|
|
18597
|
+
[
|
|
18598
|
+
"#!/bin/sh",
|
|
18599
|
+
"target=",
|
|
18600
|
+
"module=",
|
|
18601
|
+
"compile=",
|
|
18602
|
+
"previous=",
|
|
18603
|
+
"for argument do",
|
|
18604
|
+
' case "$previous" in -target) target=$argument ;; -module-name) module=$argument ;; esac',
|
|
18605
|
+
' case "$argument" in -c|-emit-module|-scan-dependencies|-typecheck) compile=1 ;; esac',
|
|
18606
|
+
" previous=$argument",
|
|
18607
|
+
"done",
|
|
18608
|
+
'case "$target/$compile" in',
|
|
18609
|
+
" *-*-linux*/1)",
|
|
18610
|
+
' case ",$PEACH_SWIFT_HOST_MACROS," in',
|
|
18611
|
+
' *",$module,"*) set -- "$@" -Xfrontend -import-module -Xfrontend Foundation ;;',
|
|
18612
|
+
" esac ;;",
|
|
18613
|
+
"esac",
|
|
18614
|
+
'exec "$PEACH_SWIFTC" "$@"',
|
|
18615
|
+
""
|
|
18616
|
+
].join("\n")
|
|
18617
|
+
);
|
|
18618
|
+
(0, import_node_fs26.chmodSync)(swiftc, 493);
|
|
18619
|
+
compiler.SWIFT_EXEC = swiftc;
|
|
18620
|
+
compiler.PEACH_SWIFT_HOST_MACROS = packageHostMacros.join(",");
|
|
18621
|
+
compiler.PEACH_SWIFTC = import_node_path28.default.join(options.toolchainBin, "swiftc");
|
|
18622
|
+
}
|
|
18623
|
+
const projectProcess = options.project ? prepareSwiftProjectProcess(root, options.project) : void 0;
|
|
18571
18624
|
const appOptions = projectProcess ? {
|
|
18572
18625
|
...buildOptions,
|
|
18573
18626
|
uid: projectProcess.uid,
|
|
@@ -18922,7 +18975,7 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
18922
18975
|
releaseDirectory: import_node_path28.default.dirname(linked),
|
|
18923
18976
|
moduleRoot: frameworkRoot,
|
|
18924
18977
|
toolchainBin: options.toolchainBin,
|
|
18925
|
-
swiftCompiler: preparation.headerCompiler ? import_node_path28.default.join(root, SWIFT_HEADER_COMPILER_WRAPPER) : import_node_path28.default.join(options.toolchainBin, "swiftc"),
|
|
18978
|
+
swiftCompiler: preparation.headerCompiler ? import_node_path28.default.join(root, SWIFT_HEADER_COMPILER_WRAPPER) : compiler.SWIFT_EXEC ?? import_node_path28.default.join(options.toolchainBin, "swiftc"),
|
|
18926
18979
|
sysroot: swiftSdkPaths(frameworkRoot, options.toolchainBin).sysroot,
|
|
18927
18980
|
sdk: swiftModuleSdk(frameworkRoot),
|
|
18928
18981
|
staticClangTargets: input.staticClangTargets ?? [],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2435 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -6525,7 +6525,11 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
6525
6525
|
const def = definedGlobalSyms.get(symName);
|
|
6526
6526
|
if (def) activateSymbolInObj(def.obj, def.symIdx);
|
|
6527
6527
|
}
|
|
6528
|
-
for (const symName of [
|
|
6528
|
+
for (const symName of [
|
|
6529
|
+
"__peach_dlsym_from_image",
|
|
6530
|
+
"__peach_dlerror",
|
|
6531
|
+
...link ? ["_dyld_register_func_for_add_image"] : []
|
|
6532
|
+
]) {
|
|
6529
6533
|
const provider = lazyProviders.get(symName)?.[0];
|
|
6530
6534
|
if (provider) extractObject(provider);
|
|
6531
6535
|
const def = definedGlobalSyms.get(symName);
|
|
@@ -7078,7 +7082,7 @@ function readString(bytes, position) {
|
|
|
7078
7082
|
const [length, start] = readNumber(bytes, position);
|
|
7079
7083
|
if (start + length > bytes.length) throw new Error("invalid wasm string");
|
|
7080
7084
|
return [
|
|
7081
|
-
Buffer.from(bytes.
|
|
7085
|
+
Buffer.from(bytes.buffer, bytes.byteOffset + start, length).toString("utf8"),
|
|
7082
7086
|
start + length
|
|
7083
7087
|
];
|
|
7084
7088
|
}
|
|
@@ -7105,7 +7109,7 @@ var OBJC_LOAD_FUNCTION = ".objcv2_load_function";
|
|
|
7105
7109
|
function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLookups, preserveCanonical) {
|
|
7106
7110
|
if (Buffer.from(bytes.subarray(0, 8)).toString("hex") !== "0061736d01000000")
|
|
7107
7111
|
throw new Error("expected wasm object");
|
|
7108
|
-
const sections2 = [Buffer.from(bytes.subarray(0, 8))];
|
|
7112
|
+
const sections2 = binding ? [Buffer.from(bytes.subarray(0, 8))] : void 0;
|
|
7109
7113
|
const types = [];
|
|
7110
7114
|
const functionTypes = [];
|
|
7111
7115
|
const definitions = [];
|
|
@@ -7119,8 +7123,9 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
7119
7123
|
const [size, start] = readNumber(bytes, position);
|
|
7120
7124
|
const end = start + size;
|
|
7121
7125
|
if (end > bytes.length) throw new Error("invalid wasm section");
|
|
7122
|
-
let section = Buffer.from(bytes.subarray(start, end));
|
|
7123
7126
|
position = end;
|
|
7127
|
+
if (!sections2 && id > 3) continue;
|
|
7128
|
+
let section = Buffer.from(bytes.buffer, bytes.byteOffset + start, size);
|
|
7124
7129
|
let offset = 0;
|
|
7125
7130
|
const number3 = () => {
|
|
7126
7131
|
const [value, next] = readNumber(section, offset);
|
|
@@ -7148,7 +7153,7 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
7148
7153
|
}
|
|
7149
7154
|
} else if (id === 2) {
|
|
7150
7155
|
const count = number3();
|
|
7151
|
-
const imports = [encodeNumber(count)];
|
|
7156
|
+
const imports = sections2 ? [encodeNumber(count)] : void 0;
|
|
7152
7157
|
for (let i = 0; i < count; i++) {
|
|
7153
7158
|
const module = string3();
|
|
7154
7159
|
const name2 = string3();
|
|
@@ -7192,17 +7197,17 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
7192
7197
|
}
|
|
7193
7198
|
if (isDlsym) usesDlsym = true;
|
|
7194
7199
|
if (isDlerror) usesDlerror = true;
|
|
7195
|
-
imports
|
|
7200
|
+
imports?.push(
|
|
7196
7201
|
encodedString(module),
|
|
7197
7202
|
encodedString(
|
|
7198
|
-
isDlsym ? callerAlias : isDlerror ? "__peach_dlerror" : module === "env" && name2 !== "dlsym" && name2 !== "dlerror" ? binding(name2) ?? name2 : name2
|
|
7203
|
+
isDlsym ? callerAlias : isDlerror ? "__peach_dlerror" : module === "env" && name2 !== "dlsym" && name2 !== "dlerror" ? binding?.(name2) ?? name2 : name2
|
|
7199
7204
|
),
|
|
7200
7205
|
Buffer.from([kind]),
|
|
7201
7206
|
section.subarray(typeStart, offset)
|
|
7202
7207
|
);
|
|
7203
7208
|
}
|
|
7204
7209
|
if (offset !== section.length) throw new Error("invalid wasm import section");
|
|
7205
|
-
section = Buffer.concat(imports);
|
|
7210
|
+
if (imports) section = Buffer.concat(imports);
|
|
7206
7211
|
} else if (id === 3) {
|
|
7207
7212
|
const count = number3();
|
|
7208
7213
|
for (let i = 0; i < count; i++) functionTypes.push(number3());
|
|
@@ -7286,7 +7291,7 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
7286
7291
|
encodedString(name2 === "dlsym" ? callerAlias : "__peach_dlerror"),
|
|
7287
7292
|
section.subarray(nameEnd, offset)
|
|
7288
7293
|
);
|
|
7289
|
-
} else if (flags & 16 && name2 !== "dlsym" && name2 !== "dlerror" && binding(name2) !== void 0) {
|
|
7294
|
+
} else if (flags & 16 && name2 !== "dlsym" && name2 !== "dlerror" && binding?.(name2) !== void 0) {
|
|
7290
7295
|
entries.push(
|
|
7291
7296
|
section.subarray(begin, nameStart),
|
|
7292
7297
|
encodedString(binding(name2)),
|
|
@@ -7361,10 +7366,10 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
7361
7366
|
section = Buffer.concat(parts);
|
|
7362
7367
|
}
|
|
7363
7368
|
}
|
|
7364
|
-
sections2
|
|
7369
|
+
sections2?.push(Buffer.from([id]), encodeNumber(section.length), section);
|
|
7365
7370
|
}
|
|
7366
7371
|
return {
|
|
7367
|
-
bytes: Buffer.concat(sections2),
|
|
7372
|
+
bytes: sections2 ? Buffer.concat(sections2) : bytes,
|
|
7368
7373
|
definitions,
|
|
7369
7374
|
functionImports,
|
|
7370
7375
|
usesDlsym,
|
|
@@ -7420,7 +7425,7 @@ function createGuestImageLedger(input) {
|
|
|
7420
7425
|
object3.bytes,
|
|
7421
7426
|
aliases,
|
|
7422
7427
|
`__peach_dlsym_caller_${image.id}`,
|
|
7423
|
-
|
|
7428
|
+
void 0,
|
|
7424
7429
|
object3.instrumentDynamicLookups,
|
|
7425
7430
|
/* @__PURE__ */ new Set()
|
|
7426
7431
|
);
|
|
@@ -10017,13 +10022,21 @@ function verifyGuestSymbolScopes(options) {
|
|
|
10017
10022
|
continue;
|
|
10018
10023
|
if (!scope.includes(provider)) {
|
|
10019
10024
|
const candidates = options.definitionObjects.get(symbol) ?? /* @__PURE__ */ new Set();
|
|
10020
|
-
const
|
|
10025
|
+
const traced = [...record.providers.keys()];
|
|
10026
|
+
const strongTraced = traced.filter(
|
|
10027
|
+
(definer) => !options.weakDefinitions.get(definer)?.has(symbol)
|
|
10028
|
+
);
|
|
10029
|
+
const providers = strongTraced.length === 1 ? strongTraced : traced;
|
|
10021
10030
|
if (options.weakReferences.get(object3)?.has(symbol) && !providers.some((provider2) => options.systemProviders.has(provider2)))
|
|
10022
10031
|
continue;
|
|
10023
10032
|
const equivalentCopies = providers.length === 1 && candidates.has(providers[0]) && [...candidates].every(
|
|
10024
10033
|
(definer) => options.weakDefinitions.get(definer)?.has(symbol)
|
|
10025
10034
|
);
|
|
10026
|
-
|
|
10035
|
+
const strongCandidates = [...candidates].filter(
|
|
10036
|
+
(definer) => !options.weakDefinitions.get(definer)?.has(symbol)
|
|
10037
|
+
);
|
|
10038
|
+
const soleCandidate = candidates.size === 1 || strongCandidates.length === 1 && strongCandidates[0] === providers[0];
|
|
10039
|
+
if (!equivalentCopies && (!soleCandidate || providers.length !== 1 || !candidates.has(providers[0]) || !(options.systemProviders.has(providers[0]) || // a strong undefined reference binds through the process global
|
|
10027
10040
|
// scope, the root image and its dependency closure, as in elf.
|
|
10028
10041
|
provider === 0 || callers.get(0)?.includes(provider) || !options.weakReferences.get(object3)?.has(symbol) && options.frameworkProviders.get(object3)?.has(providers[0]))))
|
|
10029
10042
|
throw new Error(
|
|
@@ -10171,6 +10184,11 @@ import { execFileSync as execFileSync8 } from "node:child_process";
|
|
|
10171
10184
|
import { createHash as createHash11 } from "node:crypto";
|
|
10172
10185
|
import { mkdirSync as mkdirSync3, readFileSync as readFileSync11, realpathSync as realpathSync2, writeFileSync as writeFileSync4 } from "node:fs";
|
|
10173
10186
|
import path17 from "node:path";
|
|
10187
|
+
|
|
10188
|
+
// src/forked-script-contract.ts
|
|
10189
|
+
var PEACH_FORKED_SCRIPT_ENV = "PEACH_RUNS_FORKED_SCRIPTS";
|
|
10190
|
+
|
|
10191
|
+
// src/swift-guest-source-inputs.ts
|
|
10174
10192
|
function clangIrLinkOptions(ir) {
|
|
10175
10193
|
const list = /^!llvm\.linker\.options = !\{([^\n]*)\}$/m.exec(ir);
|
|
10176
10194
|
if (!list) {
|
|
@@ -10291,10 +10309,13 @@ function sourceGuestClangLinkOptions(options) {
|
|
|
10291
10309
|
plan,
|
|
10292
10310
|
JSON.stringify(replays.map(({ compiler, args }) => [compiler, ...args]))
|
|
10293
10311
|
);
|
|
10294
|
-
|
|
10312
|
+
const script = path17.join(options.directory, "clang-link-replay.cjs");
|
|
10313
|
+
writeFileSync4(script, PARALLEL_REPLAY);
|
|
10314
|
+
execFileSync8(process.execPath, [script], {
|
|
10295
10315
|
stdio: "inherit",
|
|
10296
10316
|
env: {
|
|
10297
10317
|
...process.env,
|
|
10318
|
+
[PEACH_FORKED_SCRIPT_ENV]: "1",
|
|
10298
10319
|
PEACH_CLANG_REPLAYS: plan,
|
|
10299
10320
|
PEACH_CLANG_JOBS: String(options.jobs)
|
|
10300
10321
|
}
|
|
@@ -11586,11 +11607,6 @@ import {
|
|
|
11586
11607
|
} from "node:fs";
|
|
11587
11608
|
import { createServer } from "node:http";
|
|
11588
11609
|
import path22 from "node:path";
|
|
11589
|
-
|
|
11590
|
-
// src/forked-script-contract.ts
|
|
11591
|
-
var PEACH_FORKED_SCRIPT_ENV = "PEACH_RUNS_FORKED_SCRIPTS";
|
|
11592
|
-
|
|
11593
|
-
// src/swift-header-compiler.ts
|
|
11594
11610
|
var SWIFT_HEADER_COMPILER_WRAPPER = ".build/peach-swiftc";
|
|
11595
11611
|
var argument = (value) => `'${value.replaceAll("'", `'"'"'`)}'`;
|
|
11596
11612
|
var client = `const { request } = require('node:http')
|
|
@@ -14063,7 +14079,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
14063
14079
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
14064
14080
|
var MULTI_MANIFEST_VERSION = 72;
|
|
14065
14081
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
14066
|
-
var compilerSourceDigest = true ? "
|
|
14082
|
+
var compilerSourceDigest = true ? "4a6e02699924195639b15c5cdfd8852b5f17fb2ffacb8f9f964ef3daeee8b9dc" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
14067
14083
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
14068
14084
|
const hash = createHash15("sha256");
|
|
14069
14085
|
hash.update(`swift-compile
|
|
@@ -14115,6 +14131,8 @@ ${WASM_LOWER_IDENTITY}
|
|
|
14115
14131
|
hash.update(JSON.stringify(input.staticClangTargets ?? []));
|
|
14116
14132
|
hash.update(JSON.stringify(input.headerAliases ?? {}));
|
|
14117
14133
|
hash.update(JSON.stringify(input.packageGuestImports ?? []));
|
|
14134
|
+
if (input.packageHostMacros?.length)
|
|
14135
|
+
hash.update("package-host-macros\n" + JSON.stringify(input.packageHostMacros));
|
|
14118
14136
|
if (input.defaultLocalization)
|
|
14119
14137
|
hash.update(`default-localization
|
|
14120
14138
|
${input.defaultLocalization}
|
|
@@ -18157,6 +18175,7 @@ ${args.frameworkKey}`, scratch2, [
|
|
|
18157
18175
|
};
|
|
18158
18176
|
}
|
|
18159
18177
|
var SWIFT_LINK_STAMP = ".peach-link-stamp";
|
|
18178
|
+
var SWIFT_HOST_COMPILER_WRAPPER = ".peach-swiftc";
|
|
18160
18179
|
var SWIFT_FRAMEWORK_SLOTS = 8;
|
|
18161
18180
|
var SWIFT_FRAMEWORK_SLOT_KEY = ".peach-framework-key";
|
|
18162
18181
|
var SWIFT_FRAMEWORK_SLOT_ORIGIN = ".peach-framework-origin";
|
|
@@ -18314,6 +18333,8 @@ function swiftLinkStamp(args) {
|
|
|
18314
18333
|
hash.update(`swift-link/v1
|
|
18315
18334
|
${args.frameworkKey}
|
|
18316
18335
|
`);
|
|
18336
|
+
if (args.packageHostMacros?.length)
|
|
18337
|
+
hash.update("package-host-macros\n" + JSON.stringify(args.packageHostMacros));
|
|
18317
18338
|
if (!args.prebuilt) return hash.digest("hex");
|
|
18318
18339
|
const statOf = (file) => {
|
|
18319
18340
|
const stat = statSync3(file, { bigint: true });
|
|
@@ -18538,11 +18559,13 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
18538
18559
|
});
|
|
18539
18560
|
}
|
|
18540
18561
|
if (options.project) removeProjectLinks(root);
|
|
18562
|
+
const packageHostMacros = process.platform === "linux" ? input.packageHostMacros : void 0;
|
|
18541
18563
|
if (retireStaleSwiftLink(
|
|
18542
18564
|
root,
|
|
18543
18565
|
swiftLinkStamp({
|
|
18544
18566
|
frameworkKey,
|
|
18545
|
-
prebuilt
|
|
18567
|
+
prebuilt,
|
|
18568
|
+
packageHostMacros
|
|
18546
18569
|
})
|
|
18547
18570
|
))
|
|
18548
18571
|
report("framework revision changed; rebuilding the app link");
|
|
@@ -18565,8 +18588,38 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
18565
18588
|
).product.name
|
|
18566
18589
|
] : []
|
|
18567
18590
|
);
|
|
18568
|
-
const projectProcess = options.project ? prepareSwiftProjectProcess(root, options.project) : void 0;
|
|
18569
18591
|
const compiler = preparation.targetToolset ? { CC: path30.join(root, CLANG_TARGET_MODULE_WRAPPER) } : {};
|
|
18592
|
+
if (packageHostMacros?.length) {
|
|
18593
|
+
const swiftc = path30.join(root, SWIFT_HOST_COMPILER_WRAPPER);
|
|
18594
|
+
writeBuildFile(
|
|
18595
|
+
swiftc,
|
|
18596
|
+
[
|
|
18597
|
+
"#!/bin/sh",
|
|
18598
|
+
"target=",
|
|
18599
|
+
"module=",
|
|
18600
|
+
"compile=",
|
|
18601
|
+
"previous=",
|
|
18602
|
+
"for argument do",
|
|
18603
|
+
' case "$previous" in -target) target=$argument ;; -module-name) module=$argument ;; esac',
|
|
18604
|
+
' case "$argument" in -c|-emit-module|-scan-dependencies|-typecheck) compile=1 ;; esac',
|
|
18605
|
+
" previous=$argument",
|
|
18606
|
+
"done",
|
|
18607
|
+
'case "$target/$compile" in',
|
|
18608
|
+
" *-*-linux*/1)",
|
|
18609
|
+
' case ",$PEACH_SWIFT_HOST_MACROS," in',
|
|
18610
|
+
' *",$module,"*) set -- "$@" -Xfrontend -import-module -Xfrontend Foundation ;;',
|
|
18611
|
+
" esac ;;",
|
|
18612
|
+
"esac",
|
|
18613
|
+
'exec "$PEACH_SWIFTC" "$@"',
|
|
18614
|
+
""
|
|
18615
|
+
].join("\n")
|
|
18616
|
+
);
|
|
18617
|
+
chmodSync3(swiftc, 493);
|
|
18618
|
+
compiler.SWIFT_EXEC = swiftc;
|
|
18619
|
+
compiler.PEACH_SWIFT_HOST_MACROS = packageHostMacros.join(",");
|
|
18620
|
+
compiler.PEACH_SWIFTC = path30.join(options.toolchainBin, "swiftc");
|
|
18621
|
+
}
|
|
18622
|
+
const projectProcess = options.project ? prepareSwiftProjectProcess(root, options.project) : void 0;
|
|
18570
18623
|
const appOptions = projectProcess ? {
|
|
18571
18624
|
...buildOptions,
|
|
18572
18625
|
uid: projectProcess.uid,
|
|
@@ -18921,7 +18974,7 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
18921
18974
|
releaseDirectory: path30.dirname(linked),
|
|
18922
18975
|
moduleRoot: frameworkRoot,
|
|
18923
18976
|
toolchainBin: options.toolchainBin,
|
|
18924
|
-
swiftCompiler: preparation.headerCompiler ? path30.join(root, SWIFT_HEADER_COMPILER_WRAPPER) : path30.join(options.toolchainBin, "swiftc"),
|
|
18977
|
+
swiftCompiler: preparation.headerCompiler ? path30.join(root, SWIFT_HEADER_COMPILER_WRAPPER) : compiler.SWIFT_EXEC ?? path30.join(options.toolchainBin, "swiftc"),
|
|
18925
18978
|
sysroot: swiftSdkPaths(frameworkRoot, options.toolchainBin).sysroot,
|
|
18926
18979
|
sdk: swiftModuleSdk(frameworkRoot),
|
|
18927
18980
|
staticClangTargets: input.staticClangTargets ?? [],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2435 | (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.2435 | (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.2435 | (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.2435 | (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;
|