@williambeto/ai-workflow 2.6.3 → 2.6.7
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 +1234 -0
- package/LICENSE +21 -0
- package/README.md +255 -0
- package/bin/ai-workflow.js +231 -202
- package/bin/ai-workflow.js.map +1 -1
- package/{chunk-6EMG6FAO.js → chunk-BDZPUAEX.js} +2 -2
- package/{chunk-UHLZX2EG.js → chunk-W4RTQWVQ.js} +2 -2
- package/{chunk-2AOV2ATY.js → chunk-XW747GIG.js} +11 -5
- package/core/index.js +2 -2
- package/package.json +1 -1
- package/{validate-Q2NLLQ5G.js → validate-A46WUBVZ.js} +3 -3
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
DeliveryDecisionEngine,
|
|
4
4
|
MergeGate,
|
|
5
5
|
StackDetector
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XW747GIG.js";
|
|
7
7
|
|
|
8
8
|
// src/core/validation/quality-guard.ts
|
|
9
9
|
import { execSync } from "child_process";
|
|
@@ -731,4 +731,4 @@ export {
|
|
|
731
731
|
EvidenceCollector,
|
|
732
732
|
ValidationPlanner
|
|
733
733
|
};
|
|
734
|
-
//# sourceMappingURL=chunk-
|
|
734
|
+
//# sourceMappingURL=chunk-BDZPUAEX.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ArtifactFidelityGate,
|
|
3
3
|
DeliveryDecisionEngine
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XW747GIG.js";
|
|
5
5
|
|
|
6
6
|
// src/core/package-assets.ts
|
|
7
7
|
import { fileURLToPath } from "url";
|
|
@@ -1824,4 +1824,4 @@ export {
|
|
|
1824
1824
|
DelegationController,
|
|
1825
1825
|
Finalizer
|
|
1826
1826
|
};
|
|
1827
|
-
//# sourceMappingURL=chunk-
|
|
1827
|
+
//# sourceMappingURL=chunk-W4RTQWVQ.js.map
|
|
@@ -712,10 +712,16 @@ var ArtifactFidelityGate = class {
|
|
|
712
712
|
violations.push(`Fidelity Violation: excessive inline styles detected (${styleAttrsCount} style="..." declarations). Use CSS classes or utility classes instead.`);
|
|
713
713
|
}
|
|
714
714
|
if (htmlContentCombined.length > 0) {
|
|
715
|
-
const
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
715
|
+
const isPageOrLayout = uiFiles.some((f) => {
|
|
716
|
+
const lower = f.toLowerCase();
|
|
717
|
+
return lower.includes("/pages/") || lower.includes("/views/") || lower.includes("/layouts/") || lower.includes("/templates/") || /page\.(tsx|jsx|vue)$/.test(lower) || /layout\.(tsx|jsx|vue)$/.test(lower) || /(app|index)\.(tsx|jsx|vue|html)$/.test(lower) || /^\+(page|layout)\./.test(path3.basename(lower));
|
|
718
|
+
});
|
|
719
|
+
if (isPageOrLayout) {
|
|
720
|
+
const hasSemanticTags = /<(header|main|footer|nav|section)\b/i.test(htmlContentCombined);
|
|
721
|
+
const hasH1 = /<h1\b/i.test(htmlContentCombined);
|
|
722
|
+
if (!hasSemanticTags && !hasH1) {
|
|
723
|
+
violations.push("Fidelity Violation: HTML layout structure lacks basic semantic elements (<header>, <main>, <footer>, <nav>, <section>) or <h1> tag.");
|
|
724
|
+
}
|
|
719
725
|
}
|
|
720
726
|
}
|
|
721
727
|
return violations;
|
|
@@ -746,4 +752,4 @@ export {
|
|
|
746
752
|
DeliveryDecisionEngine,
|
|
747
753
|
ArtifactFidelityGate
|
|
748
754
|
};
|
|
749
|
-
//# sourceMappingURL=chunk-
|
|
755
|
+
//# sourceMappingURL=chunk-XW747GIG.js.map
|
package/core/index.js
CHANGED
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
RequestClassifier,
|
|
11
11
|
SpecValidator,
|
|
12
12
|
WorkflowStateMachine
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-W4RTQWVQ.js";
|
|
14
14
|
import {
|
|
15
15
|
MergeGate
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-XW747GIG.js";
|
|
17
17
|
import "../chunk-5WRI5ZAA.js";
|
|
18
18
|
export {
|
|
19
19
|
BranchGate,
|
package/package.json
CHANGED
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
QualityGuard,
|
|
4
4
|
ValidationPlanner,
|
|
5
5
|
VisualVerifier
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-BDZPUAEX.js";
|
|
7
|
+
import "./chunk-XW747GIG.js";
|
|
8
8
|
import "./chunk-5WRI5ZAA.js";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/validate.ts
|
|
@@ -86,4 +86,4 @@ async function runValidate({
|
|
|
86
86
|
export {
|
|
87
87
|
runValidate
|
|
88
88
|
};
|
|
89
|
-
//# sourceMappingURL=validate-
|
|
89
|
+
//# sourceMappingURL=validate-A46WUBVZ.js.map
|