react-doctor 0.9.16 → 0.9.17-dev.066a7c7

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 (41) hide show
  1. package/README.md +19 -23
  2. package/dist/{build-section-divider-DdDfVhIU.js → build-section-divider-Bir8L5EX.js} +5 -5
  3. package/dist/{ci-DB7v3zSt.js → ci-REczH_Cr.js} +18 -14
  4. package/dist/cli.js +40 -31
  5. package/dist/{constants-rmkaA7iw.js → constants-Bwylqy0B.js} +7 -5
  6. package/dist/constants-DNh19qg9.js +2 -2
  7. package/dist/{design-CdjV6tS8.js → design-ZfyyEv09.js} +4 -4
  8. package/dist/{exit-gracefully-DYAZMdvL.js → exit-gracefully-DHm8xU1Z.js} +6 -6
  9. package/dist/{handle-error-rZIxgzIJ.js → handle-error-CMzUBjYP.js} +6 -6
  10. package/dist/index.d.ts +4 -1
  11. package/dist/index.js +10 -7
  12. package/dist/{inspect-td2f87RL.js → inspect-5cPWzG-2.js} +35 -32
  13. package/dist/{install-DFz26Git.js → install-Gj8mFy3f.js} +10 -10
  14. package/dist/{install-doctor-script-DutA3AmF.js → install-doctor-script-tXwokAgA.js} +10 -6
  15. package/dist/{install-github-workflow-CrCUq-fk.js → install-github-workflow-BcHvpq2i.js} +22 -8
  16. package/dist/{install-react-doctor-AjM8eNr6.js → install-react-doctor-C-Ij1VpA.js} +9 -9
  17. package/dist/{is-cache-globally-disabled-DquUESHw.js → is-cache-globally-disabled-BvdYcw6Q.js} +4 -4
  18. package/dist/{jsx-runtime-CmVfaGKL.js → jsx-runtime-CrdOPOJQ.js} +6 -6
  19. package/dist/{print-branded-header-BSPcMb1k.js → print-branded-header--2SHdWPw.js} +4 -4
  20. package/dist/{prompt-runtime-scan-url-9SslR9ci.js → prompt-runtime-scan-url-CIYKBQrq.js} +5 -5
  21. package/dist/{read-object-file-FXP4EgJe.js → read-object-file-DuS2a53u.js} +4 -4
  22. package/dist/{record-metric-DlQ2Xkco.js → record-metric-C5UBQqkS.js} +158 -83
  23. package/dist/{report-error-CsS16tjk.js → report-error-N4i-Hejx.js} +6 -6
  24. package/dist/{report-workflow-result-DL4pJV2h.js → report-workflow-result-Ci5GLxeI.js} +8 -7
  25. package/dist/{should-fail-scan-gate-ASw8KS4V.js → resolve-scan-exit-code-CPHZSx3J.js} +115 -25
  26. package/dist/{resolve-scope-Dydx4htr.js → resolve-scope-K1c-uQP2.js} +6 -6
  27. package/dist/{rules-BITRtAOo.js → rules-CNn-tv4a.js} +7 -7
  28. package/dist/{run-scan-app-BvZAmq01.js → run-scan-app-CHC39n_x.js} +27 -19
  29. package/dist/{runtime-scan-BKWHOq5l.js → runtime-scan-Dj7Us5sQ.js} +10 -10
  30. package/dist/{sanitize-runtime-url-SAbuIQOl.js → sanitize-runtime-url-iIWcHvte.js} +4 -4
  31. package/dist/{scan-BNqVRm8k.js → scan-Bd3LUmCE.js} +14 -13
  32. package/dist/{should-skip-prompts-D86BK2WZ.js → should-skip-prompts-wO06Jnwa.js} +4 -4
  33. package/dist/{should-use-tui--ondyPLd.js → should-use-tui-DnwgOl2f.js} +4 -4
  34. package/dist/skills/react-doctor/SKILL.md +5 -1
  35. package/dist/{start-scan-preamble-CCqs1vP4.js → start-scan-preamble-2uz0joCl.js} +5 -5
  36. package/dist/start-scan-preamble.js +3 -3
  37. package/dist/{telemetry-runtime-DRB6SHxI.js → telemetry-runtime-Cgsi8HjU.js} +7 -7
  38. package/dist/{version-c57nNOfC.js → version-BxebuFjX.js} +5 -5
  39. package/dist/{why-B16Tzl_q.js → why-BwJn5rXa.js} +4 -4
  40. package/dist/{with-run-span-BpoDt67p.js → with-run-span-Fo2rFfpM.js} +6 -6
  41. package/package.json +4 -4
