sdk: expose a live wallet-child probe over UniFFI (wallet_child_refresh) #132

Merged
sirius merged 3 commits from wt/t_0a355a62 into main 2026-09-20 04:32:39 +00:00

2026-09-20

Merge pull request 'docs: rewrite README + docs to match main (audit in PR body)' (#133) from onionwire/t_96d3bd1a-docs-audit-the-onionwire-source-against into wt/t_0a355a62
All checks were successful
android-ci / android (pull_request) Successful in 12m13s
ci / test (pull_request) Successful in 5m16s
ci / sdk (pull_request) Successful in 1m6s
ci / fuzz (pull_request) Successful in 4m54s
Reviewed-on: #133
2026-09-20 04:30:46 +00:00
agent
docs: rewrite README and living docs to match the tree
Audit the operator docs against the source: pin downloads to v0.14.0,
document the real CLI/flags/env/F-keys (including F9, no F7), keep 18081
as the app-owned daemon port, describe the local chat outbox vs a
server-side one, and stop implying SECURITY_AUDIT.md is a third-party
audit. Spike reports stay; they get a status header only.
2026-09-20 00:31:07 -04:00
rust-dev
sdk: expose wallet_child_refresh — a live wallet-child probe over UniFFI
All checks were successful
ci / test (pull_request) Successful in 5m16s
ci / sdk (pull_request) Successful in 1m17s
android-ci / android (pull_request) Successful in 13m18s
ci / fuzz (pull_request) Successful in 18m36s
Wire::wallet_status() is the cheap cached read (no dial); only
Node::wallet_child_refresh() writes state/height/target_height, and it was
reachable over UniFFI from exactly one place — start_wallet_child. An Android
refresh loop polling wallet_status() therefore shows a frozen sync line.

Add the additive export, reusing the existing child_status mapper so the record
is the same shape as wallet_status(), and the core probe as the only probe
path. Docs: one sentence in docs/WALLET.md, which enumerates the SDK
wallet-child surface.

Tests: SDK-level (a Wire cannot be built offline in this crate — open_wire
bootstraps Arti): the unprobed child maps to the same 'off' record both reads
report, pinned with an exhaustive record literal; and the probe on a stopped
handle is a typed WireError.Stopped.
2026-09-20 00:20:32 -04:00