react-doctor 0.9.23-dev.4628244 → 0.9.23-dev.4cfdb9c

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/{build-section-divider-Bhnwx9Y7.js → build-section-divider-BaBan7Ff.js} +5 -5
  2. package/dist/{ci-CRCSWPBc.js → ci-1O7gXSnz.js} +13 -13
  3. package/dist/cli.js +25 -25
  4. package/dist/{constants-EMNGZNtj.js → constants-BXN6vJ3T.js} +21 -8
  5. package/dist/{constants-T2clfs7L.js → constants-zyF-Em_y.js} +10 -3
  6. package/dist/{design-6nyBY45q.js → design-DpYTYnTM.js} +4 -4
  7. package/dist/duplicate-jsx-worker.js +1 -1
  8. package/dist/{exit-gracefully-CGdKePU2.js → exit-gracefully-CtiALhXB.js} +6 -6
  9. package/dist/{handle-error-B7D8fruG.js → handle-error-hdbNfhlq.js} +6 -6
  10. package/dist/index.d.ts +1 -1
  11. package/dist/index.js +913 -60
  12. package/dist/{inspect-CBKoNwf1.js → inspect-DNLvIk7r.js} +16 -16
  13. package/dist/{install-BGT2mUYH.js → install-D6J2lcYB.js} +10 -10
  14. package/dist/{install-doctor-script-DcaGZRhP.js → install-doctor-script-GoeySI3O.js} +5 -5
  15. package/dist/{install-github-workflow-CTU5_DQ2.js → install-github-workflow-CxmWt9TR.js} +6 -6
  16. package/dist/{install-react-doctor-CLsAm_Jq.js → install-react-doctor-C2puBjEv.js} +9 -9
  17. package/dist/{is-cache-globally-disabled-CYjFzsDs.js → is-cache-globally-disabled-DaT77eEZ.js} +4 -4
  18. package/dist/{jsx-runtime-C6-t7nxf.js → jsx-runtime-Bho3jUm8.js} +6 -6
  19. package/dist/oxlint-worker.js +1 -1
  20. package/dist/{print-branded-header-Bi7SVAbn.js → print-branded-header-DZQTJQJM.js} +4 -4
  21. package/dist/project-analysis-worker.js +105 -7
  22. package/dist/{prompt-runtime-scan-url-XdoVkitC.js → prompt-runtime-scan-url-CNZbVZsa.js} +5 -5
  23. package/dist/{read-object-file-Dp4q8YTK.js → read-object-file-CCYsZduA.js} +4 -4
  24. package/dist/{record-metric-Y776Vbwj.js → record-metric-BT06J66M.js} +902 -61
  25. package/dist/{report-error-DSXkaelZ.js → report-error-C8Q2T-Qs.js} +6 -6
  26. package/dist/{report-workflow-result-CZDScdbn.js → report-workflow-result-D3M0yDOY.js} +6 -6
  27. package/dist/{resolve-scan-exit-code-CdCaqzhV.js → resolve-scan-exit-code-Cqs_nz7Z.js} +13 -13
  28. package/dist/{resolve-scope-DEdEAzYs.js → resolve-scope-CWH_h118.js} +6 -6
  29. package/dist/{rules-BSOQNyyj.js → rules-0tRG1qnr.js} +7 -7
  30. package/dist/{run-scan-app-Y4mRIN9e.js → run-scan-app-6xYMlhmk.js} +11 -11
  31. package/dist/{runtime-scan-79K6AjRn.js → runtime-scan-BdYQzNHI.js} +10 -10
  32. package/dist/{sanitize-runtime-url-DDpVhBL2.js → sanitize-runtime-url-Aahj_lDC.js} +4 -4
  33. package/dist/{scan-jaaTSG_I.js → scan-CC7EOu2G.js} +10 -10
  34. package/dist/{should-skip-prompts-BcEsn4iH.js → should-skip-prompts-CJOnSi1j.js} +4 -4
  35. package/dist/{should-use-tui-tqzyUoLT.js → should-use-tui-xOL_TLSA.js} +4 -4
  36. package/dist/{start-scan-preamble-Zd-z2ssT.js → start-scan-preamble-CTa9UHkf.js} +5 -5
  37. package/dist/start-scan-preamble.js +3 -3
  38. package/dist/{telemetry-runtime-CY9azsA9.js → telemetry-runtime-VlftB1vL.js} +7 -7
  39. package/dist/{version-CjHT5aan.js → version-U4_1Leal.js} +5 -5
  40. package/dist/{why-DHxXxq-H.js → why-D6QtcQsb.js} +4 -4
  41. package/dist/{with-run-span-mzbVv3D4.js → with-run-span-CQRperDs.js} +6 -6
  42. 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]="28fe721f-d532-56e5-a29e-ad6c62dc30e9")}catch(e){}}();
