From 6703be964d4581c1768e70ae6fc95ecffb424d2d Mon Sep 17 00:00:00 2001 From: robin Date: Tue, 10 Nov 2026 14:41:20 +0800 Subject: [PATCH 1/2] fix: preserve plugin descriptions when regenerating sync info --- plugins_desc.json | 75 +++++++++++++++++++++++++++++++++++++++++++++ script/sync-info.sh | 11 ++++--- 2 files changed, 82 insertions(+), 4 deletions(-) diff --git a/plugins_desc.json b/plugins_desc.json index b959d8e4..6b8ad8e4 100644 --- a/plugins_desc.json +++ b/plugins_desc.json @@ -40,11 +40,21 @@ "desc": "Connect to Dingtalk for third-party login", "link": "https://github.com/apache/answer-plugins/tree/main/connector-dingtalk" }, + { + "name": "GitHub Connector", + "desc": "Connect to GitHub for third-party login", + "link": "https://github.com/apache/answer-plugins/tree/main/connector-github" + }, { "name": "Google Connector", "desc": "Connect to Google for third-party login", "link": "https://github.com/apache/answer-plugins/tree/main/connector-google" }, + { + "name": "LDAP Connector", + "desc": "Connect to LDAP for third-party login", + "link": "https://github.com/apache/answer-plugins/tree/main/connector-ldap" + }, { "name": "Wallet Connector", "desc": "Connect to Wallet for third-party login", @@ -150,10 +160,40 @@ "desc": "Get user info from WeCom and sync to User Center", "link": "https://github.com/apache/answer-plugins/tree/main/user-center-wecom" }, + { + "name": "ChromaDB Vector Search", + "desc": "Use ChromaDB for semantic/vector search", + "link": "https://github.com/apache/answer-plugins/tree/main/vector-search-chromadb" + }, + { + "name": "Elasticsearch Vector Search", + "desc": "Use Elasticsearch with dense_vector fields for semantic/vector search", + "link": "https://github.com/apache/answer-plugins/tree/main/vector-search-elasticsearch" + }, { "name": "In-Memory Vector Search", "desc": "Lightweight in-memory vector search for development and testing (no external dependencies)", "link": "https://github.com/apache/answer-plugins/tree/main/vector-search-memory" + }, + { + "name": "Milvus Vector Search", + "desc": "Use Milvus for semantic/vector search", + "link": "https://github.com/apache/answer-plugins/tree/main/vector-search-milvus" + }, + { + "name": "PostgreSQL pgvector Search", + "desc": "Use PostgreSQL with pgvector extension for semantic/vector search", + "link": "https://github.com/apache/answer-plugins/tree/main/vector-search-pgvector" + }, + { + "name": "Qdrant Vector Search", + "desc": "Use Qdrant for semantic/vector search", + "link": "https://github.com/apache/answer-plugins/tree/main/vector-search-qdrant" + }, + { + "name": "Weaviate Vector Search", + "desc": "Use Weaviate for semantic/vector search with built-in vector indexing", + "link": "https://github.com/apache/answer-plugins/tree/main/vector-search-weaviate" } ], "zh_CN": [ @@ -197,6 +237,11 @@ "desc": "用于接入钉钉第三方登录", "link": "https://github.com/apache/answer-plugins/tree/main/connector-dingtalk" }, + { + "name": "GitHub 连接器", + "desc": "用于接入 GitHub 第三方登录", + "link": "https://github.com/apache/answer-plugins/tree/main/connector-github" + }, { "name": "Google 连接器", "desc": "用于接入 Google 第三方登录", @@ -307,10 +352,40 @@ "desc": "从企业微信获取用户信息并同步到用户中心", "link": "https://github.com/apache/answer-plugins/tree/main/user-center-wecom" }, + { + "name": "ChromaDB 向量搜索", + "desc": "使用 ChromaDB 进行语义/向量搜索", + "link": "https://github.com/apache/answer-plugins/tree/main/vector-search-chromadb" + }, + { + "name": "Elasticsearch 向量搜索", + "desc": "使用 Elasticsearch dense_vector 字段进行语义/向量搜索", + "link": "https://github.com/apache/answer-plugins/tree/main/vector-search-elasticsearch" + }, { "name": "内存向量搜索", "desc": "轻量级内存向量搜索,适用于开发和测试(无外部依赖)", "link": "https://github.com/apache/answer-plugins/tree/main/vector-search-memory" + }, + { + "name": "Milvus 向量搜索", + "desc": "使用 Milvus 进行语义/向量搜索", + "link": "https://github.com/apache/answer-plugins/tree/main/vector-search-milvus" + }, + { + "name": "PostgreSQL pgvector 搜索", + "desc": "使用 PostgreSQL pgvector 扩展进行语义/向量搜索", + "link": "https://github.com/apache/answer-plugins/tree/main/vector-search-pgvector" + }, + { + "name": "Qdrant 向量搜索", + "desc": "使用 Qdrant 进行语义/向量搜索", + "link": "https://github.com/apache/answer-plugins/tree/main/vector-search-qdrant" + }, + { + "name": "Weaviate 向量搜索", + "desc": "使用 Weaviate 进行语义/向量搜索,支持内置向量索引", + "link": "https://github.com/apache/answer-plugins/tree/main/vector-search-weaviate" } ] } diff --git a/script/sync-info.sh b/script/sync-info.sh index 5a5abfc6..70354bed 100755 --- a/script/sync-info.sh +++ b/script/sync-info.sh @@ -37,10 +37,13 @@ echo "{}" >"$project_root/plugins_desc.json" plugins=() for dir in "$project_root"/*/; do - if [[ "$dir" =~ (node_modules|util|script|.git|.vscode) ]]; then - continue - fi - plugins+=($(basename "$dir")) + plugin=$(basename "$dir") + case "$plugin" in + node_modules|util|script|.git|.vscode) + continue + ;; + esac + plugins+=("$plugin") done plugins=($(printf '%s\n' "${plugins[@]}" | sort)) From 9d2851e3c6b3c8ab61b1fb6c16c2fa4fe50f83f4 Mon Sep 17 00:00:00 2001 From: robin Date: Tue, 10 Nov 2026 14:50:03 +0800 Subject: [PATCH 2/2] fix: add missing LDAP plugin license headers --- connector-ldap/ldap.go | 19 +++++++++++++++++++ connector-ldap/login.html | 20 ++++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/connector-ldap/ldap.go b/connector-ldap/ldap.go index 52522e41..3409f7c0 100644 --- a/connector-ldap/ldap.go +++ b/connector-ldap/ldap.go @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + package ldap import ( diff --git a/connector-ldap/login.html b/connector-ldap/login.html index 9605eb78..77a151f5 100644 --- a/connector-ldap/login.html +++ b/connector-ldap/login.html @@ -1,3 +1,23 @@ +