Pages
Pages are Markdown documents with path-like slugs such as ops/runbook. Link between them with [[slug]] or [[slug|text]]. Every save is a new version; old versions stay readable.
aw pages.put slug=ops/runbook title="Ops runbook" body="## Deploy\n1. make dist …" if_version=0aw pages.get slug=ops/runbookaw pages.get slug=ops/runbook version=1aw pages.search query=deployaw pages.history slug=ops/runbook- Conflicts:
if_versionprevents overwriting someone else’s edit. The UI editor sends it automatically and shows a conflict instead of losing either version. - Unchanged saves: saving the same text again doesn’t create a version.
- In the UI: a list with search, a rendered view with breadcrumbs, an editor with preview and ⌘/Ctrl+S, and the history of every page.
The name “documents” is reserved for the JSON rows of collections.