|
|
38941ff2b5
|
fix: 修复 sql.js Uint8Array 与 fs.writeFile 的兼容性问题
sql.js export() 返回 Uint8Array,需用 Buffer.from() 转换后再写入文件
解决潜在的类型不匹配错误
|
2026-04-17 13:47:14 +08:00 |
|
|
|
53d6940994
|
fix: 修复 AI 工具调用的两个问题
问题1: AI 生成的参数格式与工具期望不一致
- 改进工具 description,添加 commit 操作的三元组格式说明和示例
- 完善 input_schema,详细描述 triplets 的 subject/relation/object 字段
- 在 description 中明确说明必填字段
问题2: 工具名称格式不符合 API 要求
- OpenAI/DeepSeek API 要求工具名称符合 ^[a-zA-Z0-9_-]+$
- 内部 ID "builtin:graph_memory" 含冒号,不符合要求
- 添加 apiName 属性提供 API 兼容名称 "graph_memory"
- 添加 mapToolIdToApiName/mapApiNameToToolId 映射函数
同时修正 import 路径:waterflow/... -> waterflow-ts/dist/...
|
2026-04-17 13:08:18 +08:00 |
|
|
|
56e787a5a8
|
fix: 修正 WaterFlow Skill/Tool 兼容性问题 + 类型声明完善
Skill 格式修正:
- allowed_tools → allowed-tools (kebab-case)
- user_invocable → user-invocable (kebab-case)
- persona skill name: graph_memory_persona → persona (匹配目录名)
- task skill name: graph_memory_task → task (匹配目录名)
Tool 接口优化:
- installTrulyMEM: require() → ESM dynamic import
- handler: 添加 abort 信号检查
- graph_database: _platform 类型 any → Platform
- graph_database: 修复 fs null 检查和 ArrayBuffer 类型转换
类型声明完善:
- waterflow.d.ts 从 193 行扩展到 400+ 行
- 添加 SchemaType, ToolFeatures, ToolMetadata 等完整类型
- 添加 network, tools, builtinTools 等缺失字段
- 添加 waterflow/runtime/core/tools/builtin 模块声明
- 添加 waterflow/runtime/core/tools/tool_registry 模块声明
清理:
- 删除 TRACKING.md, 重构.md, migration_plan.md, todo_progress.md
- 删除 docs/integration/waterflow-design.md
|
2026-04-16 15:16:55 +08:00 |
|
|
|
13e3c662ac
|
refactor: adapt to WaterFlow framework - zero source changes required
- Remove duplicate platform layer and tool interface definitions
- Add BFS breadth-first search with depth annotation (sync from main)
- Use WaterFlow platform.fs for binary storage instead of custom storage
- Add installTrulyMEM() one-line registration function
- Update SKILL.md with 10 complete operations
- Add waterflow.d.ts type declarations
- Update bilingual README with simplified installation guide
- Build passes with 0 errors
|
2026-04-16 11:48:58 +08:00 |
|
|
|
904661d73f
|
feat: migrate to TypeScript for WaterFlow framework
- Add TypeScript graph memory module (GraphDatabase, MemoryService)
- Add GraphMemoryTool for WaterFlow Tool interface
- Add bundled-skills for graph_memory, persona, task
- Remove Python code (core/, ui/, tests/, etc.)
- Remove redundant docs and build files
- Keep only ts/, docs/integration/, .gitignore, LICENSE
|
2026-04-15 15:45:12 +08:00 |
|