Nicolas Cantu 0af507143a Add smart-ide-global API layer, SSO delegates proxy, .logs access logs
- 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
2026-04-03 23:08:52 +02:00

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, "..", "..", "..");
};