785
}
786
787
>
function createBashModelDescription(isSandboxEnabled: boolean, networkDomains?: ITerminalSandboxResolvedNetworkDomains): string {
copilotShellTools.ts
788
>
return [
789
>
'This tool allows you to execute shell commands in a persistent bash terminal session, preserving environment variables, working directory, and other context across multiple commands.',
790
>
createGenericDescription('bash', isSandboxEnabled, networkDomains),
791
>
'- Use [[ ]] for conditional tests instead of [ ]',
792
>
'- Prefer $() over backticks for command substitution',
793
>
'- Use set -e at start of complex commands to exit on errors'
794
>
].join('\n');
795
>
}
796
797
function createZshModelDescription(isSandboxEnabled: boolean, networkDomains?: ITerminalSandboxResolvedNetworkDomains): string {