@stacksjs/path 0.64.6 → 0.66.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import N from"os";import{basename as S,delimiter as x,dirname as D,extname as A,isAbsolute as C,join as L,normalize as E,parse as w,relative as Z,resolve as H,sep as k,toNamespacedPath as y}from"path";import _ from"process";import{runCommandSync as v}from"@stacksjs/cli";import{log as z}from"@stacksjs/logging";function J(G){return I(`actions/${G||""}`)}function g(G){return Z(W(),J(G))}function f(G,O){return X(`Actions/${G||""}`)}function j(G,O){const K=Q(`actions/${G||""}`);if(O?.relative)return Z(_.cwd(),K);return K}function b(G){return U(`components/${G||""}`)}function d(G){return Y(`views/${G||""}`)}function m(G){return Y(`functions/${G||""}`)}function u(G){return X(`Jobs/${G||""}`)}function l(G){return X(`Listeners/${G||""}`)}function n(G){return X(`Middleware/${G||""}`)}function i(G){return X(`Models/${G||""}`)}function c(G){return X(`Notifications/${G||""}`)}function R(G){return W(`database/${G||""}`)}function s(G){return R(`migrations/${G||""}`)}function r(){return X("Events.ts")}function P(G){return I(`ai/${G||""}`)}function o(G){return Y(`assets/${G||""}`)}function e(){return I("alias/src/index.ts")}function p(G,O){const K=I(`buddy/${G||""}`);if(O?.relative)return Z(_.cwd(),K);return K}function h(G){return Q(`buddy/${G||""}`)}function a(G){return I(`analytics/${G||""}`)}function t(G){return I(`arrays/${G||""}`)}function X(G){return W(`app/${G||""}`)}function GG(G){return I(`auth/${G||""}`)}function T(G){return I(`build/${G||""}`)}function IG(G){return T(`${G||""}`)}function U(G){return Q(`libs/${G||""}`)}function V(G){return Y(`${G||""}`)}function M(G){return U(`entries/${G||""}`)}function KG(G){return I(`cache/${G||""}`)}function OG(G){return I(`chat/${G||""}`)}function QG(G){return I(`cli/${G||""}`)}function WG(G){return I(`cloud/${G||""}`)}function XG(G){return Q(`cloud/${G||""}`)}function YG(G){return I(`collections/${G||""}`)}function ZG(G){return X(`Commands/${G||""}`)}function _G(G){return V(`components/${G||""}`)}function $G(G){return I(`config/${G||""}`)}function I(G){return Q(`core/${G||""}`)}function BG(){return Q("core/custom-elements.json")}function FG(G){return I(`database/${G||""}`)}function HG(G){return I(`datetime/${G||""}`)}function UG(G){return I(`development/${G||""}`)}function VG(G){return I(`desktop/${G||""}`)}function qG(G){return I(`docs/${G||""}`)}function zG(G){return I(`domains/${G||""}`)}function JG(G){return F(`email/${G||""}`)}function RG(G){return I(`enums/${G||""}`)}function TG(G){return I(`error-handling/${G||""}`)}function MG(G){return I(`events/${G||""}`)}function NG(G){return I(`env/${G||""}`)}function SG(G){return Q(`examples/${G||""}`)}function xG(G){return I(`faker/${G||""}`)}function Q(G,O){const K=q(`framework/${G||""}`);if(O?.relative)return Z(O.cwd||_.cwd(),K);return K}function DG(G){return I(`health/${G||""}`)}function AG(G){return V(`functions/${G||""}`)}function CG(G){return I(`git/${G||""}`)}function LG(G){return Y(`lang/${G||""}`)}function EG(G,O){const K=Y(`layouts/${G||""}`);if(O?.relative)return Z(_.cwd(),K);return K}function wG(G){return M(`${G}.ts`)}function kG(G){return I(`lint/${G||""}`)}function yG(G){return X(`Listeners/${G||""}`)}function vG(G){return X(`Jobs/${G||""}`)}function gG(G){return I(`logging/${G||""}`)}function fG(G){return q(`logs/${G||""}`)}function kI(G){return X(`models/${G||""}`)}function jG(G){return Y(`modules/${G||""}`)}function F(G){return I(`notifications/${G||""}`)}function bG(G){return I(`orm/${G||""}`)}function dG(G){return I(`objects/${G||""}`)}function mG(G){return W(`${G||"views/dashboard/onboarding"}`)}function uG(G){if(G==="vue-components")return Q("libs/components/vue/package.json");if(G==="web-components")return Q("libs/components/web/package.json");return Q(`libs/${G}/package.json`)}function lG(G){return Y(`views/${G||""}`)}function nG(G){return I(`path/${G||""}`)}function iG(G){return I(`payments/${G||""}`)}function W(G="",O){let K=_.cwd();while(K.includes("storage"))K=H(K,"..");const $=H(K,G);if(O?.relative)return Z(_.cwd(),$);return $}async function cG(G){const O=await v("buddy projects:list --quiet");z.debug(`ProjectList in findProjectPath ${O}`);const K=O.split("\n").filter((B)=>B.startsWith(" - ")).map((B)=>B.trim().substring(4));z.debug(`Projects in findProjectPath ${K}`);const $=K.find((B)=>B.includes(G));if(!$)throw new Error(`Could not find project with name: ${G}`);return $.startsWith("/")?$:`/${$}`}function sG(G){return W(`config/${G||""}`)}function q(G){return W(`storage/${G||""}`)}function rG(G){return W(`public/${G||""}`)}function PG(G){return F(`push/${G||""}`)}function oG(G){return I(`query-builder/${G||""}`)}function eG(G){return I(`queue/${G||""}`)}function pG(G){return I(`realtime/${G||""}`)}function Y(G,O){if(O?.relative){const K=W(`resources/${G||""}`);return Z(_.cwd(),K)}return W(`resources/${G||""}`)}function hG(G){return I(`repl/${G||""}`)}function aG(G){return I(`router/${G||""}`)}function tG(G,O){const K=Y(`routes/${G||""}`);if(O?.relative)return Z(_.cwd(),K);return W(`routes/${G||""}`)}function GI(G){return I(`search-engine/${G||""}`)}function II(G){return W(`${G||"views/dashboard/settings"}`)}function KI(G){return Q(`scripts/${G||""}`)}function OI(G){return I(`scheduler/${G||""}`)}function QI(G){return I(`slug/${G||""}`)}function WI(G){return F(`sms/${G||""}`)}function XI(G){return I(`storage/${G||""}`)}function YI(G){return Y(`stores/${G||""}`)}function ZI(G){return I(`security/${G||""}`)}function _I(G){return I(`server/${G||""}`)}function $I(G){return Q(`server/${G||""}`)}function BI(G){return I(`serverless/${G||""}`)}function FI(G){return Q(`src/${G||""}`)}function HI(G){return I(`shell/${G||""}`)}function UI(G){return I(`strings/${G||""}`)}function VI(G){return I(`testing/${G||""}`)}function qI(G){return I(`tinker/${G||""}`)}function zI(G){return Q(`tests/${G||""}`)}function JI(G){return I(`types/${G||""}`)}function RI(G,O){const K=I(`ui/${G||""}`);if(O?.relative)return Z(_.cwd(),K);return K}function TI(G){return I(`utils/${G||""}`)}function MI(G){return I(`validation/${G||""}`)}function NI(G){return I(`vite-config/${G||""}`)}function SI(G){return I(`vite-plugin/${G||""}`)}function xI(G){return Q(`stacks/x-ray/${G||""}`)}function DI(G){return N.homedir()+(G?(G.startsWith("/")?"":"/")+G:"~")}var yI={actionsPath:J,userActionsPath:f,builtUserActionsPath:j,userComponentsPath:b,userViewsPath:d,userFunctionsPath:m,aiPath:P,assetsPath:o,relativeActionsPath:g,aliasPath:e,analyticsPath:a,arraysPath:t,appPath:X,authPath:GG,buddyPath:p,buildEnginePath:IG,libsEntriesPath:M,buildPath:T,cachePath:KG,chatPath:OG,cliPath:QG,cloudPath:WG,frameworkCloudPath:XG,collectionsPath:YG,commandsPath:ZG,componentsPath:_G,configPath:$G,projectConfigPath:sG,corePath:I,customElementsDataPath:BG,databasePath:FG,datetimePath:HG,developmentPath:UG,desktopPath:VG,docsPath:qG,dnsPath:zG,emailPath:JG,enumsPath:RG,errorHandlingPath:TG,eventsPath:MG,coreEnvPath:NG,healthPath:DG,examplesPath:SG,fakerPath:xG,frameworkPath:Q,storagePath:q,functionsPath:AG,gitPath:CG,langPath:LG,layoutsPath:EG,libsPath:U,userLibsPath:V,libraryEntryPath:wG,lintPath:kG,listenersPath:yG,loggingPath:gG,logsPath:fG,jobsPath:vG,modulesPath:jG,ormPath:bG,objectsPath:dG,onboardingPath:mG,notificationsPath:F,packageJsonPath:uG,viewsPath:lG,pathPath:nG,paymentsPath:iG,projectPath:W,findProjectPath:cG,coreStoragePath:XI,publicPath:rG,pushPath:PG,queryBuilderPath:oG,queuePath:eG,realtimePath:pG,resourcesPath:Y,replPath:hG,routerPath:aG,routesPath:tG,runtimePath:h,searchEnginePath:GI,schedulerPath:OI,settingsPath:II,smsPath:WI,slugPath:QI,scriptsPath:KI,securityPath:ZI,serverPath:_I,userServerPath:$I,serverlessPath:BI,stacksPath:FI,stringsPath:UI,shellPath:HI,storesPath:YI,testingPath:VI,testsPath:zI,tinkerPath:qI,typesPath:JI,uiPath:RI,userDatabasePath:R,userMigrationsPath:s,userEventsPath:r,userJobsPath:u,userListenersPath:l,userMiddlewarePath:n,userModelsPath:i,userNotificationsPath:c,utilsPath:TI,validationPath:MI,viteConfigPath:NI,vitePluginPath:SI,xRayPath:xI,homeDir:DI,basename:S,delimiter:x,dirname:D,extname:A,isAbsolute:C,join:L,normalize:E,relative:Z,resolve:H,parse:w,sep:k,toNamespacedPath:y};export{xI as xRayPath,SI as vitePluginPath,NI as viteConfigPath,lG as viewsPath,MI as validationPath,TI as utilsPath,d as userViewsPath,$I as userServerPath,c as userNotificationsPath,i as userModelsPath,s as userMigrationsPath,n as userMiddlewarePath,l as userListenersPath,V as userLibsPath,u as userJobsPath,m as userFunctionsPath,r as userEventsPath,R as userDatabasePath,b as userComponentsPath,f as userActionsPath,RI as uiPath,JI as typesPath,y as toNamespacedPath,qI as tinkerPath,zI as testsPath,VI as testingPath,UI as stringsPath,YI as storesPath,q as storagePath,FI as stacksPath,WI as smsPath,QI as slugPath,HI as shellPath,II as settingsPath,BI as serverlessPath,_I as serverPath,k as sep,ZI as securityPath,GI as searchEnginePath,KI as scriptsPath,OI as schedulerPath,h as runtimePath,tG as routesPath,aG as routerPath,Y as resourcesPath,H as resolve,hG as replPath,g as relativeActionsPath,Z as relative,pG as realtimePath,eG as queuePath,oG as queryBuilderPath,PG as pushPath,rG as publicPath,W as projectPath,sG as projectConfigPath,iG as paymentsPath,nG as pathPath,yI as path,uG as packageJsonPath,bG as ormPath,mG as onboardingPath,dG as objectsPath,F as notificationsPath,E as normalize,jG as modulesPath,kI as modelsPath,fG as logsPath,gG as loggingPath,yG as listenersPath,kG as lintPath,U as libsPath,M as libsEntriesPath,wG as libraryEntryPath,EG as layoutsPath,LG as langPath,L as join,vG as jobsPath,C as isAbsolute,DI as homeDir,DG as healthPath,CG as gitPath,AG as functionsPath,Q as frameworkPath,XG as frameworkCloudPath,cG as findProjectPath,xG as fakerPath,A as extname,SG as examplesPath,MG as eventsPath,TG as errorHandlingPath,RG as enumsPath,JG as emailPath,qG as docsPath,zG as dnsPath,D as dirname,UG as developmentPath,VG as desktopPath,x as delimiter,HG as datetimePath,FG as databasePath,BG as customElementsDataPath,XI as coreStoragePath,I as corePath,NG as coreEnvPath,$G as configPath,_G as componentsPath,ZG as commandsPath,YG as collectionsPath,WG as cloudPath,QG as cliPath,OG as chatPath,KG as cachePath,j as builtUserActionsPath,T as buildPath,IG as buildEnginePath,p as buddyPath,S as basename,GG as authPath,o as assetsPath,t as arraysPath,X as appPath,a as analyticsPath,e as aliasPath,P as aiPath,J as actionsPath};
2
+ import N from"os";import{basename as S,delimiter as x,dirname as D,extname as C,isAbsolute as A,join as L,normalize as E,parse as w,relative as Y,resolve as H,sep as k,toNamespacedPath as y}from"path";import _ from"process";import{runCommandSync as v}from"@stacksjs/cli";import{log as z}from"@stacksjs/logging";function J(G){return I(`actions/${G||""}`)}function g(G){return Y(W(),J(G))}function f(G,O){const K=X(`Actions/${G||""}`);if(O?.relative)return Y(_.cwd(),K);return K}function j(G,O){const K=Q(`actions/${G||""}`);if(O?.relative)return Y(_.cwd(),K);return K}function d(G){return U(`components/${G||""}`)}function b(G){return Z(`views/${G||""}`)}function m(G){return Z(`functions/${G||""}`)}function u(G){return X(`Jobs/${G||""}`)}function l(G){return X(`Listeners/${G||""}`)}function n(G){return X(`Middleware/${G||""}`)}function i(G){return X(`Models/${G||""}`)}function c(G){return X(`Notifications/${G||""}`)}function R(G){return W(`database/${G||""}`)}function s(G){return R(`migrations/${G||""}`)}function r(){return X("Events.ts")}function P(G){return I(`ai/${G||""}`)}function o(G){return Z(`assets/${G||""}`)}function e(){return I("alias/src/index.ts")}function p(G,O){const K=I(`buddy/${G||""}`);if(O?.relative)return Y(_.cwd(),K);return K}function h(G){return Q(`buddy/${G||""}`)}function a(G){return I(`analytics/${G||""}`)}function t(G){return I(`arrays/${G||""}`)}function X(G){return W(`app/${G||""}`)}function GG(G){return I(`auth/${G||""}`)}function IG(G){return I(`api/${G||""}`)}function T(G){return I(`build/${G||""}`)}function KG(G){return T(`${G||""}`)}function U(G){return Q(`libs/${G||""}`)}function V(G){return Z(`${G||""}`)}function M(G){return U(`entries/${G||""}`)}function OG(G){return I(`cache/${G||""}`)}function QG(G){return I(`chat/${G||""}`)}function WG(G){return I(`cli/${G||""}`)}function XG(G){return I(`cloud/${G||""}`)}function YG(G){return Q(`cloud/${G||""}`)}function ZG(G){return I(`collections/${G||""}`)}function _G(G){return X(`Commands/${G||""}`)}function $G(G){return V(`components/${G||""}`)}function BG(G){return I(`config/${G||""}`)}function I(G){return Q(`core/${G||""}`)}function FG(){return Q("core/custom-elements.json")}function HG(G){return I(`database/${G||""}`)}function UG(G){return I(`datetime/${G||""}`)}function VG(G){return I(`development/${G||""}`)}function qG(G){return I(`desktop/${G||""}`)}function zG(G){return I(`docs/${G||""}`)}function JG(G){return I(`domains/${G||""}`)}function RG(G){return F(`email/${G||""}`)}function TG(G){return I(`enums/${G||""}`)}function MG(G){return I(`eslint-plugin/${G||""}`)}function NG(G){return I(`error-handling/${G||""}`)}function SG(G){return I(`events/${G||""}`)}function xG(G){return I(`env/${G||""}`)}function DG(G){return Q(`examples/${G||""}`)}function CG(G){return I(`faker/${G||""}`)}function Q(G,O){const K=q(`framework/${G||""}`);if(O?.relative)return Y(O.cwd||_.cwd(),K);return K}function AG(G){return I(`browser/${G||""}`)}function LG(G){return I(`health/${G||""}`)}function EG(G){return V(`functions/${G||""}`)}function wG(G){return I(`git/${G||""}`)}function kG(G){return Z(`lang/${G||""}`)}function yG(G,O){const K=Z(`layouts/${G||""}`);if(O?.relative)return Y(_.cwd(),K);return K}function vG(G){return M(`${G}.ts`)}function gG(G){return I(`lint/${G||""}`)}function fG(G){return X(`Listeners/${G||""}`)}function jG(G){return X(`Jobs/${G||""}`)}function dG(G){return I(`logging/${G||""}`)}function bG(G){return q(`logs/${G||""}`)}function gI(G){return X(`models/${G||""}`)}function mG(G){return Z(`modules/${G||""}`)}function F(G){return I(`notifications/${G||""}`)}function uG(G){return I(`orm/${G||""}`)}function lG(G){return I(`objects/${G||""}`)}function nG(G){return W(`${G||"views/dashboard/onboarding"}`)}function iG(G){if(G==="vue-components")return Q("libs/components/vue/package.json");if(G==="web-components")return Q("libs/components/web/package.json");return Q(`libs/${G}/package.json`)}function cG(G){return Z(`views/${G||""}`)}function sG(G){return I(`path/${G||""}`)}function rG(G){return I(`payments/${G||""}`)}function W(G="",O){let K=_.cwd();while(K.includes("storage"))K=H(K,"..");const $=H(K,G);if(O?.relative)return Y(_.cwd(),$);return $}async function PG(G){const O=await v("buddy projects:list --quiet");z.debug(`ProjectList in findProjectPath ${O}`);const K=O.split("\n").filter((B)=>B.startsWith(" - ")).map((B)=>B.trim().substring(4));z.debug(`Projects in findProjectPath ${K}`);const $=K.find((B)=>B.includes(G));if(!$)throw new Error(`Could not find project with name: ${G}`);return $.startsWith("/")?$:`/${$}`}function oG(G){return W(`config/${G||""}`)}function q(G){return W(`storage/${G||""}`)}function eG(G){return W(`public/${G||""}`)}function pG(G){return F(`push/${G||""}`)}function hG(G){return I(`query-builder/${G||""}`)}function aG(G){return I(`queue/${G||""}`)}function tG(G){return I(`realtime/${G||""}`)}function Z(G,O){if(O?.relative){const K=W(`resources/${G||""}`);return Y(_.cwd(),K)}return W(`resources/${G||""}`)}function GI(G){return I(`repl/${G||""}`)}function II(G){return I(`router/${G||""}`)}function KI(G,O){const K=Z(`routes/${G||""}`);if(O?.relative)return Y(_.cwd(),K);return W(`routes/${G||""}`)}function OI(G){return I(`search-engine/${G||""}`)}function QI(G){return W(`${G||"views/dashboard/settings"}`)}function WI(G){return Q(`scripts/${G||""}`)}function XI(G){return I(`scheduler/${G||""}`)}function YI(G){return I(`slug/${G||""}`)}function ZI(G){return F(`sms/${G||""}`)}function _I(G){return I(`storage/${G||""}`)}function $I(G){return Z(`stores/${G||""}`)}function BI(G){return I(`security/${G||""}`)}function FI(G){return I(`server/${G||""}`)}function HI(G){return Q(`server/${G||""}`)}function UI(G){return I(`serverless/${G||""}`)}function VI(G){return Q(`src/${G||""}`)}function qI(G){return I(`shell/${G||""}`)}function zI(G){return I(`strings/${G||""}`)}function JI(G){return I(`testing/${G||""}`)}function RI(G){return I(`tinker/${G||""}`)}function TI(G){return Q(`tests/${G||""}`)}function MI(G){return I(`types/${G||""}`)}function NI(G,O){const K=I(`ui/${G||""}`);if(O?.relative)return Y(_.cwd(),K);return K}function SI(G){return I(`utils/${G||""}`)}function xI(G){return I(`validation/${G||""}`)}function DI(G){return I(`vite-config/${G||""}`)}function CI(G){return I(`vite-plugin/${G||""}`)}function AI(G){return Q(`stacks/x-ray/${G||""}`)}function LI(G){return N.homedir()+(G?(G.startsWith("/")?"":"/")+G:"~")}var fI={actionsPath:J,userActionsPath:f,builtUserActionsPath:j,userComponentsPath:d,userViewsPath:b,userFunctionsPath:m,aiPath:P,assetsPath:o,relativeActionsPath:g,aliasPath:e,analyticsPath:a,arraysPath:t,appPath:X,authPath:GG,coreApiPath:IG,buddyPath:p,buildEnginePath:KG,libsEntriesPath:M,buildPath:T,cachePath:OG,chatPath:QG,cliPath:WG,cloudPath:XG,frameworkCloudPath:YG,collectionsPath:ZG,commandsPath:_G,componentsPath:$G,configPath:BG,projectConfigPath:oG,corePath:I,customElementsDataPath:FG,databasePath:HG,datetimePath:UG,developmentPath:VG,desktopPath:qG,docsPath:zG,dnsPath:JG,emailPath:RG,enumsPath:TG,eslintPluginPath:MG,errorHandlingPath:NG,eventsPath:SG,coreEnvPath:xG,healthPath:LG,examplesPath:DG,fakerPath:CG,frameworkPath:Q,browserPath:AG,storagePath:q,functionsPath:EG,gitPath:wG,langPath:kG,layoutsPath:yG,libsPath:U,userLibsPath:V,libraryEntryPath:vG,lintPath:gG,listenersPath:fG,loggingPath:dG,logsPath:bG,jobsPath:jG,modulesPath:mG,ormPath:uG,objectsPath:lG,onboardingPath:nG,notificationsPath:F,packageJsonPath:iG,viewsPath:cG,pathPath:sG,paymentsPath:rG,projectPath:W,findProjectPath:PG,coreStoragePath:_I,publicPath:eG,pushPath:pG,queryBuilderPath:hG,queuePath:aG,realtimePath:tG,resourcesPath:Z,replPath:GI,routerPath:II,routesPath:KI,runtimePath:h,searchEnginePath:OI,schedulerPath:XI,settingsPath:QI,smsPath:ZI,slugPath:YI,scriptsPath:WI,securityPath:BI,serverPath:FI,userServerPath:HI,serverlessPath:UI,stacksPath:VI,stringsPath:zI,shellPath:qI,storesPath:$I,testingPath:JI,testsPath:TI,tinkerPath:RI,typesPath:MI,uiPath:NI,userDatabasePath:R,userMigrationsPath:s,userEventsPath:r,userJobsPath:u,userListenersPath:l,userMiddlewarePath:n,userModelsPath:i,userNotificationsPath:c,utilsPath:SI,validationPath:xI,viteConfigPath:DI,vitePluginPath:CI,xRayPath:AI,homeDir:LI,basename:S,delimiter:()=>x,dirname:D,extname:C,isAbsolute:A,join:L,normalize:E,relative:Y,resolve:H,parse:w,sep:()=>k,toNamespacedPath:y};export{AI as xRayPath,CI as vitePluginPath,DI as viteConfigPath,cG as viewsPath,xI as validationPath,SI as utilsPath,b as userViewsPath,HI as userServerPath,c as userNotificationsPath,i as userModelsPath,s as userMigrationsPath,n as userMiddlewarePath,l as userListenersPath,V as userLibsPath,u as userJobsPath,m as userFunctionsPath,r as userEventsPath,R as userDatabasePath,d as userComponentsPath,f as userActionsPath,NI as uiPath,MI as typesPath,y as toNamespacedPath,RI as tinkerPath,TI as testsPath,JI as testingPath,zI as stringsPath,$I as storesPath,q as storagePath,VI as stacksPath,ZI as smsPath,YI as slugPath,qI as shellPath,QI as settingsPath,UI as serverlessPath,FI as serverPath,k as sep,BI as securityPath,OI as searchEnginePath,WI as scriptsPath,XI as schedulerPath,h as runtimePath,KI as routesPath,II as routerPath,Z as resourcesPath,H as resolve,GI as replPath,g as relativeActionsPath,Y as relative,tG as realtimePath,aG as queuePath,hG as queryBuilderPath,pG as pushPath,eG as publicPath,W as projectPath,oG as projectConfigPath,rG as paymentsPath,sG as pathPath,fI as path,iG as packageJsonPath,uG as ormPath,nG as onboardingPath,lG as objectsPath,F as notificationsPath,E as normalize,mG as modulesPath,gI as modelsPath,bG as logsPath,dG as loggingPath,fG as listenersPath,gG as lintPath,U as libsPath,M as libsEntriesPath,vG as libraryEntryPath,yG as layoutsPath,kG as langPath,L as join,jG as jobsPath,A as isAbsolute,LI as homeDir,LG as healthPath,wG as gitPath,EG as functionsPath,Q as frameworkPath,YG as frameworkCloudPath,PG as findProjectPath,CG as fakerPath,C as extname,DG as examplesPath,SG as eventsPath,MG as eslintPluginPath,NG as errorHandlingPath,TG as enumsPath,RG as emailPath,zG as docsPath,JG as dnsPath,D as dirname,VG as developmentPath,qG as desktopPath,x as delimiter,UG as datetimePath,HG as databasePath,FG as customElementsDataPath,_I as coreStoragePath,I as corePath,xG as coreEnvPath,IG as coreApiPath,BG as configPath,$G as componentsPath,_G as commandsPath,ZG as collectionsPath,XG as cloudPath,WG as cliPath,QG as chatPath,OG as cachePath,j as builtUserActionsPath,T as buildPath,KG as buildEnginePath,p as buddyPath,AG as browserPath,S as basename,GG as authPath,o as assetsPath,t as arraysPath,X as appPath,a as analyticsPath,e as aliasPath,P as aiPath,J as actionsPath};
3
3
 
