react-doctor 0.9.18 → 0.9.19-dev.2c5d72c

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-Dpv0R267.js → build-section-divider-CJ-x02h0.js} +5 -5
  2. package/dist/{ci-GE7HpZZO.js → ci-BZI5zvYM.js} +13 -13
  3. package/dist/cli.js +25 -25
  4. package/dist/{constants-_b1h6lxa.js → constants-CBmbPBA4.js} +6 -5
  5. package/dist/constants-DNh19qg9.js +2 -2
  6. package/dist/{design-BEEzwtu-.js → design-BKrYfOfm.js} +4 -4
  7. package/dist/{exit-gracefully-Cp3r9mjN.js → exit-gracefully-DcyXZcqm.js} +6 -6
  8. package/dist/{handle-error-UbC9DMvZ.js → handle-error-BQ0C5xTU.js} +6 -6
  9. package/dist/index.d.ts +3 -2
  10. package/dist/index.js +304 -36
  11. package/dist/{inspect-BJleAXM5.js → inspect-CmU5JhiH.js} +16 -16
  12. package/dist/{install-YHgG6Rzc.js → install-DdNBJ1DK.js} +10 -10
  13. package/dist/{install-doctor-script-BvrxLUFo.js → install-doctor-script-CWIsVQ9v.js} +5 -5
  14. package/dist/{install-github-workflow-BABtyGBR.js → install-github-workflow-0fuv6nHk.js} +6 -6
  15. package/dist/{install-react-doctor-WkrWOqc4.js → install-react-doctor-BhGIaCoA.js} +9 -9
  16. package/dist/{is-cache-globally-disabled-BTTLvugj.js → is-cache-globally-disabled-BbehqqPi.js} +4 -4
  17. package/dist/{jsx-runtime-mnxPtbiq.js → jsx-runtime-KvdvQwRU.js} +6 -6
  18. package/dist/{print-branded-header-D1eqThu5.js → print-branded-header-CFeORBcq.js} +4 -4
  19. package/dist/{prompt-runtime-scan-url-DkntQoEi.js → prompt-runtime-scan-url-CiZ9Mq33.js} +5 -5
  20. package/dist/{read-object-file-D9jF1KIF.js → read-object-file-BGC8MAOz.js} +4 -4
  21. package/dist/{record-metric-AbxY4m3i.js → record-metric-XodT8W8_.js} +337 -58
  22. package/dist/{report-error-D3uGbvdG.js → report-error-C6KS9c_Y.js} +6 -6
  23. package/dist/{report-workflow-result-DQ2CaExl.js → report-workflow-result-CR4uqr4z.js} +6 -6
  24. package/dist/{resolve-scan-exit-code-CKO-d5OH.js → resolve-scan-exit-code-C5WlxWT5.js} +14 -13
  25. package/dist/{resolve-scope-D27oa5iH.js → resolve-scope-DxC2ZYT-.js} +6 -6
  26. package/dist/{rules-DMV85h9u.js → rules-BWX6xkKo.js} +7 -7
  27. package/dist/{run-scan-app-BS_zTwT4.js → run-scan-app-B3KtnarC.js} +11 -11
  28. package/dist/{runtime-scan-CNSkDPqQ.js → runtime-scan-BDG1Kr_b.js} +10 -10
  29. package/dist/{sanitize-runtime-url-RZN3i1Kf.js → sanitize-runtime-url-DV0OeCaY.js} +4 -4
  30. package/dist/{scan-CShLBeps.js → scan-BAJlwgKE.js} +10 -10
  31. package/dist/{should-skip-prompts-DrbDyg_I.js → should-skip-prompts-B4MPJTRl.js} +4 -4
  32. package/dist/{should-use-tui-ZZii9Kea.js → should-use-tui-B8X9qDfr.js} +4 -4
  33. package/dist/skills/react-doctor/SKILL.md +6 -0
  34. package/dist/{start-scan-preamble-BbzEgrwo.js → start-scan-preamble-CC9PH7Zr.js} +5 -5
  35. package/dist/start-scan-preamble.js +3 -3
  36. package/dist/{telemetry-runtime-B0ira8s1.js → telemetry-runtime-DCZr7D76.js} +7 -7
  37. package/dist/{version-DjYlkGhN.js → version-BJIZNpXG.js} +5 -5
  38. package/dist/{why-7TTdEYqN.js → why-Bpn1xfg4.js} +4 -4
  39. package/dist/{with-run-span-353qeuiD.js → with-run-span-YA8mLZIX.js} +6 -6
  40. package/package.json +4 -4
@@ -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]="b40ad281-9ccc-5706-9e9d-78634ffd7a5f")}catch(e){}}();
3
- import { s as GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS } from "./constants-_b1h6lxa.js";
4
- import { _t as findGitRepositoryRoot } from "./record-metric-AbxY4m3i.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]="87eef2ea-8366-5b32-96ea-81a2470a5347")}catch(e){}}();
3
+ import { s as GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS } from "./constants-CBmbPBA4.js";
4
+ import { _t as findGitRepositoryRoot } from "./record-metric-XodT8W8_.js";
5
5
  import { t as unrefStdin } from "./unref-stdin-D-NZBFpg.js";
6
- import { N as cliLogger } from "./install-doctor-script-BvrxLUFo.js";
6
+ import { N as cliLogger } from "./install-doctor-script-CWIsVQ9v.js";
7
7
  import { createRequire } from "node:module";
