viza 1.9.21 → 1.9.22

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.
@@ -9,25 +9,9 @@ export async function showRuntimeUsage(result) {
9
9
  return;
10
10
  }
11
11
  const { log, result: data } = env.data;
12
- // -------------------------------
13
- // 1. Render execution log
14
- // -------------------------------
15
- if (Array.isArray(log) && log.length > 0) {
16
- console.log("\n🧩 Execution Steps");
17
- console.log("─".repeat(80));
18
- for (const step of log) {
19
- const statusIcon = step.status === "ok" ? "āœ…" : "āŒ";
20
- const duration = step.durationMs ? `${step.durationMs}ms` : "-";
21
- console.log(`${statusIcon} [${step.step}] ${step.title} ${chalk.gray(`(${duration})`)}`);
22
- if (step.message) {
23
- console.log(chalk.gray(` ↳ ${step.message}`));
24
- }
25
- }
26
- console.log("─".repeat(80));
27
- }
28
- // -------------------------------
29
- // 2. Render usage by month
30
- // -------------------------------
12
+ // ────────────────────────────────────────────────────────────────────────────────────────────────
13
+ // 1. Render usage by month
14
+ // ────────────────────────────────────────────────────────────────────────────────────────────────
31
15
  if (data?.usage) {
32
16
  console.log("\nšŸ“Š Usage by Month");
33
17
  console.log("─".repeat(60));
@@ -41,9 +25,9 @@ export async function showRuntimeUsage(result) {
41
25
  }
42
26
  console.log("─".repeat(60));
43
27
  }
44
- // -------------------------------
45
- // 3. Render usage by org + month
46
- // -------------------------------
28
+ // ────────────────────────────────────────────────────────────────────────────────────────────────
29
+ // 2. Render usage by org + month
30
+ // ────────────────────────────────────────────────────────────────────────────────────────────────
47
31
  if (data?.byOrg) {
48
32
  console.log("\nšŸ¢ Usage by Organization");
49
33
  console.log("─".repeat(60));
@@ -55,9 +39,9 @@ export async function showRuntimeUsage(result) {
55
39
  }
56
40
  console.log("─".repeat(60));
57
41
  }
58
- // -------------------------------
42
+ // ────────────────────────────────────────────────────────────────────────────────────────────────
59
43
  // 4. Raw hint (optional)
60
- // -------------------------------
44
+ // ────────────────────────────────────────────────────────────────────────────────────────────────
61
45
  if (data?.raw?.usageItems) {
62
46
  console.log();
63
47
  console.log(chalk.gray("šŸ’” Raw usage items available (use debug mode if needed)"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viza",
3
- "version": "1.9.21",
3
+ "version": "1.9.22",
4
4
  "type": "module",
5
5
  "description": "Viza unified command line interface",
6
6
  "bin": {