refactor: stabilize runtime and unify config

This commit is contained in:
lpf
2026-03-14 21:40:12 +08:00
parent 60eee65fec
commit 341e578c9f
75 changed files with 3081 additions and 1627 deletions

View File

@@ -65,12 +65,9 @@ type repoMapEntry struct {
}
func (t *RepoMapTool) Execute(_ context.Context, args map[string]interface{}) (string, error) {
query, _ := args["query"].(string)
maxResults := 20
if raw, ok := args["max_results"].(float64); ok && raw > 0 {
maxResults = int(raw)
}
forceRefresh, _ := args["refresh"].(bool)
query := MapStringArg(args, "query")
maxResults := MapIntArg(args, "max_results", 20)
forceRefresh, _ := MapBoolArg(args, "refresh")
cache, err := t.loadOrBuildMap(forceRefresh)
if err != nil {