react-doctor 0.9.18-dev.d1feed1 → 0.9.18-dev.e5c7c99

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 (40) hide show
  1. package/dist/{build-section-divider-CvCslW2i.js → build-section-divider-DrydudjT.js} +5 -5
  2. package/dist/{ci-BiWI9Cfd.js → ci-mk61H2Mm.js} +13 -13
  3. package/dist/cli.js +25 -25
  4. package/dist/{constants-_b1h6lxa.js → constants-ClqojoT2.js} +6 -5
  5. package/dist/constants-DNh19qg9.js +2 -2
  6. package/dist/{design-DcFPOE2v.js → design-CSjnG5pU.js} +4 -4
  7. package/dist/{exit-gracefully-CSarxvtr.js → exit-gracefully-BhlwYRRM.js} +6 -6
  8. package/dist/{handle-error-C8Jtnkvu.js → handle-error-DVPkyy3P.js} +6 -6
  9. package/dist/index.d.ts +3 -2
  10. package/dist/index.js +304 -36
  11. package/dist/{inspect-CzxNaOzL.js → inspect-D78au25J.js} +16 -16
  12. package/dist/{install-doctor-script-CXY9ulVg.js → install-doctor-script-WzMqgy7w.js} +5 -5
  13. package/dist/{install-github-workflow-CtZTc3JB.js → install-github-workflow-RLbnemDz.js} +6 -6
  14. package/dist/{install-R_CLQhyP.js → install-pywsXHQz.js} +10 -10
  15. package/dist/{install-react-doctor-BJT4YBRI.js → install-react-doctor-egm55-No.js} +9 -9
  16. package/dist/{is-cache-globally-disabled-BTTLvugj.js → is-cache-globally-disabled-DnyI809X.js} +4 -4
  17. package/dist/{jsx-runtime-CtdMx1UG.js → jsx-runtime-BmZiPKdh.js} +6 -6
  18. package/dist/{print-branded-header-BBKGpZ1e.js → print-branded-header-CCL-4IpX.js} +4 -4
  19. package/dist/{prompt-runtime-scan-url-BQ9oHtJl.js → prompt-runtime-scan-url-D37GHuev.js} +5 -5
  20. package/dist/{read-object-file-5KkJXmvs.js → read-object-file-CtdX0V75.js} +4 -4
  21. package/dist/{record-metric-BKOubZhF.js → record-metric-DYAM4eMY.js} +337 -58
  22. package/dist/{report-error-D0ldwCuq.js → report-error-DWCUS8Ok.js} +6 -6
  23. package/dist/{report-workflow-result-C5QvbfRq.js → report-workflow-result-CoyBNA48.js} +6 -6
  24. package/dist/{resolve-scan-exit-code-DKOls2cq.js → resolve-scan-exit-code-CL2v5Tn0.js} +14 -13
  25. package/dist/{resolve-scope-CizdteDz.js → resolve-scope-DjMxUYp4.js} +6 -6
  26. package/dist/{rules-CwXP9Jc8.js → rules-DYBWhCCL.js} +7 -7
  27. package/dist/{run-scan-app--GWim0Qb.js → run-scan-app-pqjJbgBs.js} +11 -11
  28. package/dist/{runtime-scan-B7zJYq4L.js → runtime-scan-B8H6EXOl.js} +10 -10
  29. package/dist/{sanitize-runtime-url-DQadGNjw.js → sanitize-runtime-url-DcbqhEpH.js} +4 -4
  30. package/dist/{scan-DJOXSU7v.js → scan-Br6FRpQn.js} +10 -10
  31. package/dist/{should-skip-prompts-C8HttZuw.js → should-skip-prompts-CvrIJxoC.js} +4 -4
  32. package/dist/{should-use-tui-BwfqCMX2.js → should-use-tui-BXxKdJCl.js} +4 -4
  33. package/dist/skills/react-doctor/SKILL.md +6 -0
  34. package/dist/{start-scan-preamble-BbzEgrwo.js → start-scan-preamble-DgEn5GlY.js} +5 -5
  35. package/dist/start-scan-preamble.js +3 -3
  36. package/dist/{telemetry-runtime-CnqHaBss.js → telemetry-runtime-DBJtRE4h.js} +7 -7
  37. package/dist/{version-CCJOMaB3.js → version-peMnHPrv.js} +5 -5
  38. package/dist/{why-BHFxijbW.js → why-iV07DdeL.js} +4 -4
  39. package/dist/{with-run-span-C10dFuKY.js → with-run-span-DOKepUl6.js} +6 -6
  40. package/package.json +4 -4
