Add Auth sign-in/sign-up page and InviteLanding page for invite acceptance. Add CloudAccessGate that checks deployment mode and redirects to /auth when session is required. Add CompanyRail with drag-and-drop company switching. Add MarkdownBody prose renderer. Redesign Inbox with category filters and inline join-request approval. Refactor AgentDetail to overview/configure/runs views with claude-login support. Replace navigate() anti-patterns with <Link> components in Dashboard and MetricCard. Add live-run indicators in sidebar agents. Fix LiveUpdatesProvider cache key resolution for issue identifiers. Add auth, health, and access API clients. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
21 lines
543 B
TypeScript
21 lines
543 B
TypeScript
export type HealthStatus = {
|
|
status: "ok";
|
|
deploymentMode?: "local_trusted" | "authenticated";
|
|
deploymentExposure?: "private" | "public";
|
|
authReady?: boolean;
|
|
bootstrapStatus?: "ready" | "bootstrap_pending";
|
|
};
|
|
|
|
export const healthApi = {
|
|
get: async (): Promise<HealthStatus> => {
|
|
const res = await fetch("/api/health", {
|
|
credentials: "include",
|
|
headers: { Accept: "application/json" },
|
|
});
|
|
if (!res.ok) {
|
|
throw new Error(`Failed to load health (${res.status})`);
|
|
}
|
|
return res.json();
|
|
},
|
|
};
|