chore: update project files

This commit is contained in:
lpf
2026-04-03 18:35:04 +08:00
parent 428d944e52
commit ce2263ac8c
54 changed files with 1025 additions and 4613 deletions

View File

@@ -54,7 +54,7 @@ func (t *MessageTool) Parameters() map[string]interface{} {
},
"channel": map[string]interface{}{
"type": "string",
"description": "Optional: target channel (telegram, whatsapp, etc.)",
"description": "Optional: target channel (telegram, feishu, weixin)",
},
"chat_id": map[string]interface{}{
"type": "string",

View File

@@ -177,7 +177,7 @@ func normalizeSubagentProfile(in SubagentProfile) SubagentProfile {
if p.Name == "" {
p.Name = p.AgentID
}
p.Transport = normalizeProfileTransport(p.Transport)
p.ParentAgentID = normalizeSubagentIdentifier(p.ParentAgentID)
p.NotifyMainPolicy = normalizeNotifyMainPolicy(p.NotifyMainPolicy)
p.Role = strings.TrimSpace(p.Role)
@@ -207,17 +207,6 @@ func normalizeProfileStatus(s string) string {
}
}
func normalizeProfileTransport(s string) string {
switch strings.ToLower(strings.TrimSpace(s)) {
case "", "local":
return "local"
case "node":
return "node"
default:
return "local"
}
}
func normalizeStringList(in []string) []string {
if len(in) == 0 {
return nil