fix(ax): use JoinPath in monitor path handling

Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
Virgil 2026-03-30 16:46:20 +00:00
parent 459a353c6b
commit c3eff6a799
4 changed files with 4 additions and 4 deletions

View file

@ -17,7 +17,7 @@ import (
// fs provides unrestricted filesystem access for shared brain credentials.
//
// keyPath := core.Concat(home, "/.claude/brain.key")
// keyPath := core.JoinPath(home, ".claude", "brain.key")
// if r := fs.Read(keyPath); r.OK {
// apiKey = core.Trim(r.Value.(string))
// }

View file

@ -208,7 +208,7 @@ func (m *Subsystem) checkSafety(srcDir string) string {
return core.Sprintf("binary file added: %s", file)
}
fullPath := core.Concat(srcDir, "/", file)
fullPath := core.JoinPath(srcDir, file)
if stat := fs.Stat(fullPath); stat.OK {
if info, ok := stat.Value.(interface{ Size() int64 }); ok && info.Size() > 1024*1024 {
return core.Sprintf("large file: %s (%d bytes)", file, info.Size())

View file

@ -21,7 +21,7 @@ import (
// fs provides unrestricted filesystem access (root "/" = no sandbox).
//
// r := fs.Read(core.Concat(wsRoot, "/", name, "/status.json"))
// r := fs.Read(core.JoinPath(wsRoot, name, "status.json"))
// if text, ok := resultString(r); ok { _ = core.JSONUnmarshalString(text, &st) }
var fs = agentic.LocalFs()

View file

@ -67,7 +67,7 @@ func (m *Subsystem) syncRepos() string {
if repoName == "." || repoName == ".." || repoName == "" {
continue
}
repoDir := core.Concat(basePath, "/", repoName)
repoDir := core.JoinPath(basePath, repoName)
if !fs.Exists(repoDir) || fs.IsFile(repoDir) {
continue
}