[PR #140] [CLOSED] feat: Add Cosense Search plugin #1116

Closed
opened 2026-02-16 10:22:00 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-official-plugins/pull/140
Author: @teramotodaiki
Created: 1/11/2025
Status: Closed

Base: mainHead: main


📝 Commits (6)

  • 96caea7 feat: Add Cosense Search plugin with comprehensive error handling
  • fad0651 docs: enhance Cosense product description and add product URL
  • 11ae41f Merge pull request #1 from teramotodaiki/devin/1736576953-add-cosense-search-tool
  • 660b30a fix: replace custom SVG icon with official Cosense logo
  • fdf9650 fix: clean up icon files and ensure correct placement
  • b601812 Merge pull request #2 from teramotodaiki/devin/1736576953-add-cosense-search-tool

📊 Changes

9 files changed (+264 additions, -0 deletions)

View changed files

tools/cosense/README.md (+80 -0)
tools/cosense/_assets/cosense-banner.png (+0 -0)
tools/cosense/_assets/icon.png (+0 -0)
tools/cosense/main.py (+6 -0)
tools/cosense/manifest.yaml (+35 -0)
tools/cosense/provider/cosense.py (+17 -0)
tools/cosense/provider/cosense.yaml (+49 -0)
tools/cosense/requirements.txt (+2 -0)
tools/cosense/tools/cosense_search.py (+75 -0)

📄 Description

This PR adds a new plugin that enables searching knowledge in Cosense (formally Scrapbox.io) projects directly from Dify.

About Cosense

Cosense is a cutting-edge knowledge management and collaboration platform designed for modern teams. it offers:

  • Real-time Collaboration: Multiple team members can edit and contribute simultaneously
  • Flexible Organization: Free-form linking and tagging for organic knowledge structure
  • Smart Search: Advanced search capabilities with context-aware results
  • Enterprise Features: SSO, access controls, and security features for business use

Cosense transforms how teams:

  • Share and discover knowledge
  • Document processes and decisions
  • Collaborate on projects and research
  • Build internal wikis and documentation

Features

  • Search across public and private Cosense projects
  • Comprehensive error handling for API responses
  • Multilingual support (English/Japanese)
  • Secure authentication for private projects
  • Clear documentation and examples

Implementation Details

  • Follows Dify plugin architecture and standards
  • Implements robust error handling with custom exceptions
  • Provides detailed setup instructions
  • Includes proper branding assets and SVG icon
  • Supports both public and authenticated access

Testing

  • Can test with public projects
  • Verified error handling for:
    • Invalid project names
    • Missing credentials
    • Network errors
    • Invalid search queries

Documentation

  • Complete README with setup instructions
  • Clear usage examples
  • Authentication guide for private projects
  • Multilingual interface descriptions

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-official-plugins/pull/140 **Author:** [@teramotodaiki](https://github.com/teramotodaiki) **Created:** 1/11/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (6) - [`96caea7`](https://github.com/langgenius/dify-official-plugins/commit/96caea74813097d4911bf6d87fc50f49889e4b11) feat: Add Cosense Search plugin with comprehensive error handling - [`fad0651`](https://github.com/langgenius/dify-official-plugins/commit/fad06512b87c2a2f275dd3792b9ce951dd50cf37) docs: enhance Cosense product description and add product URL - [`11ae41f`](https://github.com/langgenius/dify-official-plugins/commit/11ae41fdc1cb4615b1bea5b03ebde3d67b543ab5) Merge pull request #1 from teramotodaiki/devin/1736576953-add-cosense-search-tool - [`660b30a`](https://github.com/langgenius/dify-official-plugins/commit/660b30a9fe09e3a864bcaeb994bcd2c1bed5c3a9) fix: replace custom SVG icon with official Cosense logo - [`fdf9650`](https://github.com/langgenius/dify-official-plugins/commit/fdf965065963c4d16c361dc0dd06486d9c0ac6de) fix: clean up icon files and ensure correct placement - [`b601812`](https://github.com/langgenius/dify-official-plugins/commit/b6018129e268482cc998c87c94c2e88d3391c155) Merge pull request #2 from teramotodaiki/devin/1736576953-add-cosense-search-tool ### 📊 Changes **9 files changed** (+264 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `tools/cosense/README.md` (+80 -0) ➕ `tools/cosense/_assets/cosense-banner.png` (+0 -0) ➕ `tools/cosense/_assets/icon.png` (+0 -0) ➕ `tools/cosense/main.py` (+6 -0) ➕ `tools/cosense/manifest.yaml` (+35 -0) ➕ `tools/cosense/provider/cosense.py` (+17 -0) ➕ `tools/cosense/provider/cosense.yaml` (+49 -0) ➕ `tools/cosense/requirements.txt` (+2 -0) ➕ `tools/cosense/tools/cosense_search.py` (+75 -0) </details> ### 📄 Description This PR adds a new plugin that enables searching knowledge in Cosense (formally Scrapbox.io) projects directly from Dify. ## About Cosense [Cosense](https://cosen.se/product) is a cutting-edge knowledge management and collaboration platform designed for modern teams. it offers: - **Real-time Collaboration**: Multiple team members can edit and contribute simultaneously - **Flexible Organization**: Free-form linking and tagging for organic knowledge structure - **Smart Search**: Advanced search capabilities with context-aware results - **Enterprise Features**: SSO, access controls, and security features for business use Cosense transforms how teams: - Share and discover knowledge - Document processes and decisions - Collaborate on projects and research - Build internal wikis and documentation ## Features - Search across public and private Cosense projects - Comprehensive error handling for API responses - Multilingual support (English/Japanese) - Secure authentication for private projects - Clear documentation and examples ## Implementation Details - Follows Dify plugin architecture and standards - Implements robust error handling with custom exceptions - Provides detailed setup instructions - Includes proper branding assets and SVG icon - Supports both public and authenticated access ## Testing - Can test with public projects - e.g. https://scrapbox.io/help/ - Verified error handling for: - Invalid project names - Missing credentials - Network errors - Invalid search queries ## Documentation - Complete README with setup instructions - Clear usage examples - Authentication guide for private projects - Multilingual interface descriptions --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 10:22:00 -05:00
yindo closed this issue 2026-02-16 10:22:00 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#1116