mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-25 17:54:34 +08:00
refactor: remove dead code and simplify over-engineered abstractions
- Delete NotificationBus interface (no implementations, no callers) - Delete useAsyncData/useMultipleAsyncData composables (zero import sites) - Inline CHART_CAPABILITY_SKILL_ID into tool-catalog.ts (was a single-constant file) - Inline AsyncSqlExecutor into message-query-functions.ts (was a single-interface file) - Rename tools TimeFilter → ToolTimeRange to eliminate name collision with shared-types - Shrink useToast wrapper: two interfaces → one type, 40 lines → 17 lines - Simplify deepMerge: remove recursion, config is at most 1 level deep Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
835985fbf6
commit
39393cf38d
21 files changed
+79
-262
No files matched your search
@@ -10,7 +10,7 @@ import type {
|
||||
ToolExecutionContext,
|
||||
SemanticSearchToolService,
|
||||
RawMessage,
|
||||
TimeFilter,
|
||||
ToolTimeRange,
|
||||
} from '@openchatlab/tools'
|
||||
import { CoreDataProvider } from '@openchatlab/tools'
|
||||
import type { DatabaseAdapter } from '@openchatlab/core'
|
||||
@@ -50,7 +50,7 @@ export interface ServerToolContext {
|
||||
/** 当前用户平台 id(昵称匿名化 owner 识别) */
|
||||
ownerPlatformId?: string
|
||||
/** 会话时间范围筛选(来自请求参数,供证据类工具继承) */
|
||||
timeFilter?: TimeFilter
|
||||
timeFilter?: ToolTimeRange
|
||||
/** 关键词搜索消息条数上限 */
|
||||
maxMessagesLimit?: number
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user