forked from Blendman974/faceclaw
calendar.list_events: include the end of each event
A multi-day all-day event that started yesterday read as yesterday's
("Mon Nov 16 (all day)"), so the assistant left it out of today's plans;
timed events had no end time. Format the span: the last day of an all-day
event (ends are exclusive) and the end time of a timed one.
The date formatting moves into a pure app/assistant/date-format.ts with
unit tests.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ab692741f7
commit
2e7ca866a8
5 files changed
+111
-27
No files matched your search
@@ -511,6 +511,7 @@ test('the assistant offers Spotify search-and-play once signed in and refreshes
|
||||
snapshot: () => ({ accessEnabled: true, playbackState: 'playing', title: 'Song', artist: 'Band', appName: 'Spotify' }) } },
|
||||
'../native/spotify': { spotifyService: () => spotify },
|
||||
'../native/notification-icons': {}, '../ui/shell/shell': {}, './tool-registry': {},
|
||||
'./date-format': load('app/assistant/date-format.ts'),
|
||||
}, { global: { isIOS: true } });
|
||||
registerSystemTools({
|
||||
registerSystemTool: (definition, handler) => systemTools.set(definition.name, handler),
|
||||
|
||||
Reference in new issue
Block a user