import re
patterns = {
    "console_log": re.compile(r"console\.log\s*\(\s*['\"]\[[\w_]+\]\[[A-Za-z0-9_:]+\]"),
}
with open("frontend/src/lib/components/assistant/AssistantChatPanel.svelte") as f:
    for i, line in enumerate(f):
        if "console.log" in line:
            m = patterns["console_log"].search(line)
            print(f"Line {i+1}: {line.strip()} -> Match: {bool(m)}")

