mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-16 18:25:17 +02:00
use calendar data to correlate meetings
This commit is contained in:
parent
434f88f194
commit
6f988e9cb5
4 changed files with 83 additions and 8 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue