pub fn write_import_bundle( dir: &Path, bundle: &Value, new_id: &str, ) -> Result<(), String>
把 bundle 重建为目标目录的文件结构(session.id 替换为 new_id,标记 importedAt)。