Merge pull request #666 from rowboatlabs/graph2

Improvements to graph and email labeling
This commit is contained in:
arkml 2026-07-05 11:38:31 +05:30 committed by GitHub
commit 6b2120d376
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 922 additions and 94 deletions

View file

@ -279,6 +279,20 @@ const ipcSchemas = {
name: z.string().nullable(),
}),
},
// User explicitly flips a thread's importance verdict. Sticky on the thread
// (re-classification never overrides) and recorded as a correction the
// importance classifier learns from.
'gmail:setImportance': {
req: z.object({
threadId: z.string().min(1),
importance: z.enum(['important', 'other']),
}),
res: z.object({
ok: z.boolean(),
previous: z.enum(['important', 'other']).optional(),
error: z.string().optional(),
}),
},
'gmail:archiveThread': {
req: z.object({ threadId: z.string().min(1) }),
res: z.object({ ok: z.boolean(), error: z.string().optional() }),