@williambeto/ai-workflow 2.6.4 → 2.7.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.
@@ -3,7 +3,7 @@ import {
3
3
  DeliveryDecisionEngine,
4
4
  MergeGate,
5
5
  StackDetector
6
- } from "./chunk-2AOV2ATY.js";
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-6EMG6FAO.js.map
734
+ //# sourceMappingURL=chunk-BDZPUAEX.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ArtifactFidelityGate,
3
3
  DeliveryDecisionEngine
4
- } from "./chunk-2AOV2ATY.js";
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-UHLZX2EG.js.map
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 hasSemanticTags = /<(header|main|footer|nav|section)\b/i.test(htmlContentCombined);
716
- const hasH1 = /<h1\b/i.test(htmlContentCombined);
717
- if (!hasSemanticTags && !hasH1) {
718
- violations.push("Fidelity Violation: HTML layout structure lacks basic semantic elements (<header>, <main>, <footer>, <nav>, <section>) or <h1> tag.");
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-2AOV2ATY.js.map
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-UHLZX2EG.js";
13
+ } from "../chunk-W4RTQWVQ.js";
14
14
  import {
15
15
  MergeGate
16
- } from "../chunk-2AOV2ATY.js";
16
+ } from "../chunk-XW747GIG.js";
17
17
  import "../chunk-5WRI5ZAA.js";
18
18
  export {
19
19
  BranchGate,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@williambeto/ai-workflow",
3
- "version": "2.6.4",
3
+ "version": "2.7.0",
4
4
  "description": "AI Workflow Kit — OpenCode-first software delivery workflow with agents, commands, skills, validation, and evidence",
5
5
  "license": "MIT",
6
6
  "author": "José Willams",
@@ -3,8 +3,8 @@ import {
3
3
  QualityGuard,
4
4
  ValidationPlanner,
5
5
  VisualVerifier
6
- } from "./chunk-6EMG6FAO.js";
7
- import "./chunk-2AOV2ATY.js";
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-Q2NLLQ5G.js.map
89
+ //# sourceMappingURL=validate-A46WUBVZ.js.map