peachsim 0.1.1808 → 0.1.1812
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 +4 -2
- package/cli/app-bundle-resources.ts +15 -2
- package/cli/cloud-box-artifact.ts +115 -0
- package/cli/cloud-client.ts +148 -76
- package/cli/cloud-dispatch.ts +4 -4
- package/cli/cloud-session.ts +60 -22
- package/cli/commands/box.ts +8 -2
- package/cli/commands/compat.ts +7 -4
- package/cli/commands/control.ts +69 -3
- package/cli/commands/coverage.ts +14 -4
- package/cli/commands/daemon.ts +41 -0
- package/cli/commands/no-bridge-hint.ts +9 -0
- package/cli/commands/package.ts +31 -56
- package/cli/commands/platform.ts +71 -60
- package/cli/commands/preview.ts +73 -24
- package/cli/commands/record.ts +10 -2
- package/cli/commands/screenshot.ts +17 -60
- package/cli/commands/setup.ts +3 -1
- package/cli/commands/three-mode.ts +22 -12
- package/cli/commands/upload.ts +2 -1
- package/cli/desktop-companion.ts +6 -1
- package/cli/drivers/desktop.ts +4 -1
- package/cli/main.ts +12 -2
- package/cli/metro-bundle-assets.ts +14 -4
- package/cli/outbound-endpoints.ts +7 -3
- package/cli/output-redaction.ts +38 -0
- package/cli/privacy.ts +2 -2
- package/cli/recording-access.ts +5 -0
- package/cli/remote-project-bundle.ts +83 -0
- package/cli/shell-init.ts +7 -11
- package/cli/telemetry.ts +41 -4
- package/cli/usage-error.ts +3 -0
- package/cli/ws-bridge.ts +42 -6
- 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 +42897 -40755
- package/dist-lib/capture-contract.cjs +7 -8
- package/dist-lib/capture-contract.mjs +7 -8
- 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 +13 -7
- package/dist-lib/dev-bundle-resolution.cjs +10 -4
- package/dist-lib/expo-swift-bundle.cjs +15889 -15553
- package/dist-lib/expo-swift-metadata.cjs +2 -1
- package/dist-lib/expo-swift-metadata.mjs +2 -1
- package/dist-lib/home-paths.cjs +2 -33
- package/dist-lib/host/bridge-host.cjs +20891 -18714
- package/dist-lib/host/fetch-proxy-handler.cjs +10 -11
- 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 +620 -553
- 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 +57 -28
- package/dist-lib/native-app-identity-project.cjs +47 -14
- package/dist-lib/native-app-identity-project.mjs +55 -20
- 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 +27 -26
- package/dist-lib/public-origins-lib.json +104 -81
- 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 +30700 -24410
- package/dist-lib/swift-compile.cjs +336 -222
- package/dist-lib/swift-compile.mjs +378 -263
- package/dist-lib/swift-package.cjs +19 -7
- package/dist-lib/swift-package.mjs +16 -6
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +49 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +19213 -18937
- package/dist-lib/vite.cjs +11 -12
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/animated.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/engine/animation-graph.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/expo-manifest.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/preview/upload-protocol.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +8 -1
- package/dist-types/packages/peach-globals/src/electronBridgeContract.d.ts +2 -1
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCall.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCallCenter.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCarrier.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTSubscriber.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTSubscriberInfo.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSDictionary.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSExtensionItem.h +1 -1
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/AVFoundation+MPNowPlayingInfoLanguageOptionAdditions.h +39 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/AVPlayerItem+MediaPlayerAdditions.h +26 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPContentItem.h +67 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPError.h +33 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaEntity.h +53 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h +346 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItemCollection.h +42 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaLibrary.h +76 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPickerController.h +64 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPlayback.h +47 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPlaylist.h +82 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h +120 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuerySection.h +26 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMoviePlayerController.h +444 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMoviePlayerViewController.h +43 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMusicPlayerApplicationController.h +47 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMusicPlayerController.h +147 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMusicPlayerQueueDescriptor.h +75 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPNowPlayingInfoCenter.h +197 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPNowPlayingInfoLanguageOption.h +107 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPNowPlayingSession.h +89 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPPlayableContentDataSource.h +59 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPPlayableContentDelegate.h +64 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPPlayableContentManager.h +46 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPPlayableContentManagerContext.h +32 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPRemoteCommand.h +143 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPRemoteCommandCenter.h +66 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPRemoteCommandEvent.h +128 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPRemoteControlTypes.h +27 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPVolumeSettings.h +20 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPVolumeView.h +82 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MediaPlayer.apinotes +74 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MediaPlayer.h +40 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MediaPlayerDefines.h +84 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/NSUserActivity+MediaPlayerAdditions.h +20 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityCustomRotor.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBackgroundConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIButtonConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuInteraction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDeferredMenuElement.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPointerStyle.h +5 -5
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISlider.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISplitViewController.h +12 -50
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISplitViewControllerLayoutEnvironment.h +2 -8
- package/sdk/ios/System/Library/Frameworks/UIKitTypes.framework/Headers/UIKitTypes.h +62 -0
- package/sdk/ios/usr/include/dispatch.modulemap +22 -0
- package/sdk/ios/usr/include/module.modulemap +8 -3
- package/sdk/ios/usr/include/net/if.h +24 -0
- package/sdk/ios/usr/include/sys/time.h +1 -1
- package/sdk/ios/usr/lib/swift/Foundation.swiftmodule/arm64-apple-ios-simulator.swiftinterface +265 -0
- package/sdk/ios/usr/lib/swift/ObjectiveC.swiftmodule/arm64-apple-ios-simulator.swiftinterface +2 -0
- package/sdk/ios/wasm/include/fcntl.h +2 -0
- package/sdk/ios/wasm/include/pthread.h +3 -0
- package/sdk/ios/wasm/include/stdlib.h +2 -0
- package/sdk/ios/wasm/include/unistd.h +2 -2
- package/skills/contrast/SKILL.md +2 -2
- package/src/bundle-channel.mjs +9 -72
- package/src/capture-contract.ts +12 -9
- package/src/desktop-host-delivery.ts +16 -2
- package/src/dev-bundle-resolution.ts +12 -3
- package/src/expo-native-workspace.ts +113 -46
- package/src/expo-swift-host.ts +17 -12
- package/src/expo-swift-ready.ts +4 -1
- package/src/expoSwiftContract.ts +1 -0
- package/src/home-paths.ts +4 -48
- package/src/host/bridge-host.ts +1 -0
- package/src/installed-native-libraries.ts +2 -8
- package/src/metro-project-root.ts +2 -1
- package/src/native-bundles.ts +122 -0
- package/src/native-static-libraries.ts +65 -8
- package/src/nitro-adapter.lock.json +272 -272
- package/src/nitro-bundle.ts +2 -2
- package/src/nitro-compile.ts +68 -28
- package/src/nitro-source.ts +24 -6
- package/src/nitro-superset.lock.json +94 -34
- package/src/nitroContract.ts +3 -0
- package/src/podspec-sources.ts +1966 -0
- package/src/storageSnapshotContract.ts +40 -0
- package/src/swift-compile.ts +77 -26
- package/src/swift-design-time.ts +18 -1
- package/src/swift-distribution.lock.json +12 -12
- package/src/swift-distribution.ts +9 -6
- package/src/swift-host.ts +1 -2
- package/src/swift-link-roots.ts +13 -2
- package/src/swift-objc-compile.ts +12 -0
- package/src/swift-objc-standin.ts +321 -114
- package/src/swift-package-manifest.ts +4 -3
- package/src/swift-package.ts +31 -4
- package/src/swift-root-lock.ts +11 -0
- package/src/swift-shared-sdk.ts +10 -9
- package/src/swift-source-pods.ts +2 -2
- package/src/swift-standins.ts +40 -143
- package/src/swift-toolchain.ts +59 -0
- package/src/swift-wasm-prune.ts +53 -21
- package/src/turbo-bundle.ts +4 -5
- package/src/turbo-codegen-intake.ts +111 -108
- package/src/turbo-compile.ts +63 -33
- package/src/turbo-runtime.lock.json +22 -22
- package/src/turbo-source.ts +171 -76
- package/src/wasm-optimize.ts +31 -2
- package/src/xcode-project.ts +65 -15
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1812 | (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;
|
|
@@ -28,6 +28,7 @@ __export(swift_package_exports, {
|
|
|
28
28
|
clangImportNames: () => clangImportNames,
|
|
29
29
|
clangMacroSetting: () => clangMacroSetting,
|
|
30
30
|
clangSettingEntries: () => clangSettingEntries,
|
|
31
|
+
fmtConstantInterpreterFlags: () => fmtConstantInterpreterFlags,
|
|
31
32
|
isSwiftManifestFile: () => isSwiftManifestFile,
|
|
32
33
|
isSwiftNativeTranslationUnit: () => isSwiftNativeTranslationUnit,
|
|
33
34
|
manifestCalls: () => manifestCalls,
|
|
@@ -49,7 +50,8 @@ __export(swift_package_exports, {
|
|
|
49
50
|
swiftResourceBundleForFile: () => swiftResourceBundleForFile,
|
|
50
51
|
swiftResourceBundleInfoPlist: () => swiftResourceBundleInfoPlist,
|
|
51
52
|
swiftResourceBundles: () => swiftResourceBundles,
|
|
52
|
-
swiftTargetModuleName: () => swiftTargetModuleName
|
|
53
|
+
swiftTargetModuleName: () => swiftTargetModuleName,
|
|
54
|
+
withoutGlogModuleMap: () => withoutGlogModuleMap
|
|
53
55
|
});
|
|
54
56
|
module.exports = __toCommonJS(swift_package_exports);
|
|
55
57
|
function swiftManifestSettings(target) {
|
|
@@ -214,10 +216,14 @@ function swiftNativeSupportFiles(files, targets) {
|
|
|
214
216
|
)
|
|
215
217
|
);
|
|
216
218
|
}
|
|
217
|
-
function clangImportNames(text) {
|
|
219
|
+
function clangImportNames(text, isLocalHeader) {
|
|
218
220
|
return [
|
|
219
|
-
...text.matchAll(
|
|
220
|
-
|
|
221
|
+
...text.matchAll(
|
|
222
|
+
/^\s*(?:#\s*(?:import|include)\s*<((\w+)\/[^>]+)>|@import\s+(\w+))/gm
|
|
223
|
+
)
|
|
224
|
+
].flatMap(
|
|
225
|
+
(match) => match[1] && isLocalHeader?.(match[1]) ? [] : [match[2] ?? match[3]]
|
|
226
|
+
);
|
|
221
227
|
}
|
|
222
228
|
function moduleMapTokens(text) {
|
|
223
229
|
return (text.match(/\/\*[\s\S]*?\*\/|\/\/[^\n]*|"[^"]*"|[\w.*]+|[{}\[\]]/g) ?? []).filter((token) => !token.startsWith("/"));
|
|
@@ -244,9 +250,13 @@ function swiftPackageIdentity(url) {
|
|
|
244
250
|
const path = url.endsWith("/") ? url.slice(0, -1) : url;
|
|
245
251
|
return (path.split("/").pop() ?? path).replace(/\.git$/, "").toLowerCase();
|
|
246
252
|
}
|
|
253
|
+
var fmtConstantInterpreterFlags = (flags) => flags.some((flag) => flag.includes("/fmt/")) ? ["-fexperimental-new-constant-interpreter"] : [];
|
|
254
|
+
var withoutGlogModuleMap = (flags) => flags.filter(
|
|
255
|
+
(flag) => !(flag.startsWith("-fmodule-map-file=") && flag.endsWith("/glog.modulemap"))
|
|
256
|
+
);
|
|
247
257
|
function clangSettingEntries(settings, tool) {
|
|
248
258
|
return (settings ?? []).flatMap(
|
|
249
|
-
(setting) => setting.tool !== tool ? [] : "headerSearchPath" in setting ? [`.headerSearchPath(${JSON.stringify(setting.headerSearchPath)})`] : [`.unsafeFlags(${JSON.stringify(setting.flags)})`]
|
|
259
|
+
(setting) => setting.tool !== tool ? [] : "headerSearchPath" in setting ? [`.headerSearchPath(${JSON.stringify(setting.headerSearchPath)})`] : [`.unsafeFlags(${JSON.stringify(withoutGlogModuleMap(setting.flags))})`]
|
|
250
260
|
);
|
|
251
261
|
}
|
|
252
262
|
function clangMacroSetting(macro) {
|
|
@@ -631,6 +641,7 @@ function swiftPackagePartition(manifest, resourcePaths = []) {
|
|
|
631
641
|
clangImportNames,
|
|
632
642
|
clangMacroSetting,
|
|
633
643
|
clangSettingEntries,
|
|
644
|
+
fmtConstantInterpreterFlags,
|
|
634
645
|
isSwiftManifestFile,
|
|
635
646
|
isSwiftNativeTranslationUnit,
|
|
636
647
|
manifestCalls,
|
|
@@ -652,5 +663,6 @@ function swiftPackagePartition(manifest, resourcePaths = []) {
|
|
|
652
663
|
swiftResourceBundleForFile,
|
|
653
664
|
swiftResourceBundleInfoPlist,
|
|
654
665
|
swiftResourceBundles,
|
|
655
|
-
swiftTargetModuleName
|
|
666
|
+
swiftTargetModuleName,
|
|
667
|
+
withoutGlogModuleMap
|
|
656
668
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1812 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/swift-package.ts
|
|
4
4
|
function swiftManifestSettings(target) {
|
|
@@ -163,10 +163,14 @@ function swiftNativeSupportFiles(files, targets) {
|
|
|
163
163
|
)
|
|
164
164
|
);
|
|
165
165
|
}
|
|
166
|
-
function clangImportNames(text) {
|
|
166
|
+
function clangImportNames(text, isLocalHeader) {
|
|
167
167
|
return [
|
|
168
|
-
...text.matchAll(
|
|
169
|
-
|
|
168
|
+
...text.matchAll(
|
|
169
|
+
/^\s*(?:#\s*(?:import|include)\s*<((\w+)\/[^>]+)>|@import\s+(\w+))/gm
|
|
170
|
+
)
|
|
171
|
+
].flatMap(
|
|
172
|
+
(match) => match[1] && isLocalHeader?.(match[1]) ? [] : [match[2] ?? match[3]]
|
|
173
|
+
);
|
|
170
174
|
}
|
|
171
175
|
function moduleMapTokens(text) {
|
|
172
176
|
return (text.match(/\/\*[\s\S]*?\*\/|\/\/[^\n]*|"[^"]*"|[\w.*]+|[{}\[\]]/g) ?? []).filter((token) => !token.startsWith("/"));
|
|
@@ -193,9 +197,13 @@ function swiftPackageIdentity(url) {
|
|
|
193
197
|
const path = url.endsWith("/") ? url.slice(0, -1) : url;
|
|
194
198
|
return (path.split("/").pop() ?? path).replace(/\.git$/, "").toLowerCase();
|
|
195
199
|
}
|
|
200
|
+
var fmtConstantInterpreterFlags = (flags) => flags.some((flag) => flag.includes("/fmt/")) ? ["-fexperimental-new-constant-interpreter"] : [];
|
|
201
|
+
var withoutGlogModuleMap = (flags) => flags.filter(
|
|
202
|
+
(flag) => !(flag.startsWith("-fmodule-map-file=") && flag.endsWith("/glog.modulemap"))
|
|
203
|
+
);
|
|
196
204
|
function clangSettingEntries(settings, tool) {
|
|
197
205
|
return (settings ?? []).flatMap(
|
|
198
|
-
(setting) => setting.tool !== tool ? [] : "headerSearchPath" in setting ? [`.headerSearchPath(${JSON.stringify(setting.headerSearchPath)})`] : [`.unsafeFlags(${JSON.stringify(setting.flags)})`]
|
|
206
|
+
(setting) => setting.tool !== tool ? [] : "headerSearchPath" in setting ? [`.headerSearchPath(${JSON.stringify(setting.headerSearchPath)})`] : [`.unsafeFlags(${JSON.stringify(withoutGlogModuleMap(setting.flags))})`]
|
|
199
207
|
);
|
|
200
208
|
}
|
|
201
209
|
function clangMacroSetting(macro) {
|
|
@@ -579,6 +587,7 @@ export {
|
|
|
579
587
|
clangImportNames,
|
|
580
588
|
clangMacroSetting,
|
|
581
589
|
clangSettingEntries,
|
|
590
|
+
fmtConstantInterpreterFlags,
|
|
582
591
|
isSwiftManifestFile,
|
|
583
592
|
isSwiftNativeTranslationUnit,
|
|
584
593
|
manifestCalls,
|
|
@@ -600,5 +609,6 @@ export {
|
|
|
600
609
|
swiftResourceBundleForFile,
|
|
601
610
|
swiftResourceBundleInfoPlist,
|
|
602
611
|
swiftResourceBundles,
|
|
603
|
-
swiftTargetModuleName
|
|
612
|
+
swiftTargetModuleName,
|
|
613
|
+
withoutGlogModuleMap
|
|
604
614
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1812 | (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.1812 | (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;
|
|
@@ -32,6 +32,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
32
32
|
// src/swift-toolchain.ts
|
|
33
33
|
var swift_toolchain_exports = {};
|
|
34
34
|
__export(swift_toolchain_exports, {
|
|
35
|
+
BUILDERS_ROOT_ENV: () => BUILDERS_ROOT_ENV,
|
|
35
36
|
SWIFT_AUTOLINK_LINKER: () => SWIFT_AUTOLINK_LINKER,
|
|
36
37
|
SWIFT_HOST_COMPILER_ID: () => SWIFT_HOST_COMPILER_ID,
|
|
37
38
|
SWIFT_HOST_COMPILER_RELEASE: () => SWIFT_HOST_COMPILER_RELEASE,
|
|
@@ -43,6 +44,7 @@ __export(swift_toolchain_exports, {
|
|
|
43
44
|
privateSwiftDistributionRoot: () => privateSwiftDistributionRoot,
|
|
44
45
|
setSwiftLinuxLibraryPath: () => setSwiftLinuxLibraryPath,
|
|
45
46
|
sourceSwiftCheckout: () => sourceSwiftCheckout,
|
|
47
|
+
swiftCacheDir: () => swiftCacheDir,
|
|
46
48
|
swiftCompiler: () => swiftCompiler,
|
|
47
49
|
swiftCompilerAdmissible: () => swiftCompilerAdmissible,
|
|
48
50
|
swiftCompilerAsync: () => swiftCompilerAsync,
|
|
@@ -54,6 +56,8 @@ __export(swift_toolchain_exports, {
|
|
|
54
56
|
swiftInstallSteps: () => swiftInstallSteps,
|
|
55
57
|
swiftLinuxRuntimeLib: () => swiftLinuxRuntimeLib,
|
|
56
58
|
swiftLinuxRuntimePlan: () => swiftLinuxRuntimePlan,
|
|
59
|
+
swiftPackageCacheOptions: () => swiftPackageCacheOptions,
|
|
60
|
+
swiftProjectBuildsDir: () => swiftProjectBuildsDir,
|
|
57
61
|
swiftSdkInstallStep: () => swiftSdkInstallStep,
|
|
58
62
|
swiftSdkOptions: () => swiftSdkOptions,
|
|
59
63
|
swiftSourceSdk: () => swiftSourceSdk,
|
|
@@ -233,6 +237,23 @@ var compilerArchives = {
|
|
|
233
237
|
}
|
|
234
238
|
}
|
|
235
239
|
},
|
|
240
|
+
"swift-6.4.0-RELEASE-custom-a560ff35bf882b5c": {
|
|
241
|
+
identity: "a560ff35bf882b5c",
|
|
242
|
+
hosts: {
|
|
243
|
+
"darwin-arm64": {
|
|
244
|
+
checksum: "ec20a41851ac558fe663d78def6b93d0d47c5a0cb69688ee270fd85de637a522",
|
|
245
|
+
manifest: "253e891527d2213f54eace768b902de89de5e9495a3c5f4018de1985516bd553"
|
|
246
|
+
},
|
|
247
|
+
"linux-x64": {
|
|
248
|
+
checksum: "f0126a2e63d275895036d02d75a901070da0343dbf03bf17342e10cb6f893dee",
|
|
249
|
+
manifest: "6f951cc4071dd0d6054d85711a7c5fe272273658847831b477a8b24be7254ca0"
|
|
250
|
+
},
|
|
251
|
+
"linux-arm64": {
|
|
252
|
+
checksum: "315fa766559a6e69bfd10dcddf40e04c91155f0db3047d210d74ac87652fb7e6",
|
|
253
|
+
manifest: "b6f62fca2ec37593e274ee5bac474f21ffc5db14cd82f492ccbc774f8e9b75d8"
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
},
|
|
236
257
|
[SWIFT_HOST_COMPILER_RELEASE]: {
|
|
237
258
|
identity: SWIFT_HOST_COMPILER_ID,
|
|
238
259
|
hosts: {
|
|
@@ -406,6 +427,29 @@ function peachHome() {
|
|
|
406
427
|
const override = process.env.PEACH_HOME;
|
|
407
428
|
return override ? import_node_path.default.resolve(override) : import_node_path.default.join(import_node_os.default.homedir(), ".peach");
|
|
408
429
|
}
|
|
430
|
+
var BUILDERS_ROOT_ENV = "CONTRAST_BUILDERS_ROOT";
|
|
431
|
+
function buildersRootEnv() {
|
|
432
|
+
const root = process.env[BUILDERS_ROOT_ENV]?.trim();
|
|
433
|
+
return root ? root : null;
|
|
434
|
+
}
|
|
435
|
+
function swiftCacheDir() {
|
|
436
|
+
const root = buildersRootEnv();
|
|
437
|
+
return root ? import_node_path.default.join(root, "peach-cache") : import_node_path.default.join(peachHome(), "cache");
|
|
438
|
+
}
|
|
439
|
+
function swiftProjectBuildsDir(checkoutRoot) {
|
|
440
|
+
const root = buildersRootEnv();
|
|
441
|
+
return root ? import_node_path.default.join(swiftCacheDir(), "swift-project-builds") : import_node_path.default.join(checkoutRoot, "scripts", "tmp", "swift-projects");
|
|
442
|
+
}
|
|
443
|
+
function swiftPackageCacheOptions() {
|
|
444
|
+
const root = import_node_path.default.join(swiftCacheDir(), "swiftpm");
|
|
445
|
+
return [
|
|
446
|
+
...["cache", "config", "security"].flatMap((name) => [
|
|
447
|
+
`--${name}-path`,
|
|
448
|
+
import_node_path.default.join(root, name)
|
|
449
|
+
]),
|
|
450
|
+
"--disable-keychain"
|
|
451
|
+
];
|
|
452
|
+
}
|
|
409
453
|
var scratch;
|
|
410
454
|
var linuxLibraryPath;
|
|
411
455
|
var linuxHostSdkRoot;
|
|
@@ -825,6 +869,7 @@ function swiftCompilerInstall(release) {
|
|
|
825
869
|
}
|
|
826
870
|
// Annotate the CommonJS export names for ESM import in node:
|
|
827
871
|
0 && (module.exports = {
|
|
872
|
+
BUILDERS_ROOT_ENV,
|
|
828
873
|
SWIFT_AUTOLINK_LINKER,
|
|
829
874
|
SWIFT_HOST_COMPILER_ID,
|
|
830
875
|
SWIFT_HOST_COMPILER_RELEASE,
|
|
@@ -836,6 +881,7 @@ function swiftCompilerInstall(release) {
|
|
|
836
881
|
privateSwiftDistributionRoot,
|
|
837
882
|
setSwiftLinuxLibraryPath,
|
|
838
883
|
sourceSwiftCheckout,
|
|
884
|
+
swiftCacheDir,
|
|
839
885
|
swiftCompiler,
|
|
840
886
|
swiftCompilerAdmissible,
|
|
841
887
|
swiftCompilerAsync,
|
|
@@ -847,6 +893,8 @@ function swiftCompilerInstall(release) {
|
|
|
847
893
|
swiftInstallSteps,
|
|
848
894
|
swiftLinuxRuntimeLib,
|
|
849
895
|
swiftLinuxRuntimePlan,
|
|
896
|
+
swiftPackageCacheOptions,
|
|
897
|
+
swiftProjectBuildsDir,
|
|
850
898
|
swiftSdkInstallStep,
|
|
851
899
|
swiftSdkOptions,
|
|
852
900
|
swiftSourceSdk,
|
package/dist-lib/swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1812 | (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;
|