CenterTEST.ps1
|
# WHEN CHANGING IN VBAF-CENTER >>> ALL YOU DO IS >>> RUN C:\Users\henni\OneDrive\WindowsPowerShell\VBAF-Center\VBAF-Center\VBAF.Center.Publish.ps1 . "VBAF-Center\VBAF.Center.LoadAll.ps1" VBAF-CENTER\VBAF.Center.LoadAll.ps1 VBAF-Center Phase 1 loaded [Customer Profile] New-VBAFCenterCustomer — create profile Get-VBAFCenterCustomer — retrieve profile Get-VBAFCenterAllCustomers — list all Update-VBAFCenterCustomer — update profile Remove-VBAFCenterCustomer — remove profile VBAF-Center Phase 2 loaded [Problem Classification] Get-VBAFCenterClassification — classify a problem Get-VBAFCenterAgentMap — show agent mappings Set-VBAFCenterAgentMap — add custom mapping VBAF-Center Phase 3 loaded [Signal Acquisition] New-VBAFCenterSignalConfig — define signal source Get-VBAFCenterSignal — get one live signal Get-VBAFCenterAllSignals — get all signals Test-VBAFCenterSignalConfig — test configuration VBAF-Center Phase 4 loaded [Normalisation] Invoke-VBAFCenterNormalise — normalise signals Get-VBAFCenterNormalisationReport — detailed report Methods: MinMax | Standard | Robust | PassThrough VBAF-Center Phase 5 loaded [Agent Router] Invoke-VBAFCenterRoute — route signals to agent Register-VBAFCenterAgent — register a trained agent Get-VBAFCenterRouteStatus — show loaded agents VBAF-Center Phase 6 loaded [Action Interpreter] New-VBAFCenterActionMap — define action meanings Invoke-VBAFCenterInterpret — translate action number Get-VBAFCenterActionMap — show customer action map VBAF-Center Phase 7 loaded [Customer Onboarding UI] Start-VBAFCenterOnboarding — full setup wizard Show-VBAFCenterSummary — show customer setup VBAF-Center Phase 8 loaded [Scheduling Engine] Invoke-VBAFCenterRun — run pipeline once Start-VBAFCenterSchedule — start auto-checking Get-VBAFCenterRunHistory — show recent results VBAF-Center Phase 9 — web portal Start-VBAFCenterPortal VBAF-Center Phase 10 — auto-connector Start-VBAFCenterAutoConnect VBAF-Center Phase 11 — dashboard Start-VBAFCenterDashboard VBAF-Center Phase 12 — billing New-VBAFCenterInvoice #___________________________________ RESET IN BETWEEN TEST'S ________________________________________________ # Clean reset — removes all test customers and their data $base = "$env:USERPROFILE\VBAFCenter" # Remove all customer profiles Remove-Item "$base\customers\*.json" -Force -ErrorAction SilentlyContinue # Remove all signal configs Remove-Item "$base\signals\*.json" -Force -ErrorAction SilentlyContinue # Remove all action maps Remove-Item "$base\actions\*.txt" -Force -ErrorAction SilentlyContinue Remove-Item "$base\actions\*.json" -Force -ErrorAction SilentlyContinue # Remove all schedules Remove-Item "$base\schedules\*.json" -Force -ErrorAction SilentlyContinue # Remove all history Remove-Item "$base\history\*.json" -Force -ErrorAction SilentlyContinue # Remove all invoices Remove-Item "$base\invoices\*.txt" -Force -ErrorAction SilentlyContinue Write-Host "Clean slate — all test data removed!" -ForegroundColor Green Get-VBAFCenterAllCustomers # CHECK <#_____________________________________ CustomerID : TruckCompanyDK CompanyName : Truck Company DK Country : Denmark BusinessType : Logistics Problem : Too many idle trucks and late deliveries Agent : FleetDispatch Contact : ceo@truckcompanydk.dk Notes : First test customer CustomerID = $CustomerID CompanyName = $CompanyName Country = $Country BusinessType = $BusinessType Problem = $Problem Agent = $Agent Contact = $Contact Notes = $Notes CreatedDate = (Get-Date).ToString("yyyy-MM-dd") Status = "Active" Version = "1.0" TESTING PHASE 1-8 (PROMPT ARGUMENTS) >>>>>>>>>>>>>>>>>>>>>>@ Get-VBAFCenterCustomer cmdlet Get-VBAFCenterCustomer at command pipeline position 1 Supply values for the following parameters: CustomerID: TruckCompanyDK Customer Profile: CustomerID : TruckCompanyDK Company : Truck Company DK Country : Denmark Business : Logistics Problem : Too many idle trucks and late deliveries Agent : FleetDispatch Contact : ceo@truckcompanydk.dk Created : 2026-04-03 Status : Active Contact : ceo@truckcompanydk.dk Agent : FleetDispatch Version : 1.0 CustomerID : TruckCompanyDK Notes : Third test customer Problem : Too many idle trucks and late deliveries CreatedDate : 2026-04-03 Status : Active BusinessType : Logistics CompanyName : Truck Company DK Country : Denmark __________________ >>>>>>>>>>>>>>>>>>>>>>>>>>@ Get-VBAFCenterAllCustomers Contact : ceo@nordlogistik.dk Agent : FleetDispatch Version : 1.0 CustomerID : NordLogistik Notes : Problem : Fleet dispatch optimisation CreatedDate : 2026-03-28 Status : Active BusinessType : Logistics CompanyName : NordLogistik A/S Country : Denmark Contact : ceo@truckcompanydk.dk Agent : FleetDispatch Version : 1.0 CustomerID : TruckCompanyDK Notes : Third test customer Problem : Too many idle trucks and late deliveries CreatedDate : 2026-04-03 Status : Active BusinessType : Logistics CompanyName : Truck Company DK Country : Denmark ________Phase 2 ____________________________ >>>>>>>>>>>>>>>>>>>>>>>>>>@ Get-VBAFCenterClassification cmdlet Get-VBAFCenterClassification at command pipeline position 1 Supply values for the following parameters: CustomerID: TruckCompanyDK Problem Classification: Customer : TruckCompanyDK Problem : Too many idle trucks and late deliveries Keyword : logistics Class : BUSINESS-LOGISTICS-FLEET Agent : FleetDispatch Phase : 28 Description : Fleet dispatch optimisation Name Value ---- ----- ClassificationCode BUSINESS-LOGISTICS-FLEET CustomerID TruckCompanyDK Description Fleet dispatch optimisation Phase 28 MatchedKeyword logistics ProblemText Too many idle trucks and late deliveries RecommendedAgent FleetDispatch ______________Phase 3 ____________________ >>>>>>>>>>>>>>>> New-VBAFCenterSignalConfig CustomerID : TruckCompanyDK SignalName : On-Time Delivery SignalIndex : Signal2 SourceType : Simulated RawMin : 0 RawMax : 100 ______________Phase 4 ____________________ >>>>>> Invoke-VBAFCenterNormalise — normalise signals CustomerID : TruckCompanyDK RawSignals[0]: 27.0 RawSignals[1]: 64.0 RawSignals[2]: [just press Enter] ______________Phase 5 ____________________ >>>>>>>>>>>>> Invoke-VBAFCenterRoute — route signals to agent CustomerID : TruckCompanyDK NormalisedSignals[0]: 0.27 NormalisedSignals[1]: 0.64 NormalisedSignals[2]: [just press Enter] >>>>>>>>>>>>>>>> Register-VBAFCenterAgent CustomerID : TruckCompanyDK AgentName : FleetDispatch Agent : [just press Enter] ______________Phase 6 ____________________ >>>>>>>>>>>>>>>> New-VBAFCenterActionMap — define action meanings CustomerID : TruckCompanyDK Action0Name : Monitor Action0Command : Watch and log — fleet healthy Action1Name : Reassign Action1Command : Move idle truck to pending delivery Action2Name : Reroute Action2Command : Switch to faster route Action3Name : Escalate Action3Command : Call operations manager immediately >>>>>>>>>>>> Invoke-VBAFCenterInterpret — translate action number CustomerID : TruckCompanyDK ActionNumber : 1 >>>>>>>>>>> Get-VBAFCenterActionMap CustomerID : TruckCompanyDK ______________Phase 7____________________ >>>>>>>>> Start-VBAFCenterOnboarding — full setup wizard Press ENTER to start : [just press Enter] Customer ID : TruckCompanyDK2 Company name : Truck Company DK Country : Denmark Business type : Logistics Problem : Too many idle trucks and late deliveries Contact email : ceo@truckcompanydk.dk Accept agent? (Y/N) : N Manual agent : FleetDispatch Signal 1 name : Empty Driving Source type : Simulated Raw minimum value : 0 Raw maximum value : 100 Signal 2 name : On-Time Delivery Source type : Simulated Raw minimum value : 0 Raw maximum value : 100 Signal 3 name : [just press Enter] Signal 4 name : [just press Enter] Normalisation method : MinMax Action 0 name : Monitor Action 0 command : Watch and log — fleet healthy Action 1 name : Reassign Action 1 command : Move idle truck to pending delivery Action 2 name : Reroute Action 2 command : Switch to faster route Action 3 name : Escalate Action 3 command : Call operations manager immediately >>>>>> >>>> Show-VBAFCenterSummary — show customer setup CustomerID : TruckCompanyDK2 ______________Phase 8 ____________________ >>>> Invoke-VBAFCenterRun — run pipeline once CustomerID : TruckCompanyDK2 >>>>> Start-VBAFCenterSchedule CustomerID : TruckCompanyDK2 MaxRuns : 3 ______________________________________________________________________________________________________________ CLEAN-UP: Remove-VBAFCenterCustomer -CustomerID "TruckCompanyDK" Remove-VBAFCenterCustomer -CustomerID "TruckCompanyDK2" Get-VBAFCenterAllCustomers #> |