peachsim 0.1.2369 → 0.1.2371
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 +173 -76
- 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 +172 -75
- 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 +173 -76
- package/dist-lib/host/fetch-proxy-handler.cjs +7 -5
- 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 +7 -5
- 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 +7 -5
- 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 +178 -81
- package/dist-lib/swift-compile.cjs +32 -13
- package/dist-lib/swift-compile.mjs +32 -13
- 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 +151 -72
- package/dist-lib/vite.cjs +7 -5
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/compositor-gpu.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +14 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +6 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/node-runtime.json +1 -1
- package/package.json +1 -1
- package/sdk/ios/System/Library/Frameworks/DeviceCheck.framework/Headers/DCAppAttestService.h +223 -0
- package/sdk/ios/System/Library/Frameworks/DeviceCheck.framework/Headers/DCDevice.h +90 -0
- package/sdk/ios/System/Library/Frameworks/DeviceCheck.framework/Headers/DCError.h +52 -0
- package/sdk/ios/System/Library/Frameworks/DeviceCheck.framework/Headers/DeviceCheck.h +13 -0
- package/sdk/ios/System/Library/Frameworks/DeviceCheck.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/usr/include/_modules/_Availability.h +33 -0
- package/sdk/ios/usr/include/_modules/_os_availability.h +33 -0
- package/sdk/ios/usr/include/availability.modulemap +50 -0
- package/sdk/ios/usr/include/module.modulemap +4 -0
- package/sdk/ios/usr/lib/swift/Foundation.swiftmodule/arm64-apple-ios-simulator.swiftinterface +77 -0
- package/sdk/ios/usr/lib/swift/StoreKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +7 -0
- package/sdk/ios/usr/lib/swift/SwiftUICore.swiftmodule/arm64-apple-ios-simulator.swiftinterface +23 -0
- package/sdk/ios/usr/lib/swift/UIKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +2 -0
- package/src/native-static-libraries.ts +16 -16
- package/src/podspec-sources.ts +19 -1
- package/src/swift-compile.ts +38 -24
- package/src/swift-objc-standin.ts +11 -5
- package/src/swift-packages.ts +40 -28
- package/src/swift-shipped-binaries.ts +6 -2
- package/src/swift-standin-emit.ts +65 -11
- package/src/swift-standins.ts +30 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2371 | (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;
|
|
@@ -13762,7 +13762,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
13762
13762
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
13763
13763
|
var MULTI_MANIFEST_VERSION = 69;
|
|
13764
13764
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
13765
|
-
var compilerSourceDigest = true ? "
|
|
13765
|
+
var compilerSourceDigest = true ? "1b47386ddb37b973b7110df3031ea52e9d23ac2a578bc7539d91e232e336db2a" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
13766
13766
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
13767
13767
|
const hash = (0, import_node_crypto14.createHash)("sha256");
|
|
13768
13768
|
hash.update(`swift-compile
|
|
@@ -17767,25 +17767,44 @@ async function withSwiftFrameworkSlot(frameworkKey, moduleRoot, signal, work) {
|
|
|
17767
17767
|
if (staged) return withSwiftRootLock(staged, run2(staged), signal);
|
|
17768
17768
|
const built = new Map(slots.map((slot) => [slot, (0, import_node_fs25.statSync)(slot).mtimeMs]));
|
|
17769
17769
|
const own = (slot) => swiftFrameworkSlotRecord(slot, SWIFT_FRAMEWORK_SLOT_ORIGIN) === moduleRoot;
|
|
17770
|
-
const
|
|
17771
|
-
(
|
|
17770
|
+
const inputs = new Map(
|
|
17771
|
+
swiftModuleInputFiles(moduleRoot).map((file) => [
|
|
17772
|
+
file,
|
|
17773
|
+
(0, import_node_fs25.readFileSync)(import_node_path26.default.join(moduleRoot, file))
|
|
17774
|
+
])
|
|
17775
|
+
);
|
|
17776
|
+
const ranked = slots.map((slot) => {
|
|
17777
|
+
let changes = 0;
|
|
17778
|
+
if (swiftFrameworkSlotKey(slot) === null) return { slot, changes: Infinity };
|
|
17779
|
+
const source = import_node_path26.default.join(slot, "source", "packages", import_node_path26.default.basename(moduleRoot));
|
|
17780
|
+
for (const [file, contents2] of inputs) {
|
|
17781
|
+
try {
|
|
17782
|
+
if (!(0, import_node_fs25.readFileSync)(import_node_path26.default.join(source, file)).equals(contents2)) changes++;
|
|
17783
|
+
} catch (error) {
|
|
17784
|
+
if (!vanished(error)) throw error;
|
|
17785
|
+
changes++;
|
|
17786
|
+
}
|
|
17787
|
+
}
|
|
17788
|
+
return { slot, changes };
|
|
17789
|
+
}).sort(
|
|
17790
|
+
(left, right) => left.changes - right.changes || Number(own(right.slot)) - Number(own(left.slot)) || (built.get(right.slot) ?? 0) - (built.get(left.slot) ?? 0)
|
|
17772
17791
|
);
|
|
17773
|
-
for (const slot of
|
|
17774
|
-
...oldest.filter(own).reverse(),
|
|
17775
|
-
// a slot created this run is empty but carries a fresh mtime, so it would
|
|
17776
|
-
// otherwise sort behind an occupied slot it should spare
|
|
17777
|
-
...oldest.filter((slot2) => !own(slot2) && swiftFrameworkSlotKey(slot2) === null),
|
|
17778
|
-
...oldest.filter((slot2) => !own(slot2) && swiftFrameworkSlotKey(slot2) !== null)
|
|
17779
|
-
]) {
|
|
17792
|
+
for (const { slot, changes } of ranked) {
|
|
17780
17793
|
const result = await withSwiftRootLock(
|
|
17781
17794
|
slot,
|
|
17782
|
-
async (lease) =>
|
|
17795
|
+
async (lease) => {
|
|
17796
|
+
console.error(
|
|
17797
|
+
`[swift-framework-cache] ${import_node_path26.default.basename(slot)} changedInputs=${changes} totalInputs=${inputs.size}`
|
|
17798
|
+
);
|
|
17799
|
+
return { value: await run2(slot)(lease) };
|
|
17800
|
+
},
|
|
17783
17801
|
signal,
|
|
17784
17802
|
false
|
|
17785
17803
|
);
|
|
17786
17804
|
if (result) return result.value;
|
|
17787
17805
|
}
|
|
17788
|
-
|
|
17806
|
+
const nearest = ranked[0].slot;
|
|
17807
|
+
return withSwiftRootLock(nearest, run2(nearest), signal);
|
|
17789
17808
|
}
|
|
17790
17809
|
function mirrorTree2(source, target, skip) {
|
|
17791
17810
|
(0, import_node_fs25.mkdirSync)(target, { recursive: true });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2371 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -13750,7 +13750,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
13750
13750
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
13751
13751
|
var MULTI_MANIFEST_VERSION = 69;
|
|
13752
13752
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
13753
|
-
var compilerSourceDigest = true ? "
|
|
13753
|
+
var compilerSourceDigest = true ? "1b47386ddb37b973b7110df3031ea52e9d23ac2a578bc7539d91e232e336db2a" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
13754
13754
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
13755
13755
|
const hash = createHash14("sha256");
|
|
13756
13756
|
hash.update(`swift-compile
|
|
@@ -17755,25 +17755,44 @@ async function withSwiftFrameworkSlot(frameworkKey, moduleRoot, signal, work) {
|
|
|
17755
17755
|
if (staged) return withSwiftRootLock(staged, run2(staged), signal);
|
|
17756
17756
|
const built = new Map(slots.map((slot) => [slot, statSync2(slot).mtimeMs]));
|
|
17757
17757
|
const own = (slot) => swiftFrameworkSlotRecord(slot, SWIFT_FRAMEWORK_SLOT_ORIGIN) === moduleRoot;
|
|
17758
|
-
const
|
|
17759
|
-
(
|
|
17758
|
+
const inputs = new Map(
|
|
17759
|
+
swiftModuleInputFiles(moduleRoot).map((file) => [
|
|
17760
|
+
file,
|
|
17761
|
+
readFileSync17(path28.join(moduleRoot, file))
|
|
17762
|
+
])
|
|
17763
|
+
);
|
|
17764
|
+
const ranked = slots.map((slot) => {
|
|
17765
|
+
let changes = 0;
|
|
17766
|
+
if (swiftFrameworkSlotKey(slot) === null) return { slot, changes: Infinity };
|
|
17767
|
+
const source = path28.join(slot, "source", "packages", path28.basename(moduleRoot));
|
|
17768
|
+
for (const [file, contents2] of inputs) {
|
|
17769
|
+
try {
|
|
17770
|
+
if (!readFileSync17(path28.join(source, file)).equals(contents2)) changes++;
|
|
17771
|
+
} catch (error) {
|
|
17772
|
+
if (!vanished(error)) throw error;
|
|
17773
|
+
changes++;
|
|
17774
|
+
}
|
|
17775
|
+
}
|
|
17776
|
+
return { slot, changes };
|
|
17777
|
+
}).sort(
|
|
17778
|
+
(left, right) => left.changes - right.changes || Number(own(right.slot)) - Number(own(left.slot)) || (built.get(right.slot) ?? 0) - (built.get(left.slot) ?? 0)
|
|
17760
17779
|
);
|
|
17761
|
-
for (const slot of
|
|
17762
|
-
...oldest.filter(own).reverse(),
|
|
17763
|
-
// a slot created this run is empty but carries a fresh mtime, so it would
|
|
17764
|
-
// otherwise sort behind an occupied slot it should spare
|
|
17765
|
-
...oldest.filter((slot2) => !own(slot2) && swiftFrameworkSlotKey(slot2) === null),
|
|
17766
|
-
...oldest.filter((slot2) => !own(slot2) && swiftFrameworkSlotKey(slot2) !== null)
|
|
17767
|
-
]) {
|
|
17780
|
+
for (const { slot, changes } of ranked) {
|
|
17768
17781
|
const result = await withSwiftRootLock(
|
|
17769
17782
|
slot,
|
|
17770
|
-
async (lease) =>
|
|
17783
|
+
async (lease) => {
|
|
17784
|
+
console.error(
|
|
17785
|
+
`[swift-framework-cache] ${path28.basename(slot)} changedInputs=${changes} totalInputs=${inputs.size}`
|
|
17786
|
+
);
|
|
17787
|
+
return { value: await run2(slot)(lease) };
|
|
17788
|
+
},
|
|
17771
17789
|
signal,
|
|
17772
17790
|
false
|
|
17773
17791
|
);
|
|
17774
17792
|
if (result) return result.value;
|
|
17775
17793
|
}
|
|
17776
|
-
|
|
17794
|
+
const nearest = ranked[0].slot;
|
|
17795
|
+
return withSwiftRootLock(nearest, run2(nearest), signal);
|
|
17777
17796
|
}
|
|
17778
17797
|
function mirrorTree2(source, target, skip) {
|
|
17779
17798
|
mkdirSync7(target, { recursive: true });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2371 | (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.2371 | (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.2371 | (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.2371 | (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;
|