diff options
| author | Brandon Keiji <[email protected]> | 2025-06-18 10:01:00 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-18 17:01:00 +0000 |
| commit | 332512853e40e6c9b826b60057a389e9d34453fd (patch) | |
| tree | 7ee45ec5d7f27cb5664c353379580133b223da77 /packages/core/src/config/config.ts | |
| parent | 30d1662128e688bf94653a0144ef96c311fae40b (diff) | |
feat: consolidate sandbox configurations into a single object (#1154)
Diffstat (limited to 'packages/core/src/config/config.ts')
| -rw-r--r-- | packages/core/src/config/config.ts | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/packages/core/src/config/config.ts b/packages/core/src/config/config.ts index c4f46f5e..6caf39e8 100644 --- a/packages/core/src/config/config.ts +++ b/packages/core/src/config/config.ts @@ -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; } |
