Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**
Expand Down
8 changes: 4 additions & 4 deletions commands/coldbox/ai/uninstall.cfc
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -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]: " )
Expand Down
2 changes: 1 addition & 1 deletion models/AIService.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down