Commit links for !gitlog, full changelog link for !changelog, CMake, multi-file refactor
- !gitlog now shows a link to each commit in the repository, using the git remote URL converted from SSH/SCP to HTTPS - !changelog now shows a 'Full changelog: <url>' link to CHANGELOG.md in the repository as the last message after all entries - Removed 'full' keyword from !gitlog and !changelog (previously showed full commit messages and complete changelog entries) - Switched build system from Make to CMake with feature toggles (-DWITH_<FEATURE>=ON/OFF) - Refactored single-file codebase into dedicated header files: each command now lives in its own cmd_*.h file, with separate modules for database (db.h), IRC protocol (irc.h), networking (net.h), TLS (tls.h), and AI (ai.h) - Updated README.md to reflect the simplified !gitlog and !changelog syntax and the new CMake build instructions (0.40.0)
This commit is contained in:
parent
184d4c4000
commit
739e3622b5
34 changed files with 4317 additions and 3687 deletions
33
CHANGELOG.md
33
CHANGELOG.md
|
|
@ -1,3 +1,12 @@
|
|||
2026.07.23 - Commit links for !gitlog, full changelog link for !changelog, CMake, multi-file refactor. (0.40.0)
|
||||
|
||||
- `!gitlog` now shows a link to each commit in the repository (e.g. `184d4c4 Fix whitespace... - https://...`), using the git remote URL converted from SSH/SCP to HTTPS.
|
||||
- `!changelog` now shows a "Full changelog: <url>" link to CHANGELOG.md in the repository as the last message.
|
||||
- Removed `full` keyword from `!gitlog` and `!changelog` (previously showed full commit messages and complete changelog entries).
|
||||
- Switched the build system from Make to CMake with feature toggles (`-DWITH_<FEATURE>=ON/OFF`).
|
||||
- Refactored a single-file codebase into dedicated header files: each command now lives in its own `cmd_*.h` file, with separate modules for database (`db.h`), IRC protocol (`irc.h`), networking (`net.h`), TLS (`tls.h`), and AI (`ai.h`).
|
||||
- Updated README.md to reflect the simplified `!gitlog` and `!changelog` syntax and the new CMake build instructions.
|
||||
|
||||
2026.07.22 - Fix whitespace collapsing in !ai, !gitlog, !changelog responses. (0.39.1)
|
||||
|
||||
- Fixed `collapse_spaces()` to treat tabs, newlines, and carriage returns as whitespace (not just spaces), collapsing any run of mixed whitespace into a single space.
|
||||
|
|
@ -5,7 +14,6 @@
|
|||
- Added `collapse_spaces()` call to `!ai` responses (after `strip_ai_phrases()`).
|
||||
- Added `collapse_spaces()` call to `!changelog full` entries before sending.
|
||||
- Fixed `!gitlog full` output still containing multiple spaces from git's tab-delimited commit fields.
|
||||
- Version bumped to 0.39.1.
|
||||
|
||||
2026.07.21 - Hot reload preserves IRC session (nick, channels, voice). (0.39.0)
|
||||
|
||||
|
|
@ -13,13 +21,11 @@
|
|||
- Removed `irc_part_all()` from the reload path — the bot no longer parts channels on reload, so voice mode (+v) and channel presence are preserved.
|
||||
- Reset `pending_ai_pid`/`pending_ai_id` in the fork child to avoid stale state from orphaned AI processes.
|
||||
- `!reload` and `!restart` now keep the bot's IRC session alive (no nick collision, no rejoin, no lost voice). `!rebuild`/`!code` still do a clean QUIT+exec since the binary changed.
|
||||
- Version bumped to 0.39.0.
|
||||
|
||||
2026.07.21 - Strip opencode header from !ai responses. (0.38.3)
|
||||
|
||||
- Added `strip_opencode_header()`: removes the opencode header line (e.g. `> plan · big-pickle`) and any trailing blank lines from AI responses before sending to IRC.
|
||||
- Pipeline order: format strip → header strip → phrase strip, so ANSI codes are cleaned up first and the `> ` prefix is reliably detected.
|
||||
- Version bumped to 0.38.3.
|
||||
|
||||
2026.07.21 - Full mode for !gitlog/!changelog, optional pull for !rebuild. (0.38.2)
|
||||
|
||||
|
|
@ -30,13 +36,11 @@
|
|||
- Reduced `GITLOG_MAX` from 10 to 5.
|
||||
- Updated `!help` text to reflect new `[full]` and `[pull]` arguments.
|
||||
- Updated README.md with `full` option for `!gitlog`/`!changelog` and `pull` option for `!rebuild`.
|
||||
- Version bumped to 0.38.2.
|
||||
|
||||
2026.07.21 - Exempt ops from rate limiting. (0.38.1)
|
||||
|
||||
- Op users in channels are now exempt from rate limiting: `rate_limit_check()` calls `chan_is_op()` and allows ops through immediately.
|
||||
- Removed unused `AI_REPLY_MAX` constant.
|
||||
- Version bumped to 0.38.1.
|
||||
|
||||
2026.07.21 - Add !changelog command. (0.38.0)
|
||||
|
||||
|
|
@ -44,19 +48,16 @@
|
|||
- Reduced `GITLOG_MAX` and `CHANGELOG_MAX` from 20 to 10.
|
||||
- Updated `!help` to list `!changelog`.
|
||||
- Updated README.md with `!changelog` documentation and corrected max values.
|
||||
- Version bumped to 0.38.0.
|
||||
|
||||
2026.07.20 - Add !rebuild command. (0.37.0)
|
||||
|
||||
- Added `!rebuild` command (ops only, channels): runs `git pull`, `make clean`, and `make` in sequence, then triggers a hot reload if all steps succeed. If any step fails, the error output from the build is reported to the channel.
|
||||
- Updated `!help` to list `!rebuild`.
|
||||
- Updated README.md with `!rebuild` documentation in the Admin (Ops Only) section.
|
||||
- Version bumped to 0.37.0.
|
||||
|
||||
2026.07.20 - Fix !seen showing UTC instead of local time. (0.36.1)
|
||||
|
||||
- Fixed `!seen` command storing UTC timestamps instead of local time: `seen_update()` used `datetime('now')` which returns UTC, causing `!seen <nick>` to display a time offset by the server's timezone difference (e.g. 16:00 instead of 18:00 on a UTC+2 system). Changed to `datetime('now','localtime')` so seen timestamps match the system's local time.
|
||||
- Version bumped to 0.36.1.
|
||||
|
||||
2026.07.20 - Add !gitlog command. (0.36.0)
|
||||
|
||||
|
|
@ -64,7 +65,6 @@
|
|||
- Updated `!help` to list `!gitlog`.
|
||||
- Updated README.md with `!gitlog` documentation and `git` as a requirement.
|
||||
- Added detailed doc comment to `cmd_gitlog()` matching the style of all other function documentation in zynk.c.
|
||||
- Version bumped to 0.36.0.
|
||||
|
||||
2026.07.20 - Remove timezone abbreviation from !time response. (0.35.6)
|
||||
|
||||
|
|
@ -72,35 +72,29 @@
|
|||
- Removed 60 lines of dead timezone abbreviation-matching code from `tz_format()` (previously mapped 45 IANA timezone names to abbreviations like CEST, EDT, JST, etc.).
|
||||
- Updated README.md output format to reflect the change.
|
||||
- Added `tzdata` to README.md requirements as optional (without it, `!time` falls back to 45 built-in timezones).
|
||||
- Version bumped to 0.35.6.
|
||||
|
||||
2026.07.20 - Fix !time to work without tzdata. (0.35.5)
|
||||
|
||||
- Rewrote `!time` to try the system `localtime_r()` first, then fall back to a built-in timezone table with 45 IANA zones and simplified DST rules when the system can't resolve timezones (e.g. no `tzdata` installed). This means `!time Australia/Sydney` now shows correct AEST/AEDT even on minimal systems.
|
||||
- Added doc comments to all undocumented functions in zynk.c: `seen_update`, `seen_lookup`, `tell_add`, `tell_deliver`, `valid_irc_word`, `normalize_city`, `collapse_spaces`, `cmd_reload`, `cmd_time`, `cmd_seen`, `cmd_tell`, `cmd_greeting_or_chat`, `tz_lookup`, `tz_format`.
|
||||
- Added full list of built-in timezones to README.md (all 45 entries from `tz_table`) with region, offset, and DST status.
|
||||
- Version bumped to 0.35.5.
|
||||
|
||||
2026.07.20 - Update README with !calc pi() docs and date requirement. (0.35.4)
|
||||
|
||||
- Added `pi()` constants section to README.md with examples (`!calc pi()`, `!calc pi()*2`, `!calc pi()^2`).
|
||||
- Added `date` to the list of system requirements in README.md.
|
||||
- Version bumped to 0.35.4.
|
||||
|
||||
2026.07.20 - Add pi() to !calc. (0.35.3)
|
||||
|
||||
- Added `pi()` function support to `!calc`: bc -l does not define `pi()` on all systems, so `cmd_calc` now prepends a `pi()` definition before evaluating expressions. `!calc pi()`, `!calc pi()*2`, `!calc pi()^2` etc. all work.
|
||||
- Version bumped to 0.35.3.
|
||||
|
||||
2026.07.20 - Fix !time timezone conversion bug. (0.35.2)
|
||||
|
||||
- Fixed `!time` command: `setenv("TZ",...) + localtime()` was not reliably converting to the requested timezone. Replaced with `TZ=... date` via `popen()`, which handles all IANA timezone names correctly (e.g. `!time Australia/Sydney` now shows 11:15 AEST instead of UTC).
|
||||
- Version bumped to 0.35.2.
|
||||
|
||||
2026.07.20 - Fix !calc not working (bc stdin not connected). (0.35.1)
|
||||
|
||||
- Fixed `!calc` command: the expression was never piped to `bc`'s stdin, causing empty output and a "no result" error for every expression. Added a second pipe to feed the expression into `bc` before reading the result.
|
||||
- Version bumped to 0.35.1.
|
||||
|
||||
2026.07.20 - Calculator, time, seen, and tell commands. (0.35.0)
|
||||
|
||||
|
|
@ -111,40 +105,33 @@
|
|||
- Added `seen` and `tell` tables to the SQLite database for persistent user tracking and message storage.
|
||||
- Updated `!help` to list all new commands.
|
||||
- Updated README.md with detailed documentation for all commands, including `!calc` expression syntax and `!time` timezone examples.
|
||||
- Version bumped to 0.35.0.
|
||||
|
||||
2026.07.20 - Disabled stripping feature from 0.34.4 because it needs more testing. (0.34.5)
|
||||
|
||||
- Disabled `strip_opencode_header()` (introduced in 0.34.4) as it requires further testing.
|
||||
- Version bumped to 0.34.5.
|
||||
|
||||
2026.07.20 - Strip opencode header from AI responses. (0.34.4)
|
||||
|
||||
- Added `strip_opencode_header()` to remove the opencode model/agent header line from AI responses before sending them to IRC.
|
||||
- Version bumped to 0.34.4.
|
||||
|
||||
2026.07.19 - Show full AI error output on failure. (0.34.3)
|
||||
|
||||
- AI error messages now include the actual opencode output instead of a generic "(opencode exited with error)" message.
|
||||
- Captured stderr from opencode (previously sent to /dev/null) so error details are no longer lost.
|
||||
- Version bumped to 0.34.3.
|
||||
|
||||
2026.07.19 - Collapsed double spaces in `!forecast` and `!stock` responses (0.34.2)
|
||||
|
||||
- Collapsed double spaces in `!forecast` and `!stock` responses (e.g., when weather condition is empty).
|
||||
- Version bumped to 0.34.2.
|
||||
|
||||
2026.07.19 - Fix !weather returning HTML. (0.34.1)
|
||||
|
||||
- Fixed `!weather` command returning `<!DOCTYPE html>` instead of weather data: wttr.in now returns HTML when it detects a browser User-Agent, so replaced the fake Firefox UA string with `zynk/VERSION`.
|
||||
- Fixed `!forecast` showing all days as Sunday on musl libc (Alpine Linux): `strptime` on musl does not compute `tm_wday`, so added `mktime()` to normalize the struct before formatting.
|
||||
- Version bumped to 0.34.1.
|
||||
|
||||
2026.07.19 - Uptime command, remove !hello. (0.34.0)
|
||||
|
||||
- Added `!uptime` command: displays bot uptime in a human-readable format (days/hours/minutes/seconds).
|
||||
- Removed `!hello` command.
|
||||
- Version bumped to 0.34.0.
|
||||
|
||||
2026.07.19 - Hot reload re-registration fix, !hello, docs. (0.33.1)
|
||||
|
||||
|
|
@ -152,7 +139,6 @@
|
|||
- Added `!hello` command: responds with a greeting and the user's nick.
|
||||
- Added atomic build target in Makefile: compiles to a temp file and moves into place to avoid partial binaries on failure.
|
||||
- Added comprehensive doc comments to all major functions in zynk.c.
|
||||
- Version bumped to 0.33.1.
|
||||
|
||||
2026.07.19 - Hot reload, stock quotes, and auto-recompile. (0.33.0)
|
||||
|
||||
|
|
@ -163,7 +149,6 @@
|
|||
- Increased curl read buffer from 2 KiB to 32 KiB to handle larger API responses.
|
||||
- Improved `!forecast` JSON parsing: returns a descriptive error message on parse failure instead of silently returning nothing.
|
||||
- Increased AI_TIMEOUT from 240s to 600s and AI_REPLY_MAX from 400 to 2048 chars for longer AI interactions.
|
||||
- Version bumped to 0.33.0.
|
||||
|
||||
2026.07.16 - Security hardening.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue