@dosu/cli 0.37.0-alpha.1 → 0.37.0-alpha.3
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 +1 -1
- package/bin/dosu.js +36 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -92,7 +92,7 @@ Or right-click the binary, select "Open", and click "Open" in the dialog.
|
|
|
92
92
|
| `dosu setup` | Run the setup wizard (auth → deployment → detect tools → configure) |
|
|
93
93
|
| `dosu login` | Authenticate with Dosu via browser OAuth |
|
|
94
94
|
| `dosu logout` | Clear saved credentials |
|
|
95
|
-
| `dosu status` | Show current authentication and MCP status |
|
|
95
|
+
| `dosu status [--json]` | Show current authentication and MCP status |
|
|
96
96
|
| `dosu mcp list` | List supported AI tools |
|
|
97
97
|
| `dosu mcp add <tool>` | Add the Dosu MCP server to a specific tool |
|
|
98
98
|
| `dosu logs` | View or manage debug logs (`--tail`, `--clear`) |
|
package/bin/dosu.js
CHANGED
|
@@ -4759,7 +4759,7 @@ var init_dist4 = __esm(() => {
|
|
|
4759
4759
|
function getVersionString() {
|
|
4760
4760
|
return `v${VERSION}`;
|
|
4761
4761
|
}
|
|
4762
|
-
var VERSION = "0.37.0-alpha.
|
|
4762
|
+
var VERSION = "0.37.0-alpha.3", INSTALL_CHANNEL = "npm";
|
|
4763
4763
|
|
|
4764
4764
|
// src/debug/logger.ts
|
|
4765
4765
|
import {
|
|
@@ -12360,7 +12360,7 @@ Run ${info("dosu mcp add <agent>")} to manually configure an agent.`);
|
|
|
12360
12360
|
async function runInstallSkill(providerIDs) {
|
|
12361
12361
|
logger.info("setup", "Step: install skill");
|
|
12362
12362
|
try {
|
|
12363
|
-
const result = await installSkill(providerIDs);
|
|
12363
|
+
const result = await installSkill(providerIDs, { quiet: true });
|
|
12364
12364
|
if (result.success) {
|
|
12365
12365
|
logger.info("setup", `Skill installed${result.sha ? ` sha=${result.sha}` : ""}`);
|
|
12366
12366
|
log.success("Skill installed");
|
|
@@ -13586,7 +13586,7 @@ async function runAgentSetup(opts) {
|
|
|
13586
13586
|
}
|
|
13587
13587
|
emitStep({
|
|
13588
13588
|
step: "done",
|
|
13589
|
-
agent_next_steps: `Dosu is configured for ${provider.name()}. Tell the user setup is complete and they can ask their agent a Dosu question. Run 'dosu status' to verify.`
|
|
13589
|
+
agent_next_steps: `Dosu is configured for ${provider.name()}. Tell the user setup is complete and they can ask their agent a Dosu question. Run 'dosu status --json' to verify.`
|
|
13590
13590
|
});
|
|
13591
13591
|
return 0;
|
|
13592
13592
|
}
|
|
@@ -16875,14 +16875,45 @@ Run 'dosu --help' to see available commands.`;
|
|
|
16875
16875
|
saveConfig(cfg);
|
|
16876
16876
|
console.log("Successfully logged out.");
|
|
16877
16877
|
});
|
|
16878
|
-
program2.command("status").description("Show current authentication and MCP status").action(async () => {
|
|
16878
|
+
program2.command("status").description("Show current authentication and MCP status").option("--json", "Output as JSON").action(async (opts) => {
|
|
16879
16879
|
const cfg = loadConfig();
|
|
16880
|
+
const mode = cfg.mode === MODE_OSS ? "oss" : "cloud";
|
|
16880
16881
|
if (!isAuthenticated(cfg)) {
|
|
16882
|
+
if (opts.json) {
|
|
16883
|
+
console.log(JSON.stringify({
|
|
16884
|
+
authenticated: false,
|
|
16885
|
+
session_status: "missing",
|
|
16886
|
+
mode,
|
|
16887
|
+
mcp: {
|
|
16888
|
+
status: "not_configured",
|
|
16889
|
+
deployment_id: null,
|
|
16890
|
+
deployment_name: null
|
|
16891
|
+
}
|
|
16892
|
+
}, null, 2));
|
|
16893
|
+
return;
|
|
16894
|
+
}
|
|
16881
16895
|
console.log("Status: Not logged in");
|
|
16882
16896
|
console.log("Run 'dosu login' to authenticate.");
|
|
16883
16897
|
return;
|
|
16884
16898
|
}
|
|
16885
|
-
|
|
16899
|
+
const sessionStatus = isTokenExpired(cfg) && !await ensureFreshSession(cfg) ? "expired" : "valid";
|
|
16900
|
+
if (opts.json) {
|
|
16901
|
+
const deploymentId = cfg.active_account.target?.deployment_id ?? null;
|
|
16902
|
+
const deploymentName = cfg.active_account.target?.deployment_name ?? null;
|
|
16903
|
+
const mcpStatus = cfg.mode === MODE_OSS ? "public_libraries" : deploymentId ? "configured" : "not_configured";
|
|
16904
|
+
console.log(JSON.stringify({
|
|
16905
|
+
authenticated: sessionStatus === "valid",
|
|
16906
|
+
session_status: sessionStatus,
|
|
16907
|
+
mode,
|
|
16908
|
+
mcp: {
|
|
16909
|
+
status: mcpStatus,
|
|
16910
|
+
deployment_id: deploymentId,
|
|
16911
|
+
deployment_name: deploymentName
|
|
16912
|
+
}
|
|
16913
|
+
}, null, 2));
|
|
16914
|
+
return;
|
|
16915
|
+
}
|
|
16916
|
+
if (sessionStatus === "expired") {
|
|
16886
16917
|
console.log("Status: Token expired");
|
|
16887
16918
|
console.log("Run 'dosu login' to re-authenticate.");
|
|
16888
16919
|
} else {
|