diff --git a/src/resources/extensions/sf/commands/handlers/ops.ts b/src/resources/extensions/sf/commands/handlers/ops.ts index 4c5492d0a..970af1eb2 100644 --- a/src/resources/extensions/sf/commands/handlers/ops.ts +++ b/src/resources/extensions/sf/commands/handlers/ops.ts @@ -26,6 +26,7 @@ import { handleSkip, } from "../../commands-maintenance.js"; import { handlePrBranch } from "../../commands-pr-branch.js"; +import { handleRate } from "../../commands-rate.js"; import { handleSessionReport } from "../../commands-session-report.js"; import { handleShip } from "../../commands-ship.js"; import { handleExport } from "../../export.js"; @@ -136,6 +137,14 @@ export async function handleOpsCommand( await handleRecover(ctx, projectRoot()); return true; } + if (trimmed === "rate" || trimmed.startsWith("rate ")) { + await handleRate( + trimmed.replace(/^rate\s*/, "").trim(), + ctx, + projectRoot(), + ); + return true; + } if (trimmed === "export" || trimmed.startsWith("export ")) { await handleExport( trimmed.replace(/^export\s*/, "").trim(), @@ -189,6 +198,15 @@ export async function handleOpsCommand( await handleTodo(trimmed.replace(/^todo\s*/, "").trim(), ctx, pi); return true; } + if (trimmed === "rate" || trimmed.startsWith("rate ")) { + const { handleRate } = await import("../../commands-rate.js"); + await handleRate( + trimmed.replace(/^rate\s*/, "").trim(), + ctx, + process.cwd(), + ); + return true; + } if (trimmed === "config") { await handleConfig(ctx); return true; @@ -377,10 +395,7 @@ Examples: trimmed.startsWith("wt ") ) { const { handleWorktree } = await import("../../commands-worktree.js"); - await handleWorktree( - trimmed.replace(/^(worktree|wt)\s*/, "").trim(), - ctx, - ); + await handleWorktree(trimmed.replace(/^(worktree|wt)\s*/, "").trim(), ctx); return true; } if (trimmed === "eval-review" || trimmed.startsWith("eval-review ")) {