@skrr-ai/cli 0.1.210 → 0.1.212

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.
@@ -13,6 +13,8 @@ export interface ComponentUpdateStatus {
13
13
  autoUpdateEnabled: boolean | null;
14
14
  lastAttempt: unknown | null;
15
15
  detail: string | null;
16
+ /** Facts the person should act on that do not change `state`, such as a shadowing `skrr`. */
17
+ warnings: string[];
16
18
  /** The component's full status is retained for machine-readable diagnostics. */
17
19
  status: Record<string, unknown>;
18
20
  }
@@ -23,6 +25,8 @@ export interface PlatformUpdateOptions {
23
25
  baseURL: string;
24
26
  restart?: boolean;
25
27
  env?: NodeJS.ProcessEnv;
28
+ /** The package root of the running CLI (oclif's `config.root`), which a CLI update replaces. */
29
+ cliRoot?: string;
26
30
  }
27
31
  export interface PlatformUpdateDependencies {
28
32
  cli(mode: UpdateMode, options: PlatformUpdateOptions): Promise<unknown>;
@@ -32,6 +32,9 @@ function normalizeComponentUpdateStatus(component, value) {
32
32
  : null,
33
33
  lastAttempt: raw.lastAttempt ?? raw.transaction ?? null,
34
34
  detail: optionalString(raw.detail) ?? optionalString(raw.message),
35
+ warnings: Array.isArray(raw.warnings)
36
+ ? raw.warnings.filter((item) => typeof item === 'string' && item.length > 0)
37
+ : [],
35
38
  status: raw,
36
39
  };
37
40
  }
@@ -79,6 +82,7 @@ function describeComponentUpdate(status) {
79
82
  `${status.component}: ${status.state} (${status.owner})`,
80
83
  ` ${versions}`,
81
84
  ...(status.detail ? [` ${status.detail}`] : []),
85
+ ...status.warnings.map((warning) => ` Warning: ${warning}`),
82
86
  ...status.commands.map((command) => ` ${command}`),
83
87
  ].join('\n');
84
88
  }