@doccov/cli 0.25.3 → 0.25.7

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 +9 -11
  2. package/package.json +2 -2
package/dist/cli.js CHANGED
@@ -934,7 +934,7 @@ function renderHtml(stats, options = {}) {
934
934
  </html>`;
935
935
  }
936
936
  // src/reports/pr-comment.ts
937
- import { getExportDrift as getExportDrift3 } from "@doccov/sdk";
937
+ import { getExportDrift as getExportDrift2 } from "@doccov/sdk";
938
938
  function extractReturnType(schema) {
939
939
  if (!schema)
940
940
  return "void";
@@ -1070,7 +1070,7 @@ function renderUndocumentedExports(lines, undocumented, headSpec, opts, limit) {
1070
1070
  function renderDriftIssues(lines, _undocumented, headSpec, doccov, opts, limit) {
1071
1071
  const driftIssues = [];
1072
1072
  for (const exp of headSpec.exports) {
1073
- const drifts = doccov ? getExportDrift3(exp, doccov) : [];
1073
+ const drifts = doccov ? getExportDrift2(exp, doccov) : [];
1074
1074
  for (const d of drifts) {
1075
1075
  driftIssues.push({
1076
1076
  exportName: exp.name,
@@ -1218,8 +1218,10 @@ function renderDetailsTable(lines, diff) {
1218
1218
  }
1219
1219
  }
1220
1220
  // src/reports/stats.ts
1221
- import { getExportAnalysis, getExportDrift as getExportDrift4, isFixableDrift } from "@doccov/sdk";
1222
- import { DRIFT_CATEGORIES as DRIFT_CATEGORIES2 } from "@doccov/spec";
1221
+ import { getExportAnalysis, getExportDrift as getExportDrift3, isFixableDrift } from "@doccov/sdk";
1222
+ import {
1223
+ DRIFT_CATEGORIES as DRIFT_CATEGORIES2
1224
+ } from "@doccov/spec";
1223
1225
  function computeStats(openpkg, doccov) {
1224
1226
  const exports = openpkg.exports ?? [];
1225
1227
  const signals = {
@@ -1257,7 +1259,7 @@ function computeStats(openpkg, doccov) {
1257
1259
  partiallyDocumented++;
1258
1260
  else
1259
1261
  undocumented++;
1260
- for (const d of getExportDrift4(exp, doccov)) {
1262
+ for (const d of getExportDrift3(exp, doccov)) {
1261
1263
  const item = {
1262
1264
  exportName: exp.name,
1263
1265
  type: d.type,
@@ -1358,7 +1360,6 @@ function writeReports(options) {
1358
1360
  function displayTextOutput(options, deps) {
1359
1361
  const {
1360
1362
  openpkg,
1361
- doccov,
1362
1363
  coverageScore,
1363
1364
  minCoverage,
1364
1365
  maxDrift,
@@ -1700,10 +1701,7 @@ function registerCheckCommand(program, dependencies = {}) {
1700
1701
  exportNames: (openpkg.exports ?? []).map((e) => e.name)
1701
1702
  });
1702
1703
  const coverageScore = doccov.summary.score;
1703
- const allDriftExports = [
1704
- ...collectDrift(openpkg.exports ?? [], doccov),
1705
- ...runtimeDrifts
1706
- ];
1704
+ const allDriftExports = [...collectDrift(openpkg.exports ?? [], doccov), ...runtimeDrifts];
1707
1705
  let driftExports = hasExamples ? allDriftExports : allDriftExports.filter((d) => d.category !== "example");
1708
1706
  if (shouldFix && driftExports.length > 0) {
1709
1707
  const fixResult = await handleFixes(openpkg, doccov, { isPreview, targetDir }, { log, error });
@@ -2377,7 +2375,7 @@ import { validateDocCovSpec } from "@doccov/spec";
2377
2375
  import { normalize, validateSpec } from "@openpkg-ts/spec";
2378
2376
  import chalk10 from "chalk";
2379
2377
  // package.json
2380
- var version = "0.25.0";
2378
+ var version = "0.25.6";
2381
2379
 
2382
2380
  // src/commands/spec.ts
2383
2381
  var defaultDependencies4 = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doccov/cli",
3
- "version": "0.25.3",
3
+ "version": "0.25.7",
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.25.3",
51
+ "@doccov/sdk": "^0.25.7",
52
52
  "@doccov/spec": "^0.24.1",
53
53
  "@inquirer/prompts": "^7.8.0",
54
54
  "@openpkg-ts/spec": "^0.12.0",