# 构建 pigo 协作镜像（单 agent 版：一个 pigo 进程完成任务，blackboard 工具负责原子创建 DONE）
# 用法（仓库根目录执行）： powershell -File coop/build.ps1
$ErrorActionPreference = "Stop"

docker build -f coop/Dockerfile -t pigo-coop .

Write-Host ""
Write-Host "构建完成: pigo-coop"
Write-Host ""
Write-Host "运行示例（外部调用方传入模型/API 信息与任务）："
Write-Host '  docker run --rm \'
Write-Host '    -e MODEL=deepseek-chat \'
Write-Host '    -e BASE_URL=https://api.deepseek.com \'
Write-Host '    -e API_KEY=<your-key> \'
Write-Host '    -e TASK="请为 XX 编写设计文档并实现原型" \'
Write-Host '    -e ROUND_MAX=6 \'
Write-Host '    pigo-coop'
Write-Host ""
Write-Host "黑板产物默认在容器内 /blackboard，如需保留可挂载卷： -v $PWD/blackboard:/blackboard"
