Documentation
¶
Overview ¶
Package paths resolves Smif's config, data and socket locations.
Defaults follow RFC 8.1 and 5.4. Every location can be overridden with an environment variable, which the tests use to keep socket paths short (macOS limits Unix socket paths to 104 bytes).
Index ¶
- func ClaudeDir() string
- func CodexDir() string
- func ConfigDir() string
- func ConfigFile() string
- func CopilotDir() string
- func DataDir() string
- func EnsureDir(dir string) error
- func Expand(p string) string
- func FactoryDir() string
- func HermesDB() string
- func Home() string
- func OpenCodeDB() string
- func PartsDir() string
- func QwenDir() string
- func QwenRuntimeDir() string
- func Socket() string
- func TokenDir() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigFile ¶
func ConfigFile() string
ConfigFile is ConfigDir()/config.toml unless SMIF_CONFIG is set.
func FactoryDir ¶
func FactoryDir() string
FactoryDir is Droid's ~/.factory. FACTORY_HOME_OVERRIDE stands in for the home folder.
func HermesDB ¶ added in v0.3.5
func HermesDB() string
HermesDB is Hermes's database: under HERMES_HOME, else ~/.hermes.
func OpenCodeDB ¶
func OpenCodeDB() string
OpenCodeDB is OpenCode's database: OPENCODE_DB, else under XDG_DATA_HOME, on macOS too. Smif reads only the default channel.
func PartsDir ¶
func PartsDir() string
PartsDir keeps the parts of a prompt (ADR-0020). It is a cache folder and not DataDir, because a path with no spaces stays whole in a prompt, and on macOS DataDir has one.
func QwenDir ¶
func QwenDir() string
QwenDir is ~/.qwen unless QWEN_HOME is set. It holds sessions/.
func QwenRuntimeDir ¶
func QwenRuntimeDir() string
QwenRuntimeDir holds Qwen Code's projects/: QWEN_RUNTIME_DIR moves it apart from QwenDir. Smif does not read the runtimeOutputDir setting.
Types ¶
This section is empty.