From 9b54c8988a15c16efe5006b81f7ae78dca121627 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 6 May 2026 15:45:09 +0000 Subject: [PATCH 1/3] Initial plan From c251cf5e36cfccb3c4b5475fd610bafa891f9489 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 6 May 2026 15:46:49 +0000 Subject: [PATCH 2/3] fix: use .agents directory in doctor and uninstall commands instead of .ai Agent-Logs-Url: https://github.com/ColdBox/coldbox-cli/sessions/34266c38-e042-4cf3-bd14-32c40280e8a6 Co-authored-by: lmajano <137111+lmajano@users.noreply.github.com> --- commands/coldbox/ai/uninstall.cfc | 8 ++++---- models/AIService.cfc | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/commands/coldbox/ai/uninstall.cfc b/commands/coldbox/ai/uninstall.cfc index 572cd9a..ada5e4c 100644 --- a/commands/coldbox/ai/uninstall.cfc +++ b/commands/coldbox/ai/uninstall.cfc @@ -1,6 +1,6 @@ /** * Uninstall AI integration from a ColdBox application - * Removes the .ai directory and all AI configuration + * Removes the .agents directory and all AI configuration * * Examples: * coldbox ai uninstall @@ -24,9 +24,9 @@ component extends="coldbox-cli.models.BaseAICommand" { showColdBoxBanner( "AI Integration Uninstaller" ) } - var aiDirectory = "#arguments.directory#/.ai" + var aiDirectory = "#arguments.directory#/.agents" - // Check if .ai directory exists + // Check if .agents directory exists if ( !directoryExists( aiDirectory ) ) { printWarn( "No AI integration found in this project." ) return @@ -35,7 +35,7 @@ component extends="coldbox-cli.models.BaseAICommand" { // Confirm uninstall unless force flag is set if ( !arguments.force ) { print.line() - printWarn( "⚠️ This will permanently delete the .ai directory and all AI configuration." ) + printWarn( "⚠️ This will permanently delete the .agents directory and all AI configuration." ) print.line() var confirmed = confirm( "Are you sure you want to uninstall AI integration? [y/N]: " ) diff --git a/models/AIService.cfc b/models/AIService.cfc index 25ce026..4f9d644 100644 --- a/models/AIService.cfc +++ b/models/AIService.cfc @@ -283,7 +283,7 @@ component singleton { }; // Check if AI integration is installed - var aiDir = arguments.directory & "/.ai" + var aiDir = arguments.directory & "/" & static.AI_DIR if ( !directoryExists( aiDir ) ) { issues.errors.append( "AI integration not installed. Run 'coldbox ai install' first." ) // Build summary for early return From 254536463940501efbebbc23fec750d0b56662f9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 6 May 2026 20:11:05 +0000 Subject: [PATCH 3/3] docs: add changelog entry for .ai vs .agents directory fix Agent-Logs-Url: https://github.com/ColdBox/coldbox-cli/sessions/74bcab47-6579-4cb3-baed-75661c6e28e9 Co-authored-by: lmajano <137111+lmajano@users.noreply.github.com> --- changelog.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/changelog.md b/changelog.md index a80e382..24b9801 100644 --- a/changelog.md +++ b/changelog.md @@ -9,6 +9,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed + +- **`coldbox ai doctor` and `coldbox ai uninstall` checking wrong directory** + - Both commands were checking for a `.ai` directory instead of `.agents`, causing them to always report "not installed" even after a successful `coldbox ai install` + - `AIService.diagnose()` now uses the `static.AI_DIR` constant (`.agents`) instead of the hardcoded `/.ai` path + - `coldbox ai uninstall` now correctly checks, removes, and references the `.agents` directory + ### Added - **VSCode Copilot MCP Mirroring**