feat: update auto reply and packaging

This commit is contained in:
ly1213
2026-06-29 17:44:22 +08:00
parent 1ca66dc0af
commit 2d5ee7f08d
19 changed files with 1147 additions and 227 deletions

View File

@@ -54,9 +54,18 @@ func handleAutoReplyRebuildKnowledge(w http.ResponseWriter, r *http.Request) {
start := time.Now()
idx, err := getAutoReplyEngine().rebuildKnowledgeIndex()
if err != nil {
data := map[string]interface{}{
"durationMs": time.Since(start).Milliseconds(),
}
if idx != nil {
data["fileCount"] = idx.FileCount
data["chunkCount"] = len(idx.Chunks)
data["failedFiles"] = idx.FailedFiles
}
sendJSONResponse(w, http.StatusInternalServerError, map[string]interface{}{
"success": false,
"message": err.Error(),
"data": data,
})
return
}