feat: brainstorm sessions, PDF document Q&A, embedding fixes, and UI improvements
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 7s
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 7s
- Add brainstorm feature with collaborative canvas, AI idea generation, live cursors, playback, and export - Add PDF upload/extraction/ingestion pipeline with pgvector document search (RAG) - Add document Q&A overlay with streaming chat and PDF preview - Add note attachments UI with status polling, grid layout, and auto-scroll - Add task extraction AI tool and agent executor improvements - Fix NoteEmbedding missing updatedAt column, re-index 66 notes with 1536-dim embeddings - Fix brainstorm 'Create Note' button: add success toast and redirect to created note - Fix memory echo notification infinite polling - Fix chat route to always include document_search tool - Add brainstorm i18n keys across all 14 locales - Add socket server for real-time brainstorm collaboration - Add hierarchical notebook selector and organize notebook dialog improvements - Add sidebar brainstorm section with session management - Update prisma schema with brainstorm tables, attachments, and document chunks
This commit is contained in:
102
architectural-grid11/src/types.ts
Normal file
102
architectural-grid11/src/types.ts
Normal file
@@ -0,0 +1,102 @@
|
||||
export type NavigationView = 'notebooks' | 'agents' | 'settings' | 'shared' | 'reminders' | 'trash' | 'brainstorm' | 'insights' | 'temporal';
|
||||
export type AITone = 'Professional' | 'Creative' | 'Academic' | 'Casual';
|
||||
export type AITab = 'discussion' | 'actions' | 'resources' | 'explore';
|
||||
export type SettingsTab = 'general' | 'ai' | 'appearance' | 'profile' | 'data' | 'mcp' | 'about';
|
||||
|
||||
export interface Tag {
|
||||
id: string;
|
||||
label: string;
|
||||
type: 'ai' | 'user';
|
||||
}
|
||||
|
||||
export interface Note {
|
||||
id: string;
|
||||
carnetId: string;
|
||||
title: string;
|
||||
content: string;
|
||||
imageUrl: string;
|
||||
date: string;
|
||||
tags: Tag[];
|
||||
isPinned?: boolean;
|
||||
isDeleted?: boolean;
|
||||
deletedAt?: string;
|
||||
embedding?: number[];
|
||||
clusterId?: string;
|
||||
}
|
||||
|
||||
export interface NoteCluster {
|
||||
id: string;
|
||||
name: string;
|
||||
noteIds: string[];
|
||||
centroid? : number[];
|
||||
color: string;
|
||||
}
|
||||
|
||||
export interface BridgeNote {
|
||||
noteId: string;
|
||||
connectedClusterIds: string[];
|
||||
bridgeScore: number;
|
||||
}
|
||||
|
||||
export interface ConnectionSuggestion {
|
||||
id: string;
|
||||
title: string;
|
||||
description: string;
|
||||
reasoning: string;
|
||||
clusterAId: string;
|
||||
clusterBId: string;
|
||||
}
|
||||
|
||||
export interface BrainstormSession {
|
||||
id: string;
|
||||
seedIdea: string;
|
||||
sourceNoteId?: string;
|
||||
contextNoteIds?: string[];
|
||||
exportedNoteId?: string;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
userId: string;
|
||||
}
|
||||
|
||||
export type BrainstormIdeaStatus = 'active' | 'dismissed' | 'converted';
|
||||
|
||||
export interface BrainstormIdea {
|
||||
id: string;
|
||||
sessionId: string;
|
||||
waveNumber: 1 | 2 | 3;
|
||||
title: string;
|
||||
description: string;
|
||||
connectionToSeed: string;
|
||||
noveltyScore: number; // 1-10
|
||||
parentIdeaId?: string;
|
||||
convertedToNoteId?: string;
|
||||
relatedNoteIds?: string[];
|
||||
status: BrainstormIdeaStatus;
|
||||
position?: { x: number; y: number };
|
||||
}
|
||||
|
||||
export interface Carnet {
|
||||
id: string;
|
||||
name: string;
|
||||
initial: string;
|
||||
type: 'Private' | 'Project' | 'Shared';
|
||||
isPrivate?: boolean;
|
||||
parentId?: string;
|
||||
isDeleted?: boolean;
|
||||
deletedAt?: string;
|
||||
}
|
||||
|
||||
export interface NoteAccessLog {
|
||||
noteId: string;
|
||||
accessedAt: string;
|
||||
action: 'view' | 'edit' | 'search_hit';
|
||||
}
|
||||
|
||||
export interface NotePrediction {
|
||||
noteId: string;
|
||||
predictedRelevanceDate: string;
|
||||
confidence: number;
|
||||
reason: string;
|
||||
generatedAt: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user