3
- import { N as discardPrefetchedGitCommands, Sn as STAGED_FILES_PROJECT_CONFIG_FILENAMES, T as STAGED_SNAPSHOT_ADDITIONAL_CONFIG_FILENAMES, u as METRIC, ut as CANONICAL_GITHUB_URL, w as STAGED_FILES_TEMP_DIR_PREFIX } from "./constants-EMNGZNtj.js";
4
- import { Ct as getChangedLineRanges, D as isCodingAgentEnvironment, E as isCiOrCodingAgentEnvironment, Ht as listWorkspacePackages, Jt as remainingDeadlineBudgetMs, K as StagedFiles, Kn as isPlainObject, Mn as provide, Nt as highlighter, S as isDebugFlagEnabled, Sn as provide$1, St as getBaselineDiffPlan, Tn as runPromise, Tt as getDiffInfo, Vn as messageFromUnknown, Wn as isErrnoException, Wt as mapWithConcurrency, Z as buildJsonReport, Zt as resolveScanTarget, _ as VERSION, _n as gen, f as setJsonReportDirectory, ft as detectAiTrainingEnvironment, g as writeJsonReport, h as writeJsonErrorReport, hn as decodeUnknownSync, in as toRelativePath, j as Git, jt as hasSupportedFrameworkOrLibrary, mn as JsonReport, n as recordDistribution, p as setJsonReportMode, pt as discoverSupportedSubprojects, t as recordCount, u as enableJsonMode, vt as findLegacyConfig, y as CliInputError } from "./record-metric-Y776Vbwj.js";
5
- import { n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-CY9azsA9.js";
6
- import { n as handleUserError, t as handleError } from "./handle-error-B7D8fruG.js";
7
- import { t as reportErrorToSentry } from "./report-error-DSXkaelZ.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]="72617e24-1e37-5193-a6fe-8503cebd2f0c")}catch(e){}}();
3
+ import { N as discardPrefetchedGitCommands, T as STAGED_SNAPSHOT_ADDITIONAL_CONFIG_FILENAMES, u as METRIC, ut as CANONICAL_GITHUB_URL, w as STAGED_FILES_TEMP_DIR_PREFIX, wn as STAGED_FILES_PROJECT_CONFIG_FILENAMES } from "./constants-BXN6vJ3T.js";
4
+ import { Ct as getChangedLineRanges, D as isCodingAgentEnvironment, E as isCiOrCodingAgentEnvironment, Ht as listWorkspacePackages, Jt as remainingDeadlineBudgetMs, K as StagedFiles, Kn as isPlainObject, Mn as provide, Nt as highlighter, S as isDebugFlagEnabled, Sn as provide$1, St as getBaselineDiffPlan, Tn as runPromise, Tt as getDiffInfo, Vn as messageFromUnknown, Wn as isErrnoException, Wt as mapWithConcurrency, Z as buildJsonReport, Zt as resolveScanTarget, _ as VERSION, _n as gen, f as setJsonReportDirectory, ft as detectAiTrainingEnvironment, g as writeJsonReport, h as writeJsonErrorReport, hn as decodeUnknownSync, in as toRelativePath, j as Git, jt as hasSupportedFrameworkOrLibrary, mn as JsonReport, n as recordDistribution, p as setJsonReportMode, pt as discoverSupportedSubprojects, t as recordCount, u as enableJsonMode, vt as findLegacyConfig, y as CliInputError } from "./record-metric-BT06J66M.js";
5
+ import { n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-VlftB1vL.js";
6
+ import { n as handleUserError, t as handleError } from "./handle-error-hdbNfhlq.js";
7
+ import { t as reportErrorToSentry } from "./report-error-C8Q2T-Qs.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-DcaGZRhP.js";
10
- import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, i as isReactDoctorWorkflowInstalled, l as prompts, s as upgradeWorkflowActionToV2 } from "./install-github-workflow-CTU5_DQ2.js";
11
- import { c as openWorkflowPullRequest, i as warnDeprecatedDiff, l as stageWorkflowFile, r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-DEdEAzYs.js";
12
- import { t as shouldSkipPrompts } from "./should-skip-prompts-BcEsn4iH.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-CdCaqzhV.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-CZDScdbn.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-CLsAm_Jq.js";
16
- import { t as readObjectFile } from "./read-object-file-Dp4q8YTK.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-GoeySI3O.js";
10
+ import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, i as isReactDoctorWorkflowInstalled, l as prompts, s as upgradeWorkflowActionToV2 } from "./install-github-workflow-CxmWt9TR.js";
11
+ import { c as openWorkflowPullRequest, i as warnDeprecatedDiff, l as stageWorkflowFile, r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-CWH_h118.js";
12
+ import { t as shouldSkipPrompts } from "./should-skip-prompts-CJOnSi1j.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-Cqs_nz7Z.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-D3M0yDOY.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-C2puBjEv.js";
16
+ import { t as readObjectFile } from "./read-object-file-CCYsZduA.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";
@@ -1528,5 +1528,5 @@ const inspectAction = async (directory, flags, invocationCommand = "inspect", se
1528
1528
  //#endregion
1529
1529
  export { warnDeprecatedFailOn as n, runProjectMigrations as r, inspectAction as t };
1530
1530
 
1531
- //# sourceMappingURL=inspect-CBKoNwf1.js.map
1532
- //# debugId=28fe721f-d532-56e5-a29e-ad6c62dc30e9
1531
+ //# sourceMappingURL=inspect-DNLvIk7r.js.map
1532
+ //# debugId=72617e24-1e37-5193-a6fe-8503cebd2f0c
@@ -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]="e3f9604b-f3f8-5367-bffd-d4f0dadfa14b")}catch(e){}}();
3
- import { u as METRIC } from "./constants-EMNGZNtj.js";
4
- import { En as runSync, t as recordCount } from "./record-metric-Y776Vbwj.js";
5
- import { o as isExpectedUserError } from "./telemetry-runtime-CY9azsA9.js";
6
- import { n as handleUserError, t as handleError } from "./handle-error-B7D8fruG.js";
7
- import { t as reportErrorToSentry } from "./report-error-DSXkaelZ.js";
8
- import { t as printBrandedHeader } from "./print-branded-header-Bi7SVAbn.js";
9
- import { n as runInstallReactDoctor } from "./install-react-doctor-CLsAm_Jq.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]="af819b1d-65b1-5b7c-a1ca-f22978825a98")}catch(e){}}();
3
+ import { u as METRIC } from "./constants-BXN6vJ3T.js";
4
+ import { En as runSync, t as recordCount } from "./record-metric-BT06J66M.js";
5
+ import { o as isExpectedUserError } from "./telemetry-runtime-VlftB1vL.js";
6
+ import { n as handleUserError, t as handleError } from "./handle-error-hdbNfhlq.js";
7
+ import { t as reportErrorToSentry } from "./report-error-C8Q2T-Qs.js";
8
+ import { t as printBrandedHeader } from "./print-branded-header-DZQTJQJM.js";
9
+ import { n as runInstallReactDoctor } from "./install-react-doctor-C2puBjEv.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-BGT2mUYH.js.map
34
- //# debugId=e3f9604b-f3f8-5367-bffd-d4f0dadfa14b
33
+ //# sourceMappingURL=install-D6J2lcYB.js.map
34
+ //# debugId=af819b1d-65b1-5b7c-a1ca-f22978825a98
@@ -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]="98211f7a-9226-5ec4-82d2-20dc6e8bd1de")}catch(e){}}();
3
- import { B as resolveGitCommand, g as RUN_GIT_MAX_BUFFER_BYTES } from "./constants-EMNGZNtj.js";
4
- import { En as runSync, Nt as highlighter, b as isNonInteractiveEnvironment, dn as log, fn as warn, ln as error$1, un as info$1 } from "./record-metric-Y776Vbwj.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]="a1ea8d85-3330-5a60-81f9-32d5e3934049")}catch(e){}}();
3
+ import { B as resolveGitCommand, g as RUN_GIT_MAX_BUFFER_BYTES } from "./constants-BXN6vJ3T.js";
4
+ import { En as runSync, Nt as highlighter, b as isNonInteractiveEnvironment, dn as log, fn as warn, ln as error$1, un as info$1 } from "./record-metric-BT06J66M.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";
@@ -2818,5 +2818,5 @@ const installReactDoctorScriptStep = (projectRoot) => {
2818
2818
  //#endregion
2819
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 };
2820
2820
 
