Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
770 lines (770 loc) · 25.7 KB
/
Copy pathpackage.json
File metadata and controls
770 lines (770 loc) · 25.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
{
"$schema": "https://www.raycast.com/schemas/extension.json",
"name": "beeper",
"title": "Beeper Desktop",
"description": "Access your chats from Beeper Desktop (requires Beeper Desktop API to be enabled)",
"icon": "extension-icon.png",
"author": "batuhan",
"contributors": [
"gareth_price",
"pernielsentikaer",
"clins1994"
],
"license": "MIT",
"platforms": [
"macOS"
],
"keywords": [
"beeper",
"chat",
"messaging",
"matrix"
],
"categories": [
"Communication"
],
"commands": [
{
"name": "chat",
"title": "Recent Chats",
"description": "Browse recent chats from Beeper Desktop",
"mode": "view"
},
{
"name": "focus-app",
"title": "Open Beeper",
"description": "Bring Beeper to the foreground",
"mode": "no-view"
},
{
"name": "unread-chats",
"title": "Unread Chats",
"description": "See unread chats from Beeper Desktop",
"mode": "view"
},
{
"name": "contacts",
"title": "Contacts",
"description": "Search contacts across connected Beeper accounts",
"mode": "view"
},
{
"name": "search-messages",
"title": "Search Recent Messages",
"description": "Search recent messages across Beeper chats",
"mode": "view"
},
{
"name": "list-accounts",
"title": "Connected Accounts",
"description": "View all connected messaging services",
"mode": "view"
}
],
"preferences": [
{
"name": "baseUrl",
"title": "Beeper Desktop API Base URL",
"description": "The base URL for Beeper Desktop API (default: http://localhost:23373)",
"type": "textfield",
"required": false,
"default": "http://localhost:23373"
},
{
"name": "useMockData",
"type": "checkbox",
"required": false,
"title": "Use Mock Data",
"label": "Yes, Show mock data",
"description": "Show sample data instead of connecting to Beeper. Useful for taking screenshots or demos.",
"default": false
}
],
"dependencies": {
"@beeper/desktop-api": "4.2.3",
"@raycast/api": "^1.104.6",
"@raycast/utils": "^2.2.2",
"fuse.js": "^7.1.0"
},
"devDependencies": {
"@raycast/eslint-config": "^2.1.1",
"@types/node": "22.19.3",
"@types/react": "19.2.7",
"eslint": "^9.39.2",
"prettier": "^3.7.4",
"typescript": "^5.9.3"
},
"scripts": {
"build": "ray build",
"dev": "ray develop",
"fix-lint": "ray lint --fix",
"lint": "ray lint",
"prepublishOnly": "echo \"\\n\\nIt seems like you are trying to publish the Raycast extension to npm.\\n\\nIf you did intend to publish it to npm, remove the \\`prepublishOnly\\` script and rerun \\`npm publish\\` again.\\nIf you wanted to publish it to the Raycast Store instead, use \\`npm run publish\\` instead.\\n\\n\" && exit 1",
"publish": "npx @raycast/api@latest publish"
},
"tools": [
{
"name": "open-chat",
"title": "Open Chat",
"description": "Opens a chat in Beeper by searching for a contact or group name. Use this when the user wants to open, view, or go to a conversation. Supports partial names and fuzzy matching. The 'service' parameter is optional - only specify it if the user explicitly mentions a service like WhatsApp, Telegram, Signal, etc."
},
{
"name": "send-message",
"title": "Send Message",
"description": "Sends a message to a contact or group via Beeper. Use this when the user wants to send, text, message, tell, or write to someone. The 'name' parameter is the recipient (supports partial names like 'mom' or 'John'). The 'message' parameter is the text content to send. The 'service' parameter is optional - only include if the user specifies a particular messaging platform."
},
{
"name": "list-accounts",
"title": "List Accounts",
"description": "Lists all connected messaging services in Beeper. Use this when the user asks about their connected accounts, linked services, or wants to see which platforms are available."
},
{
"name": "search-messages",
"title": "Search Messages",
"description": "Searches message content across all Beeper chats. Use this when the user wants to find, search for, or look up specific messages or conversations about a topic. The 'query' parameter is the text to search for. The optional 'sender' parameter can be 'me' (messages sent by user) or 'others' (messages from others). Returns matching messages with sender, service, and timestamps."
},
{
"name": "summarize-unread",
"title": "Summarize Unread Messages",
"description": "Gets unread messages for summarization. Use this when the user wants to know what they missed, summarize unread messages, or catch up on conversations. If 'chatName' is provided, returns unread messages from that specific chat. If 'chatName' is NOT provided, returns a summary list of ALL chats with unread messages (chat names, services, and unread counts). The optional 'service' parameter filters by messaging platform. Summarize the results in a helpful way for the user."
},
{
"name": "summarize-messages",
"title": "Summarize Messages",
"description": "Gets messages from a specific chat for summarization. Use this when the user wants to know what was discussed, asks about recent conversations, or has questions about chat activity like 'what have they been talking about?' or 'any plans mentioned?'. The 'chatName' parameter is the chat name. The optional 'timeRange' parameter specifies whether to get 'today' (default) or 'week' (past 7 days) of messages. The optional 'question' parameter is a specific question to focus on. Returns messages which you should summarize. If no messages are found in the requested time range, it falls back to the most recent day of messages - when 'fallbackToMostRecentDay' is true in the result, mention that you're summarizing the most recent day because there were no messages in the requested time range."
}
],
"ai": {
"evals": [
{
"input": "@beeper Open chat with John",
"mocks": {
"open-chat": "{ \"openedChat\": \"John Smith\", \"service\": \"whatsapp\" }"
},
"expected": [
{
"callsTool": {
"name": "open-chat",
"arguments": {
"name": "John"
}
}
},
{
"meetsCriteria": "Confirms the chat with John has been opened"
}
]
},
{
"input": "@beeper message John",
"mocks": {
"open-chat": "{ \"openedChat\": \"John Smith\", \"service\": \"whatsapp\" }"
},
"expected": [
{
"callsTool": {
"name": "open-chat",
"arguments": {
"name": "John"
}
}
},
{
"meetsCriteria": "Opens chat with John"
}
]
},
{
"input": "@beeper text mom",
"mocks": {
"open-chat": "{ \"openedChat\": \"Mom\", \"service\": \"imessage\" }"
},
"expected": [
{
"callsTool": {
"name": "open-chat",
"arguments": {
"name": "mom"
}
}
},
{
"meetsCriteria": "Opens chat with mom"
}
]
},
{
"input": "@beeper open Sarah's chat on WhatsApp",
"mocks": {
"open-chat": "{ \"openedChat\": \"Sarah\", \"service\": \"whatsapp\" }"
},
"expected": [
{
"callsTool": {
"name": "open-chat",
"arguments": {
"name": "Sarah",
"service": "whatsapp"
}
}
},
{
"meetsCriteria": "Opens Sarah's WhatsApp chat"
}
]
},
{
"input": "@beeper go to the family group chat",
"mocks": {
"open-chat": "{ \"openedChat\": \"Family Group\", \"service\": \"whatsapp\" }"
},
"expected": [
{
"callsTool": {
"name": "open-chat",
"arguments": {
"name": "family group"
}
}
},
{
"meetsCriteria": "Opens the family group chat"
}
]
},
{
"input": "@beeper Send a message to Sarah on Telegram: Hey, are you free tonight?",
"mocks": {
"send-message": "{ \"sentTo\": \"Sarah\", \"service\": \"telegram\" }"
},
"expected": [
{
"callsTool": {
"name": "send-message",
"arguments": {
"name": "Sarah",
"message": "Hey, are you free tonight?",
"service": "telegram"
}
}
},
{
"meetsCriteria": "Confirms the message was sent to Sarah via Telegram"
}
]
},
{
"input": "@beeper message John hi there",
"mocks": {
"send-message": "{ \"sentTo\": \"John\", \"service\": \"whatsapp\" }"
},
"expected": [
{
"callsTool": {
"name": "send-message",
"arguments": {
"name": "John",
"message": "hi there"
}
}
},
{
"meetsCriteria": "Confirms message was sent to John"
}
]
},
{
"input": "@beeper text mom on whatsapp saying I'll be late for dinner",
"mocks": {
"send-message": "{ \"sentTo\": \"Mom\", \"service\": \"whatsapp\" }"
},
"expected": [
{
"callsTool": {
"name": "send-message",
"arguments": {
"name": "mom",
"message": "I'll be late for dinner",
"service": "whatsapp"
}
}
},
{
"meetsCriteria": "Confirms message was sent to mom"
}
]
},
{
"input": "@beeper send \"meeting at 3pm\" to Mike",
"mocks": {
"send-message": "{ \"sentTo\": \"Mike\", \"service\": \"slack\" }"
},
"expected": [
{
"callsTool": {
"name": "send-message",
"arguments": {
"name": "Mike",
"message": "meeting at 3pm"
}
}
},
{
"meetsCriteria": "Confirms message was sent to Mike"
}
]
},
{
"input": "@beeper tell the work group that the deadline is extended",
"mocks": {
"send-message": "{ \"sentTo\": \"Work Group\", \"service\": \"slack\" }"
},
"expected": [
{
"callsTool": {
"name": "send-message",
"arguments": {
"name": "work group",
"message": "the deadline is extended"
}
}
},
{
"meetsCriteria": "Confirms message was sent to work group"
}
]
},
{
"input": "@beeper write to David: Thanks for your help!",
"mocks": {
"send-message": "{ \"sentTo\": \"David\", \"service\": \"telegram\" }"
},
"expected": [
{
"callsTool": {
"name": "send-message",
"arguments": {
"name": "David",
"message": "Thanks for your help!"
}
}
},
{
"meetsCriteria": "Confirms message was sent to David"
}
]
},
{
"input": "@beeper DM Alex on Discord: you online?",
"mocks": {
"send-message": "{ \"sentTo\": \"Alex\", \"service\": \"discord\" }"
},
"expected": [
{
"callsTool": {
"name": "send-message",
"arguments": {
"name": "Alex",
"message": "you online?",
"service": "discord"
}
}
},
{
"meetsCriteria": "Confirms message was sent to Alex on Discord"
}
]
},
{
"input": "@beeper What messaging services do I have connected?",
"mocks": {
"list-accounts": "[{ \"service\": \"whatsapp\", \"displayName\": \"WhatsApp\", \"isConnected\": true }]"
},
"expected": [
{
"callsTool": {
"name": "list-accounts"
}
},
{
"meetsCriteria": "Lists the connected messaging services"
}
]
},
{
"input": "@beeper show my accounts",
"mocks": {
"list-accounts": "[{ \"service\": \"whatsapp\", \"displayName\": \"WhatsApp\", \"isConnected\": true }]"
},
"expected": [
{
"callsTool": {
"name": "list-accounts"
}
},
{
"meetsCriteria": "Shows connected accounts"
}
]
},
{
"input": "@beeper which services are linked?",
"mocks": {
"list-accounts": "[{ \"service\": \"telegram\", \"displayName\": \"Telegram\", \"isConnected\": true }]"
},
"expected": [
{
"callsTool": {
"name": "list-accounts"
}
},
{
"meetsCriteria": "Lists linked services"
}
]
},
{
"input": "@beeper what can I message with?",
"mocks": {
"list-accounts": "[{ \"service\": \"signal\", \"displayName\": \"Signal\", \"isConnected\": true }]"
},
"expected": [
{
"callsTool": {
"name": "list-accounts"
}
},
{
"meetsCriteria": "Shows available messaging platforms"
}
]
},
{
"input": "@beeper search for messages about dinner",
"mocks": {
"search-messages": "{ \"messages\": [{ \"text\": \"Are we still on for dinner?\", \"sender\": \"Mom\", \"service\": \"WhatsApp\" }], \"count\": 1 }"
},
"expected": [
{
"callsTool": {
"name": "search-messages",
"arguments": {
"query": "dinner"
}
}
},
{
"meetsCriteria": "Returns messages about dinner"
}
]
},
{
"input": "@beeper find messages I sent about the meeting",
"mocks": {
"search-messages": "{ \"messages\": [{ \"text\": \"Meeting at 3pm\", \"sender\": \"You\", \"service\": \"Slack\" }], \"count\": 1 }"
},
"expected": [
{
"callsTool": {
"name": "search-messages",
"arguments": {
"query": "meeting",
"sender": "me"
}
}
},
{
"meetsCriteria": "Returns messages about meeting sent by user"
}
]
},
{
"input": "@beeper look up messages from others about tomorrow",
"mocks": {
"search-messages": "{ \"messages\": [{ \"text\": \"See you tomorrow!\", \"sender\": \"John\", \"service\": \"Telegram\" }], \"count\": 1 }"
},
"expected": [
{
"callsTool": {
"name": "search-messages",
"arguments": {
"query": "tomorrow",
"sender": "others"
}
}
},
{
"meetsCriteria": "Returns messages from others about tomorrow"
}
]
},
{
"input": "@beeper what did Sarah say about the project?",
"mocks": {
"search-messages": "{ \"messages\": [{ \"text\": \"The project deadline is Friday\", \"sender\": \"Sarah\", \"service\": \"Slack\" }], \"count\": 1 }"
},
"expected": [
{
"callsTool": {
"name": "search-messages",
"arguments": {
"query": "project"
}
}
},
{
"meetsCriteria": "Returns messages about the project"
}
]
},
{
"input": "@beeper summarize unread messages from Mom",
"mocks": {
"summarize-unread": "{ \"chatName\": \"Mom\", \"service\": \"WhatsApp\", \"unreadCount\": 3, \"messages\": [{ \"sender\": \"Mom\", \"text\": \"Are you coming for dinner?\", \"timestamp\": \"2024-01-15T18:00:00Z\" }] }"
},
"expected": [
{
"callsTool": {
"name": "summarize-unread",
"arguments": {
"chatName": "Mom"
}
}
},
{
"meetsCriteria": "Summarizes the unread messages from Mom"
}
]
},
{
"input": "@beeper what did I miss in the family group chat?",
"mocks": {
"summarize-unread": "{ \"chatName\": \"Family Group\", \"service\": \"WhatsApp\", \"unreadCount\": 5, \"messages\": [{ \"sender\": \"Dad\", \"text\": \"Dinner at 7pm\", \"timestamp\": \"2024-01-15T17:00:00Z\" }] }"
},
"expected": [
{
"callsTool": {
"name": "summarize-unread",
"arguments": {
"chatName": "family group"
}
}
},
{
"meetsCriteria": "Summarizes unread messages from family group"
}
]
},
{
"input": "@beeper catch me up on my WhatsApp chat with John",
"mocks": {
"summarize-unread": "{ \"chatName\": \"John\", \"service\": \"WhatsApp\", \"unreadCount\": 2, \"messages\": [{ \"sender\": \"John\", \"text\": \"Hey are you free?\", \"timestamp\": \"2024-01-15T16:00:00Z\" }] }"
},
"expected": [
{
"callsTool": {
"name": "summarize-unread",
"arguments": {
"chatName": "John",
"service": "whatsapp"
}
}
},
{
"meetsCriteria": "Summarizes unread WhatsApp messages from John"
}
]
},
{
"input": "@beeper what unread messages do I have?",
"mocks": {
"summarize-unread": "{ \"unreadCount\": 3, \"totalUnreadCount\": 8, \"unreadChats\": [{ \"chatName\": \"Mom\", \"service\": \"WhatsApp\", \"unreadCount\": 3, \"chatType\": \"single\" }, { \"chatName\": \"Work Group\", \"service\": \"Slack\", \"unreadCount\": 5, \"chatType\": \"group\" }] }"
},
"expected": [
{
"callsTool": {
"name": "summarize-unread",
"arguments": {}
}
},
{
"meetsCriteria": "Lists all chats with unread messages"
}
]
},
{
"input": "@beeper do I have any unread messages?",
"mocks": {
"summarize-unread": "{ \"unreadCount\": 2, \"totalUnreadCount\": 4, \"unreadChats\": [{ \"chatName\": \"John\", \"service\": \"Telegram\", \"unreadCount\": 2, \"chatType\": \"single\" }, { \"chatName\": \"Family\", \"service\": \"WhatsApp\", \"unreadCount\": 2, \"chatType\": \"group\" }] }"
},
"expected": [
{
"callsTool": {
"name": "summarize-unread",
"arguments": {}
}
},
{
"meetsCriteria": "Shows whether there are unread messages and lists them"
}
]
},
{
"input": "@beeper summarize all my unread messages",
"mocks": {
"summarize-unread": "{ \"unreadCount\": 1, \"totalUnreadCount\": 3, \"unreadChats\": [{ \"chatName\": \"Sarah\", \"service\": \"Signal\", \"unreadCount\": 3, \"chatType\": \"single\" }] }"
},
"expected": [
{
"callsTool": {
"name": "summarize-unread",
"arguments": {}
}
},
{
"meetsCriteria": "Summarizes all unread messages across chats"
}
]
},
{
"input": "@beeper summarize today's messages from the work group",
"mocks": {
"summarize-messages": "{ \"chatName\": \"Work Group\", \"service\": \"Slack\", \"messageCount\": 15, \"messages\": [{ \"sender\": \"Mike\", \"text\": \"Meeting at 3pm\", \"timestamp\": \"2024-01-15T10:00:00Z\", \"isFromMe\": false }], \"dateRange\": \"Today\", \"timeRange\": \"today\" }"
},
"expected": [
{
"callsTool": {
"name": "summarize-messages",
"arguments": {
"chatName": "work group"
}
}
},
{
"meetsCriteria": "Summarizes today's messages from work group"
}
]
},
{
"input": "@beeper what have the boys been talking about in the gaming group?",
"mocks": {
"summarize-messages": "{ \"chatName\": \"Gaming Group\", \"service\": \"Discord\", \"messageCount\": 20, \"messages\": [{ \"sender\": \"Alex\", \"text\": \"Anyone up for Valorant?\", \"timestamp\": \"2024-01-15T14:00:00Z\", \"isFromMe\": false }], \"question\": \"what have they been talking about?\", \"dateRange\": \"Today\", \"timeRange\": \"today\" }"
},
"expected": [
{
"callsTool": {
"name": "summarize-messages",
"arguments": {
"chatName": "gaming group",
"question": "what have they been talking about?"
}
}
},
{
"meetsCriteria": "Summarizes what the group has been discussing"
}
]
},
{
"input": "@beeper any plans mentioned in the family chat today?",
"mocks": {
"summarize-messages": "{ \"chatName\": \"Family\", \"service\": \"WhatsApp\", \"messageCount\": 8, \"messages\": [{ \"sender\": \"Mom\", \"text\": \"Dinner at 7?\", \"timestamp\": \"2024-01-15T12:00:00Z\", \"isFromMe\": false }], \"question\": \"any plans mentioned?\", \"dateRange\": \"Today\", \"timeRange\": \"today\" }"
},
"expected": [
{
"callsTool": {
"name": "summarize-messages",
"arguments": {
"chatName": "family",
"question": "any plans mentioned?"
}
}
},
{
"meetsCriteria": "Summarizes plans mentioned in family chat"
}
]
},
{
"input": "@beeper what did Sarah and I talk about today on Telegram?",
"mocks": {
"summarize-messages": "{ \"chatName\": \"Sarah\", \"service\": \"Telegram\", \"messageCount\": 12, \"messages\": [{ \"sender\": \"Sarah\", \"text\": \"How was your day?\", \"timestamp\": \"2024-01-15T09:00:00Z\", \"isFromMe\": false }], \"dateRange\": \"Today\", \"timeRange\": \"today\" }"
},
"expected": [
{
"callsTool": {
"name": "summarize-messages",
"arguments": {
"chatName": "Sarah",
"service": "telegram"
}
}
},
{
"meetsCriteria": "Summarizes today's conversation with Sarah on Telegram"
}
]
},
{
"input": "@beeper summarize this week's messages from the work group",
"mocks": {
"summarize-messages": "{ \"chatName\": \"Work Group\", \"service\": \"Slack\", \"messageCount\": 45, \"messages\": [{ \"sender\": \"Mike\", \"text\": \"Sprint planning Monday\", \"timestamp\": \"2024-01-10T10:00:00Z\", \"isFromMe\": false }], \"dateRange\": \"Past week\", \"timeRange\": \"week\" }"
},
"expected": [
{
"callsTool": {
"name": "summarize-messages",
"arguments": {
"chatName": "work group",
"timeRange": "week"
}
}
},
{
"meetsCriteria": "Summarizes this week's messages from work group"
}
]
},
{
"input": "@beeper what has been happening in the family chat this week?",
"mocks": {
"summarize-messages": "{ \"chatName\": \"Family\", \"service\": \"WhatsApp\", \"messageCount\": 30, \"messages\": [{ \"sender\": \"Mom\", \"text\": \"Grandma's birthday is Saturday\", \"timestamp\": \"2024-01-12T15:00:00Z\", \"isFromMe\": false }], \"dateRange\": \"Past week\", \"timeRange\": \"week\" }"
},
"expected": [
{
"callsTool": {
"name": "summarize-messages",
"arguments": {
"chatName": "family",
"timeRange": "week"
}
}
},
{
"meetsCriteria": "Summarizes this week's messages from family chat"
}
]
},
{
"input": "@beeper give me a summary of messages from John over the past week",
"mocks": {
"summarize-messages": "{ \"chatName\": \"John\", \"service\": \"WhatsApp\", \"messageCount\": 25, \"messages\": [{ \"sender\": \"John\", \"text\": \"Hey want to grab lunch?\", \"timestamp\": \"2024-01-11T12:00:00Z\", \"isFromMe\": false }], \"dateRange\": \"Past week\", \"timeRange\": \"week\" }"
},
"expected": [
{
"callsTool": {
"name": "summarize-messages",
"arguments": {
"chatName": "John",
"timeRange": "week"
}
}
},
{
"meetsCriteria": "Summarizes past week's messages from John"
}
]
}
]
}
}