Repository basics:
- CONTRIBUTING.md and CODE_OF_CONDUCT.md (Contributor Covenant 2.1)
- SPDX AGPL-3.0-or-later headers on all hand-written sources, checked in CI
- golangci-lint (shared .golangci.yml), ESLint and Prettier, all run in CI
API codegen from api/openapi.yaml (npm run generate, drift fails CI):
- Go types via oapi-codegen in Server/internal/api
- a contract test that the router and the spec list the same routes
- Dart models via Phone-App/tool/generate_api.dart; the app uses them
Spike: shared Tiptap editor in a Flutter WebView (ADR-4)
- @docwell/editor-bridge builds the editor into one HTML page with a
versioned JSON protocol; Phone-App hosts it with webview_flutter and a
native toolbar. Integration test passes on an Android API 35 emulator.
- flutter_inappwebview dropped: its Android plugin fails on AGP 9.
Spike: Wails v3 desktop (ADR-11)
- system tray, docwell:// deep links (page and space only) with
single-instance hand-off, and the built-in updater with a required
ed25519 signing key. Verified on Windows.
- regenerated build assets register the scheme and drop template
placeholders.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Start-up keeps the saved session while the server is unreachable and
retries the refresh; only a 4xx from the server signs the user out.
- Rooms of deleted pages are dropped (on purge, or when a write fails and
the page is gone) instead of retrying their save every second.
- Trashing or restoring a page reconnects its editors (close code 4409),
and open connections recheck access every 30 s; the editor reloads the
page and reopens the document with its new rights.
- Restoring a version or replacing content first keeps unversioned
changes as a "before-restore"/"before-replace" version; whether the
saved document has a version is now worked out when a room loads.
- Destroying the collab provider no longer recurses through awareness
listeners, which overflowed the stack on a 4409 close.
- Caret name labels are hidden from assistive tech.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pages are now shared Yjs documents. docwell-server relays the y-websocket
protocol at /collab (token sent as the first message), flushes updates to
page_yupdates every second, and compacts them into page_ydoc with yrs
compiled to WebAssembly under wazero (ADR-3) after 30 s idle or when the
last editor leaves. Compaction refreshes content_json/content_text and
records page_versions; versions can be listed, previewed and restored.
The editor connects through a small y-protocols provider with carets and
presence. Pages saved before this change are seeded from content_json.
The yrs module lives in Server/ycrdt-wasm and is built by go generate,
CI and the Dockerfiles rather than committed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>