Repository navigation
Expand file tree
/
Copy pathplugin.ts
More file actions
41 lines (39 loc) · 1.48 KB
/
Copy pathplugin.ts
File metadata and controls
41 lines (39 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import { resolveHubAppReference as resolveHubAppReferenceFrom } from './webdriver-utils.ts';
import type { CloudWebDriverRuntimeOptions, CloudWebDriverRuntime } from './runtime.ts';
export async function createCloudWebDriverRuntime(
options: CloudWebDriverRuntimeOptions,
): Promise<CloudWebDriverRuntime> {
const runtime = await import('./runtime.ts');
return runtime.createCloudWebDriverRuntime(options);
}
export type {
CloudWebDriverRuntimeOptions,
CloudWebDriverPlatform,
CloudWebDriverUploadApp,
} from './runtime.ts';
export type { CloudWebDriverProviderOptions } from './provider-plugin.ts';
export {
appFileUploadForm,
appendUrlPath,
createHubUploadApp,
fetchProviderSessionDetails,
fetchProviderVerificationJson,
postHubAppUpload,
readFlag,
requireConnectFlag,
requireConnectPlatform,
requireEnv,
requireFlag,
requireProviderDeviceOrientation,
requireRequest,
requireRequestPlatform,
resolveLocalAppArtifact,
} from './webdriver-utils.ts';
export { cloudArtifactsReadyOrPending, urlArtifactFromDetails } from './artifact-results.ts';
export { buildCloudWebDriverBaseCapabilities } from './capabilities.ts';
/** The released entry: an app path without `cwd` resolves against the process's working directory. */
export async function resolveHubAppReference(
options: Omit<Parameters<typeof resolveHubAppReferenceFrom>[0], 'cwd'> & { cwd?: string },
): Promise<string> {
return await resolveHubAppReferenceFrom({ ...options, cwd: options.cwd ?? process.cwd() });
}