- New smart-ide-global-api (127.0.0.1:37149): internal bearer, upstream proxy, X-OIDC forward - SSO gateway calls global API with GLOBAL_API_INTERNAL_TOKEN; logs to .logs/sso-gateway/ - Aggregated config example, docs, VERSION 0.0.2, claw proxy local URL hint
12 lines
342 B
TypeScript
12 lines
342 B
TypeScript
import path from "node:path";
|
|
import { fileURLToPath } from "node:url";
|
|
|
|
export const repoRoot = (): string => {
|
|
const fromEnv = process.env.SMART_IDE_MONOREPO_ROOT?.trim();
|
|
if (fromEnv) {
|
|
return path.resolve(fromEnv);
|
|
}
|
|
const here = path.dirname(fileURLToPath(import.meta.url));
|
|
return path.resolve(here, "..", "..", "..");
|
|
};
|