2821
- //# sourceMappingURL=install-doctor-script-DcaGZRhP.js.map
2822
- //# debugId=98211f7a-9226-5ec4-82d2-20dc6e8bd1de
2821
+ //# sourceMappingURL=install-doctor-script-GoeySI3O.js.map
2822
+ //# debugId=a1ea8d85-3330-5a60-81f9-32d5e3934049
@@ -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]="03eb8198-9f7b-53a6-a22e-49527c433b41")}catch(e){}}();
3
- import { s as GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS } from "./constants-EMNGZNtj.js";
4
- import { _t as findGitRepositoryRoot } from "./record-metric-Y776Vbwj.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]="b43f584b-f198-5033-b812-57ac31c21871")}catch(e){}}();
3
+ import { s as GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS } from "./constants-BXN6vJ3T.js";
4
+ import { _t as findGitRepositoryRoot } from "./record-metric-BT06J66M.js";
5
5
  import { t as unrefStdin } from "./unref-stdin-D-NZBFpg.js";
6
- import { N as cliLogger } from "./install-doctor-script-DcaGZRhP.js";
6
+ import { N as cliLogger } from "./install-doctor-script-GoeySI3O.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-CTU5_DQ2.js.map
285
- //# debugId=03eb8198-9f7b-53a6-a22e-49527c433b41
284
+ //# sourceMappingURL=install-github-workflow-CxmWt9TR.js.map
285
+ //# debugId=b43f584b-f198-5033-b812-57ac31c21871
@@ -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]="05c4497b-2c26-5597-b4bf-2438d9ca8559")}catch(e){}}();
3
- import { At as GITHUB_ACTIONS_SETUP_URL, mn as SKILL_NAME, o as CI_TRUST_COMPANIES, u as METRIC } from "./constants-EMNGZNtj.js";
4
- import { Nt as highlighter, Wn as isErrnoException, t as recordCount, y as CliInputError } from "./record-metric-Y776Vbwj.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-DcaGZRhP.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-CTU5_DQ2.js";
7
- import { t as shouldSkipPrompts } from "./should-skip-prompts-BcEsn4iH.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-CZDScdbn.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]="ccee73ae-cfda-5a75-ab79-992556319feb")}catch(e){}}();
3
+ import { At as GITHUB_ACTIONS_SETUP_URL, gn as SKILL_NAME, o as CI_TRUST_COMPANIES, u as METRIC } from "./constants-BXN6vJ3T.js";
4
+ import { Nt as highlighter, Wn as isErrnoException, t as recordCount, y as CliInputError } from "./record-metric-BT06J66M.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-GoeySI3O.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-CxmWt9TR.js";
7
+ import { t as shouldSkipPrompts } from "./should-skip-prompts-CJOnSi1j.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-D3M0yDOY.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-CLsAm_Jq.js.map
1160
- //# debugId=05c4497b-2c26-5597-b4bf-2438d9ca8559
1159
+ //# sourceMappingURL=install-react-doctor-C2puBjEv.js.map
1160
+ //# debugId=ccee73ae-cfda-5a75-ab79-992556319feb
@@ -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]="af580742-9d87-5789-8d30-fb0822fd8beb")}catch(e){}}();
3
- import { a as CACHE_DISABLED_VALUES } from "./constants-EMNGZNtj.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]="6040eb82-7708-5a31-9cbc-e25a153dc2ee")}catch(e){}}();
3
+ import { a as CACHE_DISABLED_VALUES } from "./constants-BXN6vJ3T.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-CYjFzsDs.js.map
10
- //# debugId=af580742-9d87-5789-8d30-fb0822fd8beb
9
+ //# sourceMappingURL=is-cache-globally-disabled-DaT77eEZ.js.map
10
+ //# debugId=6040eb82-7708-5a31-9cbc-e25a153dc2ee
@@ -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]="10ee3e8f-5300-55d0-b2e9-bd93f745c60f")}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]="1d7b75eb-9b11-52b0-a5a9-439ccd5ebab3")}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-EMNGZNtj.js";
5
- import { t as recordCount } from "./record-metric-Y776Vbwj.js";
6
- import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-CGdKePU2.js";
4
+ import { u as METRIC } from "./constants-BXN6vJ3T.js";
5
+ import { t as recordCount } from "./record-metric-BT06J66M.js";
6
+ import { n as registerActiveTuiRenderer, t as exitGracefully } from "./exit-gracefully-CtiALhXB.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-C6-t7nxf.js.map
25874
- //# debugId=10ee3e8f-5300-55d0-b2e9-bd93f745c60f
25873
+ //# sourceMappingURL=jsx-runtime-Bho3jUm8.js.map
25874
+ //# debugId=1d7b75eb-9b11-52b0-a5a9-439ccd5ebab3
@@ -1,6 +1,6 @@
1
1
 
