feat: standardize UI theme, fix dark mode consistency, and implement editorial tags
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 1m24s
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 1m24s
This commit is contained in:
@@ -20,7 +20,9 @@ toolRegistry.register({
|
||||
limit: z.number().optional().describe('Max results to return (default 5)').default(5),
|
||||
notebookId: z.string().optional().describe('Optional notebook ID to restrict search to a specific notebook'),
|
||||
}),
|
||||
execute: async ({ query, limit = 5, notebookId }) => {
|
||||
execute: async ({ query, limit = 5, notebookId: explicitNotebookId }) => {
|
||||
// If no notebookId passed explicitly, fall back to the chat scope from context
|
||||
const notebookId = explicitNotebookId || ctx.notebookId
|
||||
try {
|
||||
// Keyword fallback search using Prisma
|
||||
const keywords = query.toLowerCase().split(/\s+/).filter(w => w.length > 2)
|
||||
|
||||
@@ -16,6 +16,7 @@ export interface Notebook {
|
||||
parentId: string | null;
|
||||
trashedAt?: Date | null;
|
||||
userId: string;
|
||||
isPrivate?: boolean;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
notes?: Note[];
|
||||
|
||||
Reference in New Issue
Block a user