Add Sofya plugin (search, fetch, extract, research) 0.1.0 - #3039
Open
yusufgurdogan wants to merge 1 commit into
Open
Add Sofya plugin (search, fetch, extract, research) 0.1.0#3039yusufgurdogan wants to merge 1 commit into
yusufgurdogan wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plugin Submission
Plugin information
Submission type
What changed
I build Sofya. This adds a tool plugin for the Sofya API (https://sofya.co) with four tools:
Each tool sends one JSON POST to
https://sofya.coand returns the response as a JSON message plus a readable text message. One required credential,sofya_api_key, sent as a Bearer header. No retries, caching or telemetry.Risk level
The plugin connects to one fixed HTTPS API and nothing else.
sofya_fetchandsofya_extracttake a user supplied URL as a parameter to that API, which fetches the page server side; the plugin never opens a connection to a user controlled host. That is Medium, not High.Required checks
.envfiles,.gitdirectories, virtual environments, caches, logs, or IDE files.PRIVACY.mdor a hosted privacy policy, andmanifest.yamlreferences it.Security and privacy notes
User provided URL fetching in
sofya_fetchandsofya_extract, passed as a JSON field to the Sofya API. The API host is a constant in the code, not a tool parameter. Every request has a timeout, fetch is capped at 10 URLs, and anything shaped like an API key is masked in error messages.Data sent to Sofya: the query, the URLs, the extraction prompt and the API key. The plugin stores nothing, logs nothing and contacts no other host. See
PRIVACY.md.Local validation
pytest -q: 54 passed (mocked HTTP for every tool, API errors, missing key, and a check that every YAML parameter matches the Python).ruff check .: passed.dify-marketplace-toolkitvalidators pass with 0 blocking failures. Remaining warnings are informational: the outbound domain issofya.co, declared inmanifest.yaml; the onerequests.postcall site is disclosed above.test-plugin-install.pywithINSTALL_METHOD=serverless: the plugin started under the SDK runner and reported success.Reviewer notes
Not yet installed into a Dify Community Edition or Cloud instance, so that box is left unticked. Everything else above was run here.