Merge pull request #7868 from continuedev/dallin/fix-auth-config-bug-cli

fix: circular import of AUTH_CONFIG_PATH
This commit is contained in:
Dallin Romney 2025-09-19 19:14:34 -07:00 • committed by GitHub
commit 0e4f2168d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View file

@ -0,0 +1,5 @@
import * as path from "path";
import { env } from "../env.js";
export const AUTH_CONFIG_PATH = path.join(env.continueHome, "auth.json");

View file

@ -12,9 +12,6 @@ if (!globalThis.fetch) {
globalThis.fetch = nodeFetch as unknown as typeof globalThis.fetch;
}
// Config file path
const AUTH_CONFIG_PATH = path.join(env.continueHome, "auth.json");
// Represents an authenticated user's configuration
export interface AuthenticatedConfig {
userId: string;
@ -98,6 +95,7 @@ export function getModelName(config: AuthConfig): string | null {
}
// URI utility functions have been moved to ./uriUtils.ts
import { AUTH_CONFIG_PATH } from "./authEnv.js";
import { autoSelectOrganizationAndConfig } from "./orgSelection.js";
import { pathToUri, slugToUri, uriToPath, uriToSlug } from "./uriUtils.js";
import {