feat: add local audio intake bootstrap#57
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: ⛔ Files ignored due to path filters (5)
📒 Files selected for processing (20)
Cache: Disabled due to Reviews > Disable Cache setting Disabled knowledge base sources:
📝 WalkthroughSummary by CodeRabbit릴리스 노트
Walkthrough데스크탑(Tauri)에서 파일 대화상자를 통해 사용자가 선택한 오디오 파일을 Rust에서 검증·정규화하고, 앱 소유의 프로젝트/캐시/임시 루트를 생성·저장한 ProjectBootstrapSummary를 반환하여 React가 projectId 기반의 local_audio 요청을 구성하고 Python 분석 엔진이 해당 요청을 검증·처리하도록 연동합니다. Changes
Sequence Diagram(s)sequenceDiagram
participant User as User
participant ReactUI as React UI
participant AnalysisLib as analysis.ts
participant TauriInvoke as Tauri Invoke
participant RustHandler as Tauri/Rust
participant AppState as App State (Tauri)
participant PythonEngine as Python Engine
User->>ReactUI: 클릭 "로컬 오디오 선택"
ReactUI->>AnalysisLib: selectLocalAudioSource()
AnalysisLib->>TauriInvoke: invoke("select_local_audio_source")
TauriInvoke->>RustHandler: open file dialog & validate
RustHandler->>RustHandler: 검사/정규화 (확장자, 크기)
RustHandler->>RustHandler: app-owned project/cache/temp 루트 생성
RustHandler->>AppState: store ProjectBootstrapSummary (projectId 등)
AppState-->>RustHandler: 저장 완료
RustHandler-->>TauriInvoke: return bootstrap summary
TauriInvoke-->>AnalysisLib: bootstrap 응답
AnalysisLib-->>ReactUI: { ok: true, bootstrap } 또는 { ok: false, error }
User->>ReactUI: 클릭 "분석 시작"
ReactUI->>PythonEngine: start_analysis_job(request with sourceKind: "local_audio", projectId)
PythonEngine->>PythonEngine: validate_analysis_job_request (local_audio 경로)
PythonEngine-->>ReactUI: 작업 시작(또는 오류)
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Poem
✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
✅ Actions performedReview triggered.
|
Summary
local_audiorequests use a trustedprojectIdhandoff while Rust rehydrates the stored source metadata before engine executionrfdadmission rationale for the native file pickerVerification
./scripts/harness/quickcheck.shcargo check --manifest-path apps/desktop/src-tauri/Cargo.toml