react-doctor 0.9.12-dev.05ef989 → 0.9.12-dev.1971506

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 (42) hide show
  1. package/README.md +27 -0
  2. package/dist/active-run-trace-dlIZeEvb.js +18 -0
  3. package/dist/active-scan-abort-registry-DwG6tSPy.js +28 -0
  4. package/dist/{build-section-divider-BNQmYjME.js → build-section-divider-dzVqU6Fr.js} +8 -22
  5. package/dist/{ci-B9ir-2Up.js → ci-tO6eKsPx.js} +12 -11
  6. package/dist/cli.js +76 -24
  7. package/dist/{design-DrPr5wfS.js → design-BOr8ASzl.js} +4 -4
  8. package/dist/{devtools-D8NTVj81.js → devtools-BiC-AP3B.js} +3 -3
  9. package/dist/{exit-gracefully-C-_jVMT3.js → exit-gracefully-B4JO2DSi.js} +15 -9
  10. package/dist/get-east-asian-width-Cglw13G7.js +444 -0
  11. package/dist/{report-error-BH7DfHGY.js → handle-error-JVQU0Pxy.js} +6 -61
  12. package/dist/index.js +3 -3
  13. package/dist/{inspect-BfdplEq6.js → inspect-CBkHe9dS.js} +16 -15
  14. package/dist/{install-CcPaQeBb.js → install-DG3MH36X.js} +9 -8
  15. package/dist/{install-doctor-script-BlIhuJW6.js → install-doctor-script-DaB6kssK.js} +6 -441
  16. package/dist/{install-github-workflow-DbnsoR9k.js → install-github-workflow-CHs4pPvZ.js} +6 -6
  17. package/dist/{install-react-doctor-COZnJROS.js → install-react-doctor-D4Z6xm2T.js} +8 -8
  18. package/dist/{run-scan-app-Cl2mqLLB.js → jsx-runtime-5ph9KX7N.js} +280 -2774
  19. package/dist/{print-branded-header-B_Cgff5S.js → print-branded-header-BRA02Uik.js} +4 -4
  20. package/dist/prompt-runtime-scan-url-1IvWhRJ0.js +240 -0
  21. package/dist/{read-object-file-NNLnIQKt.js → read-object-file-CacQMaGw.js} +4 -4
  22. package/dist/{record-metric-fdCvvcjz.js → record-metric-DcBAbVVs.js} +22 -9
  23. package/dist/report-error-Cj58fOLO.js +64 -0
  24. package/dist/{report-workflow-result-B3YeoXsK.js → report-workflow-result-DadOSgvV.js} +5 -5
  25. package/dist/{resolve-scope-gLUuBxjI.js → resolve-scope-pqK2skSv.js} +6 -6
  26. package/dist/{rules-B5VC89MR.js → rules-IBWoSmK_.js} +6 -6
  27. package/dist/run-scan-app-JphzszIp.js +2508 -0
  28. package/dist/runtime-scan/browser-probe.iife.js +855 -0
  29. package/dist/runtime-scan-BSMwOS9F.js +770 -0
  30. package/dist/sanitize-runtime-url-BN8oyAb7.js +76 -0
  31. package/dist/{scan-7OBudBct.js → scan-1Hakw1J4.js} +10 -22
  32. package/dist/{should-fail-scan-gate-Dch9vbPz.js → should-fail-scan-gate-CwBjVudY.js} +12 -111
  33. package/dist/{should-skip-prompts-CyNdARgB.js → should-skip-prompts-CtQ-6r7T.js} +4 -4
  34. package/dist/should-use-tui-BLBNwhU6.js +25 -0
  35. package/dist/skills/performance/SKILL.md +113 -0
  36. package/dist/skills/react-doctor/SKILL.md +6 -0
  37. package/dist/{unref-stdin-Cynhx9N1.js → telemetry-runtime-BxsPVkMH.js} +5 -23
  38. package/dist/unref-stdin-BKT_s38a.js +12 -0
  39. package/dist/{version-axnZCkCZ.js → version-5WSKTaCF.js} +4 -4
  40. package/dist/{why-Ducgj7Hu.js → why-DHTN2DPT.js} +4 -4
  41. package/dist/with-run-span-Kn-I23fJ.js +110 -0
  42. package/package.json +8 -6
@@ -1,6 +1,6 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a7bc5e3b-c458-50c9-b3ac-3004c43cb924")}catch(e){}}();
3
- import { Gt as highlighter, g as VERSION, kn as gen, wn as log } from "./record-metric-fdCvvcjz.js";
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f9c95896-1c03-5c00-a35f-98b91a7b2e15")}catch(e){}}();
3
+ import { An as gen, Kt as highlighter, Tn as log, _ as VERSION } from "./record-metric-DcBAbVVs.js";
4
4
  //#region src/cli/utils/print-branded-header.ts
