mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 20:24:33 +00:00
refactor(webchat): SwiftUI-only WebChat UI
# Conflicts: # apps/macos/Package.swift
This commit is contained in:
@@ -7,8 +7,6 @@ import {
|
||||
webAuthExists,
|
||||
} from "../web/session.js";
|
||||
|
||||
const DEFAULT_WEBCHAT_PORT = 18788;
|
||||
|
||||
export async function buildProviderSummary(
|
||||
cfg?: ClawdisConfig,
|
||||
): Promise<string[]> {
|
||||
@@ -35,13 +33,6 @@ export async function buildProviderSummary(
|
||||
: chalk.cyan("Telegram: not configured"),
|
||||
);
|
||||
|
||||
if (effective.webchat?.enabled === false) {
|
||||
lines.push(chalk.yellow("WebChat: disabled"));
|
||||
} else {
|
||||
const port = effective.webchat?.port ?? DEFAULT_WEBCHAT_PORT;
|
||||
lines.push(chalk.green(`WebChat: enabled (port ${port})`));
|
||||
}
|
||||
|
||||
const allowFrom = effective.inbound?.allowFrom?.length
|
||||
? effective.inbound.allowFrom.map(normalizeE164).filter(Boolean)
|
||||
: [];
|
||||
|
||||
Reference in New Issue
Block a user