@remylagerweij/vue-doctor 2.0.4 → 2.0.5

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/cli.js CHANGED
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
- import { a as logger, c as getToolVersions, d as loadConfig, i as configureLogger, l as mapWithConcurrency, n as diagnose, o as output, r as createKnipSession, s as highlighter, t as NoVueDependencyError, u as createPrivateTempDirectory } from "./diagnose-C4vCT7pO.js";
2
+ import { a as logger, c as getToolVersions, d as loadConfig, i as configureLogger, l as mapWithConcurrency, n as diagnose, o as output, r as createKnipSession, s as highlighter, t as NoVueDependencyError, u as createPrivateTempDirectory } from "./diagnose-biaBtwUG.js";
3
3
  import { _ as getCanonicalRuleId, d as PLUGIN_NAME, f as RULE_REGISTRY, i as createBaseline, l as ruleIdOf, n as DEFAULT_BASELINE_FILENAME, o as writeBaseline, y as getRuleMeta } from "./baseline-B4hYcahD.js";
4
4
  import { n as isMonorepoRoot } from "./find-monorepo-root-VE6uVqvK.js";
5
- import { c as listWorkspacePackages, f as MILLISECONDS_PER_SECOND, g as VERSION$1, i as getRootPackage, n as discoverVueSubprojects, r as formatFrameworkName, t as discoverProject } from "./discover-project-JCgCRT9u.js";
6
- import { a as filterSourceFiles, c as EXIT_CODES, d as evaluateGate, l as FAIL_ON_VALUES, n as registerExplainCommand, o as getDiffInfo, r as registerRulesCommand, s as docsUrl, u as GATE_SCOPE_VALUES } from "./rules-_h5qMfCs.js";
5
+ import { c as listWorkspacePackages, f as MILLISECONDS_PER_SECOND, g as VERSION$1, i as getRootPackage, n as discoverVueSubprojects, r as formatFrameworkName, t as discoverProject } from "./discover-project-S3SOCaDn.js";
6
+ import { a as filterSourceFiles, c as EXIT_CODES, d as evaluateGate, l as FAIL_ON_VALUES, n as registerExplainCommand, o as getDiffInfo, r as registerRulesCommand, s as docsUrl, u as GATE_SCOPE_VALUES } from "./rules-6U2JpkxF.js";
7
7
  import { n as REPORT_SCHEMA_URL, t as REPORT_FORMAT } from "./constants-Cav5tPU4.js";
8
8
  import fs from "node:fs";
9
9
  import path from "node:path";
