sam
|
e8f78dd0d5
|
test: regression tests for all audit gaps — 6 enhanced + 4 new packages
Telegram: splitLongMessage (8 cases), isChatAllowed, updateMetadata (4 cases),
panicRecoveryMiddleware, updateLoggingMiddleware, authorizedMessage, stop-while-stopped
Container: error paths, payload round-trip, overwrite, minimal payload
Events: buffer defaults, subscribe-after-close, double-close safety,
slow-subscriber isolation, multi-subscriber ordering, publish timestamping
NATS RPC: envelope edge cases, JSON round-trip, request timeout, rollback
NellDB: empty store (6 ops), concurrent enqueue/claim (20 goroutines),
context cancellation, oversized payload clipping, unmarshalable data,
status transitions, events ordering, recover stale, clear terminal
Gateway tasks: empty/long title, idempotent enqueue, chat label
New packages with tests (formerly zero-test):
internal/gate (220 lines), internal/gate/gateextract,
internal/plugin/pluginextract, internal/workflow/wfextract
All 37 packages pass. Fixes regression gaps from audit.
|
2026-07-26 10:05:44 +10:00 |
|
sam
|
f36b6f2e41
|
feat: gateway architecture with Telegram channel
internal/gateway/ — Gateway interface, Router with gateway-local
command dispatch (commands handled directly, no LLM needed).
ModelManager interface for /model and /models support.
internal/channels/telegram/ — Telegram Gateway using go-telegram/bot
v1.18.0 (ported from GopherClaw). Webhook support, middleware,
allowed-chat filtering, long-message splitting.
internal/config/ — ChatConfig + TelegramConfig optional TOML block.
Cmd wiring in archied/main.go: starts Telegram gateway when
[chat.telegram] token_env is configured.
Gateway-local commands implemented: /status, /help, /model, /models.
Write actions (/spawn, /approve, /cancel) follow in abg.13.
Closes: archie-core-abg.5, archie-core-abg.14, archie-core-abg.15
|
2026-07-25 23:50:52 +10:00 |
|