()
| 23 | } |
| 24 | |
| 25 | function getConfigInfo(): string[] { |
| 26 | const lines: string[] = ["", chalk.white("Configuration:")]; |
| 27 | |
| 28 | try { |
| 29 | const configState = services.config.getState(); |
| 30 | if (configState.config) { |
| 31 | lines.push(` ${chalk.gray(`Using ${configState.config?.name}`)}`); |
| 32 | } else { |
| 33 | lines.push(` ${chalk.red(`Config not found`)}`); |
| 34 | } |
| 35 | if (configState.configPath) { |
| 36 | lines.push(` Path: ${chalk.blue(configState.configPath)}`); |
| 37 | } |
| 38 | |
| 39 | // Add current model info |
| 40 | try { |
| 41 | const modelInfo = services.model?.getModelInfo(); |
| 42 | if (modelInfo) { |
| 43 | lines.push(` Model: ${chalk.cyan(modelInfo.name)}`); |
| 44 | } else { |
| 45 | lines.push(` Model: ${chalk.red("Not available")}`); |
| 46 | } |
| 47 | } catch { |
| 48 | lines.push(` Model: ${chalk.red("Error retrieving model info")}`); |
| 49 | } |
| 50 | } catch { |
| 51 | lines.push(` ${chalk.red("Configuration service not available")}`); |
| 52 | } |
| 53 | |
| 54 | return lines; |
| 55 | } |
| 56 | |
| 57 | function getSessionInfo(): string[] { |
| 58 | const lines: string[] = ["", chalk.white("Session:")]; |
no test coverage detected