Fresh history cut from cynarAI/evoo antigravity-handoff/project-timeline (Voice First + project timeline). Brand docs/titles as evOo; keep @rakazo/* packages as tech debt. Excludes node_modules, caches, secrets, voice blobs.
17 lines
517 B
TypeScript
17 lines
517 B
TypeScript
import { waitForModelOAuthCompletion } from "@rakazo/core";
|
|
import { rpc } from "./api";
|
|
|
|
export { cancelModelOAuthAttempt, finishModelOAuthAttempt } from "@rakazo/core";
|
|
|
|
type CompleteOAuthResult =
|
|
| { status: "pending" }
|
|
| { status: "ready" }
|
|
| { status: "error"; error: string };
|
|
|
|
export async function waitForModelOAuth(loginId: string, signal?: AbortSignal) {
|
|
return waitForModelOAuthCompletion(
|
|
() => rpc<CompleteOAuthResult>("models/completeOAuth", { loginId }, { signal }),
|
|
{ signal },
|
|
);
|
|
}
|