Recognize sign-in failures for every agent and fall through (#19)

Co-authored-by: Danny Kim <temeddix@gmail.com>
Co-committed-by: Danny Kim <temeddix@gmail.com>
This commit was merged in pull request #19.
This commit is contained in:
Danny Kim
2026-10-12 02:51:28 +00:00
committed by temeddix
parent ea20f6d629
commit f001a71c61
11 changed files with 413 additions and 36 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
import { join } from "jsr:@std/path@1";
import { parseCredentials } from "./credentials.ts";
import type { BotProfile } from "./profiles.ts";
import type { BotProfile, ProfileFailure } from "./profiles.ts";
const FIRST_PROFILE_UID = 20_000;
@@ -28,7 +28,7 @@ export type RuntimeOutcome =
anchorsPath: string;
profile: Pick<RuntimeProfile, "type" | "model">;
}
| { ok: false };
| { ok: false; failures: ProfileFailure[] };
async function writePrivate(
path: string,