feat(webchat): polish SwiftUI chat

This commit is contained in:
Peter Steinberger
2025-12-13 16:45:18 +00:00
parent a882798143
commit ce630a6381
2 changed files with 669 additions and 98 deletions

View File

@@ -21,6 +21,12 @@ type TelegramProbe = {
};
export type HealthSummary = {
/**
* Convenience top-level flag for UIs (e.g. WebChat) that only need a binary
* "can talk to the gateway" signal. If this payload exists, the gateway RPC
* succeeded, so this is always `true`.
*/
ok: true;
ts: number;
durationMs: number;
web: {
@@ -169,6 +175,7 @@ export async function getHealthSnapshot(
: undefined;
const summary: HealthSummary = {
ok: true,
ts: Date.now(),
durationMs: Date.now() - start,
web: { linked, authAgeMs },