@tostudy-ai/cli 0.18.2 → 0.18.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/dist/main.js CHANGED
@@ -1021,6 +1021,9 @@ var init_errors_pt_br = __esm({
1021
1021
  courseArchived: "Este curso foi arquivado e est\xE1 dispon\xEDvel somente para leitura.\nUse `tostudy lesson` para revisar o conte\xFAdo j\xE1 estudado.\n",
1022
1022
  noActiveCourse: "Nenhum curso ativo nesta pasta.\nVeja seus cursos com `tostudy courses` e ative um com `tostudy select <n>`.\n",
1023
1023
  studyWorkspaceHint: "Dica: rode `tostudy select` desta pasta para us\xE1-la como workspace, ou `tostudy workspace setup` para criar em ~/study/. Depois rode `tostudy export` para gravar o exerc\xEDcio e os crit\xE9rios de valida\xE7\xE3o.\n",
1024
+ setupCommandDescription: "Atalho antigo. A pasta de estudo \xE9 workspace setup; o MCP \xE9 setup mcp",
1025
+ setupRetiredNotice: "\n \u26A0\uFE0F `tostudy setup` n\xE3o cria a pasta de estudo.",
1026
+ setupRetiredNext: " Pasta de estudo: `tostudy workspace setup`. MCP: `tostudy setup mcp`. Para entrar: `tostudy login`, depois `tostudy courses` e `tostudy select <n>`.\n",
1024
1027
  enrollmentNotEntitled: "\u{1F6AB} Sua matr\xEDcula neste curso n\xE3o est\xE1 mais ativa (reembolso, cancelamento ou preview expirado).\nPara voltar a estudar, adquira o curso novamente em https://tostudy.ai.\n",
1025
1028
  creator: {
1026
1029
  loginBrowserOnly: "`--creator` s\xF3 funciona no login pelo browser. Rode `tostudy login --creator` sem --code, --magic-link ou --manual.",
@@ -1115,6 +1118,9 @@ var init_errors_en_us = __esm({
1115
1118
  courseArchived: "This course has been archived and is available for reading only.\nUse `tostudy lesson` to review the content you've already studied.\n",
1116
1119
  noActiveCourse: "No active course in this folder.\nList your courses with `tostudy courses` and activate one with `tostudy select <n>`.\n",
1117
1120
  studyWorkspaceHint: "Tip: run `tostudy select` in this folder to use it as the workspace, or `tostudy workspace setup` to create one in ~/study/. Then run `tostudy export` to save the exercise and the validation criteria on this computer.\n",
1121
+ setupCommandDescription: "Old shortcut. The study folder is workspace setup; MCP is setup mcp",
1122
+ setupRetiredNotice: "\n \u26A0\uFE0F `tostudy setup` does not create the study folder.",
1123
+ setupRetiredNext: " Study folder: `tostudy workspace setup`. MCP: `tostudy setup mcp`. To sign in: `tostudy login`, then `tostudy courses` and `tostudy select <n>`.\n",
1118
1124
  enrollmentNotEntitled: "\u{1F6AB} Your enrollment in this course is no longer active (refund, cancellation, or expired preview).\nTo study again, purchase the course at https://tostudy.ai.\n",
1119
1125
  creator: {
1120
1126
  loginBrowserOnly: "`--creator` only works with the browser login. Run `tostudy login --creator` without --code, --magic-link or --manual.",
@@ -3669,6 +3675,7 @@ var logoutCommand = new Command2("logout").description("Remove token local").act
3669
3675
 
3670
3676
  // src/commands/setup.ts
3671
3677
  init_guards();
3678
+ init_errors();
3672
3679
  import { Command as Command3 } from "commander";
3673
3680
 
3674
3681
  // src/installer/mcp-setup.ts
@@ -3714,10 +3721,9 @@ var defaultDeps = {
3714
3721
  }
3715
3722
  };
3716
3723
  async function runSetup(_opts, deps = defaultDeps) {
3717
- deps.log("\n \u26A0\uFE0F `tostudy setup` foi incorporado ao `tostudy login`.");
3718
- deps.log(
3719
- " Rode `tostudy login`, depois `tostudy courses` e `tostudy select <n>` para estudar no terminal.\n"
3720
- );
3724
+ const errors = getErrors();
3725
+ deps.log(errors.setupRetiredNotice);
3726
+ deps.log(errors.setupRetiredNext);
3721
3727
  }
3722
3728
  async function runSetupMcpSubcommand() {
3723
3729
  console.log("\n ToStudy MCP Setup\n \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n");
@@ -3730,7 +3736,7 @@ async function runSetupMcpSubcommand() {
3730
3736
  console.log(" \u2192 Reinicie o IDE para ativar o servidor MCP");
3731
3737
  console.log(" \u2192 tostudy doctor (verificar conex\xE3o)\n");
3732
3738
  }
3733
- var setupCommand = new Command3("setup").description("Configura ambiente para estudar").option("--quick", "Setup r\xE1pido (sem wizard)").option("--ide <ide>", "Configura IDE espec\xEDfica").option("--mcp", "Configura o MCP nas IDEs detectadas usando a sess\xE3o atual do CLI").action(async (opts) => {
3739
+ var setupCommand = new Command3("setup").description(getErrors().setupCommandDescription).option("--quick", "Setup r\xE1pido (sem wizard)").option("--ide <ide>", "Configura IDE espec\xEDfica").option("--mcp", "Configura o MCP nas IDEs detectadas usando a sess\xE3o atual do CLI").action(async (opts) => {
3734
3740
  await runSetup(opts);
3735
3741
  });
3736
3742
  setupCommand.command("mcp").description("Configura MCP server no seu IDE automaticamente").action(async () => {
@@ -3780,7 +3786,7 @@ init_workspace_state();
3780
3786
  init_formatter();
3781
3787
 
3782
3788
  // src/version.ts
3783
- var CLI_VERSION = true ? "0.18.2" : "0.7.1";
3789
+ var CLI_VERSION = true ? "0.18.3" : "0.7.1";
3784
3790
 
3785
3791
  // src/update-checker.ts
3786
3792
  init_config_dir();