Phase 1 foundation: Tauri shell, Python sidecar, SQLite database
Tauri v2 + Svelte + TypeScript frontend:
- App shell with workspace layout (waveform, transcript, speakers, AI chat)
- Placeholder components for all major UI areas
- Typed stores (project, transcript, playback, AI)
- TypeScript interfaces matching the database schema
- Tauri bridge service with typed invoke wrappers
- svelte-check passes with 0 errors
Rust backend:
- Tauri v2 app entry point with command registration
- SQLite database layer (rusqlite with bundled SQLite)
- Full schema: projects, media_files, speakers, segments, words,
ai_outputs, annotations (with indexes)
- Model structs with serde serialization
- CRUD queries for projects, speakers, segments, words
- Segment text editing preserves original text
- Schema versioning for future migrations
- 6 tests passing
- Command stubs for project, transcribe, export, AI, settings, system
- App state management
Python sidecar:
- JSON-line IPC protocol (stdin/stdout)
- Message types: IPCMessage, progress, error, ready
- Handler registry with routing and error handling
- Ping/pong handler for connectivity testing
- Service stubs: transcribe, diarize, pipeline, AI, export
- Provider stubs: local (llama-server), OpenAI, Anthropic, LiteLLM
- Hardware detection stubs
- 14 tests passing, ruff clean
Also adds:
- Testing strategy document (docs/TESTING.md)
- Validation script (scripts/validate.sh)
- Updated .gitignore for Svelte, Rust, Python artifacts
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
16
src/lib/types/ipc.ts
Normal file
16
src/lib/types/ipc.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
export interface IPCMessage {
|
||||
id: string;
|
||||
type: string;
|
||||
payload: Record<string, unknown>;
|
||||
}
|
||||
|
||||
export interface ProgressPayload {
|
||||
percent: number;
|
||||
stage: string;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface ErrorPayload {
|
||||
code: string;
|
||||
message: string;
|
||||
}
|
||||
21
src/lib/types/project.ts
Normal file
21
src/lib/types/project.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
export interface Project {
|
||||
id: string;
|
||||
name: string;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
settings: string | null;
|
||||
status: string;
|
||||
}
|
||||
|
||||
export interface MediaFile {
|
||||
id: string;
|
||||
project_id: string;
|
||||
file_path: string;
|
||||
file_hash: string | null;
|
||||
duration_ms: number | null;
|
||||
sample_rate: number | null;
|
||||
channels: number | null;
|
||||
format: string | null;
|
||||
file_size: number | null;
|
||||
created_at: string;
|
||||
}
|
||||
33
src/lib/types/transcript.ts
Normal file
33
src/lib/types/transcript.ts
Normal file
@@ -0,0 +1,33 @@
|
||||
export interface Word {
|
||||
id: string;
|
||||
segment_id: string;
|
||||
word: string;
|
||||
start_ms: number;
|
||||
end_ms: number;
|
||||
confidence: number | null;
|
||||
word_index: number;
|
||||
}
|
||||
|
||||
export interface Segment {
|
||||
id: string;
|
||||
project_id: string;
|
||||
media_file_id: string;
|
||||
speaker_id: string | null;
|
||||
start_ms: number;
|
||||
end_ms: number;
|
||||
text: string;
|
||||
original_text: string | null;
|
||||
confidence: number | null;
|
||||
is_edited: boolean;
|
||||
edited_at: string | null;
|
||||
segment_index: number;
|
||||
words: Word[];
|
||||
}
|
||||
|
||||
export interface Speaker {
|
||||
id: string;
|
||||
project_id: string;
|
||||
label: string;
|
||||
display_name: string | null;
|
||||
color: string | null;
|
||||
}
|
||||
Reference in New Issue
Block a user