@402flow/sdk 0.1.0-alpha.24 → 0.1.0-alpha.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +46 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -426,7 +426,28 @@ Responsibility split:
426
426
 
427
427
  If your host app wants to execute through Dexter, pay.sh, or another provider, that integration should install and own the third-party SDK directly. `@402flow/sdk` only owns the executor contract and the governed authorize/finalize flow.
428
428
 
429
- The repo keeps third-party executor proofs in the separate `third-party-executors/` package so the main `@402flow/sdk` install path stays provider-neutral.
429
+ Official supported adapters live in the separate `@402flow/sdk-third-party-executors` package so the main `@402flow/sdk` install path stays provider-neutral.
430
+
431
+ ```bash
432
+ npm install @402flow/sdk @402flow/sdk-third-party-executors
433
+ ```
434
+
435
+ If you pin versions explicitly, pin both packages to the same version:
436
+
437
+ ```bash
438
+ npm install @402flow/sdk@<version> @402flow/sdk-third-party-executors@<version>
439
+ ```
440
+
441
+ The adapter package is versioned and supported in lockstep with `@402flow/sdk`, so keep the two package versions aligned. In this repo, the published adapter package source lives under `third-party-executors/`.
442
+
443
+ Current official adapters:
444
+
445
+ | Adapter | Current scope | Key dependencies |
446
+ | --- | --- | --- |
447
+ | Dexter | Host-owned delegated execution against Dexter's paid request client | `@dexterai/x402` |
448
+ | pay.sh | Host-owned x402 Solana exact delegated execution | `@x402/core`, `@x402/svm`, `@solana/kit` |
449
+
450
+ The pay.sh adapter intentionally does not depend on `@solana/pay` today. The current proof targets pay.sh's x402 Solana exact flow, so challenge parsing, signed payment payload creation, and paid response parsing come from `@x402/core` plus `@x402/svm`, while `@solana/kit` only supplies the signer. `@solana/pay` becomes relevant when the repo adds a separate Solana Pay or MPP-specific adapter path.
430
451
 
431
452
  For a repo-wide verification pass from the SDK root, run:
432
453
 
@@ -449,6 +470,16 @@ npm run example:dexter-delegated-executor -- \
449
470
  '{"topic":"sdk integration rollout","audience":"platform engineers","format":"bullets"}'
450
471
  ```
451
472
 
473
+ For a repo-local host-owned pay.sh x402 example, run:
474
+
475
+ ```bash
476
+ cd third-party-executors
477
+ npm install
478
+ npm run example:pay-sh-delegated-executor -- --help
479
+ ```
480
+
481
+ The pay.sh example expects the standard SDK auth environment plus a local Solana signer path in `PAY_SH_SOLANA_KEYPAIR_PATH`. Run the `--help` form first to see the full required environment and argument contract.
482
+
452
483
  ## Prepared Result Semantics
453
484
 
454
485
  `preparePaidRequest()` separates request checking from paid execution.
@@ -601,6 +632,10 @@ When unset, first-party fixtures default to the self-hosted demo merchant at `ht
601
632
 
602
633
  ## Publish
603
634
 
635
+ Publish the main SDK package first. Publish `@402flow/sdk-third-party-executors` second, after the matching SDK version is available.
636
+
637
+ Main SDK package:
638
+
604
639
  ```bash
605
640
  npm run install:all
606
641
  npm run check:all
@@ -609,3 +644,13 @@ npm publish --access public
609
644
  ```
610
645
 
611
646
  `npm publish` now also runs `npm run check:all` through the root `prepublishOnly` hook, so the repo-wide test pass is enforced before publish even if you skip that step manually.
647
+
648
+ Adapter package:
649
+
650
+ ```bash
651
+ cd third-party-executors
652
+ npm install
653
+ npm run check
654
+ npm run pack:check
655
+ npm publish --access public
656
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@402flow/sdk",
3
- "version": "0.1.0-alpha.24",
3
+ "version": "0.1.0-alpha.26",
4
4
  "description": "Paid HTTP SDK for AI agents with an inspectable prepare/execute flow.",
5
5
  "private": false,
6
6
  "type": "module",