Repository navigation
Scans
SocksTheWolf edited this page Oct 28, 2026
·
1 revision
const aiFileNameRegex = new RegExp(`(${
// the complex dynamic ai spread markers
[`^[^#\\s]*(?:${aiSpreadMarkers.join("|")}).*$`,
// dynamically escape any ., * and - characters so they are the literals
...[...aiFileMarkers, ...aiRecompModules].map((itm) => itm.replace(/(\*|\.|\-)/g, "\\$1"))]
// then join the entire array with OR gates, and that builds our regex.
.join("|")})`, "igm");
If we wanted to expand out file scanning, here's what we would scan for each file. I do think this is super overkill and will just make the entire process slower.
Scan requirements.txt or pyproject.toml, look for the following:
# LangChain Core
langchain
langchain-core
# OpenAI Integration
langchain-openai
openai
# Anthropic Integration
langchain-anthropic
# Google Gemini (PaLM) Integration
langchain-google-genai
google-generativeai
# Hugging Face Integration
langchain-huggingface
transformers
huggingface-hub
TODO (also a nightmare because nodejs has many different package file formats)
Look at composer?