feat(agentkit): add TaskMarket action provider - #1422
Open
Autonomy-Labs-Tech wants to merge 2 commits into
Open
Conversation
Add a read-only TaskMarket (api.taskmarket.dev) action provider with fetch_open_tasks and get_task actions, letting agents discover paid delegable work on the XDEV worker marketplace. Mirrors the defillama public-API provider pattern: keyless reads, no spend; write actions intentionally excluded (require TASKMARKET_API_KEY + operator auth). Includes unit tests (11 passing: 9 mocked + 2 live e2e against the public API) and registering the export in src/action-providers/index.ts.
🟡 Heimdall Review Status
|
Live tests run only with TASKMARKET_E2E=1; CI stays hermetic.
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.
Adds a TaskMarket action provider (api.taskmarket.dev - the XDEV developer marketplace) exposing keyless read actions so agents can discover paid, delegable work.
Actions:
Both are public-API reads; no auth, no spend. Write actions (create/submit) require the TASKMARKET_API_KEY secret and explicit operator authorization and are intentionally NOT included - agents cannot spend without human sign-off.
Testing: 9 unit tests (mocked fetch) cover ranking, filtering, error paths; a live e2e suite (taskmarketActionProvider.e2e.test.ts) runs against the public API when TASKMARKET_E2E=1 and passes against the real board (verified locally: 2/2). Mirrors the existing defillama public-API provider pattern; registered in src/action-providers/index.ts.
Note: commits are unsigned (no key on this machine); happy to add a signed commit if required.