Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

agentSafeGuard for `@x402/axios`

クローズ
#48 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
devtools, payments

調査の方向性

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 の本文から書いたものです。

説明

help wanted integration

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/axios as 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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

DeepFirstHQ/deepfirstsearch のほかの issue

DeepFirstHQ/deepfirstsearch の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。