Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
174 commits
Select commit Hold shift + click to select a range
a302550
feat(truapi): add testing API and versioned wiring
pgherveou Jun 30, 2026
4b83619
feat(truapi-platform): add host capability traits
pgherveou Jun 30, 2026
b25162f
feat(truapi-server): add Rust host runtime
pgherveou Jun 30, 2026
1c8334a
feat(truapi-codegen): emit Rust dispatcher, wire table, and host call…
pgherveou Jun 30, 2026
b137a87
feat(host-wasm): add @parity/truapi-host-wasm runtime
pgherveou Jun 30, 2026
4c04a81
chore: docs, CI, tooling, and dotli integration for the Rust core
pgherveou Jun 30, 2026
8e0e71f
feat(truapi): add testing API and versioned wiring
pgherveou Jun 30, 2026
f898de6
fixup! feat: port Rust core runtime
pgherveou Jul 1, 2026
3faed7e
fixup! feat: port Rust core runtime
pgherveou Jul 1, 2026
dea080a
fixup! feat(truapi): add testing API and versioned wiring
pgherveou Jul 1, 2026
3409152
fixup! feat(truapi): add testing API and versioned wiring
pgherveou Jul 1, 2026
6b1a0fc
fixup! feat: port Rust core runtime
pgherveou Jul 2, 2026
0569aaf
fixup! feat(truapi): add testing API and versioned wiring
pgherveou Jul 2, 2026
8c93e99
feat(truapi-platform): add host capability traits
pgherveou Jun 30, 2026
f3f37e9
fixup! feat: port Rust core runtime
pgherveou Jul 2, 2026
97d0b79
fixup! feat(truapi-platform): add host capability traits
pgherveou Jul 2, 2026
52e64b8
fixup! feat: port Rust core runtime
pgherveou Jul 2, 2026
3e6c0a0
fixup! feat: port Rust core runtime
pgherveou Jul 3, 2026
d2e3674
fixup! feat(truapi-platform): add host capability traits
pgherveou Jul 3, 2026
c6f888c
feat(truapi-codegen): emit Rust dispatcher, wire table, and host call…
pgherveou Jun 30, 2026
a37abae
fixup! feat(truapi-codegen): emit Rust dispatcher, wire table, and ho…
pgherveou Jul 2, 2026
99d1b7e
fixup! feat(truapi-codegen): emit Rust dispatcher, wire table, and ho…
pgherveou Jul 2, 2026
1c46353
fixup! feat(truapi-codegen): emit Rust dispatcher, wire table, and ho…
pgherveou Jul 2, 2026
16f10e9
fixup! feat: port Rust core runtime
pgherveou Jul 3, 2026
2c52262
fixup! feat(truapi-codegen): emit Rust dispatcher, wire table, and ho…
pgherveou Jul 3, 2026
8a4bab1
fixup! feat: port Rust core runtime
pgherveou Jul 3, 2026
f1a10bc
fixup! feat: port Rust core runtime
pgherveou Jul 3, 2026
7bd57b8
fixup! feat(truapi-codegen): emit Rust dispatcher, wire table, and ho…
pgherveou Jul 3, 2026
6964df3
feat(truapi-server): add host logic primitives
pgherveou Jul 1, 2026
c8c4595
fixup! feat(truapi-server): add host logic primitives
pgherveou Jul 1, 2026
88cf1a9
fixup! feat(truapi-server): add host logic primitives
pgherveou Jul 2, 2026
2d88bdf
fixup! feat(truapi-server): add host logic primitives
pgherveou Jul 3, 2026
5e938f1
fixup! feat: port Rust core runtime
pgherveou Jul 3, 2026
e1f6790
feat(truapi-server): add wire and chain infrastructure
pgherveou Jul 1, 2026
d959726
fixup! feat(truapi-server): add wire and chain infrastructure
pgherveou Jul 3, 2026
fa642c1
fixup! feat(truapi-server): add host logic primitives
pgherveou Jul 3, 2026
176c6b1
feat(truapi-server): add platform runtime and host bridge
pgherveou Jul 1, 2026
6aa9887
fixup! feat(truapi-server): add platform runtime and host bridge
pgherveou Jul 1, 2026
0f6e16c
fixup! feat(truapi-server): add platform runtime and host bridge
pgherveou Jul 2, 2026
80ff2c7
fixup! feat(truapi-server): add platform runtime and host bridge
pgherveou Jul 2, 2026
c6091f0
fixup! feat(truapi-server): add platform runtime and host bridge
pgherveou Jul 3, 2026
e4d9a0d
fixup! feat(truapi-server): add wire and chain infrastructure
pgherveou Jul 3, 2026
302e84c
feat(host-wasm): add @parity/truapi-host-wasm runtime
pgherveou Jun 30, 2026
63f59f9
fixup! feat(host-wasm): add @parity/truapi-host-wasm runtime
pgherveou Jul 1, 2026
cda98b6
chore: docs, CI, tooling, and dotli integration for the Rust core
pgherveou Jun 30, 2026
232458b
fixup! feat(host-wasm): add @parity/truapi-host-wasm runtime
pgherveou Jul 2, 2026
375c395
fixup! chore: docs, CI, tooling, and dotli integration for the Rust core
pgherveou Jul 1, 2026
7ac562a
fixup! feat(truapi-server): add platform runtime and host bridge
pgherveou Jul 3, 2026
e33df7c
fixup! feat(host-wasm): add @parity/truapi-host-wasm runtime
pgherveou Jul 3, 2026
518d270
fixup! chore: docs, CI, tooling, and dotli integration for the Rust core
pgherveou Jul 2, 2026
124b5b7
fixup! feat: port Rust core runtime
pgherveou Jul 3, 2026
cc4c5e5
Merge origin/main into rust core umbrella
pgherveou Jul 3, 2026
dab5395
Merge origin/main into rust-core/04-codegen
pgherveou Jul 3, 2026
15e1594
Merge branch 'rust-core/04-codegen' into rust-core/04a-server-host-logic
pgherveou Jul 3, 2026
54f0b20
docs(host-logic): link host-spec sections
pgherveou Jul 3, 2026
2da3da5
Merge branch 'rust-core/04a-server-host-logic' into rust-core/04b-ser…
pgherveou Jul 3, 2026
f7b2424
Merge branch 'rust-core/04b-server-wire-chain' into rust-core/03-serv…
pgherveou Jul 3, 2026
ac7992f
docs(runtime): link host-spec sections
pgherveou Jul 3, 2026
cd15f9c
Merge branch 'rust-core/03-server-runtime' into rust-core/05-host-wasm
pgherveou Jul 3, 2026
67d763b
docs(server): fix wasm rustdoc reference
pgherveou Jul 3, 2026
351f6e7
Merge branch 'rust-core/05-host-wasm' into rust-core/06-docs-ci-tooling
pgherveou Jul 3, 2026
e058ba3
chore(dotli): update truapi integration sha
pgherveou Jul 3, 2026
d0eab2a
fixup! feat: port Rust core runtime
pgherveou Jul 3, 2026
cda27e1
fixup! feat(truapi-server): add wire and chain infrastructure
pgherveou Jul 3, 2026
227f47c
Merge branch 'rust-core/04b-server-wire-chain' into rust-core/03-serv…
pgherveou Jul 3, 2026
8bd9085
fixup! feat(truapi-server): add platform runtime and host bridge
pgherveou Jul 3, 2026
51f1e1c
Merge branch 'rust-core/03-server-runtime' into rust-core/05-host-wasm
pgherveou Jul 3, 2026
312be68
Merge branch 'rust-core/05-host-wasm' into rust-core/06-docs-ci-tooling
pgherveou Jul 3, 2026
ba2571a
Merge branch 'main' into rust-core/03-server-runtime
pgherveou Jul 3, 2026
0c2b0f7
firs batch
pgherveou Jul 4, 2026
88c6989
wip
pgherveou Jul 5, 2026
f4468fc
feat(truapi-host-cli): headless pairing + signing hosts for local e2e
pgherveou Jul 5, 2026
7e8eb40
refactor(codegen): derive wasm host callbacks
pgherveou Jul 5, 2026
1d919f0
fix(chain): stop_transaction example broadcasts then cancels by id
pgherveou Jul 5, 2026
8bfbcdc
Merge remote-tracking branch 'origin/worktree-issue-96-rust-core-port…
pgherveou Jul 6, 2026
b804d04
fix(server): enforce runtime permissions
pgherveou Jul 6, 2026
f22b4b5
feat(codegen): generate wasm bridge callbacks
pgherveou Jul 6, 2026
2cb1e97
Merge branch 'rust-core/04-wasm-bridge-codegen' into rust-core/05-hos…
pgherveou Jul 6, 2026
4c04dd3
refactor(host-wasm): use namespaced callbacks
pgherveou Jul 6, 2026
fa859e3
Merge branch 'rust-core/05-host-wasm' into rust-core/06-docs-ci-tooling
pgherveou Jul 6, 2026
23bb0b8
chore(dotli): update host integration
pgherveou Jul 6, 2026
5de806e
fix(server): include runtime crate in workspace
pgherveou Jul 6, 2026
460dc77
Merge branch 'rust-core/03-server-runtime' into rust-core/04-wasm-bri…
pgherveou Jul 6, 2026
e9888aa
Merge branch 'rust-core/04-wasm-bridge-codegen' into rust-core/05-hos…
pgherveou Jul 6, 2026
d820bb0
Merge branch 'rust-core/05-host-wasm' into rust-core/06-docs-ci-tooling
pgherveou Jul 6, 2026
0d304f8
docs(server): describe permission flow
pgherveou Jul 6, 2026
cddce3e
Merge branch 'rust-core/03-server-runtime' into rust-core/04-wasm-bri…
pgherveou Jul 6, 2026
b4ac06f
Merge branch 'rust-core/04-wasm-bridge-codegen' into rust-core/05-hos…
pgherveou Jul 6, 2026
307e08f
Merge branch 'rust-core/05-host-wasm' into rust-core/06-docs-ci-tooling
pgherveou Jul 6, 2026
a253874
fix(codegen): satisfy wasm bridge clippy
pgherveou Jul 6, 2026
a46e8fe
Merge remote-tracking branch 'origin/rust-core/04-wasm-bridge-codegen…
pgherveou Jul 6, 2026
23ebade
Merge remote-tracking branch 'origin/rust-core/05-host-wasm' into rus…
pgherveou Jul 6, 2026
9f62ed0
Merge remote-tracking branch 'origin/rust-core/06-docs-ci-tooling' in…
pgherveou Jul 6, 2026
1735b8a
test(server): wait for auth sync callback
pgherveou Jul 6, 2026
01ddadc
Merge remote-tracking branch 'origin/rust-core/03-server-runtime' int…
pgherveou Jul 6, 2026
487b2d7
Merge remote-tracking branch 'origin/rust-core/04-wasm-bridge-codegen…
pgherveou Jul 6, 2026
a5113fe
Merge remote-tracking branch 'origin/rust-core/05-host-wasm' into rus…
pgherveou Jul 6, 2026
008c375
Merge remote-tracking branch 'origin/rust-core/06-docs-ci-tooling' in…
pgherveou Jul 6, 2026
f421258
test(server): make pairing snapshot test deterministic
pgherveou Jul 6, 2026
2fc5be9
Merge remote-tracking branch 'origin/rust-core/03-server-runtime' int…
pgherveou Jul 6, 2026
c137fef
Merge remote-tracking branch 'origin/rust-core/04-wasm-bridge-codegen…
pgherveou Jul 6, 2026
980d597
Merge remote-tracking branch 'origin/rust-core/05-host-wasm' into rus…
pgherveou Jul 6, 2026
b89869b
Merge remote-tracking branch 'origin/rust-core/06-docs-ci-tooling' in…
pgherveou Jul 6, 2026
7190552
chore(stack): move wasm bridge out of runtime layer
pgherveou Jul 6, 2026
c3c243b
Merge remote-tracking branch 'origin/rust-core/03-server-runtime' int…
pgherveou Jul 6, 2026
71c910f
Merge remote-tracking branch 'origin/rust-core/04-wasm-bridge-codegen…
pgherveou Jul 6, 2026
2b766bb
Merge remote-tracking branch 'origin/rust-core/05-host-wasm' into rus…
pgherveou Jul 6, 2026
60e0491
Merge remote-tracking branch 'origin/rust-core/06-docs-ci-tooling' in…
pgherveou Jul 6, 2026
1889194
feat(truapi-host-cli): pair over the real People-chain statement store
pgherveou Jul 6, 2026
9559cec
fixup! feat: port Rust core runtime
pgherveou Jul 6, 2026
b32df3e
fixup! feat: port Rust core runtime
pgherveou Jul 6, 2026
ae62bc6
fixup! feat: port Rust core runtime
pgherveou Jul 6, 2026
d01d9f5
feat(truapi-host-cli): drive hosts with product scripts + CLI confirm…
pgherveou Jul 6, 2026
6f8d642
refactor(truapi-host-cli): slim the script API + finalize allowance
pgherveou Jul 6, 2026
0cf134c
fixup! feat: port Rust core runtime
pgherveou Jul 6, 2026
588bc09
fix(runtime): gate account access
pgherveou Jul 6, 2026
b059572
fix(runtime): route statement proof signing
pgherveou Jul 6, 2026
abf7cd8
fix(runtime): use opaque SSO ids
pgherveou Jul 6, 2026
8e5d1e0
fix(runtime): harden session and permission flows
pgherveou Jul 7, 2026
153393f
fixup! feat(codegen): generate wasm bridge callbacks
pgherveou Jul 7, 2026
55f9eeb
wip
pgherveou Jul 7, 2026
17181af
fix login
pgherveou Jul 7, 2026
a9402a3
fix(runtime): bridge bulletin allowance signing
pgherveou Jul 8, 2026
f597a84
refactor(platform): derive allowance Debug
pgherveou Jul 8, 2026
ec8b20b
fix(runtime): keep allowance signing in Rust
pgherveou Jul 8, 2026
27f420b
fix: harden login and preimage failures
pgherveou Jul 8, 2026
f6e4fc9
chore: update dotli error formatting
pgherveou Jul 8, 2026
c98684d
fix(runtime): simplify pairing statement outcome
pgherveou Jul 8, 2026
319e867
ci: refresh CI workflow config
pgherveou Jul 8, 2026
1656382
ci: enforce codegen parity checks
pgherveou Jul 8, 2026
d0ef238
ci: refresh workflow pins
pgherveou Jul 8, 2026
31dc8f1
refactor: rename truapi host package
pgherveou Jul 8, 2026
7303f22
Merge remote-tracking branch 'origin/main' into worktree-issue-96-rus…
pgherveou Jul 9, 2026
a7bf860
feat: tighten wasm size profile
pgherveou Jul 9, 2026
4391181
refactor: remove flat host callbacks
pgherveou Jul 9, 2026
920ba81
test(host): cover worker permission auth
pgherveou Jul 9, 2026
8d548ef
feat(server): build, sign, and submit Bulletin preimages in the core
pgherveou Jul 8, 2026
070d7d8
fix(server): harden bulletin inclusion watch (cycle guard + pin release)
pgherveou Jul 8, 2026
e25503b
fix(server): stabilize bulletin preimage submit
pgherveou Jul 9, 2026
e9cf920
feat(server): implement local create_transaction via the shared assem…
pgherveou Jul 9, 2026
8a98b5b
refactor(server): simplify bulletin preimage config
pgherveou Jul 9, 2026
60b43ea
update
pgherveou Jul 9, 2026
e731d5c
first pass
pgherveou Jul 10, 2026
28941c9
2nd pass
pgherveou Jul 11, 2026
f93ad40
chore: update dotli submodule
pgherveou Jul 11, 2026
046215c
Merge branch 'bulletin-preimage-in-core' into headless-host
pgherveou Jul 11, 2026
6441925
fix: allocate headless signer resources
pgherveou Jul 12, 2026
20667cf
chore: ignore local generated artifacts
pgherveou Jul 12, 2026
bf3c7a7
chore: add headless cli install target
pgherveou Jul 12, 2026
4e0df24
fix: tighten headless allowance flows
pgherveou Jul 12, 2026
be2b29c
fix: use release wasm for dotli e2e
pgherveou Jul 12, 2026
496ec18
fix: use subxt rpc for attestation poll
pgherveou Jul 12, 2026
44dd085
fix: address headless host CI checks
pgherveou Jul 12, 2026
0cd8753
update
pgherveou Jul 13, 2026
d7e76f6
feat(host): integrate signing-host ring VRF
pgherveou Jul 21, 2026
af0c281
feat(cli): trace inbound SSO requests
pgherveou Jul 21, 2026
c000e7a
feat(cli): add interactive whoami
pgherveou Jul 21, 2026
e18fe52
feat(cli): add signing-host terminal UI
pgherveou Jul 21, 2026
872c2b9
test(e2e): extend signer pairing timeout
pgherveou Jul 21, 2026
17c7b3c
Merge branch 'verify/pr264-with-pr288'
pgherveou Jul 21, 2026
7671621
fix(cli): expose identity and all commands
pgherveou Jul 21, 2026
ea2cad3
fix(cli): suppress rustls tracing
pgherveou Jul 21, 2026
e8f61eb
fix(cli): retain clipboard ownership
pgherveou Jul 21, 2026
dd3b336
fix(cli): suppress WebSocket protocol logs
pgherveou Jul 21, 2026
59299eb
feat(cli): add persistent host sessions
pgherveou Jul 21, 2026
cf16f3c
fix(cli): restore cached session identity
pgherveou Jul 21, 2026
6268b56
fix(cli): derive account prefix from session
pgherveou Jul 21, 2026
3c34939
feat(cli): edit scratch scripts in terminal
pgherveou Jul 21, 2026
307f0bf
feat(cli)!: remove whoami command
pgherveou Jul 21, 2026
c19c22a
feat(cli): show SSO response outcomes
pgherveou Jul 21, 2026
9285fd1
wip
pgherveou Jul 22, 2026
f428d2c
fix
pgherveou Jul 22, 2026
7ea2c0c
fixes
pgherveou Jul 22, 2026
e34807e
feat(server,cli): auto-renew statement-store allowances
pgherveou Jul 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,127 changes: 1,081 additions & 46 deletions Cargo.lock

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Run `make help` for the list of targets.

