Skip to content

Commit 289c94b

Browse files
committed
style: fix prettier issues
1 parent fc53385 commit 289c94b

File tree

104 files changed

+9458
-5115
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+9458
-5115
lines changed

.agent-sessions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
"history": "openclaw sessions history <sessionId> --limit 50",
1010
"kill": "openclaw sessions kill <sessionId>"
1111
}
12-
}
12+
}

.github/workflows/deploy-docs.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,48 +22,48 @@ jobs:
2222
build:
2323
name: Build Documentation
2424
runs-on: ubuntu-latest
25-
25+
2626
steps:
2727
- name: Checkout
2828
uses: actions/checkout@v4
2929
with:
3030
fetch-depth: 0
31-
31+
3232
- name: Setup Node.js
3333
uses: actions/setup-node@v4
3434
with:
3535
node-version: '20'
36-
36+
3737
- name: Setup pnpm
3838
uses: pnpm/action-setup@v4
3939
with:
4040
version: 10
41-
41+
4242
- name: Get pnpm store directory
4343
shell: bash
4444
run: |
4545
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
46-
46+
4747
- name: Setup pnpm cache
4848
uses: actions/cache@v4
4949
with:
5050
path: ${{ env.STORE_PATH }}
5151
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
5252
restore-keys: |
5353
${{ runner.os }}-pnpm-store-
54-
54+
5555
- name: Install dependencies
5656
run: |
5757
cd docs
5858
pnpm install --no-frozen-lockfile
59-
59+
6060
- name: Build documentation
6161
run: |
6262
cd docs
6363
pnpm run build
6464
env:
6565
NODE_ENV: production
66-
66+
6767
- name: Upload artifact
6868
uses: actions/upload-pages-artifact@v3
6969
with:
@@ -77,11 +77,11 @@ jobs:
7777
pages: write
7878
id-token: write
7979
contents: read
80-
80+
8181
environment:
8282
name: github-pages
8383
url: ${{ steps.deployment.outputs.page_url }}
84-
84+
8585
steps:
8686
- name: Deploy to GitHub Pages
8787
id: deployment

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
## [2.1.11] - 2026-04-11
99

1010
### Added
11+
1112
- Agent 核心模块重构
1213
- `GoalParser` 接口抽象,支持规则/AI/混合模式
1314
- `RuleBasedGoalParser` 实现,无 AI 依赖的规则解析器(支持中英文,32 个测试)
@@ -16,6 +17,7 @@
1617
- `MultiAgentCoordinator` 新增 `broadcast()` / `executeCollaborative()` / `AgentMetrics` 指标
1718

1819
### Changed
20+
1921
- **类型安全强化**~46 处 `any` 类型消除(115→69)
2022
- `core/plugin/types.ts`: `PluginContext.logger unknown→Logger`,hooks 参数类型化
2123
- `mcp/prompts/types.ts`: `PromptExample.arguments any→PromptArguments`
@@ -30,6 +32,7 @@
3032
- `agent/verification/`: `tasks filter` / `CoverageData` 类型化
3133

3234
### Fixed
35+
3336
- CLI `options.format as any` 全部移除
3437
- `getTemplate()` 返回 `null` 时 null 安全处理
3538
- `state-machine/machine.ts` 重复 import 移除
@@ -39,6 +42,7 @@
3942
## [Unreleased]
4043

4144
### Added
45+
4246
- 新增专业级 CLI UI 组件库
4347
- 统一颜色主题系统
4448
- ASCII Logo 展示
@@ -60,6 +64,7 @@
6064
- 增强的 release.yml
6165

6266
### Changed
67+
6368
- 优化 package.json 发布配置
6469
- 添加 publishConfig
6570
- 优化 files 字段
@@ -68,6 +73,7 @@
6873
## [2.1.0] - 2026-02-22
6974

7075
### Added
76+
7177
- ✨ 新增 Agent 系统
7278
- 自主任务执行能力
7379
- 工具调用框架
@@ -86,18 +92,21 @@
8692
- 内存管理改进
8793

8894
### Changed
95+
8996
- 重构核心配置模块
9097
- 优化 AI 路由算法
9198
- 改进错误处理机制
9299

93100
### Fixed
101+
94102
- 修复 MCP 连接稳定性问题
95103
- 修复工作流状态持久化 bug
96104
- 修复多模型切换时的内存泄漏
97105

98106
## [2.0.0] - 2026-01-15
99107

100108
### Added
109+
101110
- 🎉 全新架构设计
102111
- 模块化架构
103112
- 插件系统
@@ -116,39 +125,46 @@
116125
- 自定义命令
117126

118127
### Changed
128+
119129
- 完全重构 CLI 架构
120130
- 新的配置管理系统
121131
- 改进的日志系统
122132

123133
### Removed
134+
124135
- 废弃 v1.x 的 API 接口
125136
- 移除旧版配置格式支持
126137

127138
## [1.2.0] - 2025-12-10
128139

129140
### Added
141+
130142
- Docker MCP 注册表
131143
- 容器化部署支持
132144
- 环境变量配置
133145

