diff --git a/skillhub-cli/src/cli.ts b/skillhub-cli/src/cli.ts index 00e8851e..13291e9c 100644 --- a/skillhub-cli/src/cli.ts +++ b/skillhub-cli/src/cli.ts @@ -50,7 +50,6 @@ function buildTopLevelHelp(version: string): string { sections.push(formatSection("Discovery", [ { cmd: "explore", desc: "Browse or search skills from the registry", alias: "find, find-skills, search" }, { cmd: "inspect ", desc: "View skill metadata and versions", alias: "info, view" }, - { cmd: "resolve ", desc: "Resolve the latest version of a skill" }, ])); sections.push(""); @@ -60,7 +59,6 @@ function buildTopLevelHelp(version: string): string { { cmd: "update [skill]", desc: "Update installed skills from their source", alias: "up" }, { cmd: "uninstall [skill]", desc: "Uninstall a skill from local agent", alias: "un" }, { cmd: "list", desc: "List installed skills", alias: "ls" }, - { cmd: "check", desc: "Check installed skills against lock file" }, ])); sections.push(""); @@ -68,20 +66,15 @@ function buildTopLevelHelp(version: string): string { { cmd: "me skills", desc: "List your published skills", alias: "me ls" }, { cmd: "me stars", desc: "List your starred skills" }, { cmd: "me namespaces", desc: "List namespaces you have access to" }, + { cmd: "me submissions", desc: "List your review submissions" }, { cmd: "rating ", desc: "View your rating for a skill" }, - { cmd: "reviews", desc: "List your review submissions", alias: "reviews my, reviews submissions" }, ])); sections.push(""); - sections.push(formatSection("Publish & Content", [ - { cmd: "init [name]", desc: "Create a new SKILL.md template" }, + sections.push(formatSection("Publish & Manage", [ { cmd: "publish [path]", desc: "Publish a skill to SkillHub registry" }, { cmd: "sync [path]", desc: "Scan and publish all skills from a directory" }, { cmd: "delete ", desc: "Delete a skill you own", alias: "del, unpublish" }, - ])); - sections.push(""); - - sections.push(formatSection("Skill Lifecycle", [ { cmd: "archive ", desc: "Archive a skill you own" }, { cmd: "hide ", desc: "Hide a skill" }, { cmd: "unhide ", desc: "Unhide a skill" }, diff --git a/skillhub-cli/src/commands/me.ts b/skillhub-cli/src/commands/me.ts index 6d0aac7d..fde1d0de 100644 --- a/skillhub-cli/src/commands/me.ts +++ b/skillhub-cli/src/commands/me.ts @@ -113,4 +113,27 @@ export function registerMe(program: Command) { process.exitCode = 1; } }); + + me + .command("submissions") + .description("List your review submissions") + .action(async () => { + try { + const token = await requireToken(); + const config = loadConfigFromProgram(program); + const client = new ApiClient({ baseUrl: config.registry, token, debug: program.opts().debug }); + const submissions = await client.get<{ id: number; skillSlug: string; skillDisplayName: string; namespace: string; version: string; status: string; createdAt: string }[]>("/api/v1/reviews/my-submissions"); + if (!submissions || submissions.length === 0) { + console.log("No review submissions."); + return; + } + for (const r of submissions) { + info(`${r.skillDisplayName} (${r.skillSlug})`); + dim(` ${r.namespace} · v${r.version} · ${r.status} · ${r.createdAt}`); + } + } catch (e: any) { + error(`Failed: ${e.message}`); + process.exitCode = 1; + } + }); }