docguard-cli 0.37.0 → 0.37.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.
- package/cli/docguard.mjs +10 -7
- 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/extensions/spec-kit-docguard/templates/github-workflows/docguard-guard.yml +1 -1
- package/package.json +1 -1
- package/templates/ci/github-actions.yml +1 -1
package/cli/docguard.mjs
CHANGED
|
@@ -662,10 +662,11 @@ async function main() {
|
|
|
662
662
|
// same way runGuardInternal sees everything else.
|
|
663
663
|
if (flags.noBaseline) config.baseline = false;
|
|
664
664
|
|
|
665
|
-
// Commands
|
|
666
|
-
//
|
|
667
|
-
//
|
|
668
|
-
//
|
|
665
|
+
// Commands whose normal mode only reads/reports, plus explicit writers whose
|
|
666
|
+
// mutations must stay scoped to their named output. They must never add
|
|
667
|
+
// unrelated setup files. Scaffolding (ensureSkills → .agent/.specify,
|
|
668
|
+
// spawning `specify`) belongs to setup/init/generate and `init --with`, where
|
|
669
|
+
// the user is establishing or expanding setup rather than inspecting it.
|
|
669
670
|
//
|
|
670
671
|
// v0.26 (field report Bug #3): a bare `docguard guard` used to run
|
|
671
672
|
// ensureSkills → auto-init Spec Kit → spawn `specify` and write ~9 files into
|
|
@@ -675,7 +676,7 @@ async function main() {
|
|
|
675
676
|
// `diff`/`impact` only read; `demo` runs against a throwaway fixture.)
|
|
676
677
|
const READ_ONLY_COMMANDS = new Set([
|
|
677
678
|
'guard', 'audit', 'score', 'diff', 'impact',
|
|
678
|
-
'diagnose', 'trace', 'explain', 'memory', 'demo', 'agent', 'retire', 'archive', 'specs',
|
|
679
|
+
'diagnose', 'fix', 'trace', 'explain', 'memory', 'demo', 'agent', 'retire', 'archive', 'specs',
|
|
679
680
|
// feedback only writes its own .docguard/feedback/ — it must NOT scaffold
|
|
680
681
|
// skills or touch source, so it's gated out of ensureSkills like the rest.
|
|
681
682
|
'feedback',
|
|
@@ -703,6 +704,7 @@ async function main() {
|
|
|
703
704
|
command !== 'setup' &&
|
|
704
705
|
command !== 'init' &&
|
|
705
706
|
!READ_ONLY_COMMANDS.has(command) &&
|
|
707
|
+
!(command === 'hooks' && flags.list) &&
|
|
706
708
|
// Agent-family staleness checks must not bootstrap skills or Spec Kit.
|
|
707
709
|
!(command === 'agents' && flags.check) &&
|
|
708
710
|
!headless
|
|
@@ -798,8 +800,9 @@ async function main() {
|
|
|
798
800
|
runAgent(projectDir, config, flags);
|
|
799
801
|
break;
|
|
800
802
|
case 'hooks':
|
|
801
|
-
if (flags.claude) {
|
|
802
|
-
// Agent nudge
|
|
803
|
+
if (flags.claude || flags.list) {
|
|
804
|
+
// Agent nudge and read-only inventory paths bypass the setup wizard.
|
|
805
|
+
// Listing hooks must not refresh unrelated skills in the repository.
|
|
803
806
|
runHooks(projectDir, config, flags);
|
|
804
807
|
break;
|
|
805
808
|
}
|
|
@@ -3,7 +3,7 @@ schema_version: "1.0"
|
|
|
3
3
|
extension:
|
|
4
4
|
id: "docguard"
|
|
5
5
|
name: "DocGuard — CDD Enforcement"
|
|
6
|
-
version: "0.37.
|
|
6
|
+
version: "0.37.1"
|
|
7
7
|
description: "Canonical-Driven Development enforcement as a true spec-kit extension. LLM-first design with automated validators, 5 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.37.
|
|
9
|
+
version: 0.37.1
|
|
10
10
|
source: extensions/spec-kit-docguard/skills/docguard-fix
|
|
11
11
|
---
|
|
12
|
-
<!-- docguard:version: 0.37.
|
|
12
|
+
<!-- docguard:version: 0.37.1 -->
|
|
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.37.
|
|
10
|
+
version: 0.37.1
|
|
11
11
|
source: extensions/spec-kit-docguard/skills/docguard-guard
|
|
12
12
|
---
|
|
13
|
-
<!-- docguard:version: 0.37.
|
|
13
|
+
<!-- docguard:version: 0.37.1 -->
|
|
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.37.
|
|
9
|
+
version: 0.37.1
|
|
10
10
|
source: extensions/spec-kit-docguard/skills/docguard-review
|
|
11
11
|
---
|
|
12
|
-
<!-- docguard:version: 0.37.
|
|
12
|
+
<!-- docguard:version: 0.37.1 -->
|
|
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.37.
|
|
9
|
+
version: 0.37.1
|
|
10
10
|
source: extensions/spec-kit-docguard/skills/docguard-score
|
|
11
11
|
---
|
|
12
|
-
<!-- docguard:version: 0.37.
|
|
12
|
+
<!-- docguard:version: 0.37.1 -->
|
|
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.37.
|
|
7
|
+
version: 0.37.1
|
|
8
8
|
source: extensions/spec-kit-docguard/skills/docguard-sync
|
|
9
9
|
---
|
|
10
|
-
<!-- docguard:version: 0.37.
|
|
10
|
+
<!-- docguard:version: 0.37.1 -->
|
|
11
11
|
|
|
12
12
|
# DocGuard Sync Skill
|
|
13
13
|
|
package/package.json
CHANGED