peachsim 0.1.1881 → 0.1.1886
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/control.ts +11 -10
- package/cli/commands/reset.ts +1 -1
- package/cli/outbound-endpoints.ts +1 -1
- package/detox/index.ts +62 -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 +8914 -4264
- 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 +35 -2
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +8494 -3955
- package/dist-lib/expo-swift-metadata.cjs +5 -1
- package/dist-lib/expo-swift-metadata.mjs +5 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +9679 -5057
- package/dist-lib/host/fetch-proxy-handler.cjs +93 -13
- package/dist-lib/host/fetch-proxy-overrides.cjs +10 -2
- package/dist-lib/host/fetch-proxy-overrides.mjs +8 -2
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +525 -120
- 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 +523 -118
- package/dist-lib/native-app-identity-project.cjs +395 -72
- package/dist-lib/native-app-identity-project.mjs +720 -375
- package/dist-lib/native-app-identity.cjs +37 -1
- package/dist-lib/native-app-identity.mjs +36 -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 +58 -28
- package/dist-lib/public-origins-lib.json +233 -92
- 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 +30711 -25956
- package/dist-lib/swift-compile.cjs +6782 -2533
- package/dist-lib/swift-compile.mjs +6112 -1864
- package/dist-lib/swift-package.cjs +20 -3
- package/dist-lib/swift-package.mjs +20 -3
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +19 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +8640 -4109
- package/dist-lib/vite.cjs +93 -13
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/canvaskit-api.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/fontDataContract.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +11 -1
- package/dist-types/packages/peach-engine/src/render-worker/shell-tree-wire.d.ts +2 -1
- package/dist-types/packages/peach-globals/src/nodeContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/testBridgeContract.d.ts +10 -1
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -0
- package/dist-types/packages/peach-kit/src/ui/popover-placement.d.ts +1 -1
- package/dist-types/packages/sootsim-swift/src/securityHostContract.d.ts +10 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFHost.h +555 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h +1 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes +6 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURLProtocol.h +0 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarButtonItemBadge.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarMinimization.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScrollView.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchTab.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITab.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabAccessory.h +2 -2
- package/sdk/ios/usr/include/os/activity.h +534 -0
- package/sdk/ios/usr/include/os.modulemap +15 -0
- package/sdk/ios/wasm/include/fcntl.h +16 -0
- package/sdk/ios/wasm/include/string.h +5 -0
- package/sdk/native-hashes.json +1 -1
- package/src/dns-over-https.ts +61 -9
- package/src/expo-swift-host.ts +11 -3
- package/src/host/fetch-proxy-handler.ts +51 -2
- package/src/host/fetch-proxy-overrides.ts +4 -0
- package/src/host/hostname-resolver.ts +9 -5
- package/src/native-app-identity-project.ts +13 -2
- package/src/native-app-identity.ts +47 -0
- package/src/nitro-adapter.lock.json +260 -260
- package/src/nitro-superset.lock.json +4 -4
- package/src/storageSnapshotContract.ts +20 -1
- package/src/swift-compile.ts +399 -72
- package/src/swift-compiler-digest.ts +15 -0
- package/src/swift-coverage/xcode-packages.ts +3 -2
- package/src/swift-distribution.lock.json +12 -12
- package/src/swift-guest-archive.ts +153 -0
- package/src/swift-guest-compile.ts +449 -0
- package/src/swift-guest-image-ledger.ts +656 -0
- package/src/swift-guest-link-plan.ts +52 -0
- package/src/swift-guest-link.ts +1414 -0
- package/src/swift-guest-linked-spans.ts +338 -0
- package/src/swift-guest-manifest.ts +141 -0
- package/src/swift-guest-projection-storage.ts +310 -0
- package/src/swift-guest-projection.ts +252 -0
- package/src/swift-guest-runtime-plan.ts +834 -0
- package/src/swift-guest-source-inputs.ts +427 -0
- package/src/swift-guest-source-plan.ts +279 -0
- package/src/swift-host.ts +125 -17
- package/src/swift-link-roots.ts +27 -50
- package/src/swift-package-manifest.ts +34 -18
- package/src/swift-package.ts +32 -2
- package/src/swift-packages.ts +138 -17
- package/src/swift-runtime-products.ts +73 -0
- package/src/swift-shared-sdk.ts +1 -1
- package/src/swift-submit.ts +13 -3
- package/src/swift-toolchain.ts +18 -0
- package/src/swift-wasm-prune.ts +313 -14
- package/src/swiftContract.ts +83 -0
- package/src/swiftRuntimeProductContract.ts +85 -45
- package/src/turbo-runtime.lock.json +23 -23
- package/src/wasm-optimize.ts +16 -4
- package/src/xcode-project.ts +142 -14
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1886 | (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;
|
|
@@ -461,6 +461,20 @@ function swiftManifestTargets(manifest, resourcePaths = []) {
|
|
|
461
461
|
(match) => match[1]
|
|
462
462
|
);
|
|
463
463
|
const targetArguments = splitManifestArguments(call.slice(0, -1));
|
|
464
|
+
const sourceArgument = targetArguments.find(
|
|
465
|
+
(argument) => /^sources\s*:/.test(argument)
|
|
466
|
+
);
|
|
467
|
+
const sourceList = sourceArgument?.replace(/^sources\s*:\s*/, "").trim();
|
|
468
|
+
if (sourceList && sourceList !== "nil" && !(sourceList.startsWith("[") && sourceList.endsWith("]")))
|
|
469
|
+
throw new Error(`Unsupported sources expression in target ${name}: ${sourceList}`);
|
|
470
|
+
const sources = sourceList?.startsWith("[") && sourceList.endsWith("]") ? splitManifestArguments(sourceList.slice(1, -1)).map((source) => {
|
|
471
|
+
const literal = /^"((?:[^"\\]|\\.)*)"$/.exec(source);
|
|
472
|
+
if (!literal)
|
|
473
|
+
throw new Error(
|
|
474
|
+
`Unsupported source expression in target ${name}: ${source}`
|
|
475
|
+
);
|
|
476
|
+
return swiftStringValue(literal[1], `a source of target ${name}`).replace(/^\.\//, "").replace(/\/+$/, "");
|
|
477
|
+
}) : void 0;
|
|
464
478
|
const dependencyArgument = targetArguments.find(
|
|
465
479
|
(argument) => /^dependencies\s*:/.test(argument)
|
|
466
480
|
);
|
|
@@ -499,7 +513,8 @@ function swiftManifestTargets(manifest, resourcePaths = []) {
|
|
|
499
513
|
...clangSettings.length === 0 ? {} : { clangSettings },
|
|
500
514
|
...linkedLibraries.length === 0 ? {} : { linkedLibraries },
|
|
501
515
|
resources,
|
|
502
|
-
...
|
|
516
|
+
...dependencyList?.startsWith("[") && dependencyList.endsWith("]") ? { dependencies } : {},
|
|
517
|
+
...sources === void 0 ? {} : { sources },
|
|
503
518
|
...excluded.length === 0 ? {} : { exclude: excluded }
|
|
504
519
|
});
|
|
505
520
|
}
|
|
@@ -549,6 +564,7 @@ function swiftObjCResourceAccessor(bundleName) {
|
|
|
549
564
|
const finder = `${accessorName}_SWIFTPM_MODULE_BUNDLER_FINDER`;
|
|
550
565
|
return {
|
|
551
566
|
header: [
|
|
567
|
+
"#ifdef __OBJC__",
|
|
552
568
|
"#import <Foundation/Foundation.h>",
|
|
553
569
|
"",
|
|
554
570
|
"__BEGIN_DECLS",
|
|
@@ -557,7 +573,8 @@ function swiftObjCResourceAccessor(bundleName) {
|
|
|
557
573
|
"",
|
|
558
574
|
`#define SWIFTPM_MODULE_BUNDLE ${symbol}()`,
|
|
559
575
|
"",
|
|
560
|
-
"__END_DECLS"
|
|
576
|
+
"__END_DECLS",
|
|
577
|
+
"#endif"
|
|
561
578
|
].join("\n"),
|
|
562
579
|
body: [
|
|
563
580
|
"#import <Foundation/Foundation.h>",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1886 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/swift-package.ts
|
|
4
4
|
function swiftManifestSettings(target) {
|
|
@@ -409,6 +409,20 @@ function swiftManifestTargets(manifest, resourcePaths = []) {
|
|
|
409
409
|
(match) => match[1]
|
|
410
410
|
);
|
|
411
411
|
const targetArguments = splitManifestArguments(call.slice(0, -1));
|
|
412
|
+
const sourceArgument = targetArguments.find(
|
|
413
|
+
(argument) => /^sources\s*:/.test(argument)
|
|
414
|
+
);
|
|
415
|
+
const sourceList = sourceArgument?.replace(/^sources\s*:\s*/, "").trim();
|
|
416
|
+
if (sourceList && sourceList !== "nil" && !(sourceList.startsWith("[") && sourceList.endsWith("]")))
|
|
417
|
+
throw new Error(`Unsupported sources expression in target ${name}: ${sourceList}`);
|
|
418
|
+
const sources = sourceList?.startsWith("[") && sourceList.endsWith("]") ? splitManifestArguments(sourceList.slice(1, -1)).map((source) => {
|
|
419
|
+
const literal = /^"((?:[^"\\]|\\.)*)"$/.exec(source);
|
|
420
|
+
if (!literal)
|
|
421
|
+
throw new Error(
|
|
422
|
+
`Unsupported source expression in target ${name}: ${source}`
|
|
423
|
+
);
|
|
424
|
+
return swiftStringValue(literal[1], `a source of target ${name}`).replace(/^\.\//, "").replace(/\/+$/, "");
|
|
425
|
+
}) : void 0;
|
|
412
426
|
const dependencyArgument = targetArguments.find(
|
|
413
427
|
(argument) => /^dependencies\s*:/.test(argument)
|
|
414
428
|
);
|
|
@@ -447,7 +461,8 @@ function swiftManifestTargets(manifest, resourcePaths = []) {
|
|
|
447
461
|
...clangSettings.length === 0 ? {} : { clangSettings },
|
|
448
462
|
...linkedLibraries.length === 0 ? {} : { linkedLibraries },
|
|
449
463
|
resources,
|
|
450
|
-
...
|
|
464
|
+
...dependencyList?.startsWith("[") && dependencyList.endsWith("]") ? { dependencies } : {},
|
|
465
|
+
...sources === void 0 ? {} : { sources },
|
|
451
466
|
...excluded.length === 0 ? {} : { exclude: excluded }
|
|
452
467
|
});
|
|
453
468
|
}
|
|
@@ -497,6 +512,7 @@ function swiftObjCResourceAccessor(bundleName) {
|
|
|
497
512
|
const finder = `${accessorName}_SWIFTPM_MODULE_BUNDLER_FINDER`;
|
|
498
513
|
return {
|
|
499
514
|
header: [
|
|
515
|
+
"#ifdef __OBJC__",
|
|
500
516
|
"#import <Foundation/Foundation.h>",
|
|
501
517
|
"",
|
|
502
518
|
"__BEGIN_DECLS",
|
|
@@ -505,7 +521,8 @@ function swiftObjCResourceAccessor(bundleName) {
|
|
|
505
521
|
"",
|
|
506
522
|
`#define SWIFTPM_MODULE_BUNDLE ${symbol}()`,
|
|
507
523
|
"",
|
|
508
|
-
"__END_DECLS"
|
|
524
|
+
"__END_DECLS",
|
|
525
|
+
"#endif"
|
|
509
526
|
].join("\n"),
|
|
510
527
|
body: [
|
|
511
528
|
"#import <Foundation/Foundation.h>",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1886 | (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;
|
|
@@ -86,7 +86,7 @@ var MAX_SWIFT_COMPILE_METAL_TOTAL_BYTES = 8 * 1024 * 1024;
|
|
|
86
86
|
var MAX_SWIFT_COMPILE_IMAGES = 256;
|
|
87
87
|
var MAX_SWIFT_COMPILE_IMAGE_BYTES = 4 * 1024 * 1024;
|
|
88
88
|
var MAX_SWIFT_COMPILE_IMAGE_TOTAL_BYTES = 16 * 1024 * 1024;
|
|
89
|
-
var SWIFT_HOST_ABI =
|
|
89
|
+
var SWIFT_HOST_ABI = 68;
|
|
90
90
|
var POLL_INTERVAL_MS = 1500;
|
|
91
91
|
function swiftNativeEntry(native, file) {
|
|
92
92
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1886 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/is-record.ts
|
|
4
4
|
function isRecord(value) {
|
|
@@ -40,7 +40,7 @@ var MAX_SWIFT_COMPILE_METAL_TOTAL_BYTES = 8 * 1024 * 1024;
|
|
|
40
40
|
var MAX_SWIFT_COMPILE_IMAGES = 256;
|
|
41
41
|
var MAX_SWIFT_COMPILE_IMAGE_BYTES = 4 * 1024 * 1024;
|
|
42
42
|
var MAX_SWIFT_COMPILE_IMAGE_TOTAL_BYTES = 16 * 1024 * 1024;
|
|
43
|
-
var SWIFT_HOST_ABI =
|
|
43
|
+
var SWIFT_HOST_ABI = 68;
|
|
44
44
|
var POLL_INTERVAL_MS = 1500;
|
|
45
45
|
function swiftNativeEntry(native, file) {
|
|
46
46
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1886 | (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;
|
|
@@ -107,6 +107,24 @@ function swiftSdkOptions() {
|
|
|
107
107
|
var SWIFT_HOST_COMPILER_RELEASE = "swift-6.4.0-RELEASE-custom-81b2c791c27276bf";
|
|
108
108
|
var SWIFT_HOST_COMPILER_ID = "81b2c791c27276bf";
|
|
109
109
|
var compilerArchives = {
|
|
110
|
+
"swift-6.4.0-RELEASE-custom-45bb46301c86fe73": {
|
|
111
|
+
identity: "45bb46301c86fe73",
|
|
112
|
+
archive: "tar.gz",
|
|
113
|
+
hosts: {
|
|
114
|
+
"darwin-arm64": {
|
|
115
|
+
checksum: "102dfbbb7b451be0685763b7a427284b75a8078874543f091b1c4b3db86e6565",
|
|
116
|
+
manifest: "fb6c4d75ef6f4b3c094ae5a4d5d1e6bdfd85431f3fe25d514f3e7a0b4add60ef"
|
|
117
|
+
},
|
|
118
|
+
"linux-x64": {
|
|
119
|
+
checksum: "d3c040e042e12ff787b64bfde1d85238254365036ce093f3b20ff86e8ff996f0",
|
|
120
|
+
manifest: "7c7144be591692e563396fe3c987c5aa56fbaea4faacaad62283c0c6e5c04ae2"
|
|
121
|
+
},
|
|
122
|
+
"linux-arm64": {
|
|
123
|
+
checksum: "604e6fc5fc0f5a93cee3ca6dfa9616244a2a49ef517caa3155a12ae4a0ecf72b",
|
|
124
|
+
manifest: "075fd53d03ecf099954f1d023bb4bb67a5c5ee946537466d6c105022bdf8ecde"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
110
128
|
"swift-6.4.0-RELEASE-custom-0b2d0a9011c88e66": {
|
|
111
129
|
identity: "0b2d0a9011c88e66",
|
|
112
130
|
archive: "tar.gz",
|
package/dist-lib/swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1886 | (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;
|