Expand description
Crash-recoverable inference payments over a provider-neutral wallet.
The wallet itself lives behind mesh_llm_wallet::provider::WalletProvider
and is supplied by a plugin through provisioning::WalletFactory. This
crate owns everything the host must stay authoritative for: the ledger,
pricing, budgets, payment intents and settlement orchestration.
Modules§
- control
- Local operator API. Never dispatch commands received from a mesh peer.
- intent
- Profile-derived payment intent. The type lives in
mesh-llm-payments-types. - invoice
- Wallet types re-exported under their historical paths.
- ledger
- SQLite owns approvals and reservations across processes and restarts.
- lifetimes
- Host-owned invoice lifetimes and payment wait deadlines.
- operations
- Coarse per-request operations behind the
payments.v1contract. The host calls these through the plugin; they compose the ledger and wallet so no fine-grained ledger call crosses the capability boundary. - pricing
- provisioning
- Lazy wallet construction and persisted-wallet discovery belong to adapters, not routing or settlement. Discovery must never provision or contact a wallet.
- service
- serving
- Seller-side coarse operations behind
payments.v1. The host keeps the transport, the decode gate and delivery; these own every ledger and wallet step of serving a paid request. - wallet
- Wallet types re-exported under their historical paths.
- wire
- Bounded payment framing inside an authenticated mesh QUIC stream.