codev / src /commands /assistant /assistant.tsx
chenbhao's picture
init: verspercode v0.1.0
064bfd6
Raw
History Blame Contribute Delete
473 Bytes
import { homedir } from 'os'
import { join } from 'path'
import { useEffect } from 'react'
type Props = {
defaultDir: string
onInstalled: (dir: string) => void
onCancel: () => void
onError: (message: string) => void
}
export async function computeDefaultInstallDir(): Promise<string> {
return join(homedir(), '.claude', 'assistant')
}
export function NewInstallWizard({ onCancel }: Props) {
useEffect(() => {
onCancel()
}, [onCancel])
return null
}