@quiesco/core 0.7.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config.d.ts +7 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +5 -0
- package/dist/config.js.map +1 -1
- package/dist/device.d.ts +27 -2
- package/dist/device.d.ts.map +1 -1
- package/dist/device.js +65 -4
- package/dist/device.js.map +1 -1
- package/dist/devices/android.d.ts +28 -3
- package/dist/devices/android.d.ts.map +1 -1
- package/dist/devices/android.js +71 -9
- package/dist/devices/android.js.map +1 -1
- package/dist/devices/ios-runner.d.ts +20 -0
- package/dist/devices/ios-runner.d.ts.map +1 -1
- package/dist/devices/ios-runner.js +11 -0
- package/dist/devices/ios-runner.js.map +1 -1
- package/dist/devices/ios.d.ts +28 -3
- package/dist/devices/ios.d.ts.map +1 -1
- package/dist/devices/ios.js +99 -8
- package/dist/devices/ios.js.map +1 -1
- package/dist/devices/provider.d.ts +18 -2
- package/dist/devices/provider.d.ts.map +1 -1
- package/dist/driver.d.ts +11 -3
- package/dist/driver.d.ts.map +1 -1
- package/dist/driver.js +21 -1
- package/dist/driver.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/options.d.ts +10 -0
- package/dist/options.d.ts.map +1 -1
- package/dist/session.d.ts +5 -2
- package/dist/session.d.ts.map +1 -1
- package/dist/session.js +7 -2
- package/dist/session.js.map +1 -1
- package/ios-runner/Runner/SystemUIServer.swift +36 -0
- package/package.json +2 -2
- package/src/config.ts +11 -0
- package/src/device.ts +63 -7
- package/src/devices/android.ts +80 -9
- package/src/devices/ios-runner.ts +19 -0
- package/src/devices/ios.ts +99 -9
- package/src/devices/provider.ts +18 -2
- package/src/driver.ts +23 -4
- package/src/index.ts +1 -1
- package/src/options.ts +11 -0
- package/src/session.ts +7 -2
package/src/devices/ios.ts
CHANGED
|
@@ -138,7 +138,7 @@ export interface IosProviderOptions {
|
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
/** What IosProvider uses of IosSystemRunner. */
|
|
141
|
-
export type SystemRunnerLike = Pick<IosSystemRunner, 'running' | 'screen' | 'tap' | 'openNotificationCenter' | 'stop'> & Partial<Pick<IosSystemRunner, 'navigationBar' | 'edgeSwipeBack'>>;
|
|
141
|
+
export type SystemRunnerLike = Pick<IosSystemRunner, 'running' | 'screen' | 'tap' | 'openNotificationCenter' | 'stop'> & Partial<Pick<IosSystemRunner, 'navigationBar' | 'edgeSwipeBack' | 'elements' | 'typeText'>>;
|
|
142
142
|
|
|
143
143
|
/** `27.0` / `iOS 27.0` / `27` → does the runtime identifier match? */
|
|
144
144
|
export function runtimeMatches(runtime: string, version: string): boolean {
|
|
@@ -199,13 +199,36 @@ export function logTime(ms: number): string {
|
|
|
199
199
|
return `${d.getFullYear()}-${p(d.getMonth() + 1)}-${p(d.getDate())} ${p(d.getHours())}:${p(d.getMinutes())}:${p(d.getSeconds())}`;
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
+
/**
|
|
203
|
+
* Apps whose UI system.* sees when they are in front (issue #51): the page of a web authentication session
|
|
204
|
+
* (ASWebAuthenticationSession, SFSafariViewController) and Safari.
|
|
205
|
+
*/
|
|
206
|
+
const OTHER_APPS = ['com.apple.SafariViewService', 'com.apple.mobilesafari'];
|
|
207
|
+
/** XCUIApplication.State.runningForeground. */
|
|
208
|
+
const RUNNING_FOREGROUND = 4;
|
|
209
|
+
/** XCUIElement.ElementType values left out: the application, windows, scroll bars (no one taps them). */
|
|
210
|
+
const SKIPPED_TYPES = new Set([2, 4, 47]);
|
|
211
|
+
/** searchField, textField, secureTextField, textView. */
|
|
212
|
+
const FIELD_TYPES = new Set([45, 49, 50, 52]);
|
|
213
|
+
|
|
214
|
+
/** SystemNodes of a runner element tree (`/elements`): the label, else the value (a field's text). */
|
|
215
|
+
export function uikitNodes(elements: readonly { type: number; label: string; id: string; value: string; frame: number[] }[], app: string): SystemNode[] {
|
|
216
|
+
return elements
|
|
217
|
+
.filter((e) => !SKIPPED_TYPES.has(e.type) && (e.frame[2] ?? 0) > 0 && (e.frame[3] ?? 0) > 0)
|
|
218
|
+
.map((e) => {
|
|
219
|
+
const [x = 0, y = 0, w = 0, h = 0] = e.frame;
|
|
220
|
+
return { text: e.label !== '' ? e.label : e.value, id: e.id, bounds: { x1: x, y1: y, x2: x + w, y2: y + h }, app, ...(FIELD_TYPES.has(e.type) ? { field: true } : {}) };
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
|
|
202
224
|
/** Darwin notification state BiometricKit_Sim reads for "enrolled" (1 / 0). */
|
|
203
225
|
const BIOMETRIC_ENROLLMENT = 'com.apple.BiometricKit.enrollmentChanged';
|
|
204
226
|
|
|
205
|
-
/** openNotification:
|
|
206
|
-
const NOTIFICATION_WAIT_MS = 10_000;
|
|
227
|
+
/** openNotification: after BANNER_WAIT_MS (at most half the timeout) without a banner, it looks in Notification Center. */
|
|
207
228
|
const BANNER_WAIT_MS = 2_000;
|
|
208
229
|
const NOTIFICATION_POLL_MS = 250;
|
|
230
|
+
/** openUrlFromOutside: how long SpringBoard's "Open in …?" confirmation may take to show up. */
|
|
231
|
+
const OPEN_URL_CONFIRM_MS = 5_000;
|
|
209
232
|
/** After tapping a notification: how long it may stay on screen before it is tapped again, and how often. */
|
|
210
233
|
const NOTIFICATION_TAP_CONFIRM_MS = 1_500;
|
|
211
234
|
const NOTIFICATION_TAPS = 3;
|
|
@@ -679,14 +702,80 @@ export class IosProvider implements DeviceProvider {
|
|
|
679
702
|
/** Permission alerts have no identifiers and follow the device language: the buttons get ids by position. */
|
|
680
703
|
readonly permissionDialog = { allow: [PERMISSION_ALLOW], deny: [PERMISSION_DENY] } as const;
|
|
681
704
|
|
|
705
|
+
/**
|
|
706
|
+
* SpringBoard's alerts and banners, then the UI of the apps in front that are not React (issues #49–#51):
|
|
707
|
+
* a web authentication session or Safari, and the app's own UIKit views (an inline date picker, the
|
|
708
|
+
* keyboard). The app's React views are in that tree too; tapping them is a real touch all the same.
|
|
709
|
+
*/
|
|
682
710
|
async systemNodes(): Promise<SystemNode[]> {
|
|
683
|
-
|
|
711
|
+
const runner = this.runner;
|
|
712
|
+
const nodes = screenNodes(await runner.screen());
|
|
713
|
+
if (runner.elements === undefined) return nodes;
|
|
714
|
+
for (const bundleId of [...OTHER_APPS, this.bundleId]) {
|
|
715
|
+
const tree = await runner.elements(bundleId);
|
|
716
|
+
if (tree.state === RUNNING_FOREGROUND) nodes.push(...uikitNodes(tree.elements, bundleId));
|
|
717
|
+
}
|
|
718
|
+
return nodes;
|
|
684
719
|
}
|
|
685
720
|
|
|
686
721
|
async tapSystemNode(node: SystemNode): Promise<void> {
|
|
687
722
|
await this.runner.tap((node.bounds.x1 + node.bounds.x2) / 2, (node.bounds.y1 + node.bounds.y2) / 2);
|
|
688
723
|
}
|
|
689
724
|
|
|
725
|
+
/**
|
|
726
|
+
* Tap the field, then type with its app's keyboard (XCUITest typeText: any text, as keys), a character
|
|
727
|
+
* per request: typed at once, a React Native controlled input loses repeated letters ("ann" → "an").
|
|
728
|
+
*/
|
|
729
|
+
async typeSystemNode(node: SystemNode, text: string): Promise<void> {
|
|
730
|
+
const runner = this.runner;
|
|
731
|
+
if (runner.typeText === undefined) throw new Error('the iOS system UI runner cannot type');
|
|
732
|
+
await this.tapSystemNode(node);
|
|
733
|
+
// The keyboard belongs to the app showing the field. A web page in front of the app can show up in the
|
|
734
|
+
// app's own element tree too (a remote view): then it is another app's keyboard.
|
|
735
|
+
const apps = [...new Set([node.app ?? 'com.apple.springboard', ...OTHER_APPS, this.bundleId])];
|
|
736
|
+
let target: string | null = null;
|
|
737
|
+
for (const { segment } of new Intl.Segmenter(undefined, { granularity: 'grapheme' }).segment(text)) {
|
|
738
|
+
if (target !== null) {
|
|
739
|
+
await runner.typeText(target, segment);
|
|
740
|
+
continue;
|
|
741
|
+
}
|
|
742
|
+
for (const [i, app] of apps.entries()) {
|
|
743
|
+
try {
|
|
744
|
+
await runner.typeText(app, segment);
|
|
745
|
+
target = app;
|
|
746
|
+
break;
|
|
747
|
+
} catch (e) {
|
|
748
|
+
if (i === apps.length - 1 || !/no keyboard/.test((e as Error).message)) throw e;
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
async tapSystemPoint(x: number, y: number): Promise<void> {
|
|
755
|
+
await this.runner.tap(x, y);
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
/**
|
|
759
|
+
* `simctl openurl` while the app is in the background (issue #48). SpringBoard asks "Open in “<app>”?"
|
|
760
|
+
* (Cancel, Open, in the device's language): Open, the right-hand button, is tapped through the runner.
|
|
761
|
+
* No confirmation within OPEN_URL_CONFIRM_MS (a link the system opens directly): nothing to answer.
|
|
762
|
+
*/
|
|
763
|
+
async openUrlFromOutside(url: string): Promise<void> {
|
|
764
|
+
await this.simctl(['openurl', this.udid, url]);
|
|
765
|
+
const deadline = Date.now() + OPEN_URL_CONFIRM_MS;
|
|
766
|
+
for (;;) {
|
|
767
|
+
const alert = (await this.runner.screen()).alerts.find((a) => a.buttons.length === 2);
|
|
768
|
+
const open = alert?.buttons[1];
|
|
769
|
+
if (open !== undefined) {
|
|
770
|
+
const [x = 0, y = 0, w = 0, h = 0] = open.frame;
|
|
771
|
+
await this.runner.tap(x + w / 2, y + h / 2);
|
|
772
|
+
return;
|
|
773
|
+
}
|
|
774
|
+
if (Date.now() >= deadline) return;
|
|
775
|
+
await new Promise((r) => setTimeout(r, NOTIFICATION_POLL_MS));
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
|
|
690
779
|
/**
|
|
691
780
|
* `app.goBack()` on iOS (issue #4), as a user would: tap the navigation bar's back button when the app
|
|
692
781
|
* shows one, else the edge swipe from the left (interactive pop). Through the XCUITest runner, which sees
|
|
@@ -706,11 +795,12 @@ export class IosProvider implements DeviceProvider {
|
|
|
706
795
|
|
|
707
796
|
/**
|
|
708
797
|
* Tap the notification titled `title`: its banner while it is shown, else in Notification Center
|
|
709
|
-
* (swiped down from the top edge). Banners read "<time>, <title>, <body>".
|
|
798
|
+
* (swiped down from the top edge). Banners read "<time>, <title>, <body>". Waits up to `timeoutMs` for it.
|
|
710
799
|
*/
|
|
711
|
-
async openNotification(title: string): Promise<void> {
|
|
800
|
+
async openNotification(title: string, timeoutMs: number): Promise<void> {
|
|
712
801
|
const find = async () => (await this.runner.screen()).others.find((o) => o.label.split(', ').includes(title) || o.label.includes(title));
|
|
713
|
-
const
|
|
802
|
+
const start = Date.now();
|
|
803
|
+
const deadline = start + timeoutMs;
|
|
714
804
|
let centerOpened = false;
|
|
715
805
|
let taps = 0;
|
|
716
806
|
for (;;) {
|
|
@@ -732,10 +822,10 @@ export class IosProvider implements DeviceProvider {
|
|
|
732
822
|
}
|
|
733
823
|
if (Date.now() > deadline) {
|
|
734
824
|
const seen = (await this.runner.screen().catch(() => ({ alerts: [], others: [] }))).others.map((o) => JSON.stringify(o.label)).slice(0, 8);
|
|
735
|
-
throw new QuiescoError('DEVICE_ERROR', `openNotification: no notification "${title}" in a banner or Notification Center (seen: ${seen.join(', ') || 'nothing'}). Can the app show notifications (system.allowPermission())?`);
|
|
825
|
+
throw new QuiescoError('DEVICE_ERROR', `openNotification: no notification "${title}" in a banner or Notification Center within ${timeoutMs}ms (seen: ${seen.join(', ') || 'nothing'}). Can the app show notifications (system.allowPermission())?`);
|
|
736
826
|
}
|
|
737
827
|
// The banner goes away after a few seconds; then the notification is in Notification Center.
|
|
738
|
-
if (!centerOpened && Date.now() >
|
|
828
|
+
if (!centerOpened && Date.now() > start + Math.min(BANNER_WAIT_MS, timeoutMs / 2)) {
|
|
739
829
|
await this.runner.openNotificationCenter();
|
|
740
830
|
centerOpened = true;
|
|
741
831
|
}
|
package/src/devices/provider.ts
CHANGED
|
@@ -60,6 +60,10 @@ export interface SystemNode {
|
|
|
60
60
|
id: string;
|
|
61
61
|
/** Where it is, in the provider's own screen units (what `tapSystemNode` expects). */
|
|
62
62
|
bounds: { x1: number; y1: number; x2: number; y2: number };
|
|
63
|
+
/** iOS: the app or system service it belongs to (its bundle id); where `typeSystemNode` types. */
|
|
64
|
+
app?: string;
|
|
65
|
+
/** A text field: what `system.type` prefers when a label next to it has the same text. */
|
|
66
|
+
field?: boolean;
|
|
63
67
|
}
|
|
64
68
|
|
|
65
69
|
/** Status bar overrides for clean screenshots (Phase 6.6); unset fields keep the real value. */
|
|
@@ -167,11 +171,23 @@ export interface DeviceProvider {
|
|
|
167
171
|
clearKeychain?(): Promise<void>;
|
|
168
172
|
/** Deliver a notification to the app (iOS: a simulated push; Android: posted as the app). */
|
|
169
173
|
sendNotification?(n: NotificationSpec, app: InAppControls): Promise<void>;
|
|
170
|
-
/** Tap the notification with this title in the system's notification list (the app comes to the front). */
|
|
171
|
-
openNotification?(title: string): Promise<void>;
|
|
174
|
+
/** Tap the notification with this title in the system's notification list (the app comes to the front); waits up to `timeoutMs` for it. */
|
|
175
|
+
openNotification?(title: string, timeoutMs: number): Promise<void>;
|
|
176
|
+
/**
|
|
177
|
+
* Open a link from outside the app while it is in the background (issue #48), as another app would:
|
|
178
|
+
* the system brings the app to the front with it. iOS answers the system's "Open in …?" confirmation.
|
|
179
|
+
*/
|
|
180
|
+
openUrlFromOutside?(url: string): Promise<void>;
|
|
172
181
|
/** System UI on screen now that does not belong to the app (dialogs, prompts), topmost window first. */
|
|
173
182
|
systemNodes?(): Promise<SystemNode[]>;
|
|
174
183
|
tapSystemNode?(node: SystemNode): Promise<void>;
|
|
184
|
+
/**
|
|
185
|
+
* Tap the field `node` and type `text` into it with the device's input (issues #51): iOS through the
|
|
186
|
+
* system UI runner (XCUITest typeText), Android with `input text` (ASCII) or a paste (any text).
|
|
187
|
+
*/
|
|
188
|
+
typeSystemNode?(node: SystemNode, text: string, app: InAppControls): Promise<void>;
|
|
189
|
+
/** A system-level touch at a point of the screen (points / dp), outside or over the app (issue #51). */
|
|
190
|
+
tapSystemPoint?(x: number, y: number): Promise<void>;
|
|
175
191
|
/**
|
|
176
192
|
* Web: the message of the JS dialog (alert / confirm / prompt) the page is blocked on, or null. While
|
|
177
193
|
* one is open the page runs no script and takes no input until it is answered (findings 6.7 web dialogs).
|
package/src/driver.ts
CHANGED
|
@@ -37,7 +37,7 @@ import { silentLogger } from './logger.js';
|
|
|
37
37
|
import type { MatcherInput, TextQuery } from './matcher.js';
|
|
38
38
|
import { toMatcher, toTextMatch } from './matcher.js';
|
|
39
39
|
import type { DeviceProvider } from './devices/provider.js';
|
|
40
|
-
import type { ActionOptions, CallOptions } from './options.js';
|
|
40
|
+
import type { ActionOptions, CallOptions, TypeOptions } from './options.js';
|
|
41
41
|
import type { VisibleOptions } from './expect.js';
|
|
42
42
|
import { ElementExpectation, checkRatio } from './expect.js';
|
|
43
43
|
import type { AgentConnection } from './server/ws-server.js';
|
|
@@ -48,7 +48,7 @@ import { WebView } from './webview.js';
|
|
|
48
48
|
import { cropToRect } from './screenshots.js';
|
|
49
49
|
import type { WebViewHost } from './webview.js';
|
|
50
50
|
|
|
51
|
-
export type { ActionOptions, CallOptions } from './options.js';
|
|
51
|
+
export type { ActionOptions, CallOptions, TypeOptions } from './options.js';
|
|
52
52
|
|
|
53
53
|
export interface DriverOptions {
|
|
54
54
|
provider: DeviceProvider;
|
|
@@ -69,6 +69,9 @@ export interface DriverOptions {
|
|
|
69
69
|
timeline?: Timeline;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
+
/** type({ perCharacter: true }): time between two characters, about a quick typist's (issue #52). */
|
|
73
|
+
const TYPE_INTERVAL_MS = 80;
|
|
74
|
+
|
|
72
75
|
/** Calls worth a line in the timeline (lifecycle polling such as deviceInfo is left out). */
|
|
73
76
|
const TIMELINED: ReadonlySet<keyof AgentMethods> = new Set(['query', 'action', 'assert', 'waitForIdle', 'backdoor', 'reset', 'webview', 'scrollView']);
|
|
74
77
|
|
|
@@ -151,8 +154,16 @@ export class Driver {
|
|
|
151
154
|
if (!Number.isInteger(count) || count < 1) throw new RangeError(`count must be a positive integer, got ${count}`);
|
|
152
155
|
return this.action({ type: 'multiTap', matcher: toMatcher(target), count }, opts);
|
|
153
156
|
}
|
|
154
|
-
|
|
155
|
-
|
|
157
|
+
/**
|
|
158
|
+
* Focus the input and enter `text`: at once, or with `{ perCharacter: true }` one character at a time,
|
|
159
|
+
* `intervalMs` (80 ms) apart, like a user typing (issue #52).
|
|
160
|
+
*/
|
|
161
|
+
type(target: MatcherInput, text: string, opts?: TypeOptions): Promise<ElementSummary | undefined> {
|
|
162
|
+
const { perCharacter, intervalMs, ...rest } = opts ?? {};
|
|
163
|
+
if (intervalMs !== undefined && (!Number.isFinite(intervalMs) || intervalMs < 0)) throw new RangeError(`intervalMs must be a number ≥ 0, got ${intervalMs}`);
|
|
164
|
+
if (intervalMs !== undefined && perCharacter !== true) throw new TypeError('type: intervalMs needs perCharacter: true');
|
|
165
|
+
const spec: ActionSpec = { type: 'type', matcher: toMatcher(target), text, ...(perCharacter === true ? { intervalMs: intervalMs ?? TYPE_INTERVAL_MS } : {}) };
|
|
166
|
+
return this.action(spec, rest);
|
|
156
167
|
}
|
|
157
168
|
/** Replace the whole text at once (no typing character by character). */
|
|
158
169
|
replaceText(target: MatcherInput, text: string, opts?: ActionOptions): Promise<ElementSummary | undefined> {
|
|
@@ -244,7 +255,15 @@ export class Driver {
|
|
|
244
255
|
});
|
|
245
256
|
}
|
|
246
257
|
}
|
|
258
|
+
/**
|
|
259
|
+
* Open a deep link. In front: inside the app. In the background (issue #48): from outside the app, as
|
|
260
|
+
* from another app (a warm start); resolves when the app is in front and idle.
|
|
261
|
+
*/
|
|
247
262
|
async openUrl(url: string, opts?: ActionOptions): Promise<void> {
|
|
263
|
+
if (this.options.appState?.() === 'background' && this.options.provider.openUrlFromOutside !== undefined && this.lifecycle !== null) {
|
|
264
|
+
await this.lifecycle.device.openUrlInBackground(url);
|
|
265
|
+
return;
|
|
266
|
+
}
|
|
248
267
|
await this.action({ type: 'openUrl', url }, opts);
|
|
249
268
|
}
|
|
250
269
|
async dismissKeyboard(opts?: ActionOptions): Promise<void> {
|
package/src/index.ts
CHANGED
|
@@ -6,7 +6,7 @@ export type { AndroidAppConfig, AndroidDeviceConfig, ConfigContext, QuiescoConfi
|
|
|
6
6
|
export { Driver } from './driver.js';
|
|
7
7
|
export { ElementExpectation } from './expect.js';
|
|
8
8
|
export type { VisibleOptions } from './expect.js';
|
|
9
|
-
export type { ActionOptions, CallOptions } from './driver.js';
|
|
9
|
+
export type { ActionOptions, CallOptions, TypeOptions } from './driver.js';
|
|
10
10
|
export { QuiescoError } from './errors.js';
|
|
11
11
|
export type { HostErrorName } from './errors.js';
|
|
12
12
|
export { consoleLogger, silentLogger } from './logger.js';
|
package/src/options.ts
CHANGED
|
@@ -11,3 +11,14 @@ export interface CallOptions {
|
|
|
11
11
|
export interface ActionOptions extends CallOptions {
|
|
12
12
|
mode?: ActionMode;
|
|
13
13
|
}
|
|
14
|
+
|
|
15
|
+
/** `type()` options (issue #52). */
|
|
16
|
+
export interface TypeOptions extends ActionOptions {
|
|
17
|
+
/**
|
|
18
|
+
* Type one character at a time, as a user does, so the app sees every keystroke (debounced search,
|
|
19
|
+
* input masks, `onKeyPress`). Default: the whole text at once.
|
|
20
|
+
*/
|
|
21
|
+
perCharacter?: boolean;
|
|
22
|
+
/** With `perCharacter`: time between two characters (default 80 ms). The call waits for idle at the end. */
|
|
23
|
+
intervalMs?: number;
|
|
24
|
+
}
|
package/src/session.ts
CHANGED
|
@@ -330,8 +330,13 @@ export class Session {
|
|
|
330
330
|
await this.provider.shutdown().catch((e: unknown) => this.logger.warn(`device shutdown failed: ${(e as Error).message}`));
|
|
331
331
|
}
|
|
332
332
|
|
|
333
|
-
/**
|
|
334
|
-
|
|
333
|
+
/**
|
|
334
|
+
* Where the app's sources are, for the stale-bundle check: `appDir` (issue #54), else the project root
|
|
335
|
+
* the test runner runs in.
|
|
336
|
+
*/
|
|
337
|
+
private get projectRoot(): string {
|
|
338
|
+
return this.config.appDir ?? process.cwd();
|
|
339
|
+
}
|
|
335
340
|
/** Bundles already checked (by build time): a reconnect of the same bundle is not checked again. */
|
|
336
341
|
private readonly checkedBundles = new Set<number>();
|
|
337
342
|
/** The unknown-bundle warning (issue #19) is given once per session, not on every reconnect. */
|