Skip to content

Add x402station preflight example#1247

Open
sF1nX wants to merge 1 commit into
coinbase:mainfrom
sF1nX:codex/x402station-preflight-example
Open

Add x402station preflight example#1247
sF1nX wants to merge 1 commit into
coinbase:mainfrom
sF1nX:codex/x402station-preflight-example

Conversation

@sF1nX
Copy link
Copy Markdown

@sF1nX sF1nX commented May 24, 2026

Summary

  • Add a TypeScript AgentKit example that calls Preflight by x402station.io before invoking the existing x402 payment action
  • Demonstrate fail-closed handling for hard endpoint risk signals before PAYMENT-SIGNATURE is signed
  • Document trial vs paid preflight usage and keep softer warnings as policy inputs, not automatic failures

Validation

  • pnpm --dir /Users/airbit/forks/agentkit/typescript install --frozen-lockfile
  • pnpm --dir /Users/airbit/forks/agentkit/typescript --filter @coinbase/x402station-preflight-agentkit-example test:types
  • pnpm --dir /Users/airbit/forks/agentkit/typescript --filter @coinbase/x402station-preflight-agentkit-example lint
  • pnpm --dir /Users/airbit/forks/agentkit/typescript --filter @coinbase/x402station-preflight-agentkit-example format:check
  • pnpm --dir /Users/airbit/forks/agentkit/typescript run lint
  • pnpm --dir /Users/airbit/forks/agentkit/typescript run format:check

Note: running pnpm install also cleaned a stale lockfile importer for examples/register, which is no longer present in the workspace tree.

@sF1nX sF1nX requested a review from murrlincoln as a code owner May 24, 2026 15:57
@cb-heimdall
Copy link
Copy Markdown

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 1
Sum 2

@github-actions github-actions Bot added documentation Improvements or additions to documentation example New example agent typescript labels May 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation example New example agent typescript

Development

Successfully merging this pull request may close these issues.

2 participants