fix: harden auth, sse, search, and docs

This commit is contained in:
OpenClaw Agent
2026-03-15 04:47:03 +08:00
parent f4574e6190
commit 80440077cf
4 changed files with 275 additions and 52 deletions

View File

@@ -1,6 +1,7 @@
package main
import (
"sort"
"strconv"
)
@@ -446,7 +447,6 @@ func (s *TaoServer) RegisterTools() {
}
}
func buildToolList() []map[string]interface{} {
var toolList []map[string]interface{}
for _, t := range ToolRegistry {
@@ -456,6 +456,9 @@ func buildToolList() []map[string]interface{} {
"inputSchema": t.InputSchema,
})
}
sort.Slice(toolList, func(i, j int) bool {
return toolList[i]["name"].(string) < toolList[j]["name"].(string)
})
return toolList
}