vite-doctor 0.1.1 → 0.1.3

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 (95) hide show
  1. package/README.md +11 -1
  2. package/dist/{cli-BH4b9rUn.mjs → cli-DHCqRLW8.mjs} +1 -1
  3. package/dist/{cli-main-Qke7WWOU.mjs → cli-main-D548lrxU.mjs} +8 -8
  4. package/dist/cli.mjs +1 -1
  5. package/dist/{config-wMPOujpB.d.mts → config-Vi7rSzhn.d.mts} +8 -1
  6. package/dist/config.d.mts +1 -1
  7. package/dist/{core-BaWz6Sqw.mjs → core-CdfH68hP.mjs} +102 -22
  8. package/dist/{doctor-DZp2Nx91.mjs → doctor-Br1X-NQS.mjs} +1 -1
  9. package/dist/{doctor-BZ1dduKq.mjs → doctor-DEtT5cFm.mjs} +14 -9
  10. package/dist/doctor-process.mjs +1 -1
  11. package/dist/{extension-DlygaoWY.d.mts → extension-BWauKIzu.d.mts} +1 -1
  12. package/dist/extension.d.mts +2 -2
  13. package/dist/extension.mjs +1 -1
  14. package/dist/{index-C7xDcvOY.d.mts → index-B8J7duVA.d.mts} +1 -1
  15. package/dist/index-C-XOuvIV.d.mts +2 -0
  16. package/dist/{index-BcOraqZ_.d.mts → index-DeK4RjIq.d.mts} +6 -3
  17. package/dist/index-qQ8zNbW1.d.mts +1 -0
  18. package/dist/{index-BTmWIb6U.d.mts → index-vyjK90RR.d.mts} +1 -1
  19. package/dist/index.d.mts +2 -2
  20. package/dist/index.mjs +1 -1
  21. package/dist/mcp-CuwJbunP.mjs +618 -0
  22. package/dist/{migration-BKAZDynf.mjs → migration-CF6Ab3mC.mjs} +2 -2
  23. package/dist/{module-CdkPnJ0X.d.mts → module-BYcUuLDi.d.mts} +7 -3
  24. package/dist/{module-CoWauFE9.mjs → module-Dkz3TqoG.mjs} +25 -4
  25. package/dist/nitro-DiXZ9rR0.mjs +2 -0
  26. package/dist/{no-route-middleware-api-security-EjckFmwh.mjs → no-route-middleware-api-security-CH8Ft6kA.mjs} +43 -6
  27. package/dist/nuxt-cli.mjs +1 -1
  28. package/dist/nuxt.d.mts +1 -1
  29. package/dist/nuxt.mjs +1 -1
  30. package/dist/{package-BeniS7ot.mjs → package-Cfe_95KJ.mjs} +2 -2
  31. package/dist/{pinia-CFZn5ipu.mjs → pinia-BfGFGwnD.mjs} +7 -7
  32. package/dist/plugin-GXLzDLKo.mjs +383 -0
  33. package/dist/{plugin-_V-dd4-g.d.mts → plugin-NkM7-RMx.d.mts} +3 -3
  34. package/dist/plugin-run-C0ImfZuA.mjs +2 -0
  35. package/dist/plugin-run-CJQX3Fx6.mjs +55 -0
  36. package/dist/plugin-worker.mjs +1 -1
  37. package/dist/plugin.d.mts +1 -1
  38. package/dist/plugin.mjs +1 -1
  39. package/dist/{primitives-QDMBsnjd.mjs → primitives-BEgIVHZe.mjs} +1 -0
  40. package/dist/{primitives-CxYw0KOu.d.mts → primitives-nC-P1qet.d.mts} +22 -1
  41. package/dist/{rule-authoring-B-rhkSVN.mjs → rule-authoring-Cw1uII0Z.mjs} +1 -1
  42. package/dist/rule-packs/mcp/index.d.mts +26 -0
  43. package/dist/rule-packs/mcp/index.mjs +2 -0
  44. package/dist/rule-packs/nitro/index.d.mts +3 -3
  45. package/dist/rule-packs/nitro/index.mjs +3 -3
  46. package/dist/rule-packs/nitro/rules.d.mts +2 -2
  47. package/dist/rule-packs/nitro/rules.mjs +2 -2
  48. package/dist/rule-packs/nuxt/index.d.mts +2 -2
  49. package/dist/rule-packs/nuxt/index.mjs +9 -8
  50. package/dist/rule-packs/nuxt/module.d.mts +2 -2
  51. package/dist/rule-packs/nuxt/module.mjs +1 -1
  52. package/dist/rule-packs/nuxt/rules/index.d.mts +5 -5
  53. package/dist/rule-packs/nuxt/rules/index.mjs +3997 -1393
  54. package/dist/rule-packs/package/index.d.mts +1 -1
  55. package/dist/rule-packs/package/index.mjs +1 -1
  56. package/dist/rule-packs/pinia/index.d.mts +2 -2
  57. package/dist/rule-packs/pinia/index.mjs +1 -1
  58. package/dist/rule-packs/shadcn/index.d.mts +2 -2
  59. package/dist/rule-packs/shadcn/index.mjs +1 -1
  60. package/dist/rule-packs/typescript/index.d.mts +1 -1
  61. package/dist/rule-packs/typescript/index.mjs +2 -2
  62. package/dist/rule-packs/typescript/rules/index.d.mts +1 -1
  63. package/dist/rule-packs/typescript/rules/index.mjs +1 -1
  64. package/dist/rule-packs/vite/index.d.mts +1 -1
  65. package/dist/rule-packs/vite/index.mjs +1 -1
  66. package/dist/rule-packs/vite/rules/index.d.mts +1 -1
  67. package/dist/rule-packs/vite/rules/index.mjs +1 -1
  68. package/dist/rule-packs/vue/index.d.mts +2 -2
  69. package/dist/rule-packs/vue/index.mjs +2 -2
  70. package/dist/rule-packs/vue/rules.d.mts +2 -2
  71. package/dist/rule-packs/vue/rules.mjs +2 -2
  72. package/dist/{rules-rM2Zb1Jk.d.mts → rules-BPZABrEs.d.mts} +8 -4
  73. package/dist/{rules-D2b-8SNT.mjs → rules-CBhYLzeQ.mjs} +120 -135
  74. package/dist/rules-CINO9n9M.mjs +2 -0
  75. package/dist/{rules-BXDsc_vj.mjs → rules-Dclea99L.mjs} +90 -54
  76. package/dist/{rules-Ck0qw9Y-.mjs → rules-Dqeder5U.mjs} +21 -66
  77. package/dist/{rules-pThBWNKu.mjs → rules-EPw4WBYU.mjs} +2 -2
  78. package/dist/rules.d.mts +1 -1
  79. package/dist/rules.mjs +2 -2
  80. package/dist/{runtime-graph-gvjT33RA.mjs → runtime-graph-DB9xVYJ4.mjs} +46 -1
  81. package/dist/script-scope-DBfydrqH.mjs +136 -0
  82. package/dist/{server-DWVLUuR_.mjs → server-C5mKfTDp.mjs} +1 -1
  83. package/dist/{shadcn-DakNoxOB.mjs → shadcn-DTiSVE9a.mjs} +2 -2
  84. package/dist/testkit.d.mts +3 -3
  85. package/dist/testkit.mjs +2 -2
  86. package/dist/typescript-Cng3iVQn.mjs +2 -0
  87. package/package.json +2 -1
  88. package/dist/index-cepLKshI.d.mts +0 -1
  89. package/dist/index-sXIP3SGR.d.mts +0 -2
  90. package/dist/nitro-DUeTKgju.mjs +0 -2
  91. package/dist/plugin-DpSQG2E-.mjs +0 -185
  92. package/dist/plugin-run-DizgqQx9.mjs +0 -33
  93. package/dist/plugin-run-Q3bXHe8_.mjs +0 -2
  94. package/dist/rules-NPAaR11O.mjs +0 -2
  95. package/dist/typescript-hosXLQAc.mjs +0 -2
