From 56ef8781d3fb7b0739e8705e8ee4a6592b12e457 Mon Sep 17 00:00:00 2001 From: Dustin Healy <54083382+dustinhealy@users.noreply.github.com> Date: Sat, 6 Jun 2026 15:52:15 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20chore:=20re-sort=20imports=20aft?= =?UTF-8?q?er=20dev=20rebase?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Post-rebase sort-imports against the merge target — six audit-log files landed with stale import ordering relative to the current scripts/sort-imports.mts rules on dev. CI's import-order job flagged the drift; running the script locally rewrites them in place. No semantic changes. --- packages/api/src/admin/auditLog.spec.ts | 4 ++-- packages/data-schemas/src/methods/auditLog.spec.ts | 2 +- packages/data-schemas/src/models/index.ts | 2 +- packages/data-schemas/src/schema/auditLog.ts | 2 +- packages/data-schemas/src/types/auditLog.ts | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/api/src/admin/auditLog.spec.ts b/packages/api/src/admin/auditLog.spec.ts index b868f0ee9e..5c39a233a6 100644 --- a/packages/api/src/admin/auditLog.spec.ts +++ b/packages/api/src/admin/auditLog.spec.ts @@ -1,10 +1,10 @@ -import { EventEmitter } from 'events'; import { Types } from 'mongoose'; +import { EventEmitter } from 'events'; import { PrincipalType } from 'librechat-data-provider'; import type { AdminAuditLogEntry, AuditLogPage } from '@librechat/data-schemas'; import type { Response } from 'express'; -import type { ServerRequest } from '~/types/http'; import type { AdminAuditLogDeps } from './auditLog'; +import type { ServerRequest } from '~/types/http'; import { createAdminAuditLogHandlers } from './auditLog'; jest.mock('@librechat/data-schemas', () => ({ diff --git a/packages/data-schemas/src/methods/auditLog.spec.ts b/packages/data-schemas/src/methods/auditLog.spec.ts index fe2361d25e..97acf51af3 100644 --- a/packages/data-schemas/src/methods/auditLog.spec.ts +++ b/packages/data-schemas/src/methods/auditLog.spec.ts @@ -1,8 +1,8 @@ import mongoose, { Types } from 'mongoose'; import { PrincipalType } from 'librechat-data-provider'; import { MongoMemoryServer } from 'mongodb-memory-server'; -import type * as t from '~/types'; import type { RecordAuditEntryInput } from '~/types'; +import type * as t from '~/types'; import { createAuditLogMethods } from './auditLog'; import auditLogSchema from '~/schema/auditLog'; diff --git a/packages/data-schemas/src/models/index.ts b/packages/data-schemas/src/models/index.ts index 69140db4fa..6493013f2c 100644 --- a/packages/data-schemas/src/models/index.ts +++ b/packages/data-schemas/src/models/index.ts @@ -16,6 +16,7 @@ import { createSkillFileModel } from './skillFile'; import { createConversationModel } from './convo'; import { createToolCallModel } from './toolCall'; import { createAclEntryModel } from './aclEntry'; +import { createAuditLogModel } from './auditLog'; import { createSessionModel } from './session'; import { createBalanceModel } from './balance'; import { createMessageModel } from './message'; @@ -24,7 +25,6 @@ import { createBannerModel } from './banner'; import { createPresetModel } from './preset'; import { createPromptModel } from './prompt'; import { createMemoryModel } from './memory'; -import { createAuditLogModel } from './auditLog'; import { createConfigModel } from './config'; import { createTokenModel } from './token'; import { createAgentModel } from './agent'; diff --git a/packages/data-schemas/src/schema/auditLog.ts b/packages/data-schemas/src/schema/auditLog.ts index 461016e6cb..715a583672 100644 --- a/packages/data-schemas/src/schema/auditLog.ts +++ b/packages/data-schemas/src/schema/auditLog.ts @@ -1,7 +1,7 @@ import { Schema } from 'mongoose'; import { PrincipalType } from 'librechat-data-provider'; -import { AUDIT_ACTIONS } from '~/types/admin'; import type { IAuditLog } from '~/types'; +import { AUDIT_ACTIONS } from '~/types/admin'; /** * Append-only by schema contract: every field is `immutable`, every diff --git a/packages/data-schemas/src/types/auditLog.ts b/packages/data-schemas/src/types/auditLog.ts index 24f50828b5..5eeb6c3e70 100644 --- a/packages/data-schemas/src/types/auditLog.ts +++ b/packages/data-schemas/src/types/auditLog.ts @@ -1,5 +1,5 @@ -import type { Document, Types } from 'mongoose'; import type { PrincipalType } from 'librechat-data-provider'; +import type { Document, Types } from 'mongoose'; import type { AdminAuditLogEntry, AuditAction } from './admin'; /**