MCPcopy Index your code
hub / github.com/continuedev/continue / getConfigInfo

Function getConfigInfo

extensions/cli/src/infoScreen.ts:25–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23}
24
25function 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
57function getSessionInfo(): string[] {
58 const lines: string[] = ["", chalk.white("Session:")];

Callers 1

handleInfoSlashCommandFunction · 0.85

Calls 3

getModelInfoMethod · 0.80
pushMethod · 0.65
getStateMethod · 0.45

Tested by

no test coverage detected