@@ -1,19 +1,19 @@
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]="34204fba-bf29-5b91-a92d-65f341d56d81")}catch(e){}}();
3
- import { N as discardPrefetchedGitCommands, T as STAGED_SNAPSHOT_ADDITIONAL_CONFIG_FILENAMES, lt as CANONICAL_GITHUB_URL, u as METRIC, w as STAGED_FILES_TEMP_DIR_PREFIX, xn as STAGED_FILES_PROJECT_CONFIG_FILENAMES } from "./constants-rmkaA7iw.js";
4
- import { $t as toRelativePath, Bt as mapWithConcurrency, Ct as getDiffInfo, D as isCodingAgentEnvironment, Dn as provide, Dt as hasSupportedFrameworkOrLibrary, E as isCiOrCodingAgentEnvironment, In as messageFromUnknown, K as StagedFiles, Kt as resolveScanTarget, Rt as listWorkspacePackages, S as isDebugFlagEnabled, Ut as remainingDeadlineBudgetMs, Vn as isPlainObject, Z as buildJsonReport, _ as VERSION, _n as provide$1, bn as runPromise, bt as getBaselineDiffPlan, dt as detectAiTrainingEnvironment, f as setJsonReportDirectory, fn as gen, ft as discoverSupportedSubprojects, g as writeJsonReport, gt as findLegacyConfig, h as writeJsonErrorReport, j as Git, kt as highlighter, ln as JsonReport, n as recordDistribution, p as setJsonReportMode, t as recordCount, u as enableJsonMode, un as decodeUnknownSync, xt as getChangedLineRanges, y as CliInputError, zn as isErrnoException } from "./record-metric-DlQ2Xkco.js";
5
- import { n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-DRB6SHxI.js";
6
- import { n as handleUserError, t as handleError } from "./handle-error-rZIxgzIJ.js";
7
- import { t as reportErrorToSentry } from "./report-error-CsS16tjk.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]="36f70838-1849-58d1-a5d2-85595011d826")}catch(e){}}();
3
+ import { N as discardPrefetchedGitCommands, T as STAGED_SNAPSHOT_ADDITIONAL_CONFIG_FILENAMES, lt as CANONICAL_GITHUB_URL, u as METRIC, w as STAGED_FILES_TEMP_DIR_PREFIX, xn as STAGED_FILES_PROJECT_CONFIG_FILENAMES } from "./constants-Bwylqy0B.js";
4
+ import { An as provide, Bt as listWorkspacePackages, Cn as runPromise, D as isCodingAgentEnvironment, E as isCiOrCodingAgentEnvironment, Hn as isErrnoException, Ht as mapWithConcurrency, K as StagedFiles, Kt as remainingDeadlineBudgetMs, S as isDebugFlagEnabled, St as getChangedLineRanges, Wn as isPlainObject, Yt as resolveScanTarget, Z as buildJsonReport, _ as VERSION, _t as findLegacyConfig, bn as provide$1, dt as detectAiTrainingEnvironment, f as setJsonReportDirectory, fn as JsonReport, ft as discoverSupportedSubprojects, g as writeJsonReport, h as writeJsonErrorReport, hn as gen, j as Git, jt as highlighter, kt as hasSupportedFrameworkOrLibrary, n as recordDistribution, nn as toRelativePath, p as setJsonReportMode, pn as decodeUnknownSync, t as recordCount, u as enableJsonMode, wt as getDiffInfo, xt as getBaselineDiffPlan, y as CliInputError, zn as messageFromUnknown } from "./record-metric-C5UBQqkS.js";
5
+ import { n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-Cgsi8HjU.js";
6
+ import { n as handleUserError, t as handleError } from "./handle-error-CMzUBjYP.js";
7
+ import { t as reportErrorToSentry } from "./report-error-N4i-Hejx.js";
8
8
  import { t as toForwardSlashes } from "./path-format-By20mo8A.js";
9
- import { N as cliLogger, c as spinner, i as hasDoctorScript, j as runGitRaw, k as runGit, n as findNearestPackageDirectory, o as isSpinnerSilent, s as setSpinnerSilent } from "./install-doctor-script-DutA3AmF.js";
10
- import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, i as isReactDoctorWorkflowInstalled, l as prompts, s as upgradeWorkflowActionToV2 } from "./install-github-workflow-CrCUq-fk.js";
11
- import { c as openWorkflowPullRequest, i as warnDeprecatedDiff, l as stageWorkflowFile, r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-Dydx4htr.js";
12
- import { t as shouldSkipPrompts } from "./should-skip-prompts-D86BK2WZ.js";
13
- import { A as createInvocationInspect, C as detectLaunchableAgents, D as buildHandoffPayload, E as launchCliAgent, M as resolveMergeBaseRef, N as printHeadlessReport, O as collectProjectSourceFiles, R as printDiagnosticsDump, S as setUpGitHubActions, T as copyToClipboard, U as buildEmptyReportMessage, V as filterDiagnosticsByCategories, W as resolveInvocationOxlintConcurrency, _ as retryMissingProjectScores, a as validateModeFlags, b as filterScansForSurface, c as partitionProjectScanOutcomes, d as buildCodeFrame, f as resolveProjectScan, g as resolveProjectRelativeDirectory, h as resolveProjectSourceFilePaths, i as validateIncludeUntrackedScope, j as inspect, k as deduplicateProjectScans, l as discoverWorkspacePackages, m as resolveProjectDiffIncludePaths, n as formatSkippedProjectsMessage, o as resolveExcludedProjectDirectories, p as resolveProjectChangedLineRanges, s as projectManifestChanged, t as shouldFailScanGate, u as selectProjects, v as resolveWorkspaceDeadCodeOwner, w as CLI_AGENT_BINARIES, x as countUniqueScannedFiles, y as resolveCliInspectOptions } from "./should-fail-scan-gate-ASw8KS4V.js";
14
- import { a as recordGate, g as loadAgentInstall, i as readPreference, o as runMigrations, p as SETUP_HINT_EVENT, r as isGatePending, s as writePreference, u as HANDOFF_TARGET_PREFERENCE_ID } from "./report-workflow-result-DL4pJV2h.js";
15
- import { a as askUpgradeActionVersion, c as recordCiPromptDecision, i as installReactDoctorAgentHooks, l as hasHandledActionUpgrade, o as askAddToGitHubActions, r as findAgentsWithOutdatedReactDoctorHooks, s as hasHandledCiPrompt, t as getSkillSourceDirectory, u as recordActionUpgradeDecision } from "./install-react-doctor-AjM8eNr6.js";
16
- import { t as readObjectFile } from "./read-object-file-FXP4EgJe.js";
9
+ import { N as cliLogger, c as spinner, i as hasDoctorScript, j as runGitRaw, k as runGit, n as findNearestPackageDirectory, o as isSpinnerSilent, s as setSpinnerSilent } from "./install-doctor-script-tXwokAgA.js";
10
+ import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, i as isReactDoctorWorkflowInstalled, l as prompts, s as upgradeWorkflowActionToV2 } from "./install-github-workflow-BcHvpq2i.js";
11
+ import { c as openWorkflowPullRequest, i as warnDeprecatedDiff, l as stageWorkflowFile, r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-K1c-uQP2.js";
12
+ import { t as shouldSkipPrompts } from "./should-skip-prompts-wO06Jnwa.js";
13
+ import { A as createInvocationInspect, C as detectLaunchableAgents, D as buildHandoffPayload, E as launchCliAgent, M as resolveMergeBaseRef, N as printHeadlessReport, O as collectProjectSourceFiles, R as printDiagnosticsDump, S as setUpGitHubActions, T as copyToClipboard, U as buildEmptyReportMessage, V as filterDiagnosticsByCategories, W as resolveInvocationOxlintConcurrency, _ as retryMissingProjectScores, a as validateModeFlags, b as filterScansForSurface, c as partitionProjectScanOutcomes, d as buildCodeFrame, f as resolveProjectScan, g as resolveProjectRelativeDirectory, h as resolveProjectSourceFilePaths, i as validateIncludeUntrackedScope, j as inspect, k as deduplicateProjectScans, l as discoverWorkspacePackages, m as resolveProjectDiffIncludePaths, n as formatSkippedProjectsMessage, o as resolveExcludedProjectDirectories, p as resolveProjectChangedLineRanges, s as projectManifestChanged, t as resolveScanExitCode, u as selectProjects, v as resolveWorkspaceDeadCodeOwner, w as CLI_AGENT_BINARIES, x as countUniqueScannedFiles, y as resolveCliInspectOptions } from "./resolve-scan-exit-code-CPHZSx3J.js";
14
+ import { a as recordGate, g as loadAgentInstall, i as readPreference, o as runMigrations, p as SETUP_HINT_EVENT, r as isGatePending, s as writePreference, u as HANDOFF_TARGET_PREFERENCE_ID } from "./report-workflow-result-Ci5GLxeI.js";
15
+ import { a as askUpgradeActionVersion, c as recordCiPromptDecision, i as installReactDoctorAgentHooks, l as hasHandledActionUpgrade, o as askAddToGitHubActions, r as findAgentsWithOutdatedReactDoctorHooks, s as hasHandledCiPrompt, t as getSkillSourceDirectory, u as recordActionUpgradeDecision } from "./install-react-doctor-C-Ij1VpA.js";
16
+ import { t as readObjectFile } from "./read-object-file-DuS2a53u.js";
17
17
  import * as fs$1 from "node:fs";
18
18
  import fs from "node:fs";
19
19
  import * as path$1 from "node:path";
@@ -24,6 +24,7 @@ const readBaselineReport = (file) => {
24
24
  try {
25
25
  const report = decodeUnknownSync(JsonReport)(JSON.parse(fs.readFileSync(file, "utf-8")));
26
26
  if (!report.ok || report.mode === "baseline" || "baselineDegraded" in report && report.baselineDegraded || report.projects.length === 0 || report.projects.some((project) => project.skippedChecks.length > 0 || project.diagnostics.some((diagnostic) => diagnostic.fingerprint === void 0)) || report.schemaVersion === 3 && (report.skippedProjects?.length || report.projects.some((project) => !project.complete)) || report.diagnostics.some((diagnostic) => diagnostic.fingerprint === void 0)) throw new Error("Use a complete, non-comparison --json report from the current version, with diagnostic fingerprints.");
27
+ if (report.schemaVersion !== 3 || report.projects.some((project) => !project.sourceFilterConfigHash)) throw new Error("Regenerate the base --json report with the current version to record its source-dependent filter settings.");
27
28
  return report;
28
29
  } catch (error) {
29
30
  throw new CliInputError(`Cannot read baseline report "${file}": ${error instanceof Error ? error.message : String(error)}`);
@@ -767,11 +768,14 @@ const finalizeCliScans = (input) => {
767
768
  baseline: outcome.baseline,
768
769
  baselineDegraded: outcome.baselineDegraded
769
770
  }));
770
- if (shouldFailScanGate({
771
+ const exitCode = resolveScanExitCode({
771
772
  scans: input.completedScans,
772
773
  blockingLevel: resolveBlockingLevel(input.flags, input.userConfig),
773
- diagnosticsAreGateExempt: input.isScoreOnly || outcome.baselineDegraded
774
- })) process.exitCode = 1;
774
+ diagnosticsAreGateExempt: input.isScoreOnly || outcome.baselineDegraded,
775
+ warningExitCode: input.flags.warningExitCode
776
+ });
777
+ if (input.flags.warningExitCode !== void 0) recordCount(METRIC.scanWarningExitCodeConfigured);
778
+ if (exitCode !== 0) process.exitCode = exitCode;
775
779
  };
776
780
  //#endregion
777
781
  //#region src/cli/utils/get-staged-files.ts
@@ -1133,6 +1137,7 @@ const isProjectSupplyChainEnabled = ({ flags, projectConfig }) => flags.supplyCh
1133
1137
  const buildProjectInspectOptions = ({ context, projectScan, projectScanPlan, ownsWorkspaceDeadCode }) => {
1134
1138
  const scanDirectory = projectScan.directory;
1135
1139
  const savedBaseline = context.savedBaseline;
1140
+ const baselineProject = savedBaseline?.projects.find((project) => path$1.resolve(context.resolvedDirectory, path$1.relative(savedBaseline.directory, project.directory)) === scanDirectory);
1136
1141
  const baselinePaths = projectScanPlan.includePaths ? new Set([...projectScanPlan.includePaths, ...projectScanPlan.projectBaselineBaseFiles ?? []]) : null;
1137
1142
  return {
1138
1143
  ...context.scanOptions,
@@ -1148,19 +1153,17 @@ const buildProjectInspectOptions = ({ context, projectScan, projectScanPlan, own
1148
1153
  retainExcludedProjectDeadCodeDiagnostics: ownsWorkspaceDeadCode,
1149
1154
  baselineReport: savedBaseline && context.flags.baseline ? {
1150
1155
  file: context.flags.baseline,
1151
- diagnostics: savedBaseline.projects.flatMap((project) => {
1152
- const projectRelativePath = path$1.relative(savedBaseline.directory, project.directory);
1153
- if (path$1.resolve(context.resolvedDirectory, projectRelativePath) !== scanDirectory) return [];
1154
- return project.diagnostics.flatMap((diagnostic) => {
1155
- const filePath = path$1.relative(project.directory, path$1.resolve(project.directory, diagnostic.filePath)).replace(/\\/g, "/");
1156
- if (baselinePaths && !baselinePaths.has(filePath)) return [];
1157
- return [{
1158
- ...diagnostic,
1159
- relatedLocations: diagnostic.relatedLocations ? [...diagnostic.relatedLocations] : void 0,
1160
- filePath
1161
- }];
1162
- });
1163
- }),
1156
+ sourceFilterConfigHash: baselineProject?.sourceFilterConfigHash,
1157
+ sourceRevision: savedBaseline.sourceRevision,
1158
+ diagnostics: baselineProject ? baselineProject.diagnostics.flatMap((diagnostic) => {
1159
+ const filePath = path$1.relative(baselineProject.directory, path$1.resolve(baselineProject.directory, diagnostic.filePath)).replace(/\\/g, "/");
1160
+ if (baselinePaths && !baselinePaths.has(filePath)) return [];
1161
+ return [{
1162
+ ...diagnostic,
1163
+ relatedLocations: diagnostic.relatedLocations ? [...diagnostic.relatedLocations] : void 0,
1164
+ filePath
1165
+ }];
1166
+ }) : [],
1164
1167
  renamedFiles: Object.fromEntries(Object.entries(context.baselineDiffPlan?.renamedFiles ?? {}).map(([basePath, headPath]) => [path$1.relative(scanDirectory, path$1.resolve(context.resolvedDirectory, basePath)).replace(/\\/g, "/"), path$1.relative(scanDirectory, path$1.resolve(context.resolvedDirectory, headPath)).replace(/\\/g, "/")]))
1165
1168
  } : void 0,
1166
1169
  baseline: context.baselineRef !== null && projectScanPlan.projectBaselineBaseFiles !== null && projectScanPlan.projectBaselineHeadFiles !== null ? {
@@ -1520,5 +1523,5 @@ const inspectAction = async (directory, flags, invocationCommand = "inspect", se
1520
1523
  //#endregion
1521
1524
  export { warnDeprecatedFailOn as n, runProjectMigrations as r, inspectAction as t };
1522
1525
 
1523
- //# sourceMappingURL=inspect-td2f87RL.js.map
1524
- //# debugId=34204fba-bf29-5b91-a92d-65f341d56d81
1526
+ //# sourceMappingURL=inspect-5cPWzG-2.js.map
1527
+ //# debugId=36f70838-1849-58d1-a5d2-85595011d826
@@ -1,12 +1,12 @@
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]="e36733ee-6fa4-556f-b358-d2a7b7f614c7")}catch(e){}}();
3
- import { u as METRIC } from "./constants-rmkaA7iw.js";
4
- import { t as recordCount, xn as runSync } from "./record-metric-DlQ2Xkco.js";
5
- import { o as isExpectedUserError } from "./telemetry-runtime-DRB6SHxI.js";
6
- import { n as handleUserError, t as handleError } from "./handle-error-rZIxgzIJ.js";
7
- import { t as reportErrorToSentry } from "./report-error-CsS16tjk.js";
8
- import { t as printBrandedHeader } from "./print-branded-header-BSPcMb1k.js";
9
- import { n as runInstallReactDoctor } from "./install-react-doctor-AjM8eNr6.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]="0ee7fc17-065d-5f7a-b86d-13c4b7bb5932")}catch(e){}}();
3
+ import { u as METRIC } from "./constants-Bwylqy0B.js";
4
+ import { t as recordCount, wn as runSync } from "./record-metric-C5UBQqkS.js";
5
+ import { o as isExpectedUserError } from "./telemetry-runtime-Cgsi8HjU.js";
6
+ import { n as handleUserError, t as handleError } from "./handle-error-CMzUBjYP.js";
7
+ import { t as reportErrorToSentry } from "./report-error-N4i-Hejx.js";
8
+ import { t as printBrandedHeader } from "./print-branded-header--2SHdWPw.js";
9
+ import { n as runInstallReactDoctor } from "./install-react-doctor-C-Ij1VpA.js";
10
10
  //#region src/cli/commands/install.ts
11
11
  const installAction = async (options, command) => {
12
12
  recordCount(METRIC.cliInvoked, 1, { command: "install" });
@@ -30,5 +30,5 @@ const installAction = async (options, command) => {
30
30
  //#endregion
31
31
  export { installAction };
32
32
 
33
- //# sourceMappingURL=install-DFz26Git.js.map
34
- //# debugId=e36733ee-6fa4-556f-b358-d2a7b7f614c7
33
+ //# sourceMappingURL=install-Gj8mFy3f.js.map
34
+ //# debugId=0ee7fc17-065d-5f7a-b86d-13c4b7bb5932
@@ -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]="629e0b97-7b65-5c0d-88aa-1320c5b251dc")}catch(e){}}();
3
- import { B as resolveGitCommand, g as RUN_GIT_MAX_BUFFER_BYTES } from "./constants-rmkaA7iw.js";
4
- import { an as info$1, b as isNonInteractiveEnvironment, in as error$1, kt as highlighter, on as log, sn as warn, xn as runSync } from "./record-metric-DlQ2Xkco.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]="f78fc1cd-c77f-5c2e-9ca8-dffc24e2487f")}catch(e){}}();
3
+ import { B as resolveGitCommand, g as RUN_GIT_MAX_BUFFER_BYTES } from "./constants-Bwylqy0B.js";
4
+ import { b as isNonInteractiveEnvironment, cn as info$1, jt as highlighter, ln as log, sn as error$1, un as warn, wn as runSync } from "./record-metric-C5UBQqkS.js";
5
5
  import { a as chalk, i as stripAnsi, t as eastAsianWidth } from "./get-east-asian-width-DRPy7dqz.js";
6
6
  import * as fs$1 from "node:fs";
7
7
  import * as path$1 from "node:path";
@@ -78,7 +78,11 @@ const runGitRaw = (projectRoot, args) => {
78
78
  "pipe",
79
79
  "ignore"
80
80
  ],
81
- maxBuffer: RUN_GIT_MAX_BUFFER_BYTES
81
+ maxBuffer: RUN_GIT_MAX_BUFFER_BYTES,
82
+ env: {
83
+ ...process.env,
84
+ GIT_DIR: void 0
85
+ }
82
86
  });
