diff options
Diffstat (limited to 'packages/server/src/config/config.ts')
| -rw-r--r-- | packages/server/src/config/config.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/server/src/config/config.ts b/packages/server/src/config/config.ts index d24fad4e..06092b84 100644 --- a/packages/server/src/config/config.ts +++ b/packages/server/src/config/config.ts @@ -29,6 +29,7 @@ export class Config { private debugMode: boolean; private question: string | undefined; private passthroughCommands: string[]; + private fullContext: boolean; constructor( apiKey: string, @@ -37,6 +38,7 @@ export class Config { debugMode: boolean, question: string, passthroughCommands?: string[], + fullContext?: boolean, ) { this.apiKey = apiKey; this.model = model; @@ -45,6 +47,7 @@ export class Config { this.question = question; this.passthroughCommands = passthroughCommands || DEFAULT_PASSTHROUGH_COMMANDS; + this.fullContext = fullContext || false; this.toolRegistry = createToolRegistry(this); } @@ -75,6 +78,11 @@ export class Config { getPassthroughCommands(): string[] { return this.passthroughCommands; } + + getFullContext(): boolean { + // Added getter for fullContext + return this.fullContext; + } } function findEnvFile(startDir: string): string | null { @@ -107,6 +115,7 @@ export function createServerConfig( debugMode: boolean, question: string, passthroughCommands?: string[], + fullContext?: boolean, ): Config { return new Config( apiKey, @@ -115,6 +124,7 @@ export function createServerConfig( debugMode, question, passthroughCommands, + fullContext, ); } |
