peachsim 0.1.2434 → 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/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 +95 -28
- 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 +94 -27
- 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 +95 -28
- 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 +14 -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 +14 -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 +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 +101 -35
- package/dist-lib/swift-compile.cjs +69 -19
- package/dist-lib/swift-compile.mjs +69 -19
- 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 +92 -25
- package/dist-lib/vite.cjs +3 -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/package.json +1 -1
- package/src/bazel-project.ts +11 -3
- 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-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
|
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(
|
|
@@ -14066,7 +14079,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
14066
14079
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
14067
14080
|
var MULTI_MANIFEST_VERSION = 72;
|
|
14068
14081
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
14069
|
-
var compilerSourceDigest = true ? "
|
|
14082
|
+
var compilerSourceDigest = true ? "4a6e02699924195639b15c5cdfd8852b5f17fb2ffacb8f9f964ef3daeee8b9dc" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
14070
14083
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
14071
14084
|
const hash = createHash15("sha256");
|
|
14072
14085
|
hash.update(`swift-compile
|
|
@@ -14118,6 +14131,8 @@ ${WASM_LOWER_IDENTITY}
|
|
|
14118
14131
|
hash.update(JSON.stringify(input.staticClangTargets ?? []));
|
|
14119
14132
|
hash.update(JSON.stringify(input.headerAliases ?? {}));
|
|
14120
14133
|
hash.update(JSON.stringify(input.packageGuestImports ?? []));
|
|
14134
|
+
if (input.packageHostMacros?.length)
|
|
14135
|
+
hash.update("package-host-macros\n" + JSON.stringify(input.packageHostMacros));
|
|
14121
14136
|
if (input.defaultLocalization)
|
|
14122
14137
|
hash.update(`default-localization
|
|
14123
14138
|
${input.defaultLocalization}
|
|
@@ -18160,6 +18175,7 @@ ${args.frameworkKey}`, scratch2, [
|
|
|
18160
18175
|
};
|
|
18161
18176
|
}
|
|
18162
18177
|
var SWIFT_LINK_STAMP = ".peach-link-stamp";
|
|
18178
|
+
var SWIFT_HOST_COMPILER_WRAPPER = ".peach-swiftc";
|
|
18163
18179
|
var SWIFT_FRAMEWORK_SLOTS = 8;
|
|
18164
18180
|
var SWIFT_FRAMEWORK_SLOT_KEY = ".peach-framework-key";
|
|
18165
18181
|
var SWIFT_FRAMEWORK_SLOT_ORIGIN = ".peach-framework-origin";
|
|
@@ -18317,6 +18333,8 @@ function swiftLinkStamp(args) {
|
|
|
18317
18333
|
hash.update(`swift-link/v1
|
|
18318
18334
|
${args.frameworkKey}
|
|
18319
18335
|
`);
|
|
18336
|
+
if (args.packageHostMacros?.length)
|
|
18337
|
+
hash.update("package-host-macros\n" + JSON.stringify(args.packageHostMacros));
|
|
18320
18338
|
if (!args.prebuilt) return hash.digest("hex");
|
|
18321
18339
|
const statOf = (file) => {
|
|
18322
18340
|
const stat = statSync3(file, { bigint: true });
|
|
@@ -18541,11 +18559,13 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
18541
18559
|
});
|
|
18542
18560
|
}
|
|
18543
18561
|
if (options.project) removeProjectLinks(root);
|
|
18562
|
+
const packageHostMacros = process.platform === "linux" ? input.packageHostMacros : void 0;
|
|
18544
18563
|
if (retireStaleSwiftLink(
|
|
18545
18564
|
root,
|
|
18546
18565
|
swiftLinkStamp({
|
|
18547
18566
|
frameworkKey,
|
|
18548
|
-
prebuilt
|
|
18567
|
+
prebuilt,
|
|
18568
|
+
packageHostMacros
|
|
18549
18569
|
})
|
|
18550
18570
|
))
|
|
18551
18571
|
report("framework revision changed; rebuilding the app link");
|
|
@@ -18568,8 +18588,38 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
18568
18588
|
).product.name
|
|
18569
18589
|
] : []
|
|
18570
18590
|
);
|
|
18571
|
-
const projectProcess = options.project ? prepareSwiftProjectProcess(root, options.project) : void 0;
|
|
18572
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;
|
|
18573
18623
|
const appOptions = projectProcess ? {
|
|
18574
18624
|
...buildOptions,
|
|
18575
18625
|
uid: projectProcess.uid,
|
|
@@ -18924,7 +18974,7 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
18924
18974
|
releaseDirectory: path30.dirname(linked),
|
|
18925
18975
|
moduleRoot: frameworkRoot,
|
|
18926
18976
|
toolchainBin: options.toolchainBin,
|
|
18927
|
-
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"),
|
|
18928
18978
|
sysroot: swiftSdkPaths(frameworkRoot, options.toolchainBin).sysroot,
|
|
18929
18979
|
sdk: swiftModuleSdk(frameworkRoot),
|
|
18930
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;
|
package/dist-lib/vite-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 __create = Object.create;
|
|
@@ -11663,7 +11663,11 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
11663
11663
|
const def = definedGlobalSyms.get(symName);
|
|
11664
11664
|
if (def) activateSymbolInObj(def.obj, def.symIdx);
|
|
11665
11665
|
}
|
|
11666
|
-
for (const symName of [
|
|
11666
|
+
for (const symName of [
|
|
11667
|
+
"__peach_dlsym_from_image",
|
|
11668
|
+
"__peach_dlerror",
|
|
11669
|
+
...link ? ["_dyld_register_func_for_add_image"] : []
|
|
11670
|
+
]) {
|
|
11667
11671
|
const provider = lazyProviders.get(symName)?.[0];
|
|
11668
11672
|
if (provider) extractObject(provider);
|
|
11669
11673
|
const def = definedGlobalSyms.get(symName);
|
|
@@ -12216,7 +12220,7 @@ function readString(bytes, position) {
|
|
|
12216
12220
|
const [length, start] = readNumber(bytes, position);
|
|
12217
12221
|
if (start + length > bytes.length) throw new Error("invalid wasm string");
|
|
12218
12222
|
return [
|
|
12219
|
-
Buffer.from(bytes.
|
|
12223
|
+
Buffer.from(bytes.buffer, bytes.byteOffset + start, length).toString("utf8"),
|
|
12220
12224
|
start + length
|
|
12221
12225
|
];
|
|
12222
12226
|
}
|
|
@@ -12243,7 +12247,7 @@ var OBJC_LOAD_FUNCTION = ".objcv2_load_function";
|
|
|
12243
12247
|
function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLookups, preserveCanonical) {
|
|
12244
12248
|
if (Buffer.from(bytes.subarray(0, 8)).toString("hex") !== "0061736d01000000")
|
|
12245
12249
|
throw new Error("expected wasm object");
|
|
12246
|
-
const sections2 = [Buffer.from(bytes.subarray(0, 8))];
|
|
12250
|
+
const sections2 = binding ? [Buffer.from(bytes.subarray(0, 8))] : void 0;
|
|
12247
12251
|
const types = [];
|
|
12248
12252
|
const functionTypes = [];
|
|
12249
12253
|
const definitions = [];
|
|
@@ -12257,8 +12261,9 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
12257
12261
|
const [size, start] = readNumber(bytes, position);
|
|
12258
12262
|
const end = start + size;
|
|
12259
12263
|
if (end > bytes.length) throw new Error("invalid wasm section");
|
|
12260
|
-
let section = Buffer.from(bytes.subarray(start, end));
|
|
12261
12264
|
position = end;
|
|
12265
|
+
if (!sections2 && id > 3) continue;
|
|
12266
|
+
let section = Buffer.from(bytes.buffer, bytes.byteOffset + start, size);
|
|
12262
12267
|
let offset = 0;
|
|
12263
12268
|
const number3 = () => {
|
|
12264
12269
|
const [value, next] = readNumber(section, offset);
|
|
@@ -12286,7 +12291,7 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
12286
12291
|
}
|
|
12287
12292
|
} else if (id === 2) {
|
|
12288
12293
|
const count = number3();
|
|
12289
|
-
const imports2 = [encodeNumber(count)];
|
|
12294
|
+
const imports2 = sections2 ? [encodeNumber(count)] : void 0;
|
|
12290
12295
|
for (let i = 0; i < count; i++) {
|
|
12291
12296
|
const module2 = string4();
|
|
12292
12297
|
const name3 = string4();
|
|
@@ -12330,17 +12335,17 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
12330
12335
|
}
|
|
12331
12336
|
if (isDlsym) usesDlsym = true;
|
|
12332
12337
|
if (isDlerror) usesDlerror = true;
|
|
12333
|
-
imports2
|
|
12338
|
+
imports2?.push(
|
|
12334
12339
|
encodedString(module2),
|
|
12335
12340
|
encodedString(
|
|
12336
|
-
isDlsym ? callerAlias : isDlerror ? "__peach_dlerror" : module2 === "env" && name3 !== "dlsym" && name3 !== "dlerror" ? binding(name3) ?? name3 : name3
|
|
12341
|
+
isDlsym ? callerAlias : isDlerror ? "__peach_dlerror" : module2 === "env" && name3 !== "dlsym" && name3 !== "dlerror" ? binding?.(name3) ?? name3 : name3
|
|
12337
12342
|
),
|
|
12338
12343
|
Buffer.from([kind]),
|
|
12339
12344
|
section.subarray(typeStart, offset)
|
|
12340
12345
|
);
|
|
12341
12346
|
}
|
|
12342
12347
|
if (offset !== section.length) throw new Error("invalid wasm import section");
|
|
12343
|
-
section = Buffer.concat(imports2);
|
|
12348
|
+
if (imports2) section = Buffer.concat(imports2);
|
|
12344
12349
|
} else if (id === 3) {
|
|
12345
12350
|
const count = number3();
|
|
12346
12351
|
for (let i = 0; i < count; i++) functionTypes.push(number3());
|
|
@@ -12424,7 +12429,7 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
12424
12429
|
encodedString(name3 === "dlsym" ? callerAlias : "__peach_dlerror"),
|
|
12425
12430
|
section.subarray(nameEnd, offset)
|
|
12426
12431
|
);
|
|
12427
|
-
} else if (flags & 16 && name3 !== "dlsym" && name3 !== "dlerror" && binding(name3) !== void 0) {
|
|
12432
|
+
} else if (flags & 16 && name3 !== "dlsym" && name3 !== "dlerror" && binding?.(name3) !== void 0) {
|
|
12428
12433
|
entries.push(
|
|
12429
12434
|
section.subarray(begin, nameStart),
|
|
12430
12435
|
encodedString(binding(name3)),
|
|
@@ -12499,10 +12504,10 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
12499
12504
|
section = Buffer.concat(parts);
|
|
12500
12505
|
}
|
|
12501
12506
|
}
|
|
12502
|
-
sections2
|
|
12507
|
+
sections2?.push(Buffer.from([id]), encodeNumber(section.length), section);
|
|
12503
12508
|
}
|
|
12504
12509
|
return {
|
|
12505
|
-
bytes: Buffer.concat(sections2),
|
|
12510
|
+
bytes: sections2 ? Buffer.concat(sections2) : bytes,
|
|
12506
12511
|
definitions,
|
|
12507
12512
|
functionImports,
|
|
12508
12513
|
usesDlsym,
|
|
@@ -12558,7 +12563,7 @@ function createGuestImageLedger(input) {
|
|
|
12558
12563
|
object4.bytes,
|
|
12559
12564
|
aliases,
|
|
12560
12565
|
`__peach_dlsym_caller_${image.id}`,
|
|
12561
|
-
|
|
12566
|
+
void 0,
|
|
12562
12567
|
object4.instrumentDynamicLookups,
|
|
12563
12568
|
/* @__PURE__ */ new Set()
|
|
12564
12569
|
);
|
|
@@ -15154,13 +15159,21 @@ function verifyGuestSymbolScopes(options) {
|
|
|
15154
15159
|
continue;
|
|
15155
15160
|
if (!scope2.includes(provider)) {
|
|
15156
15161
|
const candidates = options.definitionObjects.get(symbol2) ?? /* @__PURE__ */ new Set();
|
|
15157
|
-
const
|
|
15162
|
+
const traced = [...record2.providers.keys()];
|
|
15163
|
+
const strongTraced = traced.filter(
|
|
15164
|
+
(definer) => !options.weakDefinitions.get(definer)?.has(symbol2)
|
|
15165
|
+
);
|
|
15166
|
+
const providers = strongTraced.length === 1 ? strongTraced : traced;
|
|
15158
15167
|
if (options.weakReferences.get(object4)?.has(symbol2) && !providers.some((provider2) => options.systemProviders.has(provider2)))
|
|
15159
15168
|
continue;
|
|
15160
15169
|
const equivalentCopies = providers.length === 1 && candidates.has(providers[0]) && [...candidates].every(
|
|
15161
15170
|
(definer) => options.weakDefinitions.get(definer)?.has(symbol2)
|
|
15162
15171
|
);
|
|
15163
|
-
|
|
15172
|
+
const strongCandidates = [...candidates].filter(
|
|
15173
|
+
(definer) => !options.weakDefinitions.get(definer)?.has(symbol2)
|
|
15174
|
+
);
|
|
15175
|
+
const soleCandidate = candidates.size === 1 || strongCandidates.length === 1 && strongCandidates[0] === providers[0];
|
|
15176
|
+
if (!equivalentCopies && (!soleCandidate || providers.length !== 1 || !candidates.has(providers[0]) || !(options.systemProviders.has(providers[0]) || // a strong undefined reference binds through the process global
|
|
15164
15177
|
// scope, the root image and its dependency closure, as in elf.
|
|
15165
15178
|
provider === 0 || callers.get(0)?.includes(provider) || !options.weakReferences.get(object4)?.has(symbol2) && options.frameworkProviders.get(object4)?.has(providers[0]))))
|
|
15166
15179
|
throw new Error(
|
|
@@ -19005,7 +19018,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
19005
19018
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
19006
19019
|
var MULTI_MANIFEST_VERSION = 72;
|
|
19007
19020
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
19008
|
-
var compilerSourceDigest = true ? "
|
|
19021
|
+
var compilerSourceDigest = true ? "4a6e02699924195639b15c5cdfd8852b5f17fb2ffacb8f9f964ef3daeee8b9dc" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
19009
19022
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
19010
19023
|
const hash = (0, import_node_crypto15.createHash)("sha256");
|
|
19011
19024
|
hash.update(`swift-compile
|
|
@@ -19057,6 +19070,8 @@ ${WASM_LOWER_IDENTITY}
|
|
|
19057
19070
|
hash.update(JSON.stringify(input.staticClangTargets ?? []));
|
|
19058
19071
|
hash.update(JSON.stringify(input.headerAliases ?? {}));
|
|
19059
19072
|
hash.update(JSON.stringify(input.packageGuestImports ?? []));
|
|
19073
|
+
if (input.packageHostMacros?.length)
|
|
19074
|
+
hash.update("package-host-macros\n" + JSON.stringify(input.packageHostMacros));
|
|
19060
19075
|
if (input.defaultLocalization)
|
|
19061
19076
|
hash.update(`default-localization
|
|
19062
19077
|
${input.defaultLocalization}
|
|
@@ -22997,6 +23012,7 @@ ${args.frameworkKey}`, scratch2, [
|
|
|
22997
23012
|
};
|
|
22998
23013
|
}
|
|
22999
23014
|
var SWIFT_LINK_STAMP = ".peach-link-stamp";
|
|
23015
|
+
var SWIFT_HOST_COMPILER_WRAPPER = ".peach-swiftc";
|
|
23000
23016
|
var SWIFT_FRAMEWORK_SLOTS = 8;
|
|
23001
23017
|
var SWIFT_FRAMEWORK_SLOT_KEY = ".peach-framework-key";
|
|
23002
23018
|
var SWIFT_FRAMEWORK_SLOT_ORIGIN = ".peach-framework-origin";
|
|
@@ -23154,6 +23170,8 @@ function swiftLinkStamp(args) {
|
|
|
23154
23170
|
hash.update(`swift-link/v1
|
|
23155
23171
|
${args.frameworkKey}
|
|
23156
23172
|
`);
|
|
23173
|
+
if (args.packageHostMacros?.length)
|
|
23174
|
+
hash.update("package-host-macros\n" + JSON.stringify(args.packageHostMacros));
|
|
23157
23175
|
if (!args.prebuilt) return hash.digest("hex");
|
|
23158
23176
|
const statOf = (file) => {
|
|
23159
23177
|
const stat = (0, import_node_fs29.statSync)(file, { bigint: true });
|
|
@@ -23378,11 +23396,13 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
23378
23396
|
});
|
|
23379
23397
|
}
|
|
23380
23398
|
if (options.project) removeProjectLinks(root);
|
|
23399
|
+
const packageHostMacros = process.platform === "linux" ? input.packageHostMacros : void 0;
|
|
23381
23400
|
if (retireStaleSwiftLink(
|
|
23382
23401
|
root,
|
|
23383
23402
|
swiftLinkStamp({
|
|
23384
23403
|
frameworkKey,
|
|
23385
|
-
prebuilt
|
|
23404
|
+
prebuilt,
|
|
23405
|
+
packageHostMacros
|
|
23386
23406
|
})
|
|
23387
23407
|
))
|
|
23388
23408
|
report("framework revision changed; rebuilding the app link");
|
|
@@ -23405,8 +23425,38 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
23405
23425
|
).product.name
|
|
23406
23426
|
] : []
|
|
23407
23427
|
);
|
|
23408
|
-
const projectProcess = options.project ? prepareSwiftProjectProcess(root, options.project) : void 0;
|
|
23409
23428
|
const compiler = preparation.targetToolset ? { CC: import_node_path30.default.join(root, CLANG_TARGET_MODULE_WRAPPER) } : {};
|
|
23429
|
+
if (packageHostMacros?.length) {
|
|
23430
|
+
const swiftc = import_node_path30.default.join(root, SWIFT_HOST_COMPILER_WRAPPER);
|
|
23431
|
+
writeBuildFile(
|
|
23432
|
+
swiftc,
|
|
23433
|
+
[
|
|
23434
|
+
"#!/bin/sh",
|
|
23435
|
+
"target=",
|
|
23436
|
+
"module=",
|
|
23437
|
+
"compile=",
|
|
23438
|
+
"previous=",
|
|
23439
|
+
"for argument do",
|
|
23440
|
+
' case "$previous" in -target) target=$argument ;; -module-name) module=$argument ;; esac',
|
|
23441
|
+
' case "$argument" in -c|-emit-module|-scan-dependencies|-typecheck) compile=1 ;; esac',
|
|
23442
|
+
" previous=$argument",
|
|
23443
|
+
"done",
|
|
23444
|
+
'case "$target/$compile" in',
|
|
23445
|
+
" *-*-linux*/1)",
|
|
23446
|
+
' case ",$PEACH_SWIFT_HOST_MACROS," in',
|
|
23447
|
+
' *",$module,"*) set -- "$@" -Xfrontend -import-module -Xfrontend Foundation ;;',
|
|
23448
|
+
" esac ;;",
|
|
23449
|
+
"esac",
|
|
23450
|
+
'exec "$PEACH_SWIFTC" "$@"',
|
|
23451
|
+
""
|
|
23452
|
+
].join("\n")
|
|
23453
|
+
);
|
|
23454
|
+
(0, import_node_fs29.chmodSync)(swiftc, 493);
|
|
23455
|
+
compiler.SWIFT_EXEC = swiftc;
|
|
23456
|
+
compiler.PEACH_SWIFT_HOST_MACROS = packageHostMacros.join(",");
|
|
23457
|
+
compiler.PEACH_SWIFTC = import_node_path30.default.join(options.toolchainBin, "swiftc");
|
|
23458
|
+
}
|
|
23459
|
+
const projectProcess = options.project ? prepareSwiftProjectProcess(root, options.project) : void 0;
|
|
23410
23460
|
const appOptions = projectProcess ? {
|
|
23411
23461
|
...buildOptions,
|
|
23412
23462
|
uid: projectProcess.uid,
|
|
@@ -23761,7 +23811,7 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
23761
23811
|
releaseDirectory: import_node_path30.default.dirname(linked),
|
|
23762
23812
|
moduleRoot: frameworkRoot,
|
|
23763
23813
|
toolchainBin: options.toolchainBin,
|
|
23764
|
-
swiftCompiler: preparation.headerCompiler ? import_node_path30.default.join(root, SWIFT_HEADER_COMPILER_WRAPPER) : import_node_path30.default.join(options.toolchainBin, "swiftc"),
|
|
23814
|
+
swiftCompiler: preparation.headerCompiler ? import_node_path30.default.join(root, SWIFT_HEADER_COMPILER_WRAPPER) : compiler.SWIFT_EXEC ?? import_node_path30.default.join(options.toolchainBin, "swiftc"),
|
|
23765
23815
|
sysroot: swiftSdkPaths(frameworkRoot, options.toolchainBin).sysroot,
|
|
23766
23816
|
sdk: swiftModuleSdk(frameworkRoot),
|
|
23767
23817
|
staticClangTargets: input.staticClangTargets ?? [],
|
|
@@ -26575,7 +26625,7 @@ function configurationFlags(configuration) {
|
|
|
26575
26625
|
"--action_env=PATH"
|
|
26576
26626
|
];
|
|
26577
26627
|
}
|
|
26578
|
-
var GRAPH_FORMAT =
|
|
26628
|
+
var GRAPH_FORMAT = 6;
|
|
26579
26629
|
function bazelGraph(root, label, configuration) {
|
|
26580
26630
|
const key2 = JSON.stringify([root, label, configuration]);
|
|
26581
26631
|
const cached = graphs.get(key2);
|
|
@@ -26599,8 +26649,10 @@ function bazelGraph(root, label, configuration) {
|
|
|
26599
26649
|
);
|
|
26600
26650
|
const deps = app2.attrs.get("deps")?.list ?? [];
|
|
26601
26651
|
if (deps.length === 0) throw new Error(`${label} links no libraries`);
|
|
26652
|
+
const strings = app2.attrs.get("strings")?.list ?? [];
|
|
26602
26653
|
const infoplists = app2.attrs.get("infoplists")?.list ?? [];
|
|
26603
|
-
const
|
|
26654
|
+
const roots = [...deps, ...strings];
|
|
26655
|
+
const query = `kind("${QUERIED_RULES.join("|")}", deps(set(${roots.join(" ")})))${infoplists.length > 0 ? ` + set(${infoplists.join(" ")})` : ""}`;
|
|
26604
26656
|
const output2 = run5(["cquery", query, ...flags, "--output=jsonproto"]);
|
|
26605
26657
|
const defaults = run5([
|
|
26606
26658
|
"cquery",
|
|
@@ -27030,8 +27082,14 @@ ${published.map(
|
|
|
27030
27082
|
graph.app.attrs.get("infoplists")?.list ?? [],
|
|
27031
27083
|
graph.app.label
|
|
27032
27084
|
);
|
|
27085
|
+
const strings = files2.expand(
|
|
27086
|
+
graph.app.attrs.get("strings")?.list ?? [],
|
|
27087
|
+
graph.app.label
|
|
27088
|
+
);
|
|
27089
|
+
resources.push(...strings);
|
|
27033
27090
|
const absent = () => [
|
|
27034
27091
|
...infoPlistFiles,
|
|
27092
|
+
...strings,
|
|
27035
27093
|
...[...frameworks, appModule].flatMap((module2) => [
|
|
27036
27094
|
...module2.allSources,
|
|
27037
27095
|
...module2.objc?.headers ?? []
|
|
@@ -27075,7 +27133,7 @@ ${published.map(
|
|
|
27075
27133
|
const missing = options.requireSources === false ? [] : absent();
|
|
27076
27134
|
if (missing.length > 0)
|
|
27077
27135
|
throw new Error(
|
|
27078
|
-
`bazel
|
|
27136
|
+
`bazel application has ${missing.length} unbuilt inputs: ${missing.slice(0, 5).map((file) => import_node_path33.default.relative(root, file)).join(", ")}`
|
|
27079
27137
|
);
|
|
27080
27138
|
const archives = /* @__PURE__ */ new Map();
|
|
27081
27139
|
for (const rule of order) {
|
|
@@ -34883,7 +34941,7 @@ function sourceClosureDigest(srcDir, entrypoints, excludedFiles) {
|
|
|
34883
34941
|
return hash.digest("hex");
|
|
34884
34942
|
}
|
|
34885
34943
|
var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
34886
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
34944
|
+
var STANDIN_SOURCE_DIGEST = true ? "2517dacc106de8d2cadefded667b8502b029a35f04f5453646eb48792e0fb55c" : standinSourceDigest();
|
|
34887
34945
|
|
|
34888
34946
|
// src/swift-standins.ts
|
|
34889
34947
|
var import_node_child_process32 = require("node:child_process");
|
|
@@ -42278,6 +42336,13 @@ function packageSnapshot(project, entry, moduleRoot) {
|
|
|
42278
42336
|
...Object.keys(projectFiles).length > 0 ? { projectFiles } : {},
|
|
42279
42337
|
...Object.keys(packageFiles2).length > 0 ? {
|
|
42280
42338
|
packageFiles: packageFiles2,
|
|
42339
|
+
packageHostMacros: [
|
|
42340
|
+
...new Set(
|
|
42341
|
+
(layout2?.packages.nativePackages ?? []).flatMap(
|
|
42342
|
+
({ manifest }) => [...manifest.targets.values()].filter((target) => target.type === "macro").map((target) => swiftTargetModuleName(target.name))
|
|
42343
|
+
)
|
|
42344
|
+
)
|
|
42345
|
+
].sort(),
|
|
42281
42346
|
packageGuestImports: [
|
|
42282
42347
|
...new Set(
|
|
42283
42348
|
(layout2?.packages.nativePackages ?? []).flatMap(
|
|
@@ -42344,7 +42409,8 @@ function snapshotCompileInput(snapshot) {
|
|
|
42344
42409
|
files: snapshot.files,
|
|
42345
42410
|
...snapshot.packageFiles ? {
|
|
42346
42411
|
packageFiles: snapshot.packageFiles,
|
|
42347
|
-
packageGuestImports: snapshot.packageGuestImports
|
|
42412
|
+
packageGuestImports: snapshot.packageGuestImports,
|
|
42413
|
+
packageHostMacros: snapshot.packageHostMacros
|
|
42348
42414
|
} : {},
|
|
42349
42415
|
...snapshot.projectFiles ? { projectFiles: snapshot.projectFiles } : {},
|
|
42350
42416
|
...snapshot.nativeTargets ? { nativeTargets: snapshot.nativeTargets } : {},
|
|
@@ -42617,7 +42683,8 @@ async function compileRemote(packagePath, snapshot, hosted, ownerSignal) {
|
|
|
42617
42683
|
files: snapshot.files,
|
|
42618
42684
|
...snapshot.packageFiles ? {
|
|
42619
42685
|
packageFiles: snapshot.packageFiles,
|
|
42620
|
-
packageGuestImports: snapshot.packageGuestImports
|
|
42686
|
+
packageGuestImports: snapshot.packageGuestImports,
|
|
42687
|
+
packageHostMacros: snapshot.packageHostMacros
|
|
42621
42688
|
} : {},
|
|
42622
42689
|
...snapshot.nativeTargets ? { nativeTargets: snapshot.nativeTargets } : {},
|
|
42623
42690
|
...snapshot.sourceLinkGraph ? { sourceLinkGraph: snapshot.sourceLinkGraph } : {},
|
package/dist-lib/vite.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 __create = Object.create;
|
|
@@ -4392,7 +4392,7 @@ var STANDIN_SOURCE_DIGEST;
|
|
|
4392
4392
|
var init_swift_standin_digest = __esm({
|
|
4393
4393
|
"src/swift-standin-digest.ts"() {
|
|
4394
4394
|
"use strict";
|
|
4395
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
4395
|
+
STANDIN_SOURCE_DIGEST = true ? "2517dacc106de8d2cadefded667b8502b029a35f04f5453646eb48792e0fb55c" : standinSourceDigest();
|
|
4396
4396
|
}
|
|
4397
4397
|
});
|
|
4398
4398
|
|
|
@@ -5823,7 +5823,7 @@ var init_swift_compile = __esm({
|
|
|
5823
5823
|
FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
|
|
5824
5824
|
(module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
|
|
5825
5825
|
).join("");
|
|
5826
|
-
compilerSourceDigest = true ? "
|
|
5826
|
+
compilerSourceDigest = true ? "4a6e02699924195639b15c5cdfd8852b5f17fb2ffacb8f9f964ef3daeee8b9dc" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
5827
5827
|
C_WORDS = new Set(
|
|
5828
5828
|
"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(
|
|
5829
5829
|
" "
|
|
@@ -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;
|
|
@@ -555,6 +555,7 @@ export declare class SootSimNode extends NativeNodeRecord {
|
|
|
555
555
|
x: number;
|
|
556
556
|
y: number;
|
|
557
557
|
};
|
|
558
|
+
getTranslatedPositionIn(ancestor: SootSimNode): NodePoint | null;
|
|
558
559
|
getAbsolutePosition(options?: {
|
|
559
560
|
ignorePresentationLayerTransforms?: boolean;
|
|
560
561
|
ignoreSelfTransform?: boolean;
|