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
package/dist/index.js CHANGED
@@ -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]="f19a4e97-e6d1-58b3-b9ee-17a3545fa20d")}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]="6e5348ce-89a8-5e51-b3ea-6e2796874b0d")}catch(e){}}();
3
3
  import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
4
4
  import { createRequire } from "node:module";
5
5
  import * as fs$1$2 from "node:fs";
@@ -13,13 +13,13 @@ import { fileURLToPath } from "node:url";
13
13
  import * as os$1 from "node:os";
14
14
  import os from "node:os";
15
15
  import * as Crypto from "node:crypto";
16
- import crypto, { createHash } from "node:crypto";
16
+ import crypto, { createHash, randomUUID } from "node:crypto";
17
17
  import { Worker } from "node:worker_threads";
18
18
  import * as net from "node:net";
19
19
  import { parseSync } from "oxc-parser";
20
20
  import * as fs$1$1 from "node:fs/promises";
21
21
  import { ResolverFactory } from "oxc-resolver";
22
- 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";
22
+ 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";
23
23
  import { parseJSON5, parseJSONC } from "confbox";
24
24
  import { createJiti } from "jiti";
25
25
  import { PassThrough } from "node:stream";
@@ -7838,37 +7838,6 @@ const mapInput = /* @__PURE__ */ dual(2, (self, f) => make$37((b1, b2) => self(f
7838
7838
  */
7839
7839
  const isGreaterThan$1 = (O) => dual(2, (self, that) => O(self, that) === 1);
7840
7840
  /**
7841
- * Checks whether one value is greater than or equal to another according to the given order.
7842
- *
7843
- * **When to use**
7844
- *
7845
- * Use when you need a boolean greater-than-or-equal predicate using an
7846
- * `Order`.
7847
- *
7848
- * **Details**
7849
- *
7850
- * Returns `true` if the order returns `1` or `0`, and returns `false` only if
7851
- * the order returns `-1`.
7852
- *
7853
- * **Example** (Checking greater-than-or-equal comparisons)
7854
- *
7855
- * ```ts
7856
- * import { Order } from "effect"
7857
- *
7858
- * const isGreaterThanOrEqualToNumber = Order.isGreaterThanOrEqualTo(Order.Number)
7859
- *
7860
- * console.log(isGreaterThanOrEqualToNumber(2, 1)) // true
7861
- * console.log(isGreaterThanOrEqualToNumber(1, 1)) // true
7862
- * console.log(isGreaterThanOrEqualToNumber(1, 2)) // false
7863
- * ```
7864
- *
7865
- * @see {@link isGreaterThan} for strict greater than
7866
- * @see {@link isLessThanOrEqualTo} for less than or equal
7867
- * @category predicates
7868
- * @since 4.0.0
7869
- */
7870
- const isGreaterThanOrEqualTo$1 = (O) => dual(2, (self, that) => O(self, that) !== -1);
7871
- /**
7872
7841
  * Returns the maximum of two values according to the given order. If they are equal, returns the first argument.
7873
7842
  *
7874
7843
  * **When to use**
@@ -24753,203 +24722,6 @@ function link$1() {
24753
24722
  };
24754
24723
  }
24755
24724
  /**
24756
- * Creates a custom validation filter from a predicate function.
24757
- *
24758
- * **Details**
24759
- *
24760
- * The predicate receives the decoded input value, the schema AST, and parse
24761
- * options, and returns a `FilterOutput`. Non-success outputs are normalized into
24762
- * schema issues. The `annotations` parameter annotates the filter itself; with
24763
- * the default formatter, failures use `message` first, `expected` second, and
24764
- * `<filter>` when neither is provided.
24765
- *
24766
- * When `abort` is `true`, parsing stops after this filter fails instead of
24767
- * collecting later check failures.
24768
- *
24769
- * **Example** (Reporting failure at a nested path)
24770
- *
24771
- * ```ts
24772
- * import { Schema } from "effect"
24773
- *
24774
- * const schema = Schema.Struct({ password: Schema.String, confirmPassword: Schema.String }).check(
24775
- * Schema.makeFilter((o) =>
24776
- * o.password === o.confirmPassword
24777
- * ? undefined
24778
- * : { path: ["password"], issue: "password and confirmPassword must match" }
24779
- * )
24780
- * )
24781
- *
24782
- * console.log(String(Schema.decodeUnknownExit(schema)({ password: "123456", confirmPassword: "1234567" })))
24783
- * // Failure(Cause([Fail(SchemaError: password and confirmPassword must match
24784
- * // at ["password"])]))
24785
- * ```
24786
- *
24787
- * **Example** (Reporting multiple failures at once)
24788
- *
24789
- * ```ts
24790
- * import { Schema } from "effect"
24791
- *
24792
- * const schema = Schema.Struct({ a: Schema.Finite, b: Schema.Finite, c: Schema.Finite }).check(
24793
- * Schema.makeFilter((o) => {
24794
- * const issues: Array<Schema.FilterIssue> = []
24795
- * if (o.a > 0) {
24796
- * if (o.b <= 0) issues.push({ path: ["b"], issue: "b must be greater than 0" })
24797
- * if (o.c <= 0) issues.push({ path: ["c"], issue: "c must be greater than 0" })
24798
- * }
24799
- * return issues
24800
- * })
24801
- * )
24802
- *
24803
- * console.log(String(Schema.decodeUnknownExit(schema)({ a: 1, b: 0, c: 0 })))
24804
- * // Failure(Cause([Fail(SchemaError: b must be greater than 0
24805
- * // at ["b"]
24806
- * // c must be greater than 0
24807
- * // at ["c"])]))
24808
- * ```
24809
- *
24810
- * @category constructors
24811
- * @since 4.0.0
24812
- */
24813
- const makeFilter = makeFilter$1;
24814
- /**
24815
- * Creates a greater-than (`>`) check for any ordered type from an
24816
- * `Order.Order` instance.
24817
- *
24818
- * @category Order checks
24819
- * @since 4.0.0
24820
- */
24821
- function makeIsGreaterThan(options) {
24822
- const gt = isGreaterThan$1(options.order);
24823
- const formatter = options.formatter ?? format$1;
24824
- return (exclusiveMinimum, annotations) => {
24825
- return makeFilter((input) => gt(input, exclusiveMinimum), {
24826
- expected: `a value greater than ${formatter(exclusiveMinimum)}`,
24827
- arbitrary: { constraint: { ordered: {
24828
- order: options.order,
24829
- minimum: exclusiveMinimum,
24830
- exclusiveMinimum: true
24831
- } } },
24832
- ...options.annotate?.(exclusiveMinimum),
24833
- ...annotations
24834
- });
24835
- };
24836
- }
24837
- /**
24838
- * Creates a greater-than-or-equal-to (`>=`) check for any ordered type from an
24839
- * `Order.Order` instance.
24840
- *
24841
- * @category Order checks
24842
- * @since 4.0.0
24843
- */
24844
- function makeIsGreaterThanOrEqualTo(options) {
24845
- const gte = isGreaterThanOrEqualTo$1(options.order);
24846
- const formatter = options.formatter ?? format$1;
24847
- return (minimum, annotations) => {
24848
- return makeFilter((input) => gte(input, minimum), {
24849
- expected: `a value greater than or equal to ${formatter(minimum)}`,
24850
- arbitrary: { constraint: { ordered: {
24851
- order: options.order,
24852
- minimum
24853
- } } },
24854
- ...options.annotate?.(minimum),
24855
- ...annotations
24856
- });
24857
- };
24858
- }
24859
- function encodeNumberPayload(number) {
24860
- if (!globalThis.Number.isFinite(number)) throw new globalThis.RangeError(`Expected a finite number, got ${format$1(number)}`);
24861
- return number;
24862
- }
24863
- /**
24864
- * Validates that a number is greater than the specified value (exclusive).
24865
- *
24866
- * **Details**
24867
- *
24868
- * JSON Schema:
24869
- *
24870
- * This check corresponds to the `exclusiveMinimum` constraint in JSON Schema.
24871
- *
24872
- * Arbitrary:
24873
- *
24874
- * When generating test data with fast-check, this applies an
24875
- * `exclusiveMinimum` constraint to ensure generated numbers are greater than
24876
- * the specified value.
24877
- *
24878
- * @category Number checks
24879
- * @since 4.0.0
24880
- */
24881
- const isGreaterThan = /* @__PURE__ */ makeIsGreaterThan({
24882
- order: Number$5,
24883
- annotate: (exclusiveMinimum) => ({
24884
- representation: {
24885
- id: "effect/schema/isGreaterThan",
24886
- payload: { exclusiveMinimum: encodeNumberPayload(exclusiveMinimum) }
24887
- },
24888
- toJsonSchema: () => ({ exclusiveMinimum }),
24889
- toCode: () => ({ runtime: `Schema.isGreaterThan(${format$1(exclusiveMinimum)})` })
24890
- })
24891
- });
24892
- /**
24893
- * Validates that a number is greater than or equal to the specified value
24894
- * (inclusive).
24895
- *
24896
- * **Details**
24897
- *
24898
- * JSON Schema:
24899
- *
24900
- * This check corresponds to the `minimum` constraint in JSON Schema.
24901
- *
24902
- * Arbitrary:
24903
- *
24904
- * When generating test data with fast-check, this applies a `minimum` constraint
24905
- * to ensure generated numbers are greater than or equal to the specified value.
24906
- *
24907
- * @category Number checks
24908
- * @since 4.0.0
24909
- */
24910
- const isGreaterThanOrEqualTo = /* @__PURE__ */ makeIsGreaterThanOrEqualTo({
24911
- order: Number$5,
24912
- annotate: (minimum) => ({
24913
- representation: {
24914
- id: "effect/schema/isGreaterThanOrEqualTo",
24915
- payload: { minimum: encodeNumberPayload(minimum) }
24916
- },
24917
- toJsonSchema: () => ({ minimum }),
24918
- toCode: () => ({ runtime: `Schema.isGreaterThanOrEqualTo(${format$1(minimum)})` })
24919
- })
24920
- });
24921
- /**
24922
- * Validates that a number is a safe integer (within the safe integer range
24923
- * that can be exactly represented in JavaScript).
24924
- *
24925
- * **Details**
24926
- *
24927
- * JSON Schema:
24928
- *
24929
- * This check corresponds to the `type: "integer"` constraint in JSON Schema.
24930
- *
24931
- * Arbitrary:
24932
- *
24933
- * When generating test data with fast-check, this applies an `integer: true`
24934
- * constraint to ensure generated numbers are integers.
24935
- *
24936
- * @category Integer checks
24937
- * @since 4.0.0
24938
- */
24939
- function isInt(annotations) {
24940
- return makeFilter((n) => globalThis.Number.isSafeInteger(n), {
24941
- expected: "an integer",
24942
- representation: {
24943
- id: "effect/schema/isInt",
24944
- payload: null
24945
- },
24946
- toJsonSchema: () => ({ type: "integer" }),
24947
- toCode: () => ({ runtime: "Schema.isInt()" }),
24948
- arbitrary: { constraint: { integer: true } },
24949
- ...annotations
24950
- });
24951
- }
24952
- /**
24953
24725
  * Schema for values that hide sensitive information from error output and
24954
24726
  * inspection.
24955
24727
  *
@@ -74318,7 +74090,6 @@ const normalizeConfigForHash = (config) => {
74318
74090
  const clone = JSON.parse(JSON.stringify(config));
74319
74091
  if (clone?.settings?.["react-doctor"]) {
74320
74092
  const reactDoctorSettings = clone.settings["react-doctor"];
74321
- delete reactDoctorSettings.diagnosticContextDirectory;
74322
74093
  reactDoctorSettings.rootDirectory = ROOT_DIRECTORY_PLACEHOLDER;
74323
74094
  if (Array.isArray(reactDoctorSettings.unpluginAutoImportRootDirectories)) reactDoctorSettings.unpluginAutoImportRootDirectories = [ROOT_DIRECTORY_PLACEHOLDER];
74324
74095
  }
@@ -74480,7 +74251,7 @@ const buildUserPluginRules = (userPlugin, severityControls) => {
74480
74251
  }
74481
74252
  return enabled;
74482
74253
  };
74483
- 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 }) => {
74254
+ 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 }) => {
74484
74255
  const hasIncludedTags = includedTags.size > 0;
74485
74256
  const reactHooksJsPlugin = disableReactHooksJsPlugin || ruleSelection === "sidecar" || hasIncludedTags ? null : resolveReactHooksJsPlugin(project.hasReactCompiler || project.hasReactCompilerLintPlugin === true, customRulesOnly);
74486
74257
  const reactCompilerRules = reactHooksJsPlugin ? applyRuleSeverityControls(filterRulesToAvailable(REACT_COMPILER_RULES, "react-hooks-js", reactHooksJsPlugin.availableRuleNames), severityControls) : {};
@@ -74540,7 +74311,6 @@ const createOxlintConfig = ({ pluginPath, diagnosticContextDirectory, project, c
74540
74311
  ...adoptedSettings,
74541
74312
  "react-doctor": {
74542
74313
  portedRuleMode: "curated",
74543
- ...diagnosticContextDirectory ? { diagnosticContextDirectory } : {},
74544
74314
  framework: project.framework,
74545
74315
  rootDirectory: settingsRootDirectory,
74546
74316
  capabilities: [...capabilities].sort(),
@@ -75210,14 +74980,22 @@ const runOxlintProbeJob = async (input) => {
75210
74980
  if (!isProbeResult(parsed) || parsed.traces.length !== input.probeRequest.files.length) throw new Error("oxlint worker returned a malformed probe result");
75211
74981
  return parsed;
75212
74982
  };
75213
- var DiagnosticContextRangeSchema = class extends Class("DiagnosticContextRange")({
75214
- offset: Number$1.check(isInt(), isGreaterThanOrEqualTo(0)),
75215
- length: Number$1.check(isInt(), isGreaterThan(0))
75216
- }) {};
75217
- var CachedDiagnostic = class extends Class("CachedDiagnostic")({
75218
- ...Diagnostic.fields,
75219
- contextRanges: optional(ArraySchema(DiagnosticContextRangeSchema))
75220
- }) {};
74983
+ const atomicWriteFile = (filePath, contents) => {
74984
+ let temporaryPath = null;
74985
+ try {
74986
+ fs$1$2.mkdirSync(path$1$1.dirname(filePath), { recursive: true });
74987
+ temporaryPath = `${filePath}.${process.pid}.${randomUUID()}.tmp`;
74988
+ fs$1$2.writeFileSync(temporaryPath, contents);
74989
+ fs$1$2.renameSync(temporaryPath, filePath);
74990
+ temporaryPath = null;
74991
+ } catch {
74992
+ return;
74993
+ } finally {
74994
+ if (temporaryPath !== null) try {
74995
+ fs$1$2.rmSync(temporaryPath, { force: true });
74996
+ } catch {}
74997
+ }
74998
+ };
75221
74999
  const atomicWriteJson = (filePath, value) => {
75222
75000
  try {
75223
75001
  atomicWriteFile(filePath, JSON.stringify(value));
@@ -75225,7 +75003,7 @@ const atomicWriteJson = (filePath, value) => {
75225
75003
  return;
75226
75004
  }
75227
75005
  };
75228
- const validateDiagnostic$1 = decodeUnknownSync(CachedDiagnostic);
75006
+ const validateDiagnostic$1 = decodeUnknownSync(Diagnostic);
75229
75007
  const decodeDiagnostic = (raw) => {
75230
75008
  const diagnostic = validateDiagnostic$1(raw);
75231
75009
  return {
@@ -75345,7 +75123,7 @@ const createSidecarProbeAnswerResolver = (input) => {
75345
75123
  toRelativePath
75346
75124
  };
75347
75125
  };
75348
- const validateDiagnostic = decodeUnknownSync(CachedDiagnostic);
75126
+ const validateDiagnostic = decodeUnknownSync(Diagnostic);
75349
75127
  const isProbeKind = (value) => value === "content" || value === "exists";
75350
75128
  const isProbeIdArray = (value, probeCount) => Array.isArray(value) && value.every((probeId) => typeof probeId === "number" && Number.isInteger(probeId) && probeId >= 0 && probeId < probeCount);
75351
75129
  const createProbeTable = () => {
@@ -75587,29 +75365,6 @@ const columnOfUtf8Offset = (sourceBuffer, utf8Offset) => {
75587
75365
  while (lineStartOffset > 0 && sourceBuffer[lineStartOffset - 1] !== 10) lineStartOffset--;
75588
75366
  return sourceBuffer.subarray(lineStartOffset, boundedOffset).toString("utf8").length + 1;
75589
75367
  };
75590
- const decodeRanges = decodeUnknownSync(ArraySchema(DiagnosticContextRangeSchema));
75591
- const createDiagnosticContextReader = (directory) => {
75592
- const recordedRules = /* @__PURE__ */ new Set();
75593
- if (directory) try {
75594
- for (const filename of fs$1$2.readdirSync(directory)) {
75595
- if (!filename.endsWith(".json")) continue;
75596
- recordedRules.add(filename.slice(0, filename.lastIndexOf("-")));
75597
- }
75598
- } catch {
75599
- recordedRules.clear();
75600
- }
75601
- return (identity) => {
75602
- if (!directory || !recordedRules.has(encodeURIComponent(identity.rule))) return [];
75603
- try {
75604
- return decodeRanges(failOpenReadJson(getDiagnosticContextPath({
75605
- ...identity,
75606
- directory
75607
- }), []));
75608
- } catch {
75609
- return [];
75610
- }
75611
- };
75612
- };
75613
75368
  const utf8OffsetFromSourcePosition = (sourceBuffer, lineNumber, zeroBasedColumn) => {
75614
75369
  if (lineNumber < 1 || zeroBasedColumn < 0) return null;
75615
75370
  const sourceLines = sourceBuffer.toString("utf8").split("\n");
@@ -76251,7 +76006,7 @@ const isOxlintOutput = (value) => isRecord(value) && Array.isArray(value.diagnos
76251
76006
  * to the first `{`. Raises `OxlintOutputUnparseable` when the
76252
76007
  * stdout isn't valid JSON or doesn't carry a `diagnostics` array.
76253
76008
  */
76254
- const parseOxlintOutput = (stdout, project, rootDirectory, sourcePathByLintPath, sourceMapByLintPath, diagnosticContextDirectory) => {
76009
+ const parseOxlintOutput = (stdout, project, rootDirectory, sourcePathByLintPath, sourceMapByLintPath) => {
76255
76010
  if (!stdout) return [];
76256
76011
  const jsonStart = stdout.indexOf("{");
76257
76012
  const sanitizedStdout = jsonStart > 0 ? stdout.slice(jsonStart) : stdout;
@@ -76301,33 +76056,19 @@ const parseOxlintOutput = (stdout, project, rootDirectory, sourcePathByLintPath,
76301
76056
  minifiedFileCache.set(absolutePath, minified);
76302
76057
  return minified;
76303
76058
  };
76304
- const readContextRanges = createDiagnosticContextReader(diagnosticContextDirectory);
76305
- return suppressMemoizationInBailedOutFunctions(parsed.diagnostics.flatMap((rawDiagnostic) => {
76306
- if (!isMappableOxlintDiagnostic(rawDiagnostic)) return [];
76307
- const { plugin, rule } = parseRuleCode(rawDiagnostic.code);
76308
- const primarySpan = rawDiagnostic.labels[0]?.span;
76309
- const contextRanges = diagnosticContextDirectory && plugin === "react-doctor" && primarySpan ? readContextRanges({
76310
- filename: resolveAbsolutePath(rawDiagnostic.filename),
76311
- rule,
76312
- offset: primarySpan.offset,
76313
- message: rawDiagnostic.message
76314
- }) : [];
76315
- const diagnostic = {
76316
- ...rawDiagnostic,
76317
- contextRanges
76318
- };
76059
+ return suppressMemoizationInBailedOutFunctions(parsed.diagnostics.flatMap((diagnostic) => {
76319
76060
  const preparedSourceMap = resolvePreparedSourceMap(diagnostic.filename);
76320
76061
  if (preparedSourceMap === void 0) return [diagnostic];
76062
+ const { plugin, rule } = parseRuleCode(diagnostic.code);
76321
76063
  if (plugin !== "react-doctor" || !REACT_DOCTOR_RULE_REGISTRY[rule]?.tags?.includes("design")) return [];
76322
76064
  const labels = mapPreparedSourceLabels(diagnostic.labels, preparedSourceMap);
76323
76065
  const sourceFilename = resolveMappedSourceFilename(diagnostic.filename);
76324
76066
  return labels === null || sourceFilename === void 0 ? [] : [{
76325
76067
  ...diagnostic,
76326
76068
  filename: sourceFilename,
76327
- labels,
76328
- contextRanges: []
76069
+ labels
76329
76070
  }];
76330
- }).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) => {
76071
+ }).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) => {
76331
76072
  const { plugin, rule } = parseRuleCode(diagnostic.code);
76332
76073
  const primaryLabel = diagnostic.labels[0];
76333
76074
  const cleaned = cleanDiagnosticMessage(diagnostic.message, diagnostic.help, plugin, rule, project);
@@ -76364,7 +76105,6 @@ const parseOxlintOutput = (stdout, project, rootDirectory, sourcePathByLintPath,
76364
76105
  ...primarySpanEndLine !== void 0 ? { endLine: primarySpanEndLine } : {}
76365
76106
  } : {},
76366
76107
  category,
76367
- ...diagnostic.contextRanges.length > 0 ? { contextRanges: diagnostic.contextRanges } : {},
76368
76108
  ...matchByOccurrence ? { matchByOccurrence: true } : {},
76369
76109
  ...relatedLocations.length > 0 ? { relatedLocations } : {}
76370
76110
  };
@@ -76477,7 +76217,7 @@ const spawnLintBatches = async (input) => {
76477
76217
  };
76478
76218
  const stdout = input.spawnSlots === void 0 ? await spawnBatch() : await input.spawnSlots.run(spawnBatch, signal);
76479
76219
  if (stdout === null) return [];
76480
- return parseOxlintOutput(stdout, project, rootDirectory, sourcePathByLintPath, sourceMapByLintPath, input.diagnosticContextDirectory);
76220
+ return parseOxlintOutput(stdout, project, rootDirectory, sourcePathByLintPath, sourceMapByLintPath);
76481
76221
  } catch (error) {
76482
76222
  if (!isSplittableReactDoctorError(error)) throw error;
76483
76223
  if (isPastDeadline()) {
@@ -77206,8 +76946,6 @@ const runOxlint = async (options) => {
77206
76946
  const configDirectory = fs$1$2.mkdtempSync(path$1$1.join(os.tmpdir(), "react-doctor-oxlintrc-"));
77207
76947
  const configPath = path$1$1.join(configDirectory, "oxlintrc.json");
77208
76948
  try {
77209
- const diagnosticContextDirectory = path$1$1.join(configDirectory, "contexts");
77210
- fs$1$2.mkdirSync(diagnosticContextDirectory);
77211
76949
  const oxlintBinary = resolveOxlintBinary();
77212
76950
  const sharedArgs = [];
77213
76951
  let tsconfigContent = null;
@@ -77256,7 +76994,6 @@ const runOxlint = async (options) => {
77256
76994
  } : project;
77257
76995
  const buildConfig = (overrides) => createOxlintConfig({
77258
76996
  pluginPath,
77259
- diagnosticContextDirectory,
77260
76997
  project: lintProject,
77261
76998
  customRulesOnly,
77262
76999
  extendsPaths: overrides.extendsPaths,
@@ -77308,7 +77045,6 @@ const runOxlint = async (options) => {
77308
77045
  project: lintProject,
77309
77046
  sourcePathByLintPath: preparedLintSources.sourcePathByLintPath,
77310
77047
  sourceMapByLintPath: preparedLintSources.sourceMapByLintPath,
77311
- diagnosticContextDirectory,
77312
77048
  onPartialFailure: reportPartialFailure,
77313
77049
  onAnalyzedFiles: (filePaths) => {
77314
77050
  analyzedFiles = filePaths;
@@ -77536,7 +77272,6 @@ const runOxlint = async (options) => {
77536
77272
  project: lintProject,
77537
77273
  sourcePathByLintPath: preparedLintSources.sourcePathByLintPath,
77538
77274
  sourceMapByLintPath: preparedLintSources.sourceMapByLintPath,
77539
- diagnosticContextDirectory,
77540
77275
  onPartialFailure,
77541
77276
  onAnalyzedFiles: (filePaths) => {
77542
77277
  analyzedFiles = filePaths;
@@ -77833,7 +77568,7 @@ const ScoreApiResponseSchema = Struct({
77833
77568
  });
77834
77569
  const EMPTY_SCORE_REQUEST_METADATA = {};
77835
77570
  const parseScoreResult = (value) => getOrNull(decodeUnknownOption(ScoreApiResponseSchema)(value));
77836
- const sanitizeScoreDiagnostics = (diagnostics) => diagnostics.map(({ filePath, fileContext: _fileContext, fixGroupId: _fixGroupId, contextRanges: _contextRanges, ...rest }) => ({
77571
+ const sanitizeScoreDiagnostics = (diagnostics) => diagnostics.map(({ filePath, fileContext: _fileContext, fixGroupId: _fixGroupId, ...rest }) => ({
77837
77572
  ...rest,
77838
77573
  filePath: redactSensitiveText(scrubSensitivePaths(filePath))
77839
77574
  }));
@@ -79089,13 +78824,12 @@ const findWorstScoredProject = (projects) => {
79089
78824
  return worst;
79090
78825
  };
79091
78826
  const toJsonReportDiagnostic = (diagnostic, projectRoot, reportRoot) => {
79092
- const { contextRanges: _contextRanges, ...publicDiagnostic } = diagnostic;
79093
78827
  const resolvedFilePath = resolveCandidateReadPath(projectRoot, diagnostic.filePath);
79094
78828
  const normalizedFilePath = toNormalizedRelativePath(resolvedFilePath, projectRoot);
79095
78829
  const reportRelativeFilePath = toNormalizedRelativePath(resolvedFilePath, reportRoot);
79096
78830
  const ruleIdentity = getDiagnosticRuleIdentity(diagnostic);
79097
78831
  return {
79098
- ...publicDiagnostic,
78832
+ ...diagnostic,
79099
78833
  id: buildDiagnosticIdentity({
79100
78834
  filePath: reportRelativeFilePath,
79101
78835
  line: diagnostic.line,
@@ -79588,4 +79322,4 @@ const toJsonReport = (result, options) => buildJsonReport({
79588
79322
  export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, hasReactRuntime, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
79589
79323
 
79590
79324
  //# sourceMappingURL=index.js.map
79591
- //# debugId=f19a4e97-e6d1-58b3-b9ee-17a3545fa20d
79325
+ //# debugId=6e5348ce-89a8-5e51-b3ea-6e2796874b0d
@@ -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]="28453de6-5108-5a05-9ef7-7ce2ab5a6ac6")}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]="0ba9ab24-113f-59c8-86db-452c324f31ea")}catch(e){}}();
3
3
  import { N as discardPrefetchedGitCommands, T as STAGED_SNAPSHOT_ADDITIONAL_CONFIG_FILENAMES, lt as CANONICAL_GITHUB_URL, u as METRIC, w as STAGED_FILES_TEMP_DIR_PREFIX, xn as STAGED_FILES_PROJECT_CONFIG_FILENAMES } from "./constants-_b1h6lxa.js";
4
- import { At as hasSupportedFrameworkOrLibrary, Bn as messageFromUnknown, Ct as getChangedLineRanges, D as isCodingAgentEnvironment, E as isCiOrCodingAgentEnvironment, Gn as isPlainObject, K as StagedFiles, Mt as highlighter, S as isDebugFlagEnabled, St as getBaselineDiffPlan, Tt as getDiffInfo, Un as isErrnoException, Ut as mapWithConcurrency, Vt as listWorkspacePackages, Xt as resolveScanTarget, Z as buildJsonReport, _ as VERSION, f as setJsonReportDirectory, ft as detectAiTrainingEnvironment, g as writeJsonReport, gn as gen, h as writeJsonErrorReport, j as Git, jn as provide, mn as decodeUnknownSync, n as recordDistribution, p as setJsonReportMode, pn as JsonReport, pt as discoverSupportedSubprojects, qt as remainingDeadlineBudgetMs, rn as toRelativePath, t as recordCount, u as enableJsonMode, vt as findLegacyConfig, wn as runPromise, xn as provide$1, y as CliInputError } from "./record-metric-CgebwK0K.js";
5
- import { n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-BmL4aFx2.js";
6
- import { n as handleUserError, t as handleError } from "./handle-error-B3AmBrIU.js";
7
- import { t as reportErrorToSentry } from "./report-error-DYLN3xZA.js";
4
+ import { At as hasSupportedFrameworkOrLibrary, Bn as messageFromUnknown, Ct as getChangedLineRanges, D as isCodingAgentEnvironment, E as isCiOrCodingAgentEnvironment, Gn as isPlainObject, K as StagedFiles, Mt as highlighter, S as isDebugFlagEnabled, St as getBaselineDiffPlan, Tt as getDiffInfo, Un as isErrnoException, Ut as mapWithConcurrency, Vt as listWorkspacePackages, Xt as resolveScanTarget, Z as buildJsonReport, _ as VERSION, f as setJsonReportDirectory, ft as detectAiTrainingEnvironment, g as writeJsonReport, gn as gen, h as writeJsonErrorReport, j as Git, jn as provide, mn as decodeUnknownSync, n as recordDistribution, p as setJsonReportMode, pn as JsonReport, pt as discoverSupportedSubprojects, qt as remainingDeadlineBudgetMs, rn as toRelativePath, t as recordCount, u as enableJsonMode, vt as findLegacyConfig, wn as runPromise, xn as provide$1, y as CliInputError } from "./record-metric-BKOubZhF.js";
5
+ import { n as shutdownTelemetry, o as isExpectedUserError, r as flushSentry } from "./telemetry-runtime-CnqHaBss.js";
6
+ import { n as handleUserError, t as handleError } from "./handle-error-C8Jtnkvu.js";
7
+ import { t as reportErrorToSentry } from "./report-error-D0ldwCuq.js";
8
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-DHJd_h8L.js";
10
- import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, i as isReactDoctorWorkflowInstalled, l as prompts, s as upgradeWorkflowActionToV2 } from "./install-github-workflow-BPUJzESV.js";
11
- import { c as openWorkflowPullRequest, i as warnDeprecatedDiff, l as stageWorkflowFile, r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-DlV1G6NB.js";
12
- import { t as shouldSkipPrompts } from "./should-skip-prompts-BQ6Bv8nf.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-CMj5rx-z.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-BfR_cSwa.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-IU3RmjJs.js";
16
- import { t as readObjectFile } from "./read-object-file-OstnyYB2.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-CXY9ulVg.js";
10
+ import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, i as isReactDoctorWorkflowInstalled, l as prompts, s as upgradeWorkflowActionToV2 } from "./install-github-workflow-CtZTc3JB.js";
11
+ import { c as openWorkflowPullRequest, i as warnDeprecatedDiff, l as stageWorkflowFile, r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-CizdteDz.js";
12
+ import { t as shouldSkipPrompts } from "./should-skip-prompts-C8HttZuw.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-DKOls2cq.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-C5QvbfRq.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-BJT4YBRI.js";
16
+ import { t as readObjectFile } from "./read-object-file-5KkJXmvs.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-BhFj2qyJ.js.map
1532
- //# debugId=28453de6-5108-5a05-9ef7-7ce2ab5a6ac6
1531
+ //# sourceMappingURL=inspect-CzxNaOzL.js.map
1532
+ //# debugId=0ba9ab24-113f-59c8-86db-452c324f31ea
@@ -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]="92103fd4-51c9-5fe1-bf0e-576c14b3fcc8")}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]="dde85b7f-a52d-5405-bbae-b6990ed0792e")}catch(e){}}();
3
3
  import { u as METRIC } from "./constants-_b1h6lxa.js";
4
- import { Tn as runSync, t as recordCount } from "./record-metric-CgebwK0K.js";
5
- import { o as isExpectedUserError } from "./telemetry-runtime-BmL4aFx2.js";
6
- import { n as handleUserError, t as handleError } from "./handle-error-B3AmBrIU.js";
7
- import { t as reportErrorToSentry } from "./report-error-DYLN3xZA.js";
8
- import { t as printBrandedHeader } from "./print-branded-header-Cabdds8M.js";
9
- import { n as runInstallReactDoctor } from "./install-react-doctor-IU3RmjJs.js";
4
+ import { Tn as runSync, t as recordCount } from "./record-metric-BKOubZhF.js";
5
+ import { o as isExpectedUserError } from "./telemetry-runtime-CnqHaBss.js";
6
+ import { n as handleUserError, t as handleError } from "./handle-error-C8Jtnkvu.js";
7
+ import { t as reportErrorToSentry } from "./report-error-D0ldwCuq.js";
8
+ import { t as printBrandedHeader } from "./print-branded-header-BBKGpZ1e.js";
9
+ import { n as runInstallReactDoctor } from "./install-react-doctor-BJT4YBRI.js";
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-3nDOB3hj.js.map
34
- //# debugId=92103fd4-51c9-5fe1-bf0e-576c14b3fcc8
33
+ //# sourceMappingURL=install-R_CLQhyP.js.map
34
+ //# debugId=dde85b7f-a52d-5405-bbae-b6990ed0792e
@@ -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]="0be291fe-d01e-53c1-a7b0-6a88c3170618")}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]="a3c032a4-1e79-5a45-9a58-2fd8d58c8909")}catch(e){}}();
3
3
  import { B as resolveGitCommand, g as RUN_GIT_MAX_BUFFER_BYTES } from "./constants-_b1h6lxa.js";
4
- import { Mt as highlighter, Tn as runSync, b as isNonInteractiveEnvironment, cn as error$1, dn as warn, ln as info$1, un as log } from "./record-metric-CgebwK0K.js";
4
+ import { Mt as highlighter, Tn as runSync, b as isNonInteractiveEnvironment, cn as error$1, dn as warn, ln as info$1, un as log } from "./record-metric-BKOubZhF.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-DHJd_h8L.js.map
2822
- //# debugId=0be291fe-d01e-53c1-a7b0-6a88c3170618
2821
+ //# sourceMappingURL=install-doctor-script-CXY9ulVg.js.map
2822
+ //# debugId=a3c032a4-1e79-5a45-9a58-2fd8d58c8909
@@ -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]="d0d5b97e-956b-57e3-b5d2-1a65329332da")}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]="715b0058-7e7f-51e2-aae8-029e30f07eb8")}catch(e){}}();
3
3
  import { s as GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS } from "./constants-_b1h6lxa.js";
4
- import { _t as findGitRepositoryRoot } from "./record-metric-CgebwK0K.js";
4
+ import { _t as findGitRepositoryRoot } from "./record-metric-BKOubZhF.js";
5
5
  import { t as unrefStdin } from "./unref-stdin-D-NZBFpg.js";
6
- import { N as cliLogger } from "./install-doctor-script-DHJd_h8L.js";
6
+ import { N as cliLogger } from "./install-doctor-script-CXY9ulVg.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-BPUJzESV.js.map
285
- //# debugId=d0d5b97e-956b-57e3-b5d2-1a65329332da
284
+ //# sourceMappingURL=install-github-workflow-CtZTc3JB.js.map
285
+ //# debugId=715b0058-7e7f-51e2-aae8-029e30f07eb8
@@ -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]="3afbada7-39d1-5a6c-81df-e89fde7c3568")}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]="48e510db-962f-57af-8570-c37fed435f6b")}catch(e){}}();
3
3
  import { kt as GITHUB_ACTIONS_SETUP_URL, o as CI_TRUST_COMPANIES, pn as SKILL_NAME, u as METRIC } from "./constants-_b1h6lxa.js";
4
- import { Mt as highlighter, Un as isErrnoException, t as recordCount, y as CliInputError } from "./record-metric-CgebwK0K.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-DHJd_h8L.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-BPUJzESV.js";
7
- import { t as shouldSkipPrompts } from "./should-skip-prompts-BQ6Bv8nf.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-BfR_cSwa.js";
4
+ import { Mt as highlighter, Un as isErrnoException, t as recordCount, y as CliInputError } from "./record-metric-BKOubZhF.js";
5
+ import { C as isRecord, D as readPackageJson, E as packageHasRecordKey, M as writeJsonFile, N as cliLogger, O as resolveGitPath, S as getPackageJsonPath, T as packageHasNestedRecordKey, _ as REACT_DOCTOR_COMMAND, a as installReactDoctorScriptStep, b as VITE_PLUS_HOOKS_PATH, c as spinner, d as HUSKY_HOOKS_PATH, f as LEFTHOOK_CONFIG_FILES, g as PRE_COMMIT_CONFIG_FILE, h as OVERCOMMIT_CONFIG_FILE, k as runGit, l as HOOK_FILE_NAME, m as NON_BLOCKING_REACT_DOCTOR_COMMAND, n as findNearestPackageDirectory, p as LEGACY_HOOK_RUNNER_RELATIVE_PATH, r as hasDoctorDependency, t as DOCTOR_PACKAGE_NAME, u as HOOK_RELATIVE_PATH, w as packageHasDependency, x as ensureTrailingNewline } from "./install-doctor-script-CXY9ulVg.js";
6
+ import { a as readReactDoctorWorkflow, c as workflowUsesV1Action, d as detectDefaultBranch, l as prompts, n as getReactDoctorWorkflowPath, o as upgradeReactDoctorWorkflowInPlace, r as installReactDoctorWorkflow } from "./install-github-workflow-CtZTc3JB.js";
7
+ import { t as shouldSkipPrompts } from "./should-skip-prompts-C8HttZuw.js";
8
+ import { a as recordGate, c as ACTION_UPGRADE_EVENT, d as INSTALL_AGENTS_PREFERENCE_ID, g as loadAgentInstall, h as detectAvailableAgents, i as readPreference, l as CI_PITCH_EVENT, m as computeDefaultSelectedAgents, n as openUrl, r as isGatePending, s as writePreference, t as reportWorkflowResult } from "./report-workflow-result-C5QvbfRq.js";
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-IU3RmjJs.js.map
1160
- //# debugId=3afbada7-39d1-5a6c-81df-e89fde7c3568
1159
+ //# sourceMappingURL=install-react-doctor-BJT4YBRI.js.map
1160
+ //# debugId=48e510db-962f-57af-8570-c37fed435f6b