mirror of
https://github.com/zvx-echo6/meshai.git
synced 2026-08-26 17:31:34 +00:00
Fixes the LLM system prompt being transport-blind: MeshCore DMs were being told they were on the freq51 Meshtastic mesh network and were physical node !27780c47 (AIDA-N2), and MeshMonitor/node-health text (Meshtastic-only) leaked into MeshCore prompts too. - config.py: BotConfig gains mt_mesh_name/mt_node/mc_mesh_name (generic OSS defaults empty; name/owner defaults now generic MeshAI/Unknown). LLMConfig.system_prompt code default no longer hardcodes freq51/Twin Falls. - router.py: generate_llm_response() computes transport once and branches identity: MeshCore gets an AIDA/MeshCore-radio framing with no MT node id; Meshtastic keeps the physical-node framing from the new config fields. MeshMonitor block and MT node-health/gateway/packet reporting (mesh_reporter Tier1/region/node detail + _MESH_AWARENESS_PROMPT + region geography) are now gated to transport == meshtastic. New _build_alert_channels_line() adds a short identity-block line on both transports listing region_routes-derived alert channels (MT channel index or MC channel name). MeshCore channel-recommendation block stays transport-neutral. - README.md: dead gemini-2.5-flash-lite example updated to gemini-3.1-flash-lite. Live config (meshai_data volume, not git-tracked): bot.name=AIDA, bot.owner=K7ZVX (local.yaml identity.owner, which overrides config.yaml per config_loader.py LOCAL_FIELDS), mt_mesh_name/mt_node set to the freq51/AIDA-N2 values, mc_mesh_name left empty. llm.yaml system_prompt freq51 line removed. Verified via in-container prompt-assembly dry run through the real generate_llm_response() path (no LLM call) for both transports, and a live gemini-3.1-flash-lite 3-query behavior test confirming the MeshCore channel-recommendation feature still works correctly. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| adapter_config | ||
| backends | ||
| central | ||
| cli | ||
| commands | ||
| dashboard | ||
| data | ||
| env | ||
| notifications | ||
| persistence | ||
| scripts | ||
| sources | ||
| transport | ||
| __init__.py | ||
| __main__.py | ||
| alert_engine.py | ||
| central_normalizer.py | ||
| chunker.py | ||
| config.py | ||
| config_loader.py | ||
| connector.py | ||
| context.py | ||
| coverage.py | ||
| coverage_area.py | ||
| geo.py | ||
| history.py | ||
| knowledge.py | ||
| main.py | ||
| memory.py | ||
| mesh_data_store.py | ||
| mesh_health.py | ||
| mesh_models.py | ||
| mesh_reporter.py | ||
| mesh_sources.py | ||
| meshmonitor.py | ||
| responder.py | ||
| router.py | ||
| secrets_store.py | ||
| serial_ports.py | ||