Commit Graph

9 Commits

Author SHA1 Message Date
bb1b9a93ad Make configuration more robust for single sources
Some checks failed
Build SilverBullet Plug / build (push) Failing after 9s
2026-02-15 17:39:32 -08:00
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
904c1b9d94 Add clear all events functionality
Add 'iCalendar: Clear All Events' command to completely remove
all indexed calendar events and cache. Useful for maintenance
and troubleshooting.

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
38dd97c25c Add force sync command
Add 'iCalendar: Force Sync' command to bypass cache and
immediately synchronize calendar events. Useful when you
need fresh data before the cache expires.

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
529c534d4a Add version command 2025-01-05 17:57:27 +01:00
Marek S. Lukasiewicz
1de79df25d Define the event object 2025-01-05 17:14:34 +01:00
Marek S. Lukasiewicz
9d234428d4 Load ics sources from Space Config 2025-01-05 16:56:39 +01:00
Marek S. Lukasiewicz
968353ce80 Rename Plug to icalendar 2025-01-05 16:06:57 +01:00