Refactor: move editor agent hook

This commit is contained in:
2026-07-08 10:52:37 +08:00
parent eeaa0f4766
commit 48f165c16c
4 changed files with 5 additions and 5 deletions
@@ -10,7 +10,7 @@ import {
} from '@testing-library/react';
import { beforeEach, describe, expect, it, vi } from 'vitest';
import type { EditorAgentConversationClient } from '@/src/components/image-editor/useEditorAgentConversation.ts';
import type { EditorAgentConversationClient } from '@/src/components/image-editor/EditorAgentConversation/useEditorAgentConversation.ts';
import { useImageCanvasContextStore } from '@/src/components/image-editor/useImageCanvasContextStore.ts';
import { EditorAgentConversationPanelView } from './EditorAgentConversationPanelView.tsx';
@@ -6,7 +6,7 @@ import { beforeEach, describe, expect, it, vi } from 'vitest';
import {
type EditorAgentConversationClient,
useEditorAgentConversation,
} from './useEditorAgentConversation';
} from './useEditorAgentConversation.ts';
function createClient(): EditorAgentConversationClient {
return {
@@ -11,7 +11,7 @@ import type {
EditorAgentSseEvent,
EditorAgentStage,
StreamEditorAgentMessageRequest,
} from '../../../packages/shared/src/contracts/editorAgent';
} from '../../../../packages/shared/src/contracts/editorAgent.ts';
import {
createEditorAgentConversation,
deleteEditorAgentConversation,
@@ -19,7 +19,7 @@ import {
listEditorAgentConversations,
streamEditorAgentMessage,
type StreamEditorAgentMessageOptions,
} from '../../services/image-editor/editorAgentClient';
} from '../../../services/image-editor/editorAgentClient.ts';
export type EditorAgentConversationClient = {
listConversations: (
@@ -12,7 +12,7 @@ import userEvent from '@testing-library/user-event';
import JSZip from 'jszip';
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
import type { EditorAgentConversationClient } from './useEditorAgentConversation';
import type { EditorAgentConversationClient } from './EditorAgentConversation/useEditorAgentConversation.ts';
import {
ApiClientError,
AuthUiContext,