package/README.md CHANGED
@@ -11,9 +11,14 @@
11
11
  </p>
12
12
 
13
13
  <p align="center">
14
- <a href="https://vite-doctor.onmax.me">Docs</a>
14
+ <a href="https://vite-doctor.onmax.me">Docs</a> · <a href="https://comark-ui.onmax.me/lint/vite-doctor/">Comark UI extension</a>
15
15
  </p>
16
16
 
17
+ [![npm version](https://comark-ui.onmax.me/badge.svg?source=npm-version&package=vite-doctor&icon=npm)](https://www.npmjs.com/package/vite-doctor)
18
+ [![npm downloads](https://comark-ui.onmax.me/badge.svg?source=npm-downloads&package=vite-doctor&period=month&icon=npm)](https://www.npmjs.com/package/vite-doctor)
19
+ [![license](https://comark-ui.onmax.me/badge.svg?label=license&value=MIT)](https://github.com/onmax/vite-doctor/blob/main/LICENSE)
20
+ [![docs](https://comark-ui.onmax.me/badge.svg?label=docs&value=vite-doctor.onmax.me)](https://vite-doctor.onmax.me)
21
+
17
22
  ## Usage
18
23
 
19
24
  Run Vite Doctor from the project root:
@@ -181,6 +186,11 @@ unique within a Doctor Run. Shared final slash-delimited segments require full n
181
186
  Config Extends; registering duplicate full names fails with the internal `DOC0023`
182
187
  authoring diagnostic.
183
188
 
189
+ [`comark-linter`](https://comark-ui.onmax.me/lint/vite-doctor/) is a published Doctor
190
+ Extension: it checks [Comark](https://comark.dev) Markdown documents and the plugins from
191
+ [Comark UI](https://comark-ui.onmax.me). Register `comark()` from `comark-linter/doctor` in
192
+ `doctor.config.ts`, add `comark/recommended` to `extends`, and run with `--config`.
193
+
184
194
  ## Development
185
195
 
186
196
  ```bash
@@ -9,7 +9,7 @@ async function main(args = process.argv.slice(2), cwd = process.cwd(), surface =
9
9
  process.stdout.write(`${viteDoctorVersion}\n`);
10
10
  return 0;
11
11
  }
12
- return (await import("./cli-main-Qke7WWOU.mjs")).main(args, cwd, surface);
12
+ return (await import("./cli-main-D548lrxU.mjs")).main(args, cwd, surface);
13
13
  }
14
14
  /** The `vite-doctor` binary: a Doctor Run goes through the long-lived Doctor process when opted in. */
15
15
  async function runCli(args = process.argv.slice(2), cwd = process.cwd()) {
@@ -1,4 +1,4 @@
1
- import { a as reportStatus, i as explainRule, n as createReport, r as createRulesReport } from "./core-BaWz6Sqw.mjs";
1
+ import { a as explainRule, n as createReport, r as createRulesReport, s as reportStatus } from "./core-CdfH68hP.mjs";
2
2
  import { t as viteDoctorVersion } from "./version-Qod0rU4x.mjs";
3
3
  import { n as loadDoctorConfig } from "./config-CaJ0DqB3.mjs";
4
4
  import { n as DOCTOR_PROCESS_ENV } from "./protocol-CcLGBETF.mjs";
@@ -135,7 +135,7 @@ async function main(args = process.argv.slice(2), cwd = process.cwd(), surface =
135
135
  exitCode = 2;
136
136
  return;
137
137
  }
138
- const { createMigrationReport, formatMigrationReport } = await import("./migration-BKAZDynf.mjs");
138
+ const { createMigrationReport, formatMigrationReport } = await import("./migration-CF6Ab3mC.mjs");
139
139
  const report = await createMigrationReport(root, options.to ? [options.to] : []);
140
140
  process.stdout.write(formatMigrationReport(report, format));
141
141
  exitCode = report.summary.errors > 0 ? 1 : 0;
@@ -150,7 +150,7 @@ async function main(args = process.argv.slice(2), cwd = process.cwd(), surface =
150
150
  applyHostExtensions(runOptions, surface, options);
151
151
  validateCliRunOptions(runOptions);
152
152
  runOptions.config = await loadCliConfig(cwd, stringFlag(options.config));
153
- const { viteDoctorRulePacks } = await import("./doctor-DZp2Nx91.mjs");
153
+ const { viteDoctorRulePacks } = await import("./doctor-Br1X-NQS.mjs");
154
154
  process.stdout.write(createRulesReport(await viteDoctorRulePacks(runOptions), format));
155
155
  });
156
156
  cli.command("explain <diagnostic>", "Explain a Doctor Diagnostic Code or Rule.").option("--config <path>", "Explicitly load an executable Doctor config.").option("--host-extensions", hostExtensionsHelp).option("--format <format>", "Output: text, json, or agent.").option("--framework <framework>", "Framework override.").action(async (diagnostic, options) => {
@@ -163,7 +163,7 @@ async function main(args = process.argv.slice(2), cwd = process.cwd(), surface =
163
163
  applyHostExtensions(runOptions, surface, options);
164
164
  validateCliRunOptions(runOptions);
165
165
  runOptions.config = await loadCliConfig(cwd, stringFlag(options.config));
166
- const { viteDoctorRulePacks } = await import("./doctor-DZp2Nx91.mjs");
166
+ const { viteDoctorRulePacks } = await import("./doctor-Br1X-NQS.mjs");
167
167
  const report = explainRule(await viteDoctorRulePacks(runOptions), diagnostic, format);
168
168
  if (!report) {
169
169
  await writeCliError(`Unknown Diagnostic Code or Rule: ${diagnostic}`, format);
@@ -178,7 +178,7 @@ async function main(args = process.argv.slice(2), cwd = process.cwd(), surface =
178
178
  const runOptions = { root: cwd };
179
179
  applyDoctorOptions(runOptions, options);
180
180
  validateCliRunOptions(runOptions);
181
- const { viteDoctorCacheStatus } = await import("./doctor-DZp2Nx91.mjs");
181
+ const { viteDoctorCacheStatus } = await import("./doctor-Br1X-NQS.mjs");
182
182
  const status = await viteDoctorCacheStatus(cwd, await loadCliConfig(cwd, stringFlag(options.config)), runOptions.framework === "auto" ? void 0 : runOptions.framework);
183
183
  process.stdout.write(formatCacheStatus(status, format));
184
184
  return;
@@ -187,7 +187,7 @@ async function main(args = process.argv.slice(2), cwd = process.cwd(), surface =
187
187
  const runOptions = { root: cwd };
188
188
  applyDoctorOptions(runOptions, options);
189
189
  validateCliRunOptions(runOptions);
190
- const { cleanViteDoctorCache } = await import("./doctor-DZp2Nx91.mjs");
190
+ const { cleanViteDoctorCache } = await import("./doctor-Br1X-NQS.mjs");
191
191
  await cleanViteDoctorCache(cwd, await loadCliConfig(cwd, stringFlag(options.config)), runOptions.framework === "auto" ? void 0 : runOptions.framework);
192
192
  consola.log("Doctor cache cleaned");
193
193
  return;
@@ -316,7 +316,7 @@ function addDoctorRunCommand(cli, args, cwd, surface, setExitCode) {
316
316
  }
317
317
  async function watchDoctorCommand(args, cwd, surface, root, options) {
318
318
  if (options.fix || options.unsafeFix || options.updateBaseline) throw new Error("--watch cannot be combined with --fix, --unsafe-fix, or --update-baseline.");
319
- const [{ watchDoctorRuns }, { viteDoctorCacheStatus }] = await Promise.all([import("./watch-DMUy9-YX.mjs"), import("./doctor-DZp2Nx91.mjs")]);
319
+ const [{ watchDoctorRuns }, { viteDoctorCacheStatus }] = await Promise.all([import("./watch-DMUy9-YX.mjs"), import("./doctor-Br1X-NQS.mjs")]);
320
320
  const cache = await viteDoctorCacheStatus(root, options.config, options.framework === "auto" ? void 0 : options.framework);
321
321
  const runArgs = args.filter((arg) => arg !== "--watch");
322
322
  const controller = new AbortController();
@@ -337,7 +337,7 @@ async function watchDoctorCommand(args, cwd, surface, root, options) {
337
337
  }
338
338
  }
339
339
  async function runDoctorCommand(options, format, configFile) {
340
- const { runViteDoctor, shouldFailDoctorRun } = await import("./doctor-DZp2Nx91.mjs");
340
+ const { runViteDoctor, shouldFailDoctorRun } = await import("./doctor-Br1X-NQS.mjs");
341
341
  const result = await runViteDoctor(options);
342
342
  process.stdout.write(createReport(result, format, {
343
343
  runOptions: options,
package/dist/cli.mjs CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
- import { t as main } from "./cli-BH4b9rUn.mjs";
2
+ import { t as main } from "./cli-DHCqRLW8.mjs";
3
3
  export { main };
@@ -1,4 +1,4 @@
1
- import { c as DoctorReportFormat, d as DoctorSerializableConfig, i as DoctorExtensionInput, m as ProjectInfo, o as DoctorFramework, w as RuntimeTarget } from "./primitives-CxYw0KOu.mjs";
1
+ import { c as DoctorReportFormat, d as DoctorSerializableConfig, i as DoctorExtensionInput, m as ProjectInfo, o as DoctorFramework, w as RuntimeTarget } from "./primitives-nC-P1qet.mjs";
2
2
  //#region src/core/config.d.ts
3
3
  interface DoctorConfig extends DoctorSerializableConfig {
4
4
  extensions?: DoctorExtensionInput[];
@@ -11,6 +11,13 @@ interface DoctorRunOptions {
11
11
  extends?: "auto" | string[];
12
12
  changed?: boolean;
13
13
  since?: string;
14
+ /**
15
+ * Files whose Diagnostics this run reports, absolute or relative to `root`. Like `changed`, the
16
+ * run analyzes the whole project so cross-file Rules keep their context, but it reports only
17
+ * Diagnostics located in these files. Plugin Surfaces pass the files a dev server saw change.
18
+ * Combined with `changed` or `since`, the report narrows to changed lines in these files.
19
+ */
20
+ affectedFiles?: string[];
14
21
  format?: DoctorReportFormat;
15
22
  baseline?: string;
16
23
  updateBaseline?: boolean;
package/dist/config.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as loadDoctorConfig, i as defineDoctorConfig, n as DoctorRunOptions, r as LoadDoctorConfigOptions, t as DoctorConfig } from "./config-wMPOujpB.mjs";
1
+ import { a as loadDoctorConfig, i as defineDoctorConfig, n as DoctorRunOptions, r as LoadDoctorConfigOptions, t as DoctorConfig } from "./config-Vi7rSzhn.mjs";
2
2
  export { type DoctorConfig, type DoctorRunOptions, type LoadDoctorConfigOptions, defineDoctorConfig, loadDoctorConfig };
@@ -1,5 +1,5 @@
1
- import { c as resolveRuntimeGraph, d as parseScriptSync, i as isNuxtManifestCurrent, l as parseScript, o as readNuxtConfigSsr, s as resolveNuxtCompatibility, t as applyRuntimeTarget, u as parseScriptResult } from "./runtime-graph-gvjT33RA.mjs";
2
- import { a as codeForRuleId, c as diagnosticForCode, i as defineRulePack, l as doctorDiagnosticsHost, o as defineDoctorDiagnostics, u as DOCTOR_DIAGNOSTICS_DOCS_BASE } from "./primitives-QDMBsnjd.mjs";
1
+ import { c as resolveNuxtCompatibility, d as parseScriptResult, f as parseScriptSync, i as isNuxtManifestCurrent, l as resolveRuntimeGraph, o as readNuxtConfigGranularCachedData, s as readNuxtConfigSsr, t as applyRuntimeTarget, u as parseScript } from "./runtime-graph-DB9xVYJ4.mjs";
2
+ import { a as codeForRuleId, c as diagnosticForCode, i as defineRulePack, l as doctorDiagnosticsHost, o as defineDoctorDiagnostics, u as DOCTOR_DIAGNOSTICS_DOCS_BASE } from "./primitives-BEgIVHZe.mjs";
3
3
  import { t as doctorInternalDiagnostics } from "./internal-diagnostic-handles-R_2cBQaP.mjs";
4
4
  import { t as RuleInputs } from "./rule-inputs-GzH5Uyjz.mjs";
5
5
  import { c as nativeMatch$1, d as shellArgument, i as readCacheStatus, l as nodeOffsets, n as cleanCacheDirectory, o as DEFAULT_WEIGHTS, s as VERSION, t as DoctorCache, u as sha256$1 } from "./cache-store-9oluC2IE.mjs";
@@ -1143,10 +1143,8 @@ function expandBraces(pattern) {
1143
1143
  //#endregion
1144
1144
  //#region src/core/internal/lazy-parsers.ts
1145
1145
  const require = createRequire(import.meta.url);
1146
- let typescriptESLintParser;
1147
1146
  let typescript;
1148
1147
  let vueCompilerSfc;
1149
- const parseForESLint = (code, options) => (typescriptESLintParser ??= require("@typescript-eslint/parser")).parseForESLint(code, options);
1150
1148
  function loadTypeScript() {
1151
1149
  return typescript ??= require("typescript");
1152
1150
  }
@@ -1395,6 +1393,11 @@ async function detectNuxt(root, version, deps, { manifest, manifestPath, manifes
1395
1393
  priority: 0
1396
1394
  }],
1397
1395
  localLayerAliases: manifest?.localLayerAliases,
1396
+ productionBuildCache: manifestCurrent ? manifest?.productionBuildCache : void 0,
1397
+ granularCachedData: manifestCurrent && typeof manifest?.granularCachedData === "boolean" ? {
1398
+ enabled: manifest.granularCachedData,
1399
+ source: "manifest"
1400
+ } : readNuxtConfigGranularCachedData(root, configs),
1398
1401
  routeRules: manifest?.routeRules ?? readRouteRules(config.primary),
1399
1402
  ssr: (manifestCurrent ? manifest?.ssr : void 0) ?? readNuxtConfigSsr(root, configs),
1400
1403
  runtimeConfig: manifest?.runtimeConfig,
@@ -2016,6 +2019,27 @@ var GitChangeUnavailableError = class extends Error {
2016
2019
  }
2017
2020
  };
2018
2021
  async function selectSourceInventory(root, config, options, project, memo) {
2022
+ const affected = options.affectedFiles ? new Set(options.affectedFiles.map((file) => resolve(root, file))) : void 0;
2023
+ const selection = await selectGitOrAllFiles(root, config, options, project, memo);
2024
+ if (!affected || selection.git?.status === "unavailable") return selection;
2025
+ return {
2026
+ ...selection,
2027
+ files: selection.files.map((file) => {
2028
+ if (!affected.has(file.path)) return omitEligibility(file);
2029
+ if (selection.git) return file;
2030
+ return {
2031
+ ...file,
2032
+ reportEligibility: { kind: "file" }
2033
+ };
2034
+ })
2035
+ };
2036
+ }
2037
+ function omitEligibility(file) {
2038
+ if (!file.reportEligibility) return file;
2039
+ const { reportEligibility: _, ...rest } = file;
2040
+ return rest;
2041
+ }
2042
+ async function selectGitOrAllFiles(root, config, options, project, memo) {
2019
2043
  if (options.changed || options.since) {
2020
2044
  const include = config.include ?? defaultIncludeForProject(project);
2021
2045
  const exclude = [...DEFAULT_EXCLUDE, ...config.exclude ?? []];
@@ -2738,6 +2762,7 @@ async function createScanSession(options) {
2738
2762
  project,
2739
2763
  files,
2740
2764
  gitChanges: sourceInventory.git,
2765
+ scopedReport: Boolean(sourceInventory.git || options.affectedFiles),
2741
2766
  handles: [],
2742
2767
  handlesByPath,
2743
2768
  sourceTexts: /* @__PURE__ */ new Map(),
@@ -2780,10 +2805,10 @@ async function runPhase(session, name, run) {
2780
2805
  }
2781
2806
  function persistScanCache(session) {
2782
2807
  const { options } = session;
2783
- const subset = Boolean(options.rules) || Boolean(options.analyses) || Boolean(session.gitChanges);
2808
+ const subset = Boolean(options.rules) || Boolean(options.analyses) || session.scopedReport;
2784
2809
  session.cache.persist({
2785
2810
  files: session.files.length,
2786
- activeRuleKeys: subset ? new Set(session.gitChanges || options.analyses && !options.rules ? [] : session.ruleKeys.values()) : void 0
2811
+ activeRuleKeys: subset ? new Set(session.scopedReport || options.analyses && !options.rules ? [] : session.ruleKeys.values()) : void 0
2787
2812
  });
2788
2813
  }
2789
2814
  function cacheDirectory(root, config) {
@@ -3472,6 +3497,18 @@ const allDoctorDiagnosticRegistry = defineDoctorDiagnostics([
3472
3497
  code: "PKG0003",
3473
3498
  ruleId: "package/no-required-optional-peer"
3474
3499
  },
3500
+ {
3501
+ code: "MCP0001",
3502
+ ruleId: "mcp/tools/require-annotation-title"
3503
+ },
3504
+ {
3505
+ code: "MCP0002",
3506
+ ruleId: "mcp/tools/require-safety-hint"
3507
+ },
3508
+ {
3509
+ code: "MCP0003",
3510
+ ruleId: "mcp/tools/valid-name"
3511
+ },
3475
3512
  {
3476
3513
  code: "PINIA0001",
3477
3514
  ruleId: "pinia/stores/unique-store-id"
@@ -3818,6 +3855,10 @@ const allDoctorDiagnosticRegistry = defineDoctorDiagnostics([
3818
3855
  code: "VUE0035",
3819
3856
  ruleId: "vue/template/no-index-key-on-stateful-list"
3820
3857
  },
3858
+ {
3859
+ code: "VUE0041",
3860
+ ruleId: "vue/reactivity/no-constant-computed"
3861
+ },
3821
3862
  {
3822
3863
  code: "VITE0001",
3823
3864
  ruleId: "vite/assets/no-dynamic-new-url"
@@ -4066,6 +4107,10 @@ const allDoctorDiagnosticRegistry = defineDoctorDiagnostics([
4066
4107
  code: "NITRO0025",
4067
4108
  ruleId: "nitro/config/require-absolute-generated-paths"
4068
4109
  },
4110
+ {
4111
+ code: "NITRO0026",
4112
+ ruleId: "nitro/runtime/no-process-env-in-server"
4113
+ },
4069
4114
  {
4070
4115
  code: "NUXT0001",
4071
4116
  ruleId: "docus/appconfig/no-unknown-key"
@@ -4413,6 +4458,30 @@ const allDoctorDiagnosticRegistry = defineDoctorDiagnostics([
4413
4458
  {
4414
4459
  code: "NUXT0090",
4415
4460
  ruleId: "nuxt/config/no-runtime-env-in-build-options"
4461
+ },
4462
+ {
4463
+ code: "NUXT0091",
4464
+ ruleId: "nuxt/config/no-per-build-value-in-cache-key"
4465
+ },
4466
+ {
4467
+ code: "NUXT0092",
4468
+ ruleId: "nuxt/fetch/cached-data-respects-refresh"
4469
+ },
4470
+ {
4471
+ code: "NUXT0093",
4472
+ ruleId: "nuxt/config/no-unhashed-build-cache-input"
4473
+ },
4474
+ {
4475
+ code: "NUXT0094",
4476
+ ruleId: "nuxt/routing/keepalive-requires-max"
4477
+ },
4478
+ {
4479
+ code: "NUXT0095",
4480
+ ruleId: "nuxt/fetch/no-ssr-refetch-of-shared-key"
4481
+ },
4482
+ {
4483
+ code: "NUXT0096",
4484
+ ruleId: "nuxt/imports/prefer-alias-over-relative-parent"
4416
4485
  }
4417
4486
  ]);
4418
4487
  const allDiagnosticCodesByRuleId = allDoctorDiagnosticRegistry.codesByRuleId;
@@ -4471,7 +4540,7 @@ function reportStaleBaseline(session, baseline) {
4471
4540
  }
4472
4541
  function reportUnusedConfigSuppressions(session) {
4473
4542
  const { options, root } = session;
4474
- if (options.changed || options.since || options.rules || options.analyses) return;
4543
+ if (session.scopedReport || options.rules || options.analyses) return;
4475
4544
  const ran = new Set(session.enabledRules.map((rule) => rule.meta.id));
4476
4545
  const effectiveExtends = options.extends ?? session.config.extends;
4477
4546
  const unscoped = (effectiveExtends === void 0 || effectiveExtends === "auto" || Array.isArray(effectiveExtends) && effectiveExtends.includes("auto")) && !Object.values(session.config.rules ?? {}).includes("off");
@@ -4597,7 +4666,7 @@ function suppressionEntryBounds(source, section, index) {
4597
4666
  }
4598
4667
  }
4599
4668
  function applyReportEligibility(session) {
4600
- if (!session.options.changed && !session.options.since) return;
4669
+ if (!session.scopedReport) return;
4601
4670
  const eligibility = new Map(session.files.map((file) => [file.path, file.reportEligibility]));
4602
4671
  const sources = { get: (file) => session.handlesByPath.get(file)?.text };
4603
4672
  if (session.project.evidenceGaps) session.project.evidenceGaps = session.project.evidenceGaps.filter((gap) => gap.source !== "script-parser" && gap.source !== "vue-sfc-parser" || gap.files.some((file) => eligibility.get(file)));
@@ -4605,6 +4674,7 @@ function applyReportEligibility(session) {
4605
4674
  return [diagnostic, ...diagnostic.related ?? []].some((location) => {
4606
4675
  const fileEligibility = eligibility.get(location.file);
4607
4676
  if (!fileEligibility) return false;
4677
+ if (fileEligibility.kind === "file") return true;
4608
4678
  if (!location.range) return diagnostic.range === void 0;
4609
4679
  const endLine = diagnosticEndLine(location.range, sources.get(location.file));
4610
4680
  return fileEligibility.ranges.some((range) => location.range.line <= range.endLine && endLine >= range.startLine);
@@ -5504,7 +5574,7 @@ async function prepareSourceFile(session, file, fileId) {
5504
5574
  fileId
5505
5575
  });
5506
5576
  }
5507
- if (session.gitChanges && !file.reportEligibility) return createSourceHandle(session, file, content.hash, {
5577
+ if (session.scopedReport && !file.reportEligibility) return createSourceHandle(session, file, content.hash, {
5508
5578
  session,
5509
5579
  entry: file,
5510
5580
  text: content.text,
@@ -5545,7 +5615,7 @@ async function loadSourceFile(handle) {
5545
5615
  }
5546
5616
  /**
5547
5617
  * Bit 1: SFC, bit 2: script AST, bit 4: template AST, known without parsing cached files.
5548
- * Undefined for a file a changed-files run has not parsed yet.
5618
+ * Undefined for a file a scoped run has not parsed yet.
5549
5619
  */
5550
5620
  function sourceShape(handle) {
5551
5621
  const state = sourceStates.get(handle);
@@ -6868,10 +6938,10 @@ async function runFileRules(session) {
6868
6938
  files: 0
6869
6939
  })) : void 0;
6870
6940
  const workspacePackages = projectWorkspacePackages(session.project);
6871
- const changed = session.gitChanges ? new Set(session.files.flatMap((file) => file.reportEligibility ? [file.path] : [])) : void 0;
6941
+ const reportedFiles = session.scopedReport ? new Set(session.files.flatMap((file) => file.reportEligibility ? [file.path] : [])) : void 0;
6872
6942
  for (const file of session.handles) {
6873
6943
  const owner = session.ruleScopes.size ? owningWorkspacePackage(workspacePackages, file.relativePath) : ".";
6874
- const candidates = changed && !changed.has(file.path) ? [...rules.keys()].filter((index) => rules[index].meta.reportScope === "project") : [...rules.keys()];
6944
+ const candidates = reportedFiles && !reportedFiles.has(file.path) ? [...rules.keys()].filter((index) => rules[index].meta.reportScope === "project") : [...rules.keys()];
6875
6945
  if (!candidates.length) continue;
6876
6946
  if (sourceShape(file) === void 0) await loadSourceFile(file);
6877
6947
  const pending = [];
@@ -7020,7 +7090,7 @@ function manifestRuleProjects(session, rule, nuxtRoots) {
7020
7090
  async function buildGraphPhase(session) {
7021
7091
  const analyses = selectedAnalyses(session);
7022
7092
  const graphAnalyses = analyses.has("dead-code") || analyses.has("graph");
7023
- if (session.gitChanges && !graphAnalyses) return;
7093
+ if (session.scopedReport && !graphAnalyses) return;
7024
7094
  const key = graphKey(session);
7025
7095
  if (!graphAnalyses) {
7026
7096
  const cached = session.cache.graph(key);
@@ -7513,14 +7583,7 @@ function createTextReport(result) {
7513
7583
  const items = result.diagnostics.filter((diagnostic) => diagnostic.severity === severity);
7514
7584
  if (!items.length) continue;
7515
7585
  lines.push(pc.bold(labelSeverity(severity)));
7516
- for (const diagnostic of items) {
7517
- const path = relative(result.root, diagnostic.file) || ".";
7518
- const loc = diagnostic.range ? `${path}:${diagnostic.range.line}:${diagnostic.range.column}` : path;
7519
- lines.push(indent(formatDiagnostic(diagnostic.diagnostic), " "));
7520
- lines.push(` rule: ${diagnostic.ruleId}`);
7521
- lines.push(` source: ${loc}`);
7522
- lines.push(` confidence: ${diagnostic.confidence ?? "heuristic-medium"}`);
7523
- }
7586
+ for (const diagnostic of items) lines.push(formatTextDiagnostic(result.root, diagnostic));
7524
7587
  lines.push("");
7525
7588
  }
7526
7589
  lines.push("Summary");
@@ -7543,6 +7606,20 @@ function createTextReport(result) {
7543
7606
  }
7544
7607
  return lines.join("\n");
7545
7608
  }
7609
+ /** One Diagnostic as the text report renders it, indented for a severity section. */
7610
+ function formatTextDiagnostic(root, diagnostic) {
7611
+ return [
7612
+ indent(formatDiagnostic(diagnostic.diagnostic), " "),
7613
+ ` rule: ${diagnostic.ruleId}`,
7614
+ ` source: ${diagnosticLocation(root, diagnostic)}`,
7615
+ ` confidence: ${diagnostic.confidence ?? "heuristic-medium"}`
7616
+ ].join("\n");
7617
+ }
7618
+ /** `path:line:column` relative to `root`, or the path alone for an unlocated Diagnostic. */
7619
+ function diagnosticLocation(root, diagnostic) {
7620
+ const path = relative(root, diagnostic.file) || ".";
7621
+ return diagnostic.range ? `${path}:${diagnostic.range.line}:${diagnostic.range.column}` : path;
7622
+ }
7546
7623
  function confidenceMix(result) {
7547
7624
  const mix = {
7548
7625
  proven: 0,
@@ -7991,6 +8068,9 @@ async function executeDoctorRun(options) {
7991
8068
  base: session.gitChanges.base,
7992
8069
  files: session.files.filter((file) => file.reportEligibility).length,
7993
8070
  deletedFiles: session.gitChanges.files.filter((file) => file.kind === "deleted").length
8071
+ } : options.affectedFiles ? {
8072
+ mode: "affected",
8073
+ files: session.files.filter((file) => file.reportEligibility).length
7994
8074
  } : {
7995
8075
  mode: "all",
7996
8076
  files: session.files.length
@@ -8008,4 +8088,4 @@ async function executeDoctorRun(options) {
8008
8088
  return result;
8009
8089
  }
8010
8090
  //#endregion
8011
- export { startTagEnd as A, workspaceFramework as C, TemplateNodeType as D, parseVueScripts as E, templateExpressionReferences as M, walkTemplate as N, findTemplateAttribute as O, getNodeVisitorKeys as P, owningWorkspacePackage as S, parseSfcFile as T, parseForESLint as _, reportStatus as a, detectWorkspacePackages as b, cleanCache as c, evaluateRuleApplicability as d, projectWorkspacePackages as f, loadVueCompilerSfc as g, loadTypeScript as h, explainRule as i, templateDirectiveBindings as j, findTemplateDirective as k, collectRulePacks as l, detectProject as m, createReport as n, namePattern as o, selectScanFiles as p, createRulesReport as r, cacheStatus as s, runDoctor as t, resolveProjectDoctorConfig as u, findDefaultNuxtModuleDefinition as v, createVueScriptForParsing as w, nuxtInventoryOwner as x, unwrapExpression as y };
8091
+ export { findTemplateAttribute as A, nuxtInventoryOwner as C, parseSfcFile as D, createVueScriptForParsing as E, templateExpressionReferences as F, walkTemplate as I, getNodeVisitorKeys as L, parseTemplateExpression as M, startTagEnd as N, parseVueScripts as O, templateDirectiveBindings as P, detectWorkspacePackages as S, workspaceFramework as T, detectProject as _, explainRule as a, findDefaultNuxtModuleDefinition as b, namePattern as c, collectRulePacks as d, resolveProjectDoctorConfig as f, selectScanFiles as g, projectWorkspacePackages as h, diagnosticLocation as i, findTemplateDirective as j, TemplateNodeType as k, cacheStatus as l, evaluateRuntimeRange as m, createReport as n, formatTextDiagnostic as o, evaluateRuleApplicability as p, createRulesReport as r, reportStatus as s, runDoctor as t, cleanCache as u, loadTypeScript as v, owningWorkspacePackage as w, unwrapExpression as x, loadVueCompilerSfc as y };
@@ -1,2 +1,2 @@
1
- import { a as viteDoctorCacheStatus, i as shouldFailDoctorRun, n as hostDoctorExtensions, o as viteDoctorExtensions, r as runViteDoctor, s as viteDoctorRulePacks, t as cleanViteDoctorCache } from "./doctor-BZ1dduKq.mjs";
1
+ import { a as viteDoctorCacheStatus, i as shouldFailDoctorRun, n as hostDoctorExtensions, o as viteDoctorExtensions, r as runViteDoctor, s as viteDoctorRulePacks, t as cleanViteDoctorCache } from "./doctor-DEtT5cFm.mjs";
2
2
  export { cleanViteDoctorCache, hostDoctorExtensions, runViteDoctor, shouldFailDoctorRun, viteDoctorCacheStatus, viteDoctorExtensions, viteDoctorRulePacks };
@@ -1,14 +1,15 @@
1
- import { C as workspaceFramework, b as detectWorkspacePackages, c as cleanCache, l as collectRulePacks, m as detectProject, s as cacheStatus, t as runDoctor, u as resolveProjectDoctorConfig, x as nuxtInventoryOwner } from "./core-BaWz6Sqw.mjs";
2
- import { n as defineDoctorExtension } from "./primitives-QDMBsnjd.mjs";
1
+ import { C as nuxtInventoryOwner, S as detectWorkspacePackages, T as workspaceFramework, _ as detectProject, d as collectRulePacks, f as resolveProjectDoctorConfig, l as cacheStatus, t as runDoctor, u as cleanCache } from "./core-CdfH68hP.mjs";
2
+ import { n as defineDoctorExtension } from "./primitives-BEgIVHZe.mjs";
3
3
  import { t as doctorInternalDiagnostics } from "./internal-diagnostic-handles-R_2cBQaP.mjs";
4
4
  import { t as viteDoctorVersion } from "./version-Qod0rU4x.mjs";
5
- import { t as packageRulePack } from "./package-BeniS7ot.mjs";
6
- import { t as viteRulePack } from "./rules-Ck0qw9Y-.mjs";
7
- import "./rules-NPAaR11O.mjs";
8
- import { t as typescriptRulePack } from "./rules-pThBWNKu.mjs";
9
- import "./typescript-hosXLQAc.mjs";
10
- import { t as shadcnRulePack } from "./shadcn-DakNoxOB.mjs";
11
- import { t as piniaRulePack } from "./pinia-CFZn5ipu.mjs";
5
+ import { t as packageRulePack } from "./package-Cfe_95KJ.mjs";
6
+ import { t as viteRulePack } from "./rules-Dqeder5U.mjs";
7
+ import "./rules-CINO9n9M.mjs";
8
+ import { t as typescriptRulePack } from "./rules-EPw4WBYU.mjs";
9
+ import "./typescript-Cng3iVQn.mjs";
10
+ import { t as shadcnRulePack } from "./shadcn-DTiSVE9a.mjs";
11
+ import { t as piniaRulePack } from "./pinia-BfGFGwnD.mjs";
12
+ import { t as mcpRulePack } from "./mcp-CuwJbunP.mjs";
12
13
  import { readFileSync } from "node:fs";
13
14
  import { isAbsolute, join } from "pathe";
14
15
  import { pathToFileURL } from "node:url";
@@ -43,6 +44,10 @@ async function viteDoctorExtensions(options = {}) {
43
44
  defineDoctorExtension({
44
45
  name: "vite-doctor/builtin-pinia",
45
46
  rulePacks: [piniaRulePack]
47
+ }),
48
+ defineDoctorExtension({
49
+ name: "vite-doctor/builtin-mcp",
50
+ rulePacks: [mcpRulePack]
46
51
  })
47
52
  ];
48
53
  if (frameworks.has("nuxt")) {
@@ -1,7 +1,7 @@
1
1
  import module from "node:module";
2
2
  //#region src/doctor-process.ts
3
3
  module.enableCompileCache();
4
- const { parseServerOptions, serveDoctorProcess } = await import("./server-DWVLUuR_.mjs");
4
+ const { parseServerOptions, serveDoctorProcess } = await import("./server-C5mKfTDp.mjs");
5
5
  const server = await serveDoctorProcess(parseServerOptions(process.argv[2]));
6
6
  if (server) {
7
7
  for (const signal of [
@@ -1,4 +1,4 @@
1
- import "./primitives-CxYw0KOu.mjs";
1
+ import "./primitives-nC-P1qet.mjs";
2
2
  //#region src/core/diagnostic-constants.d.ts
3
3
  declare const RESERVED_DIAGNOSTIC_CODE_PREFIXES: readonly string[];
4
4
  //#endregion
@@ -1,3 +1,3 @@
1
- import { $ as DoctorDiagnosticHandle, A as SourceRange, B as TemplateNodeKinds, C as RuntimeEvidenceContributor, D as ScriptAstNodeType, E as ScriptAstNodeOf, F as TemplateDirectiveNode, G as TemplateTextNode, H as TemplateParentNode, I as TemplateElementNode, J as defineDoctorExtension, K as TemplateVisitor, L as TemplateExpressionNode, M as TemplateAttributeNode, N as TemplateChildNode, O as ScriptVisitor, P as TemplateCommentNode, Q as DoctorDiagnosticCodeEntry, R as TemplateInterpolationNode, S as RuleVisitor, T as ScriptAstNode, U as TemplateRootNode, V as TemplateNodeParents, W as TemplateSourceLocation, X as defineRulePack, Y as defineDoctorPluginApi, Z as DefineDoctorDiagnosticsOptions, _ as RuleLifecycleHooks, a as DoctorExtensionLoader, b as RulePrefilter, et as DoctorDiagnosticParams, g as RuleContext, h as ProjectInventoryContributor, i as DoctorExtensionInput, j as TemplateAstNode, k as SourceFileHandle, l as DoctorRule, m as ProjectInfo, n as DoctorExtension, nt as defineExtensionDiagnostics, q as createRule, r as DoctorExtensionApi, s as DoctorPluginApi, tt as DoctorDiagnosticRegistry, v as RuleMeta, x as RuleReportMetadata, y as RulePack, z as TemplateNodeKind } from "./primitives-CxYw0KOu.mjs";
2
- import { t as RESERVED_DIAGNOSTIC_CODE_PREFIXES } from "./extension-DlygaoWY.mjs";
1
+ import { $ as DoctorDiagnosticHandle, A as SourceRange, B as TemplateNodeKinds, C as RuntimeEvidenceContributor, D as ScriptAstNodeType, E as ScriptAstNodeOf, F as TemplateDirectiveNode, G as TemplateTextNode, H as TemplateParentNode, I as TemplateElementNode, J as defineDoctorExtension, K as TemplateVisitor, L as TemplateExpressionNode, M as TemplateAttributeNode, N as TemplateChildNode, O as ScriptVisitor, P as TemplateCommentNode, Q as DoctorDiagnosticCodeEntry, R as TemplateInterpolationNode, S as RuleVisitor, T as ScriptAstNode, U as TemplateRootNode, V as TemplateNodeParents, W as TemplateSourceLocation, X as defineRulePack, Y as defineDoctorPluginApi, Z as DefineDoctorDiagnosticsOptions, _ as RuleLifecycleHooks, a as DoctorExtensionLoader, b as RulePrefilter, et as DoctorDiagnosticParams, g as RuleContext, h as ProjectInventoryContributor, i as DoctorExtensionInput, j as TemplateAstNode, k as SourceFileHandle, l as DoctorRule, m as ProjectInfo, n as DoctorExtension, nt as defineExtensionDiagnostics, q as createRule, r as DoctorExtensionApi, s as DoctorPluginApi, tt as DoctorDiagnosticRegistry, v as RuleMeta, x as RuleReportMetadata, y as RulePack, z as TemplateNodeKind } from "./primitives-nC-P1qet.mjs";
2
+ import { t as RESERVED_DIAGNOSTIC_CODE_PREFIXES } from "./extension-BWauKIzu.mjs";
3
3
  export { type DefineDoctorDiagnosticsOptions, type DoctorDiagnosticCodeEntry, type DoctorDiagnosticHandle, type DoctorDiagnosticParams, type DoctorDiagnosticRegistry, type DoctorExtension, type DoctorExtensionApi, type DoctorExtensionInput, type DoctorExtensionLoader, type DoctorPluginApi, type DoctorRule, type ProjectInfo, type ProjectInventoryContributor, RESERVED_DIAGNOSTIC_CODE_PREFIXES, type RuleContext, type RuleLifecycleHooks, type RuleMeta, type RulePack, type RulePrefilter, type RuleReportMetadata, type RuleVisitor, type RuntimeEvidenceContributor, type ScriptAstNode, type ScriptAstNodeOf, type ScriptAstNodeType, type ScriptVisitor, type SourceFileHandle, type SourceRange, type TemplateAstNode, type TemplateAttributeNode, type TemplateChildNode, type TemplateCommentNode, type TemplateDirectiveNode, type TemplateElementNode, type TemplateExpressionNode, type TemplateInterpolationNode, type TemplateNodeKind, type TemplateNodeKinds, type TemplateNodeParents, type TemplateParentNode, type TemplateRootNode, type TemplateSourceLocation, type TemplateTextNode, type TemplateVisitor, createRule, defineExtensionDiagnostics as defineDoctorDiagnostics, defineDoctorExtension, defineDoctorPluginApi, defineRulePack };
@@ -1,2 +1,2 @@
1
- import { d as RESERVED_DIAGNOSTIC_CODE_PREFIXES, i as defineRulePack, n as defineDoctorExtension, r as defineDoctorPluginApi, s as defineExtensionDiagnostics, t as createRule } from "./primitives-QDMBsnjd.mjs";
1
+ import { d as RESERVED_DIAGNOSTIC_CODE_PREFIXES, i as defineRulePack, n as defineDoctorExtension, r as defineDoctorPluginApi, s as defineExtensionDiagnostics, t as createRule } from "./primitives-BEgIVHZe.mjs";
2
2
  export { RESERVED_DIAGNOSTIC_CODE_PREFIXES, createRule, defineExtensionDiagnostics as defineDoctorDiagnostics, defineDoctorExtension, defineDoctorPluginApi, defineRulePack };
@@ -1,4 +1,4 @@
1
- import { l as DoctorRule, y as RulePack } from "./primitives-CxYw0KOu.mjs";
1
+ import { l as DoctorRule, y as RulePack } from "./primitives-nC-P1qet.mjs";
2
2
  //#region src/rule-packs/typescript/rules/no-array-filter-map.d.ts
3
3
  declare const noArrayFilterMap: DoctorRule;
4
4
  //#endregion
@@ -0,0 +1,2 @@
1
+ import "./primitives-nC-P1qet.mjs";
2
+ import "./config-Vi7rSzhn.mjs";
@@ -1,5 +1,5 @@
1
- import { l as DoctorRule, y as RulePack } from "./primitives-CxYw0KOu.mjs";
2
- import "./extension-DlygaoWY.mjs";
1
+ import { l as DoctorRule, y as RulePack } from "./primitives-nC-P1qet.mjs";
2
+ import "./extension-BWauKIzu.mjs";
3
3
  //#region src/rule-packs/nitro/rules/no-use-nuxt-app-in-nitro.d.ts
4
4
  declare const noUseNuxtAppInNitro: DoctorRule;
5
5
  //#endregion
@@ -66,7 +66,10 @@ declare const noModuleScopeResponseCache: DoctorRule;
66
66
  //#region src/rule-packs/nitro/rules/require-absolute-generated-paths.d.ts
67
67
  declare const requireAbsoluteGeneratedPaths: DoctorRule;
68
68
  //#endregion
69
+ //#region src/rule-packs/nitro/rules/no-process-env-in-server.d.ts
70
+ declare const noProcessEnvInServer: DoctorRule;
71
+ //#endregion
69
72
  //#region src/rule-packs/nitro/rules/index.d.ts
70
73
  declare const nitroRulePack: RulePack;
71
74
  //#endregion
72
- export { noUseNuxtAppInNitro as C, noNavigateToInNitro as S, preferH3RedirectResponse as _, preferServerUtils as a, noEventRuntimeConfigInServer as b, preferGetRequestIp as c, preferValidatedRouterParams as d, preferValidatedQuery as f, preferH3WithBase as g, noClientComposablesInServer as h, noUnguardedAlsEnterWith as i, preferRouteMethodSuffix as l, noBrowserApiInServer as m, requireAbsoluteGeneratedPaths as n, requireDefaultHandler as o, preferValidatedBody as p, noModuleScopeResponseCache as r, noHttpErrorMasking as s, nitroRulePack as t, preferAssertMethod as u, noRemovedH3Send as v, requireEventRuntimeConfigInServer as x, noV2Imports as y };
75
+ export { noNavigateToInNitro as C, requireEventRuntimeConfigInServer as S, preferH3WithBase as _, noUnguardedAlsEnterWith as a, noV2Imports as b, noHttpErrorMasking as c, preferAssertMethod as d, preferValidatedRouterParams as f, noClientComposablesInServer as g, noBrowserApiInServer as h, noModuleScopeResponseCache as i, preferGetRequestIp as l, preferValidatedBody as m, noProcessEnvInServer as n, preferServerUtils as o, preferValidatedQuery as p, requireAbsoluteGeneratedPaths as r, requireDefaultHandler as s, nitroRulePack as t, preferRouteMethodSuffix as u, preferH3RedirectResponse as v, noUseNuxtAppInNitro as w, noEventRuntimeConfigInServer as x, noRemovedH3Send as y };
@@ -0,0 +1 @@
1
+ import "./index-DeK4RjIq.mjs";
@@ -1,4 +1,4 @@
1
- import { l as DoctorRule, y as RulePack } from "./primitives-CxYw0KOu.mjs";
1
+ import { l as DoctorRule, y as RulePack } from "./primitives-nC-P1qet.mjs";
2
2
  //#region src/rule-packs/vite/rules/define.d.ts
3
3
  declare const noUnusedDefine: DoctorRule;
4
4
  declare const noUntypedDefine: DoctorRule;
package/dist/index.d.mts CHANGED
@@ -1,3 +1,3 @@
1
- import { i as defineDoctorConfig, n as DoctorRunOptions, t as DoctorConfig } from "./config-wMPOujpB.mjs";
2
- import { n as doctor, t as ViteDoctorSurfaceOptions } from "./plugin-_V-dd4-g.mjs";
1
+ import { i as defineDoctorConfig, n as DoctorRunOptions, t as DoctorConfig } from "./config-Vi7rSzhn.mjs";
2
+ import { n as doctor, t as ViteDoctorSurfaceOptions } from "./plugin-NkM7-RMx.mjs";
3
3
  export { type DoctorConfig, type DoctorRunOptions, type ViteDoctorSurfaceOptions, defineDoctorConfig, doctor };
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
1
  import { t as defineDoctorConfig } from "./config-CaJ0DqB3.mjs";
2
- import { t as doctor } from "./plugin-DpSQG2E-.mjs";
2
+ import { t as doctor } from "./plugin-GXLzDLKo.mjs";
3
3
  export { defineDoctorConfig, doctor };