peachsim 0.1.2423 → 0.1.2426
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/outbound-endpoints.ts +138 -23
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +122 -29
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +121 -28
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +122 -29
- package/dist-lib/host/fetch-proxy-handler.cjs +3 -3
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +24 -9
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +22 -7
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +24 -9
- package/dist-lib/native-app-identity-project.cjs +2 -2
- package/dist-lib/native-app-identity-project.mjs +2 -2
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +24 -24
- package/dist-lib/public-origins-lib.json +53 -53
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +140 -40
- package/dist-lib/swift-compile.cjs +87 -15
- package/dist-lib/swift-compile.mjs +87 -15
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +97 -19
- package/dist-lib/vite.cjs +24 -9
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/svg-native.d.ts +60 -0
- package/dist-types/packages/peach-globals/src/lockstepCaptureBridgeContract.d.ts +1 -0
- package/kotlin/README.md +4 -3
- package/kotlin/sdk.tar.gz +0 -0
- package/kotlin/toolchain.json +2 -2
- package/package.json +1 -1
- package/src/native-static-libraries.ts +2 -1
- package/src/swift-compile.ts +1 -0
- package/src/swift-guest-compile.ts +2 -0
- package/src/swift-guest-image-ledger.ts +37 -2
- package/src/swift-guest-source-inputs.ts +45 -6
- package/src/swift-standin-builtin-behavior.ts +3 -0
- package/src/swift-standin-emit.ts +10 -1
- package/src/visit-parsed-program.ts +21 -6
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2426 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -5984,7 +5984,7 @@ var init_supported_native_packages = __esm({
|
|
|
5984
5984
|
"expo-linking",
|
|
5985
5985
|
// seam+coverage
|
|
5986
5986
|
"expo-live-activity",
|
|
5987
|
-
//
|
|
5987
|
+
// compiled-swift
|
|
5988
5988
|
"expo-live-photo",
|
|
5989
5989
|
// seam+coverage
|
|
5990
5990
|
"expo-local-authentication",
|
|
@@ -6042,7 +6042,7 @@ var init_supported_native_packages = __esm({
|
|
|
6042
6042
|
"expo-sensors",
|
|
6043
6043
|
// semantic-proof+seam
|
|
6044
6044
|
"expo-share-extension",
|
|
6045
|
-
//
|
|
6045
|
+
// compiled-swift
|
|
6046
6046
|
"expo-share-intent",
|
|
6047
6047
|
// seam
|
|
6048
6048
|
"expo-sharing",
|
|
@@ -14184,9 +14184,9 @@ var init_registry = __esm({
|
|
|
14184
14184
|
{
|
|
14185
14185
|
range: ">=0.4.2 <0.5.0",
|
|
14186
14186
|
coverage: 0.7,
|
|
14187
|
-
note: "
|
|
14188
|
-
working: "
|
|
14189
|
-
missing: "
|
|
14187
|
+
note: "iOS compiles the upstream Expo module and uses the shared ActivityKit implementation.",
|
|
14188
|
+
working: "activity creation, updates, immediate dismissal, state events, and multiple activities with NSSupportsLiveActivities enabled",
|
|
14189
|
+
missing: "ActivityKit push token delivery and this package\u2019s WidgetKit extension rendering are unverified"
|
|
14190
14190
|
}
|
|
14191
14191
|
]
|
|
14192
14192
|
},
|
|
@@ -14574,8 +14574,8 @@ var init_registry = __esm({
|
|
|
14574
14574
|
{
|
|
14575
14575
|
range: ">=1.0.0",
|
|
14576
14576
|
coverage: 0.75,
|
|
14577
|
-
note: "
|
|
14578
|
-
missing: "system extension
|
|
14577
|
+
note: "iOS compiles the upstream Expo module and uses the shared App Group container for cleanup.",
|
|
14578
|
+
missing: "system share extension presentation and host app launching from the extension"
|
|
14579
14579
|
}
|
|
14580
14580
|
]
|
|
14581
14581
|
},
|
|
@@ -15982,8 +15982,8 @@ var init_registry = __esm({
|
|
|
15982
15982
|
{
|
|
15983
15983
|
range: ">=1.0.0",
|
|
15984
15984
|
coverage: 0.75,
|
|
15985
|
-
note: "
|
|
15986
|
-
working: "getInitialSearchItem
|
|
15985
|
+
note: "the published JS runs over the native seam. Index mutations reject with the CoreSpotlight indexingUnsupported error from an unavailable index.",
|
|
15986
|
+
working: "getInitialSearchItem resolves null without a tap-through launch; index and delete calls report CoreSpotlight indexingUnsupported through the React Native error bridge",
|
|
15987
15987
|
missing: "no OS Spotlight index or tap-through launch events in the browser"
|
|
15988
15988
|
}
|
|
15989
15989
|
]
|
|
@@ -19532,11 +19532,18 @@ var init_registry = __esm({
|
|
|
19532
19532
|
stubType: "native",
|
|
19533
19533
|
versions: [
|
|
19534
19534
|
{
|
|
19535
|
-
range: ">=1.1.0",
|
|
19535
|
+
range: ">=1.1.0 <2.0.0",
|
|
19536
19536
|
coverage: 0,
|
|
19537
|
-
note: "unsupported Android SMS OTP autofill module",
|
|
19537
|
+
note: "unsupported Android SMS OTP autofill module (Expo module, no iOS native code)",
|
|
19538
19538
|
working: "no OTP autofill behavior is verified",
|
|
19539
19539
|
missing: "AvasOtpAutofill app hash, SMS listener lifecycle, parsing, and events"
|
|
19540
|
+
},
|
|
19541
|
+
{
|
|
19542
|
+
range: ">=2.0.0",
|
|
19543
|
+
coverage: 0,
|
|
19544
|
+
note: "unsupported Android SMS OTP autofill module (OtpAutofill TurboModule, no iOS native code; read from 2.0.0 source, not run)",
|
|
19545
|
+
working: "no OTP autofill behavior is verified",
|
|
19546
|
+
missing: "OtpAutofill getAppHash, startListening and stopListening"
|
|
19540
19547
|
}
|
|
19541
19548
|
]
|
|
19542
19549
|
},
|
|
@@ -40247,7 +40254,10 @@ function emitSwiftStandin(sourceGraphs, options) {
|
|
|
40247
40254
|
/@(\w+)(?:\([^)]*\))?\s*/g,
|
|
40248
40255
|
(attr, name3) => typeByPath.has(name3) ? "" : attr
|
|
40249
40256
|
) : spelledAttrs;
|
|
40250
|
-
const
|
|
40257
|
+
const selector = context.inClass && !options.inert && member.kind.identifier === "swift.type.method" && !/\basync\b/.test(rest) ? /^c:objc\(cs\)\w+\(cm\)([A-Za-z_][A-Za-z_0-9:]*)$/.exec(
|
|
40258
|
+
member.identifier.precise
|
|
40259
|
+
)?.[1] : void 0;
|
|
40260
|
+
const attrs = options.unobjc?.has(path154) ? wrapped.replace(/@objc(?:\([^)]*\))?\s*/g, "") : `${wrapped}${selector ? `@objc(${selector}) ` : ""}`;
|
|
40251
40261
|
const modifiers = /^((?:(?:required|final|override|convenience|unowned(?:\(\w+\))?|weak|lazy|nonisolated|mutating|nonmutating) )*)(.*)$/s.exec(
|
|
40252
40262
|
rest
|
|
40253
40263
|
);
|
|
@@ -45193,19 +45203,34 @@ var init_nitro_source = __esm({
|
|
|
45193
45203
|
|
|
45194
45204
|
// src/visit-parsed-program.ts
|
|
45195
45205
|
function visitParsedProgram(program, visitor) {
|
|
45206
|
+
const enterByType = /* @__PURE__ */ new Map();
|
|
45207
|
+
const exitByType = /* @__PURE__ */ new Map();
|
|
45208
|
+
for (const key2 of Object.keys(visitor)) {
|
|
45209
|
+
const handler = Reflect.get(visitor, key2);
|
|
45210
|
+
if (typeof handler !== "function") continue;
|
|
45211
|
+
const invoke = (node) => {
|
|
45212
|
+
handler(node);
|
|
45213
|
+
};
|
|
45214
|
+
if (key2.endsWith(":exit")) exitByType.set(key2.slice(0, -5), invoke);
|
|
45215
|
+
else enterByType.set(key2, invoke);
|
|
45216
|
+
}
|
|
45217
|
+
if (enterByType.size === 0 && exitByType.size === 0) return;
|
|
45218
|
+
const hasExit = exitByType.size > 0;
|
|
45196
45219
|
function visit3(value) {
|
|
45197
45220
|
if (Array.isArray(value)) {
|
|
45198
|
-
for (
|
|
45221
|
+
for (let i = 0; i < value.length; i++) visit3(value[i]);
|
|
45199
45222
|
return;
|
|
45200
45223
|
}
|
|
45201
45224
|
if (!isRecord(value) || typeof value.type !== "string") return;
|
|
45202
45225
|
const keys = import_oxc_parser.visitorKeys[value.type];
|
|
45203
45226
|
if (!keys) return;
|
|
45204
|
-
const enter =
|
|
45205
|
-
if (
|
|
45206
|
-
for (
|
|
45207
|
-
|
|
45208
|
-
|
|
45227
|
+
const enter = enterByType.get(value.type);
|
|
45228
|
+
if (enter) enter(value);
|
|
45229
|
+
for (let i = 0; i < keys.length; i++) visit3(value[keys[i]]);
|
|
45230
|
+
if (hasExit) {
|
|
45231
|
+
const exit = exitByType.get(value.type);
|
|
45232
|
+
if (exit) exit(value);
|
|
45233
|
+
}
|
|
45209
45234
|
}
|
|
45210
45235
|
visit3(program);
|
|
45211
45236
|
}
|
|
@@ -60718,7 +60743,8 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
60718
60743
|
if (sectionName === "linking") {
|
|
60719
60744
|
const version2 = number4();
|
|
60720
60745
|
if (version2 !== 2) throw new Error("unsupported wasm linking version");
|
|
60721
|
-
const
|
|
60746
|
+
const subsections = [];
|
|
60747
|
+
let objcLoader;
|
|
60722
60748
|
while (offset < section.length) {
|
|
60723
60749
|
const kind = section[offset++];
|
|
60724
60750
|
const length = number4();
|
|
@@ -60781,6 +60807,9 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
60781
60807
|
}
|
|
60782
60808
|
} else if (symbolKind === 3) number4();
|
|
60783
60809
|
else throw new Error("unsupported wasm symbol kind");
|
|
60810
|
+
if (name3 === OBJC_LOAD_FUNCTION && symbolKind === 0 && !(flags & 16)) {
|
|
60811
|
+
objcLoader = i;
|
|
60812
|
+
}
|
|
60784
60813
|
const alias = names.get(name3);
|
|
60785
60814
|
if (flags & 16 && symbolKind === 1 && alias) usedSymbols.add(name3);
|
|
60786
60815
|
if ((name3 === "dlsym" && usesDlsym || name3 === "dlerror" && usesDlerror) && flags & 16 && flags & 64 && symbolKind === 0) {
|
|
@@ -60830,7 +60859,36 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
60830
60859
|
content = Buffer.concat([...entries, ...extraEntries]);
|
|
60831
60860
|
}
|
|
60832
60861
|
offset = stop;
|
|
60833
|
-
|
|
60862
|
+
subsections.push({ kind, content });
|
|
60863
|
+
}
|
|
60864
|
+
const parts = [encodedString(sectionName), encodeNumber(version2)];
|
|
60865
|
+
for (const subsection of subsections) {
|
|
60866
|
+
let content = subsection.content;
|
|
60867
|
+
if (subsection.kind === 6 && objcLoader !== void 0) {
|
|
60868
|
+
const [count, entriesStart] = readNumber(content, 0);
|
|
60869
|
+
const entries = [content.subarray(0, entriesStart)];
|
|
60870
|
+
let entryStart = entriesStart;
|
|
60871
|
+
for (let i = 0; i < count; i++) {
|
|
60872
|
+
const [, symbolStart] = readNumber(content, entryStart);
|
|
60873
|
+
const [symbol2, entryEnd] = readNumber(content, symbolStart);
|
|
60874
|
+
if (symbol2 === objcLoader) entries.push(encodeNumber(1));
|
|
60875
|
+
entries.push(
|
|
60876
|
+
content.subarray(
|
|
60877
|
+
symbol2 === objcLoader ? symbolStart : entryStart,
|
|
60878
|
+
entryEnd
|
|
60879
|
+
)
|
|
60880
|
+
);
|
|
60881
|
+
entryStart = entryEnd;
|
|
60882
|
+
}
|
|
60883
|
+
if (entryStart !== content.length)
|
|
60884
|
+
throw new Error("invalid init functions subsection");
|
|
60885
|
+
content = Buffer.concat(entries);
|
|
60886
|
+
}
|
|
60887
|
+
parts.push(
|
|
60888
|
+
Buffer.from([subsection.kind]),
|
|
60889
|
+
encodeNumber(content.length),
|
|
60890
|
+
content
|
|
60891
|
+
);
|
|
60834
60892
|
}
|
|
60835
60893
|
section = Buffer.concat(parts);
|
|
60836
60894
|
}
|
|
@@ -61124,11 +61182,12 @@ function createGuestImageLedger(input) {
|
|
|
61124
61182
|
llvmIR: ir.join("\n") + "\n"
|
|
61125
61183
|
};
|
|
61126
61184
|
}
|
|
61127
|
-
var OBJC_INIT_RECORD;
|
|
61185
|
+
var OBJC_INIT_RECORD, OBJC_LOAD_FUNCTION;
|
|
61128
61186
|
var init_swift_guest_image_ledger = __esm({
|
|
61129
61187
|
"src/swift-guest-image-ledger.ts"() {
|
|
61130
61188
|
"use strict";
|
|
61131
61189
|
OBJC_INIT_RECORD = ".objc_init";
|
|
61190
|
+
OBJC_LOAD_FUNCTION = ".objcv2_load_function";
|
|
61132
61191
|
}
|
|
61133
61192
|
});
|
|
61134
61193
|
|
|
@@ -63785,7 +63844,7 @@ function sourceGuestClangLinkOptions(options) {
|
|
|
63785
63844
|
commands.set(file, { tool, args: value });
|
|
63786
63845
|
}
|
|
63787
63846
|
}
|
|
63788
|
-
const
|
|
63847
|
+
const replays = [];
|
|
63789
63848
|
for (const [index, file] of [...wanted].entries()) {
|
|
63790
63849
|
const command = commands.get(file);
|
|
63791
63850
|
if (!command) throw new Error(`missing source object producer ${file}`);
|
|
@@ -63811,16 +63870,33 @@ function sourceGuestClangLinkOptions(options) {
|
|
|
63811
63870
|
throw new Error(`missing clang ${flag} for ${file}`);
|
|
63812
63871
|
args[index2 + 1] = flag === "-o" ? output2 : `${output2}.d`;
|
|
63813
63872
|
}
|
|
63814
|
-
|
|
63815
|
-
|
|
63816
|
-
[
|
|
63817
|
-
|
|
63818
|
-
|
|
63873
|
+
replays.push({
|
|
63874
|
+
file,
|
|
63875
|
+
compiler: command.args[0],
|
|
63876
|
+
args: [...args, "-S", "-emit-llvm", "-Xclang", "-disable-llvm-passes"],
|
|
63877
|
+
output: output2
|
|
63878
|
+
});
|
|
63879
|
+
}
|
|
63880
|
+
const plan = import_node_path49.default.join(options.directory, "clang-link-replays.json");
|
|
63881
|
+
(0, import_node_fs53.writeFileSync)(
|
|
63882
|
+
plan,
|
|
63883
|
+
JSON.stringify(replays.map(({ compiler, args }) => [compiler, ...args]))
|
|
63884
|
+
);
|
|
63885
|
+
(0, import_node_child_process29.execFileSync)(process.execPath, ["-e", PARALLEL_REPLAY], {
|
|
63886
|
+
stdio: "inherit",
|
|
63887
|
+
env: {
|
|
63888
|
+
...process.env,
|
|
63889
|
+
PEACH_CLANG_REPLAYS: plan,
|
|
63890
|
+
PEACH_CLANG_JOBS: String(options.jobs)
|
|
63891
|
+
}
|
|
63892
|
+
});
|
|
63893
|
+
const result = /* @__PURE__ */ new Map();
|
|
63894
|
+
for (const { file, output: output2 } of replays) {
|
|
63819
63895
|
const flags = clangIrLinkOptions((0, import_node_fs53.readFileSync)(output2, "utf8"));
|
|
63820
|
-
for (let
|
|
63821
|
-
const flag = flags[
|
|
63896
|
+
for (let index = 0; index < flags.length; index++) {
|
|
63897
|
+
const flag = flags[index];
|
|
63822
63898
|
if (flag === "-framework" || flag === "-l" || flag === "--library") {
|
|
63823
|
-
const name3 = flags[++
|
|
63899
|
+
const name3 = flags[++index];
|
|
63824
63900
|
if (!name3 || name3.startsWith("-"))
|
|
63825
63901
|
throw new Error(`missing clang link name after ${flag}`);
|
|
63826
63902
|
} else if (!/^(-l.+|--library=.+)$/.test(flag)) {
|
|
@@ -64046,7 +64122,7 @@ function logicalGuestLinkOptions(args, identities, roots) {
|
|
|
64046
64122
|
}
|
|
64047
64123
|
return output2;
|
|
64048
64124
|
}
|
|
64049
|
-
var import_node_child_process29, import_node_crypto28, import_node_fs53, import_node_path49, CLANG_TARGET_MODULE_WRAPPER;
|
|
64125
|
+
var import_node_child_process29, import_node_crypto28, import_node_fs53, import_node_path49, CLANG_TARGET_MODULE_WRAPPER, PARALLEL_REPLAY;
|
|
64050
64126
|
var init_swift_guest_source_inputs = __esm({
|
|
64051
64127
|
"src/swift-guest-source-inputs.ts"() {
|
|
64052
64128
|
"use strict";
|
|
@@ -64057,6 +64133,25 @@ var init_swift_guest_source_inputs = __esm({
|
|
|
64057
64133
|
init_swift_guest_source_plan();
|
|
64058
64134
|
init_swift_runtime_products();
|
|
64059
64135
|
CLANG_TARGET_MODULE_WRAPPER = ".peach-clang";
|
|
64136
|
+
PARALLEL_REPLAY = `
|
|
64137
|
+
const { spawn } = require('node:child_process')
|
|
64138
|
+
const commands = JSON.parse(require('node:fs').readFileSync(process.env.PEACH_CLANG_REPLAYS, 'utf8'))
|
|
64139
|
+
let next = 0
|
|
64140
|
+
const run = () => {
|
|
64141
|
+
if (next >= commands.length) return Promise.resolve()
|
|
64142
|
+
const [file, ...args] = commands[next++]
|
|
64143
|
+
return new Promise((resolve, reject) => {
|
|
64144
|
+
const child = spawn(file, args, { stdio: 'inherit' })
|
|
64145
|
+
child.on('error', reject)
|
|
64146
|
+
child.on('close', (code) => (code === 0 ? resolve() : reject(new Error('clang link replay failed: ' + file))))
|
|
64147
|
+
}).then(run)
|
|
64148
|
+
}
|
|
64149
|
+
const jobs = Math.max(1, Number(process.env.PEACH_CLANG_JOBS) || 1)
|
|
64150
|
+
Promise.all(Array.from({ length: jobs }, run)).catch((error) => {
|
|
64151
|
+
console.error(error.message)
|
|
64152
|
+
process.exit(1)
|
|
64153
|
+
})
|
|
64154
|
+
`;
|
|
64060
64155
|
}
|
|
64061
64156
|
});
|
|
64062
64157
|
|
|
@@ -64631,7 +64726,8 @@ async function compileGuestLink(options) {
|
|
|
64631
64726
|
directory: directory2,
|
|
64632
64727
|
toolchainBin: options.toolchainBin,
|
|
64633
64728
|
swiftCompiler: options.swiftCompiler,
|
|
64634
|
-
objects: selectedSource.map((artifact) => artifact.path)
|
|
64729
|
+
objects: selectedSource.map((artifact) => artifact.path),
|
|
64730
|
+
jobs: options.jobs
|
|
64635
64731
|
});
|
|
64636
64732
|
const links = sourceGuestRuntimeLinks({
|
|
64637
64733
|
toolchainBin: options.toolchainBin,
|
|
@@ -71308,7 +71404,8 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
71308
71404
|
generatedOwners: preparation.generatedOwners,
|
|
71309
71405
|
output: output2,
|
|
71310
71406
|
optimized,
|
|
71311
|
-
optimize: input.optimize === true
|
|
71407
|
+
optimize: input.optimize === true,
|
|
71408
|
+
jobs: swiftBuildJobs()
|
|
71312
71409
|
});
|
|
71313
71410
|
else
|
|
71314
71411
|
await lowerWasm(output2, optimized, { optimize: input.optimize === true });
|
|
@@ -71578,7 +71675,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
|
|
|
71578
71675
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
71579
71676
|
MULTI_MANIFEST_VERSION = 72;
|
|
71580
71677
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
71581
|
-
compilerSourceDigest = true ? "
|
|
71678
|
+
compilerSourceDigest = true ? "714dbca336e958240697a0238ee5b0640b2b212c34df4843e82d0c1abe3e8c43" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
71582
71679
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
71583
71680
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
71584
71681
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -78327,7 +78424,7 @@ var init_swift_standin_digest = __esm({
|
|
|
78327
78424
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
78328
78425
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
78329
78426
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
78330
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
78427
|
+
STANDIN_SOURCE_DIGEST = true ? "76ba6566c9c2d1f2324dcae610243363f830f57e3753da053da53d749835e23a" : standinSourceDigest();
|
|
78331
78428
|
}
|
|
78332
78429
|
});
|
|
78333
78430
|
|
|
@@ -78822,7 +78919,7 @@ __export(expo_native_prebuilt_exports, {
|
|
|
78822
78919
|
servedExpoSwift: () => servedExpoSwift
|
|
78823
78920
|
});
|
|
78824
78921
|
function expoNativeCompilerDigestValue() {
|
|
78825
|
-
return true ? "
|
|
78922
|
+
return true ? "95d2f7fa52acb2c71a46d85b46df4e8307bc027d7bdcfed61fe9ce704175db4b" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
78826
78923
|
}
|
|
78827
78924
|
function readSources(value) {
|
|
78828
78925
|
const sources = isRecord(value) ? value.sources : null;
|
|
@@ -79312,11 +79409,11 @@ function nativeStaticLibrary(file, recipe2, moduleRoot) {
|
|
|
79312
79409
|
return "runtime" in recipe2 ? rustStaticLibrary(archive, moduleRoot) : archive;
|
|
79313
79410
|
}
|
|
79314
79411
|
function isRustSymbol(name3, demangled) {
|
|
79315
|
-
return (name3.startsWith("_R") || /^_ZN.*17h[0-9a-f]{16}E$/.test(name3)) && demangled !== name3 || name3 === "rust_eh_personality" || name3 === "__getrandom_v03_custom";
|
|
79412
|
+
return (name3.startsWith("_R") || /^_ZN.*17h[0-9a-f]{16}E$/.test(name3)) && demangled !== name3 || name3 === "rust_eh_personality" || name3 === "__getrandom_custom" || name3 === "__getrandom_v03_custom";
|
|
79316
79413
|
}
|
|
79317
79414
|
function rustStaticLibrary(file, moduleRoot) {
|
|
79318
79415
|
const toolchain = swiftModuleToolchain(moduleRoot);
|
|
79319
|
-
const key2 = (0, import_node_crypto45.createHash)("sha256").update("rust-c-abi-
|
|
79416
|
+
const key2 = (0, import_node_crypto45.createHash)("sha256").update("rust-c-abi-v3\0").update(toolchain.release).update("\0").update(import_node_fs80.default.readFileSync(file)).digest("hex");
|
|
79320
79417
|
const directory2 = import_node_path78.default.join(cacheDir(), "native-archives", key2);
|
|
79321
79418
|
const archive = import_node_path78.default.join(directory2, "library.a");
|
|
79322
79419
|
if (import_node_fs80.default.existsSync(archive)) return archive;
|
|
@@ -81159,6 +81256,9 @@ var init_swift_standin_builtin_behavior = __esm({
|
|
|
81159
81256
|
"src/swift-standin-builtin-behavior.ts"() {
|
|
81160
81257
|
"use strict";
|
|
81161
81258
|
BUILTIN_STANDIN_BEHAVIOR = {
|
|
81259
|
+
FirebaseAnalytics: {
|
|
81260
|
+
"Analytics.logEvent(_:parameters:)": { body: "" }
|
|
81261
|
+
},
|
|
81162
81262
|
GoogleCast: {
|
|
81163
81263
|
kGCKCastDeviceCategory: { body: 'return "com.google.cast.CastDevice"' },
|
|
81164
81264
|
kGCKDefaultMediaReceiverApplicationID: { body: 'return "CC1AD845"' },
|
|
@@ -102025,7 +102125,7 @@ var init_nitro_superset = __esm({
|
|
|
102025
102125
|
init_nitroContract();
|
|
102026
102126
|
init_swift_standin_digest();
|
|
102027
102127
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
102028
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
102128
|
+
NITRO_COMPILER_DIGEST = true ? "8fdfc68d42fcc8dc68e86c44b43f11e69e48240a6cfcce40075612773e7133f4" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
102029
102129
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
102030
102130
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
102031
102131
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2426 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -7147,6 +7147,7 @@ function llvmType(value) {
|
|
|
7147
7147
|
}
|
|
7148
7148
|
}
|
|
7149
7149
|
var OBJC_INIT_RECORD = ".objc_init";
|
|
7150
|
+
var OBJC_LOAD_FUNCTION = ".objcv2_load_function";
|
|
7150
7151
|
function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLookups, preserveCanonical) {
|
|
7151
7152
|
if (Buffer.from(bytes.subarray(0, 8)).toString("hex") !== "0061736d01000000")
|
|
7152
7153
|
throw new Error("expected wasm object");
|
|
@@ -7256,7 +7257,8 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
7256
7257
|
if (sectionName === "linking") {
|
|
7257
7258
|
const version2 = number3();
|
|
7258
7259
|
if (version2 !== 2) throw new Error("unsupported wasm linking version");
|
|
7259
|
-
const
|
|
7260
|
+
const subsections = [];
|
|
7261
|
+
let objcLoader;
|
|
7260
7262
|
while (offset < section.length) {
|
|
7261
7263
|
const kind = section[offset++];
|
|
7262
7264
|
const length = number3();
|
|
@@ -7319,6 +7321,9 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
7319
7321
|
}
|
|
7320
7322
|
} else if (symbolKind === 3) number3();
|
|
7321
7323
|
else throw new Error("unsupported wasm symbol kind");
|
|
7324
|
+
if (name2 === OBJC_LOAD_FUNCTION && symbolKind === 0 && !(flags & 16)) {
|
|
7325
|
+
objcLoader = i;
|
|
7326
|
+
}
|
|
7322
7327
|
const alias = names.get(name2);
|
|
7323
7328
|
if (flags & 16 && symbolKind === 1 && alias) usedSymbols.add(name2);
|
|
7324
7329
|
if ((name2 === "dlsym" && usesDlsym || name2 === "dlerror" && usesDlerror) && flags & 16 && flags & 64 && symbolKind === 0) {
|
|
@@ -7368,7 +7373,36 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
7368
7373
|
content = Buffer.concat([...entries, ...extraEntries]);
|
|
7369
7374
|
}
|
|
7370
7375
|
offset = stop;
|
|
7371
|
-
|
|
7376
|
+
subsections.push({ kind, content });
|
|
7377
|
+
}
|
|
7378
|
+
const parts = [encodedString(sectionName), encodeNumber(version2)];
|
|
7379
|
+
for (const subsection of subsections) {
|
|
7380
|
+
let content = subsection.content;
|
|
7381
|
+
if (subsection.kind === 6 && objcLoader !== void 0) {
|
|
7382
|
+
const [count, entriesStart] = readNumber(content, 0);
|
|
7383
|
+
const entries = [content.subarray(0, entriesStart)];
|
|
7384
|
+
let entryStart = entriesStart;
|
|
7385
|
+
for (let i = 0; i < count; i++) {
|
|
7386
|
+
const [, symbolStart] = readNumber(content, entryStart);
|
|
7387
|
+
const [symbol, entryEnd] = readNumber(content, symbolStart);
|
|
7388
|
+
if (symbol === objcLoader) entries.push(encodeNumber(1));
|
|
7389
|
+
entries.push(
|
|
7390
|
+
content.subarray(
|
|
7391
|
+
symbol === objcLoader ? symbolStart : entryStart,
|
|
7392
|
+
entryEnd
|
|
7393
|
+
)
|
|
7394
|
+
);
|
|
7395
|
+
entryStart = entryEnd;
|
|
7396
|
+
}
|
|
7397
|
+
if (entryStart !== content.length)
|
|
7398
|
+
throw new Error("invalid init functions subsection");
|
|
7399
|
+
content = Buffer.concat(entries);
|
|
7400
|
+
}
|
|
7401
|
+
parts.push(
|
|
7402
|
+
Buffer.from([subsection.kind]),
|
|
7403
|
+
encodeNumber(content.length),
|
|
7404
|
+
content
|
|
7405
|
+
);
|
|
7372
7406
|
}
|
|
7373
7407
|
section = Buffer.concat(parts);
|
|
7374
7408
|
}
|
|
@@ -10206,6 +10240,25 @@ function clangIrLinkOptions(ir) {
|
|
|
10206
10240
|
return result;
|
|
10207
10241
|
}
|
|
10208
10242
|
var CLANG_TARGET_MODULE_WRAPPER = ".peach-clang";
|
|
10243
|
+
var PARALLEL_REPLAY = `
|
|
10244
|
+
const { spawn } = require('node:child_process')
|
|
10245
|
+
const commands = JSON.parse(require('node:fs').readFileSync(process.env.PEACH_CLANG_REPLAYS, 'utf8'))
|
|
10246
|
+
let next = 0
|
|
10247
|
+
const run = () => {
|
|
10248
|
+
if (next >= commands.length) return Promise.resolve()
|
|
10249
|
+
const [file, ...args] = commands[next++]
|
|
10250
|
+
return new Promise((resolve, reject) => {
|
|
10251
|
+
const child = spawn(file, args, { stdio: 'inherit' })
|
|
10252
|
+
child.on('error', reject)
|
|
10253
|
+
child.on('close', (code) => (code === 0 ? resolve() : reject(new Error('clang link replay failed: ' + file))))
|
|
10254
|
+
}).then(run)
|
|
10255
|
+
}
|
|
10256
|
+
const jobs = Math.max(1, Number(process.env.PEACH_CLANG_JOBS) || 1)
|
|
10257
|
+
Promise.all(Array.from({ length: jobs }, run)).catch((error) => {
|
|
10258
|
+
console.error(error.message)
|
|
10259
|
+
process.exit(1)
|
|
10260
|
+
})
|
|
10261
|
+
`;
|
|
10209
10262
|
function sourceGuestClangLinkOptions(options) {
|
|
10210
10263
|
const wanted = new Set(options.objects.map((file) => import_node_path15.default.resolve(file)));
|
|
10211
10264
|
const commands = /* @__PURE__ */ new Map();
|
|
@@ -10239,7 +10292,7 @@ function sourceGuestClangLinkOptions(options) {
|
|
|
10239
10292
|
commands.set(file, { tool, args: value });
|
|
10240
10293
|
}
|
|
10241
10294
|
}
|
|
10242
|
-
const
|
|
10295
|
+
const replays = [];
|
|
10243
10296
|
for (const [index, file] of [...wanted].entries()) {
|
|
10244
10297
|
const command = commands.get(file);
|
|
10245
10298
|
if (!command) throw new Error(`missing source object producer ${file}`);
|
|
@@ -10265,16 +10318,33 @@ function sourceGuestClangLinkOptions(options) {
|
|
|
10265
10318
|
throw new Error(`missing clang ${flag} for ${file}`);
|
|
10266
10319
|
args[index2 + 1] = flag === "-o" ? output : `${output}.d`;
|
|
10267
10320
|
}
|
|
10268
|
-
|
|
10269
|
-
|
|
10270
|
-
[
|
|
10271
|
-
|
|
10272
|
-
|
|
10321
|
+
replays.push({
|
|
10322
|
+
file,
|
|
10323
|
+
compiler: command.args[0],
|
|
10324
|
+
args: [...args, "-S", "-emit-llvm", "-Xclang", "-disable-llvm-passes"],
|
|
10325
|
+
output
|
|
10326
|
+
});
|
|
10327
|
+
}
|
|
10328
|
+
const plan = import_node_path15.default.join(options.directory, "clang-link-replays.json");
|
|
10329
|
+
(0, import_node_fs15.writeFileSync)(
|
|
10330
|
+
plan,
|
|
10331
|
+
JSON.stringify(replays.map(({ compiler, args }) => [compiler, ...args]))
|
|
10332
|
+
);
|
|
10333
|
+
(0, import_node_child_process11.execFileSync)(process.execPath, ["-e", PARALLEL_REPLAY], {
|
|
10334
|
+
stdio: "inherit",
|
|
10335
|
+
env: {
|
|
10336
|
+
...process.env,
|
|
10337
|
+
PEACH_CLANG_REPLAYS: plan,
|
|
10338
|
+
PEACH_CLANG_JOBS: String(options.jobs)
|
|
10339
|
+
}
|
|
10340
|
+
});
|
|
10341
|
+
const result = /* @__PURE__ */ new Map();
|
|
10342
|
+
for (const { file, output } of replays) {
|
|
10273
10343
|
const flags = clangIrLinkOptions((0, import_node_fs15.readFileSync)(output, "utf8"));
|
|
10274
|
-
for (let
|
|
10275
|
-
const flag = flags[
|
|
10344
|
+
for (let index = 0; index < flags.length; index++) {
|
|
10345
|
+
const flag = flags[index];
|
|
10276
10346
|
if (flag === "-framework" || flag === "-l" || flag === "--library") {
|
|
10277
|
-
const name2 = flags[++
|
|
10347
|
+
const name2 = flags[++index];
|
|
10278
10348
|
if (!name2 || name2.startsWith("-"))
|
|
10279
10349
|
throw new Error(`missing clang link name after ${flag}`);
|
|
10280
10350
|
} else if (!/^(-l.+|--library=.+)$/.test(flag)) {
|
|
@@ -11339,7 +11409,8 @@ async function compileGuestLink(options) {
|
|
|
11339
11409
|
directory,
|
|
11340
11410
|
toolchainBin: options.toolchainBin,
|
|
11341
11411
|
swiftCompiler: options.swiftCompiler,
|
|
11342
|
-
objects: selectedSource.map((artifact) => artifact.path)
|
|
11412
|
+
objects: selectedSource.map((artifact) => artifact.path),
|
|
11413
|
+
jobs: options.jobs
|
|
11343
11414
|
});
|
|
11344
11415
|
const links = sourceGuestRuntimeLinks({
|
|
11345
11416
|
toolchainBin: options.toolchainBin,
|
|
@@ -13985,7 +14056,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
13985
14056
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
13986
14057
|
var MULTI_MANIFEST_VERSION = 72;
|
|
13987
14058
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
13988
|
-
var compilerSourceDigest = true ? "
|
|
14059
|
+
var compilerSourceDigest = true ? "714dbca336e958240697a0238ee5b0640b2b212c34df4843e82d0c1abe3e8c43" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
13989
14060
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
13990
14061
|
const hash = (0, import_node_crypto15.createHash)("sha256");
|
|
13991
14062
|
hash.update(`swift-compile
|
|
@@ -18840,7 +18911,8 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
18840
18911
|
generatedOwners: preparation.generatedOwners,
|
|
18841
18912
|
output,
|
|
18842
18913
|
optimized,
|
|
18843
|
-
optimize: input.optimize === true
|
|
18914
|
+
optimize: input.optimize === true,
|
|
18915
|
+
jobs: swiftBuildJobs()
|
|
18844
18916
|
});
|
|
18845
18917
|
else
|
|
18846
18918
|
await lowerWasm(output, optimized, { optimize: input.optimize === true });
|