paths
Module: vibex/paths
Centralized VibeX path resolution utility
Handles the difference between local development and Railway deployment:
- Local: ~/.vibex (os.homedir() + ‘.vibex’)
- Railway: /vibex (VIBEX_STORAGE_PATH environment variable)
Functions
getVibexRoot
View sourceGet the root VibeX directory path Respects VIBEX_STORAGE_PATH environment variable for Railway deployment
function getVibexRoot(): stringgetVibexPath
View sourceGet a path within the VibeX directory structure
function getVibexPath(subPaths: string[]): stringParameters:
| Name | Type | Description |
|---|---|---|
subPaths | string[] |
Constants
VibexPaths
View sourceGet common VibeX directory paths
const VibexPaths: { readonly root: () => string; readonly config: () => string; readonly spaces: () => string; readonly defaults: () => string; readonly mcpServers: () => string; readonly mcpServerShared: () => string; ... 8 more ...; readonly spaceArtifacts: (spaceId: string) => string; }