peachsim 0.1.2745 → 0.1.2747
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 +19 -9
- package/detox/index.ts +17 -13
- 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 +25 -21
- 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 +15 -11
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/esm-chunks/{acorn-4PRSNL7D.mjs → acorn-264PERTU.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-GCNULNUC.mjs → chunk-2KP4Q4QG.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-NADMCUMF.mjs → chunk-3PIRJQS3.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-WLLS6DA3.mjs → chunk-6A6ESU7M.mjs} +15 -15
- package/dist-lib/esm-chunks/{chunk-VJGH2L5T.mjs → chunk-AASYNA7O.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-AM2DC7NA.mjs → chunk-BTOHCTM5.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-3GDQDE3G.mjs → chunk-C4WNCPE7.mjs} +89 -91
- package/dist-lib/esm-chunks/{chunk-FYJWNZXZ.mjs → chunk-DKOHFKVO.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-57IBEXZ7.mjs → chunk-DNPF3SJV.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-KTMFARKZ.mjs → chunk-H5VBNND3.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-BRVVBFDT.mjs → chunk-LETYBISI.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-V6AO52UA.mjs → chunk-NGFHBDMP.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-CLQBDTGC.mjs → chunk-OGKCUDUY.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-HSK5BQLE.mjs → chunk-OS777HDT.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-GYBNX5MY.mjs → chunk-R5URHHLY.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-JT327IEG.mjs → chunk-RQYO274I.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-DPQFKGWK.mjs → chunk-SNIXC3LK.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-3XWVOEVJ.mjs → chunk-SSEYL4BD.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-OCBYCFDU.mjs → chunk-SZAKV76H.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-AXNPA4CI.mjs → chunk-UX3TKSSG.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-GUSFQUZD.mjs → chunk-V5QS3LC7.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-MAITHQ5S.mjs → chunk-VBVWVPFV.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-GYUYO4YT.mjs → chunk-VFVDWLZL.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-JN2C772U.mjs → chunk-YL5WAVSA.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-FLEVN7IJ.mjs → chunk-ZGKZH72O.mjs} +1 -1
- package/dist-lib/esm-chunks/{metro-layout-parser-MFSWKUZV.mjs → metro-layout-parser-X53TI6UE.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-RPFJWIPU.mjs → swift-package-prebuilt-BCWD6FXB.mjs} +12 -12
- package/dist-lib/esm-chunks/{swift-sdk-app-module-C6XR5HMX.mjs → swift-sdk-app-module-PVYYHAOX.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-6U5P377S.mjs → swift-sdk-image-YU237KAS.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-ZKU3LVLR.mjs → swift-sdk-image-producer-E6S3PF4W.mjs} +8 -7
- package/dist-lib/expo-swift-bundle.cjs +25 -21
- 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 +25 -21
- package/dist-lib/host/fetch-proxy-handler.cjs +6 -8
- 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 +25 -21
- package/dist-lib/swift-compile.cjs +6 -6
- 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/canvaskit/graphite.d.ts +13 -0
- package/dist-types/packages/peach-engine/src/engine/scene-native-binding.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/canvaskit-webgpu.d.ts +2 -19
- package/dist-types/packages/peach-engine/src/render-worker/compositor-gpu.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/render-worker/native-hot-ops.d.ts +2 -2
- package/package.json +1 -1
- package/src/expo-swift-host.ts +4 -0
- package/src/swift-objc-compile.ts +4 -5
- package/src/swift-objc-prebuilt.ts +2 -2
- package/src/swift-pdf-raster.ts +2 -2
- package/src/swift-sdk-image-producer.ts +2 -1
- package/src/swift-sdk-surface.ts +3 -3
- package/src/swift-source-pods.ts +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2747 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
Node,
|
|
4
4
|
Parser,
|
|
@@ -22,8 +22,8 @@ import {
|
|
|
22
22
|
types,
|
|
23
23
|
types$1,
|
|
24
24
|
version
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-LETYBISI.mjs";
|
|
26
|
+
import "./chunk-SZAKV76H.mjs";
|
|
27
27
|
export {
|
|
28
28
|
Node,
|
|
29
29
|
Parser,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2747 | (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-DKOHFKVO.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-C4WNCPE7.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-RQYO274I.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-H5VBNND3.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-3PIRJQS3.mjs";
|
|
114
114
|
import {
|
|
115
115
|
rnxPublicBrand
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-DNPF3SJV.mjs";
|
|
117
117
|
import {
|
|
118
118
|
isRecord
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-R5URHHLY.mjs";
|
|
120
120
|
import {
|
|
121
121
|
__publicField
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-SZAKV76H.mjs";
|
|
123
123
|
|
|
124
124
|
// src/swift-compile.ts
|
|
125
125
|
import {
|
|
@@ -14469,7 +14469,7 @@ async function compileGuestLink(options) {
|
|
|
14469
14469
|
};
|
|
14470
14470
|
const sdk = options.sdkImage;
|
|
14471
14471
|
const sdkCallers = sdk.sdkInterface.guestCallers;
|
|
14472
|
-
const sdkObjects = (await import("./swift-sdk-image-
|
|
14472
|
+
const sdkObjects = (await import("./swift-sdk-image-YU237KAS.mjs")).readSwiftSdkManifestIndex(
|
|
14473
14473
|
sdk
|
|
14474
14474
|
).guestObjects;
|
|
14475
14475
|
if (!sdkCallers || !sdkObjects)
|
|
@@ -14769,7 +14769,7 @@ async function compileGuestLink(options) {
|
|
|
14769
14769
|
swiftAppModuleThunkSection,
|
|
14770
14770
|
swiftSdkProjectionSpans,
|
|
14771
14771
|
writeSwiftSdkAppLink
|
|
14772
|
-
} = await import("./swift-sdk-app-module-
|
|
14772
|
+
} = await import("./swift-sdk-app-module-PVYYHAOX.mjs");
|
|
14773
14773
|
const project = options.project;
|
|
14774
14774
|
const work = project ? mkdtempSync2(path14.join(directory, "app-module-")) : path14.join(directory, "app-module");
|
|
14775
14775
|
if (project) chownSync(work, project.uid, project.gid);
|
|
@@ -16742,7 +16742,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
16742
16742
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
16743
16743
|
var MULTI_MANIFEST_VERSION = 76;
|
|
16744
16744
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
16745
|
-
var compilerSourceDigest = true ? "
|
|
16745
|
+
var compilerSourceDigest = true ? "829c0da5595c8616a9a93acdc6f36f11813464ad7d0a9498a748787c5b901499" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
16746
16746
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
16747
16747
|
return swiftCompileInputHash(input, release).update(swiftModuleDigest(moduleRoot)).digest("hex");
|
|
16748
16748
|
}
|
|
@@ -21273,7 +21273,7 @@ async function compileSwiftProjectOnce(sources, options) {
|
|
|
21273
21273
|
const distribution = swiftDistributionAt(moduleRoot);
|
|
21274
21274
|
const mirrorDistribution = options.linkOnly || options.project ? null : distribution;
|
|
21275
21275
|
if (distribution) refreshSwiftCacheHold(moduleRoot);
|
|
21276
|
-
const input = distribution && !options.intermediates ? (await import("./swift-package-prebuilt-
|
|
21276
|
+
const input = distribution && !options.intermediates ? (await import("./swift-package-prebuilt-BCWD6FXB.mjs")).useSwiftPackagePrebuilts(
|
|
21277
21277
|
sources,
|
|
21278
21278
|
moduleRoot,
|
|
21279
21279
|
options.toolchainBin
|
|
@@ -21286,7 +21286,7 @@ async function compileSwiftProjectOnce(sources, options) {
|
|
|
21286
21286
|
sources: path23.join(root, "Sources", "App"),
|
|
21287
21287
|
multi: compileTargets(input).length > 0
|
|
21288
21288
|
};
|
|
21289
|
-
const sdkImage = options.linkOnly ? void 0 : await (await import("./swift-sdk-image-
|
|
21289
|
+
const sdkImage = options.linkOnly ? void 0 : await (await import("./swift-sdk-image-YU237KAS.mjs")).buildSwiftSdkImage(
|
|
21290
21290
|
moduleRoot,
|
|
21291
21291
|
!!guestGraph,
|
|
21292
21292
|
distribution ? [] : linkedFrameworkTargets(moduleRoot, input).imports,
|
|
@@ -22006,7 +22006,7 @@ ${compatShape}` : "";
|
|
|
22006
22006
|
});
|
|
22007
22007
|
sdkAsset = { key: sdkImage.key, sha256: sdkImage.sha256, binding };
|
|
22008
22008
|
} else {
|
|
22009
|
-
const { buildSwiftAppModule } = await import("./swift-sdk-app-module-
|
|
22009
|
+
const { buildSwiftAppModule } = await import("./swift-sdk-app-module-PVYYHAOX.mjs");
|
|
22010
22010
|
const binding = await buildSwiftAppModule({
|
|
22011
22011
|
buildRoot: root2,
|
|
22012
22012
|
toolchainBin: options.toolchainBin,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2747 | (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-SNIXC3LK.mjs";
|
|
6
6
|
import {
|
|
7
7
|
cacheDir,
|
|
8
8
|
parseSwiftDistributionLock,
|
|
9
9
|
readActiveRuntime,
|
|
10
10
|
runtimeDir
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-C4WNCPE7.mjs";
|
|
12
12
|
import {
|
|
13
13
|
SWIFT_WASM_TRIPLE,
|
|
14
14
|
registerSwiftHostCompiler
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-RQYO274I.mjs";
|
|
16
16
|
import {
|
|
17
17
|
isRecord
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-R5URHHLY.mjs";
|
|
19
19
|
|
|
20
20
|
// src/swift-distribution.ts
|
|
21
21
|
import { execFile as execFile2 } from "node:child_process";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2747 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
DARWIN_RECORDS_PREFIX,
|
|
4
4
|
KEEP_WASM_NAMES,
|
|
@@ -31,22 +31,22 @@ import {
|
|
|
31
31
|
swiftSdkImageScope,
|
|
32
32
|
unslottedFunctions,
|
|
33
33
|
wasmSections
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-6A6ESU7M.mjs";
|
|
35
35
|
import {
|
|
36
36
|
withSwiftRootLock,
|
|
37
37
|
withSwiftRootReadHolds
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-DKOHFKVO.mjs";
|
|
39
39
|
import {
|
|
40
40
|
swiftDistributionAt,
|
|
41
41
|
swiftModuleDigest,
|
|
42
42
|
swiftModuleToolchain,
|
|
43
43
|
swiftSdkPaths
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-C4WNCPE7.mjs";
|
|
45
45
|
import {
|
|
46
46
|
SWIFT_WASM_TRIPLE,
|
|
47
47
|
sourceSwiftCheckout,
|
|
48
48
|
swiftCacheDir
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-RQYO274I.mjs";
|
|
50
50
|
|
|
51
51
|
// src/swift-sdk-image.ts
|
|
52
52
|
import { execFile } from "node:child_process";
|
|
@@ -225,7 +225,7 @@ async function buildSwiftSdkImage(moduleRoot, scopedLookups = false, frameworkIm
|
|
|
225
225
|
const existing = cached(directory, key);
|
|
226
226
|
if (existing) return existing;
|
|
227
227
|
if (!options?.producer && !swiftDistributionAt(moduleRoot) && path.resolve(moduleRoot) === sourceSwiftCheckout() && process.platform === "linux" && process.env.TM_SESSION) {
|
|
228
|
-
const { produceSwiftSdkImage } = await import("./swift-sdk-image-producer-
|
|
228
|
+
const { produceSwiftSdkImage } = await import("./swift-sdk-image-producer-E6S3PF4W.mjs");
|
|
229
229
|
await produceSwiftSdkImage({
|
|
230
230
|
moduleRoot,
|
|
231
231
|
key,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2747 | (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-RQYO274I.mjs";
|
|
16
16
|
import {
|
|
17
17
|
isSwiftResourcePath
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-H5VBNND3.mjs";
|
|
19
19
|
import {
|
|
20
20
|
swiftManifestDeclarations
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-3PIRJQS3.mjs";
|
|
22
22
|
import {
|
|
23
23
|
isRecord
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-R5URHHLY.mjs";
|
|
25
25
|
import {
|
|
26
26
|
__publicField
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-SZAKV76H.mjs";
|
|
28
28
|
|
|
29
29
|
// src/write-build-file.ts
|
|
30
30
|
import { mkdirSync, readFileSync, statSync, writeFileSync } from "node:fs";
|
|
@@ -899,7 +899,7 @@ function swiftSharedSdkInputFiles(moduleRoot) {
|
|
|
899
899
|
|
|
900
900
|
// src/swift-sdk-surface.ts
|
|
901
901
|
import { execFileSync as execFileSync3, spawnSync as spawnSync3 } from "node:child_process";
|
|
902
|
-
import { createHash as createHash4, randomUUID
|
|
902
|
+
import { createHash as createHash4, randomUUID } from "node:crypto";
|
|
903
903
|
import {
|
|
904
904
|
chmodSync,
|
|
905
905
|
copyFileSync,
|
|
@@ -916,45 +916,7 @@ import {
|
|
|
916
916
|
writeFileSync as writeFileSync2
|
|
917
917
|
} from "node:fs";
|
|
918
918
|
import os from "node:os";
|
|
919
|
-
import path9 from "node:path";
|
|
920
|
-
|
|
921
|
-
// src/home-paths.ts
|
|
922
|
-
import { randomUUID } from "node:crypto";
|
|
923
|
-
import fs4 from "node:fs";
|
|
924
|
-
import { homedir } from "node:os";
|
|
925
919
|
import path8 from "node:path";
|
|
926
|
-
var PEACH_HOME_ENV = "PEACH_HOME";
|
|
927
|
-
var ACTIVE_RUNTIME_FILE = "active";
|
|
928
|
-
function ambientHomeDir() {
|
|
929
|
-
return path8.join(homedir(), ".peach");
|
|
930
|
-
}
|
|
931
|
-
function rnxHomeDir() {
|
|
932
|
-
const override = process.env[PEACH_HOME_ENV];
|
|
933
|
-
return override && override.length > 0 ? path8.resolve(override) : ambientHomeDir();
|
|
934
|
-
}
|
|
935
|
-
function runtimesDir() {
|
|
936
|
-
return path8.join(rnxHomeDir(), "runtimes");
|
|
937
|
-
}
|
|
938
|
-
function runtimeDir(version) {
|
|
939
|
-
return path8.join(runtimesDir(), version);
|
|
940
|
-
}
|
|
941
|
-
function activeRuntimeFile() {
|
|
942
|
-
return path8.join(runtimesDir(), ACTIVE_RUNTIME_FILE);
|
|
943
|
-
}
|
|
944
|
-
function cacheDir() {
|
|
945
|
-
return path8.join(rnxHomeDir(), "cache");
|
|
946
|
-
}
|
|
947
|
-
function readActiveRuntime() {
|
|
948
|
-
try {
|
|
949
|
-
const value = fs4.readFileSync(activeRuntimeFile(), "utf8").trim();
|
|
950
|
-
return value.length > 0 ? value : null;
|
|
951
|
-
} catch {
|
|
952
|
-
return null;
|
|
953
|
-
}
|
|
954
|
-
}
|
|
955
|
-
var DAEMON_LOCKFILE_MAX_BYTES = 16 * 1024;
|
|
956
|
-
|
|
957
|
-
// src/swift-sdk-surface.ts
|
|
958
920
|
function swiftBuildJobs() {
|
|
959
921
|
const admittedCores = windowAdmission()?.cores ?? Number(process.env.TM_EXEC_CPU_CORES);
|
|
960
922
|
const parallelism = Math.max(1, os.availableParallelism());
|
|
@@ -968,7 +930,7 @@ function swiftBuildJobs() {
|
|
|
968
930
|
return Math.min(cores, memoryJobs);
|
|
969
931
|
}
|
|
970
932
|
function swiftDistributionAt(root) {
|
|
971
|
-
const file =
|
|
933
|
+
const file = path8.join(root, SWIFT_DISTRIBUTION_MANIFEST);
|
|
972
934
|
const stat = statSync2(file, { bigint: true, throwIfNoEntry: false });
|
|
973
935
|
if (!stat) return null;
|
|
974
936
|
const identity = `${stat.dev}:${stat.ino}:${stat.size}:${stat.mtimeNs}`;
|
|
@@ -987,18 +949,18 @@ function swiftDistributionCompileView(moduleRoot, distribution) {
|
|
|
987
949
|
([file]) => file.startsWith("host/") || file === SWIFT_DISTRIBUTION_OBJC_SELECTORS
|
|
988
950
|
).sort(([left], [right]) => left < right ? -1 : left > right ? 1 : 0);
|
|
989
951
|
const digest = createHash4("sha256").update(JSON.stringify(inputs)).digest("hex");
|
|
990
|
-
view =
|
|
952
|
+
view = path8.join(swiftCacheDir(), "swift-sdk-views", `compile-${digest}`);
|
|
991
953
|
if (!existsSync(view)) {
|
|
992
|
-
mkdirSync2(
|
|
954
|
+
mkdirSync2(path8.dirname(view), { recursive: true });
|
|
993
955
|
const staging = mkdtempSync(`${view}-`);
|
|
994
956
|
try {
|
|
995
957
|
chmodSync(staging, 493);
|
|
996
958
|
for (const [file] of inputs) {
|
|
997
959
|
if (!isSwiftResourcePath(file))
|
|
998
960
|
throw new Error(`invalid Swift distribution compile path ${file}`);
|
|
999
|
-
const destination =
|
|
1000
|
-
mkdirSync2(
|
|
1001
|
-
copyFileSync(
|
|
961
|
+
const destination = path8.join(staging, file);
|
|
962
|
+
mkdirSync2(path8.dirname(destination), { recursive: true });
|
|
963
|
+
copyFileSync(path8.join(moduleRoot, file), destination);
|
|
1002
964
|
}
|
|
1003
965
|
try {
|
|
1004
966
|
renameSync(staging, view);
|
|
@@ -1020,19 +982,19 @@ var REACH_STAGED_FRAMEWORKS = /* @__PURE__ */ new Set(["React"]);
|
|
|
1020
982
|
function swiftModuleInterface(moduleRoot, name) {
|
|
1021
983
|
if (REACH_STAGED_FRAMEWORKS.has(name)) return null;
|
|
1022
984
|
if (swiftDistributionAt(moduleRoot)) {
|
|
1023
|
-
const file =
|
|
985
|
+
const file = path8.join(moduleRoot, "modules", `${name}-Swift.h`);
|
|
1024
986
|
if (!existsSync(file)) return null;
|
|
1025
987
|
const header = clangInterfaceHeader(readFileSync4(file, "utf8"), moduleRoot);
|
|
1026
988
|
return { declared: swiftInterfaceDeclarations(header), header };
|
|
1027
989
|
}
|
|
1028
|
-
const sources =
|
|
1029
|
-
const built =
|
|
990
|
+
const sources = path8.join(moduleRoot, "Sources", name);
|
|
991
|
+
const built = path8.join(moduleRoot, ".build/host", `${name}-Swift.h`);
|
|
1030
992
|
if (!existsSync(sources) || !existsSync(built)) return null;
|
|
1031
993
|
const declared = /* @__PURE__ */ new Set();
|
|
1032
994
|
for (const file of readdirSync3(sources, { recursive: true, encoding: "utf8" }))
|
|
1033
995
|
if (file.endsWith(".swift"))
|
|
1034
996
|
for (const [, objc, subclass] of readFileSync4(
|
|
1035
|
-
|
|
997
|
+
path8.join(sources, file),
|
|
1036
998
|
"utf8"
|
|
1037
999
|
).matchAll(
|
|
1038
1000
|
/@objc\((\w+)\)\s+(?:\w+\s+)*?(?:protocol|class)\s|^(?:public|open)\s+(?:final\s+)?class\s+(\w+)\s*:\s*NSObject\b/gm
|
|
@@ -1046,7 +1008,7 @@ function swiftModuleInterface(moduleRoot, name) {
|
|
|
1046
1008
|
}
|
|
1047
1009
|
function clangInterfaceHeader(header, moduleRoot) {
|
|
1048
1010
|
const distribution = swiftDistributionAt(moduleRoot) !== null;
|
|
1049
|
-
const frameworks =
|
|
1011
|
+
const frameworks = path8.join(
|
|
1050
1012
|
swiftSharedSdkSourceRoot(moduleRoot, distribution),
|
|
1051
1013
|
"System/Library/Frameworks"
|
|
1052
1014
|
);
|
|
@@ -1059,7 +1021,7 @@ function clangInterfaceHeader(header, moduleRoot) {
|
|
|
1059
1021
|
(_, module, framework) => {
|
|
1060
1022
|
const imports = [`@import ${framework};`];
|
|
1061
1023
|
imported.add(framework);
|
|
1062
|
-
const directory = distribution ?
|
|
1024
|
+
const directory = distribution ? path8.join(moduleRoot, "modules", module) : path8.join(moduleRoot, "Sources", module, "include");
|
|
1063
1025
|
if (!existsSync(directory)) return imports[0];
|
|
1064
1026
|
if (!references) {
|
|
1065
1027
|
references = new Set(header.match(/\b[A-Z]\w*\b/g));
|
|
@@ -1088,7 +1050,7 @@ var clangDeclarationEnumCache = /* @__PURE__ */ new Map();
|
|
|
1088
1050
|
function clangDeclarationEnums(directory) {
|
|
1089
1051
|
const cached = clangDeclarationEnumCache.get(directory);
|
|
1090
1052
|
if (cached) return cached;
|
|
1091
|
-
const enums = readdirSync3(directory).filter((file) => file.endsWith(".h")).flatMap((file) => objcEnumerations(readFileSync4(
|
|
1053
|
+
const enums = readdirSync3(directory).filter((file) => file.endsWith(".h")).flatMap((file) => objcEnumerations(readFileSync4(path8.join(directory, file), "utf8")));
|
|
1092
1054
|
clangDeclarationEnumCache.set(directory, enums);
|
|
1093
1055
|
return enums;
|
|
1094
1056
|
}
|
|
@@ -1123,11 +1085,11 @@ function sdkObjCDeclarationOwners(frameworks) {
|
|
|
1123
1085
|
const owners = /* @__PURE__ */ new Map();
|
|
1124
1086
|
for (const framework of readdirSync3(frameworks))
|
|
1125
1087
|
if (framework.endsWith(".framework")) {
|
|
1126
|
-
const headers =
|
|
1088
|
+
const headers = path8.join(frameworks, framework, "Headers");
|
|
1127
1089
|
if (existsSync(headers)) {
|
|
1128
1090
|
for (const file of readdirSync3(headers, { recursive: true, encoding: "utf8" }))
|
|
1129
1091
|
if (file.endsWith(".h")) {
|
|
1130
|
-
const header = readFileSync4(
|
|
1092
|
+
const header = readFileSync4(path8.join(headers, file), "utf8");
|
|
1131
1093
|
for (const name of [
|
|
1132
1094
|
...swiftInterfaceDeclarations(header),
|
|
1133
1095
|
...objcEnumerations(header),
|
|
@@ -1259,7 +1221,7 @@ function swiftModuleInputFiles(root) {
|
|
|
1259
1221
|
"toolchain.json"
|
|
1260
1222
|
];
|
|
1261
1223
|
const walk = (dir) => {
|
|
1262
|
-
for (const entry of readdirSync3(
|
|
1224
|
+
for (const entry of readdirSync3(path8.join(root, dir), {
|
|
1263
1225
|
withFileTypes: true
|
|
1264
1226
|
})) {
|
|
1265
1227
|
const relative = `${dir}/${entry.name}`;
|
|
@@ -1280,36 +1242,36 @@ function swiftMacroPlugins(moduleRoot) {
|
|
|
1280
1242
|
if (distribution) {
|
|
1281
1243
|
const view = swiftDistributionCompileView(moduleRoot, distribution);
|
|
1282
1244
|
return {
|
|
1283
|
-
libraries: distribution.plugins.filter((plugin) =>
|
|
1284
|
-
executables: distribution.plugins.filter((plugin) =>
|
|
1245
|
+
libraries: distribution.plugins.filter((plugin) => path8.basename(plugin) !== "ExpoModulesMacros").map((plugin) => path8.join(view, plugin)),
|
|
1246
|
+
executables: distribution.plugins.filter((plugin) => path8.basename(plugin) === "ExpoModulesMacros").map((plugin) => path8.join(view, plugin)),
|
|
1285
1247
|
stale: false
|
|
1286
1248
|
};
|
|
1287
1249
|
}
|
|
1288
1250
|
const release = JSON.parse(
|
|
1289
|
-
readFileSync4(
|
|
1251
|
+
readFileSync4(path8.join(moduleRoot, "toolchain.json"), "utf8")
|
|
1290
1252
|
).release;
|
|
1291
|
-
const key = createHash4("sha256").update(release).update(`${process.platform}-${process.arch}`).update(readFileSync4(
|
|
1253
|
+
const key = createHash4("sha256").update(release).update(`${process.platform}-${process.arch}`).update(readFileSync4(path8.join(moduleRoot, "scripts/build-preview-plugin.sh")));
|
|
1292
1254
|
for (const source of [
|
|
1293
1255
|
"RnxPreviewMacros",
|
|
1294
1256
|
"FoundationMacros",
|
|
1295
1257
|
"TipKitMacros",
|
|
1296
1258
|
"SwiftMacroSupport"
|
|
1297
1259
|
]) {
|
|
1298
|
-
const sourceDir =
|
|
1260
|
+
const sourceDir = path8.join(moduleRoot, "Sources", source);
|
|
1299
1261
|
for (const file of readdirSync3(sourceDir, { withFileTypes: true }).sort(
|
|
1300
1262
|
(a, b) => a.name.localeCompare(b.name)
|
|
1301
1263
|
)) {
|
|
1302
1264
|
if (file.isFile())
|
|
1303
|
-
key.update(`${source}/${file.name}\0`).update(readFileSync4(
|
|
1265
|
+
key.update(`${source}/${file.name}\0`).update(readFileSync4(path8.join(sourceDir, file.name)));
|
|
1304
1266
|
}
|
|
1305
1267
|
}
|
|
1306
|
-
const dir =
|
|
1307
|
-
const stamp =
|
|
1268
|
+
const dir = path8.join(swiftCacheDir(), "swift-distribution-plugins", key.digest("hex"));
|
|
1269
|
+
const stamp = path8.join(dir, "compiler-release");
|
|
1308
1270
|
const ext = process.platform === "darwin" ? "dylib" : "so";
|
|
1309
1271
|
const libraries = ["RnxPreviewMacros", "FoundationMacros", "TipKitMacros"].map(
|
|
1310
|
-
(name) =>
|
|
1272
|
+
(name) => path8.join(dir, `lib${name}.${ext}`)
|
|
1311
1273
|
);
|
|
1312
|
-
const executables = [
|
|
1274
|
+
const executables = [path8.join(dir, "ExpoModulesMacros")];
|
|
1313
1275
|
return {
|
|
1314
1276
|
libraries,
|
|
1315
1277
|
executables,
|
|
@@ -1333,21 +1295,21 @@ function gitCleanModuleInputsKey(root, files) {
|
|
|
1333
1295
|
const realTop = realpathSync(repoTop);
|
|
1334
1296
|
const realRoot = realpathSync(root);
|
|
1335
1297
|
const collapsedDirs = [
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
realpathSync(
|
|
1298
|
+
path8.join(realRoot, "Sources"),
|
|
1299
|
+
path8.join(realRoot, "cross-import-overlays"),
|
|
1300
|
+
path8.join(realRoot, "ios-simulator-stdlib"),
|
|
1301
|
+
realpathSync(path8.resolve(realRoot, "../peachsim/sdk/ios"))
|
|
1340
1302
|
];
|
|
1341
1303
|
const scoped = /* @__PURE__ */ new Set();
|
|
1342
1304
|
for (const dir of collapsedDirs) {
|
|
1343
|
-
const rel =
|
|
1305
|
+
const rel = path8.relative(realTop, dir).split(path8.sep).join("/");
|
|
1344
1306
|
if (!rel || rel.startsWith("../")) return null;
|
|
1345
1307
|
scoped.add(rel);
|
|
1346
1308
|
}
|
|
1347
1309
|
for (const file of files) {
|
|
1348
|
-
const full =
|
|
1349
|
-
if (collapsedDirs.some((dir) => full.startsWith(dir +
|
|
1350
|
-
const rel =
|
|
1310
|
+
const full = path8.resolve(realRoot, file);
|
|
1311
|
+
if (collapsedDirs.some((dir) => full.startsWith(dir + path8.sep))) continue;
|
|
1312
|
+
const rel = path8.relative(realTop, full).split(path8.sep).join("/");
|
|
1351
1313
|
if (!rel || rel.startsWith("../")) return null;
|
|
1352
1314
|
scoped.add(rel);
|
|
1353
1315
|
}
|
|
@@ -1388,7 +1350,7 @@ function swiftModuleDigest(root) {
|
|
|
1388
1350
|
const files = swiftModuleInputFiles(root);
|
|
1389
1351
|
const stampHash = createHash4("sha256");
|
|
1390
1352
|
for (const file of files) {
|
|
1391
|
-
const stat = statSync2(
|
|
1353
|
+
const stat = statSync2(path8.join(root, file), { bigint: true });
|
|
1392
1354
|
stampHash.update(file);
|
|
1393
1355
|
stampHash.update(
|
|
1394
1356
|
`${stat.dev}:${stat.ino}:${stat.size}:${stat.mtimeNs}:${stat.ctimeNs}
|
|
@@ -1398,14 +1360,14 @@ function swiftModuleDigest(root) {
|
|
|
1398
1360
|
const stamp = stampHash.digest("hex");
|
|
1399
1361
|
const cached = linkedModuleDigests.get(root);
|
|
1400
1362
|
if (cached?.stamp === stamp) return cached.digest;
|
|
1401
|
-
const digestDir =
|
|
1402
|
-
const record =
|
|
1363
|
+
const digestDir = path8.join(swiftCacheDir(), "swift-module-digests");
|
|
1364
|
+
const record = path8.join(
|
|
1403
1365
|
digestDir,
|
|
1404
1366
|
`${createHash4("sha256").update(root).digest("hex")}.json`
|
|
1405
1367
|
);
|
|
1406
1368
|
const writeRecord = (target, body) => {
|
|
1407
|
-
mkdirSync2(
|
|
1408
|
-
const partial = `${target}.${process.pid}.${
|
|
1369
|
+
mkdirSync2(path8.dirname(target), { recursive: true });
|
|
1370
|
+
const partial = `${target}.${process.pid}.${randomUUID()}`;
|
|
1409
1371
|
writeFileSync2(partial, body);
|
|
1410
1372
|
renameSync(partial, target);
|
|
1411
1373
|
};
|
|
@@ -1418,7 +1380,7 @@ function swiftModuleDigest(root) {
|
|
|
1418
1380
|
}
|
|
1419
1381
|
}
|
|
1420
1382
|
const gitKey = gitCleanModuleInputsKey(root, files);
|
|
1421
|
-
const gitRecord = gitKey ?
|
|
1383
|
+
const gitRecord = gitKey ? path8.join(digestDir, `git-${gitKey}.json`) : null;
|
|
1422
1384
|
if (gitRecord && existsSync(gitRecord)) {
|
|
1423
1385
|
const saved = JSON.parse(readFileSync4(gitRecord, "utf8"));
|
|
1424
1386
|
if (saved && typeof saved === "object" && typeof Reflect.get(saved, "digest") === "string") {
|
|
@@ -1433,7 +1395,7 @@ function swiftModuleDigest(root) {
|
|
|
1433
1395
|
for (const file of files) {
|
|
1434
1396
|
hash.update(createHash4("sha256").update(file).digest());
|
|
1435
1397
|
hash.update(
|
|
1436
|
-
createHash4("sha256").update(readFileSync4(
|
|
1398
|
+
createHash4("sha256").update(readFileSync4(path8.join(root, file))).digest()
|
|
1437
1399
|
);
|
|
1438
1400
|
}
|
|
1439
1401
|
const digest = hash.digest();
|
|
@@ -1556,7 +1518,7 @@ function swiftImportNames(contents2, available, defines) {
|
|
|
1556
1518
|
function swiftPeachModules(moduleRoot) {
|
|
1557
1519
|
const distribution = swiftDistributionAt(moduleRoot);
|
|
1558
1520
|
return distribution ? distribution.modules : swiftManifestDeclarations(
|
|
1559
|
-
readFileSync4(
|
|
1521
|
+
readFileSync4(path8.join(moduleRoot, "Package.swift"), "utf8")
|
|
1560
1522
|
).filter((target) => !target.executable && !target.path.startsWith("fixtures/")).map((target) => target.name);
|
|
1561
1523
|
}
|
|
1562
1524
|
var sdkPaths = /* @__PURE__ */ new Map();
|
|
@@ -1566,7 +1528,7 @@ function swiftSdkPaths(moduleRoot, toolchainBin, options = swiftCompileSdkOption
|
|
|
1566
1528
|
const cached = sdkPaths.get(key);
|
|
1567
1529
|
if (cached) return cached;
|
|
1568
1530
|
const configuration = execFileSync3(
|
|
1569
|
-
|
|
1531
|
+
path8.join(toolchainBin, "swift"),
|
|
1570
1532
|
["sdk", "configure", ...options, "--show-configuration", sdk, SWIFT_WASM_TRIPLE],
|
|
1571
1533
|
{ encoding: "utf8", env: swiftEnvironment(), stdio: ["ignore", "pipe", "pipe"] }
|
|
1572
1534
|
);
|
|
@@ -1600,7 +1562,7 @@ function swiftSdkPaths(moduleRoot, toolchainBin, options = swiftCompileSdkOption
|
|
|
1600
1562
|
if (flag !== "-fwasm-exceptions") cFlags.push(flag);
|
|
1601
1563
|
if (flag === "-iframeworkwithsysroot" && options2[index + 2] === "-Xcc" && typeof options2[index + 3] === "string") {
|
|
1602
1564
|
cFlags.push(options2[index + 3]);
|
|
1603
|
-
frameworks.push(
|
|
1565
|
+
frameworks.push(path8.join(sysroot, options2[index + 3]));
|
|
1604
1566
|
index += 3;
|
|
1605
1567
|
continue;
|
|
1606
1568
|
}
|
|
@@ -1617,7 +1579,7 @@ function swiftSdkPaths(moduleRoot, toolchainBin, options = swiftCompileSdkOption
|
|
|
1617
1579
|
}
|
|
1618
1580
|
const paths = {
|
|
1619
1581
|
sysroot,
|
|
1620
|
-
darwin:
|
|
1582
|
+
darwin: path8.join(sysroot, "darwin"),
|
|
1621
1583
|
resources: field("swiftResourcesPath"),
|
|
1622
1584
|
frameworks,
|
|
1623
1585
|
cFlags
|
|
@@ -2306,7 +2268,7 @@ function swiftCDefinedNames(sources) {
|
|
|
2306
2268
|
return names;
|
|
2307
2269
|
}
|
|
2308
2270
|
function swiftModuleCompiler(root) {
|
|
2309
|
-
const pin = swiftDistributionAt(root) ?? JSON.parse(readFileSync4(
|
|
2271
|
+
const pin = swiftDistributionAt(root) ?? JSON.parse(readFileSync4(path8.join(root, "toolchain.json"), "utf8"));
|
|
2310
2272
|
return {
|
|
2311
2273
|
release: pin.release,
|
|
2312
2274
|
toolchainBin: swiftCompiler(pin.release)
|
|
@@ -2317,6 +2279,42 @@ function swiftModuleToolchain(root) {
|
|
|
2317
2279
|
return { release, toolchainBin: swiftToolchain(release, swiftModuleSdk(root)) };
|
|
2318
2280
|
}
|
|
2319
2281
|
|
|
2282
|
+
// src/home-paths.ts
|
|
2283
|
+
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
2284
|
+
import fs4 from "node:fs";
|
|
2285
|
+
import { homedir } from "node:os";
|
|
2286
|
+
import path9 from "node:path";
|
|
2287
|
+
var PEACH_HOME_ENV = "PEACH_HOME";
|
|
2288
|
+
var ACTIVE_RUNTIME_FILE = "active";
|
|
2289
|
+
function ambientHomeDir() {
|
|
2290
|
+
return path9.join(homedir(), ".peach");
|
|
2291
|
+
}
|
|
2292
|
+
function rnxHomeDir() {
|
|
2293
|
+
const override = process.env[PEACH_HOME_ENV];
|
|
2294
|
+
return override && override.length > 0 ? path9.resolve(override) : ambientHomeDir();
|
|
2295
|
+
}
|
|
2296
|
+
function runtimesDir() {
|
|
2297
|
+
return path9.join(rnxHomeDir(), "runtimes");
|
|
2298
|
+
}
|
|
2299
|
+
function runtimeDir(version) {
|
|
2300
|
+
return path9.join(runtimesDir(), version);
|
|
2301
|
+
}
|
|
2302
|
+
function activeRuntimeFile() {
|
|
2303
|
+
return path9.join(runtimesDir(), ACTIVE_RUNTIME_FILE);
|
|
2304
|
+
}
|
|
2305
|
+
function cacheDir() {
|
|
2306
|
+
return path9.join(rnxHomeDir(), "cache");
|
|
2307
|
+
}
|
|
2308
|
+
function readActiveRuntime() {
|
|
2309
|
+
try {
|
|
2310
|
+
const value = fs4.readFileSync(activeRuntimeFile(), "utf8").trim();
|
|
2311
|
+
return value.length > 0 ? value : null;
|
|
2312
|
+
} catch {
|
|
2313
|
+
return null;
|
|
2314
|
+
}
|
|
2315
|
+
}
|
|
2316
|
+
var DAEMON_LOCKFILE_MAX_BYTES = 16 * 1024;
|
|
2317
|
+
|
|
2320
2318
|
// ../contrast-runtime-delivery/src/index.ts
|
|
2321
2319
|
import { spawn } from "node:child_process";
|
|
2322
2320
|
import crypto from "node:crypto";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2747 | (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-RQYO274I.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.2747 | (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];
|