134146
### Fixed
147+
135148
- 修复 Windows 路径问题
136149
- 修复并发任务冲突
137150

138151
## [1.1.0] - 2025-11-20
139152

140153
### Added
154+
141155
- CI/CD 工作流支持
142156
- GitHub Actions 集成
143157
- 自动化测试
144158

145159
### Changed
160+
146161
- 优化 PRD 解析算法
147162
- 改进任务分配逻辑
148163

149164
## [1.0.0] - 2025-10-01
150165

151166
### Added
167+
152168
- 🎉 初始版本发布
153169
- 基础 CLI 功能
154170
- PRD 文档解析

README.md

Lines changed: 59 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ TaskFlow AI 是一款**企业级 AI 思维流编排引擎**,专为开发团队
3939

4040
### 问题我们解决了
4141

42-
| 痛点 | 传统方案 | TaskFlow AI |
43-
|------|----------|-------------|
44-
| **需求不清晰** | 靠经验推测 | 📝 智能 PRD 解析,自动提取需求 |
45-
| **模型选型难** | 人工试错 | 🧠 智能路由,自动选择最优模型 |
46-
| **过程黑盒** | 结果不可控 | 👁️ 思维链可视化,每一步都可追溯 |
47-
| **编辑器割裂** | 切换工具 | 🔌 MCP 统一协议,编辑器无感集成 |
48-
| **团队协作** | 手动同步 | 👥 多 Agent 协作,自动任务分发 |
42+
| 痛点 | 传统方案 | TaskFlow AI |
43+
| -------------- | ---------- | ------------------------------- |
44+
| **需求不清晰** | 靠经验推测 | 📝 智能 PRD 解析,自动提取需求 |
45+
| **模型选型难** | 人工试错 | 🧠 智能路由,自动选择最优模型 |
46+
| **过程黑盒** | 结果不可控 | 👁️ 思维链可视化,每一步都可追溯 |
47+
| **编辑器割裂** | 切换工具 | 🔌 MCP 统一协议,编辑器无感集成 |
48+
| **团队协作** | 手动同步 | 👥 多 Agent 协作,自动任务分发 |
4949

5050
---
5151

@@ -65,10 +65,10 @@ TaskFlow AI 是一款**企业级 AI 思维流编排引擎**,专为开发团队
6565
- **历史追溯** - 完整的思考链路记录,支持回放和分析
6666

6767
```typescript
68-
const result = await taskflow.think("如何设计一个高并发系统?");
69-
console.log(result.chain); // 完整的思维链
70-
console.log(result.confidence); // 置信度 92%
71-
console.log(result.visualization); // Mermaid 流程图
68+
const result = await taskflow.think('如何设计一个高并发系统?');
69+
console.log(result.chain); // 完整的思维链
70+
console.log(result.confidence); // 置信度 92%
71+
console.log(result.visualization); // Mermaid 流程图
7272
```
7373

7474
</div>
@@ -107,27 +107,28 @@ console.log(result.visualization); // Mermaid 流程图
107107
**YAML/JSON 编排,支持复杂业务逻辑**
108108

109109
```yaml
110-
workflow: "ci-cd-pipeline"
110+
workflow: 'ci-cd-pipeline'
111111
steps:
112-
- name: "代码检查"
113-
task: "lint"
112+
- name: '代码检查'
113+
task: 'lint'
114114
parallel: true
115-
116-
- name: "单元测试"
117-
task: "test"
118-
dependsOn: ["代码检查"]
119-
120-
- name: "构建"
121-
task: "build"
122-
condition: "allPreviousSuccess"
123-
124-
- name: "部署"
125-
task: "deploy"
115+
116+
- name: '单元测试'
117+
task: 'test'
118+
dependsOn: ['代码检查']
119+
120+
- name: '构建'
121+
task: 'build'
122+
condition: 'allPreviousSuccess'
123+
124+
- name: '部署'
125+
task: 'deploy'
126126
retry: 3
127127
timeout: 300s
128128
```
129129
130130
**特性**:
131+
131132
- ✅ **顺序/并行执行** - 灵活的任务依赖
132133
- ✅ **条件分支** - 根据结果动态跳转
133134
- ✅ **循环处理** - 批量任务自动化
@@ -155,6 +156,7 @@ taskflow mcp init -e claude-desktop
155156
```
156157

157158
**40+ 内置 MCP 工具**
159+
158160
- 📁 文件系统操作 (fs_readDir, fs_write, fs_copy...)
159161
- 🌐 HTTP 请求 (http_get, http_post, http_download...)
160162
- 💾 SQLite 数据库 (db_query, db_init, db_schema...)
@@ -174,17 +176,18 @@ taskflow mcp init -e claude-desktop
174176
```typescript
175177
// 创建自定义 Agent
176178
const agent = await taskflow.agent.create({
177-
name: "code-reviewer",
178-
goal: "自动化代码审查",
179-
skills: ["typescript", "security", "performance"],
180-
maxIterations: 10
179+
name: 'code-reviewer',
180+
goal: '自动化代码审查',
181+
skills: ['typescript', 'security', 'performance'],
182+
maxIterations: 10,
181183
});
182184

