feat(host): web assistants per company, joined to the remote door (P15 B3)

WebAssistants is the switch per company: turning one on makes the link's address,
starts the books server's remote door at it (the door listens on 127.0.0.1 and
gives the app its per-start secret), offers the company, and hands the link the
door; turning off withdraws the company and, with none left, closes the line
first and then the door. A new address stops the door, makes a new label, and
restarts the door at the new issuer, so every token made at the old address is
refused. The switches are kept in a private file and put back for the companies
that are open at the next start. Nothing is half-on after a failed step.

The line runs in the window's process (the viewer owner holds it), so it ends
with the window and never outlives the books it offers. THIRD-PARTY-NOTICES.txt
is regenerated with scripts/notices.sh: the app now links instant-acme, the relay
crate's client side and hickory-proto.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Fable 5.2 committed 2026-11-21 13:40:00 -07:00
1 parent 0f9420aa30
commit 861ed57d82
8 files changed
+2085 -26

No files matched your search

Generated
+14
View File
@@ -4006,13 +4006,19 @@ name = "ledger-cli"
version = "0.1.0"
dependencies = [
"base64 0.22.1",
"bytes",
"chrono",
"futures",
"http-body-util",
"hyper",
"hyper-util",
"jsonschema",
"ledger-config",
"ledger-core",
"ledger-gui",
"ledger-host",
"ledger-import",
"ledger-link",
"ledger-mcp",
"ledger-package",
"ledger-store",
@@ -4020,14 +4026,20 @@ dependencies = [
"libc",
"minisign",
"proptest",
"rcgen",
"relay",
"reqwest",
"rmcp",
"rusqlite",
"rust_decimal",
"rustls",
"serde_json",
"sha2 0.10.9",
"tempfile",
"time",
"tokio",
"tokio-rustls",
"zeroize",
"zip",
]
@@ -4085,6 +4097,7 @@ dependencies = [
"ledger-config",
"ledger-core",
"ledger-import",
"ledger-link",
"ledger-package",
"ledger-store",
"ledger-vault",
@@ -4105,6 +4118,7 @@ version = "0.1.0"
dependencies = [
"base64 0.22.1",
"ledger-core",
"ledger-link",
"ledger-mcp",
"ledger-store",
"libc",