Add Dreamer section to settings — Dream Now button, mode selector, lucid task input, last dream status

This commit is contained in:
2026-04-26 21:20:58 -04:00
parent bff439b1e9
commit 6cd91b2f4b
2 changed files with 68 additions and 1 deletions
+12
View File
@@ -32,6 +32,12 @@ export const api = {
request<{ saved: boolean }>('/memory', { method: 'POST', body: JSON.stringify({ content }) }),
getStatus: () => request<Status>('/status'),
reindex: () => request<{ started: boolean }>('/reindex', { method: 'POST' }),
getDreamerStatus: () => request<DreamerStatus>('/dreamer/status'),
runDreamer: (mode: string, task?: string) =>
request<{ started: boolean; mode: string }>('/dreamer/run', {
method: 'POST',
body: JSON.stringify({ mode, task }),
}),
transcribe: async (audio: Blob): Promise<{ text: string }> => {
const form = new FormData();
form.append('audio', audio, 'recording.webm');
@@ -86,6 +92,12 @@ export interface ChatResponse {
sources: string[];
conversation_id: string;
}
export interface DreamerStatus {
last_dream: string;
last_mode: string;
last_file: string;
}
export interface Status {
aaron_ai: string;
watcher: string;