@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.
- package/CHANGELOG.md +23 -0
- package/README.md +97 -27
- package/bin/lib/artifact-context.mjs +2 -0
- package/bin/lib/doctor.mjs +1 -1
- package/bin/lib/install.mjs +1 -1
- package/create-release-md-doc/SKILL.md.tpl +4 -5
- package/create-tech-md-doc/SKILL.md.tpl +4 -6
- package/dev/SKILL.md.tpl +22 -14
- package/dev/agents/openai.yaml +2 -0
- package/dev/references/bug.md +6 -3
- package/dev/references/clarify.md +1 -1
- package/dev/references/delivery-template.md +2 -2
- package/dev/references/delivery.md +11 -9
- package/dev/references/implementation.md +5 -1
- package/dev/references/plan-template.md +8 -12
- package/dev/references/planning.md +8 -4
- package/dev/references/preflight.md +3 -3
- package/dev/references/requirement-template.md +32 -0
- package/dev/skill.json +10 -2
- package/nacos-config/SKILL.md.tpl +42 -0
- package/nacos-config/package.json +7 -0
- package/nacos-config/references/connection.md +47 -0
- package/nacos-config/scripts/config.mjs +288 -0
- package/nacos-config/skill.json +9 -0
- package/package.json +6 -2
- package/project-review/SKILL.md.tpl +4 -3
- package/project-review/references/reporting.md +8 -8
- package/project-review/references/review-method.md +1 -1
- package/project-review/skill.json +2 -1
- package/workflow/SKILL.md.tpl +14 -9
- package/workflow/lib/artifact-finalize.mjs +156 -0
- package/workflow/lib/artifact-model.mjs +2 -2
- package/workflow/lib/code-snapshot.mjs +55 -0
- package/workflow/lib/meta-store.mjs +4 -2
- package/workflow/lib/path-match.mjs +21 -0
- package/workflow/lib/requirements.mjs +12 -7
- package/workflow/lib/run-gates.mjs +153 -0
- package/workflow/lib/runs.mjs +58 -14
- package/workflow/lib/workspace-read.mjs +3 -1
- package/workflow/references/architecture.md +51 -3
- package/workflow/references/capabilities.md +4 -2
- package/workflow/references/execution.md +105 -0
- package/workflow/references/requirements.md +15 -13
- package/workflow/references/runs.md +16 -11
- package/workflow/references/status.md +1 -0
- package/workflow/references/templates.md +2 -2
- package/workflow/scripts/artifact.mjs +39 -0
- package/workflow/scripts/pr-desc.mjs +2 -2
- package/workflow/scripts/review-handoff.mjs +59 -0
- package/workflow/scripts/review-scope.mjs +2 -21
- package/workflow/scripts/run.mjs +6 -8
- package/workflow/scripts/template.mjs +3 -2
- package/workflow/scripts/view.mjs +1 -1
- 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) {
|