Skip to content

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

fix(datasource): align Feishu connector capabilities

langcaiyec8e9adbaa10d
diff --git a/internal/datasource/connector.go b/internal/datasource/connector.go
index 7933233db..96c356a32 100644
--- a/internal/datasource/connector.go
+++ b/internal/datasource/connector.go
@@ -92,7 +92,7 @@ var ConnectorMetadataRegistry = map[string]ConnectorMetadata{
Description: "Sync documents, wikis, and content from Feishu",
Priority: 0,
AuthType: "oauth2",
- Capabilities: []string{"incremental", "webhook", "deletion_sync"},
+ Capabilities: []string{"incremental", "deletion_sync"},
},
types.ConnectorTypeNotion: {
Type: types.ConnectorTypeNotion,
diff --git a/internal/datasource/connector_test.go b/internal/datasource/connector_test.go
new file mode 100644
index 000000000..2bb4b61f2
--- /dev/null
+++ b/internal/datasource/connector_test.go
@@ -0,0 +1,17 @@
+package datasource
+
+import (
+ "testing"
+
+ "github.com/Tencent/WeKnora/internal/types"
+)
+
+func TestFeishuMetadataDoesNotAdvertiseWebhook(t *testing.T) {
+ meta := ConnectorMetadataRegistry[types.ConnectorTypeFeishu]
+
+ for _, capability := range meta.Capabilities {
+ if capability == "webhook" {
+ t.Fatalf("Feishu connector should not advertise webhook until webhook sync is implemented")
+ }
+ }
+}