@@ -1814,8 +1814,8 @@ const createBatchProgressReporter = async (options) => {
1814
1814
  // src/scan.ts
1815
1815
  const printProjectDetection = (projectInfo, isDiffMode, includePaths) => {
1816
1816
  const lines = [];
1817
- const title = `${pc.bold(pc.green("Vue Doctor"))} ${pc.dim("v2.0.4")}`;
1818
- lines.push(createFramedLine(`Vue Doctor v2.0.4`, title));
1817
+ const title = `${pc.bold(pc.green("Vue Doctor"))} ${pc.dim("v2.0.5")}`;
1818
+ lines.push(createFramedLine(`Vue Doctor v2.0.5`, title));
1819
1819
  const vueVersionDisplay = projectInfo.vueVersion ? `Vue ${projectInfo.vueVersion}` : "Vue";
1820
1820
  const frameworkDisplay = formatFrameworkName(projectInfo.framework);
1821
1821
  const projectLine = `${projectInfo.projectName} · ${frameworkDisplay} · ${vueVersionDisplay}`;
@@ -2956,7 +2956,7 @@ const registerInitCommand = (program) => {
2956
2956
  const projectDir = path.resolve(directoryArg);
2957
2957
  const isInteractive = Boolean(process.stdin.isTTY) && !options.yes;
2958
2958
  const clack = isInteractive ? await import("@clack/prompts") : null;
2959
- const { discoverProject, formatFrameworkName } = await import("./discover-project-D_BLbCCW.js");
2959
+ const { discoverProject, formatFrameworkName } = await import("./discover-project-DEModAws.js");
2960
2960
  const { isMonorepoRoot } = await import("./find-monorepo-root-Cqb6bdkf.js");
2961
2961
  const projectInfo = discoverProject(projectDir);
2962
2962
  if (isInteractive && clack) {
@@ -3143,7 +3143,7 @@ const registerInitCommand = (program) => {
3143
3143
  if (spinner) spinner.start("Scanning project to record baseline snapshot...");
3144
3144
  else logger.log("Scanning project to record baseline snapshot...");
3145
3145
  try {
3146
- const { diagnose } = await import("./diagnose-DzDOUndE.js");
3146
+ const { diagnose } = await import("./diagnose-DQyKUxsN.js");
3147
3147
  const { createBaseline, writeBaseline } = await import("./baseline-t03hOZec.js");
3148
3148
  const baselineData = createBaseline((await diagnose(projectDir, { baseline: null })).diagnostics);
3149
3149
  writeBaseline(path.join(projectDir, baselineFileName), baselineData);
@@ -3162,12 +3162,12 @@ const registerInitCommand = (program) => {
3162
3162
  // src/commands/mcp.ts
3163
3163
  const registerMcpCommand = (program) => {
3164
3164
  program.command("mcp").description("Start Model Context Protocol (MCP) server over stdio for AI agents").action(async () => {
3165
- const { McpServer } = await import("./server-CPJOEUHq.js");
3165
+ const { McpServer } = await import("./server-hxEaWFps.js");
3166
3166
  new McpServer().startStdio();
3167
3167
  });
3168
3168
  };
3169
3169
  // src/program.ts
3170
- const VERSION = "2.0.4";
3170
+ const VERSION = "2.0.5";
3171
3171
  const parseScore = (value) => {
3172
3172
  const score = Number(value);
3173
3173
  if (!Number.isInteger(score) || score < 0 || score > 100) throw new InvalidArgumentError("Expected an integer between 0 and 100.");
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export { n as diagnose } from "./diagnose-biaBtwUG.js";
@@ -2,7 +2,7 @@
2
2
  import { S as CUSTOM_TEMPLATE_RULES, a as readBaseline, b as toDiagnosticRule, c as resolveRuleKey, d as PLUGIN_NAME, g as createTemplateRuleConfig, h as createOxlintConfig, l as ruleIdOf, m as createCustomTemplateRuleConfig, r as applyBaseline, s as createRuleIdReporter, u as AUDIT_RULES, v as getEnabledFsRules, x as CUSTOM_TEMPLATE_PLUGIN_NAME, y as getRuleMeta } from "./baseline-B4hYcahD.js";
3
3
  import { i as normalizeRelativePath, n as isInsideAnyDirectory, r as listProjectSourceFiles, t as LINTABLE_FILE_PATTERN } from "./list-source-files-Uf11_Lde.js";
4
4
  import { n as isMonorepoRoot, r as readPackageJson, t as findMonorepoRoot } from "./find-monorepo-root-VE6uVqvK.js";
5
- import { _ as VUE_FILE_PATTERN, c as listWorkspacePackages, d as ERROR_RULE_PENALTY, o as listNestedWorkspaceDirectories, p as OXLINT_NODE_REQUIREMENT, s as listWorkspaceDirectories, t as discoverProject, v as WARNING_RULE_PENALTY } from "./discover-project-JCgCRT9u.js";
5
+ import { _ as VUE_FILE_PATTERN, c as listWorkspacePackages, d as ERROR_RULE_PENALTY, o as listNestedWorkspaceDirectories, p as OXLINT_NODE_REQUIREMENT, s as listWorkspaceDirectories, t as discoverProject, v as WARNING_RULE_PENALTY } from "./discover-project-S3SOCaDn.js";
6
6
  import { createRequire } from "node:module";
7
7
  import fs from "node:fs";
8
8
  import path from "node:path";
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- export { t as discoverProject, r as formatFrameworkName } from "./discover-project-JCgCRT9u.js";
2
+ export { t as discoverProject, r as formatFrameworkName } from "./discover-project-S3SOCaDn.js";
@@ -13,7 +13,7 @@ const SPAWN_ARGS_MAX_LENGTH_CHARS = 24e3;
13
13
  const DEFAULT_BRANCH_CANDIDATES = ["main", "master"];
14
14
  const ERROR_RULE_PENALTY = 1.5;
15
15
  const WARNING_RULE_PENALTY = .75;
16
- const VERSION = "2.0.4";
16
+ const VERSION = "2.0.5";
17
17
  const OXLINT_NODE_REQUIREMENT = "^22.12.0 || >=24.0.0";
18
18
  // src/utils/discover-project.ts
19
19
  const NUXT_CONFIG_FILENAMES = [
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
- import { a as logger } from "./diagnose-C4vCT7pO.js";
2
+ import { a as logger } from "./diagnose-biaBtwUG.js";
3
3
  import { _ as getCanonicalRuleId, f as RULE_REGISTRY, p as categorySlug } from "./baseline-B4hYcahD.js";
4
- import { l as DEFAULT_BRANCH_CANDIDATES, m as SOURCE_FILE_PATTERN, u as DOCS_BASE_URL } from "./discover-project-JCgCRT9u.js";
4
+ import { l as DEFAULT_BRANCH_CANDIDATES, m as SOURCE_FILE_PATTERN, u as DOCS_BASE_URL } from "./discover-project-S3SOCaDn.js";
5
5
  import fs from "node:fs";
6
6
  import path from "node:path";
7
7
  import { spawnSync } from "node:child_process";
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
- import { n as diagnose } from "./diagnose-C4vCT7pO.js";
2
+ import { n as diagnose } from "./diagnose-biaBtwUG.js";
3
3
  import { _ as getCanonicalRuleId, f as RULE_REGISTRY } from "./baseline-B4hYcahD.js";
4
- import { g as VERSION } from "./discover-project-JCgCRT9u.js";
5
- import { a as filterSourceFiles, i as toRuleInfo, o as getDiffInfo, t as findRuleMeta } from "./rules-_h5qMfCs.js";
4
+ import { g as VERSION } from "./discover-project-S3SOCaDn.js";
5
+ import { a as filterSourceFiles, i as toRuleInfo, o as getDiffInfo, t as findRuleMeta } from "./rules-6U2JpkxF.js";
6
6
  import path from "node:path";
7
7
  import readline from "node:readline";
8
8
  // src/mcp/server.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remylagerweij/vue-doctor",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "description": "Production-grade diagnostics, performance optimization, security auditing, and dead-code detection for Vue.js and Nuxt applications. Features automated codemods, CI quality gates, and AI agent integration (MCP).",
5
5
  "keywords": [
6
6
  "vue",
@@ -99,9 +99,9 @@
99
99
  "@clack/prompts": "^1.8.1",
100
100
  "commander": "^15.0.0",
101
101
  "eslint": "^10.13.0",
102
- "eslint-plugin-vue": "^10.11.1",
102
+ "eslint-plugin-vue": "^10.12.0",
103
103
  "jiti": "^2.7.0",
104
- "knip": "^6.43.0",
104
+ "knip": "^6.44.0",
105
105
  "oxlint": "1.86.0",
106
106
  "picocolors": "^1.1.1",
107
107
  "vue-eslint-parser": "^10.4.1",
@@ -112,7 +112,7 @@
112
112
  "ajv": "^8.20.0",
113
113
  "ajv-formats": "^3.0.1",
114
114
  "happy-dom": "^21.0.4",
115
- "tsdown": "^0.23.1",
115
+ "tsdown": "^0.23.4",
116
116
  "typescript": "^7.0.2"
117
117
  },
118
118
  "main": "./dist/index.js",
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- export { n as diagnose } from "./diagnose-C4vCT7pO.js";