@tostudy-ai/cli 0.18.19 → 0.18.20
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/dist/main.js +6 -4
- package/dist/main.js.map +2 -2
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -3756,13 +3756,17 @@ import { spawn } from "node:child_process";
|
|
|
3756
3756
|
import { hostname } from "node:os";
|
|
3757
3757
|
|
|
3758
3758
|
// src/version.ts
|
|
3759
|
-
var CLI_VERSION = true ? "0.18.
|
|
3759
|
+
var CLI_VERSION = true ? "0.18.20" : "0.7.1";
|
|
3760
3760
|
|
|
3761
3761
|
// src/installer/mcp-setup.ts
|
|
3762
3762
|
function safeServerError(text2) {
|
|
3763
3763
|
if (typeof text2 !== "string" || text2.length === 0 || text2.length > 200) return null;
|
|
3764
3764
|
return ["Bearer", "mcp_", "eyJ"].some((m) => text2.includes(m)) ? null : text2;
|
|
3765
3765
|
}
|
|
3766
|
+
function mcpKeyRevokeHint(apiUrl) {
|
|
3767
|
+
const base = apiUrl.replace(/\/+$/, "");
|
|
3768
|
+
return `a chave MCP criada aparece em ${base}/settings/security/sessions (Sess\xF5es MCP) e pode ser revogada l\xE1.`;
|
|
3769
|
+
}
|
|
3766
3770
|
async function createMcpApiKey(session, fetchImpl = fetch) {
|
|
3767
3771
|
let res;
|
|
3768
3772
|
try {
|
|
@@ -3842,9 +3846,7 @@ async function runSetupMcpSubcommand() {
|
|
|
3842
3846
|
try {
|
|
3843
3847
|
await runMcpSetup(session, apiKey);
|
|
3844
3848
|
} catch (error49) {
|
|
3845
|
-
console.error(
|
|
3846
|
-
" Instala\xE7\xE3o incompleta: a chave MCP criada aparece em Configura\xE7\xF5es \u203A MCP e pode ser revogada."
|
|
3847
|
-
);
|
|
3849
|
+
console.error(` Instala\xE7\xE3o incompleta: ${mcpKeyRevokeHint(session.apiUrl)}`);
|
|
3848
3850
|
throw error49;
|
|
3849
3851
|
}
|
|
3850
3852
|
console.log("\n Setup MCP completo!");
|