Manager Conflict Nofitication (#4443)

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: bymyself <cbyrne@comfy.org>
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Jin Yi
2025-07-25 08:35:46 +09:00
committed by GitHub
parent 0a2f2d8368
commit b169772f9f
48 changed files with 4684 additions and 374 deletions

View File

@@ -15,6 +15,7 @@ export type ConflictType =
| 'accelerator' // GPU/accelerator incompatibility
| 'banned' // Banned package
| 'security_pending' // Security verification pending
| 'python_dependency' // Python module dependency missing
/**
* Security scan status for packages
@@ -147,10 +148,6 @@ export interface ConflictDetectionResult {
conflicts: ConflictDetail[]
/** @description Overall compatibility status */
is_compatible: boolean
/** @description Whether conflicts can be automatically resolved */
can_auto_resolve: boolean
/** @description Recommended action to resolve conflicts */
recommended_action: RecommendedAction
}
/**
@@ -159,30 +156,10 @@ export interface ConflictDetectionResult {
export interface ConflictDetail {
/** @description Type of conflict detected */
type: ConflictType
/** @description Severity level of the conflict */
severity: 'error' | 'warning' | 'info'
/** @description Human-readable description of the conflict */
description: string
/** @description Current system value */
current_value: string
/** @description Required value for compatibility */
required_value: string
/** @description Optional steps to resolve the conflict */
resolution_steps?: string[]
}
/**
* Recommended action to resolve conflicts
*/
export interface RecommendedAction {
/** @description Type of action to take */
action_type: 'disable' | 'update' | 'ignore' | 'manual_review'
/** @description Reason for the recommended action */
reason: string
/** @description Step-by-step instructions */
steps: string[]
/** @description Estimated difficulty of implementing the action */
estimated_difficulty: 'easy' | 'medium' | 'hard'
}
/**
@@ -207,24 +184,6 @@ export interface ConflictDetectionSummary {
check_duration_ms: number
}
/**
* API request/response interfaces
*/
/**
* Request payload for conflict detection API
*/
export interface ConflictDetectionRequest {
/** @description Current system environment information */
system_environment: SystemEnvironment
/** @description Optional list of specific package IDs to check */
package_ids?: string[]
/** @description Whether to include banned packages in the check */
include_banned?: boolean
/** @description Whether to include security-pending packages in the check */
include_security_pending?: boolean
}
/**
* Response payload from conflict detection API
*/
@@ -242,23 +201,3 @@ export interface ConflictDetectionResponse {
/** @description System environment information detected by the server (for comparison) */
detected_system_environment?: Partial<SystemEnvironment>
}
/**
* Real-time conflict detection event
*/
export interface ConflictDetectionEvent {
/** @description Type of event */
event_type:
| 'conflict_detected'
| 'conflict_resolved'
| 'scan_started'
| 'scan_completed'
/** @description Event timestamp */
timestamp: string
/** @description Package ID associated with the event, if applicable */
package_id?: string
/** @description Type of conflict, if applicable */
conflict_type?: ConflictType
/** @description Additional event details */
details?: string
}