feat: add serial CLI with 12 configuration commands

esp_console REPL over USB-JTAG: wifi_set, set_tg_token,
set_api_key, set_model, memory_read/write, session_list/clear,
heap_info, restart.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
crispyberry
2026-02-05 18:55:54 +08:00
parent 9435302063
commit 44790d016b
2 changed files with 316 additions and 0 deletions

9
main/cli/serial_cli.h Normal file
View File

@@ -0,0 +1,9 @@
#pragma once
#include "esp_err.h"
/**
* Initialize and start the serial CLI (esp_console based).
* Registers all commands and starts the REPL on USB-JTAG serial.
*/
esp_err_t serial_cli_init(void);