cli host - #264
Conversation
…uapi into feat/signing-host-ring-vrf
|
Pushed four small fixes from my review pass. Each is independent; the larger
|
TarikGul
left a comment
There was a problem hiding this comment.
Added some fixes, and one comment for discussion
…g-vrf # Conflicts: # rust/crates/truapi-server/src/runtime/bulletin_rpc.rs
… async-trait-migration
# Conflicts: # Cargo.lock # Makefile # deny.toml # rust/crates/truapi-server/src/runtime.rs
|
pushed the flock fix straight to this branch - 14b8f25 swapped |
|
also pushed a fix for the core storage thing - 9252bc5
ran it through a real CliPlatform to be sure, seeded core-storage.json with now it moves the file to .unreadable before starting empty so nothing gets one thing - the suffix is fixed so a second corruption clobbers the first saved |
|
two more pushed - e41344d and 041a468 accept backoff (frame_server.rs) - the accept loop pairing storage isolation (platform.rs) - now derives a safe name instead of bailing - valid ids unchanged, unusable ones |
TarikGul
left a comment
There was a problem hiding this comment.
🚀 - could use a upgraded title


Depends on #312.
What this adds
truapi-hostis a native CLI for running TrUAPI without a browser or mobile app. It provides both sides of the host flow:Both roles use the real Paseo Next v2 services, including LitePeople identity, the People-chain Statement Store, and Bulletin preimages.
Get started
Build and install the CLI once, then launch the signing host:
The CLI selects or creates an attested account and waits for ring readiness. If an auto-managed account has no free Statement Store slot during pairing, it retries with another account. From the command bar you can:
polkadotapp://pairing link or use/deeplink <link>;/scriptto create or run a TypeScript product script;/sessionto keep separate local host profiles;/helpto discover the remaining commands and shortcuts.Product scripts run with Bun and receive a ready-to-use global
truapiclient. They can import npm dependencies directly; Bun installs missing packages automatically.Run a script directly when an interactive session is unnecessary:
Try it
The crate isn't published yet, so install straight from this branch:
Then launch a signing host against Paseo Next v2:
User experience
End-to-end coverage
The Playground's generated examples are also the headless compatibility suite. The battery discovers and executes all 64 exposed TrUAPI examples.
It is measured independently against both host topologies and writes browser-compatible reports consumed by the compatibility explorer.
Signing host
This command generates
explorer/diagnosis-reports/signing-host-cli.md:Pairing host
Start the product-facing host, then answer its emitted link from a signing host. The pairing-host process generates
explorer/diagnosis-reports/pairing-host-cli.mdwhen the battery completes:The live coverage exercises pairing, permissions, account and legacy signing, transaction construction, chain RPC, Statement Store proofs and subscriptions, resource allocation, push notifications, and Bulletin preimages. Remaining failures are isolated to the Chat and Payment APIs that are not currently implemented by the host.
The PR also includes Rust unit/integration coverage, generated-client parity checks, and Bun tests for diagnosis discovery and reporting.