diff --git a/client/src/components/Chat/Input/Files/__tests__/AttachFileMenu.spec.tsx b/client/src/components/Chat/Input/Files/__tests__/AttachFileMenu.spec.tsx index 5aec4721a5..bf1bc02f60 100644 --- a/client/src/components/Chat/Input/Files/__tests__/AttachFileMenu.spec.tsx +++ b/client/src/components/Chat/Input/Files/__tests__/AttachFileMenu.spec.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import { render, screen, fireEvent } from '@testing-library/react'; import { RecoilRoot } from 'recoil'; +import { render, screen, fireEvent } from '@testing-library/react'; import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import { EModelEndpoint, EToolResources, Providers } from 'librechat-data-provider'; import AttachFileMenu from '../AttachFileMenu'; diff --git a/packages/api/src/agents/initialize.ts b/packages/api/src/agents/initialize.ts index d70910c8e0..1e854b8c41 100644 --- a/packages/api/src/agents/initialize.ts +++ b/packages/api/src/agents/initialize.ts @@ -23,14 +23,6 @@ import type { import type { GenericTool, LCToolRegistry, ToolMap, LCTool } from '@librechat/agents'; import type { Response as ServerResponse } from 'express'; import type { IMongoFile } from '@librechat/data-schemas'; -import type { - ServerRequest, - EndpointDbMethods, - EndpointTokenConfig, - InitializeResultBase, -} from '~/types'; -import type { LCAvailableTools, RequestScopedMCPConnectionStore } from '../mcp/types'; -import type { ResolvedManualSkill, ResolvedAlwaysApplySkill } from './skills'; import type { TFileUpdate, ProvisionState, @@ -40,6 +32,14 @@ import type { TCheckSessionsAlive, TLoadCodeApiKey, } from './resources'; +import type { + ServerRequest, + EndpointDbMethods, + EndpointTokenConfig, + InitializeResultBase, +} from '~/types'; +import type { LCAvailableTools, RequestScopedMCPConnectionStore } from '../mcp/types'; +import type { ResolvedManualSkill, ResolvedAlwaysApplySkill } from './skills'; import { injectSkillCatalog, resolveManualSkills, diff --git a/packages/api/src/agents/resources.test.ts b/packages/api/src/agents/resources.test.ts index 1ef8b75be8..abd271bb24 100644 --- a/packages/api/src/agents/resources.test.ts +++ b/packages/api/src/agents/resources.test.ts @@ -1,4 +1,3 @@ -import { primeResources } from './resources'; import { logger } from '@librechat/data-schemas'; import { FileSources, @@ -10,6 +9,7 @@ import type { TAgentsEndpoint, TFile } from 'librechat-data-provider'; import type { IUser, AppConfig } from '@librechat/data-schemas'; import type { Request as ServerRequest } from 'express'; import type { TGetFiles, TFilterFilesByAgentAccess } from './resources'; +import { primeResources } from './resources'; // Mock logger jest.mock('@librechat/data-schemas', () => ({ diff --git a/packages/api/src/files/context.ts b/packages/api/src/files/context.ts index 2f40c55192..3e833a5fa3 100644 --- a/packages/api/src/files/context.ts +++ b/packages/api/src/files/context.ts @@ -1,9 +1,9 @@ import { logger } from '@librechat/data-schemas'; import { FileSources, mergeFileConfig } from 'librechat-data-provider'; import type { IMongoFile } from '@librechat/data-schemas'; +import type { TokenCountFn } from '~/utils/text'; import type { ServerRequest } from '~/types'; import { processTextWithTokenLimit } from '~/utils/text'; -import type { TokenCountFn } from '~/utils/text'; /** * Extracts text context from attachments and returns formatted text. diff --git a/packages/data-provider/src/resolve-llm-delivery-path.spec.ts b/packages/data-provider/src/resolve-llm-delivery-path.spec.ts index 2a2cc2829c..713e85dc8a 100644 --- a/packages/data-provider/src/resolve-llm-delivery-path.spec.ts +++ b/packages/data-provider/src/resolve-llm-delivery-path.spec.ts @@ -1,8 +1,8 @@ +import type { TDefaultLLMDeliveryPathConfig } from './file-config'; import { resolveDefaultLLMDeliveryPath, SYSTEM_LLM_DELIVERY_DEFAULTS, } from './resolve-llm-delivery-path'; -import type { TDefaultLLMDeliveryPathConfig } from './file-config'; describe('resolveDefaultLLMDeliveryPath', () => { it('should return system default for images when no config provided', () => { diff --git a/packages/data-provider/src/types/files.ts b/packages/data-provider/src/types/files.ts index 55fe621473..084148ca21 100644 --- a/packages/data-provider/src/types/files.ts +++ b/packages/data-provider/src/types/files.ts @@ -1,6 +1,6 @@ -import { EToolResources } from './assistants'; -import type { CodeEnvRef } from '../codeEnvRef'; import type { TDefaultLLMDeliveryPathConfig } from '../file-config'; +import type { CodeEnvRef } from '../codeEnvRef'; +import { EToolResources } from './assistants'; export enum FileSources { local = 'local',