@doccov/sdk 0.28.1 → 0.28.2
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/analysis/index.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -2576,7 +2576,7 @@ interface SpecSummary {
|
|
|
2576
2576
|
* ```
|
|
2577
2577
|
*/
|
|
2578
2578
|
declare function extractSpecSummary(openpkg: OpenPkg8, doccov: DocCovSpec4): SpecSummary;
|
|
2579
|
-
import { OpenPkg as
|
|
2579
|
+
import { OpenPkg as OpenPkg_hpkftpjlir } from "@openpkg-ts/spec";
|
|
2580
2580
|
/**
|
|
2581
2581
|
* Build Plan types for AI-powered repository scanning.
|
|
2582
2582
|
*/
|
|
@@ -2673,7 +2673,7 @@ interface BuildPlanExecutionResult {
|
|
|
2673
2673
|
/** Whether all required steps succeeded */
|
|
2674
2674
|
success: boolean;
|
|
2675
2675
|
/** Generated OpenPkg spec (if successful) */
|
|
2676
|
-
spec?:
|
|
2676
|
+
spec?: OpenPkg_hpkftpjlir;
|
|
2677
2677
|
/** Results for each step */
|
|
2678
2678
|
stepResults: BuildPlanStepResult[];
|
|
2679
2679
|
/** Total execution time in milliseconds */
|
package/dist/index.js
CHANGED
|
@@ -2176,7 +2176,7 @@ function computeHealth(input) {
|
|
|
2176
2176
|
examples
|
|
2177
2177
|
} = input;
|
|
2178
2178
|
const completenessScore = coverageScore;
|
|
2179
|
-
const driftRatio =
|
|
2179
|
+
const driftRatio = totalExports > 0 ? driftIssues / totalExports : 0;
|
|
2180
2180
|
const driftPenalty = Math.min(driftRatio * 0.5, 0.5);
|
|
2181
2181
|
const accuracyScore = Math.round((1 - driftPenalty) * 100);
|
|
2182
2182
|
let exampleScore;
|