v0.0.1: agentu mvp

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.
This commit is contained in:
loveuer
2026-06-22 17:28:22 +08:00
commit a431d1ec95
23 changed files with 3526 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
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))
}