@dosu/cli 0.20.3 → 0.21.0
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/bin/dosu.js +9 -2
- package/package.json +2 -2
package/bin/dosu.js
CHANGED
|
@@ -4562,7 +4562,7 @@ var init_dist4 = __esm(() => {
|
|
|
4562
4562
|
function getVersionString() {
|
|
4563
4563
|
return `v${VERSION}`;
|
|
4564
4564
|
}
|
|
4565
|
-
var VERSION = "0.
|
|
4565
|
+
var VERSION = "0.21.0", INSTALL_CHANNEL = "npm";
|
|
4566
4566
|
|
|
4567
4567
|
// src/debug/logger.ts
|
|
4568
4568
|
import {
|
|
@@ -14682,10 +14682,17 @@ async function fetchLatestVersion() {
|
|
|
14682
14682
|
clearTimeout(timeout);
|
|
14683
14683
|
}
|
|
14684
14684
|
}
|
|
14685
|
+
function buildUpdateHint(channel) {
|
|
14686
|
+
if (channel === "homebrew")
|
|
14687
|
+
return 'Run "brew upgrade dosu"';
|
|
14688
|
+
if (channel === "binary")
|
|
14689
|
+
return "Download from https://github.com/dosu-ai/dosu-cli/releases";
|
|
14690
|
+
return 'Run "npm update -g @dosu/cli"';
|
|
14691
|
+
}
|
|
14685
14692
|
function displayNotice2(current, latest) {
|
|
14686
14693
|
const msg = `
|
|
14687
14694
|
${import_picocolors24.default.yellow(` Update available: ${current} → ${latest}`)}
|
|
14688
|
-
` + `${import_picocolors24.default.dim(
|
|
14695
|
+
` + `${import_picocolors24.default.dim(` ${buildUpdateHint(INSTALL_CHANNEL)}`)}
|
|
14689
14696
|
`;
|
|
14690
14697
|
console.error(msg);
|
|
14691
14698
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dosu/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Dosu CLI - Manage MCP servers for AI tools",
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dev:local": "DOSU_DEV=true bun run src/index.ts",
|
|
22
22
|
"build": "bun --env-file=.env.production run scripts/build-compile.ts",
|
|
23
23
|
"build:dev": "bun --env-file=.env.development run scripts/build-compile.ts",
|
|
24
|
-
"build:npm": "bun --env-file=.env.production run scripts/build-npm.ts",
|
|
24
|
+
"build:npm": "DOSU_INSTALL_CHANNEL=npm bun --env-file=.env.production run scripts/build-npm.ts",
|
|
25
25
|
"build:all": "bun --env-file=.env.production run scripts/build-all.ts",
|
|
26
26
|
"test": "bunx vitest run",
|
|
27
27
|
"test:watch": "bunx vitest",
|