From 05ce7ae818e373359cb70b7d45064945503f652c Mon Sep 17 00:00:00 2001 From: banteg <4562643+banteg@users.noreply.github.com> Date: Sun, 4 Jan 2026 13:57:52 +0400 Subject: [PATCH] chore(release): v0.7.0 --- changelog.md | 7 +++++++ docs/developing.md | 15 ++++++++++----- pyproject.toml | 2 +- src/takopi/__init__.py | 2 +- uv.lock | 2 +- 5 files changed, 20 insertions(+), 8 deletions(-) diff --git a/changelog.md b/changelog.md index bfab16e..e85cc17 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,12 @@ # changelog +## v0.7.0 (2026-01-04) + +### changes + +- migrate logging to structlog with structured pipelines and redaction +- add msgspec schemas for jsonl decoding across runners + ## v0.6.0 (2026-01-03) ### changes diff --git a/docs/developing.md b/docs/developing.md index 94875e8..9a448b0 100644 --- a/docs/developing.md +++ b/docs/developing.md @@ -134,13 +134,18 @@ def load_telegram_config() -> tuple[dict, Path]: ### `logging.py` - Secure logging setup ```python -class RedactTokenFilter: - # Redacts bot tokens from log output - -def setup_logging(*, debug: bool): - # Configures root logger with redaction filter +def setup_logging(*, debug: bool = False) -> None: + # Configures structlog pipeline, redaction, and output formatting. ``` +Environment flags: + +- `TAKOPI_LOG_LEVEL` (default `info`, `debug` forces `debug`) +- `TAKOPI_LOG_FORMAT` (`console` or `json`) +- `TAKOPI_LOG_COLOR` (`1/true/yes/on` to force color, `0/false/no/off` to disable) +- `TAKOPI_LOG_FILE` (append JSON lines to a file) +- `TAKOPI_TRACE_PIPELINE` (log pipeline events at info instead of debug) + ### `onboarding.py` - Setup validation ```python diff --git a/pyproject.toml b/pyproject.toml index e6d1611..7a2db44 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "takopi" authors = [{name = "banteg"}] -version = "0.6.0" +version = "0.7.0" description = "Telegram bridge for Codex, Claude Code, and other agent CLIs." readme = "readme.md" license = { file = "LICENSE" } diff --git a/src/takopi/__init__.py b/src/takopi/__init__.py index 906d362..49e0fc1 100644 --- a/src/takopi/__init__.py +++ b/src/takopi/__init__.py @@ -1 +1 @@ -__version__ = "0.6.0" +__version__ = "0.7.0" diff --git a/uv.lock b/uv.lock index 64fae8e..5ce2826 100644 --- a/uv.lock +++ b/uv.lock @@ -411,7 +411,7 @@ wheels = [ [[package]] name = "takopi" -version = "0.6.0" +version = "0.7.0" source = { editable = "." } dependencies = [ { name = "anyio" },