fix: circular import of AUTH_CONFIG_PATH
This commit is contained in:
parent
fab3d6ad39
commit
1c19128e4c
2 changed files with 5 additions and 3 deletions
4
extensions/cli/src/auth/authEnv.ts
Normal file
4
extensions/cli/src/auth/authEnv.ts
Normal 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");
|
||||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue