use calendar data to correlate meetings

This commit is contained in:
Arjun 2026-03-18 16:11:37 +05:30
parent 434f88f194
commit 6f988e9cb5
4 changed files with 83 additions and 8 deletions

View file

@ -703,7 +703,7 @@ export function setupIpcHandlers() {
return { success: false, error: 'Unknown format' };
},
'meeting:summarize': async (_event, args) => {
const notes = await summarizeMeeting(args.transcript);
const notes = await summarizeMeeting(args.transcript, args.meetingStartTime);
return { notes };
},
'inline-task:classifySchedule': async (_event, args) => {

View file

@ -3362,8 +3362,10 @@ function App() {
const result = await window.ipc.invoke('workspace:readFile', { path: notePath, encoding: 'utf8' })
const fileContent = result.data
if (fileContent && fileContent.trim()) {
// Call LLM to summarize the transcript
const { notes } = await window.ipc.invoke('meeting:summarize', { transcript: fileContent })
// Extract meeting start time from frontmatter for calendar matching
const dateMatch = fileContent.match(/^date:\s*"(.+)"$/m)
const meetingStartTime = dateMatch?.[1]
const { notes } = await window.ipc.invoke('meeting:summarize', { transcript: fileContent, meetingStartTime })
if (notes) {
// Prepend meeting notes below the title but above the transcript
const { raw: fm, body: transcriptBody } = splitFrontmatter(fileContent)