mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 19:52:02 +00:00
feat: consolidate sandbox configurations into a single object (#1154)
This commit is contained in:
parent
30d1662128
commit
332512853e
9 changed files with 154 additions and 93 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue