mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-08-04 14:57:42 +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
15696f641a
commit
57cd149b86
7 changed files with 12 additions and 12 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';
|
||||
|
|
|
|||
|
|
@ -15,17 +15,17 @@ import type { StructuredToolInterface } from '@librechat/agents/langchain/tools'
|
|||
import type { CodeEnvRef } from 'librechat-data-provider';
|
||||
import type { SkillFileRecord } from './skillFiles';
|
||||
import type { ServerRequest } from '~/types';
|
||||
import { logAxiosError, runOutsideTracing } from '~/utils';
|
||||
import { buildSkillPrimeMessage } from './skills';
|
||||
import { cleanCodeToolOutput } from './cleanup';
|
||||
import { primeSkillFiles } from './skillFiles';
|
||||
import {
|
||||
CREATE_FILE_TOOL_NAME,
|
||||
EDIT_FILE_TOOL_NAME,
|
||||
HOST_FILE_AUTHORING_ARTIFACT_KEY,
|
||||
isCodeSessionToolName,
|
||||
} from './tools';
|
||||
import { logAxiosError, runOutsideTracing } from '~/utils';
|
||||
import { parseFrontmatter } from '../skills/import';
|
||||
import { buildSkillPrimeMessage } from './skills';
|
||||
import { cleanCodeToolOutput } from './cleanup';
|
||||
import { primeSkillFiles } from './skillFiles';
|
||||
|
||||
export interface ToolEndCallbackData {
|
||||
output: {
|
||||
|
|
|
|||
|
|
@ -23,8 +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 { InitializeResultBase, ServerRequest, EndpointDbMethods } from '~/types';
|
||||
import type { ResolvedManualSkill, ResolvedAlwaysApplySkill } from './skills';
|
||||
import type {
|
||||
TFileUpdate,
|
||||
ProvisionState,
|
||||
|
|
@ -34,6 +32,8 @@ import type {
|
|||
TCheckSessionsAlive,
|
||||
TLoadCodeApiKey,
|
||||
} from './resources';
|
||||
import type { InitializeResultBase, ServerRequest, EndpointDbMethods } from '~/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