fix formatting

This commit is contained in:
Nate 2025-08-10 22:30:54 -04:00
parent 502f49f8df
commit 9fa403f2b7
3 changed files with 9 additions and 5 deletions

View file

@ -86,7 +86,7 @@ export async function runOnboardingFlow(
const result = await initialize(authConfig, CONFIG_PATH);
return { ...result, wasOnboarded: false };
}
// Otherwise return a minimal working configuration
const result = await initialize(authConfig, undefined);
return { ...result, wasOnboarded: false };

View file

@ -48,14 +48,18 @@ export async function initializeServices(
}
// Handle ANTHROPIC_API_KEY in headless mode when no config path is provided
if (options.headless && !options.configPath && process.env.ANTHROPIC_API_KEY) {
if (
options.headless &&
!options.configPath &&
process.env.ANTHROPIC_API_KEY
) {
const { createOrUpdateConfig } = await import("../onboarding.js");
const { env } = await import("../env.js");
const path = await import("path");
const CONFIG_PATH = path.join(env.continueHome, "config.yaml");
await createOrUpdateConfig(process.env.ANTHROPIC_API_KEY);
// Update options to use the created config
options.configPath = CONFIG_PATH;
}

View file

@ -12,4 +12,4 @@ export default defineConfig({
resolve: {
extensions: [".js", ".ts", ".tsx", ".json"],
},
});
});