8
8
  import * as fs$1 from "node:fs";
9
9
  import * as path$1 from "node:path";
@@ -281,5 +281,5 @@ const upgradeReactDoctorWorkflowInPlace = (projectRoot) => {
281
281
  //#endregion
282
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 };
283
283
 
284
- //# sourceMappingURL=install-github-workflow-BABtyGBR.js.map
285
- //# debugId=b40ad281-9ccc-5706-9e9d-78634ffd7a5f
284
+ //# sourceMappingURL=install-github-workflow-0fuv6nHk.js.map
285
+ //# debugId=87eef2ea-8366-5b32-96ea-81a2470a5347
@@ -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]="4d81384c-7b21-5a86-8009-156ce6e4d5c8")}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-AbxY4m3i.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-BvrxLUFo.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-BABtyGBR.js";
7
- import { t as shouldSkipPrompts } from "./should-skip-prompts-DrbDyg_I.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-DQ2CaExl.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]="b3ad5536-8540-5af7-9858-512888158a0a")}catch(e){}}();
3
+ import { kt as GITHUB_ACTIONS_SETUP_URL, o as CI_TRUST_COMPANIES, pn as SKILL_NAME, u as METRIC } from "./constants-CBmbPBA4.js";
4
+ import { Mt as highlighter, Un as isErrnoException, t as recordCount, y as CliInputError } from "./record-metric-XodT8W8_.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-CWIsVQ9v.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-0fuv6nHk.js";
7
+ import { t as shouldSkipPrompts } from "./should-skip-prompts-B4MPJTRl.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-CR4uqr4z.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-WkrWOqc4.js.map
1160
- //# debugId=4d81384c-7b21-5a86-8009-156ce6e4d5c8
1159
+ //# sourceMappingURL=install-react-doctor-BhGIaCoA.js.map
1160
+ //# debugId=b3ad5536-8540-5af7-9858-512888158a0a
@@ -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]="d9bfa162-2d10-582c-ba89-8b7f3b4934c0")}catch(e){}}();
3
+ import { a as CACHE_DISABLED_VALUES } from "./constants-CBmbPBA4.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-BbehqqPi.js.map
10
+ //# debugId=d9bfa162-2d10-582c-ba89-8b7f3b4934c0
@@ -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]="2ac2a567-de1c-5b97-a3b6-88e25d08a96b")}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]="f9eab5a3-ded1-5c80-b721-d84bbfaea422")}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-AbxY4m3i.js";
6
- import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-Cp3r9mjN.js";
4
+ import { u as METRIC } from "./constants-CBmbPBA4.js";
5
+ import { t as recordCount } from "./record-metric-XodT8W8_.js";
6
+ import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-DcyXZcqm.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-mnxPtbiq.js.map
25874
- //# debugId=2ac2a567-de1c-5b97-a3b6-88e25d08a96b
25873
+ //# sourceMappingURL=jsx-runtime-KvdvQwRU.js.map
25874
+ //# debugId=f9eab5a3-ded1-5c80-b721-d84bbfaea422
@@ -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]="c9348da1-7cf0-5e2f-89a0-bfa1edd11a57")}catch(e){}}();
3
- import { Mt as highlighter, _ as VERSION, gn as gen, un as log } from "./record-metric-AbxY4m3i.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]="0ccab93e-0ce0-5e9a-b38e-67c4a8d6a840")}catch(e){}}();
3
+ import { Mt as highlighter, _ as VERSION, gn as gen, un as log } from "./record-metric-XodT8W8_.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-D1eqThu5.js.map
22
- //# debugId=c9348da1-7cf0-5e2f-89a0-bfa1edd11a57
21
+ //# sourceMappingURL=print-branded-header-CFeORBcq.js.map
22
+ //# debugId=0ccab93e-0ce0-5e9a-b38e-67c4a8d6a840
@@ -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]="d8378f9a-cdda-580b-882b-1a15077e435d")}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]="78b715d9-7040-5d37-8842-406fc8c384d9")}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-RZN3i1Kf.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-mnxPtbiq.js";
4
+ import { a as RUNTIME_SCAN_LOCAL_DEV_PORTS, t as sanitizeRuntimeUrl, u as RUNTIME_SCAN_MAX_STRING_LENGTH } from "./sanitize-runtime-url-DV0OeCaY.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-KvdvQwRU.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-DkntQoEi.js.map
240
- //# debugId=d8378f9a-cdda-580b-882b-1a15077e435d
239
+ //# sourceMappingURL=prompt-runtime-scan-url-CiZ9Mq33.js.map
240
+ //# debugId=78b715d9-7040-5d37-8842-406fc8c384d9
@@ -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]="6cccb089-da68-54cb-bd96-609808289f31")}catch(e){}}();
3
- import { Gn as isPlainObject } from "./record-metric-AbxY4m3i.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]="9bc1a344-2d2c-5e96-9746-69c1ae57e959")}catch(e){}}();
3
+ import { Gn as isPlainObject } from "./record-metric-XodT8W8_.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-D9jF1KIF.js.map
24
- //# debugId=6cccb089-da68-54cb-bd96-609808289f31
23
+ //# sourceMappingURL=read-object-file-BGC8MAOz.js.map
24
+ //# debugId=9bc1a344-2d2c-5e96-9746-69c1ae57e959