chore: Sync Plugin Info (#333) Regenerate plugin descriptions from the latest `dev` and fix the directory filter that silently excluded `connector-github` because `.git` was interpreted as an unanchored regular expression. - Match excluded directory names exactly so valid plugin names remain included. - Restore the GitHub descriptions in English and Chinese, add the LDAP English description, and include the six additional vector-search plugins. - Rebuild this branch on `dev` so unrelated commits from `main` are no longer included. The existing #332 workflow fix has also been synchronized to `main`, preventing its old workflow from overwriting this branch. Validation: - Ran the original `script/sync-info.sh` with yq 4.54.3 and jq twice; the results were byte-identical. - Independently parsed all plugin metadata and translations and compared every generated entry: 39 English and 38 Chinese descriptions, with matching values and ordering. - Verified exact directory exclusions and inclusion of `connector-github` and valid names containing `util` or `script` using an isolated fixture. - `bash -n script/sync-info.sh` and `git diff --check` passed. CI follow-up: - Added the standard ASF license headers to `connector-ldap/ldap.go` and `connector-ldap/login.html`, which were already missing on `dev` and caused the license check to fail. Both original file bodies are unchanged. - Re-ran the same `hawkeye-native:v3.6.1` license check locally; it passed. --------- Co-authored-by: robin <hello@robinren.me>
diff --git a/connector-ldap/ldap.go b/connector-ldap/ldap.go index 52522e4..3409f7c 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 9605eb7..77a151f 100644 --- a/connector-ldap/login.html +++ b/connector-ldap/login.html
@@ -1,3 +1,23 @@ +<!-- + + 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. + +--> <!DOCTYPE html> <html lang="en"> <head>
diff --git a/plugins_desc.json b/plugins_desc.json index b959d8e..6b8ad8e 100644 --- a/plugins_desc.json +++ b/plugins_desc.json
@@ -41,11 +41,21 @@ "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", "link": "https://github.com/apache/answer-plugins/tree/main/connector-wallet" @@ -151,9 +161,39 @@ "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": [ @@ -198,6 +238,11 @@ "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 第三方登录", "link": "https://github.com/apache/answer-plugins/tree/main/connector-google" @@ -308,9 +353,39 @@ "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 5a5abfc..70354be 100755 --- a/script/sync-info.sh +++ b/script/sync-info.sh
@@ -37,10 +37,13 @@ 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))