dc2d2acc82
Scaffold an MVP of the natural-language ops terminal: inventory + intent template registry, SSH/WinRM/local connectors, risk-gated executor with SQLite audit log, Claude-driven agent layer using Function Calling, plus a Typer CLI and FastAPI surface. Includes 10 cross-OS intents (disk/system/service) and example inventory. Verified end-to-end on the local Windows host: hosts/intents listing, check_disk_usage execution, and WRITE-class confirmation gating. Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
23 lines
691 B
YAML
23 lines
691 B
YAML
# 全局运行时设置
|
|
default_timeout_seconds: 30
|
|
ssh:
|
|
known_hosts: null # 设为 null 表示不校验 known_hosts(实验环境);生产建议指定路径
|
|
connect_timeout: 10
|
|
winrm:
|
|
transport: ntlm # ntlm | basic | kerberos
|
|
server_cert_validation: ignore # 实验环境;生产请用 validate
|
|
|
|
risk_policy:
|
|
read_auto: true # READ 类是否自动执行
|
|
write_require_confirm: true
|
|
destructive_default_block: true
|
|
destructive_keywords: # 命令文本中出现这些词时升级为 DESTRUCTIVE
|
|
- "rm -rf"
|
|
- "mkfs"
|
|
- "format "
|
|
- "dd if="
|
|
- "shutdown"
|
|
- "reboot"
|
|
- "Remove-Item -Recurse"
|
|
- "Format-Volume"
|