peachsim 0.1.1817 → 0.1.1821
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/cli/commands/agent-indicator-mode.ts +2 -1
- package/cli/commands/coverage-swift.ts +4 -3
- package/cli/commands/flow.ts +7 -0
- package/cli/commands/inspect/core.ts +14 -4
- package/cli/commands/inspect/wait-selector.ts +9 -1
- package/cli/commands/maestro-compare.ts +7 -0
- package/cli/commands/package.ts +5 -0
- package/cli/commands/screenshot-mode.ts +2 -1
- package/cli/commands/shell-boolean-mode.ts +7 -3
- package/cli/commands/shell-url.ts +4 -0
- package/cli/commands/show-touches-mode.ts +2 -1
- package/cli/commands/test.ts +3 -2
- package/cli/commands/three-mode.ts +2 -1
- package/cli/outbound-endpoints.ts +5 -0
- 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 +2842 -3830
- 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 +2 -2
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +1722 -1580
- 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 +2800 -3794
- package/dist-lib/host/fetch-proxy-handler.cjs +2 -2
- 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 +32 -11
- 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 +28 -7
- package/dist-lib/native-app-identity-project.cjs +31 -6
- package/dist-lib/native-app-identity-project.mjs +295 -259
- 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 +29 -24
- package/dist-lib/public-origins-lib.json +100 -80
- 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 +8 -6
- package/dist-lib/sdk.mjs +8 -6
- package/dist-lib/skills.cjs +3192 -4150
- package/dist-lib/swift-compile.cjs +136 -29
- package/dist-lib/swift-compile.mjs +143 -34
- 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 +52 -6
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +2206 -2060
- package/dist-lib/vite.cjs +2 -2
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/ios/photoLibraryContract.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/render-worker/map-command-channel.d.ts +41 -0
- package/dist-types/packages/peach-engine/src/render-worker/mapServicesContract.d.ts +45 -0
- package/package.json +2 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes +1 -1
- package/sdk/ios/usr/include/module.modulemap +3 -0
- package/sdk/ios/usr/include/notify.modulemap +9 -0
- package/sdk/ios/usr/lib/swift/Darwin.swiftmodule/arm64-apple-ios-simulator.swiftinterface +4 -0
- package/sdk/ios/usr/lib/swift/Dispatch.swiftmodule/arm64-apple-ios-simulator.swiftinterface +1 -1
- package/sdk/ios/usr/lib/swift/Foundation.swiftmodule/arm64-apple-ios-simulator.swiftinterface +7 -1
- package/sdk/ios/usr/lib/swift/ObjectiveC.swiftmodule/arm64-apple-ios-simulator.swiftinterface +1 -0
- package/sdk/ios/usr/lib/swift/SwiftUI.swiftmodule/arm64-apple-ios-simulator.swiftinterface +21 -0
- package/sdk/ios/usr/lib/swift/SwiftUICore.swiftmodule/arm64-apple-ios-simulator.swiftinterface +6 -1
- package/sdk/ios/wasm/include/__header_time.h +4 -0
- package/sdk/ios/wasm/include/pthread.h +2 -0
- package/sdk/ios/wasm/include/sys/mman.h +1 -1
- package/sdk/ios/wasm/include/sys/resource.h +31 -0
- package/sdk/ios/wasm/include/unistd.h +4 -0
- package/src/answeredNativePackages.ts +11 -9
- package/src/expo-discovery-cache.ts +69 -52
- package/src/expo-native-workspace.ts +3 -1
- package/src/expo-swift-host.ts +45 -7
- package/src/installed-native-libraries.ts +103 -20
- package/src/native-static-libraries.ts +69 -33
- package/src/nitro-adapter.ts +0 -9
- package/src/nitro-compile.ts +45 -16
- package/src/nitro-superset.ts +4 -5
- package/src/plist-bytes.ts +9 -0
- package/src/portable-expo-workspace.ts +4 -3
- package/src/react-native-bridge-modules.ts +11 -15
- package/src/swift-compile.ts +146 -18
- package/src/swift-cxx-reachable.ts +13 -0
- package/src/swift-distribution.ts +3 -4
- package/src/swift-host.ts +5 -3
- package/src/swift-installed-targets.ts +32 -14
- package/src/swift-native-pin.ts +45 -0
- package/src/swift-objc-compile.ts +23 -1
- package/src/swift-objc-standin.ts +4 -1
- package/src/swift-package-manifest.ts +2 -2
- package/src/swift-root-lock.ts +4 -3
- package/src/swift-standins.ts +5 -26
- package/src/swift-toolchain.ts +69 -12
- package/src/swift-wasm-prune.ts +1 -0
- package/src/swift-xcframework.ts +23 -12
- package/src/swiftContract.ts +2 -0
- package/src/swiftNativePinContract.ts +68 -0
- package/src/turbo-bundle.ts +14 -6
- package/src/turbo-compile.ts +76 -11
- package/src/turbo-source.ts +91 -15
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1821 | (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,9 +39,11 @@ __export(swift_toolchain_exports, {
|
|
|
39
39
|
SWIFT_PRIVATE_DISTRIBUTION_ENV: () => SWIFT_PRIVATE_DISTRIBUTION_ENV,
|
|
40
40
|
confineSwiftScratch: () => confineSwiftScratch,
|
|
41
41
|
ensureSwiftLinuxRuntime: () => ensureSwiftLinuxRuntime,
|
|
42
|
+
extractSwiftHostCompiler: () => extractSwiftHostCompiler,
|
|
42
43
|
installSwiftWasmSdk: () => installSwiftWasmSdk,
|
|
43
44
|
peachsimPackageRoot: () => peachsimPackageRoot,
|
|
44
45
|
privateSwiftDistributionRoot: () => privateSwiftDistributionRoot,
|
|
46
|
+
registerSwiftHostCompiler: () => registerSwiftHostCompiler,
|
|
45
47
|
setSwiftLinuxLibraryPath: () => setSwiftLinuxLibraryPath,
|
|
46
48
|
sourceSwiftCheckout: () => sourceSwiftCheckout,
|
|
47
49
|
swiftCacheDir: () => swiftCacheDir,
|
|
@@ -53,6 +55,8 @@ __export(swift_toolchain_exports, {
|
|
|
53
55
|
swiftEnvironment: () => swiftEnvironment,
|
|
54
56
|
swiftFileChecksum: () => swiftFileChecksum,
|
|
55
57
|
swiftHostCompilerArchive: () => swiftHostCompilerArchive,
|
|
58
|
+
swiftHostCompilerPin: () => swiftHostCompilerPin,
|
|
59
|
+
swiftHostCompilerTar: () => swiftHostCompilerTar,
|
|
56
60
|
swiftInstallSteps: () => swiftInstallSteps,
|
|
57
61
|
swiftLinuxRuntimeLib: () => swiftLinuxRuntimeLib,
|
|
58
62
|
swiftLinuxRuntimePlan: () => swiftLinuxRuntimePlan,
|
|
@@ -73,8 +77,10 @@ var import_node_crypto = require("node:crypto");
|
|
|
73
77
|
var import_node_fs = __toESM(require("node:fs"), 1);
|
|
74
78
|
var import_node_os = __toESM(require("node:os"), 1);
|
|
75
79
|
var import_node_path = __toESM(require("node:path"), 1);
|
|
80
|
+
var import_promises = require("node:stream/promises");
|
|
76
81
|
var import_node_url = require("node:url");
|
|
77
82
|
var import_node_util = require("node:util");
|
|
83
|
+
var import_node_zlib = __toESM(require("node:zlib"), 1);
|
|
78
84
|
function peachsimPackageRoot() {
|
|
79
85
|
let dir = __sootsim_import_meta_dirname;
|
|
80
86
|
while (!import_node_fs.default.existsSync(import_node_path.default.join(dir, "package.json")) && dir !== import_node_path.default.dirname(dir))
|
|
@@ -103,6 +109,7 @@ var SWIFT_HOST_COMPILER_ID = "81b2c791c27276bf";
|
|
|
103
109
|
var compilerArchives = {
|
|
104
110
|
"swift-6.4.0-RELEASE-custom-0b2d0a9011c88e66": {
|
|
105
111
|
identity: "0b2d0a9011c88e66",
|
|
112
|
+
archive: "tar.gz",
|
|
106
113
|
hosts: {
|
|
107
114
|
"darwin-arm64": {
|
|
108
115
|
checksum: "dc6a494227297ea657e8e5f7c5b4a861cb5e142bdbcfcb028ace2aeb19db90cc",
|
|
@@ -120,6 +127,7 @@ var compilerArchives = {
|
|
|
120
127
|
},
|
|
121
128
|
"swift-6.4.0-RELEASE-custom-f7c03c3f59ec5d83": {
|
|
122
129
|
identity: "f7c03c3f59ec5d83",
|
|
130
|
+
archive: "tar.gz",
|
|
123
131
|
hosts: {
|
|
124
132
|
"darwin-arm64": {
|
|
125
133
|
checksum: "8946a2d4716d3b0784cef7a85a35f66537bd319c4c5a48c63457d607260df5c5",
|
|
@@ -137,6 +145,7 @@ var compilerArchives = {
|
|
|
137
145
|
},
|
|
138
146
|
"swift-6.4.0-RELEASE-custom-3e3dca8fd1d82975": {
|
|
139
147
|
identity: "3e3dca8fd1d82975",
|
|
148
|
+
archive: "tar.gz",
|
|
140
149
|
hosts: {
|
|
141
150
|
"darwin-arm64": {
|
|
142
151
|
checksum: "dfad56454f5e1e465071ff708bf485be65b438cf55d02b04d26d17d26df9f54a",
|
|
@@ -154,6 +163,7 @@ var compilerArchives = {
|
|
|
154
163
|
},
|
|
155
164
|
"swift-6.4.0-RELEASE-custom-b082ac5437336790": {
|
|
156
165
|
identity: "b082ac5437336790",
|
|
166
|
+
archive: "tar.gz",
|
|
157
167
|
hosts: {
|
|
158
168
|
"darwin-arm64": {
|
|
159
169
|
checksum: "85e601982321d3a6f81f05928bc9bbe7a61bc75b27ce24508e79f6b5b537254d",
|
|
@@ -171,6 +181,7 @@ var compilerArchives = {
|
|
|
171
181
|
},
|
|
172
182
|
"swift-6.4.0-RELEASE-custom-9cdaffdb6b37fb47": {
|
|
173
183
|
identity: "9cdaffdb6b37fb47",
|
|
184
|
+
archive: "tar.gz",
|
|
174
185
|
hosts: {
|
|
175
186
|
"darwin-arm64": {
|
|
176
187
|
checksum: "fdd3f88cf76a8dc2083275d4253255030068a25b5ba68acbf59e0407c45677dd",
|
|
@@ -188,6 +199,7 @@ var compilerArchives = {
|
|
|
188
199
|
},
|
|
189
200
|
"swift-6.4.0-RELEASE-custom-bd49e2f77434e7b1": {
|
|
190
201
|
identity: "bd49e2f77434e7b1",
|
|
202
|
+
archive: "tar.gz",
|
|
191
203
|
hosts: {
|
|
192
204
|
"darwin-arm64": {
|
|
193
205
|
checksum: "e815b06394566e8125475afc8f1807f7f465318c845549c5831043cdc28eca64",
|
|
@@ -205,6 +217,7 @@ var compilerArchives = {
|
|
|
205
217
|
},
|
|
206
218
|
"swift-6.4.0-RELEASE-custom-13450179a7e01c81": {
|
|
207
219
|
identity: "13450179a7e01c81",
|
|
220
|
+
archive: "tar.gz",
|
|
208
221
|
hosts: {
|
|
209
222
|
"darwin-arm64": {
|
|
210
223
|
checksum: "a29be6b722f15c7aafac26ba5703a7392f49ce7ea5e1c56548846b7e458290f7",
|
|
@@ -222,6 +235,7 @@ var compilerArchives = {
|
|
|
222
235
|
},
|
|
223
236
|
"swift-6.4.0-RELEASE-custom-f6868fa6054e83d6": {
|
|
224
237
|
identity: "f6868fa6054e83d6",
|
|
238
|
+
archive: "tar.gz",
|
|
225
239
|
hosts: {
|
|
226
240
|
"darwin-arm64": {
|
|
227
241
|
checksum: "bd80c2f35864ec29883dd22001d0165821e80d78002fc12f92406c3c708694a4",
|
|
@@ -239,23 +253,25 @@ var compilerArchives = {
|
|
|
239
253
|
},
|
|
240
254
|
"swift-6.4.0-RELEASE-custom-a560ff35bf882b5c": {
|
|
241
255
|
identity: "a560ff35bf882b5c",
|
|
256
|
+
archive: "tar.zst",
|
|
242
257
|
hosts: {
|
|
243
258
|
"darwin-arm64": {
|
|
244
|
-
checksum: "
|
|
259
|
+
checksum: "36c50bcdfba88a4c0989af0bd60371497eb4403aa7b80644b479fa509a2187a9",
|
|
245
260
|
manifest: "253e891527d2213f54eace768b902de89de5e9495a3c5f4018de1985516bd553"
|
|
246
261
|
},
|
|
247
262
|
"linux-x64": {
|
|
248
|
-
checksum: "
|
|
263
|
+
checksum: "ba25da9182314fc7b7dd2fc041280e1c7b409f80a1fbccdfa5c342669d164c8e",
|
|
249
264
|
manifest: "6f951cc4071dd0d6054d85711a7c5fe272273658847831b477a8b24be7254ca0"
|
|
250
265
|
},
|
|
251
266
|
"linux-arm64": {
|
|
252
|
-
checksum: "
|
|
267
|
+
checksum: "5f0f4456e9fe22b5486025db9f679c865841660797d71761245291c2c6811c20",
|
|
253
268
|
manifest: "b6f62fca2ec37593e274ee5bac474f21ffc5db14cd82f492ccbc774f8e9b75d8"
|
|
254
269
|
}
|
|
255
270
|
}
|
|
256
271
|
},
|
|
257
272
|
[SWIFT_HOST_COMPILER_RELEASE]: {
|
|
258
273
|
identity: SWIFT_HOST_COMPILER_ID,
|
|
274
|
+
archive: "tar.gz",
|
|
259
275
|
hosts: {
|
|
260
276
|
"darwin-arm64": {
|
|
261
277
|
checksum: "bc51b83d9e2e01c9873875326544734486d3ff3a868d650379c304045e8838d3",
|
|
@@ -358,17 +374,43 @@ function ensureSwiftLinuxRuntime(release) {
|
|
|
358
374
|
}
|
|
359
375
|
linuxHostSdkRoot = root;
|
|
360
376
|
}
|
|
361
|
-
function
|
|
377
|
+
function swiftHostCompilerPin(release) {
|
|
362
378
|
const compiler = compilerArchives[release];
|
|
363
379
|
if (!compiler) throw new Error(`unqualified host compiler ${release}`);
|
|
380
|
+
return compiler;
|
|
381
|
+
}
|
|
382
|
+
function registerSwiftHostCompiler(release, pin) {
|
|
383
|
+
compilerArchives[release] = pin;
|
|
384
|
+
}
|
|
385
|
+
function swiftHostCompilerArchive(release, host = `${process.platform}-${process.arch}`) {
|
|
386
|
+
const compiler = swiftHostCompilerPin(release);
|
|
364
387
|
const archive = compiler.hosts[host];
|
|
365
388
|
if (!archive) throw new Error(`unsupported Swift compiler host ${host}`);
|
|
366
389
|
return {
|
|
367
390
|
...archive,
|
|
368
391
|
identity: compiler.identity,
|
|
369
|
-
|
|
392
|
+
archive: compiler.archive,
|
|
393
|
+
url: `https://r2.sootsim.com/swift-host-compiler/${compiler.identity}/${archive.checksum}.${compiler.archive}`
|
|
370
394
|
};
|
|
371
395
|
}
|
|
396
|
+
function swiftHostCompilerTar(archive, url) {
|
|
397
|
+
const file = import_node_fs.default.createReadStream(archive);
|
|
398
|
+
const decoder = url.endsWith(".tar.zst") ? import_node_zlib.default.createZstdDecompress({ params: { [import_node_zlib.default.constants.ZSTD_d_windowLogMax]: 30 } }) : import_node_zlib.default.createGunzip();
|
|
399
|
+
file.on("error", (error) => decoder.destroy(error));
|
|
400
|
+
return file.pipe(decoder);
|
|
401
|
+
}
|
|
402
|
+
async function extractSwiftHostCompiler(archive, url, destination) {
|
|
403
|
+
const tar = (0, import_node_child_process.spawn)("tar", ["-xf", "-", "--strip-components=1", "-C", destination], {
|
|
404
|
+
stdio: ["pipe", "inherit", "inherit"]
|
|
405
|
+
});
|
|
406
|
+
const exited = new Promise((resolve, reject) => {
|
|
407
|
+
tar.on("error", reject);
|
|
408
|
+
tar.on("close", resolve);
|
|
409
|
+
});
|
|
410
|
+
await (0, import_promises.pipeline)(swiftHostCompilerTar(archive, url), tar.stdin);
|
|
411
|
+
const code = await exited;
|
|
412
|
+
if (code !== 0) throw new Error(`tar exited with ${code} unpacking ${archive}`);
|
|
413
|
+
}
|
|
372
414
|
function swiftUpstreamRelease(release) {
|
|
373
415
|
return release.replace(/-custom-[a-f0-9]{16}$/, "");
|
|
374
416
|
}
|
|
@@ -878,9 +920,11 @@ function swiftCompilerInstall(release) {
|
|
|
878
920
|
SWIFT_PRIVATE_DISTRIBUTION_ENV,
|
|
879
921
|
confineSwiftScratch,
|
|
880
922
|
ensureSwiftLinuxRuntime,
|
|
923
|
+
extractSwiftHostCompiler,
|
|
881
924
|
installSwiftWasmSdk,
|
|
882
925
|
peachsimPackageRoot,
|
|
883
926
|
privateSwiftDistributionRoot,
|
|
927
|
+
registerSwiftHostCompiler,
|
|
884
928
|
setSwiftLinuxLibraryPath,
|
|
885
929
|
sourceSwiftCheckout,
|
|
886
930
|
swiftCacheDir,
|
|
@@ -892,6 +936,8 @@ function swiftCompilerInstall(release) {
|
|
|
892
936
|
swiftEnvironment,
|
|
893
937
|
swiftFileChecksum,
|
|
894
938
|
swiftHostCompilerArchive,
|
|
939
|
+
swiftHostCompilerPin,
|
|
940
|
+
swiftHostCompilerTar,
|
|
895
941
|
swiftInstallSteps,
|
|
896
942
|
swiftLinuxRuntimeLib,
|
|
897
943
|
swiftLinuxRuntimePlan,
|
package/dist-lib/swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1821 | (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;
|