export function extractEndpoint(path: string): string {
  return path.split('?')[0] ?? path;
}

export function logDebug(...args: unknown[]): void {
  if (process.env.DEBUG_PACIFICA === '1') {
    console.debug('[Pacifica]', ...args);
  }
}
