@reportforge/playwright-pdf 0.3.1 → 0.4.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.
- package/README.md +3 -0
- package/dist/cli/export-feedback.js +87 -0
- package/dist/demo/cli.js +413 -59
- package/dist/index.d.mts +26 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.js +444 -64
- package/dist/index.mjs +521 -141
- package/dist/templates/layouts/detailed.hbs +2 -0
- package/dist/templates/layouts/executive.hbs +2 -0
- package/dist/templates/partials/analysis-oneliner.hbs +3 -0
- package/dist/templates/partials/failure-analysis.hbs +42 -0
- package/dist/templates/styles/base.css +3 -0
- package/dist/templates/styles/detailed.css +21 -0
- package/package.json +8 -3
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
|