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
This commit is contained in:
@@ -812,10 +812,13 @@ const ChatTimeline: React.FC<ChatTimelineProps> = ({ agentId, className, isScope
|
|||||||
) : (
|
) : (
|
||||||
<Package className="h-3 w-3 mr-1.5" />
|
<Package className="h-3 w-3 mr-1.5" />
|
||||||
)}
|
)}
|
||||||
{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_system' ? 'System Metrics Report' :
|
||||||
entry.action === 'scan_docker' ? 'Docker Image Analysis' :
|
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'}
|
'Operation Details'}
|
||||||
</h4>
|
</h4>
|
||||||
<div className="space-y-2 text-xs">
|
<div className="space-y-2 text-xs">
|
||||||
|
|||||||
@@ -16,17 +16,12 @@ export interface CommandDisplay {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Maps internal command types to user-friendly display names
|
* Maps internal command types to user-friendly display names
|
||||||
* Internal format: scan_updates, scan_storage, etc.
|
* Internal format: scan_storage, scan_system, scan_docker, scan_apt, scan_dnf, scan_winget, scan_windows
|
||||||
* External format: Updates Scan, Storage Scan, etc.
|
* External format: Storage Scan, System Scan, etc.
|
||||||
|
* Note: scan_updates was removed - use platform-specific scans instead
|
||||||
*/
|
*/
|
||||||
export const getCommandDisplay = (commandType: string): CommandDisplay => {
|
export const getCommandDisplay = (commandType: string): CommandDisplay => {
|
||||||
const commandMap: Record<string, CommandDisplay> = {
|
const commandMap: Record<string, CommandDisplay> = {
|
||||||
'scan_updates': {
|
|
||||||
action: 'Updates Scan',
|
|
||||||
verb: 'Scan',
|
|
||||||
noun: 'Package Updates',
|
|
||||||
icon: 'Package',
|
|
||||||
},
|
|
||||||
'scan_storage': {
|
'scan_storage': {
|
||||||
action: 'Storage Scan',
|
action: 'Storage Scan',
|
||||||
verb: 'Scan',
|
verb: 'Scan',
|
||||||
@@ -45,6 +40,30 @@ export const getCommandDisplay = (commandType: string): CommandDisplay => {
|
|||||||
noun: 'Docker Images',
|
noun: 'Docker Images',
|
||||||
icon: 'Container',
|
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': {
|
'install_package': {
|
||||||
action: 'Package Install',
|
action: 'Package Install',
|
||||||
verb: 'Install',
|
verb: 'Install',
|
||||||
|
|||||||
Reference in New Issue
Block a user