Repository navigation
0.8.0-beta.2
Pre-releaseA second pre-release for beta testers, on npm under the beta tag (npm install -g @wasit-dev/cli@beta); latest stays at 0.7.0. All three packages, versioned together. New: wasit init, which writes the config for a route from one unpaid request; MPP charge and channel checks in wasit run and the Action; a single-use route reported as "resource consumed"; and a capped mainnet opt-in for x402 on Stellar, in beta. Payments are made on test networks by default, and every payment Wasit signs is held to $1.00, to $5.00 a run, and to a plan read before the run. The guides on usewasit.dev still describe 0.7.0; this entry, the package READMEs and wasit run --help describe the beta.
Results can change on upgrade.
- The GitHub Action runs only on
pull_request,push,schedule,workflow_dispatchandmerge_group. Any other event stops the job with exit 2 before anything runs, because on those events a workflow can hand a pull request's code the base repository's token. - Every step of the Action sets
BASH_ENV,ENV,LD_PRELOAD,LD_LIBRARY_PATHandLD_AUDITempty, as it already didNODE_OPTIONS. A service Wasit starts no longer inherits them from the workflow's env; set what it needs inservice.start. - On Stellar the payer's key signs only the authorization Wasit checked: one
transferof the checked amount to the checked payee, on the checked asset and the run's network. A payment whose built transaction carries anything else is discarded unsent, and the check isERROR (setup)with nothing signed. - A Stellar payment run refuses an
http://RPC before anything is sent. MPP-01reads a charge challenge'samountas base units only (digits and nothing else); anything else is a malformed challenge (FAIL), as before for a decimal amount.- A single-use route (409 where a new 402 was expected, after
X402-06was served) now gives SKIP "resource consumed" forX402-07,09,10and11, notERROR (harness).X402-08still runs.
Added: wasit init. Writes a wasit.config.json for one paid route of a service you operate. It sends the route one unpaid request, tells x402 from MPP from the 402, and pins the network, the receiving address and the asset. It pays and signs nothing, writes test networks only, never writes a header or a secret, adds to an existing config without overwriting it, and can run again on a route the config already has. With --setup-keys, or a yes at a terminal, it also sets up a Stellar testnet payer key in .env (after checking git will not commit .env), funds it with Friendbot and swaps 10 test XLM for test USDC.
Added: MPP in wasit run and the Action. On stellar:testnet: MPP-01 (charge) with MPP_PAYER_SECRET, held to the same $1.00 a payment and the same $5.00 run budget as x402; MPP-10, 11, 12 and 14 (channel) with COMMITMENT_SECRET_HEX, for the channel in the config only. MPP-13, which closes a channel for good, is never run by wasit run. MPP never pays on mainnet.
Added: the mainnet opt-in (beta, x402 only). wasit run --mainnet, the Action's mainnet: true (only on workflow_dispatch, on a GitHub-hosted runner) and the MCP server's start-up opt-in pay real USDC on stellar:pubnet, and only when every rule holds: the environment is yours (operatedByMe: true), pins mainnet USDC and one payee, the key is in WASIT_MAINNET_PAYER_SECRET only, the payer holds at most $10.00, and no other mainnet run holds the lock. Each payment is at most $1.00 and a run at most $5.00. The first line of the output says MAINNET RUN, each signature is written to a run ledger before the key signs, and the run ends by comparing the payer's balances on public Horizon with that ledger (consistent, explained, or inconsistent). A paying run that is not allowed (a pull request, another CI) is refused, never turned into the read-only tier. The opt-in was validated on our own service on 2026-11-23: job 03 of the board links each transaction on Stellar Expert. Nothing else has been run on mainnet, and the opt-in is a beta. Testnet stays the default.
Fixed.
- On Stellar testnet the x402 client builds the payment through the run's RPC, not always
soroban-testnet.stellar.org. - A wrapped line in the coloured output of
wasit testcould start with::name::or##[name], which a GitHub job log reads as a workflow command. Wrapped lines are now broken the way the start of a text already was. wasit ci-reportkeeps a settlement reference from a report file only on a PASS.- A dry run of a run with only MPP channel endpoints no longer says it plans x402 payment checks.
Removed. @wasit-dev/core no longer exports refuseMainnetSwitch, mainnetStartupSwitches, MainnetOptInRefusedError, MAINNET_OPT_IN_ABSENT and the type MainnetSwitch (the beta.1 switches that only refused). A front end opens a mainnet run with openMainnetOptIn.
Checked. On the release build, ./scripts/run-all.sh --full ran on Stellar, Base Sepolia (exact and Permit2), Ethereum Sepolia and Solana devnet (x402), MPP charge and MPP channel, all conformant; the settlements were read back from each chain. Offline: cli 484, core 1230, server 63, Action 210 tests; a clean install from the tarballs reports no advisory. Not run: Windows; the full changelog is in CHANGELOG.md.
Packages: @wasit-dev/cli, @wasit-dev/core, @wasit-dev/server.