diff options
Diffstat (limited to 'packages/server/src/config/config.ts')
| -rw-r--r-- | packages/server/src/config/config.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/server/src/config/config.ts b/packages/server/src/config/config.ts index 0cf8be2a..c327a483 100644 --- a/packages/server/src/config/config.ts +++ b/packages/server/src/config/config.ts @@ -36,6 +36,7 @@ export class Config { private readonly toolCallCommand: string | undefined, private readonly mcpServerCommand: string | undefined, private readonly userAgent: string, + private userMemory: string = '', // Made mutable for refresh ) { // toolRegistry still needs initialization based on the instance this.toolRegistry = createToolRegistry(this); @@ -87,6 +88,15 @@ export class Config { getUserAgent(): string { return this.userAgent; } + + // Added getter for userMemory + getUserMemory(): string { + return this.userMemory; + } + + setUserMemory(newUserMemory: string): void { + this.userMemory = newUserMemory; + } } function findEnvFile(startDir: string): string | null { @@ -129,6 +139,7 @@ export function createServerConfig( toolCallCommand?: string, mcpServerCommand?: string, userAgent?: string, + userMemory?: string, // Added userMemory parameter ): Config { return new Config( apiKey, @@ -142,6 +153,7 @@ export function createServerConfig( toolCallCommand, mcpServerCommand, userAgent ?? 'GeminiCLI/unknown', // Default user agent + userMemory ?? '', // Pass userMemory, default to empty string ); } |
