code-auditor-mcp 3.7.0 → 3.8.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.
Files changed (129) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/CHANGELOG.md +71 -1
  3. package/dist/analyzers/cross-language/SchemaValidator.d.ts.map +1 -1
  4. package/dist/analyzers/cross-language/SchemaValidator.js +122 -43
  5. package/dist/analyzers/cross-language/SchemaValidator.js.map +1 -1
  6. package/dist/analyzers/crossDomain/CrossDomainAnalyzer.d.ts +2 -2
  7. package/dist/analyzers/crossDomain/CrossDomainAnalyzer.js +6 -7
  8. package/dist/analyzers/crossDomain/CrossDomainAnalyzer.js.map +1 -1
  9. package/dist/analyzers/ruleRegistry.d.ts.map +1 -1
  10. package/dist/analyzers/ruleRegistry.js +105 -18
  11. package/dist/analyzers/ruleRegistry.js.map +1 -1
  12. package/dist/analyzers/universal/UniversalDRYAnalyzer.d.ts +9 -1
  13. package/dist/analyzers/universal/UniversalDRYAnalyzer.d.ts.map +1 -1
  14. package/dist/analyzers/universal/UniversalDRYAnalyzer.js +63 -44
  15. package/dist/analyzers/universal/UniversalDRYAnalyzer.js.map +1 -1
  16. package/dist/analyzers/universal/UniversalDataAccessAnalyzer.d.ts.map +1 -1
  17. package/dist/analyzers/universal/UniversalDataAccessAnalyzer.js +76 -28
  18. package/dist/analyzers/universal/UniversalDataAccessAnalyzer.js.map +1 -1
  19. package/dist/analyzers/universal/UniversalDocumentationAnalyzer.js +73 -13
  20. package/dist/analyzers/universal/UniversalDocumentationAnalyzer.js.map +1 -1
  21. package/dist/analyzers/universal/UniversalSOLIDAnalyzer.d.ts +12 -2
  22. package/dist/analyzers/universal/UniversalSOLIDAnalyzer.d.ts.map +1 -1
  23. package/dist/analyzers/universal/UniversalSOLIDAnalyzer.js +30 -18
  24. package/dist/analyzers/universal/UniversalSOLIDAnalyzer.js.map +1 -1
  25. package/dist/analyzers/universal/UniversalStylesAnalyzer.d.ts +2 -8
  26. package/dist/analyzers/universal/UniversalStylesAnalyzer.d.ts.map +1 -1
  27. package/dist/analyzers/universal/UniversalStylesAnalyzer.js +54 -45
  28. package/dist/analyzers/universal/UniversalStylesAnalyzer.js.map +1 -1
  29. package/dist/analyzers/universal/functionConcerns.d.ts +9 -4
  30. package/dist/analyzers/universal/functionConcerns.d.ts.map +1 -1
  31. package/dist/analyzers/universal/functionConcerns.js +25 -11
  32. package/dist/analyzers/universal/functionConcerns.js.map +1 -1
  33. package/dist/analyzers/universal/schema/codeAnalysis.js +4 -4
  34. package/dist/analyzers/universal/schema/codeAnalysis.js.map +1 -1
  35. package/dist/analyzers/universal/schema/jsonSchema.js +124 -11
  36. package/dist/analyzers/universal/schema/jsonSchema.js.map +1 -1
  37. package/dist/auditRouter.d.ts.map +1 -1
  38. package/dist/auditRouter.js +4 -6
  39. package/dist/auditRouter.js.map +1 -1
  40. package/dist/auditRunner.js +1 -1
  41. package/dist/auditRunner.js.map +1 -1
  42. package/dist/cli.js +284 -75
  43. package/dist/cli.js.map +1 -1
  44. package/dist/codeIndexDB.d.ts +6 -0
  45. package/dist/codeIndexDB.d.ts.map +1 -1
  46. package/dist/codeIndexDB.js +54 -0
  47. package/dist/codeIndexDB.js.map +1 -1
  48. package/dist/config/configLoader.d.ts.map +1 -1
  49. package/dist/config/configLoader.js +23 -0
  50. package/dist/config/configLoader.js.map +1 -1
  51. package/dist/config/defaults.d.ts +3 -0
  52. package/dist/config/defaults.d.ts.map +1 -1
  53. package/dist/config/defaults.js +30 -8
  54. package/dist/config/defaults.js.map +1 -1
  55. package/dist/conventions/conventionMiner.d.ts +18 -3
  56. package/dist/conventions/conventionMiner.d.ts.map +1 -1
  57. package/dist/conventions/conventionMiner.js +130 -12
  58. package/dist/conventions/conventionMiner.js.map +1 -1
  59. package/dist/daemon/args.d.ts +24 -0
  60. package/dist/daemon/args.d.ts.map +1 -0
  61. package/dist/daemon/args.js +60 -0
  62. package/dist/daemon/args.js.map +1 -0
  63. package/dist/daemon/core.d.ts +128 -0
  64. package/dist/daemon/core.d.ts.map +1 -0
  65. package/dist/daemon/core.js +700 -0
  66. package/dist/daemon/core.js.map +1 -0
  67. package/dist/daemon/lspServer.d.ts +51 -0
  68. package/dist/daemon/lspServer.d.ts.map +1 -0
  69. package/dist/daemon/lspServer.js +168 -0
  70. package/dist/daemon/lspServer.js.map +1 -0
  71. package/dist/daemon/main.d.ts +34 -0
  72. package/dist/daemon/main.d.ts.map +1 -0
  73. package/dist/daemon/main.js +136 -0
  74. package/dist/daemon/main.js.map +1 -0
  75. package/dist/daemon/resolve.d.ts +41 -0
  76. package/dist/daemon/resolve.d.ts.map +1 -0
  77. package/dist/daemon/resolve.js +90 -0
  78. package/dist/daemon/resolve.js.map +1 -0
  79. package/dist/daemon/socketClient.d.ts +21 -0
  80. package/dist/daemon/socketClient.d.ts.map +1 -0
  81. package/dist/daemon/socketClient.js +60 -0
  82. package/dist/daemon/socketClient.js.map +1 -0
  83. package/dist/daemon/socketServer.d.ts +33 -0
  84. package/dist/daemon/socketServer.d.ts.map +1 -0
  85. package/dist/daemon/socketServer.js +106 -0
  86. package/dist/daemon/socketServer.js.map +1 -0
  87. package/dist/daemon/types.d.ts +78 -0
  88. package/dist/daemon/types.d.ts.map +1 -0
  89. package/dist/daemon/types.js +10 -0
  90. package/dist/daemon/types.js.map +1 -0
  91. package/dist/dataPaths.d.ts +21 -0
  92. package/dist/dataPaths.d.ts.map +1 -1
  93. package/dist/dataPaths.js +27 -0
  94. package/dist/dataPaths.js.map +1 -1
  95. package/dist/hooks/core.d.ts.map +1 -1
  96. package/dist/hooks/core.js +21 -4
  97. package/dist/hooks/core.js.map +1 -1
  98. package/dist/languages/RuntimeManager.js +10 -0
  99. package/dist/languages/RuntimeManager.js.map +1 -1
  100. package/dist/languages/go/analyzer +0 -0
  101. package/dist/languages/go/analyzer-src/analyzer.go +166 -35
  102. package/dist/languages/go/analyzer-src/solid.go +80 -172
  103. package/dist/languages/go/analyzer-src/types.go +18 -18
  104. package/dist/ledger.d.ts +1 -1
  105. package/dist/ledger.d.ts.map +1 -1
  106. package/dist/ledger.js +3 -3
  107. package/dist/ledger.js.map +1 -1
  108. package/dist/mcpAuditJobs.js +1 -1
  109. package/dist/mcpAuditJobs.js.map +1 -1
  110. package/dist/nextFileIncremental.d.ts +9 -3
  111. package/dist/nextFileIncremental.d.ts.map +1 -1
  112. package/dist/nextFileIncremental.js +32 -6
  113. package/dist/nextFileIncremental.js.map +1 -1
  114. package/dist/pipeline.d.ts +26 -0
  115. package/dist/pipeline.d.ts.map +1 -1
  116. package/dist/pipeline.js +86 -10
  117. package/dist/pipeline.js.map +1 -1
  118. package/dist/pipelineAdapters.d.ts +1 -1
  119. package/dist/pipelineAdapters.js +1 -1
  120. package/dist/reporting/csvReportGenerator.js +1 -1
  121. package/dist/ruleAliases.d.ts.map +1 -1
  122. package/dist/ruleAliases.js +45 -5
  123. package/dist/ruleAliases.js.map +1 -1
  124. package/dist/types.d.ts +23 -1
  125. package/dist/types.d.ts.map +1 -1
  126. package/dist/types.js.map +1 -1
  127. package/package.json +5 -2
  128. package/plugin/.claude-plugin/plugin.json +1 -1
  129. package/plugin/skills/code-auditor/SKILL.md +6 -6
