feat(cli/boulder): implement boulder() entry point and register subcommand

This commit is contained in:
YeonGyu-Kim
2026-05-11 13:41:18 +09:00
parent 30984939eb
commit c34508235f
4 changed files with 368 additions and 0 deletions
+16
View File
@@ -5,6 +5,7 @@ import { getLocalVersion } from "./get-local-version"
import { doctor } from "./doctor"
import { refreshModelCapabilities } from "./refresh-model-capabilities"
import { createMcpOAuthCommand } from "./mcp-oauth"
import { boulder } from "./boulder"
import type { InstallArgs } from "./types"
import type { RunOptions } from "./run"
import type { GetLocalVersionOptions } from "./get-local-version/types"
@@ -202,6 +203,21 @@ program
console.log(`oh-my-opencode v${VERSION}`)
})
program
.command("boulder")
.description("Show boulder progress, elapsed time, and per-task statistics")
.option("-d, --directory <path>", "Working directory")
.option("-w, --work-id <id>", "Filter to a specific work")
.option("--json", "Output as JSON")
.action(async (options) => {
const exitCode = await boulder({
directory: options.directory,
workId: options.workId,
json: options.json ?? false,
})
process.exit(exitCode)
})
program.addCommand(createMcpOAuthCommand())
export function runCli(): void {