mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 03:30:48 +08:00
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:
parent
88b1fdc9d3
commit
b1a0f94cd6
4 changed files with 30 additions and 18 deletions
|
|
@ -3,7 +3,7 @@
|
|||
[int]$Port = 8787,
|
||||
[switch]$SkipInstall = $false,
|
||||
[switch]$Background = $false,
|
||||
[switch]$WithWeixin = $false,
|
||||
[switch]$WithoutWeixin = $false,
|
||||
[bool]$WithWikiWorker = $true,
|
||||
[string]$WeixinChannelId = "oclaw-weixin",
|
||||
[string]$WeixinGatewayBaseUrl = ""
|
||||
|
|
@ -37,7 +37,7 @@ if (-not $Background) {
|
|||
|
||||
& "$PSScriptRoot/start_desktop.ps1" -SkipInstall:$SkipInstall -Background -WithWikiWorker:$WithWikiWorker
|
||||
|
||||
if ($WithWeixin) {
|
||||
if (-not $WithoutWeixin) {
|
||||
$gwBase = ($WeixinGatewayBaseUrl | ForEach-Object { "$_".Trim() })
|
||||
if (-not $gwBase) {
|
||||
$gwBase = "http://$BindHost`:$Port"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
param(
|
||||
[string]$BindHost = "127.0.0.1",
|
||||
[int]$Port = 8787,
|
||||
[switch]$WithWeixin = $false,
|
||||
[switch]$WithoutWeixin = $false,
|
||||
[switch]$WithWikiWorker = $false,
|
||||
[string]$WeixinChannelId = "oclaw-weixin"
|
||||
)
|
||||
|
|
@ -118,7 +118,7 @@ try {
|
|||
Warn "Get-NetTCPConnection failed: $($_.Exception.Message)"
|
||||
}
|
||||
|
||||
if ($WithWeixin) {
|
||||
if (-not $WithoutWeixin) {
|
||||
Write-Host ""
|
||||
Write-Step "Weixin sidecar"
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue