viza 1.7.35 → 1.7.36
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.
- package/dist/src/core/dispatch.js +10 -6
- package/package.json +1 -1
|
@@ -127,15 +127,19 @@ export async function dispatchIntentAndWait(input, opts = {}) {
|
|
|
127
127
|
showDispatchBanner(input, meta, opts.status);
|
|
128
128
|
const spinner = startSpinner("Waiting for dispatch session");
|
|
129
129
|
const handle = await dispatchIntent(input, mode);
|
|
130
|
-
//
|
|
131
|
-
|
|
132
|
-
|
|
130
|
+
// Non-blocking update check (utility only)
|
|
131
|
+
void checkForCliUpdateSoft()
|
|
132
|
+
.then((updateInfo) => {
|
|
133
|
+
if (!updateInfo?.hasUpdate)
|
|
134
|
+
return;
|
|
133
135
|
const title = chalk.gray.bold("\n⬆️ Update available");
|
|
134
136
|
const ver = chalk.yellow(`${updateInfo.current} → ${updateInfo.latest}`);
|
|
135
137
|
const cmd = chalk.cyan("npm i -g viza");
|
|
136
|
-
console.log(`\n${title} ${ver}`);
|
|
137
|
-
|
|
138
|
-
|
|
138
|
+
console.log(`\n${title} ${ver}\n${chalk.dim(" Run:")} ${cmd}\n`);
|
|
139
|
+
})
|
|
140
|
+
.catch(() => {
|
|
141
|
+
// best-effort only — never affect dispatch flow
|
|
142
|
+
});
|
|
139
143
|
try {
|
|
140
144
|
const result = await handle.wait();
|
|
141
145
|
stopSpinner(spinner, result.status === "success" ? "✅ Done" : "❌ Failed");
|