.DEFAULT_GOAL := help
.PHONY: help setup build codegen test check clean playground wasm wasm-crypto-test dotli-link dev dev-bootstrap dev-link-check e2e-dotli matrix explorer
.PHONY: help setup build codegen test check clean playground wasm wasm-crypto-test dotli-link dev dev-bootstrap dev-link-check e2e-dotli headless install matrix explorer

TRUAPI_PKG := js/packages/truapi
PLAYGROUND := playground
Expand Down Expand Up @@ -55,6 +55,13 @@ build: ## Build the Rust workspace and the TypeScript client.
cd $(TRUAPI_PKG) && npm run build
cd $(HOST_WASM_PKG) && npm run build

headless: ## Build everything the headless-host e2e needs (truapi-host CLI + TS client).
cargo build -p truapi-host-cli
cd $(TRUAPI_PKG) && npm run build

install: headless ## Install the truapi-host CLI into Cargo's bin dir; use as `make headless install`.
cargo install --path rust/crates/truapi-host-cli --bin truapi-host --locked --force

codegen: ## Regenerate generated TS/Rust artifacts from the Rust crates.
./scripts/codegen.sh
cd $(PLAYGROUND) && rm -rf node_modules/@parity && yarn install
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,13 @@ make wasm # rebuild truapi-server WASM artifacts under js/packages/truapi-ho
CI regenerates the shared bindings before building and testing both npm
packages, so generated client and host callback changes are checked together.

