docs: update AGENTS.md to 15 Tauri commands
This commit is contained in:
@@ -19,11 +19,13 @@ cargo tauri build # Full native app build (outputs to src-tauri/target/releas
|
||||
- **All Core API calls go through Rust Tauri commands** — frontend NEVER contacts `localhost:3002` directly.
|
||||
- **Rust proxies to external API**: `CORE_API = http://localhost:3002` (hardcoded in `src-tauri/src/main.rs`). This service must be running for the app to function.
|
||||
- **API key**: Hardcoded in `src-tauri/src/main.rs` only (`API_KEY` constant).
|
||||
- **Rust entrypoint**: `src-tauri/src/main.rs` — 10 Tauri commands:
|
||||
- **Rust entrypoint**: `src-tauri/src/main.rs` — 15 Tauri commands:
|
||||
- `search_llm_smart`, `get_files`, `get_people`, `get_faces`, `get_traces` (data APIs)
|
||||
- `get_thumbnail`, `get_identity_profile` (return base64 image strings)
|
||||
- `get_video_stream` (returns base64 video string)
|
||||
- `get_video_stream` (returns `file://` URL to temp MP4)
|
||||
- `update_identity_name`, `delete_identity` (identity management)
|
||||
- `search_identities`, `get_face_candidates` (search)
|
||||
- `merge_identities`, `bind_face`, `unbind_face` (identity ops)
|
||||
- **Frontend routes**: `/search`, `/library`, `/people` (redirect `/` → `/search`)
|
||||
- **Frontend entry**: `src/main.ts` → `src/App.vue` → `src/router/index.ts`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user