openmatrix 0.2.6 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agents/agent-runner.js +0 -1
- package/dist/cli/commands/analyze.js +8 -7
- package/dist/cli/commands/approve.js +24 -23
- package/dist/cli/commands/brainstorm.d.ts +115 -0
- package/dist/cli/commands/brainstorm.js +358 -255
- package/dist/cli/commands/check.d.ts +25 -0
- package/dist/cli/commands/check.js +69 -44
- package/dist/cli/commands/install-skills.js +4 -4
- package/dist/cli/commands/report.d.ts +23 -0
- package/dist/cli/commands/report.js +1 -0
- package/dist/cli/commands/status.d.ts +8 -0
- package/dist/cli/commands/status.js +19 -18
- package/dist/orchestrator/phase-executor.js +21 -0
- package/dist/orchestrator/upgrade-detector.js +32 -12
- package/dist/storage/file-store.js +6 -3
- package/dist/utils/logger.d.ts +4 -4
- package/package.json +1 -1
- package/skills/auto.md +3 -1
- package/skills/debug.md +451 -425
- package/skills/start.md +40 -2
package/skills/start.md
CHANGED
|
@@ -23,6 +23,7 @@ description: "Use when starting a new development task cycle with interactive qu
|
|
|
23
23
|
Step 1: 初始化 .openmatrix 目录
|
|
24
24
|
Step 2: 解析任务输入(文件或描述)
|
|
25
25
|
Step 3: 智能分析任务类型(开发/非开发)
|
|
26
|
+
Step 3.5: 提交文档(git add docs/ + 所有 .md 文件, commit)
|
|
26
27
|
Step 4: 必选问题(开发任务:质量+E2E+模式; 非开发:仅模式)← 不可跳过
|
|
27
28
|
Step 5: 可选问题(仅复杂开发任务)+ 展示执行计划
|
|
28
29
|
Step 6: AI 提取 goals,生成 plan
|
|
@@ -141,6 +142,41 @@ cat .openmatrix/research/context.json 2>/dev/null || echo "NO_RESEARCH"
|
|
|
141
142
|
|
|
142
143
|
---
|
|
143
144
|
|
|
145
|
+
### Step 3.5: 提交文档(必须执行,不可跳过)
|
|
146
|
+
|
|
147
|
+
在开始任何新任务之前,先提交所有已变更的文档文件,确保文档和代码同步提交。
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
git status --porcelain
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
检查是否有文档变更(包括 `docs/` 目录、所有 `.md` 文件、`.openmatrix/` 下的文档):
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
git diff --name-only | grep -E '\.md$|^docs/' 2>/dev/null
|
|
157
|
+
git ls-files --others --exclude-standard | grep -E '\.md$|^docs/' 2>/dev/null
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
如果有文档变更(未追踪或未提交),执行提交:
|
|
161
|
+
|
|
162
|
+
```bash
|
|
163
|
+
git add docs/ .openmatrix/*.md CLAUDE.md README.md README_EN.md
|
|
164
|
+
git commit -m "$(cat <<'EOF'
|
|
165
|
+
docs: 更新项目文档
|
|
166
|
+
|
|
167
|
+
更新内容: ...
|
|
168
|
+
|
|
169
|
+
Co-Authored-By: OpenMatrix https://github.com/bigfish1913/openmatrix
|
|
170
|
+
EOF
|
|
171
|
+
)"
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
**如果没有文档变更,跳过此步骤继续。**
|
|
175
|
+
|
|
176
|
+
> ⚠️ **此步骤不可跳过** — 避免"代码提交了但文档没提交"的情况。
|
|
177
|
+
|
|
178
|
+
---
|
|
179
|
+
|
|
144
180
|
### Step 4: 必选问题(不可跳过,不可使用默认值,必须通过 AskUserQuestion 让用户选择)
|
|
145
181
|
|
|
146
182
|
根据 `goalTypes` 字段判断需要询问哪些问题:
|
|
@@ -359,7 +395,7 @@ openmatrix step --json # 获取下一个任务 + 检查是
|
|
|
359
395
|
Agent({
|
|
360
396
|
subagent_type: task.subagent_type,
|
|
361
397
|
description: task.description,
|
|
362
|
-
prompt: task.prompt + "\n\n⚠️ 完成后请输出简短摘要(不超过3行):\n1. 关键决策\n2. 创建/修改的文件\n3.
|
|
398
|
+
prompt: task.prompt + "\n\n⚠️ 完成后请输出简短摘要(不超过3行):\n1. 关键决策\n2. 创建/修改的文件\n3. 对后续任务的建议\n\n🚫 **禁止执行 git commit** — 所有提交统一通过 openmatrix complete 执行,确保使用正确的任务标题。",
|
|
363
399
|
isolation: task.isolation,
|
|
364
400
|
run_in_background: true
|
|
365
401
|
})
|
|
@@ -368,6 +404,8 @@ Agent({
|
|
|
368
404
|
> ⚠️ **必须使用原生 Agent 工具** — 禁止调用 gsd-executor、superpowers 或任何其他编排技能。
|
|
369
405
|
>
|
|
370
406
|
> **上下文节省**: 使用 `run_in_background: true` 后台执行,Agent 完成后仅返回简短摘要,不返回完整输出,大幅节省主会话上下文。
|
|
407
|
+
>
|
|
408
|
+
> 🚫 **Agent 内部禁止 git commit** — 所有提交必须通过 `openmatrix complete` 执行,否则会产生 "Test Task" 等无意义提交。
|
|
371
409
|
|
|
372
410
|
每个 Agent 完成后(收到后台完成通知时):
|
|
373
411
|
1. **标记完成并更新统计(必须执行):**
|
|
@@ -508,7 +546,7 @@ $ARGUMENTS
|
|
|
508
546
|
## 执行流程
|
|
509
547
|
|
|
510
548
|
```
|
|
511
|
-
Step 1-
|
|
549
|
+
Step 1-3: 初始化 + 解析输入 + 分析类型 → Step 3.5: 提交文档 → Step 4-5: 问答 + 确认 → Step 6: 提取 goals + plan → Step 7: 写入 tasks-input.json
|
|
512
550
|
→ Step 8: openmatrix start --tasks-json (必须) → Step 9: 读取 subagentTasks
|
|
513
551
|
→ Step 10: Agent 逐个执行 (只有这里写代码)
|
|
514
552
|
```
|