Remove passthroughCommands (#252)

This commit is contained in:
Seth Troisi
2025-05-05 17:57:06 +00:00
committed by GitHub
parent a0bed3e716
commit 415b757d4a
4 changed files with 0 additions and 133 deletions

View File

@@ -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,
);
}