File tree Expand file tree Collapse file tree
packages/scorpio.ai/src/Tools Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- export * from './types ' ;
1+ export * from './mcp ' ;
22export {
33 truncateMCPToolResult ,
44 type TruncateToolResultOptions ,
55} from './truncateToolResult' ;
6+ export {
7+ walkTree ,
8+ formatWalkSummary ,
9+ formatWalkTree ,
10+ DEFAULT_WALK_MAX_DEPTH ,
11+ DEFAULT_WALK_LIMIT ,
12+ type WalkTreeOptions ,
13+ type WalkTreeResult ,
14+ } from './walkTree' ;
Original file line number Diff line number Diff line change 11/**
2- * MCP 标准内容类型定义
2+ * MCP 标准内容与工具结果的基础定义
33 * 基于 @modelcontextprotocol/sdk 的类型定义,扩展支持 OpenAI 格式
44 */
55
Original file line number Diff line number Diff line change 11import * as fs from 'fs/promises' ;
22import * as path from 'path' ;
3- import { MCPContentType , type MCPContent , type MCPToolResult } from './types ' ;
3+ import { MCPContentType , type MCPContent , type MCPToolResult } from './mcp ' ;
44
55const MAX_CHARS = 32 * 1024 ;
66
Original file line number Diff line number Diff line change 11import fs from 'fs' ;
22import path from 'path' ;
33
4- /** 工具 schema 的统一默认值,供两端 schema 共用以保持一致 */
4+ /** 目录遍历 schema 的统一默认值,供两端 schema 共用以保持一致 */
55export const DEFAULT_WALK_MAX_DEPTH = 3 ;
66export const DEFAULT_WALK_LIMIT = 200 ;
77
Original file line number Diff line number Diff line change 11/**
22 * Tools 模块导出
3- * 提供 MCP 标准类型定义
3+ * 提供 MCP 标准定义与通用工具能力
44 */
55export {
66 MCPContentType ,
@@ -20,7 +20,7 @@ export {
2020 createErrorResult ,
2121 isMCPToolResult ,
2222 normalizeToMCPResult ,
23- } from './Core/types ' ;
23+ } from './Core/mcp ' ;
2424
2525export {
2626 createDispatchTaskTool ,
@@ -59,7 +59,7 @@ export {
5959 DEFAULT_WALK_LIMIT ,
6060 type WalkTreeOptions ,
6161 type WalkTreeResult ,
62- } from './walkTree' ;
62+ } from './Core/ walkTree' ;
6363
6464export {
6565 truncateMCPToolResult ,
You can’t perform that action at this time.
0 commit comments