viza 1.8.39 → 1.8.41

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.
@@ -1,5 +1,5 @@
1
1
  import { getEnv } from "../../../context/env.js";
2
- import { RUNTIME_HUB_INTENT } from "../../../context/hubIntent.js";
2
+ import { getRunner, RUNTIME_HUB_INTENT } from "../../../context/hubIntent.js";
3
3
  import { dispatchIntentAndWait } from "../../../core/dispatch.js";
4
4
  import { policy } from "./policy.js";
5
5
  import { showDispatchRuns } from "./show-runs.js";
@@ -15,6 +15,7 @@ export async function runsCommand(options) {
15
15
  // 1️⃣ Resolve environment
16
16
  const env = getEnv();
17
17
  const intent = RUNTIME_HUB_INTENT;
18
+ const runner = getRunner();
18
19
  // Resolve allowed teams (same contract as other commands)
19
20
  const allowedTeams = Array.from(policy.byEnv[env]);
20
21
  // Parse limit option
@@ -38,6 +39,7 @@ export async function runsCommand(options) {
38
39
  secrets: false,
39
40
  },
40
41
  payload: {
42
+ runner,
41
43
  ...(limit ? { limit } : {}),
42
44
  },
43
45
  }, {
@@ -1,3 +1,4 @@
1
+ import chalk from "chalk";
1
2
  import { renderCommandInline } from "../../../ui/primitives/render-command.js";
2
3
  function formatDateTime(iso) {
3
4
  const d = new Date(iso);
@@ -93,8 +94,8 @@ export async function showDispatchRuns(result) {
93
94
  }
94
95
  }
95
96
  else if (run.status === "in_progress") {
96
- status = "🟡 in_progress";
97
- conclusion = " -";
97
+ status = "🟡 in_progress";
98
+ conclusion = " - ";
98
99
  }
99
100
  else {
100
101
  status = "⏳ queued";
@@ -129,10 +130,12 @@ export async function showDispatchRuns(result) {
129
130
  const sampleCmd = `${bin} dispatch logs ${firstRunId}`;
130
131
  console.log();
131
132
  console.log("💡 " + "\x1b[1mQuick Hint\x1b[0m");
132
- console.log(" 👉 Usage:");
133
- console.log(` ${renderCommandInline(`${bin} dispatch logs <runId>`)}`);
134
- console.log(" 👉 Example:");
135
- console.log(` ${renderCommandInline(sampleCmd)}`);
133
+ console.log();
134
+ console.log(chalk.gray(" 👉 To view detailed logs for a specific run, use:"));
135
+ console.log(` ${renderCommandInline(`${bin} dispatch logs <runId>`)}`);
136
+ console.log();
137
+ console.log(chalk.gray(" 👉 Example:"));
138
+ console.log(` ${renderCommandInline(sampleCmd)}`);
136
139
  console.log();
137
140
  }
138
141
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viza",
3
- "version": "1.8.39",
3
+ "version": "1.8.41",
4
4
  "type": "module",
5
5
  "description": "Viza unified command line interface",
6
6
  "bin": {