a431d1ec95
Add OpenAI-compatible providers, TUI, slash commands, and model switching. Add local file tools plus optional yolo shell execution. Document config, usage, and development workflow.
16 lines
252 B
Go
16 lines
252 B
Go
package tools
|
|
|
|
import (
|
|
"path/filepath"
|
|
)
|
|
|
|
func resolvePath(baseDir, path string) (string, error) {
|
|
if path == "" {
|
|
path = "."
|
|
}
|
|
if filepath.IsAbs(path) {
|
|
return filepath.Clean(path), nil
|
|
}
|
|
return filepath.Abs(filepath.Join(baseDir, path))
|
|
}
|