build: unify config to top-level claw_config.h#6
Merged
Conversation
Move include/claw/claw_config.h to project root as the single source of truth for all rt-claw business configuration (AI, Feishu, tuning). Configuration is now managed exclusively by Meson + environment variables. The build system generates claw_config_generated.h via configure_file() with resolved values from: 1. Meson option (-Dai_api_key=...) — highest priority 2. Environment var (RTCLAW_AI_API_KEY) — fallback 3. claw_config.h #ifndef defaults — lowest priority Changes: - Remove AI Engine menu (key/url/model/max_tokens/context_size/ memory_max_msgs) from ESP32-C3 and ESP32-S3 Kconfig - Remove Feishu APP_ID/APP_SECRET from Kconfig (keep FEISHU_ENABLE) - Remove AI/Feishu entries from sdkconfig.defaults files - Remove env_override.h generation from gen-esp32*-cross.py - Add claw_config_generated.h.in Meson template - Add integer meson options: ai_max_tokens, ai_context_size, ai_memory_max_msgs - Update all 12 source files: include path claw/claw_config.h -> claw_config.h No migration needed — direct replacement. Signed-off-by: Chao Liu <chao.liu.zevorn@gmail.com>
8b2b4ba to
8fcb614
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Move include/claw/claw_config.h to project root as the single source of truth for all rt-claw business configuration (AI, Feishu, tuning).
Configuration is now managed exclusively by Meson + environment variables. The build system generates claw_config_generated.h via configure_file() with resolved values from:
Changes:
claw_config.h
No migration needed — direct replacement.