Initial Tessera backup vault (M0–M2)

Scaffold Rust workspace, React canvas, vault engine, hub API,
providers, agent wormhole path, and Docker compose per SPEC.
This commit is contained in:
Tessera Agent
2026-11-09 09:59:42 +00:00
commit a5ffb2c1b4
54 changed files with 8379 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
use serde::{Deserialize, Serialize};
use uuid::Uuid;
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct VaultConfig {
pub vault_id: Uuid,
pub vault_path: String,
pub created_at: chrono::DateTime<chrono::Utc>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct HubConfig {
pub listen: String,
pub data_dir: String,
pub admin_password_hash: Option<String>,
}
impl Default for HubConfig {
fn default() -> Self {
Self {
listen: "0.0.0.0:8787".into(),
data_dir: "./data".into(),
admin_password_hash: None,
}
}
}
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "snake_case")]
pub enum ProviderKind {
Filesystem,
Postgres,
Command,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct OrbitSpec {
pub id: Uuid,
pub name: String,
pub provider: ProviderKind,
pub provider_config: serde_json::Value,
pub schedule: Option<String>,
pub decay_preset: String,
pub dry_run: bool,
}