@tomflow/proflow-platform-cli 0.1.34 → 0.1.35

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @tomflow/proflow-platform-cli
2
2
 
3
+ ## 0.1.35
4
+
5
+ ### Patch Changes
6
+
7
+ - Render retryable package-manager warnings as warnings instead of failed subprocess events.
8
+
3
9
  ## 0.1.34
4
10
 
5
11
  ### Patch Changes
@@ -6,7 +6,7 @@ export declare const behaviorAdapter: {
6
6
  readonly ok: true;
7
7
  readonly status: "SUCCEEDED";
8
8
  readonly moduleRef: "platform-cli";
9
- readonly moduleVersion: "0.1.34";
9
+ readonly moduleVersion: "0.1.35";
10
10
  };
11
11
  observedEffects: never[];
12
12
  }>;
@@ -16,7 +16,7 @@ export declare const behaviorAdapter: {
16
16
  readonly ok: true;
17
17
  readonly status: "SUCCEEDED";
18
18
  readonly moduleRef: "platform-cli";
19
- readonly moduleVersion: "0.1.34";
19
+ readonly moduleVersion: "0.1.35";
20
20
  };
21
21
  observedEffects: never[];
22
22
  }>;
@@ -26,7 +26,7 @@ export declare const behaviorAdapter: {
26
26
  ok: true;
27
27
  status: "SUCCEEDED";
28
28
  moduleRef: "platform-cli";
29
- moduleVersion: "0.1.34";
29
+ moduleVersion: "0.1.35";
30
30
  data: {
31
31
  readonly setupStatus: "READY";
32
32
  readonly runtimeStatus: "NOT_APPLICABLE";
@@ -40,7 +40,7 @@ export declare const behaviorAdapter: {
40
40
  readonly ok: true;
41
41
  readonly status: "SUCCEEDED";
42
42
  readonly moduleRef: "platform-cli";
43
- readonly moduleVersion: "0.1.34";
43
+ readonly moduleVersion: "0.1.35";
44
44
  };
45
45
  observedEffects: never[];
46
46
  }>;
@@ -50,7 +50,7 @@ export declare const behaviorAdapter: {
50
50
  ok: true;
51
51
  status: "SUCCEEDED";
52
52
  moduleRef: "platform-cli";
53
- moduleVersion: "0.1.34";
53
+ moduleVersion: "0.1.35";
54
54
  data: {
55
55
  docs: string;
56
56
  };
@@ -63,7 +63,7 @@ export declare const behaviorAdapter: {
63
63
  readonly ok: true;
64
64
  readonly status: "SUCCEEDED";
65
65
  readonly moduleRef: "platform-cli";
66
- readonly moduleVersion: "0.1.34";
66
+ readonly moduleVersion: "0.1.35";
67
67
  };
68
68
  observedEffects: never[];
69
69
  }>;
@@ -73,7 +73,7 @@ export declare const behaviorAdapter: {
73
73
  readonly ok: true;
74
74
  readonly status: "SUCCEEDED";
75
75
  readonly moduleRef: "platform-cli";
76
- readonly moduleVersion: "0.1.34";
76
+ readonly moduleVersion: "0.1.35";
77
77
  };
78
78
  observedEffects: never[];
79
79
  }>;
@@ -3,7 +3,7 @@ export declare const descriptor: {
3
3
  readonly contractVersion: "1.0.0";
4
4
  readonly moduleRef: "platform-cli";
5
5
  readonly packageName: "@tomflow/proflow-platform-cli";
6
- readonly moduleVersion: "0.1.34";
6
+ readonly moduleVersion: "0.1.35";
7
7
  readonly kind: "cli";
8
8
  readonly templateVersion: "1.0.0";
9
9
  readonly platformCompatibility: ">=1.0.0 <2.0.0";
@@ -3,7 +3,7 @@ export const descriptor = {
3
3
  contractVersion: "1.0.0",
4
4
  moduleRef: "platform-cli",
5
5
  packageName: "@tomflow/proflow-platform-cli",
6
- moduleVersion: "0.1.34",
6
+ moduleVersion: "0.1.35",
7
7
  kind: "cli",
8
8
  templateVersion: "1.0.0",
9
9
  platformCompatibility: ">=1.0.0 <2.0.0",
package/dist/src/cli.js CHANGED
@@ -351,7 +351,11 @@ function reportPackageManagerOutput(runtime, command, output) {
351
351
  command,
352
352
  phase: "packages",
353
353
  kind: "subprocess",
354
- status: /(?:error|ERR_)/i.test(output.line) ? "FAILED" : "STARTED",
354
+ status: /\b(?:warn|warning)\b/i.test(output.line)
355
+ ? "WARNING"
356
+ : /(?:error|ERR_)/i.test(output.line)
357
+ ? "FAILED"
358
+ : "STARTED",
355
359
  message: output.line,
356
360
  });
357
361
  }
