Install-time code directly mutates a foreign AI-agent control surface:
186if (!options.dryRun) {
187 await mkdir(path.dirname(configPath), { recursive: true });
188 await writeFile(configPath, JSON.stringify(config, null, 2) + String.fromCharCode(10), "utf8");
⋯
266if (!options.noAgent) {
267 log("[covgate] AI 接入: AGENTS.md 与 scripts/covgate-agent-gate.*");
268}
Write operation from src/setup/index.js:
186if (!options.dryRun) {
187 await mkdir(path.dirname(configPath), { recursive: true });
188 await writeFile(configPath, JSON.stringify(config, null, 2) + String.fromCharCode(10), "utf8");
⋯
266if (!options.noAgent) {
267 log("[covgate] AI 接入: AGENTS.md 与 scripts/covgate-agent-gate.*");
268}
Foreign user/project scope from bin/covgate-postinstall.js:
1#!