forked from GitHubMirrors/silverbullet-icalendar
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>
36 lines
783 B
YAML
36 lines
783 B
YAML
name: icalendar
|
|
requiredPermissions:
|
|
- fetch
|
|
functions:
|
|
syncCalendars:
|
|
path: ./icalendar.ts:syncCalendars
|
|
command:
|
|
name: "iCalendar: Sync"
|
|
priority: -1
|
|
showVersion:
|
|
path: ./icalendar.ts:showVersion
|
|
command:
|
|
name: "iCalendar: Version"
|
|
priority: -2
|
|
config:
|
|
schema.config.properties.icalendar:
|
|
type: object
|
|
required:
|
|
- sources
|
|
properties:
|
|
sources:
|
|
type: array
|
|
minItems: 1
|
|
items:
|
|
type: object
|
|
required:
|
|
- url
|
|
properties:
|
|
url:
|
|
type: string
|
|
name:
|
|
type: string
|
|
cacheDuration:
|
|
type: number
|
|
description: "Interval between two calendar synchronizations (default: 21600 = 6 hours)"
|