peachsim 0.1.2723 → 0.1.2725
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 +2 -2
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +5 -5
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +3 -3
- package/dist-lib/bundle-channel.cjs +57 -36
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +3 -3
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +3 -3
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +2 -2
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +7 -7
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +5 -5
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/esm-chunks/{acorn-F3M2TKUX.mjs → acorn-W726S2IA.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-Y77FZJW2.mjs → chunk-2MNFO56N.mjs} +49 -35
- package/dist-lib/esm-chunks/{chunk-7XGUQL4X.mjs → chunk-3GTV2LCM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-CQJV4EVW.mjs → chunk-3TIJK5UZ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-K3CU2YXT.mjs → chunk-76CDSQWP.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-DZXB5BJN.mjs → chunk-7F5LC43J.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-ZQU5WPTG.mjs → chunk-AAQ2DFPN.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-AUTMC3QD.mjs → chunk-BTLEW436.mjs} +7 -8
- package/dist-lib/esm-chunks/{chunk-3IU4EP2Z.mjs → chunk-BWMTXR6G.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-SIULKQAK.mjs → chunk-D5RGF7UF.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-S3GS24G6.mjs → chunk-FV4DZWYD.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-ZKW75WRX.mjs → chunk-H73GWF5E.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-LIC5LYQJ.mjs → chunk-HM2MXBOG.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-GVSWDVPL.mjs → chunk-HMROXN4Q.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-N5UND445.mjs → chunk-JZDAJZBB.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-EYSRTHK7.mjs → chunk-LWQTRRI2.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-HA2OAZT5.mjs → chunk-MGH6TFFZ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-BGHKJMLZ.mjs → chunk-MWBFM6BI.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-S7SEZPUJ.mjs → chunk-NRIEADO4.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-IAV5XLVR.mjs → chunk-QRILDJ7M.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-RHEMYORC.mjs → chunk-UQ2MSEVY.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-PHPSRPSE.mjs → chunk-WII6ZXAJ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-TGO6L4RG.mjs → chunk-YCHKJV7N.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-T7IPZWTL.mjs → chunk-YKJUNRZF.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-G4DCGHYZ.mjs → chunk-YX5GEVDN.mjs} +1 -1
- package/dist-lib/esm-chunks/{metro-layout-parser-KDQ4RWIN.mjs → metro-layout-parser-5TW7JPFC.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-KBXU457K.mjs → swift-package-prebuilt-PQXBXXR2.mjs} +12 -12
- package/dist-lib/esm-chunks/{swift-sdk-app-module-23DEMHHZ.mjs → swift-sdk-app-module-6HBBAK2W.mjs} +33 -24
- package/dist-lib/esm-chunks/{swift-sdk-image-ER4ESBTD.mjs → swift-sdk-image-XGU4LD2J.mjs} +16 -18
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-FZRGEKOY.mjs → swift-sdk-image-producer-CMFC7NVM.mjs} +5 -5
- package/dist-lib/expo-swift-bundle.cjs +57 -36
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +7 -7
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +254 -48
- package/dist-lib/host/fetch-proxy-handler.cjs +4 -4
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +3 -3
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +3 -3
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +4 -4
- package/dist-lib/native-app-identity-project.cjs +1 -1
- package/dist-lib/native-app-identity-project.mjs +15 -15
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +6 -6
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +3 -3
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +2 -2
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +3 -3
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +85 -85
- package/dist-lib/public-origins-lib.json +64 -64
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +2 -2
- 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 +8 -8
- package/dist-lib/skills.cjs +254 -48
- package/dist-lib/swift-compile.cjs +54 -33
- package/dist-lib/swift-compile.mjs +12 -12
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +3 -3
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +6 -6
- package/dist-lib/swift-svg-raster.cjs +1 -1
- package/dist-lib/swift-svg-raster.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
- package/dist-lib/vendor/acorn.cjs +1 -1
- package/dist-lib/vendor/magic-string.cjs +1 -1
- package/dist-lib/vendor/stream-json.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
- package/dist-lib/vendor/sucrase.cjs +1 -1
- package/dist-lib/vendor/terser.cjs +1 -1
- package/dist-lib/vendor/valibot.cjs +1 -1
- package/dist-lib/vendor/ws.cjs +1 -1
- package/dist-lib/vendor/zod.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +3 -3
- package/dist-types/packages/peach-engine/src/engine/native-layout.d.ts +0 -2
- package/dist-types/packages/peach-engine/src/engine/native-text-measure.d.ts +3 -6
- package/dist-types/packages/peach-engine/src/engine/native-text-metric-policy.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/native-text-runtimeContract.d.ts +0 -5
- package/package.json +1 -1
- package/src/binaryen.lock.json +1 -1
- package/src/one-direct-host-source.ts +194 -10
- package/src/one-native-controls-package.ts +81 -36
- package/src/swift-compile.ts +35 -18
- package/src/swift-sdk-app-module.ts +22 -10
- package/src/swift-sdk-image.ts +1 -1
- package/src/swiftSdkLinkContract.ts +2 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2725 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
acquireSwiftRootReadHold,
|
|
4
4
|
hasLiveSwiftRootReaders,
|
|
5
5
|
retainSwiftRootReadHold,
|
|
6
6
|
withSwiftRootLock
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YKJUNRZF.mjs";
|
|
8
8
|
import {
|
|
9
9
|
CORE_FOUNDATION_OVERLAY_GLOBALS,
|
|
10
10
|
NATIVE_GRAPH_SDK_VERSION,
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
withoutImportedSdkEnumForwards,
|
|
56
56
|
withoutSwiftDeclarations,
|
|
57
57
|
writeBuildFile
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-76CDSQWP.mjs";
|
|
59
59
|
import {
|
|
60
60
|
SWIFT_AUTOLINK_LINKER,
|
|
61
61
|
SWIFT_CACHE_HOLD_MARKER,
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
wasmThreadLinkFlags,
|
|
73
73
|
windowAdmission,
|
|
74
74
|
writeSwiftAutolinkLinker
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-3GTV2LCM.mjs";
|
|
76
76
|
import {
|
|
77
77
|
SWIFT_BINARY_TREES_DIR,
|
|
78
78
|
SWIFT_NATIVE_INPUT_ROOT,
|
|
@@ -87,7 +87,7 @@ import {
|
|
|
87
87
|
isSwiftResourcePath,
|
|
88
88
|
isSwiftSourceLinkGraph,
|
|
89
89
|
swiftProjectFilesProblems
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-D5RGF7UF.mjs";
|
|
91
91
|
import {
|
|
92
92
|
OBJC_RESOURCE_ACCESSOR_BODY,
|
|
93
93
|
OBJC_RESOURCE_ACCESSOR_HEADER,
|
|
@@ -110,16 +110,16 @@ import {
|
|
|
110
110
|
swiftPackagePartition,
|
|
111
111
|
swiftTargetModuleName,
|
|
112
112
|
withoutGlogModuleMap
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-7F5LC43J.mjs";
|
|
114
114
|
import {
|
|
115
115
|
rnxPublicBrand
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-BWMTXR6G.mjs";
|
|
117
117
|
import {
|
|
118
118
|
isRecord
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-HM2MXBOG.mjs";
|
|
120
120
|
import {
|
|
121
121
|
__publicField
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-MWBFM6BI.mjs";
|
|
123
123
|
|
|
124
124
|
// src/swift-compile.ts
|
|
125
125
|
import {
|
|
@@ -4942,6 +4942,7 @@ function symbolPieces(chunk) {
|
|
|
4942
4942
|
|
|
4943
4943
|
// src/swiftSdkLinkContract.ts
|
|
4944
4944
|
var SWIFT_SDK_FUNCTION_ADDRESS_PREFIX = "__peach_sdk_function_address.";
|
|
4945
|
+
var SWIFT_SDK_APP_TABLE_BASE = 524288;
|
|
4945
4946
|
var OBJC_LOAD_FUNCTION = ".objcv2_load_function";
|
|
4946
4947
|
|
|
4947
4948
|
// src/swift-sdk-image-wasm.ts
|
|
@@ -11648,7 +11649,7 @@ var binaryen_lock_default = {
|
|
|
11648
11649
|
"darwin-arm64": {
|
|
11649
11650
|
asset: "arm64-macos",
|
|
11650
11651
|
upstreamSha256: "98aad827847af7ef990ed7098d885725c8e5b5aae75073403635617ae4e259aa",
|
|
11651
|
-
sha256: "
|
|
11652
|
+
sha256: "2cadf6373604091be7784a1dde396ccbe67964e9a5ddb40be19bb52d65cb23b7"
|
|
11652
11653
|
}
|
|
11653
11654
|
}
|
|
11654
11655
|
};
|
|
@@ -14363,7 +14364,7 @@ async function compileGuestLink(options) {
|
|
|
14363
14364
|
};
|
|
14364
14365
|
const sdk = options.sdkImage;
|
|
14365
14366
|
const sdkCallers = sdk.sdkInterface.guestCallers;
|
|
14366
|
-
const sdkObjects = (await import("./swift-sdk-image-
|
|
14367
|
+
const sdkObjects = (await import("./swift-sdk-image-XGU4LD2J.mjs")).readSwiftSdkManifestIndex(
|
|
14367
14368
|
sdk
|
|
14368
14369
|
).guestObjects;
|
|
14369
14370
|
if (!sdkCallers || !sdkObjects)
|
|
@@ -14663,7 +14664,7 @@ async function compileGuestLink(options) {
|
|
|
14663
14664
|
swiftAppModuleThunkSection,
|
|
14664
14665
|
swiftSdkProjectionSpans,
|
|
14665
14666
|
writeSwiftSdkAppLink
|
|
14666
|
-
} = await import("./swift-sdk-app-module-
|
|
14667
|
+
} = await import("./swift-sdk-app-module-6HBBAK2W.mjs");
|
|
14667
14668
|
const project = options.project;
|
|
14668
14669
|
const work = project ? mkdtempSync2(path14.join(directory, "app-module-")) : path14.join(directory, "app-module");
|
|
14669
14670
|
if (project) chownSync(work, project.uid, project.gid);
|
|
@@ -16636,7 +16637,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
16636
16637
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
16637
16638
|
var MULTI_MANIFEST_VERSION = 76;
|
|
16638
16639
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
16639
|
-
var compilerSourceDigest = true ? "
|
|
16640
|
+
var compilerSourceDigest = true ? "65c18cf90c6d5327457dfe6ae7fe052f0acac7fb60d8df897cbd58095efd6c7f" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
16640
16641
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
16641
16642
|
return swiftCompileInputHash(input, release).update(swiftModuleDigest(moduleRoot)).digest("hex");
|
|
16642
16643
|
}
|
|
@@ -20005,14 +20006,17 @@ function readCompiledArtifact(directory, hash) {
|
|
|
20005
20006
|
return null;
|
|
20006
20007
|
if (!("sdk" in receipt)) return null;
|
|
20007
20008
|
const image = receipt.sdk;
|
|
20008
|
-
if (!isRecord(image) || typeof image.key !== "string" || typeof image.sha256 !== "string" || typeof image.binding !== "string")
|
|
20009
|
+
if (!isRecord(image) || typeof image.key !== "string" || typeof image.sha256 !== "string" || typeof image.binding !== "string" || typeof image.liveSlots !== "string")
|
|
20009
20010
|
return null;
|
|
20010
20011
|
const binding = readFileSync13(path23.join(directory, "sdk-binding.bin"));
|
|
20011
20012
|
if (createHash16("sha256").update(binding).digest("hex") !== image.binding) return null;
|
|
20013
|
+
const liveSlots = readFileSync13(path23.join(directory, "sdk-live-slots.bin"));
|
|
20014
|
+
if (createHash16("sha256").update(liveSlots).digest("hex") !== image.liveSlots)
|
|
20015
|
+
return null;
|
|
20012
20016
|
const sdk = {
|
|
20013
20017
|
key: image.key,
|
|
20014
20018
|
sha256: image.sha256,
|
|
20015
|
-
binding: { bytes: binding, sha256: image.binding }
|
|
20019
|
+
binding: { bytes: binding, sha256: image.binding, liveSlots }
|
|
20016
20020
|
};
|
|
20017
20021
|
return { hash, bytes, icu: { sha256: receipt.icu, gzip: gzip2 }, sdk };
|
|
20018
20022
|
} catch (error) {
|
|
@@ -20028,8 +20032,13 @@ function saveCompiledArtifact(root, artifact) {
|
|
|
20028
20032
|
try {
|
|
20029
20033
|
writeFileSync7(path23.join(pending, "app.wasm"), artifact.bytes);
|
|
20030
20034
|
writeFileSync7(path23.join(pending, "icu.gz"), artifact.icu.gzip);
|
|
20031
|
-
if (artifact.sdk)
|
|
20035
|
+
if (artifact.sdk) {
|
|
20032
20036
|
writeFileSync7(path23.join(pending, "sdk-binding.bin"), artifact.sdk.binding.bytes);
|
|
20037
|
+
writeFileSync7(
|
|
20038
|
+
path23.join(pending, "sdk-live-slots.bin"),
|
|
20039
|
+
artifact.sdk.binding.liveSlots
|
|
20040
|
+
);
|
|
20041
|
+
}
|
|
20033
20042
|
writeFileSync7(
|
|
20034
20043
|
path23.join(pending, "artifact.json"),
|
|
20035
20044
|
JSON.stringify({
|
|
@@ -20039,12 +20048,13 @@ function saveCompiledArtifact(root, artifact) {
|
|
|
20039
20048
|
sdk: artifact.sdk && {
|
|
20040
20049
|
key: artifact.sdk.key,
|
|
20041
20050
|
sha256: artifact.sdk.sha256,
|
|
20042
|
-
binding: artifact.sdk.binding.sha256
|
|
20051
|
+
binding: artifact.sdk.binding.sha256,
|
|
20052
|
+
liveSlots: createHash16("sha256").update(artifact.sdk.binding.liveSlots).digest("hex")
|
|
20043
20053
|
}
|
|
20044
20054
|
})
|
|
20045
20055
|
);
|
|
20046
20056
|
const outputs = ["app.wasm", "icu.gz"];
|
|
20047
|
-
if (artifact.sdk) outputs.push("sdk-binding.bin");
|
|
20057
|
+
if (artifact.sdk) outputs.push("sdk-binding.bin", "sdk-live-slots.bin");
|
|
20048
20058
|
for (const file of [...outputs, "artifact.json"]) {
|
|
20049
20059
|
renameSync5(path23.join(pending, file), path23.join(directory, file));
|
|
20050
20060
|
}
|
|
@@ -20995,10 +21005,7 @@ function stageFrameworkSource(moduleRoot, slot, frameworkKey, release) {
|
|
|
20995
21005
|
path23.join(staged, "packages/peachsim/sdk/ios")
|
|
20996
21006
|
);
|
|
20997
21007
|
if (moduleRestructured || sdkRestructured || hadKey === null) {
|
|
20998
|
-
|
|
20999
|
-
rmSync7(path23.join(slot, WASM_TRIPLE, "release", "description.json"), {
|
|
21000
|
-
force: true
|
|
21001
|
-
});
|
|
21008
|
+
retireSwiftBuildPlan(slot);
|
|
21002
21009
|
}
|
|
21003
21010
|
for (const file of swiftModuleInputFiles(moduleRoot)) {
|
|
21004
21011
|
if (!file.startsWith("../")) continue;
|
|
@@ -21063,7 +21070,12 @@ ${args.prebuilt.modules}
|
|
|
21063
21070
|
${statOf(path23.join(args.prebuilt.modules, entry))}`);
|
|
21064
21071
|
return hash.digest("hex");
|
|
21065
21072
|
}
|
|
21073
|
+
function retireSwiftBuildPlan(scratch) {
|
|
21074
|
+
rmSync7(path23.join(scratch, "release.yaml"), { force: true });
|
|
21075
|
+
rmSync7(path23.join(scratch, WASM_TRIPLE, "release", "description.json"), { force: true });
|
|
21076
|
+
}
|
|
21066
21077
|
function retireSwiftLinkTargets(retired) {
|
|
21078
|
+
retireSwiftBuildPlan(retired);
|
|
21067
21079
|
for (const name of [
|
|
21068
21080
|
"ModuleCache",
|
|
21069
21081
|
"peach-product-checkpoints",
|
|
@@ -21095,20 +21107,21 @@ function retireStaleSwiftLink(root, baseStamp, stamp, preserveClangObjects = fal
|
|
|
21095
21107
|
} catch (error) {
|
|
21096
21108
|
if (!vanished(error)) throw error;
|
|
21097
21109
|
}
|
|
21098
|
-
mkdirSync7(root, { recursive: true });
|
|
21099
21110
|
const combined = `${baseStamp}
|
|
21100
|
-
${stamp}`;
|
|
21101
|
-
|
|
21102
|
-
`);
|
|
21111
|
+
${preserveClangObjects ? "swift-targets-v2\n" : ""}${stamp}`;
|
|
21112
|
+
if (previous === combined) return false;
|
|
21103
21113
|
const retired = path23.join(root, ".build");
|
|
21104
|
-
|
|
21114
|
+
const hadBuild = existsSync9(retired);
|
|
21105
21115
|
const [previousBase] = previous?.split("\n") ?? [];
|
|
21106
|
-
if (
|
|
21107
|
-
|
|
21108
|
-
|
|
21116
|
+
if (hadBuild) {
|
|
21117
|
+
if (preserveClangObjects && previousBase === baseStamp)
|
|
21118
|
+
retireSwiftLinkTargets(retired);
|
|
21119
|
+
else rmSync7(retired, { recursive: true, force: true });
|
|
21109
21120
|
}
|
|
21110
|
-
|
|
21111
|
-
|
|
21121
|
+
mkdirSync7(root, { recursive: true });
|
|
21122
|
+
writeFileSync7(receipt, `${combined}
|
|
21123
|
+
`);
|
|
21124
|
+
return hadBuild;
|
|
21112
21125
|
}
|
|
21113
21126
|
async function compileSwiftProjectUnit(input, options) {
|
|
21114
21127
|
for (let attempt = 1; ; attempt++) {
|
|
@@ -21130,7 +21143,7 @@ async function compileSwiftProjectOnce(sources, options) {
|
|
|
21130
21143
|
const distribution = swiftDistributionAt(moduleRoot);
|
|
21131
21144
|
const mirrorDistribution = options.linkOnly || options.project ? null : distribution;
|
|
21132
21145
|
if (distribution) refreshSwiftCacheHold(moduleRoot);
|
|
21133
|
-
const input = distribution && !options.intermediates ? (await import("./swift-package-prebuilt-
|
|
21146
|
+
const input = distribution && !options.intermediates ? (await import("./swift-package-prebuilt-PQXBXXR2.mjs")).useSwiftPackagePrebuilts(
|
|
21134
21147
|
sources,
|
|
21135
21148
|
moduleRoot,
|
|
21136
21149
|
options.toolchainBin
|
|
@@ -21143,7 +21156,7 @@ async function compileSwiftProjectOnce(sources, options) {
|
|
|
21143
21156
|
sources: path23.join(root, "Sources", "App"),
|
|
21144
21157
|
multi: compileTargets(input).length > 0
|
|
21145
21158
|
};
|
|
21146
|
-
const sdkImage = options.linkOnly ? void 0 : await (await import("./swift-sdk-image-
|
|
21159
|
+
const sdkImage = options.linkOnly ? void 0 : await (await import("./swift-sdk-image-XGU4LD2J.mjs")).buildSwiftSdkImage(
|
|
21147
21160
|
moduleRoot,
|
|
21148
21161
|
!!guestGraph,
|
|
21149
21162
|
distribution ? [] : linkedFrameworkTargets(moduleRoot, input).imports,
|
|
@@ -21862,7 +21875,7 @@ ${compatShape}` : "";
|
|
|
21862
21875
|
});
|
|
21863
21876
|
sdkAsset = { key: sdkImage.key, sha256: sdkImage.sha256, binding };
|
|
21864
21877
|
} else {
|
|
21865
|
-
const { buildSwiftAppModule } = await import("./swift-sdk-app-module-
|
|
21878
|
+
const { buildSwiftAppModule } = await import("./swift-sdk-app-module-6HBBAK2W.mjs");
|
|
21866
21879
|
const binding = await buildSwiftAppModule({
|
|
21867
21880
|
buildRoot: root2,
|
|
21868
21881
|
toolchainBin: options.toolchainBin,
|
|
@@ -21909,6 +21922,7 @@ export {
|
|
|
21909
21922
|
isPartitioned,
|
|
21910
21923
|
readWasmLinkMap,
|
|
21911
21924
|
SWIFT_SDK_FUNCTION_ADDRESS_PREFIX,
|
|
21925
|
+
SWIFT_SDK_APP_TABLE_BASE,
|
|
21912
21926
|
wasmReader,
|
|
21913
21927
|
wasmSections,
|
|
21914
21928
|
orderObjCConstructors,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2725 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
SWIFT_CACHE_HOLD_MARKER,
|
|
4
4
|
SWIFT_WASM_TRIPLE,
|
|
@@ -12,19 +12,19 @@ import {
|
|
|
12
12
|
terminateProcessGroup,
|
|
13
13
|
wasmThreadFlags,
|
|
14
14
|
windowAdmission
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-3GTV2LCM.mjs";
|
|
16
16
|
import {
|
|
17
17
|
isSwiftResourcePath
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-D5RGF7UF.mjs";
|
|
19
19
|
import {
|
|
20
20
|
swiftManifestDeclarations
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-7F5LC43J.mjs";
|
|
22
22
|
import {
|
|
23
23
|
isRecord
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-HM2MXBOG.mjs";
|
|
25
25
|
import {
|
|
26
26
|
__publicField
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-MWBFM6BI.mjs";
|
|
28
28
|
|
|
29
29
|
// src/write-build-file.ts
|
|
30
30
|
import { mkdirSync, readFileSync, statSync, writeFileSync } from "node:fs";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2725 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
DARWIN_RECORDS_PREFIX,
|
|
4
4
|
KEEP_WASM_NAMES,
|
|
5
5
|
SDK_DYLD_RESOLVER,
|
|
6
6
|
SOURCE_SWIFT_FRAMEWORK_RECIPE,
|
|
7
|
+
SWIFT_SDK_APP_TABLE_BASE,
|
|
7
8
|
SWIFT_SDK_IMAGE_VERSION,
|
|
8
9
|
WASM_LOWER_IDENTITY,
|
|
9
10
|
chunkKey,
|
|
@@ -28,22 +29,22 @@ import {
|
|
|
28
29
|
swiftSdkImageScope,
|
|
29
30
|
unslottedFunctions,
|
|
30
31
|
wasmSections
|
|
31
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-2MNFO56N.mjs";
|
|
32
33
|
import {
|
|
33
34
|
withSwiftRootLock,
|
|
34
35
|
withSwiftRootReadHolds
|
|
35
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-YKJUNRZF.mjs";
|
|
36
37
|
import {
|
|
37
38
|
swiftDistributionAt,
|
|
38
39
|
swiftModuleDigest,
|
|
39
40
|
swiftModuleToolchain,
|
|
40
41
|
swiftSdkPaths
|
|
41
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-76CDSQWP.mjs";
|
|
42
43
|
import {
|
|
43
44
|
SWIFT_WASM_TRIPLE,
|
|
44
45
|
sourceSwiftCheckout,
|
|
45
46
|
swiftCacheDir
|
|
46
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-3GTV2LCM.mjs";
|
|
47
48
|
|
|
48
49
|
// src/swift-sdk-image.ts
|
|
49
50
|
import { execFile } from "node:child_process";
|
|
@@ -63,7 +64,6 @@ import { promisify } from "node:util";
|
|
|
63
64
|
var run = promisify(execFile);
|
|
64
65
|
var SWIFT_SDK_APP_MEMORY_BASE = 8372224;
|
|
65
66
|
var SWIFT_SDK_MEMORY_BASE = 128 * 1024 * 1024;
|
|
66
|
-
var SWIFT_SDK_APP_TABLE_BASE = 524288;
|
|
67
67
|
var EMPTY_APP = `import SwiftUI
|
|
68
68
|
|
|
69
69
|
@main
|
|
@@ -223,7 +223,7 @@ async function buildSwiftSdkImage(moduleRoot, scopedLookups = false, frameworkIm
|
|
|
223
223
|
const existing = cached(directory, key);
|
|
224
224
|
if (existing) return existing;
|
|
225
225
|
if (!options?.producer && !swiftDistributionAt(moduleRoot) && path.resolve(moduleRoot) === sourceSwiftCheckout() && process.platform === "linux" && process.env.TM_SESSION) {
|
|
226
|
-
const { produceSwiftSdkImage } = await import("./swift-sdk-image-producer-
|
|
226
|
+
const { produceSwiftSdkImage } = await import("./swift-sdk-image-producer-CMFC7NVM.mjs");
|
|
227
227
|
await produceSwiftSdkImage({
|
|
228
228
|
moduleRoot,
|
|
229
229
|
key,
|
|
@@ -821,7 +821,6 @@ var isManifestBlock = (name) => MANIFEST_BLOCKS.includes(name);
|
|
|
821
821
|
export {
|
|
822
822
|
SWIFT_SDK_APP_MEMORY_BASE,
|
|
823
823
|
SWIFT_SDK_MEMORY_BASE,
|
|
824
|
-
SWIFT_SDK_APP_TABLE_BASE,
|
|
825
824
|
swiftSdkDistributionInputs,
|
|
826
825
|
swiftSdkImageProducts,
|
|
827
826
|
swiftSdkImageKey,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2725 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
LAUNCH_METADATA_KEYS,
|
|
4
4
|
LAUNCH_METADATA_KEYS_PATH
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UQ2MSEVY.mjs";
|
|
6
6
|
import {
|
|
7
7
|
cacheDir,
|
|
8
8
|
parseSwiftDistributionLock,
|
|
9
9
|
readActiveRuntime,
|
|
10
10
|
runtimeDir
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-76CDSQWP.mjs";
|
|
12
12
|
import {
|
|
13
13
|
SWIFT_WASM_TRIPLE,
|
|
14
14
|
registerSwiftHostCompiler
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-3GTV2LCM.mjs";
|
|
16
16
|
import {
|
|
17
17
|
isRecord
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-HM2MXBOG.mjs";
|
|
19
19
|
|
|
20
20
|
// src/swift-distribution.ts
|
|
21
21
|
import { execFile as execFile2 } from "node:child_process";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2725 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
SIM_LONG_PRESS_MAX_MS
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QRILDJ7M.mjs";
|
|
5
5
|
import {
|
|
6
6
|
isRecord
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HM2MXBOG.mjs";
|
|
8
8
|
|
|
9
9
|
// ../peach-globals/src/globalsContract.ts
|
|
10
10
|
var LEGACY_ALIAS_MARKER = Symbol.for("sootsim.legacy-aliases-installed");
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2725 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
isSwiftImageVariants
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AAQ2DFPN.mjs";
|
|
5
5
|
import {
|
|
6
6
|
findBundleFooter
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NRIEADO4.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isRecord
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HM2MXBOG.mjs";
|
|
11
11
|
|
|
12
12
|
// src/android-string-value.ts
|
|
13
13
|
function compileAndroidStringValue(text, where) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2725 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
killOrphanedProcessGroup,
|
|
4
4
|
readProcessTable,
|
|
5
5
|
terminateProcessGroup
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3GTV2LCM.mjs";
|
|
7
7
|
|
|
8
8
|
// src/swift-root-lock.ts
|
|
9
9
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2725 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// ../../node_modules/acorn/dist/acorn.mjs
|
|
4
4
|
var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 78, 5, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 199, 7, 137, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 55, 9, 266, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 233, 0, 3, 0, 8, 1, 6, 0, 475, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
|
package/dist-lib/esm-chunks/{metro-layout-parser-KDQ4RWIN.mjs → metro-layout-parser-5TW7JPFC.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
import "./chunk-
|
|
1
|
+
/*! peach v0.1.2725 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
|
+
import "./chunk-MWBFM6BI.mjs";
|
|
3
3
|
|
|
4
4
|
// src/metro-layout-parser.ts
|
|
5
5
|
var whitespace = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/y;
|
|
@@ -8,7 +8,7 @@ var lineBreak = /[\r\n\u2028\u2029]/;
|
|
|
8
8
|
var metroLayoutParser;
|
|
9
9
|
async function loadMetroLayoutParser() {
|
|
10
10
|
if (metroLayoutParser) return metroLayoutParser;
|
|
11
|
-
const { Parser } = await import("./acorn-
|
|
11
|
+
const { Parser } = await import("./acorn-W726S2IA.mjs");
|
|
12
12
|
metroLayoutParser = Parser.extend(
|
|
13
13
|
(Base) => {
|
|
14
14
|
const parseFunctionBody = Reflect.get(Base.prototype, "parseFunctionBody");
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2725 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
compileTargets,
|
|
4
4
|
fetchNativeEntry,
|
|
5
5
|
nativeEntryKey,
|
|
6
6
|
swiftAvailableModules
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-2MNFO56N.mjs";
|
|
8
|
+
import "./chunk-YKJUNRZF.mjs";
|
|
9
9
|
import {
|
|
10
10
|
swiftDistributionAt,
|
|
11
11
|
swiftImportNames
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-76CDSQWP.mjs";
|
|
13
|
+
import "./chunk-3GTV2LCM.mjs";
|
|
14
14
|
import {
|
|
15
15
|
SWIFT_REMOTE_PACKAGES_DIR
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-D5RGF7UF.mjs";
|
|
17
17
|
import {
|
|
18
18
|
manifestCalls
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-7F5LC43J.mjs";
|
|
20
|
+
import "./chunk-AAQ2DFPN.mjs";
|
|
21
|
+
import "./chunk-BWMTXR6G.mjs";
|
|
22
|
+
import "./chunk-MGH6TFFZ.mjs";
|
|
23
|
+
import "./chunk-HM2MXBOG.mjs";
|
|
24
|
+
import "./chunk-MWBFM6BI.mjs";
|
|
25
25
|
|
|
26
26
|
// src/swift-package-prebuilt.ts
|
|
27
27
|
import { createHash } from "node:crypto";
|