5e32375f0e
架构变更: - 采用 pnpm workspaces 实现 Monorepo 结构 - 将现有代码迁移到 packages/core - 新增 packages/server HTTP 服务层 Server 功能: - REST API: 会话管理、工具管理、配置管理 - WebSocket: 实时双向通信支持 - SSE: 服务端事件推送 - Hono + Bun 作为运行时 API 端点: - GET/POST /api/sessions - 会话 CRUD - GET/POST /api/sessions/:id/messages - 消息管理 - GET /api/sessions/:id/events - SSE 事件流 - WS /api/ws/:sessionId - WebSocket 连接 - GET/POST /api/tools - 工具管理 - GET/PUT /api/config - 配置管理
22 lines
687 B
TypeScript
22 lines
687 B
TypeScript
// 文件读写
|
|
export { readFileTool } from './read_file.js';
|
|
export { writeFileTool } from './write_file.js';
|
|
export { editFileTool } from './edit_file.js';
|
|
export { multiEditTool } from './multi_edit.js';
|
|
|
|
// 目录操作
|
|
export { listDirTool } from './list_directory.js';
|
|
export { createDirectoryTool } from './create_directory.js';
|
|
|
|
// 搜索
|
|
export { searchFilesTool } from './search_files.js';
|
|
export { grepContentTool } from './grep_content.js';
|
|
|
|
// 文件信息
|
|
export { getFileInfoTool } from './get_file_info.js';
|
|
|
|
// 文件管理
|
|
export { moveFileTool } from './move_file.js';
|
|
export { copyFileTool } from './copy_file.js';
|
|
export { deleteFileTool } from './delete_file.js';
|