@reportforge/playwright-pdf 0.3.1 → 0.4.1

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/index.d.mts CHANGED
@@ -167,6 +167,32 @@ interface ReporterOptions {
167
167
  attachPdf?: boolean;
168
168
  };
169
169
  };
170
+ /**
171
+ * Offline failure root-cause analysis. Classifies failures into categories
172
+ * using an embedded Naive Bayes model and renders a clustered breakdown in
173
+ * the `detailed` PDF (one-liner in `executive`). No network calls at runtime.
174
+ * @example
175
+ * failureAnalysis: { enabled: true, maxClusters: 5 }
176
+ */
177
+ failureAnalysis?: {
178
+ /** Enable/disable. Default: true */
179
+ enabled?: boolean;
180
+ /** Max clusters shown in the PDF. Default: 10 */
181
+ maxClusters?: number;
182
+ /** Hide clusters below this match strength. Default: 'weak' (show all). */
183
+ minStrength?: 'weak' | 'moderate' | 'strong';
184
+ /** Max failures fed to the classifier; excess skipped, PDF notes it. Default: 500 */
185
+ maxFailuresToAnalyse?: number;
186
+ /** Collect unknown/low-confidence failures to a local per-project CSV (Plan 3). Default: true */
187
+ collectUnclassified?: boolean;
188
+ /**
189
+ * Auto-update the classifier model from the signed license-refresh channel
190
+ * (offline-tolerant; the bundled model is always the floor; the delivered model
191
+ * is Ed25519-verified). Set false to pin the bundled model for reproducibility.
192
+ * Default: true
193
+ */
194
+ autoUpdateModel?: boolean;
195
+ };
170
196
  /**
171
197
  * Path to the history JSON file. Defaults to
172
198
  * `~/.reportforge/{projectKey}/history.json` where `projectKey` is derived
package/dist/index.d.ts CHANGED
@@ -167,6 +167,32 @@ interface ReporterOptions {
167
167
  attachPdf?: boolean;
168
168
  };
169
169
  };
170
+ /**
171
+ * Offline failure root-cause analysis. Classifies failures into categories
172
+ * using an embedded Naive Bayes model and renders a clustered breakdown in
173
+ * the `detailed` PDF (one-liner in `executive`). No network calls at runtime.
174
+ * @example
175
+ * failureAnalysis: { enabled: true, maxClusters: 5 }
176
+ */
177
+ failureAnalysis?: {
178
+ /** Enable/disable. Default: true */
179
+ enabled?: boolean;
180
+ /** Max clusters shown in the PDF. Default: 10 */
181
+ maxClusters?: number;
182
+ /** Hide clusters below this match strength. Default: 'weak' (show all). */
183
+ minStrength?: 'weak' | 'moderate' | 'strong';
184
+ /** Max failures fed to the classifier; excess skipped, PDF notes it. Default: 500 */
185
+ maxFailuresToAnalyse?: number;
186
+ /** Collect unknown/low-confidence failures to a local per-project CSV (Plan 3). Default: true */
187
+ collectUnclassified?: boolean;
188
+ /**
189
+ * Auto-update the classifier model from the signed license-refresh channel
190
+ * (offline-tolerant; the bundled model is always the floor; the delivered model
191
+ * is Ed25519-verified). Set false to pin the bundled model for reproducibility.
192
+ * Default: true
193
+ */
194
+ autoUpdateModel?: boolean;
195
+ };
170
196
  /**
171
197
  * Path to the history JSON file. Defaults to
172
198
  * `~/.reportforge/{projectKey}/history.json` where `projectKey` is derived