peachsim 0.1.2793 → 0.1.2794
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 +1157 -993
- 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-Q5VJTSKK.mjs → acorn-A7OMJDVK.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-4P3IOCZK.mjs → chunk-2TCGEMEV.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-TADAJDSF.mjs → chunk-35HEHEYA.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-GVQYPMGV.mjs → chunk-5RQ3U7WK.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-SCUA4P4G.mjs → chunk-7QNWHCMJ.mjs} +1116 -1056
- package/dist-lib/esm-chunks/{chunk-ZU4TTBLM.mjs → chunk-ANIC22U3.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-6HQZNAEU.mjs → chunk-AW4Z3K2U.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-JMR6F3DC.mjs → chunk-B3E5ZI2D.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-PTIDPELK.mjs → chunk-CIFEHSEA.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-A2KA5HK7.mjs → chunk-CIR4VZ22.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-XCBOY63C.mjs → chunk-DLEQ5NZ5.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-BEO5Q2GJ.mjs → chunk-E6KA576K.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-TS7JWC6Z.mjs → chunk-GDITZ3K2.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-2V3WPUVP.mjs → chunk-GHGDWJY3.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-SQ3UKGNC.mjs → chunk-K7RLWF5X.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-6LTBRJF4.mjs → chunk-KVFRYFZI.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-YEBPOLJT.mjs → chunk-NKJ67PFZ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-NMSKAQXB.mjs → chunk-O6HHWO4Y.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-U23E4H6F.mjs → chunk-OS6YJU3W.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-ELHDFPTV.mjs → chunk-PRYC6EMT.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-COIKWBXT.mjs → chunk-R6ES6QCH.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-5LYBGU62.mjs → chunk-TJULYSLY.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-SSZA5C37.mjs → chunk-V6BE34Q3.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-RVJCN7O6.mjs → chunk-Y6YMRYNX.mjs} +64 -21
- package/dist-lib/esm-chunks/{chunk-6YRIQX2Q.mjs → chunk-ZTDPCBGG.mjs} +3 -3
- package/dist-lib/esm-chunks/{metro-layout-parser-26WDQMLR.mjs → metro-layout-parser-WG2ITRQD.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-DOKKJSSS.mjs → swift-package-prebuilt-DN7G5XKR.mjs} +16 -13
- package/dist-lib/esm-chunks/{swift-sdk-app-module-I4OZ7CGZ.mjs → swift-sdk-app-module-3DB4F4Y2.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-IPXHOUXE.mjs → swift-sdk-image-JTYM3OQY.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-6P6QZQGS.mjs → swift-sdk-image-producer-QQUODPXF.mjs} +5 -5
- package/dist-lib/expo-swift-bundle.cjs +1099 -935
- 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 +3742 -3452
- package/dist-lib/host/fetch-proxy-handler.cjs +121 -117
- 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 +3 -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 +76 -76
- 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 +2027 -1737
- package/dist-lib/swift-compile.cjs +1056 -963
- 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/scene-native-binding.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/render-worker/native-hot-ops.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/scene-packet-feed.d.ts +2 -0
- package/package.json +1 -1
- package/src/one-native-controls-package.ts +56 -54
- package/src/swift-compile.ts +1029 -963
- package/src/swift-compiler-digest.ts +79 -4
- package/src/swift-host.ts +246 -91
- package/src/swift-package-prebuilt.ts +6 -3
- package/src/swift-sdk-surface.ts +75 -20
- package/src/swift-startup-split.ts +134 -12
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2794 | (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-CIR4VZ22.mjs";
|
|
7
7
|
|
|
8
8
|
// src/swift-root-lock.ts
|
|
9
9
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2794 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
isSwiftImageVariants
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AW4Z3K2U.mjs";
|
|
5
5
|
import {
|
|
6
6
|
findBundleFooter
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KVFRYFZI.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isRecord
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-K7RLWF5X.mjs";
|
|
11
11
|
|
|
12
12
|
// src/android-string-value.ts
|
|
13
13
|
function compileAndroidStringValue(text, where) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2794 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
DARWIN_RECORDS_PREFIX,
|
|
4
4
|
KEEP_WASM_NAMES,
|
|
@@ -31,23 +31,23 @@ import {
|
|
|
31
31
|
swiftSdkImageScope,
|
|
32
32
|
unslottedFunctions,
|
|
33
33
|
wasmSections
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-7QNWHCMJ.mjs";
|
|
35
35
|
import {
|
|
36
36
|
withSwiftRootLock,
|
|
37
37
|
withSwiftRootReadHolds
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-CIFEHSEA.mjs";
|
|
39
39
|
import {
|
|
40
40
|
swiftDistributionAt,
|
|
41
41
|
swiftModuleDigest,
|
|
42
42
|
swiftModuleToolchain,
|
|
43
43
|
swiftSdkPaths
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-Y6YMRYNX.mjs";
|
|
45
45
|
import {
|
|
46
46
|
SWIFT_WASM_TRIPLE,
|
|
47
47
|
refreshSwiftCacheHold,
|
|
48
48
|
sourceSwiftCheckout,
|
|
49
49
|
swiftCacheDir
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-CIR4VZ22.mjs";
|
|
51
51
|
|
|
52
52
|
// src/swift-sdk-image.ts
|
|
53
53
|
import { execFile } from "node:child_process";
|
|
@@ -250,7 +250,7 @@ async function buildSwiftSdkImage(moduleRoot, scopedLookups = false, frameworkIm
|
|
|
250
250
|
if (existing) return existing;
|
|
251
251
|
const distribution = swiftDistributionAt(moduleRoot);
|
|
252
252
|
if (!options?.producer && !required.length && !distribution && path.resolve(moduleRoot) === sourceSwiftCheckout() && process.platform === "linux" && process.env.TM_SESSION) {
|
|
253
|
-
const { produceSwiftSdkImage } = await import("./swift-sdk-image-producer-
|
|
253
|
+
const { produceSwiftSdkImage } = await import("./swift-sdk-image-producer-QQUODPXF.mjs");
|
|
254
254
|
await produceSwiftSdkImage({
|
|
255
255
|
moduleRoot,
|
|
256
256
|
key,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2794 | (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];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2794 | (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-CIR4VZ22.mjs";
|
|
16
16
|
import {
|
|
17
17
|
isSwiftResourcePath
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-B3E5ZI2D.mjs";
|
|
19
19
|
import {
|
|
20
20
|
swiftManifestDeclarations
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-R6ES6QCH.mjs";
|
|
22
22
|
import {
|
|
23
23
|
isRecord
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-K7RLWF5X.mjs";
|
|
25
25
|
import {
|
|
26
26
|
__publicField
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-V6BE34Q3.mjs";
|
|
28
28
|
|
|
29
29
|
// src/write-build-file.ts
|
|
30
30
|
import { mkdirSync, readFileSync, statSync, writeFileSync } from "node:fs";
|
|
@@ -994,6 +994,7 @@ function swiftSharedSdkInputFiles(moduleRoot) {
|
|
|
994
994
|
}
|
|
995
995
|
|
|
996
996
|
// src/swift-sdk-surface.ts
|
|
997
|
+
import { AsyncLocalStorage } from "node:async_hooks";
|
|
997
998
|
import { execFileSync as execFileSync3, spawnSync as spawnSync3 } from "node:child_process";
|
|
998
999
|
import { createHash as createHash4, randomUUID } from "node:crypto";
|
|
999
1000
|
import {
|
|
@@ -1489,7 +1490,19 @@ function swiftMacroPlugins(moduleRoot) {
|
|
|
1489
1490
|
};
|
|
1490
1491
|
}
|
|
1491
1492
|
var linkedModuleDigests = /* @__PURE__ */ new Map();
|
|
1493
|
+
var moduleDigestScopes = new AsyncLocalStorage();
|
|
1494
|
+
function withSwiftModuleDigestScope(fn) {
|
|
1495
|
+
if (moduleDigestScopes.getStore()) return fn();
|
|
1496
|
+
return moduleDigestScopes.run(/* @__PURE__ */ new Map(), fn);
|
|
1497
|
+
}
|
|
1498
|
+
function clearSwiftModuleDigestScope(root) {
|
|
1499
|
+
const scope = moduleDigestScopes.getStore();
|
|
1500
|
+
if (!scope) return;
|
|
1501
|
+
if (root === void 0) scope.clear();
|
|
1502
|
+
else scope.delete(path8.resolve(root));
|
|
1503
|
+
}
|
|
1492
1504
|
function clearLinkedModuleDigests(root) {
|
|
1505
|
+
clearSwiftModuleDigestScope(root);
|
|
1493
1506
|
if (root === void 0) linkedModuleDigests.clear();
|
|
1494
1507
|
else linkedModuleDigests.delete(root);
|
|
1495
1508
|
}
|
|
@@ -1556,7 +1569,11 @@ function gitCleanModuleInputsKey(root, files) {
|
|
|
1556
1569
|
for (const file of files) keyHash.update(file).update("\n");
|
|
1557
1570
|
return keyHash.digest("hex");
|
|
1558
1571
|
}
|
|
1559
|
-
function
|
|
1572
|
+
function swiftModuleEntry(root) {
|
|
1573
|
+
const scope = moduleDigestScopes.getStore();
|
|
1574
|
+
const key = path8.resolve(root);
|
|
1575
|
+
const scoped = scope?.get(key);
|
|
1576
|
+
if (scoped) return scoped;
|
|
1560
1577
|
const files = swiftModuleInputFiles(root);
|
|
1561
1578
|
const stampHash = createHash4("sha256");
|
|
1562
1579
|
for (const file of files) {
|
|
@@ -1569,7 +1586,10 @@ function swiftModuleDigest(root) {
|
|
|
1569
1586
|
}
|
|
1570
1587
|
const stamp = stampHash.digest("hex");
|
|
1571
1588
|
const cached = linkedModuleDigests.get(root);
|
|
1572
|
-
if (cached?.stamp === stamp)
|
|
1589
|
+
if (cached?.stamp === stamp) {
|
|
1590
|
+
scope?.set(key, cached);
|
|
1591
|
+
return cached;
|
|
1592
|
+
}
|
|
1573
1593
|
const digestDir = path8.join(swiftCacheDir(), "swift-module-digests");
|
|
1574
1594
|
const record = path8.join(
|
|
1575
1595
|
digestDir,
|
|
@@ -1585,8 +1605,10 @@ function swiftModuleDigest(root) {
|
|
|
1585
1605
|
const saved = JSON.parse(readFileSync4(record, "utf8"));
|
|
1586
1606
|
if (saved && typeof saved === "object" && Reflect.get(saved, "stamp") === stamp && typeof Reflect.get(saved, "digest") === "string") {
|
|
1587
1607
|
const digest2 = Buffer.from(String(Reflect.get(saved, "digest")), "hex");
|
|
1588
|
-
|
|
1589
|
-
|
|
1608
|
+
const entry2 = { stamp, digest: digest2 };
|
|
1609
|
+
linkedModuleDigests.set(root, entry2);
|
|
1610
|
+
scope?.set(key, entry2);
|
|
1611
|
+
return entry2;
|
|
1590
1612
|
}
|
|
1591
1613
|
}
|
|
1592
1614
|
const gitKey = gitCleanModuleInputsKey(root, files);
|
|
@@ -1596,9 +1618,11 @@ function swiftModuleDigest(root) {
|
|
|
1596
1618
|
if (saved && typeof saved === "object" && typeof Reflect.get(saved, "digest") === "string") {
|
|
1597
1619
|
const hex2 = String(Reflect.get(saved, "digest"));
|
|
1598
1620
|
const digest2 = Buffer.from(hex2, "hex");
|
|
1599
|
-
|
|
1621
|
+
const entry2 = { stamp, digest: digest2 };
|
|
1622
|
+
linkedModuleDigests.set(root, entry2);
|
|
1623
|
+
scope?.set(key, entry2);
|
|
1600
1624
|
writeRecord(record, JSON.stringify({ stamp, digest: hex2 }));
|
|
1601
|
-
return
|
|
1625
|
+
return entry2;
|
|
1602
1626
|
}
|
|
1603
1627
|
}
|
|
1604
1628
|
const hash = createHash4("sha256");
|
|
@@ -1610,10 +1634,15 @@ function swiftModuleDigest(root) {
|
|
|
1610
1634
|
}
|
|
1611
1635
|
const digest = hash.digest();
|
|
1612
1636
|
const hex = digest.toString("hex");
|
|
1613
|
-
|
|
1637
|
+
const entry = { stamp, digest };
|
|
1638
|
+
linkedModuleDigests.set(root, entry);
|
|
1639
|
+
scope?.set(key, entry);
|
|
1614
1640
|
writeRecord(record, JSON.stringify({ stamp, digest: hex }));
|
|
1615
1641
|
if (gitRecord) writeRecord(gitRecord, JSON.stringify({ digest: hex }));
|
|
1616
|
-
return
|
|
1642
|
+
return entry;
|
|
1643
|
+
}
|
|
1644
|
+
function swiftModuleDigest(root) {
|
|
1645
|
+
return swiftModuleEntry(root).digest;
|
|
1617
1646
|
}
|
|
1618
1647
|
var compileSurfaces = /* @__PURE__ */ new WeakMap();
|
|
1619
1648
|
function swiftCompileSurfaceDigest(root) {
|
|
@@ -1711,8 +1740,10 @@ function* swiftConditionalLines(contents2, available, defines) {
|
|
|
1711
1740
|
}
|
|
1712
1741
|
var importNamesCache = /* @__PURE__ */ new Map();
|
|
1713
1742
|
function swiftImportNames(contents2, available, defines) {
|
|
1714
|
-
if (
|
|
1715
|
-
|
|
1743
|
+
if (!contents2.includes("import")) return [];
|
|
1744
|
+
const definesKey = available === void 0 ? defines ? [...defines].sort().join("\0") : "" : void 0;
|
|
1745
|
+
if (definesKey !== void 0) {
|
|
1746
|
+
const cached = importNamesCache.get(definesKey)?.get(contents2);
|
|
1716
1747
|
if (cached !== void 0) return cached;
|
|
1717
1748
|
}
|
|
1718
1749
|
const names = [];
|
|
@@ -1721,8 +1752,14 @@ function swiftImportNames(contents2, available, defines) {
|
|
|
1721
1752
|
const name = SWIFT_IMPORT.exec(line)?.[1];
|
|
1722
1753
|
if (name) names.push(name);
|
|
1723
1754
|
}
|
|
1724
|
-
if (
|
|
1725
|
-
importNamesCache.
|
|
1755
|
+
if (definesKey !== void 0) {
|
|
1756
|
+
let bucket = importNamesCache.get(definesKey);
|
|
1757
|
+
if (!bucket) {
|
|
1758
|
+
bucket = /* @__PURE__ */ new Map();
|
|
1759
|
+
importNamesCache.set(definesKey, bucket);
|
|
1760
|
+
}
|
|
1761
|
+
bucket.set(contents2, names);
|
|
1762
|
+
}
|
|
1726
1763
|
return names;
|
|
1727
1764
|
}
|
|
1728
1765
|
function swiftPeachModules(moduleRoot) {
|
|
@@ -2370,11 +2407,15 @@ function swiftCDefinedNames(sources) {
|
|
|
2370
2407
|
}
|
|
2371
2408
|
return names;
|
|
2372
2409
|
}
|
|
2373
|
-
function
|
|
2410
|
+
function swiftModuleRelease(root) {
|
|
2374
2411
|
const pin = swiftDistributionAt(root) ?? JSON.parse(readFileSync4(path8.join(root, "toolchain.json"), "utf8"));
|
|
2412
|
+
return pin.release;
|
|
2413
|
+
}
|
|
2414
|
+
function swiftModuleCompiler(root) {
|
|
2415
|
+
const release = swiftModuleRelease(root);
|
|
2375
2416
|
return {
|
|
2376
|
-
release
|
|
2377
|
-
toolchainBin: swiftCompiler(
|
|
2417
|
+
release,
|
|
2418
|
+
toolchainBin: swiftCompiler(release)
|
|
2378
2419
|
};
|
|
2379
2420
|
}
|
|
2380
2421
|
function swiftModuleToolchain(root) {
|
|
@@ -2757,6 +2798,8 @@ export {
|
|
|
2757
2798
|
swiftCompileSdkOptions,
|
|
2758
2799
|
swiftModuleInputFiles,
|
|
2759
2800
|
swiftMacroPlugins,
|
|
2801
|
+
withSwiftModuleDigestScope,
|
|
2802
|
+
clearSwiftModuleDigestScope,
|
|
2760
2803
|
clearLinkedModuleDigests,
|
|
2761
2804
|
swiftModuleDigest,
|
|
2762
2805
|
swiftCompileSurfaceDigest,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2794 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
SIM_LONG_PRESS_MAX_MS
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OS6YJU3W.mjs";
|
|
5
5
|
import {
|
|
6
6
|
isRecord
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-K7RLWF5X.mjs";
|
|
8
8
|
|
|
9
9
|
// ../peach-globals/src/globalsContract.ts
|
|
10
10
|
var LEGACY_ALIAS_MARKER = Symbol.for("sootsim.legacy-aliases-installed");
|
package/dist-lib/esm-chunks/{metro-layout-parser-26WDQMLR.mjs → metro-layout-parser-WG2ITRQD.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
import "./chunk-
|
|
1
|
+
/*! peach v0.1.2794 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
|
+
import "./chunk-V6BE34Q3.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-A7OMJDVK.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.2794 | (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-7QNWHCMJ.mjs";
|
|
8
|
+
import "./chunk-CIFEHSEA.mjs";
|
|
9
9
|
import {
|
|
10
10
|
swiftDistributionAt,
|
|
11
11
|
swiftImportNames
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-Y6YMRYNX.mjs";
|
|
13
|
+
import "./chunk-CIR4VZ22.mjs";
|
|
14
14
|
import {
|
|
15
15
|
SWIFT_REMOTE_PACKAGES_DIR
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-B3E5ZI2D.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-R6ES6QCH.mjs";
|
|
20
|
+
import "./chunk-AW4Z3K2U.mjs";
|
|
21
|
+
import "./chunk-GDITZ3K2.mjs";
|
|
22
|
+
import "./chunk-O6HHWO4Y.mjs";
|
|
23
|
+
import "./chunk-K7RLWF5X.mjs";
|
|
24
|
+
import "./chunk-V6BE34Q3.mjs";
|
|
25
25
|
|
|
26
26
|
// src/swift-package-prebuilt.ts
|
|
27
27
|
import { createHash } from "node:crypto";
|
|
@@ -60,7 +60,10 @@ function swiftPackagePrebuiltEntries(input, moduleRoot, toolchainBin) {
|
|
|
60
60
|
const calls = manifestCalls(manifest, ["target"]);
|
|
61
61
|
const platform = /platforms:\s*\[\.iOS\("([\d.]+)"\)\]/.exec(manifest)?.[1];
|
|
62
62
|
if (!platform) return [];
|
|
63
|
-
const sdkModules = swiftAvailableModules(
|
|
63
|
+
const sdkModules = swiftAvailableModules(
|
|
64
|
+
moduleRoot,
|
|
65
|
+
typeof toolchainBin === "function" ? toolchainBin() : toolchainBin
|
|
66
|
+
);
|
|
64
67
|
return selected.flatMap(([name, modules]) => {
|
|
65
68
|
const prefix = `${SWIFT_REMOTE_PACKAGES_DIR}/${name}/`;
|
|
66
69
|
const members = targets.filter(
|
package/dist-lib/esm-chunks/{swift-sdk-app-module-I4OZ7CGZ.mjs → swift-sdk-app-module-3DB4F4Y2.mjs}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2794 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
SWIFT_SDK_APP_MEMORY_BASE,
|
|
4
4
|
SWIFT_SDK_MEMORY_BASE,
|
|
5
5
|
SWIFT_SDK_PIECE_FIELDS,
|
|
6
6
|
readSwiftSdkManifest
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GHGDWJY3.mjs";
|
|
8
8
|
import {
|
|
9
9
|
ADDEND_RELOCATIONS,
|
|
10
10
|
KEEP_WASM_NAMES,
|
|
@@ -36,26 +36,26 @@ import {
|
|
|
36
36
|
wasmReader,
|
|
37
37
|
wasmSections,
|
|
38
38
|
writeWasmCustomSection
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
39
|
+
} from "./chunk-7QNWHCMJ.mjs";
|
|
40
|
+
import "./chunk-CIFEHSEA.mjs";
|
|
41
|
+
import "./chunk-2TCGEMEV.mjs";
|
|
42
|
+
import "./chunk-NKJ67PFZ.mjs";
|
|
43
|
+
import "./chunk-E6KA576K.mjs";
|
|
44
44
|
import {
|
|
45
45
|
encodeWasmName,
|
|
46
46
|
encodeWasmNumber,
|
|
47
47
|
encodeWasmSigned
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-Y6YMRYNX.mjs";
|
|
49
49
|
import {
|
|
50
50
|
SWIFT_WASM_TRIPLE
|
|
51
|
-
} from "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
51
|
+
} from "./chunk-CIR4VZ22.mjs";
|
|
52
|
+
import "./chunk-B3E5ZI2D.mjs";
|
|
53
|
+
import "./chunk-R6ES6QCH.mjs";
|
|
54
|
+
import "./chunk-AW4Z3K2U.mjs";
|
|
55
|
+
import "./chunk-GDITZ3K2.mjs";
|
|
56
|
+
import "./chunk-O6HHWO4Y.mjs";
|
|
57
|
+
import "./chunk-K7RLWF5X.mjs";
|
|
58
|
+
import "./chunk-V6BE34Q3.mjs";
|
|
59
59
|
|
|
60
60
|
// src/swift-sdk-app-module.ts
|
|
61
61
|
import { execFile } from "node:child_process";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2794 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
SWIFT_SDK_APP_MEMORY_BASE,
|
|
4
4
|
SWIFT_SDK_IMAGE_BUNDLE,
|
|
@@ -13,21 +13,21 @@ import {
|
|
|
13
13
|
swiftSdkImageFile,
|
|
14
14
|
swiftSdkImageKey,
|
|
15
15
|
swiftSdkImageProducts
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-GHGDWJY3.mjs";
|
|
17
|
+
import "./chunk-7QNWHCMJ.mjs";
|
|
18
|
+
import "./chunk-CIFEHSEA.mjs";
|
|
19
|
+
import "./chunk-2TCGEMEV.mjs";
|
|
20
|
+
import "./chunk-NKJ67PFZ.mjs";
|
|
21
|
+
import "./chunk-E6KA576K.mjs";
|
|
22
|
+
import "./chunk-Y6YMRYNX.mjs";
|
|
23
|
+
import "./chunk-CIR4VZ22.mjs";
|
|
24
|
+
import "./chunk-B3E5ZI2D.mjs";
|
|
25
|
+
import "./chunk-R6ES6QCH.mjs";
|
|
26
|
+
import "./chunk-AW4Z3K2U.mjs";
|
|
27
|
+
import "./chunk-GDITZ3K2.mjs";
|
|
28
|
+
import "./chunk-O6HHWO4Y.mjs";
|
|
29
|
+
import "./chunk-K7RLWF5X.mjs";
|
|
30
|
+
import "./chunk-V6BE34Q3.mjs";
|
|
31
31
|
export {
|
|
32
32
|
SWIFT_SDK_APP_MEMORY_BASE,
|
|
33
33
|
SWIFT_SDK_IMAGE_BUNDLE,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2794 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
withSwiftRootLock
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-CIFEHSEA.mjs";
|
|
5
5
|
import {
|
|
6
6
|
swiftCacheDir,
|
|
7
7
|
windowAdmission
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-CIR4VZ22.mjs";
|
|
9
9
|
import {
|
|
10
10
|
isRecord
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-K7RLWF5X.mjs";
|
|
12
|
+
import "./chunk-V6BE34Q3.mjs";
|
|
13
13
|
|
|
14
14
|
// src/swift-sdk-image-producer.ts
|
|
15
15
|
import { execFile, execFileSync } from "node:child_process";
|