Watch
0
0
Fork
You've already forked hyperhive
0

hive-agent: drop the legacy todos/reminders db migration

This commit is contained in:
damocles 2026-11-22 16:59:24 +01:00
commit 44b248bf6d

View file

@ -50,29 +50,11 @@ pub fn harness_dir() -> PathBuf {
/// here from the now-removed ask/answer mechanism — nothing opens or
/// writes it, and any rows in it are harmless leftovers, not a store to
/// migrate or clean up.
///
/// A one-time boot migration (`db_migrate::run`) folds the older
/// `hyperhive-todos.sqlite` / `hyperhive-reminders.sqlite` files into this
/// path on first boot after an upgrade.
#[must_use]
pub fn state_db() -> PathBuf {
harness_dir().join("hyperhive-state.sqlite")
}
/// Legacy pre-consolidation todos db path, consulted only by
/// [`crate::db_migrate`] on the first boot after the upgrade.
#[must_use]
pub fn legacy_todos_db() -> PathBuf {
harness_dir().join("hyperhive-todos.sqlite")
}
/// Legacy pre-consolidation reminders db path, consulted only by
/// [`crate::db_migrate`] on the first boot after the upgrade.
#[must_use]
pub fn legacy_reminders_db() -> PathBuf {
harness_dir().join("hyperhive-reminders.sqlite")
}
/// Per-turn config dir for the regenerated claude-{mcp-config,settings,
/// system-prompt} files the harness drops before each turn. Set by
/// systemd via `RuntimeDirectory = "hive-config"`: a per-service runtime