refactor(shared): create shared/ package and migrate foundation modules

Move models.py, db_manager.py, db_migrations.py, and security_utils.py
from modules/ to a new shared/ top-level package that can be imported by
both the bot and the web viewer without coupling them.

Update all imports across ~75 files (commands, service plugins, tests,
web viewer, generate_website.py). No logic changes — pure file moves and
import path updates.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
agessaman
2026-05-18 17:19:46 -07:00
parent 0b56e86de9
commit 23da88c37d
79 changed files with 102 additions and 101 deletions
+2 -2
View File
@@ -14,8 +14,8 @@ from typing import Any, TypedDict
from .enums import AdvertFlags, DeviceRole, PayloadType, PayloadVersion, RouteType
from .graph_trace_helper import update_mesh_graph_from_trace_data
from .models import MeshMessage
from .security_utils import sanitize_input, sanitize_name
from shared.models import MeshMessage
from shared.security_utils import sanitize_input, sanitize_name
from .utils import (
calculate_packet_hash,
decode_path_len_byte,