mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 16:57:46 +00:00
Remove passthroughCommands (#252)
This commit is contained in:
@@ -21,8 +21,6 @@ import { WebFetchTool } from '../tools/web-fetch.js';
|
||||
import { ReadManyFilesTool } from '../tools/read-many-files.js';
|
||||
import { BaseTool, ToolResult } from '../tools/tools.js';
|
||||
|
||||
const DEFAULT_PASSTHROUGH_COMMANDS = ['ls', 'git', 'npm'];
|
||||
|
||||
export class Config {
|
||||
private toolRegistry: ToolRegistry;
|
||||
|
||||
@@ -33,7 +31,6 @@ export class Config {
|
||||
private readonly targetDir: string,
|
||||
private readonly debugMode: boolean,
|
||||
private readonly question: string | undefined, // Keep undefined possibility
|
||||
private readonly passthroughCommands: string[] = DEFAULT_PASSTHROUGH_COMMANDS, // Default value here
|
||||
private readonly fullContext: boolean = false, // Default value here
|
||||
) {
|
||||
// toolRegistry still needs initialization based on the instance
|
||||
@@ -67,10 +64,6 @@ export class Config {
|
||||
return this.question;
|
||||
}
|
||||
|
||||
getPassthroughCommands(): string[] {
|
||||
return this.passthroughCommands;
|
||||
}
|
||||
|
||||
getFullContext(): boolean {
|
||||
return this.fullContext;
|
||||
}
|
||||
@@ -106,7 +99,6 @@ export function createServerConfig(
|
||||
targetDir: string,
|
||||
debugMode: boolean,
|
||||
question: string,
|
||||
passthroughCommands?: string[],
|
||||
fullContext?: boolean,
|
||||
): Config {
|
||||
return new Config(
|
||||
@@ -116,7 +108,6 @@ export function createServerConfig(
|
||||
path.resolve(targetDir),
|
||||
debugMode,
|
||||
question,
|
||||
passthroughCommands,
|
||||
fullContext,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user