MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / isComposePath

Function isComposePath

graph-ui/src/architecture/container-source.ts:14–14  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

12export interface ContainerSelection { inventory: ContainerInventory; manifest: string }
13export interface ContainerReading { topology: ContainerTopology; projects: ServiceProject[]; warnings: string[]; filesRead: number }
14export const isComposePath = (path: string) => /(^|\/)(?:docker-)?compose(?:[.-][\w.-]+)?\.ya?ml$/i.test(path);
15const isDockerfile = (path: string) => /(^|\/)(?:Dockerfile(?:[.][\w.-]+)?|[\w.-]+\.Dockerfile)$/i.test(path);
16const isCode = (path: string) => /\.(?:py|js|jsx|ts|tsx|cs|go|java|kt|rs|rb|php|c|cc|cpp|ex|exs)$/i.test(path)
17 && !/(^|\/)(?:node_modules|vendor|vendored|test|tests|fixtures|dist|build)\//.test(path)

Callers 2

loadContainerInventoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected