viza 1.9.13 → 1.9.15
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/cli/options.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export function getGlobalOptions() {
|
|
2
2
|
return [
|
|
3
3
|
{ flags: "--status", description: "Show status only (no execution)" },
|
|
4
|
-
{ flags: "--keep-log", description: "Keep execution logs after completion"
|
|
4
|
+
{ flags: "--keep-log", description: "Keep execution logs after completion" },
|
|
5
5
|
{ flags: "--self-hosted", description: "Use self-hosted runner (viza-builder)" }
|
|
6
6
|
];
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
2
|
export function resolveBinaryContext() {
|
|
3
3
|
const bin = path.basename(process.argv[1] ?? "");
|
|
4
|
-
const env = bin.startsWith("
|
|
4
|
+
const env = bin.startsWith("x") ? "prod" : "dev";
|
|
5
5
|
let runner = "hub";
|
|
6
6
|
if (bin.includes("builder"))
|
|
7
7
|
runner = "builder";
|
|
@@ -139,6 +139,10 @@ export async function dispatchIntentAndWait(input, opts = {}) {
|
|
|
139
139
|
const mode = resolveExecutionMode(opts);
|
|
140
140
|
const cliVersion = getCliVersion();
|
|
141
141
|
showDispatchBanner(input, { cliVersion }, opts.status);
|
|
142
|
+
// Show dispatch timestamp for log correlation
|
|
143
|
+
const now = new Date();
|
|
144
|
+
const ts = now.toISOString().replace("T", " ").slice(0, 16);
|
|
145
|
+
console.log(chalk.dim(`\n🕒 Dispatch at ${chalk.yellow(`${ts}`)}\n`));
|
|
142
146
|
// 1. Khởi tạo các Promise nhưng CHƯA await ngay
|
|
143
147
|
const updateCheckPromise = checkForCliUpdateSoft().catch(() => null);
|
|
144
148
|
const spinner = startSpinner("Waiting for dispatch session");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "viza",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.15",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Viza unified command line interface",
|
|
6
6
|
"bin": {
|
|
@@ -9,7 +9,13 @@
|
|
|
9
9
|
"viza-deployer": "dist/bin/viza.js",
|
|
10
10
|
"xviza": "dist/bin/viza.js",
|
|
11
11
|
"xviza-builder": "dist/bin/viza.js",
|
|
12
|
-
"xviza-deployer": "dist/bin/viza.js"
|
|
12
|
+
"xviza-deployer": "dist/bin/viza.js",
|
|
13
|
+
"v": "dist/bin/viza.js",
|
|
14
|
+
"v-builder": "dist/bin/viza.js",
|
|
15
|
+
"v-deployer": "dist/bin/viza.js",
|
|
16
|
+
"x": "dist/bin/viza.js",
|
|
17
|
+
"x-builder": "dist/bin/viza.js",
|
|
18
|
+
"x-deployer": "dist/bin/viza.js"
|
|
13
19
|
},
|
|
14
20
|
"files": [
|
|
15
21
|
"dist"
|