react-doctor 0.9.18 → 0.9.19-dev.4a3bc02
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.
- package/dist/{build-section-divider-Dpv0R267.js → build-section-divider-CEOoUsoj.js} +5 -5
- package/dist/{ci-GE7HpZZO.js → ci-BucUT_Sr.js} +13 -13
- package/dist/cli.js +25 -25
- package/dist/{constants-_b1h6lxa.js → constants-CBmbPBA4.js} +6 -5
- package/dist/constants-DNh19qg9.js +2 -2
- package/dist/{design-BEEzwtu-.js → design-CLd0hyhc.js} +4 -4
- package/dist/{exit-gracefully-Cp3r9mjN.js → exit-gracefully-B_7wjZjj.js} +6 -6
- package/dist/{handle-error-UbC9DMvZ.js → handle-error-BqInKkf7.js} +6 -6
- package/dist/index.d.ts +3 -2
- package/dist/index.js +304 -36
- package/dist/{inspect-BJleAXM5.js → inspect-C7d2nhTn.js} +16 -16
- package/dist/{install-YHgG6Rzc.js → install-Cjngz-0p.js} +10 -10
- package/dist/{install-doctor-script-BvrxLUFo.js → install-doctor-script-DyBPNc9r.js} +5 -5
- package/dist/{install-github-workflow-BABtyGBR.js → install-github-workflow-jegpRPBY.js} +6 -6
- package/dist/{install-react-doctor-WkrWOqc4.js → install-react-doctor-DlusSaXd.js} +9 -9
- package/dist/{is-cache-globally-disabled-BTTLvugj.js → is-cache-globally-disabled-BbehqqPi.js} +4 -4
- package/dist/{jsx-runtime-mnxPtbiq.js → jsx-runtime-ritFCFCG.js} +6 -6
- package/dist/{print-branded-header-D1eqThu5.js → print-branded-header-BIrNrLpc.js} +4 -4
- package/dist/{prompt-runtime-scan-url-DkntQoEi.js → prompt-runtime-scan-url-BVuqZnQH.js} +5 -5
- package/dist/{read-object-file-D9jF1KIF.js → read-object-file-Bv_2gUBv.js} +4 -4
- package/dist/{record-metric-AbxY4m3i.js → record-metric-DTU5MTrZ.js} +337 -58
- package/dist/{report-error-D3uGbvdG.js → report-error-ccXXumqG.js} +6 -6
- package/dist/{report-workflow-result-DQ2CaExl.js → report-workflow-result-BtU9OOGq.js} +6 -6
- package/dist/{resolve-scan-exit-code-CKO-d5OH.js → resolve-scan-exit-code-CkYFkhpc.js} +14 -13
- package/dist/{resolve-scope-D27oa5iH.js → resolve-scope-Vj1V3mfn.js} +6 -6
- package/dist/{rules-DMV85h9u.js → rules-D3z6f6x2.js} +7 -7
- package/dist/{run-scan-app-BS_zTwT4.js → run-scan-app-Ci50MgCV.js} +11 -11
- package/dist/{runtime-scan-CNSkDPqQ.js → runtime-scan-C1CJh34t.js} +10 -10
- package/dist/{sanitize-runtime-url-RZN3i1Kf.js → sanitize-runtime-url-BWUwk5Gm.js} +4 -4
- package/dist/{scan-CShLBeps.js → scan-BOlWgB7g.js} +10 -10
- package/dist/{should-skip-prompts-DrbDyg_I.js → should-skip-prompts-B3KEJdEN.js} +4 -4
- package/dist/{should-use-tui-ZZii9Kea.js → should-use-tui-CyoZrprD.js} +4 -4
- package/dist/skills/react-doctor/SKILL.md +6 -0
- package/dist/{start-scan-preamble-BbzEgrwo.js → start-scan-preamble-CC9PH7Zr.js} +5 -5
- package/dist/start-scan-preamble.js +3 -3
- package/dist/{telemetry-runtime-B0ira8s1.js → telemetry-runtime-bkuPb37Q.js} +7 -7
- package/dist/{version-DjYlkGhN.js → version-CE2xHyXg.js} +5 -5
- package/dist/{why-7TTdEYqN.js → why-CVsCLyXc.js} +4 -4
- package/dist/{with-run-span-353qeuiD.js → with-run-span-BpeZpY64.js} +6 -6
- 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]="
|
|
3
|
-
import { s as GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS } from "./constants-
|
|
4
|
-
import { _t as findGitRepositoryRoot } from "./record-metric-
|
|
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]="a8dd13f7-1dfe-583e-b84c-d4d1a5502861")}catch(e){}}();
|
|
3
|
+
import { s as GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS } from "./constants-CBmbPBA4.js";
|
|
4
|
+
import { _t as findGitRepositoryRoot } from "./record-metric-DTU5MTrZ.js";
|
|
5
5
|
import { t as unrefStdin } from "./unref-stdin-D-NZBFpg.js";
|
|
6
|
-
import { N as cliLogger } from "./install-doctor-script-
|
|
6
|
+
import { N as cliLogger } from "./install-doctor-script-DyBPNc9r.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-
|
|
285
|
-
//# debugId=
|
|
284
|
+
//# sourceMappingURL=install-github-workflow-jegpRPBY.js.map
|
|
285
|
+
//# debugId=a8dd13f7-1dfe-583e-b84c-d4d1a5502861
|
|
@@ -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]="
|
|
3
|
-
import { kt as GITHUB_ACTIONS_SETUP_URL, o as CI_TRUST_COMPANIES, pn as SKILL_NAME, u as METRIC } from "./constants-
|
|
4
|
-
import { Mt as highlighter, Un as isErrnoException, t as recordCount, y as CliInputError } from "./record-metric-
|
|
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-
|
|
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-
|
|
7
|
-
import { t as shouldSkipPrompts } from "./should-skip-prompts-
|
|
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-
|
|
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]="66d004ae-d584-597b-ae82-e1236b73e278")}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-DTU5MTrZ.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-DyBPNc9r.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-jegpRPBY.js";
|
|
7
|
+
import { t as shouldSkipPrompts } from "./should-skip-prompts-B3KEJdEN.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-BtU9OOGq.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-
|
|
1160
|
-
//# debugId=
|
|
1159
|
+
//# sourceMappingURL=install-react-doctor-DlusSaXd.js.map
|
|
1160
|
+
//# debugId=66d004ae-d584-597b-ae82-e1236b73e278
|
package/dist/{is-cache-globally-disabled-BTTLvugj.js → is-cache-globally-disabled-BbehqqPi.js}
RENAMED
|
@@ -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]="
|
|
3
|
-
import { a as CACHE_DISABLED_VALUES } from "./constants-
|
|
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-
|
|
10
|
-
//# debugId=
|
|
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]="
|
|
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]="b07b1d93-7a65-5d13-a9af-ebad0bb8328c")}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-
|
|
5
|
-
import { t as recordCount } from "./record-metric-
|
|
6
|
-
import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-
|
|
4
|
+
import { u as METRIC } from "./constants-CBmbPBA4.js";
|
|
5
|
+
import { t as recordCount } from "./record-metric-DTU5MTrZ.js";
|
|
6
|
+
import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-B_7wjZjj.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-
|
|
25874
|
-
//# debugId=
|
|
25873
|
+
//# sourceMappingURL=jsx-runtime-ritFCFCG.js.map
|
|
25874
|
+
//# debugId=b07b1d93-7a65-5d13-a9af-ebad0bb8328c
|
|
@@ -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]="
|
|
3
|
-
import { Mt as highlighter, _ as VERSION, gn as gen, un as log } from "./record-metric-
|
|
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]="f3b6e70e-4b86-5b1a-a874-c6b5520888c4")}catch(e){}}();
|
|
3
|
+
import { Mt as highlighter, _ as VERSION, gn as gen, un as log } from "./record-metric-DTU5MTrZ.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-
|
|
22
|
-
//# debugId=
|
|
21
|
+
//# sourceMappingURL=print-branded-header-BIrNrLpc.js.map
|
|
22
|
+
//# debugId=f3b6e70e-4b86-5b1a-a874-c6b5520888c4
|
|
@@ -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]="
|
|
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]="adc6a3ab-d050-555a-8db2-d9257da1b28d")}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-
|
|
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-
|
|
4
|
+
import { a as RUNTIME_SCAN_LOCAL_DEV_PORTS, t as sanitizeRuntimeUrl, u as RUNTIME_SCAN_MAX_STRING_LENGTH } from "./sanitize-runtime-url-BWUwk5Gm.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-ritFCFCG.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-
|
|
240
|
-
//# debugId=
|
|
239
|
+
//# sourceMappingURL=prompt-runtime-scan-url-BVuqZnQH.js.map
|
|
240
|
+
//# debugId=adc6a3ab-d050-555a-8db2-d9257da1b28d
|
|
@@ -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]="
|
|
3
|
-
import { Gn as isPlainObject } from "./record-metric-
|
|
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]="9d50681f-0228-5004-8da8-359a0e853253")}catch(e){}}();
|
|
3
|
+
import { Gn as isPlainObject } from "./record-metric-DTU5MTrZ.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-
|
|
24
|
-
//# debugId=
|
|
23
|
+
//# sourceMappingURL=read-object-file-Bv_2gUBv.js.map
|
|
24
|
+
//# debugId=9d50681f-0228-5004-8da8-359a0e853253
|