From defb09ef978df46738e692a397f15febb2e2e283 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 25 Jul 2026 15:16:04 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20ctr=20=E5=85=A8=E9=83=A8=E6=94=BE?= =?UTF-8?q?=E8=A1=8C=EF=BC=88None=EF=BC=89=EF=BC=8C=E6=94=AF=E6=8C=81=20k8?= =?UTF-8?q?s.io=20=E7=AD=89=E4=BB=BB=E6=84=8F=E5=AD=90=E5=91=BD=E4=BB=A4?= =?UTF-8?q?=E5=91=BD=E5=90=8D=E7=A9=BA=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/agent_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/agent_tools.py b/backend/agent_tools.py index 535b774..9d81e43 100644 --- a/backend/agent_tools.py +++ b/backend/agent_tools.py @@ -190,7 +190,7 @@ SHELL_READ_ONLY_COMMANDS: dict[str, set[str] | None] = { }, "journalctl": None, # 只读,任意参数 (-u, -n, --no-pager, --since 等) "crictl": {"ps", "inspect", "logs", "info", "version", "images", "stats"}, - "ctr": {"containers", "images", "namespaces", "tasks", "snapshots", "info", "version", "plugins", "content", "leases"}, + "ctr": None, "nerdctl": {"ps", "logs", "inspect", "info", "version", "images", "stats", "top", "events", "system", "namespace", "network", "volume"}, "docker": {"ps", "logs", "inspect", "stats", "version", "info", "images", "top"}, "df": None, "du": None, "free": None, "uptime": None, "uname": None, "hostname": None,