@@ -5,7 +5,7 @@ description: Audit code quality, search the codebase semantically, enforce invar
5
5
 
6
6
  # Code Auditor Skill
7
7
 
8
- > **Version 3.7.0** • Run `code-audit --version` to check your installed version.
8
+ > **Version 3.8.1** • Run `code-audit --version` to check your installed version.
9
9
  > If versions differ, the CLI is authoritative — use `code-audit <command> --help` to see what your install actually supports.
10
10
 
11
11
  You have the `code-audit` CLI available. It indexes every function, component, and struct in the codebase for semantic search and invariant enforcement. Use these commands instead of raw grep/find whenever possible.
@@ -14,7 +14,7 @@ You have the `code-audit` CLI available. It indexes every function, component, a
14
14
 
15
15
  `code-audit` is a diagnostic instrument, not a judge. Three terms carry that:
16
16
 
17
- - **Reading** — one rule observation (a "finding" in the JSON). The audit *takes* readings; it does not issue verdicts.
17
+ - **Reading** — the human-facing name for one rule observation. The machine contract calls the same thing a **violation** (a "finding" in the JSON). The audit *takes* readings; it does not issue verdicts.
18
18
  - **Coverage panel** — the report leads with what was measured (which rules fired, which were clean, which were not applicable), so a zero-reading run is not mistaken for a clean tree.
