huskies: merge 492_story_remove_filesystem_pipeline_state_and_store_story_content_in_database

This commit is contained in:
dave
2026-04-08 03:03:59 +00:00
parent f43d30bdae
commit 8fd49d563e
27 changed files with 1663 additions and 1295 deletions
+7
View File
@@ -302,6 +302,13 @@ async fn main() -> Result<(), std::io::Error> {
}
}
// Import any existing .huskies/work/ stories into the DB content store.
// This is the migration path: on startup, stories on disk are imported so
// the database becomes the sole source of truth going forward.
if let Some(ref root) = *app_state.project_root.lock().unwrap() {
db::import_from_filesystem(root);
}
// (CRDT state layer is initialised above alongside the legacy pipeline.db.)
let workflow = Arc::new(std::sync::Mutex::new(WorkflowState::default()));