Manifest
The manifest is the static declaration of everything a plugin contributes: its identity, schemas,
scripts, views, providers and client surface. The server and kernel client import it directly, and
ryot plugin build validates it before anything else. This page lists every section and documents
the declarations that do not have their own page.
Authoring the manifest
Section titled “Authoring the manifest”@ryot-app/contract/modules/plugins/manifest owns the plugin authoring schemas and types. Wrap the
manifest in definePlugin, which preserves literal types while validating the strict authored
manifest, and default-export it from the module named by package.json exports["."].default.
import { CLIENT_API_VERSION, definePlugin } from "@ryot-app/contract/modules/plugins/manifest";
export default definePlugin({ metadata: { packageId: PLUGIN_PACKAGE_ID, name: catalogMessage("plugin.name"), description: catalogMessage("plugin.description"), version: "1.0.0", icon: "list-checks", }, hooks: [], crons: [], // ...every other required section, using [] when empty});- Required array sections use explicit empty arrays.
- Unknown fields are rejected.
scriptsis not authored; the build derives it (see Script discovery).- Manifest slugs use lowercase letters and numbers separated by
.,_or-./is reserved for path mapping.
Sections
Section titled “Sections”| Section | Required | Purpose | Reference |
|---|---|---|---|
metadata |
Yes | Permanent package ID, name, description, version and icon | Identity |
dependencies |
No | Importer-local aliases for other plugin packages | Dependencies |
configSchema |
Yes | Plugin-owned environment configuration | Configuration schema |
userSettingsSchema |
No | Non-secret per-user preferences rendered by the kernel | User settings |
scripts |
Derived | Build-derived sandbox entries and requirements | Script discovery |
providers |
Yes | Logical provider names, information and root entity schemas | Logical providers |
workflows |
Yes | Public workflow slugs | Checkpoint workflows |
operations |
Yes | Public user- or integration-authenticated operations | Operations |
hooks |
Yes | Before and after lifecycle hooks | Lifecycle hooks |
userBootstrap |
Yes | Per-user bootstrap entities or scripts for system and private plugins | User bootstrap |
memberships |
No | Relationships the kernel keeps from member entities to a bootstrap entity | Memberships |
crons |
Yes | Scheduled system-subject dispatches | Crons |
importSources |
Yes | Payload, single-file or named-file workflow inputs | Import sources |
httpRateLimits |
Yes | Deployment-global limits by normalized HTTP(S) origin | HTTP rate limits |
integrationProviders |
Yes | Push, sink or yank integrations | Ingestion setup |
oauthProviders |
No | Kernel-managed OAuth clients for integration settings (system plugins only) | OAuth providers |
entitySchemas |
Yes | Entities, events, editors, browse fields, user-data policy, merge identity | Data contracts |
relationshipSchemas |
Yes | Relationship endpoints, user-write ownership, retention and projections | Relationship schemas |
signalSchemas |
Yes | Signal audience, catalog and formatter definitions | Lifecycle hooks |
savedViews |
Yes | Plugin-owned saved views | Saved views |
queries |
No | Named RyotQL documents callers can run | Declared queries |
calendarSources |
No | Dated occurrences listed by the kernel calendar | Calendar sources |
signalSchedules |
No | Signals emitted when dated rows fall due | Signal schedules |
client |
No | Client exports, routes, entity registrations and assistant hints | Client entry |
Reference rules
Section titled “Reference rules”- All referenced scripts, workflows, providers and config keys must exist within the declaring package.
- Local declaration names can repeat across packages.
- Entity and relationship schema evolution is additive.
Relationship schemas
Section titled “Relationship schemas”User-write ownership
Section titled “User-write ownership”Set userWritePolicy: "source-owner" on structural relationship schemas when user-scoped writes must
require ownership of the source entity. The target may be global and visible.
- The rule covers creates, updates and deletes through HTTP, editors and returned changes.
- Authorized global provider writes keep their existing authority.
- Leave it omitted for personal annotations that may reference global sources.
- Enforcement uses both the pinned and the active schema, so an older execution cannot bypass an active ownership restriction.
Retention
Section titled “Retention”The kernel deletes unused provider entities. Set retention on a relationship schema to describe how
its global links affect that:
retention |
Meaning |
|---|---|
composition |
Links an entity to its parts, such as a course’s modules and lessons. All entities joined by these links are kept or deleted together. |
root |
A link of this schema keeps both endpoints, such as a provider’s trending marker. |
| Omitted | A reference. A kept entity keeps the directly linked entity, but not that entity’s other references or parts. When an unused neighbor is deleted, the kept entity’s related data is marked incomplete so the next foreground interest refetches it. |
User-scoped links, events and entity-id properties in user-owned data always keep an entity.
Projections
Section titled “Projections”Set projection: { propertiesSchema } on a relationship schema to keep derived, per-user values next
to each user-owned link, such as a library item’s status.
- The output schema is strict, has at most 20 fields and shares none with the relationship properties.
- The fold of the link’s source entity returns the values.
- RyotQL reads them through
relationship.projectionandrelationship.projectionStatus.
Client entry
Section titled “Client entry”client declares what the plugin’s client contributes. Client exports are stable names, each with an
entry under client/** (.ts or .tsx) and a kind:
| Kind | Used by |
|---|---|
page |
Routes, notFoundPage, entity detail pages and plugin-rendered saved views; declares a settingsSchema |
component |
Components other plugins import |
presentation |
Grid and list entity presentations |
analytics-section |
client.analyticsSections |
| Field | Rule |
|---|---|
apiVersion |
CLIENT_API_VERSION |
routes |
Map URL patterns to page exports |
entities |
Map owned schema slugs to a detail page and grid/list presentation exports. A grid or list presentation requires a presentation source. |
entities.*.createRoute |
One of the declared routes. The kernel library picker offers it for creation with the search text as the name search parameter. Other picks, and schemas without one but with a manifest editor, create inline. |
homeView |
A plugin-owned saved view slug, or null |
collectionPages |
Actions on kernel collection detail (see below) |
analyticsSections |
Named sections with name, icon, sortOrder and an analytics-section export |
assistantStarters |
Up to three example prompts that Ryo offers when a person starts a new chat. Keep each prompt specific to the plugin’s data. |
assistantInstructions |
Up to 2,000 characters of domain guidance added to Ryo’s system prompt while the plugin is installed, ready and visible, such as units, vocabulary and which capabilities answer common requests. Keep it factual; the kernel adds it under the package ID. |
A client entry must declare at least one export.
Collection pages
Section titled “Collection pages”collectionPages adds actions to the More actions menu on kernel collection detail. Each entry
names a label, icon, owned entitySchemaSlugs and a declared route containing a
$collectionId segment. The action appears only on collections that contain members of those
schemas, and opens the route with the collection’s ID in that segment.
Saved views
Section titled “Saved views”- Saved views do not carry legacy display mappings or sandbox scripts.
- Saved views declare table fields and selection controls; they do not embed card projections.
Entity-browser view settings declare a summary for compact kernel lists such as command-center
search:
| Field | Names |
|---|---|
image |
A projected managed-asset field, or null |
subtitle |
A projected field with a text, date, number, year or boolean display kind, or null |
- Table columns additionally support the
ratingdisplay kind: a nullable stored 0–100 rating shown in the viewer’s rating scale. - Installation rejects search, column and summary fields that the source query does not project.
- Filters and sorts come from the subject schemas’ browse fields, not view
settings. The view query’s
orderByis the default order.
Browse fields
Section titled “Browse fields”An entity schema may declare browse: { fields }: the filters and sorts every entity browser and
collection offers for its entities. Keys are unique per schema, match /^[a-z][A-Za-z0-9]*$/ and
avoid the reserved collections and name.
kind |
Declares |
|---|---|
value |
A typed filter with a RyotQL expression. Add sort to also offer it as a sort; list types cannot sort. |
sort |
A sort-only expression with the same sort metadata |
relationship |
The linked-entity filter shape |
session-event |
The session-event filter shape |
value field types are text, number, rating, date, boolean, enum, enum-list and
text-list. Enum types list unique choices. A rating expression is a stored 0–100 number:
browsers accept and summarize its bounds in the user’s rating scale (a three-point choice covers its
whole bucket) and offer range operators but not equality.
Sort metadata
Section titled “Sort metadata”{ kind: "value", key: "pages", type: "number", label: catalogMessage("property.pages"), expression: /* RyotQL expression over the "subject" alias */, sort: { label: catalogMessage("property.pages"), defaultDirection: "desc", ascending: catalogMessage("browse.sort.lowest-first"), descending: catalogMessage("browse.sort.highest-first"), },}labelnames the sort field independently of its filter label.defaultDirectionis"asc"or"desc".ascendinganddescendingare direction labels, such as “Lowest first” and “Highest first”.- Each field contributes one sort choice with a separate direction control.
- Field, choice and sort labels are manifest text (
catalogMessage("…"), see Messages); browsers receive them stamped with the plugin’s namespace.
Expressions
Section titled “Expressions”- Expressions read the browsed entity through the table alias
subject(BROWSE_SUBJECT_ALIAS) and may use correlated subqueries. - Their kind must match the field type (lists are JSON).
- Installation validates them with saved-view data-source access.
- Browsers rebase them onto their own query alias.
Fields shared across schemas
Section titled “Fields shared across schemas”- Schemas of one plugin that declare the same key form one field, so declare it with the same type, relationship direction or event shape on each.
- Where expressions differ, each entity reads its own schema’s expression. Entities whose schema lacks the field never match it and sort last.
- The same key from different plugins stays separate.
- Every browser also offers the Collections filter and a Name sort.
Calendar sources
Section titled “Calendar sources”calendarSources is optional; omitting it declares none.
| Field | Required | Meaning |
|---|---|---|
slug |
Yes | Local slug |
name |
Yes | Manifest text |
icon |
Yes | Icon name |
precision |
Yes | date for calendar days, instant for timed values |
subject |
Yes | The query alias of the occurrence’s entity and its schemas, as for entity-browser views |
query |
Yes | One RyotQL query body: from, optional where and joins, and a rows output with fields and optional include |
startAt |
Yes | A projected date field |
instantAt |
No | Date precision only: a projected field that supplies the occurrence time when non-null |
art |
No | A projected JSON field |
done |
No | A projected boolean field |
caption |
No | Row text from catalogRowText(key, params) |
The kernel owns ordering, paging and the calendar window, so a query cannot declare orderBy or
pagination.
Captions
Section titled “Captions”caption is row text: a catalog message whose every argument params binds to a projected field,
so queries yield codes and numbers, never English. The client renders it per occurrence. A row whose
bound value is not text or a finite number has no caption.
caption: catalogRowText("calendar-source.deadlines.caption", { kind: "kind" }),{ "calendar-source.deadlines.caption": "{kind, select, task {Task due} course {Course due} other {Due}}"}Timed rows
Section titled “Timed rows”- When a date-precision source’s
instantAtis non-null it supplies the occurrence time; otherwise the row usesstartAtas a calendar day. - A row’s
startAtmust lie within a day of itsinstantAt, because the window also boundsstartAtto read fewer rows. - The account reporting time zone determines how timed entries are grouped.
Validation and hiding
Section titled “Validation and hiding”- Installation validates the query with plugin-audience access, the field kinds, and that the
subject alias is an entity table.
selfreferences bind to the installed plugin. - Users can hide individual sources. Hidden state is per user, keyed by the exact plugin and source slug, and included in account backups.
Signal schedules
Section titled “Signal schedules”signalSchedules is optional. A schedule emits one of the plugin’s actor-audience signals when a
dated row becomes due for a subscribed user.
| Field | Required | Meaning |
|---|---|---|
slug |
Yes | Local slug |
signal |
Yes | One of the plugin’s signal schemas with an actor audience |
subject |
Yes | The query alias of the due row’s entity |
query |
Yes | A RyotQL query body shaped like a calendar source query; where decides eligibility |
dueAt |
Yes | A projected date field |
precision |
Yes | date or instant |
occurrence |
Yes | A projected text key that identifies the occurrence |
properties |
Yes | Maps signal properties to projected fields; null values are omitted |
instantAt |
No | Date precision only: supplies the due instant for timed rows. A row’s dueAt must lie within a day of it. |
delayDays |
No | Makes a row due that many days after dueAt |
freshness |
No | { maxAgeHours, confirmedAt }: defers rows whose confirmedAt is older than maxAgeHours |
entitlement |
No | Limits delivery to accounts holding that entitlement |
Query restrictions
Section titled “Query restrictions”- The query reads only
entity,relationshipandeventtables and never the clock (now,currentDate). The kernel owns the due window and evaluates a schedule again only when that data changes or a known row falls due. - Bound every
entityandrelationshiptable by its schema slug: compareentitySchemaSlugorrelationshipSchemaSlugwith literals inwhere, in an inner join condition, or in the table’s own left join condition. Otherwise a change to any global row re-evaluates the schedule for every subscriber.
Delivery
Section titled “Delivery”The kernel delivers each occurrence at most once per user on the user’s reporting-time-zone day, with two catch-up days; older rows are skipped. See the signal schedules module.
OAuth providers
Section titled “OAuth providers”oauthProviders declares kernel-managed OAuth clients that integration settings can connect
through. Private plugins cannot declare them (see
Execution authority).
clientIdConfigKeyandclientSecretConfigKeyname two different string fields ofconfigSchema; the secret field must be markedsecret.- An integration settings field with the
oauth-connectionformat must be a top-level string field naming a declared OAuth provider slug.