19
19
  - **Triage** — severity is the order to act (`critical` → `warning` → `suggestion`), not a truth score. A suggestion reading is as real as a critical one; it is just lower in the queue.
20
20
 
@@ -53,7 +53,7 @@ Use `code-audit changed` after edits to confirm you haven't introduced violation
53
53
 
54
54
  **Every reading is a measurement, not a verdict.** The audit is a diagnostic instrument: it reports what it measured (the coverage panel) and takes one reading per rule violation. Work readings in triage order — critical first, then warning, then suggestion — and resolve them all. Severity is triage, the order to act, never a judgment on whether a reading is real; there is no "noise" tier. Documentation readings (missing JSDoc) are maintainability gaps, not stylistic niceties. If you choose not to resolve one, record why before moving on — never silently dismiss it.
55
55
 
56
- Expected output: JSON violation list (with `--json`) or colored terminal summary. The full `audit` command exits non-zero when violations at or above `--fail-on` severity exist; the `changed` hook blocks on any reading at a blocking severity — `critical` and `warning` by default, configurable via `gateSeverities` in `.codeauditor.json` — from any rule, and enforcement is not diff-scoped (a pre-existing reading in the audited file blocks exactly like a new one).
56
+ Expected output: JSON violation list (with `--json`) or colored terminal summary. The full `audit` command exits non-zero when violations at or above `--fail-on` severity exist; the `changed` hook blocks on any violation at a blocking severity — `critical` and `warning` by default, configurable via `gateSeverities` in `.codeauditor.json` — from any rule, and enforcement is not diff-scoped (a pre-existing violation in the audited file blocks exactly like a new one).
57
57
 
58
58
  ### `code-audit next-file` — fix violations one file at a time
59
59
 
@@ -92,7 +92,7 @@ When an audit produces too many readings in scripts, tests, or fixtures, use **p
92
92
  }
93
93
  ```
94
94
 
95
- Path profiles are an ordered array — files matching multiple profiles merge overrides (later wins). The `excludeFromGate: true` key excludes all readings in matching files from the blocking gate. Readings still report at their real severity — a path profile excludes a file from the gate, it never softens a reading within it.
95
+ Path profiles are an ordered array — files matching multiple profiles merge overrides (later wins). The `excludeFromGate: true` key excludes all violations in matching files from the blocking gate. Readings still report at their real severity — a path profile excludes a file from the gate, it never softens a reading within it.
96
96
 
97
97
  A **built-in** `scripts-and-tests` profile ships with every install — it excludes `scripts/**`, `tests/**`, `__tests__/**`, `fixtures/**`, and `*.test.*`/`*.spec.*` files from the gate. Disable it with `"builtin": false` in `.codeauditor.json`.
98
98
 
@@ -146,7 +146,7 @@ code-audit conventions propose --json # JSON proposal array
146
146
 
147
147
  **Usage:** Run a full audit or `code-audit index sync` to mine conventions from the codebase index. Then `code-audit conventions list` to see what was found, and `code-audit conventions propose` to get the rules. Paste the proposals into the `rules` array in `.codeauditor.json`.
148
148
 
149
- Convention readings ship at `suggestion` severity by default. Severity is triage — how a reading blocks the edit gate, not whether it matters. Resolve suggestions the same way you resolve warnings, and promote them with `severityOverrides` if your team wants them to block edits too.
149
+ Convention readings ship at `suggestion` severity by default. Severity is triage — how a violation blocks the edit gate, not whether it matters. Resolve suggestions the same way you resolve warnings, and promote them with `severityOverrides` if your team wants them to block edits too.
150
150
 
151
151
  ### `code-audit hotspots` — identify churn-prone code
152
152
 
@@ -188,7 +188,7 @@ When an edit hook blocks your edit with a violation message:
188
188
  1. **Read the violation** — it includes the invariant rule's `message` field explaining *why* the edit was blocked
189
189
  2. **Fix the violation** — change your approach to comply with the invariant
190
190
  3. **Do NOT retry the same edit** — the hook will block it again
191
- 4. The hook runs `code-audit changed`, and its gate is severity-scoped: any reading at a blocking severity (`critical` and `warning` by default, configurable via `gateSeverities` in `.codeauditor.json`) blocks the edit, from any rule. Suggestions are still readings and must be resolved — they report but do not block by default.
191
+ 4. The hook runs `code-audit changed`, and its gate is severity-scoped: any violation at a blocking severity (`critical` and `warning` by default, configurable via `gateSeverities` in `.codeauditor.json`) blocks the edit, from any rule. Suggestions are still violations and must be resolved — they report but do not block by default.
192
192
 
193
193
  The hook auto-installs the package via npx on first use — no manual npm step needed. If the hook reports `[code-auditor] code-audit could not run`, the npx auto-install failed (network, unsupported platform). The agent should try again; if it persists, `npm install code-auditor-mcp` is the manual fix.
194
194