viza 1.8.49 → 1.8.50

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.
@@ -22,11 +22,11 @@ function maybeRenderLog(result, policy, currentUser) {
22
22
  return;
23
23
  }
24
24
  // KISS: only skip logs when success + hide.
25
- if (result.status === "success" && policy === "hide") {
25
+ if (result.conclusion === "success" && policy === "hide") {
26
26
  return;
27
27
  }
28
28
  if (result.logBuffer) {
29
- const conclusion = result.status;
29
+ const conclusion = result.conclusion;
30
30
  const logOptions = {
31
31
  conclusion,
32
32
  ...(currentUser !== undefined ? { currentUser } : {})
@@ -159,15 +159,6 @@ export async function dispatchIntentAndWait(input, opts = {}) {
159
159
  stopSpinner(spinner, message);
160
160
  // 5. Render log và thông báo update
161
161
  maybeRenderLog(result, policy, currentUser);
162
- const isSuccess = result.kind === "github"
163
- ? result.status === "success"
164
- : result.status === "success";
165
- if (!isSuccess) {
166
- const reason = result.kind === "github"
167
- ? result.status
168
- : result.status;
169
- throw new Error(`Dispatch failed: ${reason}`);
170
- }
171
162
  if (updateInfo?.hasUpdate) {
172
163
  renderUpdateHint(updateInfo);
173
164
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viza",
3
- "version": "1.8.49",
3
+ "version": "1.8.50",
4
4
  "type": "module",
5
5
  "description": "Viza unified command line interface",
6
6
  "bin": {
@@ -22,7 +22,7 @@
22
22
  "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"
23
23
  },
24
24
  "dependencies": {
25
- "@vizamodo/viza-dispatcher": "^1.5.36",
25
+ "@vizamodo/viza-dispatcher": "^1.5.38",
26
26
  "adm-zip": "^0.5.16",
27
27
  "chalk": "^5.6.2",
28
28
  "clipboardy": "^5.3.1",