Read mounted secret files (Claude OAuth, OpenCode auth.json) and env vars on boot, register them as credentials, fetch available models from provider APIs, and create default agent configs for each viable runtime+provider+model combination.
7 lines
155 B
TypeScript
7 lines
155 B
TypeScript
export async function register() {
|
|
if (process.env.NEXT_RUNTIME === "nodejs") {
|
|
const { boot } = await import("./lib/boot");
|
|
await boot();
|
|
}
|
|
}
|