peachsim 0.1.1667 → 0.1.1674
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/cli/bridge-flow-runner.ts +4 -1
- package/cli/commands/coverage-swift.ts +291 -0
- package/cli/commands/coverage.ts +168 -24
- package/cli/commands/diagnose.ts +1 -19
- package/cli/commands/inspect/settling.ts +37 -4
- package/cli/commands/react.ts +3 -18
- package/cli/commands/screenshot.ts +1 -1
- package/cli/commands/screenshots-capture.ts +1 -1
- package/cli/drivers/playwright-provisioning.ts +1 -4
- package/cli/drivers/playwright.ts +15 -1
- package/cli/scene-video.ts +1 -1
- package/cli/ui.ts +20 -0
- package/cli/ws-bridge.ts +7 -36
- package/detox/frame-identity.cjs +21 -0
- package/detox/frame-identity.d.cts +6 -0
- package/detox/index.ts +39 -33
- package/detox/jest-environment.cjs +4 -1
- package/detox/jest-setup-after-env.cjs +0 -4
- package/detox/navigation-lifecycle.ts +2 -2
- package/detox/proof-observer.ts +126 -0
- package/dist-lib/agent-daemon-client.cjs +29 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +10 -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 +557 -158
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +5098 -7344
- package/dist-lib/detox/jest-environment.cjs +4 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +602 -152
- 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 +688 -194
- package/dist-lib/host/fetch-proxy-handler.cjs +6 -3
- 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 +247 -11
- 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 +10 -1
- package/dist-lib/metro-production-bundle.mjs +12 -1
- package/dist-lib/metro.cjs +155 -5
- package/dist-lib/native-app-identity-project.cjs +43 -5
- package/dist-lib/native-app-identity-project.mjs +43 -5
- 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 +21 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +73 -27
- package/dist-lib/public-origins-lib-static.json +1 -1
- package/dist-lib/public-origins-lib.json +563 -183
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +964 -0
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +38 -5
- package/dist-lib/sdk.mjs +38 -5
- package/dist-lib/skills.cjs +1031 -530
- package/dist-lib/swift-compile.cjs +298 -86
- package/dist-lib/swift-compile.mjs +298 -86
- package/dist-lib/swift-package.cjs +53 -4
- package/dist-lib/swift-package.mjs +52 -4
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +25 -44
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +603 -114
- package/dist-lib/vite.cjs +65 -3
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/clipboardContract.d.ts +7 -0
- package/dist-types/packages/peach-engine/src/engine/glass-material.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/engine/inspect-outline.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/paint-boundary.d.ts +4 -1
- package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +7 -0
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime-kind.d.ts +24 -0
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +4 -2
- package/dist-types/packages/peach-engine/src/rolldown-bundle-inventory.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/settings/devices.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/clipboardBridgeContract.d.ts +18 -0
- package/dist-types/packages/peach-globals/src/compositorBridgeContract.d.ts +10 -1
- package/dist-types/packages/peach-globals/src/index.d.ts +2 -2
- package/dist-types/packages/peach-globals/src/nodeContract.d.ts +1 -0
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h +2 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +54 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +23 -4
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCDynamicStore.h +439 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCDynamicStoreCopySpecific.h +216 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCDynamicStoreKey.h +267 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetwork.h +204 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetworkConfiguration.h +1393 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetworkConnection.h +568 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetworkReachability.h +369 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCPreferences.h +473 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCPreferencesPath.h +179 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCPreferencesSetSpecific.h +95 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCSchemaDefinitions.h +2395 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SystemConfiguration.h +184 -0
- package/sdk/ios/usr/include/_ctype.h +388 -0
- package/sdk/ios/usr/include/_inttypes.h +296 -0
- package/sdk/ios/usr/include/_locale.h +83 -0
- package/sdk/ios/usr/include/_locale_posix2008.h +65 -0
- package/sdk/ios/usr/include/_time.h +207 -0
- package/sdk/ios/usr/include/ctype.h +70 -0
- package/sdk/ios/usr/include/dispatch/dispatch.h +69 -6
- package/sdk/ios/usr/include/inttypes.h +35 -0
- package/sdk/ios/usr/include/libkern/OSByteOrder.h +315 -0
- package/sdk/ios/usr/include/libkern/machine/OSByteOrder.h +147 -0
- package/sdk/ios/usr/include/locale.h +59 -0
- package/sdk/ios/usr/include/runetype.h +118 -0
- package/sdk/ios/usr/include/setjmp.h +99 -0
- package/sdk/ios/usr/include/sys/_types/_clock_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_ct_rune_t.h +33 -0
- package/sdk/ios/usr/include/sys/_types/_rune_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_time_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_wint_t.h +33 -0
- package/sdk/ios/usr/include/sys/cdefs.h +2 -0
- package/sdk/ios/usr/include/time.h +67 -2
- package/src/bridge-contract.ts +42 -0
- package/src/chromium-admission.ts +196 -0
- package/src/host/bridge-host.ts +6 -43
- package/src/host/rolldown-bundle-forward.ts +4 -1
- package/src/launch-deadline.ts +74 -0
- package/src/nitro-adapter.lock.json +3 -3
- package/src/profiles.ts +21 -0
- package/src/react-native-coverage/capability-reference-resolution.ts +402 -0
- package/src/react-native-coverage/capability-source-references.ts +1296 -0
- package/src/react-native-coverage/native-typescript-parser.ts +74 -0
- package/src/react-native-coverage/project-aliases.ts +207 -0
- package/src/react-native-coverage/verified-reach.ts +47 -0
- package/src/reap-browser.ts +1019 -0
- package/src/skills/builtin/a11y-review.ts +1 -1
- package/src/skills/builtin/perf-profile.ts +1 -1
- package/src/skills/builtin/screenshot-all.ts +1 -1
- package/src/skills/builtin/visual-diff.ts +1 -1
- package/src/swift-compile.ts +109 -57
- package/src/swift-coverage/indexdump.ts +80 -0
- package/src/swift-coverage/indexing.ts +147 -0
- package/src/swift-coverage/package.ts +230 -0
- package/src/swift-coverage/provenance.ts +47 -0
- package/src/swift-coverage/reader.ts +81 -0
- package/src/swift-coverage/source.ts +252 -0
- package/src/swift-coverage/types.ts +58 -0
- package/src/swift-coverage/xcode-assets.ts +175 -0
- package/src/swift-coverage/xcode-bridging.ts +160 -0
- package/src/swift-coverage/xcode-packages.ts +251 -0
- package/src/swift-coverage/xcode-strings.ts +78 -0
- package/src/swift-coverage/xcode.ts +656 -0
- package/src/swift-distribution.lock.json +8 -8
- package/src/swift-host.ts +21 -1
- package/src/swift-objc-compile.ts +7 -3
- package/src/swift-objc-import.ts +191 -27
- package/src/swift-objc-metadata.ts +2 -2
- package/src/swift-objc-standin.ts +9 -2
- package/src/swift-package-manifest.ts +134 -13
- package/src/swift-package.ts +69 -4
- package/src/swift-standins.ts +4 -1
- package/src/swift-submit.ts +2 -1
- package/src/swift-toolchain.ts +36 -61
- package/src/worker-system-chunks.ts +3 -10
- package/src/xcode-project.ts +5 -5
- package/detox/attempt-events.cjs +0 -914
- package/detox/attempt-events.d.cts +0 -113
- package/detox/motion-change.cjs +0 -524
- package/detox/motion-change.d.cts +0 -140
- package/detox/motion-leg-starts.cjs +0 -20
- package/detox/motion-leg-starts.d.cts +0 -8
- package/detox/proof-frame.cjs +0 -190
- package/detox/record-block-execution.cjs +0 -78
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1674 | (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;
|
|
@@ -35,6 +35,217 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
35
35
|
));
|
|
36
36
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
37
37
|
|
|
38
|
+
// <define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>
|
|
39
|
+
var init_define_SWIFT_COVERAGE_SOURCE_DIGESTS = __esm({
|
|
40
|
+
"<define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>"() {
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
// src/chromium-admission.ts
|
|
45
|
+
function readChromiumQueue(deps, verified2, own) {
|
|
46
|
+
const { fs: fs54, os: os14, path: path62, childProcess: childProcess3 } = deps;
|
|
47
|
+
const dir = path62.join(
|
|
48
|
+
process.platform === "win32" ? os14.tmpdir() : "/tmp",
|
|
49
|
+
"chromium-admission"
|
|
50
|
+
);
|
|
51
|
+
fs54.mkdirSync(dir, { recursive: true });
|
|
52
|
+
const limit = Math.max(2, Math.floor(os14.cpus().length / 3));
|
|
53
|
+
const live = (entry) => {
|
|
54
|
+
const match = /^(\d+)-(\d+)-/.exec(entry);
|
|
55
|
+
if (!match) return false;
|
|
56
|
+
const pid = Number(match[1]);
|
|
57
|
+
try {
|
|
58
|
+
process.kill(pid, 0);
|
|
59
|
+
} catch (err) {
|
|
60
|
+
if (!(err instanceof Error && "code" in err && err.code === "EPERM")) return false;
|
|
61
|
+
}
|
|
62
|
+
const known = verified2.get(entry);
|
|
63
|
+
if (known !== void 0) return known;
|
|
64
|
+
let same = pid === process.pid;
|
|
65
|
+
if (!same) {
|
|
66
|
+
let started = "";
|
|
67
|
+
try {
|
|
68
|
+
started = childProcess3.execFileSync("ps", ["-p", String(pid), "-o", "lstart="], { encoding: "utf8" }).trim();
|
|
69
|
+
} catch (err) {
|
|
70
|
+
const gone = err instanceof Error && "status" in err && err.status === 1;
|
|
71
|
+
if (!gone) return true;
|
|
72
|
+
}
|
|
73
|
+
const startedAt = Date.parse(started);
|
|
74
|
+
if (started && Number.isNaN(startedAt)) return true;
|
|
75
|
+
same = Math.abs(startedAt / 1e3 - Number(match[2])) <= 2;
|
|
76
|
+
}
|
|
77
|
+
verified2.set(entry, same);
|
|
78
|
+
return same;
|
|
79
|
+
};
|
|
80
|
+
const tickets = [];
|
|
81
|
+
for (const entry of fs54.readdirSync(dir)) {
|
|
82
|
+
if (entry !== own && !live(entry)) {
|
|
83
|
+
try {
|
|
84
|
+
fs54.unlinkSync(path62.join(dir, entry));
|
|
85
|
+
} catch {
|
|
86
|
+
}
|
|
87
|
+
continue;
|
|
88
|
+
}
|
|
89
|
+
try {
|
|
90
|
+
tickets.push({
|
|
91
|
+
entry,
|
|
92
|
+
created: fs54.statSync(path62.join(dir, entry), { bigint: true }).ctimeNs
|
|
93
|
+
});
|
|
94
|
+
} catch {
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
tickets.sort(
|
|
98
|
+
(a, b) => a.created === b.created ? a.entry < b.entry ? -1 : 1 : a.created < b.created ? -1 : 1
|
|
99
|
+
);
|
|
100
|
+
return { dir, limit, tickets: tickets.map((t) => t.entry) };
|
|
101
|
+
}
|
|
102
|
+
async function acquireChromiumAdmission(deps) {
|
|
103
|
+
const { fs: fs54, path: path62, label, readQueue, signal } = deps;
|
|
104
|
+
signal?.throwIfAborted();
|
|
105
|
+
const queuedAt = Date.now();
|
|
106
|
+
const verified2 = /* @__PURE__ */ new Map();
|
|
107
|
+
const startedAt = Math.round(Date.now() / 1e3 - process.uptime());
|
|
108
|
+
const name3 = `${process.pid}-${startedAt}-${Math.random().toString(36).slice(2, 10)}`;
|
|
109
|
+
const ticket = path62.join(readQueue(deps, verified2, name3).dir, name3);
|
|
110
|
+
fs54.closeSync(fs54.openSync(ticket, "wx"));
|
|
111
|
+
let released = false;
|
|
112
|
+
const release = () => {
|
|
113
|
+
if (released) return;
|
|
114
|
+
released = true;
|
|
115
|
+
process.removeListener("exit", release);
|
|
116
|
+
try {
|
|
117
|
+
fs54.unlinkSync(ticket);
|
|
118
|
+
} catch {
|
|
119
|
+
}
|
|
120
|
+
process.stderr.write(`[chromium-admission] ${label}: released ${name3}
|
|
121
|
+
`);
|
|
122
|
+
};
|
|
123
|
+
process.on("exit", release);
|
|
124
|
+
signal?.addEventListener("abort", release, { once: true });
|
|
125
|
+
let waited = false;
|
|
126
|
+
try {
|
|
127
|
+
while (true) {
|
|
128
|
+
signal?.throwIfAborted();
|
|
129
|
+
const { limit, tickets } = readQueue(deps, verified2, name3);
|
|
130
|
+
const rank = tickets.indexOf(name3);
|
|
131
|
+
if (rank < 0) {
|
|
132
|
+
throw new Error(`[chromium-admission] ${label}: reservation disappeared`);
|
|
133
|
+
}
|
|
134
|
+
if (rank < limit) {
|
|
135
|
+
process.stderr.write(
|
|
136
|
+
`[chromium-admission] ${label}: admitted ${name3} after ${Date.now() - queuedAt}ms
|
|
137
|
+
`
|
|
138
|
+
);
|
|
139
|
+
return release;
|
|
140
|
+
}
|
|
141
|
+
if (!waited) {
|
|
142
|
+
const holders = tickets.slice(0, limit).map((t) => t.split("-")[0]);
|
|
143
|
+
process.stderr.write(
|
|
144
|
+
`[chromium-admission] ${label}: ${limit} chromium launches already run on this machine (pids ${holders.join(" ")}), queued ${rank - limit + 1}
|
|
145
|
+
`
|
|
146
|
+
);
|
|
147
|
+
waited = true;
|
|
148
|
+
}
|
|
149
|
+
await new Promise((resolve12, reject) => {
|
|
150
|
+
const abort = () => {
|
|
151
|
+
clearTimeout(timer);
|
|
152
|
+
signal?.removeEventListener("abort", abort);
|
|
153
|
+
reject(
|
|
154
|
+
new Error(`[chromium-admission] ${label}: cancelled`, {
|
|
155
|
+
cause: signal?.reason
|
|
156
|
+
})
|
|
157
|
+
);
|
|
158
|
+
};
|
|
159
|
+
const timer = setTimeout(() => {
|
|
160
|
+
signal?.removeEventListener("abort", abort);
|
|
161
|
+
resolve12();
|
|
162
|
+
}, 500);
|
|
163
|
+
signal?.addEventListener("abort", abort, { once: true });
|
|
164
|
+
if (signal?.aborted) abort();
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
} catch (error) {
|
|
168
|
+
release();
|
|
169
|
+
throw error;
|
|
170
|
+
} finally {
|
|
171
|
+
signal?.removeEventListener("abort", release);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
var init_chromium_admission = __esm({
|
|
175
|
+
"src/chromium-admission.ts"() {
|
|
176
|
+
"use strict";
|
|
177
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
// src/launch-deadline.ts
|
|
182
|
+
function heldPids() {
|
|
183
|
+
try {
|
|
184
|
+
const ledger = JSON.parse(
|
|
185
|
+
(0, import_node_fs.readFileSync)(LEDGER_PATH, "utf8")
|
|
186
|
+
);
|
|
187
|
+
return Object.values(ledger).flatMap((procs) => procs.map((proc) => proc.pid));
|
|
188
|
+
} catch {
|
|
189
|
+
return [];
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
function holdsThisProcessTree(held) {
|
|
193
|
+
const parents = /* @__PURE__ */ new Map();
|
|
194
|
+
for (const line of (0, import_node_child_process.execFileSync)("ps", ["-A", "-o", "pid=,ppid="], {
|
|
195
|
+
encoding: "utf8"
|
|
196
|
+
}).split("\n")) {
|
|
197
|
+
const [pid, ppid] = line.trim().split(/\s+/).map(Number);
|
|
198
|
+
if (pid && ppid !== void 0) parents.set(pid, ppid);
|
|
199
|
+
}
|
|
200
|
+
const ancestors = /* @__PURE__ */ new Set();
|
|
201
|
+
for (let pid = process.pid, hops = 0; pid && hops < 64; hops++) {
|
|
202
|
+
ancestors.add(pid);
|
|
203
|
+
pid = parents.get(pid);
|
|
204
|
+
}
|
|
205
|
+
return held.some((start) => {
|
|
206
|
+
if (ancestors.has(start)) return true;
|
|
207
|
+
for (let pid = parents.get(start), hops = 0; pid && hops < 64; hops++) {
|
|
208
|
+
if (pid === process.pid) return true;
|
|
209
|
+
pid = parents.get(pid);
|
|
210
|
+
}
|
|
211
|
+
return false;
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
function startLaunchDeadline(budgetMs, onExpire) {
|
|
215
|
+
let remaining = budgetMs;
|
|
216
|
+
let last = Date.now();
|
|
217
|
+
const poll2 = setInterval(() => {
|
|
218
|
+
const now = Date.now();
|
|
219
|
+
const elapsed = Math.min(now - last, MAX_COUNTED_GAP_MS);
|
|
220
|
+
last = now;
|
|
221
|
+
const held = heldPids();
|
|
222
|
+
if (held.length > 0 && holdsThisProcessTree(held)) return;
|
|
223
|
+
remaining -= elapsed;
|
|
224
|
+
if (remaining <= 0) {
|
|
225
|
+
clearInterval(poll2);
|
|
226
|
+
onExpire();
|
|
227
|
+
}
|
|
228
|
+
}, TICK_MS);
|
|
229
|
+
return () => clearInterval(poll2);
|
|
230
|
+
}
|
|
231
|
+
var import_node_child_process, import_node_fs, os, path, LEDGER_PATH, TICK_MS, MAX_COUNTED_GAP_MS;
|
|
232
|
+
var init_launch_deadline = __esm({
|
|
233
|
+
"src/launch-deadline.ts"() {
|
|
234
|
+
"use strict";
|
|
235
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
236
|
+
import_node_child_process = require("node:child_process");
|
|
237
|
+
import_node_fs = require("node:fs");
|
|
238
|
+
os = __toESM(require("node:os"), 1);
|
|
239
|
+
path = __toESM(require("node:path"), 1);
|
|
240
|
+
LEDGER_PATH = path.join(
|
|
241
|
+
process.env.TM_HOME || path.join(os.homedir(), ".team-machine"),
|
|
242
|
+
"governor-pauses.json"
|
|
243
|
+
);
|
|
244
|
+
TICK_MS = 500;
|
|
245
|
+
MAX_COUNTED_GAP_MS = TICK_MS * 3;
|
|
246
|
+
}
|
|
247
|
+
});
|
|
248
|
+
|
|
38
249
|
// src/process-group.ts
|
|
39
250
|
function listProcessChildren(parents, timeoutMs = 3e3) {
|
|
40
251
|
if (parents.some((pid) => !Number.isInteger(pid) || pid <= 1))
|
|
@@ -47,11 +258,11 @@ function listProcessChildren(parents, timeoutMs = 3e3) {
|
|
|
47
258
|
for (const parent of parents) {
|
|
48
259
|
try {
|
|
49
260
|
const tasks = `/proc/${parent}/task`;
|
|
50
|
-
for (const thread of (0,
|
|
261
|
+
for (const thread of (0, import_node_fs2.readdirSync)(tasks)) {
|
|
51
262
|
if (Date.now() >= deadline)
|
|
52
263
|
throw new Error("process descendant inspection exceeded its deadline");
|
|
53
264
|
try {
|
|
54
|
-
lists.push((0,
|
|
265
|
+
lists.push((0, import_node_fs2.readFileSync)(`${tasks}/${thread}/children`, "utf8"));
|
|
55
266
|
} catch (error) {
|
|
56
267
|
if (!(error instanceof Error && "code" in error && error.code === "ENOENT"))
|
|
57
268
|
throw error;
|
|
@@ -64,7 +275,7 @@ function listProcessChildren(parents, timeoutMs = 3e3) {
|
|
|
64
275
|
}
|
|
65
276
|
children = lists.join(" ");
|
|
66
277
|
} else {
|
|
67
|
-
const result = (0,
|
|
278
|
+
const result = (0, import_node_child_process2.spawnSync)("pgrep", ["-P", parents.join(",")], {
|
|
68
279
|
encoding: "utf8",
|
|
69
280
|
stdio: ["ignore", "pipe", "pipe"],
|
|
70
281
|
timeout: Math.max(1, timeoutMs),
|
|
@@ -93,12 +304,12 @@ function signalProcessGroup(child, signal) {
|
|
|
93
304
|
}
|
|
94
305
|
}
|
|
95
306
|
async function protectProcessFreeze(rootPid) {
|
|
96
|
-
const directory = (0,
|
|
307
|
+
const directory = (0, import_node_fs2.mkdtempSync)((0, import_node_path.join)((0, import_node_os.tmpdir)(), "peach-process-freeze-"));
|
|
97
308
|
const journal = (0, import_node_path.join)(directory, "targets");
|
|
98
|
-
(0,
|
|
309
|
+
(0, import_node_fs2.writeFileSync)(journal, `group ${rootPid}
|
|
99
310
|
pid ${rootPid}
|
|
100
311
|
`, { mode: 384 });
|
|
101
|
-
const guard = (0,
|
|
312
|
+
const guard = (0, import_node_child_process2.spawn)(
|
|
102
313
|
"/bin/sh",
|
|
103
314
|
[
|
|
104
315
|
"-c",
|
|
@@ -146,7 +357,7 @@ pid ${rootPid}
|
|
|
146
357
|
if (!(control instanceof import_node_stream.Duplex) || !output) {
|
|
147
358
|
guard.kill();
|
|
148
359
|
await closed;
|
|
149
|
-
(0,
|
|
360
|
+
(0, import_node_fs2.rmSync)(directory, { recursive: true, force: true });
|
|
150
361
|
throw new Error("process freeze guard control pipe is unavailable");
|
|
151
362
|
}
|
|
152
363
|
control.on("error", () => {
|
|
@@ -179,20 +390,20 @@ pid ${rootPid}
|
|
|
179
390
|
} catch (error) {
|
|
180
391
|
control.destroy();
|
|
181
392
|
await closed;
|
|
182
|
-
(0,
|
|
393
|
+
(0, import_node_fs2.rmSync)(directory, { recursive: true, force: true });
|
|
183
394
|
throw error;
|
|
184
395
|
}
|
|
185
396
|
return {
|
|
186
397
|
record(pid) {
|
|
187
398
|
if (guardClosed || control.destroyed)
|
|
188
399
|
throw new Error("process freeze guard exited during capture");
|
|
189
|
-
(0,
|
|
400
|
+
(0, import_node_fs2.appendFileSync)(journal, `pid ${pid}
|
|
190
401
|
`);
|
|
191
402
|
},
|
|
192
403
|
async release(disarm) {
|
|
193
404
|
control.end(disarm ? "disarm\n" : void 0);
|
|
194
405
|
await closed;
|
|
195
|
-
(0,
|
|
406
|
+
(0, import_node_fs2.rmSync)(directory, { recursive: true, force: true });
|
|
196
407
|
}
|
|
197
408
|
};
|
|
198
409
|
}
|
|
@@ -206,7 +417,7 @@ function processesHaveExited(pids, pgid) {
|
|
|
206
417
|
}
|
|
207
418
|
});
|
|
208
419
|
if (!mayExist) return true;
|
|
209
|
-
const result = (0,
|
|
420
|
+
const result = (0, import_node_child_process2.spawnSync)("ps", ["-A", "-o", "pid=,pgid=,stat="], {
|
|
210
421
|
encoding: "utf8",
|
|
211
422
|
stdio: ["ignore", "pipe", "pipe"],
|
|
212
423
|
timeout: FORCED_EXIT_TIMEOUT_MS,
|
|
@@ -346,12 +557,13 @@ async function terminateProcessGroup(child, signal = "SIGTERM", gracefulTimeoutM
|
|
|
346
557
|
}
|
|
347
558
|
if (inspectionError) throw inspectionError;
|
|
348
559
|
}
|
|
349
|
-
var
|
|
560
|
+
var import_node_child_process2, import_node_fs2, import_node_os, import_node_path, import_node_stream, import_promises, GRACEFUL_TIMEOUT_MS, FORCED_EXIT_TIMEOUT_MS, FREEZE_GUARD_NAME;
|
|
350
561
|
var init_process_group = __esm({
|
|
351
562
|
"src/process-group.ts"() {
|
|
352
563
|
"use strict";
|
|
353
|
-
|
|
354
|
-
|
|
564
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
565
|
+
import_node_child_process2 = require("node:child_process");
|
|
566
|
+
import_node_fs2 = require("node:fs");
|
|
355
567
|
import_node_os = require("node:os");
|
|
356
568
|
import_node_path = require("node:path");
|
|
357
569
|
import_node_stream = require("node:stream");
|
|
@@ -362,210 +574,7 @@ var init_process_group = __esm({
|
|
|
362
574
|
}
|
|
363
575
|
});
|
|
364
576
|
|
|
365
|
-
//
|
|
366
|
-
function readChromiumQueue(deps, verified2, own) {
|
|
367
|
-
const { fs: fs54, os: os14, path: path62, childProcess: childProcess3 } = deps;
|
|
368
|
-
const dir = path62.join(
|
|
369
|
-
process.platform === "win32" ? os14.tmpdir() : "/tmp",
|
|
370
|
-
"chromium-admission"
|
|
371
|
-
);
|
|
372
|
-
fs54.mkdirSync(dir, { recursive: true });
|
|
373
|
-
const limit = Math.max(2, Math.floor(os14.cpus().length / 3));
|
|
374
|
-
const live = (entry) => {
|
|
375
|
-
const match = /^(\d+)-(\d+)-/.exec(entry);
|
|
376
|
-
if (!match) return false;
|
|
377
|
-
const pid = Number(match[1]);
|
|
378
|
-
try {
|
|
379
|
-
process.kill(pid, 0);
|
|
380
|
-
} catch (err) {
|
|
381
|
-
if (!(err instanceof Error && "code" in err && err.code === "EPERM")) return false;
|
|
382
|
-
}
|
|
383
|
-
const known = verified2.get(entry);
|
|
384
|
-
if (known !== void 0) return known;
|
|
385
|
-
let same = pid === process.pid;
|
|
386
|
-
if (!same) {
|
|
387
|
-
let started = "";
|
|
388
|
-
try {
|
|
389
|
-
started = childProcess3.execFileSync("ps", ["-p", String(pid), "-o", "lstart="], { encoding: "utf8" }).trim();
|
|
390
|
-
} catch (err) {
|
|
391
|
-
const gone = err instanceof Error && "status" in err && err.status === 1;
|
|
392
|
-
if (!gone) return true;
|
|
393
|
-
}
|
|
394
|
-
const startedAt = Date.parse(started);
|
|
395
|
-
if (started && Number.isNaN(startedAt)) return true;
|
|
396
|
-
same = Math.abs(startedAt / 1e3 - Number(match[2])) <= 2;
|
|
397
|
-
}
|
|
398
|
-
verified2.set(entry, same);
|
|
399
|
-
return same;
|
|
400
|
-
};
|
|
401
|
-
const tickets = [];
|
|
402
|
-
for (const entry of fs54.readdirSync(dir)) {
|
|
403
|
-
if (entry !== own && !live(entry)) {
|
|
404
|
-
try {
|
|
405
|
-
fs54.unlinkSync(path62.join(dir, entry));
|
|
406
|
-
} catch {
|
|
407
|
-
}
|
|
408
|
-
continue;
|
|
409
|
-
}
|
|
410
|
-
try {
|
|
411
|
-
tickets.push({
|
|
412
|
-
entry,
|
|
413
|
-
created: fs54.statSync(path62.join(dir, entry), { bigint: true }).ctimeNs
|
|
414
|
-
});
|
|
415
|
-
} catch {
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
tickets.sort(
|
|
419
|
-
(a, b) => a.created === b.created ? a.entry < b.entry ? -1 : 1 : a.created < b.created ? -1 : 1
|
|
420
|
-
);
|
|
421
|
-
return { dir, limit, tickets: tickets.map((t) => t.entry) };
|
|
422
|
-
}
|
|
423
|
-
async function acquireChromiumAdmission(deps) {
|
|
424
|
-
const { fs: fs54, path: path62, label, readQueue, signal } = deps;
|
|
425
|
-
signal?.throwIfAborted();
|
|
426
|
-
const queuedAt = Date.now();
|
|
427
|
-
const verified2 = /* @__PURE__ */ new Map();
|
|
428
|
-
const startedAt = Math.round(Date.now() / 1e3 - process.uptime());
|
|
429
|
-
const name3 = `${process.pid}-${startedAt}-${Math.random().toString(36).slice(2, 10)}`;
|
|
430
|
-
const ticket = path62.join(readQueue(deps, verified2, name3).dir, name3);
|
|
431
|
-
fs54.closeSync(fs54.openSync(ticket, "wx"));
|
|
432
|
-
let released = false;
|
|
433
|
-
const release = () => {
|
|
434
|
-
if (released) return;
|
|
435
|
-
released = true;
|
|
436
|
-
process.removeListener("exit", release);
|
|
437
|
-
try {
|
|
438
|
-
fs54.unlinkSync(ticket);
|
|
439
|
-
} catch {
|
|
440
|
-
}
|
|
441
|
-
process.stderr.write(`[chromium-admission] ${label}: released ${name3}
|
|
442
|
-
`);
|
|
443
|
-
};
|
|
444
|
-
process.on("exit", release);
|
|
445
|
-
signal?.addEventListener("abort", release, { once: true });
|
|
446
|
-
let waited = false;
|
|
447
|
-
try {
|
|
448
|
-
while (true) {
|
|
449
|
-
signal?.throwIfAborted();
|
|
450
|
-
const { limit, tickets } = readQueue(deps, verified2, name3);
|
|
451
|
-
const rank = tickets.indexOf(name3);
|
|
452
|
-
if (rank < 0) {
|
|
453
|
-
throw new Error(`[chromium-admission] ${label}: reservation disappeared`);
|
|
454
|
-
}
|
|
455
|
-
if (rank < limit) {
|
|
456
|
-
process.stderr.write(
|
|
457
|
-
`[chromium-admission] ${label}: admitted ${name3} after ${Date.now() - queuedAt}ms
|
|
458
|
-
`
|
|
459
|
-
);
|
|
460
|
-
return release;
|
|
461
|
-
}
|
|
462
|
-
if (!waited) {
|
|
463
|
-
const holders = tickets.slice(0, limit).map((t) => t.split("-")[0]);
|
|
464
|
-
process.stderr.write(
|
|
465
|
-
`[chromium-admission] ${label}: ${limit} chromium launches already run on this machine (pids ${holders.join(" ")}), queued ${rank - limit + 1}
|
|
466
|
-
`
|
|
467
|
-
);
|
|
468
|
-
waited = true;
|
|
469
|
-
}
|
|
470
|
-
await new Promise((resolve12, reject) => {
|
|
471
|
-
const abort = () => {
|
|
472
|
-
clearTimeout(timer);
|
|
473
|
-
signal?.removeEventListener("abort", abort);
|
|
474
|
-
reject(
|
|
475
|
-
new Error(`[chromium-admission] ${label}: cancelled`, {
|
|
476
|
-
cause: signal?.reason
|
|
477
|
-
})
|
|
478
|
-
);
|
|
479
|
-
};
|
|
480
|
-
const timer = setTimeout(() => {
|
|
481
|
-
signal?.removeEventListener("abort", abort);
|
|
482
|
-
resolve12();
|
|
483
|
-
}, 500);
|
|
484
|
-
signal?.addEventListener("abort", abort, { once: true });
|
|
485
|
-
if (signal?.aborted) abort();
|
|
486
|
-
});
|
|
487
|
-
}
|
|
488
|
-
} catch (error) {
|
|
489
|
-
release();
|
|
490
|
-
throw error;
|
|
491
|
-
} finally {
|
|
492
|
-
signal?.removeEventListener("abort", release);
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
var init_chromium_admission = __esm({
|
|
496
|
-
"../../scripts/lib/chromium-admission.ts"() {
|
|
497
|
-
"use strict";
|
|
498
|
-
}
|
|
499
|
-
});
|
|
500
|
-
|
|
501
|
-
// ../../scripts/lib/launch-deadline.ts
|
|
502
|
-
function heldPids() {
|
|
503
|
-
try {
|
|
504
|
-
const ledger = JSON.parse(
|
|
505
|
-
(0, import_node_fs2.readFileSync)(LEDGER_PATH, "utf8")
|
|
506
|
-
);
|
|
507
|
-
return Object.values(ledger).flatMap((procs) => procs.map((proc) => proc.pid));
|
|
508
|
-
} catch {
|
|
509
|
-
return [];
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
function holdsThisProcessTree(held) {
|
|
513
|
-
const parents = /* @__PURE__ */ new Map();
|
|
514
|
-
for (const line of (0, import_node_child_process2.execFileSync)("ps", ["-A", "-o", "pid=,ppid="], {
|
|
515
|
-
encoding: "utf8"
|
|
516
|
-
}).split("\n")) {
|
|
517
|
-
const [pid, ppid] = line.trim().split(/\s+/).map(Number);
|
|
518
|
-
if (pid && ppid !== void 0) parents.set(pid, ppid);
|
|
519
|
-
}
|
|
520
|
-
const ancestors = /* @__PURE__ */ new Set();
|
|
521
|
-
for (let pid = process.pid, hops = 0; pid && hops < 64; hops++) {
|
|
522
|
-
ancestors.add(pid);
|
|
523
|
-
pid = parents.get(pid);
|
|
524
|
-
}
|
|
525
|
-
return held.some((start) => {
|
|
526
|
-
if (ancestors.has(start)) return true;
|
|
527
|
-
for (let pid = parents.get(start), hops = 0; pid && hops < 64; hops++) {
|
|
528
|
-
if (pid === process.pid) return true;
|
|
529
|
-
pid = parents.get(pid);
|
|
530
|
-
}
|
|
531
|
-
return false;
|
|
532
|
-
});
|
|
533
|
-
}
|
|
534
|
-
function startLaunchDeadline(budgetMs, onExpire) {
|
|
535
|
-
let remaining = budgetMs;
|
|
536
|
-
let last = Date.now();
|
|
537
|
-
const poll2 = setInterval(() => {
|
|
538
|
-
const now = Date.now();
|
|
539
|
-
const elapsed = Math.min(now - last, MAX_COUNTED_GAP_MS);
|
|
540
|
-
last = now;
|
|
541
|
-
const held = heldPids();
|
|
542
|
-
if (held.length > 0 && holdsThisProcessTree(held)) return;
|
|
543
|
-
remaining -= elapsed;
|
|
544
|
-
if (remaining <= 0) {
|
|
545
|
-
clearInterval(poll2);
|
|
546
|
-
onExpire();
|
|
547
|
-
}
|
|
548
|
-
}, TICK_MS);
|
|
549
|
-
return () => clearInterval(poll2);
|
|
550
|
-
}
|
|
551
|
-
var import_node_child_process2, import_node_fs2, os, path, LEDGER_PATH, TICK_MS, MAX_COUNTED_GAP_MS;
|
|
552
|
-
var init_launch_deadline = __esm({
|
|
553
|
-
"../../scripts/lib/launch-deadline.ts"() {
|
|
554
|
-
"use strict";
|
|
555
|
-
import_node_child_process2 = require("node:child_process");
|
|
556
|
-
import_node_fs2 = require("node:fs");
|
|
557
|
-
os = __toESM(require("node:os"), 1);
|
|
558
|
-
path = __toESM(require("node:path"), 1);
|
|
559
|
-
LEDGER_PATH = path.join(
|
|
560
|
-
process.env.TM_HOME || path.join(os.homedir(), ".team-machine"),
|
|
561
|
-
"governor-pauses.json"
|
|
562
|
-
);
|
|
563
|
-
TICK_MS = 500;
|
|
564
|
-
MAX_COUNTED_GAP_MS = TICK_MS * 3;
|
|
565
|
-
}
|
|
566
|
-
});
|
|
567
|
-
|
|
568
|
-
// ../../scripts/lib/reap-browser.ts
|
|
577
|
+
// src/reap-browser.ts
|
|
569
578
|
function reserveChromiumAdmission(signal) {
|
|
570
579
|
return acquireChromiumAdmission({
|
|
571
580
|
fs,
|
|
@@ -637,7 +646,7 @@ function assertGpuBrowserCommand(command, runtime = currentRuntime()) {
|
|
|
637
646
|
const dropped = lists.slice(0, -1).flat().filter((feature) => !kept.has(feature));
|
|
638
647
|
if (dropped.length > 0) {
|
|
639
648
|
throw new Error(
|
|
640
|
-
`[reap-browser] Chrome keeps only its last ${name3.slice(0, -1)} switch, which dropped ${dropped.join(",")}; add them to the merged list in
|
|
649
|
+
`[reap-browser] Chrome keeps only its last ${name3.slice(0, -1)} switch, which dropped ${dropped.join(",")}; add them to the merged list in packages/peachsim/src/reap-browser.ts`
|
|
641
650
|
);
|
|
642
651
|
}
|
|
643
652
|
}
|
|
@@ -1160,17 +1169,18 @@ async function launchReapedChrome(launch2, opts = {}, rendererTarget, policy = {
|
|
|
1160
1169
|
}
|
|
1161
1170
|
var childProcess, import_node_child_process3, import_node_crypto, fs, os2, path2, LINUX_CHROME_SCOPE_ENV, discoveredChromePids, discoveredChromeProcesses, reapPids, installed, signalShutdownClaimed, PLAYWRIGHT_DISABLED_FEATURES, PLAYWRIGHT_ENABLED_FEATURES, DISABLED_FEATURES, DEFAULT_LAUNCH_TIMEOUT_MS;
|
|
1162
1171
|
var init_reap_browser = __esm({
|
|
1163
|
-
"
|
|
1172
|
+
"src/reap-browser.ts"() {
|
|
1164
1173
|
"use strict";
|
|
1174
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1165
1175
|
childProcess = __toESM(require("node:child_process"), 1);
|
|
1166
1176
|
import_node_child_process3 = require("node:child_process");
|
|
1167
1177
|
import_node_crypto = require("node:crypto");
|
|
1168
1178
|
fs = __toESM(require("node:fs"), 1);
|
|
1169
1179
|
os2 = __toESM(require("node:os"), 1);
|
|
1170
1180
|
path2 = __toESM(require("node:path"), 1);
|
|
1171
|
-
init_process_group();
|
|
1172
1181
|
init_chromium_admission();
|
|
1173
1182
|
init_launch_deadline();
|
|
1183
|
+
init_process_group();
|
|
1174
1184
|
LINUX_CHROME_SCOPE_ENV = {
|
|
1175
1185
|
DBUS_SESSION_BUS_ADDRESS: "unix:path=/nonexistent/chrome-session-bus"
|
|
1176
1186
|
};
|
|
@@ -1303,6 +1313,7 @@ function calculateFeatureCompatibility(features) {
|
|
|
1303
1313
|
var init_capability_outcomes = __esm({
|
|
1304
1314
|
"../peach-compat/src/capability-outcomes.ts"() {
|
|
1305
1315
|
"use strict";
|
|
1316
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1306
1317
|
}
|
|
1307
1318
|
});
|
|
1308
1319
|
|
|
@@ -1311,6 +1322,7 @@ var LIGHT_NATIVE_PACKAGE_NAMES;
|
|
|
1311
1322
|
var init_light_native_package_names = __esm({
|
|
1312
1323
|
"../peach-compat/src/generated/light-native-package-names.ts"() {
|
|
1313
1324
|
"use strict";
|
|
1325
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1314
1326
|
LIGHT_NATIVE_PACKAGE_NAMES = [
|
|
1315
1327
|
"@100mslive/react-native-hms",
|
|
1316
1328
|
"@account-kit/react-native-signer",
|
|
@@ -2098,6 +2110,7 @@ var LIGHT, LIGHT_NATIVE_PACKAGE_NOTE;
|
|
|
2098
2110
|
var init_light_native = __esm({
|
|
2099
2111
|
"../peach-compat/src/light-native.ts"() {
|
|
2100
2112
|
"use strict";
|
|
2113
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2101
2114
|
init_light_native_package_names();
|
|
2102
2115
|
LIGHT = new Set(LIGHT_NATIVE_PACKAGE_NAMES);
|
|
2103
2116
|
LIGHT_NATIVE_PACKAGE_NOTE = "loads, native side inert, not validated against the real native build";
|
|
@@ -2109,6 +2122,7 @@ var UNKNOWN_RNX_SUPPORT;
|
|
|
2109
2122
|
var init_native_evidence = __esm({
|
|
2110
2123
|
"../peach-compat/src/native-evidence.ts"() {
|
|
2111
2124
|
"use strict";
|
|
2125
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2112
2126
|
init_capability_outcomes();
|
|
2113
2127
|
UNKNOWN_RNX_SUPPORT = {
|
|
2114
2128
|
level: "unknown",
|
|
@@ -2125,6 +2139,7 @@ var CAPABILITY_INVENTORY_PACKAGE_COVERAGE;
|
|
|
2125
2139
|
var init_capability_inventory_coverage = __esm({
|
|
2126
2140
|
"../peach-compat/src/generated/capability-inventory-coverage.ts"() {
|
|
2127
2141
|
"use strict";
|
|
2142
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2128
2143
|
CAPABILITY_INVENTORY_PACKAGE_COVERAGE = {
|
|
2129
2144
|
"@react-native-async-storage/async-storage": {
|
|
2130
2145
|
combined: {
|
|
@@ -3875,6 +3890,7 @@ var CAPABILITY_PACKAGE_OUTCOMES;
|
|
|
3875
3890
|
var init_capability_outcomes2 = __esm({
|
|
3876
3891
|
"../peach-compat/src/generated/capability-outcomes.ts"() {
|
|
3877
3892
|
"use strict";
|
|
3893
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3878
3894
|
CAPABILITY_PACKAGE_OUTCOMES = {
|
|
3879
3895
|
"@react-native-async-storage/async-storage": {
|
|
3880
3896
|
exactTestedVersion: "2.2.0",
|
|
@@ -4504,13 +4520,13 @@ var init_capability_outcomes2 = __esm({
|
|
|
4504
4520
|
assessed: 0
|
|
4505
4521
|
},
|
|
4506
4522
|
ios: {
|
|
4507
|
-
passedWeight:
|
|
4523
|
+
passedWeight: 3392,
|
|
4508
4524
|
failedWeight: 0,
|
|
4509
|
-
unassessedWeight:
|
|
4525
|
+
unassessedWeight: 1518,
|
|
4510
4526
|
totalWeight: 4910,
|
|
4511
|
-
assessedWeight:
|
|
4527
|
+
assessedWeight: 3392,
|
|
4512
4528
|
compatibility: 1,
|
|
4513
|
-
assessed: 0.
|
|
4529
|
+
assessed: 0.6908350305498981
|
|
4514
4530
|
}
|
|
4515
4531
|
},
|
|
4516
4532
|
byWeighting: {
|
|
@@ -4525,13 +4541,13 @@ var init_capability_outcomes2 = __esm({
|
|
|
4525
4541
|
assessed: 0
|
|
4526
4542
|
},
|
|
4527
4543
|
ios: {
|
|
4528
|
-
passedWeight:
|
|
4544
|
+
passedWeight: 34,
|
|
4529
4545
|
failedWeight: 0,
|
|
4530
|
-
unassessedWeight:
|
|
4546
|
+
unassessedWeight: 162,
|
|
4531
4547
|
totalWeight: 196,
|
|
4532
|
-
assessedWeight:
|
|
4548
|
+
assessedWeight: 34,
|
|
4533
4549
|
compatibility: 1,
|
|
4534
|
-
assessed: 0.
|
|
4550
|
+
assessed: 0.17346938775510204
|
|
4535
4551
|
}
|
|
4536
4552
|
},
|
|
4537
4553
|
usage: {
|
|
@@ -4545,13 +4561,13 @@ var init_capability_outcomes2 = __esm({
|
|
|
4545
4561
|
assessed: 0
|
|
4546
4562
|
},
|
|
4547
4563
|
ios: {
|
|
4548
|
-
passedWeight:
|
|
4564
|
+
passedWeight: 3392,
|
|
4549
4565
|
failedWeight: 0,
|
|
4550
|
-
unassessedWeight:
|
|
4566
|
+
unassessedWeight: 1518,
|
|
4551
4567
|
totalWeight: 4910,
|
|
4552
|
-
assessedWeight:
|
|
4568
|
+
assessedWeight: 3392,
|
|
4553
4569
|
compatibility: 1,
|
|
4554
|
-
assessed: 0.
|
|
4570
|
+
assessed: 0.6908350305498981
|
|
4555
4571
|
}
|
|
4556
4572
|
}
|
|
4557
4573
|
}
|
|
@@ -4905,6 +4921,7 @@ var REACT_NATIVE_ROOT_EXPORT_STRICT_COVERAGE;
|
|
|
4905
4921
|
var init_react_native_root_export_coverage = __esm({
|
|
4906
4922
|
"../peach-compat/src/generated/react-native-root-export-coverage.ts"() {
|
|
4907
4923
|
"use strict";
|
|
4924
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4908
4925
|
REACT_NATIVE_ROOT_EXPORT_STRICT_COVERAGE = 0.769;
|
|
4909
4926
|
}
|
|
4910
4927
|
});
|
|
@@ -4914,6 +4931,7 @@ var REACT_NATIVE_WEBVIEW_STRICT_COVERAGE;
|
|
|
4914
4931
|
var init_react_native_webview_coverage = __esm({
|
|
4915
4932
|
"../peach-compat/src/generated/react-native-webview-coverage.ts"() {
|
|
4916
4933
|
"use strict";
|
|
4934
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4917
4935
|
REACT_NATIVE_WEBVIEW_STRICT_COVERAGE = 0.223;
|
|
4918
4936
|
}
|
|
4919
4937
|
});
|
|
@@ -4923,6 +4941,7 @@ var SUPPORTED_NATIVE_PACKAGE_NAMES;
|
|
|
4923
4941
|
var init_supported_native_packages = __esm({
|
|
4924
4942
|
"../peach-compat/src/generated/supported-native-packages.ts"() {
|
|
4925
4943
|
"use strict";
|
|
4944
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4926
4945
|
SUPPORTED_NATIVE_PACKAGE_NAMES = [
|
|
4927
4946
|
"@adobe/react-native-aepcore",
|
|
4928
4947
|
// coverage
|
|
@@ -6006,6 +6025,7 @@ var init_supported_native_packages = __esm({
|
|
|
6006
6025
|
var init_slug = __esm({
|
|
6007
6026
|
"../peach-compat/src/slug.ts"() {
|
|
6008
6027
|
"use strict";
|
|
6028
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6009
6029
|
}
|
|
6010
6030
|
});
|
|
6011
6031
|
|
|
@@ -6019,6 +6039,7 @@ var UNSUPPORTED_NATIVE_PACKAGE_NOTE, UNSUPPORTED_NATIVE_PACKAGES, UNSUPPORTABLE,
|
|
|
6019
6039
|
var init_unsupported_packages = __esm({
|
|
6020
6040
|
"../peach-compat/src/unsupported-packages.ts"() {
|
|
6021
6041
|
"use strict";
|
|
6042
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6022
6043
|
init_supported_native_packages();
|
|
6023
6044
|
init_slug();
|
|
6024
6045
|
UNSUPPORTED_NATIVE_PACKAGE_NOTE = "requires native SDK";
|
|
@@ -6059,6 +6080,7 @@ var COMPAT_CATEGORIES, POLYFILL_REGISTRY_INPUT, POLYFILL_REGISTRY;
|
|
|
6059
6080
|
var init_registry = __esm({
|
|
6060
6081
|
"../peach-compat/src/registry.ts"() {
|
|
6061
6082
|
"use strict";
|
|
6083
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6062
6084
|
init_capability_outcomes();
|
|
6063
6085
|
init_capability_inventory_coverage();
|
|
6064
6086
|
init_capability_outcomes2();
|
|
@@ -19687,6 +19709,7 @@ var ANY_BOUNDS, COMPARATOR;
|
|
|
19687
19709
|
var init_version_range = __esm({
|
|
19688
19710
|
"../peach-compat/src/version-range.ts"() {
|
|
19689
19711
|
"use strict";
|
|
19712
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
19690
19713
|
ANY_BOUNDS = {
|
|
19691
19714
|
lower: null,
|
|
19692
19715
|
lowerInclusive: false,
|
|
@@ -19862,6 +19885,7 @@ var NON_RN_PACKAGES;
|
|
|
19862
19885
|
var init_scan = __esm({
|
|
19863
19886
|
"../peach-compat/src/scan.ts"() {
|
|
19864
19887
|
"use strict";
|
|
19888
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
19865
19889
|
init_capability_outcomes();
|
|
19866
19890
|
init_light_native();
|
|
19867
19891
|
init_native_evidence();
|
|
@@ -20014,6 +20038,7 @@ var COMPAT_RESULT_CAVEAT;
|
|
|
20014
20038
|
var init_scan_summary = __esm({
|
|
20015
20039
|
"../peach-compat/src/scan-summary.ts"() {
|
|
20016
20040
|
"use strict";
|
|
20041
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
20017
20042
|
init_capability_outcomes();
|
|
20018
20043
|
COMPAT_RESULT_CAVEAT = "Measured iOS results cover assessed API scenarios. Legacy contributions are estimates; unassessed usage remains unknown. App paths may exercise additional behavior.";
|
|
20019
20044
|
}
|
|
@@ -20037,6 +20062,7 @@ __export(web_exports, {
|
|
|
20037
20062
|
var init_web = __esm({
|
|
20038
20063
|
"../peach-compat/src/web.ts"() {
|
|
20039
20064
|
"use strict";
|
|
20065
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
20040
20066
|
init_scan();
|
|
20041
20067
|
init_scan_summary();
|
|
20042
20068
|
init_registry();
|
|
@@ -20050,6 +20076,7 @@ function sleep2(ms) {
|
|
|
20050
20076
|
var init_sleep = __esm({
|
|
20051
20077
|
"src/sleep.ts"() {
|
|
20052
20078
|
"use strict";
|
|
20079
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
20053
20080
|
}
|
|
20054
20081
|
});
|
|
20055
20082
|
|
|
@@ -20077,6 +20104,7 @@ function isNode(node) {
|
|
|
20077
20104
|
var ALIAS, DOC, MAP, PAIR, SCALAR, SEQ, NODE_TYPE, isAlias, isDocument, isMap, isPair, isScalar, isSeq, hasAnchor;
|
|
20078
20105
|
var init_identity = __esm({
|
|
20079
20106
|
"../../node_modules/yaml/browser/dist/nodes/identity.js"() {
|
|
20107
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
20080
20108
|
ALIAS = Symbol.for("yaml.alias");
|
|
20081
20109
|
DOC = Symbol.for("yaml.document");
|
|
20082
20110
|
MAP = Symbol.for("yaml.map");
|
|
@@ -20237,6 +20265,7 @@ function replaceNode(key2, path62, node) {
|
|
|
20237
20265
|
var BREAK, SKIP, REMOVE;
|
|
20238
20266
|
var init_visit = __esm({
|
|
20239
20267
|
"../../node_modules/yaml/browser/dist/visit.js"() {
|
|
20268
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
20240
20269
|
init_identity();
|
|
20241
20270
|
BREAK = Symbol("break visit");
|
|
20242
20271
|
SKIP = Symbol("skip children");
|
|
@@ -20254,6 +20283,7 @@ var init_visit = __esm({
|
|
|
20254
20283
|
var escapeChars, escapeTagName, Directives;
|
|
20255
20284
|
var init_directives = __esm({
|
|
20256
20285
|
"../../node_modules/yaml/browser/dist/doc/directives.js"() {
|
|
20286
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
20257
20287
|
init_identity();
|
|
20258
20288
|
init_visit();
|
|
20259
20289
|
escapeChars = {
|
|
@@ -20480,6 +20510,7 @@ function createNodeAnchors(doc, prefix) {
|
|
|
20480
20510
|
}
|
|
20481
20511
|
var init_anchors = __esm({
|
|
20482
20512
|
"../../node_modules/yaml/browser/dist/doc/anchors.js"() {
|
|
20513
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
20483
20514
|
init_identity();
|
|
20484
20515
|
init_visit();
|
|
20485
20516
|
}
|
|
@@ -20530,6 +20561,7 @@ function applyReviver(reviver, obj, key2, val) {
|
|
|
20530
20561
|
}
|
|
20531
20562
|
var init_applyReviver = __esm({
|
|
20532
20563
|
"../../node_modules/yaml/browser/dist/doc/applyReviver.js"() {
|
|
20564
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
20533
20565
|
}
|
|
20534
20566
|
});
|
|
20535
20567
|
|
|
@@ -20557,6 +20589,7 @@ function toJS(value, arg, ctx) {
|
|
|
20557
20589
|
}
|
|
20558
20590
|
var init_toJS = __esm({
|
|
20559
20591
|
"../../node_modules/yaml/browser/dist/nodes/toJS.js"() {
|
|
20592
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
20560
20593
|
init_identity();
|
|
20561
20594
|
}
|
|
20562
20595
|
});
|
|
@@ -20565,6 +20598,7 @@ var init_toJS = __esm({
|
|
|
20565
20598
|
var NodeBase;
|
|
20566
20599
|
var init_Node = __esm({
|
|
20567
20600
|
"../../node_modules/yaml/browser/dist/nodes/Node.js"() {
|
|
20601
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
20568
20602
|
init_applyReviver();
|
|
20569
20603
|
init_identity();
|
|
20570
20604
|
init_toJS();
|
|
@@ -20625,6 +20659,7 @@ function getAliasCount(doc, node, anchors) {
|
|
|
20625
20659
|
var Alias;
|
|
20626
20660
|
var init_Alias = __esm({
|
|
20627
20661
|
"../../node_modules/yaml/browser/dist/nodes/Alias.js"() {
|
|
20662
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
20628
20663
|
init_anchors();
|
|
20629
20664
|
init_visit();
|
|
20630
20665
|
init_identity();
|
|
@@ -20720,6 +20755,7 @@ var init_Alias = __esm({
|
|
|
20720
20755
|
var isScalarValue, Scalar;
|
|
20721
20756
|
var init_Scalar = __esm({
|
|
20722
20757
|
"../../node_modules/yaml/browser/dist/nodes/Scalar.js"() {
|
|
20758
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
20723
20759
|
init_identity();
|
|
20724
20760
|
init_Node();
|
|
20725
20761
|
init_toJS();
|
|
@@ -20811,6 +20847,7 @@ function createNode(value, tagName, ctx) {
|
|
|
20811
20847
|
var defaultTagPrefix;
|
|
20812
20848
|
var init_createNode = __esm({
|
|
20813
20849
|
"../../node_modules/yaml/browser/dist/doc/createNode.js"() {
|
|
20850
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
20814
20851
|
init_Alias();
|
|
20815
20852
|
init_identity();
|
|
20816
20853
|
init_Scalar();
|
|
@@ -20844,6 +20881,7 @@ function collectionFromPath(schema4, path62, value) {
|
|
|
20844
20881
|
var isEmptyPath, Collection;
|
|
20845
20882
|
var init_Collection = __esm({
|
|
20846
20883
|
"../../node_modules/yaml/browser/dist/nodes/Collection.js"() {
|
|
20884
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
20847
20885
|
init_createNode();
|
|
20848
20886
|
init_identity();
|
|
20849
20887
|
init_Node();
|
|
@@ -20967,6 +21005,7 @@ function indentComment(comment, indent) {
|
|
|
20967
21005
|
var stringifyComment, lineComment;
|
|
20968
21006
|
var init_stringifyComment = __esm({
|
|
20969
21007
|
"../../node_modules/yaml/browser/dist/stringify/stringifyComment.js"() {
|
|
21008
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
20970
21009
|
stringifyComment = (str2) => str2.replace(/^(?!$)(?: $)?/gm, "#");
|
|
20971
21010
|
lineComment = (str2, indent, comment) => str2.endsWith("\n") ? indentComment(comment, indent) : comment.includes("\n") ? "\n" + indentComment(comment, indent) : (str2.endsWith(" ") ? "" : " ") + comment;
|
|
20972
21011
|
}
|
|
@@ -21098,6 +21137,7 @@ function consumeMoreIndentedLines(text5, i, indent) {
|
|
|
21098
21137
|
var FOLD_FLOW, FOLD_BLOCK, FOLD_QUOTED;
|
|
21099
21138
|
var init_foldFlowLines = __esm({
|
|
21100
21139
|
"../../node_modules/yaml/browser/dist/stringify/foldFlowLines.js"() {
|
|
21140
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
21101
21141
|
FOLD_FLOW = "flow";
|
|
21102
21142
|
FOLD_BLOCK = "block";
|
|
21103
21143
|
FOLD_QUOTED = "quoted";
|
|
@@ -21369,6 +21409,7 @@ function stringifyString(item, ctx, onComment, onChompKeep) {
|
|
|
21369
21409
|
var getFoldOptions, containsDocumentMarker, blockEndNewlines;
|
|
21370
21410
|
var init_stringifyString = __esm({
|
|
21371
21411
|
"../../node_modules/yaml/browser/dist/stringify/stringifyString.js"() {
|
|
21412
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
21372
21413
|
init_Scalar();
|
|
21373
21414
|
init_foldFlowLines();
|
|
21374
21415
|
getFoldOptions = (ctx, isBlock2) => ({
|
|
@@ -21499,6 +21540,7 @@ ${ctx.indent}${str2}`;
|
|
|
21499
21540
|
}
|
|
21500
21541
|
var init_stringify = __esm({
|
|
21501
21542
|
"../../node_modules/yaml/browser/dist/stringify/stringify.js"() {
|
|
21543
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
21502
21544
|
init_anchors();
|
|
21503
21545
|
init_identity();
|
|
21504
21546
|
init_stringifyComment();
|
|
@@ -21630,6 +21672,7 @@ ${ctx.indent}`;
|
|
|
21630
21672
|
}
|
|
21631
21673
|
var init_stringifyPair = __esm({
|
|
21632
21674
|
"../../node_modules/yaml/browser/dist/stringify/stringifyPair.js"() {
|
|
21675
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
21633
21676
|
init_identity();
|
|
21634
21677
|
init_Scalar();
|
|
21635
21678
|
init_stringify();
|
|
@@ -21645,6 +21688,7 @@ function warn(logLevel, warning) {
|
|
|
21645
21688
|
}
|
|
21646
21689
|
var init_log = __esm({
|
|
21647
21690
|
"../../node_modules/yaml/browser/dist/log.js"() {
|
|
21691
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
21648
21692
|
}
|
|
21649
21693
|
});
|
|
21650
21694
|
|
|
@@ -21688,6 +21732,7 @@ function resolveAliasValue(ctx, value) {
|
|
|
21688
21732
|
var MERGE_KEY, merge, isMergeKey;
|
|
21689
21733
|
var init_merge = __esm({
|
|
21690
21734
|
"../../node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js"() {
|
|
21735
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
21691
21736
|
init_identity();
|
|
21692
21737
|
init_Scalar();
|
|
21693
21738
|
MERGE_KEY = "<<";
|
|
@@ -21759,6 +21804,7 @@ function stringifyKey(key2, jsKey, ctx) {
|
|
|
21759
21804
|
}
|
|
21760
21805
|
var init_addPairToJSMap = __esm({
|
|
21761
21806
|
"../../node_modules/yaml/browser/dist/nodes/addPairToJSMap.js"() {
|
|
21807
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
21762
21808
|
init_log();
|
|
21763
21809
|
init_merge();
|
|
21764
21810
|
init_stringify();
|
|
@@ -21776,6 +21822,7 @@ function createPair(key2, value, ctx) {
|
|
|
21776
21822
|
var Pair;
|
|
21777
21823
|
var init_Pair = __esm({
|
|
21778
21824
|
"../../node_modules/yaml/browser/dist/nodes/Pair.js"() {
|
|
21825
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
21779
21826
|
init_createNode();
|
|
21780
21827
|
init_stringifyPair();
|
|
21781
21828
|
init_addPairToJSMap();
|
|
@@ -21948,6 +21995,7 @@ function addCommentBefore({ indent, options: { commentString } }, lines, comment
|
|
|
21948
21995
|
}
|
|
21949
21996
|
var init_stringifyCollection = __esm({
|
|
21950
21997
|
"../../node_modules/yaml/browser/dist/stringify/stringifyCollection.js"() {
|
|
21998
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
21951
21999
|
init_identity();
|
|
21952
22000
|
init_stringify();
|
|
21953
22001
|
init_stringifyComment();
|
|
@@ -21970,6 +22018,7 @@ function findPair(items2, key2) {
|
|
|
21970
22018
|
var YAMLMap;
|
|
21971
22019
|
var init_YAMLMap = __esm({
|
|
21972
22020
|
"../../node_modules/yaml/browser/dist/nodes/YAMLMap.js"() {
|
|
22021
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
21973
22022
|
init_stringifyCollection();
|
|
21974
22023
|
init_addPairToJSMap();
|
|
21975
22024
|
init_Collection();
|
|
@@ -22100,6 +22149,7 @@ var init_YAMLMap = __esm({
|
|
|
22100
22149
|
var map;
|
|
22101
22150
|
var init_map = __esm({
|
|
22102
22151
|
"../../node_modules/yaml/browser/dist/schema/common/map.js"() {
|
|
22152
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
22103
22153
|
init_identity();
|
|
22104
22154
|
init_YAMLMap();
|
|
22105
22155
|
map = {
|
|
@@ -22127,6 +22177,7 @@ function asItemIndex(key2) {
|
|
|
22127
22177
|
var YAMLSeq;
|
|
22128
22178
|
var init_YAMLSeq = __esm({
|
|
22129
22179
|
"../../node_modules/yaml/browser/dist/nodes/YAMLSeq.js"() {
|
|
22180
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
22130
22181
|
init_createNode();
|
|
22131
22182
|
init_stringifyCollection();
|
|
22132
22183
|
init_Collection();
|
|
@@ -22236,6 +22287,7 @@ var init_YAMLSeq = __esm({
|
|
|
22236
22287
|
var seq;
|
|
22237
22288
|
var init_seq = __esm({
|
|
22238
22289
|
"../../node_modules/yaml/browser/dist/schema/common/seq.js"() {
|
|
22290
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
22239
22291
|
init_identity();
|
|
22240
22292
|
init_YAMLSeq();
|
|
22241
22293
|
seq = {
|
|
@@ -22257,6 +22309,7 @@ var init_seq = __esm({
|
|
|
22257
22309
|
var string;
|
|
22258
22310
|
var init_string = __esm({
|
|
22259
22311
|
"../../node_modules/yaml/browser/dist/schema/common/string.js"() {
|
|
22312
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
22260
22313
|
init_stringifyString();
|
|
22261
22314
|
string = {
|
|
22262
22315
|
identify: (value) => typeof value === "string",
|
|
@@ -22275,6 +22328,7 @@ var init_string = __esm({
|
|
|
22275
22328
|
var nullTag;
|
|
22276
22329
|
var init_null = __esm({
|
|
22277
22330
|
"../../node_modules/yaml/browser/dist/schema/common/null.js"() {
|
|
22331
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
22278
22332
|
init_Scalar();
|
|
22279
22333
|
nullTag = {
|
|
22280
22334
|
identify: (value) => value == null,
|
|
@@ -22292,6 +22346,7 @@ var init_null = __esm({
|
|
|
22292
22346
|
var boolTag;
|
|
22293
22347
|
var init_bool = __esm({
|
|
22294
22348
|
"../../node_modules/yaml/browser/dist/schema/core/bool.js"() {
|
|
22349
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
22295
22350
|
init_Scalar();
|
|
22296
22351
|
boolTag = {
|
|
22297
22352
|
identify: (value) => typeof value === "boolean",
|
|
@@ -22333,6 +22388,7 @@ function stringifyNumber({ format, minFractionDigits, tag, value }) {
|
|
|
22333
22388
|
}
|
|
22334
22389
|
var init_stringifyNumber = __esm({
|
|
22335
22390
|
"../../node_modules/yaml/browser/dist/stringify/stringifyNumber.js"() {
|
|
22391
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
22336
22392
|
}
|
|
22337
22393
|
});
|
|
22338
22394
|
|
|
@@ -22340,6 +22396,7 @@ var init_stringifyNumber = __esm({
|
|
|
22340
22396
|
var floatNaN, floatExp, float;
|
|
22341
22397
|
var init_float = __esm({
|
|
22342
22398
|
"../../node_modules/yaml/browser/dist/schema/core/float.js"() {
|
|
22399
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
22343
22400
|
init_Scalar();
|
|
22344
22401
|
init_stringifyNumber();
|
|
22345
22402
|
floatNaN = {
|
|
@@ -22389,6 +22446,7 @@ function intStringify(node, radix, prefix) {
|
|
|
22389
22446
|
var intIdentify, intResolve, intOct, int, intHex;
|
|
22390
22447
|
var init_int = __esm({
|
|
22391
22448
|
"../../node_modules/yaml/browser/dist/schema/core/int.js"() {
|
|
22449
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
22392
22450
|
init_stringifyNumber();
|
|
22393
22451
|
intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
22394
22452
|
intResolve = (str2, offset, radix, { intAsBigInt }) => intAsBigInt ? BigInt(str2) : parseInt(str2.substring(offset), radix);
|
|
@@ -22425,6 +22483,7 @@ var init_int = __esm({
|
|
|
22425
22483
|
var schema;
|
|
22426
22484
|
var init_schema = __esm({
|
|
22427
22485
|
"../../node_modules/yaml/browser/dist/schema/core/schema.js"() {
|
|
22486
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
22428
22487
|
init_map();
|
|
22429
22488
|
init_null();
|
|
22430
22489
|
init_seq();
|
|
@@ -22455,6 +22514,7 @@ function intIdentify2(value) {
|
|
|
22455
22514
|
var stringifyJSON, jsonScalars, jsonError, schema2;
|
|
22456
22515
|
var init_schema2 = __esm({
|
|
22457
22516
|
"../../node_modules/yaml/browser/dist/schema/json/schema.js"() {
|
|
22517
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
22458
22518
|
init_Scalar();
|
|
22459
22519
|
init_map();
|
|
22460
22520
|
init_seq();
|
|
@@ -22518,6 +22578,7 @@ var init_schema2 = __esm({
|
|
|
22518
22578
|
var binary;
|
|
22519
22579
|
var init_binary = __esm({
|
|
22520
22580
|
"../../node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js"() {
|
|
22581
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
22521
22582
|
init_Scalar();
|
|
22522
22583
|
init_stringifyString();
|
|
22523
22584
|
binary = {
|
|
@@ -22635,6 +22696,7 @@ function createPairs(schema4, iterable, ctx) {
|
|
|
22635
22696
|
var pairs;
|
|
22636
22697
|
var init_pairs = __esm({
|
|
22637
22698
|
"../../node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js"() {
|
|
22699
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
22638
22700
|
init_identity();
|
|
22639
22701
|
init_Pair();
|
|
22640
22702
|
init_Scalar();
|
|
@@ -22653,6 +22715,7 @@ var init_pairs = __esm({
|
|
|
22653
22715
|
var YAMLOMap, omap;
|
|
22654
22716
|
var init_omap = __esm({
|
|
22655
22717
|
"../../node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js"() {
|
|
22718
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
22656
22719
|
init_identity();
|
|
22657
22720
|
init_toJS();
|
|
22658
22721
|
init_YAMLMap();
|
|
@@ -22735,6 +22798,7 @@ function boolStringify({ value, source }, ctx) {
|
|
|
22735
22798
|
var trueTag, falseTag;
|
|
22736
22799
|
var init_bool2 = __esm({
|
|
22737
22800
|
"../../node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js"() {
|
|
22801
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
22738
22802
|
init_Scalar();
|
|
22739
22803
|
trueTag = {
|
|
22740
22804
|
identify: (value) => value === true,
|
|
@@ -22759,6 +22823,7 @@ var init_bool2 = __esm({
|
|
|
22759
22823
|
var floatNaN2, floatExp2, float2;
|
|
22760
22824
|
var init_float2 = __esm({
|
|
22761
22825
|
"../../node_modules/yaml/browser/dist/schema/yaml-1.1/float.js"() {
|
|
22826
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
22762
22827
|
init_Scalar();
|
|
22763
22828
|
init_stringifyNumber();
|
|
22764
22829
|
floatNaN2 = {
|
|
@@ -22836,6 +22901,7 @@ function intStringify2(node, radix, prefix) {
|
|
|
22836
22901
|
var intIdentify3, intBin, intOct2, int2, intHex2;
|
|
22837
22902
|
var init_int2 = __esm({
|
|
22838
22903
|
"../../node_modules/yaml/browser/dist/schema/yaml-1.1/int.js"() {
|
|
22904
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
22839
22905
|
init_stringifyNumber();
|
|
22840
22906
|
intIdentify3 = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
22841
22907
|
intBin = {
|
|
@@ -22880,6 +22946,7 @@ var init_int2 = __esm({
|
|
|
22880
22946
|
var YAMLSet, set;
|
|
22881
22947
|
var init_set = __esm({
|
|
22882
22948
|
"../../node_modules/yaml/browser/dist/schema/yaml-1.1/set.js"() {
|
|
22949
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
22883
22950
|
init_identity();
|
|
22884
22951
|
init_Pair();
|
|
22885
22952
|
init_YAMLMap();
|
|
@@ -23000,6 +23067,7 @@ function stringifySexagesimal(node) {
|
|
|
23000
23067
|
var intTime, floatTime, timestamp;
|
|
23001
23068
|
var init_timestamp = __esm({
|
|
23002
23069
|
"../../node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js"() {
|
|
23070
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
23003
23071
|
init_stringifyNumber();
|
|
23004
23072
|
intTime = {
|
|
23005
23073
|
identify: (value) => typeof value === "bigint" || Number.isInteger(value),
|
|
@@ -23052,6 +23120,7 @@ var init_timestamp = __esm({
|
|
|
23052
23120
|
var schema3;
|
|
23053
23121
|
var init_schema3 = __esm({
|
|
23054
23122
|
"../../node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js"() {
|
|
23123
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
23055
23124
|
init_map();
|
|
23056
23125
|
init_null();
|
|
23057
23126
|
init_seq();
|
|
@@ -23129,6 +23198,7 @@ function getTags(customTags, schemaName, addMergeTag) {
|
|
|
23129
23198
|
var schemas, tagsByName, coreKnownTags;
|
|
23130
23199
|
var init_tags = __esm({
|
|
23131
23200
|
"../../node_modules/yaml/browser/dist/schema/tags.js"() {
|
|
23201
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
23132
23202
|
init_map();
|
|
23133
23203
|
init_null();
|
|
23134
23204
|
init_seq();
|
|
@@ -23187,6 +23257,7 @@ var init_tags = __esm({
|
|
|
23187
23257
|
var sortMapEntriesByKey, Schema;
|
|
23188
23258
|
var init_Schema = __esm({
|
|
23189
23259
|
"../../node_modules/yaml/browser/dist/schema/Schema.js"() {
|
|
23260
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
23190
23261
|
init_identity();
|
|
23191
23262
|
init_map();
|
|
23192
23263
|
init_seq();
|
|
@@ -23286,6 +23357,7 @@ function stringifyDocument(doc, options) {
|
|
|
23286
23357
|
}
|
|
23287
23358
|
var init_stringifyDocument = __esm({
|
|
23288
23359
|
"../../node_modules/yaml/browser/dist/stringify/stringifyDocument.js"() {
|
|
23360
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
23289
23361
|
init_identity();
|
|
23290
23362
|
init_stringify();
|
|
23291
23363
|
init_stringifyComment();
|
|
@@ -23301,6 +23373,7 @@ function assertCollection(contents) {
|
|
|
23301
23373
|
var Document;
|
|
23302
23374
|
var init_Document = __esm({
|
|
23303
23375
|
"../../node_modules/yaml/browser/dist/doc/Document.js"() {
|
|
23376
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
23304
23377
|
init_Alias();
|
|
23305
23378
|
init_Collection();
|
|
23306
23379
|
init_identity();
|
|
@@ -23604,6 +23677,7 @@ var init_Document = __esm({
|
|
|
23604
23677
|
var YAMLError, YAMLParseError, YAMLWarning, prettifyError;
|
|
23605
23678
|
var init_errors = __esm({
|
|
23606
23679
|
"../../node_modules/yaml/browser/dist/errors.js"() {
|
|
23680
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
23607
23681
|
YAMLError = class extends Error {
|
|
23608
23682
|
constructor(name3, pos, code, message) {
|
|
23609
23683
|
super();
|
|
@@ -23790,6 +23864,7 @@ function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIn
|
|
|
23790
23864
|
}
|
|
23791
23865
|
var init_resolve_props = __esm({
|
|
23792
23866
|
"../../node_modules/yaml/browser/dist/compose/resolve-props.js"() {
|
|
23867
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
23793
23868
|
}
|
|
23794
23869
|
});
|
|
23795
23870
|
|
|
@@ -23830,6 +23905,7 @@ function containsNewline(key2) {
|
|
|
23830
23905
|
}
|
|
23831
23906
|
var init_util_contains_newline = __esm({
|
|
23832
23907
|
"../../node_modules/yaml/browser/dist/compose/util-contains-newline.js"() {
|
|
23908
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
23833
23909
|
}
|
|
23834
23910
|
});
|
|
23835
23911
|
|
|
@@ -23845,6 +23921,7 @@ function flowIndentCheck(indent, fc, onError) {
|
|
|
23845
23921
|
}
|
|
23846
23922
|
var init_util_flow_indent_check = __esm({
|
|
23847
23923
|
"../../node_modules/yaml/browser/dist/compose/util-flow-indent-check.js"() {
|
|
23924
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
23848
23925
|
init_util_contains_newline();
|
|
23849
23926
|
}
|
|
23850
23927
|
});
|
|
@@ -23859,6 +23936,7 @@ function mapIncludes(ctx, items2, search) {
|
|
|
23859
23936
|
}
|
|
23860
23937
|
var init_util_map_includes = __esm({
|
|
23861
23938
|
"../../node_modules/yaml/browser/dist/compose/util-map-includes.js"() {
|
|
23939
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
23862
23940
|
init_identity();
|
|
23863
23941
|
}
|
|
23864
23942
|
});
|
|
@@ -23960,6 +24038,7 @@ function resolveBlockMap({ composeNode: composeNode2, composeEmptyNode: composeE
|
|
|
23960
24038
|
var startColMsg;
|
|
23961
24039
|
var init_resolve_block_map = __esm({
|
|
23962
24040
|
"../../node_modules/yaml/browser/dist/compose/resolve-block-map.js"() {
|
|
24041
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
23963
24042
|
init_Pair();
|
|
23964
24043
|
init_YAMLMap();
|
|
23965
24044
|
init_resolve_props();
|
|
@@ -24013,6 +24092,7 @@ function resolveBlockSeq({ composeNode: composeNode2, composeEmptyNode: composeE
|
|
|
24013
24092
|
}
|
|
24014
24093
|
var init_resolve_block_seq = __esm({
|
|
24015
24094
|
"../../node_modules/yaml/browser/dist/compose/resolve-block-seq.js"() {
|
|
24095
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
24016
24096
|
init_YAMLSeq();
|
|
24017
24097
|
init_resolve_props();
|
|
24018
24098
|
init_util_flow_indent_check();
|
|
@@ -24057,6 +24137,7 @@ function resolveEnd(end, offset, reqSpace, onError) {
|
|
|
24057
24137
|
}
|
|
24058
24138
|
var init_resolve_end = __esm({
|
|
24059
24139
|
"../../node_modules/yaml/browser/dist/compose/resolve-end.js"() {
|
|
24140
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
24060
24141
|
}
|
|
24061
24142
|
});
|
|
24062
24143
|
|
|
@@ -24240,6 +24321,7 @@ function resolveFlowCollection({ composeNode: composeNode2, composeEmptyNode: co
|
|
|
24240
24321
|
var blockMsg, isBlock;
|
|
24241
24322
|
var init_resolve_flow_collection = __esm({
|
|
24242
24323
|
"../../node_modules/yaml/browser/dist/compose/resolve-flow-collection.js"() {
|
|
24324
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
24243
24325
|
init_identity();
|
|
24244
24326
|
init_Pair();
|
|
24245
24327
|
init_YAMLMap();
|
|
@@ -24306,6 +24388,7 @@ function composeCollection(CN2, ctx, token, props, onError) {
|
|
|
24306
24388
|
}
|
|
24307
24389
|
var init_compose_collection = __esm({
|
|
24308
24390
|
"../../node_modules/yaml/browser/dist/compose/compose-collection.js"() {
|
|
24391
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
24309
24392
|
init_identity();
|
|
24310
24393
|
init_Scalar();
|
|
24311
24394
|
init_YAMLMap();
|
|
@@ -24493,6 +24576,7 @@ function splitLines(source) {
|
|
|
24493
24576
|
}
|
|
24494
24577
|
var init_resolve_block_scalar = __esm({
|
|
24495
24578
|
"../../node_modules/yaml/browser/dist/compose/resolve-block-scalar.js"() {
|
|
24579
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
24496
24580
|
init_Scalar();
|
|
24497
24581
|
}
|
|
24498
24582
|
});
|
|
@@ -24678,6 +24762,7 @@ function parseCharCode(source, offset, length, onError) {
|
|
|
24678
24762
|
var escapeCodes;
|
|
24679
24763
|
var init_resolve_flow_scalar = __esm({
|
|
24680
24764
|
"../../node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js"() {
|
|
24765
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
24681
24766
|
init_Scalar();
|
|
24682
24767
|
init_resolve_end();
|
|
24683
24768
|
escapeCodes = {
|
|
@@ -24788,6 +24873,7 @@ function findScalarTagByTest({ atKey, directives, schema: schema4 }, value, toke
|
|
|
24788
24873
|
}
|
|
24789
24874
|
var init_compose_scalar = __esm({
|
|
24790
24875
|
"../../node_modules/yaml/browser/dist/compose/compose-scalar.js"() {
|
|
24876
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
24791
24877
|
init_identity();
|
|
24792
24878
|
init_Scalar();
|
|
24793
24879
|
init_resolve_block_scalar();
|
|
@@ -24820,6 +24906,7 @@ function emptyScalarPosition(offset, before, pos) {
|
|
|
24820
24906
|
}
|
|
24821
24907
|
var init_util_empty_scalar_position = __esm({
|
|
24822
24908
|
"../../node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js"() {
|
|
24909
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
24823
24910
|
}
|
|
24824
24911
|
});
|
|
24825
24912
|
|
|
@@ -24917,6 +25004,7 @@ function composeAlias({ options }, { offset, source, end }, onError) {
|
|
|
24917
25004
|
var CN;
|
|
24918
25005
|
var init_compose_node = __esm({
|
|
24919
25006
|
"../../node_modules/yaml/browser/dist/compose/compose-node.js"() {
|
|
25007
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
24920
25008
|
init_Alias();
|
|
24921
25009
|
init_identity();
|
|
24922
25010
|
init_compose_collection();
|
|
@@ -24961,6 +25049,7 @@ function composeDoc(options, directives, { offset, start, value, end }, onError)
|
|
|
24961
25049
|
}
|
|
24962
25050
|
var init_compose_doc = __esm({
|
|
24963
25051
|
"../../node_modules/yaml/browser/dist/compose/compose-doc.js"() {
|
|
25052
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
24964
25053
|
init_Document();
|
|
24965
25054
|
init_compose_node();
|
|
24966
25055
|
init_resolve_end();
|
|
@@ -25005,6 +25094,7 @@ function parsePrelude(prelude) {
|
|
|
25005
25094
|
var Composer;
|
|
25006
25095
|
var init_composer = __esm({
|
|
25007
25096
|
"../../node_modules/yaml/browser/dist/compose/composer.js"() {
|
|
25097
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
25008
25098
|
init_directives();
|
|
25009
25099
|
init_Document();
|
|
25010
25100
|
init_errors();
|
|
@@ -25346,6 +25436,7 @@ function setFlowScalarValue(token, source, type) {
|
|
|
25346
25436
|
}
|
|
25347
25437
|
var init_cst_scalar = __esm({
|
|
25348
25438
|
"../../node_modules/yaml/browser/dist/parse/cst-scalar.js"() {
|
|
25439
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
25349
25440
|
init_resolve_block_scalar();
|
|
25350
25441
|
init_resolve_flow_scalar();
|
|
25351
25442
|
init_errors();
|
|
@@ -25409,6 +25500,7 @@ function stringifyItem({ start, key: key2, sep: sep3, value }) {
|
|
|
25409
25500
|
var stringify2;
|
|
25410
25501
|
var init_cst_stringify = __esm({
|
|
25411
25502
|
"../../node_modules/yaml/browser/dist/parse/cst-stringify.js"() {
|
|
25503
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
25412
25504
|
stringify2 = (cst) => "type" in cst ? stringifyToken(cst) : stringifyItem(cst);
|
|
25413
25505
|
}
|
|
25414
25506
|
});
|
|
@@ -25446,6 +25538,7 @@ function _visit(path62, item, visitor) {
|
|
|
25446
25538
|
var BREAK2, SKIP2, REMOVE2;
|
|
25447
25539
|
var init_cst_visit = __esm({
|
|
25448
25540
|
"../../node_modules/yaml/browser/dist/parse/cst-visit.js"() {
|
|
25541
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
25449
25542
|
BREAK2 = Symbol("break visit");
|
|
25450
25543
|
SKIP2 = Symbol("skip children");
|
|
25451
25544
|
REMOVE2 = Symbol("remove item");
|
|
@@ -25567,6 +25660,7 @@ function tokenType(source) {
|
|
|
25567
25660
|
var BOM, DOCUMENT, FLOW_END, SCALAR2, isCollection2, isScalar2;
|
|
25568
25661
|
var init_cst = __esm({
|
|
25569
25662
|
"../../node_modules/yaml/browser/dist/parse/cst.js"() {
|
|
25663
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
25570
25664
|
init_cst_scalar();
|
|
25571
25665
|
init_cst_stringify();
|
|
25572
25666
|
init_cst_visit();
|
|
@@ -25595,6 +25689,7 @@ function isEmpty(ch) {
|
|
|
25595
25689
|
var hexDigits, tagChars, flowIndicatorChars, invalidAnchorChars, isNotAnchorChar, Lexer;
|
|
25596
25690
|
var init_lexer = __esm({
|
|
25597
25691
|
"../../node_modules/yaml/browser/dist/parse/lexer.js"() {
|
|
25692
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
25598
25693
|
init_cst();
|
|
25599
25694
|
hexDigits = new Set("0123456789ABCDEFabcdef");
|
|
25600
25695
|
tagChars = new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");
|
|
@@ -26171,6 +26266,7 @@ var init_lexer = __esm({
|
|
|
26171
26266
|
var LineCounter;
|
|
26172
26267
|
var init_line_counter = __esm({
|
|
26173
26268
|
"../../node_modules/yaml/browser/dist/parse/line-counter.js"() {
|
|
26269
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
26174
26270
|
LineCounter = class {
|
|
26175
26271
|
constructor() {
|
|
26176
26272
|
this.lineStarts = [];
|
|
@@ -26291,6 +26387,7 @@ function fixFlowSeqItems(fc) {
|
|
|
26291
26387
|
var Parser;
|
|
26292
26388
|
var init_parser = __esm({
|
|
26293
26389
|
"../../node_modules/yaml/browser/dist/parse/parser.js"() {
|
|
26390
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
26294
26391
|
init_cst();
|
|
26295
26392
|
init_lexer();
|
|
26296
26393
|
Parser = class {
|
|
@@ -27149,6 +27246,7 @@ function stringify3(value, replacer, options) {
|
|
|
27149
27246
|
}
|
|
27150
27247
|
var init_public_api = __esm({
|
|
27151
27248
|
"../../node_modules/yaml/browser/dist/public-api.js"() {
|
|
27249
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
27152
27250
|
init_composer();
|
|
27153
27251
|
init_Document();
|
|
27154
27252
|
init_errors();
|
|
@@ -27194,6 +27292,7 @@ __export(dist_exports, {
|
|
|
27194
27292
|
});
|
|
27195
27293
|
var init_dist = __esm({
|
|
27196
27294
|
"../../node_modules/yaml/browser/dist/index.js"() {
|
|
27295
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
27197
27296
|
init_composer();
|
|
27198
27297
|
init_Document();
|
|
27199
27298
|
init_Schema();
|
|
@@ -27217,6 +27316,7 @@ var init_dist = __esm({
|
|
|
27217
27316
|
var browser_default;
|
|
27218
27317
|
var init_browser = __esm({
|
|
27219
27318
|
"../../node_modules/yaml/browser/index.js"() {
|
|
27319
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
27220
27320
|
init_dist();
|
|
27221
27321
|
init_dist();
|
|
27222
27322
|
browser_default = dist_exports;
|
|
@@ -27313,6 +27413,7 @@ var fs2, MAESTRO_YAML_OPTIONS, INTERACTION_KEYS;
|
|
|
27313
27413
|
var init_flow_file = __esm({
|
|
27314
27414
|
"cli/flow-file.ts"() {
|
|
27315
27415
|
"use strict";
|
|
27416
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
27316
27417
|
fs2 = __toESM(require("fs"), 1);
|
|
27317
27418
|
init_browser();
|
|
27318
27419
|
MAESTRO_YAML_OPTIONS = { schema: "yaml-1.1" };
|
|
@@ -27340,6 +27441,7 @@ var PEACH_SIMULATOR_PATH, PEACH_SIMULATOR_SHELL_FILE, SIMULATOR_DOCUMENT_PATH;
|
|
|
27340
27441
|
var init_simulator_route = __esm({
|
|
27341
27442
|
"src/simulator-route.ts"() {
|
|
27342
27443
|
"use strict";
|
|
27444
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
27343
27445
|
PEACH_SIMULATOR_PATH = "/simulator";
|
|
27344
27446
|
PEACH_SIMULATOR_SHELL_FILE = "/sootsim/index.html";
|
|
27345
27447
|
SIMULATOR_DOCUMENT_PATH = new RegExp(
|
|
@@ -27479,6 +27581,7 @@ var DEFAULT_SOOTSIM_BRIDGE_PORT, DEFAULT_SOOTSIM_BRIDGE_URL, HOSTED_SHELL_PATH,
|
|
|
27479
27581
|
var init_bridge_constants = __esm({
|
|
27480
27582
|
"src/bridge-constants.ts"() {
|
|
27481
27583
|
"use strict";
|
|
27584
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
27482
27585
|
init_simulator_route();
|
|
27483
27586
|
DEFAULT_SOOTSIM_BRIDGE_PORT = 7668;
|
|
27484
27587
|
DEFAULT_SOOTSIM_BRIDGE_URL = `http://localhost:${DEFAULT_SOOTSIM_BRIDGE_PORT}/`;
|
|
@@ -28082,6 +28185,7 @@ var import_node_crypto2, import_node_fs3, import_node_os2, import_node_path2, PE
|
|
|
28082
28185
|
var init_home_paths = __esm({
|
|
28083
28186
|
"src/home-paths.ts"() {
|
|
28084
28187
|
"use strict";
|
|
28188
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
28085
28189
|
import_node_crypto2 = require("node:crypto");
|
|
28086
28190
|
import_node_fs3 = __toESM(require("node:fs"), 1);
|
|
28087
28191
|
import_node_os2 = require("node:os");
|
|
@@ -28109,6 +28213,7 @@ var import_node_fs4, import_node_path3;
|
|
|
28109
28213
|
var init_automatic_update_policy = __esm({
|
|
28110
28214
|
"src/automatic-update-policy.ts"() {
|
|
28111
28215
|
"use strict";
|
|
28216
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
28112
28217
|
import_node_fs4 = require("node:fs");
|
|
28113
28218
|
import_node_path3 = require("node:path");
|
|
28114
28219
|
init_home_paths();
|
|
@@ -28138,6 +28243,7 @@ var SEMANTIC_READY_CONTENT_NODE_FLOOR, HEADLESS_TENANT_FETCH_HUNG_MARKER, WRITE_
|
|
|
28138
28243
|
var init_bridge_contract = __esm({
|
|
28139
28244
|
"src/bridge-contract.ts"() {
|
|
28140
28245
|
"use strict";
|
|
28246
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
28141
28247
|
SEMANTIC_READY_CONTENT_NODE_FLOOR = 100;
|
|
28142
28248
|
HEADLESS_TENANT_FETCH_HUNG_MARKER = "headless tenant fetch hung";
|
|
28143
28249
|
WRITE_COMMAND_TYPES = /* @__PURE__ */ new Set([
|
|
@@ -28156,6 +28262,7 @@ var name, peachPublicBrand, rnxPublicBrand;
|
|
|
28156
28262
|
var init_public_brand = __esm({
|
|
28157
28263
|
"src/public-brand.ts"() {
|
|
28158
28264
|
"use strict";
|
|
28265
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
28159
28266
|
name = "Peach";
|
|
28160
28267
|
peachPublicBrand = Object.freeze({
|
|
28161
28268
|
name,
|
|
@@ -28197,6 +28304,7 @@ var import_node_fs5, import_node_url, import_meta, cached;
|
|
|
28197
28304
|
var init_cli_version = __esm({
|
|
28198
28305
|
"src/cli-version.ts"() {
|
|
28199
28306
|
"use strict";
|
|
28307
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
28200
28308
|
import_node_fs5 = require("node:fs");
|
|
28201
28309
|
import_node_url = require("node:url");
|
|
28202
28310
|
init_public_brand();
|
|
@@ -28212,6 +28320,7 @@ function isValidRuntimeVersion(value) {
|
|
|
28212
28320
|
var init_version = __esm({
|
|
28213
28321
|
"../contrast-runtime-delivery/src/version.ts"() {
|
|
28214
28322
|
"use strict";
|
|
28323
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
28215
28324
|
}
|
|
28216
28325
|
});
|
|
28217
28326
|
|
|
@@ -28251,6 +28360,7 @@ var import_node_fs6, import_node_path4;
|
|
|
28251
28360
|
var init_product = __esm({
|
|
28252
28361
|
"../contrast-runtime-delivery/src/product.ts"() {
|
|
28253
28362
|
"use strict";
|
|
28363
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
28254
28364
|
import_node_fs6 = __toESM(require("node:fs"), 1);
|
|
28255
28365
|
import_node_path4 = __toESM(require("node:path"), 1);
|
|
28256
28366
|
init_version();
|
|
@@ -28697,6 +28807,7 @@ var import_node_child_process4, import_node_crypto3, import_node_fs7, import_nod
|
|
|
28697
28807
|
var init_src = __esm({
|
|
28698
28808
|
"../contrast-runtime-delivery/src/index.ts"() {
|
|
28699
28809
|
"use strict";
|
|
28810
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
28700
28811
|
import_node_child_process4 = require("node:child_process");
|
|
28701
28812
|
import_node_crypto3 = __toESM(require("node:crypto"), 1);
|
|
28702
28813
|
import_node_fs7 = __toESM(require("node:fs"), 1);
|
|
@@ -28917,6 +29028,7 @@ var import_node_child_process5, import_node_crypto4, import_node_fs8, import_nod
|
|
|
28917
29028
|
var init_desktop_host_delivery = __esm({
|
|
28918
29029
|
"src/desktop-host-delivery.ts"() {
|
|
28919
29030
|
"use strict";
|
|
29031
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
28920
29032
|
import_node_child_process5 = require("node:child_process");
|
|
28921
29033
|
import_node_crypto4 = require("node:crypto");
|
|
28922
29034
|
import_node_fs8 = __toESM(require("node:fs"), 1);
|
|
@@ -28938,6 +29050,7 @@ var RNX_INTERNAL_COMMAND, RNX_FORKED_SCRIPT_ENV, RNX_INTERNAL_CHILDREN;
|
|
|
28938
29050
|
var init_internal_child = __esm({
|
|
28939
29051
|
"cli/internal-child.ts"() {
|
|
28940
29052
|
"use strict";
|
|
29053
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
28941
29054
|
RNX_INTERNAL_COMMAND = "__internal";
|
|
28942
29055
|
RNX_FORKED_SCRIPT_ENV = "PEACH_RUNS_FORKED_SCRIPTS";
|
|
28943
29056
|
RNX_INTERNAL_CHILDREN = {
|
|
@@ -29004,6 +29117,7 @@ var DEFAULT_CONTRAST_BACKEND_ORIGIN, LOOPBACK_PROBE_HOSTNAMES, PEACHSIM_NATIVE_H
|
|
|
29004
29117
|
var init_backend_origin = __esm({
|
|
29005
29118
|
"src/backend-origin.ts"() {
|
|
29006
29119
|
"use strict";
|
|
29120
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
29007
29121
|
DEFAULT_CONTRAST_BACKEND_ORIGIN = "https://peachsim.com";
|
|
29008
29122
|
LOOPBACK_PROBE_HOSTNAMES = ["127.0.0.1", "::1"];
|
|
29009
29123
|
PEACHSIM_NATIVE_HOST = "native.peachsim.com";
|
|
@@ -29038,6 +29152,7 @@ var import_node_child_process6;
|
|
|
29038
29152
|
var init_admitted_mac_build = __esm({
|
|
29039
29153
|
"src/admitted-mac-build.ts"() {
|
|
29040
29154
|
"use strict";
|
|
29155
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
29041
29156
|
import_node_child_process6 = require("node:child_process");
|
|
29042
29157
|
}
|
|
29043
29158
|
});
|
|
@@ -29049,6 +29164,7 @@ function isRecord(value) {
|
|
|
29049
29164
|
var init_is_record = __esm({
|
|
29050
29165
|
"src/is-record.ts"() {
|
|
29051
29166
|
"use strict";
|
|
29167
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
29052
29168
|
}
|
|
29053
29169
|
});
|
|
29054
29170
|
|
|
@@ -29066,6 +29182,7 @@ var import_node_fs9, import_node_path7;
|
|
|
29066
29182
|
var init_swift_objc_sdk_tree = __esm({
|
|
29067
29183
|
"src/swift-objc-sdk-tree.ts"() {
|
|
29068
29184
|
"use strict";
|
|
29185
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
29069
29186
|
import_node_fs9 = require("node:fs");
|
|
29070
29187
|
import_node_path7 = __toESM(require("node:path"), 1);
|
|
29071
29188
|
}
|
|
@@ -29075,6 +29192,7 @@ var init_swift_objc_sdk_tree = __esm({
|
|
|
29075
29192
|
var init_swift_compiler_digest = __esm({
|
|
29076
29193
|
"src/swift-compiler-digest.ts"() {
|
|
29077
29194
|
"use strict";
|
|
29195
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
29078
29196
|
init_swift_objc_sdk_tree();
|
|
29079
29197
|
}
|
|
29080
29198
|
});
|
|
@@ -29482,6 +29600,7 @@ var IDENT, ESCAPES, OPENERS, CALLS, HEADER, EXCERPT, MARKER;
|
|
|
29482
29600
|
var init_swift_design_time = __esm({
|
|
29483
29601
|
"src/swift-design-time.ts"() {
|
|
29484
29602
|
"use strict";
|
|
29603
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
29485
29604
|
IDENT = /[A-Za-z_À-$0-9]/;
|
|
29486
29605
|
ESCAPES = {
|
|
29487
29606
|
"0": "\0",
|
|
@@ -29573,6 +29692,7 @@ var SWIFT_DISTRIBUTION_MANIFEST, SWIFT_DISTRIBUTION_HOSTS, isStrings;
|
|
|
29573
29692
|
var init_swift_distribution_contract = __esm({
|
|
29574
29693
|
"src/swift-distribution-contract.ts"() {
|
|
29575
29694
|
"use strict";
|
|
29695
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
29576
29696
|
init_is_record();
|
|
29577
29697
|
SWIFT_DISTRIBUTION_MANIFEST = "distribution.json";
|
|
29578
29698
|
SWIFT_DISTRIBUTION_HOSTS = [
|
|
@@ -29596,7 +29716,17 @@ function sourceSwiftCheckout() {
|
|
|
29596
29716
|
}
|
|
29597
29717
|
function swiftSdkOptions() {
|
|
29598
29718
|
const directory = process.env.PEACH_SWIFT_SDKS_PATH;
|
|
29599
|
-
|
|
29719
|
+
if (directory) return ["--swift-sdks-path", import_node_path8.default.resolve(directory)];
|
|
29720
|
+
if (scratch && process.platform === "linux") {
|
|
29721
|
+
const config = process.env.XDG_CONFIG_HOME;
|
|
29722
|
+
if (config !== void 0 && !import_node_path8.default.isAbsolute(config))
|
|
29723
|
+
throw new Error("XDG_CONFIG_HOME must be an absolute path");
|
|
29724
|
+
return [
|
|
29725
|
+
"--swift-sdks-path",
|
|
29726
|
+
config === void 0 ? import_node_path8.default.join(import_node_os5.default.userInfo().homedir, ".swiftpm", "swift-sdks") : import_node_path8.default.join(config, "swiftpm", "swift-sdks")
|
|
29727
|
+
];
|
|
29728
|
+
}
|
|
29729
|
+
return [];
|
|
29600
29730
|
}
|
|
29601
29731
|
function swiftHostCompilerArchive(release, host2 = `${process.platform}-${process.arch}`) {
|
|
29602
29732
|
if (release !== SWIFT_HOST_COMPILER_RELEASE)
|
|
@@ -29648,47 +29778,13 @@ function confineSwiftScratch(root) {
|
|
|
29648
29778
|
}
|
|
29649
29779
|
const dir = import_node_path8.default.join(root, String(process.pid));
|
|
29650
29780
|
import_node_fs10.default.mkdirSync(dir, { recursive: true });
|
|
29651
|
-
|
|
29652
|
-
|
|
29653
|
-
|
|
29654
|
-
import_node_fs10.default.mkdirSync(swiftHome, { recursive: true });
|
|
29655
|
-
}
|
|
29656
|
-
const seeded = import_node_path8.default.join(import_node_os5.default.homedir(), ".swiftpm");
|
|
29657
|
-
const dirAbsentBefore = lstatIfKnown(seeded) === null;
|
|
29658
|
-
const absentBefore = swiftpmSeeds.filter(
|
|
29659
|
-
(name3) => lstatIfKnown(import_node_path8.default.join(seeded, name3)) === null
|
|
29660
|
-
);
|
|
29781
|
+
const home = import_node_path8.default.join(root, "home");
|
|
29782
|
+
import_node_fs10.default.mkdirSync(home, { recursive: true });
|
|
29783
|
+
scratch = { directory: dir, home };
|
|
29661
29784
|
process.once("exit", () => {
|
|
29662
29785
|
import_node_fs10.default.rmSync(dir, { recursive: true, force: true });
|
|
29663
|
-
for (const name3 of absentBefore) removeSwiftpmSeed(import_node_path8.default.join(seeded, name3), name3);
|
|
29664
|
-
if (dirAbsentBefore && lstatIfKnown(seeded)?.isDirectory())
|
|
29665
|
-
try {
|
|
29666
|
-
import_node_fs10.default.rmdirSync(seeded);
|
|
29667
|
-
} catch {
|
|
29668
|
-
}
|
|
29669
29786
|
});
|
|
29670
29787
|
}
|
|
29671
|
-
function lstatIfKnown(entry) {
|
|
29672
|
-
try {
|
|
29673
|
-
return import_node_fs10.default.lstatSync(entry);
|
|
29674
|
-
} catch (error) {
|
|
29675
|
-
if (error instanceof Error && "code" in error && error.code === "ENOENT") return null;
|
|
29676
|
-
return void 0;
|
|
29677
|
-
}
|
|
29678
|
-
}
|
|
29679
|
-
function removeSwiftpmSeed(entry, name3) {
|
|
29680
|
-
const stat2 = lstatIfKnown(entry);
|
|
29681
|
-
if (!stat2) return;
|
|
29682
|
-
try {
|
|
29683
|
-
if (name3 === "cache") {
|
|
29684
|
-
if (stat2.isSymbolicLink() && import_node_fs10.default.readlinkSync(entry).endsWith("/.cache/org.swift.swiftpm"))
|
|
29685
|
-
import_node_fs10.default.unlinkSync(entry);
|
|
29686
|
-
} else if (stat2.isDirectory()) {
|
|
29687
|
-
import_node_fs10.default.rmdirSync(entry);
|
|
29688
|
-
}
|
|
29689
|
-
} catch {
|
|
29690
|
-
}
|
|
29691
|
-
}
|
|
29692
29788
|
function processRuns(pid) {
|
|
29693
29789
|
try {
|
|
29694
29790
|
process.kill(pid, 0);
|
|
@@ -29699,7 +29795,14 @@ function processRuns(pid) {
|
|
|
29699
29795
|
}
|
|
29700
29796
|
function swiftEnvironment(base = process.env) {
|
|
29701
29797
|
if (!scratch) return base;
|
|
29702
|
-
return
|
|
29798
|
+
return {
|
|
29799
|
+
...base,
|
|
29800
|
+
TMPDIR: scratch.directory,
|
|
29801
|
+
XDG_CONFIG_HOME: import_node_path8.default.join(scratch.home, ".config"),
|
|
29802
|
+
XDG_CACHE_HOME: import_node_path8.default.join(scratch.home, ".cache"),
|
|
29803
|
+
XDG_DATA_HOME: import_node_path8.default.join(scratch.home, ".local", "share"),
|
|
29804
|
+
...process.platform === "linux" ? { HOME: scratch.home } : {}
|
|
29805
|
+
};
|
|
29703
29806
|
}
|
|
29704
29807
|
function swiftSourceSdk(root) {
|
|
29705
29808
|
const pin = JSON.parse(
|
|
@@ -29819,7 +29922,7 @@ function verifySwiftSdk(swift, sdk) {
|
|
|
29819
29922
|
function installSwiftSdkArchive(swift, sdk, archive) {
|
|
29820
29923
|
validateSwiftSdkIdentity(sdk);
|
|
29821
29924
|
const staging = import_node_fs10.default.realpathSync(
|
|
29822
|
-
import_node_fs10.default.mkdtempSync(import_node_path8.default.join(scratch ?? import_node_os5.default.tmpdir(), "peach-sdk-verification-"))
|
|
29925
|
+
import_node_fs10.default.mkdtempSync(import_node_path8.default.join(scratch?.directory ?? import_node_os5.default.tmpdir(), "peach-sdk-verification-"))
|
|
29823
29926
|
);
|
|
29824
29927
|
try {
|
|
29825
29928
|
if (swiftFileChecksum(archive) !== sdk.wasmSdkChecksum)
|
|
@@ -29895,7 +29998,7 @@ function installSwiftWasmSdk(release, sdk) {
|
|
|
29895
29998
|
} catch {
|
|
29896
29999
|
}
|
|
29897
30000
|
const swift = import_node_path8.default.join(swiftCompiler(release), "swift");
|
|
29898
|
-
const staging = import_node_fs10.default.mkdtempSync(import_node_path8.default.join(scratch ?? import_node_os5.default.tmpdir(), "builder-swift-sdk-"));
|
|
30001
|
+
const staging = import_node_fs10.default.mkdtempSync(import_node_path8.default.join(scratch?.directory ?? import_node_os5.default.tmpdir(), "builder-swift-sdk-"));
|
|
29899
30002
|
const archive = import_node_path8.default.join(staging, "sdk.artifactbundle.tar.gz");
|
|
29900
30003
|
try {
|
|
29901
30004
|
if (sdk.wasmSdkUrl.startsWith("file:"))
|
|
@@ -30016,10 +30119,11 @@ function swiftCompilerInstall(release) {
|
|
|
30016
30119
|
]
|
|
30017
30120
|
};
|
|
30018
30121
|
}
|
|
30019
|
-
var import_node_child_process7, import_node_crypto5, import_node_fs10, import_node_os5, import_node_path8, import_node_url2, SWIFT_HOST_COMPILER_RELEASE, SWIFT_HOST_COMPILER_ID, compilerArchives, scratch,
|
|
30122
|
+
var import_node_child_process7, import_node_crypto5, import_node_fs10, import_node_os5, import_node_path8, import_node_url2, SWIFT_HOST_COMPILER_RELEASE, SWIFT_HOST_COMPILER_ID, compilerArchives, scratch, sdkFileHashes, verifiedCompilers;
|
|
30020
30123
|
var init_swift_toolchain = __esm({
|
|
30021
30124
|
"src/swift-toolchain.ts"() {
|
|
30022
30125
|
"use strict";
|
|
30126
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
30023
30127
|
import_node_child_process7 = require("node:child_process");
|
|
30024
30128
|
import_node_crypto5 = require("node:crypto");
|
|
30025
30129
|
import_node_fs10 = __toESM(require("node:fs"), 1);
|
|
@@ -30042,7 +30146,6 @@ var init_swift_toolchain = __esm({
|
|
|
30042
30146
|
manifest: "fe07a29d4f4374cad47b29de70e90aa2e3b7664e08c8b53d304585e65637da24"
|
|
30043
30147
|
}
|
|
30044
30148
|
};
|
|
30045
|
-
swiftpmSeeds = ["cache", "configuration", "security"];
|
|
30046
30149
|
sdkFileHashes = /* @__PURE__ */ new Map();
|
|
30047
30150
|
verifiedCompilers = /* @__PURE__ */ new Map();
|
|
30048
30151
|
}
|
|
@@ -30157,6 +30260,7 @@ var import_node_child_process8, import_node_crypto6, import_node_fs11, import_no
|
|
|
30157
30260
|
var init_swift_icu = __esm({
|
|
30158
30261
|
"src/swift-icu.ts"() {
|
|
30159
30262
|
"use strict";
|
|
30263
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
30160
30264
|
import_node_child_process8 = require("node:child_process");
|
|
30161
30265
|
import_node_crypto6 = require("node:crypto");
|
|
30162
30266
|
import_node_fs11 = require("node:fs");
|
|
@@ -30615,6 +30719,7 @@ var import_node_crypto7;
|
|
|
30615
30719
|
var init_swift_objc_export = __esm({
|
|
30616
30720
|
"src/swift-objc-export.ts"() {
|
|
30617
30721
|
"use strict";
|
|
30722
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
30618
30723
|
import_node_crypto7 = require("node:crypto");
|
|
30619
30724
|
}
|
|
30620
30725
|
});
|
|
@@ -30735,6 +30840,7 @@ function swiftObjCImports(graphs, options) {
|
|
|
30735
30840
|
const categories = /* @__PURE__ */ new Map();
|
|
30736
30841
|
const functions = /* @__PURE__ */ new Map();
|
|
30737
30842
|
const typedefs = /* @__PURE__ */ new Map();
|
|
30843
|
+
const wrappedTypedefs = /* @__PURE__ */ new Map();
|
|
30738
30844
|
const visit3 = (node) => {
|
|
30739
30845
|
if (!record(node)) return;
|
|
30740
30846
|
if (node.kind === "ObjCInterfaceDecl" && typeof node.name === "string" && selected.has(node.name)) {
|
|
@@ -30756,6 +30862,9 @@ function swiftObjCImports(graphs, options) {
|
|
|
30756
30862
|
if (node.kind === "TypedefDecl" && typeof node.name === "string" && record(node.type)) {
|
|
30757
30863
|
const canonical2 = node.type.desugaredQualType ?? node.type.qualType;
|
|
30758
30864
|
if (typeof canonical2 === "string") typedefs.set(node.name, canonical2);
|
|
30865
|
+
if (nodes(node.inner).some((attribute) => attribute.kind === "SwiftNewTypeAttr")) {
|
|
30866
|
+
wrappedTypedefs.set(node.name, [...wrappedTypedefs.get(node.name) ?? [], node]);
|
|
30867
|
+
}
|
|
30759
30868
|
}
|
|
30760
30869
|
for (const child of nodes(node.inner)) visit3(child);
|
|
30761
30870
|
};
|
|
@@ -30763,14 +30872,29 @@ function swiftObjCImports(graphs, options) {
|
|
|
30763
30872
|
fail("declarations", "expected a complete Clang translation unit AST");
|
|
30764
30873
|
visit3(options.clangAST);
|
|
30765
30874
|
const symbols = /* @__PURE__ */ new Map();
|
|
30875
|
+
const seenSymbols = /* @__PURE__ */ new Set();
|
|
30766
30876
|
for (const graph of graphs) {
|
|
30767
30877
|
if (graph.module.name !== options.module)
|
|
30768
30878
|
fail("declarations", `symbol graph belongs to ${graph.module.name}`);
|
|
30769
30879
|
for (const symbol of graph.symbols) {
|
|
30770
|
-
|
|
30771
|
-
|
|
30772
|
-
|
|
30773
|
-
|
|
30880
|
+
if (symbol.availability?.some(
|
|
30881
|
+
(entry) => entry.isUnconditionallyUnavailable && (!entry.domain || entry.domain === "Swift" || entry.domain === "iOS")
|
|
30882
|
+
))
|
|
30883
|
+
continue;
|
|
30884
|
+
const key2 = JSON.stringify([
|
|
30885
|
+
symbol.identifier.precise,
|
|
30886
|
+
symbol.kind.identifier,
|
|
30887
|
+
symbol.pathComponents,
|
|
30888
|
+
symbol.declarationFragments,
|
|
30889
|
+
symbol.functionSignature,
|
|
30890
|
+
symbol.accessLevel,
|
|
30891
|
+
symbol.availability
|
|
30892
|
+
]);
|
|
30893
|
+
if (seenSymbols.has(key2)) continue;
|
|
30894
|
+
seenSymbols.add(key2);
|
|
30895
|
+
const overloads = symbols.get(symbol.identifier.precise) ?? [];
|
|
30896
|
+
overloads.push(symbol);
|
|
30897
|
+
symbols.set(symbol.identifier.precise, overloads);
|
|
30774
30898
|
}
|
|
30775
30899
|
}
|
|
30776
30900
|
const classes = [];
|
|
@@ -30785,7 +30909,10 @@ function swiftObjCImports(graphs, options) {
|
|
|
30785
30909
|
types.set(name3, nativeName);
|
|
30786
30910
|
}
|
|
30787
30911
|
for (const nativeName of [...selected].sort()) {
|
|
30788
|
-
const
|
|
30912
|
+
const candidates = symbols.get(`c:objc(cs)${nativeName}`);
|
|
30913
|
+
if (candidates && candidates.length !== 1)
|
|
30914
|
+
fail(nativeName, "ambiguous imported class declaration");
|
|
30915
|
+
const symbol = candidates?.[0];
|
|
30789
30916
|
const name3 = symbol?.pathComponents[0];
|
|
30790
30917
|
if (!symbol || symbol.kind.identifier !== "swift.class" || !name3 || !identifier(name3))
|
|
30791
30918
|
fail(nativeName, "missing Swift-imported class declaration");
|
|
@@ -30800,6 +30927,70 @@ function swiftObjCImports(graphs, options) {
|
|
|
30800
30927
|
types.set(name3, nativeName);
|
|
30801
30928
|
classes.push({ name: name3, nativeName });
|
|
30802
30929
|
}
|
|
30930
|
+
const wrapperMembers = /* @__PURE__ */ new Map();
|
|
30931
|
+
const wrapperConformances = /* @__PURE__ */ new Map();
|
|
30932
|
+
for (const graph of graphs)
|
|
30933
|
+
for (const edge of graph.relationships)
|
|
30934
|
+
if (edge.kind === "conformsTo" && edge.source.includes("@T@")) {
|
|
30935
|
+
const protocols = wrapperConformances.get(edge.source) ?? /* @__PURE__ */ new Set();
|
|
30936
|
+
protocols.add(edge.target);
|
|
30937
|
+
wrapperConformances.set(edge.source, protocols);
|
|
30938
|
+
}
|
|
30939
|
+
for (const candidates of symbols.values())
|
|
30940
|
+
for (const member of candidates)
|
|
30941
|
+
if (member.pathComponents.length === 2 && ["init(rawValue:)", "init(_:)"].includes(member.pathComponents[1])) {
|
|
30942
|
+
const owner = member.pathComponents[0];
|
|
30943
|
+
wrapperMembers.set(owner, [...wrapperMembers.get(owner) ?? [], member]);
|
|
30944
|
+
}
|
|
30945
|
+
const stringWrappers = /* @__PURE__ */ new Map();
|
|
30946
|
+
const wrapperSymbols = [...symbols].filter(
|
|
30947
|
+
([usr, candidates]) => usr.includes("@T@") && candidates[0]?.kind.identifier === "swift.struct"
|
|
30948
|
+
).sort(([left], [right]) => left.localeCompare(right));
|
|
30949
|
+
for (const [usr, candidates] of wrapperSymbols) {
|
|
30950
|
+
const nativeName = /^c:.*@T@([A-Za-z_]\w*)$/.exec(usr)?.[1];
|
|
30951
|
+
if (!nativeName) continue;
|
|
30952
|
+
const originals = wrappedTypedefs.get(nativeName);
|
|
30953
|
+
const declaration = originals?.[0];
|
|
30954
|
+
if (!declaration || !record(declaration.type)) continue;
|
|
30955
|
+
const original = declaration.type.desugaredQualType ?? declaration.type.qualType;
|
|
30956
|
+
if (typeof original !== "string" || original.replace(/\s/g, "") !== "NSString*")
|
|
30957
|
+
continue;
|
|
30958
|
+
const symbol = candidates[0];
|
|
30959
|
+
const name3 = symbol.pathComponents[0];
|
|
30960
|
+
if (candidates.length !== 1 || originals?.length !== 1 || symbol.pathComponents.length !== 1 || !name3 || !identifier(name3) || types.has(name3) || stringWrappers.has(name3) || symbol.accessLevel !== "public" || text2(symbol.declarationFragments ?? []).trim() !== `struct ${name3}` || symbol.availability?.length)
|
|
30961
|
+
fail(usr, "typed string wrapper identity is unqualified");
|
|
30962
|
+
if (!["s:SY", "s:SH", "s:SQ", "s:s8SendableP"].every(
|
|
30963
|
+
(protocol) => wrapperConformances.get(usr)?.has(protocol)
|
|
30964
|
+
))
|
|
30965
|
+
fail(usr, "typed string wrapper conformances are unqualified");
|
|
30966
|
+
const members = wrapperMembers.get(name3) ?? [];
|
|
30967
|
+
const initializers = members.filter(
|
|
30968
|
+
(member) => member.pathComponents[1] === "init(rawValue:)"
|
|
30969
|
+
);
|
|
30970
|
+
if (initializers.length !== 1 || initializers[0].kind.identifier !== "swift.init" || initializers[0].accessLevel !== "public" || text2(initializers[0].declarationFragments ?? []).trim() !== "init(rawValue: String)" || !initializers[0].declarationFragments?.some(
|
|
30971
|
+
(part) => part.kind === "typeIdentifier" && part.preciseIdentifier === "s:SS"
|
|
30972
|
+
))
|
|
30973
|
+
fail(usr, "typed string wrapper raw initializer is unqualified");
|
|
30974
|
+
const unlabelled = members.filter((member) => member.pathComponents[1] === "init(_:)");
|
|
30975
|
+
if (unlabelled.length > 1 || unlabelled.length === 1 && (unlabelled[0].kind.identifier !== "swift.init" || unlabelled[0].accessLevel !== "public" || text2(unlabelled[0].declarationFragments ?? []).trim() !== "init(_ rawValue: String)" || !unlabelled[0].declarationFragments?.some(
|
|
30976
|
+
(part) => part.kind === "typeIdentifier" && part.preciseIdentifier === "s:SS"
|
|
30977
|
+
)))
|
|
30978
|
+
fail(usr, "typed string wrapper unlabeled initializer is unqualified");
|
|
30979
|
+
stringWrappers.set(
|
|
30980
|
+
name3,
|
|
30981
|
+
[
|
|
30982
|
+
`public struct ${swiftName(name3)}: Swift.RawRepresentable, Swift.Hashable, Swift.Equatable, Swift._SwiftNewtypeWrapper, Swift._ObjectiveCBridgeable, Swift.Sendable {`,
|
|
30983
|
+
" public typealias RawValue = Swift.String",
|
|
30984
|
+
" public typealias _ObjectiveCType = Foundation.NSString",
|
|
30985
|
+
" private let _rawValue: Swift.String",
|
|
30986
|
+
" public var rawValue: Swift.String { _rawValue }",
|
|
30987
|
+
" public init(rawValue: Swift.String) { _rawValue = rawValue }",
|
|
30988
|
+
...unlabelled.length ? [" public init(_ rawValue: Swift.String) { _rawValue = rawValue }"] : [],
|
|
30989
|
+
"}",
|
|
30990
|
+
""
|
|
30991
|
+
].join("\n")
|
|
30992
|
+
);
|
|
30993
|
+
}
|
|
30803
30994
|
const type = (parts, where) => {
|
|
30804
30995
|
const written = text2(parts).trim();
|
|
30805
30996
|
const optional = /[?!]$/.test(written);
|
|
@@ -30822,7 +31013,7 @@ function swiftObjCImports(graphs, options) {
|
|
|
30822
31013
|
Double: "double"
|
|
30823
31014
|
};
|
|
30824
31015
|
if (!optional && primitive[written] && !parts.some(
|
|
30825
|
-
(part) => part.preciseIdentifier?.startsWith("c:") || part.preciseIdentifier && symbols.get(part.preciseIdentifier)?.kind.identifier === "swift.class"
|
|
31016
|
+
(part) => part.preciseIdentifier?.startsWith("c:") || part.preciseIdentifier && symbols.get(part.preciseIdentifier)?.[0]?.kind.identifier === "swift.class"
|
|
30826
31017
|
))
|
|
30827
31018
|
return {
|
|
30828
31019
|
swift: `Swift.${written === "()" ? "Void" : written}`,
|
|
@@ -30834,7 +31025,7 @@ function swiftObjCImports(graphs, options) {
|
|
|
30834
31025
|
const identifiers = parts.filter((part) => part.kind === "typeIdentifier");
|
|
30835
31026
|
const id = identifiers.length === 1 ? identifiers[0]?.preciseIdentifier : void 0;
|
|
30836
31027
|
const native = id && nativeClass(id);
|
|
30837
|
-
const swiftClass = id ? symbols.get(id) : void 0;
|
|
31028
|
+
const swiftClass = id ? symbols.get(id)?.[0] : void 0;
|
|
30838
31029
|
const resolved = native ? names.get(native) : swiftClass?.kind.identifier === "swift.class" && swiftClass.pathComponents.length === 1 && swiftClass.pathComponents[0] === spelling && types.has(spelling) ? spelling : void 0;
|
|
30839
31030
|
if (!resolved || identifiers[0]?.spelling !== spelling || spelling !== resolved && spelling !== native)
|
|
30840
31031
|
return fail(
|
|
@@ -30895,7 +31086,8 @@ function swiftObjCImports(graphs, options) {
|
|
|
30895
31086
|
);
|
|
30896
31087
|
};
|
|
30897
31088
|
const membersByClass = /* @__PURE__ */ new Map();
|
|
30898
|
-
|
|
31089
|
+
const importedSymbols = [...symbols.values()].flat();
|
|
31090
|
+
for (const symbol of importedSymbols) {
|
|
30899
31091
|
const owner = /^c:objc\(cs\)([A-Za-z_]\w*)\(/.exec(symbol.identifier.precise)?.[1];
|
|
30900
31092
|
if (owner && selected.has(owner)) {
|
|
30901
31093
|
const members = membersByClass.get(owner);
|
|
@@ -31022,27 +31214,40 @@ function swiftObjCImports(graphs, options) {
|
|
|
31022
31214
|
(n) => nodes(n.inner)
|
|
31023
31215
|
);
|
|
31024
31216
|
for (const member of members) {
|
|
31025
|
-
if (member.kind === "ObjCMethodDecl" && typeof member.name === "string" && (/^init(?:$|[^a-z])/.test(member.name.replace(/^_+/, "")) || nodes(member.inner).some(
|
|
31217
|
+
if (member.kind === "ObjCMethodDecl" && typeof member.name === "string" && member.name !== "init" && (/^init(?:$|[^a-z])/.test(member.name.replace(/^_+/, "")) || nodes(member.inner).some(
|
|
31026
31218
|
(attribute) => attribute.kind === "NSConsumesSelfAttr" || attribute.kind === "ObjCDesignatedInitializerAttr"
|
|
31027
|
-
)))
|
|
31219
|
+
)) && !nodes(member.inner).some((attribute) => attribute.kind === "UnavailableAttr"))
|
|
31028
31220
|
fail(
|
|
31029
31221
|
`${nativeName}.${member.name}`,
|
|
31030
31222
|
"explicit or designated initialization is unqualified"
|
|
31031
31223
|
);
|
|
31032
|
-
|
|
31033
|
-
fail(`${nativeName}.${member.name}`, "variadic methods are unqualified");
|
|
31034
|
-
}
|
|
31035
|
-
const constructor = thunk(
|
|
31036
|
-
`${nativeName}:new`,
|
|
31037
|
-
raw2,
|
|
31038
|
-
[],
|
|
31039
|
-
null,
|
|
31040
|
-
`[[${nativeName} alloc] init]`
|
|
31041
|
-
);
|
|
31224
|
+
}
|
|
31042
31225
|
const body = [
|
|
31043
|
-
`public required init(_objcRetained: Swift.UnsafeMutableRawPointer) { precondition(Self.self == ${swiftName(name3)}.self, "Swift subclass construction is unqualified"); super.init(_objcRetained: _objcRetained) }
|
|
31044
|
-
`public init() { precondition(Self.self == ${swiftName(name3)}.self, "Swift subclass construction is unqualified"); super.init(_objcRetained: ${constructor}()!) }`
|
|
31226
|
+
`public required init(_objcRetained: Swift.UnsafeMutableRawPointer) { precondition(Self.self == ${swiftName(name3)}.self, "Swift subclass construction is unqualified"); super.init(_objcRetained: _objcRetained) }`
|
|
31045
31227
|
];
|
|
31228
|
+
const defaultInitializer = members.find(
|
|
31229
|
+
(member) => member.kind === "ObjCMethodDecl" && member.instance === true && member.name === "init"
|
|
31230
|
+
);
|
|
31231
|
+
const importedInitializer = symbols.get(`c:objc(cs)${nativeName}(im)init`);
|
|
31232
|
+
const initializerSpelling = importedInitializer?.[0] ? text2(importedInitializer[0].declarationFragments ?? []).trim() : "init()";
|
|
31233
|
+
if (!/^init[?!]?\(\)$/.test(initializerSpelling))
|
|
31234
|
+
fail(`${nativeName}.init`, "default initializer signature is unqualified");
|
|
31235
|
+
if (!defaultInitializer || !nodes(defaultInitializer.inner).some(
|
|
31236
|
+
(attribute) => attribute.kind === "UnavailableAttr"
|
|
31237
|
+
)) {
|
|
31238
|
+
if (defaultInitializer && (importedInitializer?.length !== 1 || importedInitializer[0]?.kind.identifier !== "swift.init"))
|
|
31239
|
+
fail(`${nativeName}.init`, "missing Swift-imported default initializer");
|
|
31240
|
+
const constructor = thunk(
|
|
31241
|
+
`${nativeName}:new`,
|
|
31242
|
+
raw2,
|
|
31243
|
+
[],
|
|
31244
|
+
null,
|
|
31245
|
+
`[[${nativeName} alloc] init]`
|
|
31246
|
+
);
|
|
31247
|
+
body.push(
|
|
31248
|
+
`public ${initializerSpelling} { precondition(Self.self == ${swiftName(name3)}.self, "Swift subclass construction is unqualified"); ${/^init[?!]/.test(initializerSpelling) ? `guard let _peer = ${constructor}() else { return nil }; super.init(_objcRetained: _peer)` : `super.init(_objcRetained: ${constructor}()!)`} }`
|
|
31249
|
+
);
|
|
31250
|
+
}
|
|
31046
31251
|
bodies.set(name3, body);
|
|
31047
31252
|
const prefix = `c:objc(cs)${nativeName}`;
|
|
31048
31253
|
for (const symbol of membersByClass.get(nativeName) ?? []) {
|
|
@@ -31060,16 +31265,19 @@ function swiftObjCImports(graphs, options) {
|
|
|
31060
31265
|
(m) => m.kind === (property ? "ObjCPropertyDecl" : "ObjCMethodDecl") && m.name === selector && (property ? m.class !== true === instance : m.instance === instance)
|
|
31061
31266
|
);
|
|
31062
31267
|
if (!decl) fail(usr, "member absent from original Clang interface");
|
|
31268
|
+
if (decl.variadic === true)
|
|
31269
|
+
fail(`${nativeName}.${selector}`, "variadic methods are unqualified");
|
|
31063
31270
|
const parts = symbol.declarationFragments ?? [];
|
|
31064
31271
|
const written = text2(parts);
|
|
31065
31272
|
if (symbol.availability?.length || /@|\b(?:optional|nonisolated|isolated|async|throws|rethrows)\b/.test(written))
|
|
31066
31273
|
fail(usr, "availability and asynchronous or throwing imports are unqualified");
|
|
31067
31274
|
if (nodes(decl.inner).some(
|
|
31068
|
-
(a) => /^(?:Unavailable|SwiftPrivate|SwiftAsync|SwiftError|ObjCRequiresSuper
|
|
31275
|
+
(a) => /^(?:Unavailable|SwiftPrivate|SwiftAsync|SwiftError|ObjCRequiresSuper)Attr$/.test(
|
|
31069
31276
|
String(a.kind)
|
|
31070
|
-
)
|
|
31277
|
+
) || a.kind === "NSConsumesSelfAttr" && selector !== "init"
|
|
31071
31278
|
))
|
|
31072
31279
|
fail(usr, "member attributes require a qualified importer path");
|
|
31280
|
+
if (selector === "init" && symbol.kind.identifier === "swift.init") continue;
|
|
31073
31281
|
const receiver = instance ? "_object" : nativeName;
|
|
31074
31282
|
const access = symbol.accessLevel === "open" ? "open" : "public";
|
|
31075
31283
|
const memberName = parts.find((part) => part.kind === "identifier")?.spelling;
|
|
@@ -31148,7 +31356,7 @@ function swiftObjCImports(graphs, options) {
|
|
|
31148
31356
|
}
|
|
31149
31357
|
}
|
|
31150
31358
|
const importedFunctions = [];
|
|
31151
|
-
for (const symbol of
|
|
31359
|
+
for (const symbol of importedSymbols) {
|
|
31152
31360
|
if (symbol.kind.identifier !== "swift.func") continue;
|
|
31153
31361
|
const usr = symbol.identifier.precise;
|
|
31154
31362
|
const native = /^c:@F@([A-Za-z_]\w*)$/.exec(usr)?.[1];
|
|
@@ -31189,7 +31397,7 @@ function swiftObjCImports(graphs, options) {
|
|
|
31189
31397
|
`public func ${swiftName(name3)}(${argumentsSwift}) -> ${result.swift} { ${result.c === "void" ? "" : "return "}${local}(${parameters.map((p) => swiftName(p.name)).join(", ")}) }`
|
|
31190
31398
|
);
|
|
31191
31399
|
}
|
|
31192
|
-
if (!classes.length && !importedFunctions.length)
|
|
31400
|
+
if (!classes.length && !importedFunctions.length && !stringWrappers.size)
|
|
31193
31401
|
fail("declarations", "no represented original Objective-C classes or C functions");
|
|
31194
31402
|
const registerFunction = `_peachRegisterObjCImports_${hash(options.module)}`;
|
|
31195
31403
|
const registration = [
|
|
@@ -31202,12 +31410,14 @@ function swiftObjCImports(graphs, options) {
|
|
|
31202
31410
|
""
|
|
31203
31411
|
].join("\n");
|
|
31204
31412
|
const swift = [
|
|
31205
|
-
...classes.length ? ["import Foundation"
|
|
31413
|
+
...classes.length || stringWrappers.size ? ["import Foundation"] : [],
|
|
31414
|
+
...classes.length ? ["import PeachObjC"] : [],
|
|
31206
31415
|
"",
|
|
31207
31416
|
...external,
|
|
31208
31417
|
"",
|
|
31209
31418
|
...importedFunctions,
|
|
31210
31419
|
"",
|
|
31420
|
+
...stringWrappers.values(),
|
|
31211
31421
|
...classes.flatMap((c) => [
|
|
31212
31422
|
`open class ${swiftName(c.name)}: PeachObjC._ObjCForeignObject {`,
|
|
31213
31423
|
...bodies.get(c.name).map((line) => ` ${line}`),
|
|
@@ -31228,6 +31438,7 @@ var import_node_crypto8, SwiftObjCImportError, record, nodes, fragments, text2,
|
|
|
31228
31438
|
var init_swift_objc_import = __esm({
|
|
31229
31439
|
"src/swift-objc-import.ts"() {
|
|
31230
31440
|
"use strict";
|
|
31441
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
31231
31442
|
import_node_crypto8 = require("node:crypto");
|
|
31232
31443
|
SwiftObjCImportError = class extends Error {
|
|
31233
31444
|
};
|
|
@@ -31257,6 +31468,7 @@ var import_node_path10, IOS_SDK_TARGET, OVERLAY_PATH, tree, IOS_SDK_HEADERS, IOS
|
|
|
31257
31468
|
var init_swift_objc_sdk = __esm({
|
|
31258
31469
|
"src/swift-objc-sdk.ts"() {
|
|
31259
31470
|
"use strict";
|
|
31471
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
31260
31472
|
import_node_path10 = __toESM(require("node:path"), 1);
|
|
31261
31473
|
init_swift_objc_sdk_tree();
|
|
31262
31474
|
init_swift_toolchain();
|
|
@@ -31548,7 +31760,9 @@ function objcView(surface, toolchainBin, stdlib, cacheDir5, work, original) {
|
|
|
31548
31760
|
"-module-cache-path",
|
|
31549
31761
|
import_node_path11.default.join(cacheDir5, "ios-module-cache"),
|
|
31550
31762
|
"-minimum-access-level",
|
|
31551
|
-
|
|
31763
|
+
// symbol graphs hide public underscored names at the public threshold.
|
|
31764
|
+
// original clang headers remain the declaration boundary.
|
|
31765
|
+
original ? "internal" : "public",
|
|
31552
31766
|
"-skip-synthesized-members",
|
|
31553
31767
|
"-omit-extension-block-symbols",
|
|
31554
31768
|
"-output-dir",
|
|
@@ -31816,18 +32030,21 @@ function constantValue(node) {
|
|
|
31816
32030
|
}
|
|
31817
32031
|
return null;
|
|
31818
32032
|
}
|
|
31819
|
-
var import_node_child_process9, import_node_crypto9, import_node_fs12, import_node_path11, OBJC_IMPORT_VERSION, NATIVE_GRAPH_SDK_VERSION, NATIVE_GRAPH_INPUTS, NATIVE_GRAPH_ID, ROUNDS, IOS_SDK_ID, headerFiles, MISSING_IMPORT;
|
|
32033
|
+
var import_node_child_process9, import_node_crypto9, import_node_fs12, import_node_path11, OBJC_IMPORT_VERSION, NATIVE_GRAPH_SDK_VERSION, WASI_EMULATION, WASI_EMULATION_FLAGS, NATIVE_GRAPH_INPUTS, NATIVE_GRAPH_ID, ROUNDS, IOS_SDK_ID, headerFiles, MISSING_IMPORT;
|
|
31820
32034
|
var init_swift_objc_standin = __esm({
|
|
31821
32035
|
"src/swift-objc-standin.ts"() {
|
|
31822
32036
|
"use strict";
|
|
32037
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
31823
32038
|
import_node_child_process9 = require("node:child_process");
|
|
31824
32039
|
import_node_crypto9 = require("node:crypto");
|
|
31825
32040
|
import_node_fs12 = __toESM(require("node:fs"), 1);
|
|
31826
32041
|
import_node_path11 = __toESM(require("node:path"), 1);
|
|
31827
32042
|
init_swift_objc_sdk();
|
|
31828
32043
|
init_swift_toolchain();
|
|
31829
|
-
OBJC_IMPORT_VERSION = "
|
|
32044
|
+
OBJC_IMPORT_VERSION = "4";
|
|
31830
32045
|
NATIVE_GRAPH_SDK_VERSION = "27.1";
|
|
32046
|
+
WASI_EMULATION = ["_WASI_EMULATED_SIGNAL", "_WASI_EMULATED_MMAN"];
|
|
32047
|
+
WASI_EMULATION_FLAGS = WASI_EMULATION.map((name3) => `-D${name3}`);
|
|
31831
32048
|
NATIVE_GRAPH_INPUTS = {
|
|
31832
32049
|
sdk: NATIVE_GRAPH_SDK_VERSION,
|
|
31833
32050
|
settings: "e68503e5e534e9194af5efe8c636ca8b824e2d8237c5f38ec84aa4d155bc8418",
|
|
@@ -31964,6 +32181,7 @@ function validateObjcPeerStartupLibraries(libraries) {
|
|
|
31964
32181
|
var init_swift_objc_metadata = __esm({
|
|
31965
32182
|
"src/swift-objc-metadata.ts"() {
|
|
31966
32183
|
"use strict";
|
|
32184
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
31967
32185
|
init_swift_objc_sdk();
|
|
31968
32186
|
init_swift_objc_sdk();
|
|
31969
32187
|
init_swift_objc_standin();
|
|
@@ -32060,6 +32278,43 @@ function swiftTargetModuleName(name3) {
|
|
|
32060
32278
|
function swiftPackageIdentity(url) {
|
|
32061
32279
|
return (url.split("/").pop() ?? url).replace(/\.git$/, "").toLowerCase();
|
|
32062
32280
|
}
|
|
32281
|
+
function clangMacroSetting(macro) {
|
|
32282
|
+
const [name3, ...value] = macro.split("=");
|
|
32283
|
+
return value.length === 0 ? `.define(${JSON.stringify(name3)})` : `.define(${JSON.stringify(name3)}, to: ${JSON.stringify(value.join("="))})`;
|
|
32284
|
+
}
|
|
32285
|
+
function settingDefines(call, tool) {
|
|
32286
|
+
const defines = [];
|
|
32287
|
+
for (const open of call.matchAll(new RegExp(`\\b${tool}Settings\\s*:\\s*\\[`, "g"))) {
|
|
32288
|
+
let depth = 1;
|
|
32289
|
+
let index = open.index + open[0].length;
|
|
32290
|
+
const start = index;
|
|
32291
|
+
for (; index < call.length && depth > 0; index++) {
|
|
32292
|
+
const char = call[index];
|
|
32293
|
+
if (char === '"') {
|
|
32294
|
+
for (index++; index < call.length && call[index] !== '"'; index++)
|
|
32295
|
+
if (call[index] === "\\") index++;
|
|
32296
|
+
} else if (char === "[") depth++;
|
|
32297
|
+
else if (char === "]") depth--;
|
|
32298
|
+
}
|
|
32299
|
+
const body = call.slice(start, index - 1);
|
|
32300
|
+
for (const match of body.matchAll(
|
|
32301
|
+
/\.define\(\s*"([A-Za-z_][A-Za-z0-9_]*)"\s*(?:,\s*to:\s*"((?:[^"\\]|\\.)*)"\s*)?\)/g
|
|
32302
|
+
)) {
|
|
32303
|
+
const name3 = match[1];
|
|
32304
|
+
defines.push(
|
|
32305
|
+
match[2] === void 0 ? name3 : `${name3}=${match[2].replace(/\\(.)/g, (_, escape) => {
|
|
32306
|
+
const value = swiftEscapes[escape];
|
|
32307
|
+
if (value === void 0)
|
|
32308
|
+
throw new Error(
|
|
32309
|
+
`Unsupported escape \\${escape} in the value of macro ${name3}`
|
|
32310
|
+
);
|
|
32311
|
+
return value;
|
|
32312
|
+
})}`
|
|
32313
|
+
);
|
|
32314
|
+
}
|
|
32315
|
+
}
|
|
32316
|
+
return defines;
|
|
32317
|
+
}
|
|
32063
32318
|
function swiftManifestTargets(manifest, resourcePaths = []) {
|
|
32064
32319
|
const implicitResources = swiftImplicitResourcePaths(resourcePaths);
|
|
32065
32320
|
const targets = [];
|
|
@@ -32087,9 +32342,9 @@ function swiftManifestTargets(manifest, resourcePaths = []) {
|
|
|
32087
32342
|
const cxxInterop = /\.interoperabilityMode\(\s*\.Cxx\s*\)/.test(
|
|
32088
32343
|
call.replace(/"(?:\\.|[^"\\])*"/g, "")
|
|
32089
32344
|
);
|
|
32090
|
-
const defines = [
|
|
32091
|
-
|
|
32092
|
-
|
|
32345
|
+
const defines = settingDefines(call, "swift").map((define) => define.split("=")[0]);
|
|
32346
|
+
const cDefines = settingDefines(call, "c");
|
|
32347
|
+
const cxxDefines = settingDefines(call, "cxx");
|
|
32093
32348
|
const linkedLibraries = [...call.matchAll(/\.linkedLibrary\(\s*"([^"]+)"\s*\)/g)].map(
|
|
32094
32349
|
(match) => match[1]
|
|
32095
32350
|
);
|
|
@@ -32132,6 +32387,8 @@ function swiftManifestTargets(manifest, resourcePaths = []) {
|
|
|
32132
32387
|
mainActorIsolation,
|
|
32133
32388
|
...cxxInterop ? { cxxInterop: true } : {},
|
|
32134
32389
|
...defines.length === 0 ? {} : { defines },
|
|
32390
|
+
...cDefines.length === 0 ? {} : { cDefines },
|
|
32391
|
+
...cxxDefines.length === 0 ? {} : { cxxDefines },
|
|
32135
32392
|
...linkedLibraries.length === 0 ? {} : { linkedLibraries },
|
|
32136
32393
|
resources,
|
|
32137
32394
|
...dependencies.length === 0 ? {} : { dependencies },
|
|
@@ -32265,10 +32522,11 @@ function swiftPackagePartition(manifest, resourcePaths = []) {
|
|
|
32265
32522
|
const targets = swiftManifestTargets(manifest, resourcePaths);
|
|
32266
32523
|
return targets.length === 1 && targets[0].executable && targets[0].path === "." && targets[0].languageMode === 5 && !targets[0].mainActorIsolation && !targets[0].defines?.length && !targets[0].linkedLibraries?.length && !targets[0].cxxInterop && !swiftManifestCxxLanguageStandard(manifest) ? [] : targets;
|
|
32267
32524
|
}
|
|
32268
|
-
var MANIFEST_DECLARATIONS, SWIFT_NATIVE_SOURCE_EXTENSIONS, OBJC_RESOURCE_ACCESSOR_HEADER, OBJC_RESOURCE_ACCESSOR_BODY;
|
|
32525
|
+
var MANIFEST_DECLARATIONS, SWIFT_NATIVE_SOURCE_EXTENSIONS, swiftEscapes, OBJC_RESOURCE_ACCESSOR_HEADER, OBJC_RESOURCE_ACCESSOR_BODY;
|
|
32269
32526
|
var init_swift_package = __esm({
|
|
32270
32527
|
"src/swift-package.ts"() {
|
|
32271
32528
|
"use strict";
|
|
32529
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
32272
32530
|
MANIFEST_DECLARATIONS = [
|
|
32273
32531
|
"executableTarget",
|
|
32274
32532
|
"testTarget",
|
|
@@ -32297,6 +32555,14 @@ var init_swift_package = __esm({
|
|
|
32297
32555
|
".inl",
|
|
32298
32556
|
".modulemap"
|
|
32299
32557
|
];
|
|
32558
|
+
swiftEscapes = {
|
|
32559
|
+
"\\": "\\",
|
|
32560
|
+
'"': '"',
|
|
32561
|
+
"'": "'",
|
|
32562
|
+
n: "\n",
|
|
32563
|
+
r: "\r",
|
|
32564
|
+
t: " "
|
|
32565
|
+
};
|
|
32300
32566
|
OBJC_RESOURCE_ACCESSOR_HEADER = "resource_bundle_accessor.h";
|
|
32301
32567
|
OBJC_RESOURCE_ACCESSOR_BODY = "resource_bundle_accessor.m";
|
|
32302
32568
|
}
|
|
@@ -32489,6 +32755,7 @@ var import_node_child_process10, import_node_crypto10, import_node_fs13, import_
|
|
|
32489
32755
|
var init_swift_root_lock = __esm({
|
|
32490
32756
|
"src/swift-root-lock.ts"() {
|
|
32491
32757
|
"use strict";
|
|
32758
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
32492
32759
|
import_node_child_process10 = require("node:child_process");
|
|
32493
32760
|
import_node_crypto10 = require("node:crypto");
|
|
32494
32761
|
import_node_fs13 = require("node:fs");
|
|
@@ -32510,6 +32777,7 @@ function isSwiftImageVariants(value) {
|
|
|
32510
32777
|
var init_assetCatalogContract = __esm({
|
|
32511
32778
|
"src/assetCatalogContract.ts"() {
|
|
32512
32779
|
"use strict";
|
|
32780
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
32513
32781
|
}
|
|
32514
32782
|
});
|
|
32515
32783
|
|
|
@@ -32574,6 +32842,7 @@ var SWIFT_NATIVE_INPUT_ROOT, SWIFT_NATIVE_SDK_INCLUDE;
|
|
|
32574
32842
|
var init_swiftContract = __esm({
|
|
32575
32843
|
"src/swiftContract.ts"() {
|
|
32576
32844
|
"use strict";
|
|
32845
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
32577
32846
|
init_assetCatalogContract();
|
|
32578
32847
|
SWIFT_NATIVE_INPUT_ROOT = "$(PEACH_INPUT_ROOT)";
|
|
32579
32848
|
SWIFT_NATIVE_SDK_INCLUDE = "$(PEACH_SDK_INCLUDE)";
|
|
@@ -32670,6 +32939,7 @@ var import_node_fs14, import_node_path13;
|
|
|
32670
32939
|
var init_xcode_header_search = __esm({
|
|
32671
32940
|
"src/xcode-header-search.ts"() {
|
|
32672
32941
|
"use strict";
|
|
32942
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
32673
32943
|
import_node_fs14 = __toESM(require("node:fs"), 1);
|
|
32674
32944
|
import_node_path13 = __toESM(require("node:path"), 1);
|
|
32675
32945
|
}
|
|
@@ -33192,6 +33462,7 @@ function emitSwiftPackageManifest(args) {
|
|
|
33192
33462
|
const linkedNativeModules = [...args.native?.entries() ?? []].flatMap(
|
|
33193
33463
|
([name3, value]) => value.clang ? [name3] : []
|
|
33194
33464
|
);
|
|
33465
|
+
const macroSettings = (values) => (values ?? []).map((value) => ` ${clangMacroSetting(value)},`).join("");
|
|
33195
33466
|
const stanza = (target) => {
|
|
33196
33467
|
if (target.systemLibrary)
|
|
33197
33468
|
return ` .systemLibrary(name: ${JSON.stringify(target.name)}, path: ${JSON.stringify(target.path)}),`;
|
|
@@ -33268,10 +33539,15 @@ function emitSwiftPackageManifest(args) {
|
|
|
33268
33539
|
.unsafeFlags(["-Xlinker", "--strip-all"], .when(configuration: .release)),
|
|
33269
33540
|
]` : librarySettings.length > 0 ? `,
|
|
33270
33541
|
linkerSettings: [${librarySettings.join(", ")}]` : "";
|
|
33542
|
+
const cDefines = macroSettings(target.cDefines);
|
|
33543
|
+
const cxxDefines = macroSettings(target.cxxDefines);
|
|
33271
33544
|
const nativeSettings = native?.clang ? [
|
|
33272
|
-
`cSettings: [.unsafeFlags(${JSON.stringify([...args.objcExports?.flags ?? args.nativeFlags ?? [], ...native.clang.flags])})]`,
|
|
33273
|
-
`cxxSettings: [${
|
|
33274
|
-
].join(", ") :
|
|
33545
|
+
`cSettings: [${cDefines} .unsafeFlags(${JSON.stringify([...args.objcExports?.flags ?? args.nativeFlags ?? [], ...native.clang.flags])})]`,
|
|
33546
|
+
`cxxSettings: [${cxxDefines} .unsafeFlags(${JSON.stringify(["-fno-cxx-modules", ...args.objcExports?.flags ?? args.nativeFlags ?? [], ...native.clang.cxxFlags])})]`
|
|
33547
|
+
].join(", ") : [
|
|
33548
|
+
`cSettings: [${cDefines} .unsafeFlags(${JSON.stringify([...args.objcExports?.flags ?? args.nativeFlags ?? [], ...native?.flags ?? []])})]`,
|
|
33549
|
+
`cxxSettings: [${cxxDefines} .unsafeFlags(${JSON.stringify(["-fno-cxx-modules", ...args.objcExports?.flags ?? args.nativeFlags ?? [], ...native?.cxxFlags ?? []])})]`
|
|
33550
|
+
].join(", ");
|
|
33275
33551
|
return [
|
|
33276
33552
|
` ${kind}(`,
|
|
33277
33553
|
` name: "${target.name}",`,
|
|
@@ -33281,7 +33557,7 @@ function emitSwiftPackageManifest(args) {
|
|
|
33281
33557
|
...native?.clang ? [
|
|
33282
33558
|
` sources: ${JSON.stringify(native.clang.sources.map((source) => import_node_path14.default.posix.join(native.path, source)))},`,
|
|
33283
33559
|
` publicHeadersPath: ${JSON.stringify(import_node_path14.default.posix.dirname(native.clang.modulemap))},`
|
|
33284
|
-
] : [],
|
|
33560
|
+
] : native?.flags ? [` sources: ${JSON.stringify(native.sources)},`] : [],
|
|
33285
33561
|
// the native backend supplies dependency module maps without their
|
|
33286
33562
|
// compiled modules. textual c++ includes keep those dependencies usable.
|
|
33287
33563
|
` ${clang ? nativeSettings : swiftSettings}${link}`,
|
|
@@ -33307,24 +33583,26 @@ function emitSwiftPackageManifest(args) {
|
|
|
33307
33583
|
' publicHeadersPath: "include",',
|
|
33308
33584
|
` cSettings: [.unsafeFlags(${JSON.stringify([...args.objcExports.flags.filter((flag) => flag !== "-fobjc-arc"), "-fno-objc-arc", "-Xclang", "-disable-objc-default-synthesize-properties"])})]),`
|
|
33309
33585
|
] : [],
|
|
33310
|
-
...[...args.native?.entries() ?? []].flatMap(
|
|
33311
|
-
|
|
33586
|
+
...[...args.native?.entries() ?? []].flatMap(([name3, native]) => {
|
|
33587
|
+
const late = native.late;
|
|
33588
|
+
const owner = targets.find((target) => target.name === name3);
|
|
33589
|
+
return late ? (native.groups ?? [
|
|
33312
33590
|
{
|
|
33313
|
-
name:
|
|
33591
|
+
name: late.name,
|
|
33314
33592
|
sources: native.lateSources,
|
|
33315
33593
|
flags: [],
|
|
33316
33594
|
cxxFlags: []
|
|
33317
33595
|
}
|
|
33318
33596
|
]).flatMap((group) => [
|
|
33319
33597
|
` .target(name: ${JSON.stringify(group.name)},`,
|
|
33320
|
-
` dependencies: ${JSON.stringify(
|
|
33598
|
+
` dependencies: ${JSON.stringify(native.mixed ? [] : [name3, ...late.producers])},`,
|
|
33321
33599
|
` path: ${JSON.stringify(native.clang ? "." : native.path)},`,
|
|
33322
33600
|
` sources: ${JSON.stringify(native.clang ? group.sources.map((source) => import_node_path14.default.posix.join(native.path, source)) : group.sources)},`,
|
|
33323
33601
|
` publicHeadersPath: ${JSON.stringify(native.clang ? import_node_path14.default.posix.dirname(native.clang.modulemap) : "include")},`,
|
|
33324
|
-
` cSettings: [.unsafeFlags(${JSON.stringify([...args.objcExports?.flags ?? args.nativeFlags ?? [], ...group.flags])})],`,
|
|
33325
|
-
` cxxSettings: [.unsafeFlags(${JSON.stringify(["-fno-cxx-modules", "-I", native.includeDirectory, "-I", args.headerDirectory, ...group.cxxFlags])})]),`
|
|
33326
|
-
]) : []
|
|
33327
|
-
),
|
|
33602
|
+
` cSettings: [${macroSettings(owner?.cDefines)} .unsafeFlags(${JSON.stringify([...args.objcExports?.flags ?? args.nativeFlags ?? [], ...group.flags])})],`,
|
|
33603
|
+
` cxxSettings: [${macroSettings(owner?.cxxDefines)} .unsafeFlags(${JSON.stringify(["-fno-cxx-modules", ...args.objcExports?.flags ?? args.nativeFlags ?? [], "-I", native.includeDirectory, "-I", args.headerDirectory, ...group.cxxFlags])})]),`
|
|
33604
|
+
]) : [];
|
|
33605
|
+
}),
|
|
33328
33606
|
args.cxxLanguageStandard ? ` ],
|
|
33329
33607
|
cxxLanguageStandard: .${args.cxxLanguageStandard}` : " ]",
|
|
33330
33608
|
")",
|
|
@@ -35129,7 +35407,7 @@ function writeSwiftProject(layout, input, moduleRoot) {
|
|
|
35129
35407
|
else files2.set(file, prior);
|
|
35130
35408
|
}
|
|
35131
35409
|
targetStagedFiles.delete(target.name);
|
|
35132
|
-
if (entries.some(([file]) => /\.(?:c|cc|cpp|cxx|m|mm)$/.test(file)) && (swift || input.nativeTargets?.some((value) => value.name === target.name)
|
|
35410
|
+
if (entries.some(([file]) => /\.(?:c|cc|cpp|cxx|m|mm)$/.test(file)) && (swift || input.nativeTargets?.some((value) => value.name === target.name))) {
|
|
35133
35411
|
if (!swift) {
|
|
35134
35412
|
const unprepared = import_node_path14.default.join(
|
|
35135
35413
|
layout.root,
|
|
@@ -35202,8 +35480,42 @@ function writeSwiftProject(layout, input, moduleRoot) {
|
|
|
35202
35480
|
const entries = targetEntries(target);
|
|
35203
35481
|
const units = entries.filter(([file]) => /\.(?:c|cc|cpp|cxx|m|mm)$/.test(file));
|
|
35204
35482
|
if (units.length === 0) continue;
|
|
35483
|
+
const includes = `${prefix}include/`;
|
|
35484
|
+
const consumers = /* @__PURE__ */ new Map();
|
|
35485
|
+
const reverse = /* @__PURE__ */ new Map();
|
|
35486
|
+
for (const [file, contents] of entries) {
|
|
35487
|
+
const producers2 = /* @__PURE__ */ new Set();
|
|
35488
|
+
const source = contents.replace(/\/\*[\s\S]*?\*\//g, "");
|
|
35489
|
+
for (const match of source.matchAll(
|
|
35490
|
+
/^\s*#\s*(?:include|import)\s*[<"]([^>"]+)[>"]/gm
|
|
35491
|
+
)) {
|
|
35492
|
+
const include2 = match[1];
|
|
35493
|
+
const producer = /(?:^|\/)([^/]+)-Swift\.h$/.exec(include2)?.[1];
|
|
35494
|
+
if (producer && targets.some((value) => value.name === producer))
|
|
35495
|
+
producers2.add(producer);
|
|
35496
|
+
const local = [
|
|
35497
|
+
import_node_path14.default.posix.join(import_node_path14.default.posix.dirname(file), include2),
|
|
35498
|
+
`${includes}${include2}`
|
|
35499
|
+
].find((candidate) => input.files[candidate] !== void 0);
|
|
35500
|
+
if (local) {
|
|
35501
|
+
reverse.set(local, [...reverse.get(local) ?? [], file]);
|
|
35502
|
+
}
|
|
35503
|
+
}
|
|
35504
|
+
consumers.set(file, producers2);
|
|
35505
|
+
}
|
|
35506
|
+
const queue2 = [...consumers.keys()].filter((file) => consumers.get(file).size > 0);
|
|
35507
|
+
for (let index = 0; index < queue2.length; index++) {
|
|
35508
|
+
const file = queue2[index];
|
|
35509
|
+
for (const parent of reverse.get(file) ?? []) {
|
|
35510
|
+
const inherited = consumers.get(parent);
|
|
35511
|
+
const before = inherited.size;
|
|
35512
|
+
for (const producer of consumers.get(file)) inherited.add(producer);
|
|
35513
|
+
if (before !== inherited.size) queue2.push(parent);
|
|
35514
|
+
}
|
|
35515
|
+
}
|
|
35516
|
+
const late = units.filter(([file]) => consumers.get(file).size > 0);
|
|
35205
35517
|
const settings = input.nativeTargets?.find((value) => value.name === target.name);
|
|
35206
|
-
if (entries.some(([file]) => file.endsWith(".swift"))
|
|
35518
|
+
if (settings || entries.some(([file]) => file.endsWith(".swift"))) {
|
|
35207
35519
|
try {
|
|
35208
35520
|
if (!settings)
|
|
35209
35521
|
throw new Error(
|
|
@@ -35271,7 +35583,7 @@ function writeSwiftProject(layout, input, moduleRoot) {
|
|
|
35271
35583
|
return relative4.split("/").some((part) => part.startsWith(".")) ? import_node_path14.default.posix.join(HIDDEN_UNITS, relative4.replaceAll(/(^|\/)\./g, "$1%2E")) : relative4;
|
|
35272
35584
|
};
|
|
35273
35585
|
const accessorFlags = accessor ? ["-include", accessorHeader] : [];
|
|
35274
|
-
let nativeC =
|
|
35586
|
+
let nativeC = !roots2.length && !entries.some(([file]) => file.endsWith(".swift")) && !units.some(([file]) => /\.mm?$/.test(file));
|
|
35275
35587
|
if (roots2.length) {
|
|
35276
35588
|
const sourceHeaders = import_node_path14.default.join(
|
|
35277
35589
|
layout.root,
|
|
@@ -35370,7 +35682,13 @@ export *
|
|
|
35370
35682
|
)
|
|
35371
35683
|
];
|
|
35372
35684
|
const cxx = /\.(?:cc|cpp|cxx|mm)$/.test(file);
|
|
35373
|
-
const identity = (0, import_node_crypto11.createHash)("sha256").update(
|
|
35685
|
+
const identity = (0, import_node_crypto11.createHash)("sha256").update(
|
|
35686
|
+
JSON.stringify([
|
|
35687
|
+
cxx,
|
|
35688
|
+
perFile,
|
|
35689
|
+
...nativeC && !roots2.length ? [(consumers.get(file)?.size ?? 0) > 0] : []
|
|
35690
|
+
])
|
|
35691
|
+
).digest("hex").slice(0, 12);
|
|
35374
35692
|
const group = groups.get(identity) ?? {
|
|
35375
35693
|
name: `${target.name}${nativeC ? "Native" : "Swift"}Implementation_${identity}`,
|
|
35376
35694
|
sources: [],
|
|
@@ -35405,6 +35723,31 @@ export *
|
|
|
35405
35723
|
accessor.body
|
|
35406
35724
|
);
|
|
35407
35725
|
}
|
|
35726
|
+
if (nativeC && !roots2.length) {
|
|
35727
|
+
const lateSources = new Set(late.map(([file]) => unitSource(file)));
|
|
35728
|
+
const owner = [...groups.values()].find(
|
|
35729
|
+
(group) => group.sources.every((source) => !lateSources.has(source))
|
|
35730
|
+
);
|
|
35731
|
+
const implementations = [...groups.values()].filter((group) => group !== owner);
|
|
35732
|
+
native.set(target.name, {
|
|
35733
|
+
path: target.path,
|
|
35734
|
+
includeDirectory: include2,
|
|
35735
|
+
sources: owner?.sources ?? [],
|
|
35736
|
+
lateSources: implementations.flatMap((group) => group.sources),
|
|
35737
|
+
flags: owner?.flags ?? flags,
|
|
35738
|
+
cxxFlags: owner?.cxxFlags ?? flags,
|
|
35739
|
+
...implementations.length ? {
|
|
35740
|
+
groups: implementations,
|
|
35741
|
+
late: {
|
|
35742
|
+
name: `${target.name}NativeImplementation`,
|
|
35743
|
+
producers: [
|
|
35744
|
+
...new Set(late.flatMap(([file]) => [...consumers.get(file)]))
|
|
35745
|
+
].sort()
|
|
35746
|
+
}
|
|
35747
|
+
} : {}
|
|
35748
|
+
});
|
|
35749
|
+
continue;
|
|
35750
|
+
}
|
|
35408
35751
|
if (nativeC) {
|
|
35409
35752
|
const modulemaps = Object.entries(settings.productHeaders).filter(
|
|
35410
35753
|
([product2]) => product2.endsWith("/Modules/module.modulemap")
|
|
@@ -35475,40 +35818,6 @@ export *
|
|
|
35475
35818
|
}
|
|
35476
35819
|
continue;
|
|
35477
35820
|
}
|
|
35478
|
-
const includes = `${prefix}include/`;
|
|
35479
|
-
const consumers = /* @__PURE__ */ new Map();
|
|
35480
|
-
const reverse = /* @__PURE__ */ new Map();
|
|
35481
|
-
for (const [file, contents] of entries) {
|
|
35482
|
-
const producers2 = /* @__PURE__ */ new Set();
|
|
35483
|
-
const source = contents.replace(/\/\*[\s\S]*?\*\//g, "");
|
|
35484
|
-
for (const match of source.matchAll(
|
|
35485
|
-
/^\s*#\s*(?:include|import)\s*[<"]([^>"]+)[>"]/gm
|
|
35486
|
-
)) {
|
|
35487
|
-
const include2 = match[1];
|
|
35488
|
-
const producer = /(?:^|\/)([^/]+)-Swift\.h$/.exec(include2)?.[1];
|
|
35489
|
-
if (producer && targets.some((value) => value.name === producer))
|
|
35490
|
-
producers2.add(producer);
|
|
35491
|
-
const local = [
|
|
35492
|
-
import_node_path14.default.posix.join(import_node_path14.default.posix.dirname(file), include2),
|
|
35493
|
-
`${includes}${include2}`
|
|
35494
|
-
].find((candidate) => input.files[candidate] !== void 0);
|
|
35495
|
-
if (local) {
|
|
35496
|
-
reverse.set(local, [...reverse.get(local) ?? [], file]);
|
|
35497
|
-
}
|
|
35498
|
-
}
|
|
35499
|
-
consumers.set(file, producers2);
|
|
35500
|
-
}
|
|
35501
|
-
const queue2 = [...consumers.keys()].filter((file) => consumers.get(file).size > 0);
|
|
35502
|
-
for (let index = 0; index < queue2.length; index++) {
|
|
35503
|
-
const file = queue2[index];
|
|
35504
|
-
for (const parent of reverse.get(file) ?? []) {
|
|
35505
|
-
const inherited = consumers.get(parent);
|
|
35506
|
-
const before = inherited.size;
|
|
35507
|
-
for (const producer of consumers.get(file)) inherited.add(producer);
|
|
35508
|
-
if (before !== inherited.size) queue2.push(parent);
|
|
35509
|
-
}
|
|
35510
|
-
}
|
|
35511
|
-
const late = units.filter(([file]) => consumers.get(file).size > 0);
|
|
35512
35821
|
native.set(target.name, {
|
|
35513
35822
|
path: target.path,
|
|
35514
35823
|
includeDirectory: import_node_path14.default.join(layout.root, includes),
|
|
@@ -35737,6 +36046,7 @@ ${[
|
|
|
35737
36046
|
"-fobjc-exceptions",
|
|
35738
36047
|
"-fexceptions",
|
|
35739
36048
|
"-fwasm-exceptions",
|
|
36049
|
+
...WASI_EMULATION_FLAGS,
|
|
35740
36050
|
"-fobjc-arc",
|
|
35741
36051
|
"-fblocks",
|
|
35742
36052
|
"-F",
|
|
@@ -36419,6 +36729,7 @@ var import_node_child_process11, import_node_crypto11, import_node_fs15, import_
|
|
|
36419
36729
|
var init_swift_compile = __esm({
|
|
36420
36730
|
"src/swift-compile.ts"() {
|
|
36421
36731
|
"use strict";
|
|
36732
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
36422
36733
|
import_node_child_process11 = require("node:child_process");
|
|
36423
36734
|
import_node_crypto11 = require("node:crypto");
|
|
36424
36735
|
import_node_fs15 = require("node:fs");
|
|
@@ -36527,7 +36838,7 @@ var init_swift_compile = __esm({
|
|
|
36527
36838
|
`;
|
|
36528
36839
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
36529
36840
|
MULTI_MANIFEST_VERSION = 40;
|
|
36530
|
-
compilerSourceDigest = true ? "
|
|
36841
|
+
compilerSourceDigest = true ? "9c8bf514e9d972c32ef441bda4effae79610e2c5add1faca769349803321528f" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
36531
36842
|
DIRECTIVE = /^[ \t]*#(?:if|elseif)\b/;
|
|
36532
36843
|
OS_IOS = /\b(?:os\(\s*iOS\s*\)|targetEnvironment\(\s*simulator\s*\))/g;
|
|
36533
36844
|
OBJC_ATTRIBUTE = /^@(?:objcMembers\b|objc\b(?:(\s*)\(([^()]*)\))?|IBAction\b)/;
|
|
@@ -38758,6 +39069,7 @@ var init_swift_compile = __esm({
|
|
|
38758
39069
|
// ../../node_modules/json5/lib/unicode.js
|
|
38759
39070
|
var require_unicode = __commonJS({
|
|
38760
39071
|
"../../node_modules/json5/lib/unicode.js"(exports2, module2) {
|
|
39072
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
38761
39073
|
module2.exports.Space_Separator = /[\u1680\u2000-\u200A\u202F\u205F\u3000]/;
|
|
38762
39074
|
module2.exports.ID_Start = /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/;
|
|
38763
39075
|
module2.exports.ID_Continue = /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/;
|
|
@@ -38767,6 +39079,7 @@ var require_unicode = __commonJS({
|
|
|
38767
39079
|
// ../../node_modules/json5/lib/util.js
|
|
38768
39080
|
var require_util = __commonJS({
|
|
38769
39081
|
"../../node_modules/json5/lib/util.js"(exports2, module2) {
|
|
39082
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
38770
39083
|
var unicode = require_unicode();
|
|
38771
39084
|
module2.exports = {
|
|
38772
39085
|
isSpaceSeparator(c) {
|
|
@@ -38791,6 +39104,7 @@ var require_util = __commonJS({
|
|
|
38791
39104
|
// ../../node_modules/json5/lib/parse.js
|
|
38792
39105
|
var require_parse = __commonJS({
|
|
38793
39106
|
"../../node_modules/json5/lib/parse.js"(exports2, module2) {
|
|
39107
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
38794
39108
|
var util = require_util();
|
|
38795
39109
|
var source;
|
|
38796
39110
|
var parseState;
|
|
@@ -39638,6 +39952,7 @@ var require_parse = __commonJS({
|
|
|
39638
39952
|
// ../../node_modules/json5/lib/stringify.js
|
|
39639
39953
|
var require_stringify = __commonJS({
|
|
39640
39954
|
"../../node_modules/json5/lib/stringify.js"(exports2, module2) {
|
|
39955
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
39641
39956
|
var util = require_util();
|
|
39642
39957
|
module2.exports = function stringify4(value, replacer, space) {
|
|
39643
39958
|
const stack = [];
|
|
@@ -39857,6 +40172,7 @@ var require_stringify = __commonJS({
|
|
|
39857
40172
|
// ../../node_modules/json5/lib/index.js
|
|
39858
40173
|
var require_lib = __commonJS({
|
|
39859
40174
|
"../../node_modules/json5/lib/index.js"(exports2, module2) {
|
|
40175
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
39860
40176
|
var parse5 = require_parse();
|
|
39861
40177
|
var stringify4 = require_stringify();
|
|
39862
40178
|
var JSON53 = {
|
|
@@ -40190,6 +40506,7 @@ var import_node_path15, import_json5, isObject, text3, items, PHASE_ISA;
|
|
|
40190
40506
|
var init_xcode_json_project = __esm({
|
|
40191
40507
|
"src/xcode-json-project.ts"() {
|
|
40192
40508
|
"use strict";
|
|
40509
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
40193
40510
|
import_node_path15 = __toESM(require("node:path"), 1);
|
|
40194
40511
|
import_json5 = __toESM(require_lib(), 1);
|
|
40195
40512
|
isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -40301,6 +40618,7 @@ var isDict, str, list;
|
|
|
40301
40618
|
var init_openstep_plist = __esm({
|
|
40302
40619
|
"src/openstep-plist.ts"() {
|
|
40303
40620
|
"use strict";
|
|
40621
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
40304
40622
|
isDict = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
40305
40623
|
str = (value) => typeof value === "string" ? value : void 0;
|
|
40306
40624
|
list = (value) => Array.isArray(value) ? value.filter((item) => typeof item === "string") : [];
|
|
@@ -40399,6 +40717,7 @@ var NEVER_MEMBER, BUNDLE_DIR;
|
|
|
40399
40717
|
var init_xcode_target_members = __esm({
|
|
40400
40718
|
"src/xcode-target-members.ts"() {
|
|
40401
40719
|
"use strict";
|
|
40720
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
40402
40721
|
init_openstep_plist();
|
|
40403
40722
|
NEVER_MEMBER = /(?:^|\/)(?:Info\.plist|[^/]+\.entitlements|[^/]+\.xcconfig|\.DS_Store)$/;
|
|
40404
40723
|
BUNDLE_DIR = /\.(xcassets|bundle|lproj|xcdatamodeld|scnassets|spriteatlas|rcproject|storyboardc|icon)$/;
|
|
@@ -40549,10 +40868,10 @@ function loadProject(xcodeproj) {
|
|
|
40549
40868
|
const projectFile = xcodeProjectFile(xcodeproj);
|
|
40550
40869
|
if (!projectFile)
|
|
40551
40870
|
throw new Error(`${xcodeproj} has no project.pbxproj or project.xcproj`);
|
|
40552
|
-
const mtimeMs = import_node_fs16.default.statSync(projectFile).mtimeMs;
|
|
40553
|
-
const cached4 = loaded.get(projectFile);
|
|
40554
|
-
if (cached4?.mtimeMs === mtimeMs) return cached4.project;
|
|
40555
40871
|
const source = import_node_fs16.default.readFileSync(projectFile, "utf8");
|
|
40872
|
+
const digest = (0, import_node_crypto12.createHash)("sha256").update(source).digest("hex");
|
|
40873
|
+
const cached4 = loaded.get(projectFile);
|
|
40874
|
+
if (cached4?.digest === digest) return cached4.project;
|
|
40556
40875
|
const root = projectFile.endsWith(".xcproj") ? readXcodeJsonProject(xcodeproj, source) : parseOpenStepPlist(source);
|
|
40557
40876
|
if (!isDict(root) || !isDict(root.objects)) {
|
|
40558
40877
|
throw new Error(`${projectFile} has no objects table`);
|
|
@@ -40579,7 +40898,7 @@ function loadProject(xcodeproj) {
|
|
|
40579
40898
|
object: object3,
|
|
40580
40899
|
resolvePath
|
|
40581
40900
|
};
|
|
40582
|
-
loaded.set(projectFile, {
|
|
40901
|
+
loaded.set(projectFile, { digest, project: result });
|
|
40583
40902
|
return result;
|
|
40584
40903
|
}
|
|
40585
40904
|
function defaultConfiguration(project) {
|
|
@@ -41529,6 +41848,7 @@ var import_node_child_process12, import_node_crypto12, import_node_fs16, import_
|
|
|
41529
41848
|
var init_xcode_project = __esm({
|
|
41530
41849
|
"src/xcode-project.ts"() {
|
|
41531
41850
|
"use strict";
|
|
41851
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
41532
41852
|
import_node_child_process12 = require("node:child_process");
|
|
41533
41853
|
import_node_crypto12 = require("node:crypto");
|
|
41534
41854
|
import_node_fs16 = __toESM(require("node:fs"), 1);
|
|
@@ -41907,6 +42227,7 @@ var import_node_fs17, import_node_path17, DIRECTIVE2, swiftString, BRIDGE_MODULE
|
|
|
41907
42227
|
var init_react_native_bridge_modules = __esm({
|
|
41908
42228
|
"src/react-native-bridge-modules.ts"() {
|
|
41909
42229
|
"use strict";
|
|
42230
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
41910
42231
|
import_node_fs17 = __toESM(require("node:fs"), 1);
|
|
41911
42232
|
import_node_path17 = __toESM(require("node:path"), 1);
|
|
41912
42233
|
init_swift_compile();
|
|
@@ -41997,6 +42318,7 @@ var import_node_crypto13, import_node_fs18, import_node_path18, cacheDir2;
|
|
|
41997
42318
|
var init_swift_binary_modules = __esm({
|
|
41998
42319
|
"src/swift-binary-modules.ts"() {
|
|
41999
42320
|
"use strict";
|
|
42321
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
42000
42322
|
import_node_crypto13 = require("node:crypto");
|
|
42001
42323
|
import_node_fs18 = __toESM(require("node:fs"), 1);
|
|
42002
42324
|
import_node_path18 = __toESM(require("node:path"), 1);
|
|
@@ -42010,12 +42332,12 @@ var swift_distribution_lock_default;
|
|
|
42010
42332
|
var init_swift_distribution_lock = __esm({
|
|
42011
42333
|
"src/swift-distribution.lock.json"() {
|
|
42012
42334
|
swift_distribution_lock_default = {
|
|
42013
|
-
id: "
|
|
42335
|
+
id: "433f607a19978269",
|
|
42014
42336
|
release: "swift-6.4.0-RELEASE-custom-0d775d32d7c74eae",
|
|
42015
42337
|
wasmSdkId: "swift-6.4.0-RELEASE_wasm-peach-f02bd198",
|
|
42016
42338
|
wasmSdkUrl: "https://r2.sootsim.com/swift-wasm-sdk/swift-6.4.0-RELEASE_wasm-peach-f02bd198.artifactbundle.tar.gz",
|
|
42017
42339
|
wasmSdkChecksum: "1e19ea768fd4e821aae34b8966c4ddcee45615c4b3cf018979b061aee2fb5504",
|
|
42018
|
-
source: "
|
|
42340
|
+
source: "f52d21b43f5cba9bd52f1665697284e46d16c0d9",
|
|
42019
42341
|
targets: [
|
|
42020
42342
|
"ImagePlayground",
|
|
42021
42343
|
"QuickLookThumbnailing",
|
|
@@ -42204,16 +42526,16 @@ var init_swift_distribution_lock = __esm({
|
|
|
42204
42526
|
},
|
|
42205
42527
|
hosts: {
|
|
42206
42528
|
"darwin-arm64": {
|
|
42207
|
-
sha256: "
|
|
42208
|
-
size:
|
|
42529
|
+
sha256: "0b814aa2ced56e4452c82227c4251036346015ba6445e742070ee221c53fc575",
|
|
42530
|
+
size: 71080069
|
|
42209
42531
|
},
|
|
42210
42532
|
"linux-x64": {
|
|
42211
|
-
sha256: "
|
|
42212
|
-
size:
|
|
42533
|
+
sha256: "62e67740951c7972fde15bc074fe8838f308432a8521e93691035e7fc105b716",
|
|
42534
|
+
size: 71085950
|
|
42213
42535
|
},
|
|
42214
42536
|
"linux-arm64": {
|
|
42215
|
-
sha256: "
|
|
42216
|
-
size:
|
|
42537
|
+
sha256: "f900ab5b6a4823966cebe291c91710e6323185df971c667c25ddcc1427935b52",
|
|
42538
|
+
size: 71084016
|
|
42217
42539
|
}
|
|
42218
42540
|
}
|
|
42219
42541
|
};
|
|
@@ -42395,6 +42717,7 @@ var import_node_fs19, import_node_os7, import_node_path19, SWIFT_ENDPOINT_ENV, i
|
|
|
42395
42717
|
var init_swift_distribution = __esm({
|
|
42396
42718
|
"src/swift-distribution.ts"() {
|
|
42397
42719
|
"use strict";
|
|
42720
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
42398
42721
|
import_node_fs19 = __toESM(require("node:fs"), 1);
|
|
42399
42722
|
import_node_os7 = __toESM(require("node:os"), 1);
|
|
42400
42723
|
import_node_path19 = __toESM(require("node:path"), 1);
|
|
@@ -42700,6 +43023,7 @@ var import_svgpath, RASTER_EXTENSIONS, SYMBOL_CAP_HEIGHT_EM, COMPILED_EXTENSIONS
|
|
|
42700
43023
|
var init_bundleAssets = __esm({
|
|
42701
43024
|
"../sootsim-swift/src/bundleAssets.ts"() {
|
|
42702
43025
|
"use strict";
|
|
43026
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
42703
43027
|
import_svgpath = __toESM(require("svgpath"), 1);
|
|
42704
43028
|
init_assetCatalogContract();
|
|
42705
43029
|
init_swiftContract();
|
|
@@ -42892,6 +43216,7 @@ function compileStringCatalog(source, name3) {
|
|
|
42892
43216
|
var init_stringCatalog = __esm({
|
|
42893
43217
|
"../sootsim-swift/src/stringCatalog.ts"() {
|
|
42894
43218
|
"use strict";
|
|
43219
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
42895
43220
|
init_swiftContract();
|
|
42896
43221
|
}
|
|
42897
43222
|
});
|
|
@@ -42981,6 +43306,7 @@ var import_node_fs20, import_node_path20, SESSION_VERSION, SESSION_FILE_ENV, DEF
|
|
|
42981
43306
|
var init_shared_session = __esm({
|
|
42982
43307
|
"src/auth/shared-session.ts"() {
|
|
42983
43308
|
"use strict";
|
|
43309
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
42984
43310
|
import_node_fs20 = require("node:fs");
|
|
42985
43311
|
import_node_path20 = require("node:path");
|
|
42986
43312
|
init_home_paths();
|
|
@@ -43002,6 +43328,7 @@ var import_node_async_hooks, PeachExit, sinks, rnxExit;
|
|
|
43002
43328
|
var init_run_rnx = __esm({
|
|
43003
43329
|
"cli/run-rnx.ts"() {
|
|
43004
43330
|
"use strict";
|
|
43331
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
43005
43332
|
import_node_async_hooks = require("node:async_hooks");
|
|
43006
43333
|
PeachExit = class extends Error {
|
|
43007
43334
|
code;
|
|
@@ -43126,6 +43453,7 @@ var GITHUB_TOKEN_PREFIXES, CHOOSE_ACCOUNT_HINT;
|
|
|
43126
43453
|
var init_auth = __esm({
|
|
43127
43454
|
"cli/auth.ts"() {
|
|
43128
43455
|
"use strict";
|
|
43456
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
43129
43457
|
init_shared_session();
|
|
43130
43458
|
init_run_rnx();
|
|
43131
43459
|
GITHUB_TOKEN_PREFIXES = ["ghs_", "ghp_", "gho_", "ghu_", "github_pat_"];
|
|
@@ -43464,6 +43792,7 @@ function compileAndroidStringValue(text5, where) {
|
|
|
43464
43792
|
var init_android_string_value = __esm({
|
|
43465
43793
|
"src/android-string-value.ts"() {
|
|
43466
43794
|
"use strict";
|
|
43795
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
43467
43796
|
}
|
|
43468
43797
|
});
|
|
43469
43798
|
|
|
@@ -43518,6 +43847,7 @@ var ENTITIES, TAG, ATTRIBUTE;
|
|
|
43518
43847
|
var init_android_xml = __esm({
|
|
43519
43848
|
"src/android-xml.ts"() {
|
|
43520
43849
|
"use strict";
|
|
43850
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
43521
43851
|
ENTITIES = {
|
|
43522
43852
|
quot: '"',
|
|
43523
43853
|
apos: "'",
|
|
@@ -43624,6 +43954,7 @@ function androidMergedResourceValuesDirectory(manifestFile) {
|
|
|
43624
43954
|
var init_android_app_identity = __esm({
|
|
43625
43955
|
"src/android-app-identity.ts"() {
|
|
43626
43956
|
"use strict";
|
|
43957
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
43627
43958
|
init_android_string_value();
|
|
43628
43959
|
init_android_xml();
|
|
43629
43960
|
}
|
|
@@ -43687,6 +44018,7 @@ ${prefix}${json}${suffix}`;
|
|
|
43687
44018
|
var init_bundleGlobalFooter = __esm({
|
|
43688
44019
|
"src/bundleGlobalFooter.ts"() {
|
|
43689
44020
|
"use strict";
|
|
44021
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
43690
44022
|
}
|
|
43691
44023
|
});
|
|
43692
44024
|
|
|
@@ -43781,6 +44113,7 @@ function resolveNativeAppIconArtwork(resources, readText2, resourceUri, icons, p
|
|
|
43781
44113
|
var init_nativeAppIconContract = __esm({
|
|
43782
44114
|
"src/nativeAppIconContract.ts"() {
|
|
43783
44115
|
"use strict";
|
|
44116
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
43784
44117
|
init_assetCatalogContract();
|
|
43785
44118
|
init_is_record();
|
|
43786
44119
|
}
|
|
@@ -44399,6 +44732,7 @@ var APP_DELEGATE_PATH_RE, ROOT_MODULE_NAME_RE;
|
|
|
44399
44732
|
var init_native_app_identity = __esm({
|
|
44400
44733
|
"src/native-app-identity.ts"() {
|
|
44401
44734
|
"use strict";
|
|
44735
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
44402
44736
|
init_android_app_identity();
|
|
44403
44737
|
init_bundleGlobalFooter();
|
|
44404
44738
|
init_is_record();
|
|
@@ -44418,6 +44752,7 @@ var import_plist2;
|
|
|
44418
44752
|
var init_plist = __esm({
|
|
44419
44753
|
"src/plist.ts"() {
|
|
44420
44754
|
"use strict";
|
|
44755
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
44421
44756
|
import_plist2 = __toESM(require("plist"), 1);
|
|
44422
44757
|
}
|
|
44423
44758
|
});
|
|
@@ -44692,6 +45027,7 @@ var import_node_fs21, import_node_module, import_node_path21, NativeAppTargetSel
|
|
|
44692
45027
|
var init_native_app_identity_project = __esm({
|
|
44693
45028
|
"src/native-app-identity-project.ts"() {
|
|
44694
45029
|
"use strict";
|
|
45030
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
44695
45031
|
import_node_fs21 = __toESM(require("node:fs"), 1);
|
|
44696
45032
|
import_node_module = require("node:module");
|
|
44697
45033
|
import_node_path21 = __toESM(require("node:path"), 1);
|
|
@@ -44708,23 +45044,35 @@ var init_native_app_identity_project = __esm({
|
|
|
44708
45044
|
|
|
44709
45045
|
// src/swift-package-manifest.ts
|
|
44710
45046
|
function swiftCommand() {
|
|
44711
|
-
return process.platform === "darwin" ?
|
|
45047
|
+
return process.platform === "darwin" ? (
|
|
45048
|
+
// runner-toolchain-platform: darwin
|
|
45049
|
+
(0, import_node_child_process13.execFileSync)("xcrun", ["--find", "swift"], { encoding: "utf8" }).trim()
|
|
45050
|
+
) : import_node_path22.default.join(swiftToolchainBin(swift_distribution_lock_default.release), "swift");
|
|
44712
45051
|
}
|
|
44713
45052
|
function dump(dir) {
|
|
44714
45053
|
const manifests = import_node_fs22.default.readdirSync(dir).filter((name3) => /^Package(@swift-[\d.]+)?\.swift$/.test(name3)).sort();
|
|
44715
45054
|
const command = swiftCommand();
|
|
44716
|
-
const
|
|
45055
|
+
const toolchain = {
|
|
45056
|
+
path: command,
|
|
45057
|
+
realpath: import_node_fs22.default.realpathSync(command),
|
|
45058
|
+
sha256: (0, import_node_crypto14.createHash)("sha256").update(import_node_fs22.default.readFileSync(command)).digest("hex"),
|
|
45059
|
+
version: (0, import_node_child_process13.execFileSync)(command, ["--version"], {
|
|
45060
|
+
encoding: "utf8",
|
|
45061
|
+
env: swiftEnvironment(),
|
|
45062
|
+
stdio: ["ignore", "pipe", "pipe"]
|
|
45063
|
+
}).trim()
|
|
45064
|
+
};
|
|
45065
|
+
const key2 = (0, import_node_crypto14.createHash)("sha256").update(JSON.stringify([toolchain, import_node_path22.default.resolve(dir)])).update(
|
|
44717
45066
|
manifests.map((name3) => `${name3}\0${import_node_fs22.default.readFileSync(import_node_path22.default.join(dir, name3), "utf8")}`).join("\0")
|
|
44718
45067
|
).digest("hex").slice(0, 32);
|
|
44719
45068
|
const cached4 = import_node_path22.default.join(cacheDir3, `${key2}.json`);
|
|
44720
45069
|
if (import_node_fs22.default.existsSync(cached4))
|
|
44721
|
-
return { key: key2, raw: record2(JSON.parse(import_node_fs22.default.readFileSync(cached4, "utf8"))) };
|
|
45070
|
+
return { key: key2, toolchain, raw: record2(JSON.parse(import_node_fs22.default.readFileSync(cached4, "utf8"))) };
|
|
44722
45071
|
let output;
|
|
44723
45072
|
try {
|
|
44724
45073
|
output = (0, import_node_child_process13.execFileSync)(
|
|
44725
|
-
command
|
|
45074
|
+
command,
|
|
44726
45075
|
[
|
|
44727
|
-
...command.args,
|
|
44728
45076
|
"package",
|
|
44729
45077
|
...swiftPackageCacheOptions(),
|
|
44730
45078
|
"--package-path",
|
|
@@ -44749,7 +45097,7 @@ function dump(dir) {
|
|
|
44749
45097
|
}
|
|
44750
45098
|
import_node_fs22.default.mkdirSync(cacheDir3, { recursive: true });
|
|
44751
45099
|
import_node_fs22.default.writeFileSync(cached4, output);
|
|
44752
|
-
return { key: key2, raw: record2(JSON.parse(output)) };
|
|
45100
|
+
return { key: key2, toolchain, raw: record2(JSON.parse(output)) };
|
|
44753
45101
|
}
|
|
44754
45102
|
function defaultTraits(manifest) {
|
|
44755
45103
|
const traits = new Map(
|
|
@@ -44777,15 +45125,18 @@ function linksOnIOS(condition, traits) {
|
|
|
44777
45125
|
}
|
|
44778
45126
|
function swiftPackageManifest(dir) {
|
|
44779
45127
|
dir = import_node_fs22.default.realpathSync(dir);
|
|
44780
|
-
const { key: key2, raw: raw2 } = dump(dir);
|
|
45128
|
+
const { key: key2, raw: raw2, toolchain } = dump(dir);
|
|
44781
45129
|
const known = evaluated.get(key2);
|
|
44782
45130
|
if (known) return known;
|
|
44783
45131
|
const traits = defaultTraits(raw2);
|
|
44784
45132
|
const tools = Number(
|
|
44785
45133
|
/^(\d+)/.exec(string2(record2(raw2.toolsVersion)._version) ?? "5")?.[1] ?? 5
|
|
44786
45134
|
);
|
|
44787
|
-
const
|
|
44788
|
-
|
|
45135
|
+
const declaredModeValues = array(raw2.swiftLanguageVersions).flatMap(
|
|
45136
|
+
(mode) => string2(mode) ?? []
|
|
45137
|
+
);
|
|
45138
|
+
const declaredModes = declaredModeValues.flatMap((mode) => {
|
|
45139
|
+
const major = Number(/^(\d+)/.exec(mode)?.[1]);
|
|
44789
45140
|
return Number.isFinite(major) ? [major] : [];
|
|
44790
45141
|
});
|
|
44791
45142
|
const packageMode = Math.max(
|
|
@@ -44848,10 +45199,14 @@ function swiftPackageManifest(dir) {
|
|
|
44848
45199
|
});
|
|
44849
45200
|
}
|
|
44850
45201
|
let languageMode = packageMode;
|
|
45202
|
+
let sourceLanguageMode = declaredModeValues.length ? declaredModeValues.reduce(
|
|
45203
|
+
(highest, mode) => Number(mode) > Number(highest) ? mode : highest
|
|
45204
|
+
) : tools >= 6 ? "6" : tools >= 5 ? "5" : string2(record2(raw2.toolsVersion)._version) ?? "unknown";
|
|
44851
45205
|
let mainActorIsolation = false;
|
|
44852
45206
|
const defines = [];
|
|
44853
45207
|
const libraries = [];
|
|
44854
45208
|
const nativeSettings = [];
|
|
45209
|
+
const unsupportedSwiftSettings = [];
|
|
44855
45210
|
for (const [tool, standard] of [
|
|
44856
45211
|
["c", string2(raw2.cLanguageStandard)],
|
|
44857
45212
|
["cxx", string2(raw2.cxxLanguageStandard)]
|
|
@@ -44862,6 +45217,16 @@ function swiftPackageManifest(dir) {
|
|
|
44862
45217
|
for (const setting of array(target.settings)) {
|
|
44863
45218
|
const { kind: rawKind, tool, condition } = record2(setting);
|
|
44864
45219
|
const settingKind = record2(rawKind);
|
|
45220
|
+
if (tool === "swift") {
|
|
45221
|
+
const kinds = Object.keys(settingKind);
|
|
45222
|
+
const supported = kinds.length === 1 && (kinds[0] === "define" && /^[A-Za-z_][A-Za-z0-9_]*$/.test(
|
|
45223
|
+
string2(record2(settingKind.define)._0) ?? ""
|
|
45224
|
+
) || kinds[0] === "swiftLanguageMode" && Object.keys(record2(condition)).length === 0 || kinds[0] === "defaultIsolation" && Object.keys(record2(condition)).length === 0 && ["MainActor", "nonisolated"].includes(
|
|
45225
|
+
string2(record2(settingKind.defaultIsolation)._0) ?? ""
|
|
45226
|
+
));
|
|
45227
|
+
if (!supported)
|
|
45228
|
+
unsupportedSwiftSettings.push(JSON.stringify({ kind: rawKind, condition }));
|
|
45229
|
+
}
|
|
44865
45230
|
if ((tool === "c" || tool === "cxx") && linksOnIOS(condition, traits)) {
|
|
44866
45231
|
const config = string2(record2(condition).config);
|
|
44867
45232
|
const header = string2(record2(settingKind.headerSearchPath)._0);
|
|
@@ -44881,6 +45246,7 @@ function swiftPackageManifest(dir) {
|
|
|
44881
45246
|
});
|
|
44882
45247
|
}
|
|
44883
45248
|
const mode = string2(record2(settingKind.swiftLanguageMode)._0);
|
|
45249
|
+
if (tool === "swift" && mode) sourceLanguageMode = mode;
|
|
44884
45250
|
if (mode)
|
|
44885
45251
|
languageMode = Math.max(5, Number(/^(\d+)/.exec(mode)?.[1] ?? languageMode));
|
|
44886
45252
|
if (string2(record2(settingKind.defaultIsolation)._0) === "MainActor")
|
|
@@ -44902,6 +45268,10 @@ function swiftPackageManifest(dir) {
|
|
|
44902
45268
|
});
|
|
44903
45269
|
}
|
|
44904
45270
|
}
|
|
45271
|
+
if (!["5", "6"].includes(sourceLanguageMode))
|
|
45272
|
+
unsupportedSwiftSettings.push(
|
|
45273
|
+
`unsupported Swift language mode: ${sourceLanguageMode}`
|
|
45274
|
+
);
|
|
44905
45275
|
targets.set(name4, {
|
|
44906
45276
|
name: name4,
|
|
44907
45277
|
type: kind,
|
|
@@ -44915,6 +45285,8 @@ function swiftPackageManifest(dir) {
|
|
|
44915
45285
|
libraries,
|
|
44916
45286
|
nativeSettings,
|
|
44917
45287
|
declaresResources: array(target.resources).length > 0,
|
|
45288
|
+
hasPluginUsages: array(target.pluginUsages).length > 0,
|
|
45289
|
+
unsupportedSwiftSettings,
|
|
44918
45290
|
publicHeadersPath: string2(target.publicHeadersPath) ?? "include",
|
|
44919
45291
|
url: string2(target.url) ?? null,
|
|
44920
45292
|
checksum: string2(target.checksum) ?? null
|
|
@@ -44922,7 +45294,7 @@ function swiftPackageManifest(dir) {
|
|
|
44922
45294
|
}
|
|
44923
45295
|
const name3 = string2(raw2.name);
|
|
44924
45296
|
if (!name3) throw new Error(`swiftpm returned no package name for ${dir}`);
|
|
44925
|
-
const manifest = { name: name3, dir, products, targets, packages };
|
|
45297
|
+
const manifest = { name: name3, dir, products, targets, packages, toolchain };
|
|
44926
45298
|
evaluated.set(key2, manifest);
|
|
44927
45299
|
return manifest;
|
|
44928
45300
|
}
|
|
@@ -44952,6 +45324,7 @@ var import_node_child_process13, import_node_crypto14, import_node_fs22, import_
|
|
|
44952
45324
|
var init_swift_package_manifest = __esm({
|
|
44953
45325
|
"src/swift-package-manifest.ts"() {
|
|
44954
45326
|
"use strict";
|
|
45327
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
44955
45328
|
import_node_child_process13 = require("node:child_process");
|
|
44956
45329
|
import_node_crypto14 = require("node:crypto");
|
|
44957
45330
|
import_node_fs22 = __toESM(require("node:fs"), 1);
|
|
@@ -45253,6 +45626,7 @@ var import_node_child_process14, import_node_crypto15, import_node_fs23, import_
|
|
|
45253
45626
|
var init_swift_packages = __esm({
|
|
45254
45627
|
"src/swift-packages.ts"() {
|
|
45255
45628
|
"use strict";
|
|
45629
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
45256
45630
|
import_node_child_process14 = require("node:child_process");
|
|
45257
45631
|
import_node_crypto15 = require("node:crypto");
|
|
45258
45632
|
import_node_fs23 = __toESM(require("node:fs"), 1);
|
|
@@ -45313,6 +45687,7 @@ var import_node_fs24, import_node_path24;
|
|
|
45313
45687
|
var init_swift_source_file = __esm({
|
|
45314
45688
|
"src/swift-source-file.ts"() {
|
|
45315
45689
|
"use strict";
|
|
45690
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
45316
45691
|
import_node_fs24 = __toESM(require("node:fs"), 1);
|
|
45317
45692
|
import_node_path24 = __toESM(require("node:path"), 1);
|
|
45318
45693
|
}
|
|
@@ -45477,6 +45852,7 @@ var import_node_fs25, import_node_path25, isDirectory2, isSdkInclude;
|
|
|
45477
45852
|
var init_swift_objc_compile = __esm({
|
|
45478
45853
|
"src/swift-objc-compile.ts"() {
|
|
45479
45854
|
"use strict";
|
|
45855
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
45480
45856
|
import_node_fs25 = __toESM(require("node:fs"), 1);
|
|
45481
45857
|
import_node_path25 = __toESM(require("node:path"), 1);
|
|
45482
45858
|
init_home_paths();
|
|
@@ -45501,6 +45877,7 @@ var import_acorn, import_sucrase;
|
|
|
45501
45877
|
var init_swift_standin_config = __esm({
|
|
45502
45878
|
"src/swift-standin-config.ts"() {
|
|
45503
45879
|
"use strict";
|
|
45880
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
45504
45881
|
import_acorn = require("acorn");
|
|
45505
45882
|
import_sucrase = require("sucrase");
|
|
45506
45883
|
init_is_record();
|
|
@@ -45535,6 +45912,7 @@ var import_node_fs26;
|
|
|
45535
45912
|
var init_output_lock_stdio = __esm({
|
|
45536
45913
|
"src/output-lock-stdio.ts"() {
|
|
45537
45914
|
"use strict";
|
|
45915
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
45538
45916
|
import_node_fs26 = require("node:fs");
|
|
45539
45917
|
}
|
|
45540
45918
|
});
|
|
@@ -46216,6 +46594,7 @@ var STANDIN_EMIT_VERSION, STANDIN_IMPORTS, TYPE_KINDS, MEMBER_KINDS, ACCESSOR_WO
|
|
|
46216
46594
|
var init_swift_standin_emit = __esm({
|
|
46217
46595
|
"src/swift-standin-emit.ts"() {
|
|
46218
46596
|
"use strict";
|
|
46597
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
46219
46598
|
STANDIN_EMIT_VERSION = "12";
|
|
46220
46599
|
STANDIN_IMPORTS = ["Foundation", "UIKit"];
|
|
46221
46600
|
TYPE_KINDS = /* @__PURE__ */ new Set([
|
|
@@ -46858,6 +47237,7 @@ ${roots.map((file) => ` header "${file}"
|
|
|
46858
47237
|
TRIPLE,
|
|
46859
47238
|
"--sysroot",
|
|
46860
47239
|
sysroot,
|
|
47240
|
+
...WASI_EMULATION_FLAGS,
|
|
46861
47241
|
"-fsyntax-only",
|
|
46862
47242
|
"-I",
|
|
46863
47243
|
include,
|
|
@@ -46924,6 +47304,7 @@ ${roots.map((file) => ` header "${file}"
|
|
|
46924
47304
|
TRIPLE,
|
|
46925
47305
|
"--sysroot",
|
|
46926
47306
|
sysroot,
|
|
47307
|
+
...WASI_EMULATION_FLAGS,
|
|
46927
47308
|
"-fsyntax-only",
|
|
46928
47309
|
"-I",
|
|
46929
47310
|
include,
|
|
@@ -47539,10 +47920,11 @@ function swiftStandins(binaries, toolchain, provided = /* @__PURE__ */ new Set()
|
|
|
47539
47920
|
import_node_fs27.default.rmSync(modules, { recursive: true, force: true });
|
|
47540
47921
|
}
|
|
47541
47922
|
}
|
|
47542
|
-
var import_node_child_process15, import_node_crypto16, import_node_fs27, import_node_path26, TRIPLE,
|
|
47923
|
+
var import_node_child_process15, import_node_crypto16, import_node_fs27, import_node_path26, TRIPLE, cacheDir4, SWIFT_STANDINS_DIR, key, digests, files, OBJC, identChar, RUST_TARGET, UNSEARCHED, built;
|
|
47543
47924
|
var init_swift_standins = __esm({
|
|
47544
47925
|
"src/swift-standins.ts"() {
|
|
47545
47926
|
"use strict";
|
|
47927
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
47546
47928
|
import_node_child_process15 = require("node:child_process");
|
|
47547
47929
|
import_node_crypto16 = require("node:crypto");
|
|
47548
47930
|
import_node_fs27 = __toESM(require("node:fs"), 1);
|
|
@@ -47558,7 +47940,6 @@ var init_swift_standins = __esm({
|
|
|
47558
47940
|
init_swift_standin_emit();
|
|
47559
47941
|
init_swift_toolchain();
|
|
47560
47942
|
TRIPLE = "wasm32-unknown-wasip1";
|
|
47561
|
-
WASI_EMULATION = ["_WASI_EMULATED_SIGNAL", "_WASI_EMULATED_MMAN"];
|
|
47562
47943
|
cacheDir4 = import_node_path26.default.join(cacheDir(), "swift-standins");
|
|
47563
47944
|
SWIFT_STANDINS_DIR = "__standins__";
|
|
47564
47945
|
key = (...parts) => (0, import_node_crypto16.createHash)("sha256").update(parts.join("\0")).digest("hex").slice(0, 32);
|
|
@@ -47711,6 +48092,7 @@ var SWIFT_COMPILE_PATH, MAX_SWIFT_COMPILE_FILES, DEFAULT_SWIFT_COMPILE_BUILD_MS,
|
|
|
47711
48092
|
var init_swift_submit = __esm({
|
|
47712
48093
|
"src/swift-submit.ts"() {
|
|
47713
48094
|
"use strict";
|
|
48095
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
47714
48096
|
init_is_record();
|
|
47715
48097
|
init_swiftContract();
|
|
47716
48098
|
SWIFT_COMPILE_PATH = "/api/swift-compile";
|
|
@@ -47727,7 +48109,7 @@ var init_swift_submit = __esm({
|
|
|
47727
48109
|
MAX_SWIFT_COMPILE_IMAGES = 128;
|
|
47728
48110
|
MAX_SWIFT_COMPILE_IMAGE_BYTES = 4 * 1024 * 1024;
|
|
47729
48111
|
MAX_SWIFT_COMPILE_IMAGE_TOTAL_BYTES = 16 * 1024 * 1024;
|
|
47730
|
-
SWIFT_HOST_ABI =
|
|
48112
|
+
SWIFT_HOST_ABI = 48;
|
|
47731
48113
|
POLL_INTERVAL_MS = 1500;
|
|
47732
48114
|
}
|
|
47733
48115
|
});
|
|
@@ -47937,8 +48319,14 @@ function xcodeLayout(root) {
|
|
|
47937
48319
|
if (relative5 === ".." || relative5.startsWith(`..${import_node_path27.default.sep}`) || import_node_path27.default.isAbsolute(relative5))
|
|
47938
48320
|
throw new Error(`swift input escapes the selected package: ${target.dir}`);
|
|
47939
48321
|
const posix2 = relative5.split(import_node_path27.default.sep).join(import_node_path27.default.posix.sep);
|
|
48322
|
+
const packageMacros = [
|
|
48323
|
+
"SWIFT_PACKAGE=1",
|
|
48324
|
+
...packageConfiguration === "debug" ? ["DEBUG=1"] : []
|
|
48325
|
+
];
|
|
47940
48326
|
targets.push({
|
|
47941
48327
|
...target,
|
|
48328
|
+
cDefines: packageMacros,
|
|
48329
|
+
cxxDefines: packageMacros,
|
|
47942
48330
|
path: target.remote ? import_node_path27.default.posix.join(XCODE_PACKAGES_DIR, posix2) : posix2,
|
|
47943
48331
|
exclude: [],
|
|
47944
48332
|
defines: [
|
|
@@ -48095,6 +48483,12 @@ function xcodeManifest(layout) {
|
|
|
48095
48483
|
...target.mainActorIsolation ? [".defaultIsolation(MainActor.self)"] : [],
|
|
48096
48484
|
...(target.defines ?? []).map((name3) => `.define(${JSON.stringify(name3)})`)
|
|
48097
48485
|
].join(", ")}]`;
|
|
48486
|
+
const clangSettings = (target) => [
|
|
48487
|
+
["cSettings", target.cDefines],
|
|
48488
|
+
["cxxSettings", target.cxxDefines]
|
|
48489
|
+
].map(
|
|
48490
|
+
([label, macros]) => macros?.length ? `${label}: [${macros.map(clangMacroSetting).join(", ")}], ` : ""
|
|
48491
|
+
).join("");
|
|
48098
48492
|
const libraries = (target) => target.linkedLibraries?.length ? `, linkerSettings: [${target.linkedLibraries.map((name3) => `.linkedLibrary(${JSON.stringify(name3)})`).join(", ")}]` : "";
|
|
48099
48493
|
return [
|
|
48100
48494
|
"// swift-tools-version: 6.2",
|
|
@@ -48102,7 +48496,7 @@ function xcodeManifest(layout) {
|
|
|
48102
48496
|
'let package = Package(name: "app", targets: [',
|
|
48103
48497
|
` .executableTarget(name: "${layout.app.moduleName}", path: "${XCODE_APP_DIR}", ${settings(layout.app)}),`,
|
|
48104
48498
|
...layout.targets.map(
|
|
48105
|
-
(target) => target.systemLibrary ? ` .systemLibrary(name: "${target.name}", path: "${target.path}"),` : ` .target(name: "${target.name}", dependencies: ${JSON.stringify((target.dependencies ?? []).map((dependency) => dependency.name))}, path: "${target.path}", ${target.exclude.length > 0 ? `exclude: ${JSON.stringify(target.exclude)}, ` : ""}${target.resources ? "resources: [], " : ""}${settings(target)}${libraries(target)}),`
|
|
48499
|
+
(target) => target.systemLibrary ? ` .systemLibrary(name: "${target.name}", path: "${target.path}"),` : ` .target(name: "${target.name}", dependencies: ${JSON.stringify((target.dependencies ?? []).map((dependency) => dependency.name))}, path: "${target.path}", ${target.exclude.length > 0 ? `exclude: ${JSON.stringify(target.exclude)}, ` : ""}${target.resources ? "resources: [], " : ""}${clangSettings(target)}${settings(target)}${libraries(target)}),`
|
|
48106
48500
|
),
|
|
48107
48501
|
"])",
|
|
48108
48502
|
""
|
|
@@ -48884,6 +49278,7 @@ var import_node_crypto17, import_node_fs28, import_node_path27, ARTIFACT_PATH, R
|
|
|
48884
49278
|
var init_swift_host = __esm({
|
|
48885
49279
|
"src/swift-host.ts"() {
|
|
48886
49280
|
"use strict";
|
|
49281
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
48887
49282
|
import_node_crypto17 = require("node:crypto");
|
|
48888
49283
|
import_node_fs28 = __toESM(require("node:fs"), 1);
|
|
48889
49284
|
import_node_path27 = __toESM(require("node:path"), 1);
|
|
@@ -49708,6 +50103,7 @@ var import_node_child_process16, import_node_crypto18, import_node_fs29, import_
|
|
|
49708
50103
|
var init_expo_swift_host = __esm({
|
|
49709
50104
|
"src/expo-swift-host.ts"() {
|
|
49710
50105
|
"use strict";
|
|
50106
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
49711
50107
|
import_node_child_process16 = require("node:child_process");
|
|
49712
50108
|
import_node_crypto18 = require("node:crypto");
|
|
49713
50109
|
import_node_fs29 = __toESM(require("node:fs"), 1);
|
|
@@ -49759,6 +50155,7 @@ var import_node_fs30;
|
|
|
49759
50155
|
var init_process_liveness = __esm({
|
|
49760
50156
|
"src/process-liveness.ts"() {
|
|
49761
50157
|
"use strict";
|
|
50158
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
49762
50159
|
import_node_fs30 = require("node:fs");
|
|
49763
50160
|
}
|
|
49764
50161
|
});
|
|
@@ -49877,6 +50274,7 @@ var import_fs, import_path, import_url, _monorepoRootCache, RUNTIME_VERSION_HOST
|
|
|
49877
50274
|
var init_runtime_assets = __esm({
|
|
49878
50275
|
"src/runtime-assets.ts"() {
|
|
49879
50276
|
"use strict";
|
|
50277
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
49880
50278
|
import_fs = __toESM(require("fs"), 1);
|
|
49881
50279
|
import_path = __toESM(require("path"), 1);
|
|
49882
50280
|
import_url = require("url");
|
|
@@ -49890,7 +50288,7 @@ var init_runtime_assets = __esm({
|
|
|
49890
50288
|
var runtime_companion_default;
|
|
49891
50289
|
var init_runtime_companion = __esm({
|
|
49892
50290
|
"runtime-companion.json"() {
|
|
49893
|
-
runtime_companion_default = { abi: 1, sha256: "
|
|
50291
|
+
runtime_companion_default = { abi: 1, sha256: "24766e3afc21d3c7b319b6d6db0422d93f64ecd0af7147a8ef16d16b5cb4e9a8", file: "node/cli-24766e3afc21d3c7b319b6d6db0422d93f64ecd0af7147a8ef16d16b5cb4e9a8.cjs" };
|
|
49894
50292
|
}
|
|
49895
50293
|
});
|
|
49896
50294
|
|
|
@@ -49935,6 +50333,7 @@ var import_node_crypto19, import_node_fs31, import_node_module3, import_node_pat
|
|
|
49935
50333
|
var init_cli_runtime = __esm({
|
|
49936
50334
|
"src/cli-runtime.ts"() {
|
|
49937
50335
|
"use strict";
|
|
50336
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
49938
50337
|
import_node_crypto19 = require("node:crypto");
|
|
49939
50338
|
import_node_fs31 = require("node:fs");
|
|
49940
50339
|
import_node_module3 = require("node:module");
|
|
@@ -49950,6 +50349,7 @@ var DEFAULT_RUNTIME_CDN_ORIGIN, RNX_CHANGELOG_URL, RNX_CHANGELOG_API_URL, RNX_RU
|
|
|
49950
50349
|
var init_runtime_delivery = __esm({
|
|
49951
50350
|
"src/runtime-delivery.ts"() {
|
|
49952
50351
|
"use strict";
|
|
50352
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
49953
50353
|
init_src();
|
|
49954
50354
|
init_cli_runtime();
|
|
49955
50355
|
init_home_paths();
|
|
@@ -50004,6 +50404,7 @@ function isNativeViewSource(value) {
|
|
|
50004
50404
|
var init_nativeViewSourceContract = __esm({
|
|
50005
50405
|
"src/nativeViewSourceContract.ts"() {
|
|
50006
50406
|
"use strict";
|
|
50407
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
50007
50408
|
init_is_record();
|
|
50008
50409
|
}
|
|
50009
50410
|
});
|
|
@@ -50192,6 +50593,7 @@ var PEACH_CONFIG_QUERY_PARAM, BUNDLE_CONFIG_PREFIX, PEACH_CONFIGURED_FILES_HOOK;
|
|
|
50192
50593
|
var init_config = __esm({
|
|
50193
50594
|
"src/config.ts"() {
|
|
50194
50595
|
"use strict";
|
|
50596
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
50195
50597
|
init_version();
|
|
50196
50598
|
init_bundleGlobalFooter();
|
|
50197
50599
|
init_is_record();
|
|
@@ -50216,6 +50618,7 @@ function parseExpoManifestBody(body) {
|
|
|
50216
50618
|
var init_expo_manifest_body = __esm({
|
|
50217
50619
|
"src/expo-manifest-body.ts"() {
|
|
50218
50620
|
"use strict";
|
|
50621
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
50219
50622
|
}
|
|
50220
50623
|
});
|
|
50221
50624
|
|
|
@@ -50278,6 +50681,7 @@ var METRO_BUNDLE_PATH;
|
|
|
50278
50681
|
var init_native_dev_bundle_url = __esm({
|
|
50279
50682
|
"src/native-dev-bundle-url.ts"() {
|
|
50280
50683
|
"use strict";
|
|
50684
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
50281
50685
|
init_backend_origin();
|
|
50282
50686
|
METRO_BUNDLE_PATH = "/index.bundle?platform=ios&dev=true&hot=true&minify=false";
|
|
50283
50687
|
}
|
|
@@ -50515,6 +50919,7 @@ var MANIFEST_PROBE_TIMEOUT_MS, manifestRequests;
|
|
|
50515
50919
|
var init_dev_bundle_resolution = __esm({
|
|
50516
50920
|
"src/dev-bundle-resolution.ts"() {
|
|
50517
50921
|
"use strict";
|
|
50922
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
50518
50923
|
init_backend_origin();
|
|
50519
50924
|
init_expo_manifest_body();
|
|
50520
50925
|
init_native_dev_bundle_url();
|
|
@@ -50538,6 +50943,7 @@ var KOTLIN_DISCOVERY_PATH, KOTLIN_GUEST_PATH;
|
|
|
50538
50943
|
var init_kotlinDiscoveryContract = __esm({
|
|
50539
50944
|
"src/kotlinDiscoveryContract.ts"() {
|
|
50540
50945
|
"use strict";
|
|
50946
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
50541
50947
|
KOTLIN_DISCOVERY_PATH = "/__peach/kotlin-host";
|
|
50542
50948
|
KOTLIN_GUEST_PATH = "/__peach/kotlin-guest.js";
|
|
50543
50949
|
}
|
|
@@ -50623,6 +51029,7 @@ var HOME_WIDGET_FAMILIES;
|
|
|
50623
51029
|
var init_oneWidgetContract = __esm({
|
|
50624
51030
|
"src/oneWidgetContract.ts"() {
|
|
50625
51031
|
"use strict";
|
|
51032
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
50626
51033
|
init_native_dev_bundle_url();
|
|
50627
51034
|
HOME_WIDGET_FAMILIES = [
|
|
50628
51035
|
"systemSmall",
|
|
@@ -50945,6 +51352,7 @@ var import_promises3, import_node_path30, MAX_PLIST_BYTES, MAX_CHILD_DEPTH, MAX_
|
|
|
50945
51352
|
var init_settings_bundle = __esm({
|
|
50946
51353
|
"src/settings-bundle.ts"() {
|
|
50947
51354
|
"use strict";
|
|
51355
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
50948
51356
|
import_promises3 = require("node:fs/promises");
|
|
50949
51357
|
import_node_path30 = require("node:path");
|
|
50950
51358
|
init_is_record();
|
|
@@ -50973,6 +51381,7 @@ var SWIFT_DISCOVERY_PATH, SWIFT_GUEST_PATH, SWIFT_ICON_PATH;
|
|
|
50973
51381
|
var init_swiftDiscoveryContract = __esm({
|
|
50974
51382
|
"src/swiftDiscoveryContract.ts"() {
|
|
50975
51383
|
"use strict";
|
|
51384
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
50976
51385
|
SWIFT_DISCOVERY_PATH = "/__peach/swift-host";
|
|
50977
51386
|
SWIFT_GUEST_PATH = "/__peach/swift-guest.js";
|
|
50978
51387
|
SWIFT_ICON_PATH = "/__peach/swift-icon";
|
|
@@ -51023,6 +51432,7 @@ var import_node_fs32, import_node_path31, import_node_url3, REGISTRY_REPO_PATH,
|
|
|
51023
51432
|
var init_optional_demo_registry = __esm({
|
|
51024
51433
|
"scripts/optional-demo-registry.ts"() {
|
|
51025
51434
|
"use strict";
|
|
51435
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
51026
51436
|
import_node_fs32 = require("node:fs");
|
|
51027
51437
|
import_node_path31 = require("node:path");
|
|
51028
51438
|
import_node_url3 = require("node:url");
|
|
@@ -52104,6 +52514,7 @@ var import_child_process, import_promises4, import_http, import_net, import_node
|
|
|
52104
52514
|
var init_dev_server_scanner = __esm({
|
|
52105
52515
|
"scripts/dev-server-scanner.ts"() {
|
|
52106
52516
|
"use strict";
|
|
52517
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
52107
52518
|
import_child_process = require("child_process");
|
|
52108
52519
|
import_promises4 = require("fs/promises");
|
|
52109
52520
|
import_http = __toESM(require("http"), 1);
|
|
@@ -52177,6 +52588,7 @@ var IS_STANDALONE;
|
|
|
52177
52588
|
var init_standalone = __esm({
|
|
52178
52589
|
"cli/standalone.ts"() {
|
|
52179
52590
|
"use strict";
|
|
52591
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
52180
52592
|
IS_STANDALONE = typeof __SOOTSIM_STANDALONE__ !== "undefined" && __SOOTSIM_STANDALONE__;
|
|
52181
52593
|
}
|
|
52182
52594
|
});
|
|
@@ -52213,6 +52625,7 @@ var import_node_fs34, import_node_path33, import_node_url4;
|
|
|
52213
52625
|
var init_self_invocation = __esm({
|
|
52214
52626
|
"cli/self-invocation.ts"() {
|
|
52215
52627
|
"use strict";
|
|
52628
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
52216
52629
|
import_node_fs34 = require("node:fs");
|
|
52217
52630
|
import_node_path33 = require("node:path");
|
|
52218
52631
|
import_node_url4 = require("node:url");
|
|
@@ -52240,6 +52653,7 @@ function parseAgentEventLine(line) {
|
|
|
52240
52653
|
var init_agent_events = __esm({
|
|
52241
52654
|
"src/agent-events.ts"() {
|
|
52242
52655
|
"use strict";
|
|
52656
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
52243
52657
|
}
|
|
52244
52658
|
});
|
|
52245
52659
|
|
|
@@ -52267,6 +52681,7 @@ var ENVELOPE_MARKER;
|
|
|
52267
52681
|
var init_agent_prompt = __esm({
|
|
52268
52682
|
"src/agent-prompt.ts"() {
|
|
52269
52683
|
"use strict";
|
|
52684
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
52270
52685
|
ENVELOPE_MARKER = "sootsim-agent-prompt-v1";
|
|
52271
52686
|
}
|
|
52272
52687
|
});
|
|
@@ -52545,6 +52960,7 @@ var import_node_crypto20, import_node_fs35, import_node_path34, overrideDir, COS
|
|
|
52545
52960
|
var init_attached_projects = __esm({
|
|
52546
52961
|
"src/attached-projects.ts"() {
|
|
52547
52962
|
"use strict";
|
|
52963
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
52548
52964
|
import_node_crypto20 = require("node:crypto");
|
|
52549
52965
|
import_node_fs35 = __toESM(require("node:fs"), 1);
|
|
52550
52966
|
import_node_path34 = __toESM(require("node:path"), 1);
|
|
@@ -52971,6 +53387,7 @@ var import_node_child_process17, import_node_crypto21, import_node_fs36, import_
|
|
|
52971
53387
|
var init_agent_sessions = __esm({
|
|
52972
53388
|
"src/agent-sessions.ts"() {
|
|
52973
53389
|
"use strict";
|
|
53390
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
52974
53391
|
import_node_child_process17 = require("node:child_process");
|
|
52975
53392
|
import_node_crypto21 = require("node:crypto");
|
|
52976
53393
|
import_node_fs36 = __toESM(require("node:fs"), 1);
|
|
@@ -53009,6 +53426,7 @@ var import_node_crypto22, import_node_fs37, import_node_path36, WS_OPEN, SESSION
|
|
|
53009
53426
|
var init_agent_host = __esm({
|
|
53010
53427
|
"src/host/agent-host.ts"() {
|
|
53011
53428
|
"use strict";
|
|
53429
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
53012
53430
|
import_node_crypto22 = require("node:crypto");
|
|
53013
53431
|
import_node_fs37 = __toESM(require("node:fs"), 1);
|
|
53014
53432
|
import_node_path36 = __toESM(require("node:path"), 1);
|
|
@@ -53600,6 +54018,7 @@ var PACKAGE_VERSIONS_HEADER, FOOTER;
|
|
|
53600
54018
|
var init_packageVersionsContract = __esm({
|
|
53601
54019
|
"src/packageVersionsContract.ts"() {
|
|
53602
54020
|
"use strict";
|
|
54021
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
53603
54022
|
init_bundleGlobalFooter();
|
|
53604
54023
|
PACKAGE_VERSIONS_HEADER = "X-Peach-Package-Versions";
|
|
53605
54024
|
FOOTER = "__peachPackageVersions";
|
|
@@ -53611,6 +54030,7 @@ var LAZY_STUB_PATTERNS;
|
|
|
53611
54030
|
var init_lazy_stub_patterns = __esm({
|
|
53612
54031
|
"../peach-compat/src/lazy-stub-patterns.ts"() {
|
|
53613
54032
|
"use strict";
|
|
54033
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
53614
54034
|
LAZY_STUB_PATTERNS = [
|
|
53615
54035
|
"@10play/tentap-editor",
|
|
53616
54036
|
"@adobe/react-native-aepcore",
|
|
@@ -53821,6 +54241,7 @@ var NATIVE_STUB_PACKAGE_NAMES, NATIVE_RUNTIME_PACKAGE_NAMES;
|
|
|
53821
54241
|
var init_native_package_names = __esm({
|
|
53822
54242
|
"../peach-compat/src/generated/native-package-names.ts"() {
|
|
53823
54243
|
"use strict";
|
|
54244
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
53824
54245
|
init_light_native_package_names();
|
|
53825
54246
|
NATIVE_STUB_PACKAGE_NAMES = [
|
|
53826
54247
|
"@10play/tentap-editor",
|
|
@@ -54830,6 +55251,7 @@ var SOOTSIM_COMPAT_WRAPPER_REAL_PACKAGES, PEACH_REACT_NATIVE_UPSTREAM_MODULES, P
|
|
|
54830
55251
|
var init_wrapper_real_packages = __esm({
|
|
54831
55252
|
"../peach-compat/src/wrapper-real-packages.ts"() {
|
|
54832
55253
|
"use strict";
|
|
55254
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
54833
55255
|
SOOTSIM_COMPAT_WRAPPER_REAL_PACKAGES = {
|
|
54834
55256
|
expoUiConfirmationDialog: {
|
|
54835
55257
|
specifier: "@peach-internal/expo-ui-confirmation-dialog",
|
|
@@ -55300,6 +55722,7 @@ var COMPAT_STUBS;
|
|
|
55300
55722
|
var init_stub_manifest = __esm({
|
|
55301
55723
|
"../peach-compat/src/stub-manifest.ts"() {
|
|
55302
55724
|
"use strict";
|
|
55725
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
55303
55726
|
init_wrapper_real_packages();
|
|
55304
55727
|
COMPAT_STUBS = {
|
|
55305
55728
|
reactNativeScreens: {
|
|
@@ -55720,6 +56143,7 @@ function packageNameAt(modulePath, start) {
|
|
|
55720
56143
|
var init_stub_pattern_matcher = __esm({
|
|
55721
56144
|
"src/stub-pattern-matcher.ts"() {
|
|
55722
56145
|
"use strict";
|
|
56146
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
55723
56147
|
}
|
|
55724
56148
|
});
|
|
55725
56149
|
|
|
@@ -55900,6 +56324,7 @@ var import_fs2, import_path2, INSTALL_RECORD_FILES, scans;
|
|
|
55900
56324
|
var init_installed_package_versions = __esm({
|
|
55901
56325
|
"src/installed-package-versions.ts"() {
|
|
55902
56326
|
"use strict";
|
|
56327
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
55903
56328
|
import_fs2 = __toESM(require("fs"), 1);
|
|
55904
56329
|
import_path2 = __toESM(require("path"), 1);
|
|
55905
56330
|
init_lazy_stub_patterns();
|
|
@@ -55965,6 +56390,7 @@ async function resolveMetroProjectRoot(bundleUrl) {
|
|
|
55965
56390
|
var init_metro_project_root = __esm({
|
|
55966
56391
|
"src/metro-project-root.ts"() {
|
|
55967
56392
|
"use strict";
|
|
56393
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
55968
56394
|
init_dev_server_scanner();
|
|
55969
56395
|
init_backend_origin();
|
|
55970
56396
|
init_dev_bundle_resolution();
|
|
@@ -55988,6 +56414,7 @@ var import_fs3, import_path3;
|
|
|
55988
56414
|
var init_dev_server_package_versions = __esm({
|
|
55989
56415
|
"src/host/dev-server-package-versions.ts"() {
|
|
55990
56416
|
"use strict";
|
|
56417
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
55991
56418
|
import_fs3 = __toESM(require("fs"), 1);
|
|
55992
56419
|
import_path3 = __toESM(require("path"), 1);
|
|
55993
56420
|
init_installed_package_versions();
|
|
@@ -56061,6 +56488,7 @@ var FETCH_PROXY_NATIVE_USER_AGENT_HEADER, FETCH_PROXY_FAILURE_PARAM, FETCH_PROXY
|
|
|
56061
56488
|
var init_fetch_proxy_overrides = __esm({
|
|
56062
56489
|
"src/host/fetch-proxy-overrides.ts"() {
|
|
56063
56490
|
"use strict";
|
|
56491
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
56064
56492
|
FETCH_PROXY_NATIVE_USER_AGENT_HEADER = "x-sootsim-native-user-agent";
|
|
56065
56493
|
FETCH_PROXY_FAILURE_PARAM = "peachFailure";
|
|
56066
56494
|
FETCH_PROXY_FAILURE_HEADER = "x-peach-upstream-failure";
|
|
@@ -56138,6 +56566,7 @@ var LOOPBACK_PORTS;
|
|
|
56138
56566
|
var init_loopback_ports = __esm({
|
|
56139
56567
|
"src/host/loopback-ports.ts"() {
|
|
56140
56568
|
"use strict";
|
|
56569
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
56141
56570
|
init_backend_origin();
|
|
56142
56571
|
LOOPBACK_PORTS = /* @__PURE__ */ new Map();
|
|
56143
56572
|
for (const pair of process.env.PEACH_LOOPBACK_PORTS?.split(",").filter(Boolean) ?? []) {
|
|
@@ -56185,7 +56614,10 @@ async function forwardRolldownBundleResponse(upstream, res) {
|
|
|
56185
56614
|
const message = `could not attach the rolldown bundle inventory: ${error instanceof Error ? error.message : String(error)}`;
|
|
56186
56615
|
console.error(`[peach] ${message}`);
|
|
56187
56616
|
if (contentType2.toLowerCase().includes("multipart/mixed")) {
|
|
56188
|
-
yield Buffer.from(
|
|
56617
|
+
yield Buffer.from(
|
|
56618
|
+
inventory.multipartFailurePart(contentType2, message, payload.slice(0, sent)),
|
|
56619
|
+
"utf8"
|
|
56620
|
+
);
|
|
56189
56621
|
return;
|
|
56190
56622
|
}
|
|
56191
56623
|
res.statusCode = 500;
|
|
@@ -56201,6 +56633,7 @@ var import_stream, import_promises5, ROLLDOWN_INVENTORY_HEADER;
|
|
|
56201
56633
|
var init_rolldown_bundle_forward = __esm({
|
|
56202
56634
|
"src/host/rolldown-bundle-forward.ts"() {
|
|
56203
56635
|
"use strict";
|
|
56636
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
56204
56637
|
import_stream = require("stream");
|
|
56205
56638
|
import_promises5 = require("stream/promises");
|
|
56206
56639
|
init_cli_runtime();
|
|
@@ -56540,6 +56973,7 @@ var import_http2, import_https, import_node_http2, import_promises6, fetchProxyH
|
|
|
56540
56973
|
var init_fetch_proxy_handler = __esm({
|
|
56541
56974
|
"src/host/fetch-proxy-handler.ts"() {
|
|
56542
56975
|
"use strict";
|
|
56976
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
56543
56977
|
import_http2 = __toESM(require("http"), 1);
|
|
56544
56978
|
import_https = __toESM(require("https"), 1);
|
|
56545
56979
|
import_node_http2 = require("node:http2");
|
|
@@ -56687,6 +57121,7 @@ var import_node_crypto23, import_node_fs38, import_node_http22, import_node_path
|
|
|
56687
57121
|
var init_fetch_proxy_transport = __esm({
|
|
56688
57122
|
"src/host/fetch-proxy-transport.ts"() {
|
|
56689
57123
|
"use strict";
|
|
57124
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
56690
57125
|
import_node_crypto23 = require("node:crypto");
|
|
56691
57126
|
import_node_fs38 = require("node:fs");
|
|
56692
57127
|
import_node_http22 = require("node:http2");
|
|
@@ -56725,6 +57160,7 @@ function isProcessAlive2(pid) {
|
|
|
56725
57160
|
var init_lease_owner = __esm({
|
|
56726
57161
|
"src/host/lease-owner.ts"() {
|
|
56727
57162
|
"use strict";
|
|
57163
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
56728
57164
|
}
|
|
56729
57165
|
});
|
|
56730
57166
|
|
|
@@ -56804,6 +57240,7 @@ var import_child_process2;
|
|
|
56804
57240
|
var init_open_url = __esm({
|
|
56805
57241
|
"src/host/open-url.ts"() {
|
|
56806
57242
|
"use strict";
|
|
57243
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
56807
57244
|
import_child_process2 = require("child_process");
|
|
56808
57245
|
}
|
|
56809
57246
|
});
|
|
@@ -56885,6 +57322,7 @@ var PLANE_FLAG_READ_ONLY, PLANE_FLAG_BINARY;
|
|
|
56885
57322
|
var init_planeProtocol = __esm({
|
|
56886
57323
|
"../peach-box/src/planeProtocol.ts"() {
|
|
56887
57324
|
"use strict";
|
|
57325
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
56888
57326
|
PLANE_FLAG_READ_ONLY = 1;
|
|
56889
57327
|
PLANE_FLAG_BINARY = 2;
|
|
56890
57328
|
}
|
|
@@ -56894,6 +57332,7 @@ var init_planeProtocol = __esm({
|
|
|
56894
57332
|
var init_projectFileCache = __esm({
|
|
56895
57333
|
"../peach-box/src/projectFileCache.ts"() {
|
|
56896
57334
|
"use strict";
|
|
57335
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
56897
57336
|
}
|
|
56898
57337
|
});
|
|
56899
57338
|
|
|
@@ -56901,6 +57340,7 @@ var init_projectFileCache = __esm({
|
|
|
56901
57340
|
var init_planeClient = __esm({
|
|
56902
57341
|
"../peach-box/src/planeClient.ts"() {
|
|
56903
57342
|
"use strict";
|
|
57343
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
56904
57344
|
init_planeProtocol();
|
|
56905
57345
|
init_projectFileCache();
|
|
56906
57346
|
}
|
|
@@ -56910,6 +57350,7 @@ var init_planeClient = __esm({
|
|
|
56910
57350
|
var init_projectFilePlaneRpc = __esm({
|
|
56911
57351
|
"../peach-box/src/projectFilePlaneRpc.ts"() {
|
|
56912
57352
|
"use strict";
|
|
57353
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
56913
57354
|
init_planeProtocol();
|
|
56914
57355
|
}
|
|
56915
57356
|
});
|
|
@@ -56918,6 +57359,7 @@ var init_projectFilePlaneRpc = __esm({
|
|
|
56918
57359
|
var init_planeTransport_browser = __esm({
|
|
56919
57360
|
"../peach-box/src/planeTransport.browser.ts"() {
|
|
56920
57361
|
"use strict";
|
|
57362
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
56921
57363
|
}
|
|
56922
57364
|
});
|
|
56923
57365
|
|
|
@@ -56925,6 +57367,7 @@ var init_planeTransport_browser = __esm({
|
|
|
56925
57367
|
var init_plane = __esm({
|
|
56926
57368
|
"../peach-box/src/plane.ts"() {
|
|
56927
57369
|
"use strict";
|
|
57370
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
56928
57371
|
init_planeProtocol();
|
|
56929
57372
|
init_planeClient();
|
|
56930
57373
|
init_projectFilePlaneRpc();
|
|
@@ -56952,6 +57395,7 @@ var import_node_child_process18, import_node_fs39, import_node_path38, CheckoutR
|
|
|
56952
57395
|
var init_checkout_plane = __esm({
|
|
56953
57396
|
"cli/commands/box/checkout-plane.ts"() {
|
|
56954
57397
|
"use strict";
|
|
57398
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
56955
57399
|
import_node_child_process18 = require("node:child_process");
|
|
56956
57400
|
import_node_fs39 = __toESM(require("node:fs"), 1);
|
|
56957
57401
|
import_node_path38 = __toESM(require("node:path"), 1);
|
|
@@ -57089,6 +57533,7 @@ var import_node_fs40, import_node_path39, WS_OPEN2, PlaneNotRegisteredError, Pla
|
|
|
57089
57533
|
var init_plane_host = __esm({
|
|
57090
57534
|
"src/host/plane-host.ts"() {
|
|
57091
57535
|
"use strict";
|
|
57536
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
57092
57537
|
import_node_fs40 = __toESM(require("node:fs"), 1);
|
|
57093
57538
|
import_node_path39 = __toESM(require("node:path"), 1);
|
|
57094
57539
|
init_plane();
|
|
@@ -57327,6 +57772,7 @@ var sep, delimiter, posix, posixPath_default;
|
|
|
57327
57772
|
var init_posixPath = __esm({
|
|
57328
57773
|
"../contrast-bundler/src/posixPath.ts"() {
|
|
57329
57774
|
"use strict";
|
|
57775
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
57330
57776
|
sep = "/";
|
|
57331
57777
|
delimiter = ":";
|
|
57332
57778
|
posix = {
|
|
@@ -57542,6 +57988,7 @@ var import_dist, import_parser3, import_types, REPLACEMENT_MODULE_EXTENSIONS, IM
|
|
|
57542
57988
|
var init_replacementModule = __esm({
|
|
57543
57989
|
"../contrast-bundler/src/replacementModule.ts"() {
|
|
57544
57990
|
"use strict";
|
|
57991
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
57545
57992
|
import_dist = require("sucrase/dist/index.js");
|
|
57546
57993
|
import_parser3 = require("sucrase/dist/parser/index.js");
|
|
57547
57994
|
import_types = require("sucrase/dist/parser/tokenizer/types.js");
|
|
@@ -57714,6 +58161,7 @@ var import_node_fs41, import_promises7, import_node_path40, REPLACEMENT_MODULE_R
|
|
|
57714
58161
|
var init_replacement_module_handler = __esm({
|
|
57715
58162
|
"src/host/replacement-module-handler.ts"() {
|
|
57716
58163
|
"use strict";
|
|
58164
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
57717
58165
|
import_node_fs41 = require("node:fs");
|
|
57718
58166
|
import_promises7 = __toESM(require("node:fs/promises"), 1);
|
|
57719
58167
|
import_node_path40 = __toESM(require("node:path"), 1);
|
|
@@ -57788,6 +58236,7 @@ var SCAN_FRESH_MS;
|
|
|
57788
58236
|
var init_server_scan_handler = __esm({
|
|
57789
58237
|
"src/host/server-scan-handler.ts"() {
|
|
57790
58238
|
"use strict";
|
|
58239
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
57791
58240
|
init_dev_server_scanner();
|
|
57792
58241
|
init_backend_origin();
|
|
57793
58242
|
SCAN_FRESH_MS = 2e3;
|
|
@@ -57799,6 +58248,7 @@ var LAUNCH_METADATA_QUERY_PARAM, LAUNCH_METADATA_KEYS;
|
|
|
57799
58248
|
var init_launchMetadataContract = __esm({
|
|
57800
58249
|
"src/launchMetadataContract.ts"() {
|
|
57801
58250
|
"use strict";
|
|
58251
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
57802
58252
|
LAUNCH_METADATA_QUERY_PARAM = "launchMetadata";
|
|
57803
58253
|
LAUNCH_METADATA_KEYS = [
|
|
57804
58254
|
"appFonts",
|
|
@@ -57926,6 +58376,7 @@ var import_node_crypto24, import_node_fs42, import_node_path41, STAGED_PREFIX, S
|
|
|
57926
58376
|
var init_staged_host_files = __esm({
|
|
57927
58377
|
"src/host/staged-host-files.ts"() {
|
|
57928
58378
|
"use strict";
|
|
58379
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
57929
58380
|
import_node_crypto24 = require("node:crypto");
|
|
57930
58381
|
import_node_fs42 = __toESM(require("node:fs"), 1);
|
|
57931
58382
|
import_node_path41 = __toESM(require("node:path"), 1);
|
|
@@ -58385,6 +58836,7 @@ var import_crypto, import_http3, import_https2, import_net2, import_tls, import_
|
|
|
58385
58836
|
var init_websocket_proxy = __esm({
|
|
58386
58837
|
"src/host/websocket-proxy.ts"() {
|
|
58387
58838
|
"use strict";
|
|
58839
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
58388
58840
|
import_crypto = require("crypto");
|
|
58389
58841
|
import_http3 = require("http");
|
|
58390
58842
|
import_https2 = require("https");
|
|
@@ -58435,6 +58887,7 @@ var FOOTER2;
|
|
|
58435
58887
|
var init_androidAutolinkingContract = __esm({
|
|
58436
58888
|
"src/androidAutolinkingContract.ts"() {
|
|
58437
58889
|
"use strict";
|
|
58890
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
58438
58891
|
init_bundleGlobalFooter();
|
|
58439
58892
|
FOOTER2 = "__peachAndroidAutolinkedPackages";
|
|
58440
58893
|
}
|
|
@@ -58491,6 +58944,7 @@ var import_node_child_process19, import_node_fs43, import_node_module4, import_n
|
|
|
58491
58944
|
var init_android_autolinking = __esm({
|
|
58492
58945
|
"src/android-autolinking.ts"() {
|
|
58493
58946
|
"use strict";
|
|
58947
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
58494
58948
|
import_node_child_process19 = require("node:child_process");
|
|
58495
58949
|
import_node_fs43 = __toESM(require("node:fs"), 1);
|
|
58496
58950
|
import_node_module4 = require("node:module");
|
|
@@ -58543,6 +58997,7 @@ var import_node_crypto25, import_node_fs44, import_node_path43, import_node_url5
|
|
|
58543
58997
|
var init_kotlin_module = __esm({
|
|
58544
58998
|
"src/kotlin-module.ts"() {
|
|
58545
58999
|
"use strict";
|
|
59000
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
58546
59001
|
import_node_crypto25 = require("node:crypto");
|
|
58547
59002
|
import_node_fs44 = __toESM(require("node:fs"), 1);
|
|
58548
59003
|
import_node_path43 = __toESM(require("node:path"), 1);
|
|
@@ -58660,6 +59115,7 @@ var import_node_child_process20, import_node_crypto26, import_node_fs45, import_
|
|
|
58660
59115
|
var init_kotlin_toolchain = __esm({
|
|
58661
59116
|
"src/kotlin-toolchain.ts"() {
|
|
58662
59117
|
"use strict";
|
|
59118
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
58663
59119
|
import_node_child_process20 = require("node:child_process");
|
|
58664
59120
|
import_node_crypto26 = require("node:crypto");
|
|
58665
59121
|
import_node_fs45 = __toESM(require("node:fs"), 1);
|
|
@@ -58696,6 +59152,7 @@ var platform, KOTLIN_SDK_PROFILES, KOTLIN_SDK_FILES;
|
|
|
58696
59152
|
var init_kotlinSdkContract = __esm({
|
|
58697
59153
|
"src/kotlinSdkContract.ts"() {
|
|
58698
59154
|
"use strict";
|
|
59155
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
58699
59156
|
init_is_record();
|
|
58700
59157
|
platform = ["Sources", "JniPlatformSources", "JniSources"];
|
|
58701
59158
|
KOTLIN_SDK_PROFILES = {
|
|
@@ -58796,6 +59253,7 @@ var import_node_child_process21, import_node_crypto27, import_node_fs46, import_
|
|
|
58796
59253
|
var init_kotlin_sdk = __esm({
|
|
58797
59254
|
"src/kotlin-sdk.ts"() {
|
|
58798
59255
|
"use strict";
|
|
59256
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
58799
59257
|
import_node_child_process21 = require("node:child_process");
|
|
58800
59258
|
import_node_crypto27 = require("node:crypto");
|
|
58801
59259
|
import_node_fs46 = __toESM(require("node:fs"), 1);
|
|
@@ -58881,6 +59339,7 @@ var VIEW_MODEL, ANDROID_VIEW_MODEL, APPLICATION2, HANDLE;
|
|
|
58881
59339
|
var init_kotlin_view_models = __esm({
|
|
58882
59340
|
"src/kotlin-view-models.ts"() {
|
|
58883
59341
|
"use strict";
|
|
59342
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
58884
59343
|
init_is_record();
|
|
58885
59344
|
VIEW_MODEL = "androidx.lifecycle.ViewModel";
|
|
58886
59345
|
ANDROID_VIEW_MODEL = "androidx.lifecycle.AndroidViewModel";
|
|
@@ -59897,6 +60356,7 @@ var import_node_child_process22, import_node_crypto28, import_node_fs47, import_
|
|
|
59897
60356
|
var init_kotlin_host = __esm({
|
|
59898
60357
|
"src/kotlin-host.ts"() {
|
|
59899
60358
|
"use strict";
|
|
60359
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
59900
60360
|
import_node_child_process22 = require("node:child_process");
|
|
59901
60361
|
import_node_crypto28 = require("node:crypto");
|
|
59902
60362
|
import_node_fs47 = __toESM(require("node:fs"), 1);
|
|
@@ -60080,6 +60540,7 @@ var import_node_fs48, import_node_path47, EXPO_KOTLIN_ROUTE, compiling2;
|
|
|
60080
60540
|
var init_expo_kotlin_host = __esm({
|
|
60081
60541
|
"src/expo-kotlin-host.ts"() {
|
|
60082
60542
|
"use strict";
|
|
60543
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
60083
60544
|
import_node_fs48 = __toESM(require("node:fs"), 1);
|
|
60084
60545
|
import_node_path47 = __toESM(require("node:path"), 1);
|
|
60085
60546
|
init_android_autolinking();
|
|
@@ -60199,6 +60660,7 @@ var LEGACY_HARDWARE_BUTTONS, PIXEL_HARDWARE_BUTTONS, GALAXY_HARDWARE_BUTTONS, AN
|
|
|
60199
60660
|
var init_device_catalog = __esm({
|
|
60200
60661
|
"src/device-catalog.ts"() {
|
|
60201
60662
|
"use strict";
|
|
60663
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
60202
60664
|
LEGACY_HARDWARE_BUTTONS = {
|
|
60203
60665
|
width: 2.5,
|
|
60204
60666
|
lock: { side: "right", top: 188.7, height: 68.1 },
|
|
@@ -60953,6 +61415,7 @@ var whitespace, literal2, lineBreak, metroLayoutParser;
|
|
|
60953
61415
|
var init_metro_layout_parser = __esm({
|
|
60954
61416
|
"src/metro-layout-parser.ts"() {
|
|
60955
61417
|
"use strict";
|
|
61418
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
60956
61419
|
whitespace = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/y;
|
|
60957
61420
|
literal2 = /(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/y;
|
|
60958
61421
|
lineBreak = /[\r\n\u2028\u2029]/;
|
|
@@ -61063,6 +61526,7 @@ var RNX_METRO_MODULE_IDENTITY_VERSION;
|
|
|
61063
61526
|
var init_metro_production_bundle = __esm({
|
|
61064
61527
|
"src/metro-production-bundle.ts"() {
|
|
61065
61528
|
"use strict";
|
|
61529
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
61066
61530
|
init_bundleGlobalFooter();
|
|
61067
61531
|
RNX_METRO_MODULE_IDENTITY_VERSION = 2;
|
|
61068
61532
|
}
|
|
@@ -61131,6 +61595,7 @@ var SECURE_STORE_PLAINTEXT_PREFIX;
|
|
|
61131
61595
|
var init_storageSnapshotContract = __esm({
|
|
61132
61596
|
"src/storageSnapshotContract.ts"() {
|
|
61133
61597
|
"use strict";
|
|
61598
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
61134
61599
|
SECURE_STORE_PLAINTEXT_PREFIX = "__sootsim_secure_store_plaintext:";
|
|
61135
61600
|
}
|
|
61136
61601
|
});
|
|
@@ -61140,6 +61605,7 @@ var PEACH_BUNDLE_ASSET_PREFIX;
|
|
|
61140
61605
|
var init_bundle_asset_resource = __esm({
|
|
61141
61606
|
"src/bundle-asset-resource.ts"() {
|
|
61142
61607
|
"use strict";
|
|
61608
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
61143
61609
|
PEACH_BUNDLE_ASSET_PREFIX = "peach-asset://";
|
|
61144
61610
|
}
|
|
61145
61611
|
});
|
|
@@ -61946,6 +62412,7 @@ var EXPRESSION_KEYWORDS, PLACEHOLDER_JPEG, METRO_ASSET_PLACEHOLDERS;
|
|
|
61946
62412
|
var init_metroAssetArtifact = __esm({
|
|
61947
62413
|
"../contrast-bundler/src/metroAssetArtifact.ts"() {
|
|
61948
62414
|
"use strict";
|
|
62415
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
61949
62416
|
init_bundle_asset_resource();
|
|
61950
62417
|
EXPRESSION_KEYWORDS = /* @__PURE__ */ new Set([
|
|
61951
62418
|
"await",
|
|
@@ -62007,6 +62474,7 @@ var FOOTER3;
|
|
|
62007
62474
|
var init_hostVersionEvidence = __esm({
|
|
62008
62475
|
"../contrast-bundler/src/hostVersionEvidence.ts"() {
|
|
62009
62476
|
"use strict";
|
|
62477
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
62010
62478
|
init_bundleGlobalFooter();
|
|
62011
62479
|
FOOTER3 = "hostVersionEvidence";
|
|
62012
62480
|
}
|
|
@@ -62078,6 +62546,7 @@ var import_gen_mapping, import_trace_mapping;
|
|
|
62078
62546
|
var init_metroDebugSourceMap = __esm({
|
|
62079
62547
|
"../contrast-bundler/src/metroDebugSourceMap.ts"() {
|
|
62080
62548
|
"use strict";
|
|
62549
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
62081
62550
|
import_gen_mapping = require("@jridgewell/gen-mapping");
|
|
62082
62551
|
import_trace_mapping = require("@jridgewell/trace-mapping");
|
|
62083
62552
|
}
|
|
@@ -62282,6 +62751,7 @@ var import_magic_string, import_config2, import_metro_production_bundle, import_
|
|
|
62282
62751
|
var init_metroCloudArtifact = __esm({
|
|
62283
62752
|
"../contrast-bundler/src/metroCloudArtifact.ts"() {
|
|
62284
62753
|
"use strict";
|
|
62754
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
62285
62755
|
import_magic_string = __toESM(require("magic-string"), 1);
|
|
62286
62756
|
import_config2 = require("peachsim/config");
|
|
62287
62757
|
import_metro_production_bundle = require("peachsim/metro-production-bundle");
|
|
@@ -62325,6 +62795,7 @@ var RNX_CLOUD_MAX_ARTIFACT_BYTES, RNX_CLOUD_DESIGN_MAX_STORAGE_BYTES, RNX_CLOUD_
|
|
|
62325
62795
|
var init_cloud_contract = __esm({
|
|
62326
62796
|
"src/cloud-contract.ts"() {
|
|
62327
62797
|
"use strict";
|
|
62798
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
62328
62799
|
RNX_CLOUD_MAX_ARTIFACT_BYTES = 40761776;
|
|
62329
62800
|
RNX_CLOUD_DESIGN_MAX_STORAGE_BYTES = 1024 * 1024;
|
|
62330
62801
|
RNX_CLOUD_COMMAND_SCOPES = {
|
|
@@ -62506,6 +62977,7 @@ var CLOUD_SESSION_VERSION, MAX_ENCODED_SESSION_BYTES, PEACH_CLOUD_SESSION_ENV, R
|
|
|
62506
62977
|
var init_cloud_session = __esm({
|
|
62507
62978
|
"cli/cloud-session.ts"() {
|
|
62508
62979
|
"use strict";
|
|
62980
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
62509
62981
|
init_backend_origin();
|
|
62510
62982
|
init_is_record();
|
|
62511
62983
|
CLOUD_SESSION_VERSION = 3;
|
|
@@ -62522,6 +62994,7 @@ var import_node_fs49, nodeRepoFileReader;
|
|
|
62522
62994
|
var init_nodeRepoFileReader = __esm({
|
|
62523
62995
|
"cli/commands/nodeRepoFileReader.ts"() {
|
|
62524
62996
|
"use strict";
|
|
62997
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
62525
62998
|
import_node_fs49 = require("node:fs");
|
|
62526
62999
|
nodeRepoFileReader = {
|
|
62527
63000
|
exists: import_node_fs49.existsSync,
|
|
@@ -62744,6 +63217,7 @@ var import_node_fs50, import_node_path48, import_json52, CONFIG_EXTENSIONS, REPO
|
|
|
62744
63217
|
var init_detect = __esm({
|
|
62745
63218
|
"cli/commands/detect.ts"() {
|
|
62746
63219
|
"use strict";
|
|
63220
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
62747
63221
|
import_node_fs50 = require("node:fs");
|
|
62748
63222
|
import_node_path48 = require("node:path");
|
|
62749
63223
|
import_json52 = __toESM(require_lib(), 1);
|
|
@@ -63372,6 +63846,7 @@ var import_node_crypto29, import_node_fs51, import_node_path49, import_node_vm,
|
|
|
63372
63846
|
var init_cloud_client = __esm({
|
|
63373
63847
|
"cli/cloud-client.ts"() {
|
|
63374
63848
|
"use strict";
|
|
63849
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
63375
63850
|
import_node_crypto29 = require("node:crypto");
|
|
63376
63851
|
import_node_fs51 = require("node:fs");
|
|
63377
63852
|
import_node_path49 = require("node:path");
|
|
@@ -63608,6 +64083,7 @@ async function sendToBox(options) {
|
|
|
63608
64083
|
var init_send_to_box = __esm({
|
|
63609
64084
|
"cli/send-to-box.ts"() {
|
|
63610
64085
|
"use strict";
|
|
64086
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
63611
64087
|
init_cli_runtime();
|
|
63612
64088
|
init_device_catalog();
|
|
63613
64089
|
init_is_record();
|
|
@@ -63661,6 +64137,7 @@ var import_child_process3, import_crypto2, import_fs4, import_http4, import_os,
|
|
|
63661
64137
|
var init_bridge_host = __esm({
|
|
63662
64138
|
"src/host/bridge-host.ts"() {
|
|
63663
64139
|
"use strict";
|
|
64140
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
63664
64141
|
import_child_process3 = __toESM(require("child_process"), 1);
|
|
63665
64142
|
import_crypto2 = require("crypto");
|
|
63666
64143
|
import_fs4 = __toESM(require("fs"), 1);
|
|
@@ -63668,10 +64145,10 @@ var init_bridge_host = __esm({
|
|
|
63668
64145
|
import_os = __toESM(require("os"), 1);
|
|
63669
64146
|
import_path4 = __toESM(require("path"), 1);
|
|
63670
64147
|
import_ws2 = require("ws");
|
|
63671
|
-
init_chromium_admission();
|
|
63672
64148
|
init_automatic_update_policy();
|
|
63673
64149
|
init_bridge_constants();
|
|
63674
64150
|
init_bridge_contract();
|
|
64151
|
+
init_chromium_admission();
|
|
63675
64152
|
init_cli_version();
|
|
63676
64153
|
init_desktop_host_delivery();
|
|
63677
64154
|
init_expo_swift_host();
|
|
@@ -65725,6 +66202,7 @@ var DEFAULT_SOOTSIM_SHELL_URL;
|
|
|
65725
66202
|
var init_cli_constants = __esm({
|
|
65726
66203
|
"src/cli-constants.ts"() {
|
|
65727
66204
|
"use strict";
|
|
66205
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
65728
66206
|
DEFAULT_SOOTSIM_SHELL_URL = "http://localhost:5173/";
|
|
65729
66207
|
}
|
|
65730
66208
|
});
|
|
@@ -65927,6 +66405,7 @@ var import_child_process4, import_fs5, import_module, cached3, cachedComm, cache
|
|
|
65927
66405
|
var init_parent_pid = __esm({
|
|
65928
66406
|
"cli/parent-pid.ts"() {
|
|
65929
66407
|
"use strict";
|
|
66408
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
65930
66409
|
import_child_process4 = require("child_process");
|
|
65931
66410
|
import_fs5 = require("fs");
|
|
65932
66411
|
import_module = require("module");
|
|
@@ -65968,6 +66447,7 @@ var import_node_crypto30, import_node_fs52, import_node_path50;
|
|
|
65968
66447
|
var init_secure_file = __esm({
|
|
65969
66448
|
"cli/secure-file.ts"() {
|
|
65970
66449
|
"use strict";
|
|
66450
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
65971
66451
|
import_node_crypto30 = require("node:crypto");
|
|
65972
66452
|
import_node_fs52 = require("node:fs");
|
|
65973
66453
|
import_node_path50 = require("node:path");
|
|
@@ -66116,6 +66596,7 @@ var import_fs6, import_os2, import_path5, CURRENT_SIM_VERSION, CURRENT_SIM_PATH_
|
|
|
66116
66596
|
var init_current_sim = __esm({
|
|
66117
66597
|
"cli/current-sim.ts"() {
|
|
66118
66598
|
"use strict";
|
|
66599
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
66119
66600
|
import_fs6 = require("fs");
|
|
66120
66601
|
import_os2 = require("os");
|
|
66121
66602
|
import_path5 = require("path");
|
|
@@ -66239,6 +66720,7 @@ var import_node_child_process23, import_node_fs53, import_node_os10, import_node
|
|
|
66239
66720
|
var init_pause_aware_timeout = __esm({
|
|
66240
66721
|
"cli/pause-aware-timeout.ts"() {
|
|
66241
66722
|
"use strict";
|
|
66723
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
66242
66724
|
import_node_child_process23 = require("node:child_process");
|
|
66243
66725
|
import_node_fs53 = require("node:fs");
|
|
66244
66726
|
import_node_os10 = __toESM(require("node:os"), 1);
|
|
@@ -66982,6 +67464,7 @@ var import_node_fs54, import_node_path52, import_ws3, PEACH_PLACEMENT_ENV, resol
|
|
|
66982
67464
|
var init_ws_bridge = __esm({
|
|
66983
67465
|
"cli/ws-bridge.ts"() {
|
|
66984
67466
|
"use strict";
|
|
67467
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
66985
67468
|
import_node_fs54 = __toESM(require("node:fs"), 1);
|
|
66986
67469
|
import_node_path52 = __toESM(require("node:path"), 1);
|
|
66987
67470
|
import_ws3 = require("ws");
|
|
@@ -67061,6 +67544,7 @@ function formatLockOwner(owner) {
|
|
|
67061
67544
|
var init_agent_identity = __esm({
|
|
67062
67545
|
"src/agent-identity.ts"() {
|
|
67063
67546
|
"use strict";
|
|
67547
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
67064
67548
|
}
|
|
67065
67549
|
});
|
|
67066
67550
|
|
|
@@ -67098,6 +67582,7 @@ var APP_URL_SCHEME_RE;
|
|
|
67098
67582
|
var init_app_url = __esm({
|
|
67099
67583
|
"src/app-url.ts"() {
|
|
67100
67584
|
"use strict";
|
|
67585
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
67101
67586
|
APP_URL_SCHEME_RE = /^[A-Za-z][A-Za-z0-9+.-]*:/;
|
|
67102
67587
|
}
|
|
67103
67588
|
});
|
|
@@ -67211,6 +67696,7 @@ var import_node_fs55, import_node_path53, DEFAULT_ENV_FILE, DOTENV_PATTERN, BUIL
|
|
|
67211
67696
|
var init_dot_env = __esm({
|
|
67212
67697
|
"src/dot-env.ts"() {
|
|
67213
67698
|
"use strict";
|
|
67699
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
67214
67700
|
import_node_fs55 = __toESM(require("node:fs"), 1);
|
|
67215
67701
|
import_node_path53 = __toESM(require("node:path"), 1);
|
|
67216
67702
|
DEFAULT_ENV_FILE = ".env";
|
|
@@ -67273,6 +67759,7 @@ var EXPO_SWIFT_READY_TIMEOUT_MS, EXPO_SWIFT_READY_PROGRESS_MS;
|
|
|
67273
67759
|
var init_expo_swift_ready = __esm({
|
|
67274
67760
|
"src/expo-swift-ready.ts"() {
|
|
67275
67761
|
"use strict";
|
|
67762
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
67276
67763
|
EXPO_SWIFT_READY_TIMEOUT_MS = 30 * 6e4;
|
|
67277
67764
|
EXPO_SWIFT_READY_PROGRESS_MS = 3e4;
|
|
67278
67765
|
}
|
|
@@ -67286,6 +67773,7 @@ var FLOW_TIMEOUT_SCALE_ENV;
|
|
|
67286
67773
|
var init_flow_timeout_scale = __esm({
|
|
67287
67774
|
"src/flow-timeout-scale.ts"() {
|
|
67288
67775
|
"use strict";
|
|
67776
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
67289
67777
|
FLOW_TIMEOUT_SCALE_ENV = "SOOTSIM_FLOW_TIMEOUT_SCALE";
|
|
67290
67778
|
}
|
|
67291
67779
|
});
|
|
@@ -67663,6 +68151,7 @@ var import_node_child_process24, import_node_fs56, import_node_os11, import_node
|
|
|
67663
68151
|
var init_native_firebase_config = __esm({
|
|
67664
68152
|
"src/native-firebase-config.ts"() {
|
|
67665
68153
|
"use strict";
|
|
68154
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
67666
68155
|
import_node_child_process24 = require("node:child_process");
|
|
67667
68156
|
import_node_fs56 = __toESM(require("node:fs"), 1);
|
|
67668
68157
|
import_node_os11 = __toESM(require("node:os"), 1);
|
|
@@ -67700,6 +68189,24 @@ function profileIndexPath() {
|
|
|
67700
68189
|
function playwrightProfileUserDataDir(profileId) {
|
|
67701
68190
|
return import_path6.default.join(profilesDir(), "playwright", normalizeProfileId(profileId));
|
|
67702
68191
|
}
|
|
68192
|
+
function liveBrowserPidForPlaywrightProfile(profileId) {
|
|
68193
|
+
let target;
|
|
68194
|
+
try {
|
|
68195
|
+
target = import_fs7.default.readlinkSync(
|
|
68196
|
+
import_path6.default.join(playwrightProfileUserDataDir(profileId), "SingletonLock")
|
|
68197
|
+
);
|
|
68198
|
+
} catch {
|
|
68199
|
+
return null;
|
|
68200
|
+
}
|
|
68201
|
+
const pid = Number(target.slice(target.lastIndexOf("-") + 1));
|
|
68202
|
+
if (!Number.isInteger(pid) || pid < 1) return null;
|
|
68203
|
+
try {
|
|
68204
|
+
process.kill(pid, 0);
|
|
68205
|
+
return pid;
|
|
68206
|
+
} catch (error) {
|
|
68207
|
+
return error instanceof Error && Reflect.get(error, "code") === "EPERM" ? pid : null;
|
|
68208
|
+
}
|
|
68209
|
+
}
|
|
67703
68210
|
function readIndexRaw() {
|
|
67704
68211
|
try {
|
|
67705
68212
|
const parsed = JSON.parse(
|
|
@@ -67777,6 +68284,7 @@ var import_fs7, import_path6, DEFAULT_PROFILE_ID, PROFILE_INDEX_FILE, PROFILE_IN
|
|
|
67777
68284
|
var init_profiles = __esm({
|
|
67778
68285
|
"src/profiles.ts"() {
|
|
67779
68286
|
"use strict";
|
|
68287
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
67780
68288
|
import_fs7 = __toESM(require("fs"), 1);
|
|
67781
68289
|
import_path6 = __toESM(require("path"), 1);
|
|
67782
68290
|
init_home_paths();
|
|
@@ -67800,6 +68308,7 @@ var MIME_BY_EXTENSION, EXTENSION_BY_MIME;
|
|
|
67800
68308
|
var init_uttype_mime = __esm({
|
|
67801
68309
|
"../peach-compat/src/stubs/uttype-mime.ts"() {
|
|
67802
68310
|
"use strict";
|
|
68311
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
67803
68312
|
MIME_BY_EXTENSION = {
|
|
67804
68313
|
aac: "audio/aac",
|
|
67805
68314
|
bmp: "image/bmp",
|
|
@@ -67870,6 +68379,7 @@ function isAppBundleResourcePath(path62) {
|
|
|
67870
68379
|
var init_appBundleResourcesContract = __esm({
|
|
67871
68380
|
"src/appBundleResourcesContract.ts"() {
|
|
67872
68381
|
"use strict";
|
|
68382
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
67873
68383
|
}
|
|
67874
68384
|
});
|
|
67875
68385
|
|
|
@@ -67914,6 +68424,7 @@ var import_node_crypto31, import_node_fs57, import_node_path55;
|
|
|
67914
68424
|
var init_app_bundle_resources = __esm({
|
|
67915
68425
|
"cli/app-bundle-resources.ts"() {
|
|
67916
68426
|
"use strict";
|
|
68427
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
67917
68428
|
import_node_crypto31 = require("node:crypto");
|
|
67918
68429
|
import_node_fs57 = __toESM(require("node:fs"), 1);
|
|
67919
68430
|
import_node_path55 = __toESM(require("node:path"), 1);
|
|
@@ -67986,6 +68497,7 @@ var import_node_fs58, import_node_path56, ACCENT_BUILD_SETTING, PLIST_ACCENT;
|
|
|
67986
68497
|
var init_app_catalog = __esm({
|
|
67987
68498
|
"cli/app-catalog.ts"() {
|
|
67988
68499
|
"use strict";
|
|
68500
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
67989
68501
|
import_node_fs58 = __toESM(require("node:fs"), 1);
|
|
67990
68502
|
import_node_path56 = __toESM(require("node:path"), 1);
|
|
67991
68503
|
init_bundleAssets();
|
|
@@ -68028,6 +68540,7 @@ var import_node_fs59, import_node_path57, EXPO_APP_CONFIG_NAMES, PEACH_APP_CONFI
|
|
|
68028
68540
|
var init_app_project = __esm({
|
|
68029
68541
|
"cli/app-project.ts"() {
|
|
68030
68542
|
"use strict";
|
|
68543
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
68031
68544
|
import_node_fs59 = __toESM(require("node:fs"), 1);
|
|
68032
68545
|
import_node_path57 = __toESM(require("node:path"), 1);
|
|
68033
68546
|
EXPO_APP_CONFIG_NAMES = [
|
|
@@ -68133,6 +68646,7 @@ var import_node_fs60, import_node_path58;
|
|
|
68133
68646
|
var init_nitro_source = __esm({
|
|
68134
68647
|
"src/nitro-source.ts"() {
|
|
68135
68648
|
"use strict";
|
|
68649
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
68136
68650
|
import_node_fs60 = __toESM(require("node:fs"), 1);
|
|
68137
68651
|
import_node_path58 = __toESM(require("node:path"), 1);
|
|
68138
68652
|
init_swift_source_file();
|
|
@@ -68162,6 +68676,7 @@ var import_oxc_parser;
|
|
|
68162
68676
|
var init_visit_parsed_program = __esm({
|
|
68163
68677
|
"src/visit-parsed-program.ts"() {
|
|
68164
68678
|
"use strict";
|
|
68679
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
68165
68680
|
import_oxc_parser = require("oxc-parser");
|
|
68166
68681
|
init_is_record();
|
|
68167
68682
|
}
|
|
@@ -68703,6 +69218,7 @@ var import_node_fs61, import_node_path59, import_version_range2, import_oxc_pars
|
|
|
68703
69218
|
var init_app_stubs = __esm({
|
|
68704
69219
|
"cli/app-stubs.ts"() {
|
|
68705
69220
|
"use strict";
|
|
69221
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
68706
69222
|
import_node_fs61 = require("node:fs");
|
|
68707
69223
|
import_node_path59 = require("node:path");
|
|
68708
69224
|
import_version_range2 = require("@peach/compat/version-range");
|
|
@@ -68814,6 +69330,7 @@ var import_node_fs62, import_node_path60, import_jiti, WIRE_SLOTS;
|
|
|
68814
69330
|
var init_app_config = __esm({
|
|
68815
69331
|
"cli/app-config.ts"() {
|
|
68816
69332
|
"use strict";
|
|
69333
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
68817
69334
|
import_node_fs62 = require("node:fs");
|
|
68818
69335
|
import_node_path60 = __toESM(require("node:path"), 1);
|
|
68819
69336
|
import_jiti = require("jiti");
|
|
@@ -68912,6 +69429,7 @@ Available fills: ${fills.join(", ")}.`
|
|
|
68912
69429
|
var init_material_symbol_fonts = __esm({
|
|
68913
69430
|
"src/material-symbol-fonts.ts"() {
|
|
68914
69431
|
"use strict";
|
|
69432
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
68915
69433
|
}
|
|
68916
69434
|
});
|
|
68917
69435
|
|
|
@@ -68967,6 +69485,7 @@ var import_node_crypto32, import_node_fs63, import_node_module6, import_node_pat
|
|
|
68967
69485
|
var init_material_symbol_fonts2 = __esm({
|
|
68968
69486
|
"cli/material-symbol-fonts.ts"() {
|
|
68969
69487
|
"use strict";
|
|
69488
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
68970
69489
|
import_node_crypto32 = require("node:crypto");
|
|
68971
69490
|
import_node_fs63 = __toESM(require("node:fs"), 1);
|
|
68972
69491
|
import_node_module6 = require("node:module");
|
|
@@ -69202,6 +69721,7 @@ var import_node_fs64, import_node_module7, import_node_path62, require2;
|
|
|
69202
69721
|
var init_app_fonts = __esm({
|
|
69203
69722
|
"cli/app-fonts.ts"() {
|
|
69204
69723
|
"use strict";
|
|
69724
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
69205
69725
|
import_node_fs64 = __toESM(require("node:fs"), 1);
|
|
69206
69726
|
import_node_module7 = require("node:module");
|
|
69207
69727
|
import_node_path62 = __toESM(require("node:path"), 1);
|
|
@@ -69292,6 +69812,7 @@ var import_node_module8, require3;
|
|
|
69292
69812
|
var init_app_splash = __esm({
|
|
69293
69813
|
"cli/app-splash.ts"() {
|
|
69294
69814
|
"use strict";
|
|
69815
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
69295
69816
|
import_node_module8 = require("node:module");
|
|
69296
69817
|
init_backend_origin();
|
|
69297
69818
|
init_cli_runtime();
|
|
@@ -69305,6 +69826,7 @@ var SEMANTIC_WAIT_MAX_TIMEOUT_MS;
|
|
|
69305
69826
|
var init_bridge_contract_input = __esm({
|
|
69306
69827
|
"src/bridge-contract-input.ts"() {
|
|
69307
69828
|
"use strict";
|
|
69829
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
69308
69830
|
init_bridge_contract();
|
|
69309
69831
|
init_is_record();
|
|
69310
69832
|
SEMANTIC_WAIT_MAX_TIMEOUT_MS = 3e4;
|
|
@@ -69951,6 +70473,7 @@ var DESCRIBE_TREE_DEPTH, LAYOUT_GET_NATIVE_EVAL, READY_SNAPSHOT_SEND_TIMEOUT_MS,
|
|
|
69951
70473
|
var init_core = __esm({
|
|
69952
70474
|
"cli/commands/inspect/core.ts"() {
|
|
69953
70475
|
"use strict";
|
|
70476
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
69954
70477
|
init_bridge_contract();
|
|
69955
70478
|
init_bridge_contract_input();
|
|
69956
70479
|
init_bridge_contract();
|
|
@@ -70112,6 +70635,7 @@ var import_node_crypto33, SECRET_NAME, JWT, GOOGLE_API_KEY, BEARER, EMAIL, OPAQU
|
|
|
70112
70635
|
var init_output_redaction = __esm({
|
|
70113
70636
|
"cli/output-redaction.ts"() {
|
|
70114
70637
|
"use strict";
|
|
70638
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
70115
70639
|
import_node_crypto33 = require("node:crypto");
|
|
70116
70640
|
init_config();
|
|
70117
70641
|
SECRET_NAME = /^(?:[\w-]*(?:api[-_]?key|token|secret|password|passwd|authorization|cookie|signature|credential)s?|auth|sig|email|uid|[\w-]*(?:user|account|local|device|installation|client|app|project|sender|measurement|tenant)[-_]?id)$/i;
|
|
@@ -70227,6 +70751,7 @@ async function waitForSimReady(wsPort, commandTimeoutMs, simId, opts = {}) {
|
|
|
70227
70751
|
var init_shared = __esm({
|
|
70228
70752
|
"cli/commands/inspect/shared.ts"() {
|
|
70229
70753
|
"use strict";
|
|
70754
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
70230
70755
|
init_sleep();
|
|
70231
70756
|
init_output_redaction();
|
|
70232
70757
|
init_ws_bridge();
|
|
@@ -70393,6 +70918,7 @@ async function printBridgeFailureDiagnostics(bridge, opts = {}) {
|
|
|
70393
70918
|
var init_bridge_diagnostics = __esm({
|
|
70394
70919
|
"cli/bridge-diagnostics.ts"() {
|
|
70395
70920
|
"use strict";
|
|
70921
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
70396
70922
|
init_core();
|
|
70397
70923
|
init_shared();
|
|
70398
70924
|
init_output_redaction();
|
|
@@ -70716,6 +71242,7 @@ var import_child_process5, import_fs8, import_node_crypto34, import_os3, import_
|
|
|
70716
71242
|
var init_desktop_companion = __esm({
|
|
70717
71243
|
"cli/desktop-companion.ts"() {
|
|
70718
71244
|
"use strict";
|
|
71245
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
70719
71246
|
import_child_process5 = require("child_process");
|
|
70720
71247
|
import_fs8 = require("fs");
|
|
70721
71248
|
import_node_crypto34 = require("node:crypto");
|
|
@@ -70738,6 +71265,7 @@ function validateDeviceOption(device) {
|
|
|
70738
71265
|
var init_device_option = __esm({
|
|
70739
71266
|
"cli/device-option.ts"() {
|
|
70740
71267
|
"use strict";
|
|
71268
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
70741
71269
|
init_device_catalog();
|
|
70742
71270
|
}
|
|
70743
71271
|
});
|
|
@@ -70808,6 +71336,7 @@ var desktopDriver;
|
|
|
70808
71336
|
var init_desktop = __esm({
|
|
70809
71337
|
"cli/drivers/desktop.ts"() {
|
|
70810
71338
|
"use strict";
|
|
71339
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
70811
71340
|
init_desktop_host_delivery();
|
|
70812
71341
|
init_desktop_companion();
|
|
70813
71342
|
desktopDriver = createDesktopDriver("desktop");
|
|
@@ -70819,6 +71348,7 @@ var electronDriver;
|
|
|
70819
71348
|
var init_electron = __esm({
|
|
70820
71349
|
"cli/drivers/electron.ts"() {
|
|
70821
71350
|
"use strict";
|
|
71351
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
70822
71352
|
init_desktop();
|
|
70823
71353
|
electronDriver = createDesktopDriver("electron");
|
|
70824
71354
|
}
|
|
@@ -70832,6 +71362,7 @@ var PLAYWRIGHT_HOST_LOG_PREFIX;
|
|
|
70832
71362
|
var init_playwright_host_log = __esm({
|
|
70833
71363
|
"src/playwright-host-log.ts"() {
|
|
70834
71364
|
"use strict";
|
|
71365
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
70835
71366
|
PLAYWRIGHT_HOST_LOG_PREFIX = "peach-playwright-host-";
|
|
70836
71367
|
}
|
|
70837
71368
|
});
|
|
@@ -70841,6 +71372,7 @@ var PINNED_PLAYWRIGHT_CORE;
|
|
|
70841
71372
|
var init_playwright_core_pin = __esm({
|
|
70842
71373
|
"cli/drivers/playwright-core-pin.ts"() {
|
|
70843
71374
|
"use strict";
|
|
71375
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
70844
71376
|
PINNED_PLAYWRIGHT_CORE = {
|
|
70845
71377
|
version: "1.61.0",
|
|
70846
71378
|
integrity: "sha512-caX7TrY3Ml6egyDX0WUcTHDxodl/b51y5wJOdCEA36QviK/s2g081hvmGs8eaE3DWb6NYZQ6BjO/QkNRPenoPA=="
|
|
@@ -70852,6 +71384,7 @@ var init_playwright_core_pin = __esm({
|
|
|
70852
71384
|
var init_env = __esm({
|
|
70853
71385
|
"cli/commands/inspect/env.ts"() {
|
|
70854
71386
|
"use strict";
|
|
71387
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
70855
71388
|
}
|
|
70856
71389
|
});
|
|
70857
71390
|
|
|
@@ -70860,6 +71393,7 @@ var DEFAULT_CLI_RELEASE_ORIGIN, CLI_UPDATE_CHECK_INTERVAL_MS, CLI_UPDATE_NOTIFIC
|
|
|
70860
71393
|
var init_cli_update = __esm({
|
|
70861
71394
|
"cli/cli-update.ts"() {
|
|
70862
71395
|
"use strict";
|
|
71396
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
70863
71397
|
init_src();
|
|
70864
71398
|
init_automatic_update_policy();
|
|
70865
71399
|
init_cli_version();
|
|
@@ -72051,6 +72585,7 @@ var import_node_child_process25, import_node_fs65, import_node_path63, LINUX_BRO
|
|
|
72051
72585
|
var init_linux_browser_libs = __esm({
|
|
72052
72586
|
"cli/drivers/linux-browser-libs.ts"() {
|
|
72053
72587
|
"use strict";
|
|
72588
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
72054
72589
|
import_node_child_process25 = require("node:child_process");
|
|
72055
72590
|
import_node_fs65 = require("node:fs");
|
|
72056
72591
|
import_node_path63 = require("node:path");
|
|
@@ -72243,14 +72778,15 @@ var import_node_child_process26, import_node_fs66, import_node_module9, import_n
|
|
|
72243
72778
|
var init_playwright_provisioning = __esm({
|
|
72244
72779
|
"cli/drivers/playwright-provisioning.ts"() {
|
|
72245
72780
|
"use strict";
|
|
72781
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
72246
72782
|
import_node_child_process26 = require("node:child_process");
|
|
72247
72783
|
import_node_fs66 = require("node:fs");
|
|
72248
72784
|
import_node_module9 = require("node:module");
|
|
72249
72785
|
import_node_path64 = require("node:path");
|
|
72250
72786
|
init_src();
|
|
72251
|
-
init_reap_browser();
|
|
72252
72787
|
init_home_paths();
|
|
72253
72788
|
init_is_record();
|
|
72789
|
+
init_reap_browser();
|
|
72254
72790
|
init_internal_child();
|
|
72255
72791
|
init_self_invocation();
|
|
72256
72792
|
init_linux_browser_libs();
|
|
@@ -72318,6 +72854,15 @@ async function launch(opts) {
|
|
|
72318
72854
|
message: "playwright driver requires a valid owning session process"
|
|
72319
72855
|
};
|
|
72320
72856
|
}
|
|
72857
|
+
if (opts.profileId) {
|
|
72858
|
+
const livePid = liveBrowserPidForPlaywrightProfile(opts.profileId);
|
|
72859
|
+
if (livePid !== null) {
|
|
72860
|
+
return {
|
|
72861
|
+
launched: false,
|
|
72862
|
+
message: `profile "${opts.profileId}" is already open in browser pid ${livePid}; a profile holds one browser. drive that sim (\`peach use <id>\`, \`--sim <id>\`) or \`peach close\` it first`
|
|
72863
|
+
};
|
|
72864
|
+
}
|
|
72865
|
+
}
|
|
72321
72866
|
let resolved;
|
|
72322
72867
|
try {
|
|
72323
72868
|
resolved = await provisionPlaywright();
|
|
@@ -72458,6 +73003,7 @@ var import_child_process6, import_fs9, import_net3, import_os4, import_path8, pl
|
|
|
72458
73003
|
var init_playwright = __esm({
|
|
72459
73004
|
"cli/drivers/playwright.ts"() {
|
|
72460
73005
|
"use strict";
|
|
73006
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
72461
73007
|
import_child_process6 = require("child_process");
|
|
72462
73008
|
import_fs9 = require("fs");
|
|
72463
73009
|
import_net3 = require("net");
|
|
@@ -72492,6 +73038,7 @@ var ALL_DRIVERS;
|
|
|
72492
73038
|
var init_registry2 = __esm({
|
|
72493
73039
|
"cli/drivers/registry.ts"() {
|
|
72494
73040
|
"use strict";
|
|
73041
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
72495
73042
|
init_desktop();
|
|
72496
73043
|
init_electron();
|
|
72497
73044
|
init_playwright();
|
|
@@ -72507,6 +73054,7 @@ var init_registry2 = __esm({
|
|
|
72507
73054
|
var init_open_url2 = __esm({
|
|
72508
73055
|
"cli/open-url.ts"() {
|
|
72509
73056
|
"use strict";
|
|
73057
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
72510
73058
|
init_open_url();
|
|
72511
73059
|
}
|
|
72512
73060
|
});
|
|
@@ -72516,6 +73064,7 @@ var NODE_COMMAND_NAMES, BROWSER_FAMILIES, registrations2, RNX_COMMAND_NAMES, RNX
|
|
|
72516
73064
|
var init_command_registry = __esm({
|
|
72517
73065
|
"cli/command-registry.ts"() {
|
|
72518
73066
|
"use strict";
|
|
73067
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
72519
73068
|
NODE_COMMAND_NAMES = [
|
|
72520
73069
|
"test",
|
|
72521
73070
|
"detox",
|
|
@@ -72619,6 +73168,7 @@ var GLOBAL_FLAGS, GLOBAL_FLAG_TAKES_VALUE, COMMANDS;
|
|
|
72619
73168
|
var init_parse_args = __esm({
|
|
72620
73169
|
"cli/parse-args.ts"() {
|
|
72621
73170
|
"use strict";
|
|
73171
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
72622
73172
|
init_command_registry();
|
|
72623
73173
|
GLOBAL_FLAGS = {
|
|
72624
73174
|
"--help": { type: "boolean", short: "-h" },
|
|
@@ -72664,6 +73214,7 @@ var PRIVACY_CONTENTS, PRIVACY_NOTICE;
|
|
|
72664
73214
|
var init_privacy = __esm({
|
|
72665
73215
|
"cli/privacy.ts"() {
|
|
72666
73216
|
"use strict";
|
|
73217
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
72667
73218
|
init_home_paths();
|
|
72668
73219
|
init_env();
|
|
72669
73220
|
PRIVACY_CONTENTS = [
|
|
@@ -72687,6 +73238,7 @@ function eventUuid(timestamp2 = Date.now()) {
|
|
|
72687
73238
|
var init_event_identity = __esm({
|
|
72688
73239
|
"../peach-globals/src/event-identity.ts"() {
|
|
72689
73240
|
"use strict";
|
|
73241
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
72690
73242
|
}
|
|
72691
73243
|
});
|
|
72692
73244
|
|
|
@@ -72694,6 +73246,7 @@ var init_event_identity = __esm({
|
|
|
72694
73246
|
var init_crash_fingerprint = __esm({
|
|
72695
73247
|
"src/crash-fingerprint.ts"() {
|
|
72696
73248
|
"use strict";
|
|
73249
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
72697
73250
|
}
|
|
72698
73251
|
});
|
|
72699
73252
|
|
|
@@ -72736,6 +73289,7 @@ var import_node_os12, observedRuntimeVersion, queue, CRASH_REPORT_EVERY_MS;
|
|
|
72736
73289
|
var init_telemetry = __esm({
|
|
72737
73290
|
"cli/telemetry.ts"() {
|
|
72738
73291
|
"use strict";
|
|
73292
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
72739
73293
|
import_node_os12 = require("node:os");
|
|
72740
73294
|
init_event_identity();
|
|
72741
73295
|
init_cli_version();
|
|
@@ -72795,6 +73349,7 @@ async function collectRuntimeDiagnostics(bridge) {
|
|
|
72795
73349
|
var init_runtime_diagnostics = __esm({
|
|
72796
73350
|
"cli/runtime-diagnostics.ts"() {
|
|
72797
73351
|
"use strict";
|
|
73352
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
72798
73353
|
init_core();
|
|
72799
73354
|
init_privacy();
|
|
72800
73355
|
init_telemetry();
|
|
@@ -72850,6 +73405,7 @@ var RESET, BOLD, DIM, BRAND_BLUE, GREEN, RED;
|
|
|
72850
73405
|
var init_ui = __esm({
|
|
72851
73406
|
"cli/ui.ts"() {
|
|
72852
73407
|
"use strict";
|
|
73408
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
72853
73409
|
RESET = "\x1B[0m";
|
|
72854
73410
|
BOLD = "\x1B[1m";
|
|
72855
73411
|
DIM = "\x1B[2m";
|
|
@@ -72887,6 +73443,7 @@ var import_readline, rl;
|
|
|
72887
73443
|
var init_prompt = __esm({
|
|
72888
73444
|
"cli/prompt.ts"() {
|
|
72889
73445
|
"use strict";
|
|
73446
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
72890
73447
|
import_readline = require("readline");
|
|
72891
73448
|
init_ui();
|
|
72892
73449
|
rl = () => (0, import_readline.createInterface)({
|
|
@@ -73162,6 +73719,7 @@ var import_child_process7, import_fs10, import_os5, import_path9, DOWNLOAD_BASE;
|
|
|
73162
73719
|
var init_install_desktop = __esm({
|
|
73163
73720
|
"cli/commands/install-desktop.ts"() {
|
|
73164
73721
|
"use strict";
|
|
73722
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
73165
73723
|
import_child_process7 = require("child_process");
|
|
73166
73724
|
import_fs10 = require("fs");
|
|
73167
73725
|
import_os5 = require("os");
|
|
@@ -73365,6 +73923,7 @@ var import_child_process8, fs49, os12, path58, import_url3, import_meta3, skills
|
|
|
73365
73923
|
var init_skills = __esm({
|
|
73366
73924
|
"cli/commands/skills.ts"() {
|
|
73367
73925
|
"use strict";
|
|
73926
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
73368
73927
|
import_child_process8 = require("child_process");
|
|
73369
73928
|
fs49 = __toESM(require("fs"), 1);
|
|
73370
73929
|
os12 = __toESM(require("os"), 1);
|
|
@@ -73427,6 +73986,7 @@ function formatRuntimeReleaseNotes(version, entry) {
|
|
|
73427
73986
|
var init_runtime_notes = __esm({
|
|
73428
73987
|
"cli/runtime-notes.ts"() {
|
|
73429
73988
|
"use strict";
|
|
73989
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
73430
73990
|
init_runtime_delivery();
|
|
73431
73991
|
}
|
|
73432
73992
|
});
|
|
@@ -73700,6 +74260,7 @@ var import_fs11, import_ws4;
|
|
|
73700
74260
|
var init_runtime = __esm({
|
|
73701
74261
|
"cli/commands/runtime.ts"() {
|
|
73702
74262
|
"use strict";
|
|
74263
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
73703
74264
|
import_fs11 = __toESM(require("fs"), 1);
|
|
73704
74265
|
init_src();
|
|
73705
74266
|
import_ws4 = require("ws");
|
|
@@ -75877,6 +76438,7 @@ var import_node_child_process27, import_node_fs67, import_node_http, import_node
|
|
|
75877
76438
|
var init_control = __esm({
|
|
75878
76439
|
"cli/commands/control.ts"() {
|
|
75879
76440
|
"use strict";
|
|
76441
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
75880
76442
|
import_node_child_process27 = require("node:child_process");
|
|
75881
76443
|
import_node_fs67 = __toESM(require("node:fs"), 1);
|
|
75882
76444
|
import_node_http = __toESM(require("node:http"), 1);
|
|
@@ -75969,6 +76531,7 @@ var init_control = __esm({
|
|
|
75969
76531
|
var init_recordingBridgeContract = __esm({
|
|
75970
76532
|
"../peach-globals/src/recordingBridgeContract.ts"() {
|
|
75971
76533
|
"use strict";
|
|
76534
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
75972
76535
|
}
|
|
75973
76536
|
});
|
|
75974
76537
|
|
|
@@ -75976,6 +76539,7 @@ var init_recordingBridgeContract = __esm({
|
|
|
75976
76539
|
var init_replayBridgeContract = __esm({
|
|
75977
76540
|
"../peach-globals/src/replayBridgeContract.ts"() {
|
|
75978
76541
|
"use strict";
|
|
76542
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
75979
76543
|
}
|
|
75980
76544
|
});
|
|
75981
76545
|
|
|
@@ -75984,6 +76548,7 @@ var LEGACY_ALIAS_MARKER;
|
|
|
75984
76548
|
var init_globalsContract = __esm({
|
|
75985
76549
|
"../peach-globals/src/globalsContract.ts"() {
|
|
75986
76550
|
"use strict";
|
|
76551
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
75987
76552
|
init_replayBridgeContract();
|
|
75988
76553
|
LEGACY_ALIAS_MARKER = Symbol.for("sootsim.legacy-aliases-installed");
|
|
75989
76554
|
}
|
|
@@ -75994,6 +76559,7 @@ var SOOTSIM_NATIVE_PUBLIC_INSTANCE;
|
|
|
75994
76559
|
var init_nativeViewContract = __esm({
|
|
75995
76560
|
"../peach-globals/src/nativeViewContract.ts"() {
|
|
75996
76561
|
"use strict";
|
|
76562
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
75997
76563
|
SOOTSIM_NATIVE_PUBLIC_INSTANCE = Symbol.for("sootsim.nativePublicInstance");
|
|
75998
76564
|
}
|
|
75999
76565
|
});
|
|
@@ -76002,6 +76568,7 @@ var init_nativeViewContract = __esm({
|
|
|
76002
76568
|
var init_eventBridgeContract = __esm({
|
|
76003
76569
|
"../peach-globals/src/eventBridgeContract.ts"() {
|
|
76004
76570
|
"use strict";
|
|
76571
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
76005
76572
|
}
|
|
76006
76573
|
});
|
|
76007
76574
|
|
|
@@ -76018,6 +76585,7 @@ function isTextInputEditCommand(value) {
|
|
|
76018
76585
|
var init_keyboardBridgeContract = __esm({
|
|
76019
76586
|
"../peach-globals/src/keyboardBridgeContract.ts"() {
|
|
76020
76587
|
"use strict";
|
|
76588
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
76021
76589
|
}
|
|
76022
76590
|
});
|
|
76023
76591
|
|
|
@@ -76025,6 +76593,7 @@ var init_keyboardBridgeContract = __esm({
|
|
|
76025
76593
|
var init_webViewBridgeContract = __esm({
|
|
76026
76594
|
"../peach-globals/src/webViewBridgeContract.ts"() {
|
|
76027
76595
|
"use strict";
|
|
76596
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
76028
76597
|
}
|
|
76029
76598
|
});
|
|
76030
76599
|
|
|
@@ -76032,6 +76601,7 @@ var init_webViewBridgeContract = __esm({
|
|
|
76032
76601
|
var init_shellBridgeContract = __esm({
|
|
76033
76602
|
"../peach-globals/src/shellBridgeContract.ts"() {
|
|
76034
76603
|
"use strict";
|
|
76604
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
76035
76605
|
}
|
|
76036
76606
|
});
|
|
76037
76607
|
|
|
@@ -76039,6 +76609,7 @@ var init_shellBridgeContract = __esm({
|
|
|
76039
76609
|
var init_captureBridgeContract = __esm({
|
|
76040
76610
|
"../peach-globals/src/captureBridgeContract.ts"() {
|
|
76041
76611
|
"use strict";
|
|
76612
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
76042
76613
|
}
|
|
76043
76614
|
});
|
|
76044
76615
|
|
|
@@ -76046,6 +76617,7 @@ var init_captureBridgeContract = __esm({
|
|
|
76046
76617
|
var init_timelineBridgeContract = __esm({
|
|
76047
76618
|
"../peach-globals/src/timelineBridgeContract.ts"() {
|
|
76048
76619
|
"use strict";
|
|
76620
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
76049
76621
|
}
|
|
76050
76622
|
});
|
|
76051
76623
|
|
|
@@ -76053,6 +76625,7 @@ var init_timelineBridgeContract = __esm({
|
|
|
76053
76625
|
var init_src2 = __esm({
|
|
76054
76626
|
"../peach-globals/src/index.ts"() {
|
|
76055
76627
|
"use strict";
|
|
76628
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
76056
76629
|
init_recordingBridgeContract();
|
|
76057
76630
|
init_globalsContract();
|
|
76058
76631
|
init_nativeViewContract();
|
|
@@ -76066,145 +76639,21 @@ var init_src2 = __esm({
|
|
|
76066
76639
|
}
|
|
76067
76640
|
});
|
|
76068
76641
|
|
|
76069
|
-
// detox/
|
|
76070
|
-
var
|
|
76071
|
-
"detox/
|
|
76642
|
+
// detox/frame-identity.cjs
|
|
76643
|
+
var require_frame_identity = __commonJS({
|
|
76644
|
+
"detox/frame-identity.cjs"(exports2, module2) {
|
|
76072
76645
|
"use strict";
|
|
76073
|
-
|
|
76074
|
-
var PROOF_CONTENT_DEFINITION = Object.freeze({
|
|
76075
|
-
channelThreshold: 24,
|
|
76076
|
-
contentBandInsetFraction: 0.08,
|
|
76077
|
-
minimumContentPercent: 5e-3
|
|
76078
|
-
});
|
|
76646
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
76079
76647
|
var REQUIRED_IDENTICAL_PROOF_FRAMES = 3;
|
|
76080
76648
|
var REQUIRED_IDENTICAL_FLOW_FRAMES2 = 1;
|
|
76081
76649
|
function framesIdentical2(a, b) {
|
|
76082
76650
|
if (!a || !b || a.length !== b.length) return false;
|
|
76083
76651
|
return a.equals(b);
|
|
76084
76652
|
}
|
|
76085
|
-
function frameBounds(image, frame, rootFrame, padding = 0) {
|
|
76086
|
-
const scale = rootFrame?.width > 0 ? image.width / rootFrame.width : 1;
|
|
76087
|
-
return {
|
|
76088
|
-
bottom: frame ? Math.min(image.height, Math.ceil((frame.y + frame.height + padding) * scale)) : image.height,
|
|
76089
|
-
left: frame ? Math.max(0, Math.floor((frame.x - padding) * scale)) : 0,
|
|
76090
|
-
right: frame ? Math.min(image.width, Math.ceil((frame.x + frame.width + padding) * scale)) : image.width,
|
|
76091
|
-
scale,
|
|
76092
|
-
top: frame ? Math.max(0, Math.floor((frame.y - padding) * scale)) : 0
|
|
76093
|
-
};
|
|
76094
|
-
}
|
|
76095
|
-
function proofContentRegion(image, metadata) {
|
|
76096
|
-
if (metadata?.contentRegion === void 0) return null;
|
|
76097
|
-
const frame = metadata.contentRegion;
|
|
76098
|
-
const root = metadata.elementRegionRoot;
|
|
76099
|
-
for (const [name3, rect] of [
|
|
76100
|
-
["contentRegion", frame],
|
|
76101
|
-
["elementRegionRoot", root]
|
|
76102
|
-
]) {
|
|
76103
|
-
if (!rect || !["x", "y", "width", "height"].every((key2) => Number.isFinite(rect[key2])) || rect.width <= 0 || rect.height <= 0)
|
|
76104
|
-
throw new Error(`proof ${name3} needs a positive finite rectangle`);
|
|
76105
|
-
}
|
|
76106
|
-
const scale = image.width / root.width;
|
|
76107
|
-
const bounds = {
|
|
76108
|
-
left: Math.max(0, Math.ceil(frame.x * scale)),
|
|
76109
|
-
top: Math.max(0, Math.ceil(frame.y * scale)),
|
|
76110
|
-
right: Math.min(image.width, Math.floor((frame.x + frame.width) * scale)),
|
|
76111
|
-
bottom: Math.min(image.height, Math.floor((frame.y + frame.height) * scale))
|
|
76112
|
-
};
|
|
76113
|
-
if (bounds.right <= bounds.left || bounds.bottom <= bounds.top) {
|
|
76114
|
-
throw new Error("proof contentRegion lies outside the capture");
|
|
76115
|
-
}
|
|
76116
|
-
return {
|
|
76117
|
-
x: bounds.left,
|
|
76118
|
-
y: bounds.top,
|
|
76119
|
-
width: bounds.right - bounds.left,
|
|
76120
|
-
height: bounds.bottom - bounds.top
|
|
76121
|
-
};
|
|
76122
|
-
}
|
|
76123
|
-
function measureProofFrameContent(input) {
|
|
76124
|
-
if (!input || typeof input !== "object" || Array.isArray(input)) {
|
|
76125
|
-
throw new Error("proof content measurement requires an input object");
|
|
76126
|
-
}
|
|
76127
|
-
const { data, width, height } = input;
|
|
76128
|
-
if (!data || typeof data.length !== "number" || !Number.isInteger(width) || !Number.isInteger(height) || width <= 0 || height <= 0 || data.length !== width * height * 4) {
|
|
76129
|
-
throw new Error("proof content measurement needs RGBA pixels and dimensions");
|
|
76130
|
-
}
|
|
76131
|
-
const bandStart = Math.floor(height * PROOF_CONTENT_DEFINITION.contentBandInsetFraction);
|
|
76132
|
-
const bandEnd = Math.ceil(
|
|
76133
|
-
height * (1 - PROOF_CONTENT_DEFINITION.contentBandInsetFraction)
|
|
76134
|
-
);
|
|
76135
|
-
const region = input.contentRegion ?? {
|
|
76136
|
-
x: 0,
|
|
76137
|
-
y: bandStart,
|
|
76138
|
-
width,
|
|
76139
|
-
height: bandEnd - bandStart
|
|
76140
|
-
};
|
|
76141
|
-
if (!["x", "y", "width", "height"].every((key2) => Number.isInteger(region[key2])) || region.width <= 0 || region.height <= 0 || region.x < 0 || region.y < 0 || region.x + region.width > width || region.y + region.height > height)
|
|
76142
|
-
throw new Error("proof contentRegion needs integer bounds inside the capture");
|
|
76143
|
-
const yStart = region.y;
|
|
76144
|
-
const yEnd = region.y + region.height;
|
|
76145
|
-
const xStart = region.x;
|
|
76146
|
-
const xEnd = region.x + region.width;
|
|
76147
|
-
const bucketCounts = new Uint32Array(32 * 32 * 32);
|
|
76148
|
-
const totalPixels = width * (bandEnd - bandStart);
|
|
76149
|
-
for (let y = yStart; y < yEnd; y++) {
|
|
76150
|
-
for (let x = xStart; x < xEnd; x++) {
|
|
76151
|
-
const offset = (y * width + x) * 4;
|
|
76152
|
-
const bucket = data[offset] >> 3 << 10 | data[offset + 1] >> 3 << 5 | data[offset + 2] >> 3;
|
|
76153
|
-
bucketCounts[bucket]++;
|
|
76154
|
-
}
|
|
76155
|
-
}
|
|
76156
|
-
let dominantBucket = 0;
|
|
76157
|
-
for (let index = 1; index < bucketCounts.length; index++) {
|
|
76158
|
-
if (bucketCounts[index] > bucketCounts[dominantBucket]) dominantBucket = index;
|
|
76159
|
-
}
|
|
76160
|
-
const dominant = {
|
|
76161
|
-
red: ((dominantBucket >> 10 & 31) << 3) + 4,
|
|
76162
|
-
green: ((dominantBucket >> 5 & 31) << 3) + 4,
|
|
76163
|
-
blue: ((dominantBucket & 31) << 3) + 4
|
|
76164
|
-
};
|
|
76165
|
-
let contentPixels = 0;
|
|
76166
|
-
for (let y = yStart; y < yEnd; y++) {
|
|
76167
|
-
for (let x = xStart; x < xEnd; x++) {
|
|
76168
|
-
const offset = (y * width + x) * 4;
|
|
76169
|
-
if (max(
|
|
76170
|
-
abs(data[offset] - dominant.red),
|
|
76171
|
-
abs(data[offset + 1] - dominant.green),
|
|
76172
|
-
abs(data[offset + 2] - dominant.blue)
|
|
76173
|
-
) >= PROOF_CONTENT_DEFINITION.channelThreshold) {
|
|
76174
|
-
contentPixels++;
|
|
76175
|
-
}
|
|
76176
|
-
}
|
|
76177
|
-
}
|
|
76178
|
-
const contentPercent = contentPixels / totalPixels * 100;
|
|
76179
|
-
return {
|
|
76180
|
-
contentRegion: input.contentRegion ?? null,
|
|
76181
|
-
contentPercent,
|
|
76182
|
-
contentPixels,
|
|
76183
|
-
dominant,
|
|
76184
|
-
passedMinimum: contentPercent >= PROOF_CONTENT_DEFINITION.minimumContentPercent,
|
|
76185
|
-
totalPixels
|
|
76186
|
-
};
|
|
76187
|
-
}
|
|
76188
|
-
function settleDecision(previousPixels, currentFrame) {
|
|
76189
|
-
if (!currentFrame) return { decision: "continue", content: null };
|
|
76190
|
-
const content = measureProofFrameContent(currentFrame);
|
|
76191
|
-
if (!content.passedMinimum) {
|
|
76192
|
-
return { decision: "insufficient-content", content };
|
|
76193
|
-
}
|
|
76194
|
-
if (previousPixels && framesIdentical2(previousPixels, currentFrame.data)) {
|
|
76195
|
-
return { decision: "identical", content };
|
|
76196
|
-
}
|
|
76197
|
-
return { decision: "changed", content };
|
|
76198
|
-
}
|
|
76199
76653
|
module2.exports = {
|
|
76200
|
-
PROOF_CONTENT_DEFINITION,
|
|
76201
76654
|
REQUIRED_IDENTICAL_PROOF_FRAMES,
|
|
76202
76655
|
REQUIRED_IDENTICAL_FLOW_FRAMES: REQUIRED_IDENTICAL_FLOW_FRAMES2,
|
|
76203
|
-
framesIdentical: framesIdentical2
|
|
76204
|
-
frameBounds,
|
|
76205
|
-
proofContentRegion,
|
|
76206
|
-
measureProofFrameContent,
|
|
76207
|
-
settleDecision
|
|
76656
|
+
framesIdentical: framesIdentical2
|
|
76208
76657
|
};
|
|
76209
76658
|
}
|
|
76210
76659
|
});
|
|
@@ -76547,6 +76996,7 @@ var METALLIC_RING_SHADOW, FRAME_OUTLINE_BLEED;
|
|
|
76547
76996
|
var init_frame_compose = __esm({
|
|
76548
76997
|
"src/screenshots/frame-compose.ts"() {
|
|
76549
76998
|
"use strict";
|
|
76999
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
76550
77000
|
init_playwright_provisioning();
|
|
76551
77001
|
init_cli_runtime();
|
|
76552
77002
|
init_device_catalog();
|
|
@@ -76579,6 +77029,7 @@ function sameNativeAccessibilityShape(a, b, bounds) {
|
|
|
76579
77029
|
var init_maestro_accessibility = __esm({
|
|
76580
77030
|
"cli/maestro-accessibility.ts"() {
|
|
76581
77031
|
"use strict";
|
|
77032
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
76582
77033
|
}
|
|
76583
77034
|
});
|
|
76584
77035
|
|
|
@@ -76879,6 +77330,9 @@ async function waitForSootsimIdle({
|
|
|
76879
77330
|
hierarchy = null
|
|
76880
77331
|
}
|
|
76881
77332
|
const nodes = []
|
|
77333
|
+
// identity beside each geometry entry, from the rows already read,
|
|
77334
|
+
// so a changed layout can name the nodes that moved.
|
|
77335
|
+
const nodeRows = []
|
|
76882
77336
|
const LOADING_TEXT_REGEX = /^(creating webview|loading html|fetching bundle|waiting for first render|starting preview|loading simulator|fetching app code|waiting for native preview|starting design|loading canvas|fetching screens|painting the canvas|waiting for webview|waiting for preview|waiting for canvas|preview stalled)/i
|
|
76883
77337
|
const noteLoading = (state, text) => {
|
|
76884
77338
|
if (state?.busy === true) {
|
|
@@ -76899,7 +77353,9 @@ async function waitForSootsimIdle({
|
|
|
76899
77353
|
// subtree count by their own layout; the rest of the screen
|
|
76900
77354
|
// still catches the fling.
|
|
76901
77355
|
const abs = n.backgroundPlayback ? layout : n.absolute || n.absolutePosition || layout
|
|
76902
|
-
|
|
77356
|
+
const geometry = Math.round(abs.x) + ',' + Math.round(abs.y) + ',' + Math.round(layout.width)
|
|
77357
|
+
nodes.push(geometry)
|
|
77358
|
+
nodeRows.push([String(n.nodeId ?? nodes.length - 1), (n.type || '?') + (n.testId ? '#' + n.testId : ''), geometry])
|
|
76903
77359
|
}
|
|
76904
77360
|
noteLoading(
|
|
76905
77361
|
n.accessibilityState,
|
|
@@ -76911,7 +77367,9 @@ async function waitForSootsimIdle({
|
|
|
76911
77367
|
if (root) {
|
|
76912
77368
|
const walk = (n) => {
|
|
76913
77369
|
if (n.layout && n.layout.width > 0) {
|
|
76914
|
-
|
|
77370
|
+
const geometry = Math.round(n.layout.x) + ',' + Math.round(n.layout.y) + ',' + Math.round(n.layout.width)
|
|
77371
|
+
nodes.push(geometry)
|
|
77372
|
+
nodeRows.push([String(n.id ?? nodes.length - 1), (n.type || '?') + (n.props?.testID ? '#' + n.props.testID : ''), geometry])
|
|
76915
77373
|
}
|
|
76916
77374
|
noteLoading(
|
|
76917
77375
|
n.props?.accessibilityState,
|
|
@@ -76960,7 +77418,7 @@ async function waitForSootsimIdle({
|
|
|
76960
77418
|
pixelFrameToken = token
|
|
76961
77419
|
}
|
|
76962
77420
|
}
|
|
76963
|
-
return { layout: nodes.join(';'), nativeHierarchy, screenPixels, animating, shellAnimating, shellBlockers, layoutDirty, pendingFetches, workerBusy, webViewStarting, webViewBlocker, renderStatsAvailable, requestTotal, requestInFlight, appCommits, nodeCount }
|
|
77421
|
+
return { layout: nodes.join(';'), nodeRows, nativeHierarchy, screenPixels, animating, shellAnimating, shellBlockers, layoutDirty, pendingFetches, workerBusy, webViewStarting, webViewBlocker, renderStatsAvailable, requestTotal, requestInFlight, appCommits, nodeCount }
|
|
76964
77422
|
}
|
|
76965
77423
|
|
|
76966
77424
|
// how long generic background network is allowed to keep us waiting AFTER
|
|
@@ -76976,6 +77434,27 @@ async function waitForSootsimIdle({
|
|
|
76976
77434
|
const networkQuietGraceMs = 1200
|
|
76977
77435
|
let lastNativeHierarchy = null
|
|
76978
77436
|
let lastLayout = ''
|
|
77437
|
+
let lastNodeRows = []
|
|
77438
|
+
// what moved between the last two differing polls, bounded; names the
|
|
77439
|
+
// nodes behind "layout changed" without keeping any poll history.
|
|
77440
|
+
let lastLayoutChange = null
|
|
77441
|
+
const describeLayoutChange = (before, after) => {
|
|
77442
|
+
const previous = new Map(before.map(([key, label, geometry]) => [key, [label, geometry]]))
|
|
77443
|
+
const moved = []
|
|
77444
|
+
const added = []
|
|
77445
|
+
const short = (label, key) => String(label).slice(0, 48) + ' [' + String(key).slice(0, 24) + ']'
|
|
77446
|
+
for (const [key, label, geometry] of after) {
|
|
77447
|
+
const was = previous.get(key)
|
|
77448
|
+
previous.delete(key)
|
|
77449
|
+
if (!was) added.push(short(label, key) + ' ' + geometry)
|
|
77450
|
+
else if (was[1] !== geometry) moved.push(short(label, key) + ' ' + was[1] + '->' + geometry)
|
|
77451
|
+
}
|
|
77452
|
+
const removed = [...previous].map(([key, [label, geometry]]) => short(label, key) + ' ' + geometry)
|
|
77453
|
+
return {
|
|
77454
|
+
moved: moved.length, added: added.length, removed: removed.length,
|
|
77455
|
+
movedSample: moved.slice(0, 3), addedSample: added.slice(0, 3), removedSample: removed.slice(0, 3),
|
|
77456
|
+
}
|
|
77457
|
+
}
|
|
76979
77458
|
let lastScreenPixels = null
|
|
76980
77459
|
let screenChangedPolls = 0
|
|
76981
77460
|
let lastRequestTotal = -1
|
|
@@ -77054,7 +77533,10 @@ async function waitForSootsimIdle({
|
|
|
77054
77533
|
if (snapshot.layoutDirty) dirtyPolls++
|
|
77055
77534
|
if (snapshot.animating || snapshot.shellAnimating) animatingPolls++
|
|
77056
77535
|
if (snapshot.webViewStarting) webViewStartingPolls++
|
|
77057
|
-
if (polls > 1 && snapshot.layout !== lastLayout)
|
|
77536
|
+
if (polls > 1 && snapshot.layout !== lastLayout) {
|
|
77537
|
+
layoutChangedPolls++
|
|
77538
|
+
lastLayoutChange = describeLayoutChange(lastNodeRows, snapshot.nodeRows)
|
|
77539
|
+
}
|
|
77058
77540
|
const screenChanged = paintStill && !screenUnchanged(snapshot.screenPixels, lastScreenPixels)
|
|
77059
77541
|
if (polls > 1 && screenChanged) screenChangedPolls++
|
|
77060
77542
|
const strictOk =
|
|
@@ -77121,6 +77603,7 @@ async function waitForSootsimIdle({
|
|
|
77121
77603
|
}
|
|
77122
77604
|
lastNativeHierarchy = snapshot.nativeHierarchy
|
|
77123
77605
|
lastLayout = snapshot.layout
|
|
77606
|
+
lastNodeRows = snapshot.nodeRows
|
|
77124
77607
|
lastScreenPixels = snapshot.screenPixels
|
|
77125
77608
|
lastRequestTotal = snapshot.requestTotal
|
|
77126
77609
|
lastAppCommits = snapshot.appCommits
|
|
@@ -77167,6 +77650,7 @@ async function waitForSootsimIdle({
|
|
|
77167
77650
|
blockedBy:
|
|
77168
77651
|
blockers.join(', ') + ' over ' + polls + ' polls (layout changed ' + layoutChangedPolls +
|
|
77169
77652
|
'x, layoutDirty ' + dirtyPolls + 'x, animating ' + animatingPolls + 'x, webViewStarting ' + webViewStartingPolls + 'x, screen changed ' + screenChangedPolls + 'x)' +
|
|
77653
|
+
(lastLayoutChange ? '; last layout change ' + JSON.stringify(lastLayoutChange) : '') +
|
|
77170
77654
|
(activityHost ? '; tenant activity ' + JSON.stringify({ initial: initialActivity, current: activityHost.getRenderActivity?.(), busySeen, idleSince, transitionEndedAt, startedAt: start }) : ''),
|
|
77171
77655
|
}
|
|
77172
77656
|
} finally {
|
|
@@ -77199,6 +77683,7 @@ var RuntimeReadinessUnsupportedError, IdleObservationError;
|
|
|
77199
77683
|
var init_settling = __esm({
|
|
77200
77684
|
"cli/commands/inspect/settling.ts"() {
|
|
77201
77685
|
"use strict";
|
|
77686
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
77202
77687
|
init_maestro_accessibility();
|
|
77203
77688
|
init_core();
|
|
77204
77689
|
RuntimeReadinessUnsupportedError = class extends Error {
|
|
@@ -77232,6 +77717,7 @@ var PERMISSION_KINDS;
|
|
|
77232
77717
|
var init_permissions = __esm({
|
|
77233
77718
|
"cli/commands/permissions.ts"() {
|
|
77234
77719
|
"use strict";
|
|
77720
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
77235
77721
|
init_ws_bridge();
|
|
77236
77722
|
PERMISSION_KINDS = [
|
|
77237
77723
|
"app-tracking-transparency",
|
|
@@ -77328,6 +77814,7 @@ var import_child_process9, vm, HTTP_TIMEOUT_MS, TEMPLATE_RE, ESCAPED_TEMPLATE_RE
|
|
|
77328
77814
|
var init_maestro_js = __esm({
|
|
77329
77815
|
"cli/maestro-js.ts"() {
|
|
77330
77816
|
"use strict";
|
|
77817
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
77331
77818
|
import_child_process9 = require("child_process");
|
|
77332
77819
|
vm = __toESM(require("vm"), 1);
|
|
77333
77820
|
init_loopback_ports();
|
|
@@ -77498,6 +77985,7 @@ var PROFILER_WINDOW_MS;
|
|
|
77498
77985
|
var init_profilerContract = __esm({
|
|
77499
77986
|
"../peach-globals/src/profilerContract.ts"() {
|
|
77500
77987
|
"use strict";
|
|
77988
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
77501
77989
|
PROFILER_WINDOW_MS = 5 * 6e4;
|
|
77502
77990
|
}
|
|
77503
77991
|
});
|
|
@@ -77506,6 +77994,7 @@ var init_profilerContract = __esm({
|
|
|
77506
77994
|
var init_profileTrace = __esm({
|
|
77507
77995
|
"../peach-globals/src/profileTrace.ts"() {
|
|
77508
77996
|
"use strict";
|
|
77997
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
77509
77998
|
init_src2();
|
|
77510
77999
|
init_profilerContract();
|
|
77511
78000
|
}
|
|
@@ -77515,6 +78004,7 @@ var init_profileTrace = __esm({
|
|
|
77515
78004
|
var init_preview_capture = __esm({
|
|
77516
78005
|
"cli/preview-capture.ts"() {
|
|
77517
78006
|
"use strict";
|
|
78007
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
77518
78008
|
init_src2();
|
|
77519
78009
|
init_env();
|
|
77520
78010
|
init_privacy();
|
|
@@ -77525,6 +78015,7 @@ var init_preview_capture = __esm({
|
|
|
77525
78015
|
var init_run_registry = __esm({
|
|
77526
78016
|
"cli/run-registry.ts"() {
|
|
77527
78017
|
"use strict";
|
|
78018
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
77528
78019
|
init_auth();
|
|
77529
78020
|
}
|
|
77530
78021
|
});
|
|
@@ -77539,6 +78030,7 @@ var REMOTE_DEFAULT_ORIGIN, REMOTE_DEFAULT_PUBLIC_PREVIEW_ORIGIN;
|
|
|
77539
78030
|
var init_upload = __esm({
|
|
77540
78031
|
"cli/commands/upload.ts"() {
|
|
77541
78032
|
"use strict";
|
|
78033
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
77542
78034
|
init_profileTrace();
|
|
77543
78035
|
init_profilerContract();
|
|
77544
78036
|
init_backend_origin();
|
|
@@ -77641,6 +78133,7 @@ async function ensureCliRecordingEntitlement(commandLabel, opts = {}) {
|
|
|
77641
78133
|
var init_recording_access = __esm({
|
|
77642
78134
|
"cli/recording-access.ts"() {
|
|
77643
78135
|
"use strict";
|
|
78136
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
77644
78137
|
init_shared_session();
|
|
77645
78138
|
init_auth();
|
|
77646
78139
|
init_upload();
|
|
@@ -78003,14 +78496,15 @@ function normalizeBareStringStep(verb) {
|
|
|
78003
78496
|
function parseFlowSteps(content) {
|
|
78004
78497
|
return parseFlowFile(content).steps;
|
|
78005
78498
|
}
|
|
78006
|
-
var fs52, path60,
|
|
78499
|
+
var fs52, path60, import_frame_identity, DEFAULT_TIMEOUT, ASSERTION_LOOKUP_MS, NON_MUTATING_STEPS, FLOW_TIMEOUT_SCALE, scaledTimeout, MAESTRO_SELECTOR_KEYS, UNSUPPORTED_SELECTOR_KEYS, ACCESSIBILITY_SELECTOR_KEYS, ACCESSIBILITY_TRAIT_FILTERS, MAESTRO_PERMISSION_KINDS, MAESTRO_PERMISSION_STATUS, MAESTRO_LOCATION_STATUS, CaptureSetupError, SootSimBridgeFlowRunner;
|
|
78007
78500
|
var init_bridge_flow_runner = __esm({
|
|
78008
78501
|
"cli/bridge-flow-runner.ts"() {
|
|
78009
78502
|
"use strict";
|
|
78503
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
78010
78504
|
fs52 = __toESM(require("fs"), 1);
|
|
78011
78505
|
path60 = __toESM(require("path"), 1);
|
|
78012
78506
|
init_src2();
|
|
78013
|
-
|
|
78507
|
+
import_frame_identity = __toESM(require_frame_identity(), 1);
|
|
78014
78508
|
init_device_catalog();
|
|
78015
78509
|
init_flow_timeout_scale();
|
|
78016
78510
|
init_frame_compose();
|
|
@@ -79135,16 +79629,16 @@ var init_bridge_flow_runner = __esm({
|
|
|
79135
79629
|
dataUrl.replace(/^data:image\/png;base64,/, ""),
|
|
79136
79630
|
"base64"
|
|
79137
79631
|
);
|
|
79138
|
-
identicalFrames = (0,
|
|
79632
|
+
identicalFrames = (0, import_frame_identity.framesIdentical)(previousBuffer, current) ? identicalFrames + 1 : 1;
|
|
79139
79633
|
previousBuffer = current;
|
|
79140
|
-
if (identicalFrames >=
|
|
79634
|
+
if (identicalFrames >= import_frame_identity.REQUIRED_IDENTICAL_FLOW_FRAMES) {
|
|
79141
79635
|
rawBuffer = current;
|
|
79142
79636
|
break;
|
|
79143
79637
|
}
|
|
79144
79638
|
}
|
|
79145
79639
|
if (!rawBuffer) {
|
|
79146
79640
|
throw new Error(
|
|
79147
|
-
`screenshot did not reach ${
|
|
79641
|
+
`screenshot did not reach ${import_frame_identity.REQUIRED_IDENTICAL_FLOW_FRAMES} identical idle frames`
|
|
79148
79642
|
);
|
|
79149
79643
|
}
|
|
79150
79644
|
if (spec.withFrame) {
|
|
@@ -80412,10 +80906,12 @@ __export(registry_exports, {
|
|
|
80412
80906
|
skillRegistry: () => skillRegistry
|
|
80413
80907
|
});
|
|
80414
80908
|
module.exports = __toCommonJS(registry_exports);
|
|
80909
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
80415
80910
|
var fs53 = __toESM(require("fs"), 1);
|
|
80416
80911
|
var path61 = __toESM(require("path"), 1);
|
|
80417
80912
|
|
|
80418
80913
|
// src/skills/builtin/a11y-review.ts
|
|
80914
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
80419
80915
|
init_reap_browser();
|
|
80420
80916
|
var skill = {
|
|
80421
80917
|
name: "a11y-review",
|
|
@@ -80508,6 +81004,7 @@ var skill = {
|
|
|
80508
81004
|
};
|
|
80509
81005
|
|
|
80510
81006
|
// src/skills/builtin/compat-check.ts
|
|
81007
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
80511
81008
|
var skill2 = {
|
|
80512
81009
|
name: "compat-check",
|
|
80513
81010
|
description: "Check package compatibility with Peach",
|
|
@@ -80568,6 +81065,7 @@ function readDependencies(value) {
|
|
|
80568
81065
|
}
|
|
80569
81066
|
|
|
80570
81067
|
// src/skills/builtin/maestro-test.ts
|
|
81068
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
80571
81069
|
init_sleep();
|
|
80572
81070
|
var skill3 = {
|
|
80573
81071
|
name: "maestro-test",
|
|
@@ -80670,6 +81168,7 @@ var skill3 = {
|
|
|
80670
81168
|
};
|
|
80671
81169
|
|
|
80672
81170
|
// src/skills/builtin/perf-profile.ts
|
|
81171
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
80673
81172
|
init_reap_browser();
|
|
80674
81173
|
var skill4 = {
|
|
80675
81174
|
name: "perf-profile",
|
|
@@ -80740,6 +81239,7 @@ var skill4 = {
|
|
|
80740
81239
|
};
|
|
80741
81240
|
|
|
80742
81241
|
// src/skills/builtin/screenshot-all.ts
|
|
81242
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
80743
81243
|
init_reap_browser();
|
|
80744
81244
|
var skill5 = {
|
|
80745
81245
|
name: "screenshot-all",
|
|
@@ -80783,6 +81283,7 @@ var skill5 = {
|
|
|
80783
81283
|
};
|
|
80784
81284
|
|
|
80785
81285
|
// src/skills/builtin/visual-diff.ts
|
|
81286
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
80786
81287
|
init_reap_browser();
|
|
80787
81288
|
var skill6 = {
|
|
80788
81289
|
name: "visual-diff",
|