2 Commits
Author SHA1 Message Date
lotherk ffb067372b dtchat: fail cleanly on a zero-byte frame write
dc_frame_send now returns -1 instead of looping when write(2) returns 0 for the payload or the trailing newline.
2026-11-16 16:38:50 +00:00
lotherk e645e8160d dtchat: add the core API, JSON reader and line framing (T1.1)
include/DtChat/DtChat.h and Ipc.h define the UI-facing core API and the adapter contract. lib/libDtChat builds libDtChatIpc (strict JSON parser/writer, 1 MiB line framing) and the libDtChat core stub; test_json and test_frame cover escapes, UTF-8, depth 32, duplicate keys, overlong lines, CRLF, NUL and the write path. Wired into configure.ac, lib/Makefile.am and the installed headers. Standalone tests pass, ASan/UBSan clean.
2026-11-16 16:35:48 +00:00