🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
chore(dx): prettier for all (#7692)
Nimarfe8ba75ff363
diff --git a/.husky/pre-commit b/.husky/pre-commitindex 021f62e8ab..b04c55d546 100755--- a/.husky/pre-commit+++ b/.husky/pre-commit@@ -11,6 +11,8 @@ if [ "$current_branch" = "$protected_branch" ]; thenecho "🚨 You are about to commit to the $protected_branch branch. Are you sure? (y/n)"read -r answer < /dev/ttyif [ "$answer" != "${answer#[Yy]}" ]; then+ # Commit approved, run formatting+ pnpm run formatexit 0 # Commit will proceedelseecho "Commit to $protected_branch branch has been canceled."@@ -18,5 +20,6 @@ if [ "$current_branch" = "$protected_branch" ]; thenfifi-# If not the protected branch, proceed with the commit+# If not the protected branch, run formatting and proceed with the commit+pnpm run formatexit 0diff --git a/.prettierignore b/.prettierignorenew file mode 100644index 0000000000..518fbfdfa1--- /dev/null+++ b/.prettierignore@@ -0,0 +1,2 @@+# ignore auto generated code+packages/shared/prisma/generated/diff --git a/CLAUDE.md b/CLAUDE.mdindex 04b23f311a..aa6d23574c 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -94,6 +94,7 @@ pnpm run test --filter=worker -- $TEST_FILE_NAME -t "$TEST_NAME"### Utilities```bash+pnpm run format # Format code across entire projectpnpm run nuke # Remove all node_modules, build files, wipe database, docker containers. **USE WITH CAUTION**```diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 74774341db..1bd4ff8b75 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -124,7 +124,14 @@ Requirementscd langfuse```-3. Create an env file+3. Install dependencies and set up pre-commit hooks++ ```bash+ pnpm install+ pnpm run prepare # Sets up Husky pre-commit hooks for code formatting+ ```++4. Create an env file```bashcp .env.dev.example .env@@ -133,7 +140,7 @@ Requirements4. Run the entire infrastructure in dev mode. **Note**: if you have an existing database, this command wipes it.```bash- pnpm run dx # first run only (resets db, node_modules, ...)+ pnpm run dx # first run only (resets db, docker containers, etc...)pnpm run dev # any subsequent runs```diff --git a/ee/package.json b/ee/package.jsonindex 9b491cdf3d..e533c7dd5f 100644--- a/ee/package.json+++ b/ee/package.json@@ -41,7 +41,7 @@"eslint-config-prettier": "^9.1.0","eslint-config-standard": "^17.1.0","eslint-plugin-prettier": "^5.1.3",- "prettier": "^3.3.3",+ "prettier": "^3.4.2","ts-node": "^10.9.2","tsc-watch": "^6.2.0","typescript": "^5.4.5"diff --git a/package.json b/package.jsonindex 21d752f557..44bb36453a 100644--- a/package.json+++ b/package.json@@ -27,6 +27,7 @@"dev:web": "turbo run dev --filter=web","dev:web-turbo": "turbo run dev --filter=web -- --turbo","lint": "turbo run lint",+ "format": "prettier --write \"**/*.{js,jsx,ts,tsx,css}\"","test": "turbo run test","release": "dotenv -e ../.env -- release-it","prepare": "husky"@@ -36,7 +37,7 @@"braces": "3.0.3","dotenv-cli": "^7.4.2","husky": "^9.0.11",- "prettier": "^3.3.3",+ "prettier": "^3.6.2","release-it": "^19.0.3","turbo": "^2.5.4"},diff --git a/packages/config-eslint/library.js b/packages/config-eslint/library.jsindex 3a235cb054..6ef05b6105 100644--- a/packages/config-eslint/library.js+++ b/packages/config-eslint/library.js@@ -35,5 +35,13 @@ module.exports = {{files: ["*.js?(x)", "*.ts?(x)"],},+ {+ files: ["*.ts", "*.mts", "*.cts", "*.tsx"],+ // no-undef doesn't make sense in TS, see:+ // https://typescript-eslint.io/troubleshooting/faqs/eslint/#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors+ rules: {+ "no-undef": "off",+ },+ },],};diff --git a/packages/shared/package.json b/packages/shared/package.jsonindex 246bcc10f5..8945547b96 100644--- a/packages/shared/package.json+++ b/packages/shared/package.json@@ -112,7 +112,7 @@"eslint-plugin-prettier": "^5.1.3","kysely-codegen": "^0.16.8","nodemon": "^3.1.7",- "prettier": "^3.3.3",+ "prettier": "^3.6.2","prisma": "^6.10.1","prisma-erd-generator": "^1.11.2","prisma-kysely": "^1.8.0",diff --git a/packages/shared/scripts/seeder/seed-postgres.ts b/packages/shared/scripts/seeder/seed-postgres.tsindex a936fc7737..0eb06fbe55 100644--- a/packages/shared/scripts/seeder/seed-postgres.ts+++ b/packages/shared/scripts/seeder/seed-postgres.ts@@ -4,15 +4,16 @@ import { hash } from "bcryptjs";import { v4 } from "uuid";import { encrypt } from "../../src/encryption";import {- type JobConfiguration,- JobExecutionStatus,- PrismaClient,- type Project,- ScoreDataType,+ type JobConfiguration,+ JobExecutionStatus,+ PrismaClient,+ type Project,+ ScoreDataType,} from "../../src/index";import { getDisplaySecretKey, hashSecretKey, logger } from "../../src/server";import { redis } from "../../src/server/redis/redis";-import {EVAL_TRACE_COUNT,+import {+ EVAL_TRACE_COUNT,FAILED_EVAL_TRACE_INTERVAL,SEED_CHAT_ML_PROMPTS,SEED_DATASETS,diff --git a/packages/shared/src/db.ts b/packages/shared/src/db.tsindex bd2d0558c7..d0b0aa4871 100644--- a/packages/shared/src/db.ts+++ b/packages/shared/src/db.ts@@ -88,7 +88,8 @@ declare const globalThis: {kyselyPrismaGlobal: { $kysely: Kysely<DB> } | undefined;} & typeof global;-if (process.env.NODE_ENV === "development") { // eslint-disable-line turbo/no-undeclared-env-vars+// eslint-disable-next-line turbo/no-undeclared-env-vars+if (process.env.NODE_ENV === "development") {globalThis.prismaGlobal ??= createPrismaInstance(); // regular instantiationglobalThis.kyselyPrismaGlobal ??= globalThis.prismaGlobal.$extends(kyselyExtension({diff --git a/packages/shared/src/encryption/signature.ts b/packages/shared/src/encryption/signature.tsindex 3c7bb73b05..ede86271d8 100644--- a/packages/shared/src/encryption/signature.ts+++ b/packages/shared/src/encryption/signature.ts@@ -39,4 +39,3 @@ export function createSignatureHeader(payload: string, secret: string): string {const signature = generateWebhookSignature(payload, timestamp, secret);return `t=${timestamp},v1=${signature}`;}-diff --git a/packages/shared/src/errors/BaseError.ts b/packages/shared/src/errors/BaseError.tsindex 8a92623f73..28b4f514b4 100644--- a/packages/shared/src/errors/BaseError.ts+++ b/packages/shared/src/errors/BaseError.ts@@ -7,7 +7,7 @@ export class BaseError extends Error {name: string,httpCode: number,description: string,- isOperational: boolean+ isOperational: boolean,) {super(description);Object.setPrototypeOf(this, new.target.prototype); // restore prototype chaindiff --git a/packages/shared/src/server/auth/customSsoProvider.ts b/packages/shared/src/server/auth/customSsoProvider.tsindex 6dec3b96d4..b65f113678 100644--- a/packages/shared/src/server/auth/customSsoProvider.ts+++ b/packages/shared/src/server/auth/customSsoProvider.ts@@ -12,9 +12,8 @@ interface CustomSSOUser extends Record<string, any> {verified: boolean;}-export function CustomSSOProvider<P extends CustomSSOUser>(- options: OAuthUserConfig<P>+ options: OAuthUserConfig<P>,): OAuthConfig<P> {return {id: "custom",diff --git a/packages/shared/src/server/ingestion/processEventBatch.ts b/packages/shared/src/server/ingestion/processEventBatch.tsindex 5cff8f73e6..6a29ceb968 100644--- a/packages/shared/src/server/ingestion/processEventBatch.ts+++ b/packages/shared/src/server/ingestion/processEventBatch.ts@@ -45,7 +45,8 @@ const getS3StorageServiceClient = (bucketName: string): StorageService => {return s3StorageServiceClient;};-export type TokenCountDelegate = (p: { // eslint-disable-line no-unused-vars+// eslint-disable-next-line no-unused-vars+export type TokenCountDelegate = (p: {model: Model;text: unknown;}) => number | undefined;diff --git a/packages/shared/src/server/llm/compileChatMessages.ts b/packages/shared/src/server/llm/compileChatMessages.tsindex 1af76790e4..51792a85bc 100644--- a/packages/shared/src/server/llm/compileChatMessages.ts+++ b/packages/shared/src/server/llm/compileChatMessages.ts@@ -1,11 +1,21 @@import { z } from "zod/v4";import { v4 as uuidv4 } from "uuid";-import { type ChatMessage, type PlaceholderMessage, ChatMessageType, type PromptChatMessageSchema, type ChatMessageWithId, type ChatMessageWithIdNoPlaceholders, ChatMessageSchema } from "./types";+import {+ type ChatMessage,+ type PlaceholderMessage,+ ChatMessageType,+ type PromptChatMessageSchema,+ type ChatMessageWithId,+ type ChatMessageWithIdNoPlaceholders,+ ChatMessageSchema,+} from "./types";export type MessagePlaceholderValues = Record<string, ChatMessage[]>;export type PromptMessage = z.infer<typeof PromptChatMessageSchema>;-export function isPlaceholder(message: PromptMessage): message is PlaceholderMessage {+export function isPlaceholder(+ message: PromptMessage,+): message is PlaceholderMessage {return "type" in message && message.type === ChatMessageType.Placeholder;}@@ -15,7 +25,7 @@ function validateMessage(message: unknown): message is ChatMessage {function replaceTextVariables(content: string,- textVariables: Record<string, string>+ textVariables: Record<string, string>,): string {let result = content;for (const [varName, varValue] of Object.entries(textVariables)) {@@ -28,21 +38,27 @@ function replaceTextVariables(function expandPlaceholder(placeholder: PlaceholderMessage,- placeholderValues: MessagePlaceholderValues+ placeholderValues: MessagePlaceholderValues,): ChatMessage[] {const replacementMessages = placeholderValues[placeholder.name];if (!replacementMessages) {- throw new Error(`Missing value for message placeholder: ${placeholder.name}`);+ throw new Error(+ `Missing value for message placeholder: ${placeholder.name}`,+ );}if (!Array.isArray(replacementMessages)) {- throw new Error(`Placeholder value for '${placeholder.name}' must be an array of messages`);+ throw new Error(+ `Placeholder value for '${placeholder.name}' must be an array of messages`,+ );}for (const replacementMsg of replacementMessages) {if (!validateMessage(replacementMsg)) {- throw new Error(`Invalid message format in placeholder '${placeholder.name}': messages must have 'role' and 'content' properties`);+ throw new Error(+ `Invalid message format in placeholder '${placeholder.name}': messages must have 'role' and 'content' properties`,+ );}}return replacementMessages;@@ -51,12 +67,12 @@ function expandPlaceholder(export function compileChatMessages(messages: PromptMessage[],placeholderValues: MessagePlaceholderValues,- textVariables?: Record<string, string>+ textVariables?: Record<string, string>,): ChatMessage[] {const expandedMessages = messages.flatMap((message) =>isPlaceholder(message)? expandPlaceholder(message, placeholderValues)- : [message as ChatMessage]+ : [message as ChatMessage],);// substitute text variables@@ -71,7 +87,7 @@ export function compileChatMessages(return {...message,- content: replaceTextVariables(message.content, textVariables)+ content: replaceTextVariables(message.content, textVariables),};});}@@ -79,13 +95,13 @@ export function compileChatMessages(export function compileChatMessagesWithIds(messages: ChatMessageWithId[],placeholderValues: Record<string, ChatMessage[]>,- textVariables?: Record<string, string>+ textVariables?: Record<string, string>,): ChatMessageWithIdNoPlaceholders[] {// TODO: check, is it even important to retain the IDs?const expandedMessages = messages.flatMap((message) => {if (isPlaceholder(message)) {const expandedMsgs = expandPlaceholder(message, placeholderValues);- return expandedMsgs.map(msg => ({ ...msg, id: uuidv4() }));+ return expandedMsgs.map((msg) => ({ ...msg, id: uuidv4() }));} else {// Preserve message IDs for already non-placeholder messagesreturn [message as ChatMessageWithIdNoPlaceholders];@@ -104,13 +120,16 @@ export function compileChatMessagesWithIds(return {...message,- content: replaceTextVariables(message.content, textVariables)+ content: replaceTextVariables(message.content, textVariables),};});}export function extractPlaceholderNames(messages: PromptMessage[]): string[] {return messages- .filter((msg): msg is PlaceholderMessage => "type" in msg && msg.type === ChatMessageType.Placeholder)- .map(msg => msg.name);+ .filter(+ (msg): msg is PlaceholderMessage =>+ "type" in msg && msg.type === ChatMessageType.Placeholder,+ )+ .map((msg) => msg.name);}diff --git a/packages/shared/src/server/llm/fetchLLMCompletion.ts b/packages/shared/src/server/llm/fetchLLMCompletion.tsindex df6c2dbdb6..b225b5c047 100644--- a/packages/shared/src/server/llm/fetchLLMCompletion.ts+++ b/packages/shared/src/server/llm/fetchLLMCompletion.ts@@ -63,7 +63,8 @@ type FetchLLMCompletionParams = LLMCompletionParams & {};export async function fetchLLMCompletion(- params: LLMCompletionParams & { // eslint-disable-line no-unused-vars+ // eslint-disable-next-line no-unused-vars+ params: LLMCompletionParams & {streaming: true;},): Promise<{@@ -72,7 +73,8 @@ export async function fetchLLMCompletion(}>;export async function fetchLLMCompletion(- params: LLMCompletionParams & { // eslint-disable-line no-unused-vars+ // eslint-disable-next-line no-unused-vars+ params: LLMCompletionParams & {streaming: false;},): Promise<{@@ -81,7 +83,8 @@ export async function fetchLLMCompletion(}>;export async function fetchLLMCompletion(- params: LLMCompletionParams & { // eslint-disable-line no-unused-vars+ // eslint-disable-next-line no-unused-vars+ params: LLMCompletionParams & {streaming: false;structuredOutputSchema: ZodSchema;},@@ -91,7 +94,8 @@ export async function fetchLLMCompletion(}>;export async function fetchLLMCompletion(- params: LLMCompletionParams & { // eslint-disable-line no-unused-vars+ // eslint-disable-next-line no-unused-vars+ params: LLMCompletionParams & {tools: LLMToolDefinition[];streaming: false;},@@ -325,7 +329,7 @@ export async function fetchLLMCompletion(/*Workaround OpenAI reasoning models:-+This is a temporary workaround to avoid sending unsupported parameters to OpenAI's O1 models.O1 models do not support:- system messagesdiff --git a/packages/shared/src/server/queries/clickhouse-sql/clickhouse-filter.ts b/packages/shared/src/server/queries/clickhouse-sql/clickhouse-filter.tsindex 0c34e7d760..938e7a5a3d 100644--- a/packages/shared/src/server/queries/clickhouse-sql/clickhouse-filter.ts+++ b/packages/shared/src/server/queries/clickhouse-sql/clickhouse-filter.ts@@ -432,19 +432,23 @@ export class FilterList {this.filters.push(...filter);}- find(predicate: (filter: Filter) => boolean) { // eslint-disable-line no-unused-vars+ // eslint-disable-next-line no-unused-vars+ find(predicate: (filter: Filter) => boolean) {return this.filters.find(predicate);}- filter(predicate: (filter: Filter) => boolean) { // eslint-disable-line no-unused-vars+ // eslint-disable-next-line no-unused-vars+ filter(predicate: (filter: Filter) => boolean) {return new FilterList(this.filters.filter(predicate));}- some(predicate: (filter: Filter) => boolean) { // eslint-disable-line no-unused-vars+ // eslint-disable-next-line no-unused-vars+ some(predicate: (filter: Filter) => boolean) {return this.filters.some(predicate);}- forEach(callback: (filter: Filter) => void) { // eslint-disable-line no-unused-vars+ // eslint-disable-next-line no-unused-vars+ forEach(callback: (filter: Filter) => void) {this.filters.forEach(callback);}diff --git a/packages/shared/src/server/redis/batchExport.ts b/packages/shared/src/server/redis/batchExport.tsindex b8d3dde1b0..1fa42294e8 100644--- a/packages/shared/src/server/redis/batchExport.ts+++ b/packages/shared/src/server/redis/batchExport.ts@@ -1,6 +1,10 @@import { Queue } from "bullmq";import { QueueName, TQueueJobTypes } from "../queues";-import { createNewRedisInstance, redisQueueRetryOptions, getQueuePrefix } from "./redis";+import {+ createNewRedisInstance,+ redisQueueRetryOptions,+ getQueuePrefix,+} from "./redis";import { logger } from "../logger";export class BatchExportQueue {diff --git a/packages/shared/src/server/redis/blobStorageIntegrationProcessingQueue.ts b/packages/shared/src/server/redis/blobStorageIntegrationProcessingQueue.tsindex 2340335783..e8d506ec86 100644--- a/packages/shared/src/server/redis/blobStorageIntegrationProcessingQueue.ts+++ b/packages/shared/src/server/redis/blobStorageIntegrationProcessingQueue.ts@@ -1,6 +1,10 @@import { Queue } from "bullmq";import { QueueName } from "../queues";-import { createNewRedisInstance, redisQueueRetryOptions, getQueuePrefix } from "./redis";+import {+ createNewRedisInstance,+ redisQueueRetryOptions,+ getQueuePrefix,+} from "./redis";import { logger } from "../logger";export class BlobStorageIntegrationProcessingQueue {@@ -18,8 +22,10 @@ export class BlobStorageIntegrationProcessingQueue {BlobStorageIntegrationProcessingQueue.instance = newRedis? new Queue(QueueName.BlobStorageIntegrationProcessingQueue, {- connection: newRedis,- prefix: getQueuePrefix(QueueName.BlobStorageIntegrationProcessingQueue),+ connection: newRedis,+ prefix: getQueuePrefix(+ QueueName.BlobStorageIntegrationProcessingQueue,+ ),defaultJobOptions: {removeOnComplete: true,removeOnFail: 100_000,@@ -38,4 +44,4 @@ export class BlobStorageIntegrationProcessingQueue {return BlobStorageIntegrationProcessingQueue.instance;}-}\ No newline at end of file+}diff --git a/packages/shared/src/server/redis/cloudUsageMeteringQueue.ts b/packages/shared/src/server/redis/cloudUsageMeteringQueue.tsindex f342a97244..607a2bb37d 100644--- a/packages/shared/src/server/redis/cloudUsageMeteringQueue.ts+++ b/packages/shared/src/server/redis/cloudUsageMeteringQueue.ts@@ -1,7 +1,11 @@import { Queue } from "bullmq";import { env } from "../../env";import { QueueName, QueueJobs } from "../queues";-import { createNewRedisInstance, redisQueueRetryOptions, getQueuePrefix } from "./redis";+import {+ createNewRedisInstance,+ redisQueueRetryOptions,+ getQueuePrefix,+} from "./redis";import { logger } from "../logger";export class CloudUsageMeteringQueue {diff --git a/packages/shared/src/server/redis/coreDataS3ExportQueue.ts b/packages/shared/src/server/redis/coreDataS3ExportQueue.tsindex 75684071ce..11ddb7f41f 100644--- a/packages/shared/src/server/redis/coreDataS3ExportQueue.ts+++ b/packages/shared/src/server/redis/coreDataS3ExportQueue.ts@@ -1,6 +1,10 @@import { Queue } from "bullmq";import { QueueName, QueueJobs } from "../queues";-import { createNewRedisInstance, redisQueueRetryOptions, getQueuePrefix } from "./redis";+import {+ createNewRedisInstance,+ redisQueueRetryOptions,+ getQueuePrefix,+} from "./redis";import { logger } from "../logger";import { env } from "../../env";@@ -23,8 +27,8 @@ export class CoreDataS3ExportQueue {CoreDataS3ExportQueue.instance = newRedis? new Queue(QueueName.CoreDataS3ExportQueue, {- connection: newRedis,- prefix: getQueuePrefix(QueueName.CoreDataS3ExportQueue),+ connection: newRedis,+ prefix: getQueuePrefix(QueueName.CoreDataS3ExportQueue),defaultJobOptions: {removeOnComplete: true,removeOnFail: 100,diff --git a/packages/shared/src/server/redis/createEvalQueue.ts b/packages/shared/src/server/redis/createEvalQueue.tsindex 5e2dc0dfe0..e774e7ac91 100644--- a/packages/shared/src/server/redis/createEvalQueue.ts+++ b/packages/shared/src/server/redis/createEvalQueue.ts@@ -1,6 +1,10 @@import { QueueName, TQueueJobTypes } from "../queues";import { Queue } from "bullmq";-import { createNewRedisInstance, redisQueueRetryOptions, getQueuePrefix } from "./redis";+import {+ createNewRedisInstance,+ redisQueueRetryOptions,+ getQueuePrefix,+} from "./redis";import { logger } from "../logger";export class CreateEvalQueue {diff --git a/packages/shared/src/server/redis/dataRetentionProcessingQueue.ts b/packages/shared/src/server/redis/dataRetentionProcessingQueue.tsindex b145668e2b..f21c0f5e66 100644--- a/packages/shared/src/server/redis/dataRetentionProcessingQueue.ts+++ b/packages/shared/src/server/redis/dataRetentionProcessingQueue.ts@@ -1,6 +1,10 @@import { Queue } from "bullmq";import { QueueName } from "../queues";-import { createNewRedisInstance, redisQueueRetryOptions, getQueuePrefix } from "./redis";+import {+ createNewRedisInstance,+ redisQueueRetryOptions,+ getQueuePrefix,+} from "./redis";import { logger } from "../logger";export class DataRetentionProcessingQueue {@@ -18,8 +22,8 @@ export class DataRetentionProcessingQueue {DataRetentionProcessingQueue.instance = newRedis? new Queue(QueueName.DataRetentionProcessingQueue, {- connection: newRedis,- prefix: getQueuePrefix(QueueName.DataRetentionProcessingQueue),+ connection: newRedis,+ prefix: getQueuePrefix(QueueName.DataRetentionProcessingQueue),defaultJobOptions: {removeOnComplete: true,removeOnFail: 10000,diff --git a/packages/shared/src/server/redis/dataRetentionQueue.ts b/packages/shared/src/server/redis/dataRetentionQueue.tsindex 89244cf4a2..6a6dfd6465 100644--- a/packages/shared/src/server/redis/dataRetentionQueue.ts+++ b/packages/shared/src/server/redis/dataRetentionQueue.ts@@ -1,6 +1,10 @@import { Queue } from "bullmq";import { QueueName, QueueJobs } from "../queues";-import { createNewRedisInstance, redisQueueRetryOptions, getQueuePrefix } from "./redis";+import {+ createNewRedisInstance,+ redisQueueRetryOptions,+ getQueuePrefix,+} from "./redis";import { logger } from "../logger";export class DataRetentionQueue {@@ -18,8 +22,8 @@ export class DataRetentionQueue {DataRetentionQueue.instance = newRedis? new Queue(QueueName.DataRetentionQueue, {- connection: newRedis,- prefix: getQueuePrefix(QueueName.DataRetentionQueue),+ connection: newRedis,+ prefix: getQueuePrefix(QueueName.DataRetentionQueue),defaultJobOptions: {removeOnComplete: true,removeOnFail: 100,diff --git a/packages/shared/src/server/redis/datasetRunItemUpsert.ts b/packages/shared/src/server/redis/datasetRunItemUpsert.tsindex 92bfb07bd9..3a6a0fb6d5 100644--- a/packages/shared/src/server/redis/datasetRunItemUpsert.ts+++ b/packages/shared/src/server/redis/datasetRunItemUpsert.ts@@ -1,6 +1,10 @@import { QueueName, TQueueJobTypes } from "../queues";import { Queue } from "bullmq";-import { createNewRedisInstance, redisQueueRetryOptions, getQueuePrefix } from "./redis";+import {+ createNewRedisInstance,+ redisQueueRetryOptions,+ getQueuePrefix,+} from "./redis";import { logger } from "../logger";export class DatasetRunItemUpsertQueue {diff --git a/packages/shared/src/server/redis/dlqRetryQueue.ts b/packages/shared/src/server/redis/dlqRetryQueue.tsindex 5989f69946..d958a90e83 100644--- a/packages/shared/src/server/redis/dlqRetryQueue.ts+++ b/packages/shared/src/server/redis/dlqRetryQueue.ts@@ -1,6 +1,10 @@import { Queue } from "bullmq";import { QueueName, QueueJobs } from "../queues";-import { createNewRedisInstance, redisQueueRetryOptions, getQueuePrefix } from "./redis";+import {+ createNewRedisInstance,+ redisQueueRetryOptions,+ getQueuePrefix,+} from "./redis";import { logger } from "../logger";export class DeadLetterRetryQueue {@@ -18,8 +22,8 @@ export class DeadLetterRetryQueue {DeadLetterRetryQueue.instance = newRedis? new Queue(QueueName.DeadLetterRetryQueue, {- connection: newRedis,- prefix: getQueuePrefix(QueueName.DeadLetterRetryQueue),+ connection: newRedis,+ prefix: getQueuePrefix(QueueName.DeadLetterRetryQueue),defaultJobOptions: {removeOnComplete: true,removeOnFail: 100,diff --git a/packages/shared/src/server/redis/evalExecutionQueue.ts b/packages/shared/src/server/redis/evalExecutionQueue.tsindex 5fc50b8eec..21bb6fdf29 100644--- a/packages/shared/src/server/redis/evalExecutionQueue.ts+++ b/packages/shared/src/server/redis/evalExecutionQueue.ts@@ -1,7 +1,11 @@import { Queue } from "bullmq";import { logger } from "../logger";import { TQueueJobTypes, QueueName } from "../queues";-import { createNewRedisInstance, redisQueueRetryOptions, getQueuePrefix } from "./redis";+import {+ createNewRedisInstance,+ redisQueueRetryOptions,+ getQueuePrefix,+} from "./redis";export class EvalExecutionQueue {private static instance: Queue<diff --git a/packages/shared/src/server/redis/experimentCreateQueue.ts b/packages/shared/src/server/redis/experimentCreateQueue.tsindex 20490e61db..63e4a85f8d 100644--- a/packages/shared/src/server/redis/experimentCreateQueue.ts+++ b/packages/shared/src/server/redis/experimentCreateQueue.ts@@ -1,7 +1,11 @@import { Queue } from "bullmq";import { logger } from "../logger";import { TQueueJobTypes, QueueName } from "../queues";-import { createNewRedisInstance, redisQueueRetryOptions, getQueuePrefix } from "./redis";+import {+ createNewRedisInstance,+ redisQueueRetryOptions,+ getQueuePrefix,+} from "./redis";export class ExperimentCreateQueue {private static instance: Queue<diff --git a/packages/shared/src/server/redis/meteringDataPostgresExportQueue.ts b/packages/shared/src/server/redis/meteringDataPostgresExportQueue.tsindex cef701a083..17ee0b3c57 100644--- a/packages/shared/src/server/redis/meteringDataPostgresExportQueue.ts+++ b/packages/shared/src/server/redis/meteringDataPostgresExportQueue.ts@@ -1,6 +1,10 @@import { Queue } from "bullmq";import { QueueName, QueueJobs } from "../queues";-import { createNewRedisInstance, redisQueueRetryOptions, getQueuePrefix } from "./redis";+import {+ createNewRedisInstance,+ redisQueueRetryOptions,+ getQueuePrefix,+} from "./redis";import { logger } from "../logger";import { env } from "../../env";@@ -23,8 +27,8 @@ export class MeteringDataPostgresExportQueue {MeteringDataPostgresExportQueue.instance = newRedis? new Queue(QueueName.MeteringDataPostgresExportQueue, {- connection: newRedis,- prefix: getQueuePrefix(QueueName.MeteringDataPostgresExportQueue),+ connection: newRedis,+ prefix: getQueuePrefix(QueueName.MeteringDataPostgresExportQueue),defaultJobOptions: {removeOnComplete: true,removeOnFail: 100,diff --git a/packages/shared/src/server/redis/postHogIntegrationProcessingQueue.ts b/packages/shared/src/server/redis/postHogIntegrationProcessingQueue.tsindex fb2c111bec..509a360b07 100644--- a/packages/shared/src/server/redis/postHogIntegrationProcessingQueue.ts+++ b/packages/shared/src/server/redis/postHogIntegrationProcessingQueue.ts@@ -1,6 +1,10 @@import { Queue } from "bullmq";import { QueueName } from "../queues";-import { createNewRedisInstance, redisQueueRetryOptions, getQueuePrefix } from "./redis";+import {+ createNewRedisInstance,+ redisQueueRetryOptions,+ getQueuePrefix,+} from "./redis";import { logger } from "../logger";export class PostHogIntegrationProcessingQueue {@@ -18,8 +22,8 @@ export class PostHogIntegrationProcessingQueue {PostHogIntegrationProcessingQueue.instance = newRedis? new Queue(QueueName.PostHogIntegrationProcessingQueue, {- connection: newRedis,- prefix: getQueuePrefix(QueueName.PostHogIntegrationProcessingQueue),+ connection: newRedis,+ prefix: getQueuePrefix(QueueName.PostHogIntegrationProcessingQueue),defaultJobOptions: {removeOnComplete: true,removeOnFail: 100_000,diff --git a/packages/shared/src/server/redis/postHogIntegrationQueue.ts b/packages/shared/src/server/redis/postHogIntegrationQueue.tsindex 55c362f963..25a459bba3 100644--- a/packages/shared/src/server/redis/postHogIntegrationQueue.ts+++ b/packages/shared/src/server/redis/postHogIntegrationQueue.ts@@ -1,6 +1,10 @@import { Queue } from "bullmq";import { QueueName, QueueJobs } from "../queues";-import { createNewRedisInstance, redisQueueRetryOptions, getQueuePrefix } from "./redis";+import {+ createNewRedisInstance,+ redisQueueRetryOptions,+ getQueuePrefix,+} from "./redis";import { logger } from "../logger";export class PostHogIntegrationQueue {@@ -18,8 +22,8 @@ export class PostHogIntegrationQueue {PostHogIntegrationQueue.instance = newRedis? new Queue(QueueName.PostHogIntegrationQueue, {- connection: newRedis,- prefix: getQueuePrefix(QueueName.PostHogIntegrationQueue),+ connection: newRedis,+ prefix: getQueuePrefix(QueueName.PostHogIntegrationQueue),defaultJobOptions: {removeOnComplete: true,removeOnFail: 100,diff --git a/packages/shared/src/server/redis/projectDelete.ts b/packages/shared/src/server/redis/projectDelete.tsindex bcafe3c19e..868c0b12c5 100644--- a/packages/shared/src/server/redis/projectDelete.ts+++ b/packages/shared/src/server/redis/projectDelete.ts@@ -1,6 +1,10 @@import { QueueName, TQueueJobTypes } from "../queues";import { Queue } from "bullmq";-import { createNewRedisInstance, redisQueueRetryOptions, getQueuePrefix } from "./redis";+import {+ createNewRedisInstance,+ redisQueueRetryOptions,+ getQueuePrefix,+} from "./redis";import { logger } from "../logger";export class ProjectDeleteQueue {diff --git a/packages/shared/src/server/redis/redis.ts b/packages/shared/src/server/redis/redis.tsindex 487d664c66..d4ed24a61d 100644--- a/packages/shared/src/server/redis/redis.ts+++ b/packages/shared/src/server/redis/redis.ts@@ -170,6 +170,6 @@ declare global {var redis: undefined | ReturnType<typeof createRedisClient>; // eslint-disable-line no-unused-vars}-export const redis = globalThis.redis ?? createRedisClient(); // eslint-disable-line no-undef+export const redis = globalThis.redis ?? createRedisClient();-if (env.NODE_ENV !== "production") globalThis.redis = redis; // eslint-disable-line no-undef+if (env.NODE_ENV !== "production") globalThis.redis = redis;diff --git a/packages/shared/src/server/redis/scoreDelete.ts b/packages/shared/src/server/redis/scoreDelete.tsindex 1b11db1dfb..08503d1da4 100644--- a/packages/shared/src/server/redis/scoreDelete.ts+++ b/packages/shared/src/server/redis/scoreDelete.ts@@ -1,12 +1,19 @@import { QueueName, TQueueJobTypes } from "../queues";import { Queue } from "bullmq";-import { createNewRedisInstance, redisQueueRetryOptions, getQueuePrefix } from "./redis";+import {+ createNewRedisInstance,+ redisQueueRetryOptions,+ getQueuePrefix,+} from "./redis";import { logger } from "../logger";export class ScoreDeleteQueue {- private static instance: Queue<TQueueJobTypes[QueueName.ScoreDelete]> | null = null;+ private static instance: Queue<TQueueJobTypes[QueueName.ScoreDelete]> | null =+ null;- public static getInstance(): Queue<TQueueJobTypes[QueueName.ScoreDelete]> | null {+ public static getInstance(): Queue<+ TQueueJobTypes[QueueName.ScoreDelete]+ > | null {if (ScoreDeleteQueue.instance) return ScoreDeleteQueue.instance;const newRedis = createNewRedisInstance({@@ -20,16 +27,17 @@ export class ScoreDeleteQueue {{connection: newRedis,prefix: getQueuePrefix(QueueName.ScoreDelete),- defaultJobOptions: {- removeOnComplete: true,- removeOnFail: 100_000,- attempts: 2,- backoff: {- type: "exponential",- delay: 30_000,+ defaultJobOptions: {+ removeOnComplete: true,+ removeOnFail: 100_000,+ attempts: 2,+ backoff: {+ type: "exponential",+ delay: 30_000,+ },},},- })+ ): null;ScoreDeleteQueue.instance?.on("error", (err) => {@@ -38,4 +46,4 @@ export class ScoreDeleteQueue {return ScoreDeleteQueue.instance;}-}\ No newline at end of file+}diff --git a/packages/shared/src/server/redis/traceDelete.ts b/packages/shared/src/server/redis/traceDelete.tsindex 9137a1a674..53d4b056a1 100644--- a/packages/shared/src/server/redis/traceDelete.ts+++ b/packages/shared/src/server/redis/traceDelete.ts@@ -1,6 +1,10 @@import { QueueName, TQueueJobTypes } from "../queues";import { Queue } from "bullmq";-import { createNewRedisInstance, redisQueueRetryOptions, getQueuePrefix } from "./redis";+import {+ createNewRedisInstance,+ redisQueueRetryOptions,+ getQueuePrefix,+} from "./redis";import { logger } from "../logger";export class TraceDeleteQueue {diff --git a/packages/shared/src/server/redis/traceUpsert.ts b/packages/shared/src/server/redis/traceUpsert.tsindex 4d64306a92..846faa977f 100644--- a/packages/shared/src/server/redis/traceUpsert.ts+++ b/packages/shared/src/server/redis/traceUpsert.ts@@ -1,6 +1,10 @@import { QueueName, TQueueJobTypes } from "../queues";import { Queue } from "bullmq";-import { createNewRedisInstance, redisQueueRetryOptions, getQueuePrefix } from "./redis";+import {+ createNewRedisInstance,+ redisQueueRetryOptions,+ getQueuePrefix,+} from "./redis";import { logger } from "../logger";export class TraceUpsertQueue {diff --git a/packages/shared/src/server/repositories/traces.ts b/packages/shared/src/server/repositories/traces.tsindex e2b88b8a31..76b6584c15 100644--- a/packages/shared/src/server/repositories/traces.ts+++ b/packages/shared/src/server/repositories/traces.ts@@ -30,7 +30,8 @@ import { ClickHouseClientConfigOptions } from "@clickhouse/client";import { recordDistribution } from "../instrumentation";import { measureAndReturn } from "../clickhouse/measureAndReturn";-enum TracesAMTs { // eslint-disable-line no-unused-vars+// eslint-disable-next-line no-unused-vars+enum TracesAMTs {Traces7dAMT = "traces_7d_amt", // eslint-disable-line no-unused-varsTraces30dAMT = "traces_30d_amt", // eslint-disable-line no-unused-varsTracesAllAMT = "traces_all_amt", // eslint-disable-line no-unused-vars@@ -168,8 +169,8 @@ export const checkTraceExists = async ({existingExecution: async (input) => {const query = `${observations_cte}- SELECT- t.id as id,+ SELECT+ t.id as id,t.project_id as project_idFROM traces t FINAL${observationFilterRes ? `INNER JOIN observations_agg o ON t.id = o.trace_id AND t.project_id = o.project_id` : ""}@@ -194,8 +195,8 @@ export const checkTraceExists = async ({const traceAmt = getTimeframesTracesAMT(input.timestamp);const query = `${observations_cte}- SELECT- t.id as id,+ SELECT+ t.id as id,t.project_id as project_id,-- Add a timestamp alias to ensure we can filter on itt.start_time as timestamp@@ -264,11 +265,11 @@ export const getTracesByIds = async (},existingExecution: (input) => {const query = `- SELECT *+ SELECT *FROM tracesWHERE id IN ({traceIds: Array(String)})AND project_id = {projectId: String}- ${timestamp ? `AND timestamp >= {timestamp: DateTime64(3)}` : ""}+ ${timestamp ? `AND timestamp >= {timestamp: DateTime64(3)}` : ""}ORDER BY event_ts DESCLIMIT 1 by id, project_id;`;@@ -281,7 +282,7 @@ export const getTracesByIds = async (},newExecution: (input) => {const query = `- SELECT+ SELECTid,name as name,user_id as user_id,@@ -325,11 +326,11 @@ export const getTracesBySessionId = async (timestamp?: Date,) => {const query = `- SELECT *+ SELECT *FROM tracesWHERE session_id IN ({sessionIds: Array(String)})AND project_id = {projectId: String}- ${timestamp ? `AND timestamp >= {timestamp: DateTime64(3)}` : ""}+ ${timestamp ? `AND timestamp >= {timestamp: DateTime64(3)}` : ""}ORDER BY event_ts DESCLIMIT 1 by id, project_id;`;const records = await queryClickhouse<TraceRecordReadType>({@@ -419,7 +420,7 @@ export const getTraceCountsByProjectInCreationInterval = async ({end: Date;}) => {const query = `- SELECT+ SELECTproject_id,count(*) as countFROM traces@@ -455,7 +456,7 @@ export const getTraceCountOfProjectsSinceCreationDate = async ({start: Date;}) => {const query = `- SELECT+ SELECTcount(*) as countFROM tracesWHERE project_id IN ({projectIds: Array(String)})@@ -519,13 +520,13 @@ export const getTraceById = async ({},existingExecution: (input) => {const query = `- SELECT *+ SELECT *FROM traces- WHERE id = {traceId: String}+ WHERE id = {traceId: String}AND project_id = {projectId: String}- ${timestamp ? `AND toDate(timestamp) = toDate({timestamp: DateTime64(3)})` : ""}- ${fromTimestamp ? `AND timestamp >= {fromTimestamp: DateTime64(3)}` : ""}- ORDER BY event_ts DESC+ ${timestamp ? `AND toDate(timestamp) = toDate({timestamp: DateTime64(3)})` : ""}+ ${fromTimestamp ? `AND timestamp >= {fromTimestamp: DateTime64(3)}` : ""}+ ORDER BY event_ts DESCLIMIT 1`;@@ -537,7 +538,7 @@ export const getTraceById = async ({},newExecution: (input) => {const query = `- SELECT+ SELECTid,name as name,user_id as user_id,@@ -602,7 +603,7 @@ export const getTracesGroupedByName = async (// We mainly use queries like this to retrieve filter options.// Therefore, we can skip final as some inaccuracy in count is acceptable.const query = `- select+ selectname as name,count(*) as countfrom traces t FINAL@@ -659,7 +660,7 @@ export const getTracesGroupedByUsers = async (// We mainly use queries like this to retrieve filter options.// Therefore, we can skip final as some inaccuracy in count is acceptable.const query = `- select+ selectuser_id as user,count(*) as countfrom traces t@@ -1141,7 +1142,7 @@ export const getTracesForPostHog = async function* (GROUP BY o.project_id, o.trace_id)- SELECT+ SELECTt.id as id,t.timestamp as timestamp,t.name as name,diff --git a/packages/shared/src/server/services/StorageService.ts b/packages/shared/src/server/services/StorageService.tsindex 414cb92bcd..abd4756301 100644--- a/packages/shared/src/server/services/StorageService.ts+++ b/packages/shared/src/server/services/StorageService.ts@@ -42,7 +42,8 @@ export interface StorageService {asAttachment?: boolean, // eslint-disable-line no-unused-vars): Promise<string>;- getSignedUploadUrl(params: { // eslint-disable-line no-unused-vars+ // eslint-disable-next-line no-unused-vars+ getSignedUploadUrl(params: {path: string;ttlSeconds: number;sha256Hash: string;@@ -213,7 +214,7 @@ class AzureBlobStorageService implements StorageService {}private async streamToString(- readableStream: NodeJS.ReadableStream, // eslint-disable-line no-undef+ readableStream: NodeJS.ReadableStream,): Promise<string> {return new Promise((resolve, reject) => {const chunks: string[] = [];diff --git a/packages/shared/src/server/services/email/passwordReset/sendResetPasswordVerificationRequest.tsx b/packages/shared/src/server/services/email/passwordReset/sendResetPasswordVerificationRequest.tsxindex f6a6c69904..c030fae2a9 100644--- a/packages/shared/src/server/services/email/passwordReset/sendResetPasswordVerificationRequest.tsx+++ b/packages/shared/src/server/services/email/passwordReset/sendResetPasswordVerificationRequest.tsx@@ -66,10 +66,11 @@ const ResetPasswordTemplate = ({ token }: ResetPasswordTemplateProps) => {export async function sendResetPasswordVerificationRequest(params: SendVerificationRequestParams,) {- const { identifier, token, provider } = params as SendVerificationRequestParams & { token: string };+ const { identifier, token, provider } =+ params as SendVerificationRequestParams & { token: string };const transport = createTransport(provider.server);const htmlTemplate = await render(<ResetPasswordTemplate token={token} />);-+const result = await transport.sendMail({to: identifier,from: provider.from,diff --git a/packages/shared/src/server/utils/DatabaseReadStream.ts b/packages/shared/src/server/utils/DatabaseReadStream.tsindex 7fddf34ca8..8f92979ef3 100644--- a/packages/shared/src/server/utils/DatabaseReadStream.ts+++ b/packages/shared/src/server/utils/DatabaseReadStream.ts@@ -24,12 +24,13 @@ export class DatabaseReadStream<EntityType> extends Readable {constructor(// the delegate function takes care of querying the database in a paginated manner- private queryDelegate: ( // eslint-disable-line no-unused-vars+ // eslint-disable-next-line no-unused-vars+ private queryDelegate: (pageSize: number, // eslint-disable-line no-unused-vars- offset: number // eslint-disable-line no-unused-vars+ offset: number, // eslint-disable-line no-unused-vars) => Promise<Array<EntityType>>,private pageSize: number, // eslint-disable-line no-unused-vars- private maxRecords?: number // eslint-disable-line no-unused-vars+ private maxRecords?: number, // eslint-disable-line no-unused-vars) {super({ objectMode: true }); // Set object mode to true to allow pushing objects to the stream rather than strings or buffersdiff --git a/packages/shared/src/server/utils/transforms/stringify.ts b/packages/shared/src/server/utils/transforms/stringify.tsindex 67a11ed8eb..70d3b88167 100644--- a/packages/shared/src/server/utils/transforms/stringify.ts+++ b/packages/shared/src/server/utils/transforms/stringify.ts@@ -1,5 +1,5 @@export const stringify = (data: any): string => {return JSON.stringify(data, (key, value) =>- typeof value === "bigint" ? Number.parseInt(value.toString()) : value+ typeof value === "bigint" ? Number.parseInt(value.toString()) : value,);};diff --git a/packages/shared/src/server/utils/transforms/transformStreamToCsv.ts b/packages/shared/src/server/utils/transforms/transformStreamToCsv.tsindex fcd7c546f0..429189d4d7 100644--- a/packages/shared/src/server/utils/transforms/transformStreamToCsv.ts+++ b/packages/shared/src/server/utils/transforms/transformStreamToCsv.ts@@ -11,7 +11,7 @@ export function transformStreamToCsv(): Transform {objectMode: true,transform(row: Record<string, any>,- encoding: BufferEncoding, // eslint-disable-line no-undef+ encoding: BufferEncoding, // eslint-disable-linecallback: TransformCallback,): void {if (isFirstChunk) {diff --git a/packages/shared/src/server/utils/transforms/transformStreamToJson.ts b/packages/shared/src/server/utils/transforms/transformStreamToJson.tsindex baa8c92ae2..ff16a33800 100644--- a/packages/shared/src/server/utils/transforms/transformStreamToJson.ts+++ b/packages/shared/src/server/utils/transforms/transformStreamToJson.ts@@ -9,7 +9,7 @@ export function transformStreamToJson(): Transform {transform(row: any,- encoding: BufferEncoding, // eslint-disable-line no-undef, no-unused-vars+ encoding: BufferEncoding, // eslint-disable-line no-unused-varscallback: TransformCallback,): void {if (isFirstElement) {diff --git a/packages/shared/src/server/utils/transforms/transformStreamToJsonl.ts b/packages/shared/src/server/utils/transforms/transformStreamToJsonl.tsindex 6d3d5336ea..3adc4bec77 100644--- a/packages/shared/src/server/utils/transforms/transformStreamToJsonl.ts+++ b/packages/shared/src/server/utils/transforms/transformStreamToJsonl.ts@@ -7,7 +7,7 @@ export function transformStreamToJsonl(): Transform {transform(row: Record<string, any>,- encoding: BufferEncoding, // eslint-disable-line no-undef, no-unused-vars+ encoding: BufferEncoding, // eslint-disable-line no-unused-varscallback: TransformCallback,): void {this.push(stringify(row) + "\n");diff --git a/packages/shared/src/utils/objects.ts b/packages/shared/src/utils/objects.tsindex b97ba11fe4..60f9d3b060 100644--- a/packages/shared/src/utils/objects.ts+++ b/packages/shared/src/utils/objects.ts@@ -6,7 +6,7 @@ type OmitKeys<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;export function removeObjectKeys<T, K extends keyof T>(obj: T,- keys: K[]+ keys: K[],): OmitKeys<T, K> {const result = { ...obj };for (const key of keys) {diff --git a/packages/shared/src/utils/prompts.ts b/packages/shared/src/utils/prompts.tsindex 95be0aabde..2171e0504e 100644--- a/packages/shared/src/utils/prompts.ts+++ b/packages/shared/src/utils/prompts.ts@@ -17,8 +17,9 @@ export interface PromptMessage {*/export function extractPlaceholderNames(messages: PromptMessage[]): string[] {return messages- .filter((msg): msg is PromptMessage & { name: string } =>- msg.type === "placeholder" && typeof msg.name === "string"+ .filter(+ (msg): msg is PromptMessage & { name: string } =>+ msg.type === "placeholder" && typeof msg.name === "string",)- .map(msg => msg.name);+ .map((msg) => msg.name);}diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 0f9e5f8722..4e8beb180e 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -32,8 +32,8 @@ importers:specifier: ^9.0.11version: 9.1.7prettier:- specifier: ^3.3.3- version: 3.4.2+ specifier: ^3.6.2+ version: 3.6.2release-it:specifier: ^19.0.3version: 19.0.3(@types/[email protected])@@ -60,7 +60,7 @@ importers:version: 14.2.30(@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])([email protected])([email protected]([email protected]))([email protected])next-auth:specifier: ^4.24.11- version: 4.24.11(patch_hash=cczsf6i6qe2m2htirvgxjtoclu)([email protected](@opentelemetry/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])+ version: 4.24.11(patch_hash=cczsf6i6qe2m2htirvgxjtoclu)([email protected](@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])zod:specifier: ^3.25.62version: 3.25.62@@ -88,10 +88,10 @@ importers:version: 17.1.0([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected]))([email protected]([email protected]))([email protected]([email protected]))([email protected])eslint-plugin-prettier:specifier: ^5.1.3- version: 5.1.3(@types/[email protected])([email protected]([email protected]))([email protected])([email protected])+ version: 5.1.3(@types/[email protected])([email protected]([email protected]))([email protected])([email protected])prettier:- specifier: ^3.3.3- version: 3.3.3+ specifier: ^3.4.2+ version: 3.4.2ts-node:specifier: ^10.9.2version: 10.9.2(@types/[email protected])([email protected])@@ -112,7 +112,7 @@ importers:version: 7.12.0([email protected])([email protected])'@vercel/style-guide':specifier: ^6.0.0- version: 6.0.0(@next/[email protected])([email protected])([email protected](@types/[email protected]))([email protected])([email protected])([email protected](@types/[email protected]))+ version: 6.0.0(@next/[email protected])([email protected])([email protected](@types/[email protected]))([email protected])([email protected])([email protected](@types/[email protected]))eslint-config-next:specifier: ^14.2.15version: 14.2.15([email protected])([email protected])@@ -234,7 +234,7 @@ importers:version: 4.1.1next-auth:specifier: ^4.24.11- version: 4.24.11(patch_hash=cczsf6i6qe2m2htirvgxjtoclu)([email protected](@opentelemetry/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])+ version: 4.24.11(patch_hash=cczsf6i6qe2m2htirvgxjtoclu)([email protected](@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])nodemailer:specifier: ^6.9.15version: 6.9.15@@ -295,7 +295,7 @@ importers:version: 17.1.0([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected]))([email protected]([email protected]))([email protected]([email protected]))([email protected])eslint-plugin-prettier:specifier: ^5.1.3- version: 5.1.3(@types/[email protected])([email protected]([email protected]))([email protected])([email protected])+ version: 5.1.3(@types/[email protected])([email protected]([email protected]))([email protected])([email protected])kysely-codegen:specifier: ^0.16.8version: 0.16.8([email protected])([email protected])@@ -303,8 +303,8 @@ importers:specifier: ^3.1.7version: 3.1.7prettier:- specifier: ^3.3.3- version: 3.3.3+ specifier: ^3.6.2+ version: 3.6.2prisma:specifier: ^6.10.1version: 6.10.1([email protected])@@ -634,7 +634,7 @@ importers:version: 14.2.30(@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])([email protected])([email protected]([email protected]))([email protected])next-auth:specifier: ^4.24.11- version: 4.24.11(patch_hash=cczsf6i6qe2m2htirvgxjtoclu)([email protected](@opentelemetry/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])+ version: 4.24.11(patch_hash=cczsf6i6qe2m2htirvgxjtoclu)([email protected](@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])next-query-params:specifier: ^5.0.1version: 5.0.1([email protected](@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]([email protected]))([email protected]))@@ -832,11 +832,11 @@ importers:specifier: ^1.14.1version: 1.14.1prettier:- specifier: ^3.3.3- version: 3.3.3+ specifier: ^3.6.2+ version: 3.6.2prettier-plugin-tailwindcss:specifier: ^0.6.6- version: 0.6.6([email protected])+ version: 0.6.6([email protected])tailwindcss:specifier: ^3.4.17@@ -1011,7 +1011,7 @@ importers:version: 17.1.0([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected]))([email protected]([email protected]))([email protected]([email protected]))([email protected])eslint-plugin-prettier:specifier: ^5.1.3- version: 5.1.3(@types/[email protected])([email protected]([email protected]))([email protected])([email protected])+ version: 5.1.3(@types/[email protected])([email protected]([email protected]))([email protected])([email protected])kysely-codegen:specifier: ^0.16.8version: 0.16.8([email protected])([email protected])@@ -1022,8 +1022,8 @@ importers:specifier: ^3.1.7version: 3.1.7prettier:- specifier: ^3.3.3- version: 3.3.3+ specifier: ^3.6.2+ version: 3.6.2ts-node:specifier: ^10.9.2version: 10.9.2(@types/[email protected])([email protected])@@ -1533,8 +1533,8 @@ packages:resolution: {integrity: sha512-DfCRfZsBcrPEHUfuBMgbJ1Ut01Y/itOs+hY2nFLgqsqXd52/iSiVq5TITtUasIUgm+IIKdY2/1I7auiQOEeC9A==}engines: {node: '>=6.9.0'}- '@babel/[email protected]':- resolution: {integrity: sha512-ZGhA37l0e/g2s1Cnzdix0O3aLYm66eF8aufiVteOgnwxgnRP8GoyMj7VWsgWnQbVKXyge7hqrFh2K2TQM6t1Hw==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-lJjzvrbEeWrhB4P3QBsH7tey117PjLZnDbLiQEKjQ/fNJTjuq4HSqgFA+UNSwZT8D7dxxbnuSBMsa1lrWzKlQg==}engines: {node: '>=6.9.0'}'@babel/[email protected]':@@ -1549,6 +1549,10 @@ packages:resolution: {integrity: sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==}engines: {node: '>=6.9.0'}+ '@babel/[email protected]':+ resolution: {integrity: sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==}+ engines: {node: '>=6.9.0'}+'@babel/[email protected]':resolution: {integrity: sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==}engines: {node: '>=6.9.0'}@@ -1616,8 +1620,8 @@ packages:engines: {node: '>=6.0.0'}hasBin: true- '@babel/[email protected]':- resolution: {integrity: sha512-OsQd175SxWkGlzbny8J3K8TnnDD0N3lrIUtB92xwyRpzaenGZhxDvxN/JgU00U3CDZNj9tPuDJ5H0WS4Nt3vKg==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-jVZGvOxOuNSsuQuLRTh13nU0AogFlw32w/MT+LV6D3sP5WdbW61E77RnkbaO2dUvmPAYrBDJXGn5gGS6tH4j8g==}engines: {node: '>=6.0.0'}hasBin: true@@ -1726,16 +1730,16 @@ packages:resolution: {integrity: sha512-xuU6o9m68KeqZbQuDt2TcKSxUw/mrsvavlEqQ1leZ/B+C9tk6E4sRWy97WaXgvq5E+nU3cXMxv3WKOCanVMCmQ==}engines: {node: '>=6.9.0'}- '@babel/[email protected]':- resolution: {integrity: sha512-oNcu2QbHqts9BtOWJosOVJapWjBDSxGCpFvikNR5TGDYDQf3JwpIoMzIKrvfoti93cLfPJEG4tH9SPVeyCGgdA==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-mGe7UK5wWyh0bKRfupsUchrQGqvDbZDbKJw+kcRGSmdHVYrv+ltd0pnpDTVpiTqnaBru9iEvA8pz8W46v0Amwg==}engines: {node: '>=6.9.0'}'@babel/[email protected]':resolution: {integrity: sha512-+j7a5c253RfKh8iABBhywc8NSfP5LURe7Uh4qpsh6jc+aLJguvmIUBdjSdEMQv2bENrCR5MfRdjGo7vzS/ob7w==}engines: {node: '>=6.9.0'}- '@babel/[email protected]':- resolution: {integrity: sha512-ETyHEk2VHHvl9b9jZP5IHPavHYk57EhanlRRuae9XCpb/j5bDCbPPMOBfCWhnl/7EDJz0jEMCi/RhccCE8r1+Q==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-jYnje+JyZG5YThjHiF28oT4SIZLnYOcSBb6+SDaFIyzDVSkXQmQQYclJ2R+YxcdmK0AX6x1E5OQNtuh3jHDrUg==}engines: {node: '>=6.9.0'}'@baselime/[email protected]':@@ -1816,6 +1820,9 @@ packages:'@codemirror/[email protected]':resolution: {integrity: sha512-5kS1U7emOGV84vxC+ruBty5sUgcD0te6dyupyRVG2zaSjhTDM73LhVKUtVwiqSe6QwmEoA4SCiU8AKPFyumAWQ==}+ '@codemirror/[email protected]':+ resolution: {integrity: sha512-p44TsNArL4IVXDTbapUmEkAlvWs2CFQbcfc0ymDsis1kH2wh0gcY96AS29c/vp2d0y2Tquk1EDSaawpzilUiAw==}+'@codemirror/[email protected]':resolution: {integrity: sha512-u4q7PnZlJUojeRe8FJa/njJcMctISGgPQ4PnWsd9268R4ZTtU+tfFYmwkBvgcrK2+QQ8tYFVALVb5fVJykKc5A==}@@ -2275,8 +2282,8 @@ packages:'@floating-ui/[email protected]':resolution: {integrity: sha512-7XJ9cPU+yI2QeLS+FCSlqNFZJq8arvswefkZrYI1yQBbftw6FyrZOxYSh+9S7z7TpeWlRt9zJ5IhM1WIL334jA==}- '@floating-ui/[email protected]':- resolution: {integrity: sha512-azI0DrjMMfIug/ExbBaeDVJXcY0a7EPvPjb2xAJPa4HeimBX+Z18HK8QQR3jb6356SnDDdxx+hinMLcJEDdOjw==}+ '@floating-ui/[email protected]':+ resolution: {integrity: sha512-wNB5ooIKHQc+Kui96jE/n69rHFWAVoxn5CAzL1Xdd8FG03cgY3MLO+GF9U3W737fYDSgPWA6MReKhBQBop6Pcw==}'@floating-ui/[email protected]':resolution: {integrity: sha512-qkMCxSR24v2vGkhYDo/UzxfJN3D4syqSjyuTFz6C7XcpU1pASPRieNI0Kj5VP3/503mOfYiGY891ugBX1GlABQ==}@@ -2284,8 +2291,8 @@ packages:'@floating-ui/[email protected]':resolution: {integrity: sha512-RnDthu3mzPlQ31Ss/BTwQ1zjzIhr3lk1gZB1OC56h/1vEtaXkESrOqL5fQVMfXpwGtRwX+YsZBdyHtJMQnkArw==}- '@floating-ui/[email protected]':- resolution: {integrity: sha512-cwsmW/zyw5ltYTUeeYJ60CnQuPqmGwuGVhG9w0PRaRKkAyi38BT5CKrpIbb+jtahSwUl04cWzSx9ZOIxeS6RsQ==}+ '@floating-ui/[email protected]':+ resolution: {integrity: sha512-7cfaOQuCS27HD7DX+6ib2OrnW+b4ZBwDNnCcT0uTyidcmyWb03FnQqJybDBoCnpdxwBSfA94UAYlRCt7mV+TbA==}'@floating-ui/[email protected]':resolution: {integrity: sha512-htwHm67Ji5E/pROEAr7f8IKFShuiCKHwUC/UY4vC3I5jiSvGFAYnSYiZO5MlGmads+QqvUkR9ANHEguGrDv72g==}@@ -2299,8 +2306,8 @@ packages:react: '>=16.8.0'react-dom: '>=16.8.0'- '@floating-ui/[email protected]':- resolution: {integrity: sha512-huMBfiU9UnQ2oBwIhgzyIiSpVgvlDstU8CX0AF+wS+KzmYMs0J2a3GwuFHV1Lz+jlrQGeC1fF+Nv0QoumyV0bA==}+ '@floating-ui/[email protected]':+ resolution: {integrity: sha512-JbbpPhp38UmXDDAu60RJmbeme37Jbgsm7NrHGgzYYFKmblzRUh6Pa641dII6LsjwF4XlScDrde2UAzDo/b9KPw==}peerDependencies:react: '>=16.8.0'react-dom: '>=16.8.0'@@ -2317,12 +2324,12 @@ packages:react: '>=16.8.0'react-dom: '>=16.8.0'+ '@floating-ui/[email protected]':+ resolution: {integrity: sha512-aGTxbpbg8/b5JfU1HXSrbH3wXZuLPJcNEcZQFMxLs3oSzgtVu6nFPkbbGGUvBcUjKV2YyB9Wxxabo+HEH9tcRQ==}+'@floating-ui/[email protected]':resolution: {integrity: sha512-kym7SodPp8/wloecOpcmSnWJsK7M0E5Wg8UcFA+uO4B9s5d0ywXOEro/8HM9x0rW+TljRzul/14UYz3TleT3ig==}- '@floating-ui/[email protected]':- resolution: {integrity: sha512-MDWhGtE+eHw5JW7lq4qhc5yRLS11ERl1c7Z6Xd0a58DozHES6EnNNwUWbMiG4J9Cgj053Bhk8zvlhFYKVhULwg==}-'@google-cloud/[email protected]':resolution: {integrity: sha512-DJS3s0OVH4zFDB1PzjxAsHqJT6sKVbRwwML0ZBP9PbU7Yebtu/7SWMRzvO2J3nUi9pRNITCfu4LJeooM2w4pjg==}engines: {node: '>=14.0.0'}@@ -2647,14 +2654,13 @@ packages:resolution: {integrity: sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==}engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}+ '@jridgewell/[email protected]':+ resolution: {integrity: sha512-OuLGC46TjB5BbN1dH8JULVVZY4WTdkF7tV9Ys6wLL1rubZnCMstOhNHueU5bLCrnRuDhKPDM4g6sw4Bel5Gzqg==}+'@jridgewell/[email protected]':resolution: {integrity: sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==}engines: {node: '>=6.0.0'}- '@jridgewell/[email protected]':- resolution: {integrity: sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==}- engines: {node: '>=6.0.0'}-'@jridgewell/[email protected]':resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==}engines: {node: '>=6.0.0'}@@ -2663,15 +2669,21 @@ packages:resolution: {integrity: sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==}engines: {node: '>=6.0.0'}- '@jridgewell/[email protected]':- resolution: {integrity: sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ==}+ '@jridgewell/[email protected]':+ resolution: {integrity: sha512-0pPkgz9dY+bijgistcTTJ5mR+ocqRXLuhXHYdzoMmmoJ2C9S46RCm2GMUbatPEUK9Yjy26IrAy8D/M00lLkv+Q==}'@jridgewell/[email protected]':resolution: {integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==}+ '@jridgewell/[email protected]':+ resolution: {integrity: sha512-VT2+G1VQs/9oz078bLrYbecdZKs912zQlkelYpuf+SXF+QvZDYJlbx/LSx+meSAwdDFnF8FVXW92AVjjkVmgFw==}+'@jridgewell/[email protected]':resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==}+ '@jridgewell/[email protected]':+ resolution: {integrity: sha512-uw6guiW/gcAGPDhLmd77/6lW8QLeiV5RUTsAX46Db6oLhGaVj4lhnPwb184s1bkc8kdVg/+h988dro8GRDpmYQ==}+'@jridgewell/[email protected]':resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==}@@ -2909,8 +2921,8 @@ packages:'@types/react':optional: true- '@mui/[email protected]':- resolution: {integrity: sha512-2UCEiK29vtiZTeLdS2d4GndBKacVyxGvReznGXGr+CzW/YhjIX+OHUdCIczZjzcRAgKBGmE9zCIgoV9FleuyRQ==}+ '@mui/[email protected]':+ resolution: {integrity: sha512-p63yhbX52MO/ajXC7hDHJA5yjzJekvWD3q4YDLl1rSg+OXLczMYPvTuSuviPRCgRX8+E42RXz1D/dz9SxPSlWg==}peerDependencies:'@types/react': ^17.0.0 || ^18.0.0 || ^19.0.0peerDependenciesMeta:@@ -6173,6 +6185,11 @@ packages:engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}hasBin: true+ resolution: {integrity: sha512-KGj0KoOMXLpSNkkEI6Z6mShmQy0bc1I+T7K9N81k4WWMrfz+6fQ6es80B/YLAeRoKvjYE1YSHHOW1qe9xIVzHw==}+ engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}+ hasBin: true+resolution: {integrity: sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==}@@ -6255,6 +6272,9 @@ packages:resolution: {integrity: sha512-1R/elMjtehrFejxwmexeXAtae5UO9iSyFn6G/I806CYC/BLyyBk1EPhrKBkWhy6wM6Xnm47dSJQec+tLJ39WHw==}+ resolution: {integrity: sha512-pB68nIHmbN6L/4C6MH1DokyR3bYqFwjaSs/sWDHGj4CTcFtQUQMuJftVwWkXq7mNWOybD3KhUv3oWHoGxgP14Q==}+resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==}@@ -7170,6 +7190,9 @@ packages:resolution: {integrity: sha512-LxcRvnYO5ez2bMOFpbuuVuAI5QNeY1ncVytE/KXaL6ZNfzX1yPlAO0nSOyIHx2fVAuUprMqPs/TdVhUFZy7SIQ==}+ resolution: {integrity: sha512-UWKi/EbBopgfFsc5k61wFpV7WrnnSlSzW/e2XcBmS6qKYTivZlLtoll5/rdqRTxGglGHkmkW0j0pFNJG10EUIQ==}+resolution: {integrity: sha512-+cYTcFB1QqD4j4LegwLfpCNxifb6dDFUAwk6RsLusCwIaZI6or2f+q8rs5tTB2YC53HhOlIbEaqHMAAC8IOIwA==}@@ -10254,18 +10277,13 @@ packages:prettier-plugin-svelte:optional: true- resolution: {integrity: sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==}- engines: {node: '>=14'}- hasBin: true-resolution: {integrity: sha512-e9MewbtFo+Fevyuxn/4rrcDAaq0IYxPGLvObpQjiZBMAzB9IGmzlnG9RZy3FFas+eBMu2vA0CszMeduow5dIuQ==}engines: {node: '>=14'}hasBin: true- resolution: {integrity: sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==}+ resolution: {integrity: sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==}engines: {node: '>=14'}hasBin: true@@ -13455,12 +13473,12 @@ snapshots:'@jridgewell/trace-mapping': 0.3.25jsesc: 2.5.2- '@babel/[email protected]':+ '@babel/[email protected]':dependencies:- '@babel/parser': 7.27.5- '@babel/types': 7.27.6- '@jridgewell/gen-mapping': 0.3.8- '@jridgewell/trace-mapping': 0.3.25+ '@babel/parser': 7.28.0+ '@babel/types': 7.28.0+ '@jridgewell/gen-mapping': 0.3.12+ '@jridgewell/trace-mapping': 0.3.29jsesc: 3.1.0optional: true@@ -13479,6 +13497,9 @@ snapshots:'@babel/template': 7.24.0'@babel/types': 7.24.0+ '@babel/[email protected]':+ optional: true+'@babel/[email protected]':dependencies:'@babel/types': 7.24.0@@ -13489,8 +13510,8 @@ snapshots:'@babel/[email protected]':dependencies:- '@babel/traverse': 7.27.4- '@babel/types': 7.27.6+ '@babel/traverse': 7.28.0+ '@babel/types': 7.28.0transitivePeerDependencies:- supports-coloroptional: true@@ -13545,9 +13566,9 @@ snapshots:dependencies:'@babel/types': 7.24.0- '@babel/[email protected]':+ '@babel/[email protected]':dependencies:- '@babel/types': 7.27.6+ '@babel/types': 7.28.0'@babel/[email protected](@babel/[email protected])':dependencies:@@ -13646,8 +13667,8 @@ snapshots:'@babel/[email protected]':dependencies:'@babel/code-frame': 7.27.1- '@babel/parser': 7.27.5- '@babel/types': 7.27.6+ '@babel/parser': 7.28.0+ '@babel/types': 7.28.0optional: true'@babel/[email protected]':@@ -13665,15 +13686,15 @@ snapshots:transitivePeerDependencies:- supports-color- '@babel/[email protected]':+ '@babel/[email protected]':dependencies:'@babel/code-frame': 7.27.1- '@babel/generator': 7.27.5- '@babel/parser': 7.27.5+ '@babel/generator': 7.28.0+ '@babel/helper-globals': 7.28.0+ '@babel/parser': 7.28.0'@babel/template': 7.27.2- '@babel/types': 7.27.6+ '@babel/types': 7.28.0debug: 4.4.1- globals: 11.12.0transitivePeerDependencies:- supports-coloroptional: true@@ -13684,7 +13705,7 @@ snapshots:'@babel/helper-validator-identifier': 7.24.5to-fast-properties: 2.0.0- '@babel/[email protected]':+ '@babel/[email protected]':dependencies:'@babel/helper-string-parser': 7.27.1'@babel/helper-validator-identifier': 7.27.1@@ -13759,9 +13780,9 @@ snapshots:'@codemirror/view': 6.36.2'@lezer/common': 1.2.3- '@codemirror/[email protected](@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected])':+ '@codemirror/[email protected](@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected])':dependencies:- '@codemirror/language': 6.11.1+ '@codemirror/language': 6.11.2'@codemirror/state': 6.5.1'@codemirror/view': 6.36.2'@lezer/common': 1.2.3@@ -13796,6 +13817,15 @@ snapshots:'@lezer/lr': 1.4.2style-mod: 4.1.2+ '@codemirror/[email protected]':+ dependencies:+ '@codemirror/state': 6.5.1+ '@codemirror/view': 6.36.2+ '@lezer/common': 1.2.3+ '@lezer/highlight': 1.2.1+ '@lezer/lr': 1.4.2+ style-mod: 4.1.2+'@codemirror/[email protected]':dependencies:'@codemirror/state': 6.5.1@@ -13820,7 +13850,7 @@ snapshots:'@codemirror/[email protected]':dependencies:- '@codemirror/language': 6.11.1+ '@codemirror/language': 6.11.2'@codemirror/state': 6.5.1'@codemirror/view': 6.36.2'@lezer/highlight': 1.2.1@@ -14182,9 +14212,9 @@ snapshots:dependencies:'@floating-ui/utils': 0.2.8- '@floating-ui/[email protected]':+ '@floating-ui/[email protected]':dependencies:- '@floating-ui/utils': 0.2.9+ '@floating-ui/utils': 0.2.10'@floating-ui/[email protected]':dependencies:@@ -14196,10 +14226,10 @@ snapshots:'@floating-ui/core': 1.6.0'@floating-ui/utils': 0.2.8- '@floating-ui/[email protected]':+ '@floating-ui/[email protected]':dependencies:- '@floating-ui/core': 1.7.1- '@floating-ui/utils': 0.2.9+ '@floating-ui/core': 1.7.2+ '@floating-ui/utils': 0.2.10dependencies:@@ -14213,9 +14243,9 @@ snapshots:react: 18.2.0react-dom: 18.2.0([email protected])dependencies:- '@floating-ui/dom': 1.7.1+ '@floating-ui/dom': 1.7.2react: 18.2.0react-dom: 18.2.0([email protected])@@ -14235,9 +14265,9 @@ snapshots:react-dom: 18.2.0([email protected])tabbable: 6.2.0- '@floating-ui/[email protected]': {}+ '@floating-ui/[email protected]': {}- '@floating-ui/[email protected]': {}+ '@floating-ui/[email protected]': {}'@google-cloud/[email protected]':dependencies:@@ -14677,13 +14707,12 @@ snapshots:'@types/yargs': 17.0.32chalk: 4.1.2- '@jridgewell/[email protected]':+ '@jridgewell/[email protected]':dependencies:- '@jridgewell/set-array': 1.2.1- '@jridgewell/sourcemap-codec': 1.5.0- '@jridgewell/trace-mapping': 0.3.25+ '@jridgewell/sourcemap-codec': 1.5.4+ '@jridgewell/trace-mapping': 0.3.29- '@jridgewell/[email protected]':+ '@jridgewell/[email protected]':dependencies:'@jridgewell/set-array': 1.2.1'@jridgewell/sourcemap-codec': 1.5.0@@ -14693,18 +14722,25 @@ snapshots:'@jridgewell/[email protected]': {}- '@jridgewell/[email protected]':+ '@jridgewell/[email protected]':dependencies:- '@jridgewell/gen-mapping': 0.3.8- '@jridgewell/trace-mapping': 0.3.25+ '@jridgewell/gen-mapping': 0.3.12+ '@jridgewell/trace-mapping': 0.3.29'@jridgewell/[email protected]': {}+ '@jridgewell/[email protected]': {}+'@jridgewell/[email protected]':dependencies:'@jridgewell/resolve-uri': 3.1.2'@jridgewell/sourcemap-codec': 1.5.0+ '@jridgewell/[email protected]':+ dependencies:+ '@jridgewell/resolve-uri': 3.1.2+ '@jridgewell/sourcemap-codec': 1.5.4+'@jridgewell/[email protected]':dependencies:'@jridgewell/resolve-uri': 3.1.2@@ -14895,8 +14931,8 @@ snapshots:'@mui/[email protected](@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@babel/runtime': 7.27.6- '@mui/types': 7.4.3(@types/[email protected])+ '@mui/types': 7.4.4(@types/[email protected])'@mui/utils': 5.17.1(@types/[email protected])([email protected])'@popperjs/core': 2.11.8clsx: 2.1.1@@ -14914,7 +14950,7 @@ snapshots:'@mui/base': 5.0.0-beta.40(@types/[email protected])([email protected]([email protected]))([email protected])'@mui/core-downloads-tracker': 5.17.1'@mui/system': 5.16.7(@emotion/[email protected](@types/[email protected])([email protected]))(@emotion/[email protected](@emotion/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected]))(@types/[email protected])([email protected])- '@mui/types': 7.4.3(@types/[email protected])+ '@mui/types': 7.4.4(@types/[email protected])'@mui/utils': 5.17.1(@types/[email protected])([email protected])'@types/react-transition-group': 4.4.12(@types/[email protected])clsx: 2.1.1@@ -14954,7 +14990,7 @@ snapshots:'@babel/runtime': 7.27.6'@mui/private-theming': 5.17.1(@types/[email protected])([email protected])'@mui/styled-engine': 5.16.14(@emotion/[email protected](@types/[email protected])([email protected]))(@emotion/[email protected](@emotion/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected]))([email protected])- '@mui/types': 7.4.3(@types/[email protected])+ '@mui/types': 7.4.4(@types/[email protected])'@mui/utils': 5.17.1(@types/[email protected])([email protected])clsx: 2.1.1csstype: 3.1.3@@ -14973,7 +15009,7 @@ snapshots:optionalDependencies:'@types/react': 18.2.79- '@mui/[email protected](@types/[email protected])':+ '@mui/[email protected](@types/[email protected])':dependencies:'@babel/runtime': 7.27.6optionalDependencies:@@ -15033,7 +15069,7 @@ snapshots:'@next-auth/[email protected](@prisma/[email protected]([email protected]([email protected]))([email protected]))([email protected](patch_hash=cczsf6i6qe2m2htirvgxjtoclu)([email protected](@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected]))':dependencies:- next-auth: 4.24.11(patch_hash=cczsf6i6qe2m2htirvgxjtoclu)([email protected](@opentelemetry/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])+ next-auth: 4.24.11(patch_hash=cczsf6i6qe2m2htirvgxjtoclu)([email protected](@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])'@next/[email protected]': {}@@ -16635,7 +16671,7 @@ snapshots:dependencies:html-to-text: 9.0.5- prettier: 3.5.3+ prettier: 3.6.2react: 18.2.0react-dom: 18.2.0([email protected])react-promise-suspense: 0.3.4@@ -18353,7 +18389,7 @@ snapshots:'@ungap/[email protected]': {}- '@vercel/[email protected](@next/[email protected])([email protected])([email protected](@types/[email protected]))([email protected])([email protected])([email protected](@types/[email protected]))':+ '@vercel/[email protected](@next/[email protected])([email protected])([email protected](@types/[email protected]))([email protected])([email protected])([email protected](@types/[email protected]))':dependencies:'@babel/core': 7.24.3'@babel/eslint-parser': 7.24.1(@babel/[email protected])([email protected])@@ -18361,7 +18397,7 @@ snapshots:'@typescript-eslint/eslint-plugin': 7.3.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])'@typescript-eslint/parser': 7.12.0([email protected])([email protected])eslint-config-prettier: 9.1.0([email protected])- eslint-import-resolver-alias: 1.1.2([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected]))+ eslint-import-resolver-alias: 1.1.2([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])eslint-plugin-eslint-comments: 3.2.0([email protected])eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])@@ -18374,11 +18410,11 @@ snapshots:eslint-plugin-tsdoc: 0.2.17eslint-plugin-unicorn: 51.0.1([email protected])eslint-plugin-vitest: 0.3.26(@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])([email protected])([email protected](@types/[email protected]))- prettier-plugin-packagejson: 2.4.12([email protected])+ prettier-plugin-packagejson: 2.4.12([email protected])optionalDependencies:'@next/eslint-plugin-next': 14.2.15eslint: 8.57.0- prettier: 3.5.3+ prettier: 3.6.2typescript: 5.4.5transitivePeerDependencies:- eslint-import-resolver-node@@ -18448,7 +18484,7 @@ snapshots:'@vue/[email protected]':dependencies:- '@babel/parser': 7.27.5+ '@babel/parser': 7.28.0'@vue/shared': 3.4.27entities: 4.5.0estree-walker: 2.0.2@@ -18461,7 +18497,7 @@ snapshots:'@vue/[email protected]':dependencies:- '@babel/parser': 7.27.5+ '@babel/parser': 7.28.0'@vue/compiler-core': 3.4.27'@vue/compiler-dom': 3.4.27'@vue/compiler-ssr': 3.4.27@@ -19039,6 +19075,13 @@ snapshots:node-releases: 2.0.19update-browserslist-db: 1.1.3([email protected])+ dependencies:+ caniuse-lite: 1.0.30001727+ electron-to-chromium: 1.5.179+ node-releases: 2.0.19+ update-browserslist-db: 1.1.3([email protected])+dependencies:node-int64: 0.4.0@@ -19129,6 +19172,8 @@ snapshots:+ [email protected]: {}+@@ -19330,7 +19375,7 @@ snapshots:dependencies:- '@jridgewell/sourcemap-codec': 1.5.0+ '@jridgewell/sourcemap-codec': 1.5.4'@types/estree': 1.0.8acorn: 8.15.0estree-walker: 3.0.3@@ -19338,9 +19383,9 @@ snapshots:[email protected](@lezer/[email protected]):dependencies:- '@codemirror/autocomplete': 6.17.0(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected])+ '@codemirror/autocomplete': 6.17.0(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected])'@codemirror/commands': 6.8.1- '@codemirror/language': 6.11.1+ '@codemirror/language': 6.11.2'@codemirror/lint': 6.8.5'@codemirror/search': 6.5.6'@codemirror/state': 6.5.1@@ -20083,6 +20128,8 @@ snapshots:+ [email protected]: {}+@@ -20341,7 +20388,7 @@ snapshots:eslint-plugin-turbo: 2.5.4([email protected])([email protected])turbo: 2.5.4- [email protected]([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])):+ [email protected]([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])):dependencies:eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])@@ -20432,7 +20479,7 @@ snapshots:doctrine: 2.1.0eslint: 8.57.0eslint-import-resolver-node: 0.3.9- eslint-module-utils: 2.8.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected]))([email protected])+ eslint-module-utils: 2.8.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])hasown: 2.0.2is-core-module: 2.15.1is-glob: 4.0.3@@ -20459,7 +20506,7 @@ snapshots:doctrine: 2.1.0eslint: 8.57.0eslint-import-resolver-node: 0.3.9- eslint-module-utils: 2.8.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])+ eslint-module-utils: 2.8.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected]))([email protected])hasown: 2.0.2is-core-module: 2.15.1is-glob: 4.0.3@@ -20531,10 +20578,20 @@ snapshots:optionalDependencies:eslint-plugin-jest: 27.9.0(@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])([email protected](@types/[email protected]))([email protected])- [email protected](@types/[email protected])([email protected]([email protected]))([email protected])([email protected]):+ [email protected](@types/[email protected])([email protected]([email protected]))([email protected])([email protected]):dependencies:eslint: 8.57.0- prettier: 3.3.3+ prettier: 3.4.2+ prettier-linter-helpers: 1.0.0+ synckit: 0.8.8+ optionalDependencies:+ '@types/eslint': 8.56.12+ eslint-config-prettier: 9.1.0([email protected])++ [email protected](@types/[email protected])([email protected]([email protected]))([email protected])([email protected]):+ dependencies:+ eslint: 8.57.0+ prettier: 3.6.2prettier-linter-helpers: 1.0.0synckit: 0.8.8optionalDependencies:@@ -22186,7 +22243,7 @@ snapshots:dependencies:- '@types/node': 20.14.8+ '@types/node': 20.10.5merge-stream: 2.0.0supports-color: 8.1.1@@ -23175,7 +23232,7 @@ snapshots:dependencies:type-fest: 2.19.0- [email protected](patch_hash=cczsf6i6qe2m2htirvgxjtoclu)([email protected](@opentelemetry/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected]):+ [email protected](patch_hash=cczsf6i6qe2m2htirvgxjtoclu)([email protected](@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected]):dependencies:'@babel/runtime': 7.26.0'@panva/hkdf': 1.1.1@@ -23893,22 +23950,20 @@ snapshots:dependencies:fast-diff: 1.3.0dependencies:sort-package-json: 2.8.0synckit: 0.9.0optionalDependencies:- prettier: 3.5.3+ prettier: 3.6.2dependencies:- prettier: 3.3.3-- [email protected]: {}+ prettier: 3.6.2- [email protected]: {}+ [email protected]: {}dependencies:@@ -25046,8 +25101,8 @@ snapshots:dependencies:'@ampproject/remapping': 2.3.0- '@jridgewell/sourcemap-codec': 1.5.0- '@jridgewell/trace-mapping': 0.3.25+ '@jridgewell/sourcemap-codec': 1.5.4+ '@jridgewell/trace-mapping': 0.3.29'@types/estree': 1.0.8acorn: 8.15.0aria-query: 5.3.2@@ -25168,7 +25223,7 @@ snapshots:dependencies:- '@jridgewell/trace-mapping': 0.3.25+ '@jridgewell/trace-mapping': 0.3.29jest-worker: 27.5.1schema-utils: 4.3.2serialize-javascript: 6.0.2@@ -25177,7 +25232,7 @@ snapshots:dependencies:- '@jridgewell/source-map': 0.3.6+ '@jridgewell/source-map': 0.3.10acorn: 8.15.0commander: 2.20.3source-map-support: 0.5.21@@ -25543,6 +25598,12 @@ snapshots:escalade: 3.2.0picocolors: 1.1.1+ dependencies:+ browserslist: 4.25.1+ escalade: 3.2.0+ picocolors: 1.1.1+dependencies:punycode: 2.3.1@@ -25916,7 +25977,7 @@ snapshots:'@webassemblyjs/wasm-edit': 1.14.1'@webassemblyjs/wasm-parser': 1.14.1acorn: 8.15.0- browserslist: 4.25.0+ browserslist: 4.25.1chrome-trace-event: 1.0.4enhanced-resolve: 5.18.2es-module-lexer: 1.7.0@@ -26134,4 +26195,4 @@ snapshots:- [email protected]: {}\ No newline at end of file+ [email protected]: {}diff --git a/prettier.config.cjs b/prettier.config.cjsnew file mode 100644index 0000000000..497590fa61--- /dev/null+++ b/prettier.config.cjs@@ -0,0 +1,7 @@+/** @type {import("prettier").Config} */+const config = {+ trailingComma: "all",+/** printWidth: 100, Commenting out for now to prevent large number of changes. **present in .vscode/settings.json though** - TODO: change to consistence with 100chars */+};++module.exports = config;diff --git a/web/package.json b/web/package.jsonindex 97513b50ab..6bb15f57f0 100644--- a/web/package.json+++ b/web/package.json@@ -190,7 +190,7 @@"jest": "^29.7.0","jest-environment-jsdom": "^29.7.0","node-mocks-http": "^1.14.1",- "prettier": "^3.3.3",+ "prettier": "^3.6.2","prettier-plugin-tailwindcss": "^0.6.6","tailwindcss": "^3.4.17","ts-node": "^10.9.2",diff --git a/web/src/__tests__/async/prompts.v2.servertest.ts b/web/src/__tests__/async/prompts.v2.servertest.tsindex f88c432454..1d9ca4cfc2 100644--- a/web/src/__tests__/async/prompts.v2.servertest.ts+++ b/web/src/__tests__/async/prompts.v2.servertest.ts@@ -294,7 +294,7 @@ describe("/api/public/v2/prompts API Endpoint", () => {testPromptEquality(createPromptParams, fetchedPrompt.body);});- it("should fetch the latest prompt if label is latest", async () => {+ (it("should fetch the latest prompt if label is latest", async () => {const { projectId, auth } = await createOrgProjectAndApiKey();const promptName = "latestPrompt_" + nanoid();@@ -396,7 +396,7 @@ describe("/api/public/v2/prompts API Endpoint", () => {}testPromptEquality(productionPromptParams, fetchedPrompt.body);- });+ }));it("should return a 404 if prompt does not exist", async () => {const fetchedPrompt = await makeAPICall<Prompt>(diff --git a/web/src/__tests__/prompts.v1.servertest.ts b/web/src/__tests__/prompts.v1.servertest.tsindex ff529e15eb..bd309dd3c7 100644--- a/web/src/__tests__/prompts.v1.servertest.ts+++ b/web/src/__tests__/prompts.v1.servertest.ts@@ -3,10 +3,9 @@import { prisma } from "@langfuse/shared/src/db";import { makeAPICall, pruneDatabase } from "@/src/__tests__/test-utils";import { v4 as uuidv4, v4 } from "uuid";-import { type Prompt, PromptType, } from "@langfuse/shared";+import { type Prompt, PromptType } from "@langfuse/shared";import {LegacyPromptSchema,-type LegacyValidatedPrompt,} from "@langfuse/shared";import { getObservationById } from "@langfuse/shared/src/server";diff --git a/web/src/features/automations/components/automations.tsx b/web/src/features/automations/components/automations.tsxindex 3014aef634..a5dc4d5444 100644--- a/web/src/features/automations/components/automations.tsx+++ b/web/src/features/automations/components/automations.tsx@@ -47,7 +47,7 @@ export default function AutomationsPage() {});// Fetch editing automation when in edit mode- const { data: editingAutomation, error: editingAutomationError } =+ const { data: editingAutomation, error: editingAutomationError } =api.automations.getAutomation.useQuery({projectId,@@ -59,15 +59,16 @@ export default function AutomationsPage() {);// Fetch automation for detail view to check if it exists- const { error: automationDetailError } = api.automations.getAutomation.useQuery(- {- projectId,- automationId: automationId!,- },- {- enabled: view === "list" && !!selectedAutomation,- },- );+ const { error: automationDetailError } =+ api.automations.getAutomation.useQuery(+ {+ projectId,+ automationId: automationId!,+ },+ {+ enabled: view === "list" && !!selectedAutomation,+ },+ );// Auto-select the topmost automation or clear selection if none existuseEffect(() => {@@ -79,7 +80,11 @@ export default function AutomationsPage() {automationId: undefined,tab: urlParams.tab,});- } else if (automations.length > 0 && !selectedAutomation && view === "list") {+ } else if (+ automations.length > 0 &&+ !selectedAutomation &&+ view === "list"+ ) {// Auto-select the topmost automation if none is currently selectedsetUrlParams({view: "list",@@ -213,12 +218,20 @@ export default function AutomationsPage() {const renderMainContent = () => {// Handle 404 errors for edit viewif (view === "edit" && editingAutomationError?.data?.code === "NOT_FOUND") {- return renderAutomationNotFoundError("The webhook you're trying to edit doesn't exist or has been deleted.");+ return renderAutomationNotFoundError(+ "The webhook you're trying to edit doesn't exist or has been deleted.",+ );}// Handle 404 errors for detail view- if (view === "list" && selectedAutomation && automationDetailError?.data?.code === "NOT_FOUND") {- return renderAutomationNotFoundError("The webhook you're looking for doesn't exist or has been deleted.");+ if (+ view === "list" &&+ selectedAutomation &&+ automationDetailError?.data?.code === "NOT_FOUND"+ ) {+ return renderAutomationNotFoundError(+ "The webhook you're looking for doesn't exist or has been deleted.",+ );}if (view === "create") {diff --git a/worker/package.json b/worker/package.jsonindex 4ffc6ecc42..4b7dc94833 100644--- a/worker/package.json+++ b/worker/package.json@@ -76,7 +76,7 @@"kysely-codegen": "^0.16.8","msw": "^2.6.5","nodemon": "^3.1.7",- "prettier": "^3.3.3",+ "prettier": "^3.6.2","ts-node": "^10.9.2","tsc-watch": "^6.2.0","tsx": "^4.19.1",diff --git a/worker/src/__tests__/experimentsService.test.ts b/worker/src/__tests__/experimentsService.test.tsindex 3ff2c703aa..def456c4b5 100644--- a/worker/src/__tests__/experimentsService.test.ts+++ b/worker/src/__tests__/experimentsService.test.ts@@ -314,7 +314,10 @@ describe("create experiment jobs", () => {});describe("create experiment jobs with placeholders", () => {- const setupPlaceholderTest = async (promptConfig: any, datasetItemInput: any) => {+ const setupPlaceholderTest = async (+ promptConfig: any,+ datasetItemInput: any,+ ) => {await pruneDatabase();const projectId = "7a88fb47-b4e2-43b8-a06c-a5ce950dc53a";const datasetId = randomUUID();@@ -393,20 +396,18 @@ describe("create experiment jobs with placeholders", () => {{ role: "system", content: "You are a helpful assistant." },{ type: "placeholder", name: "conversation_history" },{ type: "placeholder", name: "user_context" },- { role: "user", content: "Please help me." }- ]+ { role: "user", content: "Please help me." },+ ],},{conversation_history: [{ role: "user", content: "Hello {{name}}!" },- { role: "assistant", content: "Hi there!" }- ],- user_context: [- { role: "system", content: "User is a {{role}}" }+ { role: "assistant", content: "Hi there!" },],+ user_context: [{ role: "system", content: "User is a {{role}}" }],name: "John",- role: "developer"- }+ role: "developer",+ },);const payload = {@@ -436,10 +437,10 @@ describe("create experiment jobs with placeholders", () => {prompt: [{ role: "system", content: "You are a helpful assistant." },{ type: "placeholder", name: "empty_history" },- { role: "user", content: "Start conversation." }- ]+ { role: "user", content: "Start conversation." },+ ],},- { empty_history: [] }+ { empty_history: [] },);const payload = {@@ -469,10 +470,10 @@ describe("create experiment jobs with placeholders", () => {prompt: [{ role: "system", content: "You are a helpful assistant." },{ type: "placeholder", name: "invalid_messages" },- { role: "user", content: "Help me." }- ]+ { role: "user", content: "Help me." },+ ],},- { invalid_messages: "this should be an array or object" }+ { invalid_messages: "this should be an array or object" },);const payload = {diff --git a/worker/src/__tests__/signature.test.ts b/worker/src/__tests__/signature.test.tsindex de99175379..3f8818c1a9 100644--- a/worker/src/__tests__/signature.test.ts+++ b/worker/src/__tests__/signature.test.ts@@ -99,7 +99,11 @@ describe("signature.ts", () => {const signatureHeader = createSignatureHeader(payload, secretKey);// User verification process- const isValid = verifyWebhookSignature(payload, signatureHeader, secretKey);+ const isValid = verifyWebhookSignature(+ payload,+ signatureHeader,+ secretKey,+ );expect(isValid).toBe(true);});@@ -109,7 +113,11 @@ describe("signature.ts", () => {const payload = '{"event": "trace.created"}';const signatureHeader = createSignatureHeader(payload, secretKey);- const isValid = verifyWebhookSignature(payload, signatureHeader, wrongSecret);+ const isValid = verifyWebhookSignature(+ payload,+ signatureHeader,+ wrongSecret,+ );expect(isValid).toBe(false);});});@@ -123,7 +131,7 @@ function verifyWebhookSignature(): boolean {try {const [timestampPart, signaturePart] = signatureHeader.split(",");-+if (!timestampPart || !signaturePart) {return false;}@@ -136,12 +144,16 @@ function verifyWebhookSignature(}// Generate expected signature using our provided function- const expectedSignature = generateWebhookSignature(payload, timestamp, secret);+ const expectedSignature = generateWebhookSignature(+ payload,+ timestamp,+ secret,+ );// Use timing-safe comparisonreturn require("crypto").timingSafeEqual(Buffer.from(receivedSignature),- Buffer.from(expectedSignature)+ Buffer.from(expectedSignature),);} catch (error) {return false;diff --git a/worker/src/queues/entityChangeQueue.ts b/worker/src/queues/entityChangeQueue.tsindex 89d8597a5d..a6d7a8e143 100644--- a/worker/src/queues/entityChangeQueue.ts+++ b/worker/src/queues/entityChangeQueue.ts@@ -13,4 +13,4 @@ export const entityChangeQueueProcessor = async ()}`,);return await entityChangeWorker(job.data.payload);-};\ No newline at end of file+};diff --git a/worker/src/scripts/createDefaultModelPricesJson.ts b/worker/src/scripts/createDefaultModelPricesJson.tsindex 525ad7021b..ea2a8cec25 100644--- a/worker/src/scripts/createDefaultModelPricesJson.ts+++ b/worker/src/scripts/createDefaultModelPricesJson.ts@@ -68,7 +68,7 @@ async function main() {await fs.writeFile(EXPORT_PATH, JSON.stringify(modelPrices, null, 2));console.log(- `✅ ${modelPrices.length} default model prices written to ${EXPORT_PATH}.`+ `✅ ${modelPrices.length} default model prices written to ${EXPORT_PATH}.`,);} catch (error) {console.error(error);diff --git a/worker/src/services/ClickhouseWriter/index.ts b/worker/src/services/ClickhouseWriter/index.tsindex 180fd8bd6a..739a7bf91a 100644--- a/worker/src/services/ClickhouseWriter/index.ts+++ b/worker/src/services/ClickhouseWriter/index.ts@@ -26,7 +26,7 @@ export class ClickhouseWriter {queue: ClickhouseQueue;isIntervalFlushInProgress: boolean;- intervalId: NodeJS.Timeout | null = null; // eslint-disable-line no-undef+ intervalId: NodeJS.Timeout | null = null;private constructor() {this.batchSize = env.LANGFUSE_INGESTION_CLICKHOUSE_WRITE_BATCH_SIZE;diff --git a/worker/src/utils/shutdown.ts b/worker/src/utils/shutdown.tsindex 3a3ad2b41d..6af86310a0 100644--- a/worker/src/utils/shutdown.ts+++ b/worker/src/utils/shutdown.ts@@ -9,7 +9,7 @@ import { WorkerManager } from "../queues/workerManager";import { prisma } from "@langfuse/shared/src/db";import { BackgroundMigrationManager } from "../backgroundMigrations/backgroundMigrationManager";-export const onShutdown: NodeJS.SignalsListener = async (signal) => { // eslint-disable-line no-undef+export const onShutdown: NodeJS.SignalsListener = async (signal) => {logger.info(`Received ${signal}, closing server...`);setSigtermReceived();