5
5
  /**
6
6
  * Single branded line every command prints first when not in JSON
@@ -18,5 +18,5 @@ const printBrandedHeader = gen(function* () {
18
18
  //#endregion
19
19
  export { printBrandedHeader as t };
20
20
 
21
- //# sourceMappingURL=print-branded-header-B_Cgff5S.js.map
22
- //# debugId=a7bc5e3b-c458-50c9-b3ac-3004c43cb924
21
+ //# sourceMappingURL=print-branded-header-BRA02Uik.js.map
22
+ //# debugId=f9c95896-1c03-5c00-a35f-98b91a7b2e15
@@ -0,0 +1,240 @@
1
+
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e74e0aa6-c2fa-55a1-9a7c-bbf1b5a1276b")}catch(e){}}();
3
+ import { t as unrefStdin } from "./unref-stdin-BKT_s38a.js";
4
+ import { a as RUNTIME_SCAN_LOCAL_DEV_PORTS, t as sanitizeRuntimeUrl, u as RUNTIME_SCAN_MAX_STRING_LENGTH } from "./sanitize-runtime-url-BN8oyAb7.js";
5
+ import { a as useExitOnCtrlC, c as Spinner, d as useInput, h as Box, i as import_react, m as Text, n as registerMountedTuiRenderer, o as terminalSymbols, p as render, r as useStdoutDimensions, s as isPrintableInput, t as require_jsx_runtime } from "./jsx-runtime-5ph9KX7N.js";
6
+ import * as http from "node:http";
7
+ //#region src/cli/runtime-scan/detect-local-runtime-urls.ts
8
+ const LOCAL_HTTP_HOSTS = ["127.0.0.1", "::1"];
9
+ const probeLocalHttpHost = (port, host) => new Promise((resolve) => {
10
+ let didResolve = false;
11
+ const resolveOnce = (isReachable) => {
12
+ if (didResolve) return;
13
+ didResolve = true;
14
+ resolve(isReachable);
15
+ };
16
+ const request = http.request({
17
+ agent: false,
18
+ host,
19
+ method: "HEAD",
20
+ path: "/",
21
+ port
22
+ }, (response) => {
23
+ response.resume();
24
+ resolveOnce(true);
25
+ });
26
+ request.setTimeout(300, () => request.destroy());
27
+ request.on("error", () => resolveOnce(false));
28
+ request.on("close", () => resolveOnce(false));
29
+ request.end();
30
+ });
31
+ const probeLocalHttpPort = async (port) => {
32
+ if (!(await Promise.all(LOCAL_HTTP_HOSTS.map((host) => probeLocalHttpHost(port, host)))).some(Boolean)) return null;
33
+ return {
34
+ port,
35
+ url: `http://localhost:${port}`
36
+ };
37
+ };
38
+ const detectLocalRuntimeUrls = async (ports = RUNTIME_SCAN_LOCAL_DEV_PORTS) => {
39
+ const probeResults = await Promise.all(ports.map(probeLocalHttpPort));
40
+ const suggestions = [];
41
+ for (const probeResult of probeResults) if (probeResult !== null) suggestions.push(probeResult);
42
+ return suggestions;
43
+ };
44
+ //#endregion
45
+ //#region src/cli/ink/prompt-runtime-scan-url.tsx
46
+ var import_jsx_runtime = require_jsx_runtime();
47
+ const RuntimeScanUrlPrompt = ({ discoverLocalUrls = detectLocalRuntimeUrls, onSubmit }) => {
48
+ const [mode, setMode] = (0, import_react.useState)("select");
49
+ const [suggestions, setSuggestions] = (0, import_react.useState)([]);
50
+ const [isDetecting, setIsDetecting] = (0, import_react.useState)(true);
51
+ const [selectedIndex, setSelectedIndex] = (0, import_react.useState)(0);
52
+ const [url, setUrl] = (0, import_react.useState)("");
53
+ const [validationMessage, setValidationMessage] = (0, import_react.useState)(null);
54
+ const { columns: terminalColumns, rows: terminalRows } = useStdoutDimensions();
55
+ useExitOnCtrlC();
56
+ (0, import_react.useEffect)(() => {
57
+ let isMounted = true;
58
+ discoverLocalUrls().then((detectedSuggestions) => {
59
+ if (!isMounted) return;
60
+ setSuggestions(detectedSuggestions);
61
+ setIsDetecting(false);
62
+ }, () => {
63
+ if (isMounted) setIsDetecting(false);
64
+ });
65
+ return () => {
66
+ isMounted = false;
67
+ };
68
+ }, [discoverLocalUrls]);
69
+ const updateUrl = (nextUrl) => {
70
+ setUrl(nextUrl.slice(0, RUNTIME_SCAN_MAX_STRING_LENGTH));
71
+ setValidationMessage(null);
72
+ };
73
+ useInput((input, key) => {
74
+ if (mode === "select") {
75
+ const optionCount = suggestions.length + 1;
76
+ if (key.escape || input === "q") return onSubmit(null);
77
+ if (key.upArrow || input === "k") return setSelectedIndex(Math.max(0, selectedIndex - 1));
78
+ if (key.downArrow || input === "j") return setSelectedIndex(Math.min(optionCount - 1, selectedIndex + 1));
79
+ if (key.return) {
80
+ const selectedSuggestion = suggestions[selectedIndex];
81
+ if (selectedSuggestion !== void 0) return onSubmit(selectedSuggestion.url);
82
+ setMode("custom");
83
+ return;
84
+ }
85
+ if (isPrintableInput(input) && !key.ctrl && !key.meta) {
86
+ setMode("custom");
87
+ updateUrl(input);
88
+ }
89
+ return;
90
+ }
91
+ if (key.escape) return setMode("select");
92
+ if (key.backspace || key.delete) return updateUrl(url.slice(0, -1));
93
+ if (key.ctrl && input === "u") return updateUrl("");
94
+ if (key.return) {
95
+ const trimmedUrl = url.trim();
96
+ try {
97
+ sanitizeRuntimeUrl(trimmedUrl);
98
+ onSubmit(trimmedUrl);
99
+ } catch {
100
+ setValidationMessage("Enter an absolute URL starting with http:// or https://.");
101
+ }
102
+ return;
103
+ }
104
+ if (isPrintableInput(input) && !key.ctrl && !key.meta) updateUrl(url + input);
105
+ });
106
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Box, {
107
+ alignItems: "center",
108
+ height: terminalRows,
109
+ justifyContent: "center",
110
+ width: terminalColumns,
111
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Box, {
112
+ borderColor: "magenta",
113
+ borderStyle: "round",
114
+ flexDirection: "column",
115
+ paddingX: 1,
116
+ width: Math.min(terminalColumns, 72),
117
+ children: [
118
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
119
+ color: "magenta",
120
+ bold: true,
121
+ children: "React Doctor"
122
+ }),
123
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
124
+ bold: true,
125
+ children: "Choose an app to scan"
126
+ }),
127
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
128
+ dimColor: true,
129
+ children: "We’ll open Chrome and scan one interaction."
130
+ }),
131
+ mode === "select" ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Box, {
132
+ flexDirection: "column",
133
+ marginTop: 1,
134
+ children: [
135
+ isDetecting ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, {
136
+ dimColor: true,
137
+ children: [
138
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
139
+ color: "cyan",
140
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Spinner, { type: "dots" })
141
+ }),
142
+ " ",
143
+ "Looking for local apps…"
144
+ ]
145
+ }) : null,
146
+ !isDetecting && suggestions.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
147
+ dimColor: true,
148
+ children: "No local HTTP apps detected."
149
+ }) : null,
150
+ suggestions.map((suggestion, suggestionIndex) => {
151
+ const isSelected = suggestionIndex === selectedIndex;
152
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, {
153
+ bold: isSelected,
154
+ color: isSelected ? "cyan" : void 0,
155
+ children: [
156
+ isSelected ? terminalSymbols.pointer : terminalSymbols.pointerSmall,
157
+ " ",
158
+ suggestion.url,
159
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
160
+ dimColor: true,
161
+ children: " detected"
162
+ })
163
+ ]
164
+ }, suggestion.url);
165
+ }),
166
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, {
167
+ bold: selectedIndex === suggestions.length,
168
+ color: selectedIndex === suggestions.length ? "cyan" : void 0,
169
+ children: [
170
+ selectedIndex === suggestions.length ? terminalSymbols.pointer : terminalSymbols.pointerSmall,
171
+ " ",
172
+ "Enter another URL"
173
+ ]
174
+ }),
175
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Box, {
176
+ marginTop: 1,
177
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
178
+ dimColor: true,
179
+ children: "↑↓ choose · Enter continue · Esc cancel"
180
+ })
181
+ })
182
+ ]
183
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Box, {
184
+ flexDirection: "column",
185
+ marginTop: 1,
186
+ children: [
187
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
188
+ dimColor: true,
189
+ children: "App URL"
190
+ }),
191
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, {
192
+ wrap: "truncate-end",
193
+ children: [
194
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
195
+ color: "cyan",
196
+ children: "› "
197
+ }),
198
+ url,
199
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
200
+ inverse: true,
201
+ children: " "
202
+ })
203
+ ]
204
+ }),
205
+ validationMessage === null ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
206
+ color: "red",
207
+ children: validationMessage
208
+ }),
209
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Box, {
210
+ marginTop: 1,
211
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
212
+ dimColor: true,
213
+ children: "Enter continue · Esc back · Ctrl+U clear"
214
+ })
215
+ })
216
+ ]
217
+ })
218
+ ]
219
+ })
220
+ });
221
+ };
222
+ const promptRuntimeScanUrl = () => new Promise((resolve) => {
223
+ let disposeRenderer = () => {};
224
+ const submitUrl = (url) => {
225
+ disposeRenderer();
226
+ unrefStdin();
227
+ resolve(url);
228
+ };
229
+ disposeRenderer = registerMountedTuiRenderer(render(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(RuntimeScanUrlPrompt, { onSubmit: submitUrl }), {
230
+ alternateScreen: true,
231
+ exitOnCtrlC: false,
232
+ stdin: process.stdin,
233
+ stdout: process.stderr
234
+ }));
235
+ });
236
+ //#endregion
237
+ export { promptRuntimeScanUrl };
238
+
239
+ //# sourceMappingURL=prompt-runtime-scan-url-1IvWhRJ0.js.map
240
+ //# debugId=e74e0aa6-c2fa-55a1-9a7c-bbf1b5a1276b
@@ -1,6 +1,6 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="424abf7b-eb26-5a60-837f-b30e68c9b99b")}catch(e){}}();
3
- import { xr as isPlainObject } from "./record-metric-fdCvvcjz.js";
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d5c6af46-03ec-558f-ac97-b4fb68bfc42b")}catch(e){}}();
3
+ import { Sr as isPlainObject } from "./record-metric-DcBAbVVs.js";
4
4
  import * as fs$1 from "node:fs";
5
5
  import { parseJSON5 } from "confbox";
6
6
  //#region src/cli/utils/read-object-file.ts
@@ -20,5 +20,5 @@ const readObjectFile = (filePath) => {
20
20
  //#endregion
21
21
  export { readObjectFile as t };
22
22
 
23
- //# sourceMappingURL=read-object-file-NNLnIQKt.js.map
24
- //# debugId=424abf7b-eb26-5a60-837f-b30e68c9b99b
23
+ //# sourceMappingURL=read-object-file-CacQMaGw.js.map
24
+ //# debugId=d5c6af46-03ec-558f-ac97-b4fb68bfc42b
@@ -1,5 +1,5 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4a5f202a-1a71-5847-a8c0-dfcb2cf256ff")}catch(e){}}();
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c9e04589-a11d-5831-8f4a-ffc7130734b6")}catch(e){}}();
3
3
  import { i as __toESM$1, r as __require, t as __commonJSMin$1 } from "./chunk-ChKA3wi6.js";
4
4
  import { n as require_picomatch, t as require_semver } from "./semver-DFtnEmN-.js";
5
5
  import { createRequire } from "node:module";
@@ -72894,7 +72894,7 @@ const buildRelatedLocations = (labels, filePath, sourceBuffer) => {
72894
72894
  const isOxlintSpan = (value) => isRecord(value) && typeof value.offset === "number" && typeof value.length === "number" && typeof value.line === "number" && typeof value.column === "number";
72895
72895
  const isOxlintLabel = (value) => isRecord(value) && isOxlintSpan(value.span);
72896
72896
  const isMappableOxlintDiagnostic = (value) => isRecord(value) && typeof value.code === "string" && value.code.length > 0 && typeof value.filename === "string" && value.filename.length > 0 && (value.severity === "warning" || value.severity === "error") && Array.isArray(value.labels) && value.labels.every(isOxlintLabel);
72897
- const isEngineFailureDiagnostic = (value) => !isRecord(value) || typeof value.filename !== "string" || value.filename.length === 0;
72897
+ const isEngineFailureDiagnostic = (value) => !isRecord(value) || typeof value.filename !== "string" || value.filename.length === 0 || typeof value.message === "string" && value.message.startsWith("Error running JS plugin.") && (typeof value.code !== "string" || value.code.length === 0) && Array.isArray(value.labels) && value.labels.length === 0;
72898
72898
  const isOxlintOutput = (value) => isRecord(value) && Array.isArray(value.diagnostics);
72899
72899
  /**
72900
72900
  * Parses one oxlint subprocess's stdout into a flat `Diagnostic[]`.
@@ -76415,6 +76415,7 @@ const METRIC = {
76415
76415
  ciConfigured: "ci.configured",
76416
76416
  rulesChanged: "rules.changed",
76417
76417
  rulesQueried: "rules.queried",
76418
+ runtimeScanUrlPromptShown: "runtime_scan.url_prompt_shown",
76418
76419
  tuiCompactReportShown: "tui.compact_report_shown",
76419
76420
  tuiFindingNavigated: "tui.finding_navigated",
76420
76421
  tuiIssueStreamShown: "tui.issue_stream_shown",
@@ -76468,7 +76469,7 @@ const makeNoopConsole = () => ({
76468
76469
  });
76469
76470
  //#endregion
76470
76471
  //#region src/cli/utils/version.ts
76471
- const VERSION = "0.9.12-dev.05ef989";
76472
+ const VERSION = "0.9.12-dev.1971506";
76472
76473
  //#endregion
76473
76474
  //#region src/cli/utils/json-mode.ts
76474
76475
  let context = null;
@@ -76506,13 +76507,14 @@ const installSilentConsole = () => {
76506
76507
  "trace"
76507
76508
  ]) target[key] = source[key];
76508
76509
  };
76509
- const enableJsonMode = ({ compact, directory, outputFile }) => {
76510
+ const enableJsonMode = ({ compact, directory, outputFile, writeCancellationError }) => {
76510
76511
  context = {
76511
76512
  compact,
76512
76513
  directory,
76513
76514
  startTime: performance$1.now(),
76514
76515
  mode: "full",
76515
- outputFile: null
76516
+ outputFile: null,
76517
+ writeCancellationError
76516
76518
  };
76517
76519
  installSilentConsole();
76518
76520
  if (outputFile) {
@@ -76551,6 +76553,13 @@ const writeJsonErrorReport = (error, sentryEventId) => {
76551
76553
  process.stdout.write(INTERNAL_ERROR_JSON_FALLBACK);
76552
76554
  }
76553
76555
  };
76556
+ const writeJsonCancellationReport = () => {
76557
+ if (context?.writeCancellationError !== void 0) {
76558
+ context.writeCancellationError();
76559
+ return;
76560
+ }
76561
+ writeJsonErrorReport(/* @__PURE__ */ new Error("Scan cancelled by user (SIGINT/SIGTERM)"));
76562
+ };
76554
76563
  //#endregion
