fix: circular import of AUTH_CONFIG_PATH

This commit is contained in:
Dallin Romney 2025-09-19 18:48:30 -07:00
parent fab3d6ad39
commit 1c19128e4c
2 changed files with 5 additions and 3 deletions

View file

@ -0,0 +1,4 @@
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 {