83
87
  } catch {
84
88
  return null;
@@ -2814,5 +2818,5 @@ const installReactDoctorScriptStep = (projectRoot) => {
2814
2818
  //#endregion
2815
2819
  export { runGitAsync as A, isRecord as C, readPackageJson as D, packageHasRecordKey as E, writeJsonFile as M, cliLogger as N, resolveGitPath as O, getPackageJsonPath as S, packageHasNestedRecordKey as T, REACT_DOCTOR_COMMAND as _, installReactDoctorScriptStep as a, VITE_PLUS_HOOKS_PATH as b, spinner as c, HUSKY_HOOKS_PATH as d, LEFTHOOK_CONFIG_FILES as f, PRE_COMMIT_CONFIG_FILE as g, OVERCOMMIT_CONFIG_FILE as h, hasDoctorScript as i, runGitRaw as j, runGit as k, HOOK_FILE_NAME as l, NON_BLOCKING_REACT_DOCTOR_COMMAND as m, findNearestPackageDirectory as n, isSpinnerSilent as o, LEGACY_HOOK_RUNNER_RELATIVE_PATH as p, hasDoctorDependency as r, setSpinnerSilent as s, DOCTOR_PACKAGE_NAME as t, HOOK_RELATIVE_PATH as u, SIMPLE_GIT_HOOKS_CONFIG_FILE as v, packageHasDependency as w, ensureTrailingNewline as x, SIMPLE_GIT_HOOKS_PACKAGE_JSON_KEY as y };
2816
2820
 
2817
- //# sourceMappingURL=install-doctor-script-DutA3AmF.js.map
2818
- //# debugId=629e0b97-7b65-5c0d-88aa-1320c5b251dc
2821
+ //# sourceMappingURL=install-doctor-script-tXwokAgA.js.map
2822
+ //# debugId=f78fc1cd-c77f-5c2e-9ca8-dffc24e2487f
@@ -1,8 +1,9 @@
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]="41574371-3f45-5f45-a845-30d19baa8cc4")}catch(e){}}();
3
- import { s as GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS } from "./constants-rmkaA7iw.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]="a3d54d59-482b-5028-a6e3-20a7d07f7449")}catch(e){}}();
3
+ import { s as GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS } from "./constants-Bwylqy0B.js";
4
+ import { gt as findGitRepositoryRoot } from "./record-metric-C5UBQqkS.js";
4
5
  import { t as unrefStdin } from "./unref-stdin-D-NZBFpg.js";
