Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Cloudflare Agents: Agent Safe policy for `withX402Client`

Aperta
#49 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
28/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
blockchain, typescript

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
0
Fork
0
Merge medio
3h 51m
PR unite (30g)
3

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di DeepFirstHQ/deepfirstsearch

Tutte le issue di DeepFirstHQ/deepfirstsearch

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.