@guanlin4924/devflow-pi 0.1.30 → 0.1.32
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/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1608,8 +1608,7 @@ export default function devflowCore(pi: ExtensionAPI) {
|
|
|
1608
1608
|
const isUserConfirmedStepTransition =
|
|
1609
1609
|
toolName === "devflow_transition" &&
|
|
1610
1610
|
toolInput?.action === "complete-step" &&
|
|
1611
|
-
toolInput?.confirm === true
|
|
1612
|
-
["waiting-user", "awaiting-approval"].includes(controlState.phase);
|
|
1611
|
+
toolInput?.confirm === true;
|
|
1613
1612
|
if (isStateMutationTool(toolName) && !isRegistryReconciliation && !isUserConfirmedStepTransition) {
|
|
1614
1613
|
return {
|
|
1615
1614
|
block: true,
|
|
@@ -35,18 +35,31 @@ end
|
|
|
35
35
|
|
|
36
36
|
def configured_checkers(workflow, step_id)
|
|
37
37
|
explicit = workflow.dig("governance", "step_checkers", step_id)
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
38
|
+
checkers = if explicit
|
|
39
|
+
Array(explicit)
|
|
40
|
+
else
|
|
41
|
+
case step_id
|
|
42
|
+
when "requirement-baseline" then %w[requirement-graph-check slice-independence-check acceptance-coverage-check change-impact-check]
|
|
43
|
+
when "api-contract" then %w[requirement-graph-check contract-coverage-check api-test-schema-check change-impact-check]
|
|
44
|
+
when "architecture-feasibility" then %w[requirement-graph-check change-impact-check]
|
|
45
|
+
when "integration-verify" then %w[requirement-graph-check slice-independence-check contract-coverage-check change-impact-check]
|
|
46
|
+
when "change-plan" then %w[requirement-graph-check slice-independence-check contract-coverage-check api-test-matrix-check test-coverage-check test-obligation-check test-task-binding-check change-impact-check]
|
|
47
|
+
when "acceptance-test-design" then %w[requirement-graph-check contract-coverage-check acceptance-coverage-check api-test-matrix-check test-coverage-check test-obligation-check change-impact-check]
|
|
48
|
+
when "run-acceptance-tests" then %w[api-test-matrix-check test-coverage-check acceptance-test-results-check change-impact-check]
|
|
49
|
+
when "verify" then %w[acceptance-coverage-check acceptance-test-results-check change-impact-check]
|
|
50
|
+
when "execute" then %w[tdd-evidence-check change-impact-check]
|
|
51
|
+
else []
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Test cases are Core-owned outputs of acceptance-test-design. Keep this
|
|
56
|
+
# filter even for old project-local workflow files that accidentally listed
|
|
57
|
+
# these checkers under requirement-baseline; otherwise CP-1 asks for an
|
|
58
|
+
# artifact that the current step is forbidden to create.
|
|
59
|
+
if step_id == "requirement-baseline"
|
|
60
|
+
checkers - %w[test-coverage-check test-obligation-check test-task-binding-check api-test-matrix-check]
|
|
61
|
+
else
|
|
62
|
+
checkers
|
|
50
63
|
end
|
|
51
64
|
end
|
|
52
65
|
|
package/src/constants.ts
CHANGED