76555
76564
  //#region src/cli/utils/run-id.ts
76556
76565
  let cachedRunId;
@@ -76559,10 +76568,14 @@ const getRunId = () => {
76559
76568
  return cachedRunId;
76560
76569
  };
76561
76570
  //#endregion
76571
+ //#region src/cli/utils/scrub-run-arguments.ts
76572
+ const scrubRunArguments = (argumentsList) => anonymizeText(argumentsList.map((argument) => argument.replace(/^((?:--[^=]+=)?)(?:https?|wss?):\/\/.+$/i, "$1<url>")).join(" "));
76573
+ //#endregion
76562
76574
  //#region src/cli/utils/build-run-context.ts
76563
76575
  const ROOT_SUBCOMMANDS = new Set([
76564
76576
  "design",
76565
76577
  "install",
76578
+ "scan",
76566
76579
  "setup"
76567
76580
  ]);
76568
76581
  const detectInvokedVia = () => {
@@ -76603,7 +76616,7 @@ const buildRunContext = () => {
76603
76616
  runId: getRunId(),
76604
76617
  origin: detectOrigin(),
76605
76618
  command: detectCommand(userArguments),
76606
- argv: scrubSensitivePaths(userArguments.join(" ")),
76619
+ argv: scrubRunArguments(userArguments),
76607
76620
  cwd: scrubSensitivePaths(process.cwd()),
76608
76621
  node: process.version,
76609
76622
  nodeMajor: detectNodeMajor(),
@@ -76798,7 +76811,7 @@ const recordDistribution = (name, value, options = {}) => {
76798
76811
  } catch {}
76799
76812
  };
76800
76813
  //#endregion
76801
- export { Maintainability as $, CANONICAL_GITHUB_URL as $n, listSourceFiles as $t, SCAN_RESULT_CACHE_MAX_HASHED_FILE_SIZE_BYTES as A, makeSpan$1 as An, filterDiagnosticsForSurface as At, isGitHookEnvironment as B, try_ as Bn, getEquivalentRuleKeys as Bt, GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS as C, info as Cn, toCanonicalPath as Cr, computeConfigFingerprint as Ct, REACT_DOCTOR_CONFIG_PROJECT_NAME as D, decodeUnknownSync as Dn, createOxlintSpawnSlots as Dt, NANOSECONDS_PER_MILLISECOND as E, Diagnostic as En, createNodeReadFileLinesSync as Et, STAGED_SNAPSHOT_ADDITIONAL_CONFIG_FILENAMES as F, provideContext as Fn, formatReactDoctorError as Ft, isCiOrCodingAgentEnvironment as G, succeed$3 as Gn, highlighter as Gt, ACTION_INPUT_ENVIRONMENT_VARIABLES as H, buildWithScope as Hn, hasPublishedFixRecipe as Ht, TUI_REPORT_COMPACT_MAX_ROWS as I, provideService as In, getBaselineDiffPlan as It, Files as J, fail$5 as Jn, isProjectDiscoveryError as Jt, isCodingAgentEnvironment as K, close as Kn, isMonorepoRoot as Kt, TUI_REPORT_DETAIL_WIDTH_FRACTION as L, runPromise as Ln, getChangedLineRanges as Lt, SENTRY_FLUSH_TIMEOUT_MS as M, orElseSucceed as Mn, filterSourceFiles as Mt, SENTRY_RELEASE_PREFIX as N, promise as Nn, findLegacyConfig as Nt, RUN_GIT_MAX_BUFFER_BYTES as O, make$30 as On, detectAiTrainingEnvironment as Ot, STAGED_FILES_TEMP_DIR_PREFIX as P, provide as Pn, formatErrorChain as Pt, Linter as Q, CANONICAL_DISCORD_URL as Qn, layerObservability as Qt, CliInputError as R, runSync as Rn, getDiagnosticRuleIdentity as Rt, CI_TRUST_COMPANIES as S, error as Sn, messageFromUnknown as Sr, collectSourceFileCountsByDirectory as St, MINIMUM_VTE_VERSION_FOR_HYPERLINKS as T, warn$1 as Tn, countOptInProjectRuleSelections as Tt, detectRunnerOs as U, mergeAll$1 as Un, hasSupportedFrameworkOrLibrary as Ut, isDebugFlagEnabled as V, void_ as Vn, groupBy as Vt, isCiEnvironment as W, provide$2 as Wn, hashFileContents as Wt, LEGACY_CONFIG_FILENAME as X, ParentSpan as Xn, isSameRuleKey as Xt, Git as Y, void_$1 as Yn, isReactDoctorError as Yt, LintPartialFailures as Z, AXIOM_DEFAULT_DOMAIN as Zn, isScanComplete as Zt, makeNoopConsole as _, summarizeDiagnostics as _n, getCategoryImpact as _r, buildSkippedChecks as _t, isEnvFlagEnabled as a, mergeReactDoctorConfigs as an, DOCS_URL as ar, Project as at, AXIOM_TRACES_DATASET as b, yieldToEventLoop as bn, isFile as br, classifyFileContext as bt, setSentryProjectInfo as c, resolveLintBatchOrdering as cn, GIT_SHOW_MAX_BUFFER_BYTES as cr, SidecarLintCacheEnabled as ct, isJsonModeActive as d, resolveScanTarget as dn, JSX_FILE_PATTERN as dr, anonymizeInPlace as dt, listSourceFilesCooperative as en, CI_URL as er, NodeResolver as et, setJsonReportDirectory as f, restoreLegacyThrow as fn, MILLISECONDS_PER_SECOND as fr, anonymizeText as ft, VERSION as g, shouldUseMaintainabilityLayer as gn, STAGED_FILES_PROJECT_CONFIG_FILENAMES as gr, buildRuleSeverityControls as gt, writeJsonReport as h, setColorEnabled as hn, SKILL_NAME as hr, buildRuleDocsUrl as ht, isTelemetryEnabled as i, materializeSourceTree as in, DIAGNOSTIC_CATEGORY_BUCKETS as ir, Progress as it, SENTRY_DSN as j, map$3 as jn, filterPathsOutsideDirectories as jt, SCAN_RESULT_CACHE_FILENAME as k, gen as kn, discoverSupportedSubprojects as kt, getRunId as l, resolveReactDoctorCacheDir as ln, HTML_FILE_PATTERN as lr, StagedFiles as lt, writeJsonErrorReport as m, scrubSensitivePaths as mn, SHARE_BASE_URL as mr, buildJsonReport as mt, recordDistribution as n, loadConfigWithSource as nn, COMPILER_CLEANUP_RULE_KEYS as nr, OxlintSpawnSlots as nt, buildSentryScope as o, remainingDeadlineBudgetMs as on, ENTERPRISE_CONTACT_URL as or, Reporter as ot, setJsonReportMode as p, runInspect as pn, OXLINT_NODE_REQUIREMENT as pr, atomicWriteJson as pt, Config as q, makeUnsafe$5 as qn, isPathInsideDirectory as qt, toSpanAttributes as r, mapWithConcurrency as rn, CONFIG_SCHEMA_URL as rr, PerFileLintCacheEnabled as rt, buildSentryProjectContext as s, resolveGithubActionsScoreMetadata as sn, GITHUB_ACTIONS_SETUP_URL as sr, Score as st, recordCount as t, listWorkspacePackages as tn, COMPILER_CLEANUP_BUCKET as tr, OxlintConcurrency as tt, enableJsonMode as u, resolveScanConcurrency as un, JSX_DUPLICATION_SOURCE_FILE_PATTERN as ur, SupplyChain as ut, AXIOM_INGEST_TOKEN as v, toRelativePath as vn, isDirectory as vr, calculateScore as vt, METRIC as w, log as wn, computeDiagnosticDelta as wt, BASELINE_FILES_TEMP_DIR_PREFIX as x, Console as xn, isPlainObject as xr, clearConfigCache as xt, AXIOM_METRICS_DATASET as y, validateConfigTypes as yn, isErrnoException as yr, canonicalizeUserRuleKey as yt, isNonInteractiveEnvironment as z, sync as zn, getDiffInfo as zt };
76814
+ export { Linter as $, CANONICAL_DISCORD_URL as $n, layerObservability as $t, SCAN_RESULT_CACHE_FILENAME as A, gen as An, discoverSupportedSubprojects as At, isNonInteractiveEnvironment as B, sync as Bn, getDiffInfo as Bt, CI_TRUST_COMPANIES as C, error as Cn, messageFromUnknown as Cr, collectSourceFileCountsByDirectory as Ct, NANOSECONDS_PER_MILLISECOND as D, Diagnostic as Dn, createNodeReadFileLinesSync as Dt, MINIMUM_VTE_VERSION_FOR_HYPERLINKS as E, warn$1 as En, countOptInProjectRuleSelections as Et, STAGED_FILES_TEMP_DIR_PREFIX as F, provide as Fn, formatErrorChain as Ft, isCiEnvironment as G, provide$2 as Gn, hashFileContents as Gt, isDebugFlagEnabled as H, void_ as Hn, groupBy as Ht, STAGED_SNAPSHOT_ADDITIONAL_CONFIG_FILENAMES as I, provideContext as In, formatReactDoctorError as It, Config as J, makeUnsafe$5 as Jn, isPathInsideDirectory as Jt, isCiOrCodingAgentEnvironment as K, succeed$3 as Kn, highlighter as Kt, TUI_REPORT_COMPACT_MAX_ROWS as L, provideService as Ln, getBaselineDiffPlan as Lt, SENTRY_DSN as M, map$3 as Mn, filterPathsOutsideDirectories as Mt, SENTRY_FLUSH_TIMEOUT_MS as N, orElseSucceed as Nn, filterSourceFiles as Nt, REACT_DOCTOR_CONFIG_PROJECT_NAME as O, decodeUnknownSync as On, createOxlintSpawnSlots as Ot, SENTRY_RELEASE_PREFIX as P, promise as Pn, findLegacyConfig as Pt, LintPartialFailures as Q, AXIOM_DEFAULT_DOMAIN as Qn, isScanComplete as Qt, TUI_REPORT_DETAIL_WIDTH_FRACTION as R, runPromise as Rn, getChangedLineRanges as Rt, BASELINE_FILES_TEMP_DIR_PREFIX as S, Console as Sn, isPlainObject as Sr, clearConfigCache as St, METRIC as T, log as Tn, computeDiagnosticDelta as Tt, ACTION_INPUT_ENVIRONMENT_VARIABLES as U, buildWithScope as Un, hasPublishedFixRecipe as Ut, isGitHookEnvironment as V, try_ as Vn, getEquivalentRuleKeys as Vt, detectRunnerOs as W, mergeAll$1 as Wn, hasSupportedFrameworkOrLibrary as Wt, Git as X, void_$1 as Xn, isReactDoctorError as Xt, Files as Y, fail$5 as Yn, isProjectDiscoveryError as Yt, LEGACY_CONFIG_FILENAME as Z, ParentSpan as Zn, isSameRuleKey as Zt, VERSION as _, shouldUseMaintainabilityLayer as _n, STAGED_FILES_PROJECT_CONFIG_FILENAMES as _r, buildRuleSeverityControls as _t, isEnvFlagEnabled as a, materializeSourceTree as an, DIAGNOSTIC_CATEGORY_BUCKETS as ar, Progress as at, AXIOM_METRICS_DATASET as b, validateConfigTypes as bn, isErrnoException as br, canonicalizeUserRuleKey as bt, setSentryProjectInfo as c, resolveGithubActionsScoreMetadata as cn, GITHUB_ACTIONS_SETUP_URL as cr, Score as ct, isJsonModeActive as d, resolveScanConcurrency as dn, JSX_DUPLICATION_SOURCE_FILE_PATTERN as dr, SupplyChain as dt, listSourceFiles as en, CANONICAL_GITHUB_URL as er, Maintainability as et, setJsonReportDirectory as f, resolveScanTarget as fn, JSX_FILE_PATTERN as fr, anonymizeInPlace as ft, writeJsonReport as g, setColorEnabled as gn, SKILL_NAME as gr, buildRuleDocsUrl as gt, writeJsonErrorReport as h, scrubSensitivePaths as hn, SHARE_BASE_URL as hr, buildJsonReport as ht, isTelemetryEnabled as i, mapWithConcurrency as in, CONFIG_SCHEMA_URL as ir, PerFileLintCacheEnabled as it, SCAN_RESULT_CACHE_MAX_HASHED_FILE_SIZE_BYTES as j, makeSpan$1 as jn, filterDiagnosticsForSurface as jt, RUN_GIT_MAX_BUFFER_BYTES as k, make$30 as kn, detectAiTrainingEnvironment as kt, getRunId as l, resolveLintBatchOrdering as ln, GIT_SHOW_MAX_BUFFER_BYTES as lr, SidecarLintCacheEnabled as lt, writeJsonCancellationReport as m, runInspect as mn, OXLINT_NODE_REQUIREMENT as mr, atomicWriteJson as mt, recordDistribution as n, listWorkspacePackages as nn, COMPILER_CLEANUP_BUCKET as nr, OxlintConcurrency as nt, buildSentryScope as o, mergeReactDoctorConfigs as on, DOCS_URL as or, Project as ot, setJsonReportMode as p, restoreLegacyThrow as pn, MILLISECONDS_PER_SECOND as pr, anonymizeText as pt, isCodingAgentEnvironment as q, close as qn, isMonorepoRoot as qt, toSpanAttributes as r, loadConfigWithSource as rn, COMPILER_CLEANUP_RULE_KEYS as rr, OxlintSpawnSlots as rt, buildSentryProjectContext as s, remainingDeadlineBudgetMs as sn, ENTERPRISE_CONTACT_URL as sr, Reporter as st, recordCount as t, listSourceFilesCooperative as tn, CI_URL as tr, NodeResolver as tt, enableJsonMode as u, resolveReactDoctorCacheDir as un, HTML_FILE_PATTERN as ur, StagedFiles as ut, makeNoopConsole as v, summarizeDiagnostics as vn, getCategoryImpact as vr, buildSkippedChecks as vt, GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS as w, info as wn, toCanonicalPath as wr, computeConfigFingerprint as wt, AXIOM_TRACES_DATASET as x, yieldToEventLoop as xn, isFile as xr, classifyFileContext as xt, AXIOM_INGEST_TOKEN as y, toRelativePath as yn, isDirectory as yr, calculateScore as yt, CliInputError as z, runSync as zn, getDiagnosticRuleIdentity as zt };
76802
76815
 
76803
- //# sourceMappingURL=record-metric-fdCvvcjz.js.map
76804
- //# debugId=4a5f202a-1a71-5847-a8c0-dfcb2cf256ff
76816
+ //# sourceMappingURL=record-metric-DcBAbVVs.js.map
76817
+ //# debugId=c9e04589-a11d-5831-8f4a-ffc7130734b6
@@ -0,0 +1,64 @@
1
+
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a20fe928-d8ad-5c18-9673-1ca2c6c4aa84")}catch(e){}}();
3
+ import { N as SENTRY_FLUSH_TIMEOUT_MS, T as METRIC, Xt as isReactDoctorError, l as getRunId, o as buildSentryScope, t as recordCount } from "./record-metric-DcBAbVVs.js";
4
+ import { n as shutdownTelemetry, r as isExpectedUserError } from "./telemetry-runtime-BxsPVkMH.js";
5
+ import { r as recordRunTraceId, t as getActiveRunTrace } from "./active-run-trace-dlIZeEvb.js";
6
+ import * as Sentry from "@sentry/node";
7
+ //#region src/cli/utils/report-error.ts
8
+ /**
9
+ * Sends an error to Sentry — enriched with a fresh snapshot of the current run
10
+ * (version, platform, CI/agent, invocation, scanned project) and, when a run
11
+ * transaction is in flight, linked to its trace via the scope's propagation
12
+ * context so the crash and its transaction share a `trace_id` — then waits for
13
+ * delivery before the caller exits. The CLI tears down synchronously after
14
+ * rendering an error, so the awaited `flush` is what actually gets the event
15
+ * (and any in-flight transaction) off the machine.
16
+ *
17
+ * Returns the Sentry event id so the caller can surface it as a reference the
18
+ * user can quote when reporting the bug; returns `undefined` when Sentry was
19
+ * never initialized (`--no-score`, tests, or a missing DSN) or delivery failed.
20
+ * Swallows any transport failure so telemetry can never mask the user's
21
+ * original error.
22
+ */
23
+ const reportErrorToSentry = async (error) => {
24
+ if (!Sentry.isInitialized()) return void 0;
25
+ if (isExpectedUserError(error)) return void 0;
26
+ try {
27
+ const { tags, contexts } = buildSentryScope();
28
+ let reason = "unknown";
29
+ if (isReactDoctorError(error)) reason = error.reason._tag;
30
+ else if (error instanceof Error) reason = error.name;
31
+ recordCount(METRIC.cliError, 1, {
32
+ command: typeof tags.command === "string" ? tags.command : void 0,
33
+ reason
34
+ });
35
+ const runTrace = getActiveRunTrace();
36
+ const eventId = Sentry.withScope((scope) => {
37
+ for (const [name, context] of Object.entries(contexts)) scope.setContext(name, context);
38
+ scope.setTags(tags);
39
+ if (runTrace) {
40
+ scope.setContext("axiom", {
41
+ traceId: runTrace.traceId,
42
+ runId: getRunId()
43
+ });
44
+ scope.setPropagationContext({
45
+ traceId: runTrace.traceId,
46
+ parentSpanId: runTrace.spanId,
47
+ sampled: runTrace.sampled,
48
+ sampleRand: Math.random()
49
+ });
50
+ }
51
+ recordRunTraceId(scope.getPropagationContext().traceId);
52
+ return Sentry.captureException(error);
53
+ });
54
+ await Promise.all([Sentry.flush(SENTRY_FLUSH_TIMEOUT_MS), shutdownTelemetry()]);
55
+ return eventId;
56
+ } catch {
57
+ return;
58
+ }
59
+ };
60
+ //#endregion
61
+ export { reportErrorToSentry as t };
62
+
63
+ //# sourceMappingURL=report-error-Cj58fOLO.js.map
64
+ //# debugId=a20fe928-d8ad-5c18-9673-1ca2c6c4aa84
@@ -1,7 +1,7 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="6ab89a67-529d-5725-901f-a2d58b2ccdac")}catch(e){}}();
3
- import { D as REACT_DOCTOR_CONFIG_PROJECT_NAME, t as recordCount, w as METRIC } from "./record-metric-fdCvvcjz.js";
4
- import { u as isCommandAvailable } from "./install-github-workflow-DbnsoR9k.js";
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ceac7dfa-9c50-5226-aa1a-a66357e9048b")}catch(e){}}();
3
+ import { O as REACT_DOCTOR_CONFIG_PROJECT_NAME, T as METRIC, t as recordCount } from "./record-metric-DcBAbVVs.js";
4
+ import { u as isCommandAvailable } from "./install-github-workflow-CHs4pPvZ.js";
5
5
  import { spawn } from "node:child_process";
