From 8c4e1404851e28370b02b8300bc17c01a1657466 Mon Sep 17 00:00:00 2001 From: Nate Date: Mon, 2 Feb 2026 01:09:11 -0800 Subject: [PATCH 1/2] Register `cn check` as a CLI subcommand The check command implementation existed but was never registered with Commander.js, causing it to fall through to the default chat command. Co-Authored-By: Claude Opus 4.5 --- extensions/cli/src/commands/commands.ts | 1 + extensions/cli/src/index.ts | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/extensions/cli/src/commands/commands.ts b/extensions/cli/src/commands/commands.ts index d9886273e..440ec1032 100644 --- a/extensions/cli/src/commands/commands.ts +++ b/extensions/cli/src/commands/commands.ts @@ -2,6 +2,7 @@ import { type AssistantConfig } from "@continuedev/sdk"; // Export command functions export { chat } from "./chat.js"; +export { check } from "./check.js"; export { login } from "./login.js"; export { logout } from "./logout.js"; export { listSessionsCommand } from "./ls.js"; diff --git a/extensions/cli/src/index.ts b/extensions/cli/src/index.ts index 37dfd2cba..0fafeb18d 100644 --- a/extensions/cli/src/index.ts +++ b/extensions/cli/src/index.ts @@ -9,6 +9,7 @@ import { chat } from "./commands/chat.js"; import { login } from "./commands/login.js"; import { logout } from "./commands/logout.js"; import { listSessionsCommand } from "./commands/ls.js"; +import { check } from "./commands/check.js"; import { remoteTest } from "./commands/remote-test.js"; import { remote } from "./commands/remote.js"; import { serve } from "./commands/serve.js"; @@ -419,6 +420,22 @@ program await remoteTest(prompt, options.url); }); +// Check subcommand +program + .command("check") + .description("Run AI-powered checks on your changes") + .option("--base ", "Base git ref to diff against (default: auto-detect)") + .option("--format ", "Output format") + .option("--fix", "Automatically apply suggested fixes") + .option("--patch", "Show patches") + .option("--fail-fast", "Stop on first failure") + .option("--check-agents ", "Specific check agents to run") + .option("--verbose", "Enable verbose logging") + .action(async (options) => { + await posthogService.capture("cliCommand", { command: "check" }); + await check(options); + }); + // Handle unknown commands program.on("command:*", () => { console.error(`Error: Unknown command '${program.args.join(" ")}'\n`); From 1eb4e36d614b1f18873831bad1636cf5cbf315ea Mon Sep 17 00:00:00 2001 From: Nate Date: Mon, 2 Feb 2026 01:12:27 -0800 Subject: [PATCH 2/2] Fix import order for check command Co-Authored-By: Claude Opus 4.5 --- extensions/cli/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/cli/src/index.ts b/extensions/cli/src/index.ts index 0fafeb18d..8c63d58df 100644 --- a/extensions/cli/src/index.ts +++ b/extensions/cli/src/index.ts @@ -6,10 +6,10 @@ import "./init.js"; import { Command } from "commander"; import { chat } from "./commands/chat.js"; +import { check } from "./commands/check.js"; import { login } from "./commands/login.js"; import { logout } from "./commands/logout.js"; import { listSessionsCommand } from "./commands/ls.js"; -import { check } from "./commands/check.js"; import { remoteTest } from "./commands/remote-test.js"; import { remote } from "./commands/remote.js"; import { serve } from "./commands/serve.js";