// filepath: src/stores/analysis.ts import { defineStore } from 'pinia' import { ref } from 'vue' export const useAnalysisStore = defineStore('analysis', () => { const url = ref('') const loading = ref(false) const error = ref('') const metadata = ref(null) // New state for mix detection const isMix = ref(false) const scanMix = ref(false) const options = ref({ is_audio_only: false, quality: 'best', output_path: '' }) function reset() { url.value = '' loading.value = false error.value = '' metadata.value = null isMix.value = false scanMix.value = false } return { url, loading, error, metadata, options, isMix, scanMix, reset } })