@doccov/sdk 0.29.2 → 0.29.4

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.ts CHANGED
@@ -664,7 +664,7 @@ declare function hashFiles(filePaths: string[], cwd: string): Record<string, str
664
664
  declare function diffHashes(cached: Record<string, string>, current: Record<string, string>): string[];
665
665
  import { OpenPkg as OpenPkg3 } from "@openpkg-ts/spec";
666
666
  /** Current cache format version - bump when spec extraction logic changes */
667
- declare const CACHE_VERSION = "1.2.0";
667
+ declare const CACHE_VERSION = "1.3.0";
668
668
  /** Default cache file path */
669
669
  declare const SPEC_CACHE_FILE = ".doccov/cache/spec.cache.json";
670
670
  /**
@@ -680,6 +680,7 @@ interface CachedDiagnostic {
680
680
  message: string;
681
681
  severity: "error" | "warning" | "info";
682
682
  suggestion?: string;
683
+ code?: string;
683
684
  location?: {
684
685
  file: string;
685
686
  line?: number;
@@ -988,6 +989,7 @@ interface Diagnostic {
988
989
  message: string;
989
990
  severity: "error" | "warning" | "info";
990
991
  suggestion?: string;
992
+ code?: string;
991
993
  location?: {
992
994
  file: string;
993
995
  line?: number;
@@ -2616,7 +2618,7 @@ interface SpecSummary {
2616
2618
  * ```
2617
2619
  */
2618
2620
  declare function extractSpecSummary(openpkg: OpenPkg8, doccov: DocCovSpec4): SpecSummary;
2619
- import { OpenPkg as OpenPkg_mxtycxcuwp } from "@openpkg-ts/spec";
2621
+ import { OpenPkg as OpenPkg_hlpylamjdn } from "@openpkg-ts/spec";
2620
2622
  /**
2621
2623
  * Build Plan types for AI-powered repository scanning.
2622
2624
  */
@@ -2713,7 +2715,7 @@ interface BuildPlanExecutionResult {
2713
2715
  /** Whether all required steps succeeded */
2714
2716
  success: boolean;
2715
2717
  /** Generated OpenPkg spec (if successful) */
2716
- spec?: OpenPkg_mxtycxcuwp;
2718
+ spec?: OpenPkg_hlpylamjdn;
2717
2719
  /** Results for each step */
2718
2720
  stepResults: BuildPlanStepResult[];
2719
2721
  /** Total execution time in milliseconds */
package/dist/index.js CHANGED
@@ -251,7 +251,8 @@ async function runAnalysis(input) {
251
251
  specDiagnostics.push({
252
252
  message: diag.message,
253
253
  severity: diag.severity,
254
- suggestion: diag.suggestion
254
+ suggestion: diag.suggestion,
255
+ code: diag.code
255
256
  });
256
257
  }
257
258
  const sourceFiles = program.getSourceFiles().filter((sf) => !sf.isDeclarationFile && sf.fileName.startsWith(baseDir)).map((sf) => sf.fileName);
@@ -314,7 +315,7 @@ function diffHashes(cached, current) {
314
315
  // src/cache/spec-cache.ts
315
316
  import * as fs4 from "node:fs";
316
317
  import * as path5 from "node:path";
317
- var CACHE_VERSION = "1.2.0";
318
+ var CACHE_VERSION = "1.3.0";
318
319
  var SPEC_CACHE_FILE = ".doccov/cache/spec.cache.json";
319
320
  function loadSpecCache(cwd) {
320
321
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doccov/sdk",
3
- "version": "0.29.2",
3
+ "version": "0.29.4",
4
4
  "description": "DocCov SDK - Documentation coverage and drift detection for TypeScript",
5
5
  "keywords": [
6
6
  "typescript",