openmatrix 0.1.60 → 0.1.61

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.
@@ -366,5 +366,48 @@ function generateBrainstormQuestions(taskContent, taskTitle) {
366
366
  multiSelect: false,
367
367
  why: '优先级决定资源分配和实施策略'
368
368
  });
369
+ // 问题 8: 质量级别
370
+ questions.push({
371
+ id: 'quality',
372
+ question: '选择质量门禁级别(决定测试覆盖、Lint、安全扫描等要求)',
373
+ header: '质量级别',
374
+ options: [
375
+ { label: 'strict', description: 'TDD + 80% 覆盖率 + 严格 Lint + 安全扫描 — 生产级代码' },
376
+ { label: 'balanced (推荐)', description: '60% 覆盖率 + Lint + 安全扫描 — 日常开发' },
377
+ { label: 'fast', description: '无质量门禁 — 快速原型/验证' }
378
+ ],
379
+ multiSelect: false,
380
+ why: '质量级别影响任务拆分、测试要求和执行时间'
381
+ });
382
+ // 问题 9: 执行模式
383
+ questions.push({
384
+ id: 'execution_mode',
385
+ question: '选择执行模式(控制 AI 执行过程中的审批节点)',
386
+ header: '执行模式',
387
+ options: [
388
+ { label: 'auto (推荐)', description: '全自动执行,无需人工审批,遇到阻塞自动 Meeting' },
389
+ { label: 'confirm-key', description: '关键节点审批(计划、合并、部署)' },
390
+ { label: 'confirm-all', description: '每个阶段都需人工确认' }
391
+ ],
392
+ multiSelect: false,
393
+ why: '执行模式决定自动化程度和人工干预频率'
394
+ });
395
+ // 问题 10: E2E 测试(Web/Mobile/GUI 项目)
396
+ if (content.includes('web') || content.includes('前端') || content.includes('页面') ||
397
+ content.includes('网站') || content.includes('app') || content.includes('应用') ||
398
+ content.includes('游戏') || content.includes('管理') || content.includes('后台') ||
399
+ content.includes('ui') || content.includes('mobile') || content.includes('mobile')) {
400
+ questions.push({
401
+ id: 'e2e_tests',
402
+ question: '是否启用端到端 (E2E) 测试?(适用于 Web/Mobile/GUI 项目,耗时较长)',
403
+ header: 'E2E 测试',
404
+ options: [
405
+ { label: '启用 E2E 测试', description: '使用 Playwright/Cypress 等框架进行端到端测试' },
406
+ { label: '不启用 (推荐)', description: '仅进行单元测试和集成测试,节省时间' }
407
+ ],
408
+ multiSelect: false,
409
+ why: 'E2E 测试能验证完整用户流程,但增加执行时间'
410
+ });
411
+ }
369
412
  return questions;
370
413
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openmatrix",
3
- "version": "0.1.60",
3
+ "version": "0.1.61",
4
4
  "description": "AI Agent task orchestration system with Claude Code Skills integration",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -185,8 +185,9 @@ OpenMatrix 独立运行,不依赖外部任务编排系统。
185
185
  "constraints": ["约束"],
186
186
  "deliverables": ["交付物"],
187
187
  "answers": { "问答答案" },
188
- "quality": "strict/balanced/fast",
189
- "mode": "auto",
188
+ "quality": "<从 quality 问题答案取值: strict/balanced/fast>",
189
+ "mode": "<从 execution_mode 问题答案取值: auto/confirm-key/confirm-all>",
190
+ "e2eTests": "<从 e2e_tests 问题答案判断: true/false>",
190
191
  "plan": "## 技术方案\n..."
191
192
  }
192
193
  ```