2
0
Fork 0
forked from zynk/zynk

Simplify CMake feature loop, adjust AI response limits. (0.40.3)

- Refactored CMake feature configuration: merged the two separate
  foreach loops (one for building _cmd_defs and one for printing status)
  into a single loop, removing redundant iteration. Improved the status
  banner formatting for clearer feature configuration output.
- Reduced AI code mode response limit from 2000 to 1000 chars to keep
  IRC replies concise.
- Increased AI plan mode response limit from 800 to 1000 chars, giving
  slightly more room for explanations.
- Simplified AI plan mode system prompt description for clarity.
- Fixed minor whitespace alignment in README.md command table.
This commit is contained in:
Johannes Findeisen 2026-07-23 21:15:44 +02:00
commit db72b957b8
4 changed files with 29 additions and 22 deletions

View file

@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.13)
project(zynk VERSION 0.40.2 LANGUAGES C)
project(zynk VERSION 0.40.3 LANGUAGES C)
# Prefer C99; the code is compatible with C99/C11
set(CMAKE_C_STANDARD 99)
@ -32,31 +32,31 @@ option(WITH_RESTART "Restart command (ops only)" ON)
option(WITH_GREETING_OR_CHAT "Greeting/chat with AI fallback" ON)
# Map WITH_* options to HAS_CMD_* compile definitions
#foreach(_feat ZYNK PING VERSION HELP QUIT WEATHER FORECAST STOCK
# CALC TIME SEEN TELL GITLOG CHANGELOG AI CODE
# REBUILD UPTIME RELOAD RESTART GREETING_OR_CHAT)
# string(TOLOWER "${_feat}" _feat_lower)
# if(WITH_${_feat})
# list(APPEND _cmd_defs "HAS_CMD_${_feat}")
# endif()
#endforeach()
# Map WITH_* options to HAS_CMD_* compile definitions and print feature status
message(STATUS "=============================================================================")
message(STATUS "Feature configuration for zynk (${PROJECT_VERSION}):")
message(STATUS "=============================================================================")
foreach(_feat ZYNK PING VERSION HELP QUIT WEATHER FORECAST STOCK
CALC TIME SEEN TELL GITLOG CHANGELOG AI CODE
REBUILD UPTIME RELOAD RESTART GREETING_OR_CHAT)
string(TOLOWER "${_feat}" _feat_lower)
if(WITH_${_feat})
list(APPEND _cmd_defs "HAS_CMD_${_feat}")
endif()
endforeach()
# Print feature status
message(STATUS "")
message(STATUS "zynk feature configuration:")
message(STATUS "=============================================")
foreach(_feat ZYNK PING VERSION HELP QUIT WEATHER FORECAST STOCK
CALC TIME SEEN TELL GITLOG CHANGELOG AI CODE
REBUILD UPTIME RELOAD RESTART GREETING_OR_CHAT)
string(TOLOWER "${_feat}" _feat_lower)
if(WITH_${_feat})
message(STATUS "[ON] ${_feat} (!${_feat_lower})")
else()
message(STATUS "[OFF] ${_feat} (!${_feat_lower})")
endif()
endforeach()
message(STATUS "=============================================")
message(STATUS "")
message(STATUS "=============================================================================")
# Homebrew OpenSSL hint on macOS (set before find_package)
if(APPLE AND DEFINED ENV{HOMEBREW_PREFIX})