183185
// 分配任务
184-
await agent.execute("审查 PR #123 的安全性");
186+
await agent.execute('审查 PR #123 的安全性');
185187
```
186188

187189
**核心能力**:
190+
188191
- 🎯 **自主目标分解** - 复杂任务自动拆解
189192
- 🔄 **协作消息传递** - Agent 间智能通信
190193
- 🧠 **短期/长期记忆** - 上下文持续积累
@@ -198,13 +201,13 @@ await agent.execute("审查 PR #123 的安全性");
198201

199202
TaskFlow AI 内置多层安全防护:
200203

201-
| 防护类型 | 能力 |
202-
|---------|------|
203-
| 🔒 **命令注入** | Shell 命令白名单 + 危险字符检测 |
204-
| 🌐 **SSRF 防护** | 私有 IP 限制 + URL 协议验证 |
205-
| 📁 **路径遍历** | 文件路径规范化 + 敏感目录保护 |
206-
| 🔑 **密钥管理** | 环境变量 + 自动脱敏 |
207-
| 📝 **审计日志** | 完整操作审计 + 可追溯 |
204+
| 防护类型 | 能力 |
205+
| ---------------- | ------------------------------- |
206+
| 🔒 **命令注入** | Shell 命令白名单 + 危险字符检测 |
207+
| 🌐 **SSRF 防护** | 私有 IP 限制 + URL 协议验证 |
208+
| 📁 **路径遍历** | 文件路径规范化 + 敏感目录保护 |
209+
| 🔑 **密钥管理** | 环境变量 + 自动脱敏 |
210+
| 📝 **审计日志** | 完整操作审计 + 可追溯 |
208211

209212
</div>
210213

@@ -314,12 +317,14 @@ taskflow mcp start
314317
## 功能需求
315318

316319
### US-001: 用户注册
320+
317321
- 角色: 未注册用户
318322
- 优先级: P0
319323
- 预估工时: 8 小时
320324
- 描述: 支持邮箱注册、密码强度验证、邮箱唯一性检查
321325

322326
### US-002: 用户登录
327+
323328
- 角色: 已注册用户
324329
- 优先级: P0
325330
- 预估工时: 6 小时
@@ -338,6 +343,7 @@ $ taskflow parse requirements.md --visualize
338343
```
339344

340345
**自动生成**:
346+
341347
- ✅ 12 个结构化用户故事
342348
- ✅ 依赖关系图
343349
- ✅ 工时估算汇总 (78 小时)
@@ -413,13 +419,13 @@ $ taskflow parse requirements.md --visualize
413419

414420
## 📦 支持平台
415421

416-
| 平台 | 状态 | 说明 |
417-
|------|------|------|
418-
| **Node.js** || v18+ 完全支持 |
419-
| **操作系统** || macOS · Linux · Windows |
420-
| **架构** || x64 · arm64 |
421-
| **Docker** || 官方镜像 `agions/taskflow-ai` |
422-
| **编辑器** || Cursor · VSCode · Windsurf · Trae · Claude Desktop |
422+
| 平台 | 状态 | 说明 |
423+
| ------------ | ---- | -------------------------------------------------- |
424+
| **Node.js** | | v18+ 完全支持 |
425+
| **操作系统** | | macOS · Linux · Windows |
426+
| **架构** | | x64 · arm64 |
427+
| **Docker** | | 官方镜像 `agions/taskflow-ai` |
428+
| **编辑器** | | Cursor · VSCode · Windsurf · Trae · Claude Desktop |
423429

424430
---
425431

@@ -485,15 +491,15 @@ npm test
485491

486492
### 🔗 相关链接
487493

488-
| 资源 | 链接 |
489-
|------|------|
490-
| **GitHub 仓库** | https://github.com/Agions/taskflow-ai |
491-
| **NPM 包** | https://www.npmjs.com/package/taskflow-ai |
492-
| **在线文档** | https://agions.github.io/taskflow-ai/ |
493-
| **更新日志** | [CHANGELOG.md](./CHANGELOG.md) |
494-
| **安全策略** | [SECURITY.md](./security.md) |
495-
| **问题反馈** | https://github.com/Agions/taskflow-ai/issues |
496-
| **讨论社区** | https://github.com/Agions/taskflow-ai/discussions |
494+
| 资源 | 链接 |
495+
| --------------- | ------------------------------------------------- |
496+
| **GitHub 仓库** | https://github.com/Agions/taskflow-ai |
497+
| **NPM 包** | https://www.npmjs.com/package/taskflow-ai |
498+
| **在线文档** | https://agions.github.io/taskflow-ai/ |
499+
| **更新日志** | [CHANGELOG.md](./CHANGELOG.md) |
500+
| **安全策略** | [SECURITY.md](./security.md) |
501+
| **问题反馈** | https://github.com/Agions/taskflow-ai/issues |
502+
| **讨论社区** | https://github.com/Agions/taskflow-ai/discussions |
497503

498504
---
499505

0 commit comments

Comments
 (0)