forge-cc 0.1.8 → 0.1.9

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/dist/types.d.ts CHANGED
@@ -21,6 +21,18 @@ export interface VisualResult extends GateResult {
21
21
  }>;
22
22
  consoleErrors: string[];
23
23
  }
24
+ /** Extended result for code review with review-specific metadata */
25
+ export interface ReviewResult extends GateResult {
26
+ reviewFindings: Array<{
27
+ type: "prd_compliance" | "rule_violation" | "style";
28
+ severity: "error" | "warning";
29
+ file?: string;
30
+ line?: number;
31
+ message: string;
32
+ remediation: string;
33
+ source: string;
34
+ }>;
35
+ }
24
36
  /** Input for the full verification pipeline */
25
37
  export interface PipelineInput {
26
38
  projectDir: string;
@@ -33,6 +45,7 @@ export interface PipelineInput {
33
45
  devServerCommand?: string;
34
46
  devServerPort?: number;
35
47
  baseBranch?: string;
48
+ reviewBlocking?: boolean;
36
49
  }
37
50
  /** Result from the full verification pipeline */
38
51
  export interface PipelineResult {
@@ -54,6 +67,9 @@ export interface ForgeConfig {
54
67
  };
55
68
  prdPath?: string;
56
69
  linearProject?: string;
70
+ review?: {
71
+ blocking: boolean;
72
+ };
57
73
  }
58
74
  /** Verification cache written to .forge/last-verify.json */
59
75
  export interface VerifyCache {
@@ -62,3 +78,38 @@ export interface VerifyCache {
62
78
  gates: GateResult[];
63
79
  branch: string;
64
80
  }
81
+ /** Viewport configuration for multi-viewport visual capture */
82
+ export interface ViewportConfig {
83
+ name: string;
84
+ width: number;
85
+ height: number;
86
+ }
87
+ /** Serialized DOM node snapshot from page.evaluate() extraction */
88
+ export interface DOMSnapshot {
89
+ tag: string;
90
+ id?: string;
91
+ className?: string;
92
+ visible: boolean;
93
+ rect?: {
94
+ x: number;
95
+ y: number;
96
+ width: number;
97
+ height: number;
98
+ };
99
+ children: DOMSnapshot[];
100
+ }
101
+ /** Result from multi-viewport visual capture with DOM extraction */
102
+ export interface VisualCaptureResult {
103
+ screenshots: Array<{
104
+ page: string;
105
+ viewport: string;
106
+ path: string;
107
+ }>;
108
+ domSnapshots: Record<string, DOMSnapshot>;
109
+ metadata: {
110
+ viewports: ViewportConfig[];
111
+ pagePath: string;
112
+ capturedAt: string;
113
+ durationMs: number;
114
+ };
115
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forge-cc",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Pre-PR verification harness for Claude Code agents — gate runner + CLI + MCP server",
5
5
  "type": "module",
6
6
  "license": "MIT",