From 68f9add5663d7edbbc5f5b772ec2f5a50b25fdd2 Mon Sep 17 00:00:00 2001 From: fullex <0xfullex@gmail.com> Date: Wed, 31 Dec 2025 21:44:15 +0800 Subject: [PATCH] refactor(message): remove deprecated properties from message types - Commented out `modelId` and `knowledgeBaseIds` properties in `BaseBlock` and `MainTextBlock` interfaces, marking them as dead code for future removal in v2. - This change helps to clean up the codebase and prepare for upcoming version updates. --- packages/shared/data/types/message.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/shared/data/types/message.ts b/packages/shared/data/types/message.ts index be0bc3cb7e..7f85f92735 100644 --- a/packages/shared/data/types/message.ts +++ b/packages/shared/data/types/message.ts @@ -58,7 +58,7 @@ export interface BaseBlock { type: BlockType createdAt: number // timestamp updatedAt?: number - modelId?: string + // modelId?: string // v1's dead code, will be removed in v2 metadata?: Record error?: SerializedErrorData } @@ -84,7 +84,7 @@ export interface UnknownBlock extends BaseBlock { export interface MainTextBlock extends BaseBlock { type: BlockType.MAIN_TEXT content: string - knowledgeBaseIds?: string[] + //knowledgeBaseIds?: string[] // v1's dead code, will be removed in v2 citationReferences?: { citationBlockId?: string citationBlockSource?: string