@tapi-dev/sdk 0.1.17 → 0.1.21
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 +393 -292
- package/dist/cli.d.ts +10 -2
- package/dist/cli.js +629 -142
- package/dist/index.d.ts +4 -0
- package/dist/index.js +6 -1
- package/dist/late-input.d.ts +24 -0
- package/dist/late-input.js +112 -0
- package/dist/runs.d.ts +1 -0
- package/dist/runs.js +3 -0
- package/dist/sessions.d.ts +10 -0
- package/dist/sessions.js +14 -0
- package/dist/types.d.ts +49 -2
- package/dist/website-apis.d.ts +3 -1
- package/dist/website-apis.js +16 -3
- package/package.json +1 -1
package/dist/cli.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import type { TapiDevSession } from "./types.js";
|
|
2
3
|
import { type TapiWorkspace } from "./workspace.js";
|
|
3
4
|
export type StudioChannel = "pilot" | "stable" | "nightly";
|
|
4
5
|
export interface StudioReleaseManifest {
|
|
@@ -48,7 +49,7 @@ export interface ServiceReleaseManifest {
|
|
|
48
49
|
mobileChrome?: Record<string, unknown>;
|
|
49
50
|
contents?: string[];
|
|
50
51
|
}
|
|
51
|
-
interface StudioCliOptions {
|
|
52
|
+
export interface StudioCliOptions {
|
|
52
53
|
channel: StudioChannel;
|
|
53
54
|
apiBaseUrl: string;
|
|
54
55
|
manifestUrl: string;
|
|
@@ -64,6 +65,7 @@ interface StudioCliOptions {
|
|
|
64
65
|
projectId?: string;
|
|
65
66
|
projectSlug?: string;
|
|
66
67
|
workspaceMode: boolean;
|
|
68
|
+
launchUrlQuery?: string;
|
|
67
69
|
}
|
|
68
70
|
export interface ServiceStatus {
|
|
69
71
|
installed: boolean;
|
|
@@ -72,9 +74,14 @@ export interface ServiceStatus {
|
|
|
72
74
|
pathName?: string;
|
|
73
75
|
installedVersion?: string;
|
|
74
76
|
}
|
|
75
|
-
type FetchLike = typeof fetch;
|
|
77
|
+
export type FetchLike = typeof fetch;
|
|
76
78
|
export declare function runCli(argv?: string[]): Promise<number>;
|
|
77
79
|
export declare function parseStudioOptions(args: string[]): StudioCliOptions;
|
|
80
|
+
export declare function trySelectDevSessionInOpenStudio(session: TapiDevSession, options: StudioCliOptions, fetchImpl?: FetchLike): Promise<{
|
|
81
|
+
selected: boolean;
|
|
82
|
+
baseUrl?: string;
|
|
83
|
+
reason?: string;
|
|
84
|
+
}>;
|
|
78
85
|
export declare function installedServiceVersionFromPathName(pathName: string): string | undefined;
|
|
79
86
|
export declare function serviceNeedsInstall(status: ServiceStatus, manifest: ServiceReleaseManifest): boolean;
|
|
80
87
|
export declare function getDefaultStudioCacheDir(): string;
|
|
@@ -106,6 +113,7 @@ export declare function compareVersions(left: string, right: string): number;
|
|
|
106
113
|
export declare function memoizeStudioInstallToken(options: StudioCliOptions, installToken?: string): string;
|
|
107
114
|
export declare function findPortablePlaywrightBrowsersDir(exePath: string): string | undefined;
|
|
108
115
|
export declare function waitForHttpOk(url: string, timeoutMs?: number, intervalMs?: number, fetchImpl?: FetchLike): Promise<void>;
|
|
116
|
+
export declare function studioInstanceRecordPathForOptions(options: StudioCliOptions): string;
|
|
109
117
|
export declare function findPortableStudioServerExe(releaseDir: string, manifest: StudioReleaseManifest): string | undefined;
|
|
110
118
|
export declare function buildExpandArchiveCommand(zipPath: string, destination: string): string;
|
|
111
119
|
export declare function formatZipExtractionFailure(zipPath: string, destination: string, error: unknown): string;
|