viza 1.6.23 → 1.6.29

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.
@@ -79,9 +79,17 @@ export async function loginAwsCommand(options) {
79
79
  if (result.status !== "success") {
80
80
  return;
81
81
  }
82
- if (!result.resultBuffer) {
82
+ if (result.kind !== "runtime") {
83
83
  return;
84
84
  }
85
- const awsResult = parseAwsLoginResult(result.resultBuffer);
85
+ if (!result.data) {
86
+ return;
87
+ }
88
+ const awsResult = result.data;
89
+ if (typeof awsResult.loginUrl !== "string" ||
90
+ typeof awsResult.shortUrl !== "string" ||
91
+ typeof awsResult.ttlHours !== "number") {
92
+ throw new Error("invalid_runtime_aws_login_result_shape");
93
+ }
86
94
  await showSsoLinkMenu(awsResult.loginUrl, awsResult.shortUrl, awsResult.ttlHours);
87
95
  }
@@ -11,6 +11,10 @@ import { resolveExecutionMode } from "./resolveExecutionMode.js";
11
11
  * - otherwise => render log (if present)
12
12
  */
13
13
  function maybeRenderLog(result, policy) {
14
+ // Only GitHub execution produces log artifacts
15
+ if (result.kind !== "github") {
16
+ return;
17
+ }
14
18
  // KISS: only skip logs when success + hide.
15
19
  if (result.status === "success" && policy === "hide") {
16
20
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viza",
3
- "version": "1.6.23",
3
+ "version": "1.6.29",
4
4
  "type": "module",
5
5
  "description": "Viza unified command line interface",
6
6
  "bin": {
@@ -16,7 +16,7 @@
16
16
  "release:prod": "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"
17
17
  },
18
18
  "dependencies": {
19
- "@vizamodo/viza-dispatcher": "^1.4.98",
19
+ "@vizamodo/viza-dispatcher": "^1.5.1",
20
20
  "adm-zip": "^0.5.16",
21
21
  "chalk": "^5.6.2",
22
22
  "clipboardy": "^5.3.1",
@@ -28,7 +28,7 @@
28
28
  "devDependencies": {
29
29
  "@types/adm-zip": "^0.5.7",
30
30
  "@types/figlet": "^1.7.0",
31
- "@types/node": "^25.3.1",
31
+ "@types/node": "^25.3.3",
32
32
  "@types/prompts": "^2.4.9",
33
33
  "ts-node": "^10.9.2",
34
34
  "typescript": "^5.9.3"