peachsim 0.1.1941 → 0.1.1942
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +22 -12
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +20 -10
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +21 -11
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +2 -2
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +2 -2
- package/dist-lib/native-app-identity-project.cjs +2 -2
- package/dist-lib/native-app-identity-project.mjs +2 -2
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +24 -24
- package/dist-lib/public-origins-lib.json +53 -53
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +22 -12
- package/dist-lib/swift-compile.cjs +18 -8
- package/dist-lib/swift-compile.mjs +18 -8
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +19 -9
- package/dist-lib/vite.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/package.json +1 -1
- package/src/swift-compile.ts +26 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1942 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -12134,7 +12134,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
12134
12134
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
12135
12135
|
var MULTI_MANIFEST_VERSION = 66;
|
|
12136
12136
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
12137
|
-
var compilerSourceDigest = true ? "
|
|
12137
|
+
var compilerSourceDigest = true ? "ea8ee0a513e8f91eef1ab15f805965ba09275af4401419d8f9398c8d4b1aa9f7" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
12138
12138
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
12139
12139
|
const hash = (0, import_node_crypto12.createHash)("sha256");
|
|
12140
12140
|
hash.update(`swift-compile
|
|
@@ -15943,21 +15943,25 @@ async function buildFrameworkProducts(scratch2, args) {
|
|
|
15943
15943
|
var SWIFT_LINK_STAMP = ".peach-link-stamp";
|
|
15944
15944
|
var SWIFT_FRAMEWORK_SLOTS = 3;
|
|
15945
15945
|
var SWIFT_FRAMEWORK_SLOT_KEY = ".peach-framework-key";
|
|
15946
|
+
var SWIFT_FRAMEWORK_SLOT_ORIGIN = ".peach-framework-origin";
|
|
15946
15947
|
function swiftFrameworksDir() {
|
|
15947
15948
|
return import_node_path25.default.join(swiftCacheDir(), "swift-frameworks");
|
|
15948
15949
|
}
|
|
15949
15950
|
function swiftFrameworkScratch(frameworkKey) {
|
|
15950
15951
|
return import_node_path25.default.join(swiftFrameworksDir(), frameworkKey);
|
|
15951
15952
|
}
|
|
15952
|
-
function
|
|
15953
|
+
function swiftFrameworkSlotRecord(slot, record) {
|
|
15953
15954
|
try {
|
|
15954
|
-
return (0, import_node_fs23.readFileSync)(import_node_path25.default.join(slot,
|
|
15955
|
+
return (0, import_node_fs23.readFileSync)(import_node_path25.default.join(slot, record), "utf8").trim();
|
|
15955
15956
|
} catch (error) {
|
|
15956
15957
|
if (!vanished(error)) throw error;
|
|
15957
15958
|
return null;
|
|
15958
15959
|
}
|
|
15959
15960
|
}
|
|
15960
|
-
|
|
15961
|
+
function swiftFrameworkSlotKey(slot) {
|
|
15962
|
+
return swiftFrameworkSlotRecord(slot, SWIFT_FRAMEWORK_SLOT_KEY);
|
|
15963
|
+
}
|
|
15964
|
+
async function withSwiftFrameworkSlot(frameworkKey, moduleRoot, signal, work) {
|
|
15961
15965
|
const slots = Array.from({ length: SWIFT_FRAMEWORK_SLOTS }, (_, index) => {
|
|
15962
15966
|
const slot = import_node_path25.default.join(swiftFrameworksDir(), `slot-${index}`);
|
|
15963
15967
|
(0, import_node_fs23.mkdirSync)(slot, { recursive: true });
|
|
@@ -15970,10 +15974,15 @@ async function withSwiftFrameworkSlot(frameworkKey, signal, work) {
|
|
|
15970
15974
|
};
|
|
15971
15975
|
const staged = slots.find((slot) => swiftFrameworkSlotKey(slot) === frameworkKey);
|
|
15972
15976
|
if (staged) return withSwiftRootLock(staged, run2(staged), signal);
|
|
15977
|
+
const built = new Map(slots.map((slot) => [slot, (0, import_node_fs23.statSync)(slot).mtimeMs]));
|
|
15978
|
+
const own = (slot) => swiftFrameworkSlotRecord(slot, SWIFT_FRAMEWORK_SLOT_ORIGIN) === moduleRoot;
|
|
15973
15979
|
const oldest = slots.sort(
|
|
15974
|
-
(left, right) => (
|
|
15980
|
+
(left, right) => (built.get(left) ?? 0) - (built.get(right) ?? 0)
|
|
15975
15981
|
);
|
|
15976
|
-
for (const slot of
|
|
15982
|
+
for (const slot of [
|
|
15983
|
+
...oldest.filter(own).reverse(),
|
|
15984
|
+
...oldest.filter((slot2) => !own(slot2))
|
|
15985
|
+
]) {
|
|
15977
15986
|
const result = await withSwiftRootLock(
|
|
15978
15987
|
slot,
|
|
15979
15988
|
async (lease) => ({ value: await run2(slot)(lease) }),
|
|
@@ -16039,6 +16048,7 @@ function stageFrameworkSource(moduleRoot, slot, frameworkKey) {
|
|
|
16039
16048
|
(0, import_node_fs23.symlinkSync)(target, modules);
|
|
16040
16049
|
}
|
|
16041
16050
|
(0, import_node_fs23.writeFileSync)(import_node_path25.default.join(slot, SWIFT_FRAMEWORK_SLOT_KEY), frameworkKey);
|
|
16051
|
+
(0, import_node_fs23.writeFileSync)(import_node_path25.default.join(slot, SWIFT_FRAMEWORK_SLOT_ORIGIN), moduleRoot);
|
|
16042
16052
|
}
|
|
16043
16053
|
return stagedModule;
|
|
16044
16054
|
}
|
|
@@ -16205,7 +16215,7 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
16205
16215
|
);
|
|
16206
16216
|
}
|
|
16207
16217
|
const frameworkScratch = swiftFrameworkScratch(frameworkKey);
|
|
16208
|
-
const withFrameworkLock = (work) => distribution ? work(null) : withSwiftFrameworkSlot(frameworkKey, options.signal, work);
|
|
16218
|
+
const withFrameworkLock = (work) => distribution ? work(null) : withSwiftFrameworkSlot(frameworkKey, moduleRoot, options.signal, work);
|
|
16209
16219
|
return withFrameworkLock(async (slot, frameworkLease) => {
|
|
16210
16220
|
const frameworkRoot = stageFrameworkSource(moduleRoot, slot, frameworkKey);
|
|
16211
16221
|
report("preparing compiler plugins");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1942 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/swift-compile.ts
|
|
4
4
|
import {
|
|
@@ -12110,7 +12110,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
12110
12110
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
12111
12111
|
var MULTI_MANIFEST_VERSION = 66;
|
|
12112
12112
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
12113
|
-
var compilerSourceDigest = true ? "
|
|
12113
|
+
var compilerSourceDigest = true ? "ea8ee0a513e8f91eef1ab15f805965ba09275af4401419d8f9398c8d4b1aa9f7" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
12114
12114
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
12115
12115
|
const hash = createHash13("sha256");
|
|
12116
12116
|
hash.update(`swift-compile
|
|
@@ -15919,21 +15919,25 @@ async function buildFrameworkProducts(scratch2, args) {
|
|
|
15919
15919
|
var SWIFT_LINK_STAMP = ".peach-link-stamp";
|
|
15920
15920
|
var SWIFT_FRAMEWORK_SLOTS = 3;
|
|
15921
15921
|
var SWIFT_FRAMEWORK_SLOT_KEY = ".peach-framework-key";
|
|
15922
|
+
var SWIFT_FRAMEWORK_SLOT_ORIGIN = ".peach-framework-origin";
|
|
15922
15923
|
function swiftFrameworksDir() {
|
|
15923
15924
|
return path25.join(swiftCacheDir(), "swift-frameworks");
|
|
15924
15925
|
}
|
|
15925
15926
|
function swiftFrameworkScratch(frameworkKey) {
|
|
15926
15927
|
return path25.join(swiftFrameworksDir(), frameworkKey);
|
|
15927
15928
|
}
|
|
15928
|
-
function
|
|
15929
|
+
function swiftFrameworkSlotRecord(slot, record) {
|
|
15929
15930
|
try {
|
|
15930
|
-
return readFileSync16(path25.join(slot,
|
|
15931
|
+
return readFileSync16(path25.join(slot, record), "utf8").trim();
|
|
15931
15932
|
} catch (error) {
|
|
15932
15933
|
if (!vanished(error)) throw error;
|
|
15933
15934
|
return null;
|
|
15934
15935
|
}
|
|
15935
15936
|
}
|
|
15936
|
-
|
|
15937
|
+
function swiftFrameworkSlotKey(slot) {
|
|
15938
|
+
return swiftFrameworkSlotRecord(slot, SWIFT_FRAMEWORK_SLOT_KEY);
|
|
15939
|
+
}
|
|
15940
|
+
async function withSwiftFrameworkSlot(frameworkKey, moduleRoot, signal, work) {
|
|
15937
15941
|
const slots = Array.from({ length: SWIFT_FRAMEWORK_SLOTS }, (_, index) => {
|
|
15938
15942
|
const slot = path25.join(swiftFrameworksDir(), `slot-${index}`);
|
|
15939
15943
|
mkdirSync6(slot, { recursive: true });
|
|
@@ -15946,10 +15950,15 @@ async function withSwiftFrameworkSlot(frameworkKey, signal, work) {
|
|
|
15946
15950
|
};
|
|
15947
15951
|
const staged = slots.find((slot) => swiftFrameworkSlotKey(slot) === frameworkKey);
|
|
15948
15952
|
if (staged) return withSwiftRootLock(staged, run2(staged), signal);
|
|
15953
|
+
const built = new Map(slots.map((slot) => [slot, statSync2(slot).mtimeMs]));
|
|
15954
|
+
const own = (slot) => swiftFrameworkSlotRecord(slot, SWIFT_FRAMEWORK_SLOT_ORIGIN) === moduleRoot;
|
|
15949
15955
|
const oldest = slots.sort(
|
|
15950
|
-
(left, right) =>
|
|
15956
|
+
(left, right) => (built.get(left) ?? 0) - (built.get(right) ?? 0)
|
|
15951
15957
|
);
|
|
15952
|
-
for (const slot of
|
|
15958
|
+
for (const slot of [
|
|
15959
|
+
...oldest.filter(own).reverse(),
|
|
15960
|
+
...oldest.filter((slot2) => !own(slot2))
|
|
15961
|
+
]) {
|
|
15953
15962
|
const result = await withSwiftRootLock(
|
|
15954
15963
|
slot,
|
|
15955
15964
|
async (lease) => ({ value: await run2(slot)(lease) }),
|
|
@@ -16015,6 +16024,7 @@ function stageFrameworkSource(moduleRoot, slot, frameworkKey) {
|
|
|
16015
16024
|
symlinkSync2(target, modules);
|
|
16016
16025
|
}
|
|
16017
16026
|
writeFileSync7(path25.join(slot, SWIFT_FRAMEWORK_SLOT_KEY), frameworkKey);
|
|
16027
|
+
writeFileSync7(path25.join(slot, SWIFT_FRAMEWORK_SLOT_ORIGIN), moduleRoot);
|
|
16018
16028
|
}
|
|
16019
16029
|
return stagedModule;
|
|
16020
16030
|
}
|
|
@@ -16181,7 +16191,7 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
16181
16191
|
);
|
|
16182
16192
|
}
|
|
16183
16193
|
const frameworkScratch = swiftFrameworkScratch(frameworkKey);
|
|
16184
|
-
const withFrameworkLock = (work) => distribution ? work(null) : withSwiftFrameworkSlot(frameworkKey, options.signal, work);
|
|
16194
|
+
const withFrameworkLock = (work) => distribution ? work(null) : withSwiftFrameworkSlot(frameworkKey, moduleRoot, options.signal, work);
|
|
16185
16195
|
return withFrameworkLock(async (slot, frameworkLease) => {
|
|
16186
16196
|
const frameworkRoot = stageFrameworkSource(moduleRoot, slot, frameworkKey);
|
|
16187
16197
|
report("preparing compiler plugins");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1942 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1942 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1942 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1942 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/vite-swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1942 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -16447,7 +16447,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
16447
16447
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
16448
16448
|
var MULTI_MANIFEST_VERSION = 66;
|
|
16449
16449
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
16450
|
-
var compilerSourceDigest = true ? "
|
|
16450
|
+
var compilerSourceDigest = true ? "ea8ee0a513e8f91eef1ab15f805965ba09275af4401419d8f9398c8d4b1aa9f7" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
16451
16451
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
16452
16452
|
const hash = (0, import_node_crypto12.createHash)("sha256");
|
|
16453
16453
|
hash.update(`swift-compile
|
|
@@ -20163,21 +20163,25 @@ async function buildFrameworkProducts(scratch2, args) {
|
|
|
20163
20163
|
var SWIFT_LINK_STAMP = ".peach-link-stamp";
|
|
20164
20164
|
var SWIFT_FRAMEWORK_SLOTS = 3;
|
|
20165
20165
|
var SWIFT_FRAMEWORK_SLOT_KEY = ".peach-framework-key";
|
|
20166
|
+
var SWIFT_FRAMEWORK_SLOT_ORIGIN = ".peach-framework-origin";
|
|
20166
20167
|
function swiftFrameworksDir() {
|
|
20167
20168
|
return import_node_path25.default.join(swiftCacheDir(), "swift-frameworks");
|
|
20168
20169
|
}
|
|
20169
20170
|
function swiftFrameworkScratch(frameworkKey) {
|
|
20170
20171
|
return import_node_path25.default.join(swiftFrameworksDir(), frameworkKey);
|
|
20171
20172
|
}
|
|
20172
|
-
function
|
|
20173
|
+
function swiftFrameworkSlotRecord(slot, record2) {
|
|
20173
20174
|
try {
|
|
20174
|
-
return (0, import_node_fs25.readFileSync)(import_node_path25.default.join(slot,
|
|
20175
|
+
return (0, import_node_fs25.readFileSync)(import_node_path25.default.join(slot, record2), "utf8").trim();
|
|
20175
20176
|
} catch (error) {
|
|
20176
20177
|
if (!vanished(error)) throw error;
|
|
20177
20178
|
return null;
|
|
20178
20179
|
}
|
|
20179
20180
|
}
|
|
20180
|
-
|
|
20181
|
+
function swiftFrameworkSlotKey(slot) {
|
|
20182
|
+
return swiftFrameworkSlotRecord(slot, SWIFT_FRAMEWORK_SLOT_KEY);
|
|
20183
|
+
}
|
|
20184
|
+
async function withSwiftFrameworkSlot(frameworkKey, moduleRoot, signal, work) {
|
|
20181
20185
|
const slots = Array.from({ length: SWIFT_FRAMEWORK_SLOTS }, (_, index) => {
|
|
20182
20186
|
const slot = import_node_path25.default.join(swiftFrameworksDir(), `slot-${index}`);
|
|
20183
20187
|
(0, import_node_fs25.mkdirSync)(slot, { recursive: true });
|
|
@@ -20190,10 +20194,15 @@ async function withSwiftFrameworkSlot(frameworkKey, signal, work) {
|
|
|
20190
20194
|
};
|
|
20191
20195
|
const staged = slots.find((slot) => swiftFrameworkSlotKey(slot) === frameworkKey);
|
|
20192
20196
|
if (staged) return withSwiftRootLock(staged, run5(staged), signal);
|
|
20197
|
+
const built2 = new Map(slots.map((slot) => [slot, (0, import_node_fs25.statSync)(slot).mtimeMs]));
|
|
20198
|
+
const own = (slot) => swiftFrameworkSlotRecord(slot, SWIFT_FRAMEWORK_SLOT_ORIGIN) === moduleRoot;
|
|
20193
20199
|
const oldest = slots.sort(
|
|
20194
|
-
(left, right) => (
|
|
20200
|
+
(left, right) => (built2.get(left) ?? 0) - (built2.get(right) ?? 0)
|
|
20195
20201
|
);
|
|
20196
|
-
for (const slot of
|
|
20202
|
+
for (const slot of [
|
|
20203
|
+
...oldest.filter(own).reverse(),
|
|
20204
|
+
...oldest.filter((slot2) => !own(slot2))
|
|
20205
|
+
]) {
|
|
20197
20206
|
const result = await withSwiftRootLock(
|
|
20198
20207
|
slot,
|
|
20199
20208
|
async (lease) => ({ value: await run5(slot)(lease) }),
|
|
@@ -20259,6 +20268,7 @@ function stageFrameworkSource(moduleRoot, slot, frameworkKey) {
|
|
|
20259
20268
|
(0, import_node_fs25.symlinkSync)(target, modules);
|
|
20260
20269
|
}
|
|
20261
20270
|
(0, import_node_fs25.writeFileSync)(import_node_path25.default.join(slot, SWIFT_FRAMEWORK_SLOT_KEY), frameworkKey);
|
|
20271
|
+
(0, import_node_fs25.writeFileSync)(import_node_path25.default.join(slot, SWIFT_FRAMEWORK_SLOT_ORIGIN), moduleRoot);
|
|
20262
20272
|
}
|
|
20263
20273
|
return stagedModule;
|
|
20264
20274
|
}
|
|
@@ -20425,7 +20435,7 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
20425
20435
|
);
|
|
20426
20436
|
}
|
|
20427
20437
|
const frameworkScratch = swiftFrameworkScratch(frameworkKey);
|
|
20428
|
-
const withFrameworkLock = (work) => distribution ? work(null) : withSwiftFrameworkSlot(frameworkKey, options.signal, work);
|
|
20438
|
+
const withFrameworkLock = (work) => distribution ? work(null) : withSwiftFrameworkSlot(frameworkKey, moduleRoot, options.signal, work);
|
|
20429
20439
|
return withFrameworkLock(async (slot, frameworkLease) => {
|
|
20430
20440
|
const frameworkRoot = stageFrameworkSource(moduleRoot, slot, frameworkKey);
|
|
20431
20441
|
report("preparing compiler plugins");
|
|
@@ -29605,7 +29615,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
|
|
|
29605
29615
|
return hash.digest("hex");
|
|
29606
29616
|
}
|
|
29607
29617
|
var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
29608
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
29618
|
+
var STANDIN_SOURCE_DIGEST = true ? "0cba77be9e6c4b36147f10f63a3d25781f6ae70e1592f0df65030918bb5ca8e2" : standinSourceDigest();
|
|
29609
29619
|
|
|
29610
29620
|
// src/swift-standins.ts
|
|
29611
29621
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1942 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1942 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/package.json
CHANGED
package/src/swift-compile.ts
CHANGED
|
@@ -6579,12 +6579,15 @@ const SWIFT_LINK_STAMP = '.peach-link-stamp'
|
|
|
6579
6579
|
|
|
6580
6580
|
// a few scratch slots at fixed paths hold the framework revisions in use; every
|
|
6581
6581
|
// app built against a revision reuses its slot's compiled products. a revision
|
|
6582
|
-
// with no slot
|
|
6583
|
-
//
|
|
6584
|
-
//
|
|
6585
|
-
//
|
|
6582
|
+
// with no slot restages only the files that differ and rebuilds only the modules
|
|
6583
|
+
// those files reach: swiftpm and llbuild key their plans on absolute paths, so a
|
|
6584
|
+
// fresh path per revision recompiled every module. it takes the slot its own
|
|
6585
|
+
// checkout built last, whose revision is its nearest, else the least recently
|
|
6586
|
+
// built one: an edit restaged over another checkout's revision recompiled the
|
|
6587
|
+
// whole framework.
|
|
6586
6588
|
const SWIFT_FRAMEWORK_SLOTS = 3
|
|
6587
6589
|
const SWIFT_FRAMEWORK_SLOT_KEY = '.peach-framework-key'
|
|
6590
|
+
const SWIFT_FRAMEWORK_SLOT_ORIGIN = '.peach-framework-origin'
|
|
6588
6591
|
|
|
6589
6592
|
function swiftFrameworksDir(): string {
|
|
6590
6593
|
return path.join(swiftCacheDir(), 'swift-frameworks')
|
|
@@ -6594,19 +6597,25 @@ function swiftFrameworkScratch(frameworkKey: string): string {
|
|
|
6594
6597
|
return path.join(swiftFrameworksDir(), frameworkKey)
|
|
6595
6598
|
}
|
|
6596
6599
|
|
|
6597
|
-
function
|
|
6600
|
+
function swiftFrameworkSlotRecord(slot: string, record: string): string | null {
|
|
6598
6601
|
try {
|
|
6599
|
-
return readFileSync(path.join(slot,
|
|
6602
|
+
return readFileSync(path.join(slot, record), 'utf8').trim()
|
|
6600
6603
|
} catch (error) {
|
|
6601
6604
|
if (!vanished(error)) throw error
|
|
6602
6605
|
return null
|
|
6603
6606
|
}
|
|
6604
6607
|
}
|
|
6605
6608
|
|
|
6609
|
+
function swiftFrameworkSlotKey(slot: string): string | null {
|
|
6610
|
+
return swiftFrameworkSlotRecord(slot, SWIFT_FRAMEWORK_SLOT_KEY)
|
|
6611
|
+
}
|
|
6612
|
+
|
|
6606
6613
|
/** runs `work` holding the slot that builds `frameworkKey`'s products: the slot
|
|
6607
|
-
* already staged for it, else an idle one,
|
|
6614
|
+
* already staged for it, else an idle one, `moduleRoot`'s own newest first,
|
|
6615
|
+
* then the least recently built. */
|
|
6608
6616
|
async function withSwiftFrameworkSlot<T>(
|
|
6609
6617
|
frameworkKey: string,
|
|
6618
|
+
moduleRoot: string,
|
|
6610
6619
|
signal: AbortSignal | undefined,
|
|
6611
6620
|
work: (slot: string, lease: SwiftRootLease) => Promise<T>,
|
|
6612
6621
|
): Promise<T> {
|
|
@@ -6623,10 +6632,16 @@ async function withSwiftFrameworkSlot<T>(
|
|
|
6623
6632
|
}
|
|
6624
6633
|
const staged = slots.find((slot) => swiftFrameworkSlotKey(slot) === frameworkKey)
|
|
6625
6634
|
if (staged) return withSwiftRootLock(staged, run(staged), signal)
|
|
6635
|
+
const built = new Map(slots.map((slot) => [slot, statSync(slot).mtimeMs]))
|
|
6636
|
+
const own = (slot: string) =>
|
|
6637
|
+
swiftFrameworkSlotRecord(slot, SWIFT_FRAMEWORK_SLOT_ORIGIN) === moduleRoot
|
|
6626
6638
|
const oldest = slots.sort(
|
|
6627
|
-
(left, right) =>
|
|
6639
|
+
(left, right) => (built.get(left) ?? 0) - (built.get(right) ?? 0),
|
|
6628
6640
|
)
|
|
6629
|
-
for (const slot of
|
|
6641
|
+
for (const slot of [
|
|
6642
|
+
...oldest.filter(own).reverse(),
|
|
6643
|
+
...oldest.filter((slot) => !own(slot)),
|
|
6644
|
+
]) {
|
|
6630
6645
|
const result = await withSwiftRootLock(
|
|
6631
6646
|
slot,
|
|
6632
6647
|
async (lease) => ({ value: await run(slot)(lease) }),
|
|
@@ -6711,6 +6726,7 @@ function stageFrameworkSource(
|
|
|
6711
6726
|
symlinkSync(target, modules)
|
|
6712
6727
|
}
|
|
6713
6728
|
writeFileSync(path.join(slot, SWIFT_FRAMEWORK_SLOT_KEY), frameworkKey)
|
|
6729
|
+
writeFileSync(path.join(slot, SWIFT_FRAMEWORK_SLOT_ORIGIN), moduleRoot)
|
|
6714
6730
|
}
|
|
6715
6731
|
return stagedModule
|
|
6716
6732
|
}
|
|
@@ -6913,7 +6929,7 @@ function compileSwiftProjectOnce(
|
|
|
6913
6929
|
) =>
|
|
6914
6930
|
distribution
|
|
6915
6931
|
? work(null)
|
|
6916
|
-
: withSwiftFrameworkSlot(frameworkKey, options.signal, work)
|
|
6932
|
+
: withSwiftFrameworkSlot(frameworkKey, moduleRoot, options.signal, work)
|
|
6917
6933
|
return withFrameworkLock(async (slot, frameworkLease) => {
|
|
6918
6934
|
const frameworkRoot = stageFrameworkSource(moduleRoot, slot, frameworkKey)
|
|
6919
6935
|
report('preparing compiler plugins')
|