SuperAPI AI 工具集

terminal

通用与其它

查看项目

更新于 10-16 05:44

技能介绍

用途:作为跨平台终端助手,通过 Desktop Commander 执行命令行工作,尤其适合需要跨轮次保持状态的 shell,如 Python/Node REPL、数据库 shell、SSH 等。

主要能力:先调用 get_config 读取 systemInfo,检测操作系统、默认 shell、Python/Node 版本、blockedCommands 与 allowedDirectories,再据此选择命令语法。支持一次性命令(start_process 加超时,返回输出与 PID)、长时/交互会话(start_process 启动后用 interact_with_process 发送输入、read_process_output 读取输出,必要时 force_terminate 结束)、进程与端口查看(list_processes、ps aux、Get-Process、lsof、ss、Get-NetTCPConnection、netstat)、错误解释与修复建议,以及把重复流程写成 .sh 或 .ps1 脚本。

使用方式:始终使用绝对路径;导航用 list_directory 和 get_file_info,避免依赖持久 cd。交互式 REPL 模式示例:start_process("python3 -i"),再用 interact_with_process(pid, "...") 逐步执行。

限制与安全:Desktop Commander 会拒绝 blockedCommands 中的命令(如 sudo、mkfs、format、dd、fdisk、shutdown、reboot、diskpart、reg、net),实际列表以 get_config 为准。递归/强制删除、覆盖文件、磁盘分区、git reset --hard、git clean -fd、git push --force、数据库 DROP/TRUNCATE、无 WHERE 的 DELETE、chmod -R、chown -R、killall、云资源删除或 IAM 变更、docker prune/rm/volume 删除、curl ... | sh 等视为破坏性操作,须先展示命令并获明确确认。不要输出密钥、令牌或密码。资料未提供具体收费、价格与平台支持范围。