Files
AgentsMeeting/deploy/windows/rollback.ps1
T
hmo 1b2b935832 Initial: multi-agent XMPP communication system with dashboard
- Platform-based architecture (Windows/Linux/Mac)
- Agent instance registry (agents.yaml)
- Management dashboard with cross-platform monitoring
- xmpp_bot with HTTP bridge + health endpoints
- wechat_agent with WeChat-Hermes bridging
- Platform services: ProcessGuardian, HealthProbe, APIRouter, ChannelBridge
- Deployment: systemd (Linux) + PowerShell (Windows)
- Monitoring: SSH+ejabberdctl for cross-platform presence
2026-06-12 21:51:36 +08:00

37 lines
1.3 KiB
PowerShell

<#
.SYNOPSIS
AgentsMeeting �回滚到上一个稳定版�.DESCRIPTION
ä¿å­˜å½“å‰ç‰ˆæœ¬åŽï¼Œä»?Git 拉å–上一ä¸?tag æˆ?commitã€?#>
param([string]$Target = "")
$root = "D:\F\NewI\opencode\daily-workspace"
$gateway = "$root\projects\AgentsMeeting\\gateway"
Write-Host "=== AgentsMeeting Rollback ===" -ForegroundColor Cyan
# Stop services
Write-Host "[1/3] Stopping services..." -ForegroundColor Yellow
& "$root\projects\AgentsMeeting\deploy\windows\stop.ps1"
Start-Sleep 2
# Backup current
$backupDir = "$gateway\backups\$(Get-Date -Format 'yyyyMMdd_HHmmss')"
New-Item -ItemType Directory -Path $backupDir -Force | Out-Null
Copy-Item "$gateway\scripts\*.py" $backupDir
Write-Host "[2/3] Backup saved to $backupDir" -ForegroundColor Green
# Restore target
if ($Target) {
# Could restore from specific backup
$restoreDir = "$gateway\backups\$Target"
if (Test-Path $restoreDir) {
Copy-Item "$restoreDir\*" "$gateway\scripts\" -Force
Write-Host "[3/3] Restored from $Target" -ForegroundColor Green
}
else { Write-Host "[3/3] Target not found: $Target" -ForegroundColor Red; exit 1 }
}
else { Write-Host "[3/3] No rollback target specified. Skipped." -ForegroundColor Yellow }
Write-Host "`nRun start.ps1 to restart services" -ForegroundColor Cyan