Add Keenable backend to osaurus.search#162
Open
styskin wants to merge 1 commit into
Open
Conversation
Adds `keenable` as a new paid provider in osaurus.search, sitting at the top of paidProviderPriority. Posts to https://api.keenable.ai/v1/search with the user-configured KEENABLE_API_KEY in the X-API-Key header. Keenable is purpose-built web search for AI agents. See https://docs.keenable.ai. - New private keenableSearch(_:) backend mapping title/url/snippet/ description/published_at/acquired_at into SearchHit - mapKeenablePublishedAfter helper converts the d/w/m/y time_range arg into the ISO date Keenable expects under `published_after` - Added "keenable" to runBackend dispatch and providerHasSecrets - Added KEENABLE_API_KEY to manifest secrets (optional, no other backend is required either; configure to enable the provider) - CHANGELOG bumped to 2.2.0 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
keenablepaid provider inosaurus.search, sitting at the top ofpaidProviderPriority.https://api.keenable.ai/v1/searchwith the user-configuredKEENABLE_API_KEYin theX-API-Keyheader.Changes
tools/search/Sources/OsaurusSearch/Plugin.swiftkeenableSearch(_:)backend mappingtitle/url/snippet-or-description/published_at-or-acquired_atintoSearchHit.mapKeenablePublishedAfterhelper converting thed/w/m/ytime_rangearg into the ISO date Keenable expects underpublished_after.runBackend,paidProviderPriority(first),providerHasSecrets.KEENABLE_API_KEYto the manifest secrets list (samerequired: falseas the other paid backends).tools/search/CHANGELOG.md— 2.2.0 entry.Verification
POST /v1/searchrequiresX-API-Key, returns{query, results: [{title, url, description, snippet, published_at?, acquired_at}]}.swift buildclean. (Test target needs Xcode env for XCTest — not run from CLI.)Test plan
KEENABLE_API_KEYin the Search plugin's secrets, then ask the agent to do a web search — confirm akeenableengine entry appears in the result attempts.keenableis silently skipped (no error to the user) and the cascade proceeds to other backends.🤖 Generated with Claude Code