@capgo/cli 7.88.2 → 7.88.4

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capgo/cli",
3
3
  "type": "module",
4
- "version": "7.88.2",
4
+ "version": "7.88.4",
5
5
  "description": "A CLI to upload to capgo servers",
6
6
  "author": "Martin martin@capgo.app",
7
7
  "license": "Apache 2.0",
@@ -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;