@doccov/sdk 0.25.9 → 0.25.11
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
|
@@ -601,8 +601,8 @@ declare function hashFiles(filePaths: string[], cwd: string): Record<string, str
|
|
|
601
601
|
*/
|
|
602
602
|
declare function diffHashes(cached: Record<string, string>, current: Record<string, string>): string[];
|
|
603
603
|
import { OpenPkg as OpenPkg3 } from "@openpkg-ts/spec";
|
|
604
|
-
/** Current cache format version */
|
|
605
|
-
declare const CACHE_VERSION = "1.
|
|
604
|
+
/** Current cache format version - bump when spec extraction logic changes */
|
|
605
|
+
declare const CACHE_VERSION = "1.1.0";
|
|
606
606
|
/** Default cache file path */
|
|
607
607
|
declare const SPEC_CACHE_FILE = ".doccov/spec.cache.json";
|
|
608
608
|
/**
|
|
@@ -2515,7 +2515,7 @@ interface SpecSummary {
|
|
|
2515
2515
|
* ```
|
|
2516
2516
|
*/
|
|
2517
2517
|
declare function extractSpecSummary(openpkg: OpenPkg8, doccov: DocCovSpec4): SpecSummary;
|
|
2518
|
-
import { OpenPkg as
|
|
2518
|
+
import { OpenPkg as OpenPkg_tkgeszkrhu } from "@openpkg-ts/spec";
|
|
2519
2519
|
/**
|
|
2520
2520
|
* Build Plan types for AI-powered repository scanning.
|
|
2521
2521
|
*/
|
|
@@ -2612,7 +2612,7 @@ interface BuildPlanExecutionResult {
|
|
|
2612
2612
|
/** Whether all required steps succeeded */
|
|
2613
2613
|
success: boolean;
|
|
2614
2614
|
/** Generated OpenPkg spec (if successful) */
|
|
2615
|
-
spec?:
|
|
2615
|
+
spec?: OpenPkg_tkgeszkrhu;
|
|
2616
2616
|
/** Results for each step */
|
|
2617
2617
|
stepResults: BuildPlanStepResult[];
|
|
2618
2618
|
/** Total execution time in milliseconds */
|
package/dist/index.js
CHANGED
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
saveSnapshot,
|
|
56
56
|
serializeJSDoc,
|
|
57
57
|
ts
|
|
58
|
-
} from "./shared/chunk-
|
|
58
|
+
} from "./shared/chunk-cbe8089a.js";
|
|
59
59
|
import {
|
|
60
60
|
mergeFilters,
|
|
61
61
|
parseListFlag
|
|
@@ -337,7 +337,7 @@ function diffHashes(cached, current) {
|
|
|
337
337
|
// src/cache/spec-cache.ts
|
|
338
338
|
import * as fs3 from "node:fs";
|
|
339
339
|
import * as path5 from "node:path";
|
|
340
|
-
var CACHE_VERSION = "1.
|
|
340
|
+
var CACHE_VERSION = "1.1.0";
|
|
341
341
|
var SPEC_CACHE_FILE = ".doccov/spec.cache.json";
|
|
342
342
|
function loadSpecCache(cwd) {
|
|
343
343
|
try {
|
|
@@ -1274,6 +1274,8 @@ function isIdentifierReference(node) {
|
|
|
1274
1274
|
return false;
|
|
1275
1275
|
if (ts2.isPropertyDeclaration(parent) && parent.name === node)
|
|
1276
1276
|
return false;
|
|
1277
|
+
if (ts2.isPropertyAccessExpression(parent) && parent.name === node)
|
|
1278
|
+
return false;
|
|
1277
1279
|
return true;
|
|
1278
1280
|
}
|
|
1279
1281
|
function detectExampleDrift(entry, registry) {
|
|
@@ -1964,6 +1966,19 @@ function buildExportRegistry(spec) {
|
|
|
1964
1966
|
all.add(entry.name);
|
|
1965
1967
|
if (entry.id)
|
|
1966
1968
|
all.add(entry.id);
|
|
1969
|
+
if (entry.kind === "namespace" && entry.members) {
|
|
1970
|
+
for (const member of entry.members) {
|
|
1971
|
+
if (!member.name)
|
|
1972
|
+
continue;
|
|
1973
|
+
const memberInfo = {
|
|
1974
|
+
name: member.name,
|
|
1975
|
+
kind: member.kind ?? "unknown",
|
|
1976
|
+
isCallable: ["function", "class"].includes(member.kind ?? "")
|
|
1977
|
+
};
|
|
1978
|
+
exports.set(member.name, memberInfo);
|
|
1979
|
+
all.add(member.name);
|
|
1980
|
+
}
|
|
1981
|
+
}
|
|
1967
1982
|
}
|
|
1968
1983
|
for (const type of spec.types ?? []) {
|
|
1969
1984
|
types.add(type.name);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@doccov/sdk",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.11",
|
|
4
4
|
"description": "DocCov SDK - Documentation coverage and drift detection for TypeScript",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
],
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@doccov/spec": "^0.24.1",
|
|
51
|
-
"@openpkg-ts/extract": "^0.14.
|
|
51
|
+
"@openpkg-ts/extract": "^0.14.5",
|
|
52
52
|
"@openpkg-ts/spec": "^0.12.0",
|
|
53
53
|
"@vercel/sandbox": "^1.0.3",
|
|
54
54
|
"mdast": "^3.0.0",
|