Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore: remove legacy/batched ingestion pipeline code (#5121)

Steffen Schmitzae3f84125b60
diff --git a/.env.prod.example b/.env.prod.example
index 1e9d048cbb..3f591ea776 100644
--- a/.env.prod.example
+++ b/.env.prod.example
@@ -252,7 +252,5 @@ OTEL_SERVICE_NAME="langfuse"
# LANGFUSE_INGESTION_CLICKHOUSE_WRITE_BATCH_SIZE=
# LANGFUSE_INGESTION_CLICKHOUSE_WRITE_INTERVAL_MS=
# LANGFUSE_INGESTION_CLICKHOUSE_MAX_ATTEMPTS=
-# LANGFUSE_LEGACY_INGESTION_WORKER_CONCURRENCY=
-# QUEUE_CONSUMER_LEGACY_INGESTION_QUEUE_IS_ENABLED="true"
## END Langfuse V3 Ingestion
\ No newline at end of file
diff --git a/package.json b/package.json
index 01664571b0..32a5d48184 100644
--- a/package.json
+++ b/package.json
@@ -25,7 +25,6 @@
"dev": "turbo run dev",
"lint": "turbo run lint",
"test": "turbo run test",
- "models:migrate": "turbo run models:migrate",
"release": "dotenv -e ../.env -- release-it",
"prepare": "husky"
},
diff --git a/packages/shared/src/server/auth/gitHubEnterpriseProvider.ts b/packages/shared/src/server/auth/gitHubEnterpriseProvider.ts
index b76ef74eb6..a48e4355d7 100644
--- a/packages/shared/src/server/auth/gitHubEnterpriseProvider.ts
+++ b/packages/shared/src/server/auth/gitHubEnterpriseProvider.ts
@@ -2,64 +2,64 @@ import type { OAuthConfig, OAuthUserConfig } from "next-auth/providers/oauth";
import type { GithubProfile, GithubEmail } from "next-auth/providers/github";
export function GitHubEnterpriseProvider<P extends GithubProfile>(
- options: OAuthUserConfig<P> & {
- enterprise?: {
- baseUrl?: string;
- };
- }
+ options: OAuthUserConfig<P> & {
+ enterprise?: {
+ baseUrl?: string;
+ };
+ },
): OAuthConfig<P> {
- const baseUrl = options?.enterprise?.baseUrl ?? "https://github.com"
- const apiBaseUrl = options?.enterprise?.baseUrl
- ? `${options?.enterprise?.baseUrl}/api/v3`
- : "https://api.github.com"
+ const baseUrl = options?.enterprise?.baseUrl ?? "https://github.com";
+ const apiBaseUrl = options?.enterprise?.baseUrl
+ ? `${options?.enterprise?.baseUrl}/api/v3`
+ : "https://api.github.com";
- return {
- id: "github-enterprise",
- name: "GitHub Enterprise",
- type: "oauth",
- authorization: {
- url: `${baseUrl}/login/oauth/authorize`,
- params: { scope: "read:user user:email" },
- },
- token: `${baseUrl}/login/oauth/access_token`,
- userinfo: {
- url: `${apiBaseUrl}/user`,
- async request({ client, tokens }) {
- const profile = await client.userinfo(tokens.access_token!)
+ return {
+ id: "github-enterprise",
+ name: "GitHub Enterprise",
+ type: "oauth",
+ authorization: {
+ url: `${baseUrl}/login/oauth/authorize`,
+ params: { scope: "read:user user:email" },
+ },
+ token: `${baseUrl}/login/oauth/access_token`,
+ userinfo: {
+ url: `${apiBaseUrl}/user`,
+ async request({ client, tokens }) {
+ const profile = await client.userinfo(tokens.access_token!);
- if (!profile.email) {
- // If the user does not have a public email, get another via the GitHub API
- // See https://docs.github.com/en/rest/users/emails#list-email-addresses-for-the-authenticated-user
- const res = await fetch(`${apiBaseUrl}/user/emails`, {
- headers: { Authorization: `token ${tokens.access_token}` },
- })
+ if (!profile.email) {
+ // If the user does not have a public email, get another via the GitHub API
+ // See https://docs.github.com/en/rest/users/emails#list-email-addresses-for-the-authenticated-user
+ const res = await fetch(`${apiBaseUrl}/user/emails`, {
+ headers: { Authorization: `token ${tokens.access_token}` },
+ });
- if (res.ok) {
- const emails: GithubEmail[] = await res.json()
- profile.email = (emails.find((e) => e.primary) ?? emails[0]).email
- }
- }
+ if (res.ok) {
+ const emails = (await res.json()) as GithubEmail[];
+ profile.email = (emails.find((e) => e.primary) ?? emails[0]).email;
+ }
+ }
- return profile
- },
- },
- profile(profile) {
- return {
- id: profile.id.toString(),
- name: profile.name ?? profile.login,
- email: profile.email,
- image: profile.avatar_url,
- }
- },
- style: {
- logo: "https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/github.svg",
- logoDark:
- "https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/github-dark.svg",
- bg: "#fff",
- bgDark: "#000",
- text: "#000",
- textDark: "#fff",
- },
- options,
- }
-}
\ No newline at end of file
+ return profile;
+ },
+ },
+ profile(profile) {
+ return {
+ id: profile.id.toString(),
+ name: profile.name ?? profile.login,
+ email: profile.email,
+ image: profile.avatar_url,
+ };
+ },
+ style: {
+ logo: "https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/github.svg",
+ logoDark:
+ "https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/github-dark.svg",
+ bg: "#fff",
+ bgDark: "#000",
+ text: "#000",
+ textDark: "#fff",
+ },
+ options,
+ };
+}
diff --git a/packages/shared/src/server/index.ts b/packages/shared/src/server/index.ts
index 0904c8c6d4..58e47a40d1 100644
--- a/packages/shared/src/server/index.ts
+++ b/packages/shared/src/server/index.ts
@@ -28,7 +28,6 @@ export * from "./redis/traceDelete";
export * from "./redis/projectDelete";
export * from "./redis/datasetRunItemUpsert";
export * from "./redis/batchExport";
-export * from "./redis/legacyIngestion";
export * from "./redis/ingestionQueue";
export * from "./redis/postHogIntegrationQueue";
export * from "./redis/postHogIntegrationProcessingQueue";
@@ -36,9 +35,7 @@ export * from "./redis/coreDataS3ExportQueue";
export * from "./redis/meteringDataPostgresExportQueue";
export * from "./redis/experimentCreateQueue";
export * from "./auth/types";
-export * from "./ingestion/legacy/index";
export * from "./queues";
-export * from "./ingestion/legacy/EventProcessor";
export * from "./orderByToPrisma";
export * from "./filterToPrisma";
export * from "./instrumentation";
diff --git a/packages/shared/src/server/ingestion/legacy/EventProcessor.ts b/packages/shared/src/server/ingestion/legacy/EventProcessor.ts
deleted file mode 100644
index d494b3264b..0000000000
--- a/packages/shared/src/server/ingestion/legacy/EventProcessor.ts
+++ /dev/null
@@ -1,796 +0,0 @@
-import { v4 } from "uuid";
-import { type z } from "zod";
-import Decimal from "decimal.js";
-import { findModel } from "../modelMatch";
-import {
- ObservationEvent,
- eventTypes,
- legacyObservationCreateEvent,
- generationCreateEvent,
- traceEvent,
- scoreEvent,
- sdkLogEvent,
- ingestionEvent,
-} from "../types";
-import { validateAndInflateScore } from "../validateAndInflateScore";
-import { Trace, Observation, Score, Prisma, Model } from "@prisma/client";
-import { ForbiddenError, LangfuseNotFoundError } from "../../../errors";
-import { mergeJson } from "../../../utils/json";
-import { jsonSchema } from "../../../utils/zod";
-import { prisma } from "../../../db";
-import { LegacyIngestionAccessScope } from ".";
-import { logger } from "../../logger";
-import { env } from "../../../env";
-import { upsertTrace } from "../../repositories";
-import { convertDateToClickhouseDateTime } from "../../clickhouse/client";
-
-export interface EventProcessor {
- auth(apiScope: LegacyIngestionAccessScope): void;
-
- process(
- apiScope: LegacyIngestionAccessScope,
- ): Promise<Trace | Observation | Score> | undefined;
-}
-
-export const getProcessorForEvent = (
- event: z.infer<typeof ingestionEvent>,
- calculateTokenDelegate: (p: {
- model: Model;
- text: unknown;
- }) => number | undefined,
-): EventProcessor => {
- switch (event.type) {
- case eventTypes.TRACE_CREATE:
- return new TraceProcessor(event);
- case eventTypes.OBSERVATION_CREATE:
- case eventTypes.OBSERVATION_UPDATE:
- case eventTypes.EVENT_CREATE:
- case eventTypes.SPAN_CREATE:
- case eventTypes.SPAN_UPDATE:
- case eventTypes.GENERATION_CREATE:
- case eventTypes.GENERATION_UPDATE:
- return new ObservationProcessor(event, calculateTokenDelegate);
- case eventTypes.SCORE_CREATE: {
- return new ScoreProcessor(event);
- }
- case eventTypes.SDK_LOG:
- return new SdkLogProcessor(event);
- }
-};
-
-export class ObservationProcessor implements EventProcessor {
- event: ObservationEvent;
- calculateTokenDelegate: (p: {
- model: Model;
- text: unknown;
- }) => number | undefined;
-
- constructor(
- event: ObservationEvent,
- calculateTokenDelegate: (p: {
- model: Model;
- text: unknown;
- }) => number | undefined,
- ) {
- this.event = event;
- this.calculateTokenDelegate = calculateTokenDelegate;
- }
-
- async convertToObservation(
- apiScope: LegacyIngestionAccessScope,
- existingObservation: Omit<Observation, "input" | "output"> | null,
- ): Promise<{
- id: string;
- create: Prisma.ObservationUncheckedCreateInput;
- update: Prisma.ObservationUncheckedUpdateInput;
- }> {
- let type: "EVENT" | "SPAN" | "GENERATION";
- switch (this.event.type) {
- case eventTypes.OBSERVATION_CREATE:
- case eventTypes.OBSERVATION_UPDATE:
- type = this.event.body.type;
- break;
- case eventTypes.EVENT_CREATE:
- type = "EVENT" as const;
- break;
- case eventTypes.SPAN_CREATE:
- case eventTypes.SPAN_UPDATE:
- type = "SPAN" as const;
- break;
- case eventTypes.GENERATION_CREATE:
- case eventTypes.GENERATION_UPDATE:
- type = "GENERATION" as const;
- break;
- }
-
- if (
- this.event.type === eventTypes.OBSERVATION_UPDATE &&
- !existingObservation
- ) {
- throw new LangfuseNotFoundError(
- `Observation with id ${this.event.id} not found`,
- );
- }
-
- // find matching model definition based on event and existing observation in db
- const internalModel: Model | undefined | null =
- type === "GENERATION"
- ? await findModel({
- event: {
- projectId: apiScope.projectId,
- model:
- "model" in this.event.body
- ? (this.event.body.model ?? undefined)
- : undefined,
- unit:
- "usage" in this.event.body
- ? (this.event.body.usage?.unit ?? undefined)
- : undefined,
- startTime: this.event.body.startTime
- ? new Date(this.event.body.startTime)
- : undefined,
- },
- existingDbObservation: existingObservation ?? undefined,
- })
- : undefined;
-
- // Token counts
- const [newInputCount, newOutputCount] =
- "usage" in this.event.body || "usageDetails" in this.event.body
- ? await this.calculateTokenCounts(
- apiScope.projectId,
- this.event.body,
- this.calculateTokenDelegate,
- internalModel ?? undefined,
- existingObservation ?? undefined,
- )
- : [undefined, undefined];
-
- const newTotalCount =
- "usage" in this.event.body || "usageDetails" in this.event.body
- ? (this.event.body.usage?.total ??
- this.event.body.usageDetails?.total ??
- (newInputCount != null || newOutputCount != null
- ? (newInputCount ?? 0) + (newOutputCount ?? 0)
- : undefined))
- : undefined;
-
- const userProvidedTokenCosts = {
- inputCost:
- "usage" in this.event.body && this.event.body.usage?.inputCost != null // inputCost can be explicitly 0. Note only one equal sign to capture null AND undefined
- ? new Decimal(this.event.body.usage?.inputCost)
- : "costDetails" in this.event.body &&
- this.event.body.costDetails?.input != null
- ? new Decimal(this.event.body.costDetails?.input)
- : existingObservation?.inputCost,
- outputCost:
- "usage" in this.event.body && this.event.body.usage?.outputCost != null // outputCost can be explicitly 0. Note only one equal sign to capture null AND undefined
- ? new Decimal(this.event.body.usage?.outputCost)
- : "costDetails" in this.event.body &&
- this.event.body.costDetails?.output != null
- ? new Decimal(this.event.body.costDetails?.output)
- : existingObservation?.outputCost,
- totalCost:
- "usage" in this.event.body && this.event.body.usage?.totalCost != null // totalCost can be explicitly 0. Note only one equal sign to capture null AND undefined
- ? new Decimal(this.event.body.usage?.totalCost)
- : "costDetails" in this.event.body &&
- this.event.body.costDetails?.total != null
- ? new Decimal(this.event.body.costDetails?.total)
- : existingObservation?.totalCost,
- };
-
- const tokenCounts = {
- input: newInputCount ?? existingObservation?.promptTokens,
- output: newOutputCount ?? existingObservation?.completionTokens,
- total: newTotalCount || existingObservation?.totalTokens,
- };
-
- const calculatedCosts = ObservationProcessor.calculateTokenCosts(
- internalModel,
- userProvidedTokenCosts,
- tokenCounts,
- );
-
- // merge metadata from existingObservation.metadata and metadata
- const mergedMetadata = mergeJson(
- existingObservation?.metadata
- ? jsonSchema.parse(existingObservation.metadata)
- : undefined,
- this.event.body.metadata ?? undefined,
- );
-
- const prompt =
- "promptName" in this.event.body &&
- typeof this.event.body.promptName === "string" &&
- "promptVersion" in this.event.body &&
- typeof this.event.body.promptVersion === "number"
- ? await prisma.prompt.findUnique({
- where: {
- projectId_name_version: {
- projectId: apiScope.projectId,
- name: this.event.body.promptName,
- version: this.event.body.promptVersion,
- },
- },
- })
- : undefined;
-
- // Only null if promptName and promptVersion are set but prompt is not found
- if (prompt === null) {
- logger.warn("Prompt not found for observation", this.event.body);
- }
-
- const observationId =
- this.event.body.id ??
- (() => {
- const newId = v4();
- logger.info(
- `observation.id is null. Generating for projectId: ${apiScope.projectId}, id: ${newId}`,
- );
- return newId;
- })();
-
- let traceId = this.event.body?.traceId;
- if (!this.event.body.traceId && !existingObservation) {
- // Create trace if no traceId
- traceId = observationId;
-
- // Insert trace into postgres
- await prisma.trace.upsert({
- where: {
- id: observationId,
- },
- create: {
- projectId: apiScope.projectId,
- name: this.event.body.name,
- id: observationId,
- timestamp: this.event.body.startTime || new Date(),
- },
- update: {},
- });
-
- if (env.CLICKHOUSE_URL) {
- // Insert trace into clickhouse if enabled
- await upsertTrace({
- id: observationId,
- project_id: apiScope.projectId,
- timestamp: convertDateToClickhouseDateTime(
- this.event.body.startTime
- ? new Date(this.event.body.startTime)
- : new Date(),
- ),
- created_at: convertDateToClickhouseDateTime(new Date()),
- updated_at: convertDateToClickhouseDateTime(new Date()),
- });
- }
- }
-
- return {
- id: observationId,
- create: {
- id: observationId,
- traceId,
- type: type,
- name: this.event.body.name,
- startTime: this.event.body.startTime
- ? new Date(this.event.body.startTime)
- : undefined,
- endTime:
- "endTime" in this.event.body && this.event.body.endTime
- ? new Date(this.event.body.endTime)
- : undefined,
- completionStartTime:
- "completionStartTime" in this.event.body &&
- this.event.body.completionStartTime
- ? new Date(this.event.body.completionStartTime)
- : undefined,
- metadata: mergedMetadata ?? this.event.body.metadata ?? undefined,
- model: "model" in this.event.body ? this.event.body.model : undefined,
- modelParameters:
- "modelParameters" in this.event.body
- ? (this.event.body.modelParameters ?? undefined)
- : undefined,
- input: this.event.body.input ?? undefined,
- output: this.event.body.output ?? undefined,
- promptTokens: newInputCount,
- completionTokens: newOutputCount,
- totalTokens: newTotalCount,
- unit:
- "usage" in this.event.body
- ? (this.event.body.usage?.unit ?? internalModel?.unit)
- : internalModel?.unit,
- level: this.event.body.level ?? undefined,
- statusMessage: this.event.body.statusMessage ?? undefined,
- parentObservationId: this.event.body.parentObservationId ?? undefined,
- version: this.event.body.version ?? undefined,
- projectId: apiScope.projectId,
- promptId: prompt ? prompt.id : undefined,
- ...(internalModel
- ? { internalModel: internalModel.modelName }
- : undefined),
- inputCost:
- "usage" in this.event.body
- ? this.event.body.usage?.inputCost
- : undefined,
- outputCost:
- "usage" in this.event.body
- ? this.event.body.usage?.outputCost
- : undefined,
- totalCost:
- "usage" in this.event.body
- ? this.event.body.usage?.totalCost
- : undefined,
- calculatedInputCost: calculatedCosts?.inputCost,
- calculatedOutputCost: calculatedCosts?.outputCost,
- calculatedTotalCost: calculatedCosts?.totalCost,
- internalModelId: internalModel?.id,
- },
- update: {
- name: this.event.body.name ?? undefined,
- startTime: this.event.body.startTime
- ? new Date(this.event.body.startTime)
- : undefined,
- endTime:
- "endTime" in this.event.body && this.event.body.endTime
- ? new Date(this.event.body.endTime)
- : undefined,
- completionStartTime:
- "completionStartTime" in this.event.body &&
- this.event.body.completionStartTime
- ? new Date(this.event.body.completionStartTime)
- : undefined,
- metadata: mergedMetadata ?? this.event.body.metadata ?? undefined,
- model: "model" in this.event.body ? this.event.body.model : undefined,
- modelParameters:
- "modelParameters" in this.event.body
- ? (this.event.body.modelParameters ?? undefined)
- : undefined,
- input: this.event.body.input ?? undefined,
- output: this.event.body.output ?? undefined,
- promptTokens: newInputCount,
- completionTokens: newOutputCount,
- totalTokens: newTotalCount,
- unit:
- "usage" in this.event.body
- ? (this.event.body.usage?.unit ?? internalModel?.unit)
- : internalModel?.unit,
- level: this.event.body.level ?? undefined,
- statusMessage: this.event.body.statusMessage ?? undefined,
- parentObservationId: this.event.body.parentObservationId ?? undefined,
- version: this.event.body.version ?? undefined,
- promptId: prompt ? prompt.id : undefined,
- ...(internalModel
- ? { internalModel: internalModel.modelName }
- : undefined),
- inputCost:
- "usage" in this.event.body
- ? this.event.body.usage?.inputCost
- : undefined,
- outputCost:
- "usage" in this.event.body
- ? this.event.body.usage?.outputCost
- : undefined,
- totalCost:
- "usage" in this.event.body
- ? this.event.body.usage?.totalCost
- : undefined,
- calculatedInputCost: calculatedCosts?.inputCost,
- calculatedOutputCost: calculatedCosts?.outputCost,
- calculatedTotalCost: calculatedCosts?.totalCost,
- internalModelId: internalModel?.id,
- },
- };
- }
-
- async calculateTokenCounts(
- projectId: string,
- body:
- | z.infer<typeof legacyObservationCreateEvent>["body"]
- | z.infer<typeof generationCreateEvent>["body"],
- calculateTokenDelegate: (p: {
- model: Model;
- text: unknown;
- }) => number | undefined,
- model?: Model,
- existingObservation?: Omit<Observation, "input" | "output">,
- ) {
- let newPromptTokens = body.usage?.input ?? body.usageDetails?.input;
- if (newPromptTokens === undefined && model && model.tokenizerId) {
- if (body.input) {
- newPromptTokens = calculateTokenDelegate({
- model: model,
- text: body.input,
- });
- } else {
- logger.debug(
- `No input provided, trying to calculate for id: ${existingObservation?.id}`,
- );
- const observationInput = await prisma.observation.findFirst({
- where: { id: existingObservation?.id, projectId: projectId },
- select: {
- input: true,
- },
- });
-
- newPromptTokens = calculateTokenDelegate({
- model: model,
- text: observationInput?.input,
- });
- }
- }
-
- let newCompletionTokens = body.usage?.output ?? body.usageDetails?.output;
-
- if (newCompletionTokens === undefined && model && model.tokenizerId) {
- if (body.output) {
- newCompletionTokens = calculateTokenDelegate({
- model: model,
- text: body.output,
- });
- } else {
- logger.debug(
- `No output provided, trying to calculate for id: ${existingObservation?.id}`,
- );
- const observationOutput = await prisma.observation.findFirst({
- where: { id: existingObservation?.id, projectId: projectId },
- select: {
- output: true,
- },
- });
- newCompletionTokens = calculateTokenDelegate({
- model: model,
- text: observationOutput?.output,
- });
- }
- }
-
- return [newPromptTokens ?? undefined, newCompletionTokens ?? undefined];
- }
-
- static calculateTokenCosts(
- model: Model | null | undefined,
- userProvidedCosts: {
- inputCost?: Decimal | null;
- outputCost?: Decimal | null;
- totalCost?: Decimal | null;
- },
- tokenCounts: { input?: number; output?: number; total?: number },
- ): {
- inputCost?: Decimal | null;
- outputCost?: Decimal | null;
- totalCost?: Decimal | null;
- } {
- // If user has provided any cost point, do not calculate anything else
- if (
- userProvidedCosts.inputCost ||
- userProvidedCosts.outputCost ||
- userProvidedCosts.totalCost
- ) {
- return {
- ...userProvidedCosts,
- totalCost:
- userProvidedCosts.totalCost ??
- (userProvidedCosts.inputCost ?? new Decimal(0)).add(
- userProvidedCosts.outputCost ?? new Decimal(0),
- ),
- };
- }
-
- const finalInputCost =
- tokenCounts.input !== undefined && model?.inputPrice
- ? model.inputPrice.mul(tokenCounts.input)
- : undefined;
-
- const finalOutputCost =
- tokenCounts.output !== undefined && model?.outputPrice
- ? model.outputPrice.mul(tokenCounts.output)
- : finalInputCost
- ? new Decimal(0)
- : undefined;
-
- const finalTotalCost =
- tokenCounts.total !== undefined && model?.totalPrice
- ? model.totalPrice.mul(tokenCounts.total)
- : (finalInputCost ?? finalOutputCost)
- ? new Decimal(finalInputCost ?? 0).add(finalOutputCost ?? 0)
- : undefined;
-
- return {
- inputCost: finalInputCost,
- outputCost: finalOutputCost,
- totalCost: finalTotalCost,
- };
- }
-
- auth(apiScope: LegacyIngestionAccessScope): void {
- if (apiScope.accessLevel !== "all")
- throw new ForbiddenError("Access denied for observation creation");
- }
-
- async process(apiScope: LegacyIngestionAccessScope): Promise<Observation> {
- this.auth(apiScope);
-
- const existingObservation = this.event.body.id
- ? await prisma.observation.findFirst({
- select: {
- // do not select I/O to spare our db
- input: false,
- output: false,
-
- id: true,
- traceId: true,
- projectId: true,
- type: true,
- startTime: true,
- endTime: true,
- name: true,
- metadata: true,
- parentObservationId: true,
- level: true,
- statusMessage: true,
- version: true,
- createdAt: true,
- updatedAt: true,
- model: true,
- internalModelId: true,
- modelParameters: true,
- promptTokens: true,
- completionTokens: true,
- totalTokens: true,
- unit: true,
- inputCost: true,
- outputCost: true,
- totalCost: true,
- calculatedInputCost: true,
- calculatedOutputCost: true,
- calculatedTotalCost: true,
- completionStartTime: true,
- promptId: true,
- internalModel: true,
- },
- where: { id: this.event.body.id, projectId: apiScope.projectId },
- })
- : null;
-
- if (
- existingObservation &&
- existingObservation.projectId !== apiScope.projectId
- ) {
- throw new ForbiddenError(
- `Access denied for observation creation ${existingObservation.projectId} `,
- );
- }
-
- const obs = await this.convertToObservation(apiScope, existingObservation);
-
- // Do not use nested upserts or multiple where conditions as this should be a single native database upsert
- // https://www.prisma.io/docs/orm/reference/prisma-client-reference#database-upserts
- return await prisma.observation.upsert({
- where: {
- id: obs.id,
- },
- create: obs.create,
- update: obs.update,
- });
- }
-}
-
-export class TraceProcessor implements EventProcessor {
- event: z.infer<typeof traceEvent>;
-
- constructor(event: z.infer<typeof traceEvent>) {
- this.event = event;
- }
-
- auth(apiScope: LegacyIngestionAccessScope): void {
- if (apiScope.accessLevel !== "all")
- throw new ForbiddenError("Access denied for trace creation");
- }
-
- async process(
- apiScope: LegacyIngestionAccessScope,
- ): Promise<Trace | Observation | Score> {
- const { body } = this.event;
-
- this.auth(apiScope);
-
- const internalId =
- body.id ??
- (() => {
- const newId = v4();
- logger.info(
- `trace.id is null. Generating for projectId: ${apiScope.projectId}, id: ${newId}`,
- );
- return newId;
- })();
-
- logger.debug(
- `Trying to create trace, project ${apiScope.projectId}, id: ${internalId}`,
- );
-
- const existingTrace = await prisma.trace.findFirst({
- where: {
- id: internalId,
- },
- });
-
- if (existingTrace && existingTrace.projectId !== apiScope.projectId) {
- throw new ForbiddenError(
- `Access denied for trace creation ${existingTrace.projectId}`,
- );
- }
-
- const mergedMetadata = mergeJson(
- existingTrace?.metadata
- ? jsonSchema.parse(existingTrace.metadata)
- : undefined,
- body.metadata ?? undefined,
- );
-
- const mergedTags =
- existingTrace?.tags && body.tags
- ? Array.from(new Set(existingTrace.tags.concat(body.tags ?? []))).sort()
- : body.tags
- ? Array.from(new Set(body.tags)).sort()
- : undefined;
-
- if (body.sessionId) {
- try {
- await prisma.traceSession.upsert({
- where: {
- id_projectId: {
- id: body.sessionId,
- projectId: apiScope.projectId,
- },
- },
- create: {
- id: body.sessionId,
- projectId: apiScope.projectId,
- },
- update: {},
- });
- } catch (e) {
- if (
- e instanceof Prisma.PrismaClientKnownRequestError &&
- e.code === "P2002"
- ) {
- logger.warn(
- `Failed to upsert session. Session ${body.sessionId} in project ${apiScope.projectId} already exists`,
- );
- } else {
- throw e;
- }
- }
- }
-
- // Do not use nested upserts or multiple where conditions as this should be a single native database upsert
- // https://www.prisma.io/docs/orm/reference/prisma-client-reference#database-upserts
- const upsertedTrace = await prisma.trace.upsert({
- where: {
- id: internalId,
- },
- create: {
- id: internalId,
- timestamp: this.event.body.timestamp
- ? new Date(this.event.body.timestamp)
- : undefined,
- name: body.name ?? undefined,
- userId: body.userId ?? undefined,
- input: body.input ?? undefined,
- output: body.output ?? undefined,
- metadata: mergedMetadata ?? body.metadata ?? undefined,
- release: body.release ?? undefined,
- version: body.version ?? undefined,
- sessionId: body.sessionId ?? undefined,
- public: body.public ?? undefined,
- projectId: apiScope.projectId,
- tags: mergedTags ?? undefined,
- },
- update: {
- name: body.name ?? undefined,
- timestamp: this.event.body.timestamp
- ? new Date(this.event.body.timestamp)
- : undefined,
- userId: body.userId ?? undefined,
- input: body.input ?? undefined,
- output: body.output ?? undefined,
- metadata: mergedMetadata ?? body.metadata ?? undefined,
- release: body.release ?? undefined,
- version: body.version ?? undefined,
- sessionId: body.sessionId ?? undefined,
- public: body.public ?? undefined,
- tags: mergedTags ?? undefined,
- },
- });
- return upsertedTrace;
- }
-}
-
-export class ScoreProcessor implements EventProcessor {
- event: z.infer<typeof scoreEvent>;
-
- constructor(event: z.infer<typeof scoreEvent>) {
- this.event = event;
- }
-
- auth(apiScope: LegacyIngestionAccessScope) {
- if (apiScope.accessLevel !== "scores" && apiScope.accessLevel !== "all")
- throw new ForbiddenError(
- `Access denied for score creation, ${apiScope.accessLevel}`,
- );
- }
-
- async process(
- apiScope: LegacyIngestionAccessScope,
- ): Promise<Trace | Observation | Score> {
- const { body } = this.event;
-
- this.auth(apiScope);
-
- const id =
- body.id ??
- (() => {
- const newId = v4();
- logger.info(
- `score.id is null. Generating for projectId: ${apiScope.projectId}, id: ${newId}`,
- );
- return newId;
- })();
-
- const existingScore = await prisma.score.findFirst({
- where: {
- id: id,
- },
- select: {
- projectId: true,
- },
- });
- if (existingScore && existingScore.projectId !== apiScope.projectId) {
- throw new ForbiddenError(
- `Access denied for score creation ${existingScore.projectId}`,
- );
- }
-
- const validatedScore = await validateAndInflateScore({
- body,
- scoreId: id,
- projectId: apiScope.projectId,
- });
-
- return await prisma.score.upsert({
- where: {
- id_projectId: {
- id,
- projectId: apiScope.projectId,
- },
- },
- create: {
- ...validatedScore,
- },
- update: {
- ...validatedScore,
- },
- });
- }
-}
-
-export class SdkLogProcessor implements EventProcessor {
- event: z.infer<typeof sdkLogEvent>;
-
- constructor(event: z.infer<typeof sdkLogEvent>) {
- this.event = event;
- }
-
- auth(apiScope: LegacyIngestionAccessScope) {
- return;
- }
-
- process() {
- try {
- logger.info("SDK Log", this.event);
- return undefined;
- } catch (error) {
- return undefined;
- }
- }
-}
diff --git a/packages/shared/src/server/ingestion/legacy/index.ts b/packages/shared/src/server/ingestion/legacy/index.ts
deleted file mode 100644
index 0564b0e974..0000000000
--- a/packages/shared/src/server/ingestion/legacy/index.ts
+++ /dev/null
@@ -1,161 +0,0 @@
-import { env } from "node:process";
-import z from "zod";
-import { ForbiddenError, UnauthorizedError } from "../../../errors";
-import { eventTypes, ingestionApiSchema, IngestionEventType } from "../types";
-import { getProcessorForEvent } from "./EventProcessor";
-import { ApiAccessScope } from "../../auth/types";
-import { backOff } from "exponential-backoff";
-import { Model } from "../../..";
-import { logger } from "../../logger";
-
-export type BatchResult = {
- result: unknown;
- id: string;
- type: string;
-};
-
-type TokenCountInput = {
- model: Model;
- text: unknown;
-};
-
-export type LegacyIngestionAccessScope = Omit<
- ApiAccessScope,
- "orgId" | "plan" | "rateLimitOverrides"
->;
-
-type LegacyIngestionAuthHeaderVerificationResult =
- | {
- validKey: true;
- scope: LegacyIngestionAccessScope;
- }
- | {
- validKey: false;
- error: string;
- };
-
-export const handleBatch = async (
- events: z.infer<typeof ingestionApiSchema>["batch"],
- authCheck: LegacyIngestionAuthHeaderVerificationResult,
- calculateTokenDelegate: (p: TokenCountInput) => number | undefined,
-) => {
- logger.debug(`handling ingestion ${events.length} events`);
-
- if (!authCheck.validKey) throw new UnauthorizedError(authCheck.error);
-
- const results: BatchResult[] = []; // Array to store the results
-
- const errors: {
- error: unknown;
- id: string;
- type: string;
- }[] = []; // Array to store the errors
-
- for (const singleEvent of events) {
- try {
- const result = await retry(async () => {
- return await handleSingleEvent(
- singleEvent,
- authCheck.scope,
- calculateTokenDelegate,
- );
- });
- results.push({
- result: result,
- id: singleEvent.id,
- type: singleEvent.type,
- }); // Push each result into the array
- } catch (error) {
- // Handle or log the error if `handleSingleEvent` fails
- logger.error("Error handling event:", error);
- // Decide how to handle the error: rethrow, continue, or push an error object to results
- // For example, push an error object:
- errors.push({
- error,
- id: singleEvent.id,
- type: singleEvent.type,
- });
- }
- }
-
- return { results, errors };
-};
-
-async function retry<T>(request: () => Promise<T>): Promise<T> {
- return await backOff(request, {
- numOfAttempts: 5,
- retry: (e: Error, attemptNumber: number) => {
- if (e instanceof UnauthorizedError || e instanceof ForbiddenError) {
- logger.info("not retrying auth error");
- return false;
- }
- logger.info(`retrying processing events ${attemptNumber}`);
- return true;
- },
- });
-}
-
-const handleSingleEvent = async (
- event: IngestionEventType,
- apiScope: LegacyIngestionAccessScope,
- calculateTokenDelegate: (p: {
- model: Model;
- text: unknown;
- }) => number | undefined,
-) => {
- const { body } = event;
- let restEvent = body;
- if ("input" in body) {
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
- const { input, ...rest } = body;
- restEvent = rest;
- }
- if ("output" in restEvent) {
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
- const { output, ...rest } = restEvent;
- restEvent = rest;
- }
-
- logger.debug(
- `handling single event ${event.id} of type ${event.type}: ${JSON.stringify({ body: restEvent })}`,
- );
-
- const cleanedEvent = cleanEvent(event) as IngestionEventType;
-
- // Deny access to non-score events if the access level is not "all"
- // This is an additional safeguard to auth checks in EventProcessor
- if (
- apiScope.accessLevel !== "all" &&
- cleanedEvent.type !== eventTypes.SCORE_CREATE
- ) {
- throw new ForbiddenError("Access denied. Event type not allowed.");
- }
-
- return getProcessorForEvent(cleanedEvent, calculateTokenDelegate).process(
- apiScope,
- );
-};
-
-// cleans NULL characters from the event
-export function cleanEvent(obj: unknown): unknown {
- if (typeof obj === "string") {
- return obj.replace(/\u0000/g, "");
- } else if (typeof obj === "object" && obj !== null) {
- if (Array.isArray(obj)) {
- return obj.map(cleanEvent);
- } else {
- // Here we assert that obj is a Record<string, unknown>
- const objAsRecord = obj as Record<string, unknown>;
- const newObj: Record<string, unknown> = {};
- for (const key in objAsRecord) {
- newObj[key] = cleanEvent(objAsRecord[key]);
- }
- return newObj;
- }
- } else {
- return obj;
- }
-}
-
-export const isUndefinedOrNull = <T>(val?: T | null): val is undefined | null =>
- val === undefined || val === null;
diff --git a/packages/shared/src/server/ingestion/processEventBatch.ts b/packages/shared/src/server/ingestion/processEventBatch.ts
index 9356ebf376..db4d6de7bd 100644
--- a/packages/shared/src/server/ingestion/processEventBatch.ts
+++ b/packages/shared/src/server/ingestion/processEventBatch.ts
@@ -4,6 +4,7 @@ import { z } from "zod";
import { type Model } from "../../db";
import { env } from "../../env";
import {
+ ForbiddenError,
InvalidRequestError,
LangfuseNotFoundError,
UnauthorizedError,
@@ -25,7 +26,6 @@ import {
StorageService,
StorageServiceFactory,
} from "../services/StorageService";
-import { getProcessorForEvent } from "./legacy/EventProcessor";
import { eventTypes, ingestionEvent, IngestionEventType } from "./types";
export type TokenCountDelegate = (p: {
@@ -52,7 +52,6 @@ const getS3StorageServiceClient = (bucketName: string): StorageService => {
export const processEventBatch = async (
input: unknown[],
authCheck: AuthHeaderValidVerificationResult,
- tokenCountDelegate: TokenCountDelegate,
): Promise<{
successes: { id: string; status: number }[];
errors: {
@@ -97,7 +96,7 @@ export const processEventBatch = async (
});
return [];
}
- if (!isAuthorized(parsed.data, authCheck, tokenCountDelegate)) {
+ if (!isAuthorized(parsed.data, authCheck)) {
authenticationErrors.push({
id: parsed.data.id,
error: new UnauthorizedError("Access Scope Denied"),
@@ -230,14 +229,19 @@ export const processEventBatch = async (
const isAuthorized = (
event: IngestionEventType,
authScope: AuthHeaderValidVerificationResult,
- tokenCountDelegate: TokenCountDelegate,
): boolean => {
- try {
- getProcessorForEvent(event, tokenCountDelegate).auth(authScope.scope);
+ if (event.type === eventTypes.SDK_LOG) {
return true;
- } catch (error) {
- return false;
}
+
+ if (event.type === eventTypes.SCORE_CREATE) {
+ return (
+ authScope.scope.accessLevel === "scores" ||
+ authScope.scope.accessLevel === "all"
+ );
+ }
+
+ return authScope.scope.accessLevel === "all";
};
/**
diff --git a/packages/shared/src/server/llm/fetchLLMCompletion.ts b/packages/shared/src/server/llm/fetchLLMCompletion.ts
index 09668e3c53..fc26b6b7bd 100644
--- a/packages/shared/src/server/llm/fetchLLMCompletion.ts
+++ b/packages/shared/src/server/llm/fetchLLMCompletion.ts
@@ -122,7 +122,6 @@ export async function fetchLLMCompletion(
await processEventBatch(
JSON.parse(JSON.stringify(events)), // stringify to emulate network event batch from network call
traceParams.authCheck,
- traceParams.tokenCountDelegate,
);
} catch (e) {
logger.error("Failed to process traced events", { error: e });
diff --git a/packages/shared/src/server/queues.ts b/packages/shared/src/server/queues.ts
index 305f2a85f5..101111c686 100644
--- a/packages/shared/src/server/queues.ts
+++ b/packages/shared/src/server/queues.ts
@@ -1,41 +1,6 @@
import { z } from "zod";
import { eventTypes, ingestionBatchEvent } from ".";
-export const LegacyIngestionEventFull = z.object({
- useS3EventStore: z.literal(false),
- data: ingestionBatchEvent,
- authCheck: z.object({
- validKey: z.literal(true),
- scope: z.object({
- projectId: z.string(),
- accessLevel: z.enum(["all", "scores"]),
- }),
- }),
-});
-
-export const LegacyIngestionEventMeta = z.object({
- useS3EventStore: z.literal(true),
- data: z.array(
- z.object({
- type: z.nativeEnum(eventTypes),
- eventBodyId: z.string(),
- eventId: z.string(),
- }),
- ),
- authCheck: z.object({
- validKey: z.literal(true),
- scope: z.object({
- projectId: z.string(),
- accessLevel: z.enum(["all", "scores"]),
- }),
- }),
-});
-
-export const LegacyIngestionEvent = z.discriminatedUnion("useS3EventStore", [
- LegacyIngestionEventFull,
- LegacyIngestionEventMeta,
-]);
-
export const IngestionEvent = z.object({
data: z.object({
type: z.nativeEnum(eventTypes),
@@ -95,7 +60,6 @@ export type DatasetRunItemUpsertEventType = z.infer<
typeof DatasetRunItemUpsertEventSchema
>;
export type EvalExecutionEventType = z.infer<typeof EvalExecutionEvent>;
-export type LegacyIngestionEventType = z.infer<typeof LegacyIngestionEvent>;
export type IngestionEventQueueType = z.infer<typeof IngestionEvent>;
export type ExperimentCreateEventType = z.infer<
typeof ExperimentCreateEventSchema
@@ -113,7 +77,6 @@ export enum QueueName {
BatchExport = "batch-export-queue",
IngestionQueue = "ingestion-queue", // Process single events with S3-merge
IngestionSecondaryQueue = "secondary-ingestion-queue", // Separates high priority + high throughput projects from other projects.
- LegacyIngestionQueue = "legacy-ingestion-queue", // Used for batch processing of Ingestion
CloudUsageMeteringQueue = "cloud-usage-metering-queue",
ExperimentCreate = "experiment-create-queue",
PostHogIntegrationQueue = "posthog-integration-queue",
@@ -129,7 +92,6 @@ export enum QueueJobs {
DatasetRunItemUpsert = "dataset-run-item-upsert",
EvaluationExecution = "evaluation-execution-job",
BatchExportJob = "batch-export-job",
- LegacyIngestionJob = "legacy-ingestion-job",
CloudUsageMeteringJob = "cloud-usage-metering-job",
IngestionJob = "ingestion-job",
IngestionSecondaryJob = "secondary-ingestion-job",
@@ -177,12 +139,6 @@ export type TQueueJobTypes = {
payload: BatchExportJobType;
name: QueueJobs.BatchExportJob;
};
- [QueueName.LegacyIngestionQueue]: {
- timestamp: Date;
- id: string;
- payload: LegacyIngestionEventType;
- name: QueueJobs.LegacyIngestionJob;
- };
[QueueName.IngestionQueue]: {
timestamp: Date;
id: string;
diff --git a/packages/shared/src/server/redis/getQueue.ts b/packages/shared/src/server/redis/getQueue.ts
index d1ae6309d4..7e12110ffb 100644
--- a/packages/shared/src/server/redis/getQueue.ts
+++ b/packages/shared/src/server/redis/getQueue.ts
@@ -6,7 +6,6 @@ import { DatasetRunItemUpsertQueue } from "./datasetRunItemUpsert";
import { EvalExecutionQueue } from "./evalExecutionQueue";
import { ExperimentCreateQueue } from "./experimentCreateQueue";
import { IngestionQueue, SecondaryIngestionQueue } from "./ingestionQueue";
-import { LegacyIngestionQueue } from "./legacyIngestion";
import { TraceUpsertQueue } from "./traceUpsert";
import { TraceDeleteQueue } from "./traceDelete";
import { ProjectDeleteQueue } from "./projectDelete";
@@ -17,8 +16,6 @@ import { MeteringDataPostgresExportQueue } from "./meteringDataPostgresExportQue
export function getQueue(queueName: QueueName): Queue | null {
switch (queueName) {
- case QueueName.LegacyIngestionQueue:
- return LegacyIngestionQueue.getInstance();
case QueueName.BatchExport:
return BatchExportQueue.getInstance();
case QueueName.CloudUsageMeteringQueue:
diff --git a/packages/shared/src/server/redis/legacyIngestion.ts b/packages/shared/src/server/redis/legacyIngestion.ts
deleted file mode 100644
index c7c1050b04..0000000000
--- a/packages/shared/src/server/redis/legacyIngestion.ts
+++ /dev/null
@@ -1,45 +0,0 @@
-import { Queue } from "bullmq";
-import { QueueName, TQueueJobTypes } from "../queues";
-import { createNewRedisInstance, redisQueueRetryOptions } from "./redis";
-import { logger } from "../logger";
-
-export class LegacyIngestionQueue {
- private static instance: Queue<
- TQueueJobTypes[QueueName.LegacyIngestionQueue]
- > | null = null;
-
- public static getInstance(): Queue<
- TQueueJobTypes[QueueName.LegacyIngestionQueue]
- > | null {
- if (LegacyIngestionQueue.instance) return LegacyIngestionQueue.instance;
-
- const newRedis = createNewRedisInstance({
- enableOfflineQueue: false,
- ...redisQueueRetryOptions,
- });
-
- LegacyIngestionQueue.instance = newRedis
- ? new Queue<TQueueJobTypes[QueueName.LegacyIngestionQueue]>(
- QueueName.LegacyIngestionQueue,
- {
- connection: newRedis,
- defaultJobOptions: {
- removeOnComplete: true,
- removeOnFail: 500_000,
- attempts: 5,
- backoff: {
- type: "exponential",
- delay: 5000,
- },
- },
- },
- )
- : null;
-
- LegacyIngestionQueue.instance?.on("error", (err) => {
- logger.error("LegacyIngestionQueue error", err);
- });
-
- return LegacyIngestionQueue.instance;
- }
-}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 4dc585f268..252b8a10ca 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -14,22 +14,22 @@ importers:
devDependencies:
'@release-it/bumper':
specifier: ^6.0.1
braces:
specifier: 3.0.3
version: 3.0.3
dotenv-cli:
specifier: ^7.4.2
- version: 7.4.2
+ version: 7.4.4
husky:
specifier: ^9.0.11
- version: 9.0.11
+ version: 9.1.7
prettier:
specifier: ^3.3.3
- version: 3.3.3
+ version: 3.4.2
release-it:
specifier: ^17.3.0
- version: 17.3.0([email protected])
+ version: 17.11.0([email protected])
turbo:
specifier: ^1.13.4
version: 1.13.4
@@ -102,7 +102,7 @@ importers:
'@vercel/style-guide':
specifier: ^6.0.0
eslint-config-next:
specifier: ^14.2.15
@@ -583,9 +583,6 @@ importers:
ip-address:
specifier: ^9.0.5
version: 9.0.5
- js-tiktoken:
- specifier: ^1.0.15
- version: 1.0.15
kysely:
specifier: ^0.27.4
version: 0.27.4
@@ -885,9 +882,6 @@ importers:
ioredis:
specifier: ^5.4.1
version: 5.4.1
- js-tiktoken:
- specifier: ^1.0.15
- version: 1.0.15
kysely:
specifier: ^0.27.4
version: 0.27.4
@@ -2257,10 +2251,6 @@ packages:
resolution: {integrity: sha512-I+ETk2AL+yAVbvuKx5AJpQmoaWhpiTFOg/UJb7ZkMAK4blmtG8ATh5ct+T/8xNld0CZG/2UhtkdMwpgvld92XQ==}
engines: {node: '>=18'}
- '@inquirer/[email protected]':
- resolution: {integrity: sha512-ErXXzENMH5pJt5/ssXV0DfWUZqly8nGzf0UcBV9xTnP+KyffE2mqyxIMBrZ8ijQck2nU0TQm40EQB53YreyWHw==}
- engines: {node: '>=18'}
-
'@inquirer/[email protected]':
resolution: {integrity: sha512-tKd+jsmhq21AP1LhexC0pPwsCxEhGgAkg28byjJAd+xhmIs8LUX8JbUc3vBf3PhLxWiB5EvyBE5X7JSPAqMAqg==}
engines: {node: '>=18'}
@@ -2461,10 +2451,6 @@ packages:
resolution: {integrity: sha512-pu0K1jCIdnQ12aWNaAVU5bzi7Bd1w54J3ECgANPmYLtQKP0HBj2cE/5coBD66MT10xbtIuUr7tg0Shbsvk0mDA==}
- '@ljharb/[email protected]':
- resolution: {integrity: sha512-/gKJun8NNiWGZJkGzI/Ragc53cOdcLNdzjLaIa+GEjguQs0ulsurx8WN0jijdK9yPqDvziX995sMRLyLt1uZMQ==}
- engines: {node: '>= 0.4'}
-
'@marsidev/[email protected]':
resolution: {integrity: sha512-cloUDkEcJm+G7p3J8DwPtRNNB2GZqVi/nlIbgu9o3VzNyV5K/bWcSfOyWouRiR3umAQZmsFpR3OFYa4mCmy4AQ==}
peerDependencies:
@@ -4408,10 +4394,6 @@ packages:
'@sinclair/[email protected]':
resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==}
- '@sindresorhus/[email protected]':
- resolution: {integrity: sha512-TV7t8GKYaJWsn00tFDqBw8+Uqmr8A0fRU1tvTQhyZzGv0sJCGRQL3JGMI3ucuKo3XIZdUP+Lx7/gh2t3lewy7g==}
- engines: {node: '>=14.16'}
-
'@sindresorhus/[email protected]':
resolution: {integrity: sha512-LtoMMhxAlorcGhmFYI+LhPgbPZCkgP6ra1YL604EeF6U98pLlQ3iWIGMdWSC+vWmPBWBNgmDBAhnAobLROJmwg==}
engines: {node: '>=18'}
@@ -4635,10 +4617,6 @@ packages:
resolution: {integrity: sha512-KGYxvIOXcceOAbEk4bi/dVLEK9z8sZ0uBB3Il5b1rhfClSpcX0yfRO0KmTkqR2cnQDymwLB+25ZyMzICg/cm/A==}
- '@szmarczak/[email protected]':
- resolution: {integrity: sha512-+PmQX0PiAYPMeVYe237LJAYvOMYW1j2rH5YROyS3b4CTVJum34HfRvKvAzozHAQG0TnHNdUfY9nCeUyRAs//cw==}
- engines: {node: '>=14.16'}
-
'@t3-oss/[email protected]':
resolution: {integrity: sha512-MaxOwEoG1ntCFoKJsS7nqwgcxLW1SJw238AJwfJeaz3P/8GtkxXZsPPolsz1AdYvUTbe3XvqZ/VCdfjt+3zmKw==}
peerDependencies:
@@ -4893,9 +4871,6 @@ packages:
resolution: {integrity: sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==}
- '@types/[email protected]':
- resolution: {integrity: sha512-1m0bIFVc7eJWyve9S0RnuRgcQqF/Xd5QsUZAZeQFr1Q3/p9JWoQQEqmVy+DPTNpGXwhgIetAoYF8JSc33q29QA==}
-
resolution: {integrity: sha512-D0CFMMtydbJAegzOyHjtiKPLlvnm3iTZyZRSZoLq2mRhDdmLfIWOCYPfQJ4cu2erKghU++QvjcUjp/5h7hESpA==}
@@ -5444,6 +5419,10 @@ packages:
resolution: {integrity: sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA==}
engines: {node: '>= 14'}
+ resolution: {integrity: sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw==}
+ engines: {node: '>= 14'}
+
resolution: {integrity: sha512-5GG/5IbQQpC9FpkRGsSvZI5QYeSCzlJHdpBQntCsuTOxhKD8lqKhrleg2Yi7yvMIf82Ycmmqln9U8V9qwEiJew==}
engines: {node: '>= 8.0.0'}
@@ -5585,10 +5564,6 @@ packages:
resolution: {integrity: sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ==}
engines: {node: '>= 0.4'}
- resolution: {integrity: sha512-XpcFfLoBEAhezrrNw1V+yLXkE7M6uR7xJEsxbG6c/V9v043qurwVJB9r9UTnoSioFDoz1i1VOydpWGmJpfVZbg==}
- engines: {node: '>= 0.4'}
-
resolution: {integrity: sha512-wwDCoT4Ck4Cz7sLtgUmzR5UV3YF5mFHUlbChCzZBQZ+0m2cl/DH3tKgvphv1nKgFsJ48oCSg6p91q2Vm0I/ZMA==}
@@ -5627,6 +5602,9 @@ packages:
resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==}
+ resolution: {integrity: sha512-kU6FmrwZ3Lx7/7y3hPS5QnbJfaohcIul5fGqf7ok+4KklIEk9tJ0C2IQPdacSbVUWv6zVHXEBWoWd6NrVMT7Cw==}
+
resolution: {integrity: sha512-BaENR2+zBZ8xXhM4pUaKUxlVdxZ0EZhjvbopwnXmxRUfqDmwSpC2lAi/QXvx7NRdPCo1WKEcEF6mV64si1z4Ew==}
engines: {node: ^10 || ^12 || >=14}
@@ -5721,9 +5699,9 @@ packages:
resolution: {integrity: sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA==}
- resolution: {integrity: sha512-2hCgjEmP8YLWQ130n2FerGv7rYpfBmnmp9Uy2Le1vge6X3gZIfSmEzP5QTDElFxcvVcXlEn8Aq6MU/PZygIOog==}
- engines: {node: '>=14.16'}
+ resolution: {integrity: sha512-F3PH5k5juxom4xktynS7MoFY+NUWH5LC4CnH11YB8NPew+HLpmBLCybSAEyb2F+4pRXhuhWqFesoQd6DAyc2hw==}
+ engines: {node: '>=18'}
resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==}
@@ -5794,14 +5772,6 @@ packages:
resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==}
engines: {node: '>=8'}
- resolution: {integrity: sha512-+qJyx4xiKra8mZrcwhjMRMUhD5NR1R8esPkzIYxX96JiecFoxAXFuz/GpR3+ev4PE1WamHip78wV0vcmPQtp8w==}
- engines: {node: '>=14.16'}
-
- resolution: {integrity: sha512-zkDT5WAF4hSSoUgyfg5tFIxz8XQK+25W/TLVojJTMKBaxevLBBtLxgqguAuVQB8PVW79FVjHcU+GJ9tVbDZ9mQ==}
- engines: {node: '>=14.16'}
-
resolution: {integrity: sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==}
engines: {node: '>= 0.4'}
@@ -5822,9 +5792,9 @@ packages:
resolution: {integrity: sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==}
engines: {node: '>=10'}
- resolution: {integrity: sha512-xlx1yCK2Oc1APsPXDL2LdlNP6+uu8OCDdhOBSVT279M/S+y75O30C2VuD8T2ogdePBBl7PfPF4504tnLgX3zfw==}
- engines: {node: '>=14.16'}
+ resolution: {integrity: sha512-8WB3Jcas3swSvjIeA2yvCJ+Miyz5l1ZmB6HFb9R1317dt9LCQoswg/BGrmAmkWVEszSrrg4RwmO46qIm2OEnSA==}
+ engines: {node: '>=16'}
resolution: {integrity: sha512-LRAQHZ4yT1+f9LemSMeqdMpMxZcc4RMWdj4tiFe3G8tNkWK+E58g+/tzotb5cU6TbcVJLr4fySiAW7XmxQvZQA==}
@@ -5855,6 +5825,10 @@ packages:
resolution: {integrity: sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==}
engines: {node: ^12.17.0 || ^14.13 || >=16.0.0}
+ resolution: {integrity: sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==}
+ engines: {node: ^12.17.0 || ^14.13 || >=16.0.0}
+
resolution: {integrity: sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==}
engines: {node: '>=10'}
@@ -5929,6 +5903,10 @@ packages:
resolution: {integrity: sha512-TdHqgGf9odd8SXNuxtUBVx8Nv+qZOejE6qyqiy5NtbYYQOeFa6zmHkxlPzmaLxWWHsU6nJmB7AETdVPi+2NBUg==}
engines: {node: '>=8'}
+ resolution: {integrity: sha512-HutrvTNsF48wnxkzERIXOe5/mlcfFcbfCmwcg6CJnizbSue78AbDt+1cgl26zwn61WFxhcPykPfZrbqjGmBb4A==}
+ engines: {node: '>=8'}
+
resolution: {integrity: sha512-a3KdPAANPbNE4ZUv9h6LckSl9zLsYOP4MBmhIPkRaeyybt+r4UghLvq+xw/YwUcC1gqylCkL4rdVs3Lwupjm4Q==}
@@ -5954,9 +5932,9 @@ packages:
resolution: {integrity: sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==}
engines: {node: '>=8'}
- resolution: {integrity: sha512-VGtlMu3x/4DOtIUwEkRezxUZ2lBacNJCHash0N0WeZDBS+7Ux1dm3XWAgWYxLJFMMdOeXMHXorshEFhbMSGelg==}
- engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
+ resolution: {integrity: sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==}
+ engines: {node: '>=18'}
resolution: {integrity: sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==}
@@ -6083,9 +6061,9 @@ packages:
resolution: {integrity: sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==}
- resolution: {integrity: sha512-cD31W1v3GqUlQvbBCGcXmd2Nj9SvLDOP1oQ0YFuLETufzSPaKp11rYBsSOm7rCsW3OnIRAFM3OxRhceaXNYHkA==}
- engines: {node: '>=12'}
+ resolution: {integrity: sha512-yk7/5PN5im4qwz0WFZW3PXnzHgPu9mX29Y8uZ3aefe2lBPC1FYttWZRcaW9fKkT0pBCJyuQ2HfbmPVaODi9jcQ==}
+ engines: {node: '>=18'}
resolution: {integrity: sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==}
@@ -6194,10 +6172,6 @@ packages:
resolution: {integrity: sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==}
engines: {node: '>=8'}
- resolution: {integrity: sha512-x8dy3RnvYdlUcPOjkEHqozhiwzKNSq7GcPuXFbnyMOCHxX8V3OgIg/pYuabl2sbUPfIJaeAQB7PMOK8DFIdoRA==}
- engines: {node: '>=12'}
-
resolution: {integrity: sha512-/RC5F4l1SCqD/jazwUF6+t34Cd8zTSAGZ7rvvZu1whZUhD2a5MOGKjSGowoGcpj/cbVZk1ZODIooJEQQq3nNAA==}
@@ -6391,10 +6365,6 @@ packages:
resolution: {integrity: sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==}
- resolution: {integrity: sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==}
- engines: {node: '>= 12'}
-
resolution: {integrity: sha512-7hvf7/GW8e86rW0ptuwS3OcBGDjIi6SZva7hCyWC0yYry2cOPmLIjXAUHI6DK2HsnwJd9ifmt57i8eV2n4YNpw==}
engines: {node: '>= 14'}
@@ -6489,10 +6459,6 @@ packages:
resolution: {integrity: sha512-O8x12RzrUF8xyVcY0KJowWsmaJxQbmy0/EtnNtHRpsOcT7dFk5W598coHqBVpmWo1oQQfsCqfCmkZN5DJrZVdg==}
- resolution: {integrity: sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==}
- engines: {node: '>=10'}
-
resolution: {integrity: sha512-+LxW+KLWxu3HW3M2w2ympwtqPrqYRzU8fqi6Fhd18fBALe15blJPI/I4+UHveMVG6lJqB4JNd4UG0S5cnVHwIg==}
peerDependencies:
@@ -6527,10 +6493,6 @@ packages:
resolution: {integrity: sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==}
- resolution: {integrity: sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==}
- engines: {node: '>=10'}
-
resolution: {integrity: sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==}
engines: {node: '>= 0.4'}
@@ -6673,14 +6635,18 @@ packages:
resolution: {integrity: sha512-H78uMmQtI2AhgDJjWeQmHwJJ2bLPD3GMmO7Zja/ZZh84wkm+4ut+IUnUdRa8uCGX88DiVx1j6FRe1XfxEgjEZA==}
- resolution: {integrity: sha512-tE7ztYzXHIeyvc7N+hR3oi7FIbf/NIjVP9hmAt3yMXzrQ072/fpjGLx2GxNxGxUl5V73MEqYzioOMoVhGMJ5cA==}
- engines: {node: '>=10'}
+ resolution: {integrity: sha512-1gxPBJpI/pcjQhKgIU91II6Wkay+dLcN3M6rf2uwP8hRur3HtQXjVrdAK3sjC0piaEuxzMwjXChcETiJl47lAQ==}
+ engines: {node: '>=18'}
resolution: {integrity: sha512-SbUj8l61zIbzyhIbg0FwPJq6+wjbzdn9oEtozQpZ6kW2ihCcapKVZj49oCT3oPM+mgQm+itgvUQcG5szxVrZTA==}
hasBin: true
+ resolution: {integrity: sha512-XkBYCG0tPIes+YZr4SpfFv76SQrV/LeCE8CI7JSEMi3VR9MvTihCGTOtbIexD6i2mXF+6px7trb1imVCXSNMDw==}
+ hasBin: true
+
resolution: {integrity: sha512-GopVGCpVS1UKH75VKHGuQFqS1Gusej0z4FyQkPdwjil2gNIv+LNsqBlboOzpJFZKVT95GkCyWJbBSdFEFUWI2A==}
engines: {node: '>=12'}
@@ -6769,9 +6735,6 @@ packages:
resolution: {integrity: sha512-e+HfNH61Bj1X9/jLc5v1owaLYuHdeHHSQlkhCBiTK8rBvKaULl/beGMxwrMXjpYrv4pz22BlY570vVePA2ho4A==}
engines: {node: '>= 0.4'}
- resolution: {integrity: sha512-wd6JXUmyHmt8T5a2xreUwKcGPq6f1f+WwIJkijUqiGcJz1qqnZgP6XIK+QyIWU5lT7imeNxUll48bziG+TSYcA==}
-
resolution: {integrity: sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==}
engines: {node: '>= 0.4'}
@@ -6780,9 +6743,6 @@ packages:
resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==}
engines: {node: '>= 0.4'}
- resolution: {integrity: sha512-sPZmqHBe6JIiTfN5q2pEi//TwxmAFHwj/XEuYjTuse78i8KxaqMTTzxPoFKuzRpDpTJ+0NAbpfenkmH2rePtuw==}
-
resolution: {integrity: sha512-scxAJaewsahbqTYrGKJihhViaM6DDZDDoucfvzNbK0pOren1g/daDQ3IAhzn+1G14rBG7w+i5N+qul60++zlKA==}
engines: {node: '>= 0.4'}
@@ -7134,8 +7094,8 @@ packages:
resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==}
engines: {node: '>=10'}
- resolution: {integrity: sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==}
+ resolution: {integrity: sha512-CTNS0BcKBcoOsawKBlpcKNmK4Kjuyz5jVLhf+PUsHGMqiKMVTa4cN3U7r7bRY8KTpfOGpXMo27fdy0dYVg2pqA==}
engines: {node: '>=16.17'}
@@ -7226,10 +7186,6 @@ packages:
resolution: {integrity: sha512-OP2IUU6HeYKJi3i0z4A19kHMQoLVs4Hc+DPqqxI2h/DPZHTm/vjsfC6P0b4jCMy14XizLBqvndQ+UilD7707Jw==}
- resolution: {integrity: sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==}
- engines: {node: ^12.20 || >= 14.13}
-
resolution: {integrity: sha512-FJqqoDBR00Mdj9ppamLa/Y7vxm+PRmNWA67N846RvsoYVMKB4q3y/de5PA7gUmRMYK/8CMz2GDZQmCRN1wBcWA==}
@@ -7301,10 +7257,6 @@ packages:
resolution: {integrity: sha512-qfqtYan3rxrnCk1VYaA4H+Ms9xdpPqvLZa6xmMgFvhO32x7/3J/ExcTd6qpxM0vH2GdMI+poehyBZvqfMTto8A==}
- resolution: {integrity: sha512-yDYSgNMraqvnxiEXO4hi88+YZxaHC6QKzb5N84iRCTDeRO7ZALpir/lVmf/uXUhnwUr2O4HU8s/n6x+yNjQkHw==}
- engines: {node: '>= 14.17'}
-
resolution: {integrity: sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==}
engines: {node: '>= 6'}
@@ -7317,10 +7269,6 @@ packages:
resolution: {integrity: sha512-0iirZp3uVDjVGt9p49aTaqjk84TrglENEDuqfdlZQ1roC9CWlPk6Avf8EEnZNcAqPonwkG35x4n3ww/1THYAeQ==}
engines: {node: '>= 12.20'}
- resolution: {integrity: sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==}
- engines: {node: '>=12.20.0'}
-
resolution: {integrity: sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==}
engines: {node: '>= 0.6'}
@@ -7488,6 +7436,10 @@ packages:
resolution: {integrity: sha512-e1LleDykUz2Iu+MTYdkSsuWX8lvAjAcs0Xef0lNIu0S2wOAzuTxCJtcd9S3cijlwYF18EsU3rzb8jPVobxDh9Q==}
engines: {node: '>=16 || 14 >=14.17'}
+ resolution: {integrity: sha512-wHTUcDUoZ1H5/0iVqEudYW4/kAlN5cZ3j/bXn0Dpbizl9iaUVeWSHqiOjsgk6OW2bkLclbBjzewBz6weQ1zA2Q==}
+ engines: {node: '>=18'}
+
resolution: {integrity: sha512-NBcGGFbBA9s1VzD41QXDG+3++t9Mn5t1FpLdhESY6oKY4gYTFpX4wO3sqGUa0Srjtbfj3szX0RnemmrVRUdULA==}
engines: {node: '>=10'}
@@ -7512,8 +7464,8 @@ packages:
resolution: {integrity: sha512-Y1zNGV+pzQdh7H39l9zgB4PJqjRNqydvdYCDG4HFXM4XuvSaQQlEc91IU1yALL8gUTDomgBAfz3XJdmUS+oo0w==}
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
- resolution: {integrity: sha512-jOMLD2Z7MAhyG8aJpNOpmziMOP4rPLcc95oQPKXBazW82z+CEgPFBQvEpRUa1KeIMUJo4Wsm+q6uzO/Q/4BksQ==}
+ resolution: {integrity: sha512-s3Fq41ZVh7vbbe2PN3nrW7yC7U7MFVc5c98/iTl9c2GawNMKx/J648KQRW6WKkuU8GIbbh2IXfIRQjOZnXcTnw==}
engines: {node: '>=18'}
@@ -7529,14 +7481,6 @@ packages:
resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==}
- resolution: {integrity: sha512-mThBblvlAF1d4O5oqyvN+ZxLAYwIJK7bpMxgYqPD9okW0C3qm5FFn7k811QrcuEBwaogR3ngOFoCfs6mRv7teQ==}
- engines: {node: '>=14.16'}
-
- resolution: {integrity: sha512-XfBk1CxOOScDcMr9O1yKkNaQyy865NbYs+F7dr4H0LZMVgCj2Le59k6PqbNHoL5ToeaEQUYh6c6yMfVcc6SJxA==}
- engines: {node: '>=16'}
-
resolution: {integrity: sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==}
@@ -7641,9 +7585,6 @@ packages:
resolution: {integrity: sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA==}
- resolution: {integrity: sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==}
-
resolution: {integrity: sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==}
engines: {node: '>= 0.8'}
@@ -7660,10 +7601,6 @@ packages:
resolution: {integrity: sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==}
engines: {node: '>= 14'}
- resolution: {integrity: sha512-V5nVw1PAOgfI3Lmeaj2Exmeg7fenjhRUgz1lPSezy1CuhPYbgQtbQj4jZfEAEMlaL+vupsvhjqCyjzob0yxsmQ==}
- engines: {node: '>=10.19.0'}
-
resolution: {integrity: sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==}
engines: {node: '>= 6'}
@@ -7676,6 +7613,10 @@ packages:
resolution: {integrity: sha512-wlwpilI7YdjSkWaQ/7omYBMTliDcmCN8OLihO6I9B86g06lMyAoqgoDpV0XqoaPOKj+0DIdAvnsWfyAAhmimcg==}
engines: {node: '>= 14'}
+ resolution: {integrity: sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==}
+ engines: {node: '>= 14'}
+
resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==}
engines: {node: '>=10.17.0'}
@@ -7687,8 +7628,8 @@ packages:
resolution: {integrity: sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==}
- resolution: {integrity: sha512-AB6lFlbwwyIqMdHYhwPe+kjOC3Oc5P3nThEoW/AaO2BX3vJDjWPFxYLxokUZOo6RNX20He3AaT8sESs9NJcmEw==}
+ resolution: {integrity: sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==}
engines: {node: '>=18'}
hasBin: true
@@ -7731,10 +7672,6 @@ packages:
resolution: {integrity: sha512-gK6Rr6EykBcc6cVWRSBR5TWf8nn6hZMYSRYqCcHa0l0d1fPK7JSYo6+Mlmck76jIX9aL/IZ71c06U2VpFwl1zA==}
- resolution: {integrity: sha512-rKtvo6a868b5Hu3heneU+L4yEQ4jYKLtjpnPeUdK7h0yzXGmyBTypknlkCvHFBqfX9YlorEiMM6Dnq/5atfHkw==}
- engines: {node: '>=8'}
-
resolution: {integrity: sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==}
engines: {node: '>=8'}
@@ -7762,6 +7699,10 @@ packages:
resolution: {integrity: sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==}
engines: {node: '>=10'}
+ resolution: {integrity: sha512-QQnnxNyfvmHFIsj7gkPcYymR8Jdw/o7mp5ZFihxn6h8Ci6fh3Dx4E1gPjpQEpIuPo9XVNY/ZUwh4BPMjGyL01g==}
+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}
+
resolution: {integrity: sha512-AMB1mvwR1pyBFY/nSevUX6y8nJWS63/SzUKD3JyQn97s4xgIdgQPT75IRouIiBAN4yLQBUShNYVW0+UG25daCw==}
engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}
@@ -7769,8 +7710,8 @@ packages:
resolution: {integrity: sha512-qlD8YNDqyTKTyuITrDOffsl6Tdhv+UC4hcdAVuQsK4IMQ99nSgd1MIA/Q+jQYoh9r3hVUXhYh7urSRmXPkW04g==}
- resolution: {integrity: sha512-SqLLa/Oe5rZUagTR9z+Zd6izyatHglbmbvVofo1KzuVB54YHleWzeHNLoR7FOICGOeQSqeLh1cordb3MzhGcEw==}
+ resolution: {integrity: sha512-+ynEbhWKhyomnaX0n2aLIMSkgSlGB5RrWbNXnEqj6mdaIydu6y40MdBjL38SAB0JcdmOaIaMua1azdjLEr3sdw==}
engines: {node: '>=18'}
@@ -7818,10 +7759,6 @@ packages:
resolution: {integrity: sha512-hmbYhX/9MUMF5uh7tOXyK/n0ZvWpad5caBA17GsC6vyuCqaWliRG5K1qS9inmUhEMaOBIW7/whAnSwveW/LtZw==}
- resolution: {integrity: sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==}
- engines: {node: '>= 0.4'}
-
resolution: {integrity: sha512-wcjaerHw0ydZwfhiKbXJWLDY8A7yV7KhjQOpb83hGgGfId/aQa4TOvwyzn2PuswW2gPCYEL/nEAiSVpdOj1lXw==}
engines: {node: '>= 0.4'}
@@ -7855,10 +7792,6 @@ packages:
resolution: {integrity: sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==}
engines: {node: '>= 0.4'}
- resolution: {integrity: sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ==}
- hasBin: true
-
resolution: {integrity: sha512-z0vtXSwucUJtANQWldhbtbt7BnL0vxiFjIdDLAatwhDYty2bad6s+rijD6Ri4YuYJubLzIJLUidCh09e1djEVQ==}
engines: {node: '>= 0.4'}
@@ -7916,8 +7849,8 @@ packages:
resolution: {integrity: sha512-DgZQp241c8oO6cA1SbTEWiXeoxV42vlcJxgH+B3hi1AiqqKruZR3ZGF8In3fj4+/y/7rHvlOZLZtgJ/4ttYGZg==}
- resolution: {integrity: sha512-d9PXLEY0v1iJ64xLiQMJ51J128EYHAaOR4yZqQi8aHGfw6KgifM3/Viw1oZZ1GCVmb3gBuyhLyHj0HgR2DhSXQ==}
+ resolution: {integrity: sha512-eUuAjybVTHMYWm/U+vBO1sY/JOCgoPCXRxzdju0K+K0BiGW0SChEL1MLC0PoCIR1OlPo5YAp8HuQoUlsWEICwg==}
engines: {node: '>=18'}
hasBin: true
@@ -7926,9 +7859,9 @@ packages:
engines: {node: '>=14.16'}
hasBin: true
- resolution: {integrity: sha512-iwGqO3J21aaSkC7jWnHP/difazwS7SFeIqxv6wEtLU8Y5KlzFTjyqcSIT0d8s4+dDhKytsk9PJZ2BkS5eZwQRQ==}
- engines: {node: '>=10'}
+ resolution: {integrity: sha512-K55T22lfpQ63N4KEN57jZUAaAYqYHEe8veb/TycJRk9DdSCLLcovXz/mL6mOnhQaZsQGwPhuFopdQIlqGSEjiQ==}
+ engines: {node: '>=18'}
resolution: {integrity: sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==}
@@ -7961,10 +7894,6 @@ packages:
resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==}
engines: {node: '>=0.12.0'}
- resolution: {integrity: sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==}
- engines: {node: '>=8'}
-
resolution: {integrity: sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ==}
engines: {node: '>=6'}
@@ -7973,6 +7902,10 @@ packages:
resolution: {integrity: sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==}
engines: {node: '>=8'}
+ resolution: {integrity: sha512-lJJV/5dYS+RcL8uQdBDW9c9uWFLLBNRyFhnAKXw5tVqLlKZ4RMGZKv+YQ/IA3OhD+RpbJa1LLFM1FQPGyIXvOA==}
+ engines: {node: '>=12'}
+
resolution: {integrity: sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==}
engines: {node: '>=12'}
@@ -8021,9 +7954,6 @@ packages:
resolution: {integrity: sha512-uZ25/bUAlUY5fR4OKT4rZQEBrzQWYV9ZJYGGsUmEJ6thodVJ1HX64ePQ6Z0qPWP+m+Uq6e9UugrE38jeYsDSMw==}
engines: {node: '>= 0.4'}
- resolution: {integrity: sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==}
-
resolution: {integrity: sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==}
engines: {node: '>=10'}
@@ -8072,8 +8002,8 @@ packages:
resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
- resolution: {integrity: sha512-jgAw78HO3gs9UrKqJNQvfDj9Ouy8Mhu40fbEJ8yXff4MW8+/Fcn9iFjyWUQ6SKbX8ipPk3X5A3AyfYHRu6uVLw==}
+ resolution: {integrity: sha512-3YZcUUR2Wt1WsapF+S/WiA2WmlW0cWAoPccMqne7AxEBhCdFeTPjfv/Axb8V2gyCgY3nRw+ksZ3xSUX+R47iAg==}
engines: {node: ^18.17 || >=20.6.1}
@@ -8104,12 +8034,6 @@ packages:
resolution: {integrity: sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==}
engines: {node: '>=8'}
- resolution: {integrity: sha512-t91HubM4ZDQ70M9wqp+pcNpu8OyJ9UAtXntT/Bcsvp5tZMnz9vRa+IunKXeI8AnfZMTv0jNuVEmGeLSMjVvfPw==}
-
- resolution: {integrity: sha512-A6fMAio4D2ot2r/TYzr4yUWrmwNdsN5xL7+HUiyACE4DXm+q8HtPcnFTp+NnW3k4N05tZ7FVYFFb2CR13NxyHQ==}
-
resolution: {integrity: sha512-DR33HMMr8EzwuRL8Y9D3u2BMj8+RqSE850jfGu59kS7tbmPLzGkZmVSfyCFSDxuZiEY6Rzt3T2NA/qU+NwVj1w==}
@@ -8407,6 +8331,10 @@ packages:
resolution: {integrity: sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A==}
+ resolution: {integrity: sha512-zYEr/gh7uLW2l4su11bmQ2M9xLgQLjyvx58UyNM/6nuqyWFHPX5ktMjvpev3F8QWdjSsHUpnWew4PBCswBNuMQ==}
+ engines: {node: '>=18'}
+
resolution: {integrity: sha512-+N4SDdI9akUWug0i/3UvlktpfPiCt1mtDQ+pVCqI5E98xcGWpdfVXb4CD7CGGNg+QMXqpiR3bVKd0LgCJQtrPA==}
hasBin: true
@@ -8524,9 +8452,9 @@ packages:
resolution: {integrity: sha512-MbjN408fEndfiQXbFQ1vnd+1NoLDsnQW41410oQBXiyXDMYH5z505juWa4KUE1LqxRC7DgOgZDbKLxHIwm27hA==}
engines: {node: '>=0.10'}
- resolution: {integrity: sha512-KvNT4XqAMzdcL6ka6Tl3i2lYeFDgXNCuIX+xNx6ZMVR1dFq+idXd9FLKNMOIx0t9mJ9/HudyX4oZWXZQ0UJHeg==}
- engines: {node: '>=14.16'}
+ resolution: {integrity: sha512-7W0vV3rqv5tokqkBAFV1LbR7HPOWzXQDpDgEuib/aJ1jsZZx6x3c2mBI+TJhJzOhkGeaLbCKEHXEXLfirtG2JA==}
+ engines: {node: '>=18'}
resolution: {integrity: sha512-8h2oVEZNktL4BH2JCOI90iD1yXwL6iNW7KcCKT2QZgQJR2vbqDsldCTPRU9NifTCqHZci57XvQQ15YTu+sTYPg==}
@@ -8656,10 +8584,6 @@ packages:
resolution: {integrity: sha512-edNu/8D5MKVfGVFRhFf8aAxiTM6Wumfz5XsaatSxlD3w4R1d/WEKUTydCdPGbl9K7QG/Ca3GnDV2sIKIpXRQcw==}
- resolution: {integrity: sha512-ozCC6gdQ+glXOQsveKD0YsDy8DSQFjDTz4zyzEHNV5+JP5D62LmfDZ6o1cycFx9ouG940M5dE8C8CTewdj2YWQ==}
- engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
-
resolution: {integrity: sha512-8Ktj+prEb1RoCPkEOrPMYUN/nCggB7qAWe3a7OpMjWQkh3l2RD5wKRQ+o8Q8YuI9RG/xs95waaI/E6ym/7NsTw==}
@@ -8926,13 +8850,9 @@ packages:
resolution: {integrity: sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==}
engines: {node: '>=12'}
- resolution: {integrity: sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==}
- engines: {node: '>=10'}
-
- resolution: {integrity: sha512-e5ISH9xMYU0DzrT+jl8q2ze9D6eWBto+I8CNpe+VI+K2J/F/k3PdkdTdz4wvGVH4NTpo+NRYTVIuMQEMMcsLqg==}
- engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
+ resolution: {integrity: sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==}
+ engines: {node: '>=18'}
resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==}
@@ -9149,10 +9069,6 @@ packages:
encoding:
optional: true
- resolution: {integrity: sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==}
- engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
-
resolution: {integrity: sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==}
engines: {node: '>= 6.13.0'}
@@ -9211,10 +9127,6 @@ packages:
resolution: {integrity: sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==}
engines: {node: '>=0.10.0'}
- resolution: {integrity: sha512-IO9QvjUMWxPQQhs60oOu10CRkWCiZzSUkzbXGGV9pviYl1fXYcvkzQ5jV9z8Y6un8ARoVRl4EtC6v6jNqbaJ/w==}
- engines: {node: '>=14.16'}
-
resolution: {integrity: sha512-gZLxXdjEzE/+mOstGDqR6b0EkhJ+kM6fxM6vUuckuctuVPh80Q6pw/rSZj9s4Gex9GxWtIicO1pc8DB9KZWudw==}
engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
@@ -9313,6 +9225,10 @@ packages:
resolution: {integrity: sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==}
engines: {node: '>=12'}
+ resolution: {integrity: sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==}
+ engines: {node: '>=18'}
+
resolution: {integrity: sha512-mnkeQ1qP5Ue2wd+aivTD3NHd/lZ96Lu0jgf0pwktLPtx6cTZiH7tyeGRRHs0zX0rbrahXPnXlUnbeXyaBBuIaw==}
engines: {node: '>=18'}
@@ -9348,8 +9264,8 @@ packages:
resolution: {integrity: sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==}
engines: {node: '>=10'}
- resolution: {integrity: sha512-ANIvzobt1rls2BDny5fWZ3ZVKyD6nscLvfFRpQgfWsythlcsVUC9kL0zq6j2Z5z9wwp1kd7wpsD/T9qNPVLCaQ==}
+ resolution: {integrity: sha512-YWielGi1XzG1UTvOaCFaNgEnuhZVMSHYkW/FQ7UX8O26PtlpdM84c0f7wLPlkvx2RfiQmnzd61d/MGxmpQeJPw==}
engines: {node: '>=18'}
@@ -9363,10 +9279,6 @@ packages:
resolution: {integrity: sha512-+Sl2UErvtsoajRDKCE5/dBz4DIvHXQQnAxtQTF04OJxY0+DyZXSo5P5Bb7XYWOh81syohlYL24hbDwxedPUJCA==}
- resolution: {integrity: sha512-mlVgR3PGuzlo0MmTdk4cXqXWlwQDLnONTAg6sm62XkMJEiRxN3GL3SffkYvqwonbkJBcrI7Uvv5Zh9yjvn2iUw==}
- engines: {node: '>=12.20'}
-
resolution: {integrity: sha512-ZBxxZ5sL2HghephhpGAQdoskxplTwr7ICaehZwLIlfL6acuVgZPm8yBNuRAFBGEqtD/hmUeq9eqLg2ys9Xr/yw==}
engines: {node: '>=8'}
@@ -9415,8 +9327,8 @@ packages:
resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==}
engines: {node: '>=6'}
- resolution: {integrity: sha512-ASV8yU4LLKBAjqIPMbrgtaKIvxQri/yh2OpI+S6hVa9JRkUI3Y3NPFbfngDtY7oFtSMD3w31Xns89mDa3Feo5A==}
+ resolution: {integrity: sha512-Z5FnLVVZSnX7WjBg0mhDtydeRZ1xMcATZThjySQUHqr+0ksP8kqaw23fNKkaaN/Z8gwLUs/W7xdl0I75eP2Xyw==}
engines: {node: '>= 14'}
@@ -9426,9 +9338,9 @@ packages:
resolution: {integrity: sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw==}
- resolution: {integrity: sha512-cbH9IAIJHNj9uXi196JVsRlt7cHKak6u/e6AkL/bkRelZ7rlL3X1YKxsZwa36xipOEKAsdtmaG6aAJoM1fx2zA==}
- engines: {node: '>=14.16'}
+ resolution: {integrity: sha512-ua1L4OgXSBdsu1FPb7F3tYH0F48a6kxvod4pLUlGY9COeJAJQNX/sNH2IiEmsxw7lqYiAwrdHMjz1FctOsyDQg==}
+ engines: {node: '>=18'}
resolution: {integrity: sha512-/hVW2fZvAdEas+wyKh0SnlZ2mx0NIa1+j11YaQkogEJkcMErbwchHCuo8z7lEtajZJQZ6rgZNVTWMVVd71Bjng==}
@@ -9802,6 +9714,11 @@ packages:
engines: {node: '>=14'}
hasBin: true
+ resolution: {integrity: sha512-e9MewbtFo+Fevyuxn/4rrcDAaq0IYxPGLvObpQjiZBMAzB9IGmzlnG9RZy3FFas+eBMu2vA0CszMeduow5dIuQ==}
+ engines: {node: '>=14'}
+ hasBin: true
+
resolution: {integrity: sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==}
engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0}
@@ -9852,10 +9769,6 @@ packages:
resolution: {integrity: sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==}
engines: {node: '>=0.4.0'}
- resolution: {integrity: sha512-hezvKvQQmsFkOdrZfYxUxkyxl8mgFQeT259Ajj9PXdbg9VzBCWrItOev72JyWxkCD5VSSqAeHmlN3tWx4DlmsA==}
- engines: {node: '>= 0.4'}
-
resolution: {integrity: sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==}
engines: {node: '>= 6'}
@@ -9883,8 +9796,8 @@ packages:
resolution: {integrity: sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==}
engines: {node: '>= 0.10'}
- resolution: {integrity: sha512-u0piLU+nCOHMgGjRbimiXmA9kM/L9EHh3zL81xCdp7m+Y2pHIsnmbdDoEDoAz5geaonNR6q6+yOPQs6n4T6sBQ==}
+ resolution: {integrity: sha512-TmatMXdr2KlRiA2CyDu8GqR8EjahTG3aY3nXjdzFyoZbmB8hrBsTyMezhULIXKnC0jpfjlmiZ3+EaCzoInSu/A==}
engines: {node: '>= 14'}
@@ -9938,10 +9851,6 @@ packages:
resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==}
- resolution: {integrity: sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==}
- engines: {node: '>=10'}
-
resolution: {integrity: sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==}
@@ -10171,9 +10080,9 @@ packages:
resolution: {integrity: sha512-qx+xQGZVsy55CH0a1hiVwHmqjLryfh7wQyF5HO07XJ9f7dQMY/gPQHhlyDkIzJKC+x2fUCpCcUODUUUFrm7SHA==}
hasBin: true
- resolution: {integrity: sha512-7t9a2WEwqQKCdteshZUrO/3RX60plS5CzYAFr5+4Zj8qvRx1pFOFVglJSz4BeFAEd2yejpPxfI60+qRUzLEDZw==}
- engines: {node: ^18.18.0 || ^20.8.0 || ^22.0.0}
+ resolution: {integrity: sha512-qQGgfMbUZ3/vpXUPmngsgjFObOLjlkwtiozHUYen9fo9AEGciXjG1ZpGr+FNmuBT8R7TOSY+x/s84wOCRKJjbA==}
+ engines: {node: ^18.18.0 || ^20.9.0 || ^22.0.0}
hasBin: true
@@ -10206,9 +10115,6 @@ packages:
resolution: {integrity: sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==}
- resolution: {integrity: sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==}
-
resolution: {integrity: sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==}
engines: {node: '>=8'}
@@ -10243,17 +10149,13 @@ packages:
resolution: {integrity: sha512-U7WjGVG9sH8tvjW5SmGbQuui75FiyjAX72HX15DwBBwF9dNiQZRQAg9nnPhYy+TUnE0+VcrttuvNI8oSxZcocA==}
hasBin: true
- resolution: {integrity: sha512-40yHxbNcl2+rzXvZuVkrYohathsSJlMTXKryG5y8uciHv1+xDLHQpgjG64JUO9nrEq2jGLH6IZ8BcZyw3wrweg==}
- engines: {node: '>=14.16'}
-
resolution: {integrity: sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==}
engines: {node: '>=8'}
- resolution: {integrity: sha512-I9fPXU9geO9bHOt9pHHOhOkYerIMsmVaWB0rA2AI9ERh/+x/i7MV5HKBNrg+ljO5eoPVgCcnFuRjJ9uH6I/3eg==}
- engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
+ resolution: {integrity: sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==}
+ engines: {node: '>=18'}
resolution: {integrity: sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==}
@@ -10345,10 +10247,6 @@ packages:
resolution: {integrity: sha512-5TF+l7p4+OsnP8BCCvSyZiSPc4x4//p5uPwK8TCnVPJYRmU2aYKMpOXvw8zM5a5JvuuCGN1jmsMwuU2W02ukfA==}
- resolution: {integrity: sha512-0Ju4+6A8iOnpL/Thra7dZsSlOHYAHIeMxfhWQRI1/VLcT3WDBZKKtQt/QkBOsiIN9ZpuvHE6cGZ0x4glCMmfiA==}
- engines: {node: '>=12'}
-
resolution: {integrity: sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==}
hasBin: true
@@ -10477,8 +10375,8 @@ packages:
resolution: {integrity: sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==}
engines: {node: '>= 6.0.0', npm: '>= 3.0.0'}
- resolution: {integrity: sha512-VNegTZKhuGq5vSD6XNKlbqWhyt/40CgoEw8XxD6dhnm8Jq9IEa3nIa4HwnM8XOqU0CdB0BwWVXusqiFXfHB3+A==}
+ resolution: {integrity: sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw==}
engines: {node: '>= 14'}
@@ -10587,10 +10485,6 @@ packages:
resolution: {integrity: sha512-UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ==}
engines: {node: '>=18'}
- resolution: {integrity: sha512-iCGQj+0l0HOdZ2AEeBADlsRC+vsnDsZsbdSiH1yNSjcfKM7fdpCMfqAL/dwF5BLiw/XhRft/Wax6zQbhq2BcjQ==}
- engines: {node: '>= 0.4'}
-
resolution: {integrity: sha512-H73RAHsVBapbim0tU2JwwOiXUj+fikfiaoYAKHF3VJfA0pe2BCzkhAHBlLG6REzE+2WNZcxOXjK7lkso+9euLA==}
@@ -10620,8 +10514,8 @@ packages:
resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==}
engines: {node: '>=12'}
- resolution: {integrity: sha512-SEIJCWiX7Kg4c129n48aDRwLbFb2LJmXXFrWBG4NGaRtMQ3myKPKbwrD1BKqQn74oCoNMBVrfDEr5M9YxCsrkw==}
+ resolution: {integrity: sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==}
engines: {node: '>=18'}
@@ -10690,6 +10584,9 @@ packages:
resolution: {integrity: sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==}
+ resolution: {integrity: sha512-H2N9c26eXjzL/S/K+i/RHHcFanE74dptvvjM8iwzwbVcWY/zjBbgRqF3K0DY4+OD+uTTASTBvDoxPDaPN02D7g==}
+
resolution: {integrity: sha512-wnD1HyVqpJUI2+eKZ+eo1UwghftP6yuFheBqqe+bWCotBjC2K1YnteJILRMs3SM4V/0dLEW1SC27MWP5y+mwmw==}
@@ -11057,10 +10954,6 @@ packages:
resolution: {integrity: sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==}
engines: {node: '>=8'}
- resolution: {integrity: sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA==}
- engines: {node: '>=10'}
-
resolution: {integrity: sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==}
engines: {node: '>=12.20'}
@@ -11089,9 +10982,6 @@ packages:
resolution: {integrity: sha512-/OxDN6OtAk5KBpGb28T+HZc2M+ADtvRxXrKKbUwtsLgdoxgX13hyy7ek6bFRl5+aBs2yZzB0c4CnQfAtVypW/g==}
engines: {node: '>= 0.4'}
- resolution: {integrity: sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==}
-
resolution: {integrity: sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==}
engines: {node: '>=14.17'}
@@ -11128,10 +11018,6 @@ packages:
resolution: {integrity: sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==}
engines: {node: '>=8'}
- resolution: {integrity: sha512-VGXBUVwxKMBUznyffQweQABPRRW1vHZAbadFZud4pLFAqRGvv/96vafgjWFqzourzr8YonlQiPgH0YCJfawoGQ==}
- engines: {node: '>=12'}
-
resolution: {integrity: sha512-2qCTHimwdxLfz+YzdGfkqNlH0tLi9xjTnHddPmJwtIG9MGsdbutfTc4P+haPD7l7Cjxf/WZj+we5qfVPvvxfYw==}
@@ -11180,8 +11066,8 @@ packages:
peerDependencies:
browserslist: '>= 4.21.0'
- resolution: {integrity: sha512-Hv25Bh+eAbOLlsjJreVPOs4vd51rrtCrmhyOJtbpAojro34jS4KQaEp4/EvlHJX7jSO42VvEFpkastVyXyIsdQ==}
+ resolution: {integrity: sha512-+dwUY4L35XFYEzE+OAL3sarJdUioVovq+8f7lcIJ7wnmnYQV5UD1Y/lcwaMSyaQ6Bj3JMj1XSTjZbNLHn/19yA==}
engines: {node: '>=18'}
@@ -11390,10 +11276,6 @@ packages:
resolution: {integrity: sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==}
- resolution: {integrity: sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==}
- engines: {node: '>= 8'}
-
resolution: {integrity: sha512-QW95TCTaHmsYfHDybGMwO5IJIM93I/6vTRk+daHTWFPhwh+C8Cg7j7XyKrwrj8Ib6vYXe0ocYNrmzY4xAAN6ug==}
engines: {node: '>= 14'}
@@ -11440,6 +11322,9 @@ packages:
resolution: {integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==}
+ resolution: {integrity: sha512-4rnvd3A1t16PWzrBUcSDZqcAmsUIy4minDXT/CZ8F2mVDgd65i4Aalimgz1aQkRGU0iH5eT5+6Rx2TK8o443Pg==}
+
resolution: {integrity: sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==}
@@ -11465,12 +11350,12 @@ packages:
engines: {node: '>=8'}
hasBin: true
- resolution: {integrity: sha512-o0cyEG0e8GPzT4iGHphIOh0cJOV8fivsXxddQasHPHfoZf1ZexrfeA21w2NaEN1RHE+fXlfISmOE8R9N3u3Qig==}
- engines: {node: '>=12'}
+ resolution: {integrity: sha512-c9bZp7b5YtRj2wOe6dlj32MK+Bx/M/d+9VB2SHM1OtsUHR0aV0tdP6DWh/iMt0kWi1t5g1Iudu6hQRNd1A4PVA==}
+ engines: {node: '>=18'}
- resolution: {integrity: sha512-a95hPUk+BNzSGLntNXYxsjz2Hooi5oL7xOfJR6CKwSsSALh7vUNuTlzsrZowtYy38JNduYFRVhFv19ocqNOZlg==}
+ resolution: {integrity: sha512-wldeCaczs8XXq7hj+5d/F38JE2r7EXgb6WQDM84RVwxy81T/sxB5e9+uZLK9Q9oNz1mlvjut+QtvgaOQFPVq/g==}
resolution: {integrity: sha512-NMD00arvqcq2nwqc5Q6KtrSRHK+fVD31erE5FEMahAw5PmVCgD7MUXodq3pdZSUkqA9Cda2iWx6s1XYwiJWRmw==}
@@ -11499,12 +11384,13 @@ packages:
resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==}
engines: {node: '>=12'}
+ resolution: {integrity: sha512-G8ura3S+3Z2G+mkgNRq8dqaFZAuxfsxpBB8OCTGRTCtp+l/v9nbFNmCUP1BZMts3G1142MsZfn6eeUKrr4PD1Q==}
+ engines: {node: '>=18'}
+
resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==}
- resolution: {integrity: sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==}
-
resolution: {integrity: sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==}
engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
@@ -12922,7 +12808,6 @@ snapshots:
'@babel/helper-validator-identifier': 7.25.9
js-tokens: 4.0.0
picocolors: 1.1.1
- optional: true
'@babel/[email protected]': {}
@@ -13858,8 +13743,6 @@ snapshots:
- '@types/node'
optional: true
- '@inquirer/[email protected]': {}
-
'@inquirer/[email protected]': {}
@@ -14221,10 +14104,6 @@ snapshots:
dependencies:
'@lezer/common': 1.2.3
- '@ljharb/[email protected]':
- dependencies:
- call-bind: 1.0.7
-
dependencies:
react: 18.2.0
@@ -16154,7 +16033,7 @@ snapshots:
dependencies:
react: 18.2.0
dependencies:
'@iarna/toml': 2.2.5
detect-indent: 7.0.1
@@ -16162,7 +16041,7 @@ snapshots:
ini: 4.1.2
js-yaml: 4.1.0
lodash-es: 4.17.21
- release-it: 17.3.0([email protected])
+ release-it: 17.11.0([email protected])
semver: 7.6.0
@@ -16459,8 +16338,6 @@ snapshots:
'@sinclair/[email protected]': {}
- '@sindresorhus/[email protected]': {}
-
'@sindresorhus/[email protected]': {}
'@sinonjs/[email protected]':
@@ -16821,10 +16698,6 @@ snapshots:
'@swc/counter': 0.1.3
tslib: 2.6.3
- '@szmarczak/[email protected]':
- dependencies:
- defer-to-connect: 2.0.1
-
dependencies:
zod: 3.23.8
@@ -17088,8 +16961,6 @@ snapshots:
dependencies:
'@types/unist': 3.0.2
- '@types/[email protected]': {}
-
'@types/[email protected]': {}
'@types/[email protected]': {}
@@ -17548,7 +17419,7 @@ snapshots:
'@ungap/[email protected]': {}
dependencies:
'@babel/core': 7.24.3
'@babel/eslint-parser': 7.24.1(@babel/[email protected])([email protected])
@@ -17569,11 +17440,11 @@ snapshots:
eslint-plugin-tsdoc: 0.2.17
eslint-plugin-unicorn: 51.0.1([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.15
eslint: 8.57.0
- prettier: 3.3.3
+ prettier: 3.4.2
typescript: 5.4.5
transitivePeerDependencies:
- eslint-import-resolver-node
@@ -17828,6 +17699,8 @@ snapshots:
transitivePeerDependencies:
- supports-color
+
dependencies:
humanize-ms: 1.2.1
@@ -18008,15 +17881,6 @@ snapshots:
es-abstract: 1.23.3
es-shim-unscopables: 1.0.2
- dependencies:
- call-bind: 1.0.7
- define-properties: 1.2.1
- es-abstract: 1.23.3
- es-array-method-boxes-properly: 1.0.0
- es-object-atoms: 1.0.0
- is-string: 1.0.7
-
dependencies:
call-bind: 1.0.7
@@ -18063,6 +17927,11 @@ snapshots:
+ dependencies:
+ stubborn-fs: 1.2.5
+ when-exit: 2.1.4
+
dependencies:
browserslist: 4.23.0
@@ -18197,16 +18066,16 @@ snapshots:
dependencies:
ansi-align: 3.0.1
- camelcase: 7.0.1
- chalk: 5.3.0
+ camelcase: 8.0.0
+ chalk: 5.4.1
cli-boxes: 3.0.0
- string-width: 5.1.2
- type-fest: 2.19.0
- widest-line: 4.0.1
- wrap-ansi: 8.1.0
+ string-width: 7.2.0
+ type-fest: 4.27.0
+ widest-line: 5.0.0
+ wrap-ansi: 9.0.0
dependencies:
@@ -18292,18 +18161,6 @@ snapshots:
-
- dependencies:
- '@types/http-cache-semantics': 4.0.4
- get-stream: 6.0.1
- http-cache-semantics: 4.1.1
- keyv: 4.5.4
- mimic-response: 4.0.0
- normalize-url: 8.0.1
- responselike: 3.0.0
-
dependencies:
es-define-property: 1.0.0
@@ -18320,7 +18177,7 @@ snapshots:
@@ -18354,6 +18211,8 @@ snapshots:
+
@@ -18435,6 +18294,8 @@ snapshots:
+
@@ -18455,9 +18316,9 @@ snapshots:
dependencies:
restore-cursor: 3.1.0
dependencies:
- restore-cursor: 4.0.0
+ restore-cursor: 5.1.0
@@ -18583,12 +18444,11 @@ snapshots:
ini: 1.3.8
proto-list: 1.2.4
dependencies:
- dot-prop: 6.0.1
+ atomically: 2.0.3
+ dot-prop: 9.0.0
graceful-fs: 4.2.11
- unique-string: 3.0.0
- write-file-atomic: 3.0.3
xdg-basedir: 5.1.0
@@ -18727,10 +18587,6 @@ snapshots:
- dependencies:
- type-fest: 1.4.0
-
@@ -18942,8 +18798,6 @@ snapshots:
-
@@ -19046,10 +18900,6 @@ snapshots:
dependencies:
character-entities: 2.0.2
- dependencies:
- mimic-response: 3.1.0
-
optionalDependencies:
babel-plugin-macros: 3.1.0
@@ -19073,8 +18923,6 @@ snapshots:
dependencies:
clone: 1.0.4
-
dependencies:
es-define-property: 1.0.0
@@ -19200,9 +19048,9 @@ snapshots:
domelementtype: 2.3.0
domhandler: 5.0.3
dependencies:
- is-obj: 2.0.0
+ type-fest: 4.27.0
dependencies:
@@ -19211,6 +19059,13 @@ snapshots:
dotenv-expand: 10.0.0
minimist: 1.2.8
+ dependencies:
+ cross-spawn: 7.0.6
+ dotenv: 16.4.5
+ dotenv-expand: 10.0.0
+ minimist: 1.2.8
+
@@ -19324,26 +19179,12 @@ snapshots:
unbox-primitive: 1.0.2
which-typed-array: 1.1.15
-
dependencies:
get-intrinsic: 1.2.4
- dependencies:
- call-bind: 1.0.7
- get-intrinsic: 1.2.4
- has-symbols: 1.0.3
- is-arguments: 1.1.1
- is-map: 2.0.3
- is-set: 2.0.3
- is-string: 1.0.7
- isarray: 2.0.5
- stop-iteration-iterator: 1.0.0
-
dependencies:
call-bind: 1.0.7
@@ -19873,7 +19714,7 @@ snapshots:
signal-exit: 3.0.7
strip-final-newline: 2.0.0
dependencies:
cross-spawn: 7.0.6
get-stream: 8.0.1
@@ -20005,11 +19846,6 @@ snapshots:
- dependencies:
- node-domexception: 1.0.0
- web-streams-polyfill: 3.3.3
-
@@ -20080,8 +19916,6 @@ snapshots:
-
dependencies:
asynckit: 0.4.0
@@ -20095,10 +19929,6 @@ snapshots:
node-domexception: 1.0.0
web-streams-polyfill: 4.0.0-beta.3
- dependencies:
- fetch-blob: 3.2.0
-
@@ -20291,6 +20121,10 @@ snapshots:
minipass: 4.2.8
path-scurry: 1.11.1
+ dependencies:
+ ini: 4.1.1
+
dependencies:
ini: 2.0.0
@@ -20319,15 +20153,15 @@ snapshots:
dependencies:
dir-glob: 3.0.1
fast-glob: 3.3.2
- ignore: 5.3.1
+ ignore: 5.3.2
merge2: 1.4.1
slash: 4.0.0
dependencies:
'@sindresorhus/merge-streams': 2.3.0
fast-glob: 3.3.2
- ignore: 5.3.1
+ ignore: 5.3.2
path-type: 5.0.0
slash: 5.1.0
unicorn-magic: 0.1.0
@@ -20355,34 +20189,6 @@ snapshots:
dependencies:
get-intrinsic: 1.2.4
- dependencies:
- '@sindresorhus/is': 5.6.0
- '@szmarczak/http-timer': 5.0.1
- cacheable-lookup: 7.0.0
- cacheable-request: 10.2.14
- decompress-response: 6.0.0
- form-data-encoder: 2.1.4
- get-stream: 6.0.1
- http2-wrapper: 2.2.1
- lowercase-keys: 3.0.0
- p-cancelable: 3.0.0
- responselike: 3.0.0
-
- dependencies:
- '@sindresorhus/is': 5.6.0
- '@szmarczak/http-timer': 5.0.1
- cacheable-lookup: 7.0.0
- cacheable-request: 10.2.14
- decompress-response: 6.0.0
- form-data-encoder: 2.1.4
- get-stream: 6.0.1
- http2-wrapper: 2.2.1
- lowercase-keys: 3.0.0
- p-cancelable: 3.0.0
- responselike: 3.0.0
-
@@ -20507,8 +20313,6 @@ snapshots:
domutils: 3.1.0
entities: 4.5.0
-
dependencies:
depd: 2.0.0
@@ -20527,7 +20331,7 @@ snapshots:
dependencies:
- agent-base: 7.1.1
+ agent-base: 7.1.3
debug: 4.3.7([email protected])
transitivePeerDependencies:
- supports-color
@@ -20539,11 +20343,6 @@ snapshots:
transitivePeerDependencies:
- supports-color
- dependencies:
- quick-lru: 5.1.1
- resolve-alpn: 1.2.1
-
dependencies:
agent-base: 6.0.2
@@ -20553,7 +20352,7 @@ snapshots:
dependencies:
- agent-base: 7.1.1
+ agent-base: 7.1.3
debug: 4.3.7([email protected])
transitivePeerDependencies:
- supports-color
@@ -20565,6 +20364,13 @@ snapshots:
transitivePeerDependencies:
- supports-color
+ dependencies:
+ agent-base: 7.1.3
+ debug: 4.3.7([email protected])
+ transitivePeerDependencies:
+ - supports-color
+
@@ -20573,7 +20379,7 @@ snapshots:
dependencies:
ms: 2.1.3
@@ -20616,8 +20422,6 @@ snapshots:
cjs-module-lexer: 1.4.1
module-details-from-path: 1.0.3
-
dependencies:
pkg-dir: 4.2.0
@@ -20638,20 +20442,18 @@ snapshots:
+
dependencies:
- '@inquirer/figures': 1.0.3
- '@ljharb/through': 2.3.13
+ '@inquirer/figures': 1.0.8
ansi-escapes: 4.3.2
- chalk: 5.3.0
- cli-cursor: 3.1.0
cli-width: 4.1.0
external-editor: 3.1.0
- lodash: 4.17.21
mute-stream: 1.0.0
ora: 5.4.1
run-async: 3.0.0
@@ -20659,6 +20461,7 @@ snapshots:
string-width: 4.2.3
strip-ansi: 6.0.1
wrap-ansi: 6.2.0
+ yoctocolors-cjs: 2.1.2
@@ -20713,11 +20516,6 @@ snapshots:
is-alphabetical: 2.0.1
is-decimal: 2.0.1
- dependencies:
- call-bind: 1.0.7
- has-tostringtag: 1.0.2
-
dependencies:
call-bind: 1.0.7
@@ -20750,10 +20548,6 @@ snapshots:
- dependencies:
- ci-info: 3.9.0
-
dependencies:
hasown: 2.0.2
@@ -20796,16 +20590,16 @@ snapshots:
dependencies:
is-docker: 3.0.0
dependencies:
- global-dirs: 3.0.1
- is-path-inside: 3.0.3
+ global-directory: 4.0.1
+ is-path-inside: 4.0.0
@@ -20825,12 +20619,12 @@ snapshots:
-
+
@@ -20874,8 +20668,6 @@ snapshots:
dependencies:
which-typed-array: 1.1.15
-
@@ -20911,7 +20703,7 @@ snapshots:
dependencies:
lodash.capitalize: 4.2.1
lodash.escaperegexp: 4.1.2
@@ -20962,13 +20754,6 @@ snapshots:
html-escaper: 2.0.2
istanbul-lib-report: 3.0.1
-
- dependencies:
- es-get-iterator: 1.1.3
- iterate-iterator: 1.0.2
-
dependencies:
define-properties: 1.2.1
@@ -21480,7 +21265,7 @@ snapshots:
dependencies:
'@types/diff-match-patch': 1.0.36
- chalk: 5.3.0
+ chalk: 5.4.1
diff-match-patch: 1.0.5
@@ -21535,6 +21320,8 @@ snapshots:
+
dependencies:
chalk: 4.1.2
@@ -21639,9 +21426,9 @@ snapshots:
dependencies:
language-subtag-registry: 0.3.22
dependencies:
- package-json: 8.1.1
+ package-json: 10.0.1
@@ -21722,7 +21509,7 @@ snapshots:
dependencies:
- chalk: 5.3.0
+ chalk: 5.4.1
is-unicode-supported: 1.3.0
@@ -21748,8 +21535,6 @@ snapshots:
dependencies:
get-func-name: 2.0.2
-
dependencies:
fault: 1.0.4
@@ -22239,9 +22024,7 @@ snapshots:
-
@@ -22502,12 +22285,6 @@ snapshots:
dependencies:
whatwg-url: 5.0.0
- dependencies:
- data-uri-to-buffer: 4.0.1
- fetch-blob: 3.2.0
- formdata-polyfill: 4.0.10
-
@@ -22574,8 +22351,6 @@ snapshots:
-
dependencies:
npm-normalize-package-bin: 2.0.0
@@ -22674,6 +22449,10 @@ snapshots:
dependencies:
mimic-fn: 4.0.0
+ dependencies:
+ mimic-function: 5.0.1
+
dependencies:
default-browser: 5.2.1
@@ -22732,16 +22511,16 @@ snapshots:
strip-ansi: 6.0.1
wcwidth: 1.0.1
dependencies:
- chalk: 5.3.0
- cli-cursor: 4.0.0
+ chalk: 5.4.1
+ cli-cursor: 5.0.0
cli-spinners: 2.9.2
is-interactive: 2.0.0
is-unicode-supported: 2.0.0
log-symbols: 6.0.0
stdin-discarder: 0.2.2
- string-width: 7.1.0
+ string-width: 7.2.0
strip-ansi: 7.1.0
@@ -22753,8 +22532,6 @@ snapshots:
-
dependencies:
p-map: 2.1.0
@@ -22799,16 +22576,16 @@ snapshots:
dependencies:
'@tootallnate/quickjs-emscripten': 0.23.0
- agent-base: 7.1.1
+ agent-base: 7.1.3
debug: 4.3.7([email protected])
get-uri: 6.0.3
http-proxy-agent: 7.0.2
- https-proxy-agent: 7.0.4
+ https-proxy-agent: 7.0.6
pac-resolver: 7.0.1
- socks-proxy-agent: 8.0.3
+ socks-proxy-agent: 8.0.5
transitivePeerDependencies:
- supports-color
@@ -22819,9 +22596,9 @@ snapshots:
dependencies:
- got: 12.6.1
+ ky: 1.7.4
registry-auth-token: 5.0.2
registry-url: 6.0.1
semver: 7.6.3
@@ -22854,7 +22631,7 @@ snapshots:
dependencies:
- '@babel/code-frame': 7.24.2
+ '@babel/code-frame': 7.26.2
error-ex: 1.3.2
json-parse-even-better-errors: 2.3.1
lines-and-columns: 1.2.4
@@ -23113,12 +22890,12 @@ snapshots:
dependencies:
fast-diff: 1.3.0
dependencies:
sort-package-json: 2.8.0
synckit: 0.9.0
optionalDependencies:
- prettier: 3.3.3
+ prettier: 3.4.2
dependencies:
@@ -23126,6 +22903,8 @@ snapshots:
+
dependencies:
ansi-regex: 5.0.1
@@ -23184,15 +22963,6 @@ snapshots:
- dependencies:
- array.prototype.map: 1.0.7
- call-bind: 1.0.7
- define-properties: 1.2.1
- es-abstract: 1.23.3
- get-intrinsic: 1.2.4
- iterate-value: 1.0.2
-
dependencies:
kleur: 3.0.3
@@ -23234,16 +23004,16 @@ snapshots:
forwarded: 0.2.0
ipaddr.js: 1.9.1
dependencies:
- agent-base: 7.1.1
+ agent-base: 7.1.3
debug: 4.3.7([email protected])
http-proxy-agent: 7.0.2
- https-proxy-agent: 7.0.4
+ https-proxy-agent: 7.0.6
lru-cache: 7.18.3
- pac-proxy-agent: 7.0.1
+ pac-proxy-agent: 7.1.0
proxy-from-env: 1.1.0
- socks-proxy-agent: 8.0.3
+ socks-proxy-agent: 8.0.5
transitivePeerDependencies:
- supports-color
@@ -23314,8 +23084,6 @@ snapshots:
-
dependencies:
safe-buffer: 5.2.1
@@ -23596,34 +23364,31 @@ snapshots:
dependencies:
jsesc: 0.5.0
dependencies:
'@iarna/toml': 2.2.5
'@octokit/rest': 20.1.1
async-retry: 1.3.3
- chalk: 5.3.0
+ chalk: 5.4.1
+ ci-info: 4.1.0
cosmiconfig: 9.0.0([email protected])
- execa: 8.0.1
+ execa: 8.0.0
git-url-parse: 14.0.0
- globby: 14.0.1
- got: 13.0.0
- inquirer: 9.2.22
- is-ci: 3.0.1
- issue-parser: 7.0.0
+ globby: 14.0.2
+ inquirer: 9.3.2
+ issue-parser: 7.0.1
lodash: 4.17.21
mime-types: 2.1.35
new-github-release-url: 2.0.0
- node-fetch: 3.3.2
open: 10.1.0
- ora: 8.0.1
+ ora: 8.1.1
os-name: 5.1.0
- promise.allsettled: 1.0.7
- proxy-agent: 6.4.0
- semver: 7.6.2
+ proxy-agent: 6.5.0
+ semver: 7.6.3
shelljs: 0.8.5
- update-notifier: 7.0.0
+ update-notifier: 7.3.1
url-join: 5.0.0
- wildcard-match: 5.1.3
+ wildcard-match: 5.1.4
yargs-parser: 21.1.1
transitivePeerDependencies:
- supports-color
@@ -23686,8 +23451,6 @@ snapshots:
-
dependencies:
resolve-from: 5.0.0
@@ -23723,19 +23486,15 @@ snapshots:
path-parse: 1.0.7
supports-preserve-symlinks-flag: 1.0.0
- dependencies:
- lowercase-keys: 3.0.0
-
dependencies:
onetime: 5.1.2
signal-exit: 3.0.7
dependencies:
- onetime: 5.1.2
- signal-exit: 3.0.7
+ onetime: 7.0.0
+ signal-exit: 4.1.0
@@ -23836,10 +23595,6 @@ snapshots:
dependencies:
parseley: 0.12.1
- dependencies:
- semver: 7.6.3
-
@@ -23968,9 +23723,9 @@ snapshots:
dependencies:
- agent-base: 7.1.1
+ agent-base: 7.1.3
debug: 4.3.7([email protected])
socks: 2.8.3
transitivePeerDependencies:
@@ -24077,10 +23832,6 @@ snapshots:
- dependencies:
- internal-slot: 1.0.7
-
dependencies:
inherits: 2.0.4
@@ -24113,7 +23864,7 @@ snapshots:
emoji-regex: 9.2.2
strip-ansi: 7.1.0
dependencies:
emoji-regex: 10.3.0
get-east-asian-width: 1.2.0
@@ -24194,6 +23945,8 @@ snapshots:
+
@@ -24576,8 +24329,6 @@ snapshots:
-
@@ -24619,10 +24370,6 @@ snapshots:
is-typed-array: 1.1.13
possible-typed-array-names: 1.0.0
- dependencies:
- is-typedarray: 1.0.0
-
@@ -24662,10 +24409,6 @@ snapshots:
dependencies:
crypto-random-string: 2.0.0
- dependencies:
- crypto-random-string: 4.0.0
-
dependencies:
'@types/unist': 3.0.2
@@ -24727,19 +24470,17 @@ snapshots:
escalade: 3.2.0
picocolors: 1.1.1
dependencies:
- boxen: 7.1.1
- chalk: 5.3.0
- configstore: 6.0.0
- import-lazy: 4.0.0
- is-in-ci: 0.1.0
- is-installed-globally: 0.4.0
+ boxen: 8.0.1
+ chalk: 5.4.1
+ configstore: 7.0.0
+ is-in-ci: 1.0.0
+ is-installed-globally: 1.0.0
is-npm: 6.0.0
- latest-version: 7.0.0
+ latest-version: 9.0.0
pupa: 3.1.0
semver: 7.6.3
- semver-diff: 4.0.0
xdg-basedir: 5.1.0
@@ -25076,8 +24817,6 @@ snapshots:
dependencies:
defaults: 1.0.4
-
@@ -25136,6 +24875,8 @@ snapshots:
tr46: 0.0.3
webidl-conversions: 3.0.1
+
dependencies:
is-bigint: 1.0.4
@@ -25183,11 +24924,11 @@ snapshots:
siginfo: 2.0.0
stackback: 0.0.2
dependencies:
- string-width: 5.1.2
+ string-width: 7.2.0
dependencies:
@@ -25233,14 +24974,13 @@ snapshots:
string-width: 5.1.2
strip-ansi: 7.1.0
-
dependencies:
- imurmurhash: 0.1.4
- is-typedarray: 1.0.0
- signal-exit: 3.0.7
- typedarray-to-buffer: 3.1.5
+ ansi-styles: 6.2.1
+ string-width: 7.2.0
+ strip-ansi: 7.1.0
+
dependencies:
diff --git a/turbo.json b/turbo.json
index 9b56f681bb..c53d638015 100644
--- a/turbo.json
+++ b/turbo.json
@@ -16,9 +16,6 @@
"db:reset": {},
"db:push": {},
"db:seed": {},
- "models:migrate": {
- "dependsOn": ["db:generate", "@langfuse/shared#build"]
- },
"db:seed:examples": {},
"dev": {
"cache": false,
diff --git a/web/package.json b/web/package.json
index 7fb43fe414..7e38327bb5 100644
--- a/web/package.json
+++ b/web/package.json
@@ -19,8 +19,7 @@
"test-client": "dotenv -e ../.env -- jest --silent false --verbose false --runInBand --detectOpenHandles --selectProjects client",
"test:watch": "dotenv -e ../.env -- jest --watch --runInBand",
"test:e2e": "dotenv -e ../.env -- playwright test",
- "test:e2e:server": "dotenv -e ../.env -- jest --runInBand --detectOpenHandles --verbose --selectProjects e2e-server",
- "models:migrate": "dotenv -e ../.env -- tsx scripts/model-match.ts"
+ "test:e2e:server": "dotenv -e ../.env -- jest --runInBand --detectOpenHandles --verbose --selectProjects e2e-server"
},
"dependencies": {
"@anthropic-ai/tokenizer": "^0.0.4",
@@ -115,7 +114,6 @@
"graphql": "^16.9.0",
"ioredis": "^5.4.1",
"ip-address": "^9.0.5",
- "js-tiktoken": "^1.0.15",
"kysely": "^0.27.4",
"langchain": "^0.3.6",
"lodash": "^4.17.21",
diff --git a/web/scripts/model-match.ts b/web/scripts/model-match.ts
deleted file mode 100644
index 1a11987dcb..0000000000
--- a/web/scripts/model-match.ts
+++ /dev/null
@@ -1,260 +0,0 @@
-// Description: New model definitions in Langfuse are automatically applied to new observations.
-// You can optionally run this script to apply new model definitions to existing observations.
-// See docs: https://langfuse.com/docs/deployment/self-host#migrate-models
-// Execute: `npm run models:migrate`
-
-import "dotenv/config";
-
-import { findModel } from "@langfuse/shared/src/server";
-import { prisma } from "@langfuse/shared/src/db";
-import lodash from "lodash";
-import { type Prisma } from "@langfuse/shared/src/db";
-import { tokenCount } from "@/src/features/ingest/usage";
-
-async function main() {
- return await modelMatch();
-}
-
-// Call the function
-main().catch((err) => {
- console.error("An error occurred:", err);
-});
-
-export async function modelMatch() {
- console.log("Starting model match");
- const start = Date.now();
-
- const BATCH_SIZE = 10_000;
- let continueLoop = true;
- let index = 0;
- let totalObservations = 0;
-
- while (continueLoop) {
- type ObservationSelect = {
- model: string | null;
- id: string;
- projectId: string;
- startTime: Date;
- unit: string | null;
- promptTokens: number;
- completionTokens: number;
- totalTokens: number;
- input: Prisma.JsonValue;
- output: Prisma.JsonValue;
- };
-
- const observations = await prisma.observation.findMany({
- select: {
- id: true,
- startTime: true,
- model: true,
- unit: true,
- projectId: true,
- promptTokens: true,
- completionTokens: true,
- totalTokens: true,
- input: true,
- output: true,
- },
- orderBy: {
- startTime: "desc",
- },
- where: {
- internalModel: null,
- type: "GENERATION",
- model: { not: null },
- },
- take: BATCH_SIZE,
- skip: index * BATCH_SIZE,
- });
-
- console.log(`Found ${observations.length} observations to migrate`);
-
- type Config = {
- startTime: Date;
- model: string;
- unit: string;
- projectId: string | null;
- };
-
- interface GroupedObservations {
- [key: string]: ObservationSelect[];
- }
-
- const groupedObservations = observations.reduce<GroupedObservations>(
- (acc, observation) => {
- const config = {
- startTime: observation.startTime.toISOString().slice(0, 10),
- model: observation.model,
- unit: observation.unit,
- projectId: observation.projectId,
- };
-
- const key = JSON.stringify(config);
-
- // Ensure the array is initialized before using it
- acc[key] = acc[key] ?? [];
- acc[key]?.push(observation);
-
- return acc;
- },
- {},
- );
-
- let updatedObservations = 0;
- const dbPromises = [];
-
- for (const [key, observationsGroup] of Object.entries(
- groupedObservations,
- )) {
- const { startTime, model, unit, projectId } = JSON.parse(key) as Config;
-
- console.log("Execute key: ", startTime, model, unit, projectId);
-
- if (!projectId) {
- throw new Error("No project id");
- }
-
- const foundModel = await findModel({
- event: { projectId, model, unit, startTime: startTime },
- });
-
- console.log(
- "Found model: ",
- foundModel?.id,
- " for key: ",
- key,
- " with observations: ",
- observationsGroup.length,
- );
-
- if (foundModel) {
- // find all the observations with all tokens 0 and tokenize them individually
- const observationsWithAllTokensZero = observationsGroup.filter(
- (observation) =>
- observation.promptTokens === 0 &&
- observation.completionTokens === 0 &&
- observation.totalTokens === 0,
- );
-
- for (const observation of observationsWithAllTokensZero) {
- console.log("Tokenizing observation: ", observation.id);
- const newInputCount = tokenCount({
- model: foundModel,
- text: observation.input,
- });
- const newOutputCount = tokenCount({
- model: foundModel,
- text: observation.output,
- });
-
- dbPromises.push(
- prisma.observation.update({
- where: {
- id: observation.id,
- },
- data: {
- promptTokens: newInputCount,
- completionTokens: newOutputCount,
- totalTokens: (newInputCount ?? 0) + (newOutputCount ?? 0),
- internalModel: foundModel.modelName,
- },
- }),
- );
- }
-
- // for all remaining observations, batch update them with the model id
- const observationsWithTokens = observationsGroup.filter(
- (observation) =>
- observation.promptTokens !== 0 ||
- observation.completionTokens !== 0 ||
- observation.totalTokens !== 0,
- );
-
- // Push the promise for updating observations into the array
- lodash.chunk(observationsWithTokens, 32000).map((chunk) => {
- dbPromises.push(
- prisma.observation.updateMany({
- where: {
- id: {
- in: chunk.map((observation) => observation.id),
- },
- },
- data: {
- internalModel: foundModel.modelName,
- },
- }),
- );
- });
-
- updatedObservations += observationsGroup.length;
- } else {
- lodash.chunk(observationsGroup, 32000).map((chunk) => {
- dbPromises.push(
- prisma.observation.updateMany({
- where: {
- id: {
- in: chunk.map((observation) => observation.id),
- },
- },
- data: {
- internalModel: "LANGFUSETMPNOMODEL",
- },
- }),
- );
- });
-
- updatedObservations += observationsGroup.length;
- }
- }
-
- totalObservations += updatedObservations;
- // Wait for all update operations to complete
- const promiseChunk = lodash.chunk(dbPromises, 10);
-
- for (const promises of promiseChunk) {
- console.log("Waiting for promises to complete", promises.length);
- await Promise.all(promises);
- }
-
- console.log(
- "Updated observations count: ",
- updatedObservations,
- " in total: ",
- totalObservations,
- );
-
- console.log(updatedObservations, observations.length);
-
- if (updatedObservations === 0) {
- index++;
- }
-
- if (observations.length === 0) {
- console.log("No more observations to migrate");
- continueLoop = false;
- }
- }
-
- let updatedCount;
- do {
- console.log(`Updating LANGFUSETMPNOMODEL ${updatedCount}`);
- const result = await prisma.$queryRaw<[{ id: string }]>`
- WITH to_update AS (
- SELECT id
- FROM observations
- WHERE internal_model = 'LANGFUSETMPNOMODEL'
- AND "type" = 'GENERATION'
- LIMIT 50000
- )
- UPDATE observations
- set internal_model = NULL
- WHERE id IN (SELECT id FROM to_update)
- RETURNING id;`;
- updatedCount = result.length;
- } while (updatedCount > 0);
-
- const end = Date.now();
-
- console.log(`Model match took ${end - start} ms`);
-}
diff --git a/web/src/__tests__/model-match.servertest.ts b/web/src/__tests__/model-match.servertest.ts
deleted file mode 100644
index f017828ee2..0000000000
--- a/web/src/__tests__/model-match.servertest.ts
+++ /dev/null
@@ -1,109 +0,0 @@
-/** @jest-environment node */
-
-import { modelMatch } from "@/scripts/model-match";
-import { pruneDatabase } from "@/src/__tests__/test-utils";
-import { prisma } from "@langfuse/shared/src/db";
-import { ModelUsageUnit } from "@langfuse/shared";
-
-describe("model match", () => {
- beforeEach(async () => await pruneDatabase());
-
- it("should match historic observations to models", async () => {
- await prisma.model.create({
- data: {
- id: "model-1",
- modelName: "gpt-3.5-turbo",
- inputPrice: "0.0000010",
- outputPrice: "0.0000020",
- totalPrice: "0.1",
- matchPattern: "(.*)(gpt-3.5-turbo)?(.*)",
- projectId: null,
- unit: ModelUsageUnit.Tokens,
- tokenizerConfig: {
- tokensPerMessage: 3,
- tokensPerName: 1,
- tokenizerModel: "gpt-3.5-turbo",
- },
- tokenizerId: "openai",
- },
- });
- await prisma.model.create({
- data: {
- id: "model-2",
- modelName: "claude-1.3",
- inputPrice: "0.0000010",
- outputPrice: "0.0000020",
- totalPrice: "0.1",
- matchPattern: "(.*)(claude-1.3)?(.*)",
- projectId: null,
- unit: ModelUsageUnit.Tokens,
- tokenizerId: "claude",
- },
- });
-
- await prisma.observation.createMany({
- data: [
- {
- id: "observation-1",
- type: "GENERATION",
- projectId: "7a88fb47-b4e2-43b8-a06c-a5ce950dc53a",
- model: "gpt-3.5-turbo",
- startTime: new Date("2024-01-01T00:00:00.000Z"),
- unit: ModelUsageUnit.Tokens,
- promptTokens: 200,
- completionTokens: 3000,
- input: "I am a prompt",
- output: "I am a completion",
- },
- {
- type: "GENERATION",
- projectId: "7a88fb47-b4e2-43b8-a06c-a5ce950dc53a",
- model: "claude-1.3",
- startTime: new Date("2024-01-01T00:00:00.000Z"),
- unit: ModelUsageUnit.Tokens,
- input: "I am a prompt",
- output: "I am a completion",
- },
- {
- type: "GENERATION",
- projectId: "7a88fb47-b4e2-43b8-a06c-a5ce950dc53a",
- model: "claude-1.3",
- startTime: new Date("2024-01-01T00:00:00.000Z"),
- unit: ModelUsageUnit.Tokens,
- input: "I am a prompt",
- output: "I am a completion",
- },
- {
- type: "GENERATION",
- projectId: "7a88fb47-b4e2-43b8-a06c-a5ce950dc53a",
- model: "gpt-4o",
- startTime: new Date("2024-01-01T00:00:00.000Z"),
- unit: ModelUsageUnit.Tokens,
- input: "I am a prompt",
- output: "I am a completion",
- },
- ],
- });
-
- await modelMatch();
-
- const observations = await prisma.observation.findMany();
-
- // check that tokens from observation-1 are not changed
- const observation1 = observations.find((o) => o.id === "observation-1");
- expect(observation1?.promptTokens).toEqual(200);
- expect(observation1?.completionTokens).toEqual(3000);
- expect(observation1?.totalTokens).toEqual(0);
-
- expect(observations.length).toEqual(4);
- observations.forEach((observation) => {
- expect(observation.internalModel).toBeDefined();
- expect(observation.promptTokens).toBeGreaterThan(0);
- expect(observation.completionTokens).toBeGreaterThan(0);
- });
-
- // temporary fix: wait for 5 additional seconds to ensure that the model match is complete
- // had issue with the test failing because the model match was not complete and logged to console
- await new Promise((resolve) => setTimeout(resolve, 5000));
- }, 10000);
-});
diff --git a/web/src/__tests__/usage.servertest.ts b/web/src/__tests__/usage.servertest.ts
deleted file mode 100644
index 1030f964b3..0000000000
--- a/web/src/__tests__/usage.servertest.ts
+++ /dev/null
@@ -1,200 +0,0 @@
-import { tokenCount } from "@/src/features/ingest/usage";
-import { ModelUsageUnit } from "@langfuse/shared";
-
-describe("Token Count Functions", () => {
- const generateModel = (model: string, tokenizer: string) => {
- return {
- id: "1",
- modelName: model,
- tokenizerId: tokenizer,
- tokenizerConfig: {
- tokensPerMessage: 3,
- tokensPerName: 1,
- tokenizerModel: model,
- },
- createdAt: new Date(),
- updatedAt: new Date(),
- matchPattern: "",
- projectId: null,
- startDate: null,
- inputPrice: null,
- outputPrice: null,
- totalPrice: null,
- unit: ModelUsageUnit.Tokens,
- };
- };
-
- describe("token count for strings", () => {
- [
- { model: "gpt-3.5-turbo", tokenizer: "openai", tokens: 114 },
- { model: "text-embedding-ada-002", tokenizer: "openai", tokens: 114 },
- { model: "gpt-4-1106-preview", tokenizer: "openai", tokens: 114 },
- { model: "gpt-4-vision-preview", tokenizer: "openai", tokens: 114 },
- { model: "claude", tokenizer: "claude", tokens: 118 },
- { model: "claude-instant-1.2", tokenizer: "claude", tokens: 118 },
- { model: "gpt-3.5-turbo-1106", tokenizer: "openai", tokens: 114 },
- { model: "gpt-4o-2024-05-13", tokenizer: "openai", tokens: 112 },
- ].forEach(({ model, tokens, tokenizer }) => {
- it(`should return token count ${tokens} for ${model}`, () => {
- const result = tokenCount({
- model: generateModel(model, tokenizer),
- text: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.",
- });
- expect(result).toBeDefined();
- expect(result).toBe(tokens);
- });
- });
-
- it("should return undefined for unknown model", () => {
- const result = tokenCount({
- model: generateModel("unknown-model", "unknown-tokenizer"),
- text: "Hello, World!",
- });
- expect(result).toBeUndefined();
- });
-
- it("should return token count for strings with special characters", () => {
- const result = tokenCount({
- model: generateModel("gpt-4-1106-preview", "openai"),
- text: "Hello <|endoftext|> World!",
- });
- expect(result).toBeDefined();
- expect(result).toBeGreaterThan(0);
- });
-
- it("check extensive openai chat message", () => {
- const result = tokenCount({
- model: generateModel("gpt-3.5-turbo", "openai"),
- text: [
- {
- role: "system",
- content: "some test",
- id: "some-id",
- isPersisted: true,
- },
- {
- id: "some-id",
- content: "some test",
- role: "user",
- timestamp: "2024-01-00:00:00.488Z",
- isPersisted: true,
- },
- {
- id: "some id",
- content:
- "Hey Simon! 😊 How's your day going? Have you been up to anything interesting lately?",
- role: "user",
- timestamp: "2024-01-24T10:00:00.929Z",
- isPersisted: true,
- },
- {
- content: true,
- role: "user",
- id: "some id",
- },
- {
- role: "system",
- content: "This is some content",
- },
- {
- id: "another id",
- role: "assistant",
- content: "This is some content",
- },
- ],
- });
- expect(result).toBe(155);
- });
-
- it("should return for invalid text type", () => {
- const result = tokenCount({
- model: generateModel("gpt-4", "openai"),
- text: 1234,
- });
- expect(result).toBe(2);
- });
-
- it("should return correct token count for empty string", () => {
- const result = tokenCount({
- model: generateModel("gpt-4", "openai"),
- text: "",
- });
- expect(result).toBe(0);
- });
-
- it("should return correct token count for very long string", () => {
- const longString = "A".repeat(10000);
- const result = tokenCount({
- model: generateModel("gpt-4", "openai"),
- text: longString,
- });
- expect(result).toBeDefined();
- expect(result).toBe(1250);
- });
-
- it("should return undefined for null text input", () => {
- const result = tokenCount({
- model: generateModel("gpt-4", "openai"),
- text: null,
- });
- expect(result).toBeUndefined();
- });
-
- it("should return undefined for undefined text input", () => {
- const result = tokenCount({
- model: generateModel("gpt-4", "openai"),
- text: undefined,
- });
- expect(result).toBeUndefined();
- });
- });
-
- describe("token count for chat messages", () => {
- [
- { model: "gpt-4", tokenizer: "openai", tokens: 44 },
- { model: "gpt-3.5-turbo-16k-0613", tokenizer: "openai", tokens: 44 },
- { model: "gpt-3.5-turbo-16k-0613", tokenizer: "openai", tokens: 44 },
- { model: "claude-instant-1.2", tokenizer: "claude", tokens: 48 },
- ].forEach(({ model, tokens, tokenizer }) => {
- it(`should return token count ${tokens} for ${model}`, () => {
- const result = tokenCount({
- model: generateModel(model, tokenizer),
- text: [
- { role: "system", content: "You are a helpful assistant." },
- { role: "user", content: "Who won the world series in 2020?" },
- {
- role: "assistant",
- content: "The Los Angeles Dodgers won the World Series in 2020.",
- },
- ],
- });
- expect(result).toBeDefined();
- expect(result).toBe(tokens);
- });
- });
-
- it("should return for non array", () => {
- const result = tokenCount({
- model: generateModel("gpt-4", "openai"),
- text: { role: "Helo world" },
- });
- expect(result).toBe(7);
- });
-
- it("should return for empty array", () => {
- const result = tokenCount({
- model: generateModel("gpt-4", "openai"),
- text: [],
- });
- expect(result).toBeUndefined();
- });
-
- it("should return for array of invalid object", () => {
- const result = tokenCount({
- model: generateModel("gpt-4", "openai"),
- text: [{ role: "Helo world" }],
- });
- expect(result).toBe(9);
- });
- });
-});
diff --git a/web/src/features/ingest/usage.ts b/web/src/features/ingest/usage.ts
deleted file mode 100644
index 8755b0bd73..0000000000
--- a/web/src/features/ingest/usage.ts
+++ /dev/null
@@ -1,285 +0,0 @@
-import { countTokens } from "@anthropic-ai/tokenizer";
-import { type Model } from "@langfuse/shared";
-import {
- type TiktokenModel,
- type Tiktoken,
- getEncoding,
- encodingForModel,
-} from "js-tiktoken";
-import { z } from "zod";
-import { logger } from "@langfuse/shared/src/server";
-
-const chatModels = [
- "gpt-4",
- "gpt-4-0314",
- "gpt-4-0613",
- "gpt-4-32k",
- "gpt-4-32k-0314",
- "gpt-4-32k-0613",
- "gpt-3.5-turbo",
- "gpt-35-turbo",
- "gpt-3.5-turbo-0301",
- "gpt-3.5-turbo-0613",
- "gpt-3.5-turbo-1106",
- "gpt-3.5-turbo-16k",
- "gpt-3.5-turbo-16k-0613",
- "gpt-4-1106-preview",
- "gpt-4-vision-preview",
- "gpt-4o-2024-05-13",
- "gpt-4o",
-];
-
-export type ChatModel = (typeof chatModels)[number];
-
-export const isChatModel = (model: string): model is ChatModel => {
- return chatModels.includes(model);
-};
-
-export const isTiktokenModel = (model: string): model is TiktokenModel => {
- return [
- "davinci-002",
- "babbage-002",
- "text-davinci-003",
- "text-davinci-002",
- "text-davinci-001",
- "text-curie-001",
- "text-babbage-001",
- "text-ada-001",
- "davinci",
- "curie",
- "babbage",
- "ada",
- "code-davinci-002",
- "code-davinci-001",
- "code-cushman-002",
- "code-cushman-001",
- "davinci-codex",
- "cushman-codex",
- "text-davinci-edit-001",
- "code-davinci-edit-001",
- "text-embedding-ada-002",
- "text-similarity-davinci-001",
- "text-similarity-curie-001",
- "text-similarity-babbage-001",
- "text-similarity-ada-001",
- "text-search-davinci-doc-001",
- "text-search-curie-doc-001",
- "text-search-babbage-doc-001",
- "text-search-ada-doc-001",
- "code-search-babbage-code-001",
- "code-search-ada-code-001",
- "gpt2",
- "gpt-4",
- "gpt-4-0314",
- "gpt-4-0613",
- "gpt-4-32k",
- "gpt-4-32k-0314",
- "gpt-4-32k-0613",
- "gpt-3.5-turbo",
- "gpt-35-turbo",
- "gpt-3.5-turbo-0301",
- "gpt-3.5-turbo-0613",
- "gpt-3.5-turbo-1106",
- "gpt-3.5-turbo-16k",
- "gpt-3.5-turbo-16k-0613",
- "gpt-4-1106-preview",
- "gpt-4-vision-preview",
- "gpt-4-turbo-2024-04-09",
- "gpt-4o-2024-05-13",
- "gpt-4o",
- ].includes(model);
-};
-
-const OpenAiTokenConfig = z.object({
- tokenizerModel: z.string().refine(isTiktokenModel, {
- message: "Unknown tiktoken model",
- }),
-});
-
-const OpenAiChatTokenConfig = z.object({
- tokenizerModel: z
- .string()
- .refine((m) => isTiktokenModel(m) && isChatModel(m), {
- message: "Chat model expected",
- }),
- tokensPerMessage: z.number(),
- tokensPerName: z.number(),
-});
-
-export function tokenCount(p: {
- model: Model;
- text: unknown;
-}): number | undefined {
- if (
- p.text === null ||
- p.text === undefined ||
- (Array.isArray(p.text) && p.text.length === 0)
- ) {
- return undefined;
- }
-
- if (p.model.tokenizerId === "openai") {
- return openAiTokenCount({
- model: p.model,
- text: p.text,
- });
- } else if (p.model.tokenizerId === "claude") {
- return claudeTokenCount(p.text);
- } else {
- logger.error(`Unknown tokenizer ${p.model.tokenizerId}`);
- return undefined;
- }
-}
-
-type ChatMessage = {
- role: string;
- name?: string;
- content: string;
-};
-
-function openAiTokenCount(p: { model: Model; text: unknown }) {
- const config = OpenAiTokenConfig.safeParse(p.model.tokenizerConfig);
- if (!config.success) {
- logger.warn(
- `Invalid tokenizer config for model ${p.model.id}: ${JSON.stringify(
- p.model.tokenizerConfig,
- )}, ${JSON.stringify(config.error)}`,
- );
- return undefined;
- }
-
- let result = undefined;
-
- if (isChatMessageArray(p.text) && isChatModel(config.data.tokenizerModel)) {
- // check if the tokenizerConfig is a valid chat config
- const parsedConfig = OpenAiChatTokenConfig.safeParse(
- p.model.tokenizerConfig,
- );
- if (!parsedConfig.success) {
- logger.error(
- `Invalid tokenizer config for chat model ${
- p.model.id
- }: ${JSON.stringify(p.model.tokenizerConfig)}`,
- );
- return undefined;
- }
- result = openAiChatTokenCount({
- messages: p.text,
- config: parsedConfig.data,
- });
- } else {
- result = isString(p.text)
- ? getTokensByModel(config.data.tokenizerModel, p.text)
- : getTokensByModel(config.data.tokenizerModel, JSON.stringify(p.text));
- }
- return result;
-}
-
-function claudeTokenCount(text: unknown) {
- return isString(text) ? countTokens(text) : countTokens(JSON.stringify(text));
-}
-
-function openAiChatTokenCount(params: {
- messages: ChatMessage[];
- config: z.infer<typeof OpenAiChatTokenConfig>;
-}) {
- const model = params.config.tokenizerModel;
- if (!isTiktokenModel(model)) return undefined;
-
- let numTokens = 0;
- params.messages.forEach((message) => {
- numTokens += params.config.tokensPerMessage;
-
- Object.keys(message).forEach((key) => {
- const value = message[key as keyof typeof message];
- if (
- // check API docs for available keys: https://platform.openai.com/docs/api-reference/chat/create?lang=node.js
- // memory access out of bounds error in tiktoken if unexpected key and value of type boolean
- // expected keys with booleans work
- value &&
- [
- "content",
- "role",
- "name",
- "tool_calls",
- "function_call",
- "toolCalls",
- "functionCall",
- ].some((k) => k === key)
- ) {
- const tokens = getTokensByModel(model, value);
- if (tokens) numTokens += tokens;
- }
- if (key === "name") {
- numTokens += params.config.tokensPerName;
- }
- });
- });
- numTokens += 3; // every reply is primed with <| start |> assistant <| message |>
-
- return numTokens;
-}
-
-const getTokensByModel = (model: TiktokenModel, text: string) => {
- // encoiding should be kept in memory to avoid re-creating it
- let encoding: Tiktoken | undefined;
- try {
- cachedTokenizerByModel[model] =
- cachedTokenizerByModel[model] || encodingForModel(model);
-
- encoding = cachedTokenizerByModel[model];
- } catch (KeyError) {
- logger.warn("Model not found. Using cl100k_base encoding.");
-
- encoding = getEncoding("cl100k_base");
- }
- const cleandedText = unicodeToBytesInString(text);
- return encoding?.encode(cleandedText, "all").length;
-};
-
-interface Tokenizer {
- [model: string]: Tiktoken;
-}
-const cachedTokenizerByModel: Tokenizer = {};
-
-function isString(value: unknown): value is string {
- return typeof value === "string";
-}
-
-function isChatMessageArray(value: unknown): value is ChatMessage[] {
- if (!Array.isArray(value)) {
- return false;
- }
-
- return value.every(
- (item: unknown) =>
- typeof item === "object" &&
- item !== null &&
- "role" in item &&
- typeof item.role === "string" &&
- "content" in item &&
- typeof item.content === "string" &&
- (!("name" in item) || typeof item.name === "string"),
- );
-}
-
-function unicodeToBytesInString(input: string): string {
- let result = "";
- for (let i = 0; i < input.length; i++) {
- const char = input[i];
- if (char && /[\u{10000}-\u{10FFFF}]/u.test(char)) {
- const bytes = unicodeToBytes(char);
- result += Array.from(bytes)
- .map((b) => b.toString(16))
- .join("");
- } else {
- result += char;
- }
- }
- return result;
-}
-
-function unicodeToBytes(input: string): Uint8Array {
- const encoder = new TextEncoder();
- return encoder.encode(input);
-}
diff --git a/web/src/pages/api/public/events.ts b/web/src/pages/api/public/events.ts
index 5c22a5747d..2faf4e0700 100644
--- a/web/src/pages/api/public/events.ts
+++ b/web/src/pages/api/public/events.ts
@@ -9,7 +9,6 @@ import {
logger,
processEventBatch,
} from "@langfuse/shared/src/server";
-import { tokenCount } from "@/src/features/ingest/usage";
import { v4 } from "uuid";
export default withMiddlewares({
@@ -30,7 +29,7 @@ export default withMiddlewares({
if (!event.body.id) {
event.body.id = v4();
}
- const result = await processEventBatch([event], auth, tokenCount);
+ const result = await processEventBatch([event], auth);
if (result.errors.length > 0) {
const error = result.errors[0];
res
diff --git a/web/src/pages/api/public/generations.ts b/web/src/pages/api/public/generations.ts
index 6c2be8016d..0f4f5afbfd 100644
--- a/web/src/pages/api/public/generations.ts
+++ b/web/src/pages/api/public/generations.ts
@@ -6,7 +6,6 @@ import {
} from "@/src/features/public-api/types/generations";
import { withMiddlewares } from "@/src/features/public-api/server/withMiddlewares";
import { createAuthedAPIRoute } from "@/src/features/public-api/server/createAuthedAPIRoute";
-import { tokenCount } from "@/src/features/ingest/usage";
import {
eventTypes,
logger,
@@ -36,7 +35,7 @@ export default withMiddlewares({
if (!event.body.id) {
event.body.id = v4();
}
- const result = await processEventBatch([event], auth, tokenCount);
+ const result = await processEventBatch([event], auth);
if (result.errors.length > 0) {
const error = result.errors[0];
res
@@ -70,7 +69,7 @@ export default withMiddlewares({
output: completion,
},
};
- const result = await processEventBatch([event], auth, tokenCount);
+ const result = await processEventBatch([event], auth);
if (result.errors.length > 0) {
const error = result.errors[0];
res
diff --git a/web/src/pages/api/public/ingestion.ts b/web/src/pages/api/public/ingestion.ts
index 3a5ca29ebc..1e5150f6c6 100644
--- a/web/src/pages/api/public/ingestion.ts
+++ b/web/src/pages/api/public/ingestion.ts
@@ -17,7 +17,6 @@ import {
} from "@langfuse/shared";
import { instrumentSync, processEventBatch } from "@langfuse/shared/src/server";
import { prisma } from "@langfuse/shared/src/db";
-import { tokenCount } from "@/src/features/ingest/usage";
import { ApiAuthService } from "@/src/features/public-api/server/apiAuth";
import { RateLimitService } from "@/src/features/public-api/server/RateLimitService";
@@ -115,11 +114,7 @@ export default async function handler(
await telemetry();
- const result = await processEventBatch(
- parsedSchema.data.batch,
- authCheck,
- tokenCount,
- );
+ const result = await processEventBatch(parsedSchema.data.batch, authCheck);
return res.status(207).json(result);
} catch (error: unknown) {
if (!(error instanceof UnauthorizedError)) {
diff --git a/web/src/pages/api/public/scores/index.ts b/web/src/pages/api/public/scores/index.ts
index 1a43a45e26..8d46421cd9 100644
--- a/web/src/pages/api/public/scores/index.ts
+++ b/web/src/pages/api/public/scores/index.ts
@@ -14,7 +14,6 @@ import {
logger,
processEventBatch,
} from "@langfuse/shared/src/server";
-import { tokenCount } from "@/src/features/ingest/usage";
import {
generateScoresForPublicApi,
getScoresCountForPublicApi,
@@ -35,7 +34,7 @@ export default withMiddlewares({
if (!event.body.id) {
event.body.id = v4();
}
- const result = await processEventBatch([event], auth, tokenCount);
+ const result = await processEventBatch([event], auth);
if (result.errors.length > 0) {
const error = result.errors[0];
res
diff --git a/web/src/pages/api/public/spans.ts b/web/src/pages/api/public/spans.ts
index 18583bf9a4..5b179adcd2 100644
--- a/web/src/pages/api/public/spans.ts
+++ b/web/src/pages/api/public/spans.ts
@@ -6,7 +6,6 @@ import {
} from "@/src/features/public-api/types/spans";
import { withMiddlewares } from "@/src/features/public-api/server/withMiddlewares";
import { createAuthedAPIRoute } from "@/src/features/public-api/server/createAuthedAPIRoute";
-import { tokenCount } from "@/src/features/ingest/usage";
import {
eventTypes,
logger,
@@ -32,7 +31,7 @@ export default withMiddlewares({
if (!event.body.id) {
event.body.id = v4();
}
- const result = await processEventBatch([event], auth, tokenCount);
+ const result = await processEventBatch([event], auth);
if (result.errors.length > 0) {
const error = result.errors[0];
res
@@ -62,7 +61,7 @@ export default withMiddlewares({
type: "SPAN",
},
};
- const result = await processEventBatch([event], auth, tokenCount);
+ const result = await processEventBatch([event], auth);
if (result.errors.length > 0) {
const error = result.errors[0];
res
diff --git a/web/src/pages/api/public/traces/index.ts b/web/src/pages/api/public/traces/index.ts
index 948dec3a9d..bba7c5ef61 100644
--- a/web/src/pages/api/public/traces/index.ts
+++ b/web/src/pages/api/public/traces/index.ts
@@ -7,7 +7,6 @@ import {
import { withMiddlewares } from "@/src/features/public-api/server/withMiddlewares";
import { createAuthedAPIRoute } from "@/src/features/public-api/server/createAuthedAPIRoute";
import { processEventBatch } from "@langfuse/shared/src/server";
-import { tokenCount } from "@/src/features/ingest/usage";
import { eventTypes, logger } from "@langfuse/shared/src/server";
@@ -35,7 +34,7 @@ export default withMiddlewares({
if (!event.body.id) {
event.body.id = v4();
}
- const result = await processEventBatch([event], auth, tokenCount);
+ const result = await processEventBatch([event], auth);
if (result.errors.length > 0) {
const error = result.errors[0];
res
diff --git a/web/src/utils/types.ts b/web/src/utils/types.ts
index d791138497..3f19421c3c 100644
--- a/web/src/utils/types.ts
+++ b/web/src/utils/types.ts
@@ -2,7 +2,6 @@ import { type Observation } from "@langfuse/shared/src/db";
import { type inferRouterInputs, type inferRouterOutputs } from "@trpc/server";
import { type AppRouter } from "@/src/server/api/root";
import { type ObservationReturnType } from "@/src/server/api/routers/traces";
-import { type TiktokenModel } from "js-tiktoken";
// primitive type checks
@@ -16,8 +15,6 @@ export type NestedObservation = ObservationReturnType & {
children: NestedObservation[];
};
-export type TypedObservation = Event | Span | Generation;
-
export type Event = Observation & {
type: "EVENT";
};
@@ -27,8 +24,6 @@ export type Span = Observation & {
endTime: Date; // not null
};
-export type LLMChatMessages = { role: string; content: string };
-
export type Generation = Observation & {
type: "GENERATION";
promptTokens: number;
@@ -48,85 +43,3 @@ export const isUndefinedOrNull = <T>(val?: T | null): val is undefined | null =>
export const isNotNullOrUndefined = <T>(
val?: T | null,
): val is Exclude<T, null | undefined> => !isUndefinedOrNull(val);
-
-const chatModels = [
- "gpt-4",
- "gpt-4-0314",
- "gpt-4-0613",
- "gpt-4-32k",
- "gpt-4-32k-0314",
- "gpt-4-32k-0613",
- "gpt-3.5-turbo",
- "gpt-35-turbo",
- "gpt-3.5-turbo-0301",
- "gpt-3.5-turbo-0613",
- "gpt-3.5-turbo-1106",
- "gpt-3.5-turbo-16k",
- "gpt-3.5-turbo-16k-0613",
- "gpt-4-1106-preview",
- "gpt-4-vision-preview",
- "gpt-4o-2024-05-13",
- "gpt-4o-2024-08-06",
- "gpt-4o",
-];
-
-export type ChatModel = (typeof chatModels)[number];
-
-export const isChatModel = (model: string): model is ChatModel => {
- return chatModels.includes(model);
-};
-
-export const isTiktokenModel = (model: string): model is TiktokenModel => {
- return [
- "davinci-002",
- "babbage-002",
- "text-davinci-003",
- "text-davinci-002",
- "text-davinci-001",
- "text-curie-001",
- "text-babbage-001",
- "text-ada-001",
- "davinci",
- "curie",
- "babbage",
- "ada",
- "code-davinci-002",
- "code-davinci-001",
- "code-cushman-002",
- "code-cushman-001",
- "davinci-codex",
- "cushman-codex",
- "text-davinci-edit-001",
- "code-davinci-edit-001",
- "text-embedding-ada-002",
- "text-similarity-davinci-001",
- "text-similarity-curie-001",
- "text-similarity-babbage-001",
- "text-similarity-ada-001",
- "text-search-davinci-doc-001",
- "text-search-curie-doc-001",
- "text-search-babbage-doc-001",
- "text-search-ada-doc-001",
- "code-search-babbage-code-001",
- "code-search-ada-code-001",
- "gpt2",
- "gpt-4",
- "gpt-4-0314",
- "gpt-4-0613",
- "gpt-4-32k",
- "gpt-4-32k-0314",
- "gpt-4-32k-0613",
- "gpt-3.5-turbo",
- "gpt-35-turbo",
- "gpt-3.5-turbo-0301",
- "gpt-3.5-turbo-0613",
- "gpt-3.5-turbo-1106",
- "gpt-3.5-turbo-16k",
- "gpt-3.5-turbo-16k-0613",
- "gpt-4-1106-preview",
- "gpt-4-vision-preview",
- "gpt-4-turbo-2024-04-09",
- "gpt-4o-2024-05-13",
- "gpt-4o",
- ].includes(model);
-};
diff --git a/worker/package.json b/worker/package.json
index c610845e0c..c92e9c5675 100644
--- a/worker/package.json
+++ b/worker/package.json
@@ -49,7 +49,6 @@
"handlebars": "^4.7.8",
"helmet": "^7.1.0",
"ioredis": "^5.4.1",
- "js-tiktoken": "^1.0.15",
"kysely": "^0.27.4",
"lodash": "^4.17.21",
"pg": "^8.13.0",
diff --git a/worker/src/app.ts b/worker/src/app.ts
index ada392af79..f802026f96 100644
--- a/worker/src/app.ts
+++ b/worker/src/app.ts
@@ -17,7 +17,6 @@ import { batchExportQueueProcessor } from "./queues/batchExportQueue";
import { onShutdown } from "./utils/shutdown";
import helmet from "helmet";
-import { legacyIngestionQueueProcessor } from "./queues/legacyIngestionQueue";
import { cloudUsageMeteringQueueProcessor } from "./queues/cloudUsageMeteringQueue";
import { WorkerManager } from "./queues/workerManager";
import {
@@ -190,14 +189,6 @@ if (
);
}
-if (env.QUEUE_CONSUMER_LEGACY_INGESTION_QUEUE_IS_ENABLED === "true") {
- WorkerManager.register(
- QueueName.LegacyIngestionQueue,
- legacyIngestionQueueProcessor,
- { concurrency: env.LANGFUSE_LEGACY_INGESTION_WORKER_CONCURRENCY }, // n ingestion batches at a time
- );
-}
-
if (env.QUEUE_CONSUMER_EXPERIMENT_CREATE_QUEUE_IS_ENABLED === "true") {
WorkerManager.register(
QueueName.ExperimentCreate,
diff --git a/worker/src/env.ts b/worker/src/env.ts
index 7c9a434b66..9fa948ef67 100644
--- a/worker/src/env.ts
+++ b/worker/src/env.ts
@@ -87,10 +87,6 @@ const EnvSchema = z.object({
CLICKHOUSE_DB: z.string().default("default"),
CLICKHOUSE_PASSWORD: z.string(),
- LANGFUSE_LEGACY_INGESTION_WORKER_CONCURRENCY: z.coerce
- .number()
- .positive()
- .default(15),
LANGFUSE_EVAL_CREATOR_WORKER_CONCURRENCY: z.coerce
.number()
.positive()
@@ -121,9 +117,6 @@ const EnvSchema = z.object({
.default("true"),
// Flags to toggle queue consumers on or off.
- QUEUE_CONSUMER_LEGACY_INGESTION_QUEUE_IS_ENABLED: z
- .enum(["true", "false"])
- .default("true"),
QUEUE_CONSUMER_CLOUD_USAGE_METERING_QUEUE_IS_ENABLED: z
.enum(["true", "false"])
.default("true"),
diff --git a/worker/src/features/tokenisation/types.ts b/worker/src/features/tokenisation/types.ts
index 6bdfdd2c5e..9425e4f9f5 100644
--- a/worker/src/features/tokenisation/types.ts
+++ b/worker/src/features/tokenisation/types.ts
@@ -58,7 +58,7 @@ export const isTiktokenModel = (model: string): model is TiktokenModel => {
"gpt-4-vision-preview",
"gpt-4o",
"gpt-4o-2024-05-13",
- // "gpt-4o-2024-08-06", not supported by js-tiktoken yet, configured to use gpt-4o tokenizer
+ // "gpt-4o-2024-08-06", not supported by tiktoken yet, configured to use gpt-4o tokenizer
].includes(model);
};
const chatModels = [
diff --git a/worker/src/queues/legacyIngestionQueue.ts b/worker/src/queues/legacyIngestionQueue.ts
deleted file mode 100644
index cce2f17872..0000000000
--- a/worker/src/queues/legacyIngestionQueue.ts
+++ /dev/null
@@ -1,108 +0,0 @@
-import { Job, Processor } from "bullmq";
-import {
- traceException,
- QueueName,
- TQueueJobTypes,
- logger,
- IngestionEventType,
- StorageServiceFactory,
- StorageService,
- getClickhouseEntityType,
-} from "@langfuse/shared/src/server";
-
-import { handleBatch } from "@langfuse/shared/src/server";
-import { tokenCount } from "../features/tokenisation/usage";
-import { env } from "../env";
-import { ForbiddenError, UnauthorizedError } from "@langfuse/shared";
-
-let s3StorageServiceClient: StorageService;
-
-const getS3StorageServiceClient = (bucketName: string): StorageService => {
- if (!s3StorageServiceClient) {
- s3StorageServiceClient = StorageServiceFactory.getInstance({
- bucketName,
- accessKeyId: env.LANGFUSE_S3_EVENT_UPLOAD_ACCESS_KEY_ID,
- secretAccessKey: env.LANGFUSE_S3_EVENT_UPLOAD_SECRET_ACCESS_KEY,
- endpoint: env.LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT,
- region: env.LANGFUSE_S3_EVENT_UPLOAD_REGION,
- forcePathStyle: env.LANGFUSE_S3_EVENT_UPLOAD_FORCE_PATH_STYLE === "true",
- });
- }
- return s3StorageServiceClient;
-};
-
-export const legacyIngestionQueueProcessor: Processor = async (
- job: Job<TQueueJobTypes[QueueName.LegacyIngestionQueue]>,
-) => {
- try {
- let ingestionEvents: IngestionEventType[] = [];
- if (job.data.payload.useS3EventStore) {
- // If we used the S3 store we need to fetch the ingestionEvents from S3
- const s3Client = getS3StorageServiceClient(
- env.LANGFUSE_S3_EVENT_UPLOAD_BUCKET,
- );
- ingestionEvents = (
- await Promise.all(
- job.data.payload.data.map(async (record) => {
- const file = await s3Client.download(
- `${env.LANGFUSE_S3_EVENT_UPLOAD_PREFIX}${job.data.payload.authCheck.scope.projectId}/${getClickhouseEntityType(record.type)}/${record.eventBodyId}/${record.eventId}.json`,
- );
- const parsedFile = JSON.parse(file);
- return Array.isArray(parsedFile) ? parsedFile : [parsedFile];
- }),
- )
- ).flat();
- } else {
- // If we didn't use the S3 store we can consume the ingestionEvents directly from Redis
- ingestionEvents = job.data.payload.data;
- }
-
- logger.info("Processing legacy ingestion", {
- projectId: job.data.payload.authCheck.scope.projectId,
- payload: ingestionEvents.map(({ body, ...rest }) => {
- let modifiedBody = body;
- if (body && "input" in modifiedBody) {
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
- const { input, ...restPayload } = modifiedBody || {};
- modifiedBody = restPayload;
- }
- if (body && "output" in modifiedBody) {
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
- const { output, ...restPayload } = modifiedBody || {};
- modifiedBody = restPayload;
- }
- return {
- ...rest,
- body: modifiedBody,
- };
- }),
- });
-
- const result = await handleBatch(
- ingestionEvents,
- job.data.payload.authCheck,
- tokenCount,
- );
-
- // Do not retry events via bullmq for auth errors
- const processingErrors = result.errors.filter(
- (e) =>
- !(e.error instanceof UnauthorizedError) &&
- !(e.error instanceof ForbiddenError),
- );
- if (processingErrors.length > 0) {
- // Raise errors if any are returned to retry the batch via bullmq
- logger.error(`Failed to process ${processingErrors.length} events`, {
- errors: processingErrors,
- });
- throw new Error(`Failed to process ${processingErrors.length} events`);
- }
- } catch (e) {
- logger.error(
- `Failed job legacy ingestion processing for ${job.data.payload.authCheck.scope.projectId}`,
- e,
- );
- traceException(e);
- throw e;
- }
-};