Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

276 B
Raw Blame
import { fileURLToPath } from 'node:url';

let cliEntryPath: string | undefined;

export function recordCliEntryPath(entryUrl: string): void {
  cliEntryPath ??= fileURLToPath(entryUrl);
}

export function recordedCliEntryPath(): string | undefined {
  return cliEntryPath;
}