@doccov/cli 0.15.0 → 0.15.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.
Files changed (2) hide show
  1. package/dist/cli.js +3 -13
  2. package/package.json +2 -2
package/dist/cli.js CHANGED
@@ -558,20 +558,10 @@ function renderHtml(stats, options = {}) {
558
558
  </html>`;
559
559
  }
560
560
  // src/reports/stats.ts
561
+ import { isFixableDrift } from "@doccov/sdk";
561
562
  import {
562
563
  DRIFT_CATEGORIES
563
564
  } from "@openpkg-ts/spec";
564
- var FIXABLE_DRIFT_TYPES = new Set([
565
- "param-mismatch",
566
- "param-type-mismatch",
567
- "optionality-mismatch",
568
- "return-type-mismatch",
569
- "generic-constraint-mismatch",
570
- "example-assertion-failed",
571
- "deprecated-mismatch",
572
- "async-mismatch",
573
- "property-type-drift"
574
- ]);
575
565
  function computeStats(spec) {
576
566
  const exports = spec.exports ?? [];
577
567
  const signals = {
@@ -642,7 +632,7 @@ function computeStats(spec) {
642
632
  semantic: driftByCategory.semantic.length,
643
633
  example: driftByCategory.example.length
644
634
  },
645
- fixable: driftIssues.filter((d) => FIXABLE_DRIFT_TYPES.has(d.type)).length
635
+ fixable: driftIssues.filter((d) => isFixableDrift({ type: d.type })).length
646
636
  };
647
637
  const exportsWithDrift = new Set(driftIssues.map((d) => d.exportName)).size;
648
638
  const driftScore = exports.length === 0 ? 0 : Math.round(exportsWithDrift / exports.length * 100);
@@ -1823,7 +1813,7 @@ import { DocCov as DocCov3, NodeFileSystem as NodeFileSystem3, resolveTarget as
1823
1813
  import { normalize, validateSpec } from "@openpkg-ts/spec";
1824
1814
  import chalk8 from "chalk";
1825
1815
  // package.json
1826
- var version = "0.14.0";
1816
+ var version = "0.15.0";
1827
1817
 
1828
1818
  // src/utils/filter-options.ts
1829
1819
  import { mergeFilters, parseListFlag } from "@doccov/sdk";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doccov/cli",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "description": "DocCov CLI - Documentation coverage and drift detection for TypeScript",
5
5
  "keywords": [
6
6
  "typescript",
@@ -48,7 +48,7 @@
48
48
  "dependencies": {
49
49
  "@ai-sdk/anthropic": "^1.0.0",
50
50
  "@ai-sdk/openai": "^1.0.0",
51
- "@doccov/sdk": "^0.15.0",
51
+ "@doccov/sdk": "^0.15.1",
52
52
  "@inquirer/prompts": "^7.8.0",
53
53
  "@openpkg-ts/spec": "^0.9.0",
54
54
  "ai": "^4.0.0",