Slim subagent runtime surface and remove legacy interfaces

This commit is contained in:
LPF
2026-03-17 13:41:12 +08:00
parent 341e578c9f
commit 0674d85ae1
76 changed files with 778 additions and 8782 deletions

View File

@@ -2,7 +2,6 @@ package tools
import (
"path/filepath"
"strings"
)
func normalizeMemoryNamespace(in string) string {
@@ -24,11 +23,3 @@ func memoryNamespaceBaseDir(workspace, namespace string) string {
func parseMemoryNamespaceArg(args map[string]interface{}) string {
return normalizeMemoryNamespace(MapStringArg(args, "namespace"))
}
func isPathUnder(parent, child string) bool {
rel, err := filepath.Rel(parent, child)
if err != nil {
return false
}
return !strings.HasPrefix(rel, "..")
}