peachsim 0.1.1941 → 0.1.1943
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 +26 -16
- 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 +25 -15
- 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 +26 -16
- 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/dist-types/packages/peach-engine/src/engine/layout-sab.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/scroll-mirror.d.ts +2 -0
- package/package.json +1 -1
- package/src/nitro-adapter.lock.json +246 -246
- package/src/nitro-superset.lock.json +4 -4
- package/src/swift-compile.ts +26 -10
- package/src/swift-distribution.lock.json +8 -8
- package/src/turbo-runtime.lock.json +16 -16
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1943 | (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.1943 | (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.1943 | (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.1943 | (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.1943 | (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.1943 | (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.1943 | (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 ? "099cfb5cd501073779ae13ce3006bf5cab2331b7a9cbba21a1f1a0b7276da876" : 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.1943 | (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.1943 | (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;
|
|
@@ -9,6 +9,7 @@ export declare function setLayoutSlotParents(parents: ReadonlyMap<number, number
|
|
|
9
9
|
export declare function readLayoutSubtreeRevision(slot: number, tag: number): number;
|
|
10
10
|
export declare function writeLayoutSlot(slot: number, tag: number, x: number, y: number, width: number, height: number, textRevision?: number): void;
|
|
11
11
|
export declare function getLayoutSlotWriteCount(): number;
|
|
12
|
+
export declare function getUnpublishedLayoutRevision(): number;
|
|
12
13
|
export declare function markLayoutSlotWritesPublished(): number;
|
|
13
14
|
export interface LayoutSlotRead {
|
|
14
15
|
x: number;
|
|
@@ -1452,6 +1452,7 @@ export interface CompositorScrollRegistryEntry {
|
|
|
1452
1452
|
slotPresentationDisplacementY: number;
|
|
1453
1453
|
slotContentShiftX: number;
|
|
1454
1454
|
slotContentShiftY: number;
|
|
1455
|
+
slotLayoutRevision: number;
|
|
1455
1456
|
}
|
|
1456
1457
|
export declare const SCREEN_TRANSITION_DONE_OUTCOMES: readonly ['stale-generation', 'unbound-generation', 'no-claim', 'claim-mismatch', 'no-active-transition', 'completed'];
|
|
1457
1458
|
export interface ScreenTransitionDriveStats {
|
|
@@ -28,6 +28,7 @@ export interface ScrollMirrorEntry extends ScrollMirrorOwner {
|
|
|
28
28
|
slotContentShiftX: number;
|
|
29
29
|
slotContentShiftY: number;
|
|
30
30
|
slotContentShiftVersion: number;
|
|
31
|
+
slotLayoutRevision: number;
|
|
31
32
|
abs: ScrollMirrorRect;
|
|
32
33
|
contentWidth: number;
|
|
33
34
|
contentHeight: number;
|
|
@@ -142,6 +143,7 @@ interface SlotPair {
|
|
|
142
143
|
slotContentShiftX: number;
|
|
143
144
|
slotContentShiftY: number;
|
|
144
145
|
slotContentShiftVersion: number;
|
|
146
|
+
slotLayoutRevision: number;
|
|
145
147
|
}
|
|
146
148
|
export declare function readScrollContentShift(owner: ScrollMirrorOwner): {
|
|
147
149
|
contentShiftX: number;
|