Refactor: move editor agent hook
This commit is contained in:
+1
-1
@@ -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';
|
||||
|
||||
+1
-1
@@ -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 {
|
||||
+2
-2
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user