@@ -33,6 +33,28 @@ test("scanner ignores generated and secret paths", async () => {
3333 assert . ok ( ! paths . some ( ( path ) => path . startsWith ( ".env" ) ) ) ;
3434} ) ;
3535
36+ test ( "scanner ignores agent development metadata" , async ( ) => {
37+ const projectRoot = await mkdtemp ( join ( tmpdir ( ) , "devmap-agent-metadata-test-" ) ) ;
38+
39+ try {
40+ await writeFile ( join ( projectRoot , "package.json" ) , JSON . stringify ( { name : "agent-metadata-test" } ) ) ;
41+ await mkdir ( join ( projectRoot , "src" ) , { recursive : true } ) ;
42+ await writeFile ( join ( projectRoot , "src" , "index.ts" ) , "export const app = true;\n" ) ;
43+ await mkdir ( join ( projectRoot , ".agents" , "skills" , "ai-helper" ) , { recursive : true } ) ;
44+ await writeFile (
45+ join ( projectRoot , ".agents" , "skills" , "ai-helper" , "SKILL.md" ) ,
46+ "# AI Helper\n\nThis development-only skill mentions OpenAI, Groq, and agents.\n"
47+ ) ;
48+
49+ const paths = ( await scanFiles ( projectRoot ) ) . map ( ( file ) => file . path ) ;
50+
51+ assert . ok ( paths . includes ( "src/index.ts" ) ) ;
52+ assert . ok ( ! paths . some ( ( path ) => path . startsWith ( ".agents/" ) ) ) ;
53+ } finally {
54+ await rm ( projectRoot , { recursive : true , force : true } ) ;
55+ }
56+ } ) ;
57+
3658test ( "scanner ignores package manager lockfiles" , ( ) => {
3759 for ( const lockfile of [
3860 "package-lock.json" ,
0 commit comments