4
- //# debugId=807E2643F959657F64756E2164756E21
4
+ //# debugId=A783005B7AA3F3E664756E2164756E21
5
5
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -2,9 +2,9 @@
2
2
  "version": 3,
3
3
  "sources": ["../src/index.ts"],
4
4
  "sourcesContent": [
5
- "import os from 'node:os'\nimport {\n basename,\n delimiter,\n dirname,\n extname,\n isAbsolute,\n join,\n normalize,\n parse,\n relative,\n resolve,\n sep,\n toNamespacedPath,\n} from 'node:path'\nimport process from 'node:process'\nimport { runCommandSync } from '@stacksjs/cli'\nimport { log } from '@stacksjs/logging'\n\n/**\n * Returns the path to the `actions` directory. The `actions` directory\n * contains the core Stacks' actions.\n *\n * @param path - The relative path to the file or directory.\n * @returns The absolute path to the file or directory.\n * @example\n * ```ts\n * import { actionsPath } from '@stacksjs/paths'\n *\n * console.log(actionsPath('path/to/action.ts')) // Outputs the absolute path to 'path/to/action.ts' within the `actions` directory\n * ```\n */\nexport function actionsPath(path?: string): string {\n return corePath(`actions/${path || ''}`)\n}\n\nexport function relativeActionsPath(path?: string) {\n return relative(projectPath(), actionsPath(path))\n}\n\nexport function userActionsPath(path?: string, options?: { relative: true }) {\n return appPath(`Actions/${path || ''}`)\n}\n\nexport function builtUserActionsPath(path?: string, options?: { relative: boolean }) {\n const absolutePath = frameworkPath(`actions/${path || ''}`)\n\n if (options?.relative) return relative(process.cwd(), absolutePath)\n\n return absolutePath\n}\n\nexport function userComponentsPath(path?: string) {\n return libsPath(`components/${path || ''}`)\n}\n\nexport function userViewsPath(path?: string) {\n return resourcesPath(`views/${path || ''}`)\n}\n\nexport function userFunctionsPath(path?: string) {\n return resourcesPath(`functions/${path || ''}`)\n}\n\n/**\n * Returns the path to the user-defined `Jobs` directory.\n *\n * @param path - The relative path to the file or directory within the `Jobs` directory.\n * @returns The absolute path to the specified file or directory within the user-defined `Jobs` directory.\n * @example\n * ```ts\n * import { userJobsPath } from '@stacksjs/paths'\n *\n * console.log(userJobsPath('MyJob.ts')) // Outputs the absolute path to 'MyJob.ts' within the user-defined `Jobs` directory.\n * ```\n */\nexport function userJobsPath(path?: string): string {\n return appPath(`Jobs/${path || ''}`)\n}\n\n/**\n * Returns the path to the user-defined `Listeners` directory.\n *\n * @param path - The relative path to the file or directory within the `Listeners` directory.\n * @returns The absolute path to the specified file or directory within the user-defined `Listeners` directory.\n * @example\n * ```ts\n * import { userListenersPath } from '@stacksjs/paths'\n *\n * console.log(userListenersPath('MyListener.ts')) // Outputs the absolute path to 'MyListener.ts' within the user-defined `Listeners` directory.\n * ```\n */\nexport function userListenersPath(path?: string): string {\n return appPath(`Listeners/${path || ''}`)\n}\n\n/**\n * Returns the path to the user-defined `Middleware` directory.\n *\n * @param path - The relative path to the file or directory within the Middleware directory.\n * @returns The absolute path to the specified file or directory within the user-defined Middleware directory.\n * @example\n * ```ts\n * import { userMiddlewarePath } from '@stacksjs/paths'\n *\n * console.log(userMiddlewarePath('MyMiddleware.ts')) // Outputs the absolute path to 'MyMiddleware.ts' within the user-defined Middleware directory.\n * ```\n */\nexport function userMiddlewarePath(path?: string) {\n return appPath(`Middleware/${path || ''}`)\n}\n\n/**\n * Returns the path to the user-defined `Models` directory.\n *\n * @param path - The relative path to the file or directory within the `Models` directory.\n * @returns The absolute path to the specified file or directory within the user-defined `Models` directory.\n * @example\n * ```ts\n * import { userModelsPath } from '@stacksjs/paths'\n *\n * console.log(userModelsPath('MyModel.ts')) // Outputs the absolute path to 'MyModel.ts' within the user-defined `Models` directory.\n * ```\n */\nexport function userModelsPath(path?: string): string {\n return appPath(`Models/${path || ''}`)\n}\n\n/**\n * Returns the path to the user-defined `Notifications` directory.\n *\n * @param path - The relative path to the file or directory within the `Notifications` directory.\n * @returns The absolute path to the specified file or directory within the user-defined `Notifications` directory.\n * @example\n * ```ts\n * import { userNotificationsPath } from '@stacksjs/paths'\n *\n * console.log(userNotificationsPath('MyNotification.ts')) // Outputs the absolute path to 'MyNotification.ts' within the user-defined `Notifications` directory.\n * ```\n */\nexport function userNotificationsPath(path?: string) {\n return appPath(`Notifications/${path || ''}`)\n}\n\nexport function userDatabasePath(path?: string) {\n return projectPath(`database/${path || ''}`)\n}\n\nexport function userMigrationsPath(path?: string) {\n return userDatabasePath(`migrations/${path || ''}`)\n}\n\n/**\n * Returns the path to the user-defined `Events.ts` file.\n *\n * @returns The absolute path to the `Events.ts` file within the user-defined directory.\n * @example\n * ```ts\n * import { userEventsPath } from '@stacksjs/paths'\n *\n * console.log(userEventsPath()) // Outputs the absolute path to 'Events.ts' within the user-defined directory.\n * ```\n */\nexport function userEventsPath(): string {\n return appPath(`Events.ts`)\n}\n\n/**\n * Returns the path to the `ai` directory. The AI directory\n * contains the core Stacks' AI logic which currently\n * is a wrapper of the OpenAI API.\n *\n * @param path - relative path to the file or directory\n * @returns string - absolute path to the file or directory\n *\n * @example\n * ```ts\n * import { aiPath } from '@stacksjs/paths'\n *\n * console.log(aiPath('src/drivers/example.ts')) // Outputs the absolute path to 'openai.ts' within the AI directory\n * ```\n */\nexport function aiPath(path?: string) {\n return corePath(`ai/${path || ''}`)\n}\n\n/**\n * Returns the path to the `assets` directory within the `resources` directory.\n *\n * @param path - The relative path to the file or directory within the `assets` directory.\n * @returns The absolute path to the specified file or directory within the `assets` directory.\n * @example\n * ```ts\n * import { assetsPath } from '@stacksjs/paths'\n *\n * console.log(assetsPath('images/logo.png')) // Outputs the absolute path to 'images/logo.png' within the `assets` directory.\n * ```\n */\nexport function assetsPath(path?: string) {\n return resourcesPath(`assets/${path || ''}`)\n}\n\n/**\n * Returns the path to the `alias` directory within the core directory.\n *\n * @returns The absolute path to the `alias` directory.\n * @example\n * ```ts\n * import { aliasPath } from '@stacksjs/paths'\n *\n * console.log(aliasPath()) // Outputs the absolute path to the `alias` directory.\n * ```\n */\nexport function aliasPath() {\n return corePath('alias/src/index.ts')\n}\n\n/**\n * Returns the path to the `buddy` directory, optionally relative to the current working directory.\n *\n * @param path - The relative path to the file or directory within the buddy directory.\n * @param options - Optional. An object containing configuration settings.\n * @param options.relative - If true, returns the path relative to the current working directory.\n * @returns The absolute or relative path to the specified file or directory within the buddy * @returns The absolute or relative path to the specified file or directory within the buddy directory.\n * @example\n * ```ts\n * import { buddyPath } from '@stacksjs/paths'\n *\n * console.log(buddyPath('config/buddy.json')) // Outputs the absolute path to 'config/buddy.json' within the buddy directory.\n * console.log(buddyPath('config/buddy.json', { relative: true })) // Outputs the relative path to 'config/buddy.json' within the buddy directory.\n * ```\n */\nexport function buddyPath(path?: string, options?: { relative?: boolean }) {\n const absolutePath = corePath(`buddy/${path || ''}`)\n\n if (options?.relative) return relative(process.cwd(), absolutePath)\n\n return absolutePath\n}\n\n/**\n * Returns the path to the `runtime` directory within the framework directory.\n *\n * @param path - The relative path to the file or directory within the runtime directory.\n * @returns The absolute path to the specified file or directory within the runtime directory.\n * @example\n * ```ts\n * import { runtimePath } from '@stacksjs/paths'\n *\n * console.log(runtimePath('runtime-config.json')) // Outputs the absolute path to 'runtime-config.json' within the runtime directory.\n * ```\n */\nexport function runtimePath(path?: string): string {\n return frameworkPath(`buddy/${path || ''}`)\n}\n\n/**\n * Returns the path to the `analytics` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `analytics` directory.\n * @returns The absolute path to the specified file or directory within the `analytics` directory.\n * @example\n * ```ts\n * import { analyticsPath } from '@stacksjs/paths'\n *\n * console.log(analyticsPath('data/report.csv')) // Outputs the absolute path to 'data/report.csv' within the `analytics` directory.\n * ```\n */\nexport function analyticsPath(path?: string): string {\n return corePath(`analytics/${path || ''}`)\n}\n\n/**\n * Returns the path to the `arrays` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `arrays` directory.\n * @returns The absolute path to the specified file or directory within the `arrays` directory.\n * @example\n * ```ts\n * import { arraysPath } from '@stacksjs/paths'\n *\n * console.log(arraysPath('list.txt')) // Outputs the absolute path to 'list.txt' within the `arrays` directory.\n * ```\n */\nexport function arraysPath(path?: string): string {\n return corePath(`arrays/${path || ''}`)\n}\n\n/**\n * Returns the path to the `app` directory, optionally relative to the project directory.\n *\n * @param path - The relative path to the file or directory within the app directory.\n * @returns The absolute path to the specified file or directory within the app directory.\n * @example\n * ```ts\n * import { appPath } from '@stacksjs/paths'\n *\n * console.log(appPath('Actions/DummyAction.ts')) // Outputs the absolute path to 'Actions/DummyAction.ts' within the app directory.\n * ```\n */\nexport function appPath(path?: string): string {\n return projectPath(`app/${path || ''}`)\n}\n\n/**\n * Returns the path to the `auth` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the auth directory.\n * @returns The absolute path to the specified file or directory within the auth directory.\n * @example\n * ```ts\n * import { authPath } from '@stacksjs/paths'\n *\n * console.log(authPath('login.ts')) // Outputs the absolute path to 'login.ts' within the auth directory.\n * ```\n */\nexport function authPath(path?: string): string {\n return corePath(`auth/${path || ''}`)\n}\n\n/**\n * Returns the path to the build directory. The build directory\n * contains Stacks' build engine & its tooling integrations.\n *\n * @param path string - relative path to the file or directory\n * @returns string - absolute path to the file or directory\n * @example\n * ```ts\n * buildPath('functions.stx')\n * buildPath('components.ts')\n * ```\n */\nexport function buildPath(path?: string) {\n return corePath(`build/${path || ''}`)\n}\n\n/**\n * Returns the path to the build engine directory.\n *\n * @param path - The relative path to the file or directory within the build engine directory.\n * @returns The absolute path to the specified file or directory within the build engine directory.\n */\nexport function buildEnginePath(path?: string): string {\n return buildPath(`${path || ''}`)\n}\n\n/**\n * Returns the path to the `libs` directory within the framework directory.\n *\n * @param path - The relative path to the file or directory within the `libs` directory.\n * @returns The absolute path to the specified file or directory within the `libs` directory.\n */\nexport function libsPath(path?: string): string {\n return frameworkPath(`libs/${path || ''}`)\n}\n\n/**\n * Returns the path to the user `libs` directory within the root project directory.\n *\n * @param path - The relative path to the file or directory within the `libs` directory.\n * @returns The absolute path to the specified file or directory within the `libs` directory.\n */\nexport function userLibsPath(path?: 'components' | 'functions' | string): string {\n return resourcesPath(`${path || ''}`)\n}\n\n/**\n * Returns the path to the `entries` directory within the `libs` directory.\n *\n * @param path - The relative path to the file or directory within the `entries` directory.\n * @returns The absolute path to the specified file or directory within the `entries` directory.\n */\nexport function libsEntriesPath(path?: string): string {\n return libsPath(`entries/${path || ''}`)\n}\n\n/**\n * Returns the path to the `cache` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the cache directory.\n * @returns The absolute path to the specified file or directory within the cache directory.\n */\nexport function cachePath(path?: string): string {\n return corePath(`cache/${path || ''}`)\n}\n\n/**\n * Returns the path to the `chat` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the chat directory.\n * @returns The absolute path to the specified file or directory within the chat directory.\n */\nexport function chatPath(path?: string): string {\n return corePath(`chat/${path || ''}`)\n}\n\n/**\n * Returns the path to the `cli` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the cli directory.\n * @returns The absolute path to the specified file or directory within the cli directory.\n */\nexport function cliPath(path?: string): string {\n return corePath(`cli/${path || ''}`)\n}\n\n/**\n * Returns the path to the `cloud` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the cloud directory.\n * @returns The absolute path to the specified file or directory within the cloud directory.\n */\nexport function cloudPath(path?: string): string {\n return corePath(`cloud/${path || ''}`)\n}\n\n/**\n * Returns the path to the `cloud` directory within the framework directory.\n *\n * @param path - The relative path to the file or directory within the framework cloud directory.\n * @returns The absolute path to the specified file or directory within the framework cloud directory.\n */\nexport function frameworkCloudPath(path?: string): string {\n return frameworkPath(`cloud/${path || ''}`)\n}\n\n/**\n * Returns the path to the `collections` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `collections` directory.\n * @returns The absolute path to the specified file or directory within the `collections` directory.\n */\nexport function collectionsPath(path?: string): string {\n return corePath(`collections/${path || ''}`)\n}\n\n/**\n * Returns the path to the `Commands` directory within the app directory.\n *\n * @param path - The relative path to the file or directory within the `Commands` directory.\n * @returns The absolute path to the specified file or directory within the `Commands` directory.\n */\nexport function commandsPath(path?: string): string {\n return appPath(`Commands/${path || ''}`)\n}\n\n/**\n * Returns the path to the `components` directory within the `resources` directory.\n *\n * @param path - The relative path to the file or directory within the `components` directory.\n * @returns The absolute path to the specified file or directory within the `components` directory.\n */\nexport function componentsPath(path?: string): string {\n return userLibsPath(`components/${path || ''}`)\n}\n\n/**\n * Returns the path to the `config` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the config directory.\n * @returns The absolute path to the specified file or directory within the config directory.\n */\nexport function configPath(path?: string): string {\n return corePath(`config/${path || ''}`)\n}\n\n/**\n * Returns the path to the `core` directory within the framework directory.\n *\n * @param path - The relative path to the file or directory within the core directory.\n * @returns The absolute path to the specified file or directory within the core directory.\n */\nexport function corePath(path?: string): string {\n return frameworkPath(`core/${path || ''}`)\n}\n\n/**\n * Returns the absolute path to the `custom-elements.json` file within the core directory.\n *\n * @returns The absolute path to the `custom-elements.json` file.\n */\nexport function customElementsDataPath(): string {\n return frameworkPath('core/custom-elements.json')\n}\n\n/**\n * Returns the path to the `database` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the database directory.\n * @returns The absolute path to the specified file or directory within the database directory.\n */\nexport function databasePath(path?: string): string {\n return corePath(`database/${path || ''}`)\n}\n\n/**\n * Returns the path to the `datetime` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the datetime directory.\n * @returns The absolute path to the specified file or directory within the datetime directory.\n */\nexport function datetimePath(path?: string): string {\n return corePath(`datetime/${path || ''}`)\n}\n\n/**\n * Returns the path to the `development` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the development directory.\n * @returns The absolute path to the specified file or directory within the development directory.\n */\nexport function developmentPath(path?: string): string {\n return corePath(`development/${path || ''}`)\n}\n\n/**\n * Returns the path to the `desktop` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the desktop directory.\n * @returns The absolute path to the specified file or directory within the desktop directory.\n */\nexport function desktopPath(path?: string): string {\n return corePath(`desktop/${path || ''}`)\n}\n\n/**\n * Returns the path to the `docs` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `docs` directory.\n * @returns The absolute path to the specified file or directory within the `docs` directory.\n */\nexport function docsPath(path?: string): string {\n return corePath(`docs/${path || ''}`)\n}\n\n/**\n * Returns the path to the `domains` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `domains` directory.\n * @returns The absolute path to the specified file or directory within the `domains` directory.\n */\nexport function dnsPath(path?: string): string {\n return corePath(`domains/${path || ''}`)\n}\n\n/**\n * Returns the path to the `email` directory within the `notifications` directory.\n *\n * @param path - The relative path to the file or directory within the email directory.\n * @returns The absolute path to the specified file or directory within the email directory.\n */\nexport function emailPath(path?: string): string {\n return notificationsPath(`email/${path || ''}`)\n}\n\n/**\n * Returns the path to the `enums` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `enums` directory.\n * @returns The absolute path to the specified file or directory within the `enums` directory.\n */\nexport function enumsPath(path?: string): string {\n return corePath(`enums/${path || ''}`)\n}\n\n/**\n * Returns the path to the `error-handling` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the error-handling directory.\n * @returns The absolute path to the specified file or directory within the error-handling directory.\n */\nexport function errorHandlingPath(path?: string): string {\n return corePath(`error-handling/${path || ''}`)\n}\n\n/**\n * Returns the path to the `events` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `events` directory.\n * @returns The absolute path to the specified file or directory within the `events` directory.\n */\nexport function eventsPath(path?: string): string {\n return corePath(`events/${path || ''}`)\n}\n\n/**\n * Returns the path to the `env` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the env directory.\n * @returns The absolute path to the specified file or directory within the env directory.\n */\nexport function coreEnvPath(path?: string): string {\n return corePath(`env/${path || ''}`)\n}\n\n/**\n * Returns the path to the `examples` directory within the framework directory, filtered by type.\n *\n * @param type - The type of examples to filter by ('vue-components' or 'web-components').\n * @returns The absolute path to the specified type of examples within the `examples` directory.\n */\nexport function examplesPath(type: 'vue-components' | 'web-components'): string {\n return frameworkPath(`examples/${type || ''}`)\n}\n\n/**\n * Returns the path to the `faker` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the faker directory.\n * @returns The absolute path to the specified file or directory within the faker directory.\n */\nexport function fakerPath(path?: string): string {\n return corePath(`faker/${path || ''}`)\n}\n\n/**\n * Returns the path to the framework directory, optionally relative to the current working directory.\n *\n * @param path - The relative path to the file or directory within the framework directory.\n * @param options - Optional. An object containing configuration settings.\n * @param options.relative - If true, returns the path relative to the current working directory.\n * @param options.cwd - Specifies a custom working directory.\n * @returns The absolute or relative path to the specified file or directory within the framework directory.\n */\nexport function frameworkPath(path?: string, options?: { relative?: boolean; cwd?: string }): string {\n const absolutePath = storagePath(`framework/${path || ''}`)\n\n if (options?.relative) return relative(options.cwd || process.cwd(), absolutePath)\n\n return absolutePath\n}\n\n/**\n * Returns the path to the `health` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the health directory.\n * @returns The absolute path to the specified file or directory within the health directory.\n */\nexport function healthPath(path?: string): string {\n return corePath(`health/${path || ''}`)\n}\n\n/**\n * Returns the path to the `functions` directory within the `resources` directory.\n *\n * @param path - The relative path to the file or directory within the `functions` directory.\n * @returns The absolute path to the specified file or directory within the `functions` directory.\n */\nexport function functionsPath(path?: string): string {\n return userLibsPath(`functions/${path || ''}`)\n}\n\n/**\n * Returns the path to the `git` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the git directory.\n * @returns The absolute path to the specified file or directory within the git directory.\n */\nexport function gitPath(path?: string): string {\n return corePath(`git/${path || ''}`)\n}\n\n/**\n * Returns the path to the `lang` directory, optionally relative to the project directory.\n *\n * @param path - The relative path to the file or directory within the lang directory.\n * @returns The absolute path to the specified file or directory within the lang directory.\n */\nexport function langPath(path?: string): string {\n return resourcesPath(`lang/${path || ''}`)\n}\n\n/**\n * Returns the path to the `layouts` directory within the `resources` directory, optionally relative to the current working directory.\n *\n * @param path - The relative path to the file or directory within the `layouts` directory.\n * @param options - Optional. An object containing configuration settings.\n * @param options.relative - If true, returns the path relative to the current working directory.\n * @returns The absolute or relative path to the specified file or directory within the `layouts` directory.\n */\nexport function layoutsPath(path?: string, options?: { relative?: boolean }): string {\n const absolutePath = resourcesPath(`layouts/${path || ''}`)\n\n if (options?.relative) return relative(process.cwd(), absolutePath)\n\n return absolutePath\n}\n\n/**\n * Returns the path to the library entry file, filtered by library type.\n *\n * @param type - The type of library ('vue-components', 'web-components', or 'functions').\n * @returns The absolute path to the specified library entry file.\n */\nexport type LibraryType = 'vue-components' | 'web-components' | 'functions'\nexport function libraryEntryPath(type: LibraryType): string {\n return libsEntriesPath(`${type}.ts`)\n}\n\n/**\n * Returns the path to the `lint` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the lint directory.\n * @returns The absolute path to the specified file or directory within the lint directory.\n */\nexport function lintPath(path?: string): string {\n return corePath(`lint/${path || ''}`)\n}\n\n/**\n * Returns the path to the `listeners` directory within the app directory.\n *\n * @param path - The relative path to the file or directory within the `listeners` directory.\n * @returns The absolute path to the specified file or directory within the `listeners` directory.\n */\nexport function listenersPath(path?: string): string {\n return appPath(`Listeners/${path || ''}`)\n}\n\n/**\n * Returns the path to the `jobs` directory within the app directory.\n *\n * @param path - The relative path to the file or directory within the `jobs` directory.\n * @returns The absolute path to the specified file or directory within the `jobs` directory.\n */\nexport function jobsPath(path?: string): string {\n return appPath(`Jobs/${path || ''}`)\n}\n\n/**\n * Returns the path to the `logging` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the logging directory.\n * @returns The absolute path to the specified file or directory within the logging directory.\n */\nexport function loggingPath(path?: string): string {\n return corePath(`logging/${path || ''}`)\n}\n\n/**\n * Returns the path to the `logs` directory within the project storage directory.\n *\n * @param path - The relative path to the file or directory within the `logs` directory.\n * @returns The absolute path to the specified file or directory within the `logs` directory.\n */\nexport function logsPath(path?: string): string {\n return storagePath(`logs/${path || ''}`)\n}\n\n/**\n * Returns the path to the `models` directory within the app directory.\n *\n * @param path - The relative path to the file or directory within the `models` directory.\n * @returns The absolute path to the specified file or directory within the `models` directory.\n */\nexport function modelsPath(path?: string): string {\n return appPath(`models/${path || ''}`)\n}\n\n/**\n * Returns the path to the `modules` directory within the `resources` directory.\n *\n * @param path - The relative path to the file or directory within the `modules` directory.\n * @returns The absolute path to the specified file or directory within the `modules` directory.\n */\nexport function modulesPath(path?: string): string {\n return resourcesPath(`modules/${path || ''}`)\n}\n\n/**\n * Returns the path to the `notifications` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `notifications` directory.\n * @returns The absolute path to the specified file or directory within the `notifications` directory.\n */\nexport function notificationsPath(path?: string): string {\n return corePath(`notifications/${path || ''}`)\n}\n\n/**\n * Returns the path to the `orm` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the orm directory.\n * @returns The absolute path to the specified file or directory within the orm directory.\n */\nexport function ormPath(path?: string): string {\n return corePath(`orm/${path || ''}`)\n}\n\n/**\n * Returns the path to the `objects` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `objects` directory.\n * @returns The absolute path to the specified file or directory within the `objects` directory.\n */\nexport function objectsPath(path?: string): string {\n return corePath(`objects/${path || ''}`)\n}\n\n/**\n * Returns the default path to the onboarding views within the project directory, or a specified path.\n *\n * @param path - The relative path to the file or directory within the project directory. Defaults to 'views/dashboard/onboarding'.\n * @returns The absolute path to the specified file or directory within the project directory.\n */\nexport function onboardingPath(path?: string): string {\n return projectPath(`${path || 'views/dashboard/onboarding'}`)\n}\n\n/**\n * Returns the path to the `package.json` file of a specified library type within the framework directory.\n *\n * @param type - The type of the library ('vue-components', 'web-components', or 'functions') for which to return the package.json path.\n * @returns The absolute path to the specified package.json file within the framework directory.\n */\nexport function packageJsonPath(type: 'vue-components' | 'web-components' | 'functions'): string {\n if (type === 'vue-components') return frameworkPath('libs/components/vue/package.json')\n\n if (type === 'web-components') return frameworkPath('libs/components/web/package.json')\n\n return frameworkPath(`libs/${type}/package.json`)\n}\n\n/**\n * Returns the path to the `views` directory within the `resources` directory.\n *\n * @param path - The relative path to the file or directory within the `views` directory.\n * @returns The absolute path to the specified file or directory within the `views` directory.\n */\nexport function viewsPath(path?: string): string {\n return resourcesPath(`views/${path || ''}`)\n}\n\n/**\n * Returns the path to the `path` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the path directory.\n * @returns The absolute path to the specified file or directory within the path directory.\n */\nexport function pathPath(path?: string): string {\n return corePath(`path/${path || ''}`)\n}\n\n/**\n * Returns the path to the `payments` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `payments` directory.\n * @returns The absolute path to the specified file or directory within the `payments` directory.\n */\nexport function paymentsPath(path?: string): string {\n return corePath(`payments/${path || ''}`)\n}\n\n/**\n * Returns the project path, resolving from the current working directory and moving up until the storage directory is no longer part of the path.\n *\n * @param filePath - The relative path to append to the project path. Defaults to an empty string.\n * @returns The absolute path to the specified file or directory within the project directory.\n */\nexport function projectPath(filePath = '', options?: { relative: boolean }): string {\n let path = process.cwd()\n\n while (path.includes('storage')) path = resolve(path, '..')\n\n const finalPath = resolve(path, filePath)\n\n // If the `relative` option is true, return the path relative to the current working directory\n if (options?.relative) return relative(process.cwd(), finalPath)\n\n return finalPath\n}\n\n/**\n * Finds and returns the absolute path of a specified project by name.\n *\n * @param project - The name of the project to find.\n * @returns The absolute path to the specified project.\n * @throws Error if the project with the specified name cannot be found.\n */\nexport async function findProjectPath(project: string): Promise<string> {\n const projectList = await runCommandSync('buddy projects:list --quiet')\n log.debug(`ProjectList in findProjectPath ${projectList}`)\n\n // get the list of all Stacks project paths (on the system)\n const projects = projectList\n .split('\\n')\n .filter((line: string) => line.startsWith(' - '))\n .map((line: string) => line.trim().substring(4))\n\n log.debug(`Projects in findProjectPath ${projects}`)\n\n // since we are targeting a specific project, find its path\n const projectPath = projects.find((proj: string) => proj.includes(project))\n\n if (!projectPath) throw new Error(`Could not find project with name: ${project}`)\n\n return projectPath.startsWith('/') ? projectPath : `/${projectPath}`\n}\n\n/**\n * Returns the path to the `config` directory within the project directory.\n *\n * @param path - The relative path to the file or directory within the config directory.\n * @returns The absolute path to the specified file or directory within the config directory.\n */\nexport function projectConfigPath(path?: string): string {\n return projectPath(`config/${path || ''}`)\n}\n\n/**\n * Returns the path to the `storage` directory within the project directory.\n *\n * @param path - The relative path to the file or directory within the storage directory.\n * @returns The absolute path to the specified file or directory within the storage directory.\n */\nexport function storagePath(path?: string): string {\n return projectPath(`storage/${path || ''}`)\n}\n\n/**\n * Returns the path to the `public` directory within the project directory.\n *\n * @param path - The relative path to the file or directory within the public directory.\n * @returns The absolute path to the specified file or directory within the public directory.\n */\nexport function publicPath(path?: string): string {\n return projectPath(`public/${path || ''}`)\n}\n\n/**\n * Returns the path to the `push` directory within the `notifications` directory.\n *\n * @param path - The relative path to the file or directory within the push directory.\n * @returns The absolute path to the specified file or directory within the push directory.\n */\nexport function pushPath(path?: string) {\n return notificationsPath(`push/${path || ''}`)\n}\n\n/**\n * Returns the path to the `query-builder` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the query-builder directory.\n * @returns The absolute path to the specified file or directory within the query-builder directory.\n */\nexport function queryBuilderPath(path?: string) {\n return corePath(`query-builder/${path || ''}`)\n}\n\n/**\n * Returns the path to the `queue` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the queue directory.\n * @returns The absolute path to the specified file or directory within the queue directory.\n */\nexport function queuePath(path?: string) {\n return corePath(`queue/${path || ''}`)\n}\n\n/**\n * Returns the path to the `realtime` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the realtime directory.\n * @returns The absolute path to the specified file or directory within the realtime directory.\n */\nexport function realtimePath(path?: string) {\n return corePath(`realtime/${path || ''}`)\n}\n\n/**\n * Returns the path to the `resources` directory within the project storage directory, with an option for relative paths.\n *\n * @param path - The relative path to the file or directory within the `resources` directory.\n * @param options - Optional. An object containing configuration settings.\n * @param options.relative - If true, returns the path relative to the current working directory.\n * @returns The absolute or relative path to the specified file or directory within the `resources` directory.\n */\nexport function resourcesPath(path?: string, options?: { relative?: boolean }) {\n if (options?.relative) {\n const absolutePath = projectPath(`resources/${path || ''}`)\n return relative(process.cwd(), absolutePath)\n }\n\n return projectPath(`resources/${path || ''}`)\n}\n\n/**\n * Returns the path to the `repl` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the repl directory.\n * @returns The absolute path to the specified file or directory within the repl directory.\n */\nexport function replPath(path?: string) {\n return corePath(`repl/${path || ''}`)\n}\n\n/**\n * Returns the path to the `router` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the router directory.\n * @returns The absolute path to the specified file or directory within the router directory.\n */\nexport function routerPath(path?: string) {\n return corePath(`router/${path || ''}`)\n}\n\n/**\n * Returns the path to the `routes` directory within the `resources` directory, with an option for relative paths.\n *\n * @param path - The relative path to the file or directory within the `routes` directory.\n * @param options - Optional. An object containing configuration settings.\n * @param options.relative - If true, returns the path relative to the current working directory.\n * @returns The absolute or relative path to the specified file or directory within the `routes` directory.\n */\nexport function routesPath(path?: string, options?: { relative?: boolean }) {\n const absolutePath = resourcesPath(`routes/${path || ''}`)\n\n if (options?.relative) return relative(process.cwd(), absolutePath)\n\n return projectPath(`routes/${path || ''}`)\n}\n\n/**\n * Returns the path to the `search-engine` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the search-engine directory.\n * @returns The absolute path to the specified file or directory within the search-engine directory.\n */\nexport function searchEnginePath(path?: string) {\n return corePath(`search-engine/${path || ''}`)\n}\n\n/**\n * Returns the path to the `settings` directory within the project directory, defaulting to the views/dashboard/settings directory.\n *\n * @param path - The relative path to the file or directory within the `settings` directory.\n * @returns The absolute path to the specified file or directory within the `settings` directory.\n */\nexport function settingsPath(path?: string) {\n return projectPath(`${path || 'views/dashboard/settings'}`)\n}\n\n/**\n * Returns the path to the `scripts` directory within the framework directory.\n *\n * @param path - The relative path to the file or directory within the `scripts` directory.\n * @returns The absolute path to the specified file or directory within the `scripts` directory.\n */\nexport function scriptsPath(path?: string) {\n return frameworkPath(`scripts/${path || ''}`)\n}\n\n/**\n * Returns the path to the `scheduler` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the scheduler directory.\n * @returns The absolute path to the specified file or directory within the scheduler directory.\n */\nexport function schedulerPath(path?: string) {\n return corePath(`scheduler/${path || ''}`)\n}\n\n/**\n * Returns the path to the `slug` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the slug directory.\n * @returns The absolute path to the specified file or directory within the slug directory.\n */\nexport function slugPath(path?: string) {\n return corePath(`slug/${path || ''}`)\n}\n\n/**\n * Returns the path to the `sms` directory within the `notifications` directory.\n *\n * @param path - The relative path to the file or directory within the `sms` directory.\n * @returns The absolute path to the specified file or directory within the `sms` directory.\n */\nexport function smsPath(path?: string) {\n return notificationsPath(`sms/${path || ''}`)\n}\n\n/**\n * Returns the path to the `storage` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the storage directory.\n * @returns The absolute path to the specified file or directory within the storage directory.\n */\nexport function coreStoragePath(path?: string) {\n return corePath(`storage/${path || ''}`)\n}\n\n/**\n * Returns the path to the `stores` directory within the `resources` directory.\n *\n * @param path - The relative path to the file or directory within the `stores` directory.\n * @returns The absolute path to the specified file or directory within the `stores` directory.\n */\nexport function storesPath(path?: string) {\n return resourcesPath(`stores/${path || ''}`)\n}\n\n/**\n * Returns the path to the `security` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the security directory.\n * @returns The absolute path to the specified file or directory within the security directory.\n */\nexport function securityPath(path?: string) {\n return corePath(`security/${path || ''}`)\n}\n\n/**\n * Returns the path to the `server` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the server directory.\n * @returns The absolute path to the specified file or directory within the server directory.\n */\nexport function serverPath(path?: string) {\n return corePath(`server/${path || ''}`)\n}\n\nexport function userServerPath(path?: string) {\n return frameworkPath(`server/${path || ''}`)\n}\n\n/**\n * Returns the path to the `serverless` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `serverless` directory.\n * @returns The absolute path to the specified file or directory within the `serverless` directory.\n */\nexport function serverlessPath(path?: string) {\n return corePath(`serverless/${path || ''}`)\n}\n\n/**\n * Returns the path to the specified directory or file within the framework's `src` directory.\n *\n * @param path - The relative path to the file or directory within the framework's `src` directory.\n * @returns The absolute path to the specified file or directory within the framework's `src` directory.\n */\nexport function stacksPath(path?: string) {\n return frameworkPath(`src/${path || ''}`)\n}\n\n/**\n * Returns the path to the `shell` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the shell directory.\n * @returns The absolute path to the specified file or directory within the shell directory.\n */\nexport function shellPath(path?: string) {\n return corePath(`shell/${path || ''}`)\n}\n\n/**\n * Returns the path to the `strings` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `strings` directory.\n * @returns The absolute path to the specified file or directory within the `strings` directory.\n */\nexport function stringsPath(path?: string) {\n return corePath(`strings/${path || ''}`)\n}\n\n/**\n * Returns the path to the `testing` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the testing directory.\n * @returns The absolute path to the specified file or directory within the testing directory.\n */\nexport function testingPath(path?: string) {\n return corePath(`testing/${path || ''}`)\n}\n\n/**\n * Returns the path to the `tinker` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the tinker directory.\n * @returns The absolute path to the specified file or directory within the tinker directory.\n */\nexport function tinkerPath(path?: string) {\n return corePath(`tinker/${path || ''}`)\n}\n\n/**\n * Returns the path to the `tests` directory within the framework directory.\n *\n * @param path - The relative path to the file or directory within the `tests` directory.\n * @returns The absolute path to the specified file or directory within the `tests` directory.\n */\nexport function testsPath(path?: string) {\n return frameworkPath(`tests/${path || ''}`)\n}\n\n/**\n * Returns the path to the `types` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `types` directory.\n * @returns The absolute path to the specified file or directory within the `types` directory.\n */\nexport function typesPath(path?: string) {\n return corePath(`types/${path || ''}`)\n}\n\n/**\n * Returns the path to the `ui` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the ui directory.\n * @returns The absolute path to the specified file or directory within the ui directory.\n */\nexport function uiPath(path?: string, options?: { relative?: boolean }) {\n const absolutePath = corePath(`ui/${path || ''}`)\n\n if (options?.relative) return relative(process.cwd(), absolutePath)\n\n return absolutePath\n}\n\n/**\n * Returns the path to the `utils` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `utils` directory.\n * @returns The absolute path to the specified file or directory within the `utils` directory.\n */\nexport function utilsPath(path?: string) {\n return corePath(`utils/${path || ''}`)\n}\n\n/**\n * Returns the path to the `validation` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the validation directory.\n * @returns The absolute path to the specified file or directory within the validation directory.\n */\nexport function validationPath(path?: string) {\n return corePath(`validation/${path || ''}`)\n}\n\n/**\n * Returns the path to the `vite-config` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the vite-config directory.\n * @returns The absolute path to the specified file or directory within the vite-config directory.\n */\nexport function viteConfigPath(path?: string) {\n return corePath(`vite-config/${path || ''}`)\n}\n\n/**\n * Returns the path to the `vite-plugin` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the vite directory.\n * @returns The absolute path to the specified file or directory within the vite directory.\n */\nexport function vitePluginPath(path?: string) {\n return corePath(`vite-plugin/${path || ''}`)\n}\n\n/**\n * Returns the path to the `x-ray` directory within the `stacks` directory of the framework.\n *\n * @param path - The relative path to the file or directory within the x-ray directory.\n * @returns The absolute path to the specified file or directory within the x-ray directory.\n */\nexport function xRayPath(path?: string) {\n return frameworkPath(`stacks/x-ray/${path || ''}`)\n}\n\n/**\n * Returns the path to the home directory, optionally appending a given path.\n *\n * @param path - The relative path to append to the home directory path.\n * @returns The absolute path to the specified file or directory within the home directory.\n */\nexport function homeDir(path?: string) {\n return os.homedir() + (path ? (path.startsWith('/') ? '' : '/') + path : '~')\n}\n\nexport const path = {\n actionsPath,\n userActionsPath,\n builtUserActionsPath,\n userComponentsPath,\n userViewsPath,\n userFunctionsPath,\n aiPath,\n assetsPath,\n relativeActionsPath,\n aliasPath,\n analyticsPath,\n arraysPath,\n appPath,\n authPath,\n buddyPath,\n buildEnginePath,\n libsEntriesPath,\n buildPath,\n cachePath,\n chatPath,\n cliPath,\n cloudPath,\n frameworkCloudPath,\n collectionsPath,\n commandsPath,\n componentsPath,\n configPath,\n projectConfigPath,\n corePath,\n customElementsDataPath,\n databasePath,\n datetimePath,\n developmentPath,\n desktopPath,\n docsPath,\n dnsPath,\n emailPath,\n enumsPath,\n errorHandlingPath,\n eventsPath,\n coreEnvPath,\n healthPath,\n examplesPath,\n fakerPath,\n frameworkPath,\n storagePath,\n functionsPath,\n gitPath,\n langPath,\n layoutsPath,\n libsPath,\n userLibsPath,\n libraryEntryPath,\n lintPath,\n listenersPath,\n loggingPath,\n logsPath,\n jobsPath,\n modulesPath,\n ormPath,\n objectsPath,\n onboardingPath,\n notificationsPath,\n packageJsonPath,\n viewsPath,\n pathPath,\n paymentsPath,\n projectPath,\n findProjectPath,\n coreStoragePath,\n publicPath,\n pushPath,\n queryBuilderPath,\n queuePath,\n realtimePath,\n resourcesPath,\n replPath,\n routerPath,\n routesPath,\n runtimePath,\n searchEnginePath,\n schedulerPath,\n settingsPath,\n smsPath,\n slugPath,\n scriptsPath,\n securityPath,\n serverPath,\n userServerPath,\n serverlessPath,\n stacksPath,\n stringsPath,\n shellPath,\n storesPath,\n testingPath,\n testsPath,\n tinkerPath,\n typesPath,\n uiPath,\n userDatabasePath,\n userMigrationsPath,\n userEventsPath,\n userJobsPath,\n userListenersPath,\n userMiddlewarePath,\n userModelsPath,\n userNotificationsPath,\n utilsPath,\n validationPath,\n viteConfigPath,\n vitePluginPath,\n xRayPath,\n homeDir,\n\n // path utils\n basename,\n delimiter,\n dirname,\n extname,\n isAbsolute,\n join,\n normalize,\n relative,\n resolve,\n parse,\n sep,\n toNamespacedPath,\n}\n\nexport { basename, delimiter, dirname, extname, isAbsolute, join, normalize, relative, resolve, sep, toNamespacedPath }\n"
5
+ "import os from 'node:os'\nimport {\n basename,\n delimiter,\n dirname,\n extname,\n isAbsolute,\n join,\n normalize,\n parse,\n type ParsedPath,\n relative,\n resolve,\n sep,\n toNamespacedPath,\n} from 'node:path'\nimport process from 'node:process'\nimport { runCommandSync } from '@stacksjs/cli'\nimport { log } from '@stacksjs/logging'\n\n/**\n * Returns the path to the `actions` directory. The `actions` directory\n * contains the core Stacks' actions.\n *\n * @param path - The relative path to the file or directory.\n * @returns The absolute path to the file or directory.\n * @example\n * ```ts\n * import { actionsPath } from '@stacksjs/path'\n *\n * console.log(actionsPath('path/to/action.ts')) // Outputs the absolute path to 'path/to/action.ts' within the `actions` directory\n * ```\n */\nexport function actionsPath(path?: string): string {\n return corePath(`actions/${path || ''}`)\n}\n\nexport function relativeActionsPath(path?: string): string {\n return relative(projectPath(), actionsPath(path))\n}\n\nexport function userActionsPath(path?: string, options?: { relative: true }): string {\n const absolutePath = appPath(`Actions/${path || ''}`)\n\n if (options?.relative)\n return relative(process.cwd(), absolutePath)\n\n return absolutePath\n}\n\nexport function builtUserActionsPath(path?: string, options?: { relative: boolean }): string {\n const absolutePath = frameworkPath(`actions/${path || ''}`)\n\n if (options?.relative)\n return relative(process.cwd(), absolutePath)\n\n return absolutePath\n}\n\nexport function userComponentsPath(path?: string): string {\n return libsPath(`components/${path || ''}`)\n}\n\nexport function userViewsPath(path?: string): string {\n return resourcesPath(`views/${path || ''}`)\n}\n\nexport function userFunctionsPath(path?: string): string {\n return resourcesPath(`functions/${path || ''}`)\n}\n\n/**\n * Returns the path to the user-defined `Jobs` directory.\n *\n * @param path - The relative path to the file or directory within the `Jobs` directory.\n * @returns The absolute path to the specified file or directory within the user-defined `Jobs` directory.\n * @example\n * ```ts\n * import { userJobsPath } from '@stacksjs/path'\n *\n * console.log(userJobsPath('MyJob.ts')) // Outputs the absolute path to 'MyJob.ts' within the user-defined `Jobs` directory.\n * ```\n */\nexport function userJobsPath(path?: string): string {\n return appPath(`Jobs/${path || ''}`)\n}\n\n/**\n * Returns the path to the user-defined `Listeners` directory.\n *\n * @param path - The relative path to the file or directory within the `Listeners` directory.\n * @returns The absolute path to the specified file or directory within the user-defined `Listeners` directory.\n * @example\n * ```ts\n * import { userListenersPath } from '@stacksjs/path'\n *\n * console.log(userListenersPath('MyListener.ts')) // Outputs the absolute path to 'MyListener.ts' within the user-defined `Listeners` directory.\n * ```\n */\nexport function userListenersPath(path?: string): string {\n return appPath(`Listeners/${path || ''}`)\n}\n\n/**\n * Returns the path to the user-defined `Middleware` directory.\n *\n * @param path - The relative path to the file or directory within the Middleware directory.\n * @returns The absolute path to the specified file or directory within the user-defined Middleware directory.\n * @example\n * ```ts\n * import { userMiddlewarePath } from '@stacksjs/path'\n *\n * console.log(userMiddlewarePath('MyMiddleware.ts')) // Outputs the absolute path to 'MyMiddleware.ts' within the user-defined Middleware directory.\n * ```\n */\nexport function userMiddlewarePath(path?: string): string {\n return appPath(`Middleware/${path || ''}`)\n}\n\n/**\n * Returns the path to the user-defined `Models` directory.\n *\n * @param path - The relative path to the file or directory within the `Models` directory.\n * @returns The absolute path to the specified file or directory within the user-defined `Models` directory.\n * @example\n * ```ts\n * import { userModelsPath } from '@stacksjs/path'\n *\n * console.log(userModelsPath('MyModel.ts')) // Outputs the absolute path to 'MyModel.ts' within the user-defined `Models` directory.\n * ```\n */\nexport function userModelsPath(path?: string): string {\n return appPath(`Models/${path || ''}`)\n}\n\n/**\n * Returns the path to the user-defined `Notifications` directory.\n *\n * @param path - The relative path to the file or directory within the `Notifications` directory.\n * @returns The absolute path to the specified file or directory within the user-defined `Notifications` directory.\n * @example\n * ```ts\n * import { userNotificationsPath } from '@stacksjs/path'\n *\n * console.log(userNotificationsPath('MyNotification.ts')) // Outputs the absolute path to 'MyNotification.ts' within the user-defined `Notifications` directory.\n * ```\n */\nexport function userNotificationsPath(path?: string): string {\n return appPath(`Notifications/${path || ''}`)\n}\n\nexport function userDatabasePath(path?: string): string {\n return projectPath(`database/${path || ''}`)\n}\n\nexport function userMigrationsPath(path?: string): string {\n return userDatabasePath(`migrations/${path || ''}`)\n}\n\n/**\n * Returns the path to the user-defined `Events.ts` file.\n *\n * @returns The absolute path to the `Events.ts` file within the user-defined directory.\n * @example\n * ```ts\n * import { userEventsPath } from '@stacksjs/path'\n *\n * console.log(userEventsPath()) // Outputs the absolute path to 'Events.ts' within the user-defined directory.\n * ```\n */\nexport function userEventsPath(): string {\n return appPath(`Events.ts`)\n}\n\n/**\n * Returns the path to the `ai` directory. The AI directory\n * contains the core Stacks' AI logic which currently\n * is a wrapper of the OpenAI API.\n *\n * @param path - relative path to the file or directory\n * @returns string - absolute path to the file or directory\n *\n * @example\n * ```ts\n * import { aiPath } from '@stacksjs/path'\n *\n * console.log(aiPath('src/drivers/example.ts')) // Outputs the absolute path to 'openai.ts' within the AI directory\n * ```\n */\nexport function aiPath(path?: string): string {\n return corePath(`ai/${path || ''}`)\n}\n\n/**\n * Returns the path to the `assets` directory within the `resources` directory.\n *\n * @param path - The relative path to the file or directory within the `assets` directory.\n * @returns The absolute path to the specified file or directory within the `assets` directory.\n * @example\n * ```ts\n * import { assetsPath } from '@stacksjs/path'\n *\n * console.log(assetsPath('images/logo.png')) // Outputs the absolute path to 'images/logo.png' within the `assets` directory.\n * ```\n */\nexport function assetsPath(path?: string): string {\n return resourcesPath(`assets/${path || ''}`)\n}\n\n/**\n * Returns the path to the `alias` directory within the core directory.\n *\n * @returns The absolute path to the `alias` directory.\n * @example\n * ```ts\n * import { aliasPath } from '@stacksjs/path'\n *\n * console.log(aliasPath()) // Outputs the absolute path to the `alias` directory.\n * ```\n */\nexport function aliasPath(): string {\n return corePath('alias/src/index.ts')\n}\n\n/**\n * Returns the path to the `buddy` directory, optionally relative to the current working directory.\n *\n * @param path - The relative path to the file or directory within the buddy directory.\n * @param options - Optional. An object containing configuration settings.\n * @param options.relative - If true, returns the path relative to the current working directory.\n * @returns The absolute or relative path to the specified file or directory within the buddy * @returns The absolute or relative path to the specified file or directory within the buddy directory.\n * @example\n * ```ts\n * import { buddyPath } from '@stacksjs/path'\n *\n * console.log(buddyPath('config/buddy.json')) // Outputs the absolute path to 'config/buddy.json' within the buddy directory.\n * console.log(buddyPath('config/buddy.json', { relative: true })) // Outputs the relative path to 'config/buddy.json' within the buddy directory.\n * ```\n */\nexport function buddyPath(path?: string, options?: { relative?: boolean }): string {\n const absolutePath = corePath(`buddy/${path || ''}`)\n\n if (options?.relative)\n return relative(process.cwd(), absolutePath)\n\n return absolutePath\n}\n\n/**\n * Returns the path to the `runtime` directory within the framework directory.\n *\n * @param path - The relative path to the file or directory within the runtime directory.\n * @returns The absolute path to the specified file or directory within the runtime directory.\n * @example\n * ```ts\n * import { runtimePath } from '@stacksjs/path'\n *\n * console.log(runtimePath('runtime-config.json')) // Outputs the absolute path to 'runtime-config.json' within the runtime directory.\n * ```\n */\nexport function runtimePath(path?: string): string {\n return frameworkPath(`buddy/${path || ''}`)\n}\n\n/**\n * Returns the path to the `analytics` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `analytics` directory.\n * @returns The absolute path to the specified file or directory within the `analytics` directory.\n * @example\n * ```ts\n * import { analyticsPath } from '@stacksjs/path'\n *\n * console.log(analyticsPath('data/report.csv')) // Outputs the absolute path to 'data/report.csv' within the `analytics` directory.\n * ```\n */\nexport function analyticsPath(path?: string): string {\n return corePath(`analytics/${path || ''}`)\n}\n\n/**\n * Returns the path to the `arrays` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `arrays` directory.\n * @returns The absolute path to the specified file or directory within the `arrays` directory.\n * @example\n * ```ts\n * import { arraysPath } from '@stacksjs/path'\n *\n * console.log(arraysPath('list.txt')) // Outputs the absolute path to 'list.txt' within the `arrays` directory.\n * ```\n */\nexport function arraysPath(path?: string): string {\n return corePath(`arrays/${path || ''}`)\n}\n\n/**\n * Returns the path to the `app` directory, optionally relative to the project directory.\n *\n * @param path - The relative path to the file or directory within the app directory.\n * @returns The absolute path to the specified file or directory within the app directory.\n * @example\n * ```ts\n * import { appPath } from '@stacksjs/path'\n *\n * console.log(appPath('Actions/DummyAction.ts')) // Outputs the absolute path to 'Actions/DummyAction.ts' within the app directory.\n * ```\n */\nexport function appPath(path?: string): string {\n return projectPath(`app/${path || ''}`)\n}\n\n/**\n * Returns the path to the `auth` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the auth directory.\n * @returns The absolute path to the specified file or directory within the auth directory.\n * @example\n * ```ts\n * import { authPath } from '@stacksjs/path'\n *\n * console.log(authPath('login.ts')) // Outputs the absolute path to 'login.ts' within the auth directory.\n * ```\n */\nexport function authPath(path?: string): string {\n return corePath(`auth/${path || ''}`)\n}\n\n/**\n * Returns the path to the `auth` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the auth directory.\n * @returns The absolute path to the specified file or directory within the auth directory.\n * @example\n * ```ts\n * import { coreApiPath } from '@stacksjs/path'\n *\n * console.log(coreApiPath('login.ts')) // Outputs the absolute path to 'login.ts' within the auth directory.\n * ```\n */\nexport function coreApiPath(path?: string): string {\n return corePath(`api/${path || ''}`)\n}\n\n/**\n * Returns the path to the build directory. The build directory\n * contains Stacks' build engine & its tooling integrations.\n *\n * @param path string - relative path to the file or directory\n * @returns string - absolute path to the file or directory\n * @example\n * ```ts\n * buildPath('functions.stx')\n * buildPath('components.ts')\n * ```\n */\nexport function buildPath(path?: string): string {\n return corePath(`build/${path || ''}`)\n}\n\n/**\n * Returns the path to the build engine directory.\n *\n * @param path - The relative path to the file or directory within the build engine directory.\n * @returns The absolute path to the specified file or directory within the build engine directory.\n */\nexport function buildEnginePath(path?: string): string {\n return buildPath(`${path || ''}`)\n}\n\n/**\n * Returns the path to the `libs` directory within the framework directory.\n *\n * @param path - The relative path to the file or directory within the `libs` directory.\n * @returns The absolute path to the specified file or directory within the `libs` directory.\n */\nexport function libsPath(path?: string): string {\n return frameworkPath(`libs/${path || ''}`)\n}\n\n/**\n * Returns the path to the user `libs` directory within the root project directory.\n *\n * @param path - The relative path to the file or directory within the `libs` directory.\n * @returns The absolute path to the specified file or directory within the `libs` directory.\n */\nexport function userLibsPath(path?: 'components' | 'functions' | string): string {\n return resourcesPath(`${path || ''}`)\n}\n\n/**\n * Returns the path to the `entries` directory within the `libs` directory.\n *\n * @param path - The relative path to the file or directory within the `entries` directory.\n * @returns The absolute path to the specified file or directory within the `entries` directory.\n */\nexport function libsEntriesPath(path?: string): string {\n return libsPath(`entries/${path || ''}`)\n}\n\n/**\n * Returns the path to the `cache` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the cache directory.\n * @returns The absolute path to the specified file or directory within the cache directory.\n */\nexport function cachePath(path?: string): string {\n return corePath(`cache/${path || ''}`)\n}\n\n/**\n * Returns the path to the `chat` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the chat directory.\n * @returns The absolute path to the specified file or directory within the chat directory.\n */\nexport function chatPath(path?: string): string {\n return corePath(`chat/${path || ''}`)\n}\n\n/**\n * Returns the path to the `cli` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the cli directory.\n * @returns The absolute path to the specified file or directory within the cli directory.\n */\nexport function cliPath(path?: string): string {\n return corePath(`cli/${path || ''}`)\n}\n\n/**\n * Returns the path to the `cloud` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the cloud directory.\n * @returns The absolute path to the specified file or directory within the cloud directory.\n */\nexport function cloudPath(path?: string): string {\n return corePath(`cloud/${path || ''}`)\n}\n\n/**\n * Returns the path to the `cloud` directory within the framework directory.\n *\n * @param path - The relative path to the file or directory within the framework cloud directory.\n * @returns The absolute path to the specified file or directory within the framework cloud directory.\n */\nexport function frameworkCloudPath(path?: string): string {\n return frameworkPath(`cloud/${path || ''}`)\n}\n\n/**\n * Returns the path to the `collections` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `collections` directory.\n * @returns The absolute path to the specified file or directory within the `collections` directory.\n */\nexport function collectionsPath(path?: string): string {\n return corePath(`collections/${path || ''}`)\n}\n\n/**\n * Returns the path to the `Commands` directory within the app directory.\n *\n * @param path - The relative path to the file or directory within the `Commands` directory.\n * @returns The absolute path to the specified file or directory within the `Commands` directory.\n */\nexport function commandsPath(path?: string): string {\n return appPath(`Commands/${path || ''}`)\n}\n\n/**\n * Returns the path to the `components` directory within the `resources` directory.\n *\n * @param path - The relative path to the file or directory within the `components` directory.\n * @returns The absolute path to the specified file or directory within the `components` directory.\n */\nexport function componentsPath(path?: string): string {\n return userLibsPath(`components/${path || ''}`)\n}\n\n/**\n * Returns the path to the `config` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the config directory.\n * @returns The absolute path to the specified file or directory within the config directory.\n */\nexport function configPath(path?: string): string {\n return corePath(`config/${path || ''}`)\n}\n\n/**\n * Returns the path to the `core` directory within the framework directory.\n *\n * @param path - The relative path to the file or directory within the core directory.\n * @returns The absolute path to the specified file or directory within the core directory.\n */\nexport function corePath(path?: string): string {\n return frameworkPath(`core/${path || ''}`)\n}\n\n/**\n * Returns the absolute path to the `custom-elements.json` file within the core directory.\n *\n * @returns The absolute path to the `custom-elements.json` file.\n */\nexport function customElementsDataPath(): string {\n return frameworkPath('core/custom-elements.json')\n}\n\n/**\n * Returns the path to the `database` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the database directory.\n * @returns The absolute path to the specified file or directory within the database directory.\n */\nexport function databasePath(path?: string): string {\n return corePath(`database/${path || ''}`)\n}\n\n/**\n * Returns the path to the `datetime` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the datetime directory.\n * @returns The absolute path to the specified file or directory within the datetime directory.\n */\nexport function datetimePath(path?: string): string {\n return corePath(`datetime/${path || ''}`)\n}\n\n/**\n * Returns the path to the `development` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the development directory.\n * @returns The absolute path to the specified file or directory within the development directory.\n */\nexport function developmentPath(path?: string): string {\n return corePath(`development/${path || ''}`)\n}\n\n/**\n * Returns the path to the `desktop` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the desktop directory.\n * @returns The absolute path to the specified file or directory within the desktop directory.\n */\nexport function desktopPath(path?: string): string {\n return corePath(`desktop/${path || ''}`)\n}\n\n/**\n * Returns the path to the `docs` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `docs` directory.\n * @returns The absolute path to the specified file or directory within the `docs` directory.\n */\nexport function docsPath(path?: string): string {\n return corePath(`docs/${path || ''}`)\n}\n\n/**\n * Returns the path to the `domains` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `domains` directory.\n * @returns The absolute path to the specified file or directory within the `domains` directory.\n */\nexport function dnsPath(path?: string): string {\n return corePath(`domains/${path || ''}`)\n}\n\n/**\n * Returns the path to the `email` directory within the `notifications` directory.\n *\n * @param path - The relative path to the file or directory within the email directory.\n * @returns The absolute path to the specified file or directory within the email directory.\n */\nexport function emailPath(path?: string): string {\n return notificationsPath(`email/${path || ''}`)\n}\n\n/**\n * Returns the path to the `enums` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `enums` directory.\n * @returns The absolute path to the specified file or directory within the `enums` directory.\n */\nexport function enumsPath(path?: string): string {\n return corePath(`enums/${path || ''}`)\n}\n\n/**\n * Returns the path to the `eslint-plugin` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the eslint-plugin directory.\n * @returns The absolute path to the specified file or directory within the eslint-plugin directory.\n */\nexport function eslintPluginPath(path?: string): string {\n return corePath(`eslint-plugin/${path || ''}`)\n}\n\n/**\n * Returns the path to the `error-handling` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the error-handling directory.\n * @returns The absolute path to the specified file or directory within the error-handling directory.\n */\nexport function errorHandlingPath(path?: string): string {\n return corePath(`error-handling/${path || ''}`)\n}\n\n/**\n * Returns the path to the `events` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `events` directory.\n * @returns The absolute path to the specified file or directory within the `events` directory.\n */\nexport function eventsPath(path?: string): string {\n return corePath(`events/${path || ''}`)\n}\n\n/**\n * Returns the path to the `env` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the env directory.\n * @returns The absolute path to the specified file or directory within the env directory.\n */\nexport function coreEnvPath(path?: string): string {\n return corePath(`env/${path || ''}`)\n}\n\n/**\n * Returns the path to the `examples` directory within the framework directory, filtered by type.\n *\n * @param type - The type of examples to filter by ('vue-components' or 'web-components').\n * @returns The absolute path to the specified type of examples within the `examples` directory.\n */\nexport function examplesPath(type?: 'vue-components' | 'web-components'): string {\n return frameworkPath(`examples/${type || ''}`)\n}\n\n/**\n * Returns the path to the `faker` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the faker directory.\n * @returns The absolute path to the specified file or directory within the faker directory.\n */\nexport function fakerPath(path?: string): string {\n return corePath(`faker/${path || ''}`)\n}\n\n/**\n * Returns the path to the framework directory, optionally relative to the current working directory.\n *\n * @param path - The relative path to the file or directory within the framework directory.\n * @param options - Optional. An object containing configuration settings.\n * @param options.relative - If true, returns the path relative to the current working directory.\n * @param options.cwd - Specifies a custom working directory.\n * @returns The absolute or relative path to the specified file or directory within the framework directory.\n */\nexport function frameworkPath(path?: string, options?: { relative?: boolean, cwd?: string }): string {\n const absolutePath = storagePath(`framework/${path || ''}`)\n\n if (options?.relative)\n return relative(options.cwd || process.cwd(), absolutePath)\n\n return absolutePath\n}\n\n/**\n * Returns the path to the `frontend` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the health directory.\n * @returns The absolute path to the specified file or directory within the health directory.\n */\nexport function browserPath(path?: string): string {\n return corePath(`browser/${path || ''}`)\n}\n\n/**\n * Returns the path to the `health` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the health directory.\n * @returns The absolute path to the specified file or directory within the health directory.\n */\nexport function healthPath(path?: string): string {\n return corePath(`health/${path || ''}`)\n}\n\n/**\n * Returns the path to the `functions` directory within the `resources` directory.\n *\n * @param path - The relative path to the file or directory within the `functions` directory.\n * @returns The absolute path to the specified file or directory within the `functions` directory.\n */\nexport function functionsPath(path?: string): string {\n return userLibsPath(`functions/${path || ''}`)\n}\n\n/**\n * Returns the path to the `git` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the git directory.\n * @returns The absolute path to the specified file or directory within the git directory.\n */\nexport function gitPath(path?: string): string {\n return corePath(`git/${path || ''}`)\n}\n\n/**\n * Returns the path to the `lang` directory, optionally relative to the project directory.\n *\n * @param path - The relative path to the file or directory within the lang directory.\n * @returns The absolute path to the specified file or directory within the lang directory.\n */\nexport function langPath(path?: string): string {\n return resourcesPath(`lang/${path || ''}`)\n}\n\n/**\n * Returns the path to the `layouts` directory within the `resources` directory, optionally relative to the current working directory.\n *\n * @param path - The relative path to the file or directory within the `layouts` directory.\n * @param options - Optional. An object containing configuration settings.\n * @param options.relative - If true, returns the path relative to the current working directory.\n * @returns The absolute or relative path to the specified file or directory within the `layouts` directory.\n */\nexport function layoutsPath(path?: string, options?: { relative?: boolean }): string {\n const absolutePath = resourcesPath(`layouts/${path || ''}`)\n\n if (options?.relative)\n return relative(process.cwd(), absolutePath)\n\n return absolutePath\n}\n\n/**\n * Returns the path to the library entry file, filtered by library type.\n *\n * @param type - The type of library ('vue-components', 'web-components', or 'functions').\n * @returns The absolute path to the specified library entry file.\n */\nexport type LibraryType = 'vue-components' | 'web-components' | 'functions'\nexport function libraryEntryPath(type: LibraryType): string {\n return libsEntriesPath(`${type}.ts`)\n}\n\n/**\n * Returns the path to the `lint` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the lint directory.\n * @returns The absolute path to the specified file or directory within the lint directory.\n */\nexport function lintPath(path?: string): string {\n return corePath(`lint/${path || ''}`)\n}\n\n/**\n * Returns the path to the `listeners` directory within the app directory.\n *\n * @param path - The relative path to the file or directory within the `listeners` directory.\n * @returns The absolute path to the specified file or directory within the `listeners` directory.\n */\nexport function listenersPath(path?: string): string {\n return appPath(`Listeners/${path || ''}`)\n}\n\n/**\n * Returns the path to the `jobs` directory within the app directory.\n *\n * @param path - The relative path to the file or directory within the `jobs` directory.\n * @returns The absolute path to the specified file or directory within the `jobs` directory.\n */\nexport function jobsPath(path?: string): string {\n return appPath(`Jobs/${path || ''}`)\n}\n\n/**\n * Returns the path to the `logging` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the logging directory.\n * @returns The absolute path to the specified file or directory within the logging directory.\n */\nexport function loggingPath(path?: string): string {\n return corePath(`logging/${path || ''}`)\n}\n\n/**\n * Returns the path to the `logs` directory within the project storage directory.\n *\n * @param path - The relative path to the file or directory within the `logs` directory.\n * @returns The absolute path to the specified file or directory within the `logs` directory.\n */\nexport function logsPath(path?: string): string {\n return storagePath(`logs/${path || ''}`)\n}\n\n/**\n * Returns the path to the `models` directory within the app directory.\n *\n * @param path - The relative path to the file or directory within the `models` directory.\n * @returns The absolute path to the specified file or directory within the `models` directory.\n */\nexport function modelsPath(path?: string): string {\n return appPath(`models/${path || ''}`)\n}\n\n/**\n * Returns the path to the `modules` directory within the `resources` directory.\n *\n * @param path - The relative path to the file or directory within the `modules` directory.\n * @returns The absolute path to the specified file or directory within the `modules` directory.\n */\nexport function modulesPath(path?: string): string {\n return resourcesPath(`modules/${path || ''}`)\n}\n\n/**\n * Returns the path to the `notifications` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `notifications` directory.\n * @returns The absolute path to the specified file or directory within the `notifications` directory.\n */\nexport function notificationsPath(path?: string): string {\n return corePath(`notifications/${path || ''}`)\n}\n\n/**\n * Returns the path to the `orm` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the orm directory.\n * @returns The absolute path to the specified file or directory within the orm directory.\n */\nexport function ormPath(path?: string): string {\n return corePath(`orm/${path || ''}`)\n}\n\n/**\n * Returns the path to the `objects` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `objects` directory.\n * @returns The absolute path to the specified file or directory within the `objects` directory.\n */\nexport function objectsPath(path?: string): string {\n return corePath(`objects/${path || ''}`)\n}\n\n/**\n * Returns the default path to the onboarding views within the project directory, or a specified path.\n *\n * @param path - The relative path to the file or directory within the project directory. Defaults to 'views/dashboard/onboarding'.\n * @returns The absolute path to the specified file or directory within the project directory.\n */\nexport function onboardingPath(path?: string): string {\n return projectPath(`${path || 'views/dashboard/onboarding'}`)\n}\n\n/**\n * Returns the path to the `package.json` file of a specified library type within the framework directory.\n *\n * @param type - The type of the library ('vue-components', 'web-components', or 'functions') for which to return the package.json path.\n * @returns The absolute path to the specified package.json file within the framework directory.\n */\nexport function packageJsonPath(type: LibraryType): string {\n if (type === 'vue-components')\n return frameworkPath('libs/components/vue/package.json')\n if (type === 'web-components')\n return frameworkPath('libs/components/web/package.json')\n\n return frameworkPath(`libs/${type}/package.json`)\n}\n\n/**\n * Returns the path to the `views` directory within the `resources` directory.\n *\n * @param path - The relative path to the file or directory within the `views` directory.\n * @returns The absolute path to the specified file or directory within the `views` directory.\n */\nexport function viewsPath(path?: string): string {\n return resourcesPath(`views/${path || ''}`)\n}\n\n/**\n * Returns the path to the `path` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the path directory.\n * @returns The absolute path to the specified file or directory within the path directory.\n */\nexport function pathPath(path?: string): string {\n return corePath(`path/${path || ''}`)\n}\n\n/**\n * Returns the path to the `payments` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `payments` directory.\n * @returns The absolute path to the specified file or directory within the `payments` directory.\n */\nexport function paymentsPath(path?: string): string {\n return corePath(`payments/${path || ''}`)\n}\n\n/**\n * Returns the project path, resolving from the current working directory and moving up until the storage directory is no longer part of the path.\n *\n * @param filePath - The relative path to append to the project path. Defaults to an empty string.\n * @returns The absolute path to the specified file or directory within the project directory.\n */\nexport function projectPath(filePath = '', options?: { relative: boolean }): string {\n let path = process.cwd()\n\n while (path.includes('storage')) path = resolve(path, '..')\n\n const finalPath = resolve(path, filePath)\n\n // If the `relative` option is true, return the path relative to the current working directory\n if (options?.relative)\n return relative(process.cwd(), finalPath)\n\n return finalPath\n}\n\n/**\n * Finds and returns the absolute path of a specified project by name.\n *\n * @param project - The name of the project to find.\n * @returns The absolute path to the specified project.\n * @throws Error if the project with the specified name cannot be found.\n */\nexport async function findProjectPath(project: string): Promise<string> {\n const projectList = await runCommandSync('buddy projects:list --quiet')\n log.debug(`ProjectList in findProjectPath ${projectList}`)\n\n // get the list of all Stacks project paths (on the system)\n const projects = projectList\n .split('\\n')\n .filter((line: string) => line.startsWith(' - '))\n .map((line: string) => line.trim().substring(4))\n\n log.debug(`Projects in findProjectPath ${projects}`)\n\n // since we are targeting a specific project, find its path\n const projectPath = projects.find((proj: string) => proj.includes(project))\n\n if (!projectPath)\n throw new Error(`Could not find project with name: ${project}`)\n\n return projectPath.startsWith('/') ? projectPath : `/${projectPath}`\n}\n\n/**\n * Returns the path to the `config` directory within the project directory.\n *\n * @param path - The relative path to the file or directory within the config directory.\n * @returns The absolute path to the specified file or directory within the config directory.\n */\nexport function projectConfigPath(path?: string): string {\n return projectPath(`config/${path || ''}`)\n}\n\n/**\n * Returns the path to the `storage` directory within the project directory.\n *\n * @param path - The relative path to the file or directory within the storage directory.\n * @returns The absolute path to the specified file or directory within the storage directory.\n */\nexport function storagePath(path?: string): string {\n return projectPath(`storage/${path || ''}`)\n}\n\n/**\n * Returns the path to the `public` directory within the project directory.\n *\n * @param path - The relative path to the file or directory within the public directory.\n * @returns The absolute path to the specified file or directory within the public directory.\n */\nexport function publicPath(path?: string): string {\n return projectPath(`public/${path || ''}`)\n}\n\n/**\n * Returns the path to the `push` directory within the `notifications` directory.\n *\n * @param path - The relative path to the file or directory within the push directory.\n * @returns The absolute path to the specified file or directory within the push directory.\n */\nexport function pushPath(path?: string): string {\n return notificationsPath(`push/${path || ''}`)\n}\n\n/**\n * Returns the path to the `query-builder` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the query-builder directory.\n * @returns The absolute path to the specified file or directory within the query-builder directory.\n */\nexport function queryBuilderPath(path?: string): string {\n return corePath(`query-builder/${path || ''}`)\n}\n\n/**\n * Returns the path to the `queue` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the queue directory.\n * @returns The absolute path to the specified file or directory within the queue directory.\n */\nexport function queuePath(path?: string): string {\n return corePath(`queue/${path || ''}`)\n}\n\n/**\n * Returns the path to the `realtime` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the realtime directory.\n * @returns The absolute path to the specified file or directory within the realtime directory.\n */\nexport function realtimePath(path?: string): string {\n return corePath(`realtime/${path || ''}`)\n}\n\n/**\n * Returns the path to the `resources` directory within the project storage directory, with an option for relative paths.\n *\n * @param path - The relative path to the file or directory within the `resources` directory.\n * @param options - Optional. An object containing configuration settings.\n * @param options.relative - If true, returns the path relative to the current working directory.\n * @returns The absolute or relative path to the specified file or directory within the `resources` directory.\n */\nexport function resourcesPath(path?: string, options?: { relative?: boolean }): string {\n if (options?.relative) {\n const absolutePath = projectPath(`resources/${path || ''}`)\n return relative(process.cwd(), absolutePath)\n }\n\n return projectPath(`resources/${path || ''}`)\n}\n\n/**\n * Returns the path to the `repl` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the repl directory.\n * @returns The absolute path to the specified file or directory within the repl directory.\n */\nexport function replPath(path?: string): string {\n return corePath(`repl/${path || ''}`)\n}\n\n/**\n * Returns the path to the `router` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the router directory.\n * @returns The absolute path to the specified file or directory within the router directory.\n */\nexport function routerPath(path?: string): string {\n return corePath(`router/${path || ''}`)\n}\n\n/**\n * Returns the path to the `routes` directory within the `resources` directory, with an option for relative paths.\n *\n * @param path - The relative path to the file or directory within the `routes` directory.\n * @param options - Optional. An object containing configuration settings.\n * @param options.relative - If true, returns the path relative to the current working directory.\n * @returns The absolute or relative path to the specified file or directory within the `routes` directory.\n */\nexport function routesPath(path?: string, options?: { relative?: boolean }): string {\n const absolutePath = resourcesPath(`routes/${path || ''}`)\n\n if (options?.relative)\n return relative(process.cwd(), absolutePath)\n\n return projectPath(`routes/${path || ''}`)\n}\n\n/**\n * Returns the path to the `search-engine` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the search-engine directory.\n * @returns The absolute path to the specified file or directory within the search-engine directory.\n */\nexport function searchEnginePath(path?: string): string {\n return corePath(`search-engine/${path || ''}`)\n}\n\n/**\n * Returns the path to the `settings` directory within the project directory, defaulting to the views/dashboard/settings directory.\n *\n * @param path - The relative path to the file or directory within the `settings` directory.\n * @returns The absolute path to the specified file or directory within the `settings` directory.\n */\nexport function settingsPath(path?: string): string {\n return projectPath(`${path || 'views/dashboard/settings'}`)\n}\n\n/**\n * Returns the path to the `scripts` directory within the framework directory.\n *\n * @param path - The relative path to the file or directory within the `scripts` directory.\n * @returns The absolute path to the specified file or directory within the `scripts` directory.\n */\nexport function scriptsPath(path?: string): string {\n return frameworkPath(`scripts/${path || ''}`)\n}\n\n/**\n * Returns the path to the `scheduler` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the scheduler directory.\n * @returns The absolute path to the specified file or directory within the scheduler directory.\n */\nexport function schedulerPath(path?: string): string {\n return corePath(`scheduler/${path || ''}`)\n}\n\n/**\n * Returns the path to the `slug` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the slug directory.\n * @returns The absolute path to the specified file or directory within the slug directory.\n */\nexport function slugPath(path?: string): string {\n return corePath(`slug/${path || ''}`)\n}\n\n/**\n * Returns the path to the `sms` directory within the `notifications` directory.\n *\n * @param path - The relative path to the file or directory within the `sms` directory.\n * @returns The absolute path to the specified file or directory within the `sms` directory.\n */\nexport function smsPath(path?: string): string {\n return notificationsPath(`sms/${path || ''}`)\n}\n\n/**\n * Returns the path to the `storage` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the storage directory.\n * @returns The absolute path to the specified file or directory within the storage directory.\n */\nexport function coreStoragePath(path?: string): string {\n return corePath(`storage/${path || ''}`)\n}\n\n/**\n * Returns the path to the `stores` directory within the `resources` directory.\n *\n * @param path - The relative path to the file or directory within the `stores` directory.\n * @returns The absolute path to the specified file or directory within the `stores` directory.\n */\nexport function storesPath(path?: string): string {\n return resourcesPath(`stores/${path || ''}`)\n}\n\n/**\n * Returns the path to the `security` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the security directory.\n * @returns The absolute path to the specified file or directory within the security directory.\n */\nexport function securityPath(path?: string): string {\n return corePath(`security/${path || ''}`)\n}\n\n/**\n * Returns the path to the `server` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the server directory.\n * @returns The absolute path to the specified file or directory within the server directory.\n */\nexport function serverPath(path?: string): string {\n return corePath(`server/${path || ''}`)\n}\n\nexport function userServerPath(path?: string): string {\n return frameworkPath(`server/${path || ''}`)\n}\n\n/**\n * Returns the path to the `serverless` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `serverless` directory.\n * @returns The absolute path to the specified file or directory within the `serverless` directory.\n */\nexport function serverlessPath(path?: string): string {\n return corePath(`serverless/${path || ''}`)\n}\n\n/**\n * Returns the path to the specified directory or file within the framework's `src` directory.\n *\n * @param path - The relative path to the file or directory within the framework's `src` directory.\n * @returns The absolute path to the specified file or directory within the framework's `src` directory.\n */\nexport function stacksPath(path?: string): string {\n return frameworkPath(`src/${path || ''}`)\n}\n\n/**\n * Returns the path to the `shell` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the shell directory.\n * @returns The absolute path to the specified file or directory within the shell directory.\n */\nexport function shellPath(path?: string): string {\n return corePath(`shell/${path || ''}`)\n}\n\n/**\n * Returns the path to the `strings` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `strings` directory.\n * @returns The absolute path to the specified file or directory within the `strings` directory.\n */\nexport function stringsPath(path?: string): string {\n return corePath(`strings/${path || ''}`)\n}\n\n/**\n * Returns the path to the `testing` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the testing directory.\n * @returns The absolute path to the specified file or directory within the testing directory.\n */\nexport function testingPath(path?: string): string {\n return corePath(`testing/${path || ''}`)\n}\n\n/**\n * Returns the path to the `tinker` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the tinker directory.\n * @returns The absolute path to the specified file or directory within the tinker directory.\n */\nexport function tinkerPath(path?: string): string {\n return corePath(`tinker/${path || ''}`)\n}\n\n/**\n * Returns the path to the `tests` directory within the framework directory.\n *\n * @param path - The relative path to the file or directory within the `tests` directory.\n * @returns The absolute path to the specified file or directory within the `tests` directory.\n */\nexport function testsPath(path?: string): string {\n return frameworkPath(`tests/${path || ''}`)\n}\n\n/**\n * Returns the path to the `types` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `types` directory.\n * @returns The absolute path to the specified file or directory within the `types` directory.\n */\nexport function typesPath(path?: string): string {\n return corePath(`types/${path || ''}`)\n}\n\n/**\n * Returns the path to the `ui` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the ui directory.\n * @returns The absolute path to the specified file or directory within the ui directory.\n */\nexport function uiPath(path?: string, options?: { relative?: boolean }): string {\n const absolutePath = corePath(`ui/${path || ''}`)\n\n if (options?.relative)\n return relative(process.cwd(), absolutePath)\n\n return absolutePath\n}\n\n/**\n * Returns the path to the `utils` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `utils` directory.\n * @returns The absolute path to the specified file or directory within the `utils` directory.\n */\nexport function utilsPath(path?: string): string {\n return corePath(`utils/${path || ''}`)\n}\n\n/**\n * Returns the path to the `validation` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the validation directory.\n * @returns The absolute path to the specified file or directory within the validation directory.\n */\nexport function validationPath(path?: string): string {\n return corePath(`validation/${path || ''}`)\n}\n\n/**\n * Returns the path to the `vite-config` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the vite-config directory.\n * @returns The absolute path to the specified file or directory within the vite-config directory.\n */\nexport function viteConfigPath(path?: string): string {\n return corePath(`vite-config/${path || ''}`)\n}\n\n/**\n * Returns the path to the `vite-plugin` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the vite directory.\n * @returns The absolute path to the specified file or directory within the vite directory.\n */\nexport function vitePluginPath(path?: string): string {\n return corePath(`vite-plugin/${path || ''}`)\n}\n\n/**\n * Returns the path to the `x-ray` directory within the `stacks` directory of the framework.\n *\n * @param path - The relative path to the file or directory within the x-ray directory.\n * @returns The absolute path to the specified file or directory within the x-ray directory.\n */\nexport function xRayPath(path?: string): string {\n return frameworkPath(`stacks/x-ray/${path || ''}`)\n}\n\n/**\n * Returns the path to the home directory, optionally appending a given path.\n *\n * @param path - The relative path to append to the home directory path.\n * @returns The absolute path to the specified file or directory within the home directory.\n */\nexport function homeDir(path?: string): string {\n return os.homedir() + (path ? (path.startsWith('/') ? '' : '/') + path : '~')\n}\n\nexport interface Path {\n actionsPath: (path?: string) => string\n userActionsPath: (path?: string) => string\n builtUserActionsPath: (path?: string, option?: { relative: boolean }) => string\n userComponentsPath: (path?: string) => string\n userViewsPath: (path?: string) => string\n userFunctionsPath: (path?: string) => string\n aiPath: (path?: string) => string\n assetsPath: (path?: string) => string\n relativeActionsPath: (path?: string) => string\n aliasPath: (path?: string) => string\n analyticsPath: (path?: string) => string\n arraysPath: (path?: string) => string\n appPath: (path?: string) => string\n authPath: (path?: string) => string\n coreApiPath: (path?: string) => string\n buddyPath: (path?: string) => string\n buildEnginePath: (path?: string) => string\n libsEntriesPath: (path?: string) => string\n buildPath: (path?: string) => string\n cachePath: (path?: string) => string\n chatPath: (path?: string) => string\n cliPath: (path?: string) => string\n cloudPath: (path?: string) => string\n frameworkCloudPath: (path?: string) => string\n collectionsPath: (path?: string) => string\n commandsPath: (path?: string) => string\n componentsPath: (path?: string) => string\n configPath: (path?: string) => string\n projectConfigPath: (path?: string) => string\n corePath: (path?: string) => string\n customElementsDataPath: (path?: string) => string\n databasePath: (path?: string) => string\n datetimePath: (path?: string) => string\n developmentPath: (path?: string) => string\n desktopPath: (path?: string) => string\n docsPath: (path?: string) => string\n dnsPath: (path?: string) => string\n emailPath: (path?: string) => string\n enumsPath: (path?: string) => string\n eslintPluginPath: (path?: string) => string\n errorHandlingPath: (path?: string) => string\n eventsPath: (path?: string) => string\n coreEnvPath: (path?: string) => string\n healthPath: (path?: string) => string\n examplesPath: (type?: 'vue-components' | 'web-components') => string\n fakerPath: (path?: string) => string\n frameworkPath: (path?: string) => string\n browserPath: (path?: string) => string\n storagePath: (path?: string) => string\n functionsPath: (path?: string) => string\n gitPath: (path?: string) => string\n langPath: (path?: string) => string\n layoutsPath: (path?: string, options?: { relative?: boolean }) => string\n libsPath: (path?: string) => string\n userLibsPath: (path?: string) => string\n libraryEntryPath: (type: LibraryType) => string\n lintPath: (path?: string) => string\n listenersPath: (path?: string) => string\n loggingPath: (path?: string) => string\n logsPath: (path?: string) => string\n jobsPath: (path?: string) => string\n modulesPath: (path?: string) => string\n ormPath: (path?: string) => string\n objectsPath: (path?: string) => string\n onboardingPath: (path?: string) => string\n notificationsPath: (path?: string) => string\n packageJsonPath: (type: LibraryType) => string\n viewsPath: (path?: string) => string\n pathPath: (path?: string) => string\n paymentsPath: (path?: string) => string\n projectPath: (path?: string) => string\n findProjectPath: (project: string) => Promise<string>\n coreStoragePath: (path?: string) => string\n publicPath: (path?: string) => string\n pushPath: (path?: string) => string\n queryBuilderPath: (path?: string) => string\n queuePath: (path?: string) => string\n realtimePath: (path?: string) => string\n resourcesPath: (path?: string) => string\n replPath: (path?: string) => string\n routerPath: (path?: string) => string\n routesPath: (path?: string) => string\n runtimePath: (path?: string) => string\n searchEnginePath: (path?: string) => string\n schedulerPath: (path?: string) => string\n settingsPath: (path?: string) => string\n smsPath: (path?: string) => string\n slugPath: (path?: string) => string\n scriptsPath: (path?: string) => string\n securityPath: (path?: string) => string\n serverPath: (path?: string) => string\n userServerPath: (path?: string) => string\n serverlessPath: (path?: string) => string\n stacksPath: (path?: string) => string\n stringsPath: (path?: string) => string\n shellPath: (path?: string) => string\n storesPath: (path?: string) => string\n testingPath: (path?: string) => string\n testsPath: (path?: string) => string\n tinkerPath: (path?: string) => string\n typesPath: (path?: string) => string\n uiPath: (path?: string, options?: { relative?: boolean }) => string\n userDatabasePath: (path?: string) => string\n userMigrationsPath: (path?: string) => string\n userEventsPath: (path?: string) => string\n userJobsPath: (path?: string) => string\n userListenersPath: (path?: string) => string\n userMiddlewarePath: (path?: string) => string\n userModelsPath: (path?: string) => string\n userNotificationsPath: (path?: string) => string\n utilsPath: (path?: string) => string\n validationPath: (path?: string) => string\n viteConfigPath: (path?: string) => string\n vitePluginPath: (path?: string) => string\n xRayPath: (path?: string) => string\n homeDir: (path?: string) => string\n basename: (path: string) => string\n delimiter: () => ';' | ':'\n dirname: (path: string) => string\n extname: (path: string) => string\n isAbsolute: (path: string) => boolean\n join: (...paths: string[]) => string\n normalize: (path: string) => string\n relative: (from: string, to: string) => string\n resolve: (...paths: string[]) => string\n parse: (path: string) => ParsedPath\n sep: () => '/' | '\\\\'\n toNamespacedPath: (path: string) => string\n}\n\nexport const path: Path = {\n actionsPath,\n userActionsPath,\n builtUserActionsPath,\n userComponentsPath,\n userViewsPath,\n userFunctionsPath,\n aiPath,\n assetsPath,\n relativeActionsPath,\n aliasPath,\n analyticsPath,\n arraysPath,\n appPath,\n authPath,\n coreApiPath,\n buddyPath,\n buildEnginePath,\n libsEntriesPath,\n buildPath,\n cachePath,\n chatPath,\n cliPath,\n cloudPath,\n frameworkCloudPath,\n collectionsPath,\n commandsPath,\n componentsPath,\n configPath,\n projectConfigPath,\n corePath,\n customElementsDataPath,\n databasePath,\n datetimePath,\n developmentPath,\n desktopPath,\n docsPath,\n dnsPath,\n emailPath,\n enumsPath,\n eslintPluginPath,\n errorHandlingPath,\n eventsPath,\n coreEnvPath,\n healthPath,\n examplesPath,\n fakerPath,\n frameworkPath,\n browserPath,\n storagePath,\n functionsPath,\n gitPath,\n langPath,\n layoutsPath,\n libsPath,\n userLibsPath,\n libraryEntryPath,\n lintPath,\n listenersPath,\n loggingPath,\n logsPath,\n jobsPath,\n modulesPath,\n ormPath,\n objectsPath,\n onboardingPath,\n notificationsPath,\n packageJsonPath,\n viewsPath,\n pathPath,\n paymentsPath,\n projectPath,\n findProjectPath,\n coreStoragePath,\n publicPath,\n pushPath,\n queryBuilderPath,\n queuePath,\n realtimePath,\n resourcesPath,\n replPath,\n routerPath,\n routesPath,\n runtimePath,\n searchEnginePath,\n schedulerPath,\n settingsPath,\n smsPath,\n slugPath,\n scriptsPath,\n securityPath,\n serverPath,\n userServerPath,\n serverlessPath,\n stacksPath,\n stringsPath,\n shellPath,\n storesPath,\n testingPath,\n testsPath,\n tinkerPath,\n typesPath,\n uiPath,\n userDatabasePath,\n userMigrationsPath,\n userEventsPath,\n userJobsPath,\n userListenersPath,\n userMiddlewarePath,\n userModelsPath,\n userNotificationsPath,\n utilsPath,\n validationPath,\n viteConfigPath,\n vitePluginPath,\n xRayPath,\n homeDir,\n\n // path utils\n basename,\n delimiter: () => delimiter,\n dirname,\n extname,\n isAbsolute,\n join,\n normalize,\n relative,\n resolve,\n parse,\n sep: () => sep,\n toNamespacedPath,\n}\n\nexport { basename, delimiter, dirname, extname, isAbsolute, join, normalize, relative, resolve, sep, toNamespacedPath }\n"
6
6
  ],
