docguard-cli 0.34.0 → 0.34.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.
- package/cli/scanners/schemas.mjs +1 -0
- package/cli/validators/docs-diff.mjs +8 -2
- package/cli/validators/todo-tracking.mjs +1 -1
- package/docs/commands.md +1 -1
- package/extensions/spec-kit-docguard/extension.yml +1 -1
- package/extensions/spec-kit-docguard/skills/docguard-fix/SKILL.md +2 -2
- package/extensions/spec-kit-docguard/skills/docguard-guard/SKILL.md +2 -2
- package/extensions/spec-kit-docguard/skills/docguard-review/SKILL.md +2 -2
- package/extensions/spec-kit-docguard/skills/docguard-score/SKILL.md +2 -2
- package/extensions/spec-kit-docguard/skills/docguard-sync/SKILL.md +2 -2
- package/package.json +2 -2
package/cli/scanners/schemas.mjs
CHANGED
|
@@ -715,6 +715,7 @@ function extractOpenAPIRelationships(schemas) {
|
|
|
715
715
|
const relationships = [];
|
|
716
716
|
for (const schema of schemas) {
|
|
717
717
|
for (const field of schema.fields) {
|
|
718
|
+
if (!field.type) continue; // OpenAPI allows a field with no `type` (e.g. a bare $ref)
|
|
718
719
|
if (field.type !== 'string' && field.type !== 'number' && field.type !== 'boolean' && field.type !== 'integer') {
|
|
719
720
|
// Likely a reference to another schema
|
|
720
721
|
const target = schemas.find(s => s.name.toLowerCase() === field.type.toLowerCase());
|
|
@@ -257,7 +257,10 @@ export function collectCodeTests(dir, config = {}) {
|
|
|
257
257
|
// 2. recursive scan of each source root (co-located + nested __tests__)
|
|
258
258
|
for (const root of resolveSourceRoots(dir, config)) {
|
|
259
259
|
for (const f of getFilesRecursive(root, config)) {
|
|
260
|
-
if (isTest(f))
|
|
260
|
+
if (isTest(f)) {
|
|
261
|
+
const rel = relative(dir, f);
|
|
262
|
+
if (!shouldIgnore(rel, config)) codeTests.add(rel);
|
|
263
|
+
}
|
|
261
264
|
}
|
|
262
265
|
}
|
|
263
266
|
|
|
@@ -266,7 +269,10 @@ export function collectCodeTests(dir, config = {}) {
|
|
|
266
269
|
const testDir = join(resolve(dir), td);
|
|
267
270
|
if (!existsSync(testDir)) continue;
|
|
268
271
|
for (const f of getFilesRecursive(testDir, config)) {
|
|
269
|
-
if (isTest(f))
|
|
272
|
+
if (isTest(f)) {
|
|
273
|
+
const rel = relative(dir, f);
|
|
274
|
+
if (!shouldIgnore(rel, config)) codeTests.add(rel);
|
|
275
|
+
}
|
|
270
276
|
}
|
|
271
277
|
}
|
|
272
278
|
|
|
@@ -344,7 +344,7 @@ function findTestFiles(rootDir, dir, files, config) {
|
|
|
344
344
|
// inside template literals is a comment marker for the regex but not a real
|
|
345
345
|
// annotation to track). Set config.todoTracking.includeTestFiles = true to override.
|
|
346
346
|
const TEST_FILE_RE = /(^|\/)__tests?__\//;
|
|
347
|
-
const TEST_NAME_RE =
|
|
347
|
+
const TEST_NAME_RE = /(?:\.(?:test|spec)\.[cm]?[jt]sx?|(?:^|\/)test_[^/]*\.py|_test\.(?:py|go)|_spec\.rb|(?:^|\/)[^/]*_test\.rb)$/i;
|
|
348
348
|
|
|
349
349
|
// The validator's own source file describes the keyword list in its docstring
|
|
350
350
|
// and code. Skipping itself avoids self-referential false positives.
|
package/docs/commands.md
CHANGED
|
@@ -132,7 +132,7 @@ npx docguard-cli init --skip-prompts # No AI prompt output
|
|
|
132
132
|
|
|
133
133
|
```bash
|
|
134
134
|
npx docguard-cli generate
|
|
135
|
-
npx docguard-cli generate --dir
|
|
135
|
+
npx docguard-cli generate --dir ./my-project
|
|
136
136
|
```
|
|
137
137
|
|
|
138
138
|
**Detects:** Next.js, React, Vue, Angular, Express, Fastify, Hono, Django, FastAPI, SvelteKit, and more.
|
|
@@ -3,7 +3,7 @@ schema_version: "1.0"
|
|
|
3
3
|
extension:
|
|
4
4
|
id: "docguard"
|
|
5
5
|
name: "DocGuard — CDD Enforcement"
|
|
6
|
-
version: "0.34.
|
|
6
|
+
version: "0.34.7"
|
|
7
7
|
description: "Canonical-Driven Development enforcement as a true spec-kit extension. LLM-first design with automated validators, 4 AI behavior skills, spec-kit skill chaining, and workflow hooks. One pinned runtime dependency (@babel/parser); pure Node.js otherwise."
|
|
8
8
|
author: "Ricardo Accioly"
|
|
9
9
|
repository: "https://github.com/raccioly/docguard"
|
|
@@ -6,10 +6,10 @@ description: AI-driven documentation repair with structured research workflow, t
|
|
|
6
6
|
compatibility: Requires DocGuard CLI installed (npm i -g docguard-cli or npx docguard-cli)
|
|
7
7
|
metadata:
|
|
8
8
|
author: docguard
|
|
9
|
-
version: 0.34.
|
|
9
|
+
version: 0.34.7
|
|
10
10
|
source: extensions/spec-kit-docguard/skills/docguard-fix
|
|
11
11
|
---
|
|
12
|
-
<!-- docguard:version: 0.34.
|
|
12
|
+
<!-- docguard:version: 0.34.7 -->
|
|
13
13
|
|
|
14
14
|
# DocGuard Fix Skill
|
|
15
15
|
|
|
@@ -7,10 +7,10 @@ description: Run DocGuard guard validation against Canonical-Driven Development
|
|
|
7
7
|
compatibility: Requires DocGuard CLI installed (npm i -g docguard-cli or npx docguard-cli)
|
|
8
8
|
metadata:
|
|
9
9
|
author: docguard
|
|
10
|
-
version: 0.34.
|
|
10
|
+
version: 0.34.7
|
|
11
11
|
source: extensions/spec-kit-docguard/skills/docguard-guard
|
|
12
12
|
---
|
|
13
|
-
<!-- docguard:version: 0.34.
|
|
13
|
+
<!-- docguard:version: 0.34.7 -->
|
|
14
14
|
|
|
15
15
|
# DocGuard Guard Skill
|
|
16
16
|
|
|
@@ -6,10 +6,10 @@ description: Cross-document consistency analysis and quality assessment. Perform
|
|
|
6
6
|
compatibility: Requires DocGuard CLI installed (npm i -g docguard-cli or npx docguard-cli)
|
|
7
7
|
metadata:
|
|
8
8
|
author: docguard
|
|
9
|
-
version: 0.34.
|
|
9
|
+
version: 0.34.7
|
|
10
10
|
source: extensions/spec-kit-docguard/skills/docguard-review
|
|
11
11
|
---
|
|
12
|
-
<!-- docguard:version: 0.34.
|
|
12
|
+
<!-- docguard:version: 0.34.7 -->
|
|
13
13
|
|
|
14
14
|
# DocGuard Review Skill
|
|
15
15
|
|
|
@@ -6,10 +6,10 @@ description: CDD maturity assessment with category-aware improvement roadmap. Ru
|
|
|
6
6
|
compatibility: Requires DocGuard CLI installed (npm i -g docguard-cli or npx docguard-cli)
|
|
7
7
|
metadata:
|
|
8
8
|
author: docguard
|
|
9
|
-
version: 0.34.
|
|
9
|
+
version: 0.34.7
|
|
10
10
|
source: extensions/spec-kit-docguard/skills/docguard-score
|
|
11
11
|
---
|
|
12
|
-
<!-- docguard:version: 0.34.
|
|
12
|
+
<!-- docguard:version: 0.34.7 -->
|
|
13
13
|
|
|
14
14
|
# DocGuard Score Skill
|
|
15
15
|
|
|
@@ -4,10 +4,10 @@ description: Keep canonical documentation ALWAYS UP TO DATE. Refreshes code-trut
|
|
|
4
4
|
compatibility: Requires DocGuard CLI installed (npm i -g docguard-cli or npx docguard-cli)
|
|
5
5
|
metadata:
|
|
6
6
|
author: docguard
|
|
7
|
-
version: 0.34.
|
|
7
|
+
version: 0.34.7
|
|
8
8
|
source: extensions/spec-kit-docguard/skills/docguard-sync
|
|
9
9
|
---
|
|
10
|
-
<!-- docguard:version: 0.34.
|
|
10
|
+
<!-- docguard:version: 0.34.7 -->
|
|
11
11
|
|
|
12
12
|
# DocGuard Sync Skill
|
|
13
13
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docguard-cli",
|
|
3
|
-
"version": "0.34.
|
|
3
|
+
"version": "0.34.7",
|
|
4
4
|
"description": "The enforcement tool for Canonical-Driven Development (CDD). Audit, generate, and guard your project documentation.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"node": ">=18.0.0"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@babel/parser": "7.29.
|
|
50
|
+
"@babel/parser": "7.29.8"
|
|
51
51
|
},
|
|
52
52
|
"files": [
|
|
53
53
|
"cli/",
|