update ops scripts to include weixin by default

Make start/status/stop all scripts include Weixin sidecar by default and add -WithoutWeixin as an explicit opt-out.
Refresh RUNBOOK commands to match the new default behavior.

Made-with: Cursor
This commit is contained in:
oliver 2026-04-28 19:32:45 +08:00
parent 88b1fdc9d3
commit b1a0f94cd6
4 changed files with 30 additions and 18 deletions

View file

@ -1,7 +1,7 @@
param(
[int]$Port = 8787,
[switch]$Force = $false,
[switch]$WithWeixin = $false,
[switch]$WithoutWeixin = $false,
[switch]$WithWikiWorker = $false,
[string]$WeixinChannelId = "oclaw-weixin"
)
@ -26,7 +26,7 @@ try {
if (-not $Force) { throw }
}
if ($WithWeixin) {
if (-not $WithoutWeixin) {
Write-Step "Stopping weixin sidecar"
try {
& "$PSScriptRoot/weixin_stop.ps1" -ChannelId $WeixinChannelId -Force:$Force