@402flow/sdk-third-party-executors
v0.1.0-alpha.30
Published
Official supported delegated-execution adapters for @402flow/sdk.
Maintainers
Readme
@402flow/sdk-third-party-executors
Official supported delegated-execution adapters for @402flow/sdk.
This package is intentionally separate from the main @402flow/sdk package so the core SDK stays provider-neutral while officially supported provider adapters can evolve on their own dependency surface.
Current scope:
- Dexter delegated-execution adapter
- pay.sh x402 Solana exact delegated-execution adapter
Install
Install this package alongside the matching @402flow/sdk version.
npm install @402flow/sdk @402flow/sdk-third-party-executorsIf you pin versions explicitly, pin both packages to the same version:
npm install @402flow/sdk@<version> @402flow/sdk-third-party-executors@<version>This adapter package is versioned and supported in lockstep with @402flow/sdk, so keep the two package versions aligned.
Usage
import { AgentPayClient } from '@402flow/sdk';
import { createDexterExecutor } from '@402flow/sdk-third-party-executors/dexter';
// or:
import { createPayShExecutor } from '@402flow/sdk-third-party-executors/pay-sh';Prefer the provider-specific subpath you actually use. That keeps one adapter's dependency chain out of the other adapter's import path.
The main SDK package owns:
- the public executor contract
- delegated authorization and finalization
- outward result normalization to
PaidResponseorFetchPaidError
This package owns:
- provider-specific adapter implementations
- provider-specific proof tests
- source-level examples in this repo under
third-party-executors/examples/
In-Repo Verification
If you are working in this repo, useful commands are:
npm run checknpm run pack:checknpm run example:dexter-delegated-executor -- --helpnpm run example:pay-sh-delegated-executor -- --help
From the SDK root, you can also run npm run check:all to validate both the main SDK package and this package in one pass.
Release Order
When publishing from this repo, publish the main @402flow/sdk package first, then publish @402flow/sdk-third-party-executors after the matching SDK version is available.