5
- import { N as cliLogger } from "./install-doctor-script-DutA3AmF.js";
6
+ import { N as cliLogger } from "./install-doctor-script-tXwokAgA.js";
6
7
  import { createRequire } from "node:module";
7
8
  import * as fs$1 from "node:fs";
8
9
  import * as path$1 from "node:path";
@@ -191,13 +192,19 @@ jobs:
191
192
  # blocking: error # Gate level: "none" (advisory, the default) | "warning" | "error"
192
193
  # scope: full # On PRs, scan the whole project instead of just changed files
193
194
  # comment: false # Disable the sticky PR summary comment
195
+ # comment-on-clean: false # Skip new comments for clean scans
194
196
  # review-comments: false # Disable inline review comments on changed lines
195
197
  # commit-status: false # Disable the commit status (score + counts, links to the run)
196
198
  # version: "0.4.0" # Pin to a specific react-doctor version instead of "latest"
197
199
  # directory: apps/web # Scan a sub-directory (default: ".")
198
200
  # project: "web,admin" # In a monorepo, scan specific workspace project(s)
199
201
  `;
200
- const getReactDoctorWorkflowPath = (projectRoot) => path$1.join(projectRoot, ".github", "workflows", "react-doctor.yml");
202
+ const getGitRootWorkflowPath = (gitRoot) => path$1.join(gitRoot, ".github", "workflows", "react-doctor.yml");
203
+ const getReactDoctorWorkflowPath = (projectRoot) => {
204
+ const gitRoot = findGitRepositoryRoot(projectRoot);
205
+ if (gitRoot === null) return path$1.join(projectRoot, ".github", "workflows", "react-doctor.yml");
206
+ return getGitRootWorkflowPath(gitRoot);
207
+ };
201
208
  const isReactDoctorWorkflowInstalled = (projectRoot) => fs$1.existsSync(getReactDoctorWorkflowPath(projectRoot));
202
209
  const V1_FLOATING_ACTION_REF = String.raw`millionco/react-doctor@v1(?![\w.])`;
203
210
  const V2_FLOATING_ACTION_REF = "millionco/react-doctor@v2";
@@ -221,7 +228,13 @@ const upgradeWorkflowActionToV2 = (content) => {
221
228
  };
222
229
  };
223
230
  const installReactDoctorWorkflow = (projectRoot, defaultBranch = "main") => {
224
- const workflowPath = getReactDoctorWorkflowPath(projectRoot);
231
+ const gitRoot = findGitRepositoryRoot(projectRoot);
232
+ if (gitRoot === null) return {
233
+ status: "failed",
234
+ workflowPath: path$1.join(projectRoot, ".github", "workflows", "react-doctor.yml"),
235
+ error: "no-git-root"
236
+ };
237
+ const workflowPath = getGitRootWorkflowPath(gitRoot);
225
238
  if (fs$1.existsSync(workflowPath)) return {
226
239
  status: "exists",
227
240
  workflowPath
@@ -236,7 +249,8 @@ const installReactDoctorWorkflow = (projectRoot, defaultBranch = "main") => {
236
249
  } catch {
237
250
  return {
238
251
  status: "failed",
239
- workflowPath
252
+ workflowPath,
253
+ error: "write-failed"
240
254
  };
241
255
  }
242
256
  };
@@ -267,5 +281,5 @@ const upgradeReactDoctorWorkflowInPlace = (projectRoot) => {
267
281
  //#endregion
268
282
  export { readReactDoctorWorkflow as a, workflowUsesV1Action as c, detectDefaultBranch as d, runCommand as f, isReactDoctorWorkflowInstalled as i, prompts as l, getReactDoctorWorkflowPath as n, upgradeReactDoctorWorkflowInPlace as o, installReactDoctorWorkflow as r, upgradeWorkflowActionToV2 as s, buildWorkflowContent as t, isCommandAvailable as u };
269
283
 
270
- //# sourceMappingURL=install-github-workflow-CrCUq-fk.js.map
271
- //# debugId=41574371-3f45-5f45-a845-30d19baa8cc4
284
+ //# sourceMappingURL=install-github-workflow-BcHvpq2i.js.map
285
+ //# debugId=a3d54d59-482b-5028-a6e3-20a7d07f7449
@@ -1,11 +1,11 @@
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]="b618c995-2b84-5ce3-8aad-0e36400b437a")}catch(e){}}();
3
- import { kt as GITHUB_ACTIONS_SETUP_URL, o as CI_TRUST_COMPANIES, pn as SKILL_NAME, u as METRIC } from "./constants-rmkaA7iw.js";
4
- import { kt as highlighter, t as recordCount, y as CliInputError, zn as isErrnoException } from "./record-metric-DlQ2Xkco.js";
5
- import { C as isRecord, D as readPackageJson, E as packageHasRecordKey, M as writeJsonFile, N as cliLogger, O as resolveGitPath, S as getPackageJsonPath, T as packageHasNestedRecordKey, _ as REACT_DOCTOR_COMMAND, a as installReactDoctorScriptStep, b as VITE_PLUS_HOOKS_PATH, c as spinner, d as HUSKY_HOOKS_PATH, f as LEFTHOOK_CONFIG_FILES, g as PRE_COMMIT_CONFIG_FILE, h as OVERCOMMIT_CONFIG_FILE, k as runGit, l as HOOK_FILE_NAME, m as NON_BLOCKING_REACT_DOCTOR_COMMAND, n as findNearestPackageDirectory, p as LEGACY_HOOK_RUNNER_RELATIVE_PATH, r as hasDoctorDependency, t as DOCTOR_PACKAGE_NAME, u as HOOK_RELATIVE_PATH, w as packageHasDependency, x as ensureTrailingNewline } from "./install-doctor-script-DutA3AmF.js";
6
- import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, d as detectDefaultBranch, l as prompts, n as getReactDoctorWorkflowPath, o as upgradeReactDoctorWorkflowInPlace, r as installReactDoctorWorkflow } from "./install-github-workflow-CrCUq-fk.js";
7
- import { t as shouldSkipPrompts } from "./should-skip-prompts-D86BK2WZ.js";
8
- import { a as recordGate, c as ACTION_UPGRADE_EVENT, d as INSTALL_AGENTS_PREFERENCE_ID, g as loadAgentInstall, h as detectAvailableAgents, i as readPreference, l as CI_PITCH_EVENT, m as computeDefaultSelectedAgents, n as openUrl, r as isGatePending, s as writePreference, t as reportWorkflowResult } from "./report-workflow-result-DL4pJV2h.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]="016b8722-814b-5141-afee-98a94212b0cd")}catch(e){}}();
3
+ import { kt as GITHUB_ACTIONS_SETUP_URL, o as CI_TRUST_COMPANIES, pn as SKILL_NAME, u as METRIC } from "./constants-Bwylqy0B.js";
4
+ import { Hn as isErrnoException, jt as highlighter, t as recordCount, y as CliInputError } from "./record-metric-C5UBQqkS.js";
5
+ import { C as isRecord, D as readPackageJson, E as packageHasRecordKey, M as writeJsonFile, N as cliLogger, O as resolveGitPath, S as getPackageJsonPath, T as packageHasNestedRecordKey, _ as REACT_DOCTOR_COMMAND, a as installReactDoctorScriptStep, b as VITE_PLUS_HOOKS_PATH, c as spinner, d as HUSKY_HOOKS_PATH, f as LEFTHOOK_CONFIG_FILES, g as PRE_COMMIT_CONFIG_FILE, h as OVERCOMMIT_CONFIG_FILE, k as runGit, l as HOOK_FILE_NAME, m as NON_BLOCKING_REACT_DOCTOR_COMMAND, n as findNearestPackageDirectory, p as LEGACY_HOOK_RUNNER_RELATIVE_PATH, r as hasDoctorDependency, t as DOCTOR_PACKAGE_NAME, u as HOOK_RELATIVE_PATH, w as packageHasDependency, x as ensureTrailingNewline } from "./install-doctor-script-tXwokAgA.js";
6
+ import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, d as detectDefaultBranch, l as prompts, n as getReactDoctorWorkflowPath, o as upgradeReactDoctorWorkflowInPlace, r as installReactDoctorWorkflow } from "./install-github-workflow-BcHvpq2i.js";
7
+ import { t as shouldSkipPrompts } from "./should-skip-prompts-wO06Jnwa.js";
8
+ import { a as recordGate, c as ACTION_UPGRADE_EVENT, d as INSTALL_AGENTS_PREFERENCE_ID, g as loadAgentInstall, h as detectAvailableAgents, i as readPreference, l as CI_PITCH_EVENT, m as computeDefaultSelectedAgents, n as openUrl, r as isGatePending, s as writePreference, t as reportWorkflowResult } from "./report-workflow-result-Ci5GLxeI.js";
9
9
  import * as fs$1 from "node:fs";
10
10
  import * as path$1 from "node:path";
11
11
  import { execFile } from "node:child_process";
@@ -1156,5 +1156,5 @@ const runInstallReactDoctor = async (options = {}) => {
1156
1156
  //#endregion
1157
1157
  export { askUpgradeActionVersion as a, recordCiPromptDecision as c, installReactDoctorAgentHooks as i, hasHandledActionUpgrade as l, runInstallReactDoctor as n, askAddToGitHubActions as o, findAgentsWithOutdatedReactDoctorHooks as r, hasHandledCiPrompt as s, getSkillSourceDirectory as t, recordActionUpgradeDecision as u };
1158
1158
 
1159
- //# sourceMappingURL=install-react-doctor-AjM8eNr6.js.map
1160
- //# debugId=b618c995-2b84-5ce3-8aad-0e36400b437a
1159
+ //# sourceMappingURL=install-react-doctor-C-Ij1VpA.js.map
1160
+ //# debugId=016b8722-814b-5141-afee-98a94212b0cd
@@ -1,10 +1,10 @@
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]="98cb2e68-1060-5b5b-90da-b3ee0b846211")}catch(e){}}();
3
- import { a as CACHE_DISABLED_VALUES } from "./constants-rmkaA7iw.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]="56e77dbd-5dbe-55ce-9d8e-d4f09e809431")}catch(e){}}();
3
+ import { a as CACHE_DISABLED_VALUES } from "./constants-Bwylqy0B.js";
4
4
  //#region src/cli/utils/is-cache-globally-disabled.ts
5
5
  const isCacheGloballyDisabled = () => CACHE_DISABLED_VALUES.has(process.env.REACT_DOCTOR_NO_CACHE?.toLowerCase() ?? "");
6
6
  //#endregion
7
7
  export { isCacheGloballyDisabled as t };
8
8
 
9
- //# sourceMappingURL=is-cache-globally-disabled-DquUESHw.js.map
10
- //# debugId=98cb2e68-1060-5b5b-90da-b3ee0b846211
9
+ //# sourceMappingURL=is-cache-globally-disabled-BvdYcw6Q.js.map
10
+ //# debugId=56e77dbd-5dbe-55ce-9d8e-d4f09e809431
@@ -1,9 +1,9 @@
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]="fca25b49-43be-5ea1-860f-102404dc6d3f")}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]="6ac09947-f65a-5b32-a526-b1e73496f48e")}catch(e){}}();
3
3
  import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
4
- import { u as METRIC } from "./constants-rmkaA7iw.js";
5
- import { t as recordCount } from "./record-metric-DlQ2Xkco.js";
6
- import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-DYAZMdvL.js";
4
+ import { u as METRIC } from "./constants-Bwylqy0B.js";
5
+ import { t as recordCount } from "./record-metric-C5UBQqkS.js";
6
+ import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-DHm8xU1Z.js";
7
7
  import { a as chalk, i as stripAnsi, n as isFullWidth$1, r as isWide$1 } from "./get-east-asian-width-DRPy7dqz.js";
8
8
  import * as fs$1 from "node:fs";
9
9
  import fs from "node:fs";
@@ -25870,5 +25870,5 @@ var require_jsx_runtime = /* @__PURE__ */ __commonJSMin(((exports, module) => {
25870
25870
  //#endregion
25871
25871
  export { useExitOnCtrlC as a, Spinner as c, useInput as d, Transform as f, Box as h, import_react as i, useStdout as l, Text as m, registerMountedTuiRenderer as n, terminalSymbols as o, render as p, useStdoutDimensions as r, isPrintableInput as s, require_jsx_runtime as t, useApp as u };
25872
25872
 
25873
- //# sourceMappingURL=jsx-runtime-CmVfaGKL.js.map
25874
- //# debugId=fca25b49-43be-5ea1-860f-102404dc6d3f
25873
+ //# sourceMappingURL=jsx-runtime-CrdOPOJQ.js.map
25874
+ //# debugId=6ac09947-f65a-5b32-a526-b1e73496f48e
@@ -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]="e1f50955-8832-522c-97ed-7e94b3218b9d")}catch(e){}}();
3
- import { _ as VERSION, fn as gen, kt as highlighter, on as log } from "./record-metric-DlQ2Xkco.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]="be7fc3eb-f42a-5553-980e-f8b2262faa32")}catch(e){}}();
3
+ import { _ as VERSION, hn as gen, jt as highlighter, ln as log } from "./record-metric-C5UBQqkS.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-BSPcMb1k.js.map
22
- //# debugId=e1f50955-8832-522c-97ed-7e94b3218b9d
21
+ //# sourceMappingURL=print-branded-header--2SHdWPw.js.map
22
+ //# debugId=be7fc3eb-f42a-5553-980e-f8b2262faa32
@@ -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]="1f4c47ef-23d5-5185-8931-3be20636443a")}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]="62b6c1f6-a790-5800-bef8-2d5df8e0c9a7")}catch(e){}}();
3
3
  import { t as unrefStdin } from "./unref-stdin-D-NZBFpg.js";
4
- import { a as RUNTIME_SCAN_LOCAL_DEV_PORTS, t as sanitizeRuntimeUrl, u as RUNTIME_SCAN_MAX_STRING_LENGTH } from "./sanitize-runtime-url-SAbuIQOl.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-CmVfaGKL.js";
4
+ import { a as RUNTIME_SCAN_LOCAL_DEV_PORTS, t as sanitizeRuntimeUrl, u as RUNTIME_SCAN_MAX_STRING_LENGTH } from "./sanitize-runtime-url-iIWcHvte.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-CrdOPOJQ.js";
6
6
  import * as http from "node:http";
7
7
  //#region src/cli/runtime-scan/detect-local-runtime-urls.ts
8
8
  const LOCAL_HTTP_HOSTS = ["127.0.0.1", "::1"];
@@ -236,5 +236,5 @@ const promptRuntimeScanUrl = () => new Promise((resolve) => {
236
236
  //#endregion
237
237
  export { promptRuntimeScanUrl };
238
238
 
239
- //# sourceMappingURL=prompt-runtime-scan-url-9SslR9ci.js.map
240
- //# debugId=1f4c47ef-23d5-5185-8931-3be20636443a
239
+ //# sourceMappingURL=prompt-runtime-scan-url-CIYKBQrq.js.map
240
+ //# debugId=62b6c1f6-a790-5800-bef8-2d5df8e0c9a7
@@ -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]="eb666587-ba94-5ddc-98ec-92a524ae873b")}catch(e){}}();
3
- import { Vn as isPlainObject } from "./record-metric-DlQ2Xkco.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]="382874c6-1dbb-5bf7-8e17-0af428089093")}catch(e){}}();
3
+ import { Wn as isPlainObject } from "./record-metric-C5UBQqkS.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-FXP4EgJe.js.map
24
- //# debugId=eb666587-ba94-5ddc-98ec-92a524ae873b
23
+ //# sourceMappingURL=read-object-file-DuS2a53u.js.map
24
+ //# debugId=382874c6-1dbb-5bf7-8e17-0af428089093