"use strict";var h=Object.create;var s=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var x=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty;var y=(t,r)=>{for(var o in r)s(t,o,{get:r[o],enumerable:!0})},a=(t,r,o,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let e of l(r))!d.call(t,e)&&e!==o&&s(t,e,{get:()=>r[e],enumerable:!(i=g(r,e))||i.enumerable});return t};var n=(t,r,o)=>(o=t!=null?h(x(t)):{},a(r||!t||!t.__esModule?s(o,"default",{value:t,enumerable:!0}):o,t)),v=t=>a(s({},"__esModule",{value:!0}),t);var _={};y(_,{CACHE_DIR:()=>w,getGitCommitHash:()=>C,getHostProjectPkgVersion:()=>P,isDirector:()=>D,isFile:()=>E,pathExists:()=>H});module.exports=v(_);var c=n(require("path"),1),w=c.default.resolve(process.cwd(),"node_modules/.cache");var m=require("child_process");function C(){try{let t=(0,m.execSync)("git rev-parse --short HEAD").toString().replace(` `,"").trim();if(t==="undefined")throw new Error("Could not retrieve git commit hash.");return t}catch(t){console.error("Could not retrieve git commit hash.")}}function P(){return process.env.npm_package_version}var p=n(require("fs/promises"),1);async function D(t){try{return(await p.default.stat(t)).isDirectory()}catch(r){return!1}}var f=n(require("fs/promises"),1);async function E(t){try{return(await f.default.stat(t)).isFile()}catch(r){return!1}}var u=require("fs/promises");async function H(t){try{return await(0,u.access)(t),!0}catch(r){return!1}}0&&(module.exports={CACHE_DIR,getGitCommitHash,getHostProjectPkgVersion,isDirector,isFile,pathExists}); //# sourceMappingURL=index.cjs.map