D1: engine deploy.* commands, deployProgress/deployLog events, upload on save

Servers per project in the config dir (no secrets), secrets in the
keychain via a swappable SecretStore, test connection with the host-key
and missing-secret questions as values, trust host key, upload,
download, cancel, log. One job at a time; uploads on save queue.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
danny 2026-11-02 19:23:36 +01:00
parent 0644b044f2
commit f3c9ef9ce3
8 changed files with 1637 additions and 0 deletions

View file

@ -103,10 +103,12 @@ fn save(state: &mut State, command: &str, id: BufferId) -> Result<u64, EngineErr
let was_dirty = open.dirty();
open.saved_version = open.version;
let version = open.version;
let path = open.path.clone();
journal::forget(state, id);
if was_dirty {
state.emit(Event::DirtyChanged { id, dirty: false });
}
super::deploy::saved(state, &path.to_string_lossy().replace('\\', "/"));
Ok(version)
}