llm(三协议 Provider)/ session(JSONL 持久化)/ tools(Registry、围栏、 builtin、computer)/ cdp(browser)/ skills / mcp / agent(循环、两级压缩、 编排、审批门控)+ 底座 jsonl/textx/execx/diag/scratch/spill/imagecache。 产品装配代码(config 桥接、schedule 工具、memory/plan/retro/prompt) 留在 AutoGo,宿主接入方式见 MIGRATION.md。
20 lines
558 B
Go
20 lines
558 B
Go
//go:build windows
|
|
|
|
package execx
|
|
|
|
import "os/exec"
|
|
|
|
// SeparateGroup 在 Windows 上是空操作:杀进程树需要 CREATE_NEW_PROCESS_GROUP +
|
|
// taskkill /T(或 Toolhelp 快照遍历子进程),代价与收益不匹配。Windows 下
|
|
// "调用方不被钉死"由 Command 的 WaitDelay 保证;孤儿进程留给系统回收。
|
|
func SeparateGroup(cmd *exec.Cmd) {}
|
|
|
|
// KillTree 退化为杀本体(见 SeparateGroup 的说明)。
|
|
func KillTree(cmd *exec.Cmd) error {
|
|
if cmd.Process == nil {
|
|
return nil
|
|
}
|
|
_ = cmd.Process.Kill()
|
|
return nil
|
|
}
|