faster loads

This commit is contained in:
Arjun 2026-05-13 16:22:34 +05:30
parent ec1420fcf5
commit 84562e400a
4 changed files with 183 additions and 62 deletions

View file

@ -126,12 +126,34 @@ const ipcSchemas = {
'gmail:getThread': {
req: z.object({
threadId: z.string().min(1),
expectedHistoryId: z.string().optional(),
}),
res: z.object({
thread: GmailThreadSchema.nullable(),
error: z.string().optional(),
}),
},
'gmail:listRecentThreads': {
req: z.object({
daysAgo: z.number().int().positive().optional(),
}),
res: z.object({
threads: z.array(z.object({
threadId: z.string(),
historyId: z.string(),
snippet: z.string().optional(),
})),
error: z.string().optional(),
}),
},
'gmail:listCachedThreads': {
req: z.object({
daysAgo: z.number().int().positive().optional(),
}),
res: z.object({
threads: z.array(GmailThreadSchema),
}),
},
'mcp:listTools': {
req: z.object({
serverName: z.string(),