import { l as formatTerminalLink } from "./utils-CD6tCvSG.js";

//#region src/terminal/links.ts
const DOCS_ROOT = "https://docs.gensparx.com";
function formatDocsLink(path, label, opts) {
	const trimmed = path.trim();
	const url = trimmed.startsWith("http") ? trimmed : `${DOCS_ROOT}${trimmed.startsWith("/") ? trimmed : `/${trimmed}`}`;
	return formatTerminalLink(label ?? url, url, {
		fallback: opts?.fallback ?? url,
		force: opts?.force
	});
}

//#endregion
export { formatDocsLink as t };