2
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]="036daa0d-20ef-5a7e-b004-e4f41f80cf0c")}catch(e){}}();
3
- import { o as OXLINT_WORKER_JOB_END_MARKER, s as REACT_DOCTOR_PLUGIN_RESET_HOOK_KEY } from "./constants-T2clfs7L.js";
3
+ import { o as OXLINT_WORKER_JOB_END_MARKER, s as REACT_DOCTOR_PLUGIN_RESET_HOOK_KEY } from "./constants-zyF-Em_y.js";
4
4
  import * as fs$1 from "node:fs";
5
5
  import * as path$1 from "node:path";
6
6
  import { pathToFileURL } from "node:url";
@@ -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]="f87860b9-c9c5-5886-9a0e-d634c0fd222d")}catch(e){}}();
3
- import { Nt as highlighter, _ as VERSION, _n as gen, dn as log } from "./record-metric-Y776Vbwj.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]="d1544c1f-19ec-5e21-8875-bbb8c2be85a8")}catch(e){}}();
3
+ import { Nt as highlighter, _ as VERSION, _n as gen, dn as log } from "./record-metric-BT06J66M.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-Bi7SVAbn.js.map
22
- //# debugId=f87860b9-c9c5-5886-9a0e-d634c0fd222d
21
+ //# sourceMappingURL=print-branded-header-DZQTJQJM.js.map
22
+ //# debugId=d1544c1f-19ec-5e21-8875-bbb8c2be85a8
@@ -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]="81139e97-fbde-59ee-9b65-cb0499a5510a")}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]="670a5edf-6d7a-5b42-a22b-205573f9c498")}catch(e){}}();
3
3
  import { i as __toESM, n as __exportAll, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
4
4
  import { n as require_picomatch$2, t as require_semver } from "./semver-BZIuy1gP.js";
5
5
  import { t as typescriptBinding } from "./_react-doctor_require-typescript-DXQDYeWK.js";
6
6
  import { t as unwrapTypescriptExpression } from "./unwrap-typescript-expression-CrEPQUWz.js";
7
- import { a as MAX_GLOB_PATTERN_LENGTH_CHARS, c as GIT_CHECK_ATTR_MAX_BUFFER_BYTES } from "./constants-T2clfs7L.js";
7
+ import { a as MAX_GLOB_PATTERN_LENGTH_CHARS, c as GIT_CHECK_ATTR_MAX_BUFFER_BYTES } from "./constants-zyF-Em_y.js";
8
8
  import { n as isPlainObject } from "./fs-utils-C88IbqFa.js";
9
9
  import { builtinModules } from "node:module";
10
10
  import * as fs$1 from "node:fs";
@@ -38069,7 +38069,7 @@ const NESTED_EXPO_CONFIG_FILE_GLOBS = [
38069
38069
  ];
38070
38070
  const EXPO_REACT_NATIVE_DEPENDENCIES = new Set(["expo", "react-native"]);
38071
38071
  const EXPO_PLUGIN_RESOLVABLE_EXTENSIONS = SOURCE_EXTENSIONS$3.map((sourceExtension) => `.${sourceExtension}`);
38072
- const isRecord = (value) => typeof value === "object" && value !== null;
38072
+ const isRecord$1 = (value) => typeof value === "object" && value !== null;
38073
38073
  const isExpoOrReactNativeWorkspace = (dependencies) => [...EXPO_REACT_NATIVE_DEPENDENCIES].some((dependencyName) => dependencyName in dependencies);
38074
38074
  const isLocalExpoPluginPath = (value) => (value.startsWith("./") || value.startsWith("../")) && !value.includes("*") && !value.includes("?");
38075
38075
  const isFile = (filePath) => {
@@ -38220,9 +38220,9 @@ const collectPluginPathsFromJsonValue = (value) => {
38220
38220
  const collectExpoPluginPathsFromAppJson = (configPath, entries, packageNamePlugins, rootDirectory) => {
38221
38221
  const parsedJson = JSON.parse(readFileSync(configPath, "utf8"));
38222
38222
  const configDirectory = dirname(configPath);
38223
- if (!isRecord(parsedJson)) return;
38223
+ if (!isRecord$1(parsedJson)) return;
38224
38224
  const expoConfig = parsedJson.expo;
38225
- const expoPluginPaths = isRecord(expoConfig) ? collectPluginPathsFromJsonValue(expoConfig.plugins) : [];
38225
+ const expoPluginPaths = isRecord$1(expoConfig) ? collectPluginPathsFromJsonValue(expoConfig.plugins) : [];
38226
38226
  for (const pluginPath of [...expoPluginPaths, ...collectPluginPathsFromJsonValue(parsedJson.plugins)]) addExpoPluginEntry(entries, packageNamePlugins, rootDirectory, configDirectory, pluginPath);
38227
38227
  };
38228
38228
  const collectExpoPluginPathsFromConfig = (configPath, entries, packageNamePlugins, rootDirectory) => {
@@ -45622,6 +45622,9 @@ const collectDynamicBuildConsumedExportKeys = (packageDirectory, scripts) => {
45622
45622
  return consumedExportKeys;
45623
45623
  };
45624
45624
  //#endregion
45625
+ //#region ../core/src/utils/is-record.ts
45626
+ const isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
45627
+ //#endregion
45625
45628
  //#region ../core/src/project-analysis/utils/collect-convention-consumed-export-keys.ts
45626
45629
  const NEXT_CONFIG_FILENAMES = [
45627
45630
  "next.config.ts",
@@ -45632,6 +45635,62 @@ const NEXT_CONFIG_FILENAMES = [
45632
45635
  const NEXT_ROUTE_SEGMENT_MODULE_PATTERN = /^(?:src\/)?app\/(?:.*\/)?(?:page|layout|route|default|loading|error|not-found|template|global-error|forbidden|unauthorized|opengraph-image|twitter-image|icon|apple-icon|manifest|sitemap|robots)\.(?:ts|tsx|js|jsx)$/;
45633
45636
  const REACT_EMAIL_TEMPLATE_EXTENSION_PATTERN = /\.(?:js|jsx|tsx)$/;
45634
45637
  const hasDependency = (packageMetadata, dependencyName) => packageMetadata.dependencyNames.has(dependencyName);
45638
+ const resolveLiteralPackagePath = (path, directory) => {
45639
+ const normalized = path.replace(/^\.\//, "").replace(/\/$/, "");
45640
+ if (!/^[\w@.-]+(?:\/[\w@.-]+)*$/.test(normalized) || normalized.split("/").some((part) => part === "." || part === ".." || part === "node_modules")) return void 0;
45641
+ const resolved = resolve(directory, normalized);
45642
+ const canonicalPath = toFilesystemIdentityPath(resolved);
45643
+ return relative(directory, resolved) === relative(directory, canonicalPath) ? canonicalPath : void 0;
45644
+ };
45645
+ const portablePackageFilePath = (file, packageDirectory) => {
45646
+ const filePath = resolve(file);
45647
+ const lexicalPackageDirectory = findNearestPackageDirectory(filePath);
45648
+ if (!lexicalPackageDirectory || toFilesystemIdentityPath(lexicalPackageDirectory) !== packageDirectory) return void 0;
45649
+ const packageRelativeFile = relative(lexicalPackageDirectory, filePath);
45650
+ const canonicalPath = toFilesystemIdentityPath(filePath);
45651
+ return relative(packageDirectory, canonicalPath) === packageRelativeFile ? canonicalPath : void 0;
45652
+ };
45653
+ const collectTypeVersionExports = (packageJson, packageDirectory) => {
45654
+ const selector = packageJson.typesVersions;
45655
+ const publishConfig = packageJson.publishConfig;
45656
+ if (isRecord(publishConfig) && [
45657
+ "directory",
45658
+ "exports",
45659
+ "files",
45660
+ "name",
45661
+ "typesVersions"
45662
+ ].some((field) => Object.hasOwn(publishConfig, field))) return void 0;
45663
+ if (typeof packageJson.name !== "string" || packageJson.name.length === 0 || packageJson.private === true || packageJson.exports !== void 0 || !isRecord(selector) || Object.keys(selector).length !== 1 || !isRecord(selector["*"]) || !Array.isArray(packageJson.files) || packageJson.files.length === 0) return void 0;
45664
+ const packedPaths = [];
45665
+ for (const item of packageJson.files) {
45666
+ if (typeof item !== "string") return void 0;
45667
+ const packedPath = resolveLiteralPackagePath(item, packageDirectory);
45668
+ if (!packedPath) return void 0;
45669
+ packedPaths.push(packedPath);
45670
+ }
45671
+ const declarationPaths = /* @__PURE__ */ new Set();
45672
+ for (const [subpath, targets] of Object.entries(selector["*"])) {
45673
+ if (!/^[\w@.-]+(?:\/[\w@.-]+)*$/.test(subpath) || subpath.split("/").some((part) => part === "." || part === "..")) continue;
45674
+ if (!Array.isArray(targets) || targets.length !== 1) continue;
45675
+ const [target] = targets;
45676
+ if (typeof target !== "string" || !/\.d\.[cm]?ts$/.test(target)) continue;
45677
+ const path = resolveLiteralPackagePath(target, packageDirectory);
45678
+ if (path) declarationPaths.add(path);
45679
+ }
45680
+ return {
45681
+ declarationPaths,
45682
+ packedPaths
45683
+ };
45684
+ };
45685
+ const isExplicitlyPackedPath = (file, directory, packedPaths) => {
45686
+ if (!packedPaths.some((path) => isPathInsideDirectoryOrEqual(file, path))) return false;
45687
+ let current = dirname(file);
45688
+ while (relative(directory, current) !== "") {
45689
+ if (existsSync(resolve(current, ".npmignore")) || existsSync(resolve(current, ".gitignore"))) return false;
45690
+ current = dirname(current);
45691
+ }
45692
+ return true;
45693
+ };
45635
45694
  const readPackageMetadata = (packageDirectory) => {
45636
45695
  try {
45637
45696
  const packageJson = JSON.parse(readFileSync(resolve(packageDirectory, "package.json"), "utf-8"));
@@ -45643,7 +45702,8 @@ const readPackageMetadata = (packageDirectory) => {
45643
45702
  ...Object.keys(packageJson.peerDependencies ?? {})
45644
45703
  ]),
45645
45704
  isCromwellPlugin: packageJson.cromwell?.type === "plugin",
45646
- scripts: Object.values(packageJson.scripts ?? {})
45705
+ scripts: Object.values(packageJson.scripts ?? {}),
45706
+ typesVersionExports: collectTypeVersionExports(packageJson, packageDirectory)
45647
45707
  };
45648
45708
  } catch {
45649
45709
  return;
@@ -45686,8 +45746,39 @@ const isReactEmailDevTemplate = (packageRelativePath, packageMetadata) => {
45686
45746
  return REACT_EMAIL_TEMPLATE_EXTENSION_PATTERN.test(relativeTemplatePath);
45687
45747
  });
45688
45748
  };
45749
+ const portableTypeModuleOptions = {
45750
+ module: typescriptBinding.ModuleKind.NodeNext,
45751
+ moduleResolution: typescriptBinding.ModuleResolutionKind.NodeNext
45752
+ };
45753
+ const collectDeclaredTypeReExportKeys = (graph, declarations, consumedExportKeys) => {
45754
+ if (declarations.size === 0) return;
45755
+ for (const edge of graph.edges) {
45756
+ if (!edge.isReExportEdge || !edge.isTypeOnly) continue;
45757
+ const declaration = declarations.get(edge.source);
45758
+ const wrapper = graph.modules[edge.source];
45759
+ const target = graph.modules[edge.target];
45760
+ if (!declaration || !wrapper || !target || target.isAnalysisExcluded || target.isGitIgnored || target.parseErrors.length > 0) continue;
45761
+ const { packageDirectory, filePath, packedPaths } = declaration;
45762
+ const targetPath = portablePackageFilePath(target.fileId.path, packageDirectory);
45763
+ if (!targetPath || !isExplicitlyPackedPath(targetPath, packageDirectory, packedPaths)) continue;
45764
+ for (const { exportedName, originalName } of edge.reExportMappings) {
45765
+ if (originalName === "*" || originalName === "default") continue;
45766
+ const matchingWrapperExports = wrapper.exports.filter((exportInfo) => exportInfo.name === exportedName);
45767
+ if (matchingWrapperExports.length !== 1) continue;
45768
+ const [wrapperExport] = matchingWrapperExports;
45769
+ const specifier = wrapperExport.reExportSource;
45770
+ if (wrapperExport.isSynthetic || !wrapperExport.isReExport || !wrapperExport.isTypeOnly || wrapperExport.reExportOriginalName !== originalName || !specifier || !/^\.\.?\//.test(specifier)) continue;
45771
+ if (!isPathInsideDirectoryOrEqual(resolve(dirname(filePath), specifier), packageDirectory)) continue;
45772
+ const portableTarget = typescriptBinding.resolveModuleName(specifier, filePath, portableTypeModuleOptions, typescriptBinding.sys, void 0, void 0, typescriptBinding.ModuleKind.ESNext).resolvedModule?.resolvedFileName;
45773
+ if (!portableTarget || portablePackageFilePath(portableTarget, packageDirectory) !== targetPath) continue;
45774
+ const matchingExports = target.exports.filter((exportInfo) => exportInfo.name === originalName);
45775
+ if (matchingExports.length > 0 && matchingExports.every((exportInfo) => exportInfo.isTypeOnly && !exportInfo.isReExport)) consumedExportKeys.add(buildExportKey(target.fileId.path, originalName));
45776
+ }
45777
+ }
45778
+ };
45689
45779
  const collectConventionConsumedExportKeys = (graph) => {
45690
45780
  const consumedExportKeys = /* @__PURE__ */ new Set();
45781
+ const declarations = /* @__PURE__ */ new Map();
45691
45782
  const packageMetadataByDirectory = /* @__PURE__ */ new Map();
45692
45783
  const themeConfigPathsByPackageDirectory = /* @__PURE__ */ new Map();
45693
45784
  const dynamicBuildConsumedExportKeysByPackageDirectory = /* @__PURE__ */ new Map();
@@ -45698,6 +45789,12 @@ const collectConventionConsumedExportKeys = (graph) => {
45698
45789
  if (!packageMetadataByDirectory.has(packageDirectory)) packageMetadataByDirectory.set(packageDirectory, readPackageMetadata(packageDirectory));
45699
45790
  const packageMetadata = packageMetadataByDirectory.get(packageDirectory);
45700
45791
  if (!packageMetadata) continue;
45792
+ const typeExports = packageMetadata.typesVersionExports;
45793
+ if (typeExports && module.isDeclarationFile && !module.isGitIgnored && !module.isAnalysisExcluded && module.parseErrors.length === 0 && typeExports.declarationPaths.has(canonicalModuleFilePath) && portablePackageFilePath(module.fileId.path, packageDirectory) === canonicalModuleFilePath && isExplicitlyPackedPath(canonicalModuleFilePath, packageDirectory, typeExports.packedPaths)) declarations.set(module.fileId.index, {
45794
+ packageDirectory,
45795
+ filePath: canonicalModuleFilePath,
45796
+ packedPaths: typeExports.packedPaths
45797
+ });
45701
45798
  const packageRelativePath = toPosixPath(relative(toFilesystemIdentityPath(packageDirectory), canonicalModuleFilePath));
45702
45799
  const isNextRouteSegmentModule = hasDependency(packageMetadata, "next") && NEXT_ROUTE_SEGMENT_MODULE_PATTERN.test(packageRelativePath);
45703
45800
  const isContentCollectionsConfig = hasDependency(packageMetadata, "@content-collections/core") && packageRelativePath === "content-collections.ts";
@@ -45712,6 +45809,7 @@ const collectConventionConsumedExportKeys = (graph) => {
45712
45809
  }
45713
45810
  for (const exportInfo of module.exports) if (isNextRouteSegmentModule && exportInfo.name === "runtime" || isCromwellPluginFrontendEntry && exportInfo.name === "getStaticProps" || dynamicBuildConsumedExportKeys?.has(buildExportKey(getFileIdentityKey(module.fileId.path), exportInfo.name)) || exportInfo.isDefault && (isContentCollectionsConfig || isReactEmailTemplate || isReferencedNextraThemeConfig)) consumedExportKeys.add(buildExportKey(module.fileId.path, exportInfo.name));
45714
45811
  }
45812
+ collectDeclaredTypeReExportKeys(graph, declarations, consumedExportKeys);
45715
45813
  return consumedExportKeys;
45716
45814
  };
45717
45815
  //#endregion
@@ -51883,4 +51981,4 @@ startProjectAnalysisWorker();
51883
51981
  export {};
51884
51982
 
51885
51983
  //# sourceMappingURL=project-analysis-worker.js.map
51886
- //# debugId=81139e97-fbde-59ee-9b65-cb0499a5510a
51984
+ //# debugId=670a5edf-6d7a-5b42-a22b-205573f9c498
@@ -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]="18c90b0e-d6a3-58d7-8320-12594c0cca05")}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]="c0aeea35-781c-53ed-a531-f6eb60a98747")}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-DDpVhBL2.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-C6-t7nxf.js";
4
+ import { a as RUNTIME_SCAN_LOCAL_DEV_PORTS, t as sanitizeRuntimeUrl, u as RUNTIME_SCAN_MAX_STRING_LENGTH } from "./sanitize-runtime-url-Aahj_lDC.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-Bho3jUm8.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-XdoVkitC.js.map
240
- //# debugId=18c90b0e-d6a3-58d7-8320-12594c0cca05
239
+ //# sourceMappingURL=prompt-runtime-scan-url-CNZbVZsa.js.map
240
+ //# debugId=c0aeea35-781c-53ed-a531-f6eb60a98747
@@ -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]="fc87d0fd-1551-5e9a-9927-1d186941f48d")}catch(e){}}();
3
- import { Kn as isPlainObject } from "./record-metric-Y776Vbwj.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]="30a3070b-6239-58c6-98a1-38aaa1af38c5")}catch(e){}}();
3
+ import { Kn as isPlainObject } from "./record-metric-BT06J66M.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-Dp4q8YTK.js.map
24
- //# debugId=fc87d0fd-1551-5e9a-9927-1d186941f48d
23
+ //# sourceMappingURL=read-object-file-CCYsZduA.js.map
24
+ //# debugId=30a3070b-6239-58c6-98a1-38aaa1af38c5