mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-11 11:53:16 +08:00
Update channel dispatch UX and harden sidecar startup behavior.
This aligns Weixin/WhatsApp with admin-managed model routing by adding channel/account-level specialist controls, improves OSS startup resilience by skipping missing sidecars gracefully, and refreshes runbook/readme guidance for the new default behavior and Weixin OpenAI-key silent handling. Made-with: Cursor
This commit is contained in:
parent
b1a0f94cd6
commit
5ab69e88d3
29 changed files with 1226 additions and 100 deletions
18
runtime/operations/scripts/whatsapp_status.ps1
Normal file
18
runtime/operations/scripts/whatsapp_status.ps1
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
param(
|
||||
[string]$ChannelId = "whatsapp"
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
$oclawRoot = (Resolve-Path (Join-Path (Split-Path -Parent $PSCommandPath) "..\\..\\..")).Path
|
||||
$sidecarRoot = Join-Path $oclawRoot "data\\channel_sidecar\\$ChannelId"
|
||||
$sidecarPidFile = Join-Path $sidecarRoot "pid.txt"
|
||||
if (Test-Path $sidecarPidFile) {
|
||||
$procId = (Get-Content -Path $sidecarPidFile -ErrorAction SilentlyContinue | Select-Object -First 1)
|
||||
if ($procId -and (Get-Process -Id $procId -ErrorAction SilentlyContinue)) {
|
||||
Write-Host "status=running mode=baileys channel=$ChannelId"
|
||||
exit 0
|
||||
}
|
||||
}
|
||||
|
||||
Write-Host "status=stopped mode=baileys channel=$ChannelId"
|
||||
Loading…
Add table
Add a link
Reference in a new issue