peachsim 0.1.760 → 0.1.762
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/agent-identity.cjs +1 -1
- package/dist-lib/agent-sessions.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/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cli-constants.cjs +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/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +109 -44
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- 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 +1 -1
- 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 +1 -1
- 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/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/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/render-mode.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 +109 -44
- package/dist-lib/swift-compile.cjs +66 -8
- package/dist-lib/swift-compile.mjs +66 -8
- 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 +66 -8
- package/dist-lib/vite.cjs +1 -1
- package/package.json +1 -1
- package/src/swift-compile.ts +102 -12
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/beta.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/beta.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/cloud.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/cloud.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
package/dist-lib/config.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/detox/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/home-paths.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1160,6 +1160,43 @@ function iosDevice(spec) {
|
|
|
1160
1160
|
modelName: spec.name
|
|
1161
1161
|
};
|
|
1162
1162
|
}
|
|
1163
|
+
function ipadProDevice(model, name2, width, height, diagonalInches) {
|
|
1164
|
+
return iosDevice({
|
|
1165
|
+
model,
|
|
1166
|
+
name: name2,
|
|
1167
|
+
// iPad Pro 11-inch (M5) 12GB, iOS 27.0, simulator DBD4B183, UIKit probe
|
|
1168
|
+
// scenario `metrics`. portrait UIScreen.bounds 834×1210, scale 2,
|
|
1169
|
+
// nativeBounds 1668×2420. the window matched the screen.
|
|
1170
|
+
width,
|
|
1171
|
+
height,
|
|
1172
|
+
scale: 2,
|
|
1173
|
+
// portrait statusBarFrame was 834×32 at the top, and safeAreaInsets.top
|
|
1174
|
+
// was 32. landscape statusBarFrame stayed 32 tall while safeAreaInsets.top
|
|
1175
|
+
// was 10; this field is the portrait bar.
|
|
1176
|
+
statusBarHeight: 32,
|
|
1177
|
+
landscapeStatusBarHeight: 32,
|
|
1178
|
+
// portrait and landscape safeAreaInsets.bottom were both 20. the probe
|
|
1179
|
+
// has no separate home-indicator height.
|
|
1180
|
+
homeIndicatorHeight: 20,
|
|
1181
|
+
// UIScreen _displayCornerRadius, both orientations. the framebuffer
|
|
1182
|
+
// mask's tangent extent was not measured separately.
|
|
1183
|
+
cornerRadius: cornerRadii(30),
|
|
1184
|
+
continuousCornerRadius: cornerRadii(30),
|
|
1185
|
+
// housing is unsourced. the frame is the display until it is measured.
|
|
1186
|
+
frameInsets: uniformFrameInsets(0),
|
|
1187
|
+
dynamicIsland: null,
|
|
1188
|
+
// portrait safeAreaInsets. landscape was top 10, left 0, bottom 20, right 0.
|
|
1189
|
+
safeAreaInsets: { top: 32, bottom: 20, left: 0, right: 0 },
|
|
1190
|
+
iosVersion: "27.0",
|
|
1191
|
+
// portrait docked keyboard, UIKeyboardFrameEndUserInfoKey
|
|
1192
|
+
// {0, 870, 834, 340}. landscape posted a zero-height frame.
|
|
1193
|
+
keyboardPanelHeights: { qwerty: 333, pad: 333, emoji: 427 },
|
|
1194
|
+
// hypot(1668, 2420) / 11, measured native pixels over the device type's
|
|
1195
|
+
// 11-inch name. not a separate density read.
|
|
1196
|
+
physicalPPI: Math.hypot(width * 2, height * 2) / diagonalInches,
|
|
1197
|
+
hardwareButtons: modernButtons([0, 0], [0, 0], [0, 0], [0, 0])
|
|
1198
|
+
});
|
|
1199
|
+
}
|
|
1163
1200
|
function resolveDevicePosture(model, posture) {
|
|
1164
1201
|
const supported = devices[model].supportedPostures;
|
|
1165
1202
|
return posture && supported?.includes(posture) ? posture : supported?.[0] ?? "closed";
|
|
@@ -1210,7 +1247,7 @@ function rotateDevice(device, side) {
|
|
|
1210
1247
|
const barrelProtrusion = device.housing?.hingeBarrel?.protrusion ?? 0;
|
|
1211
1248
|
if (side === "left") insets.top += barrelProtrusion;
|
|
1212
1249
|
else insets.bottom += barrelProtrusion;
|
|
1213
|
-
const safeArea = device
|
|
1250
|
+
const safeArea = isPadIdiom(device) ? { top: 10, bottom: 20, left: 0, right: 0 } : device.model === "iphone-duo" ? { top: 0, bottom: 34, left: 0, right: 84 } : device.platform === "ios" && device.homeIndicatorHeight > 0 ? {
|
|
1214
1251
|
top: 0,
|
|
1215
1252
|
bottom: 20,
|
|
1216
1253
|
left: device.safeAreaInsets.top,
|
|
@@ -1253,6 +1290,9 @@ function rotateDevice(device, side) {
|
|
|
1253
1290
|
function defaultLandscapeSide(model, posture) {
|
|
1254
1291
|
return model === "iphone-duo" && resolveDevicePosture(model, posture) === "closed" ? "right" : "left";
|
|
1255
1292
|
}
|
|
1293
|
+
function isPadIdiom(spec) {
|
|
1294
|
+
return spec.model === "ipad-pro-11" || spec.model === "ipad-pro-13";
|
|
1295
|
+
}
|
|
1256
1296
|
function getDevice(model, posture, orientation, landscapeSide) {
|
|
1257
1297
|
const device = devices[model];
|
|
1258
1298
|
const side = landscapeSide ?? defaultLandscapeSide(model, posture);
|
|
@@ -1829,42 +1869,9 @@ var init_devices = __esm({
|
|
|
1829
1869
|
// frame and hardware buttons are not sourced yet, so this stays off the
|
|
1830
1870
|
// shipping picker the same way the duo does.
|
|
1831
1871
|
developmentOnly: true,
|
|
1832
|
-
...
|
|
1833
|
-
model: "ipad-pro-11",
|
|
1834
|
-
name: "iPad Pro 11-inch (M5)",
|
|
1835
|
-
// iPad Pro 11-inch (M5) 12GB, iOS 27.0, simulator DBD4B183, UIKit probe
|
|
1836
|
-
// scenario `metrics`. portrait UIScreen.bounds 834×1210, scale 2,
|
|
1837
|
-
// nativeBounds 1668×2420. the window matched the screen.
|
|
1838
|
-
width: 834,
|
|
1839
|
-
height: 1210,
|
|
1840
|
-
scale: 2,
|
|
1841
|
-
// portrait statusBarFrame was 834×32 at the top, and safeAreaInsets.top
|
|
1842
|
-
// was 32. landscape statusBarFrame stayed 32 tall while safeAreaInsets.top
|
|
1843
|
-
// was 10; this field is the portrait bar.
|
|
1844
|
-
statusBarHeight: 32,
|
|
1845
|
-
landscapeStatusBarHeight: 32,
|
|
1846
|
-
// portrait and landscape safeAreaInsets.bottom were both 20. the probe
|
|
1847
|
-
// has no separate home-indicator height.
|
|
1848
|
-
homeIndicatorHeight: 20,
|
|
1849
|
-
// UIScreen _displayCornerRadius, both orientations. the framebuffer
|
|
1850
|
-
// mask's tangent extent was not measured separately.
|
|
1851
|
-
cornerRadius: cornerRadii(30),
|
|
1852
|
-
continuousCornerRadius: cornerRadii(30),
|
|
1853
|
-
// housing is unsourced. the frame is the display until it is measured.
|
|
1854
|
-
frameInsets: uniformFrameInsets(0),
|
|
1855
|
-
dynamicIsland: null,
|
|
1856
|
-
// portrait safeAreaInsets. landscape was top 10, left 0, bottom 20, right 0.
|
|
1857
|
-
safeAreaInsets: { top: 32, bottom: 20, left: 0, right: 0 },
|
|
1858
|
-
iosVersion: "27.0",
|
|
1859
|
-
// portrait docked keyboard, UIKeyboardFrameEndUserInfoKey
|
|
1860
|
-
// {0, 870, 834, 340}. landscape posted a zero-height frame.
|
|
1861
|
-
keyboardPanelHeights: { qwerty: 333, pad: 333, emoji: 427 },
|
|
1862
|
-
// hypot(1668, 2420) / 11, measured native pixels over the device type's
|
|
1863
|
-
// 11-inch name. not a separate density read.
|
|
1864
|
-
physicalPPI: 267.19578360606573,
|
|
1865
|
-
hardwareButtons: modernButtons([0, 0], [0, 0], [0, 0], [0, 0])
|
|
1866
|
-
})
|
|
1872
|
+
...ipadProDevice("ipad-pro-11", "iPad Pro 11-inch (M5)", 834, 1210, 11)
|
|
1867
1873
|
},
|
|
1874
|
+
"ipad-pro-13": ipadProDevice("ipad-pro-13", "iPad Pro 13-inch (M5)", 1032, 1376, 13),
|
|
1868
1875
|
"pixel-8": {
|
|
1869
1876
|
model: "pixel-8",
|
|
1870
1877
|
platform: "android",
|
|
@@ -6768,14 +6775,72 @@ var OPTIONAL_FRAMEWORK_DEPENDENCIES = {
|
|
|
6768
6775
|
};
|
|
6769
6776
|
var OPTIONAL_FRAMEWORKS = new Set(Object.keys(OPTIONAL_FRAMEWORK_DEPENDENCIES));
|
|
6770
6777
|
var SWIFT_IMPORT = /^\s*(?:@\w+(?:\([^)]*\))?\s+)*import\s+(?:(?:typealias|struct|class|enum|protocol|let|var|func)\s+)?([A-Za-z_][A-Za-z0-9_]*)/;
|
|
6771
|
-
function
|
|
6778
|
+
function swiftCondition(text2, available) {
|
|
6779
|
+
const tokens = text2.match(/\w+\s*\([^()]*\)|&&|\|\||!|\(|\)|\w+/g) ?? [];
|
|
6780
|
+
let index = 0;
|
|
6781
|
+
const atom = () => {
|
|
6782
|
+
const token = tokens[index++];
|
|
6783
|
+
if (token === "!") {
|
|
6784
|
+
const value = atom();
|
|
6785
|
+
return value === void 0 ? void 0 : !value;
|
|
6786
|
+
}
|
|
6787
|
+
if (token === "(") {
|
|
6788
|
+
const value = either();
|
|
6789
|
+
index++;
|
|
6790
|
+
return value;
|
|
6791
|
+
}
|
|
6792
|
+
if (token === "true") return true;
|
|
6793
|
+
if (token === "false") return false;
|
|
6794
|
+
const call = /^(\w+)\s*\(\s*([^,()]*?)\s*(?:,[^()]*)?\)$/.exec(token ?? "");
|
|
6795
|
+
if (!call) return void 0;
|
|
6796
|
+
const [, name2, argument] = call;
|
|
6797
|
+
if (name2 === "os") return argument === "iOS" || argument === "WASI";
|
|
6798
|
+
if (name2 === "canImport") return available.has(argument);
|
|
6799
|
+
if (name2 === "targetEnvironment") return false;
|
|
6800
|
+
if (name2 === "arch") return argument === "wasm32";
|
|
6801
|
+
return void 0;
|
|
6802
|
+
};
|
|
6803
|
+
const both = () => {
|
|
6804
|
+
let value = atom();
|
|
6805
|
+
while (tokens[index] === "&&") {
|
|
6806
|
+
index++;
|
|
6807
|
+
const next = atom();
|
|
6808
|
+
value = value === false || next === false ? false : value && next ? true : void 0;
|
|
6809
|
+
}
|
|
6810
|
+
return value;
|
|
6811
|
+
};
|
|
6812
|
+
const either = () => {
|
|
6813
|
+
let value = both();
|
|
6814
|
+
while (tokens[index] === "||") {
|
|
6815
|
+
index++;
|
|
6816
|
+
const next = both();
|
|
6817
|
+
value = value === true || next === true ? true : value === false && next === false ? false : void 0;
|
|
6818
|
+
}
|
|
6819
|
+
return value;
|
|
6820
|
+
};
|
|
6821
|
+
return either();
|
|
6822
|
+
}
|
|
6823
|
+
function swiftImportNames(contents, available) {
|
|
6772
6824
|
const names = [];
|
|
6773
|
-
|
|
6825
|
+
const frames = [];
|
|
6774
6826
|
for (const line of contents.split("\n")) {
|
|
6775
|
-
const directive = /^\s*#(if|endif)\b
|
|
6776
|
-
if (directive
|
|
6777
|
-
|
|
6778
|
-
|
|
6827
|
+
const directive = /^\s*#(if|elseif|else|endif)\b(.*)$/.exec(line);
|
|
6828
|
+
if (directive && available) {
|
|
6829
|
+
const [, kind, rest] = directive;
|
|
6830
|
+
const condition = (rest ?? "").replace(/\/\/.*$/, "").trim();
|
|
6831
|
+
if (kind === "if") {
|
|
6832
|
+
const active = swiftCondition(condition, available);
|
|
6833
|
+
frames.push({ active, taken: active });
|
|
6834
|
+
} else if (kind === "endif") frames.pop();
|
|
6835
|
+
else if (frames.length > 0) {
|
|
6836
|
+
const frame = frames[frames.length - 1];
|
|
6837
|
+
const holds = kind === "else" ? true : swiftCondition(condition, available);
|
|
6838
|
+
frame.active = frame.taken === true ? false : frame.taken === false ? holds : holds && void 0;
|
|
6839
|
+
frame.taken = frame.taken === true || holds === true ? true : frame.taken === false ? holds : void 0;
|
|
6840
|
+
}
|
|
6841
|
+
continue;
|
|
6842
|
+
}
|
|
6843
|
+
if (available && frames.some((frame) => frame.active !== true)) continue;
|
|
6779
6844
|
const name2 = SWIFT_IMPORT.exec(line)?.[1];
|
|
6780
6845
|
if (name2) names.push(name2);
|
|
6781
6846
|
}
|
|
@@ -6820,7 +6885,7 @@ function missingSwiftModules(files, available) {
|
|
|
6820
6885
|
const missing = /* @__PURE__ */ new Map();
|
|
6821
6886
|
for (const [file, contents] of Object.entries(files)) {
|
|
6822
6887
|
if (!file.endsWith(".swift") || file === "Package.swift") continue;
|
|
6823
|
-
for (const name2 of new Set(swiftImportNames(contents,
|
|
6888
|
+
for (const name2 of new Set(swiftImportNames(contents, available))) {
|
|
6824
6889
|
if (available.has(name2)) continue;
|
|
6825
6890
|
missing.set(name2, [...missing.get(name2) ?? [], file]);
|
|
6826
6891
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/kotlin-host.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/menu.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/menu.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/metro.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/plist.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/plist.mjs
CHANGED
package/dist-lib/profiles.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/render-mode.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/sdk.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/sdk.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|