From d255f91e823e0f23dbbf0c94d49038cd1f81191b Mon Sep 17 00:00:00 2001 From: Fimeg Date: Sat, 20 Dec 2025 17:39:59 -0500 Subject: [PATCH] fix: Remove deprecated scan_updates references\n\n- scan_updates removed following FINAL_Issue3 design\n- Platform-specific scans only (Windows: scan_winget + scan_windows, Linux: scan_apt/scan_dnf)\n- Updated command naming service to include platform-specific scans\n- All subsystem handlers properly isolated per design spec --- .../src/components/ChatTimeline.tsx | 7 ++-- aggregator-web/src/lib/command-naming.ts | 35 ++++++++++++++----- 2 files changed, 32 insertions(+), 10 deletions(-) diff --git a/aggregator-web/src/components/ChatTimeline.tsx b/aggregator-web/src/components/ChatTimeline.tsx index 04b3186..ed0f57c 100644 --- a/aggregator-web/src/components/ChatTimeline.tsx +++ b/aggregator-web/src/components/ChatTimeline.tsx @@ -812,10 +812,13 @@ const ChatTimeline: React.FC = ({ agentId, className, isScope ) : ( )} - {entry.action === 'scan_updates' ? 'Package Analysis Results' : - entry.action === 'scan_storage' ? 'Disk Usage Report' : + {entry.action === 'scan_storage' ? 'Disk Usage Report' : entry.action === 'scan_system' ? 'System Metrics Report' : entry.action === 'scan_docker' ? 'Docker Image Analysis' : + entry.action === 'scan_apt' ? 'APT Package Scan' : + entry.action === 'scan_dnf' ? 'DNF Package Scan' : + entry.action === 'scan_winget' ? 'Winget Package Scan' : + entry.action === 'scan_windows' ? 'Windows Update Scan' : 'Operation Details'}
diff --git a/aggregator-web/src/lib/command-naming.ts b/aggregator-web/src/lib/command-naming.ts index 5d507e5..116c628 100644 --- a/aggregator-web/src/lib/command-naming.ts +++ b/aggregator-web/src/lib/command-naming.ts @@ -16,17 +16,12 @@ export interface CommandDisplay { /** * Maps internal command types to user-friendly display names - * Internal format: scan_updates, scan_storage, etc. - * External format: Updates Scan, Storage Scan, etc. + * Internal format: scan_storage, scan_system, scan_docker, scan_apt, scan_dnf, scan_winget, scan_windows + * External format: Storage Scan, System Scan, etc. + * Note: scan_updates was removed - use platform-specific scans instead */ export const getCommandDisplay = (commandType: string): CommandDisplay => { const commandMap: Record = { - 'scan_updates': { - action: 'Updates Scan', - verb: 'Scan', - noun: 'Package Updates', - icon: 'Package', - }, 'scan_storage': { action: 'Storage Scan', verb: 'Scan', @@ -45,6 +40,30 @@ export const getCommandDisplay = (commandType: string): CommandDisplay => { noun: 'Docker Images', icon: 'Container', }, + 'scan_apt': { + action: 'APT Scan', + verb: 'Scan', + noun: 'APT Packages', + icon: 'Package', + }, + 'scan_dnf': { + action: 'DNF Scan', + verb: 'Scan', + noun: 'DNF Packages', + icon: 'Package', + }, + 'scan_winget': { + action: 'Winget Scan', + verb: 'Scan', + noun: 'Winget Packages', + icon: 'Package', + }, + 'scan_windows': { + action: 'Windows Update Scan', + verb: 'Scan', + noun: 'Windows Updates', + icon: 'Package', + }, 'install_package': { action: 'Package Install', verb: 'Install',