7
- "mappings": ";AAAA,kBACA,mBACE,eACA,aACA,aACA,gBACA,UACA,eACA,WACA,cACA,aACA,SACA,sBACA,aAEF,uBACA,yBAAS,sBACT,cAAS,0BAeF,SAAS,CAAW,CAAC,EAAuB,CACjD,OAAO,EAAS,WAAW,GAAQ,IAAI,EAGlC,SAAS,CAAmB,CAAC,EAAe,CACjD,OAAO,EAAS,EAAY,EAAG,EAAY,CAAI,CAAC,EAG3C,SAAS,CAAe,CAAC,EAAe,EAA8B,CAC3E,OAAO,EAAQ,WAAW,GAAQ,IAAI,EAGjC,SAA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Ae,CACvC,OAAO,EAAS,SAAS,GAAQ,IAAI,EAShC,SAAS,EAAc,CAAC,EAAe,CAC5C,OAAO,EAAS,cAAc,GAAQ,IAAI,EASrC,SAAS,EAAc,CAAC,EAAe,CAC5C,OAAO,EAAS,eAAe,GAAQ,IAAI,EAStC,SAAS,EAAc,CAAC,EAAe,CAC5C,OAAO,EAAS,eAAe,GAAQ,IAAI,EAStC,SAAS,EAAQ,CAAC,EAAe,CACtC,OAAO,EAAc,gBAAgB,GAAQ,IAAI,EAS5C,SAAS,EAAO,CAAC,EAAe,CACrC,OAAO,EAAG,QAAQ,GAAK,GAAQ,EAAK,WAAW,GAAG,EAAI,GAAK,KAAO,EAAO,KAGpE,IAAM,GAAO,CAClB,cACA,kBACA,uBACA,qBACA,gBACA,oBACA,SACA,aACA,sBACA,YACA,gBACA,aACA,UACA,YACA,YACA,mBACA,kBACA,YACA,aACA,YACA,WACA,aACA,sBACA,mBACA,gBACA,kBACA,cACA,qBACA,WACA,0BACA,gBACA,gBACA,mBACA,eACA,YACA,WACA,aACA,aACA,qBACA,cACA,eACA,cACA,gBACA,aACA,gBACA,cACA,iBACA,WACA,YACA,eACA,WACA,eACA,oBACA,YACA,iBACA,eACA,YACA,YACA,eACA,WACA,eACA,kBACA,oBACA,mBACA,aACA,YACA,gBACA,cACA,mBACA,mBACA,cACA,YACA,oBACA,aACA,gBACA,gBACA,YACA,cACA,cACA,cACA,oBACA,iBACA,gBACA,WACA,YACA,eACA,gBACA,cACA,kBACA,kBACA,cACA,eACA,aACA,cACA,eACA,aACA,cACA,aACA,UACA,mBACA,qBACA,iBACA,eACA,oBACA,qBACA,iBACA,wBACA,aACA,kBACA,kBACA,kBACA,YACA,WAGA,WACA,YACA,UACA,UACA,aACA,OACA,YACA,WACA,UACA,QACA,MACA,kBACF",
8
- "debugId": "807E2643F959657F64756E2164756E21",
7
+ "mappings": ";AAAA,kBACA,mBACE,eACA,aACA,aACA,gBACA,UACA,eACA,WACA,cAEA,aACA,SACA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,gBACA,mBACA,eACA,YACA,WACA,aACA,aACA,oBACA,qBACA,cACA,eACA,cACA,gBACA,aACA,gBACA,eACA,cACA,iBACA,WACA,YACA,eACA,WACA,eACA,oBACA,YACA,iBACA,eACA,YACA,YACA,eACA,WACA,eACA,kBACA,oBACA,mBACA,aACA,YACA,gBACA,cACA,mBACA,mBACA,cACA,YACA,oBACA,aACA,gBACA,gBACA,YACA,cACA,cACA,cACA,oBACA,iBACA,gBACA,WACA,YACA,eACA,gBACA,cACA,kBACA,kBACA,cACA,eACA,aACA,cACA,eACA,aACA,cACA,aACA,UACA,mBACA,qBACA,iBACA,eACA,oBACA,qBACA,iBACA,wBACA,aACA,kBACA,kBACA,kBACA,YACA,WAGA,WACA,UAAW,IAAM,EACjB,UACA,UACA,aACA,OACA,YACA,WACA,UACA,QACA,IAAK,IAAM,EACX,kBACF",
8
+ "debugId": "A783005B7AA3F3E664756E2164756E21",
9
9
  "names": []
