Repository navigation
Releases
CMS Harness 0.5.1
Talk to it from anywhere, hand it files, share the back office
0.5 is about working with the assistant the way people already work: from the chat app on a phone, with a file dragged in, on an account you already pay for, and with a back office that several people can share without seeing each other's part.
0.5.1 is 0.5.0 with the Windows build put right: 0.5.0 did not compile there, so it has no Windows download. On Windows the chat cannot run through Claude Code yet (it needs Unix sockets) and says so when picked; every other model service works as elsewhere.
New
- Run it from a chat app. WeChat, Telegram, Feishu, DingTalk, WeCom, Slack, Discord, WhatsApp, LINE and QQ can be connected, in Settings → Chat apps or by telling the assistant "connect my WeChat". WeChat is a QR code to scan; Telegram is BotFather's token and a pairing code; for the others the page lists the steps in that platform's console, takes the values it gives, and hands back an address and a pairing code. A message sent there is a turn of the assistant as that admin, and publishing still waits for a yes, by a reply or a button. Only the one person who paired is listened to, and nothing said in a group is.
- Hand it files. Drag, paste or pick pictures, PDFs, Word, Excel, PowerPoint, text files and zips into the chat. A picture shows at once and fills in as it uploads; a PDF goes to a model that reads PDFs as the file, and otherwise its text is taken out. What cannot be read is said so, to you and to the model.
- Run the chat on an account you already have. Sign in with ChatGPT (OpenAI's own flow for open-source apps) and the chat runs on your plan, with no key. A Claude subscription works through the Claude Code installed and signed in on the server; the environment does no Claude login of its own.
- A top account, and admins with surfaces of their own. The account that made the environment is the top account: only it adds, resets and removes admins, and it can give an admin the surfaces they manage. Such an admin sees only those surfaces and the content their pages use, can change and publish records, and is not told that anything else exists: what is outside reads word for word as what is not there. Their assistant is held to the same. It is checked in the kernel, for the tools, publishing, requests, schedules, the preview and chat apps alike.
- Consent, three ways. Each publish by the assistant is a request card you approve; or you say "publish when done" in the conversation; or you tick the card's "from now on in this conversation"; or you turn on direct publishing for your account in Settings. A standing approval covers only what the assistant itself changed in that conversation, and stops once the conversation has read text from outside (a web page, something a visitor or member wrote). A direct publish can be taken back from its card.
- The sidebar reads like folders. Each surface is a folder that opens to the content its pages use, with the site's own sections inside it; what no surface uses yet is listed last.
- By hand, without learning. Hand edits on the canvas are listed and undone one by one. The site's navigation is a list of names and destinations. A new page is two fields. A surface or a kind of content can be made on the Environment page without the chat.
Safer
- A chat-app connection ends with its account: removal, reset, a new password, a restore.
- The address platforms call (
/_hc/chat/…) checks each platform's own signature before anything is read, refuses old requests sent again, and takes Feishu only wrapped with an Encrypt Key. - From a phone only words that say it publish ("同意", "发布", "yes"); "ok" answers the assistant's last question and nothing else.
- Names and language codes read back from the database are checked again before they reach SQL.
- The PDF, Excel and Word readers stop short on files made to fill memory or time.
- The TLS key file is private from the moment it is made, and an agent working with a key no longer uses up the same address's page views.
Notes for upgrading
- The database is migrated on start. The first builder of an existing environment becomes its top account, and from now on only the top account manages admins and takes or restores a backup in the back office. Other builders keep everything else.
cms-harness backupandrestoreon the server are unchanged. - An admin who is given surfaces loses the right to change pages, structure and settings, whatever their role: a template or a server function reads any collection.
- Chat apps follow each platform's published protocol and are tested against requests built as documented. What was checked against the real services: WeChat hands out a QR code, and every platform refuses made-up credentials. None has been connected end to end by a person yet; tell us what you find. The platforms that call in read text only for now, and need the environment's address to be reachable from the internet.
- A site with one surface now shows its content folded under "Site" in the sidebar instead of a flat list.
- The
?ask=hand-over to the chat is gone; the fit page posts a form instead. - Building from source needs Rust 1.98 or newer.
Details: README · SECURITY.md
Full Changelog: v0.4.0...v0.5.1
CMS Harness 0.5.0
Use 0.5.1 instead. It is the same release with the Windows build put right; 0.5.0 did not compile on Windows, so there is no Windows download here. What is new is described there.
CMS Harness 0.4.0
Ready for real use
0.4 is about running a site for real: on Postgres or SQLite, under its own domain with HTTPS, with an assistant that asks before anything goes live, can be left to do things at set times, and can call other companies' services without ever holding their keys.
New
- The assistant asks before it publishes. It sends a publish request: a card in the chat and a row on the Publish page, and a person decides. A standing approval, in the admin's own words, lets it publish directly.
- Things done at set times. "Every morning at 8, sum up yesterday's orders": a routine is an instruction the assistant carries out by itself at its time, then waits for a yes (or publishes, with a standing approval). The Environment page lists routines and their runs.
- SQLite or Postgres. Set
HC_DATABASE_URLand the whole environment is on Postgres; the first start moves everything across by itself, and back again. TLS to Postgres assslmodesays. The whole test suite passes on both. - Its own domain, HTTPS by itself.
HC_TLS=autoserves HTTPS on 443 and 80 with certificates from Let's Encrypt, renewed on their own. Each surface can be on its own subdomain (teacher.example.com) with one wildcard DNS record. - Outside services. In Settings → Outside services a builder registers a payment, text-message, map or AI service with its address and key. Functions call it with
services.call(name, path, …); the server puts the key on, sends only to that address, never into the private network, and takes the key out of the answer. Keys are stored encrypted and never shown again.services.sign,services.verifyandservices.hmacsign and check (Alipay RSA2, WeChat Pay, Alibaba Cloud, AWS SigV4, Tencent TC3) without the key leaving the server. A trial run sends nothing and signs nothing. - Bring in a project you have. Upload a built site or web app as a zip (or
wrap_project): it becomes a surface, its back-end calls point at the surface's functions, andcheck_endlists what is left to fill in. - Pages that follow the data. A list's
cursorand/changes?after=…(pulled, or streamed withEventSource) give what changed since, under the same read rules. - Change many records at once.
change_recordssets fields, runs a small script per record, deletes or hands records over, up to 10,000 in one batch, as drafts a person publishes with one click. Releases can be listed and undone. Every record has a version, and a change made on an old one is refused instead of overwriting. - Members upload files of their own (opened only by who may see the record), end every session, and change their password.
- Functions share code through imports, write up to 500 records in one call, read and set members' attributes, see the request as it was sent, and can be called by a timer. A function that only reads runs beside the others.
- Rules look further:
exists(…), a relation's fields (record.article.dept),now,todayandin. - Collections can keep no history and stay out of search (sensor readings, logs), take indexes over two or three fields, and list without counting (
total: false). - Notifications reach DingTalk, Slack, Discord, Telegram, Teams, Google Chat, Bark, ntfy, ServerChan and PushPlus too.
Faster
- Pages and API reads have database connections of their own and do not wait for writes.
- Answers are gzipped; a cached page asks the database nothing.
- Publishing reads and writes in batches: 20,000 drafts with a unique field, a relation and links went from 178 s to 5.3 s on Postgres, and from 2.2 s to 0.5 s on SQLite.
- A stream of logins no longer grows a small server's memory: on a 1-CPU, 256 MB server, two bursts of 300 login attempts, 64 at a time, peaked at 67 MB.
Notes for upgrading
- Building from source needs Rust 1.98 or newer. The database is migrated on start.
- The assistant now asks before publishing. Give it a standing approval in the chat if you want the old behaviour.
- Outside services' keys are encrypted with
HC_SECRET_KEY, or asecret.keythe server makes in its data folder. It is not in backups: take it along when moving to a new server, and give servers sharing one database the same one, or the keys must be entered again. HC_TLS=autoneeds ports 80 and 443 andHC_ORIGINset to thehttps://address.- The new notification formats follow each service's documentation and were not tried against live robots: use Send a test after adding one.
Details: README · SECURITY.md
Full Changelog: v0.3.1...v0.4.0
CMS Harness 0.3.1
A small release on top of 0.3.0.
Fixed
- The environment page says who may enter a surface as it is. A surface whose door is a condition (for example
member.kind == 'teacher') was listed as "open to everyone". The door itself was always right: only the label was wrong. The page now shows the condition. - The chat's Stop button no longer wraps onto two lines when the status beside it is long.
Also
- The README has a new banner, a new demo recorded on 0.3, and new screenshots.
- The release no longer waits for an Intel macOS build: the runner it needed is gone.
Full Changelog: v0.3.0...v0.3.1
CMS Harness 0.3.0
More than a website
0.3 turns the harness from a website with an admin into an environment: one program that holds the data, the back end, and a screen for each kind of user. Everything is still a draft until a person publishes it.
New
- Surfaces (端). The site is the first one. The assistant builds another for each kind of user (
/teacher/,/student/), each with its own pages and its own rule for who may enter, over data the whole environment shares. The system guards the door. - Server functions. A site file under
_fn/is code the server runs:_fn/order.jsanswers at/_fn/order. It runs in a sandbox (QuickJS) with no network, files or timers, with caps on time and memory, and one run is one transaction.run_functiontries a draft without writing anything. - Rules as conditions.
read,create,updateanddeleteon a collection take a keyword or a condition such asrecord.owner == member.id or member.kind == 'teacher'. A read rule also filters every list, total and search result. - Member attributes and token login. Members carry attributes a builder defines; rules, doors, pages and functions read them. Clients without cookies (mini programs, apps) log in with
"session": "token". - Notifications. Paste the webhook address of a Feishu (Lark) or WeCom group robot, or an address of your own, in Settings → Notifications. Messages go out on submissions, publishes and sign-ups, and a function sends its own with
notify(). - Photos need no preparing. Uploads are stored upright, without EXIF, at 2560 pixels at most, and compressed.
img()writes a whole responsive image tag. - Protection built in. Rate limits, scanner paths, AI crawlers and scripting tools, and an in-browser proof of work, in front of everything the environment serves. It has no page and no setting in the admin: its level is set in the code.
- The assistant checks its own work with
check_page, keeps a task list, and may take 100 steps a turn. - Managing data. Every list can be searched, exported as CSV, and filled from a CSV as drafts.
aggregate_recordstotals a collection. - Settings is one row a setting, each showing its current value.
Notes for upgrading
- Building from source needs Rust 1.98 or newer.
- The database is migrated on start. Pictures uploaded before 0.3 are left as they are.
- The Feishu and WeCom message formats follow their documentation and were not tried against live robots before this release: use Send a test after adding one.
Details: README · SECURITY.md
Full Changelog: v0.2.1...v0.3.0
v0.2.1
Full Changelog: v0.2.0...v0.2.1
Full Changelog: v0.2.0...v0.2.1
Full Changelog: v0.2.0...v0.2.1
Full Changelog: v0.2.0...v0.2.1
v0.1.0
Full Changelog: https://github.com/Michaelzhao9/cms-harness/commits/v0.1.0
Full Changelog: https://github.com/Michaelzhao9/cms-harness/commits/v0.1.0
Full Changelog: https://github.com/Michaelzhao9/cms-harness/commits/v0.1.0
Full Changelog: https://github.com/Michaelzhao9/cms-harness/commits/v0.1.0