f4be4f6232
- Added Debug Adapter Protocol (DAP) tool enabling launch/attach debugging with breakpoint management, stepping, stack traces, and variable inspection. - Added debug adapter configurations for gdb, lldb-dap, debugpy, and dlv with automatic language and project detection via root markers. - Added debug session management with conditional breakpoints, flow control (continue/step/pause), scopes, variables, and expression evaluation. - Added `debug.enabled` setting to control debug tool availability and integrated debug tool into agent's builtin tools registry. - Added environment variable configuration (TERM, GPG_TTY, NO_COLOR, PYTHONUNBUFFERED) to prevent terminal blocking in non-interactive execution.
49 lines
1.3 KiB
TypeScript
49 lines
1.3 KiB
TypeScript
export const NON_INTERACTIVE_ENV: Readonly<Record<string, string>> = {
|
|
// Disable pagers so commands don't block on interactive views.
|
|
PAGER: "cat",
|
|
GIT_PAGER: "cat",
|
|
MANPAGER: "cat",
|
|
SYSTEMD_PAGER: "cat",
|
|
BAT_PAGER: "cat",
|
|
DELTA_PAGER: "cat",
|
|
GH_PAGER: "cat",
|
|
GLAB_PAGER: "cat",
|
|
PSQL_PAGER: "cat",
|
|
MYSQL_PAGER: "cat",
|
|
AWS_PAGER: "",
|
|
HOMEBREW_PAGER: "cat",
|
|
LESS: "FRX",
|
|
// Disable terminal features that can block the process.
|
|
TERM: "dumb",
|
|
GPG_TTY: "not a tty",
|
|
NO_COLOR: "1",
|
|
PYTHONUNBUFFERED: "1",
|
|
// Disable editor and terminal credential prompts.
|
|
GIT_EDITOR: "true",
|
|
VISUAL: "true",
|
|
EDITOR: "true",
|
|
GIT_TERMINAL_PROMPT: "0",
|
|
SSH_ASKPASS: "/usr/bin/false",
|
|
CI: "1",
|
|
// Package manager defaults for unattended execution.
|
|
npm_config_yes: "true",
|
|
npm_config_update_notifier: "false",
|
|
npm_config_fund: "false",
|
|
npm_config_audit: "false",
|
|
npm_config_progress: "false",
|
|
PNPM_DISABLE_SELF_UPDATE_CHECK: "true",
|
|
PNPM_UPDATE_NOTIFIER: "false",
|
|
YARN_ENABLE_TELEMETRY: "0",
|
|
YARN_ENABLE_PROGRESS_BARS: "0",
|
|
// Cross-language/tooling non-interactive defaults.
|
|
CARGO_TERM_PROGRESS_WHEN: "never",
|
|
DEBIAN_FRONTEND: "noninteractive",
|
|
PIP_NO_INPUT: "1",
|
|
PIP_DISABLE_PIP_VERSION_CHECK: "1",
|
|
TF_INPUT: "0",
|
|
TF_IN_AUTOMATION: "1",
|
|
GH_PROMPT_DISABLED: "1",
|
|
COMPOSER_NO_INTERACTION: "1",
|
|
CLOUDSDK_CORE_DISABLE_PROMPTS: "1",
|
|
};
|