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

File diff suppressed because it is too large Load diff

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)
}

View file

@ -2,6 +2,7 @@
mod app;
mod buffer;
pub mod deploy;
mod file;
pub mod git;
pub mod git_blame;
@ -82,6 +83,7 @@ pub fn register_builtins(registry: &mut Registry) -> Result<(), EngineError> {
git_stash::register(registry)?;
git_chunks::register(registry)?;
git_ignore::register(registry)?;
deploy::register(registry)?;
Ok(())
}
@ -92,6 +94,7 @@ pub fn register_builtins(registry: &mut Registry) -> Result<(), EngineError> {
pub(crate) const BUILTIN_COMMAND_IDS: &[&[&str]] = &[
app::COMMAND_IDS,
buffer::COMMAND_IDS,
deploy::COMMAND_IDS,
file::COMMAND_IDS,
git::COMMAND_IDS,
git_blame::COMMAND_IDS,