@dosu/cli 0.58.0 → 0.58.1
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 +20 -15
- package/package.json +1 -1
package/bin/dosu.js
CHANGED
|
@@ -1083,7 +1083,7 @@ function isNpxInvocation(channel = INSTALL_CHANNEL, env = process.env) {
|
|
|
1083
1083
|
function getVersionString() {
|
|
1084
1084
|
return `v${VERSION}`;
|
|
1085
1085
|
}
|
|
1086
|
-
var VERSION = "0.58.
|
|
1086
|
+
var VERSION = "0.58.1", INSTALL_CHANNEL = "npm";
|
|
1087
1087
|
|
|
1088
1088
|
// src/debug/logger.ts
|
|
1089
1089
|
import {
|
|
@@ -13742,7 +13742,7 @@ var init_sync = __esm(() => {
|
|
|
13742
13742
|
});
|
|
13743
13743
|
|
|
13744
13744
|
// src/telemetry/debug-id.ts
|
|
13745
|
-
var BUNDLE_DEBUG_ID_PLACEHOLDER = "
|
|
13745
|
+
var BUNDLE_DEBUG_ID_PLACEHOLDER = "9cb59d41-7339-0702-6475-6e2164756e21";
|
|
13746
13746
|
|
|
13747
13747
|
// src/telemetry/telemetry.ts
|
|
13748
13748
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
@@ -60940,8 +60940,7 @@ function newBinaryInvocation(channel, args, entrypoint = process.argv[1], execPa
|
|
|
60940
60940
|
function isInteractiveTerminal() {
|
|
60941
60941
|
return process.stdin.isTTY === true && process.stdout.isTTY === true;
|
|
60942
60942
|
}
|
|
60943
|
-
function setupAgentsWithNewBinary(channel, options) {
|
|
60944
|
-
const interactive = options.interactive ?? isInteractiveTerminal();
|
|
60943
|
+
function setupAgentsWithNewBinary(channel, interactive, options) {
|
|
60945
60944
|
const invocation = newBinaryInvocation(channel, postUpgradeArgs(interactive), options.entrypoint ?? process.argv[1]);
|
|
60946
60945
|
if (!invocation) {
|
|
60947
60946
|
console.error(SETUP_FALLBACK);
|
|
@@ -60964,18 +60963,21 @@ async function completeUpgrade(channel = INSTALL_CHANNEL, options = {}) {
|
|
|
60964
60963
|
const status = runUpgrade(channel, options);
|
|
60965
60964
|
if (status !== 0)
|
|
60966
60965
|
return status;
|
|
60967
|
-
|
|
60968
|
-
|
|
60969
|
-
|
|
60970
|
-
|
|
60971
|
-
|
|
60972
|
-
|
|
60966
|
+
const interactive = options.interactive ?? isInteractiveTerminal();
|
|
60967
|
+
if (!interactive) {
|
|
60968
|
+
console.log("Updating Dosu skills...");
|
|
60969
|
+
try {
|
|
60970
|
+
const result = await installSkill();
|
|
60971
|
+
if (result.success) {
|
|
60972
|
+
console.log(import_picocolors31.default.green("✓ Skills updated."));
|
|
60973
|
+
} else {
|
|
60974
|
+
console.error('Skills could not be refreshed. Run "dosu skill update" to retry.');
|
|
60975
|
+
}
|
|
60976
|
+
} catch {
|
|
60973
60977
|
console.error('Skills could not be refreshed. Run "dosu skill update" to retry.');
|
|
60974
60978
|
}
|
|
60975
|
-
} catch {
|
|
60976
|
-
console.error('Skills could not be refreshed. Run "dosu skill update" to retry.');
|
|
60977
60979
|
}
|
|
60978
|
-
setupAgentsWithNewBinary(channel, options);
|
|
60980
|
+
setupAgentsWithNewBinary(channel, interactive, options);
|
|
60979
60981
|
return 0;
|
|
60980
60982
|
}
|
|
60981
60983
|
function upgradeCommand() {
|
|
@@ -66364,7 +66366,10 @@ function shouldRunBackgroundChecks(actionName) {
|
|
|
66364
66366
|
function shouldRunMcpRefreshCheck(actionCommand) {
|
|
66365
66367
|
if (actionCommand.name() === "setup")
|
|
66366
66368
|
return false;
|
|
66367
|
-
|
|
66369
|
+
const parent = actionCommand.parent?.name();
|
|
66370
|
+
if (actionCommand.name() === "refresh" && parent === "mcp")
|
|
66371
|
+
return false;
|
|
66372
|
+
return !(actionCommand.name() === "sync" && parent === "knowledge");
|
|
66368
66373
|
}
|
|
66369
66374
|
function commandTelemetryName(actionCommand) {
|
|
66370
66375
|
const segments = [];
|
|
@@ -66942,4 +66947,4 @@ main().catch((err) => {
|
|
|
66942
66947
|
process.exit(1);
|
|
66943
66948
|
});
|
|
66944
66949
|
|
|
66945
|
-
//# debugId=
|
|
66950
|
+
//# debugId=9cb59d41-7339-0702-6475-6e2164756e21
|