import { OperatingSystem } from "../../../base/common/platform.js"; export interface IAgentSandboxFileSystemSetting { allowRead?: string[]; allowWrite?: string[]; denyRead?: string[]; denyWrite?: string[]; } /** User-configured path permissions for the Copilot Agent Host sandbox. */ export interface IAgentSandboxUserConfiguredPaths { readwritePaths?: string[]; readonlyPaths?: string[]; deniedPaths?: string[]; } /** Environment variable names and their credential injection destinations. */ export interface IAgentSandboxMaskedCredentials { envVars?: Record; } /** Converts path separators for the sandbox's execution OS without resolving paths or patterns. */ export declare function normalizeSandboxFileSystemPath(path: string, os: OperatingSystem): string; /** Whether the Local harness can sandbox terminal commands on the execution OS. */ export declare function isTerminalSandboxSupported(os: OperatingSystem): boolean; /** * Setting IDs for agent sandboxing. */ export declare enum AgentSandboxSettingId { AgentSandboxEnabled = "chat.agent.sandbox.enabled", AgentSandboxAllowNetwork = "chat.agent.sandbox.network.allowNetwork", AgentSandboxAllowLocalNetwork = "chat.agent.sandbox.network.allowLocalNetwork", AgentSandboxAllowUnsandboxedCommands = "chat.agent.sandbox.allowUnsandboxedCommands", AgentSandboxMcpServers = "chat.agent.sandbox.mcpServers", AgentSandboxLspServers = "chat.agent.sandbox.lspServers", AgentSandboxAuthenticateGit = "chat.agent.sandbox.credentials.authenticategit", AgentSandboxAuthenticateGh = "chat.agent.sandbox.credentials.authenticategh", AgentSandboxAllowDevToolAccess = "chat.agent.sandbox.fileSystem.allowDevToolAccess", AgentSandboxUserConfiguredPaths = "chat.agent.sandbox.fileSystem.userConfiguredPaths", AgentSandboxRetryWithAllowNetworkRequests = "chat.agent.sandbox.retryWithAllowNetworkRequests", AgentSandboxLinuxFileSystem = "chat.agent.sandbox.fileSystem.linux", AgentSandboxMacFileSystem = "chat.agent.sandbox.fileSystem.mac", AgentSandboxAdvancedRuntime = "chat.agent.sandbox.advanced.runtime" } export declare enum AgentSandboxEnabledValue { Off = "off", On = "on" } export type AgentSandboxEnabledSettingValue = AgentSandboxEnabledValue | boolean; export declare function normalizeAgentSandboxEnabledValue(value: AgentSandboxEnabledSettingValue): AgentSandboxEnabledValue; export declare function isAgentSandboxEnabledValue(value: AgentSandboxEnabledSettingValue | undefined): boolean;