system-prompts-and-models-o.../PowerShell_AI_Agent/test.ps1
dopeuni444 7956969c8b Improves config loading feedback
Adds a detailed output of configuration properties upon successful loading.

This enhancement provides immediate feedback to the user, confirming
that the configuration file has been loaded correctly and displaying
the available properties.
2025-07-31 13:03:57 +04:00

35 lines
1.2 KiB
PowerShell

# Simple test script for PowerShell AI Agent
Write-Host "PowerShell AI Agent Test" -ForegroundColor Green
Write-Host "========================" -ForegroundColor Green
# Test basic functionality
Write-Host "Testing basic functionality..." -ForegroundColor Yellow
# Test configuration loading
$configPath = ".\config\agent-config.json"
if (Test-Path $configPath) {
Write-Host "✅ Configuration file exists" -ForegroundColor Green
$config = Get-Content $configPath | ConvertFrom-Json
Write-Host "✅ Configuration loaded successfully" -ForegroundColor Green
Write-Host " Configuration properties: $($config.PSObject.Properties.Name -join ', ')" -ForegroundColor Cyan
} else {
Write-Host "❌ Configuration file not found" -ForegroundColor Red
}
# Test memory system
$memoryPath = ".\data\memory.json"
if (Test-Path $memoryPath) {
Write-Host "✅ Memory file exists" -ForegroundColor Green
} else {
Write-Host "❌ Memory file not found" -ForegroundColor Red
}
# Test main script
$mainScript = ".\scripts\main.ps1"
if (Test-Path $mainScript) {
Write-Host "✅ Main script exists" -ForegroundColor Green
} else {
Write-Host "❌ Main script not found" -ForegroundColor Red
}
Write-Host "`nTest completed!" -ForegroundColor Green