@@ -1,4 +1,4 @@
1
- export type PlatformProgressStatus = "STARTED" | "SUCCEEDED" | "ACTION_REQUIRED" | "FAILED" | "SKIPPED";
1
+ export type PlatformProgressStatus = "STARTED" | "SUCCEEDED" | "WARNING" | "ACTION_REQUIRED" | "FAILED" | "SKIPPED";
2
2
  export type PlatformProgressKind = "phase" | "detail" | "subprocess";
3
3
  export interface PlatformProgressEvent {
4
4
  command: string;
@@ -19,33 +19,39 @@ function progressLine(event, color, spinner = "") {
19
19
  : "";
20
20
  const suffix = event.status === "SUCCEEDED"
21
21
  ? "完成"
22
- : event.status === "ACTION_REQUIRED"
23
- ? "待处理"
24
- : event.status === "FAILED"
25
- ? "失败"
26
- : event.status === "SKIPPED"
27
- ? "跳过"
28
- : "";
22
+ : event.status === "WARNING"
23
+ ? "警告"
24
+ : event.status === "ACTION_REQUIRED"
25
+ ? "待处理"
26
+ : event.status === "FAILED"
27
+ ? "失败"
28
+ : event.status === "SKIPPED"
29
+ ? "跳过"
30
+ : "";
29
31
  const symbol = event.kind === "subprocess"
30
32
  ? "│"
31
33
  : event.status === "STARTED"
32
34
  ? spinner
33
35
  : event.status === "SUCCEEDED"
34
36
  ? "✓"
35
- : event.status === "FAILED"
36
- ? ""
37
- : event.status === "ACTION_REQUIRED"
38
- ? ""
39
- : "";
37
+ : event.status === "WARNING"
38
+ ? "!"
39
+ : event.status === "FAILED"
40
+ ? ""
41
+ : event.status === "ACTION_REQUIRED"
42
+ ? "◆"
43
+ : "○";
40
44
  if (!color)
41
45
  return `${symbol ? `${symbol} ` : ""}${prefix}${event.message}${suffix ? ` · ${suffix}` : ""}${elapsed}`;
42
46
  const tone = event.status === "SUCCEEDED"
43
47
  ? colors.green
44
- : event.status === "FAILED"
45
- ? colors.red
46
- : event.kind === "subprocess"
47
- ? colors.blue
48
- : colors.yellow;
48
+ : event.status === "WARNING"
49
+ ? colors.yellow
50
+ : event.status === "FAILED"
51
+ ? colors.red
52
+ : event.kind === "subprocess"
53
+ ? colors.blue
54
+ : colors.yellow;
49
55
  return `${tone}${symbol}${colors.reset} ${colors.dim}${prefix}${colors.reset}${event.message}${suffix ? ` · ${tone}${suffix}${colors.reset}` : ""}${event.elapsedMs === undefined ? "" : `${colors.dim}${elapsed}${colors.reset}`}`;
50
56
  }
51
57
  export function createTerminalProgressReporter(stream = process.stderr) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomflow/proflow-platform-cli",
3
- "version": "0.1.34",
3
+ "version": "0.1.35",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -3,7 +3,7 @@
3
3
  "contractVersion": "1.0.0",
4
4
  "moduleRef": "platform-cli",
5
5
  "packageName": "@tomflow/proflow-platform-cli",
6
- "moduleVersion": "0.1.34",
6
+ "moduleVersion": "0.1.35",
7
7
  "kind": "cli",
8
8
  "templateVersion": "1.0.0",
9
9
  "platformCompatibility": ">=1.0.0 <2.0.0",