6
6
  import * as path$1 from "node:path";
7
7
  import process$1 from "node:process";
@@ -275,5 +275,5 @@ const reportWorkflowResult = (workflowSpinner, result, projectRoot) => {
275
275
  //#endregion
276
276
  export { recordGate as a, ACTION_UPGRADE_EVENT as c, INSTALL_AGENTS_PREFERENCE_ID as d, ONBOARDING_EVENT as f, detectAvailableAgents as h, readPreference as i, CI_PITCH_EVENT as l, computeDefaultSelectedAgents as m, openUrl as n, runMigrations as o, SETUP_HINT_EVENT as p, isGatePending as r, writePreference as s, reportWorkflowResult as t, HANDOFF_TARGET_PREFERENCE_ID as u };
277
277
 
278
- //# sourceMappingURL=report-workflow-result-B3YeoXsK.js.map
279
- //# debugId=6ab89a67-529d-5725-901f-a2d58b2ccdac
278
+ //# sourceMappingURL=report-workflow-result-DadOSgvV.js.map
279
+ //# debugId=ceac7dfa-9c50-5226-aa1a-a66357e9048b
@@ -1,8 +1,8 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="974ac7e1-acb8-511d-bda6-833e6bcb52a8")}catch(e){}}();
3
- import { Cr as toCanonicalPath, Mt as filterSourceFiles, qt as isPathInsideDirectory } from "./record-metric-fdCvvcjz.js";
4
- import { L as cliLogger } from "./install-doctor-script-BlIhuJW6.js";
5
- import { d as detectDefaultBranch, f as runCommand, l as prompts, u as isCommandAvailable } from "./install-github-workflow-DbnsoR9k.js";
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f39eeead-907b-50fe-81ab-08e14fcaeeba")}catch(e){}}();
3
+ import { Jt as isPathInsideDirectory, Nt as filterSourceFiles, wr as toCanonicalPath } from "./record-metric-DcBAbVVs.js";
4
+ import { N as cliLogger } from "./install-doctor-script-DaB6kssK.js";
5
+ import { d as detectDefaultBranch, f as runCommand, l as prompts, u as isCommandAvailable } from "./install-github-workflow-CHs4pPvZ.js";
6
6
  import * as path$1 from "node:path";
