test(cli): allow claudecode installer spy

This commit is contained in:
YeonGyu-Kim
2026-05-29 14:14:30 +09:00
parent e99ab80de9
commit 2c176eb2ab
+2 -2
View File
@@ -24,7 +24,7 @@ import {
} from "./install-validators" } from "./install-validators"
import { getUnsupportedOpenCodeVersionMessage } from "./minimum-opencode-version" import { getUnsupportedOpenCodeVersionMessage } from "./minimum-opencode-version"
import { runCodexInstaller } from "./install-codex" import { runCodexInstaller } from "./install-codex"
import { runClaudeCodeInstaller } from "./install-claudecode" import * as claudeCodeInstaller from "./install-claudecode"
export async function runCliInstaller(args: InstallArgs, version: string): Promise<number> { export async function runCliInstaller(args: InstallArgs, version: string): Promise<number> {
const validation = validateNonTuiArgs(args) const validation = validateNonTuiArgs(args)
@@ -158,7 +158,7 @@ export async function runCliInstaller(args: InstallArgs, version: string): Promi
if (config.hasClaudeCode) { if (config.hasClaudeCode) {
printInfo("Installing Claude Code plugin...") printInfo("Installing Claude Code plugin...")
try { try {
const claudeResult = await runClaudeCodeInstaller() const claudeResult = await claudeCodeInstaller.runClaudeCodeInstaller()
printSuccess(`Claude Code plugin installed ${SYMBOLS.arrow} ${color.dim(claudeResult.pluginRef)}`) printSuccess(`Claude Code plugin installed ${SYMBOLS.arrow} ${color.dim(claudeResult.pluginRef)}`)
} catch (error) { } catch (error) {
const message = error instanceof Error ? error.message : String(error) const message = error instanceof Error ? error.message : String(error)