import type { DatabaseMigration } from "./migration"

export const migrations = (
  await Promise.all([
    import("./migration/20260127222353_familiar_lady_ursula"),
    import("./migration/20260211171708_add_project_commands"),
    import("./migration/20260213144116_wakeful_the_professor"),
    import("./migration/20260225215848_workspace"),
    import("./migration/20260227213759_add_session_workspace_id"),
    import("./migration/20260228203230_blue_harpoon"),
    import("./migration/20260303231226_add_workspace_fields"),
    import("./migration/20260309230000_move_org_to_state"),
    import("./migration/20260312043431_session_message_cursor"),
    import("./migration/20260323234822_events"),
    import("./migration/20260410174513_workspace-name"),
    import("./migration/20260413175956_chief_energizer"),
    import("./migration/20260423070820_add_icon_url_override"),
    import("./migration/20260427172553_slow_nightmare"),
    import("./migration/20260428004200_add_session_path"),
    import("./migration/20260501142318_next_venus"),
    import("./migration/20260504145000_add_sync_owner"),
    import("./migration/20260507164347_add_workspace_time"),
    import("./migration/20260510033149_session_usage"),
    import("./migration/20260511000411_data_migration_state"),
    import("./migration/20260511173437_session-metadata"),
    import("./migration/20260601010001_normalize_storage_paths"),
    import("./migration/20260601202201_amazing_prowler"),
    import("./migration/20260602002951_lowly_union_jack"),
    import("./migration/20260602182828_add_project_directories"),
    import("./migration/20260603001617_session_message_projection_indexes"),
    import("./migration/20260603040000_session_message_projection_order"),
    import("./migration/20260603141458_session_input_inbox"),
    import("./migration/20260603160727_jittery_ezekiel_stane"),
    import("./migration/20260604172448_event_sourced_session_input"),
    import("./migration/20260605003541_add_session_context_snapshot"),
    import("./migration/20260605042240_add_context_epoch_agent"),
    import("./migration/20260611035744_credential"),
    import("./migration/20260611192811_lush_chimera"),
    import("./migration/20260612174303_project_dir_strategy"),
    import("./migration/20260622142730_simplify_session_context_epoch"),
    import("./migration/20260622170816_reset_v2_session_state"),
    import("./migration/20260622202450_simplify_session_input"),
    import("./migration/20260701104807_add_session_system_prompt_override"),
    import("./migration/20260701131350_add_session_result"),
    import("./migration/20260702210000_add_session_type_priority"),
    import("./migration/20260702230000_add_permission_mode_and_saved_effect"),
    import("./migration/20260703120000_add_kb_fact"),
    import("./migration/20260703140000_add_session_responder"),
    import("./migration/20260705120000_add_catalog"),
    import("./migration/20260706220000_add_session_tag"),
    import("./migration/20260708000000_drop_legacy_message_part"),
    import("./migration/20260709120000_add_jh_plan"),
    import("./migration/20260714090000_add_session_strict"),
    import("./migration/20260714110806_add_session_features"),
    import("./migration/20260714140121_add_agent_config"),
    import("./migration/20260714141710_add_command_config"),
    import("./migration/20260714213000_add_skill_reference_config"),
    import("./migration/20260715090000_add_plugin_config"),
    import("./migration/20260715100000_add_runtime_setting"),
    import("./migration/20260717120000_permission_origin"),
    import("./migration/20260717130000_workspace_origin"),
    import("./migration/20260717150000_drop_project_entity"),
    import("./migration/20260717160000_add_bash_job"),
    import("./migration/20260718150000_drop_kb_fact"),
    import("./migration/20260720120000_drop_kb_vec_leftovers"),
    import("./migration/20260721190000_add_instance_identity"),
    import("./migration/20260722135926_add_messenger"),
    import("./migration/20260724120000_add_calendar"),
    import("./migration/20260725120000_add_calendar_permission"),
    import("./migration/20260725140000_add_web_host_budget"),
    import("./migration/20260725160000_add_session_thinking_budget"),
    import("./migration/20260725170000_add_session_edit_switches"),
  ])
).map((module) => module.default) satisfies DatabaseMigration.Migration[]
