Commit Graph

14 Commits

Author SHA1 Message Date
Alexandre Nicolaie
deb30ab6b3 Migrate to ts-ics 2.4.0 API and fix duplicate recurring events
ts-ics 2.4.0 changed API from parseIcsCalendar to convertIcsCalendar
and VCalendar to IcsCalendar. The new API returns Date objects and
nested date structures that require recursive conversion to strings
for SilverBullet indexing.

Recurring events were creating duplicate refs because the hash only
used the UID, which is identical across occurrences. Including the
start date in the unique key ensures each occurrence gets a distinct
ref.

Co-authored-by: Claude <noreply@anthropic.com>
Signed-off-by: Alexandre Nicolaie <xunleii@users.noreply.github.com>
2025-10-18 16:15:46 +02:00
Alexandre Nicolaie
d3e4fc021b Migrate to SilverBullet v2 indexing system
Replace deprecated query provider with index-based architecture.
Events are now indexed using index.indexObjects() and queryable
via Lua Integrated Query (LIQ).

Breaking changes:
- Plugin now requires SilverBullet v2 (use v0.1.0 for SB v1)
- Old query syntax no longer works (use LIQ instead)
- Manual sync required via 'iCalendar: Sync' command
- Events cached for 6h by default (was real-time)

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Alexandre Nicolaie <xunleii@users.noreply.github.com>
2025-10-18 16:15:46 +02:00
Marek S. Lukasiewicz
9d234428d4 Load ics sources from Space Config 2025-01-05 16:56:39 +01:00
Marek S. Lukasiewicz
98edb7a818 Specify project scope 2025-01-04 20:51:41 +01:00
Marek S. Lukasiewicz
c028032787 WIP: Query for events 2025-01-03 23:55:53 +01:00
Marek S. Lukasiewicz
23f9208e9c Basic examples for CalDAV and .ics URL 2025-01-03 22:45:14 +01:00
Marek S. Lukasiewicz
d796b8ac62 Add tsdav dependency with basic example 2025-01-03 21:32:18 +01:00
Marek S. Lukasiewicz
933c55400d Setup CalDAV plug 2025-01-03 19:19:38 +01:00
Zef Hemel
c4f12ba442 Switch to using JSR for syscalls calls 2024-08-15 11:42:47 +02:00
Zef Hemel
28f4aacf84 Updated to new conventions 2024-07-30 14:34:50 +02:00
Zef Hemel
db6841dd1c Add import map 2024-07-23 21:07:53 +02:00
Zef Hemel
d289d96f68 Cleanup 2023-08-22 10:36:42 +02:00
Zef Hemel
211e9f892c Update deno.jsonc
Switch to `silverbullet plug:compile`
2022-10-29 16:49:46 +02:00
Zef Hemel
cb79d165a5 Use the deno-based build 2022-10-15 20:14:55 +02:00