Add Dreamer section to settings — Dream Now button, mode selector, lucid task input, last dream status
This commit is contained in:
+12
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user