import {
  resolveHomeDir
} from "./chunk-MARWOCVP.js";

// src/utils/path.ts
import path from "path";
function expandTildePath(p) {
  if (p === "~") return resolveHomeDir();
  if (p.startsWith("~/") || p.startsWith("~\\")) {
    return path.join(resolveHomeDir(), p.slice(2));
  }
  return p;
}

export {
  expandTildePath
};
//# sourceMappingURL=chunk-IXEJRKCZ.js.map