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

Cloudflare Agents: Agent Safe policy for `withX402Client`

オープン
#49 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

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

調査の方向性

Start by reading the Cloudflare x402 docs to see what the withX402Client confirmation callback receives, then check whether it exposes the origin. The work goes in examples/cloudflare-agents/, with a test against the SDK's mock merchant. Done means one allowed payment passes, and a swapped payee is refused with nothing signed. Comment on the issue before starting, since the maintainers ask for discussion first.

索引モデルが issue の本文から書いたものです。

説明

help wanted integration

Cloudflare's Agents SDK pays x402 through withX402Client (see the docs). It takes a confirmation callback that decides whether a payment goes ahead. A budget or payee check could live there.

What: investigate what that callback receives. Does it get the payment requirements, and the URL or tool that triggered the payment? Then build the smallest adapter that runs Agent Safe's policy in it: payee pinned per origin, price pin, sealed plan and budget. If the callback can't see the origin, document that limit and use the guard's fixed origin option where one URL is known.

Acceptance:

  • An example in examples/cloudflare-agents/ plus a test against the SDK's mock merchant: one allowed payment, and one swapped payee refused with nothing signed.
  • No new runtime dependency in the SDK.

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 を短くまとめたダイジェスト。