diff --git a/CHANGELOG.md b/CHANGELOG.md index 3dcfa8f..1ebd437 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ All notable changes to this project will be documented in this file, per [the Ke - `list_service_versions` MCP tool — list the PHP, database, and web server versions available to `create_site`, flagging which are already installed versus downloaded on demand (props [@ivanlopez](https://github.com/ivanlopez) via [#80](https://github.com/10up/localwp-agent-tools/pull/80)). - `site_status` now reports a `creationError` when a site created with `create_site` failed during provisioning (props [@ivanlopez](https://github.com/ivanlopez) via [#80](https://github.com/10up/localwp-agent-tools/pull/80)). +### Fixed + +- The add-on no longer adds each agent's context file (`CLAUDE.md`, `.cursorrules`, `.windsurfrules`) to the project's `.gitignore`. Those files are human-authored and usually committed; the add-on only writes a marked section into them, so ignoring them is misleading and does nothing for a file that is already tracked. Only the machine-generated MCP config files stay ignored (props [@claytoncollie](https://github.com/claytoncollie)). + ## [0.2.1] - 2026-03-19 ### Fixed diff --git a/src/main.ts b/src/main.ts index 6cb129c..d206806 100644 --- a/src/main.ts +++ b/src/main.ts @@ -45,7 +45,7 @@ interface AgentTargetConfig { mcpConfigTopLevelKey: string; /** Path to project context/instructions file, relative to project dir */ contextFilePath: string; - /** Extra entries to add to .gitignore */ + /** Machine-generated config files to add to .gitignore (never the human-authored context file) */ gitignoreEntries: string[]; } @@ -55,21 +55,21 @@ const AGENT_TARGETS: Record = { mcpConfigPath: '.mcp.json', mcpConfigTopLevelKey: 'mcpServers', contextFilePath: 'CLAUDE.md', - gitignoreEntries: ['.mcp.json', 'CLAUDE.md'], + gitignoreEntries: ['.mcp.json'], }, cursor: { label: 'Cursor', mcpConfigPath: path.join('.cursor', 'mcp.json'), mcpConfigTopLevelKey: 'mcpServers', contextFilePath: '.cursorrules', - gitignoreEntries: ['.cursorrules'], + gitignoreEntries: [], }, windsurf: { label: 'Windsurf', mcpConfigPath: path.join('.windsurf', 'mcp.json'), mcpConfigTopLevelKey: 'mcpServers', contextFilePath: '.windsurfrules', - gitignoreEntries: ['.windsurfrules'], + gitignoreEntries: [], }, vscode: { label: 'VS Code Copilot',