Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Cloudflare Agents: Agent Safe policy for `withX402Client`

Abierto
#49 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
28/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
blockchain, typescript

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
0
Forks
0
Merge medio
3 h 51 min
PR fusionados (30 d)
3

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de DeepFirstHQ/deepfirstsearch

Todos los issues de DeepFirstHQ/deepfirstsearch

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.