import * as React from 'react' import type { LocalJSXCommandContext } from '../../commands.js' import type { LocalJSXCommandOnDone } from '../../types/command.js' import type { AppState } from '../../state/AppState.js' /** Stub — install wizard is not yet restored. */ export async function computeDefaultInstallDir(): Promise { return '' } /** Stub — install wizard is not yet restored. */ export function NewInstallWizard(_props: { defaultDir: string onInstalled: (dir: string) => void onCancel: () => void onError: (message: string) => void }): React.ReactNode { return null } /** * /assistant command implementation. * * Opens the Kairos assistant panel. In the current build the panel is * rendered by the REPL layer when kairosActive is true; the slash command * simply toggles visibility and prints a confirmation line. */ export async function call( onDone: LocalJSXCommandOnDone, context: LocalJSXCommandContext, _args: string, ): Promise { const { setAppState, getAppState } = context const current = getAppState() const isVisible = (current as Record).assistantPanelVisible if (isVisible) { setAppState((prev: AppState) => ({ ...prev, assistantPanelVisible: false, } as AppState)) onDone('Assistant panel hidden.', { display: 'system' }) } else { setAppState((prev: AppState) => ({ ...prev, assistantPanelVisible: true, } as AppState)) onDone('Assistant panel opened.', { display: 'system' }) } return null }