peachsim 0.1.2428 → 0.1.2429
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +173 -66
- 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 +163 -56
- 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 +181 -74
- package/dist-lib/host/fetch-proxy-handler.cjs +6 -6
- 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 +9 -6
- 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 +9 -6
- package/dist-lib/native-app-identity-project.cjs +6 -3
- package/dist-lib/native-app-identity-project.mjs +6 -3
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +24 -24
- package/dist-lib/public-origins-lib.json +53 -53
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +194 -85
- package/dist-lib/swift-compile.cjs +35 -22
- package/dist-lib/swift-compile.mjs +35 -22
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +159 -52
- package/dist-lib/vite.cjs +6 -6
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +7 -0
- package/dist-types/packages/peach-globals/src/globalsContract.d.ts +2 -0
- package/dist-types/packages/peach-globals/src/index.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/locationBridgeContract.d.ts +20 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/CoreData.h +3 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSEntityMigrationPolicy.h +17 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObject.h +2 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectContext.h +6 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentContainer.h +15 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreDescription.h +10 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManagerDelegate.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreServices.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSBase.h +28 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSImportExtension.h +21 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSIndexExtensionRequestHandler.h +17 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSPerson.h +28 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchQuery.h +77 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableIndex.h +154 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableIndexDescription.h +19 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItem.h +86 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet.h +95 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Categories.h +19 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Documents.h +71 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Events.h +34 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_General.h +138 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Images.h +116 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Media.h +235 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Messaging.h +99 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Places.h +96 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSuggestion.h +37 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSUserQuery.h +73 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CoreSpotlight.apinotes +26 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CoreSpotlight.h +29 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScrollView.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationSettings.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNUserNotificationCenter.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKBackForwardList.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKBackForwardListItem.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContentRuleList.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContentRuleListStore.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContentWorld.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContentWorldConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContextMenuElementInfo.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKDOMNodeSnapshot.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKDownload.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFindConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFindResult.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFormInfo.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFrameInfo.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKHTTPCookieStore.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKJSHandle.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKNavigation.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKNavigationAction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKNavigationResponse.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKOpenPanelParameters.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPDFConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPreferences.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPreviewElementInfo.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKProcessPool.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKScriptMessage.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKSecurityOrigin.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKSnapshotConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKUserContentController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKUserScript.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtension.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionContext.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionControllerConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionMatchPattern.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebView.h +2 -2
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebViewConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebpagePreferences.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebsiteDataRecord.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebsiteDataStore.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWindowFeatures.h +1 -1
- package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Headers/CLLocationEssentials.h +3 -3
- package/src/core-data-model.ts +112 -5
- package/src/swift-compile.ts +34 -11
- package/src/swift-objc-import.ts +19 -13
- package/src/xcode-project.ts +5 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2429 | (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;
|
|
@@ -1216,9 +1216,9 @@ function overlapsBounds(left, right) {
|
|
|
1216
1216
|
}
|
|
1217
1217
|
function resolveCompatVersionRange(availableRegistryRanges, declaredVersion) {
|
|
1218
1218
|
const declaredGroups = parseRange(declaredVersion);
|
|
1219
|
-
const registryGroups = availableRegistryRanges.map((
|
|
1220
|
-
range:
|
|
1221
|
-
bounds: parseRange(
|
|
1219
|
+
const registryGroups = availableRegistryRanges.map((range3) => ({
|
|
1220
|
+
range: range3,
|
|
1221
|
+
bounds: parseRange(range3)
|
|
1222
1222
|
}));
|
|
1223
1223
|
if (!declaredGroups || registryGroups.some((candidate) => !candidate.bounds)) {
|
|
1224
1224
|
return {
|
|
@@ -8057,7 +8057,7 @@ var init_resolve_flow_scalar = __esm({
|
|
|
8057
8057
|
|
|
8058
8058
|
// ../../node_modules/yaml/browser/dist/compose/compose-scalar.js
|
|
8059
8059
|
function composeScalar(ctx, token, tagToken, onError) {
|
|
8060
|
-
const { value, type, comment, range:
|
|
8060
|
+
const { value, type, comment, range: range3 } = token.type === "block-scalar" ? resolveBlockScalar(ctx, token, onError) : resolveFlowScalar(token, ctx.options.strict, onError);
|
|
8061
8061
|
const tagName = tagToken ? ctx.directives.tagName(tagToken.source, (msg) => onError(tagToken, "TAG_RESOLVE_FAILED", msg)) : null;
|
|
8062
8062
|
let tag;
|
|
8063
8063
|
if (ctx.options.stringKeys && ctx.atKey) {
|
|
@@ -8077,7 +8077,7 @@ function composeScalar(ctx, token, tagToken, onError) {
|
|
|
8077
8077
|
onError(tagToken ?? token, "TAG_RESOLVE_FAILED", msg);
|
|
8078
8078
|
scalar = new Scalar(value);
|
|
8079
8079
|
}
|
|
8080
|
-
scalar.range =
|
|
8080
|
+
scalar.range = range3;
|
|
8081
8081
|
scalar.source = value;
|
|
8082
8082
|
if (type)
|
|
8083
8083
|
scalar.type = type;
|
|
@@ -11426,21 +11426,21 @@ function toS(interp, value) {
|
|
|
11426
11426
|
if (value instanceof RRegexp) return `(?-mix:${value.source})`;
|
|
11427
11427
|
return toInspect(interp, value);
|
|
11428
11428
|
}
|
|
11429
|
-
function rangeToArray(interp,
|
|
11430
|
-
if (typeof
|
|
11429
|
+
function rangeToArray(interp, range3) {
|
|
11430
|
+
if (typeof range3.first === "number" && typeof range3.last === "number") {
|
|
11431
11431
|
const out = [];
|
|
11432
|
-
const end =
|
|
11433
|
-
for (let i =
|
|
11432
|
+
const end = range3.exclusive ? range3.last : range3.last + 1;
|
|
11433
|
+
for (let i = range3.first; i < end; i++) out.push(i);
|
|
11434
11434
|
return out;
|
|
11435
11435
|
}
|
|
11436
|
-
if (
|
|
11436
|
+
if (range3.first instanceof RString && range3.last instanceof RString && range3.first.s.length === 1 && range3.last.s.length === 1) {
|
|
11437
11437
|
const out = [];
|
|
11438
|
-
const end =
|
|
11439
|
-
for (let c =
|
|
11438
|
+
const end = range3.last.s.charCodeAt(0) + (range3.exclusive ? 0 : 1);
|
|
11439
|
+
for (let c = range3.first.s.charCodeAt(0); c < end; c++)
|
|
11440
11440
|
out.push(str2(String.fromCharCode(c)));
|
|
11441
11441
|
return out;
|
|
11442
11442
|
}
|
|
11443
|
-
throw new UnsupportedRuby(`iterating ${toInspect(interp,
|
|
11443
|
+
throw new UnsupportedRuby(`iterating ${toInspect(interp, range3)}`);
|
|
11444
11444
|
}
|
|
11445
11445
|
function equal(interp, a, b) {
|
|
11446
11446
|
if (a === b) return true;
|
|
@@ -24683,7 +24683,7 @@ var swiftCoverageProvenance;
|
|
|
24683
24683
|
var init_provenance = __esm({
|
|
24684
24684
|
"src/swift-coverage/provenance.ts"() {
|
|
24685
24685
|
"use strict";
|
|
24686
|
-
swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"a19fe4c5e2efe18bbc3ece544ff2c8be660170d63274cccb0ab58e53083050e4","swift-package.ts":"851417572ca9aff699ad368bdc3ff05309b0256e483d40812b9c0beb869d0a5b","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"a0ef7c20a2bc2b7dbd98b9006a8b000b9b4f9708f1bcf0adad8aaf79ef253022","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"4a775ba92c7b23ce71dd6bb08c188c4bccd6e1ed500cc9fc7850030b945fc8d4","xcode-project.ts":"
|
|
24686
|
+
swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"a19fe4c5e2efe18bbc3ece544ff2c8be660170d63274cccb0ab58e53083050e4","swift-package.ts":"851417572ca9aff699ad368bdc3ff05309b0256e483d40812b9c0beb869d0a5b","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"a0ef7c20a2bc2b7dbd98b9006a8b000b9b4f9708f1bcf0adad8aaf79ef253022","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"4a775ba92c7b23ce71dd6bb08c188c4bccd6e1ed500cc9fc7850030b945fc8d4","xcode-project.ts":"fea47e1e076b2cca23c8ac9037eced1d094e69d206df09c393979a5bd1d07a8a","xcode-target-members.ts":"2f25aaf5a3aa34395983c75935491c06bd68554c47ff1cb06b49c79499c03db0","xcode-json-project.ts":"41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6","openstep-plist.ts":"74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3"}') : swiftCoverageSourceDigests((0, import_node_path.join)(__sootsim_import_meta_dirname, ".."));
|
|
24687
24687
|
}
|
|
24688
24688
|
});
|
|
24689
24689
|
|
|
@@ -32190,11 +32190,11 @@ function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTar
|
|
|
32190
32190
|
"$s10Foundation6BundleC22preferredLocalizations4fromSaySSGAF_tFZTf4nd_n"
|
|
32191
32191
|
]);
|
|
32192
32192
|
const keepObjCClassesNamedInSegment = (obj, segIdx) => {
|
|
32193
|
-
const
|
|
32194
|
-
if (!
|
|
32193
|
+
const range3 = obj.segPayloadRanges[segIdx];
|
|
32194
|
+
if (!range3) return;
|
|
32195
32195
|
let bytes = objectBytes.get(obj);
|
|
32196
32196
|
if (!bytes) objectBytes.set(obj, bytes = import_node_fs35.default.readFileSync(obj.file));
|
|
32197
|
-
const text7 = bytes.toString("latin1",
|
|
32197
|
+
const text7 = bytes.toString("latin1", range3[0], range3[1]);
|
|
32198
32198
|
for (const match of text7.matchAll(/So(\d+)/g)) {
|
|
32199
32199
|
const start = match.index + 2 + match[1].length;
|
|
32200
32200
|
const length = Number(match[1]);
|
|
@@ -33925,10 +33925,10 @@ function reserveGuestImageProjection(images) {
|
|
|
33925
33925
|
slots.push(slot);
|
|
33926
33926
|
return { address: slot.address, length: slot.length };
|
|
33927
33927
|
};
|
|
33928
|
-
const
|
|
33928
|
+
const range3 = reserve(null);
|
|
33929
33929
|
return {
|
|
33930
33930
|
...region,
|
|
33931
|
-
...
|
|
33931
|
+
...range3,
|
|
33932
33932
|
sections: region.sections.map((section, index) => ({
|
|
33933
33933
|
...section,
|
|
33934
33934
|
...reserve(index)
|
|
@@ -34137,11 +34137,11 @@ function finalizeGuestProjectionStorage(options) {
|
|
|
34137
34137
|
const markers = new Map(
|
|
34138
34138
|
options.reserved.countMarkers.map((marker, index) => [marker, index])
|
|
34139
34139
|
);
|
|
34140
|
-
for (const
|
|
34140
|
+
for (const range3 of ranges)
|
|
34141
34141
|
for (const segment3 of data) {
|
|
34142
|
-
const first = Math.max(
|
|
34142
|
+
const first = Math.max(range3.address, segment3.address);
|
|
34143
34143
|
const last = Math.min(
|
|
34144
|
-
|
|
34144
|
+
range3.address + range3.length,
|
|
34145
34145
|
segment3.address + segment3.length
|
|
34146
34146
|
);
|
|
34147
34147
|
const start = segment3.offset + first - segment3.address;
|
|
@@ -37873,19 +37873,20 @@ function compactSwiftClangOverlays(flags, generated) {
|
|
|
37873
37873
|
}
|
|
37874
37874
|
return duplicates.size === 0 ? flags : flags.filter((_, index) => !duplicates.has(index));
|
|
37875
37875
|
}
|
|
37876
|
-
function
|
|
37876
|
+
function submoduleImports(sources) {
|
|
37877
37877
|
const imports2 = /* @__PURE__ */ new Map();
|
|
37878
37878
|
for (const source of sources)
|
|
37879
|
-
for (const
|
|
37879
|
+
for (const match of source.matchAll(SUBMODULE_IMPORT)) {
|
|
37880
|
+
const module2 = match[1] ?? match[3];
|
|
37880
37881
|
const names = imports2.get(module2) ?? /* @__PURE__ */ new Set();
|
|
37881
|
-
names.add(
|
|
37882
|
+
names.add(match[2] ?? match[4]);
|
|
37882
37883
|
imports2.set(module2, names);
|
|
37883
37884
|
}
|
|
37884
37885
|
return imports2;
|
|
37885
37886
|
}
|
|
37886
37887
|
function swiftObjCModuleMap(module2, headers, submodules = /* @__PURE__ */ new Set(), swiftHeader) {
|
|
37887
37888
|
const header = (file) => `header ${JSON.stringify(file)}`;
|
|
37888
|
-
const stem = (file) => file.slice(file.lastIndexOf("/") + 1).replace(/\.[^.]*$/, "");
|
|
37889
|
+
const stem = (file) => file.slice(file.lastIndexOf("/") + 1).replace(/\.[^.]*$/, "").replace(/[^A-Za-z0-9_]/g, "_").replace(/^(?=\d)/, "_");
|
|
37889
37890
|
return [
|
|
37890
37891
|
`module ${module2} {`,
|
|
37891
37892
|
...headers.map(
|
|
@@ -37897,7 +37898,7 @@ function swiftObjCModuleMap(module2, headers, submodules = /* @__PURE__ */ new S
|
|
|
37897
37898
|
""
|
|
37898
37899
|
].join("\n");
|
|
37899
37900
|
}
|
|
37900
|
-
var SWIFT_OBJC_INTEROP_FLAGS, CLANG_PATH_OPTIONS,
|
|
37901
|
+
var SWIFT_OBJC_INTEROP_FLAGS, CLANG_PATH_OPTIONS, SUBMODULE_IMPORT;
|
|
37901
37902
|
var init_swift_objc_import = __esm({
|
|
37902
37903
|
"src/swift-objc-import.ts"() {
|
|
37903
37904
|
"use strict";
|
|
@@ -37928,7 +37929,7 @@ var init_swift_objc_import = __esm({
|
|
|
37928
37929
|
"-iwithprefixbefore",
|
|
37929
37930
|
"--sysroot"
|
|
37930
37931
|
]);
|
|
37931
|
-
|
|
37932
|
+
SUBMODULE_IMPORT = /^[ \t]*(?:(?:@\w+(?:\([^)]*\))?[ \t]+)*import[ \t]+([A-Za-z_]\w*)\.([A-Za-z_]\w*)[ \t]*(?:\/\/.*)?|@import[ \t]+([A-Za-z_]\w*)\.([A-Za-z_]\w*)[ \t]*;.*)$/gm;
|
|
37932
37933
|
}
|
|
37933
37934
|
});
|
|
37934
37935
|
|
|
@@ -38886,7 +38887,7 @@ function withNativeSourceGlue(input, glue) {
|
|
|
38886
38887
|
function swiftOptionalFramework(name3) {
|
|
38887
38888
|
return OPTIONAL_FRAMEWORKS.has(name3);
|
|
38888
38889
|
}
|
|
38889
|
-
function swiftCondition(text7, available) {
|
|
38890
|
+
function swiftCondition(text7, available, defines) {
|
|
38890
38891
|
const tokens2 = text7.match(/\w+\s*\([^()]*\)|&&|\|\||!|\(|\)|\w+/g) ?? [];
|
|
38891
38892
|
let index = 0;
|
|
38892
38893
|
const atom = () => {
|
|
@@ -38899,6 +38900,7 @@ function swiftCondition(text7, available) {
|
|
|
38899
38900
|
}
|
|
38900
38901
|
if (token === "true") return true;
|
|
38901
38902
|
if (token === "false") return false;
|
|
38903
|
+
if (defines && /^[A-Za-z_]\w*$/.test(token ?? "")) return defines.has(token);
|
|
38902
38904
|
const call = /^(\w+)\s*\(\s*([^,()]*?)\s*(?:,[^()]*)?\)$/.exec(token ?? "");
|
|
38903
38905
|
if (!call) return void 0;
|
|
38904
38906
|
const [, name3, argument2] = call;
|
|
@@ -38927,7 +38929,7 @@ function swiftCondition(text7, available) {
|
|
|
38927
38929
|
};
|
|
38928
38930
|
return either();
|
|
38929
38931
|
}
|
|
38930
|
-
function* swiftConditionalLines(contents2, available) {
|
|
38932
|
+
function* swiftConditionalLines(contents2, available, defines) {
|
|
38931
38933
|
const frames = [];
|
|
38932
38934
|
for (const line of swiftCodeMask(contents2).split("\n")) {
|
|
38933
38935
|
const directive = /^\s*#(if|elseif|else|endif)\b(.*)$/.exec(line);
|
|
@@ -38935,12 +38937,12 @@ function* swiftConditionalLines(contents2, available) {
|
|
|
38935
38937
|
const [, kind, rest] = directive;
|
|
38936
38938
|
const condition = (rest ?? "").replace(/\/\/.*$/, "").trim();
|
|
38937
38939
|
if (kind === "if") {
|
|
38938
|
-
const active = swiftCondition(condition, available);
|
|
38940
|
+
const active = swiftCondition(condition, available, defines);
|
|
38939
38941
|
frames.push({ active, taken: active });
|
|
38940
38942
|
} else if (kind === "endif") frames.pop();
|
|
38941
38943
|
else if (frames.length > 0) {
|
|
38942
38944
|
const frame = frames[frames.length - 1];
|
|
38943
|
-
const holds = kind === "else" ? true : swiftCondition(condition, available);
|
|
38945
|
+
const holds = kind === "else" ? true : swiftCondition(condition, available, defines);
|
|
38944
38946
|
frame.active = frame.taken === true ? false : frame.taken === false ? holds : holds && void 0;
|
|
38945
38947
|
frame.taken = frame.taken === true || holds === true ? true : frame.taken === false ? holds : void 0;
|
|
38946
38948
|
}
|
|
@@ -39761,6 +39763,17 @@ function emitSwiftPackageManifest(args) {
|
|
|
39761
39763
|
...args.nativeHeaderFlags ?? []
|
|
39762
39764
|
];
|
|
39763
39765
|
const owner = targets.find((target) => target.name === name3);
|
|
39766
|
+
const context = /* @__PURE__ */ new Set();
|
|
39767
|
+
const visit3 = (dependency) => {
|
|
39768
|
+
if (context.has(dependency)) return;
|
|
39769
|
+
context.add(dependency);
|
|
39770
|
+
for (const next of siblings.get(dependency) ?? []) visit3(next);
|
|
39771
|
+
};
|
|
39772
|
+
if (native.mixed)
|
|
39773
|
+
for (const dependency of siblings.get(name3) ?? []) visit3(dependency);
|
|
39774
|
+
const contextFlags = [...context].flatMap(
|
|
39775
|
+
(dependency) => args.native?.get(dependency)?.importFlags ?? []
|
|
39776
|
+
);
|
|
39764
39777
|
return late ? (native.groups ?? [
|
|
39765
39778
|
{
|
|
39766
39779
|
name: late.name,
|
|
@@ -39775,9 +39788,9 @@ function emitSwiftPackageManifest(args) {
|
|
|
39775
39788
|
` path: ${JSON.stringify(group.path)},`,
|
|
39776
39789
|
` sources: ${JSON.stringify(group.sources)},`,
|
|
39777
39790
|
` publicHeadersPath: ${JSON.stringify(native.groups ? "include" : "PeachSwiftImplementation")},`,
|
|
39778
|
-
` cSettings: [${macroSettings(owner?.cDefines)}${declaredClangSettings(owner, "c")} .unsafeFlags(${flagArray(targetCFlags([...nativeFlags, "-I", native.includeDirectory, ...args.headerDirectory ? ["-I", args.headerDirectory] : [], ...group.flags]))})],`,
|
|
39791
|
+
` cSettings: [${macroSettings(owner?.cDefines)}${declaredClangSettings(owner, "c")} .unsafeFlags(${flagArray(targetCFlags([...nativeFlags, "-I", native.includeDirectory, ...args.headerDirectory ? ["-I", args.headerDirectory] : [], ...group.flags, ...contextFlags]))})],`,
|
|
39779
39792
|
...group.sources.some((source) => /\.(?:cc|cpp|cxx|mm)$/.test(source)) ? [
|
|
39780
|
-
` cxxSettings: [${macroSettings(owner?.cxxDefines)}${declaredClangSettings(owner, "cxx")} .unsafeFlags(${flagArray(targetCxxFlags([...cxxFlagsFor(nativeFlags), "-I", native.includeDirectory, ...group.cxxFlags]))})]),`
|
|
39793
|
+
` cxxSettings: [${macroSettings(owner?.cxxDefines)}${declaredClangSettings(owner, "cxx")} .unsafeFlags(${flagArray(targetCxxFlags([...cxxFlagsFor(nativeFlags), "-I", native.includeDirectory, ...group.cxxFlags, ...contextFlags]))})]),`
|
|
39781
39794
|
] : [" ),"]
|
|
39782
39795
|
]) : [];
|
|
39783
39796
|
}),
|
|
@@ -40233,8 +40246,8 @@ function swiftApplicationEntry(file, source) {
|
|
|
40233
40246
|
}
|
|
40234
40247
|
return false;
|
|
40235
40248
|
}
|
|
40236
|
-
function swiftTypedApplicationEntry(source) {
|
|
40237
|
-
const code = [...swiftConditionalLines(swiftCodeMask(source))].map(({ line, active }) => active === false ? " ".repeat(line.length) : line).join("\n");
|
|
40249
|
+
function swiftTypedApplicationEntry(source, defines) {
|
|
40250
|
+
const code = [...swiftConditionalLines(swiftCodeMask(source), void 0, defines)].map(({ line, active }) => active === false ? " ".repeat(line.length) : line).join("\n");
|
|
40238
40251
|
const match = /@main\b[\s\S]*?\b(?:struct|class|enum)\s+([A-Za-z_]\w*)/.exec(code);
|
|
40239
40252
|
return match ? { index: match.index, name: match[1] } : null;
|
|
40240
40253
|
}
|
|
@@ -40827,9 +40840,9 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
|
|
|
40827
40840
|
clangImportedModules.add(name3);
|
|
40828
40841
|
}
|
|
40829
40842
|
}
|
|
40830
|
-
const
|
|
40843
|
+
const submoduleImports2 = submoduleImports(
|
|
40831
40844
|
Object.entries(input.files).flatMap(
|
|
40832
|
-
([file, contents2]) =>
|
|
40845
|
+
([file, contents2]) => /\.(?:swift|h|m|mm)$/.test(file) ? [contents2.toString()] : []
|
|
40833
40846
|
)
|
|
40834
40847
|
);
|
|
40835
40848
|
const headerDirectory = import_node_path49.default.join(layout2.root, ".build", "peach-cxx-headers");
|
|
@@ -41220,7 +41233,7 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
|
|
|
41220
41233
|
const moduleContents = originalModuleMap ? input.files[originalModuleMap[1]] : swiftpmModuleMap?.contents ?? packageModuleMap?.[1] ?? swiftObjCModuleMap(
|
|
41221
41234
|
swiftTargetModuleName(target.name),
|
|
41222
41235
|
roots2.map((file) => import_node_path49.default.join(layout2.root, file)),
|
|
41223
|
-
|
|
41236
|
+
submoduleImports2.get(swiftTargetModuleName(target.name))
|
|
41224
41237
|
);
|
|
41225
41238
|
if (moduleContents === void 0)
|
|
41226
41239
|
throw new Error("missing original module map " + modulemap);
|
|
@@ -41562,7 +41575,7 @@ module ${moduleName2}.Swift {
|
|
|
41562
41575
|
` : swiftObjCModuleMap(
|
|
41563
41576
|
moduleName2,
|
|
41564
41577
|
(input.nativeTargets?.find((target) => target.name === name3)?.publicHeaders ?? []).map((header) => import_node_path49.default.join(layout2.root, header)),
|
|
41565
|
-
|
|
41578
|
+
submoduleImports2.get(moduleName2),
|
|
41566
41579
|
import_node_path49.default.join(headerDirectory, name3 + "-Swift.h")
|
|
41567
41580
|
)
|
|
41568
41581
|
);
|
|
@@ -41650,7 +41663,7 @@ module ${moduleName2}.Swift {
|
|
|
41650
41663
|
)
|
|
41651
41664
|
);
|
|
41652
41665
|
const mains = entries.flatMap(([file, source]) => {
|
|
41653
|
-
const entry = swiftTypedApplicationEntry(source);
|
|
41666
|
+
const entry = swiftTypedApplicationEntry(source, new Set(target.defines ?? []));
|
|
41654
41667
|
return entry ? [{ file, source, ...entry }] : [];
|
|
41655
41668
|
});
|
|
41656
41669
|
let entryFile = "";
|
|
@@ -43662,8 +43675,8 @@ var init_swift_compile = __esm({
|
|
|
43662
43675
|
SWIFTPM_PROGRESS = /^\[\d+\/\d+\] /;
|
|
43663
43676
|
SWIFTPM_NOISE = /^(?:\[\d+\/\d+\] |Building for production\.\.\.$|warning: '--build-system native' has been deprecated)/;
|
|
43664
43677
|
REACH_STAGED_FRAMEWORKS = /* @__PURE__ */ new Set(["React"]);
|
|
43665
|
-
clangInterfaceHeader = (header) => header.replace(/^@import (?:UIKitCore|UIKitText);$/gm, "@import UIKit;").replace(
|
|
43666
|
-
/^@import (?:CoreFoundation|FoundationNetworking);$/gm,
|
|
43678
|
+
clangInterfaceHeader = (header) => header.replace(/^@import (?:UIKitCore|UIKitText);$/gm, "@import UIKit;").replace(/^@import (\w+?)(?:Enums|Constants);$/gm, "@import $1;").replace(
|
|
43679
|
+
/^@import (?:CoreFoundation|FoundationNetworking|PeachFoundation);$/gm,
|
|
43667
43680
|
"@import Foundation;"
|
|
43668
43681
|
).replace(/\b_TtC10Foundation\d+(NS\w+)\b/g, "$1").replace(/\b__attribute__\(\(objc_subclassing_restricted\)\)\s*/g, "");
|
|
43669
43682
|
objcEnumerations = (header) => [
|
|
@@ -43857,7 +43870,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
|
|
|
43857
43870
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
43858
43871
|
MULTI_MANIFEST_VERSION = 72;
|
|
43859
43872
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
43860
|
-
compilerSourceDigest = true ? "
|
|
43873
|
+
compilerSourceDigest = true ? "5ed6ce65e80a661269e2ae1a70eb7df501b75d5c5fd45c3cfc87cf1db220d611" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
43861
43874
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
43862
43875
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
43863
43876
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -45556,9 +45569,9 @@ function remoteVersionRequirement(entry) {
|
|
|
45556
45569
|
const major = text6(entry["up-to-next-major-version"]);
|
|
45557
45570
|
if (major !== void 0)
|
|
45558
45571
|
return { requirement: { kind: "upToNextMajorVersion", minimumVersion: major } };
|
|
45559
|
-
const
|
|
45560
|
-
if (
|
|
45561
|
-
const bounds =
|
|
45572
|
+
const range3 = text6(entry["version-range"]);
|
|
45573
|
+
if (range3 !== void 0) {
|
|
45574
|
+
const bounds = range3.split("..<");
|
|
45562
45575
|
const minimum2 = bounds[0];
|
|
45563
45576
|
const maximum2 = bounds[1];
|
|
45564
45577
|
if (bounds.length !== 2 || !minimum2 || !maximum2 || bounds[2] !== void 0)
|
|
@@ -47605,6 +47618,9 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
47605
47618
|
// xcode's Swift.xcspec defaults bare slash regex literals on before Swift 6
|
|
47606
47619
|
...swiftVersion < 6 && settings2("SWIFT_ENABLE_BARE_SLASH_REGEX") !== "NO" ? ["-enable-bare-slash-regex"] : [],
|
|
47607
47620
|
...packageName ? ["-package-name", packageName] : [],
|
|
47621
|
+
// as xcode passes it; the generated header then also carries
|
|
47622
|
+
// the module's internal @objc declarations
|
|
47623
|
+
...settings2("APPLICATION_EXTENSION_API_ONLY") === "YES" ? ["-application-extension"] : [],
|
|
47608
47624
|
...settingList(settings2("OTHER_SWIFT_FLAGS"))
|
|
47609
47625
|
],
|
|
47610
47626
|
includePaths: settingList(settings2("SWIFT_INCLUDE_PATHS")).map(absolute),
|
|
@@ -57464,6 +57480,21 @@ function defaultValue(model, member, type) {
|
|
|
57464
57480
|
if (scanned) return scanned;
|
|
57465
57481
|
refuse3(model, `${member.attrs.name} has the ${type} default ${JSON.stringify(text7)}`);
|
|
57466
57482
|
}
|
|
57483
|
+
function range2(model, member, type) {
|
|
57484
|
+
const bounds = [
|
|
57485
|
+
[member.attrs.minValueString, 3, 1620],
|
|
57486
|
+
[member.attrs.maxValueString, 1, 1610]
|
|
57487
|
+
];
|
|
57488
|
+
return bounds.flatMap(([text7, operator, warning]) => {
|
|
57489
|
+
if (text7 === void 0) return [];
|
|
57490
|
+
if (type.startsWith("Integer ") && /^-?\d+$/.test(text7) || (type === "Double" || type === "Float") && Number.isFinite(Number(text7)))
|
|
57491
|
+
return [{ operator, value: Number(text7), warning }];
|
|
57492
|
+
refuse3(
|
|
57493
|
+
model,
|
|
57494
|
+
`${member.attrs.name} has the ${type} range bound ${JSON.stringify(text7)}`
|
|
57495
|
+
);
|
|
57496
|
+
});
|
|
57497
|
+
}
|
|
57467
57498
|
function attribute(source, member) {
|
|
57468
57499
|
checkAttributes(source.model, member, [
|
|
57469
57500
|
"name",
|
|
@@ -57475,6 +57506,8 @@ function attribute(source, member) {
|
|
|
57475
57506
|
"usesScalarValueType",
|
|
57476
57507
|
"customClassName",
|
|
57477
57508
|
"valueTransformerName",
|
|
57509
|
+
"minValueString",
|
|
57510
|
+
"maxValueString",
|
|
57478
57511
|
"indexed",
|
|
57479
57512
|
"versionHashModifier",
|
|
57480
57513
|
"elementID",
|
|
@@ -57489,18 +57522,18 @@ function attribute(source, member) {
|
|
|
57489
57522
|
if (!known)
|
|
57490
57523
|
refuse3(source.model, `${member.attrs.name} has the attribute type ${typeName}`);
|
|
57491
57524
|
const [type, className2] = known;
|
|
57492
|
-
if (member.attrs.customClassName !== void 0 && typeName !== "Transformable")
|
|
57493
|
-
refuse3(source.model, `${member.attrs.name} names a custom class for a ${typeName}`);
|
|
57494
57525
|
return {
|
|
57495
57526
|
kind: "attribute",
|
|
57496
57527
|
...common(source, member),
|
|
57497
57528
|
transient: yes(member.attrs.transient),
|
|
57498
57529
|
type,
|
|
57499
|
-
|
|
57530
|
+
// momc archives a custom class as the value class of any attribute type
|
|
57531
|
+
className: member.attrs.customClassName ?? className2,
|
|
57500
57532
|
defaultValue: defaultValue(source.model, member, typeName),
|
|
57501
57533
|
transformer: member.attrs.valueTransformerName ?? null,
|
|
57502
57534
|
flags: (yes(member.attrs.allowsExternalBinaryDataStorage) ? EXTERNAL_BINARY : 0) | (yes(member.attrs.preserveAfterDeletion) ? PRESERVE_AFTER_DELETION : 0),
|
|
57503
|
-
cloudEncryption: yes(member.attrs.allowsCloudEncryption)
|
|
57535
|
+
cloudEncryption: yes(member.attrs.allowsCloudEncryption),
|
|
57536
|
+
range: range2(source.model, member, typeName)
|
|
57504
57537
|
};
|
|
57505
57538
|
}
|
|
57506
57539
|
function relationship(source, member) {
|
|
@@ -57553,6 +57586,7 @@ function entity(source, tag) {
|
|
|
57553
57586
|
"attribute",
|
|
57554
57587
|
"relationship",
|
|
57555
57588
|
"fetchIndex",
|
|
57589
|
+
"compoundIndexes",
|
|
57556
57590
|
"uniquenessConstraints",
|
|
57557
57591
|
"userInfo"
|
|
57558
57592
|
]);
|
|
@@ -57585,6 +57619,23 @@ function entity(source, tag) {
|
|
|
57585
57619
|
elements: [{ property, ascending: true }],
|
|
57586
57620
|
owned: source.tools >= 9
|
|
57587
57621
|
});
|
|
57622
|
+
const compound = tag.children.filter((child) => child.name === "compoundIndexes").flatMap((group) => {
|
|
57623
|
+
checkChildren(source.model, group, ["compoundIndex"]);
|
|
57624
|
+
return group.children;
|
|
57625
|
+
});
|
|
57626
|
+
if (compound.length > 0 && source.tools < 9)
|
|
57627
|
+
refuse3(source.model, `${tag.attrs.name} has compound indexes before xcode 9`);
|
|
57628
|
+
compound.forEach((index, at) => {
|
|
57629
|
+
checkChildren(source.model, index, ["index"]);
|
|
57630
|
+
indexes.push({
|
|
57631
|
+
name: `compoundIndex${at === 0 ? "" : at}`,
|
|
57632
|
+
elements: index.children.map((element) => {
|
|
57633
|
+
checkAttributes(source.model, element, ["value"]);
|
|
57634
|
+
return { property: element.attrs.value, ascending: true };
|
|
57635
|
+
}),
|
|
57636
|
+
owned: true
|
|
57637
|
+
});
|
|
57638
|
+
});
|
|
57588
57639
|
const uniqueness = tag.children.filter((child) => child.name === "uniquenessConstraints").flatMap((group) => {
|
|
57589
57640
|
checkChildren(source.model, group, ["uniquenessConstraint"]);
|
|
57590
57641
|
return group.children.map((constraint) => {
|
|
@@ -57656,8 +57707,16 @@ function archiveModel(model) {
|
|
|
57656
57707
|
for (const property of item.properties)
|
|
57657
57708
|
propertyIndex.set(`${item.name}.${property.name}`, archive.reserve());
|
|
57658
57709
|
const entityUid = (name3) => uid(entityIndex.get(name3));
|
|
57710
|
+
const byName = new Map(model.entities.map((item) => [item.name, item]));
|
|
57711
|
+
const relationships = (item) => [
|
|
57712
|
+
...item.parent === null ? [] : relationships(byName.get(item.parent)),
|
|
57713
|
+
...item.properties.flatMap(
|
|
57714
|
+
(property) => property.kind === "relationship" ? [property.name] : []
|
|
57715
|
+
)
|
|
57716
|
+
];
|
|
57659
57717
|
for (const item of model.entities) {
|
|
57660
57718
|
const self = entityUid(item.name);
|
|
57719
|
+
const related = relationships(item);
|
|
57661
57720
|
const properties = item.properties.map((property) => {
|
|
57662
57721
|
const index = propertyIndex.get(`${item.name}.${property.name}`);
|
|
57663
57722
|
const shared = {
|
|
@@ -57679,7 +57738,45 @@ function archiveModel(model) {
|
|
|
57679
57738
|
NSFlagsKey: property.flags,
|
|
57680
57739
|
NSValueTransformerName: archive.string(property.transformer),
|
|
57681
57740
|
...property.transient ? { NSIsTransient: true } : {},
|
|
57682
|
-
...property.cloudEncryption ? { NSAllowsCloudEncryption: true } : {}
|
|
57741
|
+
...property.cloudEncryption ? { NSAllowsCloudEncryption: true } : {},
|
|
57742
|
+
...property.range.length > 0 ? {
|
|
57743
|
+
NSValidationPredicates: archive.array(
|
|
57744
|
+
property.range.map(
|
|
57745
|
+
(bound) => archive.fill(archive.reserve(), "NSComparisonPredicate", {
|
|
57746
|
+
NSLeftExpression: archive.fill(
|
|
57747
|
+
archive.reserve(),
|
|
57748
|
+
"NSSelfExpression",
|
|
57749
|
+
{
|
|
57750
|
+
NSExpressionType: 1
|
|
57751
|
+
}
|
|
57752
|
+
),
|
|
57753
|
+
NSPredicateOperator: archive.fill(
|
|
57754
|
+
archive.reserve(),
|
|
57755
|
+
"NSComparisonPredicateOperator",
|
|
57756
|
+
{
|
|
57757
|
+
NSModifier: 0,
|
|
57758
|
+
NSOperatorType: bound.operator,
|
|
57759
|
+
NSOptions: 0,
|
|
57760
|
+
NSVariant: bound.operator
|
|
57761
|
+
}
|
|
57762
|
+
),
|
|
57763
|
+
NSRightExpression: archive.fill(
|
|
57764
|
+
archive.reserve(),
|
|
57765
|
+
"NSConstantValueExpression",
|
|
57766
|
+
{
|
|
57767
|
+
NSConstantValue: archive.add(bound.value),
|
|
57768
|
+
NSExpressionType: 0
|
|
57769
|
+
}
|
|
57770
|
+
)
|
|
57771
|
+
})
|
|
57772
|
+
),
|
|
57773
|
+
"NSArray"
|
|
57774
|
+
),
|
|
57775
|
+
NSValidationWarnings: archive.array(
|
|
57776
|
+
property.range.map((bound) => archive.add(bound.warning)),
|
|
57777
|
+
"NSArray"
|
|
57778
|
+
)
|
|
57779
|
+
} : {}
|
|
57683
57780
|
})
|
|
57684
57781
|
];
|
|
57685
57782
|
const destination = model.entities.find(
|
|
@@ -57703,7 +57800,9 @@ function archiveModel(model) {
|
|
|
57703
57800
|
});
|
|
57704
57801
|
const indexes = item.indexes.length === 0 ? {} : {
|
|
57705
57802
|
NSCompoundIndexes: archive.array(
|
|
57706
|
-
item.indexes.filter(
|
|
57803
|
+
item.indexes.filter(
|
|
57804
|
+
(index) => index.elements.length >= 2 && !index.elements.some((element) => related.includes(element.property))
|
|
57805
|
+
).map(
|
|
57707
57806
|
(index) => archive.array(
|
|
57708
57807
|
index.elements.map((element) => archive.add(element.property))
|
|
57709
57808
|
)
|
|
@@ -57919,6 +58018,14 @@ var init_core_data_model = __esm({
|
|
|
57919
58018
|
NSMutableArray: ["NSMutableArray", "NSArray", "NSObject"],
|
|
57920
58019
|
NSSet: ["NSSet", "NSObject"],
|
|
57921
58020
|
NSDate: ["NSDate", "NSObject"],
|
|
58021
|
+
NSComparisonPredicate: ["NSComparisonPredicate", "NSPredicate", "NSObject"],
|
|
58022
|
+
NSComparisonPredicateOperator: [
|
|
58023
|
+
"NSComparisonPredicateOperator",
|
|
58024
|
+
"NSPredicateOperator",
|
|
58025
|
+
"NSObject"
|
|
58026
|
+
],
|
|
58027
|
+
NSSelfExpression: ["NSSelfExpression", "NSExpression", "NSObject"],
|
|
58028
|
+
NSConstantValueExpression: ["NSConstantValueExpression", "NSExpression", "NSObject"],
|
|
57922
58029
|
NSDecimalNumberPlaceholder: [
|
|
57923
58030
|
"NSDecimalNumberPlaceholder",
|
|
57924
58031
|
"NSDecimalNumber",
|
|
@@ -59051,7 +59158,7 @@ var init_swift_standin_digest = __esm({
|
|
|
59051
59158
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
59052
59159
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
59053
59160
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
59054
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
59161
|
+
STANDIN_SOURCE_DIGEST = true ? "3238b362649e49ccf332149bb0b343bb7ed657c3c8287e0a231bc7316974eb6e" : standinSourceDigest();
|
|
59055
59162
|
}
|
|
59056
59163
|
});
|
|
59057
59164
|
|
|
@@ -61143,9 +61250,9 @@ function functionDeclarations(ast, headers) {
|
|
|
61143
61250
|
if (Array.isArray(inner) && inner.some((child) => Reflect.get(child, "kind") === "CompoundStmt"))
|
|
61144
61251
|
continue;
|
|
61145
61252
|
const parameterless = !Array.isArray(inner) || !inner.some((child) => Reflect.get(child, "kind") === "ParmVarDecl");
|
|
61146
|
-
const
|
|
61253
|
+
const range3 = Reflect.get(decl, "range");
|
|
61147
61254
|
const offset = (end) => {
|
|
61148
|
-
const at = Reflect.get(
|
|
61255
|
+
const at = Reflect.get(range3, end);
|
|
61149
61256
|
const expansion = Reflect.get(at, "expansionLoc");
|
|
61150
61257
|
return Number(Reflect.get(expansion ?? at, "offset"));
|
|
61151
61258
|
};
|
|
@@ -73707,7 +73814,7 @@ var init_nitro_superset = __esm({
|
|
|
73707
73814
|
init_nitroContract();
|
|
73708
73815
|
init_swift_standin_digest();
|
|
73709
73816
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
73710
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
73817
|
+
NITRO_COMPILER_DIGEST = true ? "ed595b44e58b281a4c404e74a792fba1c85dfdce95d3b951a12db875de38c382" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
73711
73818
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
73712
73819
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
73713
73820
|
published = /* @__PURE__ */ new Map();
|
|
@@ -74946,7 +75053,7 @@ var init_expo_native_compiler_digest = __esm({
|
|
|
74946
75053
|
|
|
74947
75054
|
// src/expo-native-prebuilt.ts
|
|
74948
75055
|
function expoNativeCompilerDigestValue() {
|
|
74949
|
-
return true ? "
|
|
75056
|
+
return true ? "a73dbb991a81bb1544cef0b99f6ffc474d5d36d4520550412538932edda6d36c" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
74950
75057
|
}
|
|
74951
75058
|
function readSources(value) {
|
|
74952
75059
|
const sources = isRecord(value) ? value.sources : null;
|
|
@@ -79580,8 +79687,8 @@ async function kotlinArtifact(root, moduleRoot, origin, target = "app") {
|
|
|
79580
79687
|
function readExpoField(value) {
|
|
79581
79688
|
if (!isRecord(value) || typeof value.name !== "string" || typeof value.key !== "string" || typeof value.required !== "boolean" || typeof value.mutable !== "boolean" || typeof value.hidden !== "boolean" || typeof value.parameter !== "boolean")
|
|
79582
79689
|
throw new Error("expo-types printed an invalid field");
|
|
79583
|
-
const
|
|
79584
|
-
if (
|
|
79690
|
+
const range3 = value.initializer;
|
|
79691
|
+
if (range3 !== null && (!Array.isArray(range3) || range3.length !== 2 || typeof range3[0] !== "number" || typeof range3[1] !== "number"))
|
|
79585
79692
|
throw new Error("expo-types printed an invalid initializer range");
|
|
79586
79693
|
return {
|
|
79587
79694
|
name: value.name,
|
|
@@ -79590,7 +79697,7 @@ function readExpoField(value) {
|
|
|
79590
79697
|
mutable: value.mutable,
|
|
79591
79698
|
hidden: value.hidden,
|
|
79592
79699
|
parameter: value.parameter,
|
|
79593
|
-
initializer:
|
|
79700
|
+
initializer: range3 === null ? null : [range3[0], range3[1]]
|
|
79594
79701
|
};
|
|
79595
79702
|
}
|
|
79596
79703
|
function readExpoTypes(output2) {
|
|
@@ -79820,8 +79927,8 @@ function expoTypeSources(files2) {
|
|
|
79820
79927
|
];
|
|
79821
79928
|
if (edits.length > 0 || views.length > 0) {
|
|
79822
79929
|
let text7 = import_node_fs115.default.readFileSync(file.file, "utf8").replaceAll("\r\n", "\n");
|
|
79823
|
-
for (const { range:
|
|
79824
|
-
text7 = `${text7.slice(0,
|
|
79930
|
+
for (const { range: range3, owner, field } of edits.sort((a, b) => b.range[0] - a.range[0]))
|
|
79931
|
+
text7 = `${text7.slice(0, range3[0])}dev.peach.expo.PeachExpoTypes.initial(${owner}::class, ${literal2(field.key)}, ${field.required}) { ${text7.slice(range3[0], range3[1])} }${text7.slice(range3[1])}`;
|
|
79825
79932
|
if (views.length > 0) {
|
|
79826
79933
|
text7 = [
|
|
79827
79934
|
text7,
|
|
@@ -81841,7 +81948,7 @@ var import_node_path5 = require("node:path");
|
|
|
81841
81948
|
init_src();
|
|
81842
81949
|
|
|
81843
81950
|
// runtime-companion.json
|
|
81844
|
-
var runtime_companion_default = { abi: 1, sha256: "
|
|
81951
|
+
var runtime_companion_default = { abi: 1, sha256: "c3e71b5eaf9166fc3fdc4333c354332e1ff41e1a6c71b6814afebe7c7d14bf9b", file: "node/cli-c3e71b5eaf9166fc3fdc4333c354332e1ff41e1a6c71b6814afebe7c7d14bf9b.cjs" };
|
|
81845
81952
|
|
|
81846
81953
|
// src/cli-runtime.ts
|
|
81847
81954
|
init_answeredNativePackages();
|
|
@@ -83126,7 +83233,6 @@ var NATIVE_STUB_PACKAGE_NAMES = [
|
|
|
83126
83233
|
"expo-updates",
|
|
83127
83234
|
"expo-vector-search",
|
|
83128
83235
|
"expo-video",
|
|
83129
|
-
"expo-video-metadata",
|
|
83130
83236
|
"expo-video-thumbnails",
|
|
83131
83237
|
"expo-web-browser",
|
|
83132
83238
|
"expo-wechat",
|
|
@@ -83699,6 +83805,7 @@ var NATIVE_RUNTIME_PACKAGE_NAMES = [
|
|
|
83699
83805
|
"@tamagui/native-registry",
|
|
83700
83806
|
"@uniswap/ethers-rs-mobile",
|
|
83701
83807
|
"@valora/react-native-keychain",
|
|
83808
|
+
"expo-video-metadata",
|
|
83702
83809
|
"react-native-app-control",
|
|
83703
83810
|
"react-native-blue-crypto",
|
|
83704
83811
|
"react-native-dynamic-theme",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2429 | (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.2429 | (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.2429 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/cloud.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2429 | (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;
|