mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-08-04 06:52:47 +00:00
🎨 style: sort imports to satisfy the new import-order check (#13552)
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.
This commit is contained in:
parent
73ef702a69
commit
30f94cd4c2
6 changed files with 14 additions and 14 deletions
|
|
@ -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';
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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', () => ({
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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', () => {
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue