feat: consolidate sandbox configurations into a single object (#1154)

This commit is contained in:
Brandon Keiji 2025-06-18 10:01:00 -07:00 committed by GitHub
parent 30d1662128
commit 332512853e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 154 additions and 93 deletions

View file

@ -73,11 +73,16 @@ export class MCPServerConfig {
) {}
}
export interface SandboxConfig {
command: 'docker' | 'podman' | 'sandbox-exec';
image: string;
}
export interface ConfigParameters {
sessionId: string;
contentGeneratorConfig: ContentGeneratorConfig;
embeddingModel?: string;
sandbox?: boolean | string;
sandbox?: SandboxConfig;
targetDir: string;
debugMode: boolean;
question?: string;
@ -108,7 +113,7 @@ export class Config {
private readonly sessionId: string;
private readonly contentGeneratorConfig: ContentGeneratorConfig;
private readonly embeddingModel: string;
private readonly sandbox: boolean | string | undefined;
private readonly sandbox: SandboxConfig | undefined;
private readonly targetDir: string;
private readonly debugMode: boolean;
private readonly question: string | undefined;
@ -198,7 +203,7 @@ export class Config {
return this.embeddingModel;
}
getSandbox(): boolean | string | undefined {
getSandbox(): SandboxConfig | undefined {
return this.sandbox;
}