10
10
  }
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@stacksjs/path",
3
3
  "type": "module",
4
- "version": "0.64.6",
4
+ "version": "0.66.0",
5
5
  "description": "The Stacks path.",
6
6
  "author": "Chris Breuer",
7
+ "contributors": ["Chris Breuer <chris@stacksjs.org>"],
7
8
  "license": "MIT",
8
9
  "funding": "https://github.com/sponsors/chrisbbreuer",
9
10
  "homepage": "https://github.com/stacksjs/stacks/tree/main/storage/framework/core/path#readme",
@@ -15,14 +16,7 @@
15
16
  "bugs": {
16
17
  "url": "https://github.com/stacksjs/stacks/issues"
17
18
  },
18
- "keywords": [
19
- "path",
20
- "paths",
21
- "utilities",
22
- "functions",
23
- "bun",
24
- "stacks"
25
- ],
19
+ "keywords": ["path", "paths", "utilities", "functions", "bun", "stacks"],
26
20
  "exports": {
27
21
  ".": {
28
22
  "bun": "./src/index.ts",
@@ -31,24 +25,17 @@
31
25
  },
32
26
  "module": "dist/index.js",
33
27
  "types": "dist/index.d.ts",
34
- "contributors": [
35
- "Chris Breuer <chris@stacksjs.org>"
36
- ],
37
- "files": [
38
- "README.md",
39
- "dist",
40
- "src"
41
- ],
28
+ "files": ["README.md", "dist", "src"],
42
29
  "scripts": {
43
- "build": "bun --bun build.ts",
44
- "typecheck": "bun --bun tsc --noEmit",
30
+ "build": "bun build.ts",
31
+ "typecheck": "bun tsc --noEmit",
45
32
  "prepublishOnly": "bun run build"
46
33
  },
47
34
  "dependencies": {
48
- "@stacksjs/logging": "latest",
49
- "@stacksjs/validation": "latest"
35
+ "@stacksjs/logging": "0.65.1",
36
+ "@stacksjs/validation": "0.65.1"
50
37
  },
51
38
  "devDependencies": {
52
- "@stacksjs/development": "latest"
39
+ "@stacksjs/development": "0.65.1"
53
40
  }
54
41
  }