Eligian
v1.2.0Write Eligius presentations in Eligian: docs, operation cards, check, fmt, compile and smoke
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
eligian_brief
Start here for a new Eligian presentation, before writing any file: the brief interview. Actions: status (the user's idea verbatim as idea) returns the next round, at most 7 questions (max 1–20). Ask them in one message, each with your recommended answer worded so that yes accepts it; record the replies with answer: answers [{ id, value, delegated? }], value as canonical JSON of the item's shape, delegated: true when the user said "you decide". Look facts up yourself; ask only decisions. When state is complete, confirm: the user signs off in a dialog, else pass their reply verbatim as confir…
| Parameter | Type | Description |
|---|---|---|
action * | string | |
answers | array | |
confirmation | string | |
directory | string | |
idea | string | |
max | integer | |
paths | array | |
scope | ||
ticket | string |
eligian_docs
Eligian docs: the curated knowledge for writing Eligian (.eligian) and Eligius presentations. No arguments: the index (one card per chunk; examples by id and title; operations are not listed, `eligian_operations` has them). ids (at most 6): their cards; with detail: true their full bodies, up to 6,000 words per response, the rest listed in notReturned. query: the 8 best matching chunks with their cards. Unknown ids come back with the closest known ids. Read `syntax-cheatsheet` and `operations-index` before writing Eligian; never write it from memory.
| Parameter | Type | Description |
|---|---|---|
detail | boolean | |
ids | array | |
query | string |
eligian_operations
Look up Eligian operations BEFORE calling one you have not used yet: each card starts with NEEDS / PROVIDES / ERASES (the operationData an operation reads, writes and removes), then its parameters, the call form and the description. `names` batches lookups; an unknown name comes back with suggestions. Filters `query` (name contains), `category`, `needs` and `provides` intersect. `kind` lists the other names: `controller` (with status), `event` (timeline events), `dom-event`, `key`. `path` (an .eligian file) adds the host operations, controllers and functions its `extensions` import declares. N…
| Parameter | Type | Description |
|---|---|---|
category | string | |
kind | string | |
names | array | |
needs | string | |
path | string | |
provides | string | |
query | string |
eligian_check
Check Eligian (.eligian) files: every diagnostic of the compiler, Eligius lint and the review pass (controllers never removed, classes never removed). Run it after EVERY edit until it reports 0 errors and 0 warnings (`ok: true`). Each diagnostic carries its fix: `suggestions`, a `quickFix` (replace the 1-based range with `newText`), the source `excerpt`, and the cause + fix text of its `docs` overlay (inlined once per code). `paths` takes files, directories and globs under the project root. The defaults are stricter than the CLI `eligian check`: `lint: true`, `review: true`, `selectorNotInLayo…
| Parameter | Type | Description |
|---|---|---|
paths * | array | |
lint | boolean | |
maxWarnings | integer | |
review | boolean | |
selectorNotInLayout | string |
eligian_fmt
Format Eligian (.eligian) files with the rules of the editor and `eligian fmt`. By default this only checks: each file reports `formatted` and, when it is not, a `lineDiff` of the lines that would change; nothing is written. With `write: true` the unformatted files are rewritten in place and `written` lists their absolute paths (files already formatted are left alone and not listed). A file with syntax errors gets `error` and is never written: fix it first (`eligian_check` names the problem). `paths` takes files, directories and globs under the project root; formatting changes whitespace only,…
| Parameter | Type | Description |
|---|---|---|
paths * | array | |
write | boolean |
eligian_init
Scaffold a new Eligian presentation project from a starter template (blank, chapters, video, library) in a directory: main.eligian, layout, CSS, locales, package.json, plus the agent files of each client. client: claude, cursor, vscode, codex (default ["claude"]): claude gets .mcp.json and CLAUDE.md, cursor .cursor/mcp.json and .cursor/rules/eligian.mdc, vscode .vscode/mcp.json and .github/copilot-instructions.md, codex .codex/config.toml, and every client the AGENTS.md block; agents: false writes none. Existing agent files are merged: only the eligian server entry and the marked eligian block…
| Parameter | Type | Description |
|---|---|---|
directory * | string | |
template * | string | |
agents | boolean | |
client | array | |
force | boolean | |
title | string |
eligian_compile
Compile an Eligian (.eligian) program and inspect the Eligius JSON config it produces, with the Eligian map back to the source. `view`: `summary` (default without `select`: timelines with their source names, durations and action counts, the named / event action names, the operation counts, the controllers, the JSON size), `fragment` (default with `select`: one timeline by name, one named or event action by name, or the innermost action around a source `line`; no ids, each action with its `source` file / line / column) or `full` (the whole config, ids kept). `includeMap: true` adds the Eligian…
| Parameter | Type | Description |
|---|---|---|
path * | string | |
explain | boolean | |
includeMap | boolean | |
response_format | string | |
select | object | |
view | string |
eligian_project
The project inventory of an Eligian program: the css classes and ids, layout ids and classes, the selectors it may use, locales (languages, keys), host names, assets problems, files, outline and STORYBOARD.md counts. `path` is an entry .eligian file or a directory (every program under it gets a section; library files are listed under `files`). Read it before writing selectors or labels: `selectors` is what a selector may name (the CSS plus the layout HTML), `locales.keys` what a label may name. The `outline` lists the timelines (container, provider, `from`, compiled duration) with their events…
| Parameter | Type | Description |
|---|---|---|
path * | string | |
response_format | string |
eligian_smoke
Smoke-play Eligian programs at runtime: compile each file and play every timeline on the real Eligius engine (headless jsdom), then replay an optional scenario (click, key, seek, navigate, wait, snapshot) and check its assertions. It runs in a child process (`eligian smoke --format ndjson`). A full presentation can take 40 s or more: pass `paths` for one file, or `timelines` for a subset. After `timeoutMs` (default 45000) the child is stopped and the result holds what was played so far, with `partial: true`. `ok: true` means no runtime error and not partial; with `strict` (the default) a selec…
| Parameter | Type | Description |
|---|---|---|
paths * | array | |
assertions | array | |
determinism | boolean | |
response_format | string | |
scenario | ||
stepTimeoutMs | integer | |
strict | boolean | |
timelines | array | |
timeoutMs | integer |