@williambeto/ai-workflow 2.8.1 → 2.8.2
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/bin/ai-workflow.js
CHANGED
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
QualityGuard,
|
|
33
33
|
ValidationPlanner,
|
|
34
34
|
parseDeliveryOutcomeClaim
|
|
35
|
-
} from "../chunk-
|
|
35
|
+
} from "../chunk-GLYX3HEY.js";
|
|
36
36
|
import {
|
|
37
37
|
DeliveryDecisionEngine
|
|
38
38
|
} from "../chunk-H7GIKXFO.js";
|
|
@@ -3643,7 +3643,7 @@ var commandMap = {
|
|
|
3643
3643
|
});
|
|
3644
3644
|
},
|
|
3645
3645
|
validate: async (_, flags) => {
|
|
3646
|
-
const { runValidate } = await import("../validate-
|
|
3646
|
+
const { runValidate } = await import("../validate-DDKN6ORS.js");
|
|
3647
3647
|
await runValidate({
|
|
3648
3648
|
cwd: process.cwd(),
|
|
3649
3649
|
taskSlug: flags.taskSlug,
|
|
@@ -710,8 +710,13 @@ var EvidenceCollector = class {
|
|
|
710
710
|
let overallStatus = "PASS";
|
|
711
711
|
if (results.some((result) => ["FAIL", "BLOCKED", "FAIL_QUALITY_GATE"].includes(result.status))) overallStatus = "FAIL_QUALITY_GATE";
|
|
712
712
|
else if (implementation && deliveryChangedFiles.length > 0 && !validationObserved) overallStatus = "BLOCKED";
|
|
713
|
-
else if (behaviorTestRequired && !passingBehaviorTest)
|
|
714
|
-
|
|
713
|
+
else if (behaviorTestRequired && !passingBehaviorTest) {
|
|
714
|
+
if (this.riskLevel === "high") {
|
|
715
|
+
overallStatus = "BLOCKED";
|
|
716
|
+
} else {
|
|
717
|
+
overallStatus = "PASS_WITH_NOTES";
|
|
718
|
+
}
|
|
719
|
+
} else if (["FAIL", "BLOCKED", "FAIL_QUALITY_GATE"].includes(policyValidation.overallStatus)) overallStatus = "FAIL_QUALITY_GATE";
|
|
715
720
|
else if (results.some((result) => result.status === "PASS_WITH_NOTES") || policyValidation.overallStatus === "PASS_WITH_NOTES") overallStatus = "PASS_WITH_NOTES";
|
|
716
721
|
if (!artifactFidelityCheck || !artifactFidelityCheck.passed) {
|
|
717
722
|
overallStatus = "BLOCKED";
|
|
@@ -757,12 +762,16 @@ var EvidenceCollector = class {
|
|
|
757
762
|
"configure or run the smallest relevant validator"
|
|
758
763
|
));
|
|
759
764
|
if (behaviorTestRequired && behaviorTests.length === 0) {
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
765
|
+
if (this.riskLevel === "high") {
|
|
766
|
+
limitations.push(blockingDiagnostic(
|
|
767
|
+
"behavior-test",
|
|
768
|
+
"UI or test-capable executable behavior changed without an automated behavior test",
|
|
769
|
+
"a relevant automated behavior test must pass",
|
|
770
|
+
"run or configure the focused behavior test; build, lint, and screenshots are not substitutes"
|
|
771
|
+
));
|
|
772
|
+
} else {
|
|
773
|
+
limitations.push("behavior-test: UI or executable behavior changed without an automated behavior test (allowed for low/medium risk tasks)");
|
|
774
|
+
}
|
|
766
775
|
}
|
|
767
776
|
for (const result of results) {
|
|
768
777
|
if (["FAIL", "BLOCKED", "FAIL_QUALITY_GATE"].includes(result.status)) {
|
|
@@ -1044,4 +1053,4 @@ export {
|
|
|
1044
1053
|
EvidenceCollector,
|
|
1045
1054
|
ValidationPlanner
|
|
1046
1055
|
};
|
|
1047
|
-
//# sourceMappingURL=chunk-
|
|
1056
|
+
//# sourceMappingURL=chunk-GLYX3HEY.js.map
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
QualityGuard,
|
|
4
4
|
ValidationPlanner,
|
|
5
5
|
VisualVerifier
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GLYX3HEY.js";
|
|
7
7
|
import "./chunk-H7GIKXFO.js";
|
|
8
8
|
import "./chunk-5WRI5ZAA.js";
|
|
9
9
|
|
|
@@ -86,4 +86,4 @@ async function runValidate({
|
|
|
86
86
|
export {
|
|
87
87
|
runValidate
|
|
88
88
|
};
|
|
89
|
-
//# sourceMappingURL=validate-
|
|
89
|
+
//# sourceMappingURL=validate-DDKN6ORS.js.map
|