@tostudy-ai/cli 0.18.18 → 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 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.18" : "0.7.1";
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!");
@@ -22391,8 +22393,9 @@ var TARGETS = {
22391
22393
  path: `.cursor/rules/${SKILL_NAME}.mdc`,
22392
22394
  wrap: (body) => cursorMdc("ToStudy Creator", body)
22393
22395
  },
22394
- // Codex has no project-level command channel; its prompts dir is global.
22395
- codex: { path: `.codex/prompts/${SKILL_NAME}.md`, wrap: raw, global: true },
22396
+ // GH-2351 / BUG-1553: Codex has no slash commands and never reads
22397
+ // ~/.codex/prompts/. Writing there produced dead files on disk and announced
22398
+ // an install of a command that does not exist. Left undefined.
22396
22399
  opencode: {
22397
22400
  path: `.opencode/command/${SKILL_NAME}.md`,
22398
22401
  wrap: (body) => `---
@@ -22414,6 +22417,7 @@ function installCreatorSkill(input2) {
22414
22417
  for (const runtime of RUNTIMES) {
22415
22418
  if (!input2.allRuntimes && !runtime.detect(input2.home, input2.cwd)) continue;
22416
22419
  const target = TARGETS[runtime.id];
22420
+ if (!target) continue;
22417
22421
  if (target.global) {
22418
22422
  const file2 = join3(input2.home, target.path);
22419
22423
  mkdirSync4(dirname2(file2), { recursive: true });