@capgo/cli 7.88.2 → 7.88.3
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/index.js +318 -318
- package/dist/package.json +1 -1
- package/dist/src/api/update.d.ts +7 -0
- package/dist/src/init/runtime.d.ts +7 -0
- package/dist/src/sdk.js +220 -220
- package/dist/src/utils.d.ts +4 -8
- package/package.json +1 -1
package/dist/package.json
CHANGED
package/dist/src/api/update.d.ts
CHANGED
|
@@ -1 +1,8 @@
|
|
|
1
|
+
export interface VersionCheckResult {
|
|
2
|
+
currentVersion: string;
|
|
3
|
+
latestVersion: string;
|
|
4
|
+
isOutdated: boolean;
|
|
5
|
+
majorVersion: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function checkVersionStatus(): Promise<VersionCheckResult>;
|
|
1
8
|
export declare function checkAlerts(): Promise<void>;
|
|
@@ -44,11 +44,17 @@ export interface InitLogEntry {
|
|
|
44
44
|
message: string;
|
|
45
45
|
tone: InitLogTone;
|
|
46
46
|
}
|
|
47
|
+
export interface InitVersionWarning {
|
|
48
|
+
currentVersion: string;
|
|
49
|
+
latestVersion: string;
|
|
50
|
+
majorVersion: string;
|
|
51
|
+
}
|
|
47
52
|
export interface InitRuntimeState {
|
|
48
53
|
screen?: InitScreen;
|
|
49
54
|
logs: InitLogEntry[];
|
|
50
55
|
spinner?: string;
|
|
51
56
|
prompt?: PromptRequest;
|
|
57
|
+
versionWarning?: InitVersionWarning;
|
|
52
58
|
}
|
|
53
59
|
export declare function subscribe(listener: () => void): () => boolean;
|
|
54
60
|
export declare function getInitSnapshot(): InitRuntimeState;
|
|
@@ -64,3 +70,4 @@ export declare function setInitSpinner(message?: string): void;
|
|
|
64
70
|
export declare function requestInitConfirm(message: string, initialValue?: boolean): Promise<boolean | symbol>;
|
|
65
71
|
export declare function requestInitText(message: string, placeholder?: string, validate?: (value: string | undefined) => string | undefined): Promise<string | symbol>;
|
|
66
72
|
export declare function requestInitSelect(message: string, options: SelectPromptOption[]): Promise<string | symbol>;
|
|
73
|
+
export declare function setInitVersionWarning(currentVersion: string, latestVersion: string, majorVersion: string): void;
|