import { SaeeolSessions } from "@/sessions/sessions"
import * as Log from "@saeeol/core/util/log"

const log = Log.create({ service: "saeeol-bootstrap" })

export namespace SaeeolBootstrap {
  export async function init() {
    await SaeeolSessions.init()
    void import("@/saeeol/indexing")
      .then((mod) => mod.SaeeolIndexing.init())
      .catch((err) => log.warn("indexing bootstrap failed", { err }))
  }
}
