From 30f94cd4c22e1fa4bb43bc05657713876450b37e Mon Sep 17 00:00:00 2001 From: Danny Avila Date: Sat, 6 Jun 2026 12:40:41 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20style:=20sort=20imports=20to=20s?= =?UTF-8?q?atisfy=20the=20new=20import-order=20check=20(#13552)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The dev rebase brought in scripts/sort-imports.mts + the eslint-ci import-order gate. Re-sort the 7 PR-touched files flagged by `sort-imports --check` so the new ESLint CI passes. No logic changes. --- .../Files/__tests__/AttachFileMenu.spec.tsx | 2 +- packages/api/src/agents/initialize.ts | 16 ++++++++-------- packages/api/src/agents/resources.test.ts | 2 +- packages/api/src/files/context.ts | 2 +- .../src/resolve-llm-delivery-path.spec.ts | 2 +- packages/data-provider/src/types/files.ts | 4 ++-- 6 files changed, 14 insertions(+), 14 deletions(-) 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',