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
package/dist-lib/skills.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;
|
|
@@ -29769,14 +29769,14 @@ function liftExtensionOverrides(source, extraObjCExtensions) {
|
|
|
29769
29769
|
const args = forwardedArguments(source.slice(open + 1, close));
|
|
29770
29770
|
if (args === null) continue;
|
|
29771
29771
|
const call = (clause.includes("->") ? "return " : "") + (/\b(?:throws|rethrows)\b/.test(clause) ? "try " : "") + (/\basync\b/.test(clause) ? "await " : "") + `__peach_ext_${name2}(${args})`;
|
|
29772
|
-
const
|
|
29772
|
+
const signature = `func ${name2}${func[3] ?? ""}${source.slice(open, close + 1)}${clause ? ` ${clause}` : ""}`;
|
|
29773
29773
|
const nameAt = at + rest.indexOf(name2, rest.indexOf("func", "override".length + func[1].length) + 4);
|
|
29774
29774
|
lifted.push({
|
|
29775
29775
|
type: top.name,
|
|
29776
29776
|
member: name2,
|
|
29777
29777
|
at,
|
|
29778
29778
|
modifiers,
|
|
29779
|
-
decl:
|
|
29779
|
+
decl: signature,
|
|
29780
29780
|
forward: `{ ${call} };`,
|
|
29781
29781
|
nameAt,
|
|
29782
29782
|
edits: [
|
|
@@ -30003,9 +30003,9 @@ function lowerNotificationDelegate(source) {
|
|
|
30003
30003
|
const body = code.slice(open + 1, close - 1);
|
|
30004
30004
|
for (const method of body.matchAll(/\bfunc\s+userNotificationCenter\s*\(/g)) {
|
|
30005
30005
|
const at = open + 1 + method.index;
|
|
30006
|
-
const
|
|
30006
|
+
const signature = code.slice(at, code.indexOf("{", at));
|
|
30007
30007
|
const label = Object.keys(selectors).find(
|
|
30008
|
-
(name2) => new RegExp(`\\b${name2}\\b`).test(
|
|
30008
|
+
(name2) => new RegExp(`\\b${name2}\\b`).test(signature)
|
|
30009
30009
|
);
|
|
30010
30010
|
if (label) edits.push([at, 0, `@ObjC(${JSON.stringify(selectors[label])}) `]);
|
|
30011
30011
|
}
|
|
@@ -30103,7 +30103,7 @@ function lowerTableProtocolMethods(source, conformances) {
|
|
|
30103
30103
|
depth--;
|
|
30104
30104
|
if (depth === 1) previous = at + 1;
|
|
30105
30105
|
} else if (depth === 1 && /^func\b/.test(code.slice(at))) {
|
|
30106
|
-
const
|
|
30106
|
+
const signature = code.slice(at, code.indexOf("{", at));
|
|
30107
30107
|
const prefix = code.slice(previous, at);
|
|
30108
30108
|
const attributes = /(?:@\w+(?:\([^{}]*\))?\s*|(?:public|open|private|fileprivate|internal|final|override|static|class|nonisolated|dynamic)\s+)*$/.exec(
|
|
30109
30109
|
prefix
|
|
@@ -30112,12 +30112,12 @@ function lowerTableProtocolMethods(source, conformances) {
|
|
|
30112
30112
|
continue;
|
|
30113
30113
|
let selector;
|
|
30114
30114
|
if (conforms.has("UITableViewDataSource") && /^func\s+numberOfSections\s*\(\s*in\s+\w+\s*:\s*(?:UIKit\.)?UITableView\s*\)/.test(
|
|
30115
|
-
|
|
30115
|
+
signature
|
|
30116
30116
|
))
|
|
30117
30117
|
selector = "numberOfSectionsInTableView:";
|
|
30118
30118
|
else {
|
|
30119
30119
|
const match = /^func\s+tableView\s*\(\s*_\s+\w+\s*:\s*(?:UIKit\.)?UITableView\s*,\s*(\w+)\b/.exec(
|
|
30120
|
-
|
|
30120
|
+
signature
|
|
30121
30121
|
);
|
|
30122
30122
|
if (match) selector = selectors[match[1]];
|
|
30123
30123
|
}
|
|
@@ -32363,7 +32363,10 @@ async function range(url, spec) {
|
|
|
32363
32363
|
async function zipEntries(url) {
|
|
32364
32364
|
const { total } = await range(url, "0-0");
|
|
32365
32365
|
const tail = await range(url, `${Math.max(0, total - 65558)}-${total - 1}`);
|
|
32366
|
-
|
|
32366
|
+
let end = tail.bytes.length - 22;
|
|
32367
|
+
for (; end >= 0; end--)
|
|
32368
|
+
if (tail.bytes.readUInt32LE(end) === 101010256 && end + 22 + tail.bytes.readUInt16LE(end + 20) === tail.bytes.length)
|
|
32369
|
+
break;
|
|
32367
32370
|
if (end < 0) throw new Error(`${url} has no zip end record`);
|
|
32368
32371
|
let size = tail.bytes.readUInt32LE(end + 12);
|
|
32369
32372
|
let offset = tail.bytes.readUInt32LE(end + 16);
|
|
@@ -32408,7 +32411,7 @@ async function swiftBinaryModules(binary2) {
|
|
|
32408
32411
|
import_node_fs13.default.writeFileSync(cached4, JSON.stringify(modules));
|
|
32409
32412
|
return modules;
|
|
32410
32413
|
}
|
|
32411
|
-
var import_node_crypto5, import_node_fs13, import_node_os5, import_node_path13, cacheDir2
|
|
32414
|
+
var import_node_crypto5, import_node_fs13, import_node_os5, import_node_path13, cacheDir2;
|
|
32412
32415
|
var init_swift_binary_modules = __esm({
|
|
32413
32416
|
"src/swift-binary-modules.ts"() {
|
|
32414
32417
|
"use strict";
|
|
@@ -32417,11 +32420,6 @@ var init_swift_binary_modules = __esm({
|
|
|
32417
32420
|
import_node_os5 = __toESM(require("node:os"), 1);
|
|
32418
32421
|
import_node_path13 = __toESM(require("node:path"), 1);
|
|
32419
32422
|
cacheDir2 = import_node_path13.default.join(import_node_os5.default.tmpdir(), "peach-swift-binary-modules");
|
|
32420
|
-
signature = (bytes, value) => {
|
|
32421
|
-
const needle = Buffer.alloc(4);
|
|
32422
|
-
needle.writeUInt32LE(value);
|
|
32423
|
-
return bytes.lastIndexOf(needle);
|
|
32424
|
-
};
|
|
32425
32423
|
}
|
|
32426
32424
|
});
|
|
32427
32425
|
|
|
@@ -33315,24 +33313,6 @@ function emitSwiftStandin(graphs, options) {
|
|
|
33315
33313
|
);
|
|
33316
33314
|
continue;
|
|
33317
33315
|
}
|
|
33318
|
-
if (raw2 && list2.includes("Hashable")) {
|
|
33319
|
-
if (leaf(member) === "hash(into:)") {
|
|
33320
|
-
emit(
|
|
33321
|
-
`${inner}public func hash(into hasher: inout Hasher) { hasher.combine(rawValue) }`
|
|
33322
|
-
);
|
|
33323
|
-
continue;
|
|
33324
|
-
}
|
|
33325
|
-
if (leaf(member) === "hashValue") {
|
|
33326
|
-
emit(`${inner}public var hashValue: Int { rawValue.hashValue }`);
|
|
33327
|
-
continue;
|
|
33328
|
-
}
|
|
33329
|
-
if (leaf(member).startsWith("==")) {
|
|
33330
|
-
emit(
|
|
33331
|
-
`${inner}public static func == (lhs: ${shape.name}${shape.generics}, rhs: ${shape.name}${shape.generics}) -> Bool { lhs.rawValue == rhs.rawValue }`
|
|
33332
|
-
);
|
|
33333
|
-
continue;
|
|
33334
|
-
}
|
|
33335
|
-
}
|
|
33336
33316
|
emitMember(member, inner, {
|
|
33337
33317
|
openOwner: false,
|
|
33338
33318
|
inClass: false,
|
|
@@ -33348,7 +33328,7 @@ function emitSwiftStandin(graphs, options) {
|
|
|
33348
33328
|
return void skipped.push({ path: path38, reason: `unparsed enum ${text(symbol)}` });
|
|
33349
33329
|
const members = membersOf(id);
|
|
33350
33330
|
const raw2 = rawType(members);
|
|
33351
|
-
const cases =
|
|
33331
|
+
const cases = members.filter(
|
|
33352
33332
|
(member) => member.kind.identifier === "swift.enum.case"
|
|
33353
33333
|
);
|
|
33354
33334
|
const missing = raw2 ? cases.filter((member) => !values.has(member.identifier.precise)) : [];
|
|
@@ -33572,7 +33552,7 @@ var STANDIN_EMIT_VERSION, TYPE_KINDS, MEMBER_KINDS, ACCESSOR_WORD, KEEP_EXTERNAL
|
|
|
33572
33552
|
var init_swift_standin_emit = __esm({
|
|
33573
33553
|
"src/swift-standin-emit.ts"() {
|
|
33574
33554
|
"use strict";
|
|
33575
|
-
STANDIN_EMIT_VERSION = "
|
|
33555
|
+
STANDIN_EMIT_VERSION = "5";
|
|
33576
33556
|
TYPE_KINDS = /* @__PURE__ */ new Set([
|
|
33577
33557
|
"swift.class",
|
|
33578
33558
|
"swift.struct",
|
|
@@ -56230,7 +56210,13 @@ function accessibilitySubtreeNodes(node) {
|
|
|
56230
56210
|
return [node, ...node.children.flatMap(accessibilitySubtreeNodes)];
|
|
56231
56211
|
}
|
|
56232
56212
|
function accessibilityTextMatcher(value, kind) {
|
|
56233
|
-
|
|
56213
|
+
let pattern;
|
|
56214
|
+
try {
|
|
56215
|
+
pattern = new RegExp(`(?<![\\s\\S])(?:${value})(?![\\s\\S])`, "ism");
|
|
56216
|
+
} catch {
|
|
56217
|
+
const escaped = value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
56218
|
+
pattern = new RegExp(`(?<![\\s\\S])(?:${escaped})(?![\\s\\S])`, "ism");
|
|
56219
|
+
}
|
|
56234
56220
|
return (candidate) => {
|
|
56235
56221
|
const native = candidate ?? "";
|
|
56236
56222
|
if (kind === "id")
|
|
@@ -56525,7 +56511,7 @@ function normalizeBareStringStep(verb) {
|
|
|
56525
56511
|
function parseFlowSteps(content) {
|
|
56526
56512
|
return parseFlowFile(content).steps;
|
|
56527
56513
|
}
|
|
56528
|
-
var fs33, path36, import_devices4, import_proof_frame, DEFAULT_TIMEOUT, ASSERTION_LOOKUP_MS, FLOW_TIMEOUT_SCALE, scaledTimeout, MAESTRO_SELECTOR_KEYS,
|
|
56514
|
+
var fs33, path36, import_devices4, import_proof_frame, DEFAULT_TIMEOUT, ASSERTION_LOOKUP_MS, FLOW_TIMEOUT_SCALE, scaledTimeout, MAESTRO_SELECTOR_KEYS, UNSUPPORTED_SELECTOR_KEYS, ACCESSIBILITY_SELECTOR_KEYS, ACCESSIBILITY_TRAIT_FILTERS, MAESTRO_PERMISSION_KINDS, MAESTRO_PERMISSION_STATUS, SootSimBridgeFlowRunner;
|
|
56529
56515
|
var init_bridge_flow_runner = __esm({
|
|
56530
56516
|
"cli/bridge-flow-runner.ts"() {
|
|
56531
56517
|
"use strict";
|
|
@@ -56579,19 +56565,6 @@ var init_bridge_flow_runner = __esm({
|
|
|
56579
56565
|
"label",
|
|
56580
56566
|
"css"
|
|
56581
56567
|
]);
|
|
56582
|
-
SELECTOR_FILTER_KEYS = [
|
|
56583
|
-
"childOf",
|
|
56584
|
-
"width",
|
|
56585
|
-
"height",
|
|
56586
|
-
"traits",
|
|
56587
|
-
"enabled",
|
|
56588
|
-
"selected",
|
|
56589
|
-
"checked",
|
|
56590
|
-
"below",
|
|
56591
|
-
"above",
|
|
56592
|
-
"leftOf",
|
|
56593
|
-
"rightOf"
|
|
56594
|
-
];
|
|
56595
56568
|
UNSUPPORTED_SELECTOR_KEYS = ["css"];
|
|
56596
56569
|
ACCESSIBILITY_SELECTOR_KEYS = [
|
|
56597
56570
|
"containsChild",
|
|
@@ -56891,37 +56864,7 @@ var init_bridge_flow_runner = __esm({
|
|
|
56891
56864
|
if (needsAccessibilityProjection(opts)) {
|
|
56892
56865
|
return this.findElementAccessibilityTree(opts);
|
|
56893
56866
|
}
|
|
56894
|
-
|
|
56895
|
-
return this.findElementScoped(opts);
|
|
56896
|
-
}
|
|
56897
|
-
return this.evaluate(`(async () => {
|
|
56898
|
-
const test = window.__sootsimTest
|
|
56899
|
-
if (!test) return null
|
|
56900
|
-
let node = null
|
|
56901
|
-
if (${JSON.stringify(!!opts.text)}) {
|
|
56902
|
-
// maestro text selectors match rendered text and exact accessibility
|
|
56903
|
-
// labels. the engine resolves both in one visibility-aware tree pass.
|
|
56904
|
-
node = await test.findByTextOrLabel(${JSON.stringify(opts.text || "")})
|
|
56905
|
-
}
|
|
56906
|
-
if (!node && ${JSON.stringify(!!opts.id)}) {
|
|
56907
|
-
node = (await test.findByTestId(${JSON.stringify(opts.id || "")})) || (await test.findById(${JSON.stringify(opts.id || "")}))
|
|
56908
|
-
}
|
|
56909
|
-
if (!node || !node.absolutePosition || !node.layout) return null
|
|
56910
|
-
return {
|
|
56911
|
-
nodeId: typeof node.nodeId === 'number' ? node.nodeId : null,
|
|
56912
|
-
id: node.id || null,
|
|
56913
|
-
testID: node.testID || null,
|
|
56914
|
-
text: node.text || null,
|
|
56915
|
-
absolutePosition: node.absolutePosition,
|
|
56916
|
-
layout: node.layout,
|
|
56917
|
-
// the engine's authoritative answer to "is this painted": layout
|
|
56918
|
-
// bounds minus clipping and minus every frontward sibling, overlay
|
|
56919
|
-
// and portal that fully covers it. visibility assertions read this,
|
|
56920
|
-
// never the raw layout box.
|
|
56921
|
-
visibleFrame: node.visibleFrame || null,
|
|
56922
|
-
isTextInput: !!node.isTextInput,
|
|
56923
|
-
}
|
|
56924
|
-
})()`);
|
|
56867
|
+
return this.findElementScoped(opts);
|
|
56925
56868
|
}
|
|
56926
56869
|
// structural filters (containsChild / containsDescendants / focused) read the
|
|
56927
56870
|
// engine's XCTest accessibility projection — one bridge evaluate, then the
|
|
@@ -56970,22 +56913,12 @@ var init_bridge_flow_runner = __esm({
|
|
|
56970
56913
|
// and a relative filter holds when ANY match of its anchor satisfies it.
|
|
56971
56914
|
async findElementScoped(opts) {
|
|
56972
56915
|
const screen = await this.screenBounds();
|
|
56973
|
-
const needsEveryNode = !opts.id || opts.childOf != null || SELECTOR_FILTER_KEYS.some((key2) => opts[key2] != null);
|
|
56974
56916
|
return this.evaluate(`(async () => {
|
|
56975
56917
|
const test = window.__sootsimTest
|
|
56976
56918
|
if (!test || !test.queryAll) return null
|
|
56977
56919
|
const selector = ${JSON.stringify(opts)}
|
|
56978
|
-
|
|
56979
|
-
const
|
|
56980
|
-
if (!value) return null
|
|
56981
|
-
let pattern = null
|
|
56982
|
-
try { pattern = new RegExp('^(?:' + value + ')$') } catch {}
|
|
56983
|
-
return (candidate) => typeof candidate === 'string' &&
|
|
56984
|
-
(candidate === value || !!pattern?.test(candidate))
|
|
56985
|
-
}
|
|
56986
|
-
const all = ((await test.queryAll(${JSON.stringify(
|
|
56987
|
-
needsEveryNode ? {} : { idPattern: opts.id }
|
|
56988
|
-
)})) || []).filter(
|
|
56920
|
+
const compile = ${accessibilityTextMatcher.toString()}
|
|
56921
|
+
const all = ((await test.queryAll({})) || []).filter(
|
|
56989
56922
|
(n) => n && n.absolutePosition && n.layout,
|
|
56990
56923
|
)
|
|
56991
56924
|
// maestro reads ios frames as integer edges (AXElement.boundsString)
|
|
@@ -57019,16 +56952,12 @@ var init_bridge_flow_runner = __esm({
|
|
|
57019
56952
|
}
|
|
57020
56953
|
const matchAll = (raw) => {
|
|
57021
56954
|
const sel = typeof raw === 'string' ? { text: raw } : raw
|
|
57022
|
-
const matchesId = compile(sel.id)
|
|
57023
|
-
const matchesText = compile(sel.text)
|
|
56955
|
+
const matchesId = sel.id == null ? null : compile(sel.id, 'id')
|
|
56956
|
+
const matchesText = sel.text == null ? null : compile(sel.text, 'text')
|
|
57024
56957
|
let candidates = all.filter((n) =>
|
|
57025
56958
|
(!matchesId || matchesId(n.testID) || matchesId(n.id)) &&
|
|
57026
|
-
(!matchesText || matchesText(n.text) || matchesText(n.accessibilityLabel)),
|
|
57027
|
-
)
|
|
57028
|
-
const literalText = candidates.filter((n) =>
|
|
57029
|
-
n.text === sel.text || n.accessibilityLabel === sel.text,
|
|
56959
|
+
(!matchesText || matchesText(n.text) || matchesText(n.accessibilityLabel) || matchesText(n.placeholder)),
|
|
57030
56960
|
)
|
|
57031
|
-
if (matchesText && literalText.length > 0) candidates = literalText
|
|
57032
56961
|
if (sel.width != null || sel.height != null) {
|
|
57033
56962
|
const tolerance = sel.tolerance ?? 0
|
|
57034
56963
|
candidates = candidates.filter((n) => {
|
|
@@ -57132,33 +57061,18 @@ var init_bridge_flow_runner = __esm({
|
|
|
57132
57061
|
return await test.resolveTapTarget(${nodeId})
|
|
57133
57062
|
})()`);
|
|
57134
57063
|
}
|
|
57135
|
-
async activatePressTarget(opts) {
|
|
57064
|
+
async activatePressTarget(opts, nodeId, x, y) {
|
|
57136
57065
|
const replayTarget = opts.id ? { id: opts.id, testID: opts.id, text: null } : { id: null, testID: null, text: opts.text ?? null };
|
|
57137
57066
|
return this.evaluate(`(async () => {
|
|
57138
57067
|
const test = window.__sootsimTest
|
|
57139
57068
|
if (!test) return null
|
|
57140
|
-
|
|
57141
|
-
|
|
57142
|
-
if (
|
|
57143
|
-
point = {
|
|
57144
|
-
|
|
57145
|
-
|
|
57146
|
-
|
|
57147
|
-
if (typeof node.nodeId === 'number' && test.resolveTapTarget) {
|
|
57148
|
-
const resolved = await test.resolveTapTarget(node.nodeId)
|
|
57149
|
-
if (
|
|
57150
|
-
resolved &&
|
|
57151
|
-
Number.isFinite(resolved.cx) &&
|
|
57152
|
-
Number.isFinite(resolved.cy)
|
|
57153
|
-
) {
|
|
57154
|
-
point = { x: resolved.cx, y: resolved.cy }
|
|
57155
|
-
}
|
|
57156
|
-
}
|
|
57157
|
-
}
|
|
57158
|
-
${opts.id ? `const direct = await test.activatePressById?.(${JSON.stringify(opts.id)})` : `const direct = await test.activatePressByText?.(${JSON.stringify(
|
|
57159
|
-
opts.text || ""
|
|
57160
|
-
)})`}
|
|
57161
|
-
if (direct?.ok && point) {
|
|
57069
|
+
let point = { x: ${x}, y: ${y} }
|
|
57070
|
+
const resolved = await test.resolveTapTarget(${nodeId})
|
|
57071
|
+
if (resolved && Number.isFinite(resolved.cx) && Number.isFinite(resolved.cy)) {
|
|
57072
|
+
point = { x: resolved.cx, y: resolved.cy }
|
|
57073
|
+
}
|
|
57074
|
+
const direct = await test.activatePressAt(point.x, point.y, ${nodeId})
|
|
57075
|
+
if (direct?.ok) {
|
|
57162
57076
|
window.dispatchEvent(
|
|
57163
57077
|
new CustomEvent('sootsim:agentAction', {
|
|
57164
57078
|
detail: { type: 'tap', x: point.x, y: point.y, target: ${JSON.stringify(
|
|
@@ -57325,8 +57239,12 @@ var init_bridge_flow_runner = __esm({
|
|
|
57325
57239
|
break;
|
|
57326
57240
|
}
|
|
57327
57241
|
}
|
|
57328
|
-
const
|
|
57329
|
-
|
|
57242
|
+
const direct = typeof element?.nodeId === "number" ? await this.activatePressTarget(
|
|
57243
|
+
opts,
|
|
57244
|
+
element.nodeId,
|
|
57245
|
+
element.absolutePosition.x + element.layout.width / 2,
|
|
57246
|
+
element.absolutePosition.y + element.layout.height / 2
|
|
57247
|
+
) : null;
|
|
57330
57248
|
if (direct?.ok) {
|
|
57331
57249
|
await this.settleAfterInput();
|
|
57332
57250
|
return;
|
|
@@ -58025,7 +57943,9 @@ var init_bridge_flow_runner = __esm({
|
|
|
58025
57943
|
const appId = readStringKey(state, "activeApp") || readRecentShellAppId(state);
|
|
58026
57944
|
if (!appId) throw new Error("launchApp: no simulator app to set permissions for");
|
|
58027
57945
|
for (const [kind, status] of statuses) {
|
|
58028
|
-
await this.callTest("permissionSetAppPermission", appId, kind, {
|
|
57946
|
+
await this.callTest("permissionSetAppPermission", appId, kind, {
|
|
57947
|
+
status
|
|
57948
|
+
});
|
|
58029
57949
|
}
|
|
58030
57950
|
}
|
|
58031
57951
|
async rebaseEventRecorderToVideoStart(videoStartedAtMs) {
|
|
@@ -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;
|
package/dist-lib/swift.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/vite-swift.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;
|
|
@@ -2394,14 +2394,14 @@ function liftExtensionOverrides(source, extraObjCExtensions) {
|
|
|
2394
2394
|
const args = forwardedArguments(source.slice(open + 1, close));
|
|
2395
2395
|
if (args === null) continue;
|
|
2396
2396
|
const call = (clause.includes("->") ? "return " : "") + (/\b(?:throws|rethrows)\b/.test(clause) ? "try " : "") + (/\basync\b/.test(clause) ? "await " : "") + `__peach_ext_${name2}(${args})`;
|
|
2397
|
-
const
|
|
2397
|
+
const signature = `func ${name2}${func[3] ?? ""}${source.slice(open, close + 1)}${clause ? ` ${clause}` : ""}`;
|
|
2398
2398
|
const nameAt = at + rest.indexOf(name2, rest.indexOf("func", "override".length + func[1].length) + 4);
|
|
2399
2399
|
lifted.push({
|
|
2400
2400
|
type: top.name,
|
|
2401
2401
|
member: name2,
|
|
2402
2402
|
at,
|
|
2403
2403
|
modifiers,
|
|
2404
|
-
decl:
|
|
2404
|
+
decl: signature,
|
|
2405
2405
|
forward: `{ ${call} };`,
|
|
2406
2406
|
nameAt,
|
|
2407
2407
|
edits: [
|
|
@@ -2628,9 +2628,9 @@ function lowerNotificationDelegate(source) {
|
|
|
2628
2628
|
const body = code.slice(open + 1, close - 1);
|
|
2629
2629
|
for (const method of body.matchAll(/\bfunc\s+userNotificationCenter\s*\(/g)) {
|
|
2630
2630
|
const at = open + 1 + method.index;
|
|
2631
|
-
const
|
|
2631
|
+
const signature = code.slice(at, code.indexOf("{", at));
|
|
2632
2632
|
const label = Object.keys(selectors).find(
|
|
2633
|
-
(name2) => new RegExp(`\\b${name2}\\b`).test(
|
|
2633
|
+
(name2) => new RegExp(`\\b${name2}\\b`).test(signature)
|
|
2634
2634
|
);
|
|
2635
2635
|
if (label) edits.push([at, 0, `@ObjC(${JSON.stringify(selectors[label])}) `]);
|
|
2636
2636
|
}
|
|
@@ -2728,7 +2728,7 @@ function lowerTableProtocolMethods(source, conformances) {
|
|
|
2728
2728
|
depth--;
|
|
2729
2729
|
if (depth === 1) previous = at + 1;
|
|
2730
2730
|
} else if (depth === 1 && /^func\b/.test(code.slice(at))) {
|
|
2731
|
-
const
|
|
2731
|
+
const signature = code.slice(at, code.indexOf("{", at));
|
|
2732
2732
|
const prefix = code.slice(previous, at);
|
|
2733
2733
|
const attributes = /(?:@\w+(?:\([^{}]*\))?\s*|(?:public|open|private|fileprivate|internal|final|override|static|class|nonisolated|dynamic)\s+)*$/.exec(
|
|
2734
2734
|
prefix
|
|
@@ -2737,12 +2737,12 @@ function lowerTableProtocolMethods(source, conformances) {
|
|
|
2737
2737
|
continue;
|
|
2738
2738
|
let selector;
|
|
2739
2739
|
if (conforms.has("UITableViewDataSource") && /^func\s+numberOfSections\s*\(\s*in\s+\w+\s*:\s*(?:UIKit\.)?UITableView\s*\)/.test(
|
|
2740
|
-
|
|
2740
|
+
signature
|
|
2741
2741
|
))
|
|
2742
2742
|
selector = "numberOfSectionsInTableView:";
|
|
2743
2743
|
else {
|
|
2744
2744
|
const match = /^func\s+tableView\s*\(\s*_\s+\w+\s*:\s*(?:UIKit\.)?UITableView\s*,\s*(\w+)\b/.exec(
|
|
2745
|
-
|
|
2745
|
+
signature
|
|
2746
2746
|
);
|
|
2747
2747
|
if (match) selector = selectors[match[1]];
|
|
2748
2748
|
}
|
|
@@ -4172,15 +4172,13 @@ async function range(url, spec) {
|
|
|
4172
4172
|
total: Number(match[2])
|
|
4173
4173
|
};
|
|
4174
4174
|
}
|
|
4175
|
-
var signature = (bytes, value) => {
|
|
4176
|
-
const needle = Buffer.alloc(4);
|
|
4177
|
-
needle.writeUInt32LE(value);
|
|
4178
|
-
return bytes.lastIndexOf(needle);
|
|
4179
|
-
};
|
|
4180
4175
|
async function zipEntries(url) {
|
|
4181
4176
|
const { total } = await range(url, "0-0");
|
|
4182
4177
|
const tail = await range(url, `${Math.max(0, total - 65558)}-${total - 1}`);
|
|
4183
|
-
|
|
4178
|
+
let end = tail.bytes.length - 22;
|
|
4179
|
+
for (; end >= 0; end--)
|
|
4180
|
+
if (tail.bytes.readUInt32LE(end) === 101010256 && end + 22 + tail.bytes.readUInt16LE(end + 20) === tail.bytes.length)
|
|
4181
|
+
break;
|
|
4184
4182
|
if (end < 0) throw new Error(`${url} has no zip end record`);
|
|
4185
4183
|
let size = tail.bytes.readUInt32LE(end + 12);
|
|
4186
4184
|
let offset = tail.bytes.readUInt32LE(end + 16);
|
|
@@ -5017,7 +5015,7 @@ function getCliVersion() {
|
|
|
5017
5015
|
}
|
|
5018
5016
|
|
|
5019
5017
|
// src/swift-standin-emit.ts
|
|
5020
|
-
var STANDIN_EMIT_VERSION = "
|
|
5018
|
+
var STANDIN_EMIT_VERSION = "5";
|
|
5021
5019
|
var TYPE_KINDS = /* @__PURE__ */ new Set([
|
|
5022
5020
|
"swift.class",
|
|
5023
5021
|
"swift.struct",
|
|
@@ -5455,24 +5453,6 @@ function emitSwiftStandin(graphs, options) {
|
|
|
5455
5453
|
);
|
|
5456
5454
|
continue;
|
|
5457
5455
|
}
|
|
5458
|
-
if (raw2 && list2.includes("Hashable")) {
|
|
5459
|
-
if (leaf(member) === "hash(into:)") {
|
|
5460
|
-
emit(
|
|
5461
|
-
`${inner}public func hash(into hasher: inout Hasher) { hasher.combine(rawValue) }`
|
|
5462
|
-
);
|
|
5463
|
-
continue;
|
|
5464
|
-
}
|
|
5465
|
-
if (leaf(member) === "hashValue") {
|
|
5466
|
-
emit(`${inner}public var hashValue: Int { rawValue.hashValue }`);
|
|
5467
|
-
continue;
|
|
5468
|
-
}
|
|
5469
|
-
if (leaf(member).startsWith("==")) {
|
|
5470
|
-
emit(
|
|
5471
|
-
`${inner}public static func == (lhs: ${shape.name}${shape.generics}, rhs: ${shape.name}${shape.generics}) -> Bool { lhs.rawValue == rhs.rawValue }`
|
|
5472
|
-
);
|
|
5473
|
-
continue;
|
|
5474
|
-
}
|
|
5475
|
-
}
|
|
5476
5456
|
emitMember(member, inner, {
|
|
5477
5457
|
openOwner: false,
|
|
5478
5458
|
inClass: false,
|
|
@@ -5488,7 +5468,7 @@ function emitSwiftStandin(graphs, options) {
|
|
|
5488
5468
|
return void skipped.push({ path: path18, reason: `unparsed enum ${text(symbol)}` });
|
|
5489
5469
|
const members = membersOf(id);
|
|
5490
5470
|
const raw2 = rawType(members);
|
|
5491
|
-
const cases =
|
|
5471
|
+
const cases = members.filter(
|
|
5492
5472
|
(member) => member.kind.identifier === "swift.enum.case"
|
|
5493
5473
|
);
|
|
5494
5474
|
const missing = raw2 ? cases.filter((member) => !values.has(member.identifier.precise)) : [];
|
package/dist-lib/vite.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;
|
package/package.json
CHANGED
|
@@ -40,12 +40,6 @@ async function range(url: string, spec: string) {
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
const signature = (bytes: Buffer, value: number) => {
|
|
44
|
-
const needle = Buffer.alloc(4)
|
|
45
|
-
needle.writeUInt32LE(value)
|
|
46
|
-
return bytes.lastIndexOf(needle)
|
|
47
|
-
}
|
|
48
|
-
|
|
49
43
|
// a zip's entry names from its central directory: the end record (at most
|
|
50
44
|
// 22 bytes plus a 64k comment from the end), zip64's when the classic
|
|
51
45
|
// fields overflow, then the directory itself. github's release storage
|
|
@@ -53,7 +47,15 @@ const signature = (bytes: Buffer, value: number) => {
|
|
|
53
47
|
async function zipEntries(url: string): Promise<string[]> {
|
|
54
48
|
const { total } = await range(url, '0-0')
|
|
55
49
|
const tail = await range(url, `${Math.max(0, total - 65558)}-${total - 1}`)
|
|
56
|
-
|
|
50
|
+
// a comment may itself contain the signature; the record's comment length
|
|
51
|
+
// must end exactly at the archive boundary.
|
|
52
|
+
let end = tail.bytes.length - 22
|
|
53
|
+
for (; end >= 0; end--)
|
|
54
|
+
if (
|
|
55
|
+
tail.bytes.readUInt32LE(end) === 0x06054b50 &&
|
|
56
|
+
end + 22 + tail.bytes.readUInt16LE(end + 20) === tail.bytes.length
|
|
57
|
+
)
|
|
58
|
+
break
|
|
57
59
|
if (end < 0) throw new Error(`${url} has no zip end record`)
|
|
58
60
|
let size = tail.bytes.readUInt32LE(end + 12)
|
|
59
61
|
let offset = tail.bytes.readUInt32LE(end + 16)
|
|
@@ -85,7 +85,7 @@ export type StandinResult = {
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
/** bump when emitted source changes: the stand-in cache keys on it. */
|
|
88
|
-
export const STANDIN_EMIT_VERSION = '
|
|
88
|
+
export const STANDIN_EMIT_VERSION = '5'
|
|
89
89
|
|
|
90
90
|
const TYPE_KINDS = new Set([
|
|
91
91
|
'swift.class',
|
|
@@ -677,27 +677,6 @@ export function emitSwiftStandin(
|
|
|
677
677
|
)
|
|
678
678
|
continue
|
|
679
679
|
}
|
|
680
|
-
// a hashable raw-value struct hashes and equates by its raw
|
|
681
|
-
// value, which is what swift synthesizes when the graph spells
|
|
682
|
-
// the members out; without it any hashed use traps.
|
|
683
|
-
if (raw && list.includes('Hashable')) {
|
|
684
|
-
if (leaf(member) === 'hash(into:)') {
|
|
685
|
-
emit(
|
|
686
|
-
`${inner}public func hash(into hasher: inout Hasher) { hasher.combine(rawValue) }`,
|
|
687
|
-
)
|
|
688
|
-
continue
|
|
689
|
-
}
|
|
690
|
-
if (leaf(member) === 'hashValue') {
|
|
691
|
-
emit(`${inner}public var hashValue: Int { rawValue.hashValue }`)
|
|
692
|
-
continue
|
|
693
|
-
}
|
|
694
|
-
if (leaf(member).startsWith('==')) {
|
|
695
|
-
emit(
|
|
696
|
-
`${inner}public static func == (lhs: ${shape.name}${shape.generics}, rhs: ${shape.name}${shape.generics}) -> Bool { lhs.rawValue == rhs.rawValue }`,
|
|
697
|
-
)
|
|
698
|
-
continue
|
|
699
|
-
}
|
|
700
|
-
}
|
|
701
680
|
emitMember(member, inner, {
|
|
702
681
|
openOwner: false,
|
|
703
682
|
inClass: false,
|
|
@@ -713,7 +692,7 @@ export function emitSwiftStandin(
|
|
|
713
692
|
return void skipped.push({ path, reason: `unparsed enum ${text(symbol)}` })
|
|
714
693
|
const members = membersOf(id)
|
|
715
694
|
const raw = rawType(members)
|
|
716
|
-
const cases =
|
|
695
|
+
const cases = members.filter(
|
|
717
696
|
(member) => member.kind.identifier === 'swift.enum.case',
|
|
718
697
|
)
|
|
719
698
|
const missing = raw
|