@dosu/cli 0.48.2 → 0.49.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.
Files changed (2) hide show
  1. package/bin/dosu.js +23 -5
  2. package/package.json +1 -1
package/bin/dosu.js CHANGED
@@ -4739,7 +4739,7 @@ function isNpxInvocation(channel = INSTALL_CHANNEL, env = process.env) {
4739
4739
  function getVersionString() {
4740
4740
  return `v${VERSION}`;
4741
4741
  }
4742
- var VERSION = "0.48.2", INSTALL_CHANNEL = "npm";
4742
+ var VERSION = "0.49.0", INSTALL_CHANNEL = "npm";
4743
4743
 
4744
4744
  // src/debug/logger.ts
4745
4745
  import {
@@ -10336,7 +10336,7 @@ var init_settings = __esm(() => {
10336
10336
  });
10337
10337
 
10338
10338
  // src/telemetry/debug-id.ts
10339
- var BUNDLE_DEBUG_ID_PLACEHOLDER = "5ce578c4-b058-6d8b-6475-6e2164756e21";
10339
+ var BUNDLE_DEBUG_ID_PLACEHOLDER = "3772d842-939e-9b04-6475-6e2164756e21";
10340
10340
 
10341
10341
  // src/telemetry/telemetry.ts
10342
10342
  import { randomUUID as randomUUID2 } from "node:crypto";
@@ -16764,6 +16764,7 @@ function topicsCommand() {
16764
16764
 
16765
16765
  // src/commands/upgrade.ts
16766
16766
  init_commander();
16767
+ init_skill();
16767
16768
  var import_picocolors24 = __toESM(require_picocolors(), 1);
16768
16769
  import { spawnSync as spawnSync2 } from "node:child_process";
16769
16770
  import { realpathSync } from "node:fs";
@@ -16938,9 +16939,26 @@ Could not update Dosu automatically.`);
16938
16939
  console.log('Run "dosu --version" to verify.');
16939
16940
  return 0;
16940
16941
  }
16942
+ async function completeUpgrade(channel = INSTALL_CHANNEL, options = {}) {
16943
+ const status = runUpgrade(channel, options);
16944
+ if (status !== 0)
16945
+ return status;
16946
+ console.log("Updating Dosu skills...");
16947
+ try {
16948
+ const result = await installSkill();
16949
+ if (result.success) {
16950
+ console.log(import_picocolors24.default.green("✓ Skills updated."));
16951
+ } else {
16952
+ console.error('Skills could not be refreshed. Run "dosu skill update" to retry.');
16953
+ }
16954
+ } catch {
16955
+ console.error('Skills could not be refreshed. Run "dosu skill update" to retry.');
16956
+ }
16957
+ return 0;
16958
+ }
16941
16959
  function upgradeCommand() {
16942
- return new Command("upgrade").description("Update Dosu to the latest version").action(() => {
16943
- const status = runUpgrade();
16960
+ return new Command("upgrade").description("Update Dosu to the latest version and refresh agent skills").action(async () => {
16961
+ const status = await completeUpgrade();
16944
16962
  if (status !== 0)
16945
16963
  process.exitCode = status;
16946
16964
  });
@@ -17599,4 +17617,4 @@ execute().catch((err) => {
17599
17617
  process.exit(1);
17600
17618
  });
17601
17619
 
17602
- //# debugId=5ce578c4-b058-6d8b-6475-6e2164756e21
17620
+ //# debugId=3772d842-939e-9b04-6475-6e2164756e21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dosu/cli",
3
- "version": "0.48.2",
3
+ "version": "0.49.0",
4
4
  "type": "module",
5
5
  "description": "Dosu CLI - Manage MCP servers for AI tools",
6
6
  "license": "MIT",