peachsim 0.1.814 → 0.1.816
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/bridge-flow-runner.ts +57 -121
- 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/bundle-channel.cjs +15 -35
- 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/expo-swift-bundle.cjs +14 -34
- 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 +14 -34
- 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 +46 -126
- package/dist-lib/swift-compile.cjs +1 -1
- package/dist-lib/swift-compile.mjs +1 -1
- 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 +14 -34
- package/dist-lib/vite.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/package.json +1 -1
- package/src/swift-binary-modules.ts +9 -7
- package/src/swift-standin-emit.ts +2 -23
|
@@ -102,20 +102,6 @@ const MAESTRO_SELECTOR_KEYS = new Set([
|
|
|
102
102
|
'label',
|
|
103
103
|
'css',
|
|
104
104
|
])
|
|
105
|
-
// maestro filters the runner resolves beyond id and text
|
|
106
|
-
const SELECTOR_FILTER_KEYS = [
|
|
107
|
-
'childOf',
|
|
108
|
-
'width',
|
|
109
|
-
'height',
|
|
110
|
-
'traits',
|
|
111
|
-
'enabled',
|
|
112
|
-
'selected',
|
|
113
|
-
'checked',
|
|
114
|
-
'below',
|
|
115
|
-
'above',
|
|
116
|
-
'leftOf',
|
|
117
|
-
'rightOf',
|
|
118
|
-
] as const
|
|
119
105
|
// maestro filters without a verified ios reading here yet: `css` is web only.
|
|
120
106
|
// `containsChild`, `containsDescendants`, and `focused` read the engine's
|
|
121
107
|
// XCTest accessibility projection (see findElementAccessibilityTree).
|
|
@@ -183,13 +169,22 @@ function accessibilitySubtreeNodes(
|
|
|
183
169
|
return [node, ...node.children.flatMap(accessibilitySubtreeNodes)]
|
|
184
170
|
}
|
|
185
171
|
|
|
186
|
-
//
|
|
187
|
-
//
|
|
172
|
+
// upstream Orchestra.REGEX_OPTIONS + Filters.textMatches/idMatches. this closure-free
|
|
173
|
+
// matcher also runs inside the bridge evaluation for render-tree selectors.
|
|
188
174
|
function accessibilityTextMatcher(
|
|
189
175
|
value: string,
|
|
190
176
|
kind: 'text' | 'id',
|
|
191
177
|
): (candidate: string | null) => boolean {
|
|
192
|
-
|
|
178
|
+
// absolute boundaries preserve Regex.matches with multiline enabled, even
|
|
179
|
+
// for a final newline. ^ and $ inside the user's pattern still match lines.
|
|
180
|
+
let pattern: RegExp
|
|
181
|
+
try {
|
|
182
|
+
pattern = new RegExp(`(?<![\\s\\S])(?:${value})(?![\\s\\S])`, 'ism')
|
|
183
|
+
} catch {
|
|
184
|
+
// upstream StringUtils.toRegexSafe quotes an invalid regex as literal copy.
|
|
185
|
+
const escaped = value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
|
|
186
|
+
pattern = new RegExp(`(?<![\\s\\S])(?:${escaped})(?![\\s\\S])`, 'ism')
|
|
187
|
+
}
|
|
193
188
|
return (candidate) => {
|
|
194
189
|
// IOSDriver emits an empty attribute for absent label, value and id.
|
|
195
190
|
const native = candidate ?? ''
|
|
@@ -612,7 +607,13 @@ export interface MaestroStep {
|
|
|
612
607
|
optional?: boolean
|
|
613
608
|
}
|
|
614
609
|
scroll?: { direction?: string; optional?: boolean }
|
|
615
|
-
scrollTo?: {
|
|
610
|
+
scrollTo?: {
|
|
611
|
+
id?: string
|
|
612
|
+
nodeId?: number
|
|
613
|
+
x: number
|
|
614
|
+
y: number
|
|
615
|
+
optional?: boolean
|
|
616
|
+
}
|
|
616
617
|
pinch?: {
|
|
617
618
|
from: [number, number, number, number]
|
|
618
619
|
to: [number, number, number, number]
|
|
@@ -631,7 +632,12 @@ export interface MaestroStep {
|
|
|
631
632
|
// app-only capture; 'shell' is the inverse.
|
|
632
633
|
layers?: 'full' | 'tenant' | 'shell'
|
|
633
634
|
}
|
|
634
|
-
waitFor?: {
|
|
635
|
+
waitFor?: {
|
|
636
|
+
text?: string
|
|
637
|
+
id?: string
|
|
638
|
+
timeout?: number
|
|
639
|
+
optional?: boolean
|
|
640
|
+
}
|
|
635
641
|
waitForAnimationToEnd?: boolean | number | { timeout?: number }
|
|
636
642
|
back?: boolean
|
|
637
643
|
hideKeyboard?: boolean
|
|
@@ -1291,45 +1297,7 @@ export class SootSimBridgeFlowRunner {
|
|
|
1291
1297
|
if (needsAccessibilityProjection(opts)) {
|
|
1292
1298
|
return this.findElementAccessibilityTree(opts)
|
|
1293
1299
|
}
|
|
1294
|
-
|
|
1295
|
-
// candidate set in maestro's order, so a repeated id (one per list row)
|
|
1296
|
-
// means the top row. a literal text selector keeps the direct lookup.
|
|
1297
|
-
if (
|
|
1298
|
-
opts.id != null ||
|
|
1299
|
-
opts.index != null ||
|
|
1300
|
-
(opts.text != null && /[.*+?^$()[\]{}|\\]/.test(opts.text)) ||
|
|
1301
|
-
SELECTOR_FILTER_KEYS.some((key) => opts[key] != null)
|
|
1302
|
-
) {
|
|
1303
|
-
return this.findElementScoped(opts)
|
|
1304
|
-
}
|
|
1305
|
-
return this.evaluate<any>(`(async () => {
|
|
1306
|
-
const test = window.__sootsimTest
|
|
1307
|
-
if (!test) return null
|
|
1308
|
-
let node = null
|
|
1309
|
-
if (${JSON.stringify(!!opts.text)}) {
|
|
1310
|
-
// maestro text selectors match rendered text and exact accessibility
|
|
1311
|
-
// labels. the engine resolves both in one visibility-aware tree pass.
|
|
1312
|
-
node = await test.findByTextOrLabel(${JSON.stringify(opts.text || '')})
|
|
1313
|
-
}
|
|
1314
|
-
if (!node && ${JSON.stringify(!!opts.id)}) {
|
|
1315
|
-
node = (await test.findByTestId(${JSON.stringify(opts.id || '')})) || (await test.findById(${JSON.stringify(opts.id || '')}))
|
|
1316
|
-
}
|
|
1317
|
-
if (!node || !node.absolutePosition || !node.layout) return null
|
|
1318
|
-
return {
|
|
1319
|
-
nodeId: typeof node.nodeId === 'number' ? node.nodeId : null,
|
|
1320
|
-
id: node.id || null,
|
|
1321
|
-
testID: node.testID || null,
|
|
1322
|
-
text: node.text || null,
|
|
1323
|
-
absolutePosition: node.absolutePosition,
|
|
1324
|
-
layout: node.layout,
|
|
1325
|
-
// the engine's authoritative answer to "is this painted": layout
|
|
1326
|
-
// bounds minus clipping and minus every frontward sibling, overlay
|
|
1327
|
-
// and portal that fully covers it. visibility assertions read this,
|
|
1328
|
-
// never the raw layout box.
|
|
1329
|
-
visibleFrame: node.visibleFrame || null,
|
|
1330
|
-
isTextInput: !!node.isTextInput,
|
|
1331
|
-
}
|
|
1332
|
-
})()`)
|
|
1300
|
+
return this.findElementScoped(opts)
|
|
1333
1301
|
}
|
|
1334
1302
|
|
|
1335
1303
|
// structural filters (containsChild / containsDescendants / focused) read the
|
|
@@ -1380,25 +1348,12 @@ export class SootSimBridgeFlowRunner {
|
|
|
1380
1348
|
// and a relative filter holds when ANY match of its anchor satisfies it.
|
|
1381
1349
|
private async findElementScoped(opts: FlowTargetSelector) {
|
|
1382
1350
|
const screen = await this.screenBounds()
|
|
1383
|
-
const needsEveryNode =
|
|
1384
|
-
!opts.id ||
|
|
1385
|
-
opts.childOf != null ||
|
|
1386
|
-
SELECTOR_FILTER_KEYS.some((key) => opts[key] != null)
|
|
1387
1351
|
return this.evaluate<any>(`(async () => {
|
|
1388
1352
|
const test = window.__sootsimTest
|
|
1389
1353
|
if (!test || !test.queryAll) return null
|
|
1390
1354
|
const selector = ${JSON.stringify(opts)}
|
|
1391
|
-
|
|
1392
|
-
const
|
|
1393
|
-
if (!value) return null
|
|
1394
|
-
let pattern = null
|
|
1395
|
-
try { pattern = new RegExp('^(?:' + value + ')$') } catch {}
|
|
1396
|
-
return (candidate) => typeof candidate === 'string' &&
|
|
1397
|
-
(candidate === value || !!pattern?.test(candidate))
|
|
1398
|
-
}
|
|
1399
|
-
const all = ((await test.queryAll(${JSON.stringify(
|
|
1400
|
-
needsEveryNode ? {} : { idPattern: opts.id },
|
|
1401
|
-
)})) || []).filter(
|
|
1355
|
+
const compile = ${accessibilityTextMatcher.toString()}
|
|
1356
|
+
const all = ((await test.queryAll({})) || []).filter(
|
|
1402
1357
|
(n) => n && n.absolutePosition && n.layout,
|
|
1403
1358
|
)
|
|
1404
1359
|
// maestro reads ios frames as integer edges (AXElement.boundsString)
|
|
@@ -1432,16 +1387,12 @@ export class SootSimBridgeFlowRunner {
|
|
|
1432
1387
|
}
|
|
1433
1388
|
const matchAll = (raw) => {
|
|
1434
1389
|
const sel = typeof raw === 'string' ? { text: raw } : raw
|
|
1435
|
-
const matchesId = compile(sel.id)
|
|
1436
|
-
const matchesText = compile(sel.text)
|
|
1390
|
+
const matchesId = sel.id == null ? null : compile(sel.id, 'id')
|
|
1391
|
+
const matchesText = sel.text == null ? null : compile(sel.text, 'text')
|
|
1437
1392
|
let candidates = all.filter((n) =>
|
|
1438
1393
|
(!matchesId || matchesId(n.testID) || matchesId(n.id)) &&
|
|
1439
|
-
(!matchesText || matchesText(n.text) || matchesText(n.accessibilityLabel)),
|
|
1394
|
+
(!matchesText || matchesText(n.text) || matchesText(n.accessibilityLabel) || matchesText(n.placeholder)),
|
|
1440
1395
|
)
|
|
1441
|
-
const literalText = candidates.filter((n) =>
|
|
1442
|
-
n.text === sel.text || n.accessibilityLabel === sel.text,
|
|
1443
|
-
)
|
|
1444
|
-
if (matchesText && literalText.length > 0) candidates = literalText
|
|
1445
1396
|
if (sel.width != null || sel.height != null) {
|
|
1446
1397
|
const tolerance = sel.tolerance ?? 0
|
|
1447
1398
|
candidates = candidates.filter((n) => {
|
|
@@ -1547,43 +1498,25 @@ export class SootSimBridgeFlowRunner {
|
|
|
1547
1498
|
})()`)
|
|
1548
1499
|
}
|
|
1549
1500
|
|
|
1550
|
-
private async activatePressTarget(
|
|
1501
|
+
private async activatePressTarget(
|
|
1502
|
+
opts: { text?: string; id?: string },
|
|
1503
|
+
nodeId: number,
|
|
1504
|
+
x: number,
|
|
1505
|
+
y: number,
|
|
1506
|
+
) {
|
|
1551
1507
|
const replayTarget: ReplayTapTarget = opts.id
|
|
1552
1508
|
? { id: opts.id, testID: opts.id, text: null }
|
|
1553
1509
|
: { id: null, testID: null, text: opts.text ?? null }
|
|
1554
1510
|
return this.evaluate<any>(`(async () => {
|
|
1555
1511
|
const test = window.__sootsimTest
|
|
1556
1512
|
if (!test) return null
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
}
|
|
1562
|
-
let point = null
|
|
1563
|
-
if (node?.absolutePosition && node?.layout) {
|
|
1564
|
-
point = {
|
|
1565
|
-
x: node.absolutePosition.x + node.layout.width / 2,
|
|
1566
|
-
y: node.absolutePosition.y + node.layout.height / 2,
|
|
1567
|
-
}
|
|
1568
|
-
if (typeof node.nodeId === 'number' && test.resolveTapTarget) {
|
|
1569
|
-
const resolved = await test.resolveTapTarget(node.nodeId)
|
|
1570
|
-
if (
|
|
1571
|
-
resolved &&
|
|
1572
|
-
Number.isFinite(resolved.cx) &&
|
|
1573
|
-
Number.isFinite(resolved.cy)
|
|
1574
|
-
) {
|
|
1575
|
-
point = { x: resolved.cx, y: resolved.cy }
|
|
1576
|
-
}
|
|
1577
|
-
}
|
|
1578
|
-
}
|
|
1579
|
-
${
|
|
1580
|
-
opts.id
|
|
1581
|
-
? `const direct = await test.activatePressById?.(${JSON.stringify(opts.id)})`
|
|
1582
|
-
: `const direct = await test.activatePressByText?.(${JSON.stringify(
|
|
1583
|
-
opts.text || '',
|
|
1584
|
-
)})`
|
|
1513
|
+
let point = { x: ${x}, y: ${y} }
|
|
1514
|
+
const resolved = await test.resolveTapTarget(${nodeId})
|
|
1515
|
+
if (resolved && Number.isFinite(resolved.cx) && Number.isFinite(resolved.cy)) {
|
|
1516
|
+
point = { x: resolved.cx, y: resolved.cy }
|
|
1585
1517
|
}
|
|
1586
|
-
|
|
1518
|
+
const direct = await test.activatePressAt(point.x, point.y, ${nodeId})
|
|
1519
|
+
if (direct?.ok) {
|
|
1587
1520
|
window.dispatchEvent(
|
|
1588
1521
|
new CustomEvent('sootsim:agentAction', {
|
|
1589
1522
|
detail: { type: 'tap', x: point.x, y: point.y, target: ${JSON.stringify(
|
|
@@ -1826,16 +1759,17 @@ export class SootSimBridgeFlowRunner {
|
|
|
1826
1759
|
break
|
|
1827
1760
|
}
|
|
1828
1761
|
}
|
|
1829
|
-
//
|
|
1830
|
-
//
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1762
|
+
// the synthetic-pointer route must retain the matched node's identity.
|
|
1763
|
+
// a new findByText here would widen a failed full-value selector.
|
|
1764
|
+
const direct =
|
|
1765
|
+
typeof element?.nodeId === 'number'
|
|
1766
|
+
? await this.activatePressTarget(
|
|
1767
|
+
opts,
|
|
1768
|
+
element.nodeId,
|
|
1769
|
+
element.absolutePosition.x + element.layout.width / 2,
|
|
1770
|
+
element.absolutePosition.y + element.layout.height / 2,
|
|
1771
|
+
)
|
|
1772
|
+
: null
|
|
1839
1773
|
if (direct?.ok) {
|
|
1840
1774
|
await this.settleAfterInput()
|
|
1841
1775
|
return
|
|
@@ -2775,7 +2709,9 @@ export class SootSimBridgeFlowRunner {
|
|
|
2775
2709
|
const appId = readStringKey(state, 'activeApp') || readRecentShellAppId(state)
|
|
2776
2710
|
if (!appId) throw new Error('launchApp: no simulator app to set permissions for')
|
|
2777
2711
|
for (const [kind, status] of statuses) {
|
|
2778
|
-
await this.callTest('permissionSetAppPermission', appId, kind, {
|
|
2712
|
+
await this.callTest('permissionSetAppPermission', appId, kind, {
|
|
2713
|
+
status,
|
|
2714
|
+
})
|
|
2779
2715
|
}
|
|
2780
2716
|
}
|
|
2781
2717
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.816 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.816 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.816 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.816 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.816 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.816 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.816 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } 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.816 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } 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.816 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.816 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.816 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.816 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -975,14 +975,14 @@ function liftExtensionOverrides(source, extraObjCExtensions) {
|
|
|
975
975
|
const args = forwardedArguments(source.slice(open + 1, close));
|
|
976
976
|
if (args === null) continue;
|
|
977
977
|
const call = (clause.includes("->") ? "return " : "") + (/\b(?:throws|rethrows)\b/.test(clause) ? "try " : "") + (/\basync\b/.test(clause) ? "await " : "") + `__peach_ext_${name2}(${args})`;
|
|
978
|
-
const
|
|
978
|
+
const signature = `func ${name2}${func[3] ?? ""}${source.slice(open, close + 1)}${clause ? ` ${clause}` : ""}`;
|
|
979
979
|
const nameAt = at + rest.indexOf(name2, rest.indexOf("func", "override".length + func[1].length) + 4);
|
|
980
980
|
lifted.push({
|
|
981
981
|
type: top.name,
|
|
982
982
|
member: name2,
|
|
983
983
|
at,
|
|
984
984
|
modifiers,
|
|
985
|
-
decl:
|
|
985
|
+
decl: signature,
|
|
986
986
|
forward: `{ ${call} };`,
|
|
987
987
|
nameAt,
|
|
988
988
|
edits: [
|
|
@@ -1209,9 +1209,9 @@ function lowerNotificationDelegate(source) {
|
|
|
1209
1209
|
const body = code.slice(open + 1, close - 1);
|
|
1210
1210
|
for (const method of body.matchAll(/\bfunc\s+userNotificationCenter\s*\(/g)) {
|
|
1211
1211
|
const at = open + 1 + method.index;
|
|
1212
|
-
const
|
|
1212
|
+
const signature = code.slice(at, code.indexOf("{", at));
|
|
1213
1213
|
const label = Object.keys(selectors).find(
|
|
1214
|
-
(name2) => new RegExp(`\\b${name2}\\b`).test(
|
|
1214
|
+
(name2) => new RegExp(`\\b${name2}\\b`).test(signature)
|
|
1215
1215
|
);
|
|
1216
1216
|
if (label) edits.push([at, 0, `@ObjC(${JSON.stringify(selectors[label])}) `]);
|
|
1217
1217
|
}
|
|
@@ -1309,7 +1309,7 @@ function lowerTableProtocolMethods(source, conformances) {
|
|
|
1309
1309
|
depth--;
|
|
1310
1310
|
if (depth === 1) previous = at + 1;
|
|
1311
1311
|
} else if (depth === 1 && /^func\b/.test(code.slice(at))) {
|
|
1312
|
-
const
|
|
1312
|
+
const signature = code.slice(at, code.indexOf("{", at));
|
|
1313
1313
|
const prefix = code.slice(previous, at);
|
|
1314
1314
|
const attributes = /(?:@\w+(?:\([^{}]*\))?\s*|(?:public|open|private|fileprivate|internal|final|override|static|class|nonisolated|dynamic)\s+)*$/.exec(
|
|
1315
1315
|
prefix
|
|
@@ -1318,12 +1318,12 @@ function lowerTableProtocolMethods(source, conformances) {
|
|
|
1318
1318
|
continue;
|
|
1319
1319
|
let selector;
|
|
1320
1320
|
if (conforms.has("UITableViewDataSource") && /^func\s+numberOfSections\s*\(\s*in\s+\w+\s*:\s*(?:UIKit\.)?UITableView\s*\)/.test(
|
|
1321
|
-
|
|
1321
|
+
signature
|
|
1322
1322
|
))
|
|
1323
1323
|
selector = "numberOfSectionsInTableView:";
|
|
1324
1324
|
else {
|
|
1325
1325
|
const match = /^func\s+tableView\s*\(\s*_\s+\w+\s*:\s*(?:UIKit\.)?UITableView\s*,\s*(\w+)\b/.exec(
|
|
1326
|
-
|
|
1326
|
+
signature
|
|
1327
1327
|
);
|
|
1328
1328
|
if (match) selector = selectors[match[1]];
|
|
1329
1329
|
}
|
|
@@ -3205,7 +3205,10 @@ async function range(url, spec) {
|
|
|
3205
3205
|
async function zipEntries(url) {
|
|
3206
3206
|
const { total } = await range(url, "0-0");
|
|
3207
3207
|
const tail = await range(url, `${Math.max(0, total - 65558)}-${total - 1}`);
|
|
3208
|
-
|
|
3208
|
+
let end = tail.bytes.length - 22;
|
|
3209
|
+
for (; end >= 0; end--)
|
|
3210
|
+
if (tail.bytes.readUInt32LE(end) === 101010256 && end + 22 + tail.bytes.readUInt16LE(end + 20) === tail.bytes.length)
|
|
3211
|
+
break;
|
|
3209
3212
|
if (end < 0) throw new Error(`${url} has no zip end record`);
|
|
3210
3213
|
let size = tail.bytes.readUInt32LE(end + 12);
|
|
3211
3214
|
let offset = tail.bytes.readUInt32LE(end + 16);
|
|
@@ -3250,7 +3253,7 @@ async function swiftBinaryModules(binary) {
|
|
|
3250
3253
|
import_node_fs7.default.writeFileSync(cached2, JSON.stringify(modules));
|
|
3251
3254
|
return modules;
|
|
3252
3255
|
}
|
|
3253
|
-
var import_node_crypto4, import_node_fs7, import_node_os5, import_node_path8, cacheDir
|
|
3256
|
+
var import_node_crypto4, import_node_fs7, import_node_os5, import_node_path8, cacheDir;
|
|
3254
3257
|
var init_swift_binary_modules = __esm({
|
|
3255
3258
|
"src/swift-binary-modules.ts"() {
|
|
3256
3259
|
"use strict";
|
|
@@ -3259,11 +3262,6 @@ var init_swift_binary_modules = __esm({
|
|
|
3259
3262
|
import_node_os5 = __toESM(require("node:os"), 1);
|
|
3260
3263
|
import_node_path8 = __toESM(require("node:path"), 1);
|
|
3261
3264
|
cacheDir = import_node_path8.default.join(import_node_os5.default.tmpdir(), "peach-swift-binary-modules");
|
|
3262
|
-
signature = (bytes, value) => {
|
|
3263
|
-
const needle = Buffer.alloc(4);
|
|
3264
|
-
needle.writeUInt32LE(value);
|
|
3265
|
-
return bytes.lastIndexOf(needle);
|
|
3266
|
-
};
|
|
3267
3265
|
}
|
|
3268
3266
|
});
|
|
3269
3267
|
|
|
@@ -4210,24 +4208,6 @@ function emitSwiftStandin(graphs, options) {
|
|
|
4210
4208
|
);
|
|
4211
4209
|
continue;
|
|
4212
4210
|
}
|
|
4213
|
-
if (raw2 && list2.includes("Hashable")) {
|
|
4214
|
-
if (leaf(member) === "hash(into:)") {
|
|
4215
|
-
emit(
|
|
4216
|
-
`${inner}public func hash(into hasher: inout Hasher) { hasher.combine(rawValue) }`
|
|
4217
|
-
);
|
|
4218
|
-
continue;
|
|
4219
|
-
}
|
|
4220
|
-
if (leaf(member) === "hashValue") {
|
|
4221
|
-
emit(`${inner}public var hashValue: Int { rawValue.hashValue }`);
|
|
4222
|
-
continue;
|
|
4223
|
-
}
|
|
4224
|
-
if (leaf(member).startsWith("==")) {
|
|
4225
|
-
emit(
|
|
4226
|
-
`${inner}public static func == (lhs: ${shape.name}${shape.generics}, rhs: ${shape.name}${shape.generics}) -> Bool { lhs.rawValue == rhs.rawValue }`
|
|
4227
|
-
);
|
|
4228
|
-
continue;
|
|
4229
|
-
}
|
|
4230
|
-
}
|
|
4231
4211
|
emitMember(member, inner, {
|
|
4232
4212
|
openOwner: false,
|
|
4233
4213
|
inClass: false,
|
|
@@ -4243,7 +4223,7 @@ function emitSwiftStandin(graphs, options) {
|
|
|
4243
4223
|
return void skipped.push({ path: path16, reason: `unparsed enum ${text(symbol)}` });
|
|
4244
4224
|
const members = membersOf(id);
|
|
4245
4225
|
const raw2 = rawType(members);
|
|
4246
|
-
const cases =
|
|
4226
|
+
const cases = members.filter(
|
|
4247
4227
|
(member) => member.kind.identifier === "swift.enum.case"
|
|
4248
4228
|
);
|
|
4249
4229
|
const missing = raw2 ? cases.filter((member) => !values.has(member.identifier.precise)) : [];
|
|
@@ -4467,7 +4447,7 @@ var STANDIN_EMIT_VERSION, TYPE_KINDS, MEMBER_KINDS, ACCESSOR_WORD, KEEP_EXTERNAL
|
|
|
4467
4447
|
var init_swift_standin_emit = __esm({
|
|
4468
4448
|
"src/swift-standin-emit.ts"() {
|
|
4469
4449
|
"use strict";
|
|
4470
|
-
STANDIN_EMIT_VERSION = "
|
|
4450
|
+
STANDIN_EMIT_VERSION = "5";
|
|
4471
4451
|
TYPE_KINDS = /* @__PURE__ */ new Set([
|
|
4472
4452
|
"swift.class",
|
|
4473
4453
|
"swift.struct",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.816 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.816 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.816 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.816 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } 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.816 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } 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.816 | (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.816 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } 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.816 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.816 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|