From 8cf3e1611e649d47d53308b9d6acd650a59ee61d Mon Sep 17 00:00:00 2001 From: Allen Hutchison Date: Thu, 24 Apr 2025 16:08:29 -0700 Subject: Adding a full_context command line argument. (#158) * Adding a full_context command line argument. * Update packages/cli/src/config/config.ts Co-authored-by: N. Taylor Mullen * lint fix. --------- Co-authored-by: N. Taylor Mullen --- packages/server/src/config/config.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'packages/server/src/config') 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, ); } -- cgit v1.2.3