@@ -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]="dde85b7f-a52d-5405-bbae-b6990ed0792e")}catch(e){}}();
3
- import { u as METRIC } from "./constants-_b1h6lxa.js";
4
- import { Tn as runSync, t as recordCount } from "./record-metric-BKOubZhF.js";
5
- import { o as isExpectedUserError } from "./telemetry-runtime-CnqHaBss.js";
6
- import { n as handleUserError, t as handleError } from "./handle-error-C8Jtnkvu.js";
7
- import { t as reportErrorToSentry } from "./report-error-D0ldwCuq.js";
8
- import { t as printBrandedHeader } from "./print-branded-header-BBKGpZ1e.js";
9
- import { n as runInstallReactDoctor } from "./install-react-doctor-BJT4YBRI.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]="1ad2c977-b4cd-5112-b1e5-e18ce1e7c25f")}catch(e){}}();
3
+ import { u as METRIC } from "./constants-ClqojoT2.js";
4
+ import { Tn as runSync, t as recordCount } from "./record-metric-DYAM4eMY.js";
5
+ import { o as isExpectedUserError } from "./telemetry-runtime-DBJtRE4h.js";
6
+ import { n as handleUserError, t as handleError } from "./handle-error-DVPkyy3P.js";
7
+ import { t as reportErrorToSentry } from "./report-error-DWCUS8Ok.js";
8
+ import { t as printBrandedHeader } from "./print-branded-header-CCL-4IpX.js";
9
+ import { n as runInstallReactDoctor } from "./install-react-doctor-egm55-No.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-R_CLQhyP.js.map
34
- //# debugId=dde85b7f-a52d-5405-bbae-b6990ed0792e
33
+ //# sourceMappingURL=install-pywsXHQz.js.map
34
+ //# debugId=1ad2c977-b4cd-5112-b1e5-e18ce1e7c25f
@@ -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]="48e510db-962f-57af-8570-c37fed435f6b")}catch(e){}}();
3
- import { kt as GITHUB_ACTIONS_SETUP_URL, o as CI_TRUST_COMPANIES, pn as SKILL_NAME, u as METRIC } from "./constants-_b1h6lxa.js";
4
- import { Mt as highlighter, Un as isErrnoException, t as recordCount, y as CliInputError } from "./record-metric-BKOubZhF.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-CXY9ulVg.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-CtZTc3JB.js";
7
- import { t as shouldSkipPrompts } from "./should-skip-prompts-C8HttZuw.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-C5QvbfRq.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]="7700bc96-87b1-5d8f-8f8f-666f53948482")}catch(e){}}();
3
+ import { kt as GITHUB_ACTIONS_SETUP_URL, o as CI_TRUST_COMPANIES, pn as SKILL_NAME, u as METRIC } from "./constants-ClqojoT2.js";
4
+ import { Mt as highlighter, Un as isErrnoException, t as recordCount, y as CliInputError } from "./record-metric-DYAM4eMY.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-WzMqgy7w.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-RLbnemDz.js";
7
+ import { t as shouldSkipPrompts } from "./should-skip-prompts-CvrIJxoC.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-CoyBNA48.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-BJT4YBRI.js.map
1160
- //# debugId=48e510db-962f-57af-8570-c37fed435f6b
1159
+ //# sourceMappingURL=install-react-doctor-egm55-No.js.map
1160
+ //# debugId=7700bc96-87b1-5d8f-8f8f-666f53948482
@@ -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]="53d1559d-afc4-5f2d-83e5-fbc62212e8cd")}catch(e){}}();
3
- import { a as CACHE_DISABLED_VALUES } from "./constants-_b1h6lxa.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]="3cd6c3ba-c403-5e09-b668-03797dcd12e2")}catch(e){}}();
3
+ import { a as CACHE_DISABLED_VALUES } from "./constants-ClqojoT2.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-BTTLvugj.js.map
10
- //# debugId=53d1559d-afc4-5f2d-83e5-fbc62212e8cd
9
+ //# sourceMappingURL=is-cache-globally-disabled-DnyI809X.js.map
10
+ //# debugId=3cd6c3ba-c403-5e09-b668-03797dcd12e2
@@ -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]="f494a4c9-4d01-5efe-b693-6a58c09d1df8")}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]="c7e68899-3bf7-5cb7-ad42-3b10977e89d7")}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-_b1h6lxa.js";
5
- import { t as recordCount } from "./record-metric-BKOubZhF.js";
6
- import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-CSarxvtr.js";
4
+ import { u as METRIC } from "./constants-ClqojoT2.js";
5
+ import { t as recordCount } from "./record-metric-DYAM4eMY.js";
6
+ import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-BhlwYRRM.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-CtdMx1UG.js.map
25874
- //# debugId=f494a4c9-4d01-5efe-b693-6a58c09d1df8
25873
+ //# sourceMappingURL=jsx-runtime-BmZiPKdh.js.map
25874
+ //# debugId=c7e68899-3bf7-5cb7-ad42-3b10977e89d7
@@ -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]="76c82622-512b-5762-9693-b309bf0754f0")}catch(e){}}();
3
- import { Mt as highlighter, _ as VERSION, gn as gen, un as log } from "./record-metric-BKOubZhF.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]="588435e8-8ccd-55da-8c52-51d82456c914")}catch(e){}}();
3
+ import { Mt as highlighter, _ as VERSION, gn as gen, un as log } from "./record-metric-DYAM4eMY.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-BBKGpZ1e.js.map
22
- //# debugId=76c82622-512b-5762-9693-b309bf0754f0
21
+ //# sourceMappingURL=print-branded-header-CCL-4IpX.js.map
22
+ //# debugId=588435e8-8ccd-55da-8c52-51d82456c914
@@ -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]="cf124fca-dcd8-5ba4-9290-a5fbf221f6a1")}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]="90dae8c5-3b1c-5d03-a7f9-3bf8132c345d")}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-DQadGNjw.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-CtdMx1UG.js";
4
+ import { a as RUNTIME_SCAN_LOCAL_DEV_PORTS, t as sanitizeRuntimeUrl, u as RUNTIME_SCAN_MAX_STRING_LENGTH } from "./sanitize-runtime-url-DcbqhEpH.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-BmZiPKdh.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-BQ9oHtJl.js.map
240
- //# debugId=cf124fca-dcd8-5ba4-9290-a5fbf221f6a1
239
+ //# sourceMappingURL=prompt-runtime-scan-url-D37GHuev.js.map
240
+ //# debugId=90dae8c5-3b1c-5d03-a7f9-3bf8132c345d
@@ -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]="95244739-e7ab-5dd6-ba54-7bfcdfd536f6")}catch(e){}}();
3
- import { Gn as isPlainObject } from "./record-metric-BKOubZhF.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]="5a829901-3a9f-53c9-9680-4e8bbcfb3ac4")}catch(e){}}();
3
+ import { Gn as isPlainObject } from "./record-metric-DYAM4eMY.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-5KkJXmvs.js.map
24
- //# debugId=95244739-e7ab-5dd6-ba54-7bfcdfd536f6
23
+ //# sourceMappingURL=read-object-file-CtdX0V75.js.map
24
+ //# debugId=5a829901-3a9f-53c9-9680-4e8bbcfb3ac4