@vermeulen.solutions/eventual 0.18.4 → 0.18.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -14
- package/astro/install.mjs +3 -3
- package/dist/index.mjs +1 -1
- package/dist/plugin.mjs +4 -4
- package/docs/collection-setup.md +58 -46
- package/docs/developer-guide.md +153 -0
- package/docs/history.md +16 -16
- package/docs/registry-installation.md +4 -4
- package/docs/release-notes-0.14.0.md +1 -1
- package/docs/release-notes-0.18.4.md +4 -4
- package/docs/release-notes-0.18.5.md +8 -0
- package/docs/release-notes-0.18.6.md +5 -0
- package/emdash-plugin.jsonc +4 -1
- package/package.json +5 -3
- package/src/domain/calendar-links.ts +82 -80
- package/src/public-event.ts +1 -1
- package/docs/native-modernization.md +0 -101
package/docs/collection-setup.md
CHANGED
|
@@ -1,46 +1,58 @@
|
|
|
1
|
-
# Install and connect Eventual
|
|
2
|
-
|
|
3
|
-
Eventual
|
|
4
|
-
|
|
5
|
-
## In the EmDash admin
|
|
6
|
-
|
|
7
|
-
1. Open **Plugins** and browse the **Registry**. Find **Eventual**, published by **vermeulen.solutions**, review its permissions, and install it. Existing installations use the plugin's update action.
|
|
8
|
-
2. Open **
|
|
9
|
-
3. Create a draft, save it, set its schedule in **Dates, venue & repeat**, and publish it. Check it on your site's calendar.
|
|
10
|
-
|
|
11
|
-
A **content type/collection** is simply the place under **Content** where entries are listed and edited. If compatible collections are missing, ask your site builder to create them with the blueprint below. Your builder adds visitor pages using Eventual's feeds; the [Astro showcase](../examples/astro-events/README.md) is an optional website design.
|
|
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
|
-
|
|
1
|
+
# Install and connect Eventual RSVP – Core
|
|
2
|
+
|
|
3
|
+
Eventual RSVP – Core requires EmDash **>=1.2.0 <2.0.0**; it is tested on **1.2.0**, **1.4.0**, **1.5.0** and **1.6.0**, with 1.4.0 or newer recommended for the form and Cloudflare fixes. Editors can use the [event guide](user-guide.md) once an administrator completes this setup.
|
|
4
|
+
|
|
5
|
+
## In the EmDash admin
|
|
6
|
+
|
|
7
|
+
1. Open **Plugins** and browse the **Registry**. Find **Eventual RSVP – Core**, published by **vermeulen.solutions**, review its permissions, and install it. Existing installations use the plugin's update action.
|
|
8
|
+
2. Open **Event settings**, select the event and venue/organizer collections, and choose **Save settings**. Selection connects collections; it does not create them or move entries.
|
|
9
|
+
3. Create a draft, save it, set its schedule in **Dates, venue & repeat**, and publish it. Check it on your site's calendar.
|
|
10
|
+
|
|
11
|
+
A **content type/collection** is simply the place under **Content** where entries are listed and edited. If compatible collections are missing, ask your site builder to create them with the blueprint below. Your builder adds visitor pages using Eventual's feeds; the [Astro showcase](../examples/astro-events/README.md) is an optional website design.
|
|
12
|
+
|
|
13
|
+
## Agent tools (optional)
|
|
14
|
+
|
|
15
|
+
Installing does not give AI agents access. Eventual RSVP's tools for agents (MCP tools) stay off until an administrator turns them on:
|
|
16
|
+
|
|
17
|
+
1. Open **Plugins**.
|
|
18
|
+
2. Expand the details of **Eventual RSVP – Core** with the arrow on its row.
|
|
19
|
+
3. Switch on **Agent access**.
|
|
20
|
+
|
|
21
|
+
The [developer guide](developer-guide.md#settings-tools-and-transfer) lists the tools and the permissions they need.
|
|
22
|
+
|
|
23
|
+
## The old-events switch
|
|
24
|
+
|
|
25
|
+
Leave **Show old events saved inside the plugin** off for native collections. Enable it and choose **Save switch** only to serve old plugin data while no native event collection is connected. It never combines old rows with native events or repairs a missing explicitly selected collection.
|
|
26
|
+
|
|
27
|
+
To make old entries editable, follow [upgrading and migration](upgrade-0.13.0.md). An empty connected collection may produce an empty calendar; an unconfigured source produces a clear error instead.
|
|
28
|
+
|
|
29
|
+
## For the site builder
|
|
30
|
+
|
|
31
|
+
**Install the backend one way only**: from the Registry as above, or from npm in `astro.config.mjs`, not both. A Registry install is addressed by a generated plugin ID that starts with `r_`, not by `eventual`; the **Subscribe** links on the Eventual RSVP admin page show the exact addresses. The helpers are on npm as `@vermeulen.solutions/eventual` (the unscoped package `eventual` is unrelated; do not install it). Details: [versions, plugin ID and backends](developer-guide.md#versions-and-where-to-get-them). Moving an existing site from the config to the Registry? Read [what stays behind](developer-guide.md#moving-a-site-from-the-config-to-the-registry) first: calendar subscribers' address changes.
|
|
32
|
+
|
|
33
|
+
After `npm ci` and `npm run build` in this repository, using Node 24+:
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
node scripts/export-native-schema.mjs --locale fr --output eventual-schema.json
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
From an installed source package, use `node node_modules/@vermeulen.solutions/eventual/scripts/export-native-schema.mjs` with the same options. The exporter writes schema JSON only and refuses to overwrite an output file.
|
|
40
|
+
|
|
41
|
+
Defaults are `events`, `venues`, and `organizers` (19/8/3 fields). Custom names and directory reuse:
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
node scripts/export-native-schema.mjs --event-collection activities --venue-collection locations --reuse-venues --locale fr --output activities-schema.json
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
`--reuse-venues` and `--reuse-organizers` omit existing directories. Use a locale already configured on the site. Inspect and apply the exact blueprint through authenticated EmDash schema tools or the site's supported schema deployment process. Re-read the fields, then select the collections in Event settings. Eventual has read-only schema permission.
|
|
48
|
+
|
|
49
|
+
For a **new local SQLite** schema, the installed EmDash CLI supports:
|
|
50
|
+
|
|
51
|
+
```sh
|
|
52
|
+
npx emdash seed eventual-schema.json --validate
|
|
53
|
+
npx emdash seed eventual-schema.json --database ./data.db --no-content --on-conflict error
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Use the actual database path. Remote D1 uses the site's remote schema workflow. For populated collections, compare the blueprint and apply reviewed additive changes instead of recreating them.
|
|
57
|
+
|
|
58
|
+
Preserve Portable Text, shared schedule/reference flags, localized title/description/occurrence copy, and exact reference targets. An event reference requires its corresponding directory selection. Column-backed and relation-bound references differ: keep the exporter's definition intact. See the [developer guide](developer-guide.md).
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
# Developer guide — Eventual RSVP – Core
|
|
2
|
+
|
|
3
|
+
EmDash collections own content, rich text, languages, drafts, revisions and publication. Eventual's sandbox supplies schedule validation, recurrence, saved-entry controls and feeds. See [setup](collection-setup.md) and [upgrading](upgrade-0.13.0.md).
|
|
4
|
+
|
|
5
|
+
The [public feed caching guide](public-feed-caching.md) describes additive
|
|
6
|
+
dependency/expiry metadata, direct runtime dispatch and the host's explicit opt-in.
|
|
7
|
+
|
|
8
|
+
## Versions and where to get them
|
|
9
|
+
|
|
10
|
+
One version number covers everything. Use the same one in all three places:
|
|
11
|
+
|
|
12
|
+
| What | Where | Notes |
|
|
13
|
+
| --- | --- | --- |
|
|
14
|
+
| Backend and editor controls | EmDash admin, **Plugins → Registry**: **Eventual RSVP – Core** by **vermeulen.solutions** | The current version is on the Registry page and in the [changelog](../CHANGELOG.md). |
|
|
15
|
+
| Astro, schema and transfer helpers | npm: [`@vermeulen.solutions/eventual`](https://www.npmjs.com/package/@vermeulen.solutions/eventual) | Optional. Not part of the Registry download. |
|
|
16
|
+
| Source | Git tag `v<version>` in this repository | For building from a checkout. |
|
|
17
|
+
|
|
18
|
+
```sh
|
|
19
|
+
npm install @vermeulen.solutions/eventual
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
That installs the newest helpers. If the site's Registry backend is older, pin the same version instead, for example `npm install @vermeulen.solutions/eventual@0.18.4`.
|
|
23
|
+
|
|
24
|
+
**Do not run `npm install eventual`.** The unscoped name `eventual` on npm is an unrelated package by another author. Import the helpers as `@vermeulen.solutions/eventual/astro`, `@vermeulen.solutions/eventual/schema` and so on.
|
|
25
|
+
|
|
26
|
+
Versions before 0.18.1 were never on npm. Their source archives (`eventual-<version>.tgz`) are attached to the [GitHub releases](https://github.com/Vermeulen-Solutions/eventual-rsvp-core/releases), which stop at 0.16.0. For 0.17.0 and 0.18.0, build from the Git tag.
|
|
27
|
+
|
|
28
|
+
To build the helpers from a checkout of a tag, run `npm ci`, `npm run build` and `npm pack`.
|
|
29
|
+
|
|
30
|
+
## Installation and plugin ID
|
|
31
|
+
|
|
32
|
+
There are two ways to run the backend:
|
|
33
|
+
|
|
34
|
+
- **Registry install:** installed from the EmDash admin. The host downloads the bundle and runs it in its sandbox. Cloudflare hosts need Worker Loader and PluginBridge: [EmDash sandbox setup](https://docs.emdashcms.com/deployment/plugin-sandbox/).
|
|
35
|
+
- **Config-managed install:** the npm package is listed in `astro.config.mjs` under `sandboxed: [eventual]`.
|
|
36
|
+
|
|
37
|
+
**The plugin ID differs between the two.** A config-managed install has the ID `eventual`. A Registry install has a generated ID that starts with `r_`, such as `r_hxn32uyal53iahxf`. EmDash derives it from the publisher and the plugin's Registry name, so it is the same on every site and does not change on update.
|
|
38
|
+
|
|
39
|
+
The ID is part of every route URL (`/_emdash/api/plugins/<pluginId>/…`) and of every MCP tool name (`<pluginId>__<toolName>`). To find it:
|
|
40
|
+
|
|
41
|
+
- Open **Eventual RSVP** in the admin and look at the **Subscribe** links at the bottom of the page (shown once an event collection is connected): they contain the ID. So does the address of the page itself (`/_emdash/admin/plugins/<pluginId>/events`).
|
|
42
|
+
- Or read it from the install result or authenticated `GET /_emdash/api/admin/plugins`.
|
|
43
|
+
|
|
44
|
+
Since 0.18.5 every link Eventual builds itself (the admin's Subscribe links and the per-event `.ics` link in the feed) uses the installed ID. Links your own pages build must use it too: pass `pluginId` to `fetchPublicFeed` (see [Astro integration](#astro-integration)).
|
|
45
|
+
|
|
46
|
+
**Use one backend per site.** Do not install from the Registry and also list the package under `sandboxed`. EmDash treats the two as different plugins, because their IDs differ:
|
|
47
|
+
|
|
48
|
+
- Each keeps its own settings and storage. Collections connected in one are not connected in the other.
|
|
49
|
+
- Both run their checks when an event is saved, so one save can be handled twice.
|
|
50
|
+
- The admin shows two sets of Eventual pages, and the site has two feeds at two addresses.
|
|
51
|
+
|
|
52
|
+
The source installer (`emdashWithEventual`) stops the build when it finds the backend listed twice in the config; it cannot see a Registry install.
|
|
53
|
+
|
|
54
|
+
### Moving a site from the config to the Registry
|
|
55
|
+
|
|
56
|
+
EmDash keeps each plugin's own data under its plugin ID. A Registry install has a new ID, so it starts empty, and what the old install stored stays behind under `eventual`. It is not deleted, but the new install cannot read it. Events, venues and organizers are EmDash content and are not affected.
|
|
57
|
+
|
|
58
|
+
What stays behind, and what to do:
|
|
59
|
+
|
|
60
|
+
- **Settings.** Select the collections again under **Event settings** (or with the `updateSettings` tool), and set the default time zone again.
|
|
61
|
+
- **Calendar subscribers.** The subscription address contains the plugin ID. Anyone subscribed to `/_emdash/api/plugins/eventual/calendar` gets "not found" once the old install is removed, and their calendar app stops updating without telling them. Update the links on your pages before the move, and tell regular subscribers the new address, or keep the old address working with a redirect on your site.
|
|
62
|
+
- **Calendar state.** Update counters (`SEQUENCE`) start again from 0, and cancellations already sent are not sent again. Calendar apps that re-read the subscription are not affected; an event a visitor imported as a single `.ics` file may not update.
|
|
63
|
+
- **Old events stored inside the plugin** (from before 0.13): migrate them to a collection first, as in [upgrading](upgrade-0.13.0.md).
|
|
64
|
+
|
|
65
|
+
Registrations and Tickets keep much more under their own IDs (registrations, orders, signing keys, payment settings). Read their guides before moving them.
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
Source tooling needs Node 24+. Peer ranges are in [package.json](../package.json); release acceptance uses EmDash/Admin/Block Kit **1.2.0 and 1.4.0**, Astro 7.3.x/7.4.x and React 19. The source `@vermeulen.solutions/eventual/install` lane is tested on 1.2.0, 1.4.0, 1.5.0 and 1.6.0. It refuses only hosts older than 1.2.0; a newer untested host builds with a warning, and an editor adapter that no longer matches the admin build steps aside (with a warning) so EmDash's own editor is used. Registry installs never execute that transform.
|
|
69
|
+
|
|
70
|
+
| Host | Status | Notes |
|
|
71
|
+
| --- | --- | --- |
|
|
72
|
+
| 1.2.0 | supported, unit-tested | Panel Enter/validation is scoped to the outer content-editor form; Cloudflare cross-isolate plugin mutations can fail. |
|
|
73
|
+
| 1.3.x | supported, untested | Same form/Cloudflare limitations; includes the plugin-storage cursor fix. |
|
|
74
|
+
| 1.4.x | supported, full acceptance | Recommended. Fixes nested Block Kit forms and Cloudflare plugin mutations. |
|
|
75
|
+
| 1.5.x | supported, host-tested | 1.5.0 passes the native-site and plugin integration suites; the admin adapter recognises its editor panel. |
|
|
76
|
+
| 1.6.x | supported, host-tested | 1.6.0 passes the browser acceptance on a fresh site with the sandbox runner 0.9.8; both admin adapters apply to its builds. |
|
|
77
|
+
| newer | allowed with a warning | Not yet tested. Check the event editor after upgrading. |
|
|
78
|
+
|
|
79
|
+
## Public routes
|
|
80
|
+
|
|
81
|
+
Routes are relative to `/_emdash/api/plugins/<pluginId>/`.
|
|
82
|
+
|
|
83
|
+
| Route | Inputs and behavior |
|
|
84
|
+
| --- | --- |
|
|
85
|
+
| `GET publicEvents` | Inclusive `from`/`through` dates (YYYY-MM-DD); default UTC today through 180 days later; maximum 366 inclusive dates. Also `locale`, `strict` (false), `category`, `publicUrls` (true). |
|
|
86
|
+
| `GET calendar` | Raw text/calendar; fixed window from UTC today through 365 days later. Supports locale, strict and category. |
|
|
87
|
+
| `GET calendar?eventId=…` | The same format for one event: its upcoming dates, or one date with an occurrence ID (`<id>#<date>`, as in the JSON feed). The entry is chosen by its ID, so no `locale` is needed. Same UID as in the subscription. 404 when the event is unknown, unpublished or over. |
|
|
88
|
+
| `GET publicEventImage?eventId=…` | Published featured image with MIME/size checks; absent, unpublished or disabled legacy images return 404. |
|
|
89
|
+
|
|
90
|
+
`strict=true` omits events without the requested translation; false can use another language with a `[FR]`/`[EN]` title prefix. Categories match without case sensitivity. `publicUrls=false` skips native canonical-URL lookups; slug/id remain available for site-owned links.
|
|
91
|
+
|
|
92
|
+
JSON success:
|
|
93
|
+
|
|
94
|
+
```json
|
|
95
|
+
{"success":true,"data":{"ok":true,"from":"2026-11-01","through":"2026-11-30","events":[]}}
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
The feed has no top-level locale. Event rows carry title, description/plain text, optional descriptionBlocks, start/end, allDay, timezone, location, organizer, externalUrl, imageUrl, categories, venue and directionsUrl. Optional native metadata includes locale, translationGroup, slug and publicUrl. Business status is `status`, not `eventStatus`: see [PublicEvent](../src/public-event.ts). All-day end dates are inclusive here and exclusive in ICS.
|
|
99
|
+
|
|
100
|
+
Handle both `success:false` host failures and `data.ok:false` plugin failures. EmDash 1.2.0 JSON configuration/RPC failures use HTTP 400, ROUTE_ERROR and private/no-store caching. Preserve errors instead of substituting stale rows or a successful empty feed.
|
|
101
|
+
|
|
102
|
+
## Astro integration
|
|
103
|
+
|
|
104
|
+
`fetchPublicFeed(origin, from, through, category, {locale, strict, publicUrls, pluginId})` from `@vermeulen.solutions/eventual/astro` validates responses and throws FeedError. **On a Registry install, pass `pluginId`** (since 0.15.0); without it the helper requests `eventual` and the host answers "Plugin route not found":
|
|
105
|
+
|
|
106
|
+
```ts
|
|
107
|
+
import { fetchPublicFeed } from '@vermeulen.solutions/eventual/astro';
|
|
108
|
+
|
|
109
|
+
const pluginId = import.meta.env.EVENTUAL_PLUGIN_ID ?? 'eventual';
|
|
110
|
+
const feed = await fetchPublicFeed(Astro.url.origin, '2026-11-01', '2026-11-30', '', { pluginId, locale: 'fr' });
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
The [showcase](../examples/astro-events/README.md) reads the same ID from `EVENTUAL_PLUGIN_ID`. To skip the HTTP round trip on the same host, call EmDash's SSR dispatcher with the same ID:
|
|
114
|
+
|
|
115
|
+
```ts
|
|
116
|
+
const url = new URL(`/_emdash/api/plugins/${pluginId}/publicEvents`, Astro.url);
|
|
117
|
+
url.searchParams.set('from', '2026-11-01');
|
|
118
|
+
url.searchParams.set('through', '2026-11-30');
|
|
119
|
+
url.searchParams.set('locale', 'fr');
|
|
120
|
+
const runtime = Astro.locals.emdash;
|
|
121
|
+
if (!runtime) throw new Error('EmDash is unavailable');
|
|
122
|
+
const result = await runtime.handlePublicPluginApiRoute(
|
|
123
|
+
pluginId, 'GET', '/publicEvents', new Request(url),
|
|
124
|
+
);
|
|
125
|
+
if (!result.success) throw new Error(result.error?.message ?? 'Event feed unavailable');
|
|
126
|
+
// Validate result.data.ok and result.data.events before rendering.
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
Each feed event carries `calendarLinks` (Google, Outlook, Office 365 and `.ics`), already built with the installed ID. The `.ics` link downloads that event only (`calendar?eventId=…`); before 0.18.5 it returned the whole calendar. `buildCalendarLinks(event, siteUrl, pluginId)` builds the same links on your side and takes the ID as its third argument.
|
|
130
|
+
|
|
131
|
+
`@vermeulen.solutions/eventual/astro/EventList.astro` is an optional unstyled list. JSON-LD helpers are eventToJsonLd and serializeJsonLd; use the safe serializer. The [showcase](../examples/astro-events/README.md) supplies seven complete visitor layouts.
|
|
132
|
+
|
|
133
|
+
## Settings, tools and transfer
|
|
134
|
+
|
|
135
|
+
Tools `getSettings` and `updateSettings` use `mcp/settings/get` and `mcp/settings/update`. **updateSettings requires defaultTimezone**, even when only changing legacyReads. Read and retain its value first:
|
|
136
|
+
|
|
137
|
+
```json
|
|
138
|
+
{"defaultTimezone":"Europe/Paris","legacyReads":false}
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
Optional collections contains `{events,venues,organizers}`. Native timezone defaults belong to the schema. Only stored boolean true enables legacy public reads. Native collections stay authoritative; broken explicit bindings always error. Both MCP and admin `save-legacy-reads` invalidate the request memo.
|
|
142
|
+
|
|
143
|
+
**Agent tools are off after installation.** To turn them on, open **Plugins** in the EmDash admin, expand the details of **Eventual RSVP – Core** and switch on **Agent access**. Tool names start with the installed plugin ID (`<pluginId>__listEvents`). Eventual tools require plugins:manage; native editing uses core content tools and content:edit_any. Read tools: listEvents, getEvent, listOccurrences, listVenues, listOrganizers. Legacy writes are blocked once native collections are active. [Tool schemas](https://github.com/Vermeulen-Solutions/eventual-rsvp-core/blob/main/src/mcp-schemas.ts) define exact inputs/routes.
|
|
144
|
+
|
|
145
|
+
exportRecords follows cursors (default 5, maximum 10). Native native-content-v1 exports are inspection records, not full backups or legacy-import input. previewImport/importRecords accept legacy data only: at most 10 rows / 64 KiB, insert absent IDs, and import events as drafts. The [@vermeulen.solutions/eventual/transfer interface](../transfer/index.d.mts) supplies legacy backup/copy/CSV/ICS helpers. CSV needs stable source IDs and explicit-offset timed dates; all-day ends are inclusive. ICS conversion accepts standalone UTC or VALUE=DATE events and rejects unsupported recurrence/timezone constructs. Media, settings, revisions and calendar-state recovery need the host's backup facilities.
|
|
146
|
+
|
|
147
|
+
## Limits and checks
|
|
148
|
+
|
|
149
|
+
The host's ten-bridge-call budget can constrain feeds, dependency checks and migration even with few displayed events. Smaller date windows or publicUrls=false help some JSON requests; complete-source scans still cost calls. Native exceptions/occurrence copy are bounded at 500 items; calendar group/state/output bounds also apply and fail explicitly. Background migration jobs and bulk APIs remain pending: [Eventual #5](https://github.com/Vermeulen-Solutions/eventual-rsvp-core/issues/5), [EmDash #4004](https://github.com/emdash-cms/emdash/issues/4004).
|
|
150
|
+
|
|
151
|
+
Calendar UIDs, monotonic SEQUENCE and 366-day cancellation retention support reconciliation. Preserve migrated calendar_uid values. Publication shares schedule fields across languages; pending drafts stay separate. Stale-form checks are not an atomic write lock. Some settings copy remains English in the French admin; stock development-renderer diagnostics are recorded in acceptance.
|
|
152
|
+
|
|
153
|
+
Runtime checks: npm run validate, typecheck, build, bundle, budget, and npm test. Tooling/package/editor/media changes have test:tooling, test:package, test:editor and registry:media checks. `node scripts/audit-documentation.mjs` checks local links and Registry section caps. Publishing uses the pinned CLI; immutable releases and current profile/release CIDs need separate approvals. [Release evidence](../audit/releases/0.14.0/README.md).
|
package/docs/history.md
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
# History and release evidence
|
|
2
|
-
|
|
3
|
-
Current instructions are [using Eventual](user-guide.md), [setup](collection-setup.md), [upgrading](upgrade-0.13.0.md) and the [developer guide](
|
|
4
|
-
|
|
5
|
-
The [0.14.1 acceptance record](../audit/releases/0.14.1/README.md) covers the EmDash 1.2.0/1.4.0 compatibility release, the local test-site native gate, and the packed-consumer editor acceptance. It is not a publication record.
|
|
6
|
-
|
|
7
|
-
The [0.14.0 acceptance record](../audit/releases/0.14.0/README.md) retains publication-time CIDs, checksums, verification and BBHC deployment evidence. Its figures and signed records describe that release, not a fresh build of today's documentation. Listing-documentation updates can change the profile CID while the versioned release remains unchanged.
|
|
8
|
-
|
|
9
|
-
Older release notes, prototype instructions, implementation plans and handovers remain available in the [documentation snapshot before consolidation](https://github.com/Vermeulen-Solutions/eventual-rsvp-core/tree/9bd38934de72c562639093e38a56fe6b3e3e2818/docs). They are historical evidence, not installation instructions:
|
|
10
|
-
|
|
11
|
-
- [0.13.0 native-content release](https://github.com/Vermeulen-Solutions/eventual-rsvp-core/blob/9bd38934de72c562639093e38a56fe6b3e3e2818/docs/release-notes-0.13.0.md).
|
|
12
|
-
- [EmDash 1.0.1 editor-adapter runbook](https://github.com/Vermeulen-Solutions/eventual-rsvp-core/blob/9bd38934de72c562639093e38a56fe6b3e3e2818/docs/editor-upgrade.md); the current plugin uses EmDash 1.2+ without that adapter.
|
|
13
|
-
- [0.14.0 pre-release audit](https://github.com/Vermeulen-Solutions/eventual-rsvp-core/blob/9bd38934de72c562639093e38a56fe6b3e3e2818/docs/0.14.0-audit-handover.md); acceptance later repaired weekday translations and published the release.
|
|
14
|
-
- [RPC implementation proposal](https://github.com/Vermeulen-Solutions/eventual-rsvp-core/blob/9bd38934de72c562639093e38a56fe6b3e3e2818/docs/sandbox-rpc-implementation-plan.md); proposed background jobs and capacity targets are not implemented guarantees.
|
|
15
|
-
|
|
16
|
-
The unsupported prototype/private-form and two-package installation proposals are retired. Current limitations and open API work are summarized in the developer guide, rather than repeated across handovers.
|
|
1
|
+
# History and release evidence
|
|
2
|
+
|
|
3
|
+
Current instructions are [using Eventual](user-guide.md), [setup](collection-setup.md), [upgrading](upgrade-0.13.0.md) and the [developer guide](developer-guide.md). [CHANGELOG](../CHANGELOG.md) summarizes earlier versions.
|
|
4
|
+
|
|
5
|
+
The [0.14.1 acceptance record](../audit/releases/0.14.1/README.md) covers the EmDash 1.2.0/1.4.0 compatibility release, the local test-site native gate, and the packed-consumer editor acceptance. It is not a publication record.
|
|
6
|
+
|
|
7
|
+
The [0.14.0 acceptance record](../audit/releases/0.14.0/README.md) retains publication-time CIDs, checksums, verification and BBHC deployment evidence. Its figures and signed records describe that release, not a fresh build of today's documentation. Listing-documentation updates can change the profile CID while the versioned release remains unchanged.
|
|
8
|
+
|
|
9
|
+
Older release notes, prototype instructions, implementation plans and handovers remain available in the [documentation snapshot before consolidation](https://github.com/Vermeulen-Solutions/eventual-rsvp-core/tree/9bd38934de72c562639093e38a56fe6b3e3e2818/docs). They are historical evidence, not installation instructions:
|
|
10
|
+
|
|
11
|
+
- [0.13.0 native-content release](https://github.com/Vermeulen-Solutions/eventual-rsvp-core/blob/9bd38934de72c562639093e38a56fe6b3e3e2818/docs/release-notes-0.13.0.md).
|
|
12
|
+
- [EmDash 1.0.1 editor-adapter runbook](https://github.com/Vermeulen-Solutions/eventual-rsvp-core/blob/9bd38934de72c562639093e38a56fe6b3e3e2818/docs/editor-upgrade.md); the current plugin uses EmDash 1.2+ without that adapter.
|
|
13
|
+
- [0.14.0 pre-release audit](https://github.com/Vermeulen-Solutions/eventual-rsvp-core/blob/9bd38934de72c562639093e38a56fe6b3e3e2818/docs/0.14.0-audit-handover.md); acceptance later repaired weekday translations and published the release.
|
|
14
|
+
- [RPC implementation proposal](https://github.com/Vermeulen-Solutions/eventual-rsvp-core/blob/9bd38934de72c562639093e38a56fe6b3e3e2818/docs/sandbox-rpc-implementation-plan.md); proposed background jobs and capacity targets are not implemented guarantees.
|
|
15
|
+
|
|
16
|
+
The unsupported prototype/private-form and two-package installation proposals are retired. Current limitations and open API work are summarized in the developer guide, rather than repeated across handovers.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# Eventual RSVP – Core 0.18.
|
|
1
|
+
# Eventual RSVP – Core 0.18.6
|
|
2
2
|
|
|
3
|
-
Requires EmDash **>=1.2.0 <2.0.0
|
|
3
|
+
Requires EmDash **>=1.2.0 <2.0.0**; tested on 1.2.0, 1.4.0, 1.5.0 and 1.6.0. **1.4.0 or newer is recommended** for nested forms and Cloudflare plugin mutations, and required for the optional cache integration.
|
|
4
4
|
|
|
5
|
-
In **Plugins → Registry**, find **Eventual RSVP – Core** by **vermeulen.solutions**, review permissions and install or update.
|
|
5
|
+
In **Plugins → Registry**, find **Eventual RSVP – Core** by **vermeulen.solutions**, review permissions and install or update. 0.18.6 needs no new permissions; since 0.18.0 Core uses `network:request` to `cdn.jsdelivr.net` for the admin's language packs. Agent tools stay off until you expand the plugin under **Plugins** and switch on **Agent access**.
|
|
6
6
|
|
|
7
7
|
Open **Event settings**, select compatible event, venue and organizer collections, then **Save settings**. Installation does not create schemas or migrate content. Site builders: [collection setup](https://github.com/Vermeulen-Solutions/eventual-rsvp-core/blob/main/docs/collection-setup.md).
|
|
8
8
|
|
|
@@ -10,4 +10,4 @@ Save an announcement, open **Dates, venue & repeat**, save changed sections, rel
|
|
|
10
10
|
|
|
11
11
|
Keep **Show old events saved inside the plugin** off for native collections. Enable it only to serve legacy plugin data without a connected collection. Upgrades from 0.12.x or earlier need a backup and [native migration](https://github.com/Vermeulen-Solutions/eventual-rsvp-core/blob/main/docs/upgrade-0.13.0.md).
|
|
12
12
|
|
|
13
|
-
Your site builder connects visitor pages, optionally with the npm helpers `@vermeulen.solutions/eventual` at the same version. **Caching stays opt-in**: Core supplies dependencies and a maximum 15-second expiry, not site-wide cache rules. Use matching
|
|
13
|
+
Your site builder connects visitor pages, optionally with the npm helpers `@vermeulen.solutions/eventual` at the same version. Feed addresses contain an `r_…` plugin ID: copy them from **Subscribe** on the Eventual RSVP page. **Caching stays opt-in**: Core supplies dependencies and a maximum 15-second expiry, not site-wide cache rules. Use matching helpers, explicit eligibility and no stale serving. Read the [integration guide and host limitations](https://github.com/Vermeulen-Solutions/eventual-rsvp-core/blob/main/docs/public-feed-caching.md) before enabling it.
|
|
@@ -24,4 +24,4 @@ Existing 0.13.x native schemas need no migration. Earlier versions require the [
|
|
|
24
24
|
|
|
25
25
|
The setting is `legacyReads` in `getSettings`/`updateSettings`; the admin action is `save-legacy-reads`. Stored values enable reads only when strictly boolean `true`, and both save paths invalidate the request memo. The gate covers JSON, calendar reconciliation and subscriptions; disabled legacy images return 404. Administrative inspection, migration and legacy write tools retain their existing permissions.
|
|
26
26
|
|
|
27
|
-
Acceptance restored French weekday labels and refreshed the settings screenshot. See [using Eventual](user-guide.md), [developer integration](
|
|
27
|
+
Acceptance restored French weekday labels and refreshed the settings screenshot. See [using Eventual](user-guide.md), [developer integration](developer-guide.md) and the [release evidence](../audit/releases/0.14.0/README.md).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Eventual RSVP – Core 0.18.4 — npm install fix
|
|
2
|
-
|
|
3
|
-
- **The npm package no longer pins Block Kit.** `@vermeulen.solutions/eventual` now declares `@emdash-cms/blocks` as an optional peer dependency (`>=1.2.0 <2.0.0`) instead of requiring exactly 1.4.0. Eventual only uses its types, so a site gets the Block Kit its EmDash version brings. Sites on EmDash 1.5 with `@emdash-cms/cloudflare` 1.5.0 needed an npm or pnpm override to install 0.18.3; they can remove it.
|
|
4
|
-
- **Nothing else changes**: no runtime, permission or schema changes, and no new MCP tools. Registry installs behave exactly as 0.18.3. EmDash `>=1.2.0 <2.0.0` (tested on 1.2.0, 1.4.0 and 1.5.0).
|
|
1
|
+
# Eventual RSVP – Core 0.18.4 — npm install fix
|
|
2
|
+
|
|
3
|
+
- **The npm package no longer pins Block Kit.** `@vermeulen.solutions/eventual` now declares `@emdash-cms/blocks` as an optional peer dependency (`>=1.2.0 <2.0.0`) instead of requiring exactly 1.4.0. Eventual only uses its types, so a site gets the Block Kit its EmDash version brings. Sites on EmDash 1.5 with `@emdash-cms/cloudflare` 1.5.0 needed an npm or pnpm override to install 0.18.3; they can remove it.
|
|
4
|
+
- **Nothing else changes**: no runtime, permission or schema changes, and no new MCP tools. Registry installs behave exactly as 0.18.3. EmDash `>=1.2.0 <2.0.0` (tested on 1.2.0, 1.4.0 and 1.5.0).
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Eventual RSVP – Core 0.18.5 — links on Registry installs
|
|
2
|
+
|
|
3
|
+
- **Subscribe links work on Registry installs.** A plugin installed from the EmDash Registry is addressed by a generated ID that starts with `r_`, not by `eventual`. The **Subscribe** links on the Eventual RSVP admin page (calendar subscription and JSON feed) still used `eventual` and answered "Plugin route not found" on those sites. They now use the installed ID, so they also show a site builder the exact addresses to use. ([#7](https://github.com/Vermeulen-Solutions/eventual-rsvp-core/issues/7))
|
|
4
|
+
- **Per-event `.ics` links too.** The `calendarLinks.ics` address that the public feed gives for each event had the same fault. Pages that render it (for example `EventList.astro` with `showCalendarLinks`) get a working link after the update, without a code change.
|
|
5
|
+
- **The per-event `.ics` link downloads that event only.** It used to return the whole year's calendar, because the `calendar` route ignored `eventId`. Now `calendar?eventId=<id>` returns one event: every upcoming date of a repeating event, or one date with an occurrence ID (`<id>#<date>`). The link from a translated page gives that translation. The event keeps the UID it has in the subscription, so subscribers do not get a duplicate. An unknown, unpublished or past event answers 404. The subscription itself is unchanged.
|
|
6
|
+
- **Helpers on npm:** `buildCalendarLinks(event, siteUrl, pluginId)` takes the plugin ID as an optional third argument. The Astro showcase reads it from the new optional `EVENTUAL_PLUGIN_ID` setting.
|
|
7
|
+
- **Clearer documentation** ([#8](https://github.com/Vermeulen-Solutions/eventual-rsvp-core/issues/8)): the [developer guide](developer-guide.md) has a new file name and starts with versions and where to get them. It warns against the unrelated npm package `eventual`, explains what goes wrong with two backends on one site, and says where to turn on agent tools.
|
|
8
|
+
- **Nothing else changes**: no permission or schema changes, and no new MCP tools. Config-managed installs keep the ID `eventual` and behave exactly as 0.18.4. EmDash `>=1.2.0 <2.0.0` (tested on 1.2.0, 1.4.0 and 1.5.0).
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Eventual RSVP – Core 0.18.6 — EmDash 1.6 and moving to the Registry
|
|
2
|
+
|
|
3
|
+
- **Tested on EmDash 1.6.0.** Sites that install Core from npm with the source installer no longer get an "untested version" warning on EmDash 1.6.0, and the editor adapters apply to its admin. Registry installs were already running on 1.6; they are now covered by the same browser acceptance.
|
|
4
|
+
- **Before moving a site from the config to the Registry,** read the new section in the [developer guide](developer-guide.md#moving-a-site-from-the-config-to-the-registry). A Registry install has a new plugin ID and starts with empty settings. Calendar subscribers' address contains that ID, so subscriptions to the old address stop updating unless you redirect it.
|
|
5
|
+
- **Nothing else changes:** no runtime, permission or schema changes, and no new MCP tools. EmDash `>=1.2.0 <2.0.0` (tested on 1.2.0, 1.4.0, 1.5.0 and 1.6.0).
|
package/emdash-plugin.jsonc
CHANGED
|
@@ -15,7 +15,10 @@
|
|
|
15
15
|
"installation": { "file": "./docs/registry-installation.md" },
|
|
16
16
|
"changelog": { "file": "./docs/registry-changelog.md" }
|
|
17
17
|
},
|
|
18
|
-
|
|
18
|
+
// Keep the repository's former address here. The Registry's package profile is linked to it,
|
|
19
|
+
// `emdash-plugin publish` refuses a release that names another one ("The package profile is
|
|
20
|
+
// linked to …"), and no CLI command changes that link. GitHub redirects it to eventual-rsvp-core.
|
|
21
|
+
"repo": "https://github.com/Vermeulen-Solutions/eventual-emdash-sandbox",
|
|
19
22
|
"release": {
|
|
20
23
|
"requires": { "env:emdash": ">=1.2.0 <2.0.0" },
|
|
21
24
|
"artifacts": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vermeulen.solutions/eventual",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://eventual.rsvp/",
|
|
6
6
|
"type": "module",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"src/schema",
|
|
48
48
|
"src/storage.ts",
|
|
49
49
|
"src/public-event.ts",
|
|
50
|
-
"docs/
|
|
50
|
+
"docs/developer-guide.md",
|
|
51
51
|
"docs/registry-installation.md",
|
|
52
52
|
"scripts/export-native-schema.mjs",
|
|
53
53
|
"scripts/upgrade-native-editor.mjs",
|
|
@@ -66,7 +66,9 @@
|
|
|
66
66
|
"docs/release-notes-0.18.1.md",
|
|
67
67
|
"docs/release-notes-0.18.2.md",
|
|
68
68
|
"docs/release-notes-0.18.3.md",
|
|
69
|
-
"docs/release-notes-0.18.4.md"
|
|
69
|
+
"docs/release-notes-0.18.4.md",
|
|
70
|
+
"docs/release-notes-0.18.5.md",
|
|
71
|
+
"docs/release-notes-0.18.6.md"
|
|
70
72
|
],
|
|
71
73
|
"scripts": {
|
|
72
74
|
"validate": "emdash-plugin validate",
|
|
@@ -1,80 +1,82 @@
|
|
|
1
|
-
import { safeHttpUrl } from "./venue";
|
|
2
|
-
export interface CalendarLinks {
|
|
3
|
-
google: string;
|
|
4
|
-
outlook: string;
|
|
5
|
-
office365: string;
|
|
6
|
-
ics: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export interface CalendarEventInput {
|
|
10
|
-
id: string;
|
|
11
|
-
title: string;
|
|
12
|
-
description?: string;
|
|
13
|
-
start: string;
|
|
14
|
-
end: string;
|
|
15
|
-
allDay: boolean;
|
|
16
|
-
timezone?: string;
|
|
17
|
-
location?: string;
|
|
18
|
-
locationType?: "physical" | "virtual" | "hybrid";
|
|
19
|
-
virtualUrl?: string;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Builds standard 1-click web calendar links for Google Calendar, Outlook Web,
|
|
25
|
-
* Office 365, and Apple/desktop iCal (.ics) download.
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
loc =
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
let
|
|
42
|
-
let
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
const
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
const
|
|
67
|
-
const
|
|
68
|
-
const
|
|
69
|
-
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
1
|
+
import { safeHttpUrl } from "./venue";
|
|
2
|
+
export interface CalendarLinks {
|
|
3
|
+
google: string;
|
|
4
|
+
outlook: string;
|
|
5
|
+
office365: string;
|
|
6
|
+
ics: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface CalendarEventInput {
|
|
10
|
+
id: string;
|
|
11
|
+
title: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
start: string;
|
|
14
|
+
end: string;
|
|
15
|
+
allDay: boolean;
|
|
16
|
+
timezone?: string;
|
|
17
|
+
location?: string;
|
|
18
|
+
locationType?: "physical" | "virtual" | "hybrid";
|
|
19
|
+
virtualUrl?: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Builds standard 1-click web calendar links for Google Calendar, Outlook Web,
|
|
25
|
+
* Office 365, and Apple/desktop iCal (.ics) download.
|
|
26
|
+
* Pass the installed plugin ID: Registry installs are addressed as `r_…`, not `eventual`.
|
|
27
|
+
* The `.ics` link downloads this event (all upcoming dates of a repeating one) from the `calendar` route.
|
|
28
|
+
*/
|
|
29
|
+
export function buildCalendarLinks(event: CalendarEventInput, siteUrl = "", pluginId = "eventual"): CalendarLinks {
|
|
30
|
+
const title = event.title || "Event";
|
|
31
|
+
const onlineUrl = safeHttpUrl(event.virtualUrl ?? "");
|
|
32
|
+
const details = [event.description || "", onlineUrl].filter(Boolean).join("\n\n");
|
|
33
|
+
|
|
34
|
+
let loc = event.location || "";
|
|
35
|
+
if (event.locationType === "virtual") {
|
|
36
|
+
loc = onlineUrl || loc;
|
|
37
|
+
} else if (event.locationType === "hybrid" && onlineUrl && loc) {
|
|
38
|
+
loc = `${loc} · ${onlineUrl}`;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
let googleDates: string;
|
|
42
|
+
let outlookStart: string;
|
|
43
|
+
let outlookEnd: string;
|
|
44
|
+
let isAllDayParam = "";
|
|
45
|
+
|
|
46
|
+
if (event.allDay) {
|
|
47
|
+
const startDate = event.start.slice(0, 10).replace(/-/g, "");
|
|
48
|
+
// In iCalendar/Google, the end date for all-day is exclusive (next day)
|
|
49
|
+
const endObj = new Date(event.end.slice(0, 10) + "T00:00:00Z");
|
|
50
|
+
endObj.setUTCDate(endObj.getUTCDate() + 1);
|
|
51
|
+
const endDate = endObj.toISOString().slice(0, 10).replace(/-/g, "");
|
|
52
|
+
googleDates = `${startDate}/${endDate}`;
|
|
53
|
+
outlookStart = event.start.slice(0, 10);
|
|
54
|
+
outlookEnd = endObj.toISOString().slice(0, 10);
|
|
55
|
+
isAllDayParam = "&allday=true";
|
|
56
|
+
} else {
|
|
57
|
+
const startUtc = new Date(event.start).toISOString();
|
|
58
|
+
const endUtc = new Date(event.end).toISOString();
|
|
59
|
+
const startCompact = startUtc.replace(/[-:]/g, "").replace(/\.\d{3}/, "");
|
|
60
|
+
const endCompact = endUtc.replace(/[-:]/g, "").replace(/\.\d{3}/, "");
|
|
61
|
+
googleDates = `${startCompact}/${endCompact}`;
|
|
62
|
+
outlookStart = startUtc;
|
|
63
|
+
outlookEnd = endUtc;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const enc = encodeURIComponent;
|
|
67
|
+
const google = `https://calendar.google.com/calendar/render?action=TEMPLATE&text=${enc(title)}&dates=${googleDates}&details=${enc(details)}&location=${enc(loc)}`;
|
|
68
|
+
const q = `path=/calendar/action/compose&rru=addevent&subject=${enc(title)}&body=${enc(details)}&location=${enc(loc)}&startdt=${enc(outlookStart)}&enddt=${enc(outlookEnd)}${isAllDayParam}`;
|
|
69
|
+
const outlook = `https://outlook.live.com/calendar/0/deeplink/compose?${q}`;
|
|
70
|
+
const office365 = `https://outlook.office.com/calendar/0/deeplink/compose?${q}`;
|
|
71
|
+
|
|
72
|
+
const eventBaseId = event.id.split("#")[0]!;
|
|
73
|
+
const icsPath = `/_emdash/api/plugins/${enc(pluginId)}/calendar?eventId=${enc(eventBaseId)}`;
|
|
74
|
+
const ics = siteUrl ? new URL(icsPath, siteUrl).href : icsPath;
|
|
75
|
+
|
|
76
|
+
return {
|
|
77
|
+
google,
|
|
78
|
+
outlook,
|
|
79
|
+
office365,
|
|
80
|
+
ics,
|
|
81
|
+
};
|
|
82
|
+
}
|