Complete PR #4654 integration with manager migration

 Successfully integrated conflict detection with task queue system
 Both systems work together seamlessly
 All merge conflicts resolved
 Generated types and locales properly merged

Note: Test updates needed for API changes (to be addressed in semantic review)
This commit is contained in:
bymyself
2025-09-01 00:37:44 -07:00
86 changed files with 8262 additions and 1297 deletions

View File

@@ -15,6 +15,7 @@ import { ref } from 'vue'
import PackActionButton from '@/components/dialog/content/manager/button/PackActionButton.vue'
import { useComfyManagerStore } from '@/stores/comfyManagerStore'
import type { components } from '@/types/comfyRegistryTypes'
import { components as ManagerComponents } from '@/types/generatedManagerTypes'
type NodePack = components['schemas']['Node']
@@ -26,10 +27,16 @@ const isUpdating = ref<boolean>(false)
const managerStore = useComfyManagerStore()
const createPayload = (updateItem: NodePack) => {
const createPayload = (
updateItem: NodePack
): ManagerComponents['schemas']['ManagerPackInfo'] => {
if (!updateItem.id) {
throw new Error('Node ID is required for update')
}
return {
id: updateItem.id!,
version: updateItem.latest_version!.version!
id: updateItem.id,
version: updateItem.latest_version?.version || 'latest'
}
}