Commit graph

18 commits

Author SHA1 Message Date
2402c70d6f feat: add module foundation runtime
Add validated input buffering, shared JSON helpers, the tnt.module.v1 protocol helpers, and an opt-in external-process module runtime behind TNT_MODULE_PATHS.

Closes #52
2026-06-04 22:48:21 +08:00
d4b260c160 Centralize runtime config defaults 2026-05-28 11:42:31 +08:00
8affea2508 Generate tntctl command list from exec catalog 2026-05-28 10:36:22 +08:00
fab8b315a5 Split tntctl local text catalog 2026-05-28 09:40:55 +08:00
3252e4583c Split message log record module 2026-05-27 10:08:32 +08:00
e911a2d469 exec: extract help text into catalog 2026-05-24 12:41:05 +08:00
8fbd789dfb i18n: split text catalog from language parsing 2026-05-24 12:18:21 +08:00
57bf3cfc67 commands: centralize interactive command catalog 2026-05-24 11:25:46 +08:00
a693d281f8 ux: collapse help surface around manual 2026-05-24 10:17:25 +08:00
095491927a test: cover connection limit regressions 2026-05-23 21:38:27 +08:00
73655d0e70 i18n: localize startup cli text 2026-05-23 20:08:18 +08:00
81c3f45864 support: move guide copy into text module 2026-05-23 19:55:44 +08:00
4fb531771b help: move bilingual help text into module 2026-05-23 19:41:38 +08:00
07e47e65c8 i18n: module system event messages 2026-05-23 19:30:11 +08:00
0c27976763 i18n: select interactive language from locale 2026-05-23 18:06:39 +08:00
67d21ad0e9 tui: improve history browsing and support guide 2026-05-21 11:57:59 +08:00
ecc45f285c test: add chat_room unit tests and integrate into build
- Add 11 unit tests for chat_room.c covering: create/destroy, message
  add/overflow, broadcast sequence, get_message bounds, client
  add/remove/capacity, and null argument handling
- Add unit-test target to root Makefile so `make test` runs unit tests
  before integration tests
- Add common.c to unit test link dependencies (needed for tnt_state_path)
- Guard _DARWIN_C_SOURCE define to prevent -Wmacro-redefined warning
2026-04-19 15:22:01 +08:00
2535d8bfd4 test: add comprehensive unit tests for UTF-8 and message functions
Add 31 unit tests covering core functionality:
- UTF-8 byte length detection
- UTF-8 character decoding (1-4 byte sequences)
- Character width calculation (ASCII, CJK, Hangul, Hiragana, Katakana)
- String width calculation
- Character/word removal functions
- UTF-8 validation
- Message formatting and edge cases

Test results: 31/31 passed ✓

Files:
- tests/unit/test_utf8.c (20 tests)
- tests/unit/test_message.c (11 tests)
- tests/unit/Makefile (build configuration)
2026-02-08 10:29:19 +08:00