Installation, versioning and changelog
Installation from the licensed catalog
The marketplace catalog is an allowlist served by the licensing server. Installation accepts a plugin name present in the catalog, not an arbitrary URL or local folder. The administrator opens the plugin marketplace, reviews the manifest metadata and compatibility requirements, and starts installation.
The host fetches the catalog over HTTPS with the installation licence token (revalidated with an ETag,
falling back to the last-good cache when offline). The locally evaluated licence plugin set filters what the
catalog shows: a plugin outside the licence is hidden, and installing or updating it is refused the same way
the server refuses it. Each payload is a tarball pinned by the catalog's sha256 and size, verified while
streaming; the archive listing is validated before extraction (regular files and directories under the plugin
name only, no symlinks or escapes), and the payload manifest name and version must match the catalog entry.
Catalog update status compares the installed manifest version with the validated catalog version, even when
an older payload remains cached. Listing downloads no payload; candidate preparation verifies its exact pin.
After parsing, loader, marketplace staging and update preflight call
validateManifestFolder(manifest, name, dir) in src/plugins/manifest.ts.
It requires the manifest name to equal the logical plugin folder name and returns the
resolved entry path only when it stays lexically within the directory. The expected name is
explicit because a staging directory can have a different basename. This check performs no
filesystem I/O and does not parse the manifest again. A mismatch or escape throws before import
or swap. Marketplace staging separately rejects symlinks and bounds file count and bytes;
preflight separately resolves real paths and requires both plugin and declared service entries
to be files inside the plugin tree. Preflight keeps the injected target-core parser and checks
the effective enabled baseline plus every replacement.
A catalog archive contains the plugin's runtime files only. The publisher's staging removes its top-level
src/, web-src/, embed-src/ and tests/ and minifies its runtime JavaScript file by file (keepNames
on, no bundling, no property mangling), so file paths and export names stay as published. Source maps and
original sources are not in the archive. elowen-plugin.json, i18n/, docs/ and README.md stay
readable. A customer plugin in the writable instance plugin root is loaded exactly as you built it; nothing
minifies or strips it.
The marketplace gates the downloaded candidate's consent and control dependencies before
queuing the pinned version and sha256. It rejects built-in plugin names, unsafe names,
malformed catalog entries, excessive plugin trees, a newer requiresCore or an
incompatible requiresSharedApi. A missing required control returns the existing dependency
error naming it and available providers. A consent refusal changes no executable files;
confirmation replays the same install or update with the returned acknowledgeGrants.
POST /plugins/marketplace/:name/install with optional enable and
acknowledgeGrants, POST /plugins/marketplace/:name/update with optional
acknowledgeGrants, and POST /plugins/marketplace/:name/repair with an empty body
return 202 { requestId, queued: true }. Install enables by default; enable:false
still uses the same restart and proof transaction but needs no enablement consent.
Any request also advances every other enabled plugin with a newer version in the same run, so a
shared-API bump moves the whole stale set at once; disabled plugins advance when they are enabled.
POST /plugins/marketplace/update with an optional acknowledgeGrants map keyed by plugin name
queues the update of every stale plugin in one request and returns 202 { queued: true, plugins }.
Only the independent update coordinator stages and replaces publisher-plugin code. It shares the core transaction: preflight with the target parser, stop the daemon, web and affected independent plugin sockets/services, record observed backups and the enablement delta, swap, start, prove, then publish receipts or roll the whole set back. Disabled plugins are proven by tree inventory; enabled plugins and their independent service starts must converge. There is no per-plugin pending-install record or daemon-side settlement. Bundled removal persists disablement and soft-removal together with cancellation of queued plugin work inside one plugin mutation lock. User uninstall cancels queued work before awaiting gateway and service shutdown.
Installed publisher identity is the receipt plus an unchanged tree, even when the running
manifest parser rejects it. Such a plugin remains Installed with its receipted version and
degraded reason, and Repair submits an explicit retry. Boot detects missing or unloaded
enabled receipted plugins after registry construction and queues repair without changing
files or appending journal intents. It never repairs customer plugins or queues during an
active non-terminal journal. A version that failed activation is not repaired automatically
again; offline, licence and consent refusals do not consume that activation guard.
Admin GET /system/update is the status authority for the queued request:
{ queue, journal, report }. The journal field is null once the journal reaches a terminal state.
Match the request id against journal operations or the report's
requests and per-plugin requestId; acceptance alone is not proof. Each per-plugin
outcome is one of applied, rolledBack (with a detail), needs-consent, not-licensed,
superseded, failed or skipped. The report state needsOperator marks a result that needs
operator attention. The coordinator rechecks consent and renewed entitlement; a catalog
pin that moved is superseded rather than replaced with different bytes.
Automatic selection plans against the core the transaction installs, or the running source
core for plugin-only runs. Catalog version pins the offered release and must match the payload manifest;
the description is publisher display metadata. A candidate whose requiresCore exceeds the
effective target is deferred as needs-newer-core. Unchanged baseline plugins, including
customer plugins, must parse on the target before services stop.
Versioning
Keep these axes separate:
- The daemon version is the core package version. It is the version compared by
requiresCorefor a manual install; an automatic update compares the core its transaction installs instead. - The plugin's
versionis its own release version. Bump it whenever installed bytes change. apiVersionis the exact breaking plugin API contract.requiresCoreis a minimum core version checked by registry installation.requiresSharedApiis an exact shared-helper contract checked before the entry is imported and during installation.web.requiresApiVersionand the browser registration'srequiresApiVersiontarget the browser runtime contract, currently 74 (PLUGIN_UI_API_VERSIONinpackages/plugin-ui-kit/index.js).
A new observational hook is additive: plugins that use it raise requiresCore, not
apiVersion (stays "2") and not the browser API (the PLUGIN_UI_API_VERSION axis, unrelated).
Do not use plugin version fields to communicate API compatibility. Update the plugin manifest and registry catalog together.
An artifact patch that only raises the plugin-API floor does not need an in-app note. Publish one only on the owner's explicit request for the selected audience; most releases ship none.
Shared API 16 authenticated API contracts
API 16 replaces string-only provides.apiRoutes with canonical security records
projected from each plugin's pure apiContract descriptors. Plugin handlers use the
same declared input schemas and credential policy; route-backed peer members retain
the authenticated HTTP actor. Manifest API remains "2". The exact shared gate
refuses API 15, future API 17 and missing declarations before entry import.
All eleven bundled manifests require core 0.30.47, the coordinated API 16
floor, and each has a patch bump over its preceding version. Released core 0.30.46
does not ship API 16 and the unchanged native minimum-version gate rejects it.
Registry and external plugins must declare API 16 and that same floor; migrate
the complete loaded set through the existing coordinator. Do not rewrite installed
manifests or released archives in place: their artifact hashes identify their bytes.
This cut needs no database migration. Catalog caches and archived-release metadata
keep their existing readers, not the current executable-manifest parser.
Source preparation leaves core package.json and its lock at the last released
version; only native core release preparation advances them. Bundled plugin patch
versions are prepared in source, not built or published by that metadata change.
Test actual-package admission with isNewer(floor, actualVersion) through the
native marketplace gate, and keep named synthetic 0.30.45 and 0.30.46 refusal
cases and 0.30.47 admission. Synthetic equality proves only the version gate,
not release readiness or a built/released artifact. Run the core generator with the
existing source resolver and --check-source to validate pure TypeScript contracts
without reading emitted plugin JavaScript; artifact parity remains a later gate.
Shared API 14 declared API patterns
Shared API 14 first shipped with package 0.11.0 and core 0.30.4.
Before the coordinated API 15 cut, the additive retry, retry-presentation and oauthCodeFlow
helpers retained API 14. A shared-API match does not guarantee new subpaths on an older package.
Current consumers declare API 16 and raise requiresCore to the actual core artifact shipping
all required helpers and contracts; build and validate against that core.
The native core release command assigns the artifact version; package metadata is
not proof that a matching core artifact has been built or released.
The UI kit's shared dependency is aligned with the workspace shared package.
Namespaced and root-mounted authenticated routes match only their complete declared
patterns. Replace remainder parsing with declared :name segments and read
req.params, which the host decodes once. List and item routes need separate
declarations and registrations. The catalog reports real patterns without a prefix marker.
Public /hooks routes retain their existing prefix behavior.
Every bundled, registry and external plugin now pins requiresSharedApi: 16, including plugins
without shared imports. Manifest apiVersion remains "2". The exact gate refuses API 15, future API 17 and
missing shared declarations before entry import. Declared tool profiles, host facets and control
grants require stored approval. At the first authority cut, core approves the current manifests
of enabled installed plugins once; disabled or absent plugins receive no grants, and subsequent
installs, enables and new declarations use the ordinary consent gates. No old inventory capture
is needed; see daemon construction.
Patch each registry artifact and update its manifest, catalog, README and test pins.
Update core and the loaded plugin set together through the existing coordinator;
there is no compatibility routing path.
Earlier shared-API releases
The shared-API number advanced release by release from 10 (shared package 0.7.0) to 14 (0.11.0);
The subsequent additive helpers kept 14 until the coordinated API 15 cut. Each step was a coordinated release in which bundled, registry
and external plugins moved their pin in the same update, and the exact gate refused the previous number
before the entry was imported, whatever the artifact's requiresCore floor said.
The contracts those levels introduced are part of API 16 and are documented where they are owned: the
awaited database seam, schema-qualified migrations, transaction-local handles and the draining helpers in
Persistence and caches, and the host stores, project files, ctx.timezone() and the
image runtime in PluginContext and workflow results.
An installed plugin pinned below 16 is refused until it is rebuilt against the matching shared package
and installed with its paired core in one coordinator transaction; the loader carries no aliases or
adapters for older numbers. Change the artifact patch of every affected plugin and keep its manifest,
registry catalog and README metadata identical. A registry check uses the selected candidate checkout's
shared package and SDK; when that checkout has no current built SDK the gate stays blocked, because
another checkout's dist cannot validate the candidate.
Shared API 13 coordinated PostgreSQL release
API 13 introduced the awaited database seam, schema-qualified migrations and transaction-local handles. These contracts remain part of API 16; their current owners are linked above.
Shared API 12 history
API 12 made StateStore writes asynchronous. Callers await committed writes; this contract remains part of API 16.
Shared API 11 coordinated release
API 11 moved binary Project transfers to the host Project-files seam and image runtime. The current contracts remain in API 16.
Shared API 10 coordinated release
API 10 removed earlier configuration-migration, embedding and checkpoint contribution paths. Current plugins use their owning host seams and the API 16 gate, not those retired paths.
Writing a changelog entry
The in-app What's new page (/p/changelog) contains curated news for people
using Chetty. Write or extend a note only when the owner explicitly asks and
selects its audience. A release or implementation request alone does not authorize
one. Without that request, offer Czech candidates instead; most releases have none.
User/admin candidates are significant visible features or UI changes that a person
can open and use. Developer candidates are an explicit editorial exception:
significant externally useful plugin/API authoring capabilities or required action,
with an actionable example or a developer-doc reference. This is not a second
technical changelog. Bug fixes, polish, plugin versions, internal mechanisms,
refactors, test/CI work and low-level fixes stay in CHANGELOG.md.
Write an authorized pending note in plugins/changelog/entries/unreleased.md,
with unreleased.cs.md and unreleased.sk.md beside it, and commit all three.
The page never lists pending files. Use YAML frontmatter with an audiences map;
each included audience has its own localized title and exactly one matching
container. Authors do not assign version, date or audience revision:
release preparation owns them.
This is a structural template, not an approved note:
---
audiences:
user:
title: "<Approved user title>"
admin:
title: "<Approved administrator title>"
---
:::audience user
<Approved user introduction and New / Improved / Changed items>
:::
:::audience admin
<Approved administrator introduction and New / Improved / Changed items>
:::
Add developer in the same map/container shape only when that audience's content
is explicitly requested. Omit absent audiences rather than adding empty shells.
There is no unscoped public prose and no legacy administrator-container syntax.
npm run release:prepare publishes at most one entry per UTC calendar day in
<version>{,.cs,.sk}.md. A later release that day merges affected audience
sections in New / Improved / Changed order, retains each audience's first title
and advances only its changed revision to the new artifact version. Other
audiences keep their titles, content and revisions: an admin-only addition must
not make a user card unread again. A newly added audience receives its own title
and revision. The daily filename and version can advance without changing the
stable day-<date> entry ID, existing item IDs or earlier asset folders.
The historical 0.29 overview retains its own identity; it is not a format for
new publications. Missing, uncommitted or structurally mismatched translations
stop preparation before writes. With no pending note, release preparation creates
no What's new entry.
Inside an audience, plugin-specific items may use :::plugin <manifest-id>
and a closing :::. Space-separated plugin IDs mean OR: any applicable plugin
makes the item visible. Plugin scopes may be inside an audience, but may not
nest in one another. Audience containers may not nest or repeat. A plugin item
needs a heading or bold bullet title for its pill row. Keep that item identity
unique across the day's audiences and aligned in every language, so a guide
link continues to reach the same item after a merge.
The daemon first authorizes the audience, then applies installed/loaded, enabled and per-account plugin grants, including for administrators:
user: readers admitted by the existing changelog route.admin: authenticated administrators only.developer: every authenticated human account, including non-admins. This is an editorial audience, not a role or a tool-grant proxy. Chatbot identities and open mode do not gain developer access; open mode is user-only and untracked.
An audience without substantive visible content has no card and contributes no unread count; headings alone are not content. The audience selector still includes authorized empty audiences. Ordinary human accounts have user and developer choices; administrators also have admin. Filtered titles, text, plugin labels and asset fingerprints never leave the daemon.
Within each audience, use an opening paragraph then optional New, Improved and Changed, in that order. There is no Fixed section. Czech headings are Novinky / Vylepšení / Co se mění; Slovak headings are Novinky / Vylepšenia / Čo sa mení. Write warmly with formal address in Czech and Slovak, without marketing or internal jargon. Name real app labels and link their locations when possible; write plugin changes as ordinary items without plugin versions. Developer guidance may use the technical terms necessary for an actionable example or developer-doc link.
Each item visible in the app needs exactly one inspected screenshot of the real
feature, either a crop or a wider capture with one arrow. Capture the English UI
in studio-light at 1440 px unless phone-only, using neutral fictional data.
Pending images go under entries/assets/unreleased/; embed the same image in
all languages with localized alt text. An item with no app surface may omit a
picture, with the exception recorded in the work report.
The loader and release preparation share the plugin-owned YAML parser, strict
Zod schema and Markdown block parser. Unknown audiences, duplicate/nested
audiences, unscoped prose, missing closes, malformed metadata and retired syntax
fail validation rather than becoming public text. Code fences protect literal
container examples. English owns structural metadata (version, date,
pinned, tags, audience revisions); locales translate titles, prose and alt
text while preserving audiences, plugin scopes, image references and stable item
identities. An existing malformed/incomplete translation is an error, not an
English/localized mixture. Missing complete locale files fall back to English.
Pinned entries sort first, then newest versions.
Release images use entries/assets/<version>/ and the existing
/plugins/changelog/api/asset/<version>/<file> route. Explicit
assets/<version>/<file> references retain that folder after a daily merge.
Supported types are png, jpg, jpeg, gif and webp, not SVG.
Before serving bytes, the daemon proves that an authorized localized or English
audience projection references that file and applies plugin grants. Missing and
forbidden images both answer 404. Detail metadata contains only referenced
authorized fingerprints; restricted assets use private, no-store, not shared
immutable caching.
Read state is a durable receipt for (account, entryId, audience), checked
against that audience's revision and reset generation, not a version high-water
mark. Listing and detail GETs never acknowledge reading. A card qualifies only
when its loaded body is expanded in the selected audience, the document is
visible, and its first real content block intersects the page viewport with
nonzero area. Headers, placeholders, collapsed/off-screen cards and background
tabs do not count. Successful POST seen stores
{entryId,audience,revision,resetGeneration} before badges change; failed writes
remain unread and show an explicit retry. This records display, not proof that
every sentence was read.
All unread cards in an audience open on first arrival; all-read audiences stay closed unless a visible deep link targets a card. A mounted page/account visit preserves manual toggles across audience switches, locale changes and refetches; the New marker stays as it was on arrival while live counts can decrease. New publications wait for the next visit, but permission revocations take effect immediately. A daily note can contribute two unread cards for an ordinary human, three for an administrator; the navigation badge sums eligible audience cards.
The selected audience is in the URL. Detail routes use the stable entryId,
not the artifact version. Guide results retain their day/item identities and
include explicit audience in links; guide lookups do not acknowledge reading.
An administrator's Readers panel lists currently eligible recipients of that
card/audience. A confirmed reset affects only that card/audience, increments its
generation and rejects old in-flight acknowledgements with 409. Stale revisions
also conflict. Reset does not unread newer days or other audiences, and a
same-visit reset is not immediately acknowledged again by that page.
Historical files are converted mechanically: formerly public content stays
user, formerly administrator-scoped content becomes admin, with the old
localized title reused for each. Preserve prose, scope, screenshots, dates,
tags/pins and guide IDs, including mixed historical introductions; do not invent
developer history. The receipt migration preserves only the old recorded
high-water semantics, not evidence of actual past viewing. It drops the old
marker table; rollback requires a matching pre-upgrade plugin schema/ledger
backup or deliberate forward repair, not an old-binary compatibility path.
Entry translation languages
plugins/changelog/lib/entries.mjs owns isEntryTranslationLanguage(lang),
the shared predicate for translated entry filenames and API locale normalization.
It accepts cs and sk; English uses the original Markdown file. An absent or
unsupported requested locale, or a missing complete locale file, uses the whole
English audience projection. An existing invalid variant fails validation.
The predicate is a private membership lookup with no I/O or registration cost.
Owning code and limits
- Parser and projection:
plugins/changelog/lib/entries.mjs; routes and asset authorization:lib/api.mjs; receipts and reset transactions:lib/db.mjs; guide links:lib/guideLinks.mjs. These paths are relative to the changelog plugin. Release preparation inscripts/release-prepare.mjsuses the same entry parser; no new core registration seam or account role is involved. - Real consumer: the bundled changelog page and its
navBadgesurface fact. Minimal authoring use is an explicitly requested pending note plus both translations, committed together before release preparation. - Absence: no pending note means no publication; an empty authorized audience stays selectable without a card. Open mode writes no read receipts.
- Limits: strict YAML and explicit audience/plugin structure, three supported authoring languages, five raster image types, no legacy parser or DTO adapter.
- Cost: files are parsed at plugin registration; content changes need a daemon
restart to load. Listings project eligible cards and read state; successful
visible cards write individual receipts. Reader/reset actions and image
requests recheck authorization. Detailed persistence and migration ownership
is in the plugin's
docs/developer/persistence.md.