peachsim 0.1.2252 → 0.1.2253
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 +12 -9
- 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 +11 -8
- 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 +23 -11
- package/dist-lib/host/fetch-proxy-handler.cjs +3 -3
- 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 +14 -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 +14 -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 +23 -11
- package/dist-lib/swift-compile.cjs +5 -4
- package/dist-lib/swift-compile.mjs +5 -4
- 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 +9 -6
- package/dist-lib/vite.cjs +14 -5
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/package.json +1 -1
- package/src/runtime-delivery.ts +3 -2
- package/src/swift-compile.ts +6 -1
- package/src/swift-host.ts +4 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2253 | (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;
|
|
@@ -12648,7 +12648,7 @@ function swiftCondition(text2, available) {
|
|
|
12648
12648
|
if (name2 === "canImport")
|
|
12649
12649
|
return argument !== "FoundationNetworking" && available?.has(argument);
|
|
12650
12650
|
if (name2 === "targetEnvironment") return argument === "simulator";
|
|
12651
|
-
if (name2 === "arch") return argument === "wasm64";
|
|
12651
|
+
if (name2 === "arch") return argument === "wasm64" || argument === "arm64";
|
|
12652
12652
|
return void 0;
|
|
12653
12653
|
};
|
|
12654
12654
|
const both = () => {
|
|
@@ -13125,7 +13125,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
13125
13125
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
13126
13126
|
var MULTI_MANIFEST_VERSION = 68;
|
|
13127
13127
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
13128
|
-
var compilerSourceDigest = true ? "
|
|
13128
|
+
var compilerSourceDigest = true ? "a0acd3d55350e702b64da3ee739e811f7963210d0eb97002ee7d2214bb99e47c" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
13129
13129
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
13130
13130
|
const hash = (0, import_node_crypto13.createHash)("sha256");
|
|
13131
13131
|
hash.update(`swift-compile
|
|
@@ -13635,6 +13635,7 @@ function syncSwiftTree(base, files) {
|
|
|
13635
13635
|
}
|
|
13636
13636
|
var DIRECTIVE = /^[ \t]*#(?:if|elseif)\b/;
|
|
13637
13637
|
var OS_IOS = /\b(?:os\(\s*iOS\s*\)|targetEnvironment\(\s*simulator\s*\))/g;
|
|
13638
|
+
var ARCH_ARM64 = /\barch\(\s*arm64\s*\)/g;
|
|
13638
13639
|
var NOT_ON_IOS = /\b(?:os\(\s*WASI\s*\)|canImport\(\s*FoundationNetworking\s*\))/g;
|
|
13639
13640
|
var DELEGATE_CLASS = /^class\s+[A-Za-z_]\w*\s*(?:<[^>{]*>)?\s*:[^{]*\b(?:UIApplicationDelegate|UISceneDelegate|UIWindowSceneDelegate)\b[^{]*\{/;
|
|
13640
13641
|
function compiledSwiftSources(files, targets, overlayFrameworks) {
|
|
@@ -14317,7 +14318,7 @@ function swiftConditionsAsIOS(source, lineStarts, swiftPackage) {
|
|
|
14317
14318
|
const start = offset;
|
|
14318
14319
|
offset += line.length + 1;
|
|
14319
14320
|
if (!lineStarts.has(start) || !DIRECTIVE.test(line)) return line;
|
|
14320
|
-
const platform = line.replace(OS_IOS, (match) => "true".padEnd(match.length)).replace(NOT_ON_IOS, (match) => "false".padEnd(match.length));
|
|
14321
|
+
const platform = line.replace(OS_IOS, (match) => "true".padEnd(match.length)).replace(ARCH_ARM64, (match) => "true".padEnd(match.length)).replace(NOT_ON_IOS, (match) => "false".padEnd(match.length));
|
|
14321
14322
|
return swiftPackage === false ? platform.replace(/\bSWIFT_PACKAGE\b/g, (match) => "false".padEnd(match.length)) : platform;
|
|
14322
14323
|
}).join("\n");
|
|
14323
14324
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2253 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/swift-compile.ts
|
|
4
4
|
import {
|
|
@@ -12631,7 +12631,7 @@ function swiftCondition(text2, available) {
|
|
|
12631
12631
|
if (name2 === "canImport")
|
|
12632
12632
|
return argument !== "FoundationNetworking" && available?.has(argument);
|
|
12633
12633
|
if (name2 === "targetEnvironment") return argument === "simulator";
|
|
12634
|
-
if (name2 === "arch") return argument === "wasm64";
|
|
12634
|
+
if (name2 === "arch") return argument === "wasm64" || argument === "arm64";
|
|
12635
12635
|
return void 0;
|
|
12636
12636
|
};
|
|
12637
12637
|
const both = () => {
|
|
@@ -13108,7 +13108,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
13108
13108
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
13109
13109
|
var MULTI_MANIFEST_VERSION = 68;
|
|
13110
13110
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
13111
|
-
var compilerSourceDigest = true ? "
|
|
13111
|
+
var compilerSourceDigest = true ? "a0acd3d55350e702b64da3ee739e811f7963210d0eb97002ee7d2214bb99e47c" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
13112
13112
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
13113
13113
|
const hash = createHash13("sha256");
|
|
13114
13114
|
hash.update(`swift-compile
|
|
@@ -13618,6 +13618,7 @@ function syncSwiftTree(base, files) {
|
|
|
13618
13618
|
}
|
|
13619
13619
|
var DIRECTIVE = /^[ \t]*#(?:if|elseif)\b/;
|
|
13620
13620
|
var OS_IOS = /\b(?:os\(\s*iOS\s*\)|targetEnvironment\(\s*simulator\s*\))/g;
|
|
13621
|
+
var ARCH_ARM64 = /\barch\(\s*arm64\s*\)/g;
|
|
13621
13622
|
var NOT_ON_IOS = /\b(?:os\(\s*WASI\s*\)|canImport\(\s*FoundationNetworking\s*\))/g;
|
|
13622
13623
|
var DELEGATE_CLASS = /^class\s+[A-Za-z_]\w*\s*(?:<[^>{]*>)?\s*:[^{]*\b(?:UIApplicationDelegate|UISceneDelegate|UIWindowSceneDelegate)\b[^{]*\{/;
|
|
13623
13624
|
function compiledSwiftSources(files, targets, overlayFrameworks) {
|
|
@@ -14300,7 +14301,7 @@ function swiftConditionsAsIOS(source, lineStarts, swiftPackage) {
|
|
|
14300
14301
|
const start = offset;
|
|
14301
14302
|
offset += line.length + 1;
|
|
14302
14303
|
if (!lineStarts.has(start) || !DIRECTIVE.test(line)) return line;
|
|
14303
|
-
const platform = line.replace(OS_IOS, (match) => "true".padEnd(match.length)).replace(NOT_ON_IOS, (match) => "false".padEnd(match.length));
|
|
14304
|
+
const platform = line.replace(OS_IOS, (match) => "true".padEnd(match.length)).replace(ARCH_ARM64, (match) => "true".padEnd(match.length)).replace(NOT_ON_IOS, (match) => "false".padEnd(match.length));
|
|
14304
14305
|
return swiftPackage === false ? platform.replace(/\bSWIFT_PACKAGE\b/g, (match) => "false".padEnd(match.length)) : platform;
|
|
14305
14306
|
}).join("\n");
|
|
14306
14307
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2253 | (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.2253 | (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.2253 | (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.2253 | (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.2253 | (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;
|
|
@@ -17458,7 +17458,7 @@ function swiftCondition(text5, available) {
|
|
|
17458
17458
|
if (name3 === "canImport")
|
|
17459
17459
|
return argument !== "FoundationNetworking" && available?.has(argument);
|
|
17460
17460
|
if (name3 === "targetEnvironment") return argument === "simulator";
|
|
17461
|
-
if (name3 === "arch") return argument === "wasm64";
|
|
17461
|
+
if (name3 === "arch") return argument === "wasm64" || argument === "arm64";
|
|
17462
17462
|
return void 0;
|
|
17463
17463
|
};
|
|
17464
17464
|
const both = () => {
|
|
@@ -17935,7 +17935,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
17935
17935
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
17936
17936
|
var MULTI_MANIFEST_VERSION = 68;
|
|
17937
17937
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
17938
|
-
var compilerSourceDigest = true ? "
|
|
17938
|
+
var compilerSourceDigest = true ? "a0acd3d55350e702b64da3ee739e811f7963210d0eb97002ee7d2214bb99e47c" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
17939
17939
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
17940
17940
|
const hash = (0, import_node_crypto13.createHash)("sha256");
|
|
17941
17941
|
hash.update(`swift-compile
|
|
@@ -18445,6 +18445,7 @@ function syncSwiftTree(base, files2) {
|
|
|
18445
18445
|
}
|
|
18446
18446
|
var DIRECTIVE = /^[ \t]*#(?:if|elseif)\b/;
|
|
18447
18447
|
var OS_IOS = /\b(?:os\(\s*iOS\s*\)|targetEnvironment\(\s*simulator\s*\))/g;
|
|
18448
|
+
var ARCH_ARM64 = /\barch\(\s*arm64\s*\)/g;
|
|
18448
18449
|
var NOT_ON_IOS = /\b(?:os\(\s*WASI\s*\)|canImport\(\s*FoundationNetworking\s*\))/g;
|
|
18449
18450
|
var DELEGATE_CLASS = /^class\s+[A-Za-z_]\w*\s*(?:<[^>{]*>)?\s*:[^{]*\b(?:UIApplicationDelegate|UISceneDelegate|UIWindowSceneDelegate)\b[^{]*\{/;
|
|
18450
18451
|
function compiledSwiftSources(files2, targets, overlayFrameworks) {
|
|
@@ -19127,7 +19128,7 @@ function swiftConditionsAsIOS(source, lineStarts, swiftPackage) {
|
|
|
19127
19128
|
const start = offset;
|
|
19128
19129
|
offset += line.length + 1;
|
|
19129
19130
|
if (!lineStarts.has(start) || !DIRECTIVE.test(line)) return line;
|
|
19130
|
-
const platform = line.replace(OS_IOS, (match) => "true".padEnd(match.length)).replace(NOT_ON_IOS, (match) => "false".padEnd(match.length));
|
|
19131
|
+
const platform = line.replace(OS_IOS, (match) => "true".padEnd(match.length)).replace(ARCH_ARM64, (match) => "true".padEnd(match.length)).replace(NOT_ON_IOS, (match) => "false".padEnd(match.length));
|
|
19131
19132
|
return swiftPackage === false ? platform.replace(/\bSWIFT_PACKAGE\b/g, (match) => "false".padEnd(match.length)) : platform;
|
|
19132
19133
|
}).join("\n");
|
|
19133
19134
|
}
|
|
@@ -31490,7 +31491,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
|
|
|
31490
31491
|
return hash.digest("hex");
|
|
31491
31492
|
}
|
|
31492
31493
|
var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
31493
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
31494
|
+
var STANDIN_SOURCE_DIGEST = true ? "1f63cea9c23045599de30a6706e16844da16611e8d385fe31034727e8884380c" : standinSourceDigest();
|
|
31494
31495
|
|
|
31495
31496
|
// src/swift-standins.ts
|
|
31496
31497
|
var import_node_child_process31 = require("node:child_process");
|
|
@@ -37920,6 +37921,7 @@ function buildSwiftResourceTable(project, baseUrl, inputs) {
|
|
|
37920
37921
|
let bytes;
|
|
37921
37922
|
let ext = import_node_path54.default.posix.extname(file).toLowerCase();
|
|
37922
37923
|
let uploadName = import_node_path54.default.posix.basename(file);
|
|
37924
|
+
let variantScale = scale;
|
|
37923
37925
|
if (ext === ".pdf") {
|
|
37924
37926
|
const pdfBytes = readPackageFile2(project.packagePath, disk, limits.imageBytes);
|
|
37925
37927
|
const pdfHash = (0, import_node_crypto29.createHash)("sha256").update(pdfBytes).digest("hex");
|
|
@@ -37938,6 +37940,7 @@ function buildSwiftResourceTable(project, baseUrl, inputs) {
|
|
|
37938
37940
|
const svg = ext === ".svg" ? rasterizeSvgFile(disk, (0, import_node_crypto29.createHash)("sha256").update(bytes).digest("hex")) : null;
|
|
37939
37941
|
if (svg) {
|
|
37940
37942
|
bytes = svg.bytes;
|
|
37943
|
+
variantScale = 3;
|
|
37941
37944
|
ext = ".png";
|
|
37942
37945
|
uploadName = `${import_node_path54.default.posix.basename(file, import_node_path54.default.posix.extname(file))}.png`;
|
|
37943
37946
|
}
|
|
@@ -37951,7 +37954,7 @@ function buildSwiftResourceTable(project, baseUrl, inputs) {
|
|
|
37951
37954
|
const variants = bundle[name3] ??= [];
|
|
37952
37955
|
variants.push({
|
|
37953
37956
|
uri: `${baseUrl}${RESOURCE_PATH}${hash}${ext}`,
|
|
37954
|
-
scale,
|
|
37957
|
+
scale: variantScale,
|
|
37955
37958
|
...renderingMode ? { renderingMode } : {}
|
|
37956
37959
|
});
|
|
37957
37960
|
table[bundlePath] = bundle;
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2253 | (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;
|
|
@@ -1388,6 +1388,14 @@ var init_answeredNativePackages = __esm({
|
|
|
1388
1388
|
});
|
|
1389
1389
|
|
|
1390
1390
|
// src/cli-runtime.ts
|
|
1391
|
+
var cli_runtime_exports = {};
|
|
1392
|
+
__export(cli_runtime_exports, {
|
|
1393
|
+
CLI_COMPANION_ABI: () => CLI_COMPANION_ABI,
|
|
1394
|
+
cliCompanionPath: () => cliCompanionPath,
|
|
1395
|
+
ensureCliCompanion: () => ensureCliCompanion,
|
|
1396
|
+
getCliRuntime: () => getCliRuntime,
|
|
1397
|
+
verifyCliCompanion: () => verifyCliCompanion
|
|
1398
|
+
});
|
|
1391
1399
|
function cliCompanionPath() {
|
|
1392
1400
|
return `node/cli-${runtime_companion_default.sha256}.cjs`;
|
|
1393
1401
|
}
|
|
@@ -2703,7 +2711,6 @@ var init_runtime_delivery = __esm({
|
|
|
2703
2711
|
"src/runtime-delivery.ts"() {
|
|
2704
2712
|
"use strict";
|
|
2705
2713
|
init_src();
|
|
2706
|
-
init_cli_runtime();
|
|
2707
2714
|
init_home_paths();
|
|
2708
2715
|
init_public_brand();
|
|
2709
2716
|
DEFAULT_RUNTIME_CDN_ORIGIN = peachPublicBrand.origin;
|
|
@@ -2718,7 +2725,9 @@ var init_runtime_delivery = __esm({
|
|
|
2718
2725
|
// engine-tenant/ beneath it. index.html is what the daemon and the
|
|
2719
2726
|
// vite/metro plugins serve, so its absence means the tarball is not one.
|
|
2720
2727
|
installedMarker: "index.html",
|
|
2721
|
-
|
|
2728
|
+
// loaded on use: its companion identity is generated by the CLI build, and
|
|
2729
|
+
// source-tree hosts such as the recorder import this module without one
|
|
2730
|
+
verifyInstall: async (dir) => (await Promise.resolve().then(() => (init_cli_runtime(), cli_runtime_exports))).ensureCliCompanion(dir),
|
|
2722
2731
|
// canvaskit's ganesh backend is a runtime pack because a browser with WebGPU
|
|
2723
2732
|
// never runs it, but linux and CI browsers usually have no GPU and always do
|
|
2724
2733
|
afterInstall: async (dir) => {
|
|
@@ -3167,7 +3176,7 @@ var import_plist5 = __toESM(require("plist"), 1);
|
|
|
3167
3176
|
init_answeredNativePackages();
|
|
3168
3177
|
|
|
3169
3178
|
// src/swift-standin-digest.ts
|
|
3170
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
3179
|
+
var STANDIN_SOURCE_DIGEST = true ? "1f63cea9c23045599de30a6706e16844da16611e8d385fe31034727e8884380c" : standinSourceDigest();
|
|
3171
3180
|
|
|
3172
3181
|
// cli/commands/detect.ts
|
|
3173
3182
|
var import_json5 = __toESM(require_lib(), 1);
|
|
@@ -6299,7 +6308,7 @@ var FOUNDATION_IMPLICIT_MODULES = [
|
|
|
6299
6308
|
var FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
|
|
6300
6309
|
(module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
|
|
6301
6310
|
).join("");
|
|
6302
|
-
var compilerSourceDigest = true ? "
|
|
6311
|
+
var compilerSourceDigest = true ? "a0acd3d55350e702b64da3ee739e811f7963210d0eb97002ee7d2214bb99e47c" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
6303
6312
|
var CORE_FOUNDATION_HANDLE_IMPORTS = [
|
|
6304
6313
|
"CFAllocator",
|
|
6305
6314
|
"CFArray",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2253 | (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/runtime-delivery.ts
CHANGED
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
// out as a bare require.
|
|
12
12
|
|
|
13
13
|
import { createRuntimeDelivery, type RuntimeProduct } from '@contrast/runtime-delivery'
|
|
14
|
-
import { ensureCliCompanion } from './cli-runtime'
|
|
15
14
|
import {
|
|
16
15
|
cacheDir,
|
|
17
16
|
configFilePath,
|
|
@@ -38,7 +37,9 @@ export const RNX_RUNTIME_PRODUCT: RuntimeProduct = {
|
|
|
38
37
|
// engine-tenant/ beneath it. index.html is what the daemon and the
|
|
39
38
|
// vite/metro plugins serve, so its absence means the tarball is not one.
|
|
40
39
|
installedMarker: 'index.html',
|
|
41
|
-
|
|
40
|
+
// loaded on use: its companion identity is generated by the CLI build, and
|
|
41
|
+
// source-tree hosts such as the recorder import this module without one
|
|
42
|
+
verifyInstall: async (dir) => (await import('./cli-runtime')).ensureCliCompanion(dir),
|
|
42
43
|
// canvaskit's ganesh backend is a runtime pack because a browser with WebGPU
|
|
43
44
|
// never runs it, but linux and CI browsers usually have no GPU and always do
|
|
44
45
|
afterInstall: async (dir) => {
|
package/src/swift-compile.ts
CHANGED
|
@@ -1047,7 +1047,7 @@ function swiftCondition(
|
|
|
1047
1047
|
if (name === 'canImport')
|
|
1048
1048
|
return argument !== 'FoundationNetworking' && available?.has(argument!)
|
|
1049
1049
|
if (name === 'targetEnvironment') return argument === 'simulator'
|
|
1050
|
-
if (name === 'arch') return argument === 'wasm64'
|
|
1050
|
+
if (name === 'arch') return argument === 'wasm64' || argument === 'arm64'
|
|
1051
1051
|
return undefined
|
|
1052
1052
|
}
|
|
1053
1053
|
const both = (): boolean | undefined => {
|
|
@@ -2614,6 +2614,10 @@ export function syncSwiftTree(base: string, files: Map<string, string | Buffer>)
|
|
|
2614
2614
|
// objective-c syntax is compiled unchanged by the native importer.
|
|
2615
2615
|
const DIRECTIVE = /^[ \t]*#(?:if|elseif)\b/
|
|
2616
2616
|
const OS_IOS = /\b(?:os\(\s*iOS\s*\)|targetEnvironment\(\s*simulator\s*\))/g
|
|
2617
|
+
// the guest is the arm64 iOS simulator at 64-bit pointers: the compiler reports wasm64, so a
|
|
2618
|
+
// package that lists only the architectures its iOS build runs on would reach its
|
|
2619
|
+
// `#error("Unknown architecture")`
|
|
2620
|
+
const ARCH_ARM64 = /\barch\(\s*arm64\s*\)/g
|
|
2617
2621
|
// iOS has no FoundationNetworking module; Peach's is imported implicitly
|
|
2618
2622
|
// and gated packages must take their Apple branch
|
|
2619
2623
|
const NOT_ON_IOS = /\b(?:os\(\s*WASI\s*\)|canImport\(\s*FoundationNetworking\s*\))/g
|
|
@@ -3379,6 +3383,7 @@ function swiftConditionsAsIOS(
|
|
|
3379
3383
|
if (!lineStarts.has(start) || !DIRECTIVE.test(line)) return line
|
|
3380
3384
|
const platform = line
|
|
3381
3385
|
.replace(OS_IOS, (match) => 'true'.padEnd(match.length))
|
|
3386
|
+
.replace(ARCH_ARM64, (match) => 'true'.padEnd(match.length))
|
|
3382
3387
|
.replace(NOT_ON_IOS, (match) => 'false'.padEnd(match.length))
|
|
3383
3388
|
// SwiftPM is the backend for Xcode targets, whose original conditions
|
|
3384
3389
|
// do not include its automatically injected SWIFT_PACKAGE definition.
|
package/src/swift-host.ts
CHANGED
|
@@ -2065,6 +2065,8 @@ export function buildSwiftResourceTable(
|
|
|
2065
2065
|
let bytes: Buffer
|
|
2066
2066
|
let ext = path.posix.extname(file).toLowerCase()
|
|
2067
2067
|
let uploadName = path.posix.basename(file)
|
|
2068
|
+
// an svg keeps its point size when it travels as a 3x png
|
|
2069
|
+
let variantScale = scale
|
|
2068
2070
|
if (ext === '.pdf') {
|
|
2069
2071
|
const pdfBytes = readPackageFile(project.packagePath, disk, limits.imageBytes)
|
|
2070
2072
|
const pdfHash = createHash('sha256').update(pdfBytes).digest('hex')
|
|
@@ -2086,6 +2088,7 @@ export function buildSwiftResourceTable(
|
|
|
2086
2088
|
: null
|
|
2087
2089
|
if (svg) {
|
|
2088
2090
|
bytes = svg.bytes
|
|
2091
|
+
variantScale = 3
|
|
2089
2092
|
ext = '.png'
|
|
2090
2093
|
uploadName = `${path.posix.basename(file, path.posix.extname(file))}.png`
|
|
2091
2094
|
}
|
|
@@ -2099,7 +2102,7 @@ export function buildSwiftResourceTable(
|
|
|
2099
2102
|
const variants = (bundle[name] ??= [])
|
|
2100
2103
|
variants.push({
|
|
2101
2104
|
uri: `${baseUrl}${RESOURCE_PATH}${hash}${ext}`,
|
|
2102
|
-
scale,
|
|
2105
|
+
scale: variantScale,
|
|
2103
2106
|
...(renderingMode ? { renderingMode } : {}),
|
|
2104
2107
|
})
|
|
2105
2108
|
table[bundlePath] = bundle
|