feat(host,gui): the command that reaches a company's books is made in one place
The Connect page of P15 unit A4 shows an assistant the exact command it must run to reach a company (`<this program> mcp --book ID`, with --root when a root was named). `connect` already built that command, so it is now one function (`bridge_serve_args`/`command_line`) used by both, and the step `connect` does first (the company's default key exists and its copy is in the token file) is `ensure_key`, which the page offers by itself for assistants it has no button for. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
016f1b2afc
commit
1d1a2a5a88
3 files changed
+64
-40
No files matched your search
@@ -155,8 +155,12 @@ impl ledger_gui::owner::Owner for ViewerOwner {
|
||||
self.server.revoke_token(book, name)
|
||||
}
|
||||
|
||||
fn bridge_command(&self, book: &str) -> Result<String, String> {
|
||||
ledger_host::commands::bridge_command_line(&self.common, book)
|
||||
fn command_line(&self, words: &[&str]) -> Result<String, String> {
|
||||
ledger_host::commands::command_line(&self.common, words)
|
||||
}
|
||||
|
||||
fn make_key(&self, book: &str) -> Result<bool, String> {
|
||||
ledger_host::commands::ensure_key(&self.common, book)
|
||||
}
|
||||
|
||||
fn close_books(&self) -> Result<String, String> {
|
||||
|
||||
Reference in new issue
Block a user