@rowansenne/workflow-run 0.27.0 → 0.29.0

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.
Files changed (54) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +97 -27
  3. package/bin/lib/artifact-context.mjs +2 -0
  4. package/bin/lib/doctor.mjs +1 -1
  5. package/bin/lib/install.mjs +1 -1
  6. package/create-release-md-doc/SKILL.md.tpl +4 -5
  7. package/create-tech-md-doc/SKILL.md.tpl +4 -6
  8. package/dev/SKILL.md.tpl +22 -14
  9. package/dev/agents/openai.yaml +2 -0
  10. package/dev/references/bug.md +6 -3
  11. package/dev/references/clarify.md +1 -1
  12. package/dev/references/delivery-template.md +2 -2
  13. package/dev/references/delivery.md +11 -9
  14. package/dev/references/implementation.md +5 -1
  15. package/dev/references/plan-template.md +8 -12
  16. package/dev/references/planning.md +8 -4
  17. package/dev/references/preflight.md +3 -3
  18. package/dev/references/requirement-template.md +32 -0
  19. package/dev/skill.json +10 -2
  20. package/nacos-config/SKILL.md.tpl +42 -0
  21. package/nacos-config/package.json +7 -0
  22. package/nacos-config/references/connection.md +47 -0
  23. package/nacos-config/scripts/config.mjs +288 -0
  24. package/nacos-config/skill.json +9 -0
  25. package/package.json +6 -2
  26. package/project-review/SKILL.md.tpl +4 -3
  27. package/project-review/references/reporting.md +8 -8
  28. package/project-review/references/review-method.md +1 -1
  29. package/project-review/skill.json +2 -1
  30. package/workflow/SKILL.md.tpl +14 -9
  31. package/workflow/lib/artifact-finalize.mjs +156 -0
  32. package/workflow/lib/artifact-model.mjs +2 -2
  33. package/workflow/lib/code-snapshot.mjs +55 -0
  34. package/workflow/lib/meta-store.mjs +4 -2
  35. package/workflow/lib/path-match.mjs +21 -0
  36. package/workflow/lib/requirements.mjs +12 -7
  37. package/workflow/lib/run-gates.mjs +153 -0
  38. package/workflow/lib/runs.mjs +58 -14
  39. package/workflow/lib/workspace-read.mjs +3 -1
  40. package/workflow/references/architecture.md +51 -3
  41. package/workflow/references/capabilities.md +4 -2
  42. package/workflow/references/execution.md +105 -0
  43. package/workflow/references/requirements.md +15 -13
  44. package/workflow/references/runs.md +16 -11
  45. package/workflow/references/status.md +1 -0
  46. package/workflow/references/templates.md +2 -2
  47. package/workflow/scripts/artifact.mjs +39 -0
  48. package/workflow/scripts/pr-desc.mjs +2 -2
  49. package/workflow/scripts/review-handoff.mjs +59 -0
  50. package/workflow/scripts/review-scope.mjs +2 -21
  51. package/workflow/scripts/run.mjs +6 -8
  52. package/workflow/scripts/template.mjs +3 -2
  53. package/workflow/scripts/view.mjs +1 -1
  54. package/workflow/skill.json +2 -1
@@ -237,7 +237,7 @@ function runBlock(r) {
237
237
  if (!r.runs?.length) return '';
238
238
  const labels = { running: '进行中', waiting_user: '等待用户', blocked: '受阻', completed: '已完成', cancelled: '已取消' };
239
239
  const stepLabels = { pending: '未开始', in_progress: '进行中', completed: '已完成', skipped: '已跳过' };
240
- return '<section class="block"><h3>流程运行状态</h3><table><thead><tr><th>运行 / 分支</th><th>阶段</th><th>状态</th><th>步骤进度</th><th>等待 / 阻塞 / 完成时间</th></tr></thead><tbody>' + r.runs.map((run) => '<tr><td>' + esc(run.project + ' · ' + run.kind + ' · ' + run.id) + '<br>' + esc(run.branch) + '</td><td>' + esc(run.stage) + '</td><td>' + esc(labels[run.status] ?? run.status) + '</td><td>' + Object.entries(run.steps).map(([name, s]) => esc(name + ':' + (stepLabels[s.status] ?? s.status))).join('<br>') + '</td><td>' + esc(run.waiting_for ?? run.reason ?? run.completed_at ?? '') + '</td></tr>').join('') + '</tbody></table></section>';
240
+ return '<section class="block"><h3>流程运行状态</h3><table><thead><tr><th>运行 / 分支</th><th>阶段</th><th>状态</th><th>步骤进度</th><th>等待 / 阻塞 / 完成时间</th></tr></thead><tbody>' + r.runs.map((run) => '<tr><td>' + esc(run.project + ' · ' + run.kind + ' · ' + run.id) + '<br>' + esc(run.branch) + '</td><td>' + esc(run.stage) + '</td><td>' + esc(labels[run.status] ?? run.status) + '</td><td>' + Object.entries(run.steps).map(([name, s]) => esc(name + ':' + (stepLabels[s.status] ?? s.status))).join('<br>') + '</td><td>' + esc(run.pending_finalization ? '待恢复产物收尾:' + run.pending_finalization.kind + '(artifact.mjs resume --id ' + run.id + ')' : run.waiting_for ?? run.reason ?? run.completed_at ?? '') + '</td></tr>').join('') + '</tbody></table></section>';
241
241
  }
242
242
 
243
243
  function knowledgeBlock(r) {
@@ -9,7 +9,8 @@
9
9
  "md-to-wiki",
10
10
  "create-tech-md-doc",
11
11
  "create-release-md-doc",
12
- "code-graph"
12
+ "code-graph",
13
+ "nacos-config"
13
14
  ],
14
15
  "userFiles": {
15
16
  "profile.json": "profile.json.tpl",