viza 1.7.11 → 1.7.18
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.
|
@@ -10,7 +10,7 @@ import { resolveExecutionMode } from "./resolveExecutionMode.js";
|
|
|
10
10
|
* - success + hide => no log
|
|
11
11
|
* - otherwise => render log (if present)
|
|
12
12
|
*/
|
|
13
|
-
function maybeRenderLog(result, policy) {
|
|
13
|
+
function maybeRenderLog(result, policy, commandType) {
|
|
14
14
|
// Only GitHub execution produces log artifacts
|
|
15
15
|
if (result.kind !== "github") {
|
|
16
16
|
return;
|
|
@@ -21,7 +21,13 @@ function maybeRenderLog(result, policy) {
|
|
|
21
21
|
}
|
|
22
22
|
if (result.logBuffer) {
|
|
23
23
|
renderLog(result.logBuffer, { status: result.status });
|
|
24
|
+
return;
|
|
24
25
|
}
|
|
26
|
+
// Log artifact not available (likely download failed or not ready)
|
|
27
|
+
const title = chalk.yellow("\n⚠️ Log artifact is not available yet.");
|
|
28
|
+
const cmd = chalk.cyan(`viza ${commandType} --status`);
|
|
29
|
+
console.log(title);
|
|
30
|
+
console.log(chalk.dim(" Run:") + " " + cmd + "\n");
|
|
25
31
|
}
|
|
26
32
|
function assertDispatchInputStrict(input) {
|
|
27
33
|
// Required top-level fields
|
|
@@ -121,7 +127,7 @@ export async function dispatchIntentAndWait(input, opts = {}) {
|
|
|
121
127
|
try {
|
|
122
128
|
const result = await handle.wait();
|
|
123
129
|
stopSpinner(spinner, result.status === "success" ? "✅ Done" : "❌ Failed");
|
|
124
|
-
maybeRenderLog(result, policy);
|
|
130
|
+
maybeRenderLog(result, policy, input.commandType);
|
|
125
131
|
if (result.status !== "success") {
|
|
126
132
|
throw new Error(`Dispatch failed: ${result.status}`);
|
|
127
133
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "viza",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.18",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Viza unified command line interface",
|
|
6
6
|
"bin": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"release:full": "rm -rf dist && npx npm-check-updates -u && npm install && git add package.json package-lock.json && git commit -m 'chore(deps): auto update dependencies before release' || echo 'No changes' && node versioning.js && npm login && npm publish --tag latest --access public && git push"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@vizamodo/viza-dispatcher": "^1.5.
|
|
20
|
+
"@vizamodo/viza-dispatcher": "^1.5.11",
|
|
21
21
|
"adm-zip": "^0.5.16",
|
|
22
22
|
"chalk": "^5.6.2",
|
|
23
23
|
"clipboardy": "^5.3.1",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/adm-zip": "^0.5.7",
|
|
31
31
|
"@types/figlet": "^1.7.0",
|
|
32
|
-
"@types/node": "^25.3.
|
|
32
|
+
"@types/node": "^25.3.5",
|
|
33
33
|
"@types/prompts": "^2.4.9",
|
|
34
34
|
"ts-node": "^10.9.2",
|
|
35
35
|
"typescript": "^5.9.3"
|