agentSafeGuard for `@x402/axios`
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 45/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
Start with sdk/src/x402/officialClient.ts, where guard.fetch(wrapFetchWithPayment(fetch, client)) records the origin for the payment hooks, and mirror that for an axios instance using structural types. Add the @deepfirstsearch/agent-pay/testing mock merchant tests for the three cases: pinned payee paid, swapped payee refused with payee_mismatch and zero signatures, unguarded instance refused. Done when those pass and sdk/README.md has a short section. Comment on the issue and discuss the @x402/axios devDependency before starting.
索引モデルが issue の本文から書いたものです。
説明
agentSafeGuard (agent-pay 0.12, sdk/src/x402/officialClient.ts) plugs Agent Safe's policy into the official x402 client's hooks. Every payment is judged against the origin the request was actually sent to, which the guard records with guard.fetch(wrapFetchWithPayment(fetch, client)). Axios users wrap an axios instance instead, and have no equivalent today.
What: guard.axios(instance) or an equivalent, so that the URL each axios request is made to (config.url resolved against baseURL) is recorded for the hooks, the same way guard.fetch does.
Acceptance:
- Tests with the real
@x402/axiosas a devDependency, against the SDK's mock merchant (@deepfirstsearch/agent-pay/testing): a payment to the pinned payee goes through; a swapped payee is refused (payee_mismatch) with zero signatures; an instance used without the guard is refused. - No runtime dependency on axios in the SDK: use structural types.
- A short section in
sdk/README.md.
New to the repo? Start with CONTRIBUTING.md. Every outside PR goes through the review gates in docs/REVIEWING.md. Please discuss any new dependency in this issue first. Comment here before starting, so two people don't build the same thing.
- 主要言語
- TypeScript
- スター
- 0
- フォーク
- 0
- 平均マージ
- 3時間 51分
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
DeepFirstHQ/deepfirstsearch のほかの issue
-
documentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
help wanted integration
難易度 3/5 1〜2日 初心者へのやさしさ 50/100
-
enhancement good first issue
難易度 3/5 1〜2日 初心者へのやさしさ 62/100
-
help wanted integration
難易度 3/5 半日 初心者へのやさしさ 25/100
-
enhancement good first issue
難易度 3/5 1〜2日 初心者へのやさしさ 50/100
DeepFirstHQ/deepfirstsearch の issue をすべて見る
似ている issue
-
test: make the #3408 Claude OAuth token fixture obviously fake so secret scanners stop flagging itオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
code-yeongyu/senpi#3436 ·
メンテナーはふだん 1 日以内に返信
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
lingdojo/kana-dojo#32505 · コメント 1 件 · リアクション 5 件 ·
メンテナーはふだん 1 日以内に返信
-
code-quality refactoring
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
github/gh-aw-firewall#10040 ·
メンテナーはふだん 1 日以内に返信
-
review-followup
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
griffinwork40/agent-afk#3868 ·
メンテナーはふだん 1 日以内に返信
-
area: import-export bug status: needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
amatya-aditya/obsidian-rss-dashboard#1191 ·
メンテナーはふだん 1 日以内に返信