Open-source AI coworkers that each get a computer of their own: a browser, files and tools, with every action decided before it happens and recorded after. Bring any AG-UI agent.
import { useQuery } from "@tanstack/react-query";
import { createFileRoute } from "@tanstack/react-router";
import { PageShell } from "@/components/layout/page-shell";
import { SignInForm } from "@/components/passwords/sign-in-form";
import { signInRequestQueryOptions } from "@/lib/passwords/queries";
/**
* The private sign-in form, on a page of its own.
*
* Its own route, outside the chat layout, because this is where a link sent to Slack, SMS or a phone
* lands: a person can answer a Bot that is working unattended without opening its conversation, and
* nothing typed here is ever part of one.
*/
export const Route = createFileRoute("/_authed/sign-in/$requestId")({
component: SignInPage,
});
function SignInPage() {
const { requestId } = Route.useParams();
const request = useQuery(signInRequestQueryOptions(requestId));
return (
<PageShell
title={request.data ? `Sign in to ${request.data.origin}` : "Sign in"}
description={
request.data?.reason ??
"Your Bot needs to sign in to continue. What you type here goes to its browser, not the conversation."
}
>
<SignInForm requestId={requestId} />
</PageShell>
);
}