diff options
| author | Allen Hutchison <[email protected]> | 2025-04-22 18:32:03 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-04-22 18:32:03 -0700 |
| commit | 9bc9c6e6c5b389fc72f9fcdb4452a50c37dc903e (patch) | |
| tree | 02bf39a79ff9b8d11ef10f435f09a8539842e024 /packages/server/src | |
| parent | ef7dcdb49ebc79f9d3cda5708a3ca4488a1899dc (diff) | |
Question flag (#125)
Diffstat (limited to 'packages/server/src')
| -rw-r--r-- | packages/server/src/config/config.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/server/src/config/config.ts b/packages/server/src/config/config.ts index e842cd29..2cb05318 100644 --- a/packages/server/src/config/config.ts +++ b/packages/server/src/config/config.ts @@ -26,6 +26,7 @@ export class Config { private targetDir: string; private toolRegistry: ToolRegistry; private debugMode: boolean; + private question: string | undefined; private passthroughCommands: string[]; constructor( @@ -33,12 +34,14 @@ export class Config { model: string, targetDir: string, debugMode: boolean, + question: string, passthroughCommands?: string[], ) { this.apiKey = apiKey; this.model = model; this.targetDir = targetDir; this.debugMode = debugMode; + this.question = question; this.passthroughCommands = passthroughCommands || DEFAULT_PASSTHROUGH_COMMANDS; @@ -64,6 +67,9 @@ export class Config { getDebugMode(): boolean { return this.debugMode; } + getQuestion(): string | undefined { + return this.question; + } getPassthroughCommands(): string[] { return this.passthroughCommands; @@ -98,6 +104,7 @@ export function createServerConfig( model: string, targetDir: string, debugMode: boolean, + question: string, passthroughCommands?: string[], ): Config { return new Config( @@ -105,6 +112,7 @@ export function createServerConfig( model, path.resolve(targetDir), debugMode, + question, passthroughCommands, ); } |
