Documentation
¶
Overview ¶
Package paths provides centralized path resolution for the DevClaw application. All data is stored in ./data/ relative to the project root.
Index ¶
- Constants
- func EnsureStateDirs() error
- func ResolveConfigPath() string
- func ResolveDataDir() string
- func ResolveDatabasePath(filename string) string
- func ResolveMediaDir() string
- func ResolveMediaPath(channel, sessionID string) string
- func ResolvePluginsDir() string
- func ResolveSessionsDir() string
- func ResolveSkillsDir() string
- func ResolveStateDir() string
- func ResolveVaultPath() string
- func ResolveWorkspacesDir() string
Constants ¶
const AppName = "devclaw"
AppName is the application name used for the state directory.
const ConfigPathEnv = "DEVCLAW_CONFIG_PATH"
ConfigPathEnv is the environment variable for custom config path.
const StateDirEnv = "DEVCLAW_STATE_DIR"
StateDirEnv is the environment variable for custom state directory.
Variables ¶
This section is empty.
Functions ¶
func EnsureStateDirs ¶
func EnsureStateDirs() error
EnsureStateDirs creates the state directory structure if it doesn't exist.
func ResolveConfigPath ¶
func ResolveConfigPath() string
ResolveConfigPath returns the config file path. Precedence: DEVCLAW_CONFIG_PATH > ./config.yaml
func ResolveDatabasePath ¶
ResolveDatabasePath returns the database file path.
func ResolveMediaDir ¶
func ResolveMediaDir() string
ResolveMediaDir returns the media directory path.
func ResolveMediaPath ¶
ResolveMediaPath returns the media path for a specific channel and session. Input is sanitized to prevent path traversal attacks.
func ResolvePluginsDir ¶
func ResolvePluginsDir() string
ResolvePluginsDir returns the plugins directory path.
func ResolveSessionsDir ¶
func ResolveSessionsDir() string
ResolveSessionsDir returns the sessions directory path.
func ResolveSkillsDir ¶
func ResolveSkillsDir() string
ResolveSkillsDir returns the skills directory path.
func ResolveStateDir ¶
func ResolveStateDir() string
ResolveStateDir returns the project root directory.
func ResolveVaultPath ¶
func ResolveVaultPath() string
ResolveVaultPath returns the vault file path.
func ResolveWorkspacesDir ¶
func ResolveWorkspacesDir() string
ResolveWorkspacesDir returns the workspaces directory path.
Types ¶
This section is empty.