diff --git a/document/content/docs/upgrading/4-14/4148.mdx b/document/content/docs/upgrading/4-14/4148.mdx index e00f1bb010..96a031c3ea 100644 --- a/document/content/docs/upgrading/4-14/4148.mdx +++ b/document/content/docs/upgrading/4-14/4148.mdx @@ -6,7 +6,7 @@ description: 'FastGPT V4.14.8 更新说明' ## 🚀 新增内容 - +1. Next.js 版本升级到 15。 ## ⚙️ 优化 diff --git a/document/data/doc-last-modified.json b/document/data/doc-last-modified.json index 00b7bd0b67..daaed430f1 100644 --- a/document/data/doc-last-modified.json +++ b/document/data/doc-last-modified.json @@ -20,7 +20,7 @@ "document/content/docs/introduction/development/custom-models/xinference.mdx": "2025-08-05T23:20:39+08:00", "document/content/docs/introduction/development/design/dataset.mdx": "2025-07-23T21:35:03+08:00", "document/content/docs/introduction/development/design/design_plugin.mdx": "2025-11-06T14:47:55+08:00", - "document/content/docs/introduction/development/docker.mdx": "2026-02-12T20:12:18+08:00", + "document/content/docs/introduction/development/docker.mdx": "2026-02-13T11:35:13+08:00", "document/content/docs/introduction/development/faq.mdx": "2025-08-12T22:22:18+08:00", "document/content/docs/introduction/development/intro.mdx": "2026-02-12T18:02:02+08:00", "document/content/docs/introduction/development/migration/docker_db.mdx": "2025-07-23T21:35:03+08:00", @@ -102,7 +102,7 @@ "document/content/docs/protocol/terms.en.mdx": "2025-12-15T23:36:54+08:00", "document/content/docs/protocol/terms.mdx": "2025-12-15T23:36:54+08:00", "document/content/docs/toc.en.mdx": "2026-02-12T18:02:02+08:00", - "document/content/docs/toc.mdx": "2026-02-12T18:45:30+08:00", + "document/content/docs/toc.mdx": "2026-02-24T13:48:31+08:00", "document/content/docs/upgrading/4-10/4100.mdx": "2025-08-02T19:38:37+08:00", "document/content/docs/upgrading/4-10/4101.mdx": "2025-09-08T20:07:20+08:00", "document/content/docs/upgrading/4-11/4110.mdx": "2025-08-05T23:20:39+08:00", @@ -124,6 +124,7 @@ "document/content/docs/upgrading/4-14/41451.mdx": "2026-01-20T11:53:27+08:00", "document/content/docs/upgrading/4-14/4146.mdx": "2026-02-12T16:37:50+08:00", "document/content/docs/upgrading/4-14/4147.mdx": "2026-02-13T11:23:02+08:00", + "document/content/docs/upgrading/4-14/4148.mdx": "2026-02-24T13:48:31+08:00", "document/content/docs/upgrading/4-8/40.mdx": "2025-08-02T19:38:37+08:00", "document/content/docs/upgrading/4-8/41.mdx": "2025-08-02T19:38:37+08:00", "document/content/docs/upgrading/4-8/42.mdx": "2025-08-02T19:38:37+08:00", @@ -205,4 +206,4 @@ "document/content/docs/use-cases/external-integration/openapi.mdx": "2026-02-12T18:45:30+08:00", "document/content/docs/use-cases/external-integration/wecom.mdx": "2025-12-10T20:07:05+08:00", "document/content/docs/use-cases/index.mdx": "2025-07-24T14:23:04+08:00" -} +} \ No newline at end of file diff --git a/env.d.ts b/env.d.ts deleted file mode 100644 index 11c4c6a1f8..0000000000 --- a/env.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -declare global { - namespace NodeJS { - interface ProcessEnv { - DEFAULT_ROOT_PSW: string; - PRO_URL: string; - } - } -} - -export {}; diff --git a/package.json b/package.json index a68109bb61..0bd7ede22b 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "@typescript-eslint/parser": "^6.21.0", "@vitest/coverage-v8": "^3.0.9", "eslint": "^8.57.0", - "eslint-config-next": "^14.1.0", + "eslint-config-next": "^15.5.12", "husky": "^8.0.3", "i18next": "23.16.8", "js-yaml": "^4.1.1", @@ -51,6 +51,13 @@ "git add ." ] }, + "pnpm": { + "overrides": { + "react": "18.3.1", + "react-dom": "18.3.1", + "@types/react": "18.3.1" + } + }, "resolutions": { "mdast-util-gfm-autolink-literal": "2.0.0" }, diff --git a/packages/global/common/file/api.d.ts b/packages/global/common/file/api.ts similarity index 100% rename from packages/global/common/file/api.d.ts rename to packages/global/common/file/api.ts diff --git a/packages/global/common/file/image/type.d.ts b/packages/global/common/file/image/type.ts similarity index 100% rename from packages/global/common/file/image/type.d.ts rename to packages/global/common/file/image/type.ts diff --git a/packages/global/common/file/s3TTL/type.d.ts b/packages/global/common/file/s3TTL/type.ts similarity index 100% rename from packages/global/common/file/s3TTL/type.d.ts rename to packages/global/common/file/s3TTL/type.ts diff --git a/packages/global/common/file/type.d.ts b/packages/global/common/file/type.ts similarity index 100% rename from packages/global/common/file/type.d.ts rename to packages/global/common/file/type.ts diff --git a/packages/global/common/frequenctLimit/type.d.ts b/packages/global/common/frequenctLimit/type.ts similarity index 100% rename from packages/global/common/frequenctLimit/type.d.ts rename to packages/global/common/frequenctLimit/type.ts diff --git a/packages/global/common/middle/tracks/type.d.ts b/packages/global/common/middle/tracks/type.ts similarity index 100% rename from packages/global/common/middle/tracks/type.d.ts rename to packages/global/common/middle/tracks/type.ts diff --git a/packages/global/common/system/api.d.ts b/packages/global/common/system/api.ts similarity index 100% rename from packages/global/common/system/api.d.ts rename to packages/global/common/system/api.ts diff --git a/packages/global/common/system/config/type.d.ts b/packages/global/common/system/config/type.ts similarity index 100% rename from packages/global/common/system/config/type.d.ts rename to packages/global/common/system/config/type.ts diff --git a/packages/global/common/system/types/index.d.ts b/packages/global/common/system/types/index.ts similarity index 96% rename from packages/global/common/system/types/index.d.ts rename to packages/global/common/system/types/index.ts index 5751aa6dd5..f88761fcd9 100644 --- a/packages/global/common/system/types/index.d.ts +++ b/packages/global/common/system/types/index.ts @@ -1,11 +1,9 @@ import type { SubPlanType } from '../../../support/wallet/sub/type'; import { StandSubPlanLevelMapType } from '../../../support/wallet/sub/type'; import type { - ChatModelItemType, - FunctionModelItemType, LLMModelItemType, EmbeddingModelItemType, - AudioSpeechModels, + TTSModelType, STTModelType, RerankModelItemType } from '../../../core/ai/model.schema'; @@ -34,7 +32,7 @@ export type FastGPTConfigFileType = { subPlans?: SubPlanType; // Abandon - llmModels?: ChatModelItemType[]; + llmModels?: LLMModelItemType[]; vectorModels?: EmbeddingModelItemType[]; reRankModels?: RerankModelItemType[]; audioSpeechModels?: TTSModelType[]; @@ -55,7 +53,6 @@ export type FastGPTFeConfigsType = { chineseRedirectUrl?: string; botIframeUrl?: string; - show_emptyChat?: boolean; show_appStore?: boolean; show_git?: boolean; show_pay?: boolean; @@ -67,7 +64,6 @@ export type FastGPTFeConfigsType = { show_coupon?: boolean; show_discount_coupon?: boolean; showWecomConfig?: boolean; - concatMd?: string; show_dataset_feishu?: boolean; show_dataset_yuque?: boolean; diff --git a/packages/global/core/app/collaborator.d.ts b/packages/global/core/app/collaborator.ts similarity index 61% rename from packages/global/core/app/collaborator.d.ts rename to packages/global/core/app/collaborator.ts index 66a456379d..95811efc56 100644 --- a/packages/global/core/app/collaborator.d.ts +++ b/packages/global/core/app/collaborator.ts @@ -1,9 +1,5 @@ import type { RequireOnlyOne } from '../../common/type/utils'; -import { - type UpdateClbPermissionProps, - UpdatePermissionBody -} from '../../support/permission/collaborator'; -import { PermissionValueType } from '../../support/permission/type'; +import { type UpdateClbPermissionProps } from '../../support/permission/collaborator'; export type UpdateAppCollaboratorBody = UpdateClbPermissionProps & { appId: string; diff --git a/packages/global/core/app/controller.d.ts b/packages/global/core/app/controller.d.ts deleted file mode 100644 index 0bcd169fb3..0000000000 --- a/packages/global/core/app/controller.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import type { ParentIdType } from 'common/parentFolder/type'; -import type { AppSchemaType } from './type'; -import type { AppTypeEnum } from './constants'; - -export type CreateAppProps = { - parentId?: ParentIdType; - name?: string; - avatar?: string; - intro?: string; - type?: AppTypeEnum; - modules: AppSchemaType['modules']; - edges?: AppSchemaType['edges']; -}; -export type CreateHttpPluginChildrenPros = Omit & { - parentId: ParentIdType; - name: string; - intro: string; - avatar: string; - modules: AppSchemaType['modules']; - edges: AppSchemaType['edges']; - pluginData: { - pluginUniId: string; - }; -}; diff --git a/packages/global/core/app/evaluation/api.d.ts b/packages/global/core/app/evaluation/api.ts similarity index 83% rename from packages/global/core/app/evaluation/api.d.ts rename to packages/global/core/app/evaluation/api.ts index 8c1d8e8733..9a5bab5a11 100644 --- a/packages/global/core/app/evaluation/api.d.ts +++ b/packages/global/core/app/evaluation/api.ts @@ -1,4 +1,4 @@ -import type { PaginationProps } from '@fastgpt/web/common/fetch/type'; +import type { PaginationProps } from '../../../openapi/api'; export type listEvaluationsBody = PaginationProps<{ searchKey?: string; diff --git a/packages/global/core/app/evaluation/type.d.ts b/packages/global/core/app/evaluation/type.ts similarity index 100% rename from packages/global/core/app/evaluation/type.d.ts rename to packages/global/core/app/evaluation/type.ts diff --git a/packages/global/core/app/tool/type.d.ts b/packages/global/core/app/tool/type.ts similarity index 83% rename from packages/global/core/app/tool/type.d.ts rename to packages/global/core/app/tool/type.ts index 436d697ce6..3e80f3ff3b 100644 --- a/packages/global/core/app/tool/type.d.ts +++ b/packages/global/core/app/tool/type.ts @@ -1,14 +1,9 @@ -import type { StoreEdgeItemType } from 'core/workflow/type/edge'; -import { ModuleTemplateTypeEnum } from '../../workflow/constants'; +import type { StoreEdgeItemType } from '../../workflow/type/edge'; import type { StoreNodeItemType } from '../../workflow/type/node'; -import { MethodType } from './controller'; import type { FlowNodeTemplateType } from '../../workflow/type/node'; import type { WorkflowTemplateType } from '../../workflow/type'; import type { FlowNodeInputItemType, FlowNodeOutputItemType } from '../../workflow/type/io'; -import type { ParentIdType } from 'common/parentFolder/type'; -import type { I18nStringStrictType } from '../../../common/i18n/type'; import type { I18nStringType } from '../../../common/i18n/type'; -import type { ToolSimpleType, ToolDetailType } from '../../../sdk/fastgpt-plugin'; import type { PluginStatusType, SystemPluginToolTagType } from '../../plugin/type'; import type { UserTagsEnum } from '../../../support/user/type'; diff --git a/packages/global/core/dataset/api.d.ts b/packages/global/core/dataset/api.ts similarity index 92% rename from packages/global/core/dataset/api.d.ts rename to packages/global/core/dataset/api.ts index 1a39351270..d7444b2eab 100644 --- a/packages/global/core/dataset/api.d.ts +++ b/packages/global/core/dataset/api.ts @@ -1,17 +1,5 @@ -import type { - ChunkSettingsType, - DatasetDataIndexItemType, - DatasetDataFieldType, - DatasetSchemaType -} from './type'; -import type { - DatasetCollectionTypeEnum, - DatasetCollectionDataProcessModeEnum, - ChunkSettingModeEnum, - DataChunkSplitModeEnum, - ChunkTriggerConfigTypeEnum, - ParagraphChunkAIModeEnum -} from './constants'; +import type { ChunkSettingsType, DatasetDataIndexItemType, DatasetSchemaType } from './type'; +import type { DatasetCollectionTypeEnum, DatasetCollectionDataProcessModeEnum } from './constants'; import type { ParentIdType } from '../../common/parentFolder/type'; import type { APIFileItemType } from './apiDataset/type'; diff --git a/packages/global/core/dataset/apiDataset/type.d.ts b/packages/global/core/dataset/apiDataset/type.ts similarity index 100% rename from packages/global/core/dataset/apiDataset/type.d.ts rename to packages/global/core/dataset/apiDataset/type.ts diff --git a/packages/global/core/dataset/collaborator.d.ts b/packages/global/core/dataset/collaborator.ts similarity index 85% rename from packages/global/core/dataset/collaborator.d.ts rename to packages/global/core/dataset/collaborator.ts index 9aee6ac83a..9296eadf5a 100644 --- a/packages/global/core/dataset/collaborator.d.ts +++ b/packages/global/core/dataset/collaborator.ts @@ -1,5 +1,4 @@ import type { UpdateClbPermissionProps } from '../../support/permission/collaborator'; -import { PermissionValueType } from '../../support/permission/type'; import type { RequireOnlyOne } from '../../common/type/utils'; export type UpdateDatasetCollaboratorBody = UpdateClbPermissionProps & { diff --git a/packages/global/core/dataset/controller.d.ts b/packages/global/core/dataset/controller.ts similarity index 100% rename from packages/global/core/dataset/controller.d.ts rename to packages/global/core/dataset/controller.ts diff --git a/packages/global/core/dataset/image/type.d.ts b/packages/global/core/dataset/image/type.ts similarity index 100% rename from packages/global/core/dataset/image/type.d.ts rename to packages/global/core/dataset/image/type.ts diff --git a/packages/global/core/dataset/training/type.d.ts b/packages/global/core/dataset/training/type.d.ts deleted file mode 100644 index 89071fc8ab..0000000000 --- a/packages/global/core/dataset/training/type.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import type { PushDatasetDataChunkProps } from '../api'; -import type { TrainingModeEnum } from '../constants'; - -export type PushDataToTrainingQueueProps = { - teamId: string; - tmbId: string; - datasetId: string; - collectionId: string; - - data: PushDatasetDataChunkProps[]; - mode?: TrainingModeEnum; - - agentModel: string; - vectorModel: string; - vlmModel?: string; - - indexSize?: number; - - billId?: string; - session?: ClientSession; -}; diff --git a/packages/global/core/dataset/type.d.ts b/packages/global/core/dataset/type.ts similarity index 98% rename from packages/global/core/dataset/type.d.ts rename to packages/global/core/dataset/type.ts index 827a658b39..1b09c1ba7d 100644 --- a/packages/global/core/dataset/type.d.ts +++ b/packages/global/core/dataset/type.ts @@ -20,9 +20,9 @@ import type { FeishuServer, YuqueServer } from './apiDataset/type'; -import type { SourceMemberType } from 'support/user/type'; +import type { SourceMemberType } from '../../support/user/type'; import type { DatasetDataIndexTypeEnum } from './data/constants'; -import type { ParentIdType } from 'common/parentFolder/type'; +import type { ParentIdType } from '../../common/parentFolder/type'; export type ChunkSettingsType = { trainingType?: DatasetCollectionDataProcessModeEnum; diff --git a/packages/global/core/type.d.ts b/packages/global/core/type.ts similarity index 100% rename from packages/global/core/type.d.ts rename to packages/global/core/type.ts diff --git a/packages/global/core/workflow/template/system/abandoned/runApp/type.d.ts b/packages/global/core/workflow/template/system/abandoned/runApp/type.ts similarity index 100% rename from packages/global/core/workflow/template/system/abandoned/runApp/type.d.ts rename to packages/global/core/workflow/template/system/abandoned/runApp/type.ts diff --git a/packages/global/core/workflow/template/system/aiChat/type.d.ts b/packages/global/core/workflow/template/system/aiChat/type.ts similarity index 100% rename from packages/global/core/workflow/template/system/aiChat/type.d.ts rename to packages/global/core/workflow/template/system/aiChat/type.ts diff --git a/packages/global/core/workflow/template/system/classifyQuestion/type.d.ts b/packages/global/core/workflow/template/system/classifyQuestion/type.ts similarity index 100% rename from packages/global/core/workflow/template/system/classifyQuestion/type.d.ts rename to packages/global/core/workflow/template/system/classifyQuestion/type.ts diff --git a/packages/global/core/workflow/template/system/contextExtract/type.d.ts b/packages/global/core/workflow/template/system/contextExtract/type.ts similarity index 100% rename from packages/global/core/workflow/template/system/contextExtract/type.d.ts rename to packages/global/core/workflow/template/system/contextExtract/type.ts diff --git a/packages/global/core/workflow/template/system/ifElse/type.d.ts b/packages/global/core/workflow/template/system/ifElse/type.ts similarity index 100% rename from packages/global/core/workflow/template/system/ifElse/type.d.ts rename to packages/global/core/workflow/template/system/ifElse/type.ts diff --git a/packages/global/core/workflow/template/system/variableUpdate/type.d.ts b/packages/global/core/workflow/template/system/variableUpdate/type.ts similarity index 100% rename from packages/global/core/workflow/template/system/variableUpdate/type.d.ts rename to packages/global/core/workflow/template/system/variableUpdate/type.ts diff --git a/packages/global/openapi/api.ts b/packages/global/openapi/api.ts index 5a95ea9215..a3f953ef43 100644 --- a/packages/global/openapi/api.ts +++ b/packages/global/openapi/api.ts @@ -1,3 +1,4 @@ +import type { RequireOnlyOne } from '../common/type/utils'; import { z } from 'zod'; export const PaginationSchema = z.object({ @@ -7,6 +8,13 @@ export const PaginationSchema = z.object({ }); export type PaginationType = z.infer; +export type PaginationProps = T & { + pageSize: number | string; +} & RequireOnlyOne<{ + offset: number | string; + pageNum: number | string; + }>; + export const PaginationResponseSchema = (itemSchema: T) => z.object({ total: z.number().optional().default(0), diff --git a/packages/global/package.json b/packages/global/package.json index e48253bcbb..c05eb88fcb 100644 --- a/packages/global/package.json +++ b/packages/global/package.json @@ -13,7 +13,7 @@ "jschardet": "3.1.1", "json5": "^2.2.3", "nanoid": "^5.1.3", - "next": "14.2.35", + "next": "15.5.12", "openai": "4.61.0", "openapi-types": "^12.1.3", "timezones-list": "^3.0.2", diff --git a/packages/global/support/activity/type.d.ts b/packages/global/support/activity/type.ts similarity index 100% rename from packages/global/support/activity/type.d.ts rename to packages/global/support/activity/type.ts diff --git a/packages/global/support/mcp/type.d.ts b/packages/global/support/mcp/type.ts similarity index 100% rename from packages/global/support/mcp/type.d.ts rename to packages/global/support/mcp/type.ts diff --git a/packages/global/support/openapi/type.d.ts b/packages/global/support/openapi/type.ts similarity index 100% rename from packages/global/support/openapi/type.d.ts rename to packages/global/support/openapi/type.ts diff --git a/packages/global/support/outLink/api.d.ts b/packages/global/support/outLink/api.ts similarity index 88% rename from packages/global/support/outLink/api.d.ts rename to packages/global/support/outLink/api.ts index 04648156e8..12870bf9b5 100644 --- a/packages/global/support/outLink/api.d.ts +++ b/packages/global/support/outLink/api.ts @@ -1,7 +1,7 @@ import { z } from 'zod'; -import type { HistoryItemType } from '../../core/chat/type.d'; -import type { OutLinkSchema, PlaygroundVisibilityConfigType } from './type.d'; -import { PlaygroundVisibilityConfigSchema } from './type.d'; +import type { HistoryItemType } from '../../core/chat/type'; +import type { OutLinkSchema, PlaygroundVisibilityConfigType } from './type'; +import { PlaygroundVisibilityConfigSchema } from './type'; export type AuthOutLinkInitProps = { outLinkUid: string; diff --git a/packages/global/support/outLink/type.d.ts b/packages/global/support/outLink/type.ts similarity index 95% rename from packages/global/support/outLink/type.d.ts rename to packages/global/support/outLink/type.ts index 43781a569a..3e8b577bae 100644 --- a/packages/global/support/outLink/type.d.ts +++ b/packages/global/support/outLink/type.ts @@ -1,7 +1,5 @@ import { z } from 'zod'; -import { AppSchema } from '../../core/app/type'; import type { PublishChannelEnum } from './constant'; -import { RequireOnlyOne } from '../../common/type/utils'; // Feishu Config interface export interface FeishuAppType { @@ -98,7 +96,7 @@ export type OutLinkSchema = { }; // Edit the Outlink -export type OutLinkEditType = { +export type OutLinkEditType = { _id?: string; name: string; showCite?: OutLinkSchema['showCite']; diff --git a/packages/global/support/permission/app/type.d.ts b/packages/global/support/permission/app/type.ts similarity index 100% rename from packages/global/support/permission/app/type.d.ts rename to packages/global/support/permission/app/type.ts diff --git a/packages/global/support/permission/collaborator.d.ts b/packages/global/support/permission/collaborator.ts similarity index 78% rename from packages/global/support/permission/collaborator.d.ts rename to packages/global/support/permission/collaborator.ts index 6e927c8122..332f633ae1 100644 --- a/packages/global/support/permission/collaborator.d.ts +++ b/packages/global/support/permission/collaborator.ts @@ -1,8 +1,6 @@ -import type { UpdateAppCollaboratorBody } from 'core/app/collaborator'; import type { RequireOnlyOne } from '../../common/type/utils'; -import { RequireAtLeastOne } from '../../common/type/utils'; import type { Permission } from './controller'; -import type { PermissionValueType, RoleValueType } from './type'; +import type { PermissionValueType } from './type'; export type CollaboratorIdType = RequireOnlyOne<{ tmbId: string; diff --git a/packages/global/support/permission/controller.ts b/packages/global/support/permission/controller.ts index ecbb46e273..e4921305ea 100644 --- a/packages/global/support/permission/controller.ts +++ b/packages/global/support/permission/controller.ts @@ -9,7 +9,6 @@ import { CommonPerList, CommonRoleList, CommonRolePerMap, - NullPermissionVal, NullRoleVal, OwnerPermissionVal, OwnerRoleVal diff --git a/packages/global/support/permission/memberGroup/api.d.ts b/packages/global/support/permission/memberGroup/api.ts similarity index 100% rename from packages/global/support/permission/memberGroup/api.d.ts rename to packages/global/support/permission/memberGroup/api.ts diff --git a/packages/global/support/permission/memberGroup/type.d.ts b/packages/global/support/permission/memberGroup/type.d.ts deleted file mode 100644 index fcac784cdf..0000000000 --- a/packages/global/support/permission/memberGroup/type.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { TeamMemberItemType } from 'support/user/team/type'; -import { TeamPermission } from '../user/controller'; -import type { GroupMemberRole } from './constant'; -import type { Permission } from '../controller'; - -type MemberGroupSchemaType = { - _id: string; - teamId: string; - name: string; - avatar: string; - updateTime: Date; -}; - -type GroupMemberSchemaType = { - groupId: string; - tmbId: string; - role: `${GroupMemberRole}`; -}; - -type MemberGroupListItemType = MemberGroupSchemaType & { - members: WithMembers extends true - ? { - tmbId: string; - name: string; - avatar: string; - }[] - : undefined; - count: WithMembers extends true ? number : undefined; - owner?: WithMembers extends true - ? { - tmbId: string; - name: string; - avatar: string; - } - : undefined; - permission: WithMembers extends true ? Permission : undefined; -}; - -type GroupMemberItemType = { - tmbId: string; - name: string; - avatar: string; - role: `${GroupMemberRole}`; -}; diff --git a/packages/global/support/permission/memberGroup/type.ts b/packages/global/support/permission/memberGroup/type.ts new file mode 100644 index 0000000000..c48cd760a1 --- /dev/null +++ b/packages/global/support/permission/memberGroup/type.ts @@ -0,0 +1,43 @@ +import type { GroupMemberRole } from './constant'; +import type { Permission } from '../controller'; + +export type MemberGroupSchemaType = { + _id: string; + teamId: string; + name: string; + avatar: string; + updateTime: Date; +}; + +export type GroupMemberSchemaType = { + groupId: string; + tmbId: string; + role: `${GroupMemberRole}`; +}; + +export type MemberGroupListItemType = + MemberGroupSchemaType & { + members: WithMembers extends true + ? { + tmbId: string; + name: string; + avatar: string; + }[] + : undefined; + count: WithMembers extends true ? number : undefined; + owner?: WithMembers extends true + ? { + tmbId: string; + name: string; + avatar: string; + } + : undefined; + permission: WithMembers extends true ? Permission : undefined; + }; + +export type GroupMemberItemType = { + tmbId: string; + name: string; + avatar: string; + role: `${GroupMemberRole}`; +}; diff --git a/packages/global/support/tmpData/type.d.ts b/packages/global/support/tmpData/type.ts similarity index 100% rename from packages/global/support/tmpData/type.d.ts rename to packages/global/support/tmpData/type.ts diff --git a/packages/global/support/user/api.d.ts b/packages/global/support/user/api.ts similarity index 100% rename from packages/global/support/user/api.d.ts rename to packages/global/support/user/api.ts diff --git a/packages/global/support/user/audit/type.d.ts b/packages/global/support/user/audit/type.ts similarity index 88% rename from packages/global/support/user/audit/type.d.ts rename to packages/global/support/user/audit/type.ts index 610039fd3d..052fcd1231 100644 --- a/packages/global/support/user/audit/type.d.ts +++ b/packages/global/support/user/audit/type.ts @@ -1,4 +1,4 @@ -import type { SourceMemberType } from '../user/type'; +import type { SourceMemberType } from '../type'; import type { AuditEventEnum } from './constants'; export type TeamAuditSchemaType = { diff --git a/packages/global/support/user/auth/type.d.ts b/packages/global/support/user/auth/type.ts similarity index 65% rename from packages/global/support/user/auth/type.d.ts rename to packages/global/support/user/auth/type.ts index 3dfc605626..829acf1062 100644 --- a/packages/global/support/user/auth/type.d.ts +++ b/packages/global/support/user/auth/type.ts @@ -1,4 +1,4 @@ -import type { UserAuthTypeEnum } from '@fastgpt/global/support/user/auth/constants'; +import type { UserAuthTypeEnum } from './constants'; export type UserAuthSchemaType = { key: string; diff --git a/packages/global/support/user/inform/type.d.ts b/packages/global/support/user/inform/type.ts similarity index 88% rename from packages/global/support/user/inform/type.d.ts rename to packages/global/support/user/inform/type.ts index 4a87dc6a35..e4e13a9fac 100644 --- a/packages/global/support/user/inform/type.d.ts +++ b/packages/global/support/user/inform/type.ts @@ -11,11 +11,6 @@ export type SendInform2UserProps = SendInformProps & { teamId: string; }; -export type SendInform2User = SendInformProps & { - type: `${InformTypeEnum}`; - tmbId: string; -}; - export type UserInformSchema = { _id: string; userId: string; diff --git a/packages/global/support/user/login/api.d.ts b/packages/global/support/user/login/api.ts similarity index 100% rename from packages/global/support/user/login/api.d.ts rename to packages/global/support/user/login/api.ts diff --git a/packages/global/support/user/team/controller.d.ts b/packages/global/support/user/team/controller.ts similarity index 92% rename from packages/global/support/user/team/controller.d.ts rename to packages/global/support/user/team/controller.ts index 88e5a0d9ee..21dc48eb9c 100644 --- a/packages/global/support/user/team/controller.d.ts +++ b/packages/global/support/user/team/controller.ts @@ -1,8 +1,6 @@ -import { PermissionValueType } from '../../permission/type'; import type { TeamMetaType } from '../type'; import type { TeamMemberRoleEnum } from './constant'; import type { TeamMemberSchema, ThirdPartyAccountType } from './type'; -import { LafAccountType } from './type'; export type AuthTeamRoleProps = { teamId: string; diff --git a/packages/global/support/user/team/group/api.d.ts b/packages/global/support/user/team/group/api.ts similarity index 100% rename from packages/global/support/user/team/group/api.d.ts rename to packages/global/support/user/team/group/api.ts diff --git a/packages/global/support/user/team/org/api.d.ts b/packages/global/support/user/team/org/api.ts similarity index 100% rename from packages/global/support/user/team/org/api.d.ts rename to packages/global/support/user/team/org/api.ts diff --git a/packages/global/support/user/team/org/type.d.ts b/packages/global/support/user/team/org/type.ts similarity index 80% rename from packages/global/support/user/team/org/type.d.ts rename to packages/global/support/user/team/org/type.ts index 1f0f456081..9f6a731152 100644 --- a/packages/global/support/user/team/org/type.d.ts +++ b/packages/global/support/user/team/org/type.ts @@ -1,8 +1,6 @@ import type { TeamPermission } from '../../../permission/user/controller'; -import { ResourcePermissionType } from '../type'; -import { SourceMemberType } from '../../type'; -type OrgSchemaType = { +export type OrgSchemaType = { _id: string; teamId: string; pathId: string; @@ -13,7 +11,7 @@ type OrgSchemaType = { updateTime: Date; }; -type OrgMemberSchemaType = { +export type OrgMemberSchemaType = { _id: string; teamId: string; orgId: string; diff --git a/packages/global/support/user/team/tag.d.ts b/packages/global/support/user/team/tag.ts similarity index 100% rename from packages/global/support/user/team/tag.d.ts rename to packages/global/support/user/team/tag.ts diff --git a/packages/global/support/user/team/type.d.ts b/packages/global/support/user/team/type.ts similarity index 95% rename from packages/global/support/user/team/type.d.ts rename to packages/global/support/user/team/type.ts index 3058467eb0..8d69e5f59f 100644 --- a/packages/global/support/user/team/type.d.ts +++ b/packages/global/support/user/team/type.ts @@ -1,7 +1,6 @@ import type { TeamMetaType, UserModelSchema } from '../type'; import type { TeamMemberRoleEnum, TeamMemberStatusEnum } from './constant'; -import type { LafAccountType } from './type'; -import { PermissionValueType, ResourcePermissionType } from '../../permission/type'; +import type { GroupMemberRole } from '../../permission/memberGroup/constant'; import type { TeamPermission } from '../../permission/user/controller'; export type ThirdPartyAccountType = { diff --git a/packages/global/support/wallet/bill/invoice/type.d.ts b/packages/global/support/wallet/bill/invoice/type.ts similarity index 100% rename from packages/global/support/wallet/bill/invoice/type.d.ts rename to packages/global/support/wallet/bill/invoice/type.ts diff --git a/packages/global/support/wallet/sub/api.d.ts b/packages/global/support/wallet/sub/api.ts similarity index 100% rename from packages/global/support/wallet/sub/api.d.ts rename to packages/global/support/wallet/sub/api.ts diff --git a/packages/global/support/wallet/sub/coupon/type.d.ts b/packages/global/support/wallet/sub/coupon/type.ts similarity index 100% rename from packages/global/support/wallet/sub/coupon/type.d.ts rename to packages/global/support/wallet/sub/coupon/type.ts diff --git a/packages/global/support/wallet/usage/api.d.ts b/packages/global/support/wallet/usage/api.ts similarity index 100% rename from packages/global/support/wallet/usage/api.d.ts rename to packages/global/support/wallet/usage/api.ts diff --git a/packages/global/support/wallet/usage/type.d.ts b/packages/global/support/wallet/usage/type.ts similarity index 100% rename from packages/global/support/wallet/usage/type.d.ts rename to packages/global/support/wallet/usage/type.ts diff --git a/packages/global/tsconfig.json b/packages/global/tsconfig.json index 6f5dee2ff7..d3dc3c377f 100644 --- a/packages/global/tsconfig.json +++ b/packages/global/tsconfig.json @@ -3,5 +3,5 @@ "compilerOptions": { "baseUrl": "." }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "**/*.d.ts"] + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"] } diff --git a/packages/service/common/api/type.d.ts b/packages/service/common/api/type.ts similarity index 100% rename from packages/service/common/api/type.d.ts rename to packages/service/common/api/type.ts diff --git a/packages/service/common/buffer/tts/schema.ts b/packages/service/common/buffer/tts/schema.ts index e351b1b1c2..b908431fb9 100644 --- a/packages/service/common/buffer/tts/schema.ts +++ b/packages/service/common/buffer/tts/schema.ts @@ -1,5 +1,5 @@ import { Schema, getMongoModel } from '../../../common/mongo'; -import { type TTSBufferSchemaType } from './type.d'; +import { type TTSBufferSchemaType } from './type'; import { getLogger, LogCategories } from '../../logger'; export const collectionName = 'buffer_tts'; diff --git a/packages/service/common/buffer/tts/type.d.ts b/packages/service/common/buffer/tts/type.ts similarity index 100% rename from packages/service/common/buffer/tts/type.d.ts rename to packages/service/common/buffer/tts/type.ts diff --git a/packages/service/common/bullmq/type.d.ts b/packages/service/common/bullmq/type.ts similarity index 100% rename from packages/service/common/bullmq/type.d.ts rename to packages/service/common/bullmq/type.ts diff --git a/packages/service/common/file/image/schema.ts b/packages/service/common/file/image/schema.ts index d051e48a3b..f657d947d9 100644 --- a/packages/service/common/file/image/schema.ts +++ b/packages/service/common/file/image/schema.ts @@ -1,6 +1,6 @@ import { TeamCollectionName } from '@fastgpt/global/support/user/team/constant'; import { Schema, getMongoModel } from '../../mongo'; -import { type MongoImageSchemaType } from '@fastgpt/global/common/file/image/type.d'; +import { type MongoImageSchemaType } from '@fastgpt/global/common/file/image/type'; import { getLogger, LogCategories } from '../../logger'; const logger = getLogger(LogCategories.INFRA.MONGO); diff --git a/packages/service/common/middle/tracks/type.d.ts b/packages/service/common/middle/tracks/type.d.ts deleted file mode 100644 index 94ca6d9fe6..0000000000 --- a/packages/service/common/middle/tracks/type.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -export type TracksQueueType = { - event: TrackEnum; - data: Record; -}; - -declare global { - var countTrackQueue: - | Map< - string, - { - event: TrackEnum; - count: number; - data: Record; - } - > - | undefined; -} diff --git a/packages/service/common/mongo/type.d.ts b/packages/service/common/mongo/type.ts similarity index 100% rename from packages/service/common/mongo/type.d.ts rename to packages/service/common/mongo/type.ts diff --git a/packages/service/common/redis/type.d.ts b/packages/service/common/redis/type.ts similarity index 100% rename from packages/service/common/redis/type.d.ts rename to packages/service/common/redis/type.ts diff --git a/packages/service/common/system/frequencyLimit/type.d.ts b/packages/service/common/system/frequencyLimit/type.ts similarity index 100% rename from packages/service/common/system/frequencyLimit/type.d.ts rename to packages/service/common/system/frequencyLimit/type.ts diff --git a/packages/service/common/system/log/type.d.ts b/packages/service/common/system/log/type.ts similarity index 100% rename from packages/service/common/system/log/type.d.ts rename to packages/service/common/system/log/type.ts diff --git a/packages/service/common/system/timerLock/schema.ts b/packages/service/common/system/timerLock/schema.ts index 5abddb4a95..44dd905e90 100644 --- a/packages/service/common/system/timerLock/schema.ts +++ b/packages/service/common/system/timerLock/schema.ts @@ -1,6 +1,6 @@ import { connectionMongo, getMongoModel } from '../../mongo'; const { Schema } = connectionMongo; -import { type TimerLockSchemaType } from './type.d'; +import { type TimerLockSchemaType } from './type'; import { getLogger, LogCategories } from '../../logger'; export const collectionName = 'system_timer_locks'; diff --git a/packages/service/common/system/timerLock/type.d.ts b/packages/service/common/system/timerLock/type.ts similarity index 100% rename from packages/service/common/system/timerLock/type.d.ts rename to packages/service/common/system/timerLock/type.ts diff --git a/packages/service/core/dataset/collection/controller.ts b/packages/service/core/dataset/collection/controller.ts index 8a63ddfb86..d20be21973 100644 --- a/packages/service/core/dataset/collection/controller.ts +++ b/packages/service/core/dataset/collection/controller.ts @@ -2,7 +2,7 @@ import { DatasetCollectionDataProcessModeEnum, DatasetCollectionTypeEnum } from '@fastgpt/global/core/dataset/constants'; -import type { CreateDatasetCollectionParams } from '@fastgpt/global/core/dataset/api.d'; +import type { CreateDatasetCollectionParams } from '@fastgpt/global/core/dataset/api'; import { MongoDatasetCollection } from './schema'; import type { DatasetCollectionSchemaType, diff --git a/packages/service/core/dataset/collection/schema.ts b/packages/service/core/dataset/collection/schema.ts index e6f86da40b..f1664dfa49 100644 --- a/packages/service/core/dataset/collection/schema.ts +++ b/packages/service/core/dataset/collection/schema.ts @@ -1,7 +1,7 @@ import { connectionMongo, getMongoModel } from '../../../common/mongo'; import { getLogger, LogCategories } from '../../../common/logger'; const { Schema } = connectionMongo; -import { type DatasetCollectionSchemaType } from '@fastgpt/global/core/dataset/type.d'; +import { type DatasetCollectionSchemaType } from '@fastgpt/global/core/dataset/type'; import { DatasetCollectionTypeMap } from '@fastgpt/global/core/dataset/constants'; import { ChunkSettings, DatasetCollectionName } from '../schema'; import { diff --git a/packages/service/core/dataset/data/dataTextSchema.ts b/packages/service/core/dataset/data/dataTextSchema.ts index 382298765a..23e2dba72a 100644 --- a/packages/service/core/dataset/data/dataTextSchema.ts +++ b/packages/service/core/dataset/data/dataTextSchema.ts @@ -1,6 +1,6 @@ import { connectionMongo, getMongoModel } from '../../../common/mongo'; const { Schema } = connectionMongo; -import { type DatasetDataTextSchemaType } from '@fastgpt/global/core/dataset/type.d'; +import { type DatasetDataTextSchemaType } from '@fastgpt/global/core/dataset/type'; import { TeamCollectionName } from '@fastgpt/global/support/user/team/constant'; import { DatasetCollectionName } from '../schema'; import { DatasetColCollectionName } from '../collection/schema'; diff --git a/packages/service/core/dataset/data/schema.ts b/packages/service/core/dataset/data/schema.ts index 8d24700b0e..1417564dde 100644 --- a/packages/service/core/dataset/data/schema.ts +++ b/packages/service/core/dataset/data/schema.ts @@ -1,6 +1,6 @@ import { connectionMongo, getMongoModel } from '../../../common/mongo'; const { Schema, model, models } = connectionMongo; -import { type DatasetDataSchemaType } from '@fastgpt/global/core/dataset/type.d'; +import { type DatasetDataSchemaType } from '@fastgpt/global/core/dataset/type'; import { TeamCollectionName, TeamMemberCollectionName diff --git a/packages/service/core/dataset/schema.ts b/packages/service/core/dataset/schema.ts index fedee82869..0995e01fb6 100644 --- a/packages/service/core/dataset/schema.ts +++ b/packages/service/core/dataset/schema.ts @@ -12,7 +12,7 @@ import { TeamCollectionName, TeamMemberCollectionName } from '@fastgpt/global/support/user/team/constant'; -import type { DatasetSchemaType } from '@fastgpt/global/core/dataset/type.d'; +import type { DatasetSchemaType } from '@fastgpt/global/core/dataset/type'; import { getLogger, LogCategories } from '../../common/logger'; export const DatasetCollectionName = 'datasets'; diff --git a/packages/service/core/dataset/training/controller.ts b/packages/service/core/dataset/training/controller.ts index 5e94f5a019..c25b08f1fe 100644 --- a/packages/service/core/dataset/training/controller.ts +++ b/packages/service/core/dataset/training/controller.ts @@ -1,10 +1,12 @@ import { MongoDatasetTraining } from './schema'; -import type { PushDatasetDataResponse } from '@fastgpt/global/core/dataset/api.d'; +import type { + PushDatasetDataChunkProps, + PushDatasetDataResponse +} from '@fastgpt/global/core/dataset/api'; import { TrainingModeEnum } from '@fastgpt/global/core/dataset/constants'; import { type ClientSession } from '../../../common/mongo'; import { getLLMModel, getEmbeddingModel, getVlmModel } from '../../ai/model'; import { mongoSessionRun } from '../../../common/mongo/sessionRun'; -import { type PushDataToTrainingQueueProps } from '@fastgpt/global/core/dataset/training/type'; import { i18nT } from '../../../../web/i18n/utils'; import { getLLMMaxChunkSize } from '../../../../global/core/dataset/training/utils'; import { retryFn } from '@fastgpt/global/common/system/utils'; @@ -38,7 +40,24 @@ export async function pushDataListToTrainingQueue({ mode = TrainingModeEnum.chunk, indexSize, session -}: PushDataToTrainingQueueProps): Promise { +}: { + teamId: string; + tmbId: string; + datasetId: string; + collectionId: string; + + data: PushDatasetDataChunkProps[]; + mode?: TrainingModeEnum; + + agentModel: string; + vectorModel: string; + vlmModel?: string; + + indexSize?: number; + + billId?: string; + session?: ClientSession; +}): Promise { const vectorModelData = getEmbeddingModel(vectorModel); if (!vectorModelData) { return Promise.reject(i18nT('common:error_embedding_not_config')); diff --git a/packages/service/package.json b/packages/service/package.json index 896bd19b49..03ef8acbd7 100644 --- a/packages/service/package.json +++ b/packages/service/package.json @@ -50,7 +50,7 @@ "mongoose": "^8.10.1", "multer": "2.0.2", "mysql2": "^3.11.3", - "next": "14.2.35", + "next": "15.5.12", "nextjs-cors": "^2.2.0", "node-cron": "^3.0.3", "node-xlsx": "^0.24.0", diff --git a/packages/service/support/activity/promotion/schema.ts b/packages/service/support/activity/promotion/schema.ts index 6798bdc10b..f5a568278f 100644 --- a/packages/service/support/activity/promotion/schema.ts +++ b/packages/service/support/activity/promotion/schema.ts @@ -1,6 +1,6 @@ import { connectionMongo, getMongoModel, type Model } from '../../../common/mongo'; const { Schema, model, models } = connectionMongo; -import { type PromotionRecordSchema as PromotionRecordType } from '@fastgpt/global/support/activity/type.d'; +import { type PromotionRecordSchema as PromotionRecordType } from '@fastgpt/global/support/activity/type'; const PromotionRecordSchema = new Schema({ userId: { diff --git a/packages/service/support/permission/app/auth.ts b/packages/service/support/permission/app/auth.ts index 36061840fb..8068e2e6d7 100644 --- a/packages/service/support/permission/app/auth.ts +++ b/packages/service/support/permission/app/auth.ts @@ -14,7 +14,6 @@ import { AppPermission } from '@fastgpt/global/support/permission/app/controller import { type PermissionValueType } from '@fastgpt/global/support/permission/type'; import { AppFolderTypeList, AppTypeEnum } from '@fastgpt/global/core/app/constants'; import { type ParentIdType } from '@fastgpt/global/common/parentFolder/type'; -import { AppToolSourceEnum } from '@fastgpt/global/core/app/tool/constants'; import { type AuthModeType, type AuthResponseType } from '../type'; import { splitCombineToolId } from '@fastgpt/global/core/app/tool/utils'; import { AppReadChatLogPerVal } from '@fastgpt/global/support/permission/app/constant'; diff --git a/packages/service/support/permission/controller.ts b/packages/service/support/permission/controller.ts index fc08b751f1..5872c4ed62 100644 --- a/packages/service/support/permission/controller.ts +++ b/packages/service/support/permission/controller.ts @@ -2,7 +2,7 @@ import type { ClientSession, AnyBulkWriteOperation } from '../../common/mongo'; import type { PerResourceTypeEnum } from '@fastgpt/global/support/permission/constant'; import { ManageRoleVal, OwnerRoleVal } from '@fastgpt/global/support/permission/constant'; import { MongoResourcePermission } from './schema'; -import type { ResourcePermissionType, ResourceType } from '@fastgpt/global/support/permission/type'; +import type { ResourcePermissionType } from '@fastgpt/global/support/permission/type'; import { type PermissionValueType } from '@fastgpt/global/support/permission/type'; import { getGroupsByTmbId } from './memberGroup/controllers'; import { Permission } from '@fastgpt/global/support/permission/controller'; diff --git a/packages/service/support/permission/type.d.ts b/packages/service/support/permission/type.ts similarity index 100% rename from packages/service/support/permission/type.d.ts rename to packages/service/support/permission/type.ts diff --git a/packages/service/support/user/team/teamMemberSchema.ts b/packages/service/support/user/team/teamMemberSchema.ts index 5a64253cc2..f224682a80 100644 --- a/packages/service/support/user/team/teamMemberSchema.ts +++ b/packages/service/support/user/team/teamMemberSchema.ts @@ -1,6 +1,6 @@ import { connectionMongo, getMongoModel } from '../../../common/mongo'; const { Schema } = connectionMongo; -import { type TeamMemberSchema as TeamMemberType } from '@fastgpt/global/support/user/team/type.d'; +import { type TeamMemberSchema as TeamMemberType } from '@fastgpt/global/support/user/team/type'; import { userCollectionName } from '../../user/schema'; import { TeamMemberStatusMap, diff --git a/packages/service/support/user/team/teamSchema.ts b/packages/service/support/user/team/teamSchema.ts index b9fc21a2de..e5f16e9587 100644 --- a/packages/service/support/user/team/teamSchema.ts +++ b/packages/service/support/user/team/teamSchema.ts @@ -1,6 +1,6 @@ import { connectionMongo, getMongoModel } from '../../../common/mongo'; const { Schema } = connectionMongo; -import { type TeamSchema as TeamType } from '@fastgpt/global/support/user/team/type.d'; +import { type TeamSchema as TeamType } from '@fastgpt/global/support/user/team/type'; import { userCollectionName } from '../../user/schema'; import { TeamCollectionName } from '@fastgpt/global/support/user/team/constant'; import { getLogger, LogCategories } from '../../../common/logger'; diff --git a/packages/service/support/user/team/teamTagsSchema.ts b/packages/service/support/user/team/teamTagsSchema.ts index 2bae32bc05..a0592f9670 100644 --- a/packages/service/support/user/team/teamTagsSchema.ts +++ b/packages/service/support/user/team/teamTagsSchema.ts @@ -1,6 +1,6 @@ import { connectionMongo, getMongoModel, type Model } from '../../../common/mongo'; const { Schema, model, models } = connectionMongo; -import { type TeamTagSchema as TeamTagsSchemaType } from '@fastgpt/global/support/user/team/type.d'; +import { type TeamTagSchema as TeamTagsSchemaType } from '@fastgpt/global/support/user/team/type'; import { TeamCollectionName, TeamTagsCollectionName diff --git a/packages/service/tsconfig.json b/packages/service/tsconfig.json index 42cabea1c9..f180be6098 100644 --- a/packages/service/tsconfig.json +++ b/packages/service/tsconfig.json @@ -4,5 +4,5 @@ "baseUrl": ".", "moduleResolution": "bundler" }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "**/*.d.ts", "../../**/*.d.ts"] + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"] } diff --git a/packages/service/type.d.ts b/packages/service/type.ts similarity index 100% rename from packages/service/type.d.ts rename to packages/service/type.ts diff --git a/packages/service/type/env.d.ts b/packages/service/type/env.ts similarity index 85% rename from packages/service/type/env.d.ts rename to packages/service/type/env.ts index f23c7ccc1a..329365c37e 100644 --- a/packages/service/type/env.d.ts +++ b/packages/service/type/env.ts @@ -1,6 +1,10 @@ declare global { + var countTrackQueue: Map }>; + namespace NodeJS { interface ProcessEnv { + DEFAULT_ROOT_PSW: string; + PRO_URL: string; LOG_DEPTH: string; DB_MAX_LINK: string; FILE_TOKEN_KEY: string; @@ -33,15 +37,11 @@ declare global { SHOW_COUPON?: string; SHOW_DISCOUNT_COUPON?: string; CONFIG_JSON_PATH?: string; - PASSWORD_LOGIN_LOCK_SECONDS?: string; + PASSWORD_LOGIN_LOCK_SECONDS?: string; // 密码登录锁定时间 PASSWORD_EXPIRED_MONTH?: string; MAX_LOGIN_SESSION?: string; CHAT_MAX_QPM?: string; - // 安全配置 - // 密码登录锁定时间 - PASSWORD_LOGIN_LOCK_SECONDS?: string; - CHAT_LOG_URL?: string; CHAT_LOG_INTERVAL?: string; CHAT_LOG_SOURCE_ID_PREFIX?: string; diff --git a/packages/service/type/next.d.ts b/packages/service/type/next.ts similarity index 100% rename from packages/service/type/next.d.ts rename to packages/service/type/next.ts diff --git a/packages/service/worker/readFile/type.d.ts b/packages/service/worker/readFile/type.ts similarity index 82% rename from packages/service/worker/readFile/type.d.ts rename to packages/service/worker/readFile/type.ts index b9d3bbd717..f33b3d608a 100644 --- a/packages/service/worker/readFile/type.d.ts +++ b/packages/service/worker/readFile/type.ts @@ -1,5 +1,3 @@ -import { ReadFileByBufferParams } from '../../common/file/read/type'; - export type ReadRawTextProps = { extension: string; buffer: T; diff --git a/packages/web/common/fetch/type.d.ts b/packages/web/common/fetch/type.d.ts deleted file mode 100644 index 0a389d3227..0000000000 --- a/packages/web/common/fetch/type.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -import type { RequireOnlyOne } from '@fastgpt/global/common/type/utils'; - -export type PaginationProps = T & { - pageSize: number | string; -} & RequireOnlyOne<{ - offset: number | string; - pageNum: number | string; - }>; - -export type PaginationResponse = { - total: number; - list: T[]; -}; - -type LinkedPaginationProps = T & { - pageSize: number; - anchor?: A; - initialId?: string; - nextId?: string; - prevId?: string; -}; - -type LinkedListResponse = { - list: Array; - hasMorePrev: boolean; - hasMoreNext: boolean; -}; diff --git a/packages/web/common/fetch/type.ts b/packages/web/common/fetch/type.ts new file mode 100644 index 0000000000..237acbc6a3 --- /dev/null +++ b/packages/web/common/fetch/type.ts @@ -0,0 +1,16 @@ +import type { PaginationProps, PaginationResponseType } from '@fastgpt/global/openapi/api'; +export type { PaginationProps, PaginationResponseType as PaginationResponse }; + +export type LinkedPaginationProps = T & { + pageSize: number; + anchor?: A; + initialId?: string; + nextId?: string; + prevId?: string; +}; + +export type LinkedListResponse = { + list: Array; + hasMorePrev: boolean; + hasMoreNext: boolean; +}; diff --git a/packages/web/components/common/Icon/index.tsx b/packages/web/components/common/Icon/index.tsx index 430f08ff7d..58e89b5a1a 100644 --- a/packages/web/components/common/Icon/index.tsx +++ b/packages/web/components/common/Icon/index.tsx @@ -2,7 +2,7 @@ import React, { useEffect, useState } from 'react'; import type { IconProps } from '@chakra-ui/react'; import { Box, Icon } from '@chakra-ui/react'; import { iconPaths } from './constants'; -import type { IconNameType } from './type.d'; +import type { IconNameType } from './type'; const iconCache: Record = {}; diff --git a/packages/web/components/common/Icon/type.d.ts b/packages/web/components/common/Icon/type.ts similarity index 100% rename from packages/web/components/common/Icon/type.d.ts rename to packages/web/components/common/Icon/type.ts diff --git a/packages/web/components/common/MySelect/type.d.ts b/packages/web/components/common/MySelect/type.ts similarity index 95% rename from packages/web/components/common/MySelect/type.d.ts rename to packages/web/components/common/MySelect/type.ts index cf6d051db3..8a9c03867e 100644 --- a/packages/web/components/common/MySelect/type.d.ts +++ b/packages/web/components/common/MySelect/type.ts @@ -1,6 +1,6 @@ import type { ButtonProps } from '@chakra-ui/react'; -type ListItemType = { +export type ListItemType = { alias?: string; label: string | React.ReactNode; value: any; diff --git a/packages/web/components/common/Textarea/PromptEditor/plugins/VariablePickerPlugin/index.tsx b/packages/web/components/common/Textarea/PromptEditor/plugins/VariablePickerPlugin/index.tsx index c734dec809..12fff913d9 100644 --- a/packages/web/components/common/Textarea/PromptEditor/plugins/VariablePickerPlugin/index.tsx +++ b/packages/web/components/common/Textarea/PromptEditor/plugins/VariablePickerPlugin/index.tsx @@ -9,7 +9,7 @@ import { useTranslation } from 'next-i18next'; import MyIcon from '../../../../Icon'; import { Box, Flex } from '@chakra-ui/react'; import { useBasicTypeaheadTriggerMatch } from '../../utils'; -import { type EditorVariablePickerType } from '../../type.d'; +import { type EditorVariablePickerType } from '../../type'; export default function VariablePickerPlugin({ variables diff --git a/packages/web/components/common/Textarea/PromptEditor/type.d.ts b/packages/web/components/common/Textarea/PromptEditor/type.ts similarity index 98% rename from packages/web/components/common/Textarea/PromptEditor/type.d.ts rename to packages/web/components/common/Textarea/PromptEditor/type.ts index 08033342ef..ec25f02a1b 100644 --- a/packages/web/components/common/Textarea/PromptEditor/type.d.ts +++ b/packages/web/components/common/Textarea/PromptEditor/type.ts @@ -1,5 +1,6 @@ import type { WorkflowIOValueTypeEnum } from '@fastgpt/global/core/workflow/constants'; import type { FlowNodeTypeEnum } from '@fastgpt/global/core/workflow/node/constant'; +import type { BoxProps } from '@chakra-ui/react'; export type EditorVariablePickerType = { key: string; diff --git a/packages/web/components/common/UserBox/index.tsx b/packages/web/components/common/UserBox/index.tsx index 408def6d90..4762c2ecad 100644 --- a/packages/web/components/common/UserBox/index.tsx +++ b/packages/web/components/common/UserBox/index.tsx @@ -6,14 +6,14 @@ import { useTranslation } from 'next-i18next'; import Tag from '../Tag'; export type UserBoxProps = { - sourceMember: SourceMemberType; + sourceMember?: SourceMemberType; avatarSize?: string; } & StackProps; function UserBox({ sourceMember, avatarSize = '1.25rem', ...props }: UserBoxProps) { const { t } = useTranslation(); - return ( + return sourceMember ? ( @@ -21,7 +21,7 @@ function UserBox({ sourceMember, avatarSize = '1.25rem', ...props }: UserBoxProp {sourceMember.status === 'leave' && {t('common:user_leaved')}} - ); + ) : null; } export default React.memo(UserBox); diff --git a/packages/web/i18n/i18next.d.ts b/packages/web/i18n/i18next.ts similarity index 95% rename from packages/web/i18n/i18next.d.ts rename to packages/web/i18n/i18next.ts index b831611dab..ff4cd1b35d 100644 --- a/packages/web/i18n/i18next.d.ts +++ b/packages/web/i18n/i18next.ts @@ -20,6 +20,7 @@ import type chat from './zh-CN/chat.json'; import type login from './zh-CN/login.json'; import type account_model from './zh-CN/account_model.json'; import type dashboard_mcp from './zh-CN/dashboard_mcp.json'; +import type dashboard_evaluation from './zh-CN/dashboard_evaluation.json'; import type { I18N_NAMESPACES } from './constants'; export interface I18nNamespaces { @@ -60,7 +61,7 @@ export type I18nKeyFunction = { declare module 'i18next' { interface CustomTypeOptions { returnNull: false; - defaultNS: I18N_NAMESPACES; + defaultNS: typeof I18N_NAMESPACES; resources: I18nNamespaces; } } diff --git a/packages/web/package.json b/packages/web/package.json index bf8176229d..a3eae75fb5 100644 --- a/packages/web/package.json +++ b/packages/web/package.json @@ -30,7 +30,7 @@ "js-cookie": "^3.0.5", "lexical": "0.12.6", "lodash": "^4.17.23", - "next": "14.2.35", + "next": "15.5.12", "next-i18next": "15.4.2", "papaparse": "^5.4.1", "react": "18.3.1", diff --git a/packages/web/tsconfig.json b/packages/web/tsconfig.json index 4a17ed65a7..d3dc3c377f 100644 --- a/packages/web/tsconfig.json +++ b/packages/web/tsconfig.json @@ -3,5 +3,5 @@ "compilerOptions": { "baseUrl": "." }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "**/*.d.ts", "../**/*.d.ts"] + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"] } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index fdadb96029..cef07a09dd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6,6 +6,9 @@ settings: overrides: mdast-util-gfm-autolink-literal: 2.0.0 + react: 18.3.1 + react-dom: 18.3.1 + '@types/react': 18.3.1 importers: @@ -27,8 +30,8 @@ importers: specifier: ^8.57.0 version: 8.57.1 eslint-config-next: - specifier: ^14.1.0 - version: 14.2.26(eslint@8.57.1)(typescript@5.8.2) + specifier: ^15.5.12 + version: 15.5.12(eslint@8.57.1)(typescript@5.8.2) husky: specifier: ^8.0.3 version: 8.0.3 @@ -46,7 +49,7 @@ importers: version: 10.1.4(socks@2.8.4) next-i18next: specifier: 15.4.2 - version: 15.4.2(i18next@23.16.8)(next@15.3.5(@opentelemetry/api@1.9.0)(react-dom@19.1.1(react@19.1.1))(react@19.1.1)(sass@1.85.1))(react-i18next@14.1.2(i18next@23.16.8)(react-dom@19.1.1(react@19.1.1))(react@19.1.1))(react@19.1.1) + version: 15.4.2(i18next@23.16.8)(next@15.5.12(@opentelemetry/api@1.9.0)(react-dom@19.1.1(react@19.1.1))(react@19.1.1)(sass@1.85.1))(react-i18next@14.1.2(i18next@23.16.8)(react-dom@19.1.1(react@19.1.1))(react@19.1.1))(react@19.1.1) prettier: specifier: 3.2.4 version: 3.2.4 @@ -102,8 +105,8 @@ importers: specifier: ^5.1.3 version: 5.1.3 next: - specifier: 14.2.35 - version: 14.2.35(@opentelemetry/api@1.9.0)(react-dom@19.1.1(react@19.1.1))(react@19.1.1)(sass@1.85.1) + specifier: 15.5.12 + version: 15.5.12(@opentelemetry/api@1.9.0)(react-dom@19.1.1(react@19.1.1))(react@19.1.1)(sass@1.85.1) openai: specifier: 4.61.0 version: 4.61.0(encoding@0.1.13)(zod@4.1.12) @@ -274,11 +277,11 @@ importers: specifier: ^3.11.3 version: 3.13.0 next: - specifier: 14.2.35 - version: 14.2.35(@opentelemetry/api@1.9.0)(react-dom@19.1.1(react@19.1.1))(react@19.1.1)(sass@1.85.1) + specifier: 15.5.12 + version: 15.5.12(@opentelemetry/api@1.9.0)(react-dom@19.1.1(react@19.1.1))(react@19.1.1)(sass@1.85.1) nextjs-cors: specifier: ^2.2.0 - version: 2.2.0(next@14.2.35(@opentelemetry/api@1.9.0)(react-dom@19.1.1(react@19.1.1))(react@19.1.1)(sass@1.85.1)) + version: 2.2.0(next@15.5.12(@opentelemetry/api@1.9.0)(react-dom@19.1.1(react@19.1.1))(react@19.1.1)(sass@1.85.1)) node-cron: specifier: ^3.0.3 version: 3.0.3 @@ -381,7 +384,7 @@ importers: version: 2.1.1(@chakra-ui/system@2.6.1(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(react@18.3.1))(react@18.3.1))(react@18.3.1) '@chakra-ui/next-js': specifier: 2.4.2 - version: 2.4.2(@chakra-ui/react@2.10.7(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(framer-motion@9.1.7(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(next@14.2.35(@babel/core@7.26.10)(@opentelemetry/api@1.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.85.1))(react@18.3.1) + version: 2.4.2(@chakra-ui/react@2.10.7(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(framer-motion@9.1.7(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(next@15.5.12(@babel/core@7.26.10)(@opentelemetry/api@1.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.85.1))(react@18.3.1) '@chakra-ui/react': specifier: 2.10.7 version: 2.10.7(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(framer-motion@9.1.7(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -458,11 +461,11 @@ importers: specifier: ^4.17.23 version: 4.17.23 next: - specifier: 14.2.35 - version: 14.2.35(@babel/core@7.26.10)(@opentelemetry/api@1.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.85.1) + specifier: 15.5.12 + version: 15.5.12(@babel/core@7.26.10)(@opentelemetry/api@1.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.85.1) next-i18next: specifier: 15.4.2 - version: 15.4.2(i18next@23.16.8)(next@14.2.35(@opentelemetry/api@1.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.85.1))(react-i18next@14.1.2(i18next@23.16.8)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1) + version: 15.4.2(i18next@23.16.8)(next@15.5.12(@opentelemetry/api@1.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.85.1))(react-i18next@14.1.2(i18next@23.16.8)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1) papaparse: specifier: ^5.4.1 version: 5.4.1 @@ -535,7 +538,7 @@ importers: version: 2.1.1(@chakra-ui/system@2.6.1(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(react@18.3.1))(react@18.3.1))(react@18.3.1) '@chakra-ui/next-js': specifier: 2.4.2 - version: 2.4.2(@chakra-ui/react@2.10.7(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(framer-motion@9.1.7(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(next@14.2.35(@babel/core@7.26.10)(@opentelemetry/api@1.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.85.1))(react@18.3.1) + version: 2.4.2(@chakra-ui/react@2.10.7(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(framer-motion@9.1.7(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(next@15.5.12(@babel/core@7.26.10)(@opentelemetry/api@1.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.85.1))(react@18.3.1) '@chakra-ui/react': specifier: 2.10.7 version: 2.10.7(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(framer-motion@9.1.7(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -642,11 +645,11 @@ importers: specifier: ^5.1.3 version: 5.1.3 next: - specifier: 14.2.35 - version: 14.2.35(@babel/core@7.26.10)(@opentelemetry/api@1.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.85.1) + specifier: 15.5.12 + version: 15.5.12(@babel/core@7.26.10)(@opentelemetry/api@1.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.85.1) next-i18next: specifier: 15.4.2 - version: 15.4.2(i18next@23.16.8)(next@14.2.35(@opentelemetry/api@1.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.85.1))(react-i18next@14.1.2(i18next@23.16.8)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1) + version: 15.4.2(i18next@23.16.8)(next@15.5.12(@opentelemetry/api@1.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.85.1))(react-i18next@14.1.2(i18next@23.16.8)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1) nprogress: specifier: ^0.2.0 version: 0.2.0 @@ -766,8 +769,8 @@ importers: specifier: 8.56.0 version: 8.56.0 eslint-config-next: - specifier: 14.2.26 - version: 14.2.26(eslint@8.56.0)(typescript@5.8.2) + specifier: 15.5.12 + version: 15.5.12(eslint@8.56.0)(typescript@5.8.2) tsx: specifier: ^4.20.6 version: 4.20.6 @@ -788,7 +791,7 @@ importers: version: 2.1.1(@chakra-ui/system@2.6.1(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(react@18.3.1))(react@18.3.1))(react@18.3.1) '@chakra-ui/next-js': specifier: 2.4.2 - version: 2.4.2(@chakra-ui/react@2.10.7(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(framer-motion@9.1.7(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(next@14.2.35(@babel/core@7.26.10)(@opentelemetry/api@1.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.85.1))(react@18.3.1) + version: 2.4.2(@chakra-ui/react@2.10.7(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(framer-motion@9.1.7(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(next@15.5.12(@babel/core@7.26.10)(@opentelemetry/api@1.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.85.1))(react@18.3.1) '@chakra-ui/react': specifier: 2.10.7 version: 2.10.7(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(framer-motion@9.1.7(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -817,11 +820,11 @@ importers: specifier: ^8.10.1 version: 8.12.1(socks@2.8.4) next: - specifier: 14.2.35 - version: 14.2.35(@babel/core@7.26.10)(@opentelemetry/api@1.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.85.1) + specifier: 15.5.12 + version: 15.5.12(@babel/core@7.26.10)(@opentelemetry/api@1.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.85.1) next-i18next: specifier: 15.4.2 - version: 15.4.2(i18next@23.16.8)(next@14.2.35(@opentelemetry/api@1.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.85.1))(react-i18next@14.1.2(i18next@23.16.8)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1) + version: 15.4.2(i18next@23.16.8)(next@15.5.12(@opentelemetry/api@1.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.85.1))(react-i18next@14.1.2(i18next@23.16.8)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1) react: specifier: 18.3.1 version: 18.3.1 @@ -842,7 +845,7 @@ importers: specifier: ^20 version: 20.17.24 '@types/react': - specifier: ^18 + specifier: 18.3.1 version: 18.3.1 '@types/react-dom': specifier: ^18 @@ -851,8 +854,8 @@ importers: specifier: ^8 version: 8.57.1 eslint-config-next: - specifier: 14.2.33 - version: 14.2.33(eslint@8.57.1)(typescript@5.8.2) + specifier: 15.5.12 + version: 15.5.12(eslint@8.57.1)(typescript@5.8.2) postcss: specifier: ^8 version: 8.5.6 @@ -1910,24 +1913,24 @@ packages: '@chakra-ui/color-mode@2.2.0': resolution: {integrity: sha512-niTEA8PALtMWRI9wJ4LL0CSBDo8NBfLNp4GD6/0hstcm3IlbBHTVKxN6HwSaoNYfphDQLxCjT4yG+0BJA5tFpg==} peerDependencies: - react: '>=18' + react: 18.3.1 '@chakra-ui/hooks@2.4.4': resolution: {integrity: sha512-+gMwLIkabtddIL/GICU7JmnYtvfONP+fNiTfdYLV9/I1eyCz8igKgLmFJOGM6F+BpUev6hh+/+DX5ezGQ9VTbQ==} peerDependencies: - react: '>=18' + react: 18.3.1 '@chakra-ui/icon@3.2.0': resolution: {integrity: sha512-xxjGLvlX2Ys4H0iHrI16t74rG9EBcpFvJ3Y3B7KMQTrnW34Kf7Da/UC8J67Gtx85mTHW020ml85SVPKORWNNKQ==} peerDependencies: '@chakra-ui/system': '>=2.0.0' - react: '>=18' + react: 18.3.1 '@chakra-ui/icons@2.1.1': resolution: {integrity: sha512-3p30hdo4LlRZTT5CwoAJq3G9fHI0wDc0pBaMHj4SUn0yomO+RcDRlzhdXqdr5cVnzax44sqXJVnf3oQG0eI+4g==} peerDependencies: '@chakra-ui/system': '>=2.0.0' - react: '>=18' + react: 18.3.1 '@chakra-ui/next-js@2.4.2': resolution: {integrity: sha512-loo82RyPbMyvJwRhhZVZovut9v2hFBSkqd1vQoNXgMrCRApLwrrttu5Iuodns15gLE3mqI+it5oEhxTtO5DrxA==} @@ -1935,7 +1938,7 @@ packages: '@chakra-ui/react': '>=2.4.0' '@emotion/react': '>=11' next: '>=13' - react: '>=18' + react: 18.3.1 '@chakra-ui/object-utils@2.1.0': resolution: {integrity: sha512-tgIZOgLHaoti5PYGPTwK3t/cqtcycW0owaiOXoZOcpwwX/vlVb+H1jFsQyWiiwQVPt9RkoSLtxzXamx+aHH+bQ==} @@ -1943,12 +1946,12 @@ packages: '@chakra-ui/react-use-safe-layout-effect@2.1.0': resolution: {integrity: sha512-Knbrrx/bcPwVS1TorFdzrK/zWA8yuU/eaXDkNj24IrKoRlQrSBFarcgAEzlCHtzuhufP3OULPkELTzz91b0tCw==} peerDependencies: - react: '>=18' + react: 18.3.1 '@chakra-ui/react-utils@2.0.12': resolution: {integrity: sha512-GbSfVb283+YA3kA8w8xWmzbjNWk14uhNpntnipHCftBibl0lxtQ9YqMFQLwuFOO0U2gYVocszqqDWX+XNKq9hw==} peerDependencies: - react: '>=18' + react: 18.3.1 '@chakra-ui/react@2.10.7': resolution: {integrity: sha512-GX1dCmnvrxxyZEofDX9GMAtRakZJKnUqFM9k8qhaycPaeyfkiTNNTjhPNX917hgVx1yhC3kcJOs5IeC7yW56/g==} @@ -1956,8 +1959,8 @@ packages: '@emotion/react': '>=11' '@emotion/styled': '>=11' framer-motion: '>=4.0.0' - react: '>=18' - react-dom: '>=18' + react: 18.3.1 + react-dom: 18.3.1 '@chakra-ui/shared-utils@2.0.5': resolution: {integrity: sha512-4/Wur0FqDov7Y0nCXl7HbHzCg4aq86h+SXdoUeuCMD3dSj7dpsVnStLYhng1vxvlbUnLpdF4oz5Myt3i/a7N3Q==} @@ -1973,7 +1976,7 @@ packages: peerDependencies: '@emotion/react': ^11.0.0 '@emotion/styled': ^11.0.0 - react: '>=18' + react: 18.3.1 '@chakra-ui/theme-tools@2.1.1': resolution: {integrity: sha512-n14L5L3ej3Zy+Xm/kDKO1G6/DkmieT7Li1C7NzMRcUj5C9YybQpyo7IZZ0BBUh3u+OVnKVhNC3d4P2NYDGRXmA==} @@ -2004,7 +2007,7 @@ packages: '@chakra-ui/utils@2.2.4': resolution: {integrity: sha512-nRpR9SnX7aLcJx7lKu8kgQWxdJso1oR/78HcBI+mzidvWdTykbTGdm5Q2R7S0PVH1IFBzBTgi6TiAjHvu96auA==} peerDependencies: - react: '>=16.8.0' + react: 18.3.1 '@codemirror/autocomplete@6.19.0': resolution: {integrity: sha512-61Hfv3cF07XvUxNeC3E7jhG8XNi1Yom1G0lRC936oLnlF+jrbrv8rc/J98XlYzcsAoTVupfsf5fLej1aI8kyIg==} @@ -2117,7 +2120,7 @@ packages: resolution: {integrity: sha512-5mlW1DquU5HaxjLkfkGN1GA/fvVGdyHURRiX/0FHl2cfIfRxSOfmxEH5YS43edp0OldZrZ+dkBKbngxcNCdZvA==} peerDependencies: '@types/react': '*' - react: '>=16.8.0' + react: 18.3.1 peerDependenciesMeta: '@types/react': optional: true @@ -2133,7 +2136,7 @@ packages: peerDependencies: '@emotion/react': ^11.0.0-rc.0 '@types/react': '*' - react: '>=16.8.0' + react: 18.3.1 peerDependenciesMeta: '@types/react': optional: true @@ -2144,7 +2147,7 @@ packages: '@emotion/use-insertion-effect-with-fallbacks@1.2.0': resolution: {integrity: sha512-yJMtVdH59sxi/aVJBpk9FQq+OR8ll5GT8oWd57UpeaKEVGab41JWaCFA7FRLoMLloOZF/c/wsPoe+bfGmRKgDg==} peerDependencies: - react: '>=16.8.0' + react: 18.3.1 '@emotion/utils@1.4.2': resolution: {integrity: sha512-3vLclRofFziIa3J2wDh9jjbkUz9qk5Vi3IZ/FSTKViB0k+ef0fPV7dYrUIugbgupYDx7v9ud/SjrtEP8Y4xLoA==} @@ -2771,89 +2774,105 @@ packages: resolution: {integrity: sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw==} cpu: [arm64] os: [linux] + libc: [glibc] '@img/sharp-libvips-linux-arm@1.2.4': resolution: {integrity: sha512-bFI7xcKFELdiNCVov8e44Ia4u2byA+l3XtsAj+Q8tfCwO6BQ8iDojYdvoPMqsKDkuoOo+X6HZA0s0q11ANMQ8A==} cpu: [arm] os: [linux] + libc: [glibc] '@img/sharp-libvips-linux-ppc64@1.2.4': resolution: {integrity: sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA==} cpu: [ppc64] os: [linux] + libc: [glibc] '@img/sharp-libvips-linux-riscv64@1.2.4': resolution: {integrity: sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA==} cpu: [riscv64] os: [linux] + libc: [glibc] '@img/sharp-libvips-linux-s390x@1.2.4': resolution: {integrity: sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ==} cpu: [s390x] os: [linux] + libc: [glibc] '@img/sharp-libvips-linux-x64@1.2.4': resolution: {integrity: sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw==} cpu: [x64] os: [linux] + libc: [glibc] '@img/sharp-libvips-linuxmusl-arm64@1.2.4': resolution: {integrity: sha512-FVQHuwx1IIuNow9QAbYUzJ+En8KcVm9Lk5+uGUQJHaZmMECZmOlix9HnH7n1TRkXMS0pGxIJokIVB9SuqZGGXw==} cpu: [arm64] os: [linux] + libc: [musl] '@img/sharp-libvips-linuxmusl-x64@1.2.4': resolution: {integrity: sha512-+LpyBk7L44ZIXwz/VYfglaX/okxezESc6UxDSoyo2Ks6Jxc4Y7sGjpgU9s4PMgqgjj1gZCylTieNamqA1MF7Dg==} cpu: [x64] os: [linux] + libc: [musl] '@img/sharp-linux-arm64@0.34.5': resolution: {integrity: sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [arm64] os: [linux] + libc: [glibc] '@img/sharp-linux-arm@0.34.5': resolution: {integrity: sha512-9dLqsvwtg1uuXBGZKsxem9595+ujv0sJ6Vi8wcTANSFpwV/GONat5eCkzQo/1O6zRIkh0m/8+5BjrRr7jDUSZw==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [arm] os: [linux] + libc: [glibc] '@img/sharp-linux-ppc64@0.34.5': resolution: {integrity: sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [ppc64] os: [linux] + libc: [glibc] '@img/sharp-linux-riscv64@0.34.5': resolution: {integrity: sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [riscv64] os: [linux] + libc: [glibc] '@img/sharp-linux-s390x@0.34.5': resolution: {integrity: sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [s390x] os: [linux] + libc: [glibc] '@img/sharp-linux-x64@0.34.5': resolution: {integrity: sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [x64] os: [linux] + libc: [glibc] '@img/sharp-linuxmusl-arm64@0.34.5': resolution: {integrity: sha512-fprJR6GtRsMt6Kyfq44IsChVZeGN97gTD331weR1ex1c1rypDEABN6Tm2xa1wE6lYb5DdEnk03NZPqA7Id21yg==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [arm64] os: [linux] + libc: [musl] '@img/sharp-linuxmusl-x64@0.34.5': resolution: {integrity: sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [x64] os: [linux] + libc: [musl] '@img/sharp-wasm32@0.34.5': resolution: {integrity: sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw==} @@ -3085,8 +3104,8 @@ packages: resolution: {integrity: sha512-Pto4wsVwrnY94tzcCXP2kWukQejSRPDfwOPd+EFh8dUzj+L7fa9Pze2wVgCRZpEohwfbcgAdEsvmSbhz+yGkog==} peerDependencies: lexical: 0.12.6 - react: '>=17.x' - react-dom: '>=17.x' + react: 18.3.1 + react-dom: 18.3.1 '@lexical/rich-text@0.12.6': resolution: {integrity: sha512-fRZHy2ug6Pq+pJK7trr9phTGaD2ba3If8o36dphOsl27MtUllpz68lcXL6mUonzJhAu4um1e9u7GFR3dLp+cVA==} @@ -3198,8 +3217,8 @@ packages: resolution: {integrity: sha512-cyzXQCtO47ydzxpQtCGSQGOC8Gk3ZUeBXFAxD+CWXYFo5OqZyZUonFl0DwUlTyAfRHntBfw2p3w4s9R6oe1eCA==} peerDependencies: monaco-editor: '>= 0.25.0 < 1' - react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 - react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + react: 18.3.1 + react-dom: 18.3.1 '@mongodb-js/saslprep@1.2.0': resolution: {integrity: sha512-+ywrb0AqkfaYuhHs6LxKWgqbh3I72EpEgESCw37o+9qPx9WTCkgDm2B+eMrwehGtHBWHFU4GXvnSCNiFhhausg==} @@ -3263,30 +3282,35 @@ packages: engines: {node: '>= 10'} cpu: [arm64] os: [linux] + libc: [glibc] '@napi-rs/canvas-linux-arm64-musl@0.1.69': resolution: {integrity: sha512-a3xjNRIeK2m2ZORGv2moBvv3vbkaFZG1QKMeiEv/BKij+rkztuEhTJGMar+buICFgS0fLgphXXsKNkUSJb7eRQ==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] + libc: [musl] '@napi-rs/canvas-linux-riscv64-gnu@0.1.69': resolution: {integrity: sha512-pClUoJF5wdC9AvD0mc15G9JffL1Q85nuH1rLSQPRkGmGmQOtRjw5E9xNbanz7oFUiPbjH7xcAXUjVAcf7tdgPQ==} engines: {node: '>= 10'} cpu: [riscv64] os: [linux] + libc: [glibc] '@napi-rs/canvas-linux-x64-gnu@0.1.69': resolution: {integrity: sha512-96X3bFAmzemfw84Ts6Jg/omL86uuynvK06MWGR/mp3JYNumY9RXofA14eF/kJIYelbYFWXcwpbcBR71lJ6G/YQ==} engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [glibc] '@napi-rs/canvas-linux-x64-musl@0.1.69': resolution: {integrity: sha512-2QTsEFO72Kwkj53W9hc5y1FAUvdGx0V+pjJB+9oQF6Ys9+y989GyPIl5wZDzeh8nIJW6koZZ1eFa8pD+pA5BFQ==} engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [musl] '@napi-rs/canvas-win32-x64-msvc@0.1.69': resolution: {integrity: sha512-Q4YA8kVnKarApBVLu7F8icGlIfSll5Glswo5hY6gPS4Is2dCI8+ig9OeDM8RlwYevUIxKq8lZBypN8Q1iLAQ7w==} @@ -3414,116 +3438,60 @@ packages: '@next/bundle-analyzer@15.5.6': resolution: {integrity: sha512-IHeyk2s9/fVDAGDLNbBkCSG8XBabhuMajiaJggjsg4GyFIswh78DzLo5Nl5th8QTs3U/teYeczvfeV9w1Tx3qA==} - '@next/env@14.2.35': - resolution: {integrity: sha512-DuhvCtj4t9Gwrx80dmz2F4t/zKQ4ktN8WrMwOuVzkJfBilwAwGr6v16M5eI8yCuZ63H9TTuEU09Iu2HqkzFPVQ==} + '@next/env@15.5.12': + resolution: {integrity: sha512-pUvdJN1on574wQHjaBfNGDt9Mz5utDSZFsIIQkMzPgNS8ZvT4H2mwOrOIClwsQOb6EGx5M76/CZr6G8i6pSpLg==} - '@next/env@15.3.5': - resolution: {integrity: sha512-7g06v8BUVtN2njAX/r8gheoVffhiKFVt4nx74Tt6G4Hqw9HCLYQVx/GkH2qHvPtAHZaUNZ0VXAa0pQP6v1wk7g==} + '@next/eslint-plugin-next@15.5.12': + resolution: {integrity: sha512-+ZRSDFTv4aC96aMb5E41rMjysx8ApkryevnvEYZvPZO52KvkqP5rNExLUXJFr9P4s0f3oqNQR6vopCZsPWKDcQ==} - '@next/eslint-plugin-next@14.2.26': - resolution: {integrity: sha512-SPEj1O5DAVTPaWD9XPupelfT2APNIgcDYD2OzEm328BEmHaglhmYNUvxhzfJYDr12AgAfW4V3UHSV93qaeELJA==} - - '@next/eslint-plugin-next@14.2.33': - resolution: {integrity: sha512-DQTJFSvlB+9JilwqMKJ3VPByBNGxAGFTfJ7BuFj25cVcbBy7jm88KfUN+dngM4D3+UxZ8ER2ft+WH9JccMvxyg==} - - '@next/swc-darwin-arm64@14.2.33': - resolution: {integrity: sha512-HqYnb6pxlsshoSTubdXKu15g3iivcbsMXg4bYpjL2iS/V6aQot+iyF4BUc2qA/J/n55YtvE4PHMKWBKGCF/+wA==} + '@next/swc-darwin-arm64@15.5.12': + resolution: {integrity: sha512-RnRjBtH8S8eXCpUNkQ+543DUc7ys8y15VxmFU9HRqlo9BG3CcBUiwNtF8SNoi2xvGCVJq1vl2yYq+3oISBS0Zg==} engines: {node: '>= 10'} cpu: [arm64] os: [darwin] - '@next/swc-darwin-arm64@15.3.5': - resolution: {integrity: sha512-lM/8tilIsqBq+2nq9kbTW19vfwFve0NR7MxfkuSUbRSgXlMQoJYg+31+++XwKVSXk4uT23G2eF/7BRIKdn8t8w==} - engines: {node: '>= 10'} - cpu: [arm64] - os: [darwin] - - '@next/swc-darwin-x64@14.2.33': - resolution: {integrity: sha512-8HGBeAE5rX3jzKvF593XTTFg3gxeU4f+UWnswa6JPhzaR6+zblO5+fjltJWIZc4aUalqTclvN2QtTC37LxvZAA==} + '@next/swc-darwin-x64@15.5.12': + resolution: {integrity: sha512-nqa9/7iQlboF1EFtNhWxQA0rQstmYRSBGxSM6g3GxvxHxcoeqVXfGNr9stJOme674m2V7r4E3+jEhhGvSQhJRA==} engines: {node: '>= 10'} cpu: [x64] os: [darwin] - '@next/swc-darwin-x64@15.3.5': - resolution: {integrity: sha512-WhwegPQJ5IfoUNZUVsI9TRAlKpjGVK0tpJTL6KeiC4cux9774NYE9Wu/iCfIkL/5J8rPAkqZpG7n+EfiAfidXA==} - engines: {node: '>= 10'} - cpu: [x64] - os: [darwin] - - '@next/swc-linux-arm64-gnu@14.2.33': - resolution: {integrity: sha512-JXMBka6lNNmqbkvcTtaX8Gu5by9547bukHQvPoLe9VRBx1gHwzf5tdt4AaezW85HAB3pikcvyqBToRTDA4DeLw==} + '@next/swc-linux-arm64-gnu@15.5.12': + resolution: {integrity: sha512-dCzAjqhDHwmoB2M4eYfVKqXs99QdQxNQVpftvP1eGVppamXh/OkDAwV737Zr0KPXEqRUMN4uCjh6mjO+XtF3Mw==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] + libc: [glibc] - '@next/swc-linux-arm64-gnu@15.3.5': - resolution: {integrity: sha512-LVD6uMOZ7XePg3KWYdGuzuvVboxujGjbcuP2jsPAN3MnLdLoZUXKRc6ixxfs03RH7qBdEHCZjyLP/jBdCJVRJQ==} + '@next/swc-linux-arm64-musl@15.5.12': + resolution: {integrity: sha512-+fpGWvQiITgf7PUtbWY1H7qUSnBZsPPLyyq03QuAKpVoTy/QUx1JptEDTQMVvQhvizCEuNLEeghrQUyXQOekuw==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] + libc: [musl] - '@next/swc-linux-arm64-musl@14.2.33': - resolution: {integrity: sha512-Bm+QulsAItD/x6Ih8wGIMfRJy4G73tu1HJsrccPW6AfqdZd0Sfm5Imhgkgq2+kly065rYMnCOxTBvmvFY1BKfg==} - engines: {node: '>= 10'} - cpu: [arm64] - os: [linux] - - '@next/swc-linux-arm64-musl@15.3.5': - resolution: {integrity: sha512-k8aVScYZ++BnS2P69ClK7v4nOu702jcF9AIHKu6llhHEtBSmM2zkPGl9yoqbSU/657IIIb0QHpdxEr0iW9z53A==} - engines: {node: '>= 10'} - cpu: [arm64] - os: [linux] - - '@next/swc-linux-x64-gnu@14.2.33': - resolution: {integrity: sha512-FnFn+ZBgsVMbGDsTqo8zsnRzydvsGV8vfiWwUo1LD8FTmPTdV+otGSWKc4LJec0oSexFnCYVO4hX8P8qQKaSlg==} + '@next/swc-linux-x64-gnu@15.5.12': + resolution: {integrity: sha512-jSLvgdRRL/hrFAPqEjJf1fFguC719kmcptjNVDJl26BnJIpjL3KH5h6mzR4mAweociLQaqvt4UyzfbFjgAdDcw==} engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [glibc] - '@next/swc-linux-x64-gnu@15.3.5': - resolution: {integrity: sha512-2xYU0DI9DGN/bAHzVwADid22ba5d/xrbrQlr2U+/Q5WkFUzeL0TDR963BdrtLS/4bMmKZGptLeg6282H/S2i8A==} + '@next/swc-linux-x64-musl@15.5.12': + resolution: {integrity: sha512-/uaF0WfmYqQgLfPmN6BvULwxY0dufI2mlN2JbOKqqceZh1G4hjREyi7pg03zjfyS6eqNemHAZPSoP84x17vo6w==} engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [musl] - '@next/swc-linux-x64-musl@14.2.33': - resolution: {integrity: sha512-345tsIWMzoXaQndUTDv1qypDRiebFxGYx9pYkhwY4hBRaOLt8UGfiWKr9FSSHs25dFIf8ZqIFaPdy5MljdoawA==} - engines: {node: '>= 10'} - cpu: [x64] - os: [linux] - - '@next/swc-linux-x64-musl@15.3.5': - resolution: {integrity: sha512-TRYIqAGf1KCbuAB0gjhdn5Ytd8fV+wJSM2Nh2is/xEqR8PZHxfQuaiNhoF50XfY90sNpaRMaGhF6E+qjV1b9Tg==} - engines: {node: '>= 10'} - cpu: [x64] - os: [linux] - - '@next/swc-win32-arm64-msvc@14.2.33': - resolution: {integrity: sha512-nscpt0G6UCTkrT2ppnJnFsYbPDQwmum4GNXYTeoTIdsmMydSKFz9Iny2jpaRupTb+Wl298+Rh82WKzt9LCcqSQ==} + '@next/swc-win32-arm64-msvc@15.5.12': + resolution: {integrity: sha512-xhsL1OvQSfGmlL5RbOmU+FV120urrgFpYLq+6U8C6KIym32gZT6XF/SDE92jKzzlPWskkbjOKCpqk5m4i8PEfg==} engines: {node: '>= 10'} cpu: [arm64] os: [win32] - '@next/swc-win32-arm64-msvc@15.3.5': - resolution: {integrity: sha512-h04/7iMEUSMY6fDGCvdanKqlO1qYvzNxntZlCzfE8i5P0uqzVQWQquU1TIhlz0VqGQGXLrFDuTJVONpqGqjGKQ==} - engines: {node: '>= 10'} - cpu: [arm64] - os: [win32] - - '@next/swc-win32-ia32-msvc@14.2.33': - resolution: {integrity: sha512-pc9LpGNKhJ0dXQhZ5QMmYxtARwwmWLpeocFmVG5Z0DzWq5Uf0izcI8tLc+qOpqxO1PWqZ5A7J1blrUIKrIFc7Q==} - engines: {node: '>= 10'} - cpu: [ia32] - os: [win32] - - '@next/swc-win32-x64-msvc@14.2.33': - resolution: {integrity: sha512-nOjfZMy8B94MdisuzZo9/57xuFVLHJaDj5e/xrduJp9CV2/HrfxTRH2fbyLe+K9QT41WBLUd4iXX3R7jBp0EUg==} - engines: {node: '>= 10'} - cpu: [x64] - os: [win32] - - '@next/swc-win32-x64-msvc@15.3.5': - resolution: {integrity: sha512-5fhH6fccXxnX2KhllnGhkYMndhOiLOLEiVGYjP2nizqeGWkN10sA9taATlXwake2E2XMvYZjjz0Uj7T0y+z1yw==} + '@next/swc-win32-x64-msvc@15.5.12': + resolution: {integrity: sha512-Z1Dh6lhFkxvBDH1FoW6OU/L6prYwPSlwjLiZkExIAh8fbP6iI/M7iGTQAJPYJ9YFlWobCZ1PHbchFhFYb2ADkw==} engines: {node: '>= 10'} cpu: [x64] os: [win32] @@ -3569,24 +3537,28 @@ packages: engines: {node: '>= 10'} cpu: [arm64] os: [linux] + libc: [glibc] '@node-rs/jieba-linux-arm64-musl@2.0.1': resolution: {integrity: sha512-K4EDyNixSLVdTNYnHwD+7I/ytvzpo7tt+vdCLqwQViiek2PMpL/FFRvA39uU2tk99jXIxvkczdxARG20BRZppg==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] + libc: [musl] '@node-rs/jieba-linux-x64-gnu@2.0.1': resolution: {integrity: sha512-sq3J6L2ANTE25I9eVFq/nb57OtXcvUIeUD1CTKJxwgTKIVmcB2LyOZpWf20AjHRUfbMER9Klqg5dgyyO+Six+w==} engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [glibc] '@node-rs/jieba-linux-x64-musl@2.0.1': resolution: {integrity: sha512-0zfP9Qy68yEXrhBFknfhF6WUJDPU/8eRuyIrkMGdMjfRpxhpSbr2fMfnsqhOQLvhuK4w3iDFvTy4t5d0s6JKMA==} engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [musl] '@node-rs/jieba-wasm32-wasi@2.0.1': resolution: {integrity: sha512-7I5rJya5rlQNJIhv8PvPzIVT1/gVc0vFzHmlfRGwCPGDJ3tHVxkSPW34dDx3OgDmbIeadNpmgIyC1RaS9djPJg==} @@ -3841,21 +3813,25 @@ packages: resolution: {integrity: sha512-l/0pWoQM5kVmJLg4frQ1mKZOXgi0ex/hzvFt8E4WK2ifXr5JgKFUokxsb/oat7f5YzdJJh5r9p+qS/t3dA26Aw==} cpu: [arm64] os: [linux] + libc: [glibc] '@oxc-resolver/binding-linux-arm64-musl@5.0.0': resolution: {integrity: sha512-bx0oz/oaAW4FGYqpIIxJCnmgb906YfMhTEWCJvYkxjpEI8VKLJEL3PQevYiqDq36SA0yRLJ/sQK2fqry8AFBfA==} cpu: [arm64] os: [linux] + libc: [musl] '@oxc-resolver/binding-linux-x64-gnu@5.0.0': resolution: {integrity: sha512-4PH++qbSIhlRsFYdN1P9neDov4OGhTGo5nbQ1D7AL6gWFLo3gdZTc00FM2y8JjeTcPWEXkViZuwpuc0w5i6qHg==} cpu: [x64] os: [linux] + libc: [glibc] '@oxc-resolver/binding-linux-x64-musl@5.0.0': resolution: {integrity: sha512-mLfQFpX3/5y9oWi0b+9FbWDkL2hM0Y29653beCHiHxAdGyVgb2DsJbK74WkMTwtSz9by8vyBh8jGPZcg1yLZbQ==} cpu: [x64] os: [linux] + libc: [musl] '@oxc-resolver/binding-wasm32-wasi@5.0.0': resolution: {integrity: sha512-uEhsAZSo65qsRi6+IfBTEUUFbjg7T2yruJeLYpFfEATpm3ory5Mgo5vx3L0c2/Cz1OUZXBgp3A8x6VMUB2jT2A==} @@ -3901,36 +3877,42 @@ packages: engines: {node: '>= 10.0.0'} cpu: [arm] os: [linux] + libc: [glibc] '@parcel/watcher-linux-arm-musl@2.5.1': resolution: {integrity: sha512-6E+m/Mm1t1yhB8X412stiKFG3XykmgdIOqhjWj+VL8oHkKABfu/gjFj8DvLrYVHSBNC+/u5PeNrujiSQ1zwd1Q==} engines: {node: '>= 10.0.0'} cpu: [arm] os: [linux] + libc: [musl] '@parcel/watcher-linux-arm64-glibc@2.5.1': resolution: {integrity: sha512-LrGp+f02yU3BN9A+DGuY3v3bmnFUggAITBGriZHUREfNEzZh/GO06FF5u2kx8x+GBEUYfyTGamol4j3m9ANe8w==} engines: {node: '>= 10.0.0'} cpu: [arm64] os: [linux] + libc: [glibc] '@parcel/watcher-linux-arm64-musl@2.5.1': resolution: {integrity: sha512-cFOjABi92pMYRXS7AcQv9/M1YuKRw8SZniCDw0ssQb/noPkRzA+HBDkwmyOJYp5wXcsTrhxO0zq1U11cK9jsFg==} engines: {node: '>= 10.0.0'} cpu: [arm64] os: [linux] + libc: [musl] '@parcel/watcher-linux-x64-glibc@2.5.1': resolution: {integrity: sha512-GcESn8NZySmfwlTsIur+49yDqSny2IhPeZfXunQi48DMugKeZ7uy1FX83pO0X22sHntJ4Ub+9k34XQCX+oHt2A==} engines: {node: '>= 10.0.0'} cpu: [x64] os: [linux] + libc: [glibc] '@parcel/watcher-linux-x64-musl@2.5.1': resolution: {integrity: sha512-n0E2EQbatQ3bXhcH2D1XIAANAcTZkQICBPVaxMeaCVBtOpBZpWJuf7LwyWPSBDITb7In8mqQgJ7gH8CILCURXg==} engines: {node: '>= 10.0.0'} cpu: [x64] os: [linux] + libc: [musl] '@parcel/watcher-win32-arm64@2.5.1': resolution: {integrity: sha512-RFzklRvmc3PkjKjry3hLF9wD7ppR4AKcWNzH7kXR7GUe0Igb3Nz8fyPwtZCSquGrhU5HhUNDr/mKBqj7tqA2Vw==} @@ -4018,38 +4000,38 @@ packages: '@reactflow/background@11.3.14': resolution: {integrity: sha512-Gewd7blEVT5Lh6jqrvOgd4G6Qk17eGKQfsDXgyRSqM+CTwDqRldG2LsWN4sNeno6sbqVIC2fZ+rAUBFA9ZEUDA==} peerDependencies: - react: '>=17' - react-dom: '>=17' + react: 18.3.1 + react-dom: 18.3.1 '@reactflow/controls@11.2.14': resolution: {integrity: sha512-MiJp5VldFD7FrqaBNIrQ85dxChrG6ivuZ+dcFhPQUwOK3HfYgX2RHdBua+gx+40p5Vw5It3dVNp/my4Z3jF0dw==} peerDependencies: - react: '>=17' - react-dom: '>=17' + react: 18.3.1 + react-dom: 18.3.1 '@reactflow/core@11.11.4': resolution: {integrity: sha512-H4vODklsjAq3AMq6Np4LE12i1I4Ta9PrDHuBR9GmL8uzTt2l2jh4CiQbEMpvMDcp7xi4be0hgXj+Ysodde/i7Q==} peerDependencies: - react: '>=17' - react-dom: '>=17' + react: 18.3.1 + react-dom: 18.3.1 '@reactflow/minimap@11.7.14': resolution: {integrity: sha512-mpwLKKrEAofgFJdkhwR5UQ1JYWlcAAL/ZU/bctBkuNTT1yqV+y0buoNVImsRehVYhJwffSWeSHaBR5/GJjlCSQ==} peerDependencies: - react: '>=17' - react-dom: '>=17' + react: 18.3.1 + react-dom: 18.3.1 '@reactflow/node-resizer@2.2.14': resolution: {integrity: sha512-fwqnks83jUlYr6OHcdFEedumWKChTHRGw/kbCxj0oqBd+ekfs+SIp4ddyNU0pdx96JIm5iNFS0oNrmEiJbbSaA==} peerDependencies: - react: '>=17' - react-dom: '>=17' + react: 18.3.1 + react-dom: 18.3.1 '@reactflow/node-toolbar@1.3.14': resolution: {integrity: sha512-rbynXQnH/xFNu4P9H+hVqlEUafDCkEoCy0Dg9mG22Sg+rY/0ck6KkrAQrYrTgXusd+cEJOMK0uOOFCK2/5rSGQ==} peerDependencies: - react: '>=17' - react-dom: '>=17' + react: 18.3.1 + react-dom: 18.3.1 '@replit/codemirror-css-color-picker@6.3.0': resolution: {integrity: sha512-19biDANghUm7Fz7L1SNMIhK48tagaWuCOHj4oPPxc7hxPGkTVY2lU/jVZ8tsbTKQPVG7BO2CBDzs7CBwb20t4A==} @@ -4093,24 +4075,28 @@ packages: engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [linux] + libc: [glibc] '@rolldown/binding-linux-arm64-musl@1.0.0-beta.55': resolution: {integrity: sha512-QbNncvqAXziya5wleI+OJvmceEE15vE4yn4qfbI/hwT/+8ZcqxyfRZOOh62KjisXxp4D0h3JZspycXYejxAU3w==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [linux] + libc: [musl] '@rolldown/binding-linux-x64-gnu@1.0.0-beta.55': resolution: {integrity: sha512-YZCTZZM+rujxwVc6A+QZaNMJXVtmabmFYLG2VGQTKaBfYGvBKUgtbMEttnp/oZ88BMi2DzadBVhOmfQV8SuHhw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [linux] + libc: [glibc] '@rolldown/binding-linux-x64-musl@1.0.0-beta.55': resolution: {integrity: sha512-28q9OQ/DDpFh2keS4BVAlc3N65/wiqKbk5K1pgLdu/uWbKa8hgUJofhXxqO+a+Ya2HVTUuYHneWsI2u+eu3N5Q==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [linux] + libc: [musl] '@rolldown/binding-openharmony-arm64@1.0.0-beta.55': resolution: {integrity: sha512-LiCA4BjCnm49B+j1lFzUtlC+4ZphBv0d0g5VqrEJua/uyv9Ey1v9tiaMql1C8c0TVSNDUmrkfHQ71vuQC7YfpQ==} @@ -4172,51 +4158,61 @@ packages: resolution: {integrity: sha512-mrA0v3QMy6ZSvEuLs0dMxcO2LnaCONs1Z73GUDBHWbY8tFFocM6yl7YyMu7rz4zS81NDSqhrUuolyZXGi8TEqg==} cpu: [arm] os: [linux] + libc: [glibc] '@rollup/rollup-linux-arm-musleabihf@4.35.0': resolution: {integrity: sha512-DnYhhzcvTAKNexIql8pFajr0PiDGrIsBYPRvCKlA5ixSS3uwo/CWNZxB09jhIapEIg945KOzcYEAGGSmTSpk7A==} cpu: [arm] os: [linux] + libc: [musl] '@rollup/rollup-linux-arm64-gnu@4.35.0': resolution: {integrity: sha512-uagpnH2M2g2b5iLsCTZ35CL1FgyuzzJQ8L9VtlJ+FckBXroTwNOaD0z0/UF+k5K3aNQjbm8LIVpxykUOQt1m/A==} cpu: [arm64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-arm64-musl@4.35.0': resolution: {integrity: sha512-XQxVOCd6VJeHQA/7YcqyV0/88N6ysSVzRjJ9I9UA/xXpEsjvAgDTgH3wQYz5bmr7SPtVK2TsP2fQ2N9L4ukoUg==} cpu: [arm64] os: [linux] + libc: [musl] '@rollup/rollup-linux-loongarch64-gnu@4.35.0': resolution: {integrity: sha512-5pMT5PzfgwcXEwOaSrqVsz/LvjDZt+vQ8RT/70yhPU06PTuq8WaHhfT1LW+cdD7mW6i/J5/XIkX/1tCAkh1W6g==} cpu: [loong64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-powerpc64le-gnu@4.35.0': resolution: {integrity: sha512-c+zkcvbhbXF98f4CtEIP1EBA/lCic5xB0lToneZYvMeKu5Kamq3O8gqrxiYYLzlZH6E3Aq+TSW86E4ay8iD8EA==} cpu: [ppc64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-riscv64-gnu@4.35.0': resolution: {integrity: sha512-s91fuAHdOwH/Tad2tzTtPX7UZyytHIRR6V4+2IGlV0Cej5rkG0R61SX4l4y9sh0JBibMiploZx3oHKPnQBKe4g==} cpu: [riscv64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-s390x-gnu@4.35.0': resolution: {integrity: sha512-hQRkPQPLYJZYGP+Hj4fR9dDBMIM7zrzJDWFEMPdTnTy95Ljnv0/4w/ixFw3pTBMEuuEuoqtBINYND4M7ujcuQw==} cpu: [s390x] os: [linux] + libc: [glibc] '@rollup/rollup-linux-x64-gnu@4.35.0': resolution: {integrity: sha512-Pim1T8rXOri+0HmV4CdKSGrqcBWX0d1HoPnQ0uw0bdp1aP5SdQVNBy8LjYncvnLgu3fnnCt17xjWGd4cqh8/hA==} cpu: [x64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-x64-musl@4.35.0': resolution: {integrity: sha512-QysqXzYiDvQWfUiTm8XmJNO2zm9yC9P/2Gkrwg2dH9cxotQzunBHYr6jk4SujCTqnfGxduOmQcI7c2ryuW8XVg==} cpu: [x64] os: [linux] + libc: [musl] '@rollup/rollup-win32-arm64-msvc@4.35.0': resolution: {integrity: sha512-OUOlGqPkVJCdJETKOCEf1mw848ZyJ5w50/rZ/3IBQVdLfR5jk/6Sr5m3iO2tdPgwo0x7VcncYuOvMhBWZq8ayg==} @@ -4251,7 +4247,7 @@ packages: resolution: {integrity: sha512-krkNq5cZLD4IEtVto5KbektfRhVTR/ZwiGq+KGOhnXlv/0kFKdkccw6WXPnzq+gXZTYNJxFcrDn60Dj3ilXQrg==} engines: {node: '>=20'} peerDependencies: - react: ^18.0.0 || ^19.0.0 + react: 18.3.1 '@scalar/api-reference@1.38.1': resolution: {integrity: sha512-1r0o1BBhfOpOI2ZTvcDffNkljL4gpzyB1prBZ1wRZ3fY1lkIdAUHzIDj+lCYL+uj0RYVJFOIWvJpmpCBW6KmIg==} @@ -4653,15 +4649,9 @@ packages: resolution: {integrity: sha512-cQ/AsnBkXPkEK8cLbv4Dm7JGXq2XrumKnL1dRpJD9rIO2fTIlJI9a1uCciYG1F2aUsox/hJQyNGbt3soDxSRkA==} engines: {node: '>=10'} - '@swc/counter@0.1.3': - resolution: {integrity: sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==} - '@swc/helpers@0.5.15': resolution: {integrity: sha512-JQ5TuMi45Owi4/BIMAJBoSQoOJu12oOk/gADqlcUL9JEdHB8vyjUSsxqeNXnmXHjYKMi2WcYtezGEEhqUI/E2g==} - '@swc/helpers@0.5.5': - resolution: {integrity: sha512-KGYxvIOXcceOAbEk4bi/dVLEK9z8sZ0uBB3Il5b1rhfClSpcX0yfRO0KmTkqR2cnQDymwLB+25ZyMzICg/cm/A==} - '@szmarczak/http-timer@5.0.1': resolution: {integrity: sha512-+PmQX0PiAYPMeVYe237LJAYvOMYW1j2rH5YROyS3b4CTVJum34HfRvKvAzozHAQG0TnHNdUfY9nCeUyRAs//cw==} engines: {node: '>=14.16'} @@ -4689,8 +4679,8 @@ packages: '@tanstack/react-query@4.36.1': resolution: {integrity: sha512-y7ySVHFyyQblPl3J3eQBWpXZkliroki3ARnBKsdJchlgt7yJLRDUcf4B8soufgiYt3pEQIkBWBx1N9/ZPIeUWw==} peerDependencies: - react: ^16.8.0 || ^17.0.0 || ^18.0.0 - react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 + react: 18.3.1 + react-dom: 18.3.1 react-native: '*' peerDependenciesMeta: react-dom: @@ -5525,8 +5515,8 @@ packages: resolution: {integrity: sha512-TrjXie49Q8HuHKTa84Fm9A+famMDAG1+7a9S9Gq6RQ0h90Jgqmiq3CkObuRjWT/C4d6nRZCw35Y2k2fmybb5eA==} engines: {node: '>=18'} peerDependencies: - react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 - react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + react: 18.3.1 + react-dom: 18.3.1 ajv-draft-04@1.0.0: resolution: {integrity: sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==} @@ -7110,19 +7100,10 @@ packages: engines: {node: '>=6.0'} hasBin: true - eslint-config-next@14.2.26: - resolution: {integrity: sha512-KZNh1xvWG1ZDFD2f2WkvvnMpp7Sjsl6xJXCsvfEe8GH1FLXn6GtXo7lY9S8xDcn6oBWmKA0hSrlrp1DNQ9QDnQ==} + eslint-config-next@15.5.12: + resolution: {integrity: sha512-ktW3XLfd+ztEltY5scJNjxjHwtKWk6vU2iwzZqSN09UsbBmMeE/cVlJ1yESg6Yx5LW7p/Z8WzUAgYXGLEmGIpg==} peerDependencies: - eslint: ^7.23.0 || ^8.0.0 - typescript: '>=3.3.1' - peerDependenciesMeta: - typescript: - optional: true - - eslint-config-next@14.2.33: - resolution: {integrity: sha512-e2W+waB+I5KuoALAtKZl3WVDU4Q1MS6gF/gdcwHh0WOAkHf4TZI6dPjd25wKhlZFAsFrVKy24Z7/IwOhn8dHBw==} - peerDependencies: - eslint: ^7.23.0 || ^8.0.0 + eslint: ^7.23.0 || ^8.0.0 || ^9.0.0 typescript: '>=3.3.1' peerDependenciesMeta: typescript: @@ -7181,11 +7162,11 @@ packages: peerDependencies: eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9 - eslint-plugin-react-hooks@5.0.0-canary-7118f5dd7-20230705: - resolution: {integrity: sha512-AZYbMo/NW9chdL7vk6HQzQhT+PvTAEVqWk9ziruUoW2kAOcN5qNyelv70e0F1VNQAbvutOC9oc+xfWycI9FxDw==} + eslint-plugin-react-hooks@5.2.0: + resolution: {integrity: sha512-+f15FfK64YQwZdJNELETdn5ibXEUQmW1DZL6KXhNnc2heoy/sg9VJJeT7n8TlMWouzWqSWavFkIhHyIbIAEapg==} engines: {node: '>=10'} peerDependencies: - eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 + eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0 eslint-plugin-react@7.37.4: resolution: {integrity: sha512-BGP0jRmfYyvOyvMoRX/uoUeW+GqNj9y16bPQzqAHf3AYII/tDs+jMN0dBVkl88/OZwNGwrVFxE7riHsXVfy/LQ==} @@ -7361,6 +7342,10 @@ packages: fast-fifo@1.3.2: resolution: {integrity: sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==} + fast-glob@3.3.1: + resolution: {integrity: sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==} + engines: {node: '>=8.6.0'} + fast-glob@3.3.3: resolution: {integrity: sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==} engines: {node: '>=8.6.0'} @@ -7423,14 +7408,6 @@ packages: fd-slicer@1.1.0: resolution: {integrity: sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==} - fdir@6.4.3: - resolution: {integrity: sha512-PMXmW2y1hDDfTSRc9gaXIuCCRpuoz3Kaz8cUelp3smouvfT632ozg2vrT6lJsHKKOF59YLbOGfAWGUcKEfRMQw==} - peerDependencies: - picomatch: ^3 || ^4 - peerDependenciesMeta: - picomatch: - optional: true - fdir@6.5.0: resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} engines: {node: '>=12.0.0'} @@ -7594,8 +7571,8 @@ packages: framer-motion@9.1.7: resolution: {integrity: sha512-nKxBkIO4IPkMEqcBbbATxsVjwPYShKl051yhBv9628iAH6JLeHD0siBHxkL62oQzMC1+GNX73XtPjgP753ufuw==} peerDependencies: - react: ^18.0.0 - react-dom: ^18.0.0 + react: 18.3.1 + react-dom: 18.3.1 framesync@6.1.2: resolution: {integrity: sha512-jBTqhX6KaQVDyus8muwZbBeGGP0XgujBRbQ7gM7BRdS3CadCZIHiawyzYLnafYcvZIh5j8WE7cxZKFn7dXhu9g==} @@ -7709,9 +7686,6 @@ packages: resolution: {integrity: sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==} engines: {node: '>= 0.4'} - get-tsconfig@4.10.0: - resolution: {integrity: sha512-kGzZ3LWWQcGIAmg6iWvXn0ei6WDtV26wzHRMwDSzmAbcXrTEXxHy6IehI6/4eT6VRKyMP1eF1VqwrVUmE/LR7A==} - get-tsconfig@4.13.0: resolution: {integrity: sha512-1VKTZJCwBrvbd+Wn3AOgQP/2Av+TfTCOlE4AcRJE72W1ksZXbAx8PPBR9RzgTeSPzlPMHrbANMH3LbltH73wxQ==} @@ -7739,12 +7713,6 @@ packages: glob-to-regexp@0.4.1: resolution: {integrity: sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==} - glob@10.3.10: - resolution: {integrity: sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==} - engines: {node: '>=16 || 14 >=14.17'} - deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me - hasBin: true - glob@10.4.5: resolution: {integrity: sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==} deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me @@ -8455,10 +8423,6 @@ packages: resolution: {integrity: sha512-H0dkQoCa3b2VEeKQBOxFph+JAbcrQdE7KC0UkqwpLmv2EC4P41QXP+rqo9wYodACiG5/WM5s9oDApTU8utwj9g==} engines: {node: '>= 0.4'} - jackspeak@2.3.6: - resolution: {integrity: sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==} - engines: {node: '>=14'} - jackspeak@3.4.3: resolution: {integrity: sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==} @@ -8795,7 +8759,7 @@ packages: resolution: {integrity: sha512-99nmbZ2DVwqYiqSVgH8lF9UoM7glIYSdG3WzE3Z2nZbJKoFyZPvRRk7Czq05b32nqcAALwzk3zqVOZmDIn1rqQ==} engines: {node: '>=18'} peerDependencies: - react: ^18 || ^19 + react: 18.3.1 peerDependenciesMeta: react: optional: true @@ -8872,24 +8836,28 @@ packages: engines: {node: '>= 12.0.0'} cpu: [arm64] os: [linux] + libc: [glibc] lightningcss-linux-arm64-musl@1.30.1: resolution: {integrity: sha512-jmUQVx4331m6LIX+0wUhBbmMX7TCfjF5FoOH6SD1CttzuYlGNVpA7QnrmLxrsub43ClTINfGSYyHe2HWeLl5CQ==} engines: {node: '>= 12.0.0'} cpu: [arm64] os: [linux] + libc: [musl] lightningcss-linux-x64-gnu@1.30.1: resolution: {integrity: sha512-piWx3z4wN8J8z3+O5kO74+yr6ze/dKmPnI7vLqfSqI8bccaTGY5xiSGVIJBDd5K5BHlvVLpUB3S2YCfelyJ1bw==} engines: {node: '>= 12.0.0'} cpu: [x64] os: [linux] + libc: [glibc] lightningcss-linux-x64-musl@1.30.1: resolution: {integrity: sha512-rRomAK7eIkL+tHY0YPxbc5Dra2gXlI63HL+v1Pdi1a3sC+tJTcFrHX+E86sulgAXeI7rSzDYhPSeHHjqFhqfeQ==} engines: {node: '>= 12.0.0'} cpu: [x64] os: [linux] + libc: [musl] lightningcss-win32-arm64-msvc@1.30.1: resolution: {integrity: sha512-mSL4rqPi4iXq5YVqzSsJgMVFENoa4nGTT/GjO2c0Yl9OuQfPsIfncvLrEW6RbbB24WtZ3xP/2CCmI3tNkNV4oA==} @@ -9672,38 +9640,19 @@ packages: peerDependencies: i18next: '>= 23.7.13' next: '>= 12.0.0' - react: '>= 17.0.2' + react: 18.3.1 react-i18next: '>= 13.5.0' - next@14.2.35: - resolution: {integrity: sha512-KhYd2Hjt/O1/1aZVX3dCwGXM1QmOV4eNM2UTacK5gipDdPN/oHHK/4oVGy7X8GMfPMsUTUEmGlsy0EY1YGAkig==} - engines: {node: '>=18.17.0'} - hasBin: true - peerDependencies: - '@opentelemetry/api': ^1.1.0 - '@playwright/test': ^1.41.2 - react: ^18.2.0 - react-dom: ^18.2.0 - sass: ^1.3.0 - peerDependenciesMeta: - '@opentelemetry/api': - optional: true - '@playwright/test': - optional: true - sass: - optional: true - - next@15.3.5: - resolution: {integrity: sha512-RkazLBMMDJSJ4XZQ81kolSpwiCt907l0xcgcpF4xC2Vml6QVcPNXW0NQRwQ80FFtSn7UM52XN0anaw8TEJXaiw==} + next@15.5.12: + resolution: {integrity: sha512-Fi/wQ4Etlrn60rz78bebG1i1SR20QxvV8tVp6iJspjLUSHcZoeUXCt+vmWoEcza85ElZzExK/jJ/F6SvtGktjA==} engines: {node: ^18.18.0 || ^19.8.0 || >= 20.0.0} - deprecated: This version has a security vulnerability. Please upgrade to a patched version. See https://nextjs.org/blog/CVE-2025-66478 for more details. hasBin: true peerDependencies: '@opentelemetry/api': ^1.1.0 - '@playwright/test': ^1.41.2 + '@playwright/test': ^1.51.1 babel-plugin-react-compiler: '*' - react: ^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0 - react-dom: ^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0 + react: 18.3.1 + react-dom: 18.3.1 sass: ^1.3.0 peerDependenciesMeta: '@opentelemetry/api': @@ -10510,35 +10459,35 @@ packages: resolution: {integrity: sha512-0Lvs4tq2VcrEjEgDXHjT98r+63drkKEgqyxdA7qD3mvKwga6a5SscbdLPO2IExotU1jW8L0Ksdl0Cj2AF67nPQ==} deprecated: 'react-beautiful-dnd is now deprecated. Context and options: https://github.com/atlassian/react-beautiful-dnd/issues/2672' peerDependencies: - react: ^16.8.5 || ^17.0.0 || ^18.0.0 - react-dom: ^16.8.5 || ^17.0.0 || ^18.0.0 + react: 18.3.1 + react-dom: 18.3.1 react-clientside-effect@1.2.7: resolution: {integrity: sha512-gce9m0Pk/xYYMEojRI9bgvqQAkl6hm7ozQvqWPyQx+kULiatdHgkNM1QG4DQRx5N9BAzWSCJmt9mMV8/KsdgVg==} peerDependencies: - react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc + react: 18.3.1 react-day-picker@8.10.1: resolution: {integrity: sha512-TMx7fNbhLk15eqcMt+7Z7S2KF7mfTId/XJDjKE8f+IUcFn0l08/kI4FiYTL/0yuOLmEcbR4Fwe3GJf/NiiMnPA==} peerDependencies: date-fns: ^2.28.0 || ^3.0.0 - react: ^16.8.0 || ^17.0.0 || ^18.0.0 + react: 18.3.1 react-dom@18.3.1: resolution: {integrity: sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==} peerDependencies: - react: ^18.3.1 + react: 18.3.1 react-dom@19.1.1: resolution: {integrity: sha512-Dlq/5LAZgF0Gaz6yiqZCf6VCcZs1ghAJyrsu84Q/GT0gV+mCxbfmKNoGRKBYMJ8IEdGPqu49YWXD02GCknEDkw==} peerDependencies: - react: ^19.1.1 + react: 18.3.1 react-error-boundary@3.1.4: resolution: {integrity: sha512-uM9uPzZJTF6wRQORmSrvOIgt4lJ9MC1sNgEOj2XGsDTRE4kmpWxg7ENK9EWNKJRMAOY9z0MuF4yIfl6gp4sotA==} engines: {node: '>=10', npm: '>=6'} peerDependencies: - react: '>=16.13.1' + react: 18.3.1 react-fast-compare@3.2.2: resolution: {integrity: sha512-nsO+KSNgo1SbJqJEYRE9ERzo7YtYbou/OqjSQKxV7jcKox7+usiUVZOAC+XnDOABXggQTno0Y1CpVnuWEc1boQ==} @@ -10546,8 +10495,8 @@ packages: react-focus-lock@2.13.6: resolution: {integrity: sha512-ehylFFWyYtBKXjAO9+3v8d0i+cnc1trGS0vlTGhzFW1vbFXVUTmR8s2tt/ZQG8x5hElg6rhENlLG1H3EZK0Llg==} peerDependencies: - '@types/react': '*' - react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc + '@types/react': 18.3.1 + react: 18.3.1 peerDependenciesMeta: '@types/react': optional: true @@ -10556,13 +10505,13 @@ packages: resolution: {integrity: sha512-+s3+s8LLytRMriwwuSqeLStVjRXFGxgjjx2jED7Z+wz1J/88vpxieRQGvJVvzrzVxshZ0BRuocFERb779m2kNg==} engines: {node: '>=12.22.0'} peerDependencies: - react: ^16.8.0 || ^17 || ^18 + react: 18.3.1 react-i18next@14.1.2: resolution: {integrity: sha512-FSIcJy6oauJbGEXfhUgVeLzvWBhIBIS+/9c6Lj4niwKZyGaGb4V4vUbATXSlsHJDXXB+ociNxqFNiFuV1gmoqg==} peerDependencies: i18next: '>= 23.2.3' - react: '>= 16.8.0' + react: 18.3.1 react-dom: '*' react-native: '*' peerDependenciesMeta: @@ -10583,19 +10532,19 @@ packages: react-markdown@9.1.0: resolution: {integrity: sha512-xaijuJB0kzGiUdG7nc2MOMDUDBWPyGAjZtUrow9XxUeua8IqeP+VlIfAZ3bphpcLTnSZXz6z9jcVC/TCwbfgdw==} peerDependencies: - '@types/react': '>=18' - react: '>=18' + '@types/react': 18.3.1 + react: 18.3.1 react-photo-view@1.2.7: resolution: {integrity: sha512-MfOWVPxuibncRLaycZUNxqYU8D9IA+rbGDDaq6GM8RIoGJal592hEJoRAyRSI7ZxyyJNJTLMUWWL3UIXHJJOpw==} peerDependencies: - react: '>=16.8.0' - react-dom: '>=16.8.0' + react: 18.3.1 + react-dom: 18.3.1 react-redux@7.2.9: resolution: {integrity: sha512-Gx4L3uM182jEEayZfRbI/G11ZpYdNAnBs70lFVMNdHJI76XYtR+7m0MN+eAs7UHBPhWXcnFPaS+9owSCJQHNpQ==} peerDependencies: - react: ^16.8.3 || ^17 || ^18 + react: 18.3.1 react-dom: '*' react-native: '*' peerDependenciesMeta: @@ -10608,8 +10557,8 @@ packages: resolution: {integrity: sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q==} engines: {node: '>=10'} peerDependencies: - '@types/react': '*' - react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + '@types/react': 18.3.1 + react: 18.3.1 peerDependenciesMeta: '@types/react': optional: true @@ -10618,8 +10567,8 @@ packages: resolution: {integrity: sha512-pnAi91oOk8g8ABQKGF5/M9qxmmOPxaAnopyTHYfqYEwJhyFrbbBtHuSgtKEoH0jpcxx5o3hXqH1mNd9/Oi+8iQ==} engines: {node: '>=10'} peerDependencies: - '@types/react': '*' - react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc + '@types/react': 18.3.1 + react: 18.3.1 peerDependenciesMeta: '@types/react': optional: true @@ -10627,15 +10576,15 @@ packages: react-smooth@4.0.4: resolution: {integrity: sha512-gnGKTpYwqL0Iii09gHobNolvX4Kiq4PKx6eWBCYYix+8cdw+cGo3do906l1NBPKkSWx1DghC1dlWG9L2uGd61Q==} peerDependencies: - react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 - react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + react: 18.3.1 + react-dom: 18.3.1 react-style-singleton@2.2.3: resolution: {integrity: sha512-b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ==} engines: {node: '>=10'} peerDependencies: - '@types/react': '*' - react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc + '@types/react': 18.3.1 + react: 18.3.1 peerDependenciesMeta: '@types/react': optional: true @@ -10643,19 +10592,19 @@ packages: react-syntax-highlighter@15.6.1: resolution: {integrity: sha512-OqJ2/vL7lEeV5zTJyG7kmARppUjiB9h9udl4qHQjjgEos66z00Ia0OckwYfRxCSFrW8RJIBnsBwQsHZbVPspqg==} peerDependencies: - react: '>= 0.14.0' + react: 18.3.1 react-textarea-autosize@8.5.8: resolution: {integrity: sha512-iUiIj70JefrTuSJ4LbVFiSqWiHHss5L63L717bqaWHMgkm9sz6eEvro4vZ3uQfGJbevzwT6rHOszHKA8RkhRMg==} engines: {node: '>=10'} peerDependencies: - react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + react: 18.3.1 react-transition-group@4.4.5: resolution: {integrity: sha512-pZcd1MCJoiKiBR2NRxeCRg13uCXbydPnmB4EOeRrY7480qNWO8IIgQG6zlDkm6uRMsURXPuKq0GWtiM59a5Q6g==} peerDependencies: - react: '>=16.6.0' - react-dom: '>=16.6.0' + react: 18.3.1 + react-dom: 18.3.1 react@18.3.1: resolution: {integrity: sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==} @@ -10668,8 +10617,8 @@ packages: reactflow@11.11.4: resolution: {integrity: sha512-70FOtJkUWH3BAOsN+LU9lCrKoKbtOPnz2uq0CV2PLdNSwxTXOhCbsZr50GmZ+Rtw3jx8Uv7/vBFtCGixLfd4Og==} peerDependencies: - react: '>=17' - react-dom: '>=17' + react: 18.3.1 + react-dom: 18.3.1 read-cache@1.0.0: resolution: {integrity: sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==} @@ -10700,8 +10649,8 @@ packages: resolution: {integrity: sha512-v8PUTUlyiDe56qUj82w/EDVuzEFXwEHp9/xOowGAZwfLjB9uAy3GllQVIYMWF6nU+qibx85WF75zD7AjqoT54Q==} engines: {node: '>=14'} peerDependencies: - react: ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 - react-dom: ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + react: 18.3.1 + react-dom: 18.3.1 redis-errors@1.2.0: resolution: {integrity: sha512-1qny3OExCf0UvUV/5wpYKf2YwPcOqXzkwKKSmKHiE6ZMQs5heeE/c8eXK+PNllPvmjgAbfnsbpkGZWy8cBpn9w==} @@ -11438,26 +11387,13 @@ packages: style-to-object@1.0.8: resolution: {integrity: sha512-xT47I/Eo0rwJmaXC4oilDGDWLohVhR6o/xAQcPQN8q6QBuZVL8qMYL85kLmST5cPjAorwvqIA4qXTRQoYHaL6g==} - styled-jsx@5.1.1: - resolution: {integrity: sha512-pW7uC1l4mBZ8ugbiZrcIsiIvVx1UmTfw7UkC3Um2tmfUq9Bhk8IiyEIPl6F8agHgjzku6j0xQEZbfA5uSgSaCw==} - engines: {node: '>= 12.0.0'} - peerDependencies: - '@babel/core': '*' - babel-plugin-macros: '*' - react: '>= 16.8.0 || 17.x.x || ^18.0.0-0' - peerDependenciesMeta: - '@babel/core': - optional: true - babel-plugin-macros: - optional: true - styled-jsx@5.1.6: resolution: {integrity: sha512-qSVyDTeMotdvQYoHWLNGwRFJHC+i+ZvdBRYosOFgC+Wg1vx4frN2/RG/NA7SYqqvKNLf39P2LSRA2pu6n0XYZA==} engines: {node: '>= 12.0.0'} peerDependencies: '@babel/core': '*' babel-plugin-macros: '*' - react: '>= 16.8.0 || 17.x.x || ^18.0.0-0 || ^19.0.0-0' + react: 18.3.1 peerDependenciesMeta: '@babel/core': optional: true @@ -11634,10 +11570,6 @@ packages: resolution: {integrity: sha512-W/KYk+NFhkmsYpuHq5JykngiOCnxeVL8v8dFnqxSD8qEEdRfXk1SDM6JzNqcERbcGYj9tMrDQBYV9cjgnunFIg==} engines: {node: '>=18'} - tinyglobby@0.2.12: - resolution: {integrity: sha512-qkf4trmKSIiMTs/E63cxH+ojC2unam7rJ0WrauAzpT3ECNTxGRMlaXxVbfxMUC/w0LaYk6jQ4y/nGR9uBO3tww==} - engines: {node: '>=12.0.0'} - tinyglobby@0.2.15: resolution: {integrity: sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==} engines: {node: '>=12.0.0'} @@ -12106,8 +12038,8 @@ packages: resolution: {integrity: sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg==} engines: {node: '>=10'} peerDependencies: - '@types/react': '*' - react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc + '@types/react': 18.3.1 + react: 18.3.1 peerDependenciesMeta: '@types/react': optional: true @@ -12116,7 +12048,7 @@ packages: resolution: {integrity: sha512-djviaxuOOh7wkj0paeO1Q/4wMZ8Zrnag5H6yBvzN7AKKe8beOaED9SF5/ByLqsku8NP4zQqsvM2u3ew/tJK8/w==} peerDependencies: '@types/react': '*' - react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + react: 18.3.1 peerDependenciesMeta: '@types/react': optional: true @@ -12124,8 +12056,8 @@ packages: use-context-selector@1.4.4: resolution: {integrity: sha512-pS790zwGxxe59GoBha3QYOwk8AFGp4DN6DOtH+eoqVmgBBRXVx4IlPDhJmmMiNQAgUaLlP+58aqRC3A4rdaSjg==} peerDependencies: - react: '>=16.8.0' - react-dom: '*' + react: 18.3.1 + react-dom: 18.3.1 react-native: '*' scheduler: '>=0.19.0' peerDependenciesMeta: @@ -12138,7 +12070,7 @@ packages: resolution: {integrity: sha512-q6ayo8DWoPZT0VdG4u3D3uxcgONP3Mevx2i2b0434cwWBoL+aelL1DzkXI6w3PhTZzUeR2kaVlZn70iCiseP6w==} peerDependencies: '@types/react': '*' - react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + react: 18.3.1 peerDependenciesMeta: '@types/react': optional: true @@ -12147,7 +12079,7 @@ packages: resolution: {integrity: sha512-mhg3xdm9NaM8q+gLT8KryJPnRFOz1/5XPBhmDEVZK1webPzDjrPk7f/mbpeLqTgB9msytYWANxgALOCJKnLvcQ==} peerDependencies: '@types/react': '*' - react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + react: 18.3.1 peerDependenciesMeta: '@types/react': optional: true @@ -12155,14 +12087,14 @@ packages: use-memo-one@1.1.3: resolution: {integrity: sha512-g66/K7ZQGYrI6dy8GLpVcMsBp4s17xNkYJVSMvTEevGy3nDxHOfE6z8BVE22+5G5x7t3+bhzrlTDB7ObrEE0cQ==} peerDependencies: - react: ^16.8.0 || ^17.0.0 || ^18.0.0 + react: 18.3.1 use-sidecar@1.1.3: resolution: {integrity: sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ==} engines: {node: '>=10'} peerDependencies: - '@types/react': '*' - react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc + '@types/react': 18.3.1 + react: 18.3.1 peerDependenciesMeta: '@types/react': optional: true @@ -12170,7 +12102,7 @@ packages: use-sync-external-store@1.4.0: resolution: {integrity: sha512-9WXSPC5fMv61vaupRkCKCxsPxBocVnwakBEkMIHHpkTTg6icbJtg6jzgtLDm4bl3cSHAca52rYWih0k4K3PfHw==} peerDependencies: - react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + react: 18.3.1 util-deprecate@1.0.2: resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} @@ -12751,9 +12683,9 @@ packages: resolution: {integrity: sha512-ibr/n1hBzLLj5Y+yUcU7dYw8p6WnIVzdJbnX+1YpaScvZVF2ziugqHs+LAmHw4lWO9c/zRj+K1ncgWDQuthEdQ==} engines: {node: '>=12.7.0'} peerDependencies: - '@types/react': '>=16.8' + '@types/react': 18.3.1 immer: '>=9.0.6' - react: '>=16.8' + react: 18.3.1 peerDependenciesMeta: '@types/react': optional: true @@ -14196,12 +14128,12 @@ snapshots: '@chakra-ui/system': 2.6.1(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(react@18.3.1))(react@18.3.1) react: 18.3.1 - '@chakra-ui/next-js@2.4.2(@chakra-ui/react@2.10.7(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(framer-motion@9.1.7(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(next@14.2.35(@babel/core@7.26.10)(@opentelemetry/api@1.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.85.1))(react@18.3.1)': + '@chakra-ui/next-js@2.4.2(@chakra-ui/react@2.10.7(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(framer-motion@9.1.7(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(next@15.5.12(@babel/core@7.26.10)(@opentelemetry/api@1.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.85.1))(react@18.3.1)': dependencies: '@chakra-ui/react': 2.10.7(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(framer-motion@9.1.7(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@emotion/cache': 11.14.0 '@emotion/react': 11.11.1(@types/react@18.3.1)(react@18.3.1) - next: 14.2.35(@babel/core@7.26.10)(@opentelemetry/api@1.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.85.1) + next: 15.5.12(@babel/core@7.26.10)(@opentelemetry/api@1.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.85.1) react: 18.3.1 '@chakra-ui/object-utils@2.1.0': {} @@ -15808,67 +15740,34 @@ snapshots: - bufferutil - utf-8-validate - '@next/env@14.2.35': {} + '@next/env@15.5.12': {} - '@next/env@15.3.5': {} - - '@next/eslint-plugin-next@14.2.26': + '@next/eslint-plugin-next@15.5.12': dependencies: - glob: 10.3.10 + fast-glob: 3.3.1 - '@next/eslint-plugin-next@14.2.33': - dependencies: - glob: 10.3.10 - - '@next/swc-darwin-arm64@14.2.33': + '@next/swc-darwin-arm64@15.5.12': optional: true - '@next/swc-darwin-arm64@15.3.5': + '@next/swc-darwin-x64@15.5.12': optional: true - '@next/swc-darwin-x64@14.2.33': + '@next/swc-linux-arm64-gnu@15.5.12': optional: true - '@next/swc-darwin-x64@15.3.5': + '@next/swc-linux-arm64-musl@15.5.12': optional: true - '@next/swc-linux-arm64-gnu@14.2.33': + '@next/swc-linux-x64-gnu@15.5.12': optional: true - '@next/swc-linux-arm64-gnu@15.3.5': + '@next/swc-linux-x64-musl@15.5.12': optional: true - '@next/swc-linux-arm64-musl@14.2.33': + '@next/swc-win32-arm64-msvc@15.5.12': optional: true - '@next/swc-linux-arm64-musl@15.3.5': - optional: true - - '@next/swc-linux-x64-gnu@14.2.33': - optional: true - - '@next/swc-linux-x64-gnu@15.3.5': - optional: true - - '@next/swc-linux-x64-musl@14.2.33': - optional: true - - '@next/swc-linux-x64-musl@15.3.5': - optional: true - - '@next/swc-win32-arm64-msvc@14.2.33': - optional: true - - '@next/swc-win32-arm64-msvc@15.3.5': - optional: true - - '@next/swc-win32-ia32-msvc@14.2.33': - optional: true - - '@next/swc-win32-x64-msvc@14.2.33': - optional: true - - '@next/swc-win32-x64-msvc@15.3.5': + '@next/swc-win32-x64-msvc@15.5.12': optional: true '@node-rs/jieba-android-arm-eabi@2.0.1': @@ -17295,17 +17194,10 @@ snapshots: transitivePeerDependencies: - supports-color - '@swc/counter@0.1.3': {} - '@swc/helpers@0.5.15': dependencies: tslib: 2.8.1 - '@swc/helpers@0.5.5': - dependencies: - '@swc/counter': 0.1.3 - tslib: 2.8.1 - '@szmarczak/http-timer@5.0.1': dependencies: defer-to-connect: 2.0.1 @@ -20248,9 +20140,9 @@ snapshots: optionalDependencies: source-map: 0.6.1 - eslint-config-next@14.2.26(eslint@8.56.0)(typescript@5.8.2): + eslint-config-next@15.5.12(eslint@8.56.0)(typescript@5.8.2): dependencies: - '@next/eslint-plugin-next': 14.2.26 + '@next/eslint-plugin-next': 15.5.12 '@rushstack/eslint-patch': 1.11.0 '@typescript-eslint/eslint-plugin': 6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.56.0)(typescript@5.8.2))(eslint@8.56.0)(typescript@5.8.2) '@typescript-eslint/parser': 6.21.0(eslint@8.56.0)(typescript@5.8.2) @@ -20260,7 +20152,7 @@ snapshots: eslint-plugin-import: 2.31.0(@typescript-eslint/parser@6.21.0(eslint@8.56.0)(typescript@5.8.2))(eslint-import-resolver-typescript@3.9.0)(eslint@8.56.0) eslint-plugin-jsx-a11y: 6.10.2(eslint@8.56.0) eslint-plugin-react: 7.37.4(eslint@8.56.0) - eslint-plugin-react-hooks: 5.0.0-canary-7118f5dd7-20230705(eslint@8.56.0) + eslint-plugin-react-hooks: 5.2.0(eslint@8.56.0) optionalDependencies: typescript: 5.8.2 transitivePeerDependencies: @@ -20268,9 +20160,9 @@ snapshots: - eslint-plugin-import-x - supports-color - eslint-config-next@14.2.26(eslint@8.57.1)(typescript@5.8.2): + eslint-config-next@15.5.12(eslint@8.57.1)(typescript@5.8.2): dependencies: - '@next/eslint-plugin-next': 14.2.26 + '@next/eslint-plugin-next': 15.5.12 '@rushstack/eslint-patch': 1.11.0 '@typescript-eslint/eslint-plugin': 6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.8.2))(eslint@8.57.1)(typescript@5.8.2) '@typescript-eslint/parser': 6.21.0(eslint@8.57.1)(typescript@5.8.2) @@ -20280,27 +20172,7 @@ snapshots: eslint-plugin-import: 2.31.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.8.2))(eslint-import-resolver-typescript@3.9.0)(eslint@8.57.1) eslint-plugin-jsx-a11y: 6.10.2(eslint@8.57.1) eslint-plugin-react: 7.37.4(eslint@8.57.1) - eslint-plugin-react-hooks: 5.0.0-canary-7118f5dd7-20230705(eslint@8.57.1) - optionalDependencies: - typescript: 5.8.2 - transitivePeerDependencies: - - eslint-import-resolver-webpack - - eslint-plugin-import-x - - supports-color - - eslint-config-next@14.2.33(eslint@8.57.1)(typescript@5.8.2): - dependencies: - '@next/eslint-plugin-next': 14.2.33 - '@rushstack/eslint-patch': 1.11.0 - '@typescript-eslint/eslint-plugin': 6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.8.2))(eslint@8.57.1)(typescript@5.8.2) - '@typescript-eslint/parser': 6.21.0(eslint@8.57.1)(typescript@5.8.2) - eslint: 8.57.1 - eslint-import-resolver-node: 0.3.9 - eslint-import-resolver-typescript: 3.9.0(eslint-plugin-import@2.31.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.8.2))(eslint@8.57.1))(eslint@8.57.1) - eslint-plugin-import: 2.31.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.8.2))(eslint-import-resolver-typescript@3.9.0(eslint-plugin-import@2.31.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.8.2))(eslint@8.57.1))(eslint@8.57.1))(eslint@8.57.1) - eslint-plugin-jsx-a11y: 6.10.2(eslint@8.57.1) - eslint-plugin-react: 7.37.4(eslint@8.57.1) - eslint-plugin-react-hooks: 5.0.0-canary-7118f5dd7-20230705(eslint@8.57.1) + eslint-plugin-react-hooks: 5.2.0(eslint@8.57.1) optionalDependencies: typescript: 5.8.2 transitivePeerDependencies: @@ -20312,35 +20184,20 @@ snapshots: dependencies: debug: 3.2.7 is-core-module: 2.16.1 - resolve: 1.22.10 - transitivePeerDependencies: - - supports-color - - eslint-import-resolver-typescript@3.9.0(eslint-plugin-import@2.31.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.8.2))(eslint@8.57.1))(eslint@8.57.1): - dependencies: - '@nolyfill/is-core-module': 1.0.39 - debug: 4.4.0 - eslint: 8.57.1 - get-tsconfig: 4.10.0 - is-bun-module: 1.3.0 - oxc-resolver: 5.0.0 - stable-hash: 0.0.5 - tinyglobby: 0.2.12 - optionalDependencies: - eslint-plugin-import: 2.31.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.8.2))(eslint-import-resolver-typescript@3.9.0(eslint-plugin-import@2.31.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.8.2))(eslint@8.57.1))(eslint@8.57.1))(eslint@8.57.1) + resolve: 1.22.11 transitivePeerDependencies: - supports-color eslint-import-resolver-typescript@3.9.0(eslint-plugin-import@2.31.0)(eslint@8.56.0): dependencies: '@nolyfill/is-core-module': 1.0.39 - debug: 4.4.0 + debug: 4.4.3 eslint: 8.56.0 - get-tsconfig: 4.10.0 + get-tsconfig: 4.13.0 is-bun-module: 1.3.0 oxc-resolver: 5.0.0 stable-hash: 0.0.5 - tinyglobby: 0.2.12 + tinyglobby: 0.2.15 optionalDependencies: eslint-plugin-import: 2.31.0(@typescript-eslint/parser@6.21.0(eslint@8.56.0)(typescript@5.8.2))(eslint-import-resolver-typescript@3.9.0)(eslint@8.56.0) transitivePeerDependencies: @@ -20349,13 +20206,13 @@ snapshots: eslint-import-resolver-typescript@3.9.0(eslint-plugin-import@2.31.0)(eslint@8.57.1): dependencies: '@nolyfill/is-core-module': 1.0.39 - debug: 4.4.0 + debug: 4.4.3 eslint: 8.57.1 - get-tsconfig: 4.10.0 + get-tsconfig: 4.13.0 is-bun-module: 1.3.0 oxc-resolver: 5.0.0 stable-hash: 0.0.5 - tinyglobby: 0.2.12 + tinyglobby: 0.2.15 optionalDependencies: eslint-plugin-import: 2.31.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.8.2))(eslint-import-resolver-typescript@3.9.0)(eslint@8.57.1) transitivePeerDependencies: @@ -20372,17 +20229,6 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-module-utils@2.12.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.8.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.9.0(eslint-plugin-import@2.31.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.8.2))(eslint@8.57.1))(eslint@8.57.1))(eslint@8.57.1): - dependencies: - debug: 3.2.7 - optionalDependencies: - '@typescript-eslint/parser': 6.21.0(eslint@8.57.1)(typescript@5.8.2) - eslint: 8.57.1 - eslint-import-resolver-node: 0.3.9 - eslint-import-resolver-typescript: 3.9.0(eslint-plugin-import@2.31.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.8.2))(eslint@8.57.1))(eslint@8.57.1) - transitivePeerDependencies: - - supports-color - eslint-module-utils@2.12.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.8.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.9.0)(eslint@8.57.1): dependencies: debug: 3.2.7 @@ -20423,35 +20269,6 @@ snapshots: - eslint-import-resolver-webpack - supports-color - eslint-plugin-import@2.31.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.8.2))(eslint-import-resolver-typescript@3.9.0(eslint-plugin-import@2.31.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.8.2))(eslint@8.57.1))(eslint@8.57.1))(eslint@8.57.1): - dependencies: - '@rtsao/scc': 1.1.0 - array-includes: 3.1.8 - array.prototype.findlastindex: 1.2.6 - array.prototype.flat: 1.3.3 - array.prototype.flatmap: 1.3.3 - debug: 3.2.7 - doctrine: 2.1.0 - eslint: 8.57.1 - eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.12.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.8.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.9.0(eslint-plugin-import@2.31.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.8.2))(eslint@8.57.1))(eslint@8.57.1))(eslint@8.57.1) - hasown: 2.0.2 - is-core-module: 2.16.1 - is-glob: 4.0.3 - minimatch: 3.1.2 - object.fromentries: 2.0.8 - object.groupby: 1.0.3 - object.values: 1.2.1 - semver: 6.3.1 - string.prototype.trimend: 1.0.9 - tsconfig-paths: 3.15.0 - optionalDependencies: - '@typescript-eslint/parser': 6.21.0(eslint@8.57.1)(typescript@5.8.2) - transitivePeerDependencies: - - eslint-import-resolver-typescript - - eslint-import-resolver-webpack - - supports-color - eslint-plugin-import@2.31.0(@typescript-eslint/parser@6.21.0(eslint@8.57.1)(typescript@5.8.2))(eslint-import-resolver-typescript@3.9.0)(eslint@8.57.1): dependencies: '@rtsao/scc': 1.1.0 @@ -20519,11 +20336,11 @@ snapshots: safe-regex-test: 1.1.0 string.prototype.includes: 2.0.1 - eslint-plugin-react-hooks@5.0.0-canary-7118f5dd7-20230705(eslint@8.56.0): + eslint-plugin-react-hooks@5.2.0(eslint@8.56.0): dependencies: eslint: 8.56.0 - eslint-plugin-react-hooks@5.0.0-canary-7118f5dd7-20230705(eslint@8.57.1): + eslint-plugin-react-hooks@5.2.0(eslint@8.57.1): dependencies: eslint: 8.57.1 @@ -20867,6 +20684,14 @@ snapshots: fast-fifo@1.3.2: {} + fast-glob@3.3.1: + dependencies: + '@nodelib/fs.stat': 2.0.5 + '@nodelib/fs.walk': 1.2.8 + glob-parent: 5.1.2 + merge2: 1.4.1 + micromatch: 4.0.8 + fast-glob@3.3.3: dependencies: '@nodelib/fs.stat': 2.0.5 @@ -20969,10 +20794,6 @@ snapshots: dependencies: pend: 1.2.0 - fdir@6.4.3(picomatch@4.0.3): - optionalDependencies: - picomatch: 4.0.3 - fdir@6.5.0(picomatch@4.0.3): optionalDependencies: picomatch: 4.0.3 @@ -21272,10 +21093,6 @@ snapshots: es-errors: 1.3.0 get-intrinsic: 1.3.0 - get-tsconfig@4.10.0: - dependencies: - resolve-pkg-maps: 1.0.0 - get-tsconfig@4.13.0: dependencies: resolve-pkg-maps: 1.0.0 @@ -21306,14 +21123,6 @@ snapshots: glob-to-regexp@0.4.1: {} - glob@10.3.10: - dependencies: - foreground-child: 3.3.1 - jackspeak: 2.3.6 - minimatch: 9.0.5 - minipass: 7.1.2 - path-scurry: 1.11.1 - glob@10.4.5: dependencies: foreground-child: 3.3.1 @@ -21885,7 +21694,7 @@ snapshots: is-bun-module@1.3.0: dependencies: - semver: 7.7.3 + semver: 7.7.4 is-callable@1.2.7: {} @@ -22126,12 +21935,6 @@ snapshots: has-symbols: 1.1.0 set-function-name: 2.0.2 - jackspeak@2.3.6: - dependencies: - '@isaacs/cliui': 8.0.2 - optionalDependencies: - '@pkgjs/parseargs': 0.11.0 - jackspeak@3.4.3: dependencies: '@isaacs/cliui': 8.0.2 @@ -23845,7 +23648,7 @@ snapshots: transitivePeerDependencies: - supports-color - next-i18next@15.4.2(i18next@23.16.8)(next@14.2.35(@opentelemetry/api@1.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.85.1))(react-i18next@14.1.2(i18next@23.16.8)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1): + next-i18next@15.4.2(i18next@23.16.8)(next@15.5.12(@opentelemetry/api@1.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.85.1))(react-i18next@14.1.2(i18next@23.16.8)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1): dependencies: '@babel/runtime': 7.26.10 '@types/hoist-non-react-statics': 3.3.6 @@ -23853,11 +23656,11 @@ snapshots: hoist-non-react-statics: 3.3.2 i18next: 23.16.8 i18next-fs-backend: 2.6.0 - next: 14.2.35(@babel/core@7.26.10)(@opentelemetry/api@1.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.85.1) + next: 15.5.12(@babel/core@7.26.10)(@opentelemetry/api@1.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.85.1) react: 18.3.1 react-i18next: 14.1.2(i18next@23.16.8)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - next-i18next@15.4.2(i18next@23.16.8)(next@15.3.5(@opentelemetry/api@1.9.0)(react-dom@19.1.1(react@19.1.1))(react@19.1.1)(sass@1.85.1))(react-i18next@14.1.2(i18next@23.16.8)(react-dom@19.1.1(react@19.1.1))(react@19.1.1))(react@19.1.1): + next-i18next@15.4.2(i18next@23.16.8)(next@15.5.12(@opentelemetry/api@1.9.0)(react-dom@19.1.1(react@19.1.1))(react@19.1.1)(sass@1.85.1))(react-i18next@14.1.2(i18next@23.16.8)(react-dom@19.1.1(react@19.1.1))(react@19.1.1))(react@19.1.1): dependencies: '@babel/runtime': 7.26.10 '@types/hoist-non-react-statics': 3.3.6 @@ -23865,84 +23668,28 @@ snapshots: hoist-non-react-statics: 3.3.2 i18next: 23.16.8 i18next-fs-backend: 2.6.0 - next: 15.3.5(@opentelemetry/api@1.9.0)(react-dom@19.1.1(react@19.1.1))(react@19.1.1)(sass@1.85.1) + next: 15.5.12(@opentelemetry/api@1.9.0)(react-dom@19.1.1(react@19.1.1))(react@19.1.1)(sass@1.85.1) react: 19.1.1 react-i18next: 14.1.2(i18next@23.16.8)(react-dom@19.1.1(react@19.1.1))(react@19.1.1) - next@14.2.35(@babel/core@7.26.10)(@opentelemetry/api@1.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.85.1): + next@15.5.12(@babel/core@7.26.10)(@opentelemetry/api@1.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.85.1): dependencies: - '@next/env': 14.2.35 - '@swc/helpers': 0.5.5 - busboy: 1.6.0 - caniuse-lite: 1.0.30001762 - graceful-fs: 4.2.11 + '@next/env': 15.5.12 + '@swc/helpers': 0.5.15 + caniuse-lite: 1.0.30001769 postcss: 8.4.31 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) - styled-jsx: 5.1.1(@babel/core@7.26.10)(react@18.3.1) + styled-jsx: 5.1.6(@babel/core@7.26.10)(react@18.3.1) optionalDependencies: - '@next/swc-darwin-arm64': 14.2.33 - '@next/swc-darwin-x64': 14.2.33 - '@next/swc-linux-arm64-gnu': 14.2.33 - '@next/swc-linux-arm64-musl': 14.2.33 - '@next/swc-linux-x64-gnu': 14.2.33 - '@next/swc-linux-x64-musl': 14.2.33 - '@next/swc-win32-arm64-msvc': 14.2.33 - '@next/swc-win32-ia32-msvc': 14.2.33 - '@next/swc-win32-x64-msvc': 14.2.33 - '@opentelemetry/api': 1.9.0 - sass: 1.85.1 - transitivePeerDependencies: - - '@babel/core' - - babel-plugin-macros - - next@14.2.35(@opentelemetry/api@1.9.0)(react-dom@19.1.1(react@19.1.1))(react@19.1.1)(sass@1.85.1): - dependencies: - '@next/env': 14.2.35 - '@swc/helpers': 0.5.5 - busboy: 1.6.0 - caniuse-lite: 1.0.30001762 - graceful-fs: 4.2.11 - postcss: 8.4.31 - react: 19.1.1 - react-dom: 19.1.1(react@19.1.1) - styled-jsx: 5.1.1(react@19.1.1) - optionalDependencies: - '@next/swc-darwin-arm64': 14.2.33 - '@next/swc-darwin-x64': 14.2.33 - '@next/swc-linux-arm64-gnu': 14.2.33 - '@next/swc-linux-arm64-musl': 14.2.33 - '@next/swc-linux-x64-gnu': 14.2.33 - '@next/swc-linux-x64-musl': 14.2.33 - '@next/swc-win32-arm64-msvc': 14.2.33 - '@next/swc-win32-ia32-msvc': 14.2.33 - '@next/swc-win32-x64-msvc': 14.2.33 - '@opentelemetry/api': 1.9.0 - sass: 1.85.1 - transitivePeerDependencies: - - '@babel/core' - - babel-plugin-macros - - next@15.3.5(@opentelemetry/api@1.9.0)(react-dom@19.1.1(react@19.1.1))(react@19.1.1)(sass@1.85.1): - dependencies: - '@next/env': 15.3.5 - '@swc/counter': 0.1.3 - '@swc/helpers': 0.5.15 - busboy: 1.6.0 - caniuse-lite: 1.0.30001769 - postcss: 8.4.31 - react: 19.1.1 - react-dom: 19.1.1(react@19.1.1) - styled-jsx: 5.1.6(react@19.1.1) - optionalDependencies: - '@next/swc-darwin-arm64': 15.3.5 - '@next/swc-darwin-x64': 15.3.5 - '@next/swc-linux-arm64-gnu': 15.3.5 - '@next/swc-linux-arm64-musl': 15.3.5 - '@next/swc-linux-x64-gnu': 15.3.5 - '@next/swc-linux-x64-musl': 15.3.5 - '@next/swc-win32-arm64-msvc': 15.3.5 - '@next/swc-win32-x64-msvc': 15.3.5 + '@next/swc-darwin-arm64': 15.5.12 + '@next/swc-darwin-x64': 15.5.12 + '@next/swc-linux-arm64-gnu': 15.5.12 + '@next/swc-linux-arm64-musl': 15.5.12 + '@next/swc-linux-x64-gnu': 15.5.12 + '@next/swc-linux-x64-musl': 15.5.12 + '@next/swc-win32-arm64-msvc': 15.5.12 + '@next/swc-win32-x64-msvc': 15.5.12 '@opentelemetry/api': 1.9.0 sass: 1.85.1 sharp: 0.34.5 @@ -23950,10 +23697,35 @@ snapshots: - '@babel/core' - babel-plugin-macros - nextjs-cors@2.2.0(next@14.2.35(@opentelemetry/api@1.9.0)(react-dom@19.1.1(react@19.1.1))(react@19.1.1)(sass@1.85.1)): + next@15.5.12(@opentelemetry/api@1.9.0)(react-dom@19.1.1(react@19.1.1))(react@19.1.1)(sass@1.85.1): + dependencies: + '@next/env': 15.5.12 + '@swc/helpers': 0.5.15 + caniuse-lite: 1.0.30001769 + postcss: 8.4.31 + react: 19.1.1 + react-dom: 19.1.1(react@19.1.1) + styled-jsx: 5.1.6(react@19.1.1) + optionalDependencies: + '@next/swc-darwin-arm64': 15.5.12 + '@next/swc-darwin-x64': 15.5.12 + '@next/swc-linux-arm64-gnu': 15.5.12 + '@next/swc-linux-arm64-musl': 15.5.12 + '@next/swc-linux-x64-gnu': 15.5.12 + '@next/swc-linux-x64-musl': 15.5.12 + '@next/swc-win32-arm64-msvc': 15.5.12 + '@next/swc-win32-x64-msvc': 15.5.12 + '@opentelemetry/api': 1.9.0 + sass: 1.85.1 + sharp: 0.34.5 + transitivePeerDependencies: + - '@babel/core' + - babel-plugin-macros + + nextjs-cors@2.2.0(next@15.5.12(@opentelemetry/api@1.9.0)(react-dom@19.1.1(react@19.1.1))(react@19.1.1)(sass@1.85.1)): dependencies: cors: 2.8.5 - next: 14.2.35(@opentelemetry/api@1.9.0)(react-dom@19.1.1(react@19.1.1))(react@19.1.1)(sass@1.85.1) + next: 15.5.12(@opentelemetry/api@1.9.0)(react-dom@19.1.1(react@19.1.1))(react@19.1.1)(sass@1.85.1) node-abi@3.74.0: dependencies: @@ -25996,18 +25768,13 @@ snapshots: dependencies: inline-style-parser: 0.2.4 - styled-jsx@5.1.1(@babel/core@7.26.10)(react@18.3.1): + styled-jsx@5.1.6(@babel/core@7.26.10)(react@18.3.1): dependencies: client-only: 0.0.1 react: 18.3.1 optionalDependencies: '@babel/core': 7.26.10 - styled-jsx@5.1.1(react@19.1.1): - dependencies: - client-only: 0.0.1 - react: 19.1.1 - styled-jsx@5.1.6(react@19.1.1): dependencies: client-only: 0.0.1 @@ -26225,11 +25992,6 @@ snapshots: tinyexec@1.0.2: {} - tinyglobby@0.2.12: - dependencies: - fdir: 6.4.3(picomatch@4.0.3) - picomatch: 4.0.3 - tinyglobby@0.2.15: dependencies: fdir: 6.5.0(picomatch@4.0.3) diff --git a/projects/app/Dockerfile b/projects/app/Dockerfile index 36dc12e334..6a79db1afc 100644 --- a/projects/app/Dockerfile +++ b/projects/app/Dockerfile @@ -60,7 +60,7 @@ RUN apk add --no-cache curl ca-certificates \ # copy running files COPY --from=builder /app/projects/app/public /app/projects/app/public -COPY --from=builder /app/projects/app/next.config.js /app/projects/app/next.config.js +COPY --from=builder /app/projects/app/next.config.ts /app/projects/app/next.config.ts COPY --from=builder --chown=nextjs:nodejs /app/projects/app/.next/standalone /app/ COPY --from=builder --chown=nextjs:nodejs /app/projects/app/.next/static /app/projects/app/.next/static # copy server chunks diff --git a/projects/app/next.config.js b/projects/app/next.config.ts similarity index 53% rename from projects/app/next.config.js rename to projects/app/next.config.ts index 7716e52524..05eaadfc6a 100644 --- a/projects/app/next.config.js +++ b/projects/app/next.config.ts @@ -1,24 +1,24 @@ -const { i18n } = require('./next-i18next.config.js'); -const path = require('path'); -const fs = require('fs'); +import type { NextConfig } from 'next'; +import path from 'path'; +import withBundleAnalyzerInit from '@next/bundle-analyzer'; -const withBundleAnalyzer = require('@next/bundle-analyzer')({ +const withBundleAnalyzer = withBundleAnalyzerInit({ enabled: process.env.ANALYZE === 'true' }); const isDev = process.env.NODE_ENV === 'development'; -/** @type {import('next').NextConfig} */ -const nextConfig = { +const nextConfig: NextConfig = { basePath: process.env.NEXT_PUBLIC_BASE_URL, - i18n, + i18n: { + defaultLocale: 'en', + locales: ['en', 'zh-CN', 'zh-Hant'], + localeDetection: false + }, output: 'standalone', - reactStrictMode: isDev ? false : true, - compress: true, - // 禁用 source map(可选,根据需要) + // 开发环境关闭 strict mode,避免第三方库的双重渲染问题 + reactStrictMode: !isDev, productionBrowserSourceMaps: false, - // 优化编译性能 - swcMinify: true, // 使用 SWC 压缩(生产环境已默认) async headers() { return [ { @@ -49,8 +49,7 @@ const nextConfig = { ]; }, - webpack(config, { isServer, nextRuntime }) { - // Ignore autoprefixer warnings from third-party libraries + webpack(config, { isServer }) { config.ignoreWarnings = [ ...(config.ignoreWarnings || []), { @@ -59,7 +58,7 @@ const nextConfig = { } ]; - Object.assign(config.resolve.alias, { + Object.assign(config.resolve!.alias, { '@mongodb-js/zstd': false, '@aws-sdk/credential-providers': false, snappy: false, @@ -70,9 +69,10 @@ const nextConfig = { 'bson-ext': false, 'pg-native': false }); + config.module = { ...config.module, - rules: config.module.rules.concat([ + rules: (config.module?.rules || []).concat([ { test: /\.svg$/i, issuer: /\.[jt]sx?$/, @@ -88,18 +88,7 @@ const nextConfig = { } if (isServer) { - config.externals.push('@node-rs/jieba'); - - if (nextRuntime === 'nodejs') { - } - } else { - config.resolve = { - ...config.resolve, - fallback: { - ...config.resolve.fallback, - fs: false - } - }; + (config.externals as string[]).push('@node-rs/jieba'); } config.experiments = { @@ -108,44 +97,39 @@ const nextConfig = { }; if (isDev && !isServer) { - // 使用更快的 source map - config.devtool = 'eval-cheap-module-source-map'; - // 减少文件监听范围 config.watchOptions = { ...config.watchOptions, ignored: ['**/node_modules', '**/.git', '**/dist', '**/coverage'] }; - // 启用持久化缓存 - config.cache = { - type: 'filesystem', - name: 'client', - buildDependencies: { - config: [__filename] - }, - cacheDirectory: path.resolve(__dirname, '.next/cache/webpack'), - maxMemoryGenerations: isDev ? 5 : Infinity, - maxAge: 7 * 24 * 60 * 60 * 1000 // 7 天 - }; } return config; }, - // 需要转译的包 transpilePackages: ['@modelcontextprotocol/sdk', 'ahooks'], + serverExternalPackages: [ + 'mongoose', + 'pg', + 'bullmq', + '@zilliz/milvus2-sdk-node', + 'tiktoken', + '@opentelemetry/api-logs' + ], + // 优化大库的 barrel exports tree-shaking experimental: { - // 优化 Server Components 的构建和运行,避免不必要的客户端打包。 - serverComponentsExternalPackages: [ - 'mongoose', - 'pg', - 'bullmq', - '@zilliz/milvus2-sdk-node', - 'tiktoken', - '@opentelemetry/api-logs' + optimizePackageImports: [ + '@chakra-ui/react', + '@chakra-ui/icons', + 'lodash', + 'date-fns', + 'ahooks', + 'framer-motion', + '@emotion/react', + '@emotion/styled' ], - outputFileTracingRoot: path.join(__dirname, '../../'), - instrumentationHook: true, - workerThreads: true - } + // 按页面拆分 CSS chunk,减少首屏 CSS 体积 + cssChunking: 'strict' + }, + outputFileTracingRoot: path.join(__dirname, '../../') }; -module.exports = nextConfig; +export default withBundleAnalyzer(nextConfig); diff --git a/projects/app/package.json b/projects/app/package.json index e7ccb9b713..81d6625658 100644 --- a/projects/app/package.json +++ b/projects/app/package.json @@ -50,7 +50,7 @@ "mermaid": "^10.9.4", "minio": "^8.0.5", "nanoid": "^5.1.3", - "next": "14.2.35", + "next": "15.5.12", "next-i18next": "15.4.2", "nprogress": "^0.2.0", "p-limit": "^7.2.0", @@ -93,7 +93,7 @@ "@typescript-eslint/eslint-plugin": "^6.21.0", "@typescript-eslint/parser": "^6.21.0", "eslint": "8.56.0", - "eslint-config-next": "14.2.26", + "eslint-config-next": "15.5.12", "tsx": "^4.20.6", "typescript": "^5.1.3", "vitest": "^3.0.9" diff --git a/projects/app/src/components/Markdown/codeBlock/iframe-html.tsx b/projects/app/src/components/Markdown/codeBlock/iframe-html.tsx index e11098a2e5..b5fb71e7a9 100644 --- a/projects/app/src/components/Markdown/codeBlock/iframe-html.tsx +++ b/projects/app/src/components/Markdown/codeBlock/iframe-html.tsx @@ -15,7 +15,7 @@ import Icon from '@fastgpt/web/components/common/Icon'; import { useCopyData } from '@fastgpt/web/hooks/useCopyData'; import { useTranslation } from 'next-i18next'; import { useMarkdownWidth } from '../hooks'; -import type { IconNameType } from '@fastgpt/web/components/common/Icon/type.d'; +import type { IconNameType } from '@fastgpt/web/components/common/Icon/type'; import { codeLight } from './CodeLight'; import MyTooltip from '@fastgpt/web/components/common/MyTooltip'; diff --git a/projects/app/src/components/SideTabs/index.tsx b/projects/app/src/components/SideTabs/index.tsx index fd16c4ccca..f9ab22bd6f 100644 --- a/projects/app/src/components/SideTabs/index.tsx +++ b/projects/app/src/components/SideTabs/index.tsx @@ -2,7 +2,7 @@ import React, { useMemo } from 'react'; import { Box, Flex } from '@chakra-ui/react'; import type { GridProps } from '@chakra-ui/react'; import MyIcon from '@fastgpt/web/components/common/Icon'; -import type { IconNameType } from '@fastgpt/web/components/common/Icon/type.d'; +import type { IconNameType } from '@fastgpt/web/components/common/Icon/type'; export type Props = Omit & { list: { value: ValueType; label: string; icon: string }[]; diff --git a/projects/app/src/components/core/app/formRender/type.d.ts b/projects/app/src/components/core/app/formRender/type.ts similarity index 96% rename from projects/app/src/components/core/app/formRender/type.d.ts rename to projects/app/src/components/core/app/formRender/type.ts index 5ce0c5a7c8..0ffcdcfed4 100644 --- a/projects/app/src/components/core/app/formRender/type.d.ts +++ b/projects/app/src/components/core/app/formRender/type.ts @@ -9,7 +9,7 @@ import type { BoxProps } from '@chakra-ui/react'; import type { EditorProps } from '@fastgpt/web/components/common/Textarea/PromptEditor/Editor'; import type { SelectedDatasetType } from '@fastgpt/global/core/workflow/type/io'; -type CommonRenderProps = { +export type CommonRenderProps = { placeholder?: string; value: any; onChange?: (value: any) => void; @@ -20,7 +20,7 @@ type CommonRenderProps = { customRender?: (props: any) => React.ReactNode; } & Omit; -type SpecificProps = { +export type SpecificProps = { inputType: InputTypeEnum; // input & textarea diff --git a/projects/app/src/components/core/chat/ChatContainer/PluginRunBox/type.d.ts b/projects/app/src/components/core/chat/ChatContainer/PluginRunBox/type.ts similarity index 100% rename from projects/app/src/components/core/chat/ChatContainer/PluginRunBox/type.d.ts rename to projects/app/src/components/core/chat/ChatContainer/PluginRunBox/type.ts diff --git a/projects/app/src/components/core/chat/ChatContainer/type.d.ts b/projects/app/src/components/core/chat/ChatContainer/type.ts similarity index 88% rename from projects/app/src/components/core/chat/ChatContainer/type.d.ts rename to projects/app/src/components/core/chat/ChatContainer/type.ts index 14c12a350d..553c1cea18 100644 --- a/projects/app/src/components/core/chat/ChatContainer/type.d.ts +++ b/projects/app/src/components/core/chat/ChatContainer/type.ts @@ -3,8 +3,7 @@ import type { ChatCompletionMessageParam } from '@fastgpt/global/core/ai/type'; import type { ChatHistoryItemResType, StepTitleItemType, - type AIChatItemValueItemType, - type ToolModuleResponseItemType + ToolModuleResponseItemType } from '@fastgpt/global/core/chat/type'; import type { SseResponseEventEnum } from '@fastgpt/global/core/workflow/runtime/constants'; import type { @@ -12,7 +11,6 @@ import type { WorkflowInteractiveResponseType } from '@fastgpt/global/core/workflow/template/system/interactive/type'; import type { TopAgentFormDataType } from '@fastgpt/service/core/chat/HelperBot/dispatch/topAgent/type'; -import type { GeneratedSkillDataType } from '@fastgpt/global/core/chat/helperBot/generatedSkill/type'; import type { AgentPlanType } from '@fastgpt/global/core/ai/agent/type'; export type generatingMessageProps = { @@ -37,7 +35,6 @@ export type generatingMessageProps = { // HelperBot collectionForm?: UserInputInteractive; formData?: TopAgentFormDataType; - generatedSkill?: GeneratedSkillDataType; }; export type StartChatFnProps = { diff --git a/projects/app/src/components/core/chat/Divider/index.tsx b/projects/app/src/components/core/chat/Divider/index.tsx index 50b57863ae..11b97d5a57 100644 --- a/projects/app/src/components/core/chat/Divider/index.tsx +++ b/projects/app/src/components/core/chat/Divider/index.tsx @@ -1,7 +1,7 @@ import { Box, Flex } from '@chakra-ui/react'; import React from 'react'; import MyIcon from '@fastgpt/web/components/common/Icon'; -import type { IconNameType } from '@fastgpt/web/components/common/Icon/type.d'; +import type { IconNameType } from '@fastgpt/web/components/common/Icon/type'; const ChatBoxDivider = ({ icon, diff --git a/projects/app/src/components/core/chat/HelperBot/type.d.ts b/projects/app/src/components/core/chat/HelperBot/type.ts similarity index 100% rename from projects/app/src/components/core/chat/HelperBot/type.d.ts rename to projects/app/src/components/core/chat/HelperBot/type.ts diff --git a/projects/app/src/components/core/dataset/QuoteItem.tsx b/projects/app/src/components/core/dataset/QuoteItem.tsx index 3e8bcaaf2f..8263e03629 100644 --- a/projects/app/src/components/core/dataset/QuoteItem.tsx +++ b/projects/app/src/components/core/dataset/QuoteItem.tsx @@ -1,7 +1,7 @@ import React, { useMemo, useState } from 'react'; import { Box, Flex, Link, Progress } from '@chakra-ui/react'; import RawSourceBox from '@/components/core/dataset/RawSourceBox'; -import type { SearchDataResponseItemType } from '@fastgpt/global/core/dataset/type.d'; +import type { SearchDataResponseItemType } from '@fastgpt/global/core/dataset/type'; import NextLink from 'next/link'; import MyIcon from '@fastgpt/web/components/common/Icon'; import { useTranslation } from 'next-i18next'; diff --git a/projects/app/src/components/support/apikey/Table.tsx b/projects/app/src/components/support/apikey/Table.tsx index f4af306245..f3a947b043 100644 --- a/projects/app/src/components/support/apikey/Table.tsx +++ b/projects/app/src/components/support/apikey/Table.tsx @@ -23,7 +23,7 @@ import { delOpenApiById, putOpenApiKey } from '@/web/support/openapi/api'; -import type { EditApiKeyProps } from '@/global/support/openapi/api.d'; +import type { EditApiKeyProps } from '@/global/support/openapi/api'; import dayjs from 'dayjs'; import { AddIcon } from '@chakra-ui/icons'; import { useCopyData } from '@fastgpt/web/hooks/useCopyData'; diff --git a/projects/app/src/components/support/laf/LafAccountModal.tsx b/projects/app/src/components/support/laf/LafAccountModal.tsx index a08deb7888..7ff27e444c 100644 --- a/projects/app/src/components/support/laf/LafAccountModal.tsx +++ b/projects/app/src/components/support/laf/LafAccountModal.tsx @@ -10,7 +10,7 @@ import { useSystemStore } from '@/web/common/system/useSystemStore'; import { useToast } from '@fastgpt/web/hooks/useToast'; import { putUpdateTeam } from '@/web/support/user/team/api'; import { useUserStore } from '@/web/support/user/useUserStore'; -import type { LafAccountType } from '@fastgpt/global/support/user/team/type.d'; +import type { LafAccountType } from '@fastgpt/global/support/user/team/type'; import { postLafPat2Token, getLafApplications } from '@/web/support/laf/api'; import { getErrText } from '@fastgpt/global/common/error/utils'; import { getDocPath } from '@/web/common/system/doc'; diff --git a/projects/app/src/global/core/api/datasetReq.d.ts b/projects/app/src/global/core/api/datasetReq.d.ts deleted file mode 100644 index 25ae482137..0000000000 --- a/projects/app/src/global/core/api/datasetReq.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { - TrainingModeEnum, - DatasetCollectionTypeEnum, - DatasetTypeEnum -} from '@fastgpt/global/core/dataset/constants'; -import { TrainingModeEnum } from '@fastgpt/global/core/dataset/constants'; -import type { SearchTestItemType } from '@/types/core/dataset'; -import { UploadChunkItemType } from '@fastgpt/global/core/dataset/type'; -import { DatasetCollectionSchemaType } from '@fastgpt/global/core/dataset/type'; -import { PermissionTypeEnum } from '@fastgpt/global/support/permission/constant'; -import type { LLMModelItemType } from '@fastgpt/global/core/ai/model.schema'; -import type { PaginationProps } from '@fastgpt/web/common/fetch/type'; -import type { ParentIdType } from '@fastgpt/global/common/parentFolder/type'; - -/* ===== dataset ===== */ - -/* ======= collections =========== */ -export type GetDatasetCollectionsProps = PaginationProps<{ - datasetId: string; - parentId?: ParentIdType; - searchText?: string; - filterTags?: string[]; - simple?: boolean; - selectFolder?: boolean; -}>; - -/* ==== data ===== */ diff --git a/projects/app/src/global/core/api/datasetReq.ts b/projects/app/src/global/core/api/datasetReq.ts new file mode 100644 index 0000000000..f8b71561b2 --- /dev/null +++ b/projects/app/src/global/core/api/datasetReq.ts @@ -0,0 +1,17 @@ +import { DatasetCollectionTypeEnum, DatasetTypeEnum } from '@fastgpt/global/core/dataset/constants'; +import type { PaginationProps } from '@fastgpt/web/common/fetch/type'; +import type { ParentIdType } from '@fastgpt/global/common/parentFolder/type'; + +/* ===== dataset ===== */ + +/* ======= collections =========== */ +export type GetDatasetCollectionsProps = PaginationProps<{ + datasetId: string; + parentId?: ParentIdType; + searchText?: string; + filterTags?: string[]; + simple?: boolean; + selectFolder?: boolean; +}>; + +/* ==== data ===== */ diff --git a/projects/app/src/global/core/api/datasetRes.d.ts b/projects/app/src/global/core/api/datasetRes.d.ts deleted file mode 100644 index 5f25fb93db..0000000000 --- a/projects/app/src/global/core/api/datasetRes.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { RequestPaging } from '@/types'; -import { TrainingModeEnum } from '@/constants/plugin'; -import type { SearchTestItemType } from '@/types/core/dataset'; -import { DatasetCollectionSchemaType } from '@fastgpt/global/core/dataset/type'; - -/* ===== dataset ===== */ - -/* ======= collection =========== */ - -/* ==== data ===== */ diff --git a/projects/app/src/global/core/app/api.d.ts b/projects/app/src/global/core/app/api.ts similarity index 100% rename from projects/app/src/global/core/app/api.d.ts rename to projects/app/src/global/core/app/api.ts diff --git a/projects/app/src/global/core/chat/api.d.ts b/projects/app/src/global/core/chat/api.ts similarity index 93% rename from projects/app/src/global/core/chat/api.d.ts rename to projects/app/src/global/core/chat/api.ts index bb44e362c2..efc7194d0c 100644 --- a/projects/app/src/global/core/chat/api.d.ts +++ b/projects/app/src/global/core/chat/api.ts @@ -1,11 +1,10 @@ import type { AppChatConfigType, AppTTSConfigType } from '@fastgpt/global/core/app/type'; import type { AdminFbkType } from '@fastgpt/global/core/chat/type'; -import { ChatItemType } from '@fastgpt/global/core/chat/type'; import type { OutLinkChatAuthProps } from '@fastgpt/global/support/permission/chat'; import type { AppTypeEnum } from '@fastgpt/global/core/app/constants'; -import { RequestPaging } from '@/types'; import type { GetChatTypeEnum } from '@/global/core/chat/constants'; import type { ChatSourceEnum } from '@fastgpt/global/core/chat/constants'; +import type { FlowNodeInputItemType } from '@fastgpt/global/core/workflow/type/io'; export type GetChatSpeechProps = OutLinkChatAuthProps & { appId: string; diff --git a/projects/app/src/global/core/dataset/api.d.ts b/projects/app/src/global/core/dataset/api.ts similarity index 100% rename from projects/app/src/global/core/dataset/api.d.ts rename to projects/app/src/global/core/dataset/api.ts diff --git a/projects/app/src/global/core/dataset/type.d.ts b/projects/app/src/global/core/dataset/type.ts similarity index 96% rename from projects/app/src/global/core/dataset/type.d.ts rename to projects/app/src/global/core/dataset/type.ts index ddca53cb0d..e460e5295c 100644 --- a/projects/app/src/global/core/dataset/type.d.ts +++ b/projects/app/src/global/core/dataset/type.ts @@ -1,6 +1,6 @@ import { ParentTreePathItemType } from '@fastgpt/global/common/parentFolder/type'; -import type { DatasetCollectionSchemaType } from '@fastgpt/global/core/dataset/type.d'; -import { DatasetDataSchemaType, DatasetTagType } from '@fastgpt/global/core/dataset/type.d'; +import type { DatasetCollectionSchemaType } from '@fastgpt/global/core/dataset/type'; +import { DatasetDataSchemaType, DatasetTagType } from '@fastgpt/global/core/dataset/type'; import type { DatasetPermission } from '@fastgpt/global/support/permission/dataset/controller'; /* ================= dataset ===================== */ diff --git a/projects/app/src/global/core/workflow/api.d.ts b/projects/app/src/global/core/workflow/api.ts similarity index 72% rename from projects/app/src/global/core/workflow/api.d.ts rename to projects/app/src/global/core/workflow/api.ts index 09d23b3993..63f123bc12 100644 --- a/projects/app/src/global/core/workflow/api.d.ts +++ b/projects/app/src/global/core/workflow/api.ts @@ -1,10 +1,16 @@ import type { AppSchemaType } from '@fastgpt/global/core/app/type'; -import type { ChatHistoryItemResType } from '@fastgpt/global/core/chat/type'; +import type { + ChatHistoryItemResType, + UserChatItemValueItemType, + ChatItemType +} from '@fastgpt/global/core/chat/type'; import type { RuntimeNodeItemType } from '@fastgpt/global/core/workflow/runtime/type'; import type { WorkflowInteractiveResponseType } from '@fastgpt/global/core/workflow/template/system/interactive/type'; -import { StoreNodeItemType } from '@fastgpt/global/core/workflow/type'; -import type { RuntimeEdgeItemType } from '@fastgpt/global/core/workflow/type/edge'; -import { StoreEdgeItemType } from '@fastgpt/global/core/workflow/type/edge'; +import type { StoreNodeItemType } from '@fastgpt/global/core/workflow/type/node'; +import type { + RuntimeEdgeItemType, + StoreEdgeItemType +} from '@fastgpt/global/core/workflow/type/edge'; import type { WorkflowDebugResponse } from '@fastgpt/service/core/workflow/dispatch/type'; export type PostWorkflowDebugProps = { diff --git a/projects/app/src/global/support/api/userRes.d.ts b/projects/app/src/global/support/api/userRes.ts similarity index 95% rename from projects/app/src/global/support/api/userRes.d.ts rename to projects/app/src/global/support/api/userRes.ts index 010967e443..e218392deb 100644 --- a/projects/app/src/global/support/api/userRes.d.ts +++ b/projects/app/src/global/support/api/userRes.ts @@ -1,5 +1,5 @@ import type { UserType } from '@fastgpt/global/support/user/type'; -import type { PromotionRecordSchema } from '@fastgpt/global/support/activity/type.d'; +import type { PromotionRecordSchema } from '@fastgpt/global/support/activity/type'; export interface LoginSuccessResponse { user: UserType; token: string; diff --git a/projects/app/src/global/support/openapi/api.d.ts b/projects/app/src/global/support/openapi/api.ts similarity index 100% rename from projects/app/src/global/support/openapi/api.d.ts rename to projects/app/src/global/support/openapi/api.ts diff --git a/projects/app/src/pageComponents/account/team/EditInfoModal.tsx b/projects/app/src/pageComponents/account/team/EditInfoModal.tsx index 04419c6e59..cbccf8e197 100644 --- a/projects/app/src/pageComponents/account/team/EditInfoModal.tsx +++ b/projects/app/src/pageComponents/account/team/EditInfoModal.tsx @@ -16,7 +16,7 @@ import { import MyTooltip from '@fastgpt/web/components/common/MyTooltip'; import Avatar from '@fastgpt/web/components/common/Avatar'; import { postCreateTeam, putUpdateTeam } from '@/web/support/user/team/api'; -import { type CreateTeamProps } from '@fastgpt/global/support/user/team/controller.d'; +import { type CreateTeamProps } from '@fastgpt/global/support/user/team/controller'; import { DEFAULT_TEAM_AVATAR } from '@fastgpt/global/common/system/constants'; import Icon from '@fastgpt/web/components/common/Icon'; import dynamic from 'next/dynamic'; diff --git a/projects/app/src/pageComponents/account/usage/UsageDetail.tsx b/projects/app/src/pageComponents/account/usage/UsageDetail.tsx index c3f8b6af41..cbe5709f49 100644 --- a/projects/app/src/pageComponents/account/usage/UsageDetail.tsx +++ b/projects/app/src/pageComponents/account/usage/UsageDetail.tsx @@ -11,7 +11,7 @@ import { Td, TableContainer } from '@chakra-ui/react'; -import { type UsageListItemType } from '@fastgpt/global/support/wallet/usage/type.d'; +import { type UsageListItemType } from '@fastgpt/global/support/wallet/usage/type'; import dayjs from 'dayjs'; import { UsageSourceMap } from '@fastgpt/global/support/wallet/usage/constants'; import MyModal from '@fastgpt/web/components/common/MyModal'; diff --git a/projects/app/src/pageComponents/account/usage/type.d.ts b/projects/app/src/pageComponents/account/usage/type.ts similarity index 80% rename from projects/app/src/pageComponents/account/usage/type.d.ts rename to projects/app/src/pageComponents/account/usage/type.ts index 6f92e2fa6f..a652cc0cfa 100644 --- a/projects/app/src/pageComponents/account/usage/type.d.ts +++ b/projects/app/src/pageComponents/account/usage/type.ts @@ -1,4 +1,5 @@ import type { DateRangeType } from '@fastgpt/web/components/common/DateRangePicker'; +import type { UsageSourceEnum } from '@fastgpt/global/support/wallet/usage/constants'; export type UnitType = 'day' | 'month'; diff --git a/projects/app/src/pageComponents/app/detail/Edit/FormComponent/Header.tsx b/projects/app/src/pageComponents/app/detail/Edit/FormComponent/Header.tsx index 5c326ff7e8..70731bd4ba 100644 --- a/projects/app/src/pageComponents/app/detail/Edit/FormComponent/Header.tsx +++ b/projects/app/src/pageComponents/app/detail/Edit/FormComponent/Header.tsx @@ -33,7 +33,7 @@ import { storeEdge2RenderEdge, storeNode2FlowNode } from '@/web/core/workflow/utils'; -import type { AppForm2WorkflowFnType, Form2WorkflowFnType } from './type.d'; +import type { AppForm2WorkflowFnType, Form2WorkflowFnType } from './type'; import type { ParentIdType } from '@fastgpt/global/common/parentFolder/type'; const Header = ({ diff --git a/projects/app/src/pageComponents/app/detail/Edit/FormComponent/type.d.ts b/projects/app/src/pageComponents/app/detail/Edit/FormComponent/type.ts similarity index 100% rename from projects/app/src/pageComponents/app/detail/Edit/FormComponent/type.d.ts rename to projects/app/src/pageComponents/app/detail/Edit/FormComponent/type.ts diff --git a/projects/app/src/pageComponents/app/detail/Publish/DingTalk/DingTalkEditModal.tsx b/projects/app/src/pageComponents/app/detail/Publish/DingTalk/DingTalkEditModal.tsx index 64181bf6b5..b1aa3f2c41 100644 --- a/projects/app/src/pageComponents/app/detail/Publish/DingTalk/DingTalkEditModal.tsx +++ b/projects/app/src/pageComponents/app/detail/Publish/DingTalk/DingTalkEditModal.tsx @@ -44,8 +44,8 @@ const DingTalkEditModal = ({ appId, type: PublishChannelEnum.dingtalk, app: { - clientId: e?.app?.clientId?.trim(), - clientSecret: e.app?.clientSecret?.trim() + clientId: e?.app?.clientId?.trim() ?? '', + clientSecret: e.app?.clientSecret?.trim() ?? '' } }), { @@ -60,8 +60,8 @@ const DingTalkEditModal = ({ updateShareChat({ ...e, app: { - clientId: e?.app?.clientId?.trim(), - clientSecret: e.app?.clientSecret?.trim() + clientId: e?.app?.clientId?.trim() ?? '', + clientSecret: e.app?.clientSecret?.trim() ?? '' } }), { diff --git a/projects/app/src/pageComponents/app/detail/Publish/DingTalk/index.tsx b/projects/app/src/pageComponents/app/detail/Publish/DingTalk/index.tsx index 0a7473a9ca..a48b7c2116 100644 --- a/projects/app/src/pageComponents/app/detail/Publish/DingTalk/index.tsx +++ b/projects/app/src/pageComponents/app/detail/Publish/DingTalk/index.tsx @@ -19,7 +19,7 @@ import { useLoading } from '@fastgpt/web/hooks/useLoading'; import { getShareChatList, delShareChatById } from '@/web/support/outLink/api'; import { formatTimeToChatTime } from '@fastgpt/global/common/string/time'; import { defaultDingtalkOutlinkForm } from '@/web/core/app/constants'; -import type { DingtalkAppType, OutLinkEditType } from '@fastgpt/global/support/outLink/type.d'; +import type { DingtalkAppType, OutLinkEditType } from '@fastgpt/global/support/outLink/type'; import { PublishChannelEnum } from '@fastgpt/global/support/outLink/constant'; import { useTranslation } from 'next-i18next'; import { useSystemStore } from '@/web/common/system/useSystemStore'; diff --git a/projects/app/src/pageComponents/app/detail/Publish/FeiShu/FeiShuEditModal.tsx b/projects/app/src/pageComponents/app/detail/Publish/FeiShu/FeiShuEditModal.tsx index 9d1c61afc5..d17a8395a9 100644 --- a/projects/app/src/pageComponents/app/detail/Publish/FeiShu/FeiShuEditModal.tsx +++ b/projects/app/src/pageComponents/app/detail/Publish/FeiShu/FeiShuEditModal.tsx @@ -44,8 +44,8 @@ const FeiShuEditModal = ({ appId, type: PublishChannelEnum.feishu, app: { - appId: e?.app?.appId?.trim(), - appSecret: e.app?.appSecret?.trim(), + appId: e?.app?.appId?.trim() ?? '', + appSecret: e.app?.appSecret?.trim() ?? '', encryptKey: e.app?.encryptKey?.trim() } }), @@ -61,8 +61,8 @@ const FeiShuEditModal = ({ updateShareChat({ ...e, app: { - appId: e?.app?.appId?.trim(), - appSecret: e.app?.appSecret?.trim(), + appId: e?.app?.appId?.trim() ?? '', + appSecret: e.app?.appSecret?.trim() ?? '', encryptKey: e.app?.encryptKey?.trim() } }), diff --git a/projects/app/src/pageComponents/app/detail/Publish/FeiShu/index.tsx b/projects/app/src/pageComponents/app/detail/Publish/FeiShu/index.tsx index 3b83fc82bb..78af05886e 100644 --- a/projects/app/src/pageComponents/app/detail/Publish/FeiShu/index.tsx +++ b/projects/app/src/pageComponents/app/detail/Publish/FeiShu/index.tsx @@ -19,7 +19,7 @@ import { useLoading } from '@fastgpt/web/hooks/useLoading'; import { getShareChatList, delShareChatById } from '@/web/support/outLink/api'; import { formatTimeToChatTime } from '@fastgpt/global/common/string/time'; import { defaultFeishuOutLinkForm } from '@/web/core/app/constants'; -import type { FeishuAppType, OutLinkEditType } from '@fastgpt/global/support/outLink/type.d'; +import type { FeishuAppType, OutLinkEditType } from '@fastgpt/global/support/outLink/type'; import { PublishChannelEnum } from '@fastgpt/global/support/outLink/constant'; import { useTranslation } from 'next-i18next'; import { useSystemStore } from '@/web/common/system/useSystemStore'; diff --git a/projects/app/src/pageComponents/app/detail/Publish/Link/index.tsx b/projects/app/src/pageComponents/app/detail/Publish/Link/index.tsx index 62d9c51e13..5e23c31f16 100644 --- a/projects/app/src/pageComponents/app/detail/Publish/Link/index.tsx +++ b/projects/app/src/pageComponents/app/detail/Publish/Link/index.tsx @@ -31,7 +31,7 @@ import { formatTimeToChatTime } from '@fastgpt/global/common/string/time'; import { useCopyData } from '@fastgpt/web/hooks/useCopyData'; import { useForm } from 'react-hook-form'; import { defaultOutLinkForm } from '@/web/core/app/constants'; -import type { OutLinkEditType, OutLinkSchema } from '@fastgpt/global/support/outLink/type.d'; +import type { OutLinkEditType, OutLinkSchema } from '@fastgpt/global/support/outLink/type'; import { PublishChannelEnum } from '@fastgpt/global/support/outLink/constant'; import { useTranslation } from 'next-i18next'; import { useToast } from '@fastgpt/web/hooks/useToast'; diff --git a/projects/app/src/pageComponents/app/detail/Publish/OffiAccount/index.tsx b/projects/app/src/pageComponents/app/detail/Publish/OffiAccount/index.tsx index a5d91a0591..57570ec6ad 100644 --- a/projects/app/src/pageComponents/app/detail/Publish/OffiAccount/index.tsx +++ b/projects/app/src/pageComponents/app/detail/Publish/OffiAccount/index.tsx @@ -19,7 +19,7 @@ import { useLoading } from '@fastgpt/web/hooks/useLoading'; import { getShareChatList, delShareChatById } from '@/web/support/outLink/api'; import { formatTimeToChatTime } from '@fastgpt/global/common/string/time'; import { defaultOutLinkForm } from '@/web/core/app/constants'; -import type { OutLinkEditType, OffiAccountAppType } from '@fastgpt/global/support/outLink/type.d'; +import type { OutLinkEditType, OffiAccountAppType } from '@fastgpt/global/support/outLink/type'; import { PublishChannelEnum } from '@fastgpt/global/support/outLink/constant'; import { useTranslation } from 'next-i18next'; import { useSystemStore } from '@/web/common/system/useSystemStore'; diff --git a/projects/app/src/pageComponents/app/detail/Publish/Wecom/index.tsx b/projects/app/src/pageComponents/app/detail/Publish/Wecom/index.tsx index 4ce2e7f5c2..eeaa3d320b 100644 --- a/projects/app/src/pageComponents/app/detail/Publish/Wecom/index.tsx +++ b/projects/app/src/pageComponents/app/detail/Publish/Wecom/index.tsx @@ -18,7 +18,7 @@ import { useLoading } from '@fastgpt/web/hooks/useLoading'; import { getShareChatList, delShareChatById } from '@/web/support/outLink/api'; import { formatTimeToChatTime } from '@fastgpt/global/common/string/time'; import { defaultOutLinkForm } from '@/web/core/app/constants'; -import type { WecomAppType, OutLinkEditType } from '@fastgpt/global/support/outLink/type.d'; +import type { WecomAppType, OutLinkEditType } from '@fastgpt/global/support/outLink/type'; import { PublishChannelEnum } from '@fastgpt/global/support/outLink/constant'; import { Trans, useTranslation } from 'next-i18next'; import { useSystemStore } from '@/web/common/system/useSystemStore'; diff --git a/projects/app/src/pageComponents/app/detail/WorkflowComponents/Flow/nodes/render/RenderInput/type.d.ts b/projects/app/src/pageComponents/app/detail/WorkflowComponents/Flow/nodes/render/RenderInput/type.ts similarity index 100% rename from projects/app/src/pageComponents/app/detail/WorkflowComponents/Flow/nodes/render/RenderInput/type.d.ts rename to projects/app/src/pageComponents/app/detail/WorkflowComponents/Flow/nodes/render/RenderInput/type.ts diff --git a/projects/app/src/pageComponents/app/detail/WorkflowComponents/Flow/nodes/render/RenderOutput/type.d.ts b/projects/app/src/pageComponents/app/detail/WorkflowComponents/Flow/nodes/render/RenderOutput/type.ts similarity index 100% rename from projects/app/src/pageComponents/app/detail/WorkflowComponents/Flow/nodes/render/RenderOutput/type.d.ts rename to projects/app/src/pageComponents/app/detail/WorkflowComponents/Flow/nodes/render/RenderOutput/type.ts diff --git a/projects/app/src/pageComponents/app/detail/WorkflowComponents/Flow/nodes/render/RenderToolInput/type.d.ts b/projects/app/src/pageComponents/app/detail/WorkflowComponents/Flow/nodes/render/RenderToolInput/type.d.ts deleted file mode 100644 index 96790fc292..0000000000 --- a/projects/app/src/pageComponents/app/detail/WorkflowComponents/Flow/nodes/render/RenderToolInput/type.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export type EditFieldModalProps = { - defaultValue?: EditFieldFormProps; - nodeId: string; - onClose: () => void; -}; diff --git a/projects/app/src/pageComponents/app/detail/WorkflowComponents/Flow/nodes/render/RenderToolInput/type.ts b/projects/app/src/pageComponents/app/detail/WorkflowComponents/Flow/nodes/render/RenderToolInput/type.ts new file mode 100644 index 0000000000..1eabc24f73 --- /dev/null +++ b/projects/app/src/pageComponents/app/detail/WorkflowComponents/Flow/nodes/render/RenderToolInput/type.ts @@ -0,0 +1,7 @@ +import type { FlowNodeInputItemType } from '@fastgpt/global/core/workflow/type/io'; + +export type EditFieldModalProps = { + defaultValue?: FlowNodeInputItemType; + nodeId: string; + onClose: () => void; +}; diff --git a/projects/app/src/pageComponents/dataset/detail/Import/commonProgress/Upload.tsx b/projects/app/src/pageComponents/dataset/detail/Import/commonProgress/Upload.tsx index ed424b9862..2cd3c9ca90 100644 --- a/projects/app/src/pageComponents/dataset/detail/Import/commonProgress/Upload.tsx +++ b/projects/app/src/pageComponents/dataset/detail/Import/commonProgress/Upload.tsx @@ -32,7 +32,7 @@ import MyTag from '@fastgpt/web/components/common/Tag/index'; import { useContextSelector } from 'use-context-selector'; import { DatasetPageContext } from '@/web/core/dataset/context/datasetPageContext'; import { DatasetImportContext, type ImportFormType } from '../Context'; -import { type ApiCreateDatasetCollectionParams } from '@fastgpt/global/core/dataset/api.d'; +import { type ApiCreateDatasetCollectionParams } from '@fastgpt/global/core/dataset/api'; const Upload = () => { const { t } = useTranslation(); diff --git a/projects/app/src/pageComponents/dataset/detail/Import/components/RenderFiles.tsx b/projects/app/src/pageComponents/dataset/detail/Import/components/RenderFiles.tsx index 855c3ce66b..77022886a2 100644 --- a/projects/app/src/pageComponents/dataset/detail/Import/components/RenderFiles.tsx +++ b/projects/app/src/pageComponents/dataset/detail/Import/components/RenderFiles.tsx @@ -12,7 +12,7 @@ import { IconButton, Box } from '@chakra-ui/react'; -import { type ImportSourceItemType } from '@/web/core/dataset/type.d'; +import { type ImportSourceItemType } from '@/web/core/dataset/type'; import MyIcon from '@fastgpt/web/components/common/Icon'; import { useTranslation } from 'next-i18next'; import MyTooltip from '@fastgpt/web/components/common/MyTooltip'; diff --git a/projects/app/src/pageComponents/dataset/detail/Import/diffSource/FileLocal.tsx b/projects/app/src/pageComponents/dataset/detail/Import/diffSource/FileLocal.tsx index 8cfd64c7aa..30d51b5fe1 100644 --- a/projects/app/src/pageComponents/dataset/detail/Import/diffSource/FileLocal.tsx +++ b/projects/app/src/pageComponents/dataset/detail/Import/diffSource/FileLocal.tsx @@ -1,5 +1,5 @@ import React, { useCallback, useEffect, useMemo, useState } from 'react'; -import { type ImportSourceItemType } from '@/web/core/dataset/type.d'; +import { type ImportSourceItemType } from '@/web/core/dataset/type'; import { Box, Button } from '@chakra-ui/react'; import FileSelector, { type SelectFileItemType } from '../components/FileSelector'; import { useTranslation } from 'next-i18next'; diff --git a/projects/app/src/pageComponents/dataset/detail/Import/type.d.ts b/projects/app/src/pageComponents/dataset/detail/Import/type.ts similarity index 100% rename from projects/app/src/pageComponents/dataset/detail/Import/type.d.ts rename to projects/app/src/pageComponents/dataset/detail/Import/type.ts diff --git a/projects/app/src/pageComponents/dataset/detail/Info/index.tsx b/projects/app/src/pageComponents/dataset/detail/Info/index.tsx index 0d7fae97a0..0d2457ffca 100644 --- a/projects/app/src/pageComponents/dataset/detail/Info/index.tsx +++ b/projects/app/src/pageComponents/dataset/detail/Info/index.tsx @@ -2,7 +2,7 @@ import React, { useEffect, useMemo, useState } from 'react'; import { Box, Flex, Switch, Input } from '@chakra-ui/react'; import { useConfirm } from '@fastgpt/web/hooks/useConfirm'; import { useForm } from 'react-hook-form'; -import type { DatasetItemType } from '@fastgpt/global/core/dataset/type.d'; +import type { DatasetItemType } from '@fastgpt/global/core/dataset/type'; import Avatar from '@fastgpt/web/components/common/Avatar'; import { useTranslation } from 'next-i18next'; import { useSystemStore } from '@/web/common/system/useSystemStore'; diff --git a/projects/app/src/pageComponents/dataset/list/CreateModal.tsx b/projects/app/src/pageComponents/dataset/list/CreateModal.tsx index f4f8f13115..466d85d5a6 100644 --- a/projects/app/src/pageComponents/dataset/list/CreateModal.tsx +++ b/projects/app/src/pageComponents/dataset/list/CreateModal.tsx @@ -8,7 +8,7 @@ import Avatar from '@fastgpt/web/components/common/Avatar'; import MyTooltip from '@fastgpt/web/components/common/MyTooltip'; import MyModal from '@fastgpt/web/components/common/MyModal'; import { postCreateDataset } from '@/web/core/dataset/api'; -import type { CreateDatasetParams } from '@/global/core/dataset/api.d'; +import type { CreateDatasetParams } from '@/global/core/dataset/api'; import { useTranslation } from 'next-i18next'; import { DatasetTypeEnum, DatasetTypeMap } from '@fastgpt/global/core/dataset/constants'; import AIModelSelector from '@/components/Select/AIModelSelector'; diff --git a/projects/app/src/pageComponents/login/ForgetPasswordForm.tsx b/projects/app/src/pageComponents/login/ForgetPasswordForm.tsx index 13012363b2..acc4111a96 100644 --- a/projects/app/src/pageComponents/login/ForgetPasswordForm.tsx +++ b/projects/app/src/pageComponents/login/ForgetPasswordForm.tsx @@ -4,7 +4,7 @@ import { useForm } from 'react-hook-form'; import { LoginPageTypeEnum } from '@/web/support/user/login/constants'; import { postFindPassword } from '@/web/support/user/api'; import { useSendCode } from '@/web/support/user/hooks/useSendCode'; -import type { LoginSuccessResponse } from '@/global/support/api/userRes.d'; +import type { LoginSuccessResponse } from '@/global/support/api/userRes'; import { useToast } from '@fastgpt/web/hooks/useToast'; import { useSystemStore } from '@/web/common/system/useSystemStore'; import { useTranslation } from 'next-i18next'; diff --git a/projects/app/src/pageComponents/login/index.tsx b/projects/app/src/pageComponents/login/index.tsx index 6151a16954..eb68fd3554 100644 --- a/projects/app/src/pageComponents/login/index.tsx +++ b/projects/app/src/pageComponents/login/index.tsx @@ -10,7 +10,7 @@ import { } from '@chakra-ui/react'; import { LoginPageTypeEnum } from '@/web/support/user/login/constants'; import { useSystemStore } from '@/web/common/system/useSystemStore'; -import type { LoginSuccessResponse } from '@/global/support/api/userRes.d'; +import type { LoginSuccessResponse } from '@/global/support/api/userRes'; import { useChatStore } from '@/web/core/chat/context/useChatStore'; import dynamic from 'next/dynamic'; import Script from 'next/script'; diff --git a/projects/app/src/pages/api/core/chat/init.ts b/projects/app/src/pages/api/core/chat/init.ts index 84050860df..595432ba48 100644 --- a/projects/app/src/pages/api/core/chat/init.ts +++ b/projects/app/src/pages/api/core/chat/init.ts @@ -2,7 +2,7 @@ import type { NextApiRequest, NextApiResponse } from 'next'; import { authApp } from '@fastgpt/service/support/permission/app/auth'; import { getGuideModule, getAppChatConfig } from '@fastgpt/global/core/workflow/utils'; import { getChatModelNameListByModules } from '@/service/core/app/workflow'; -import type { InitChatResponse } from '@/global/core/chat/api.d'; +import type { InitChatResponse } from '@/global/core/chat/api'; import { MongoChat } from '@fastgpt/service/core/chat/chatSchema'; import { ChatErrEnum } from '@fastgpt/global/common/error/code/chat'; import { getAppLatestVersion } from '@fastgpt/service/core/app/version/controller'; diff --git a/projects/app/src/pages/api/core/chat/item/delete.ts b/projects/app/src/pages/api/core/chat/item/delete.ts index 8136534a9c..31f89e4acb 100644 --- a/projects/app/src/pages/api/core/chat/item/delete.ts +++ b/projects/app/src/pages/api/core/chat/item/delete.ts @@ -1,7 +1,7 @@ import type { NextApiResponse } from 'next'; import { MongoChatItem } from '@fastgpt/service/core/chat/chatItemSchema'; import { authChatCrud } from '@/service/support/permission/auth/chat'; -import type { DeleteChatItemProps } from '@/global/core/chat/api.d'; +import type { DeleteChatItemProps } from '@/global/core/chat/api'; import { NextAPI } from '@/service/middleware/entry'; import { type ApiRequestProps } from '@fastgpt/service/type/next'; diff --git a/projects/app/src/pages/api/core/chat/item/getSpeech.ts b/projects/app/src/pages/api/core/chat/item/getSpeech.ts index 1a1572e3d2..b86c541414 100644 --- a/projects/app/src/pages/api/core/chat/item/getSpeech.ts +++ b/projects/app/src/pages/api/core/chat/item/getSpeech.ts @@ -1,7 +1,7 @@ import type { NextApiResponse } from 'next'; import { jsonRes } from '@fastgpt/service/common/response'; -import { type GetChatSpeechProps } from '@/global/core/chat/api.d'; +import { type GetChatSpeechProps } from '@/global/core/chat/api'; import { text2Speech } from '@fastgpt/service/core/ai/audio/speech'; import { pushAudioSpeechUsage } from '@/service/support/wallet/usage/push'; import { authChatCrud } from '@/service/support/permission/auth/chat'; diff --git a/projects/app/src/pages/api/core/chat/outLink/init.ts b/projects/app/src/pages/api/core/chat/outLink/init.ts index 949de8561d..c5869daf23 100644 --- a/projects/app/src/pages/api/core/chat/outLink/init.ts +++ b/projects/app/src/pages/api/core/chat/outLink/init.ts @@ -1,5 +1,5 @@ import type { NextApiRequest, NextApiResponse } from 'next'; -import type { InitOutLinkChatProps } from '@/global/core/chat/api.d'; +import type { InitOutLinkChatProps } from '@/global/core/chat/api'; import { getGuideModule, getAppChatConfig } from '@fastgpt/global/core/workflow/utils'; import { authOutLink } from '@/service/support/permission/auth/outLink'; import { MongoApp } from '@fastgpt/service/core/app/schema'; diff --git a/projects/app/src/pages/api/core/chat/team/init.ts b/projects/app/src/pages/api/core/chat/team/init.ts index 0e2e832f3b..259e44d98d 100644 --- a/projects/app/src/pages/api/core/chat/team/init.ts +++ b/projects/app/src/pages/api/core/chat/team/init.ts @@ -2,7 +2,7 @@ import type { NextApiResponse } from 'next'; import { jsonRes } from '@fastgpt/service/common/response'; import { getGuideModule, getAppChatConfig } from '@fastgpt/global/core/workflow/utils'; import { getChatModelNameListByModules } from '@/service/core/app/workflow'; -import type { InitChatResponse, InitTeamChatProps } from '@/global/core/chat/api.d'; +import type { InitChatResponse, InitTeamChatProps } from '@/global/core/chat/api'; import { MongoChat } from '@fastgpt/service/core/chat/chatSchema'; import { MongoApp } from '@fastgpt/service/core/app/schema'; import { AppErrEnum } from '@fastgpt/global/common/error/code/app'; diff --git a/projects/app/src/pages/api/core/dataset/collection/create.ts b/projects/app/src/pages/api/core/dataset/collection/create.ts index b7fb41951d..89ce1a14bb 100644 --- a/projects/app/src/pages/api/core/dataset/collection/create.ts +++ b/projects/app/src/pages/api/core/dataset/collection/create.ts @@ -1,5 +1,5 @@ import type { NextApiRequest } from 'next'; -import type { CreateDatasetCollectionParams } from '@fastgpt/global/core/dataset/api.d'; +import type { CreateDatasetCollectionParams } from '@fastgpt/global/core/dataset/api'; import { authDataset } from '@fastgpt/service/support/permission/dataset/auth'; import { createOneCollection } from '@fastgpt/service/core/dataset/collection/controller'; import { NextAPI } from '@/service/middleware/entry'; diff --git a/projects/app/src/pages/api/core/dataset/collection/create/apiCollection.ts b/projects/app/src/pages/api/core/dataset/collection/create/apiCollection.ts index 9607873bcf..d257058e64 100644 --- a/projects/app/src/pages/api/core/dataset/collection/create/apiCollection.ts +++ b/projects/app/src/pages/api/core/dataset/collection/create/apiCollection.ts @@ -1,4 +1,4 @@ -import type { ApiDatasetCreateDatasetCollectionParams } from '@fastgpt/global/core/dataset/api.d'; +import type { ApiDatasetCreateDatasetCollectionParams } from '@fastgpt/global/core/dataset/api'; import { authDataset } from '@fastgpt/service/support/permission/dataset/auth'; import { NextAPI } from '@/service/middleware/entry'; diff --git a/projects/app/src/pages/api/core/dataset/collection/create/apiCollectionV2.ts b/projects/app/src/pages/api/core/dataset/collection/create/apiCollectionV2.ts index 43b9902c06..a664fe8ea8 100644 --- a/projects/app/src/pages/api/core/dataset/collection/create/apiCollectionV2.ts +++ b/projects/app/src/pages/api/core/dataset/collection/create/apiCollectionV2.ts @@ -1,4 +1,4 @@ -import type { ApiDatasetCreateDatasetCollectionV2Params } from '@fastgpt/global/core/dataset/api.d'; +import type { ApiDatasetCreateDatasetCollectionV2Params } from '@fastgpt/global/core/dataset/api'; import { authDataset } from '@fastgpt/service/support/permission/dataset/auth'; import { createCollectionAndInsertData, diff --git a/projects/app/src/pages/api/core/dataset/collection/create/link.ts b/projects/app/src/pages/api/core/dataset/collection/create/link.ts index 902ae03aba..5ce1934138 100644 --- a/projects/app/src/pages/api/core/dataset/collection/create/link.ts +++ b/projects/app/src/pages/api/core/dataset/collection/create/link.ts @@ -1,5 +1,5 @@ import type { NextApiRequest } from 'next'; -import type { LinkCreateDatasetCollectionParams } from '@fastgpt/global/core/dataset/api.d'; +import type { LinkCreateDatasetCollectionParams } from '@fastgpt/global/core/dataset/api'; import { authDataset } from '@fastgpt/service/support/permission/dataset/auth'; import { createCollectionAndInsertData } from '@fastgpt/service/core/dataset/collection/controller'; import { DatasetCollectionTypeEnum } from '@fastgpt/global/core/dataset/constants'; diff --git a/projects/app/src/pages/api/core/dataset/collection/create/text.ts b/projects/app/src/pages/api/core/dataset/collection/create/text.ts index e5380a2e9b..ea472bf1a8 100644 --- a/projects/app/src/pages/api/core/dataset/collection/create/text.ts +++ b/projects/app/src/pages/api/core/dataset/collection/create/text.ts @@ -1,5 +1,5 @@ import type { NextApiRequest } from 'next'; -import type { TextCreateDatasetCollectionParams } from '@fastgpt/global/core/dataset/api.d'; +import type { TextCreateDatasetCollectionParams } from '@fastgpt/global/core/dataset/api'; import { authDataset } from '@fastgpt/service/support/permission/dataset/auth'; import { createCollectionAndInsertData } from '@fastgpt/service/core/dataset/collection/controller'; import { DatasetCollectionTypeEnum } from '@fastgpt/global/core/dataset/constants'; diff --git a/projects/app/src/pages/api/core/dataset/collection/list.ts b/projects/app/src/pages/api/core/dataset/collection/list.ts index 55efcdc7d1..f86a09d1c1 100644 --- a/projects/app/src/pages/api/core/dataset/collection/list.ts +++ b/projects/app/src/pages/api/core/dataset/collection/list.ts @@ -1,7 +1,7 @@ import type { NextApiRequest } from 'next'; import { DatasetTrainingCollectionName } from '@fastgpt/service/core/dataset/training/schema'; import { Types } from '@fastgpt/service/common/mongo'; -import type { DatasetCollectionsListItemType } from '@/global/core/dataset/type.d'; +import type { DatasetCollectionsListItemType } from '@/global/core/dataset/type'; import { MongoDatasetCollection } from '@fastgpt/service/core/dataset/collection/schema'; import { DatasetCollectionTypeEnum } from '@fastgpt/global/core/dataset/constants'; import { authDataset } from '@fastgpt/service/support/permission/dataset/auth'; diff --git a/projects/app/src/pages/api/core/dataset/collection/listV2.ts b/projects/app/src/pages/api/core/dataset/collection/listV2.ts index 0dfbc7114d..d57cb07985 100644 --- a/projects/app/src/pages/api/core/dataset/collection/listV2.ts +++ b/projects/app/src/pages/api/core/dataset/collection/listV2.ts @@ -1,6 +1,6 @@ import type { NextApiRequest } from 'next'; import { Types } from '@fastgpt/service/common/mongo'; -import type { DatasetCollectionsListItemType } from '@/global/core/dataset/type.d'; +import type { DatasetCollectionsListItemType } from '@/global/core/dataset/type'; import type { GetDatasetCollectionsProps } from '@/global/core/api/datasetReq'; import { MongoDatasetCollection } from '@fastgpt/service/core/dataset/collection/schema'; import { DatasetCollectionTypeEnum } from '@fastgpt/global/core/dataset/constants'; diff --git a/projects/app/src/pages/api/core/dataset/collection/scrollList.ts b/projects/app/src/pages/api/core/dataset/collection/scrollList.ts index 9d69d97e43..e8ba1a4a27 100644 --- a/projects/app/src/pages/api/core/dataset/collection/scrollList.ts +++ b/projects/app/src/pages/api/core/dataset/collection/scrollList.ts @@ -9,7 +9,7 @@ import { DatasetCollectionTypeEnum } from '@fastgpt/global/core/dataset/constant import { CommonErrEnum } from '@fastgpt/global/common/error/code/common'; import { type ApiRequestProps } from '@fastgpt/service/type/next'; import { type PaginationProps, type PaginationResponse } from '@fastgpt/web/common/fetch/type'; -import type { DatasetCollectionsListItemType } from '@/global/core/dataset/type.d'; +import type { DatasetCollectionsListItemType } from '@/global/core/dataset/type'; import { parsePaginationRequest } from '@fastgpt/service/common/api/pagination'; export type GetScrollCollectionsProps = PaginationProps<{ diff --git a/projects/app/src/pages/api/core/dataset/create.ts b/projects/app/src/pages/api/core/dataset/create.ts index 5b087dfc25..3853422385 100644 --- a/projects/app/src/pages/api/core/dataset/create.ts +++ b/projects/app/src/pages/api/core/dataset/create.ts @@ -1,4 +1,4 @@ -import type { CreateDatasetParams } from '@/global/core/dataset/api.d'; +import type { CreateDatasetParams } from '@/global/core/dataset/api'; import { NextAPI } from '@/service/middleware/entry'; import { parseParentIdInMongo } from '@fastgpt/global/common/parentFolder/utils'; import { DatasetTypeEnum } from '@fastgpt/global/core/dataset/constants'; diff --git a/projects/app/src/pages/api/core/dataset/data/pushData.ts b/projects/app/src/pages/api/core/dataset/data/pushData.ts index 971e5724b9..9a997c827d 100644 --- a/projects/app/src/pages/api/core/dataset/data/pushData.ts +++ b/projects/app/src/pages/api/core/dataset/data/pushData.ts @@ -1,6 +1,6 @@ /* push data to training queue */ import type { NextApiResponse } from 'next'; -import type { PushDatasetDataProps } from '@fastgpt/global/core/dataset/api.d'; +import type { PushDatasetDataProps } from '@fastgpt/global/core/dataset/api'; import { authDatasetCollection } from '@fastgpt/service/support/permission/dataset/auth'; import { checkDatasetIndexLimit } from '@fastgpt/service/support/permission/teamLimit'; import { predictDataLimitLength } from '@fastgpt/global/core/dataset/utils'; diff --git a/projects/app/src/pages/api/core/dataset/paths.ts b/projects/app/src/pages/api/core/dataset/paths.ts index c64558e546..a7f665c10e 100644 --- a/projects/app/src/pages/api/core/dataset/paths.ts +++ b/projects/app/src/pages/api/core/dataset/paths.ts @@ -22,7 +22,7 @@ async function handler(req: NextApiRequest) { per: ReadPermissionVal }); - return await getParents(type === 'current' ? dataset._id : dataset.parentId); + return await getParents(type === 'current' ? dataset._id : dataset.parentId ?? undefined); } export async function getParents(parentId?: string): Promise { @@ -34,7 +34,7 @@ export async function getParents(parentId?: string): Promise diff --git a/projects/app/src/pages/api/support/outLink/playground/update.ts b/projects/app/src/pages/api/support/outLink/playground/update.ts index 83f8a73d2f..4cfa249249 100644 --- a/projects/app/src/pages/api/support/outLink/playground/update.ts +++ b/projects/app/src/pages/api/support/outLink/playground/update.ts @@ -7,7 +7,7 @@ import { NextAPI } from '@/service/middleware/entry'; import { type UpdatePlaygroundVisibilityConfigBody, UpdatePlaygroundVisibilityConfigBodySchema -} from '@fastgpt/global/support/outLink/api.d'; +} from '@fastgpt/global/support/outLink/api'; async function handler(req: ApiRequestProps) { const { appId, showRunningStatus, showCite, showFullText, canDownloadSource, showWholeResponse } = diff --git a/projects/app/src/pages/api/support/outLink/update.ts b/projects/app/src/pages/api/support/outLink/update.ts index db655410bd..4332bc867b 100644 --- a/projects/app/src/pages/api/support/outLink/update.ts +++ b/projects/app/src/pages/api/support/outLink/update.ts @@ -1,5 +1,5 @@ import { MongoOutLink } from '@fastgpt/service/support/outLink/schema'; -import type { OutLinkEditType } from '@fastgpt/global/support/outLink/type.d'; +import type { OutLinkEditType } from '@fastgpt/global/support/outLink/type'; import { authOutLinkCrud } from '@fastgpt/service/support/permission/publish/authLink'; import { ManagePermissionVal } from '@fastgpt/global/support/permission/constant'; import type { ApiRequestProps } from '@fastgpt/service/type/next'; diff --git a/projects/app/src/pages/api/support/user/account/loginByPassword.ts b/projects/app/src/pages/api/support/user/account/loginByPassword.ts index 69b89892bb..ee5dad4bd5 100644 --- a/projects/app/src/pages/api/support/user/account/loginByPassword.ts +++ b/projects/app/src/pages/api/support/user/account/loginByPassword.ts @@ -1,7 +1,7 @@ import type { NextApiRequest, NextApiResponse } from 'next'; import { MongoUser } from '@fastgpt/service/support/user/schema'; import { getUserDetail } from '@fastgpt/service/support/user/controller'; -import type { PostLoginProps } from '@fastgpt/global/support/user/api.d'; +import type { PostLoginProps } from '@fastgpt/global/support/user/api'; import { UserStatusEnum } from '@fastgpt/global/support/user/constant'; import { NextAPI } from '@/service/middleware/entry'; import { useIPFrequencyLimit } from '@fastgpt/service/common/middle/reqFrequencyLimit'; diff --git a/projects/app/src/pages/api/support/wallet/usage/createTrainingUsage.ts b/projects/app/src/pages/api/support/wallet/usage/createTrainingUsage.ts index 5ce254b9c9..75dc1e6606 100644 --- a/projects/app/src/pages/api/support/wallet/usage/createTrainingUsage.ts +++ b/projects/app/src/pages/api/support/wallet/usage/createTrainingUsage.ts @@ -1,6 +1,6 @@ import type { NextApiRequest } from 'next'; import { UsageSourceEnum } from '@fastgpt/global/support/wallet/usage/constants'; -import { type CreateTrainingUsageProps } from '@fastgpt/global/support/wallet/usage/api.d'; +import { type CreateTrainingUsageProps } from '@fastgpt/global/support/wallet/usage/api'; import { getLLMModel, getEmbeddingModel, getVlmModel } from '@fastgpt/service/core/ai/model'; import { createTrainingUsage } from '@fastgpt/service/support/wallet/usage/controller'; import { authDataset } from '@fastgpt/service/support/permission/dataset/auth'; diff --git a/projects/app/src/pages/login/fastlogin.tsx b/projects/app/src/pages/login/fastlogin.tsx index 4922c1270c..1a19be22bd 100644 --- a/projects/app/src/pages/login/fastlogin.tsx +++ b/projects/app/src/pages/login/fastlogin.tsx @@ -1,6 +1,6 @@ import React, { useCallback, useEffect } from 'react'; import { useRouter } from 'next/router'; -import type { LoginSuccessResponse } from '@/global/support/api/userRes.d'; +import type { LoginSuccessResponse } from '@/global/support/api/userRes'; import { useUserStore } from '@/web/support/user/useUserStore'; import { clearToken } from '@/web/support/user/auth'; import { postFastLogin } from '@/web/support/user/api'; diff --git a/projects/app/src/pages/login/provider.tsx b/projects/app/src/pages/login/provider.tsx index 3c7f9cf884..9767fc33ec 100644 --- a/projects/app/src/pages/login/provider.tsx +++ b/projects/app/src/pages/login/provider.tsx @@ -1,7 +1,7 @@ import React, { useCallback, useEffect } from 'react'; import { useRouter } from 'next/router'; import { useSystemStore } from '@/web/common/system/useSystemStore'; -import type { LoginSuccessResponse } from '@/global/support/api/userRes.d'; +import type { LoginSuccessResponse } from '@/global/support/api/userRes'; import { useUserStore } from '@/web/support/user/useUserStore'; import { clearToken } from '@/web/support/user/auth'; import { oauthLogin } from '@/web/support/user/api'; diff --git a/projects/app/src/service/common/system/index.ts b/projects/app/src/service/common/system/index.ts index 924ad58523..8f1a91aaa5 100644 --- a/projects/app/src/service/common/system/index.ts +++ b/projects/app/src/service/common/system/index.ts @@ -1,7 +1,7 @@ import { initHttpAgent } from '@fastgpt/service/common/middle/httpAgent'; import fs, { existsSync } from 'fs'; -import type { FastGPTFeConfigsType } from '@fastgpt/global/common/system/types/index.d'; -import type { FastGPTConfigFileType } from '@fastgpt/global/common/system/types/index.d'; +import type { FastGPTFeConfigsType } from '@fastgpt/global/common/system/types/index'; +import type { FastGPTConfigFileType } from '@fastgpt/global/common/system/types/index'; import { getFastGPTConfigFromDB } from '@fastgpt/service/common/system/config/controller'; import { isProduction } from '@fastgpt/global/common/system/constants'; import { initFastGPTConfig } from '@fastgpt/service/common/system/tools'; diff --git a/projects/app/src/service/core/ai/apiproxy.d.ts b/projects/app/src/service/core/ai/apiproxy.d.ts deleted file mode 100644 index c0af5ff5e6..0000000000 --- a/projects/app/src/service/core/ai/apiproxy.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export type CreateModelParams = { - name: string; - description: string; - prompt: string; -}; diff --git a/projects/app/src/service/core/dataset/queues/generateQA.ts b/projects/app/src/service/core/dataset/queues/generateQA.ts index 5ea6a63a26..03b4e3f2c3 100644 --- a/projects/app/src/service/core/dataset/queues/generateQA.ts +++ b/projects/app/src/service/core/dataset/queues/generateQA.ts @@ -5,7 +5,7 @@ import type { ChatCompletionMessageParam } from '@fastgpt/global/core/ai/type'; import { getLogger, LogCategories } from '@fastgpt/service/common/logger'; import { replaceVariable } from '@fastgpt/global/common/string/tools'; import { Prompt_AgentQA } from '@fastgpt/global/core/ai/prompt/agent'; -import type { PushDatasetDataChunkProps } from '@fastgpt/global/core/dataset/api.d'; +import type { PushDatasetDataChunkProps } from '@fastgpt/global/core/dataset/api'; import { getLLMModel } from '@fastgpt/service/core/ai/model'; import { checkTeamAiPointsAndLock } from './utils'; import { addMinutes } from 'date-fns'; diff --git a/projects/app/src/service/support/mcp/type.d.ts b/projects/app/src/service/support/mcp/type.ts similarity index 100% rename from projects/app/src/service/support/mcp/type.d.ts rename to projects/app/src/service/support/mcp/type.ts diff --git a/projects/app/src/service/support/permission/auth/outLink.ts b/projects/app/src/service/support/permission/auth/outLink.ts index edb74abb0d..594ba10645 100644 --- a/projects/app/src/service/support/permission/auth/outLink.ts +++ b/projects/app/src/service/support/permission/auth/outLink.ts @@ -4,7 +4,7 @@ import type { AuthOutLinkLimitProps, AuthOutLinkInitProps, AuthOutLinkResponse -} from '@fastgpt/global/support/outLink/api.d'; +} from '@fastgpt/global/support/outLink/api'; import { type ShareChatAuthProps } from '@fastgpt/global/support/permission/chat'; import { authOutLinkValid } from '@fastgpt/service/support/permission/publish/authLink'; import { AuthUserTypeEnum } from '@fastgpt/global/support/permission/constant'; diff --git a/projects/app/src/types/app.d.ts b/projects/app/src/types/app.d.ts deleted file mode 100644 index d6b49c7ec4..0000000000 --- a/projects/app/src/types/app.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { FlowNodeTypeEnum } from '@fastgpt/global/core/workflow/node/constant'; -import { WorkflowIOValueTypeEnum } from '@fastgpt/global/core/workflow/constants'; -import { XYPosition } from 'reactflow'; -import { AppModuleItemTypeEnum, ModulesInputItemTypeEnum } from '../constants/app'; -import { AppTypeEnum } from '@fastgpt/global/core/app/constants'; -import type { FlowNodeOutputTargetItemType } from '@fastgpt/global/core/workflow/node/type.d'; -import { - FlowNodeInputItemType, - FlowNodeOutputItemType -} from '@fastgpt/global/core/workflow/type/io'; -import type { StoreNodeItemType } from '@fastgpt/global/core/workflow/type/node'; -import type { FlowNodeTemplateType } from '@fastgpt/global/core/workflow/type/node'; -import type { AppSchemaType } from '@fastgpt/global/core/app/type'; -import { ChatModelType } from '@/constants/model'; -import { TeamMemberStatusEnum } from '@fastgpt/global/support/user/team/constant'; -import type { SourceMember } from '@fastgpt/global/support/user/type'; -import type { LocationName } from '@fastgpt/service/common/geo/type'; - -export interface ShareAppItem { - _id: string; - avatar: string; - name: string; - intro: string; - userId: string; - share: AppSchemaType['share']; - isCollection: boolean; -} - -/* app module */ -export type AppItemType = { - id: string; - name: string; - modules: StoreNodeItemType[]; - edges: StoreEdgeItemType[]; -}; diff --git a/projects/app/src/types/chat.d.ts b/projects/app/src/types/chat.ts similarity index 100% rename from projects/app/src/types/chat.d.ts rename to projects/app/src/types/chat.ts diff --git a/projects/app/src/types/common/file.d.ts b/projects/app/src/types/common/file.ts similarity index 100% rename from projects/app/src/types/common/file.d.ts rename to projects/app/src/types/common/file.ts diff --git a/projects/app/src/types/index.d.ts b/projects/app/src/types/index.ts similarity index 54% rename from projects/app/src/types/index.d.ts rename to projects/app/src/types/index.ts index 3897a4b71a..98437f5569 100644 --- a/projects/app/src/types/index.d.ts +++ b/projects/app/src/types/index.ts @@ -1,14 +1,4 @@ -import { - TTSModelType, - ChatModelItemType, - FunctionModelItemType, - LLMModelItemType, - RerankModelItemType, - EmbeddingModelItemType, - STTModelType -} from '@fastgpt/global/core/ai/model.schema'; import type { TrackEventName } from '@/web/common/system/constants'; -import { SubPlanType } from '@fastgpt/global/support/wallet/sub/type'; declare global { var qaQueueLen: number; diff --git a/projects/app/src/types/user.d.ts b/projects/app/src/types/user.ts similarity index 100% rename from projects/app/src/types/user.d.ts rename to projects/app/src/types/user.ts diff --git a/projects/app/src/web/common/system/staticData.ts b/projects/app/src/web/common/system/staticData.ts index 49fc5c72aa..e3e5667d07 100644 --- a/projects/app/src/web/common/system/staticData.ts +++ b/projects/app/src/web/common/system/staticData.ts @@ -1,6 +1,6 @@ import { getSystemInitData } from '@/web/common/system/api'; import { delay } from '@fastgpt/global/common/system/utils'; -import type { FastGPTFeConfigsType } from '@fastgpt/global/common/system/types/index.d'; +import type { FastGPTFeConfigsType } from '@fastgpt/global/common/system/types/index'; import { useSystemStore } from './useSystemStore'; diff --git a/projects/app/src/web/context/useInitApp.ts b/projects/app/src/web/context/useInitApp.ts index ad34383552..60c63f7b18 100644 --- a/projects/app/src/web/context/useInitApp.ts +++ b/projects/app/src/web/context/useInitApp.ts @@ -2,7 +2,7 @@ import { useEffect, useState } from 'react'; import { clientInitData } from '@/web/common/system/staticData'; import { useRouter } from 'next/router'; import { useSystemStore } from '@/web/common/system/useSystemStore'; -import type { FastGPTFeConfigsType } from '@fastgpt/global/common/system/types/index.d'; +import type { FastGPTFeConfigsType } from '@fastgpt/global/common/system/types/index'; import { useMemoizedFn, useMount } from 'ahooks'; import { TrackEventName } from '../common/system/constants'; import { useRequest } from '@fastgpt/web/hooks/useRequest'; diff --git a/projects/app/src/web/core/app/constants.ts b/projects/app/src/web/core/app/constants.ts index 56bfc12402..eb9d3e7962 100644 --- a/projects/app/src/web/core/app/constants.ts +++ b/projects/app/src/web/core/app/constants.ts @@ -4,7 +4,7 @@ import type { DingtalkAppType, FeishuAppType, OutLinkEditType -} from '@fastgpt/global/support/outLink/type.d'; +} from '@fastgpt/global/support/outLink/type'; import { AppPermission } from '@fastgpt/global/support/permission/app/controller'; export const defaultApp: AppDetailType = { _id: '', diff --git a/projects/app/src/web/core/chat/api.ts b/projects/app/src/web/core/chat/api.ts index f90bdfd460..a1ac530efc 100644 --- a/projects/app/src/web/core/chat/api.ts +++ b/projects/app/src/web/core/chat/api.ts @@ -5,9 +5,9 @@ import type { InitChatResponse, InitOutLinkChatProps, InitTeamChatProps -} from '@/global/core/chat/api.d'; +} from '@/global/core/chat/api'; -import type { DeleteChatItemProps } from '@/global/core/chat/api.d'; +import type { DeleteChatItemProps } from '@/global/core/chat/api'; import type { getChatRecordsBody, getChatRecordsResponse diff --git a/projects/app/src/web/core/dataset/api.ts b/projects/app/src/web/core/dataset/api.ts index 9b5b8cff36..7ad018f8f8 100644 --- a/projects/app/src/web/core/dataset/api.ts +++ b/projects/app/src/web/core/dataset/api.ts @@ -9,8 +9,8 @@ import type { DatasetSimpleItemType, DatasetTagType, TagUsageType -} from '@fastgpt/global/core/dataset/type.d'; -import type { GetDatasetCollectionsProps } from '@/global/core/api/datasetReq.d'; +} from '@fastgpt/global/core/dataset/type'; +import type { GetDatasetCollectionsProps } from '@/global/core/api/datasetReq'; import type { AddTagsToCollectionsParams, ApiDatasetCreateDatasetCollectionV2Params, @@ -24,13 +24,13 @@ import type { PostDatasetSyncParams, TextCreateDatasetCollectionParams, UpdateDatasetCollectionTagParams -} from '@fastgpt/global/core/dataset/api.d'; -import type { SearchTestProps, SearchTestResponse } from '@/global/core/dataset/api.d'; -import type { CreateDatasetParams, InsertOneDatasetDataProps } from '@/global/core/dataset/api.d'; +} from '@fastgpt/global/core/dataset/api'; +import type { SearchTestProps, SearchTestResponse } from '@/global/core/dataset/api'; +import type { CreateDatasetParams, InsertOneDatasetDataProps } from '@/global/core/dataset/api'; import type { DatasetCollectionItemType } from '@fastgpt/global/core/dataset/type'; import type { DatasetCollectionSyncResultEnum } from '@fastgpt/global/core/dataset/constants'; import type { DatasetDataItemType } from '@fastgpt/global/core/dataset/type'; -import type { DatasetCollectionsListItemType } from '@/global/core/dataset/type.d'; +import type { DatasetCollectionsListItemType } from '@/global/core/dataset/type'; import type { getDatasetTrainingQueueResponse } from '@/pages/api/core/dataset/training/getDatasetTrainingQueue'; import type { rebuildEmbeddingBody } from '@/pages/api/core/dataset/training/rebuildEmbedding'; import type { diff --git a/projects/app/src/web/core/dataset/constants.ts b/projects/app/src/web/core/dataset/constants.ts index 1c34a6be1c..a653bbe958 100644 --- a/projects/app/src/web/core/dataset/constants.ts +++ b/projects/app/src/web/core/dataset/constants.ts @@ -4,10 +4,7 @@ import { DatasetCollectionTypeEnum, DatasetTypeEnum } from '@fastgpt/global/core/dataset/constants'; -import type { - DatasetCollectionItemType, - DatasetItemType -} from '@fastgpt/global/core/dataset/type.d'; +import type { DatasetCollectionItemType, DatasetItemType } from '@fastgpt/global/core/dataset/type'; import { DatasetPermission } from '@fastgpt/global/support/permission/dataset/controller'; import { i18nT } from '@fastgpt/web/i18n/utils'; diff --git a/projects/app/src/web/core/dataset/store/dataset.ts b/projects/app/src/web/core/dataset/store/dataset.ts index 25e75aacf7..fa4ab8e407 100644 --- a/projects/app/src/web/core/dataset/store/dataset.ts +++ b/projects/app/src/web/core/dataset/store/dataset.ts @@ -1,5 +1,5 @@ import { create, devtools, persist, immer } from '@fastgpt/web/common/zustand'; -import type { DatasetListItemType } from '@fastgpt/global/core/dataset/type.d'; +import type { DatasetListItemType } from '@fastgpt/global/core/dataset/type'; import { getDatasets } from '@/web/core/dataset/api'; type State = { diff --git a/projects/app/src/web/core/dataset/type.d.ts b/projects/app/src/web/core/dataset/type.ts similarity index 100% rename from projects/app/src/web/core/dataset/type.d.ts rename to projects/app/src/web/core/dataset/type.ts diff --git a/projects/app/src/web/core/workflow/type.d.ts b/projects/app/src/web/core/workflow/type.ts similarity index 100% rename from projects/app/src/web/core/workflow/type.d.ts rename to projects/app/src/web/core/workflow/type.ts diff --git a/projects/app/src/web/styles/reset.scss b/projects/app/src/web/styles/reset.scss index 8843639860..3766469100 100644 --- a/projects/app/src/web/styles/reset.scss +++ b/projects/app/src/web/styles/reset.scss @@ -1,6 +1,6 @@ -@import './reactflow.scss'; -@import './default.scss'; -@import './chakraui.scss'; +@use './reactflow.scss'; +@use './default.scss'; +@use './chakraui.scss'; body, h1, diff --git a/projects/app/src/web/support/activity/promotion/api.ts b/projects/app/src/web/support/activity/promotion/api.ts index 8b697ed5a8..59d5be2801 100644 --- a/projects/app/src/web/support/activity/promotion/api.ts +++ b/projects/app/src/web/support/activity/promotion/api.ts @@ -1,5 +1,5 @@ import { GET, POST } from '@/web/common/api/request'; -import type { PromotionRecordType } from '@/global/support/api/userRes.d'; +import type { PromotionRecordType } from '@/global/support/api/userRes'; import type { PaginationProps, PaginationResponse } from '@fastgpt/web/common/fetch/type'; /* get promotion init data */ diff --git a/projects/app/src/web/support/openapi/api.ts b/projects/app/src/web/support/openapi/api.ts index 610d005d32..58922e5393 100644 --- a/projects/app/src/web/support/openapi/api.ts +++ b/projects/app/src/web/support/openapi/api.ts @@ -1,5 +1,5 @@ import { GET, POST, DELETE, PUT } from '@/web/common/api/request'; -import type { EditApiKeyProps, GetApiKeyProps } from '@/global/support/openapi/api.d'; +import type { EditApiKeyProps, GetApiKeyProps } from '@/global/support/openapi/api'; import type { OpenApiSchema } from '@fastgpt/global/support/openapi/type'; /** diff --git a/projects/app/src/web/support/outLink/api.ts b/projects/app/src/web/support/outLink/api.ts index 6cc1ad60b3..0059340f60 100644 --- a/projects/app/src/web/support/outLink/api.ts +++ b/projects/app/src/web/support/outLink/api.ts @@ -8,10 +8,10 @@ import type { OutlinkAppType, OutLinkEditType, OutLinkSchema -} from '@fastgpt/global/support/outLink/type.d'; +} from '@fastgpt/global/support/outLink/type'; // create a shareChat -export function createShareChat( +export function createShareChat( data: OutLinkEditType & { appId: string; type: OutLinkSchema['type']; diff --git a/projects/app/src/web/support/user/api.ts b/projects/app/src/web/support/user/api.ts index 212ff3398b..e7db3cc546 100644 --- a/projects/app/src/web/support/user/api.ts +++ b/projects/app/src/web/support/user/api.ts @@ -1,6 +1,6 @@ import { GET, POST, PUT } from '@/web/common/api/request'; import { hashStr } from '@fastgpt/global/common/string/tools'; -import type { LoginSuccessResponse } from '@/global/support/api/userRes.d'; +import type { LoginSuccessResponse } from '@/global/support/api/userRes'; import type { UserAuthTypeEnum } from '@fastgpt/global/support/user/auth/constants'; import type { UserUpdateParams } from '@/types/user'; import type { UserType } from '@fastgpt/global/support/user/type'; @@ -9,13 +9,13 @@ import type { OauthLoginProps, PostLoginProps, SearchResult -} from '@fastgpt/global/support/user/api.d'; +} from '@fastgpt/global/support/user/api'; import type { AccountRegisterBody, GetWXLoginQRResponse -} from '@fastgpt/global/support/user/login/api.d'; +} from '@fastgpt/global/support/user/login/api'; import type { preLoginResponse } from '@/pages/api/support/user/account/preLogin'; -import type { WxLoginProps } from '@fastgpt/global/support/user/api.d'; +import type { WxLoginProps } from '@fastgpt/global/support/user/api'; import type { LangEnum } from '@fastgpt/global/common/i18n/type'; export const sendAuthCode = (data: { diff --git a/projects/app/src/web/support/user/team/api.ts b/projects/app/src/web/support/user/team/api.ts index 9b6e925e90..d732656077 100644 --- a/projects/app/src/web/support/user/team/api.ts +++ b/projects/app/src/web/support/user/team/api.ts @@ -8,13 +8,13 @@ import type { CreateTeamProps, UpdateInviteProps, UpdateTeamProps -} from '@fastgpt/global/support/user/team/controller.d'; +} from '@fastgpt/global/support/user/team/controller'; import type { TeamTagItemType, TeamTagSchema } from '@fastgpt/global/support/user/team/type'; import type { TeamTmbItemType, TeamMemberItemType, TeamMemberSchema -} from '@fastgpt/global/support/user/team/type.d'; +} from '@fastgpt/global/support/user/team/type'; import type { ClientTeamPlanStatusType, TeamSubSchemaType diff --git a/projects/app/src/web/support/wallet/usage/api.ts b/projects/app/src/web/support/wallet/usage/api.ts index 1476057694..ce72c9c99a 100644 --- a/projects/app/src/web/support/wallet/usage/api.ts +++ b/projects/app/src/web/support/wallet/usage/api.ts @@ -4,7 +4,7 @@ import type { GetUsageDashboardProps, GetUsageDashboardResponseItem, GetUsageProps -} from '@fastgpt/global/support/wallet/usage/api.d'; +} from '@fastgpt/global/support/wallet/usage/api'; import type { UsageListItemType } from '@fastgpt/global/support/wallet/usage/type'; import type { PaginationProps, PaginationResponse } from '@fastgpt/web/common/fetch/type'; diff --git a/projects/app/test/api/support/user/account/loginByPassword.test.ts b/projects/app/test/api/support/user/account/loginByPassword.test.ts index 5be89805b8..c44aec4a3e 100644 --- a/projects/app/test/api/support/user/account/loginByPassword.test.ts +++ b/projects/app/test/api/support/user/account/loginByPassword.test.ts @@ -12,7 +12,7 @@ import { addAuditLog } from '@fastgpt/service/support/user/audit/util'; import { CommonErrEnum } from '@fastgpt/global/common/error/code/common'; import { UserErrEnum } from '@fastgpt/global/common/error/code/user'; import { Call } from '@test/utils/request'; -import type { PostLoginProps } from '@fastgpt/global/support/user/api.d'; +import type { PostLoginProps } from '@fastgpt/global/support/user/api'; import { initTeamFreePlan } from '@fastgpt/service/support/wallet/sub/utils'; describe('loginByPassword API', () => { diff --git a/projects/app/test/api/support/wallet/usage/creatTrainingUsage.test.ts b/projects/app/test/api/support/wallet/usage/creatTrainingUsage.test.ts index 4c1b515b34..1b9b280380 100644 --- a/projects/app/test/api/support/wallet/usage/creatTrainingUsage.test.ts +++ b/projects/app/test/api/support/wallet/usage/creatTrainingUsage.test.ts @@ -1,5 +1,5 @@ import * as createapi from '@/pages/api/support/wallet/usage/createTrainingUsage'; -import type { CreateTrainingUsageProps } from '@fastgpt/global/support/wallet/usage/api.d'; +import type { CreateTrainingUsageProps } from '@fastgpt/global/support/wallet/usage/api'; import { DatasetTypeEnum } from '@fastgpt/global/core/dataset/constants'; import { WritePermissionVal } from '@fastgpt/global/support/permission/constant'; import { TeamDatasetCreatePermissionVal } from '@fastgpt/global/support/permission/user/constant'; diff --git a/projects/app/test/pages/api/support/outLink/playground/config.test.ts b/projects/app/test/pages/api/support/outLink/playground/config.test.ts index 8fedb72a24..f167fe9239 100644 --- a/projects/app/test/pages/api/support/outLink/playground/config.test.ts +++ b/projects/app/test/pages/api/support/outLink/playground/config.test.ts @@ -1,4 +1,4 @@ -import type { PlaygroundVisibilityConfigResponse } from '@fastgpt/global/support/outLink/api.d'; +import type { PlaygroundVisibilityConfigResponse } from '@fastgpt/global/support/outLink/api'; import { PublishChannelEnum } from '@fastgpt/global/support/outLink/constant'; import { MongoApp } from '@fastgpt/service/core/app/schema'; import { MongoOutLink } from '@fastgpt/service/support/outLink/schema'; diff --git a/projects/app/test/pages/api/support/outLink/playground/update.test.ts b/projects/app/test/pages/api/support/outLink/playground/update.test.ts index 6784372f1c..a2aba9f049 100644 --- a/projects/app/test/pages/api/support/outLink/playground/update.test.ts +++ b/projects/app/test/pages/api/support/outLink/playground/update.test.ts @@ -1,4 +1,4 @@ -import type { UpdatePlaygroundVisibilityConfigBody } from '@fastgpt/global/support/outLink/api.d'; +import type { UpdatePlaygroundVisibilityConfigBody } from '@fastgpt/global/support/outLink/api'; import { PublishChannelEnum } from '@fastgpt/global/support/outLink/constant'; import { MongoApp } from '@fastgpt/service/core/app/schema'; import { MongoOutLink } from '@fastgpt/service/support/outLink/schema'; diff --git a/projects/app/tsconfig.json b/projects/app/tsconfig.json index 70364dfdfe..1807a848fa 100644 --- a/projects/app/tsconfig.json +++ b/projects/app/tsconfig.json @@ -8,6 +8,6 @@ "@t3-oss/env-core": ["../../packages/service/node_modules/@t3-oss/env-core/dist/index.d.ts"] } }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "**/*.d.ts", "../../packages/**/*.d.ts"], + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "../../packages/**/*.ts"], "exclude": ["**/*.test.ts"] } diff --git a/projects/marketplace/env.d.ts b/projects/marketplace/env.ts similarity index 100% rename from projects/marketplace/env.d.ts rename to projects/marketplace/env.ts diff --git a/projects/marketplace/next.config.js b/projects/marketplace/next.config.js index 52fa5c9c5a..57320c0916 100644 --- a/projects/marketplace/next.config.js +++ b/projects/marketplace/next.config.js @@ -12,8 +12,6 @@ const nextConfig = { compress: true, // 禁用 source map(可选,根据需要) productionBrowserSourceMaps: false, - // 优化编译性能 - swcMinify: true, // 使用 SWC 压缩(生产环境已默认) async headers() { return [ { @@ -118,18 +116,16 @@ const nextConfig = { }, // 需要转译的包 transpilePackages: ['@modelcontextprotocol/sdk', 'ahooks'], + serverExternalPackages: [ + 'mongoose', + 'pg', + 'bullmq', + '@zilliz/milvus2-sdk-node', + 'tiktoken', + '@opentelemetry/api-logs' + ], experimental: { - // 优化 Server Components 的构建和运行,避免不必要的客户端打包。 - serverComponentsExternalPackages: [ - 'mongoose', - 'pg', - 'bullmq', - '@zilliz/milvus2-sdk-node', - 'tiktoken', - '@opentelemetry/api-logs' - ], outputFileTracingRoot: path.join(__dirname, '../../'), - instrumentationHook: true, workerThreads: true } }; diff --git a/projects/marketplace/package.json b/projects/marketplace/package.json index 3cb5c86364..24a82511d4 100644 --- a/projects/marketplace/package.json +++ b/projects/marketplace/package.json @@ -21,7 +21,7 @@ "axios": "^1.13.5", "i18next": "23.16.8", "mongoose": "^8.10.1", - "next": "14.2.35", + "next": "15.5.12", "next-i18next": "15.4.2", "react": "18.3.1", "react-dom": "18.3.1", @@ -34,7 +34,7 @@ "@types/react": "^18", "@types/react-dom": "^18", "eslint": "^8", - "eslint-config-next": "14.2.33", + "eslint-config-next": "15.5.12", "postcss": "^8", "tailwindcss": "^3.4.1", "typescript": "^5" diff --git a/projects/marketplace/tsconfig.json b/projects/marketplace/tsconfig.json index 124203c607..1e52ee68a2 100644 --- a/projects/marketplace/tsconfig.json +++ b/projects/marketplace/tsconfig.json @@ -6,6 +6,6 @@ "@/*": ["./src/*"] } }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "**/*.d.ts", "../../packages/**/*.d.ts"], + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "../../packages/**/*.ts"], "exclude": ["**/*.test.ts"] } diff --git a/projects/mcp_server/src/type.d.ts b/projects/mcp_server/src/type.ts similarity index 100% rename from projects/mcp_server/src/type.d.ts rename to projects/mcp_server/src/type.ts diff --git a/projects/sandbox_server/src/schemas/common.schema.d.ts b/projects/sandbox_server/src/schemas/common.schema.d.ts deleted file mode 100644 index 5a058065f0..0000000000 --- a/projects/sandbox_server/src/schemas/common.schema.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import type { z } from '@hono/zod-openapi'; -export declare const SuccessResponseSchema: z.ZodObject< - { - success: z.ZodLiteral; - }, - z.core.$strip ->; -export type SuccessResponse = z.infer; -export declare const ErrorResponseSchema: z.ZodObject< - { - success: z.ZodLiteral; - message: z.ZodString; - }, - z.core.$strip ->; -export type ErrorResponse = z.infer; -export declare const NameParamSchema: z.ZodObject< - { - name: z.ZodString; - }, - z.core.$strip ->; -export type NameParam = z.infer; diff --git a/projects/sandbox_server/src/schemas/container.schema.d.ts b/projects/sandbox_server/src/schemas/container.schema.d.ts deleted file mode 100644 index 24b16c9525..0000000000 --- a/projects/sandbox_server/src/schemas/container.schema.d.ts +++ /dev/null @@ -1,150 +0,0 @@ -import type { z } from '@hono/zod-openapi'; -export declare const CreateContainerSchema: z.ZodObject< - { - name: z.ZodString; - }, - z.core.$strip ->; -export type CreateContainerInput = z.infer; -export declare const ContainerStatusSchema: z.ZodObject< - { - state: z.ZodEnum<{ - Running: 'Running'; - Creating: 'Creating'; - Paused: 'Paused'; - Error: 'Error'; - Unknown: 'Unknown'; - }>; - replicas: z.ZodOptional; - availableReplicas: z.ZodOptional; - }, - z.core.$strip ->; -export type ContainerStatus = z.infer; -export declare const ContainerServerSchema: z.ZodObject< - { - serviceName: z.ZodString; - number: z.ZodNumber; - publicDomain: z.ZodOptional; - domain: z.ZodOptional; - }, - z.core.$strip ->; -export type ContainerServer = z.infer; -export declare const ContainerInfoSchema: z.ZodObject< - { - name: z.ZodString; - image: z.ZodObject< - { - imageName: z.ZodString; - }, - z.core.$strip - >; - status: z.ZodObject< - { - state: z.ZodEnum<{ - Running: 'Running'; - Creating: 'Creating'; - Paused: 'Paused'; - Error: 'Error'; - Unknown: 'Unknown'; - }>; - replicas: z.ZodOptional; - availableReplicas: z.ZodOptional; - }, - z.core.$strip - >; - server: z.ZodOptional< - z.ZodObject< - { - serviceName: z.ZodString; - number: z.ZodNumber; - publicDomain: z.ZodOptional; - domain: z.ZodOptional; - }, - z.core.$strip - > - >; - createdAt: z.ZodOptional; - }, - z.core.$strip ->; -export type ContainerInfo = z.infer; -export declare const ContainerInfoResponseSchema: z.ZodObject< - { - success: z.ZodLiteral; - data: z.ZodObject< - { - name: z.ZodString; - image: z.ZodObject< - { - imageName: z.ZodString; - }, - z.core.$strip - >; - status: z.ZodObject< - { - state: z.ZodEnum<{ - Running: 'Running'; - Creating: 'Creating'; - Paused: 'Paused'; - Error: 'Error'; - Unknown: 'Unknown'; - }>; - replicas: z.ZodOptional; - availableReplicas: z.ZodOptional; - }, - z.core.$strip - >; - server: z.ZodOptional< - z.ZodObject< - { - serviceName: z.ZodString; - number: z.ZodNumber; - publicDomain: z.ZodOptional; - domain: z.ZodOptional; - }, - z.core.$strip - > - >; - createdAt: z.ZodOptional; - }, - z.core.$strip - >; - }, - z.core.$strip ->; -export type ContainerInfoResponse = z.infer; -export declare const SealosContainerResponseSchema: z.ZodObject< - { - name: z.ZodString; - image: z.ZodObject< - { - imageName: z.ZodString; - }, - z.core.$strip - >; - createTime: z.ZodOptional; - status: z.ZodObject< - { - replicas: z.ZodCoercedNumber; - availableReplicas: z.ZodCoercedNumber; - isPause: z.ZodCoercedBoolean; - }, - z.core.$strip - >; - ports: z.ZodArray< - z.ZodObject< - { - serviceName: z.ZodString; - number: z.ZodCoercedNumber; - publicDomain: z.ZodOptional; - domain: z.ZodOptional; - }, - z.core.$strip - > - >; - }, - z.core.$strip ->; -export type SealosContainerResponse = z.infer; diff --git a/projects/sandbox_server/src/schemas/index.d.ts b/projects/sandbox_server/src/schemas/index.d.ts deleted file mode 100644 index 0956a88ba9..0000000000 --- a/projects/sandbox_server/src/schemas/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from './common.schema'; -export * from './container.schema'; -export * from './sandbox.schema'; diff --git a/projects/sandbox_server/src/schemas/sandbox.schema.d.ts b/projects/sandbox_server/src/schemas/sandbox.schema.d.ts deleted file mode 100644 index 0ad6b6bce1..0000000000 --- a/projects/sandbox_server/src/schemas/sandbox.schema.d.ts +++ /dev/null @@ -1,55 +0,0 @@ -import type { z } from '@hono/zod-openapi'; -export declare const ExecRequestSchema: z.ZodObject< - { - command: z.ZodString; - cwd: z.ZodOptional; - }, - z.core.$strip ->; -export type ExecRequest = z.infer; -export declare const HealthResponseSchema: z.ZodObject< - { - status: z.ZodString; - timestamp: z.ZodOptional; - }, - z.core.$strip ->; -export type HealthResponse = z.infer; -export declare const ExecResponseSchema: z.ZodObject< - { - success: z.ZodBoolean; - stdout: z.ZodString; - stderr: z.ZodString; - exitCode: z.ZodNumber; - cwd: z.ZodOptional; - error: z.ZodOptional; - }, - z.core.$strip ->; -export type ExecResponse = z.infer; -export declare const HealthCheckResponseSchema: z.ZodObject< - { - success: z.ZodLiteral; - healthy: z.ZodBoolean; - }, - z.core.$strip ->; -export type HealthCheckResponse = z.infer; -export declare const ExecResultResponseSchema: z.ZodObject< - { - success: z.ZodLiteral; - data: z.ZodObject< - { - success: z.ZodBoolean; - stdout: z.ZodString; - stderr: z.ZodString; - exitCode: z.ZodNumber; - cwd: z.ZodOptional; - error: z.ZodOptional; - }, - z.core.$strip - >; - }, - z.core.$strip ->; -export type ExecResultResponse = z.infer;