@tostudy-ai/cli 0.18.24 → 0.18.26

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
@@ -1104,8 +1104,8 @@ var init_errors_pt_br = __esm({
1104
1104
  statusLine: "Status: {status} \xB7 revis\xE3o: {review}",
1105
1105
  lastAudit: "\xDAltima auditoria: {verdict} \xB7 nota {score}/100",
1106
1106
  noAudit: "\xDAltima auditoria: nenhuma",
1107
- statusReady: "\u2713 Pronto para publicar pelo portal.",
1108
- statusNotReady: "Falta para publicar:",
1107
+ statusReady: "\u2713 Pronto para enviar para revis\xE3o pelo portal.",
1108
+ statusNotReady: "Falta para enviar para revis\xE3o:",
1109
1109
  portal: "Portal: {url}",
1110
1110
  noCourses: "Voc\xEA ainda n\xE3o tem cursos. Comece com `tostudy creator init <pasta>`.",
1111
1111
  mineHeader: "Seus cursos (autoria):",
@@ -1218,8 +1218,8 @@ var init_errors_en_us = __esm({
1218
1218
  statusLine: "Status: {status} \xB7 review: {review}",
1219
1219
  lastAudit: "Last audit: {verdict} \xB7 score {score}/100",
1220
1220
  noAudit: "Last audit: none",
1221
- statusReady: "\u2713 Ready to publish from the portal.",
1222
- statusNotReady: "Still missing before publishing:",
1221
+ statusReady: "\u2713 Ready to submit for review from the portal.",
1222
+ statusNotReady: "Still missing before submitting for review:",
1223
1223
  portal: "Portal: {url}",
1224
1224
  noCourses: "You have no courses yet. Start with `tostudy creator init <folder>`.",
1225
1225
  mineHeader: "Your courses (authoring):",
@@ -3828,7 +3828,7 @@ import { spawn } from "node:child_process";
3828
3828
  import { hostname } from "node:os";
3829
3829
 
3830
3830
  // src/version.ts
3831
- var CLI_VERSION = true ? "0.18.24" : "0.7.1";
3831
+ var CLI_VERSION = true ? "0.18.26" : "0.7.1";
3832
3832
 
3833
3833
  // src/installer/mcp-setup.ts
3834
3834
  function safeServerError(text2) {
@@ -20019,7 +20019,7 @@ function buildInitTemplate(userName, course, progress) {
20019
20019
  lines.push("## 5. Coexist\xEAncia");
20020
20020
  lines.push("Este workspace pode ter suas pr\xF3prias instru\xE7\xF5es (CLAUDE.md, AGENTS.md).");
20021
20021
  lines.push("- Instru\xE7\xF5es do projeto \u2192 decis\xF5es de c\xF3digo (estilo, lint, arquitetura)");
20022
- lines.push("- Instru\xE7\xF5es do ToStudy \u2192 fluxo de estudo (navega\xE7\xE3o, exerc\xEDcios, valida\xE7\xE3o)");
20022
+ lines.push("- Instru\xE7\xF5es da ToStudy \u2192 fluxo de estudo (navega\xE7\xE3o, exerc\xEDcios, valida\xE7\xE3o)");
20023
20023
  return lines.join("\n");
20024
20024
  }
20025
20025
  function resolveTutorMode(level) {
@@ -22393,11 +22393,11 @@ function renderCreatorSkill() {
22393
22393
  const lines = [
22394
22394
  "# ToStudy Creator \u2014 author a course with your agent",
22395
22395
  "",
22396
- "You are helping a creator write a ToStudy course in this folder. You write the files; the `tostudy` CLI validates and uploads them as a draft; the creator reviews and publishes in the web portal. Work through the steps in order and stop where a step says to wait.",
22396
+ "You are helping a creator write a ToStudy course in this folder. You write the files; the `tostudy` CLI validates and uploads them as a draft; the creator reviews it in the web portal and submits it for admin review; an admin publishes it. Work through the steps in order and stop where a step says to wait.",
22397
22397
  "",
22398
22398
  "## Ground rules",
22399
22399
  "",
22400
- "- You never publish, and you never say a course is published. The CLI only uploads a draft; publishing happens in the portal after the creator's review and a passing audit.",
22400
+ "- You never publish, and you never say a course is published. The CLI only uploads a draft. The creator submits it for review in the portal after their own review and a passing audit, and an admin publishes it.",
22401
22401
  "- Use relative paths inside this folder only. Never an absolute path, never `..`, never a `$VAR` path.",
22402
22402
  "- Never edit `courseId` in `tostudy.json`. `tostudy creator init` generated it and it identifies the course on the server.",
22403
22403
  "- `tostudy.json` carries only the keys shown below. No `status`, `visibility`, `pricing`, `priceUsd`, `verified`, `featured`, `creatorReviewStatus`, `origin` or extra ids: unknown keys are rejected, not ignored.",
@@ -22431,7 +22431,7 @@ function renderCreatorSkill() {
22431
22431
  "",
22432
22432
  "## 7. Hand over for the portal review",
22433
22433
  "",
22434
- "Run `tostudy creator status --json` and tell the creator what is still missing. The creator opens the course with `tostudy creator open`, reviews every lesson in the portal and publishes there. Say that the course is a draft waiting for review.",
22434
+ "Run `tostudy creator status --json` and tell the creator what is still missing. The creator opens the course with `tostudy creator open`, reviews every lesson in the portal and submits it for admin review there; an admin publishes it. Say that the course is a draft waiting for review.",
22435
22435
  "",
22436
22436
  "## Contract reference",
22437
22437
  "",
@@ -22825,7 +22825,9 @@ function renderStatus(remote, readiness, url2) {
22825
22825
  lines.push(fillTemplate(copy.portal, { url: url2 }));
22826
22826
  return lines.join("\n");
22827
22827
  }
22828
- creatorCommand.command("status").description("Show review status, last audit and what is still missing before publishing").option("--json", "Output structured JSON").action(async (opts) => {
22828
+ creatorCommand.command("status").description(
22829
+ "Show review status, last audit and what is still missing before submitting for review"
22830
+ ).option("--json", "Output structured JSON").action(async (opts) => {
22829
22831
  try {
22830
22832
  const courseId = await readCourseId(process.cwd());
22831
22833
  const session = await requireSession();