7
7
  //#region src/cli/utils/path-format.ts
8
8
  const toForwardSlashes = (filePath) => filePath.replaceAll("\\", "/");
@@ -335,5 +335,5 @@ const finalizeScope = async ({ requested, diffInfo, skipPrompts, isQuiet }) => {
335
335
  //#endregion
336
336
  export { isValidBlockingLevel as a, openWorkflowPullRequest as c, warnDeprecatedDiff as i, stageWorkflowFile as l, isScopeValue as n, pickBlockingLevel as o, resolveScope as r, resolveBlockingLevel as s, finalizeScope as t, toForwardSlashes as u };
337
337
 
338
- //# sourceMappingURL=resolve-scope-gLUuBxjI.js.map
339
- //# debugId=974ac7e1-acb8-511d-bda6-833e6bcb52a8
338
+ //# sourceMappingURL=resolve-scope-pqK2skSv.js.map
339
+ //# debugId=f39eeead-907b-50fe-81ab-08e14fcaeeba
@@ -1,8 +1,8 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="2335bf20-6bfa-5a05-8917-39cfda07dd9b")}catch(e){}}();
3
- import { Bt as getEquivalentRuleKeys, Gt as highlighter, Xt as isSameRuleKey, ht as buildRuleDocsUrl, nn as loadConfigWithSource, nr as COMPILER_CLEANUP_RULE_KEYS, t as recordCount, tr as COMPILER_CLEANUP_BUCKET, w as METRIC, xr as isPlainObject, xt as clearConfigCache, yn as validateConfigTypes } from "./record-metric-fdCvvcjz.js";
4
- import { L as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-BlIhuJW6.js";
5
- import { t as readObjectFile } from "./read-object-file-NNLnIQKt.js";
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ae5700bd-f124-572c-86fb-a821bab90cca")}catch(e){}}();
3
+ import { Kt as highlighter, Sr as isPlainObject, St as clearConfigCache, T as METRIC, Vt as getEquivalentRuleKeys, Zt as isSameRuleKey, bn as validateConfigTypes, gt as buildRuleDocsUrl, nr as COMPILER_CLEANUP_BUCKET, rn as loadConfigWithSource, rr as COMPILER_CLEANUP_RULE_KEYS, t as recordCount } from "./record-metric-DcBAbVVs.js";
4
+ import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-DaB6kssK.js";
5
+ import { t as readObjectFile } from "./read-object-file-CacQMaGw.js";
6
6
  import * as path$1 from "node:path";
7
7
  import * as fs$1 from "node:fs";
8
8
  import { REACT_DOCTOR_RULES } from "oxlint-plugin-react-doctor/core";
@@ -577,5 +577,5 @@ const rulesUnignoreTagAction = async (tag, options) => {
577
577
  //#endregion
578
578
  export { rulesCategoryAction, rulesDisableAction, rulesEnableAction, rulesExplainAction, rulesIgnoreTagAction, rulesListAction, rulesSetAction, rulesUnignoreTagAction };
579
579
 
580
- //# sourceMappingURL=rules-B5VC89MR.js.map
581
- //# debugId=2335bf20-6bfa-5a05-8917-39cfda07dd9b
580
+ //# sourceMappingURL=rules-IBWoSmK_.js.map
581
+ //# debugId=ae5700bd-f124-572c-86fb-a821bab90cca