e50fc1fe2d2d2dca32d00b07d47eda1d65cd5122
11
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
8c39b0aacb |
Run ffmpeg in its own docwell-media service
CI / go (Media) (push) Successful in 11m59s
CI / go (Server) (push) Failing after 18m26s
CI / go (Web-App) (push) Canceled after 0s
CI / frontend (push) Failing after 8m35s
CI / desktop (ubuntu-latest) (push) Successful in 1h10m6s
CI / mobile (push) Failing after 3m43s
CI / docker (push) Successful in 1h2m44s
Docs / build (push) Successful in 11m58s
Docs / deploy (push) Skipped
CI / desktop (macos-latest) (push) Canceled after 0s
CI / desktop (windows-latest) (push) Canceled after 0s
ffmpeg parses untrusted uploads, so it moves out of the server image into a container of its own (ADR-15): - Media/: docwell-media, a small Go wrapper around ffmpeg. POST /v1/split takes a recording and returns the 16 kHz mono MP3 pieces as multipart/mixed. ffmpeg may only open local files and common audio/video demuxers (no playlists); optional shared token, a job limit, a timeout and a 1 GB cap. - Server: DOCWELL_MEDIA_URL and DOCWELL_MEDIA_TOKEN send recordings over 25 MB to the service. When it is blank or unreachable, the server uses a local ffmpeg if it has one, else cuts MP3 and WAV in Go. The server image no longer installs ffmpeg; the all-in-one image keeps it to stay one container. - Compose: a media service in every stack, read-only, no capabilities, on an internal network only docwell-server joins. - CI tests the new module and checks that only the server reaches media; the release workflow publishes docwell-media. - Docs, ADR-15 and the .env examples. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
05a6334f26 |
Keep the CI compose smoke test off a production stack on the same host
CI / go (Server) (push) Failing after 6m0s
CI / go (Web-App) (push) Successful in 10m45s
CI / frontend (push) Failing after 8m37s
CI / desktop (ubuntu-latest) (push) Successful in 1h51m46s
CI / mobile (push) Failing after 19m41s
CI / docker (push) Successful in 49m29s
CI / desktop (macos-latest) (push) Canceled after 0s
CI / desktop (windows-latest) (push) Canceled after 0s
The docker job ran under the compose project "docwell", the same name a real install uses. On a runner sharing the Docker host it took over the install's db/server/web containers, and `down -v` then deleted them along with their volumes. Give the job its own project name and drop the host ports so it cannot collide with a running install. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
972a022f7e |
Pin flutter-action to a release that runs on node20
CI / go (Server) (push) Successful in 13m23s
CI / go (Web-App) (push) Successful in 9m58s
CI / frontend (push) Successful in 11m18s
CI / desktop (ubuntu-latest) (push) Successful in 34m25s
CI / mobile (push) Successful in 5m5s
CI / docker (push) Successful in 4m43s
CI / desktop (macos-latest) (push) Canceled after 0s
CI / desktop (windows-latest) (push) Canceled after 0s
Release / images (., Docker-AIO/Dockerfile, docwell) (push) Successful in 1h8m29s
Release / images (., Server/Dockerfile, docwell-server) (push) Successful in 35m44s
Release / images (., Web-App/Dockerfile, docwell-web) (push) Successful in 31m31s
Release / images (Database, Database/Dockerfile, docwell-db) (push) Successful in 21m6s
Release / desktop (Desktop-App/bin/*.deb
Desktop-App/bin/*.rpm
Desktop-App/bin/*.AppImage
, linux, ubuntu-latest, linux:create:deb linux:create:rpm linux:create:appimage) (push) Successful in 49m14s
Release / desktop (Desktop-App/bin/*-installer.exe, windows, windows-latest, windows:package) (push) Canceled after 0s
Release / release (push) Canceled after 0s
flutter-action 2.22 moved to actions/cache@v5, a node24 action the Gitea runners reject, so the mobile job never set up Flutter. 2.21.0 is the last release on actions/cache@v4. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
75fed90b71 |
Smoke-test the compose stack over its own network in CI
CI / go (Server) (push) Successful in 13m3s
CI / go (Web-App) (push) Successful in 10m9s
CI / frontend (push) Successful in 10m57s
CI / desktop (ubuntu-latest) (push) Successful in 45m11s
CI / mobile (push) Failing after 38s
CI / docker (push) Successful in 4m54s
CI / desktop (macos-latest) (push) Canceled after 0s
CI / desktop (windows-latest) (push) Canceled after 0s
On Gitea the job runs in a container that drives the host's Docker, so the stack's published ports are not on the job's localhost. The checks now run from a curl container on the docwell_default network, and the stack is taken down even when a check fails. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
6d7fc7043e |
Install the GTK 4 webview stack for desktop builds
Release / images (., Docker-AIO/Dockerfile, docwell) (push) Failing after 21s
Release / images (., Server/Dockerfile, docwell-server) (push) Failing after 32s
Release / images (., Web-App/Dockerfile, docwell-web) (push) Failing after 38s
Release / images (Database, Database/Dockerfile, docwell-db) (push) Failing after 40s
Release / desktop (Desktop-App/bin/*.deb
Desktop-App/bin/*.rpm
Desktop-App/bin/*.AppImage
, linux, ubuntu-latest, linux:create:deb linux:create:rpm linux:create:appimage) (push) Failing after 31m2s
CI / go (Server) (push) Successful in 13m49s
CI / go (Web-App) (push) Successful in 10m7s
CI / frontend (push) Successful in 11m17s
CI / desktop (ubuntu-latest) (push) Successful in 41m19s
CI / mobile (push) Failing after 28s
CI / docker (push) Failing after 3m32s
CI / desktop (macos-latest) (push) Canceled after 0s
CI / desktop (windows-latest) (push) Canceled after 0s
Release / desktop (Desktop-App/bin/*-installer.exe, windows, windows-latest, windows:package) (push) Canceled after 0s
Release / release (push) Canceled after 0s
Wails 3.0 builds against GTK 4 and WebKitGTK 6.0 unless built with the gtk3 tag, and the packages already depend on that stack, so CI and the release install libgtk-4-dev and libwebkitgtk-6.0-dev in place of the GTK 3 ones. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
d01c61df20 |
Install Rust in CI before building yrs.wasm
CI / go (Server) (push) Successful in 13m23s
CI / go (Web-App) (push) Successful in 10m48s
CI / frontend (push) Failing after 6m41s
CI / desktop (ubuntu-latest) (push) Failing after 31m25s
CI / desktop (macos-latest) (push) Canceled after 0s
CI / desktop (windows-latest) (push) Canceled after 0s
CI / mobile (push) Failing after 37s
CI / docker (push) Failing after 2m44s
The Gitea runner image has no rustup, so the Server job failed before go generate. dtolnay/rust-toolchain installs stable with the wasm32-wasip1 target. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
be13a5ab6f |
Pin workflow actions to versions that run on node20
CI / go (Server) (push) Failing after 1m25s
CI / go (Web-App) (push) Canceled after 0s
CI / frontend (push) Failing after 7m19s
CI / desktop (ubuntu-latest) (push) Failing after 22m58s
CI / desktop (macos-latest) (push) Canceled after 0s
CI / desktop (windows-latest) (push) Canceled after 0s
CI / mobile (push) Failing after 4m57s
CI / docker (push) Failing after 18m11s
Docs / build (push) Failing after 6m33s
Docs / deploy (push) Skipped
Release / images (., Docker-AIO/Dockerfile, docwell) (push) Failing after 2m58s
Release / images (., Server/Dockerfile, docwell-server) (push) Failing after 28s
Release / images (., Web-App/Dockerfile, docwell-web) (push) Failing after 24s
Release / images (Database, Database/Dockerfile, docwell-db) (push) Failing after 28s
Release / desktop (Desktop-App/bin/*.deb
Desktop-App/bin/*.rpm
Desktop-App/bin/*.AppImage
, linux, ubuntu-latest, linux:create:deb linux:create:rpm linux:create:appimage) (push) Failing after 33m49s
Release / desktop (Desktop-App/bin/*-installer.exe, windows, windows-latest, windows:package) (push) Canceled after 0s
Release / release (push) Canceled after 0s
The Gitea runners reject actions that declare node24, so every job stopped at setup. checkout, setup-go and setup-node go back to their node20 releases (v4, v5, v4); the Node used for builds is still 24. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
dbe49b892f |
Add multi-arch release images and a documentation site
CI / go (Server) (push) Canceled after 0s
CI / go (Web-App) (push) Canceled after 0s
CI / frontend (push) Canceled after 0s
CI / desktop (macos-latest) (push) Canceled after 0s
CI / desktop (ubuntu-latest) (push) Canceled after 0s
CI / desktop (windows-latest) (push) Canceled after 0s
CI / mobile (push) Canceled after 0s
CI / docker (push) Canceled after 0s
Docs / build (push) Canceled after 0s
Docs / deploy (push) Canceled after 0s
Release / images (., Docker-AIO/Dockerfile, docwell) (push) Canceled after 0s
Release / images (., Server/Dockerfile, docwell-server) (push) Canceled after 0s
Release / images (., Web-App/Dockerfile, docwell-web) (push) Canceled after 0s
Release / images (Database, Database/Dockerfile, docwell-db) (push) Canceled after 0s
Release: pushing a v* tag builds docwell-db, docwell-server, docwell-web and the all-in-one image for linux/amd64 and linux/arm64 and pushes them to GHCR, tagged with the version and latest. The build stages run on the build machine's platform and Go cross-compiles, so arm64 needs no emulation except for the final apk step (checked by building the server image for arm64). The compose files name the released images, so `docker compose up -d` runs a release and `--build` still builds the checkout; DOCWELL_REGISTRY and DOCWELL_VERSION pick them. Docs: Docs-Site is a VitePress site with a quick start, every configuration variable, reverse-proxy setups, backups and upgrades, a user guide, people and access, the admin panel and the API. CI builds it, and the Docs workflow publishes it to GitHub Pages. It lives outside docs/, which stays local planning material. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
ba394b8fac |
Finish Phase 0: lint, codegen, contributor docs and the two remaining spikes
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> |
||
|
|
5e1dcf4291 |
Add real-time collaboration with page history
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> |
||
|
|
4903bb12dd |
Scaffold Docwell monorepo with PocketBase authentication
Phase 0 foundation for Docwell, an open-source knowledge base: - Database: PocketBase v0.40.6 with initial schema migrations; users is the built-in auth collection, plus a hook for token checks and env-driven app URL/SMTP settings - Server: Go API (health, version, auth endpoints forwarded to PocketBase, admin user list) with an embedded Vue admin panel - Web-App: Go static server and Vue/Tailwind app with Tiptap editor, sign-in, sign-up, password reset and email verification (EN/PL) - Desktop-App: Wails v3 host reusing the web app - Phone-App: Flutter app with sign-in - Shared packages (editor, ui, api-client), OpenAPI spec, Docker compose (separate services and all-in-one), GitHub Actions CI - Docs: feature inventory and architecture/build plan Licensed under AGPL-3.0-or-later. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |