react-doctor 0.9.18-dev.9a79847 → 0.9.18-dev.d1feed1

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 (35) hide show
  1. package/dist/{build-section-divider-F18iXtxb.js → build-section-divider-CvCslW2i.js} +4 -4
  2. package/dist/{ci-CgtjUZEp.js → ci-BiWI9Cfd.js} +12 -12
  3. package/dist/cli.js +23 -23
  4. package/dist/{design-CtHsB1nr.js → design-DcFPOE2v.js} +4 -4
  5. package/dist/{exit-gracefully-D1DuwwPU.js → exit-gracefully-CSarxvtr.js} +6 -6
  6. package/dist/{handle-error-B3AmBrIU.js → handle-error-C8Jtnkvu.js} +5 -5
  7. package/dist/index.d.ts +2 -3
  8. package/dist/index.js +31 -297
  9. package/dist/{inspect-BhFj2qyJ.js → inspect-CzxNaOzL.js} +15 -15
  10. package/dist/{install-3nDOB3hj.js → install-R_CLQhyP.js} +9 -9
  11. package/dist/{install-doctor-script-DHJd_h8L.js → install-doctor-script-CXY9ulVg.js} +4 -4
  12. package/dist/{install-github-workflow-BPUJzESV.js → install-github-workflow-CtZTc3JB.js} +5 -5
  13. package/dist/{install-react-doctor-IU3RmjJs.js → install-react-doctor-BJT4YBRI.js} +8 -8
  14. package/dist/{jsx-runtime-BpqeSsvv.js → jsx-runtime-CtdMx1UG.js} +5 -5
  15. package/dist/{print-branded-header-Cabdds8M.js → print-branded-header-BBKGpZ1e.js} +4 -4
  16. package/dist/{prompt-runtime-scan-url-DqGtnZaE.js → prompt-runtime-scan-url-BQ9oHtJl.js} +5 -5
  17. package/dist/{read-object-file-OstnyYB2.js → read-object-file-5KkJXmvs.js} +4 -4
  18. package/dist/{record-metric-CgebwK0K.js → record-metric-BKOubZhF.js} +54 -332
  19. package/dist/{report-error-DYLN3xZA.js → report-error-D0ldwCuq.js} +5 -5
  20. package/dist/{report-workflow-result-BfR_cSwa.js → report-workflow-result-C5QvbfRq.js} +5 -5
  21. package/dist/{resolve-scan-exit-code-CMj5rx-z.js → resolve-scan-exit-code-DKOls2cq.js} +11 -12
  22. package/dist/{resolve-scope-DlV1G6NB.js → resolve-scope-CizdteDz.js} +6 -6
  23. package/dist/{rules-CCbE4U-k.js → rules-CwXP9Jc8.js} +6 -6
  24. package/dist/{run-scan-app-D8hbdBvF.js → run-scan-app--GWim0Qb.js} +10 -10
  25. package/dist/{runtime-scan-BINkjxmp.js → runtime-scan-B7zJYq4L.js} +9 -9
  26. package/dist/{sanitize-runtime-url-B3CaL49D.js → sanitize-runtime-url-DQadGNjw.js} +4 -4
  27. package/dist/{scan-D0JRVcBc.js → scan-DJOXSU7v.js} +9 -9
  28. package/dist/{should-skip-prompts-BQ6Bv8nf.js → should-skip-prompts-C8HttZuw.js} +4 -4
  29. package/dist/{should-use-tui-BxO6yE3o.js → should-use-tui-BwfqCMX2.js} +4 -4
  30. package/dist/skills/react-doctor/SKILL.md +0 -6
  31. package/dist/{telemetry-runtime-BmL4aFx2.js → telemetry-runtime-CnqHaBss.js} +6 -6
  32. package/dist/{version-D2xd0HSm.js → version-CCJOMaB3.js} +4 -4
  33. package/dist/{why-CO9Za1ph.js → why-BHFxijbW.js} +4 -4
  34. package/dist/{with-run-span-CMr4jR2i.js → with-run-span-C10dFuKY.js} +5 -5
  35. package/package.json +4 -4
@@ -1,5 +1,5 @@
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]="0eaa5205-d906-5228-bfb8-cef2337dfce5")}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]="1343d6eb-5171-5ee7-9c80-1190c9dac97d")}catch(e){}}();
3
3
  import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
