peachsim 0.1.1813 → 0.1.1815
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/README.md +2 -1
- package/cli/cloud-client.ts +5 -4
- package/cli/cloud-session.ts +14 -1
- package/cli/commands/compat.ts +12 -2
- package/cli/commands/control.ts +10 -2
- package/cli/commands/flow.ts +10 -5
- package/cli/commands/inspect/env.ts +3 -2
- package/cli/commands/inspect/wait-selector.ts +30 -9
- package/cli/commands/inspect.ts +43 -385
- package/cli/commands/package.ts +6 -1
- package/cli/commands/runtime.ts +2 -2
- package/cli/outbound-endpoints.ts +1 -1
- 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 +769 -512
- 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 +89 -14
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +125 -57
- package/dist-lib/expo-swift-metadata.cjs +1 -17
- package/dist-lib/expo-swift-metadata.mjs +1 -16
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +2490 -2290
- package/dist-lib/host/fetch-proxy-handler.cjs +14 -14
- 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 +19 -21
- 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 +16 -17
- package/dist-lib/native-app-identity-project.cjs +5 -4
- package/dist-lib/native-app-identity-project.mjs +8 -7
- 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 +77 -77
- 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 +851 -541
- package/dist-lib/swift-compile.cjs +29 -27
- package/dist-lib/swift-compile.mjs +36 -34
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +5 -3
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +100 -46
- package/dist-lib/vite.cjs +14 -14
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/nativeReplayContract.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/react-native/host-services.d.ts +7 -0
- package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +14 -2
- package/install.mjs +21 -8
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewController.h +17 -0
- package/sdk/ios/usr/lib/swift/Dispatch.swiftmodule/arm64-apple-ios-simulator.swiftinterface +5 -0
- package/sdk/ios/usr/lib/swift/Foundation.swiftmodule/arm64-apple-ios-simulator.swiftinterface +6 -0
- package/sdk/ios/usr/lib/swift/ObjectiveC.swiftmodule/arm64-apple-ios-simulator.swiftinterface +10 -1
- package/sdk/ios/usr/lib/swift/SwiftUI.swiftmodule/arm64-apple-ios-simulator.swiftinterface +4 -0
- package/sdk/ios/usr/lib/swift/SwiftUICore.swiftmodule/arm64-apple-ios-simulator.swiftinterface +11 -0
- package/sdk/ios/usr/lib/swift/UIKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +13 -0
- package/sdk/ios/wasm/include/string.h +1 -0
- package/src/cli-runtime.ts +32 -4
- package/src/expo-kotlin-host.ts +69 -35
- package/src/expo-swift-host.ts +45 -9
- package/src/expo-swift-ready.ts +16 -2
- package/src/expoSwiftContract.ts +2 -20
- package/src/installed-native-libraries.ts +79 -18
- package/src/nitro-adapter.lock.json +251 -251
- package/src/nitro-bundle.ts +2 -8
- package/src/nitro-compile.ts +6 -3
- package/src/nitro-dependencies.ts +8 -2
- package/src/nitro-source.ts +34 -3
- package/src/nitro-superset.lock.json +14 -14
- package/src/nitro-superset.ts +2 -3
- package/src/nitroContract.ts +26 -32
- package/src/react-native-bridge-modules.ts +2 -9
- package/src/runtime-delivery.ts +2 -2
- package/src/swift-compile.ts +4 -1
- package/src/swift-distribution.lock.json +9 -8
- package/src/swift-distribution.ts +1 -0
- package/src/swift-icu.ts +21 -27
- package/src/swift-installed-targets.ts +13 -0
- package/src/swift-project-user.ts +5 -0
- package/src/swift-shared-sdk.ts +4 -0
- package/src/swift-standins.ts +14 -3
- package/src/swift-submit.ts +2 -1
- package/src/swift-toolchain.ts +5 -2
- package/src/swift-wasm-prune.ts +10 -2
- package/src/turbo-bundle.ts +20 -1
- package/src/turbo-compile.ts +6 -12
- package/src/turbo-runtime.lock.json +18 -18
- package/src/turbo-source.ts +176 -37
package/dist-lib/vite-swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1815 | (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;
|
|
@@ -39,7 +39,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
39
39
|
var define_SWIFT_COVERAGE_SOURCE_DIGESTS_default;
|
|
40
40
|
var init_define_SWIFT_COVERAGE_SOURCE_DIGESTS = __esm({
|
|
41
41
|
"<define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>"() {
|
|
42
|
-
define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "8b398ceb60faf4a5729842cab60f49c2e601d6fc6bbbc1faec9023ecb8141990", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "08583ee03b92e00f3f331e52fb480ef81c9fd7e668d796a5afcfa07978bcaf03", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "5bdd15dce967553923b0437502e56f70165424d2f22cdde0e2d7aacd618e27cc", "swift-package.ts": "80932fd45cd31e57871475180148f79f273719ac94d94deabce16dc138fdf387", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "
|
|
42
|
+
define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "8b398ceb60faf4a5729842cab60f49c2e601d6fc6bbbc1faec9023ecb8141990", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "08583ee03b92e00f3f331e52fb480ef81c9fd7e668d796a5afcfa07978bcaf03", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "5bdd15dce967553923b0437502e56f70165424d2f22cdde0e2d7aacd618e27cc", "swift-package.ts": "80932fd45cd31e57871475180148f79f273719ac94d94deabce16dc138fdf387", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "8d495f0b828a24c7eb497db324094e09b1969612283ad0d83e1f329ef42a1c47", "home-paths.ts": "744d0e29fcc4baae6748161da45dd75e357348703331dad685c74ec813abcc83", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "76e78ea9974671ff3b7e7a5d65e508306d8eadeb6b6bf859bd2ccc03f4ef6e72", "xcode-target-members.ts": "75a23a5fc54cc6f5e952d545f2f0f86241ff36525ab4e568c172e83c3bfb9da4", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
|
|
@@ -4599,8 +4599,10 @@ function ensureSwiftLinuxRuntime(release) {
|
|
|
4599
4599
|
import_node_fs6.default.rmSync(download2, { force: true });
|
|
4600
4600
|
}
|
|
4601
4601
|
}
|
|
4602
|
-
|
|
4603
|
-
import_node_fs6.default.
|
|
4602
|
+
const staged = `${plan.link}.${process.pid}.tmp`;
|
|
4603
|
+
import_node_fs6.default.rmSync(staged, { force: true });
|
|
4604
|
+
import_node_fs6.default.symlinkSync("../../libxml2.so.2", staged);
|
|
4605
|
+
import_node_fs6.default.renameSync(staged, plan.link);
|
|
4604
4606
|
for (const name3 of ["lib", "lib64"]) {
|
|
4605
4607
|
try {
|
|
4606
4608
|
import_node_fs6.default.symlinkSync(`usr/${name3}`, import_node_path4.default.join(root, name3));
|
|
@@ -8184,6 +8186,7 @@ function swiftSharedSdkRoot(moduleRoot, distribution) {
|
|
|
8184
8186
|
if (!import_node_fs8.default.existsSync(headers)) {
|
|
8185
8187
|
import_node_fs8.default.mkdirSync(import_node_path8.default.dirname(headers), { recursive: true });
|
|
8186
8188
|
const staging = import_node_fs8.default.mkdtempSync(`${headers}-`);
|
|
8189
|
+
import_node_fs8.default.chmodSync(staging, 493);
|
|
8187
8190
|
import_node_fs8.default.cpSync(root, staging, { recursive: true, preserveTimestamps: true });
|
|
8188
8191
|
try {
|
|
8189
8192
|
import_node_fs8.default.renameSync(staging, headers);
|
|
@@ -8412,6 +8415,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
|
|
|
8412
8415
|
if (!import_node_fs8.default.existsSync(manifest)) {
|
|
8413
8416
|
import_node_fs8.default.mkdirSync(import_node_path8.default.dirname(view), { recursive: true });
|
|
8414
8417
|
const staging = import_node_fs8.default.mkdtempSync(`${view}-`);
|
|
8418
|
+
import_node_fs8.default.chmodSync(staging, 493);
|
|
8415
8419
|
const realRoot = import_node_path8.default.dirname(bundle);
|
|
8416
8420
|
const overrides = new Map([
|
|
8417
8421
|
[import_node_path8.default.join(sysroot, "darwin/System/Library/Frameworks"), frameworks],
|
|
@@ -9055,19 +9059,18 @@ var MEMBER = "icu_packaged_data.cpp.obj";
|
|
|
9055
9059
|
var raw = /* @__PURE__ */ new Map();
|
|
9056
9060
|
var assets = /* @__PURE__ */ new Map();
|
|
9057
9061
|
var brotliMemoryCache = /* @__PURE__ */ new Map();
|
|
9058
|
-
function cachedBrotli(bytes, quality, cacheKey) {
|
|
9062
|
+
async function cachedBrotli(bytes, quality, cacheKey) {
|
|
9059
9063
|
const key2 = cacheKey && /^[a-f0-9]{64}$/.test(cacheKey) ? cacheKey : (0, import_node_crypto5.createHash)("sha256").update(bytes).digest("hex");
|
|
9060
9064
|
const cacheId = `${quality}:${key2}`;
|
|
9061
9065
|
const cached = brotliMemoryCache.get(cacheId);
|
|
9062
9066
|
if (cached) return cached;
|
|
9063
9067
|
const dir = import_node_path10.default.join(import_node_os5.default.homedir(), ".peach", "cache", "swift-brotli");
|
|
9064
9068
|
const file = import_node_path10.default.join(dir, `${key2}${quality === 11 ? "" : "-q4"}.br`);
|
|
9065
|
-
|
|
9066
|
-
|
|
9067
|
-
|
|
9068
|
-
|
|
9069
|
-
|
|
9070
|
-
const compressed = await compressBrotli(bytes, {
|
|
9069
|
+
let compressed;
|
|
9070
|
+
try {
|
|
9071
|
+
compressed = await (0, import_promises3.readFile)(file);
|
|
9072
|
+
} catch {
|
|
9073
|
+
compressed = await compressBrotli(bytes, {
|
|
9071
9074
|
params: {
|
|
9072
9075
|
[import_node_zlib.constants.BROTLI_PARAM_QUALITY]: quality,
|
|
9073
9076
|
[import_node_zlib.constants.BROTLI_PARAM_LGWIN]: 24
|
|
@@ -9075,16 +9078,14 @@ function cachedBrotli(bytes, quality, cacheKey) {
|
|
|
9075
9078
|
});
|
|
9076
9079
|
try {
|
|
9077
9080
|
await (0, import_promises3.mkdir)(dir, { recursive: true });
|
|
9078
|
-
const tmp = `${file}.${
|
|
9081
|
+
const tmp = `${file}.${(0, import_node_crypto5.randomUUID)()}.tmp`;
|
|
9079
9082
|
await (0, import_promises3.writeFile)(tmp, compressed);
|
|
9080
9083
|
await (0, import_promises3.rename)(tmp, file);
|
|
9081
9084
|
} catch {
|
|
9082
9085
|
}
|
|
9083
|
-
|
|
9084
|
-
|
|
9085
|
-
|
|
9086
|
-
void pending.catch(() => brotliMemoryCache.delete(cacheId));
|
|
9087
|
-
return pending;
|
|
9086
|
+
}
|
|
9087
|
+
brotliMemoryCache.set(cacheId, compressed);
|
|
9088
|
+
return compressed;
|
|
9088
9089
|
}
|
|
9089
9090
|
function brotliCompressQ4(bytes, cacheKey) {
|
|
9090
9091
|
return cachedBrotli(bytes, 4, cacheKey);
|
|
@@ -9092,14 +9093,12 @@ function brotliCompressQ4(bytes, cacheKey) {
|
|
|
9092
9093
|
async function swiftIcuBrotliQ4(icu) {
|
|
9093
9094
|
return brotliMemoryCache.get(`4:${icu.sha256}`) ?? brotliCompressQ4(await inflateGzip(icu.gzip), icu.sha256);
|
|
9094
9095
|
}
|
|
9095
|
-
function memo(cache, key2, load2) {
|
|
9096
|
-
|
|
9097
|
-
if (
|
|
9098
|
-
|
|
9099
|
-
|
|
9100
|
-
|
|
9101
|
-
}
|
|
9102
|
-
return pending;
|
|
9096
|
+
async function memo(cache, key2, load2) {
|
|
9097
|
+
const cached = cache.get(key2);
|
|
9098
|
+
if (cached !== void 0) return cached;
|
|
9099
|
+
const value = await load2();
|
|
9100
|
+
cache.set(key2, value);
|
|
9101
|
+
return value;
|
|
9103
9102
|
}
|
|
9104
9103
|
function swiftIcuData(toolchainBin, sdk) {
|
|
9105
9104
|
return memo(
|
|
@@ -10541,6 +10540,10 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
10541
10540
|
activateSymbolInObj(w.obj, w.symIdx);
|
|
10542
10541
|
}
|
|
10543
10542
|
}
|
|
10543
|
+
for (let n = pref.length - 1; n > 2; n--) {
|
|
10544
|
+
const outer = pref.slice(0, n);
|
|
10545
|
+
if (obj.typePrefixesInObj.has(outer)) markTypeLive(obj, outer);
|
|
10546
|
+
}
|
|
10544
10547
|
const mnName = `${pref}Mn`;
|
|
10545
10548
|
for (let i = 0; i < obj.symNames.length; i++) {
|
|
10546
10549
|
if (obj.symNames[i] === mnName && (obj.symFlags[i] & 16) === 0) {
|
|
@@ -11109,8 +11112,8 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
11109
11112
|
writePrunedObject(o, outPath);
|
|
11110
11113
|
prunedMap.set(o.file, outPath);
|
|
11111
11114
|
}
|
|
11112
|
-
const
|
|
11113
|
-
(f) => f.startsWith("libswiftCore__") && f !== "libswiftCore__Swift.o" || f.startsWith("libswift_Concurrency__") && f !== "libswift_Concurrency___Concurrency.o"
|
|
11115
|
+
const extraSdkObjs = allSdkObjFiles.filter(
|
|
11116
|
+
(f) => f.startsWith("libDarwin__") || f.startsWith("libswiftCore__") && f !== "libswiftCore__Swift.o" || f.startsWith("libswift_Concurrency__") && f !== "libswift_Concurrency___Concurrency.o"
|
|
11114
11117
|
).map((f) => import_node_path16.default.join(sdkObjsDir, f));
|
|
11115
11118
|
const outTokens = [];
|
|
11116
11119
|
const emittedPruned = /* @__PURE__ */ new Set();
|
|
@@ -11143,7 +11146,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
11143
11146
|
}
|
|
11144
11147
|
}
|
|
11145
11148
|
}
|
|
11146
|
-
outTokens.push(...
|
|
11149
|
+
outTokens.push(...extraSdkObjs);
|
|
11147
11150
|
continue;
|
|
11148
11151
|
}
|
|
11149
11152
|
if (t === "--end-lib") {
|
|
@@ -11748,7 +11751,8 @@ var OPTIONAL_FRAMEWORK_DEPENDENCIES = {
|
|
|
11748
11751
|
TOCropViewController: [],
|
|
11749
11752
|
RiveRuntime: ["MetalKit"],
|
|
11750
11753
|
MetalKit: ["ModelIO"],
|
|
11751
|
-
|
|
11754
|
+
DatadogInternal: [],
|
|
11755
|
+
DatadogCore: ["DatadogInternal"],
|
|
11752
11756
|
DatadogLogs: ["DatadogCore"],
|
|
11753
11757
|
DatadogRUM: ["DatadogCore"],
|
|
11754
11758
|
DatadogTrace: ["DatadogCore"],
|
|
@@ -12100,7 +12104,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
12100
12104
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
12101
12105
|
var MULTI_MANIFEST_VERSION = 65;
|
|
12102
12106
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
12103
|
-
var compilerSourceDigest = true ? "
|
|
12107
|
+
var compilerSourceDigest = true ? "f6bf05da9a8bbde24169c3c8ff29e36d48f13ea9f817f33a350da3c475783ddd" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
12104
12108
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
12105
12109
|
const hash = (0, import_node_crypto8.createHash)("sha256");
|
|
12106
12110
|
hash.update(`swift-compile
|
|
@@ -19065,11 +19069,44 @@ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
|
19065
19069
|
|
|
19066
19070
|
// ../contrast-runtime-delivery/src/index.ts
|
|
19067
19071
|
async function installVerifiedTarball(tarball) {
|
|
19072
|
+
const { destDir, installedMarker, signal } = tarball;
|
|
19073
|
+
import_node_fs24.default.mkdirSync(import_node_path25.default.dirname(destDir), { recursive: true });
|
|
19074
|
+
const presentAtStart = import_node_fs24.default.existsSync(import_node_path25.default.join(destDir, installedMarker));
|
|
19075
|
+
const lock = `${destDir}.lock`;
|
|
19076
|
+
for (; ; ) {
|
|
19077
|
+
signal?.throwIfAborted();
|
|
19078
|
+
try {
|
|
19079
|
+
import_node_fs24.default.writeFileSync(lock, String(process.pid), { flag: "wx" });
|
|
19080
|
+
break;
|
|
19081
|
+
} catch (err) {
|
|
19082
|
+
if (!isErrnoCode(err, "EEXIST")) throw err;
|
|
19083
|
+
if (lockOwnerGone(lock)) import_node_fs24.default.rmSync(lock, { force: true });
|
|
19084
|
+
else await new Promise((resolve2) => setTimeout(resolve2, 250));
|
|
19085
|
+
}
|
|
19086
|
+
}
|
|
19087
|
+
try {
|
|
19088
|
+
if (!presentAtStart && import_node_fs24.default.existsSync(import_node_path25.default.join(destDir, installedMarker))) {
|
|
19089
|
+
await tarball.verify?.(destDir);
|
|
19090
|
+
return;
|
|
19091
|
+
}
|
|
19092
|
+
await installVerifiedTarballLocked(tarball, presentAtStart);
|
|
19093
|
+
} finally {
|
|
19094
|
+
import_node_fs24.default.rmSync(lock, { force: true });
|
|
19095
|
+
}
|
|
19096
|
+
}
|
|
19097
|
+
function lockOwnerGone(lock) {
|
|
19098
|
+
try {
|
|
19099
|
+
process.kill(Number(import_node_fs24.default.readFileSync(lock, "utf8")), 0);
|
|
19100
|
+
return false;
|
|
19101
|
+
} catch (err) {
|
|
19102
|
+
return !isErrnoCode(err, "EPERM", "ENOENT");
|
|
19103
|
+
}
|
|
19104
|
+
}
|
|
19105
|
+
async function installVerifiedTarballLocked(tarball, presentAtStart) {
|
|
19068
19106
|
const { url, digest, destDir, installedMarker, label, signal } = tarball;
|
|
19069
19107
|
signal?.throwIfAborted();
|
|
19070
19108
|
const downloadDir = import_node_fs24.default.mkdtempSync(import_node_path25.default.join(import_node_os10.default.tmpdir(), "runtime-delivery-download-"));
|
|
19071
19109
|
const archivePath = import_node_path25.default.join(downloadDir, "archive");
|
|
19072
|
-
import_node_fs24.default.mkdirSync(import_node_path25.default.dirname(destDir), { recursive: true });
|
|
19073
19110
|
const tmpDir = import_node_fs24.default.mkdtempSync(
|
|
19074
19111
|
import_node_path25.default.join(import_node_path25.default.dirname(destDir), `.installing-${import_node_path25.default.basename(destDir)}-`)
|
|
19075
19112
|
);
|
|
@@ -19093,12 +19130,16 @@ async function installVerifiedTarball(tarball) {
|
|
|
19093
19130
|
if (!import_node_fs24.default.existsSync(import_node_path25.default.join(tmpDir, installedMarker))) {
|
|
19094
19131
|
throw new Error(`extracted tarball for ${label} is missing ${installedMarker}`);
|
|
19095
19132
|
}
|
|
19096
|
-
tarball.verify?.(tmpDir);
|
|
19133
|
+
await tarball.verify?.(tmpDir);
|
|
19097
19134
|
signal?.throwIfAborted();
|
|
19098
19135
|
try {
|
|
19099
19136
|
import_node_fs24.default.renameSync(tmpDir, destDir);
|
|
19100
19137
|
} catch (err) {
|
|
19101
19138
|
if (!isErrnoCode(err, "ENOTEMPTY", "EEXIST")) throw err;
|
|
19139
|
+
if (!presentAtStart && import_node_fs24.default.existsSync(import_node_path25.default.join(destDir, installedMarker))) {
|
|
19140
|
+
await tarball.verify?.(destDir);
|
|
19141
|
+
return;
|
|
19142
|
+
}
|
|
19102
19143
|
const aside = `${tmpDir}-replaced`;
|
|
19103
19144
|
try {
|
|
19104
19145
|
import_node_fs24.default.renameSync(destDir, aside);
|
|
@@ -19111,7 +19152,7 @@ async function installVerifiedTarball(tarball) {
|
|
|
19111
19152
|
if (!isErrnoCode(landErr, "ENOTEMPTY", "EEXIST") || !import_node_fs24.default.existsSync(import_node_path25.default.join(destDir, installedMarker))) {
|
|
19112
19153
|
throw landErr;
|
|
19113
19154
|
}
|
|
19114
|
-
tarball.verify?.(destDir);
|
|
19155
|
+
await tarball.verify?.(destDir);
|
|
19115
19156
|
} finally {
|
|
19116
19157
|
import_node_fs24.default.rmSync(aside, { recursive: true, force: true });
|
|
19117
19158
|
}
|
|
@@ -20737,12 +20778,12 @@ async function ensureLinuxBrowserLibraries(executablePath, browser) {
|
|
|
20737
20778
|
|
|
20738
20779
|
// src/swift-distribution.lock.json
|
|
20739
20780
|
var swift_distribution_lock_default = {
|
|
20740
|
-
id: "
|
|
20781
|
+
id: "92d08dea86eafc17",
|
|
20741
20782
|
release: "swift-6.4.0-RELEASE-custom-a560ff35bf882b5c",
|
|
20742
20783
|
wasmSdkId: "swift-6.4.0-RELEASE_wasm-peach-5d385b68",
|
|
20743
20784
|
wasmSdkUrl: "https://r2.sootsim.com/swift-wasm-sdk/swift-6.4.0-RELEASE_wasm-peach-5d385b68.artifactbundle.tar.gz",
|
|
20744
20785
|
wasmSdkChecksum: "d91882af99821a296c3db4459896b46ceaef37e9a30caad14e5f24cf6b964ae9",
|
|
20745
|
-
source: "
|
|
20786
|
+
source: "e5fb86f09228f6a9802a802657fea000ed6a3118",
|
|
20746
20787
|
targets: [
|
|
20747
20788
|
"ImagePlayground",
|
|
20748
20789
|
"QuickLookThumbnailing",
|
|
@@ -20876,6 +20917,7 @@ var swift_distribution_lock_default = {
|
|
|
20876
20917
|
"ModelIOEnums",
|
|
20877
20918
|
"ModelIO",
|
|
20878
20919
|
"MetalKit",
|
|
20920
|
+
"DatadogInternal",
|
|
20879
20921
|
"DatadogCore",
|
|
20880
20922
|
"DatadogLogs",
|
|
20881
20923
|
"DatadogRUM",
|
|
@@ -20968,16 +21010,16 @@ var swift_distribution_lock_default = {
|
|
|
20968
21010
|
},
|
|
20969
21011
|
hosts: {
|
|
20970
21012
|
"darwin-arm64": {
|
|
20971
|
-
sha256: "
|
|
20972
|
-
size:
|
|
21013
|
+
sha256: "b97c1ef24c74d88fe5b03240ac21017959884861a7ab3d298bc4b97e74e1bd02",
|
|
21014
|
+
size: 98848007
|
|
20973
21015
|
},
|
|
20974
21016
|
"linux-x64": {
|
|
20975
|
-
sha256: "
|
|
20976
|
-
size:
|
|
21017
|
+
sha256: "2beb12ad379dc2e618029a69c36b92d55c8f1b43b78e9600d97c13f17a1dab8f",
|
|
21018
|
+
size: 101566420
|
|
20977
21019
|
},
|
|
20978
21020
|
"linux-arm64": {
|
|
20979
|
-
sha256: "
|
|
20980
|
-
size:
|
|
21021
|
+
sha256: "5ea72a514d3f67aaf477babb848c14177b57b6cbc1671ea075075586a4c38d6a",
|
|
21022
|
+
size: 101056003
|
|
20981
21023
|
}
|
|
20982
21024
|
}
|
|
20983
21025
|
};
|
|
@@ -23986,7 +24028,7 @@ var MAX_SWIFT_COMPILE_METAL_TOTAL_BYTES = 8 * 1024 * 1024;
|
|
|
23986
24028
|
var MAX_SWIFT_COMPILE_IMAGES = 256;
|
|
23987
24029
|
var MAX_SWIFT_COMPILE_IMAGE_BYTES = 4 * 1024 * 1024;
|
|
23988
24030
|
var MAX_SWIFT_COMPILE_IMAGE_TOTAL_BYTES = 16 * 1024 * 1024;
|
|
23989
|
-
var SWIFT_HOST_ABI =
|
|
24031
|
+
var SWIFT_HOST_ABI = 62;
|
|
23990
24032
|
var POLL_INTERVAL_MS = 1500;
|
|
23991
24033
|
function swiftNativeEntry(native, file) {
|
|
23992
24034
|
return {
|
|
@@ -24723,7 +24765,7 @@ function standinSourceDigest(srcDir = __sootsim_import_meta_dirname) {
|
|
|
24723
24765
|
}
|
|
24724
24766
|
return hash.digest("hex");
|
|
24725
24767
|
}
|
|
24726
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
24768
|
+
var STANDIN_SOURCE_DIGEST = true ? "bcab0947a5f2c96b28cbf3a9de81a4e4de8711a17b0d7622fbc8f8c5fcee3d76" : standinSourceDigest();
|
|
24727
24769
|
|
|
24728
24770
|
// src/swift-standins.ts
|
|
24729
24771
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -25512,12 +25554,18 @@ var OBJC_IMPORT = /#\s*(?:import|include)\s*[<"](?:[\w+-]+\/)?([\w+.-]+\.h)[>"]/
|
|
|
25512
25554
|
function stageDeclaredFramework(framework, declared, imports2, sdkHeader, destination) {
|
|
25513
25555
|
const name3 = import_node_path39.default.basename(framework, ".framework");
|
|
25514
25556
|
const own = `${name3}-Swift.h`;
|
|
25515
|
-
const
|
|
25557
|
+
const declaration = import_node_fs37.default.readFileSync(
|
|
25516
25558
|
import_node_path39.default.join(framework, "Modules/module.modulemap"),
|
|
25517
25559
|
"utf8"
|
|
25518
25560
|
);
|
|
25561
|
+
const modulemap = declaration.includes(`framework module ${name3}`) ? declaration : `framework module ${name3} {
|
|
25562
|
+
umbrella header "${name3}-umbrella.h"
|
|
25563
|
+
export *
|
|
25564
|
+
}
|
|
25565
|
+
`;
|
|
25519
25566
|
const umbrella = /umbrella header "([^"]+)"/.exec(modulemap)?.[1];
|
|
25520
|
-
if (!umbrella
|
|
25567
|
+
if (!umbrella || !import_node_fs37.default.existsSync(import_node_path39.default.join(framework, "Headers", umbrella)))
|
|
25568
|
+
throw new Error(`${name3} module map names no umbrella header`);
|
|
25521
25569
|
const headers = new Map(
|
|
25522
25570
|
import_node_fs37.default.readdirSync(import_node_path39.default.join(framework, "Headers")).filter(
|
|
25523
25571
|
(file) => file.endsWith(".h") && file !== umbrella && file !== own && file !== `${name3}.h`
|
|
@@ -25769,12 +25817,18 @@ function peachModuleDirs(toolchain, imports2, sdkIncludes) {
|
|
|
25769
25817
|
(name3) => peach.has(name3)
|
|
25770
25818
|
);
|
|
25771
25819
|
const plugins = swiftMacroPlugins(moduleRoot);
|
|
25772
|
-
if (plugins.stale)
|
|
25820
|
+
if (plugins.stale) {
|
|
25773
25821
|
exec("sh", [
|
|
25774
25822
|
import_node_path39.default.join(moduleRoot, "scripts/build-preview-plugin.sh"),
|
|
25775
25823
|
toolchainBin,
|
|
25776
25824
|
plugins.libraries[0]
|
|
25777
25825
|
]);
|
|
25826
|
+
import_node_fs37.default.writeFileSync(
|
|
25827
|
+
import_node_path39.default.join(import_node_path39.default.dirname(plugins.libraries[0]), "compiler-release"),
|
|
25828
|
+
`${toolchain.release}
|
|
25829
|
+
`
|
|
25830
|
+
);
|
|
25831
|
+
}
|
|
25778
25832
|
for (const target of targets)
|
|
25779
25833
|
exec(
|
|
25780
25834
|
import_node_path39.default.join(toolchainBin, "swift"),
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1815 | (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;
|
|
@@ -184,15 +184,6 @@ var import_node_fs2 = require("node:fs");
|
|
|
184
184
|
var import_node_module = require("node:module");
|
|
185
185
|
var import_node_path2 = require("node:path");
|
|
186
186
|
|
|
187
|
-
// runtime-companion.json
|
|
188
|
-
var runtime_companion_default = { abi: 1, sha256: "77c8e261af4f0a75c45389b7605abcb681d900495f128191f81464492ffadda7", file: "node/cli-77c8e261af4f0a75c45389b7605abcb681d900495f128191f81464492ffadda7.cjs" };
|
|
189
|
-
|
|
190
|
-
// src/runtime-assets.ts
|
|
191
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
192
|
-
var import_fs = __toESM(require("fs"), 1);
|
|
193
|
-
var import_path = __toESM(require("path"), 1);
|
|
194
|
-
var import_url = require("url");
|
|
195
|
-
|
|
196
187
|
// ../contrast-runtime-delivery/src/index.ts
|
|
197
188
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
198
189
|
|
|
@@ -211,6 +202,15 @@ function isValidRuntimeVersion(value) {
|
|
|
211
202
|
return value.length <= 100 && /^[0-9A-Za-z][0-9A-Za-z._+-]*$/.test(value);
|
|
212
203
|
}
|
|
213
204
|
|
|
205
|
+
// runtime-companion.json
|
|
206
|
+
var runtime_companion_default = { abi: 1, sha256: "d657f8c4fd2d3c861f50ea15c42b3275555ac4f799c58a46d3dca829656bc63c", file: "node/cli-d657f8c4fd2d3c861f50ea15c42b3275555ac4f799c58a46d3dca829656bc63c.cjs" };
|
|
207
|
+
|
|
208
|
+
// src/runtime-assets.ts
|
|
209
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
210
|
+
var import_fs = __toESM(require("fs"), 1);
|
|
211
|
+
var import_path = __toESM(require("path"), 1);
|
|
212
|
+
var import_url = require("url");
|
|
213
|
+
|
|
214
214
|
// src/home-paths.ts
|
|
215
215
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
216
216
|
var import_node_fs = __toESM(require("node:fs"), 1);
|
|
@@ -490,13 +490,15 @@ function cliCompanionPath() {
|
|
|
490
490
|
return `node/cli-${runtime_companion_default.sha256}.cjs`;
|
|
491
491
|
}
|
|
492
492
|
function verifyCliCompanion(root) {
|
|
493
|
-
|
|
493
|
+
verifyCompanionFile((0, import_node_path2.join)(root, cliCompanionPath()));
|
|
494
|
+
}
|
|
495
|
+
function verifyCompanionFile(file) {
|
|
494
496
|
let bytes;
|
|
495
497
|
try {
|
|
496
498
|
bytes = (0, import_node_fs2.readFileSync)(file);
|
|
497
499
|
} catch (error) {
|
|
498
500
|
if (error instanceof Error) {
|
|
499
|
-
const missing2 = "code" in error && error.code === "ENOENT" ? ";
|
|
501
|
+
const missing2 = "code" in error && error.code === "ENOENT" ? "; run `peach runtime install`, which fetches the companion this CLI published, and check Windows Security protection history if it repeats" : "";
|
|
500
502
|
error.message = `Could not read Peach runtime companion ${file}: ${error.message}${missing2}`;
|
|
501
503
|
}
|
|
502
504
|
throw error;
|
|
@@ -1030,7 +1032,6 @@ var LAZY_STUB_PATTERNS = [
|
|
|
1030
1032
|
"react-native-bluetooth-state-manager",
|
|
1031
1033
|
"react-native-bottom-tabs",
|
|
1032
1034
|
"react-native-camera-kit",
|
|
1033
|
-
"react-native-change-icon",
|
|
1034
1035
|
"react-native-charts-wrapper",
|
|
1035
1036
|
"react-native-dialogs",
|
|
1036
1037
|
"react-native-drop-shadow",
|
|
@@ -1082,7 +1083,6 @@ var LAZY_STUB_PATTERNS = [
|
|
|
1082
1083
|
"react-native-reanimated/platformFunctions/setNativeProps",
|
|
1083
1084
|
"react-native-reanimated/specs/NativeReanimatedModule",
|
|
1084
1085
|
"react-native-reanimated/specs/NativeWorkletsModule",
|
|
1085
|
-
"react-native-restart-newarch",
|
|
1086
1086
|
"react-native-screenguard",
|
|
1087
1087
|
"react-native-screens",
|
|
1088
1088
|
"react-native-screens/components/Screen",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1815 | (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;
|
|
@@ -14,6 +14,8 @@ export interface NativeReplayObservation {
|
|
|
14
14
|
clipRectangular: boolean;
|
|
15
15
|
clipAntialiased: boolean;
|
|
16
16
|
inkBounds: [number, number, number, number];
|
|
17
|
+
recordDpr: number | null;
|
|
18
|
+
walkDpr: number | null;
|
|
17
19
|
}
|
|
18
20
|
export interface CanvasKitReplayApi {
|
|
19
21
|
p15(rows: number, frames: number, tag: number, target: number): void;
|
|
@@ -31,6 +31,13 @@ export interface ReactNativeHostServices {
|
|
|
31
31
|
queryImageCache(uris: string[]): Promise<Record<string, 'memory'>>;
|
|
32
32
|
openUrl(url: string): Promise<void>;
|
|
33
33
|
openBrowserSession(url: string, options: BrowserSessionOptions): Promise<BrowserSessionResult>;
|
|
34
|
+
openBrowserFile(file: {
|
|
35
|
+
bytes: ArrayBuffer;
|
|
36
|
+
mimeType: string;
|
|
37
|
+
}, options: {
|
|
38
|
+
sessionOwner: string;
|
|
39
|
+
onPresented: () => void;
|
|
40
|
+
}): Promise<BrowserSessionResult>;
|
|
34
41
|
dismissBrowserSession(sessionOwner: string): Promise<{
|
|
35
42
|
type: 'dismiss';
|
|
36
43
|
}>;
|
|
@@ -377,6 +377,12 @@ export type HostServiceRequest = {
|
|
|
377
377
|
type: 'rnWebAuthentication';
|
|
378
378
|
requestId: number;
|
|
379
379
|
request: WebAuthenticationHostRequest;
|
|
380
|
+
} | {
|
|
381
|
+
type: 'rnBrowserOpenFile';
|
|
382
|
+
requestId: number;
|
|
383
|
+
sessionOwner: string;
|
|
384
|
+
bytes: ArrayBuffer;
|
|
385
|
+
mimeType: string;
|
|
380
386
|
} | {
|
|
381
387
|
type: 'rnBrowserDismiss';
|
|
382
388
|
requestId: number;
|
|
@@ -646,6 +652,9 @@ export type HostServiceResponse = {
|
|
|
646
652
|
ok: boolean;
|
|
647
653
|
result?: BrowserSessionResult;
|
|
648
654
|
error?: string;
|
|
655
|
+
} | {
|
|
656
|
+
type: 'rnBrowserPresented';
|
|
657
|
+
sessionOwner: string;
|
|
649
658
|
} | {
|
|
650
659
|
type: 'rnBrowserDismissResult';
|
|
651
660
|
requestId: number;
|
|
@@ -674,10 +683,10 @@ export type HostServiceResponse = {
|
|
|
674
683
|
references: string[];
|
|
675
684
|
};
|
|
676
685
|
type ReactNativeHostServiceRequest = Extract<HostServiceRequest, {
|
|
677
|
-
type: 'rnImageGetSize' | 'rnVideoThumbnail' | 'rnImagePrefetch' | 'rnImageStoreBytes' | 'rnImageAwaitBytes' | 'rnImageAbort' | 'rnImageQueryCache' | 'rnLinkingOpenUrl' | 'rnWebAuthentication' | 'rnBrowserOpen' | 'rnBrowserDismiss' | 'rnScreenWakeLockIsAvailable' | 'rnScreenWakeLockActivate' | 'rnScreenWakeLockDeactivate' | 'geolocationGetCurrentPosition' | 'geolocationWatchPosition' | 'geolocationClearWatch';
|
|
686
|
+
type: 'rnImageGetSize' | 'rnVideoThumbnail' | 'rnImagePrefetch' | 'rnImageStoreBytes' | 'rnImageAwaitBytes' | 'rnImageAbort' | 'rnImageQueryCache' | 'rnLinkingOpenUrl' | 'rnWebAuthentication' | 'rnBrowserOpen' | 'rnBrowserOpenFile' | 'rnBrowserDismiss' | 'rnScreenWakeLockIsAvailable' | 'rnScreenWakeLockActivate' | 'rnScreenWakeLockDeactivate' | 'geolocationGetCurrentPosition' | 'geolocationWatchPosition' | 'geolocationClearWatch';
|
|
678
687
|
}>;
|
|
679
688
|
type ReactNativeHostServiceResponse = Extract<HostServiceResponse, {
|
|
680
|
-
type: 'rnImageGetSizeResult' | 'rnVideoThumbnailResult' | 'rnImageStoreBytesResult' | 'rnImageAwaitBytesResult' | 'rnImagePrefetchResult' | 'rnImageAbortResult' | 'rnImageQueryCacheResult' | 'rnLinkingOpenUrlResult' | 'rnWebAuthenticationResult' | 'rnBrowserOpenResult' | 'rnBrowserDismissResult' | 'rnScreenWakeLockIsAvailableResult' | 'rnScreenWakeLockActivateResult' | 'rnScreenWakeLockDeactivateResult' | 'rnScreenWakeLockReleased' | 'geolocationGetCurrentPositionResult' | 'geolocationWatchPositionResult' | 'geolocationPosition' | 'geolocationError';
|
|
689
|
+
type: 'rnImageGetSizeResult' | 'rnVideoThumbnailResult' | 'rnImageStoreBytesResult' | 'rnImageAwaitBytesResult' | 'rnImagePrefetchResult' | 'rnImageAbortResult' | 'rnImageQueryCacheResult' | 'rnLinkingOpenUrlResult' | 'rnWebAuthenticationResult' | 'rnBrowserOpenResult' | 'rnBrowserPresented' | 'rnBrowserDismissResult' | 'rnScreenWakeLockIsAvailableResult' | 'rnScreenWakeLockActivateResult' | 'rnScreenWakeLockDeactivateResult' | 'rnScreenWakeLockReleased' | 'geolocationGetCurrentPositionResult' | 'geolocationWatchPositionResult' | 'geolocationPosition' | 'geolocationError';
|
|
681
690
|
}>;
|
|
682
691
|
export type ShellHostServiceRequest = Exclude<HostServiceRequest, ReactNativeHostServiceRequest>;
|
|
683
692
|
export type ShellHostServiceResponse = Exclude<HostServiceResponse, ReactNativeHostServiceResponse>;
|
|
@@ -777,6 +786,9 @@ export type HostServiceRNLinkingOpenUrlResult = Extract<HostServiceResponse, {
|
|
|
777
786
|
export type HostServiceRNBrowserOpenResult = Extract<HostServiceResponse, {
|
|
778
787
|
type: 'rnBrowserOpenResult';
|
|
779
788
|
}>;
|
|
789
|
+
export type HostServiceRNBrowserPresented = Extract<HostServiceResponse, {
|
|
790
|
+
type: 'rnBrowserPresented';
|
|
791
|
+
}>;
|
|
780
792
|
export type HostServiceRNBrowserDismissResult = Extract<HostServiceResponse, {
|
|
781
793
|
type: 'rnBrowserDismissResult';
|
|
782
794
|
}>;
|
package/install.mjs
CHANGED
|
@@ -2,15 +2,28 @@
|
|
|
2
2
|
// `npx peachsim` runs the same guided install as
|
|
3
3
|
// `curl -fsSL https://peachsim.com/install.sh | sh`: this package ships that
|
|
4
4
|
// script, and it installs the standalone peach executable, then hands off to
|
|
5
|
-
// `peach setup`.
|
|
5
|
+
// `peach setup`. `npx peachsim <command>` installs peach only when it is
|
|
6
|
+
// missing, then runs `peach <command>`.
|
|
6
7
|
import { spawnSync } from 'node:child_process'
|
|
8
|
+
import { existsSync } from 'node:fs'
|
|
9
|
+
import { homedir } from 'node:os'
|
|
10
|
+
import { join } from 'node:path'
|
|
7
11
|
import { fileURLToPath } from 'node:url'
|
|
8
12
|
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
const args = process.argv.slice(2)
|
|
14
|
+
const cli = join(process.env.PEACH_CLI_PREFIX || join(homedir(), '.local'), 'bin', 'peach')
|
|
15
|
+
|
|
16
|
+
const run = (command, commandArgs, label) => {
|
|
17
|
+
const result = spawnSync(command, commandArgs, { stdio: 'inherit' })
|
|
18
|
+
if (result.error) {
|
|
19
|
+
process.stderr.write(`error: could not run ${label}: ${result.error.message}\n`)
|
|
20
|
+
process.exit(1)
|
|
21
|
+
}
|
|
22
|
+
return result.status ?? 1
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
if (args.length === 0 || !existsSync(cli)) {
|
|
26
|
+
const status = run('sh', [fileURLToPath(new URL('./install.sh', import.meta.url))], 'the peach installer')
|
|
27
|
+
if (status !== 0 || args.length === 0) process.exit(status)
|
|
15
28
|
}
|
|
16
|
-
process.exit(
|
|
29
|
+
process.exit(run(cli, args, 'peach'))
|
package/package.json
CHANGED
package/runtime-companion.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"abi":1,"sha256":"
|
|
1
|
+
{"abi":1,"sha256":"d657f8c4fd2d3c861f50ea15c42b3275555ac4f799c58a46d3dca829656bc63c","file":"node/cli-d657f8c4fd2d3c861f50ea15c42b3275555ac4f799c58a46d3dca829656bc63c.cjs"}
|
package/sdk/ios/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewController.h
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#import <UIKit/UIKit.h>
|
|
2
2
|
NS_ASSUME_NONNULL_BEGIN
|
|
3
3
|
@class SFSafariViewControllerConfiguration;
|
|
4
|
+
@protocol SFSafariViewControllerDelegate;
|
|
4
5
|
__attribute__((availability(ios, introduced=9.0)))
|
|
5
6
|
__attribute__((availability(watchos, unavailable)))
|
|
6
7
|
PEACH_SWIFT_CLASS(SafariServices) @interface SFSafariViewController : UIViewController
|
|
@@ -10,5 +11,21 @@ PEACH_SWIFT_CLASS(SafariServices) @interface SFSafariViewController : UIViewCont
|
|
|
10
11
|
- (instancetype)initWithURL:(NSURL *)URL configuration:(SFSafariViewControllerConfiguration *)configuration NS_DESIGNATED_INITIALIZER __attribute__((availability(ios, introduced=11.0)));
|
|
11
12
|
- (instancetype)initWithURL:(NSURL *)URL entersReaderIfAvailable:(BOOL)entersReaderIfAvailable NS_DESIGNATED_INITIALIZER __attribute__((availability(ios, introduced=9.0, deprecated=11.0, replacement="-initWithURL:configuration:"))) __attribute__((availability(visionos, unavailable)));
|
|
12
13
|
- (instancetype)initWithURL:(NSURL *)URL;
|
|
14
|
+
@property (nonatomic, weak, nullable) id <SFSafariViewControllerDelegate> delegate __attribute__((availability(visionos, unavailable)));
|
|
15
|
+
@property (nonatomic, readonly, copy) SFSafariViewControllerConfiguration *configuration __attribute__((availability(ios, introduced=11.0)));
|
|
16
|
+
@property (nonatomic, nullable) UIColor *preferredBarTintColor __attribute__((availability(ios, introduced=10.0, deprecated=26.0, message="Tinting the bars interferes with background effects that the system provides."))) __attribute__((availability(visionos, unavailable)));
|
|
17
|
+
@property (nonatomic, nullable) UIColor *preferredControlTintColor __attribute__((availability(ios, introduced=10.0, deprecated=26.0, message="Tinting the controls interferes with background effects that the system provides."))) __attribute__((availability(visionos, unavailable)));
|
|
18
|
+
@end
|
|
19
|
+
__attribute__((availability(ios, introduced=9.0)))
|
|
20
|
+
__attribute__((availability(watchos, unavailable)))
|
|
21
|
+
__attribute__((availability(visionos, unavailable)))
|
|
22
|
+
@protocol SFSafariViewControllerDelegate <NSObject>
|
|
23
|
+
@optional
|
|
24
|
+
- (NSArray<UIActivity *> *)safariViewController:(SFSafariViewController *)controller activityItemsForURL:(NSURL *)URL title:(nullable NSString *)title;
|
|
25
|
+
- (NSArray<UIActivityType> *)safariViewController:(SFSafariViewController *)controller excludedActivityTypesForURL:(NSURL *)URL title:(nullable NSString *)title __attribute__((availability(ios, introduced=11.0)));
|
|
26
|
+
- (void)safariViewControllerDidFinish:(SFSafariViewController *)controller;
|
|
27
|
+
- (void)safariViewController:(SFSafariViewController *)controller didCompleteInitialLoad:(BOOL)didLoadSuccessfully;
|
|
28
|
+
- (void)safariViewController:(SFSafariViewController *)controller initialLoadDidRedirectToURL:(NSURL *)URL __attribute__((availability(ios, introduced=11.0)));
|
|
29
|
+
- (void)safariViewControllerWillOpenInBrowser:(SFSafariViewController *)controller NS_SWIFT_NAME(safariViewControllerWillOpenInBrowser(_:)) __attribute__((availability(ios, introduced=14.0)));
|
|
13
30
|
@end
|
|
14
31
|
NS_ASSUME_NONNULL_END
|
package/sdk/ios/usr/lib/swift/Foundation.swiftmodule/arm64-apple-ios-simulator.swiftinterface
CHANGED
|
@@ -314,3 +314,9 @@ extension Foundation.Data : Swift.Hashable, Swift.Codable, Foundation.Contiguous
|
|
|
314
314
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
315
315
|
public func withUnsafeBytes<R>(_ body: (Swift.UnsafeRawBufferPointer) throws -> R) rethrows -> R
|
|
316
316
|
}
|
|
317
|
+
public typealias NSErrorPointer = Swift.AutoreleasingUnsafeMutablePointer<Foundation.NSError?>?
|
|
318
|
+
public typealias ErrorPointer = Foundation.NSErrorPointer
|
|
319
|
+
extension Foundation.Data {
|
|
320
|
+
public typealias ReadingOptions = Foundation.NSData.ReadingOptions
|
|
321
|
+
public typealias WritingOptions = Foundation.NSData.WritingOptions
|
|
322
|
+
}
|
package/sdk/ios/usr/lib/swift/ObjectiveC.swiftmodule/arm64-apple-ios-simulator.swiftinterface
CHANGED
|
@@ -2,9 +2,13 @@
|
|
|
2
2
|
// swift-module-flags: -target arm64-apple-ios16.0-simulator -enable-objc-interop -enable-library-evolution -module-name ObjectiveC
|
|
3
3
|
@_exported import ObjectiveC
|
|
4
4
|
import Swift
|
|
5
|
-
@frozen public struct ObjCBool {
|
|
5
|
+
@frozen public struct ObjCBool : Swift.ExpressibleByBooleanLiteral, Swift.Sendable {
|
|
6
|
+
@usableFromInline
|
|
7
|
+
internal var _value: Swift.Bool
|
|
6
8
|
public init(_ value: Swift.Bool)
|
|
7
9
|
public var boolValue: Swift.Bool { get }
|
|
10
|
+
public init(booleanLiteral value: Swift.Bool)
|
|
11
|
+
public typealias BooleanLiteralType = Swift.Bool
|
|
8
12
|
}
|
|
9
13
|
@frozen public struct Selector {
|
|
10
14
|
public init(_ str: Swift.String)
|
|
@@ -20,3 +24,8 @@ extension ObjectiveC.NSObject : Swift.CustomStringConvertible {}
|
|
|
20
24
|
extension ObjectiveC.NSObject : Swift.CustomDebugStringConvertible {}
|
|
21
25
|
public func _convertBoolToObjCBool(_ x: Swift.Bool) -> ObjectiveC.ObjCBool
|
|
22
26
|
public func _convertObjCBoolToBool(_ x: ObjectiveC.ObjCBool) -> Swift.Bool
|
|
27
|
+
@frozen public struct NSZone {
|
|
28
|
+
internal var pointer: Swift.OpaquePointer
|
|
29
|
+
}
|
|
30
|
+
@available(*, unavailable)
|
|
31
|
+
extension ObjectiveC.NSZone : Swift.Sendable {}
|