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 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 that only READ and REPORT they must never mutate the working
666
- // tree. Scaffolding (ensureSkills .agent/.specify, spawning `specify`)
667
- // belongs to setup/init/generate and the `init --with` family, where the
668
- // user is establishing or expanding their setup, not auditing it.
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 hook (.claude/settings.json) direct path, no wizard.
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.0"
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.0
9
+ version: 0.37.1
10
10
  source: extensions/spec-kit-docguard/skills/docguard-fix
11
11
  ---
12
- <!-- docguard:version: 0.37.0 -->
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.0
10
+ version: 0.37.1
11
11
  source: extensions/spec-kit-docguard/skills/docguard-guard
12
12
  ---
13
- <!-- docguard:version: 0.37.0 -->
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.0
9
+ version: 0.37.1
10
10
  source: extensions/spec-kit-docguard/skills/docguard-review
11
11
  ---
12
- <!-- docguard:version: 0.37.0 -->
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.0
9
+ version: 0.37.1
10
10
  source: extensions/spec-kit-docguard/skills/docguard-score
11
11
  ---
12
- <!-- docguard:version: 0.37.0 -->
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.0
7
+ version: 0.37.1
8
8
  source: extensions/spec-kit-docguard/skills/docguard-sync
9
9
  ---
10
- <!-- docguard:version: 0.37.0 -->
10
+ <!-- docguard:version: 0.37.1 -->
11
11
 
12
12
  # DocGuard Sync Skill
13
13
 
@@ -35,7 +35,7 @@ jobs:
35
35
  node-version: '20'
36
36
 
37
37
  - name: Install DocGuard
38
- run: npm install --global --ignore-scripts docguard-cli@0.37.0
38
+ run: npm install --global --ignore-scripts docguard-cli@0.37.1
39
39
 
40
40
  - name: Run DocGuard
41
41
  shell: bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docguard-cli",
3
- "version": "0.37.0",
3
+ "version": "0.37.1",
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": {
@@ -31,7 +31,7 @@ jobs:
31
31
  node-version: '20'
32
32
 
33
33
  - name: Install DocGuard
34
- run: npm install --global --ignore-scripts docguard-cli@0.37.0
34
+ run: npm install --global --ignore-scripts docguard-cli@0.37.1
35
35
 
36
36
  - name: Run DocGuard
37
37
  shell: bash