feat: refine UI, improve UX, optimize the analysis pipeline, and add character standing positions

This commit is contained in:
saturn
2026-04-02 17:39:16 +08:00
parent c3e74c228a
commit 9703714b69
153 changed files with 4472 additions and 1088 deletions

View File

@@ -8,6 +8,7 @@ import {
invalidateGlobalCharacters,
invalidateGlobalLocations,
} from './asset-hub-mutations-shared'
import type { LocationAvailableSlot } from '@/lib/location-available-slots'
export function useAiDesignLocation() {
return useMutation({
@@ -21,7 +22,7 @@ export function useAiDesignLocation() {
},
'Failed to design location',
)
return resolveTaskResponse<{ prompt?: string }>(response)
return resolveTaskResponse<{ prompt?: string; availableSlots?: LocationAvailableSlot[] }>(response)
},
})
}
@@ -37,6 +38,7 @@ export function useCreateAssetHubLocation() {
folderId: string | null
artStyle: string
count?: number
availableSlots?: LocationAvailableSlot[]
}) => {
return await requestJsonWithError('/api/asset-hub/locations', {
method: 'POST',