package com.optix.android

import android.app.Application
import com.optix.android.ai.MockBrain
import dagger.hilt.android.HiltAndroidApp
import timber.log.Timber
import javax.inject.Inject

@HiltAndroidApp
class OptixApplication : Application() {

    @Inject lateinit var mockBrain: MockBrain

    override fun onCreate() {
        super.onCreate()
        if (BuildConfig.DEBUG) {
            Timber.plant(Timber.DebugTree())
        }
        // Validate MockBrain tool name references against the live registry at startup
        mockBrain.validateToolNames()
    }
}