4
4
  import { $ as warmReactCompilerDetection, $t as OXLINT_WORKER_JOB_END_MARKER, A as buildGitSourceListingRequest, An as TARGET_BLANK_BROWSER_SUPPORT, At as GITHUB_VIEWER_PERMISSION_TIMEOUT_MS, B as resolveGitCommand, Bt as MAINTAINABILITY_DUPLICATE_JSX_RULE, Cn as SUPPLY_CHAIN_CACHE_TTL_MS, Ct as ES_TARGET_YEAR_BY_NAME, Dn as SUPPLY_CHAIN_PLUGIN, Dt as GENERATED_BUNDLE_FILE_PATTERN, En as SUPPLY_CHAIN_OVERLAP_TIMEOUT_MS, Et as FILE_LINT_CACHE_MAX_FILE_COUNT, F as lowerChildProcessPriority, Fn as VERCEL_NEXTJS_SECURITY_RELEASE_URL, Ft as HTML_FILE_PATTERN, G as resolvePluginPath, Gt as MINIFIED_SNIFF_BYTES, H as resolveOxlintThreadCount, It as IGNORED_DIRECTORIES, J as resolveTsConfigRelativePath, K as resolveReactDoctorCacheDir, Kt as OCCURRENCE_MATCHED_CATEGORIES, Lt as JSX_DUPLICATION_SOURCE_FILE_PATTERN, M as buildOxlintWorkerSpawnSpec, Mn as TELEMETRY_SHUTDOWN_TIMEOUT_MS, Mt as GIT_LS_FILES_MAX_BUFFER_BYTES, Nn as TSCONFIG_FILENAMES, Nt as GIT_SHOW_MAX_BUFFER_BYTES, On as SUPPLY_CHAIN_RULE, Ot as GENERATED_SOURCE_DIRECTORY_PATTERN, P as killUnadoptedOxlintWorkers, Pn as TYPESCRIPT_DECLARATION_FILE_PATTERN, Pt as GIT_SOURCE_LISTING_ARGUMENTS, Q as takeReactCompilerDetection, Qt as OXLINT_SPLIT_TOTAL_BUDGET_MS, R as readSystemConcurrencyFacts, Sn as SUPPLY_CHAIN_CACHE_SUBDIR, Tn as SUPPLY_CHAIN_IGNORED_PACKAGES, Tt as FILE_LINT_CACHE_FILENAME, U as resolveOxlintToolchainVersions, Ut as MAX_GLOB_PATTERN_LENGTH_CHARS, V as resolveOxlintBinary, Vt as MAINTAINABILITY_PLUGIN, W as resolveOxlintWorkerRuntime, Wt as MILLISECONDS_PER_SECOND, X as spawnOxlintWorkerProcess, Xt as OXLINT_OUTPUT_MAX_BYTES, Y as setChildProcessRef, Yt as OXLINT_OOM_RESCUE_BUDGET_MS, Z as takePrespawnedOxlintWorker, Zt as OXLINT_SPAWN_TIMEOUT_MS, _n as SOURCE_FILE_PATTERN, _t as DIAGNOSTIC_CATEGORY_BUCKETS, an as REACT_ROUTER_CAPABILITY_THRESHOLDS, at as AXIOM_METRICS_DATASET_HEADER, bn as SPAWN_ARGS_MAX_LENGTH_CHARS_POSIX, cn as ROOT_CAUSE_GROUPABLE_RULE_KEYS, d as METRIC_DISTRIBUTION_BOUNDARIES, dt as COMPILER_CLEANUP_BUCKET, en as PROJECT_ANALYSIS_WORKER_MAX_OLD_SPACE_MB, et as ABORT_EXIT_CODES, fn as SIDECAR_LINT_CACHE_FILENAME, ft as COMPILER_CLEANUP_RULE_KEYS, gn as SOCKET_PACKAGE_PAGE_BASE, gt as DEFAULT_BRANCH_CANDIDATES, hn as SOCKET_FREE_USER_AGENT, in as REACT_BLOG_RSC_ADVISORY_URL, j as buildOxlintChildEnv, jn as TELEMETRY_EXPORT_INTERVAL_MS, jt as GIT_CHECK_ATTR_MAX_BUFFER_BYTES, kn as TAILWIND_POSTCSS7_COMPAT_ALIAS, l as INTERNAL_ERROR_JSON_FALLBACK, ln as SCANNED_DOT_DIRECTORIES, mn as SOCKET_FREE_PURL_API_BASE, mt as CONFIG_FINGERPRINT_FILENAMES, nn as PROJECT_ANALYSIS_WORKER_TIMEOUT_CEILING_MS, nt as APP_ONLY_RULE_KEYS, on as REACT_SERVER_DOM_PACKAGES, ot as AXIOM_METRICS_PATH, pt as CONFIG_CACHE_TTL_MS, q as resolveScanConcurrency, qt as OXLINT_IGNORED_DECLARATION_DIAGNOSTIC_CODES, rn as PROJECT_ANALYSIS_WORKER_TIMEOUT_MS, rt as AXIOM_DATASET_HEADER, sn as RECOMMENDED_PNPM_MINIMUM_RELEASE_AGE_MINUTES, st as AXIOM_TRACES_PATH, tn as PROJECT_ANALYSIS_WORKER_MEMORY_BUDGET_BYTES, tt as ADOPTABLE_LINT_CONFIG_FILENAMES, un as SCORE_API_URL, vn as SPAWN_ARGS_MAX_LENGTH_CHARS, vt as DISABLE_DIRECTIVE_BACKUP_DIRECTORY_SEGMENTS, wn as SUPPLY_CHAIN_CATEGORY, wt as FETCH_TIMEOUT_MS, xn as STAGED_FILES_PROJECT_CONFIG_FILENAMES, xt as DUPLICATE_JSX_WORKER_IDLE_TIMEOUT_MS, yn as SPAWN_ARGS_MAX_LENGTH_CHARS_DARWIN, yt as DOCS_RULES_BASE_URL, z as resolveConfiguredScanConcurrency, zt as MAINTAINABILITY_CATEGORY } from "./constants-_b1h6lxa.js";
5
5
  import { n as require_picomatch, t as require_semver } from "./semver-BZIuy1gP.js";
@@ -20,7 +20,7 @@ import { Worker } from "node:worker_threads";
20
20
  import { parseSync } from "oxc-parser";
21
21
  import * as fs$1$1 from "node:fs/promises";
22
22
  import { ResolverFactory } from "oxc-resolver";
23
- import { ALL_REACT_DOCTOR_RULE_KEYS, CROSS_FILE_DEPENDENCY_COLLECTORS, CROSS_FILE_RULE_IDS, FRAMEWORK_SPECIFIC_RULE_KEYS, FRAMEWORK_TOKENS, MOTION_LIBRARY_PACKAGES, REACT_COMPILER_RULES, REACT_DOCTOR_OPT_IN_PROJECT_RULE_IDS, REACT_DOCTOR_PROJECT_RULES, REACT_DOCTOR_RULES, REACT_DOCTOR_RULE_REGISTRY, REACT_DOCTOR_SCAN_RULES, atomicWriteFile, classifySecurityScanFile, collectCrossFileDependencyProbes, getDiagnosticContextPath, resetManifestCaches, shouldReadSecurityScanContent } from "oxlint-plugin-react-doctor/core";
23
+ import { ALL_REACT_DOCTOR_RULE_KEYS, CROSS_FILE_DEPENDENCY_COLLECTORS, CROSS_FILE_RULE_IDS, FRAMEWORK_SPECIFIC_RULE_KEYS, FRAMEWORK_TOKENS, MOTION_LIBRARY_PACKAGES, REACT_COMPILER_RULES, REACT_DOCTOR_OPT_IN_PROJECT_RULE_IDS, REACT_DOCTOR_PROJECT_RULES, REACT_DOCTOR_RULES, REACT_DOCTOR_RULE_REGISTRY, REACT_DOCTOR_SCAN_RULES, classifySecurityScanFile, collectCrossFileDependencyProbes, resetManifestCaches, shouldReadSecurityScanContent } from "oxlint-plugin-react-doctor/core";
24
24
  import { parseJSON5, parseJSONC } from "confbox";
25
25
  import { createJiti } from "jiti";
26
26
  import { PassThrough } from "node:stream";
@@ -5202,37 +5202,6 @@ const mapInput = /* @__PURE__ */ dual(2, (self, f) => make$37((b1, b2) => self(f
5202
5202
  */
5203
5203
  const isGreaterThan$1 = (O) => dual(2, (self, that) => O(self, that) === 1);
5204
5204
  /**
5205
- * Checks whether one value is greater than or equal to another according to the given order.
5206
- *
5207
- * **When to use**
5208
- *
5209
- * Use when you need a boolean greater-than-or-equal predicate using an
5210
- * `Order`.
5211
- *
5212
- * **Details**
5213
- *
5214
- * Returns `true` if the order returns `1` or `0`, and returns `false` only if
5215
- * the order returns `-1`.
5216
- *
5217
- * **Example** (Checking greater-than-or-equal comparisons)
5218
- *
5219
- * ```ts
5220
- * import { Order } from "effect"
5221
- *
5222
- * const isGreaterThanOrEqualToNumber = Order.isGreaterThanOrEqualTo(Order.Number)
5223
- *
5224
- * console.log(isGreaterThanOrEqualToNumber(2, 1)) // true
5225
- * console.log(isGreaterThanOrEqualToNumber(1, 1)) // true
5226
- * console.log(isGreaterThanOrEqualToNumber(1, 2)) // false
5227
- * ```
5228
- *
5229
- * @see {@link isGreaterThan} for strict greater than
5230
- * @see {@link isLessThanOrEqualTo} for less than or equal
5231
- * @category predicates
5232
- * @since 4.0.0
5233
- */
5234
- const isGreaterThanOrEqualTo$1 = (O) => dual(2, (self, that) => O(self, that) !== -1);
5235
- /**
5236
5205
  * Returns the maximum of two values according to the given order. If they are equal, returns the first argument.
5237
5206
  *
5238
5207
  * **When to use**
@@ -22738,203 +22707,6 @@ function link$1() {
22738
22707
  };
22739
22708
  }
22740
22709
  /**
22741
- * Creates a custom validation filter from a predicate function.
22742
- *
22743
- * **Details**
22744
- *
22745
- * The predicate receives the decoded input value, the schema AST, and parse
22746
- * options, and returns a `FilterOutput`. Non-success outputs are normalized into
22747
- * schema issues. The `annotations` parameter annotates the filter itself; with
22748
- * the default formatter, failures use `message` first, `expected` second, and
22749
- * `<filter>` when neither is provided.
22750
- *
22751
- * When `abort` is `true`, parsing stops after this filter fails instead of
22752
- * collecting later check failures.
22753
- *
22754
- * **Example** (Reporting failure at a nested path)
22755
- *
22756
- * ```ts
22757
- * import { Schema } from "effect"
22758
- *
22759
- * const schema = Schema.Struct({ password: Schema.String, confirmPassword: Schema.String }).check(
22760
- * Schema.makeFilter((o) =>
22761
- * o.password === o.confirmPassword
22762
- * ? undefined
22763
- * : { path: ["password"], issue: "password and confirmPassword must match" }
22764
- * )
22765
- * )
22766
- *
22767
- * console.log(String(Schema.decodeUnknownExit(schema)({ password: "123456", confirmPassword: "1234567" })))
22768
- * // Failure(Cause([Fail(SchemaError: password and confirmPassword must match
22769
- * // at ["password"])]))
22770
- * ```
22771
- *
22772
- * **Example** (Reporting multiple failures at once)
22773
- *
22774
- * ```ts
22775
- * import { Schema } from "effect"
22776
- *
22777
- * const schema = Schema.Struct({ a: Schema.Finite, b: Schema.Finite, c: Schema.Finite }).check(
22778
- * Schema.makeFilter((o) => {
22779
- * const issues: Array<Schema.FilterIssue> = []
22780
- * if (o.a > 0) {
22781
- * if (o.b <= 0) issues.push({ path: ["b"], issue: "b must be greater than 0" })
22782
- * if (o.c <= 0) issues.push({ path: ["c"], issue: "c must be greater than 0" })
22783
- * }
22784
- * return issues
22785
- * })
22786
- * )
22787
- *
22788
- * console.log(String(Schema.decodeUnknownExit(schema)({ a: 1, b: 0, c: 0 })))
22789
- * // Failure(Cause([Fail(SchemaError: b must be greater than 0
22790
- * // at ["b"]
22791
- * // c must be greater than 0
22792
- * // at ["c"])]))
22793
- * ```
22794
- *
22795
- * @category constructors
22796
- * @since 4.0.0
22797
- */
22798
- const makeFilter = makeFilter$1;
22799
- /**
22800
- * Creates a greater-than (`>`) check for any ordered type from an
22801
- * `Order.Order` instance.
22802
- *
22803
- * @category Order checks
22804
- * @since 4.0.0
22805
- */
22806
- function makeIsGreaterThan(options) {
22807
- const gt = isGreaterThan$1(options.order);
22808
- const formatter = options.formatter ?? format$1;
22809
- return (exclusiveMinimum, annotations) => {
22810
- return makeFilter((input) => gt(input, exclusiveMinimum), {
22811
- expected: `a value greater than ${formatter(exclusiveMinimum)}`,
22812
- arbitrary: { constraint: { ordered: {
22813
- order: options.order,
22814
- minimum: exclusiveMinimum,
22815
- exclusiveMinimum: true
22816
- } } },
22817
- ...options.annotate?.(exclusiveMinimum),
22818
- ...annotations
22819
- });
22820
- };
22821
- }
22822
- /**
22823
- * Creates a greater-than-or-equal-to (`>=`) check for any ordered type from an
22824
- * `Order.Order` instance.
22825
- *
22826
- * @category Order checks
22827
- * @since 4.0.0
22828
- */
22829
- function makeIsGreaterThanOrEqualTo(options) {
22830
- const gte = isGreaterThanOrEqualTo$1(options.order);
22831
- const formatter = options.formatter ?? format$1;
22832
- return (minimum, annotations) => {
22833
- return makeFilter((input) => gte(input, minimum), {
22834
- expected: `a value greater than or equal to ${formatter(minimum)}`,
22835
- arbitrary: { constraint: { ordered: {
22836
- order: options.order,
22837
- minimum
22838
- } } },
22839
- ...options.annotate?.(minimum),
22840
- ...annotations
22841
- });
22842
- };
22843
- }
22844
- function encodeNumberPayload(number) {
22845
- if (!globalThis.Number.isFinite(number)) throw new globalThis.RangeError(`Expected a finite number, got ${format$1(number)}`);
22846
- return number;
22847
- }
22848
- /**
22849
- * Validates that a number is greater than the specified value (exclusive).
22850
- *
22851
- * **Details**
22852
- *
22853
- * JSON Schema:
22854
- *
22855
- * This check corresponds to the `exclusiveMinimum` constraint in JSON Schema.
22856
- *
22857
- * Arbitrary:
22858
- *
22859
- * When generating test data with fast-check, this applies an
22860
- * `exclusiveMinimum` constraint to ensure generated numbers are greater than
22861
- * the specified value.
22862
- *
22863
- * @category Number checks
22864
- * @since 4.0.0
22865
- */
22866
- const isGreaterThan = /* @__PURE__ */ makeIsGreaterThan({
22867
- order: Number$5,
22868
- annotate: (exclusiveMinimum) => ({
22869
- representation: {
22870
- id: "effect/schema/isGreaterThan",
22871
- payload: { exclusiveMinimum: encodeNumberPayload(exclusiveMinimum) }
22872
- },
22873
- toJsonSchema: () => ({ exclusiveMinimum }),
22874
- toCode: () => ({ runtime: `Schema.isGreaterThan(${format$1(exclusiveMinimum)})` })
22875
- })
22876
- });
22877
- /**
22878
- * Validates that a number is greater than or equal to the specified value
22879
- * (inclusive).
22880
- *
22881
- * **Details**
22882
- *
22883
- * JSON Schema:
22884
- *
22885
- * This check corresponds to the `minimum` constraint in JSON Schema.
22886
- *
22887
- * Arbitrary:
22888
- *
22889
- * When generating test data with fast-check, this applies a `minimum` constraint
22890
- * to ensure generated numbers are greater than or equal to the specified value.
22891
- *
22892
- * @category Number checks
22893
- * @since 4.0.0
22894
- */
22895
- const isGreaterThanOrEqualTo = /* @__PURE__ */ makeIsGreaterThanOrEqualTo({
22896
- order: Number$5,
22897
- annotate: (minimum) => ({
22898
- representation: {
22899
- id: "effect/schema/isGreaterThanOrEqualTo",
22900
- payload: { minimum: encodeNumberPayload(minimum) }
22901
- },
22902
- toJsonSchema: () => ({ minimum }),
22903
- toCode: () => ({ runtime: `Schema.isGreaterThanOrEqualTo(${format$1(minimum)})` })
22904
- })
22905
- });
22906
- /**
22907
- * Validates that a number is a safe integer (within the safe integer range
22908
- * that can be exactly represented in JavaScript).
22909
- *
22910
- * **Details**
22911
- *
22912
- * JSON Schema:
22913
- *
22914
- * This check corresponds to the `type: "integer"` constraint in JSON Schema.
22915
- *
22916
- * Arbitrary:
22917
- *
22918
- * When generating test data with fast-check, this applies an `integer: true`
22919
- * constraint to ensure generated numbers are integers.
22920
- *
22921
- * @category Integer checks
22922
- * @since 4.0.0
22923
- */
22924
- function isInt(annotations) {
22925
- return makeFilter((n) => globalThis.Number.isSafeInteger(n), {
22926
- expected: "an integer",
22927
- representation: {
22928
- id: "effect/schema/isInt",
22929
- payload: null
22930
- },
22931
- toJsonSchema: () => ({ type: "integer" }),
22932
- toCode: () => ({ runtime: "Schema.isInt()" }),
22933
- arbitrary: { constraint: { integer: true } },
22934
- ...annotations
22935
- });
22936
- }
22937
- /**
22938
22710
  * Schema for values that hide sensitive information from error output and
22939
22711
  * inspection.
22940
22712
  *
@@ -71958,7 +71730,6 @@ const normalizeConfigForHash = (config) => {
71958
71730
  const clone = JSON.parse(JSON.stringify(config));
71959
71731
  if (clone?.settings?.["react-doctor"]) {
71960
71732
  const reactDoctorSettings = clone.settings["react-doctor"];
71961
- delete reactDoctorSettings.diagnosticContextDirectory;
71962
71733
  reactDoctorSettings.rootDirectory = ROOT_DIRECTORY_PLACEHOLDER;
71963
71734
  if (Array.isArray(reactDoctorSettings.unpluginAutoImportRootDirectories)) reactDoctorSettings.unpluginAutoImportRootDirectories = [ROOT_DIRECTORY_PLACEHOLDER];
71964
71735
  }
@@ -72120,7 +71891,7 @@ const buildUserPluginRules = (userPlugin, severityControls) => {
72120
71891
  }
72121
71892
  return enabled;
72122
71893
  };
72123
- const createOxlintConfig = ({ pluginPath, diagnosticContextDirectory, project, customRulesOnly = false, extendsPaths = [], ignoredTags = /* @__PURE__ */ new Set(), includedTags = /* @__PURE__ */ new Set(), includeTagDefaults = false, runtimeGlobals, unpluginAutoImportGlobalScopes, serverAuthFunctionNames, projectIndexModuleSources, severityControls, adoptedSettings = {}, userPlugins = [], disableReactHooksJsPlugin = false, ruleSelection, sidecarRuleIdFilter }) => {
71894
+ const createOxlintConfig = ({ pluginPath, project, customRulesOnly = false, extendsPaths = [], ignoredTags = /* @__PURE__ */ new Set(), includedTags = /* @__PURE__ */ new Set(), includeTagDefaults = false, runtimeGlobals, unpluginAutoImportGlobalScopes, serverAuthFunctionNames, projectIndexModuleSources, severityControls, adoptedSettings = {}, userPlugins = [], disableReactHooksJsPlugin = false, ruleSelection, sidecarRuleIdFilter }) => {
72124
71895
  const hasIncludedTags = includedTags.size > 0;
72125
71896
  const reactHooksJsPlugin = disableReactHooksJsPlugin || ruleSelection === "sidecar" || hasIncludedTags ? null : resolveReactHooksJsPlugin(project.hasReactCompiler || project.hasReactCompilerLintPlugin === true, customRulesOnly);
72126
71897
  const reactCompilerRules = reactHooksJsPlugin ? applyRuleSeverityControls(filterRulesToAvailable(REACT_COMPILER_RULES, "react-hooks-js", reactHooksJsPlugin.availableRuleNames), severityControls) : {};
@@ -72180,7 +71951,6 @@ const createOxlintConfig = ({ pluginPath, diagnosticContextDirectory, project, c
72180
71951
  ...adoptedSettings,
72181
71952
  "react-doctor": {
72182
71953
  portedRuleMode: "curated",
72183
- ...diagnosticContextDirectory ? { diagnosticContextDirectory } : {},
72184
71954
  framework: project.framework,
72185
71955
  rootDirectory: settingsRootDirectory,
72186
71956
  capabilities: [...capabilities].sort(),
@@ -72854,14 +72624,22 @@ const runOxlintProbeJob = async (input) => {
72854
72624
  if (!isProbeResult(parsed) || parsed.traces.length !== input.probeRequest.files.length) throw new Error("oxlint worker returned a malformed probe result");
72855
72625
  return parsed;
72856
72626
  };
72857
- var DiagnosticContextRangeSchema = class extends Class("DiagnosticContextRange")({
72858
- offset: Number$1.check(isInt(), isGreaterThanOrEqualTo(0)),
72859
- length: Number$1.check(isInt(), isGreaterThan(0))
72860
- }) {};
72861
- var CachedDiagnostic = class extends Class("CachedDiagnostic")({
72862
- ...Diagnostic.fields,
72863
- contextRanges: optional(ArraySchema(DiagnosticContextRangeSchema))
72864
- }) {};
72627
+ const atomicWriteFile = (filePath, contents) => {
72628
+ let temporaryPath = null;
72629
+ try {
72630
+ fs$1$2.mkdirSync(path$1$1.dirname(filePath), { recursive: true });
72631
+ temporaryPath = `${filePath}.${process.pid}.${randomUUID()}.tmp`;
72632
+ fs$1$2.writeFileSync(temporaryPath, contents);
72633
+ fs$1$2.renameSync(temporaryPath, filePath);
72634
+ temporaryPath = null;
72635
+ } catch {
72636
+ return;
72637
+ } finally {
72638
+ if (temporaryPath !== null) try {
72639
+ fs$1$2.rmSync(temporaryPath, { force: true });
72640
+ } catch {}
72641
+ }
72642
+ };
72865
72643
  const atomicWriteJson = (filePath, value) => {
72866
72644
  try {
72867
72645
  atomicWriteFile(filePath, JSON.stringify(value));
@@ -72869,7 +72647,7 @@ const atomicWriteJson = (filePath, value) => {
72869
72647
  return;
72870
72648
  }
72871
72649
  };
72872
- const validateDiagnostic$1 = decodeUnknownSync(CachedDiagnostic);
72650
+ const validateDiagnostic$1 = decodeUnknownSync(Diagnostic);
72873
72651
  const decodeDiagnostic = (raw) => {
72874
72652
  const diagnostic = validateDiagnostic$1(raw);
72875
72653
  return {
@@ -72989,7 +72767,7 @@ const createSidecarProbeAnswerResolver = (input) => {
72989
72767
  toRelativePath
72990
72768
  };
72991
72769
  };
72992
- const validateDiagnostic = decodeUnknownSync(CachedDiagnostic);
72770
+ const validateDiagnostic = decodeUnknownSync(Diagnostic);
72993
72771
  const isProbeKind = (value) => value === "content" || value === "exists";
72994
72772
  const isProbeIdArray = (value, probeCount) => Array.isArray(value) && value.every((probeId) => typeof probeId === "number" && Number.isInteger(probeId) && probeId >= 0 && probeId < probeCount);
72995
72773
  const createProbeTable = () => {
@@ -73231,29 +73009,6 @@ const columnOfUtf8Offset = (sourceBuffer, utf8Offset) => {
73231
73009
  while (lineStartOffset > 0 && sourceBuffer[lineStartOffset - 1] !== 10) lineStartOffset--;
73232
73010
  return sourceBuffer.subarray(lineStartOffset, boundedOffset).toString("utf8").length + 1;
73233
73011
  };
73234
- const decodeRanges = decodeUnknownSync(ArraySchema(DiagnosticContextRangeSchema));
73235
- const createDiagnosticContextReader = (directory) => {
73236
- const recordedRules = /* @__PURE__ */ new Set();
73237
- if (directory) try {
73238
- for (const filename of fs$1$2.readdirSync(directory)) {
73239
- if (!filename.endsWith(".json")) continue;
73240
- recordedRules.add(filename.slice(0, filename.lastIndexOf("-")));
73241
- }
73242
- } catch {
73243
- recordedRules.clear();
73244
- }
73245
- return (identity) => {
73246
- if (!directory || !recordedRules.has(encodeURIComponent(identity.rule))) return [];
73247
- try {
73248
- return decodeRanges(failOpenReadJson(getDiagnosticContextPath({
73249
- ...identity,
73250
- directory
73251
- }), []));
73252
- } catch {
73253
- return [];
73254
- }
73255
- };
73256
- };
73257
73012
  const utf8OffsetFromSourcePosition = (sourceBuffer, lineNumber, zeroBasedColumn) => {
73258
73013
  if (lineNumber < 1 || zeroBasedColumn < 0) return null;
73259
73014
  const sourceLines = sourceBuffer.toString("utf8").split("\n");
@@ -73895,7 +73650,7 @@ const isOxlintOutput = (value) => isRecord(value) && Array.isArray(value.diagnos
73895
73650
  * to the first `{`. Raises `OxlintOutputUnparseable` when the
73896
73651
  * stdout isn't valid JSON or doesn't carry a `diagnostics` array.
73897
73652
  */
73898
- const parseOxlintOutput = (stdout, project, rootDirectory, sourcePathByLintPath, sourceMapByLintPath, diagnosticContextDirectory) => {
73653
+ const parseOxlintOutput = (stdout, project, rootDirectory, sourcePathByLintPath, sourceMapByLintPath) => {
73899
73654
  if (!stdout) return [];
73900
73655
  const jsonStart = stdout.indexOf("{");
73901
73656
  const sanitizedStdout = jsonStart > 0 ? stdout.slice(jsonStart) : stdout;
@@ -73945,33 +73700,19 @@ const parseOxlintOutput = (stdout, project, rootDirectory, sourcePathByLintPath,
73945
73700
  minifiedFileCache.set(absolutePath, minified);
73946
73701
  return minified;
73947
73702
  };
73948
- const readContextRanges = createDiagnosticContextReader(diagnosticContextDirectory);
73949
- return suppressMemoizationInBailedOutFunctions(parsed.diagnostics.flatMap((rawDiagnostic) => {
73950
- if (!isMappableOxlintDiagnostic(rawDiagnostic)) return [];
73951
- const { plugin, rule } = parseRuleCode(rawDiagnostic.code);
73952
- const primarySpan = rawDiagnostic.labels[0]?.span;
73953
- const contextRanges = diagnosticContextDirectory && plugin === "react-doctor" && primarySpan ? readContextRanges({
73954
- filename: resolveAbsolutePath(rawDiagnostic.filename),
73955
- rule,
73956
- offset: primarySpan.offset,
73957
- message: rawDiagnostic.message
73958
- }) : [];
73959
- const diagnostic = {
73960
- ...rawDiagnostic,
73961
- contextRanges
73962
- };
73703
+ return suppressMemoizationInBailedOutFunctions(parsed.diagnostics.flatMap((diagnostic) => {
73963
73704
  const preparedSourceMap = resolvePreparedSourceMap(diagnostic.filename);
73964
73705
  if (preparedSourceMap === void 0) return [diagnostic];
73706
+ const { plugin, rule } = parseRuleCode(diagnostic.code);
73965
73707
  if (plugin !== "react-doctor" || !REACT_DOCTOR_RULE_REGISTRY[rule]?.tags?.includes("design")) return [];
73966
73708
  const labels = mapPreparedSourceLabels(diagnostic.labels, preparedSourceMap);
73967
73709
  const sourceFilename = resolveMappedSourceFilename(diagnostic.filename);
73968
73710
  return labels === null || sourceFilename === void 0 ? [] : [{
73969
73711
  ...diagnostic,
73970
73712
  filename: sourceFilename,
73971
- labels,
73972
- contextRanges: []
73713
+ labels
73973
73714
  }];
73974
- }).filter((diagnostic) => isLintableSourceFile(resolveSourceFilename(diagnostic.filename)) && !(TYPESCRIPT_DECLARATION_FILE_PATTERN.test(diagnostic.filename) && OXLINT_IGNORED_DECLARATION_DIAGNOSTIC_CODES.has(diagnostic.code)) && !isMinifiedDiagnosticFile(diagnostic.filename) && !shouldSuppressLocalUseHookDiagnostic(diagnostic, rootDirectory) && !shouldSuppressCompilerFindingInWorklet(diagnostic, project, rootDirectory)).map((diagnostic) => {
73715
+ }).filter((diagnostic) => isMappableOxlintDiagnostic(diagnostic) && isLintableSourceFile(resolveSourceFilename(diagnostic.filename)) && !(TYPESCRIPT_DECLARATION_FILE_PATTERN.test(diagnostic.filename) && OXLINT_IGNORED_DECLARATION_DIAGNOSTIC_CODES.has(diagnostic.code)) && !isMinifiedDiagnosticFile(diagnostic.filename) && !shouldSuppressLocalUseHookDiagnostic(diagnostic, rootDirectory) && !shouldSuppressCompilerFindingInWorklet(diagnostic, project, rootDirectory)).map((diagnostic) => {
73975
73716
  const { plugin, rule } = parseRuleCode(diagnostic.code);
73976
73717
  const primaryLabel = diagnostic.labels[0];
73977
73718
  const cleaned = cleanDiagnosticMessage(diagnostic.message, diagnostic.help, plugin, rule, project);
@@ -74008,7 +73749,6 @@ const parseOxlintOutput = (stdout, project, rootDirectory, sourcePathByLintPath,
74008
73749
  ...primarySpanEndLine !== void 0 ? { endLine: primarySpanEndLine } : {}
74009
73750
  } : {},
74010
73751
  category,
74011
- ...diagnostic.contextRanges.length > 0 ? { contextRanges: diagnostic.contextRanges } : {},
74012
73752
  ...matchByOccurrence ? { matchByOccurrence: true } : {},
74013
73753
  ...relatedLocations.length > 0 ? { relatedLocations } : {}
74014
73754
  };
@@ -74121,7 +73861,7 @@ const spawnLintBatches = async (input) => {
74121
73861
  };
74122
73862
  const stdout = input.spawnSlots === void 0 ? await spawnBatch() : await input.spawnSlots.run(spawnBatch, signal);
74123
73863
  if (stdout === null) return [];
74124
- return parseOxlintOutput(stdout, project, rootDirectory, sourcePathByLintPath, sourceMapByLintPath, input.diagnosticContextDirectory);
73864
+ return parseOxlintOutput(stdout, project, rootDirectory, sourcePathByLintPath, sourceMapByLintPath);
74125
73865
  } catch (error) {
74126
73866
  if (!isSplittableReactDoctorError(error)) throw error;
74127
73867
  if (isPastDeadline()) {
@@ -74850,8 +74590,6 @@ const runOxlint = async (options) => {
74850
74590
  const configDirectory = fs$1$2.mkdtempSync(path$1$1.join(os.tmpdir(), "react-doctor-oxlintrc-"));
74851
74591
  const configPath = path$1$1.join(configDirectory, "oxlintrc.json");
74852
74592
  try {
74853
- const diagnosticContextDirectory = path$1$1.join(configDirectory, "contexts");
74854
- fs$1$2.mkdirSync(diagnosticContextDirectory);
74855
74593
  const oxlintBinary = resolveOxlintBinary();
74856
74594
  const sharedArgs = [];
74857
74595
  let tsconfigContent = null;
@@ -74900,7 +74638,6 @@ const runOxlint = async (options) => {
74900
74638
  } : project;
74901
74639
  const buildConfig = (overrides) => createOxlintConfig({
74902
74640
  pluginPath,
74903
- diagnosticContextDirectory,
74904
74641
  project: lintProject,
74905
74642
  customRulesOnly,
74906
74643
  extendsPaths: overrides.extendsPaths,
@@ -74952,7 +74689,6 @@ const runOxlint = async (options) => {
74952
74689
  project: lintProject,
74953
74690
  sourcePathByLintPath: preparedLintSources.sourcePathByLintPath,
74954
74691
  sourceMapByLintPath: preparedLintSources.sourceMapByLintPath,
74955
- diagnosticContextDirectory,
74956
74692
  onPartialFailure: reportPartialFailure,
74957
74693
  onAnalyzedFiles: (filePaths) => {
74958
74694
  analyzedFiles = filePaths;
@@ -75180,7 +74916,6 @@ const runOxlint = async (options) => {
75180
74916
  project: lintProject,
75181
74917
  sourcePathByLintPath: preparedLintSources.sourcePathByLintPath,
75182
74918
  sourceMapByLintPath: preparedLintSources.sourceMapByLintPath,
75183
- diagnosticContextDirectory,
75184
74919
  onPartialFailure,
75185
74920
  onAnalyzedFiles: (filePaths) => {
75186
74921
  analyzedFiles = filePaths;
@@ -75477,7 +75212,7 @@ const ScoreApiResponseSchema = Struct({
75477
75212
  });
75478
75213
  const EMPTY_SCORE_REQUEST_METADATA = {};
75479
75214
  const parseScoreResult = (value) => getOrNull(decodeUnknownOption(ScoreApiResponseSchema)(value));
75480
- const sanitizeScoreDiagnostics = (diagnostics) => diagnostics.map(({ filePath, fileContext: _fileContext, fixGroupId: _fixGroupId, contextRanges: _contextRanges, ...rest }) => ({
75215
+ const sanitizeScoreDiagnostics = (diagnostics) => diagnostics.map(({ filePath, fileContext: _fileContext, fixGroupId: _fixGroupId, ...rest }) => ({
75481
75216
  ...rest,
75482
75217
  filePath: redactSensitiveText(scrubSensitivePaths(filePath))
75483
75218
  }));
@@ -76757,13 +76492,12 @@ const findWorstScoredProject = (projects) => {
76757
76492
  return worst;
76758
76493
  };
76759
76494
  const toJsonReportDiagnostic = (diagnostic, projectRoot, reportRoot) => {
76760
- const { contextRanges: _contextRanges, ...publicDiagnostic } = diagnostic;
76761
76495
  const resolvedFilePath = resolveCandidateReadPath(projectRoot, diagnostic.filePath);
76762
76496
  const normalizedFilePath = toNormalizedRelativePath(resolvedFilePath, projectRoot);
76763
76497
  const reportRelativeFilePath = toNormalizedRelativePath(resolvedFilePath, reportRoot);
76764
76498
  const ruleIdentity = getDiagnosticRuleIdentity(diagnostic);
76765
76499
  return {
76766
- ...publicDiagnostic,
76500
+ ...diagnostic,
76767
76501
  id: buildDiagnosticIdentity({
76768
76502
  filePath: reportRelativeFilePath,
76769
76503
  line: diagnostic.line,
@@ -76935,11 +76669,22 @@ const getRuleMetadata = (plugin, rule) => {
76935
76669
  defaultEnabled: definition.defaultEnabled ?? true
76936
76670
  };
76937
76671
  };
76938
- const doesContextIntersectChanges = ({ contexts, changes }) => contexts.some(({ range: [startLine, endLine], excludedRanges = [] }) => {
76672
+ const doesContextIntersectChanges = ({ sourceFile, owner, changes, isBoundary }) => {
76673
+ const startLine = sourceFile.getLineAndCharacterOfPosition(owner.getStart(sourceFile)).line + 1;
76674
+ const endLine = sourceFile.getLineAndCharacterOfPosition(owner.getEnd() - 1).line + 1;
76675
+ const childRanges = [];
76676
+ const collectChildren = (node) => {
76677
+ if (isBoundary(node)) {
76678
+ childRanges.push([sourceFile.getLineAndCharacterOfPosition(node.getStart(sourceFile)).line + 1, sourceFile.getLineAndCharacterOfPosition(node.getEnd() - 1).line + 1]);
76679
+ return;
76680
+ }
76681
+ typescriptBinding.forEachChild(node, collectChildren);
76682
+ };
76683
+ typescriptBinding.forEachChild(owner, collectChildren);
76939
76684
  for (const [changedStart, changedEnd] of changes.ranges) {
76940
76685
  let remainingStart = Math.max(startLine, changedStart);
76941
76686
  const remainingEnd = Math.min(endLine, changedEnd);
76942
- for (const [childStart, childEnd] of excludedRanges) {
76687
+ for (const [childStart, childEnd] of childRanges) {
76943
76688
  if (childEnd < remainingStart) continue;
76944
76689
  if (childStart > remainingEnd) break;
76945
76690
  if (childStart > remainingStart) return true;
@@ -76947,27 +76692,12 @@ const doesContextIntersectChanges = ({ contexts, changes }) => contexts.some(({
76947
76692
  }
76948
76693
  if (remainingStart <= remainingEnd) return true;
76949
76694
  }
76950
- return (changes.deletionLines ?? []).some((deletionLine) => deletionLine >= startLine && deletionLine < endLine && !excludedRanges.some(([childStart, childEnd]) => deletionLine >= childStart && deletionLine < childEnd));
76951
- });
76695
+ return (changes.deletionLines ?? []).some((deletionLine) => deletionLine >= startLine && deletionLine < endLine && !childRanges.some(([childStart, childEnd]) => deletionLine >= childStart && deletionLine < childEnd));
76696
+ };
76952
76697
  const diagnosticIntersectsLineRanges = (diagnostic, lineRanges) => {
76953
76698
  const diagnosticEndLine = Math.max(diagnostic.line, diagnostic.endLine ?? diagnostic.line);
76954
76699
  return lineRanges.some(([rangeStartLine, rangeEndLine]) => diagnostic.line <= rangeEndLine && diagnosticEndLine >= rangeStartLine);
76955
76700
  };
76956
- const getOwnedContext = ({ sourceFile, owner, isBoundary }) => {
76957
- const excludedRanges = [];
76958
- const collectChildren = (node) => {
76959
- if (isBoundary(node)) {
76960
- excludedRanges.push([sourceFile.getLineAndCharacterOfPosition(node.getStart(sourceFile)).line + 1, sourceFile.getLineAndCharacterOfPosition(node.getEnd() - 1).line + 1]);
76961
- return;
76962
- }
76963
- typescriptBinding.forEachChild(node, collectChildren);
76964
- };
76965
- typescriptBinding.forEachChild(owner, collectChildren);
76966
- return {
76967
- range: [sourceFile.getLineAndCharacterOfPosition(owner.getStart(sourceFile)).line + 1, sourceFile.getLineAndCharacterOfPosition(owner.getEnd() - 1).line + 1],
76968
- excludedRanges
76969
- };
76970
- };
76971
76701
  const createChangedLineMatcher = ({ directory, changedLineRanges, contextual = false }) => {
76972
76702
  const changesByFile = new Map(changedLineRanges.map((entry) => [path$1$1.resolve(directory, entry.file.replaceAll("\\", "/")), entry]));
76973
76703
  const sourceFiles = /* @__PURE__ */ new Map();
@@ -76977,11 +76707,9 @@ const createChangedLineMatcher = ({ directory, changedLineRanges, contextual = f
76977
76707
  if (!changes) return false;
76978
76708
  if (diagnosticIntersectsLineRanges(diagnostic, changes.ranges)) return true;
76979
76709
  if (!contextual) return false;
76980
- const ruleMetadata = getRuleMetadata(diagnostic.plugin, diagnostic.rule);
76981
- const scope = ruleMetadata?.diffScope ?? "line";
76982
- const explicitContextRanges = ruleMetadata ? diagnostic.contextRanges : void 0;
76983
- if (!explicitContextRanges && scope === "file") return true;
76984
- if (!explicitContextRanges && scope === "line" || !/\.[cm]?[jt]sx?$/i.test(filePath)) return false;
76710
+ const scope = getRuleMetadata(diagnostic.plugin, diagnostic.rule)?.diffScope ?? "line";
76711
+ if (scope === "file") return true;
76712
+ if (scope === "line" || !/\.[cm]?[jt]sx?$/i.test(filePath)) return false;
76985
76713
  if (!sourceFiles.has(filePath)) try {
76986
76714
  const sourceFile = typescriptBinding.createSourceFile(filePath, fs$1$2.readFileSync(filePath, "utf8"), typescriptBinding.ScriptTarget.Latest, true, getTypescriptScriptKind(filePath));
76987
76715
  const hasParseErrors = "parseDiagnostics" in sourceFile && Array.isArray(sourceFile.parseDiagnostics) && sourceFile.parseDiagnostics.length > 0;
@@ -76992,10 +76720,6 @@ const createChangedLineMatcher = ({ directory, changedLineRanges, contextual = f
76992
76720
  const sourceFile = sourceFiles.get(filePath);
76993
76721
  if (!sourceFile) return false;
76994
76722
  const sourceBuffer = Buffer.from(sourceFile.text);
76995
- if (explicitContextRanges) return doesContextIntersectChanges({
76996
- contexts: explicitContextRanges.filter(({ offset, length }) => Number.isSafeInteger(offset) && Number.isSafeInteger(length) && offset >= 0 && length > 0 && offset + length <= sourceBuffer.length).map(({ offset, length }) => ({ range: [lineOfUtf8Offset(sourceBuffer, offset), lineOfUtf8Offset(sourceBuffer, offset + length - 1)] })),
76997
- changes
76998
- });
76999
76723
  const byteOffset = diagnostic.offset ?? utf8OffsetFromSourcePosition(sourceBuffer, diagnostic.line, diagnostic.column - 1);
77000
76724
  if (byteOffset === null || byteOffset < 0 || byteOffset >= sourceBuffer.length) return false;
77001
76725
  const position = sourceBuffer.subarray(0, byteOffset).toString("utf8").length;
@@ -77009,12 +76733,10 @@ const createChangedLineMatcher = ({ directory, changedLineRanges, contextual = f
77009
76733
  findOwner(sourceFile);
77010
76734
  if (!owner) return false;
77011
76735
  return doesContextIntersectChanges({
77012
- contexts: [getOwnedContext({
77013
- sourceFile,
77014
- owner,
77015
- isBoundary
77016
- })],
77017
- changes
76736
+ sourceFile,
76737
+ owner,
76738
+ changes,
76739
+ isBoundary
77018
76740
  });
77019
76741
  };
77020
76742
  };
@@ -77449,7 +77171,7 @@ const makeNoopConsole = () => ({
77449
77171
  });
77450
77172
  //#endregion
77451
77173
  //#region src/cli/utils/version.ts
77452
- const VERSION = "0.9.18-dev.9a79847";
77174
+ const VERSION = "0.9.18-dev.d1feed1";
77453
77175
  //#endregion
77454
77176
  //#region src/cli/utils/json-mode.ts
77455
77177
  let context = null;
@@ -77793,5 +77515,5 @@ const recordDistribution = (name, value, options = {}) => {
77793
77515
  //#endregion
77794
77516
  export { buildRuleSeverityControls as $, scrubSensitivePaths as $t, Files as A, mergeAll$1 as An, hasSupportedFrameworkOrLibrary as At, PerFileLintCacheEnabled as B, messageFromUnknown as Bn, listSourceFilesCooperative as Bt, ACTION_INPUT_ENVIRONMENT_VARIABLES as C, provideService as Cn, getChangedLineRanges as Ct, isCodingAgentEnvironment as D, try_ as Dn, getRuleMetadata as Dt, isCiOrCodingAgentEnvironment as E, sync as En, getEquivalentRuleKeys as Et, Linter as F, fail$5 as Fn, isReactDoctorError as Ft, SidecarLintCacheEnabled as G, isPlainObject as Gn, mergeAndFilterDiagnostics as Gt, Project as H, isDirectory as Hn, loadConfigWithSource as Ht, Maintainability as I, void_$1 as In, isSameRuleKey as It, anonymizeInPlace as J, resolveGithubActionsScoreMetadata as Jt, StagedFiles as K, mergeReactDoctorConfigs as Kt, NodeResolver as L, ParentSpan as Ln, isScanComplete as Lt, InvocationCaches as M, succeed$3 as Mn, highlighter as Mt, LEGACY_CONFIG_FILENAME as N, close as Nn, isPathInsideDirectory as Nt, Config as O, void_ as On, groupBy as Ot, LintPartialFailures as P, makeUnsafe$5 as Pn, isProjectDiscoveryError as Pt, buildRuleDocsUrl as Q, runInspect as Qt, OxlintConcurrency as R, isMonorepoRoot as Rn, layerObservability as Rt, isDebugFlagEnabled as S, provideContext as Sn, getBaselineDiffPlan as St, isCiEnvironment as T, runSync as Tn, getDiffInfo as Tt, Reporter as U, isErrnoException as Un, mapWithConcurrency as Ut, Progress as V, toCanonicalPath as Vn, listWorkspacePackages as Vt, Score as W, isFile as Wn, materializeSourceTree as Wt, atomicWriteJson as X, resolveScanTarget as Xt, anonymizeText as Y, resolveLintBatchOrdering as Yt, buildJsonReport as Z, restoreLegacyThrow as Zt, VERSION as _, makeSpan$1 as _n, findGitRepositoryRoot as _t, isEnvFlagEnabled as a, warmDuplicateJsxWorker as an, collectSourceFilesByDirectory as at, isNonInteractiveEnvironment as b, promise as bn, formatErrorChain as bt, setSentryProjectInfo as c, error as cn, countOptInProjectRuleSelections as ct, isJsonModeActive as d, warn$1 as dn, createOxlintSpawnSlots as dt, setColorEnabled as en, buildSkippedChecks as et, setJsonReportDirectory as f, Diagnostic as fn, detectAiTrainingEnvironment as ft, writeJsonReport as g, gen as gn, filterSourceFiles as gt, writeJsonErrorReport as h, make$30 as hn, filterPathsOutsideDirectories as ht, isTelemetryEnabled as i, validateConfigTypes as in, clearConfigCache as it, Git as j, provide$2 as jn, hashFileContents as jt, DIAGNOSTIC_DELTA_IDENTITY as k, buildWithScope as kn, hasPublishedFixRecipe as kt, getRunId as l, info as ln, createChangedLineMatcher as lt, writeJsonCancellationReport as m, decodeUnknownSync as mn, filterDiagnosticsForSurface as mt, recordDistribution as n, summarizeDiagnostics as nn, canonicalizeUserRuleKey as nt, buildSentryScope as o, warmOxlintWorkerPool as on, computeConfigFingerprint as ot, setJsonReportMode as p, JsonReport as pn, discoverSupportedSubprojects as pt, SupplyChain as q, remainingDeadlineBudgetMs as qt, toSpanAttributes as r, toRelativePath as rn, classifyFileContext as rt, buildSentryProjectContext as s, Console as sn, computeDiagnosticDelta as st, recordCount as t, shouldUseMaintainabilityLayer as tn, calculateScore as tt, enableJsonMode as u, log as un, createInvocationCaches as ut, makeNoopConsole as v, map$3 as vn, findLegacyConfig as vt, detectRunnerOs as w, runPromise as wn, getDiagnosticRuleIdentity as wt, isGitHookEnvironment as x, provide as xn, formatReactDoctorError as xt, CliInputError as y, orElseSucceed as yn, fingerprintDiagnosticEvidence as yt, OxlintSpawnSlots as z, yieldToEventLoop as zn, listSourceFiles as zt };
77795
77517
 
77796
- //# sourceMappingURL=record-metric-CgebwK0K.js.map
77797
- //# debugId=0eaa5205-d906-5228-bfb8-cef2337dfce5
77518
+ //# sourceMappingURL=record-metric-BKOubZhF.js.map
77519
+ //# debugId=1343d6eb-5171-5ee7-9c80-1190c9dac97d
@@ -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]="961e9709-190e-555a-bacc-9c1fb5e96b1f")}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]="c327d5c2-2e2d-5280-850a-ff34df729c4e")}catch(e){}}();
3
3
  import { S as SENTRY_FLUSH_TIMEOUT_MS, u as METRIC } from "./constants-_b1h6lxa.js";
4
- import { Ft as isReactDoctorError, l as getRunId, o as buildSentryScope, t as recordCount } from "./record-metric-CgebwK0K.js";
5
- import { i as getSentry, n as shutdownTelemetry, o as isExpectedUserError } from "./telemetry-runtime-BmL4aFx2.js";
4
+ import { Ft as isReactDoctorError, l as getRunId, o as buildSentryScope, t as recordCount } from "./record-metric-BKOubZhF.js";
5
+ import { i as getSentry, n as shutdownTelemetry, o as isExpectedUserError } from "./telemetry-runtime-CnqHaBss.js";
6
6
  import { r as recordRunTraceId, t as getActiveRunTrace } from "./active-run-trace-Dewycxda.js";
7
7
  //#region src/cli/utils/report-error.ts
8
8
  /**
@@ -61,5 +61,5 @@ const reportErrorToSentry = async (error) => {
61
61
  //#endregion
62
62
  export { reportErrorToSentry as t };
63
63
 
64
- //# sourceMappingURL=report-error-DYLN3xZA.js.map
65
- //# debugId=961e9709-190e-555a-bacc-9c1fb5e96b1f
64
+ //# sourceMappingURL=report-error-D0ldwCuq.js.map
65
+ //# debugId=c327d5c2-2e2d-5280-850a-ff34df729c4e
@@ -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]="b13bae0a-d507-527f-823c-0f9b564c0bfc")}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]="edcf55c4-42ae-5649-8321-28af3ea3a622")}catch(e){}}();
3
3
  import { m as REACT_DOCTOR_CONFIG_PROJECT_NAME, u as METRIC } from "./constants-_b1h6lxa.js";
4
- import { t as recordCount } from "./record-metric-CgebwK0K.js";
5
- import { u as isCommandAvailable } from "./install-github-workflow-BPUJzESV.js";
4
+ import { t as recordCount } from "./record-metric-BKOubZhF.js";
5
+ import { u as isCommandAvailable } from "./install-github-workflow-CtZTc3JB.js";
6
6
  import { createRequire } from "node:module";
7
7
  import * as path$1 from "node:path";
8
8
  import { spawn } from "node:child_process";
@@ -289,5 +289,5 @@ const reportWorkflowResult = (workflowSpinner, result, projectRoot) => {
289
289
  //#endregion
290
290
  export { recordGate as a, ACTION_UPGRADE_EVENT as c, INSTALL_AGENTS_PREFERENCE_ID as d, ONBOARDING_EVENT as f, loadAgentInstall as g, detectAvailableAgents as h, readPreference as i, CI_PITCH_EVENT as l, computeDefaultSelectedAgents as m, openUrl as n, runMigrations as o, SETUP_HINT_EVENT as p, isGatePending as r, writePreference as s, reportWorkflowResult as t, HANDOFF_TARGET_PREFERENCE_ID as u };
291
291
 
292
- //# sourceMappingURL=report-workflow-result-BfR_cSwa.js.map
293
- //# debugId=b13bae0a-d507-527f-823c-0f9b564c0bfc
292
+ //# sourceMappingURL=report-workflow-result-C5QvbfRq.js.map
293
+ //# debugId=edcf55c4-42ae-5649-8321-28af3ea3a622