mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-15 15:00:46 +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
13
runtime/operations/whatsapp_bridge/auth.ts
Normal file
13
runtime/operations/whatsapp_bridge/auth.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import path from "node:path";
|
||||
import { useMultiFileAuthState } from "@whiskeysockets/baileys";
|
||||
|
||||
export type AuthState = Awaited<ReturnType<typeof useMultiFileAuthState>>;
|
||||
|
||||
export function resolveAuthDir(stateDir: string): string {
|
||||
return path.join(stateDir, "auth");
|
||||
}
|
||||
|
||||
export async function loadAuthState(stateDir: string): Promise<AuthState> {
|
||||
return await useMultiFileAuthState(resolveAuthDir(stateDir));
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue