openmatrix 0.2.2 → 0.2.3
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/cli/commands/start.js +4 -2
- package/dist/storage/state-manager.js +12 -12
- package/package.json +1 -1
- package/skills/start.md +4 -2
|
@@ -269,8 +269,10 @@ async function handleTasksJson(options, stateManager, state, omPath, basePath) {
|
|
|
269
269
|
}
|
|
270
270
|
// E2E 类型(通过 answers 传递给 TaskPlanner)
|
|
271
271
|
const extraAnswers = { ...(resolvedInput.answers || {}) };
|
|
272
|
-
|
|
273
|
-
|
|
272
|
+
// tasks-input.json 中的 e2eType 或 CLI 参数
|
|
273
|
+
const e2eTypeValue = tasksInput.e2eType || options.e2eType;
|
|
274
|
+
if (e2eTypeValue) {
|
|
275
|
+
extraAnswers.e2eType = e2eTypeValue;
|
|
274
276
|
}
|
|
275
277
|
if (!options.json) {
|
|
276
278
|
console.log(`\n📋 任务: ${parsedTask.title}`);
|
|
@@ -110,19 +110,19 @@ class StateManager {
|
|
|
110
110
|
this.stateCache = initialState;
|
|
111
111
|
}
|
|
112
112
|
else {
|
|
113
|
-
//
|
|
113
|
+
// 合并旧状态的统计字段(兼容旧版本,statistics 可能不存在)
|
|
114
114
|
existing.statistics = {
|
|
115
|
-
totalTasks: existing.statistics
|
|
116
|
-
completed: existing.statistics
|
|
117
|
-
inProgress: existing.statistics
|
|
118
|
-
failed: existing.statistics
|
|
119
|
-
pending: existing.statistics
|
|
120
|
-
scheduled: existing.statistics
|
|
121
|
-
blocked: existing.statistics
|
|
122
|
-
waiting: existing.statistics
|
|
123
|
-
verify: existing.statistics
|
|
124
|
-
accept: existing.statistics
|
|
125
|
-
retry_queue: existing.statistics
|
|
115
|
+
totalTasks: existing.statistics?.totalTasks ?? 0,
|
|
116
|
+
completed: existing.statistics?.completed ?? 0,
|
|
117
|
+
inProgress: existing.statistics?.inProgress ?? 0,
|
|
118
|
+
failed: existing.statistics?.failed ?? 0,
|
|
119
|
+
pending: existing.statistics?.pending ?? 0,
|
|
120
|
+
scheduled: existing.statistics?.scheduled ?? 0,
|
|
121
|
+
blocked: existing.statistics?.blocked ?? 0,
|
|
122
|
+
waiting: existing.statistics?.waiting ?? 0,
|
|
123
|
+
verify: existing.statistics?.verify ?? 0,
|
|
124
|
+
accept: existing.statistics?.accept ?? 0,
|
|
125
|
+
retry_queue: existing.statistics?.retry_queue ?? 0
|
|
126
126
|
};
|
|
127
127
|
this.stateCache = existing;
|
|
128
128
|
}
|
package/package.json
CHANGED
package/skills/start.md
CHANGED
|
@@ -246,11 +246,13 @@ AskUserQuestion: `header: "执行模式"`, `multiSelect: false`
|
|
|
246
246
|
"goalTypes": ["development", "testing", "documentation"],
|
|
247
247
|
"constraints": ["约束1"],
|
|
248
248
|
"deliverables": ["src/xxx.ts"],
|
|
249
|
-
"plan": "## 技术方案\n1. ...\n2. ..."
|
|
249
|
+
"plan": "## 技术方案\n1. ...\n2. ...",
|
|
250
|
+
"e2eTests": true,
|
|
251
|
+
"e2eType": "visual"
|
|
250
252
|
}
|
|
251
253
|
```
|
|
252
254
|
|
|
253
|
-
> **注意**: `quality`、`mode
|
|
255
|
+
> **注意**: `quality`、`mode` 通过 CLI 参数传递。`e2eTests` 和 `e2eType` 可写入 tasks-input.json 或通过 CLI 参数传递。
|
|
254
256
|
> **goalTypes** 必须与 goals 数组长度一致,一一对应。
|
|
255
257
|
> **研究上下文集成**: 如果检测到 `.openmatrix/research/context.json`,将研究的 goals/constraints/deliverables 作为基础,与 AI 提取的内容合并(去重后)。
|
|
256
258
|
|