@viza-cli/app 1.5.27 → 1.5.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.
package/README.md CHANGED
@@ -7,7 +7,7 @@ Unified CLI for Viza system.
7
7
  Recommended (global install):
8
8
 
9
9
  ```bash
10
- npm i -g @@viza-cli/app
10
+ npm i -g @viza-cli/app
11
11
  ```
12
12
 
13
13
  ## Usage
@@ -110,7 +110,7 @@ export async function dispatchIntentAndWait(input, opts = {}) {
110
110
  if (updateInfo?.hasUpdate) {
111
111
  const title = chalk.gray.bold("\n⬆️ Update available");
112
112
  const ver = chalk.yellow(`${updateInfo.current} → ${updateInfo.latest}`);
113
- const cmd = chalk.cyan("npm i -g @@viza-cli/app");
113
+ const cmd = chalk.cyan("npm i -g @viza-cli/app");
114
114
  console.log(`\n${title} ${ver}`);
115
115
  console.log(chalk.dim(" Run:") + " " + cmd + "\n");
116
116
  }
@@ -27,7 +27,7 @@ export function getCliVersion() {
27
27
  try {
28
28
  const raw = readFileSync(pkgPath, "utf8");
29
29
  const json = JSON.parse(raw);
30
- if (json?.name === "@@viza-cli/app" && typeof json.version === "string" && json.version.trim()) {
30
+ if (json?.name === "@viza-cli/app" && typeof json.version === "string" && json.version.trim()) {
31
31
  _cached = json.version.trim();
32
32
  return _cached;
33
33
  }
@@ -91,7 +91,7 @@ function semverCompare(a, b) {
91
91
  return 0;
92
92
  }
93
93
  /**
94
- * Checks npm for the latest published version of @@viza-cli/app without throwing and without blocking the main flow.
94
+ * Checks npm for the latest published version of @viza-cli/app without throwing and without blocking the main flow.
95
95
  *
96
96
  * Returns null on failure.
97
97
  */
@@ -114,7 +114,7 @@ export async function checkForCliUpdateSoft() {
114
114
  catch { /* ignore */ }
115
115
  // --- Bắt đầu Fetch mới khi cache hết hạn hoặc sai version ---
116
116
  try {
117
- const registryUrl = `https://registry.npmjs.org/@@viza-cli/app/latest?t=${now}`;
117
+ const registryUrl = `https://registry.npmjs.org/@viza-cli/app/latest?t=${now}`;
118
118
  const res = await fetch(registryUrl, {
119
119
  cache: "no-store",
120
120
  headers: { 'Cache-Control': 'no-cache' }
@@ -66,7 +66,7 @@ export function showBanner(opts) {
66
66
  if (meta?.version) {
67
67
  parts.push(`Version: ${chalk.cyan(meta.version)}`);
68
68
  }
69
- parts.push(`Install: ${chalk.gray(`npm i -g @@viza-cli/app`)}`);
69
+ parts.push(`Install: ${chalk.gray(`npm i -g @viza-cli/app`)}`);
70
70
  if (parts.length) {
71
71
  console.log(chalk.gray(parts.join(chalk.gray(" | "))));
72
72
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viza-cli/app",
3
- "version": "1.5.27",
3
+ "version": "1.5.29",
4
4
  "type": "module",
5
5
  "description": "Viza unified command line interface",
6
6
  "bin": {