The native `truapi-host` utility can run pairing and signing hosts against the
real SSO transport for local end-to-end work. Its signing-host command provides
a transcript-based terminal UI, slash commands such as `/whoami`, `/deeplink`,
and `/script`, plus a non-interactive `exec` form for automation. See the
[`truapi-host-cli` guide](rust/crates/truapi-host-cli/README.md) for setup,
controls, and examples.

To run the playground locally:

```bash
Expand Down
336 changes: 336 additions & 0 deletions docs/issue-drafts/bulletin-preimage-in-core.md

Large diffs are not rendered by default.

68 changes: 68 additions & 0 deletions explorer/diagnosis-reports/pairing-host-cli.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
## Truapi Pairing Host CLI Diagnosis

| Method | Status | Details |
| --- | --- | --- |
| `Account/connection_status_subscribe` | ✅ | |
| `Account/get_account` | ✅ | |
| `Account/get_account_alias` | ✅ | |
| `Account/create_account_proof` | ✅ | |
| `Account/get_legacy_accounts` | ✅ | |
| `Account/get_user_id` | ✅ | |
| `Account/request_login` | ✅ | |
| `Chain/follow_head_subscribe` | ✅ | |
| `Chain/get_head_header` | ✅ | |
| `Chain/get_head_body` | ✅ | |
| `Chain/get_head_storage` | ✅ | |
| `Chain/call_head` | ✅ | |
| `Chain/unpin_head` | ✅ | |
| `Chain/continue_head` | ✅ | |
| `Chain/stop_head_operation` | ✅ | |
| `Chain/get_spec_genesis_hash` | ✅ | |
| `Chain/get_spec_chain_name` | ✅ | |
| `Chain/get_spec_properties` | ✅ | |
| `Chain/broadcast_transaction` | ✅ | |
| `Chain/stop_transaction` | ✅ | |
| `Chat/create_room` | ❌ | createRoom failed: { "error": { "tag": "HostFailure", "value": { "reason": "unavailable" } } } |
| `Chat/register_bot` | ❌ | registerBot failed: { "error": { "tag": "HostFailure", "value": { "reason": "unavailable" } } } |
| `Chat/list_subscribe` | ❌ | no elements in sequence |
| `Chat/post_message` | ❌ | postMessage failed: { "error": { "tag": "HostFailure", "value": { "reason": "unavailable" } } } |
| `Chat/action_subscribe` | ❌ | no elements in sequence |
| `Chat/custom_message_render_subscribe` | ❌ | no elements in sequence |
| `Coin Payment/create_purse` | ❌ | createPurse failed: { "error": { "tag": "HostFailure", "value": { "reason": "unavailable" } } } |
| `Coin Payment/query_purse` | ❌ | queryPurse failed: { "error": { "tag": "HostFailure", "value": { "reason": "unavailable" } } } |
| `Coin Payment/rebalance_purse` | ❌ | Subscription interrupted |
| `Coin Payment/delete_purse` | ❌ | Subscription interrupted |
| `Coin Payment/create_receivable` | ❌ | createReceivable failed: { "error": { "tag": "HostFailure", "value": { "reason": "unavailable" } } } |
| `Coin Payment/create_cheque` | ❌ | createCheque failed: { "error": { "tag": "HostFailure", "value": { "reason": "unavailable" } } } |
| `Coin Payment/deposit` | ❌ | Subscription interrupted |
| `Coin Payment/refund` | ❌ | Subscription interrupted |
| `Coin Payment/listen_for_payment` | ❌ | Subscription interrupted |
| `Entropy/derive` | ✅ | |
| `Local Storage/read` | ✅ | |
| `Local Storage/write` | ✅ | |
| `Local Storage/clear` | ✅ | |
| `Notifications/send_push_notification` | ✅ | |
| `Notifications/cancel_push_notification` | ✅ | |
| `Payment/balance_subscribe` | ❌ | Subscription interrupted |
| `Payment/top_up` | ❌ | topUp failed: { "error": { "tag": "Domain", "value": { "tag": "V1", "value": { "tag": "Unknown", "value": { "reason": "Payments are not supported in dot.li" } } } } } |
| `Payment/request` | ❌ | topUp failed: { "error": { "tag": "Domain", "value": { "tag": "V1", "value": { "tag": "Unknown", "value": { "reason": "Payments are not supported in dot.li" } } } } } |
| `Payment/status_subscribe` | ❌ | topUp failed: { "error": { "tag": "Domain", "value": { "tag": "V1", "value": { "tag": "Unknown", "value": { "reason": "Payments are not supported in dot.li" } } } } } |
| `Permissions/request_device_permission` | ✅ | |
| `Permissions/request_remote_permission` | ✅ | |
| `Preimage/lookup_subscribe` | ✅ | |
| `Preimage/submit` | ✅ | |
| `Resource Allocation/request` | ✅ | |
| `Signing/create_transaction` | ✅ | |
| `Signing/create_transaction_with_legacy_account` | ✅ | |
| `Signing/sign_raw_with_legacy_account` | ✅ | |
| `Signing/sign_payload_with_legacy_account` | ✅ | |
| `Signing/sign_raw` | ✅ | |
| `Signing/sign_payload` | ✅ | |
| `Statement Store/subscribe` | ✅ | |
| `Statement Store/create_proof` | ✅ | |
| `Statement Store/submit` | ✅ | |
| `Statement Store/create_proof_authorized` | ✅ | |
| `System/handshake` | ✅ | |
| `System/feature_supported` | ✅ | |
| `System/navigate_to` | ✅ | |
| `Theme/subscribe` | ✅ | |
68 changes: 68 additions & 0 deletions explorer/diagnosis-reports/signing-host-cli.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
## Truapi Signing Host CLI Diagnosis

| Method | Status | Details |
| --- | --- | --- |
| `Account/connection_status_subscribe` | ✅ | |
| `Account/get_account` | ✅ | |
| `Account/get_account_alias` | ✅ | |
| `Account/create_account_proof` | ✅ | |
| `Account/get_legacy_accounts` | ✅ | |
| `Account/get_user_id` | ✅ | |
| `Account/request_login` | ✅ | |
| `Chain/follow_head_subscribe` | ✅ | |
| `Chain/get_head_header` | ✅ | |
| `Chain/get_head_body` | ✅ | |
| `Chain/get_head_storage` | ✅ | |
| `Chain/call_head` | ✅ | |
| `Chain/unpin_head` | ✅ | |
| `Chain/continue_head` | ✅ | |
| `Chain/stop_head_operation` | ✅ | |
| `Chain/get_spec_genesis_hash` | ✅ | |
| `Chain/get_spec_chain_name` | ✅ | |
| `Chain/get_spec_properties` | ✅ | |
| `Chain/broadcast_transaction` | ✅ | |
| `Chain/stop_transaction` | ✅ | |
| `Chat/create_room` | ❌ | createRoom failed: { "error": { "tag": "HostFailure", "value": { "reason": "unavailable" } } } |
| `Chat/register_bot` | ❌ | registerBot failed: { "error": { "tag": "HostFailure", "value": { "reason": "unavailable" } } } |
| `Chat/list_subscribe` | ❌ | no elements in sequence |
| `Chat/post_message` | ❌ | postMessage failed: { "error": { "tag": "HostFailure", "value": { "reason": "unavailable" } } } |
| `Chat/action_subscribe` | ❌ | no elements in sequence |
| `Chat/custom_message_render_subscribe` | ❌ | no elements in sequence |
| `Coin Payment/create_purse` | ❌ | createPurse failed: { "error": { "tag": "HostFailure", "value": { "reason": "unavailable" } } } |
| `Coin Payment/query_purse` | ❌ | queryPurse failed: { "error": { "tag": "HostFailure", "value": { "reason": "unavailable" } } } |
| `Coin Payment/rebalance_purse` | ❌ | Subscription interrupted |
| `Coin Payment/delete_purse` | ❌ | Subscription interrupted |
| `Coin Payment/create_receivable` | ❌ | createReceivable failed: { "error": { "tag": "HostFailure", "value": { "reason": "unavailable" } } } |
| `Coin Payment/create_cheque` | ❌ | createCheque failed: { "error": { "tag": "HostFailure", "value": { "reason": "unavailable" } } } |
| `Coin Payment/deposit` | ❌ | Subscription interrupted |
| `Coin Payment/refund` | ❌ | Subscription interrupted |
| `Coin Payment/listen_for_payment` | ❌ | Subscription interrupted |
| `Entropy/derive` | ✅ | |
| `Local Storage/read` | ✅ | |
| `Local Storage/write` | ✅ | |
| `Local Storage/clear` | ✅ | |
| `Notifications/send_push_notification` | ✅ | |
| `Notifications/cancel_push_notification` | ✅ | |
| `Payment/balance_subscribe` | ❌ | Subscription interrupted |
| `Payment/top_up` | ❌ | topUp failed: { "error": { "tag": "Domain", "value": { "tag": "V1", "value": { "tag": "Unknown", "value": { "reason": "Payments are not supported in dot.li" } } } } } |
| `Payment/request` | ❌ | topUp failed: { "error": { "tag": "Domain", "value": { "tag": "V1", "value": { "tag": "Unknown", "value": { "reason": "Payments are not supported in dot.li" } } } } } |
| `Payment/status_subscribe` | ❌ | topUp failed: { "error": { "tag": "Domain", "value": { "tag": "V1", "value": { "tag": "Unknown", "value": { "reason": "Payments are not supported in dot.li" } } } } } |
| `Permissions/request_device_permission` | ✅ | |
| `Permissions/request_remote_permission` | ✅ | |
| `Preimage/lookup_subscribe` | ✅ | |
| `Preimage/submit` | ✅ | |
| `Resource Allocation/request` | ✅ | |
| `Signing/create_transaction` | ✅ | |
| `Signing/create_transaction_with_legacy_account` | ✅ | |
| `Signing/sign_raw_with_legacy_account` | ✅ | |
| `Signing/sign_payload_with_legacy_account` | ✅ | |
| `Signing/sign_raw` | ✅ | |
| `Signing/sign_payload` | ✅ | |
| `Statement Store/subscribe` | ✅ | |
| `Statement Store/create_proof` | ✅ | |
| `Statement Store/submit` | ✅ | |
| `Statement Store/create_proof_authorized` | ✅ | |
| `System/handshake` | ✅ | |
| `System/feature_supported` | ✅ | |
| `System/navigate_to` | ✅ | |
| `Theme/subscribe` | ✅ | |
2 changes: 1 addition & 1 deletion playground/src/components/MethodView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { methodTestId, revealInRail, serviceTestId } from "@/src/lib/rail";
import { services } from "@/src/lib/services";
import type { MethodInfo, ServiceInfo } from "@/src/lib/services";

const CALL_TIMEOUT_MS = 30_000;
const CALL_TIMEOUT_MS = 45_000;

const CARGO_DOC_BASE =
process.env.NEXT_PUBLIC_CARGO_DOC_BASE ??
Expand Down
16 changes: 9 additions & 7 deletions playground/tests/e2e/dotli/helpers/signer-bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ import { setTimeout as sleep } from "node:timers/promises";

const TRANSIENT = new Set([502, 503, 504]);

// Per-attempt request timeout. First-time pair can include user creation and
// People-chain attestation, so give the one-shot handshake room to finish
// instead of aborting and retrying the same QR payload.
// Per-attempt request timeout. First-time pair can include user creation,
// People-chain attestation, and V2 pairing-time device allowance finalization.
// Give the one-shot handshake room to finish instead of aborting and retrying
// the same QR payload.
const PAIR_REQUEST_TIMEOUT_MS = Number(
process.env.SIGNER_BOT_PAIR_TIMEOUT_MS ?? "120000",
process.env.SIGNER_BOT_PAIR_TIMEOUT_MS ?? "240000",
);
const HEALTH_REQUEST_TIMEOUT_MS = 5_000;

Expand Down Expand Up @@ -115,6 +116,7 @@ async function fetchTextRetry(
);
} catch (e) {
last = e;
if ((e as Error).name === "AbortError") throw e;
if (i === attempts) throw e;
console.warn(
`[bot] ${init.method ?? "GET"} ${url} threw "${(e as Error).message}" (attempt ${i}/${attempts})`,
Expand Down Expand Up @@ -160,9 +162,9 @@ export interface PairResult {
*
* The Nova bot's `/api/pair` is one-shot: given a handshake, it
* (a) creates the user if `username` is new, (b) attests the account on
* People chain so it has Statement Store allowance, (c) completes the
* SSO handshake, (d) starts auto-signing future SignRequests for that
* session. No separate provisioning / poll step needed.
* People chain so it has Statement Store allowance, (c) submits V2
* pairing-time device allowance, (d) completes the SSO handshake, and
* (e) starts auto-signing future SignRequests for that session.
*
* `network` should match dot.li's default network (`paseo-next-v2` at time
* of writing). The bot's `/api/networks` endpoint lists supported IDs.
Expand Down
7 changes: 6 additions & 1 deletion rust/crates/truapi-codegen/tests/golden/host-callbacks.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 48 additions & 0 deletions rust/crates/truapi-host-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
[package]
name = "truapi-host-cli"
version = "0.1.0"
edition.workspace = true
description = "Headless TrUAPI hosts: a signing-host companion and a pairing host that pair over the real People-chain statement store, for end-to-end testing without an external signer service"
license = "MIT"

[[bin]]
name = "truapi-host"
path = "src/main.rs"

[lints.rust]
unsafe_code = "forbid"

[dependencies]
truapi = { path = "../truapi" }
truapi-platform = { path = "../truapi-platform" }
truapi-server = { path = "../truapi-server" }
anyhow = "1"
arboard = { version = "3.6.1", default-features = false }
async-trait = "0.1"
bip39 = { version = "2", features = ["rand"] }
clap = { version = "4", features = ["derive", "env"] }
crossterm = { version = "0.29", features = ["event-stream"] }
futures = "0.3"
futures-util = "0.3"
fs2 = "0.4"
hex = "0.4"
parity-scale-codec = { version = "3", features = ["derive"] }
ratatui = { version = "0.30.2", default-features = false, features = ["crossterm", "unstable-rendered-line-info"] }
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
rustls = { version = "0.23", default-features = false, features = ["ring"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
shlex = "1"
subxt-rpcs = { version = "0.50.1", default-features = false, features = ["jsonrpsee", "native"] }
tokio = { version = "1", features = ["rt-multi-thread", "macros", "sync", "io-util", "io-std", "net", "time", "signal", "process"] }
tokio-stream = { version = "0.1", features = ["sync"] }
tokio-tungstenite = { version = "0.24", features = ["connect", "rustls-tls-webpki-roots"] }
# TLS is compiled in for required People/Bulletin host traffic and optional
# `Chain/*` playground methods. Product live-chain routing is opt-in
# (`E2E_LIVE_CHAIN=1`); required host routes remain enabled. See src/chain.rs.
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["fmt", "env-filter"] }
unicode-width = "0.2"

[dev-dependencies]
tempfile = "3"
Loading
Loading