()
| 377 | } |
| 378 | |
| 379 | function hasAssetsDir(): Promise<boolean> { |
| 380 | return jsonRequest<{ exists: boolean }>('/assets/exists').then(r => r.exists) |
| 381 | } |
| 382 | |
| 383 | function readNote(relPath: string): Promise<NoteContent> { |
| 384 | return jsonRequest<NoteContent>(`/notes/read?path=${encodeURIComponent(relPath)}`) |
nothing calls this directly
no test coverage detected