mcde: allow dtchat's TLS, XMPP and codec libraries

dtchat needs libtls, libstrophe, libopus and optional libvpx; record the exception in AGENTS.md, the decision in docs/reference/dtchat-architecture.txt, and the program in docs/MCDE-PROGRAMS.md (C5). Tasks: tasksd scope mcde/dtchat.
This commit is contained in:
lotherk committed 2026-11-16 15:57:46 +00:00
1 parent 8a0a5ac3f5
commit 13deb228d1
1 file changed
+24
+24
View File
@@ -18,6 +18,19 @@ narratives and test notes, is `docs/reference/mcde-agents-history-2026-11-13.txt
2. **C99 and POSIX** (POSIX.1-2008, XSI where CDE already needs it). New code
compiles with `-std=c99 -D_POSIX_C_SOURCE=200809L` and uses nothing beyond
POSIX and the X/Motif libraries. MCDE runs on NetBSD and Linux.
**Exception: dtchat** (decided 2026-11-16). The chat program needs TLS,
XMPP, speech and video, which POSIX cannot provide. It may link libtls
(`security/libretls` on both systems; the base carries OpenSSL, not
libtls), libstrophe (`chat/libstrophe`), libopus (`audio/libopus`) and,
optional at build time, libvpx (`multimedia/libvpx`), each behind exactly
one module (`dc_tls`, `dc_xmpp`, `dc_audio`, `dc_video`); libcrypto (base
OpenSSL) supplies X25519, Ed25519, HKDF and ChaCha20-Poly1305. Nothing
else from outside POSIX/X/Motif, no GUI toolkit, no scripting runtime.
The Telegram (TDLib, C++) and WhatsApp (whatsmeow, Go) adapters are
separate packages and separate processes (`programs/dtchat-telegram`,
`programs/dtchat-whatsapp`), never linked into the UI or the core. The
decision and its reasons are in `docs/reference/dtchat-architecture.txt`;
the tasks are scope `mcde/dtchat`.
3. **The operating system is behind one layer: `lib/McdeSys`.** Everything that
differs between systems (users, network, Wi-Fi, time zone, host name,
services, update, power, sound, disks, sharing, backup) goes through the
@@ -95,6 +108,17 @@ narratives and test notes, is `docs/reference/mcde-agents-history-2026-11-13.txt
`include/Mcde/GlobalMenu.h`), `dtkeys`, `dtthemesync`, `dtappscan`,
`dtsystemsettings` (panes by category, McdeSys only), `dtdiskutility`,
`dtbackup`, `mcdesoundd`, `dtphoto`, `dtpaint`, `dttoolbox`.
- `dtchat` (in progress, Phase 0; scope `mcde/dtchat`): the Motif chat
program. `lib/libDtChat` is the core (JSON IPC, adapters, local peer,
media), `programs/dtchat` the UI, `programs/dtchat-irc` and
`programs/dtchat-xmpp` the always-built adapters;
`programs/dtchat-telegram` (TDLib) and `programs/dtchat-whatsapp`
(whatsmeow) are separate packages. The IPC contract is
`docs/reference/dtchat-adapter-protocol.txt`, the decision
`docs/reference/dtchat-architecture.txt`. Rules: the UI and the core
never link a protocol library; an adapter is a JSON-lines process under
`${libexecdir}/dtchat`, spawned only from there (plus `--adapter-path`
in tests); the local peer protocol and media live in the core.
- Changes inside CDE programs, marked "MCDE" in the source: dtfile
(`Navigation.c`, `NetView.c`, `Columns.c`, `Peek.c` -- the preview on
Space, with `McdeThumb`; `Trash.c` -- the question before the Trash is