react-doctor 0.5.8-dev.5f2bd72 → 0.5.8-dev.6339f71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/lsp.js CHANGED
@@ -6021,7 +6021,7 @@ const composePassthrough = /* @__PURE__ */ dual(2, (left, right) => (input) => {
6021
6021
  * @since 2.0.0
6022
6022
  */
6023
6023
  const Scheduler = /* @__PURE__ */ Reference("effect/Scheduler", { defaultValue: () => new MixedScheduler() });
6024
- const setImmediate = "setImmediate" in globalThis ? (f) => {
6024
+ const setImmediate$1 = "setImmediate" in globalThis ? (f) => {
6025
6025
  const timer = globalThis.setImmediate(f);
6026
6026
  return () => globalThis.clearImmediate(timer);
6027
6027
  } : (f) => {
@@ -6065,7 +6065,7 @@ var PriorityBuckets = class {
6065
6065
  var MixedScheduler = class {
6066
6066
  executionMode;
6067
6067
  setImmediate;
6068
- constructor(executionMode = "async", setImmediateFn = setImmediate) {
6068
+ constructor(executionMode = "async", setImmediateFn = setImmediate$1) {
6069
6069
  this.executionMode = executionMode;
6070
6070
  this.setImmediate = setImmediateFn;
6071
6071
  }
@@ -6090,7 +6090,7 @@ var MixedSchedulerDispatcher = class {
6090
6090
  tasks = /* @__PURE__ */ new PriorityBuckets();
6091
6091
  running = void 0;
6092
6092
  setImmediate;
6093
- constructor(setImmediateFn = setImmediate) {
6093
+ constructor(setImmediateFn = setImmediate$1) {
6094
6094
  this.setImmediate = setImmediateFn;
6095
6095
  }
6096
6096
  /**
@@ -33730,6 +33730,7 @@ const MILLISECONDS_PER_SECOND = 1e3;
33730
33730
  const SCORE_API_URL = "https://www.react.doctor/api/score";
33731
33731
  const FETCH_TIMEOUT_MS = 1e4;
33732
33732
  const GITHUB_VIEWER_PERMISSION_TIMEOUT_MS = 2e3;
33733
+ const SPAWN_ARGS_MAX_LENGTH_CHARS = 24e3;
33733
33734
  const PER_WORKER_MEM_BUDGET_BYTES = 1024 * 1024 * 1024;
33734
33735
  const DEFAULT_BRANCH_CANDIDATES = ["main", "master"];
33735
33736
  const ADOPTABLE_LINT_CONFIG_FILENAMES = [".oxlintrc.json", ".eslintrc.json"];
@@ -33810,6 +33811,7 @@ const DEAD_CODE_PHASE_TIMEOUT_MS = 15e4;
33810
33811
  const LINT_PHASE_TIMEOUT_MS = 3e5;
33811
33812
  const SCAN_TOTAL_DEADLINE_MS = 9e5;
33812
33813
  const DEAD_CODE_WORKER_MAX_OLD_SPACE_MB = 8192;
33814
+ const DEAD_CODE_WORKER_MEM_BUDGET_BYTES = 2 * 1024 * 1024 * 1024;
33813
33815
  const DEAD_CODE_TIMEOUT_CEILING_MS = 6e5;
33814
33816
  const DEAD_CODE_PHASE_TIMEOUT_OVER_WORKER_MS = 3e4;
33815
33817
  const DEAD_CODE_OVERLAP_PARSE_SHARE = .4;
@@ -35401,7 +35403,7 @@ const resolveScanConcurrency = (requested) => {
35401
35403
  if (!Number.isFinite(requested) || requested < 1) return 1;
35402
35404
  return Math.min(Math.floor(requested), 32);
35403
35405
  };
35404
- const readSystemFacts = () => ({
35406
+ const readSystemFacts$1 = () => ({
35405
35407
  availableCores: os.availableParallelism(),
35406
35408
  totalMemoryBytes: os.totalmem(),
35407
35409
  cgroupMemoryLimitBytes: readCgroupMemoryLimitBytes()
@@ -35422,7 +35424,7 @@ const readSystemFacts = () => ({
35422
35424
  * `facts` is injectable so tests exercise core-bound, memory-bound, cgroup-
35423
35425
  * limited, and ceiling cases without mocking `os` or the filesystem.
35424
35426
  */
35425
- const resolveAutoScanConcurrency = (facts = readSystemFacts()) => {
35427
+ const resolveAutoScanConcurrency = (facts = readSystemFacts$1()) => {
35426
35428
  const availableMemoryBytes = Math.min(facts.totalMemoryBytes, facts.cgroupMemoryLimitBytes ?? Number.POSITIVE_INFINITY);
35427
35429
  const memoryBoundedWorkers = Math.floor(availableMemoryBytes / PER_WORKER_MEM_BUDGET_BYTES);
35428
35430
  return resolveScanConcurrency(Math.min(facts.availableCores, memoryBoundedWorkers));
@@ -36907,7 +36909,10 @@ const shouldEnableRule = (requires, tags, capabilities, ignoredTags, disabledBy)
36907
36909
  }
36908
36910
  return true;
36909
36911
  };
36910
- const checkSecurityScan = (rootDirectory, options = {}) => {
36912
+ const yieldToEventLoop = () => new Promise((resolve) => {
36913
+ setImmediate(resolve);
36914
+ });
36915
+ const createSecurityScanSession = (rootDirectory, options) => {
36911
36916
  const capabilities = options.project ? buildCapabilities(options.project) : /* @__PURE__ */ new Set();
36912
36917
  const ignoredTags = options.ignoredTags ?? /* @__PURE__ */ new Set();
36913
36918
  const enabledScanRules = REACT_DOCTOR_RULES.flatMap((entry) => {
@@ -36922,7 +36927,7 @@ const checkSecurityScan = (rootDirectory, options = {}) => {
36922
36927
  committedFilesOnly: rule.committedFilesOnly === true
36923
36928
  }];
36924
36929
  });
36925
- if (enabledScanRules.length === 0) return [];
36930
+ if (enabledScanRules.length === 0) return null;
36926
36931
  const diagnostics = [];
36927
36932
  const seen = /* @__PURE__ */ new Set();
36928
36933
  const gitIgnoredCache = /* @__PURE__ */ new Map();
@@ -36934,15 +36939,34 @@ const checkSecurityScan = (rootDirectory, options = {}) => {
36934
36939
  }
36935
36940
  return status === true;
36936
36941
  };
36937
- for (const file of collectSecurityScanFiles(rootDirectory)) for (const { entry, scan, committedFilesOnly } of enabledScanRules) for (const finding of scan(file)) {
36938
- if (committedFilesOnly && isFileGitIgnored(file)) continue;
36939
- const diagnostic = buildSecurityScanDiagnostic(finding, entry, file.relativePath);
36940
- const key = `${diagnostic.rule}:${diagnostic.filePath}:${diagnostic.line}:${diagnostic.column}:${diagnostic.message}`;
36941
- if (seen.has(key)) continue;
36942
- seen.add(key);
36943
- diagnostics.push(diagnostic);
36942
+ const scanFile = (file) => {
36943
+ for (const { entry, scan, committedFilesOnly } of enabledScanRules) for (const finding of scan(file)) {
36944
+ if (committedFilesOnly && isFileGitIgnored(file)) continue;
36945
+ const diagnostic = buildSecurityScanDiagnostic(finding, entry, file.relativePath);
36946
+ const key = `${diagnostic.rule}:${diagnostic.filePath}:${diagnostic.line}:${diagnostic.column}:${diagnostic.message}`;
36947
+ if (seen.has(key)) continue;
36948
+ seen.add(key);
36949
+ diagnostics.push(diagnostic);
36950
+ }
36951
+ };
36952
+ return {
36953
+ scanFile,
36954
+ diagnostics
36955
+ };
36956
+ };
36957
+ const checkSecurityScanCooperative = async (rootDirectory, options = {}) => {
36958
+ const session = createSecurityScanSession(rootDirectory, options);
36959
+ if (session === null) return [];
36960
+ let filesSinceYield = 0;
36961
+ for (const file of collectSecurityScanFiles(rootDirectory)) {
36962
+ session.scanFile(file);
36963
+ filesSinceYield += 1;
36964
+ if (filesSinceYield >= 16) {
36965
+ filesSinceYield = 0;
36966
+ await yieldToEventLoop();
36967
+ }
36944
36968
  }
36945
- return diagnostics;
36969
+ return session.diagnostics;
36946
36970
  };
36947
36971
  var import_picocolors = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
36948
36972
  let p = process || {}, argv = p.argv || [], env = p.env || {};
@@ -37159,6 +37183,74 @@ const collectDeadCodeIgnorePatterns = (rootDirectory) => {
37159
37183
  return [...seen].filter((pattern) => pattern.length > 0);
37160
37184
  };
37161
37185
  const collectDeadCodeEntryPatterns = (rootDirectory) => [...new Set(collectKnipPatterns(rootDirectory, "entry"))].filter((pattern) => pattern.length > 0);
37186
+ const readSystemFacts = () => ({
37187
+ availableCores: os.availableParallelism(),
37188
+ totalMemoryBytes: os.totalmem(),
37189
+ cgroupMemoryLimitBytes: readCgroupMemoryLimitBytes()
37190
+ });
37191
+ /**
37192
+ * How many real deslop dead-code child processes may run at once, across the
37193
+ * concurrent per-project `runInspect` fibers of one CLI run. The cap is the
37194
+ * smaller of the core count and the number of `DEAD_CODE_WORKER_MEM_BUDGET_BYTES`
37195
+ * workers that fit in available memory, floored at 1.
37196
+ *
37197
+ * On a roomy dev box / CI runner this resolves high enough that every
37198
+ * concurrently-scanned project still spawns its own worker (no serialization vs
37199
+ * the prior uncapped behavior); on a memory-constrained runner it collapses
37200
+ * toward 1, so the `withDeadCodeWorkerSlot` semaphore serializes the spawns
37201
+ * instead of oversubscribing memory with N simultaneous children — the global
37202
+ * cap the per-project spawn path lacked.
37203
+ *
37204
+ * Mirrors `resolveAutoScanConcurrency` (lint), but budgets memory per the
37205
+ * heavier dead-code worker. `facts` is injectable for tests.
37206
+ */
37207
+ const resolveDeadCodeConcurrency = (facts = readSystemFacts()) => {
37208
+ const availableMemoryBytes = Math.min(facts.totalMemoryBytes, facts.cgroupMemoryLimitBytes ?? Number.POSITIVE_INFINITY);
37209
+ const memoryBoundedWorkers = Math.floor(availableMemoryBytes / DEAD_CODE_WORKER_MEM_BUDGET_BYTES);
37210
+ return Math.max(1, Math.min(facts.availableCores, memoryBoundedWorkers));
37211
+ };
37212
+ let availableSlots = -1;
37213
+ const waiters = [];
37214
+ const releaseSlot = () => {
37215
+ const nextWaiter = waiters.shift();
37216
+ if (nextWaiter !== void 0) nextWaiter();
37217
+ else availableSlots += 1;
37218
+ };
37219
+ /**
37220
+ * Runs `task` once a dead-code worker slot is free, releasing the slot when the
37221
+ * task settles (success or failure). With a high cap (roomy machine) every
37222
+ * caller proceeds immediately; with a low cap (constrained runner) callers
37223
+ * queue and run as slots free.
37224
+ *
37225
+ * `abortSignal` short-circuits the WAIT: if it's already aborted, or fires while
37226
+ * this caller is queued, the call rejects without acquiring a slot or running
37227
+ * `task` — so a cancelled scan (e.g. lint failed) doesn't sit in the queue and
37228
+ * then spawn a child only to tear it down. A queued caller that aborts removes
37229
+ * its own waiter so a later release never hands a slot to a dead request.
37230
+ */
37231
+ const withDeadCodeWorkerSlot = async (task, abortSignal) => {
37232
+ if (abortSignal?.aborted) throw new Error("Dead-code worker aborted.");
37233
+ if (availableSlots < 0) availableSlots = resolveDeadCodeConcurrency();
37234
+ if (availableSlots > 0) availableSlots -= 1;
37235
+ else await new Promise((resolve, reject) => {
37236
+ const waiter = () => {
37237
+ abortSignal?.removeEventListener("abort", onAbort);
37238
+ resolve();
37239
+ };
37240
+ const onAbort = () => {
37241
+ const queuedIndex = waiters.indexOf(waiter);
37242
+ if (queuedIndex !== -1) waiters.splice(queuedIndex, 1);
37243
+ reject(/* @__PURE__ */ new Error("Dead-code worker aborted."));
37244
+ };
37245
+ waiters.push(waiter);
37246
+ abortSignal?.addEventListener("abort", onAbort, { once: true });
37247
+ });
37248
+ try {
37249
+ return await task();
37250
+ } finally {
37251
+ releaseSlot();
37252
+ }
37253
+ };
37162
37254
  /**
37163
37255
  * Resolves a path to its canonical, symlink-free form, falling back to
37164
37256
  * the input when it cannot be realpath'd (broken symlink, permission
@@ -37449,14 +37541,17 @@ const checkDeadCode = async (options) => {
37449
37541
  if (!NFS.existsSync(Path.join(rootDirectory, "package.json"))) return [];
37450
37542
  const entryPatterns = collectDeadCodeEntryPatterns(rootDirectory);
37451
37543
  const ignorePatterns = collectDeadCodeIgnorePatterns(rootDirectory);
37452
- const result = parseDeadCodeWorkerResult(await runDeadCodeWorkerWithTimeout((options.createWorker ?? createDeadCodeWorker)({
37453
- rootDirectory,
37454
- entryPatterns,
37455
- tsConfigPath: resolveTsConfigPath(rootDirectory),
37456
- ignorePatterns,
37457
- deslopJsModuleSpecifier: options.deslopJsModuleSpecifier ?? import.meta.resolve("deslop-js"),
37458
- parseConcurrency: options.parseConcurrency
37459
- }), options.workerTimeoutMs ?? 12e4, options.abortSignal));
37544
+ const spawnAndRun = () => {
37545
+ return runDeadCodeWorkerWithTimeout((options.createWorker ?? createDeadCodeWorker)({
37546
+ rootDirectory,
37547
+ entryPatterns,
37548
+ tsConfigPath: resolveTsConfigPath(rootDirectory),
37549
+ ignorePatterns,
37550
+ deslopJsModuleSpecifier: options.deslopJsModuleSpecifier ?? import.meta.resolve("deslop-js"),
37551
+ parseConcurrency: options.parseConcurrency
37552
+ }), options.workerTimeoutMs ?? 12e4, options.abortSignal);
37553
+ };
37554
+ const result = parseDeadCodeWorkerResult(options.createWorker === void 0 ? await withDeadCodeWorkerSlot(spawnAndRun, options.abortSignal) : await spawnAndRun());
37460
37555
  const toRelative = (filePath) => toRelativeFilePath(rootDirectory, filePath);
37461
37556
  const diagnostics = [];
37462
37557
  for (const unusedFile of result.unusedFiles) diagnostics.push({
@@ -37857,43 +37952,46 @@ var Git = class Git extends Service()("react-doctor/Git") {
37857
37952
  * reason: GitInvocationFailed })` so the rest of the codebase
37858
37953
  * sees a single failure channel.
37859
37954
  */
37860
- const runCommand = (input) => scoped(gen(function* () {
37861
- const handle = yield* spawner.spawn(make$1(input.command, [...input.args], {
37862
- cwd: input.directory,
37863
- env: input.env,
37864
- extendEnv: true
37865
- }));
37866
- const maxStdoutBytes = input.maxStdoutBytes;
37867
- const stdoutByteCount = yield* make$13(0);
37868
- const [stdout, stderr, status] = yield* all([
37869
- mkString(decodeText(maxStdoutBytes === void 0 ? handle.stdout : handle.stdout.pipe(tap((chunk) => updateAndGet(stdoutByteCount, (total) => total + chunk.length).pipe(flatMap$2((total) => total > maxStdoutBytes ? fail$4(new ReactDoctorError({ reason: new GitInvocationFailed({
37870
- args: [...input.args],
37871
- directory: input.directory,
37872
- cause: /* @__PURE__ */ new Error(`git stdout exceeded ${maxStdoutBytes} bytes`)
37873
- }) })) : void_)))))),
37874
- mkString(decodeText(handle.stderr)),
37875
- handle.exitCode
37876
- ], { concurrency: 3 });
37877
- return {
37878
- status,
37879
- stdout,
37880
- stderr
37881
- };
37882
- })).pipe(catchTag$1("PlatformError", (cause) => {
37883
- if (input.command !== "git") return succeed$2({
37955
+ const runCommand = (input) => {
37956
+ const foldSpawnFailure = (cause) => input.command !== "git" ? succeed$2({
37884
37957
  status: 127,
37885
37958
  stdout: "",
37886
37959
  stderr: String(cause)
37887
- });
37888
- return new ReactDoctorError({ reason: new GitInvocationFailed({
37960
+ }) : fail$4(new ReactDoctorError({ reason: new GitInvocationFailed({
37889
37961
  args: [...input.args],
37890
37962
  directory: input.directory,
37891
37963
  cause
37892
- }) });
37893
- }), withSpan("git.exec", { attributes: {
37894
- "git.command": input.command,
37895
- "git.subcommand": input.args[0] ?? ""
37896
- } }));
37964
+ }) }));
37965
+ return scoped(gen(function* () {
37966
+ if (!isDirectory(input.directory)) return yield* foldSpawnFailure(`spawn ENOTDIR (cwd is not a directory: ${input.directory})`);
37967
+ const argvLengthChars = input.command.length + 1 + input.args.reduce((total, arg) => total + arg.length + 1, 0);
37968
+ if (argvLengthChars > 24e3) return yield* foldSpawnFailure(`spawn ENAMETOOLONG (${argvLengthChars} argv chars exceed ${SPAWN_ARGS_MAX_LENGTH_CHARS})`);
37969
+ const handle = yield* spawner.spawn(make$1(input.command, [...input.args], {
37970
+ cwd: input.directory,
37971
+ env: input.env,
37972
+ extendEnv: true
37973
+ }));
37974
+ const maxStdoutBytes = input.maxStdoutBytes;
37975
+ const stdoutByteCount = yield* make$13(0);
37976
+ const [stdout, stderr, status] = yield* all([
37977
+ mkString(decodeText(maxStdoutBytes === void 0 ? handle.stdout : handle.stdout.pipe(tap((chunk) => updateAndGet(stdoutByteCount, (total) => total + chunk.length).pipe(flatMap$2((total) => total > maxStdoutBytes ? fail$4(new ReactDoctorError({ reason: new GitInvocationFailed({
37978
+ args: [...input.args],
37979
+ directory: input.directory,
37980
+ cause: /* @__PURE__ */ new Error(`git stdout exceeded ${maxStdoutBytes} bytes`)
37981
+ }) })) : void_)))))),
37982
+ mkString(decodeText(handle.stderr)),
37983
+ handle.exitCode
37984
+ ], { concurrency: 3 });
37985
+ return {
37986
+ status,
37987
+ stdout,
37988
+ stderr
37989
+ };
37990
+ })).pipe(catchTag$1("PlatformError", foldSpawnFailure), withSpan("git.exec", { attributes: {
37991
+ "git.command": input.command,
37992
+ "git.subcommand": input.args[0] ?? ""
37993
+ } }));
37994
+ };
37897
37995
  const runGit = (directory, args) => runCommand({
37898
37996
  command: "git",
37899
37997
  args,
@@ -38140,7 +38238,7 @@ var Git = class Git extends Service()("react-doctor/Git") {
38140
38238
  ]);
38141
38239
  if (result.status !== 0) return null;
38142
38240
  return parseChangedLineRanges(result.stdout);
38143
- }).pipe(withSpan("Git.changedLineRanges"))
38241
+ }).pipe(catch_$1((error) => error.reason._tag === "GitInvocationFailed" ? succeed$2(null) : fail$4(error)), withSpan("Git.changedLineRanges"))
38144
38242
  });
38145
38243
  })).pipe(provide$2(layer$2.pipe(provide$2(mergeAll$1(layer$1, layer)))));
38146
38244
  /**
@@ -40617,7 +40715,10 @@ const formatLintFailText = (reasonTag, nodeVersion) => {
40617
40715
  * diagnostics).
40618
40716
  * 2. beforeLint hook (e.g. CLI renders the project-detection block)
40619
40717
  * 3. environment checks (reduced-motion + pnpm hardening +
40620
- * expo/react-native + security scan), collected synchronously
40718
+ * expo/react-native), collected synchronously. The heavier
40719
+ * content-regex security scan is forked instead (like supply-chain
40720
+ * below) and joined before the concat, so its CPU overlaps lint
40721
+ * rather than blocking the event loop before it.
40621
40722
  * 4. The supply-chain check (Socket.dev) is forked onto a background
40622
40723
  * fiber so its ~100% network-bound time overlaps the ~100%
40623
40724
  * CPU/subprocess-bound lint pass below, collapsing two serial
@@ -40637,7 +40738,7 @@ const formatLintFailText = (reasonTag, nodeVersion) => {
40637
40738
  * order, so terminal output is identical either way; supply-chain
40638
40739
  * rides alongside without a spinner.
40639
40740
  * 6. Join the supply-chain fiber, then assemble the diagnostics in a
40640
- * FIXED order (env, supply-chain, lint, dead-code) so the output is
40741
+ * FIXED order (env, security-scan, supply-chain, lint, dead-code) so the output is
40641
40742
  * byte-identical regardless of which fiber settled first. The
40642
40743
  * viewer-permission fiber is joined later, during score-metadata
40643
40744
  * assembly (it feeds score metadata, not diagnostics). The per-element
@@ -40698,12 +40799,12 @@ const runInspect = (input, hooks = {}) => gen(function* () {
40698
40799
  ...checkPnpmHardening(scanDirectory),
40699
40800
  ...checkReactServerComponentsAdvisory(scanDirectory, project),
40700
40801
  ...checkExpoProject(scanDirectory, project),
40701
- ...checkReactNativeProject(scanDirectory, project),
40702
- ...checkSecurityScan(scanDirectory, {
40703
- project,
40704
- ignoredTags: input.ignoredTags
40705
- })
40802
+ ...checkReactNativeProject(scanDirectory, project)
40706
40803
  ])));
40804
+ const securityScanFiber = yield* forkChild(runCollect(applyPerElementPipeline(isDiffMode ? empty$4 : unwrap(promise(() => checkSecurityScanCooperative(scanDirectory, {
40805
+ project,
40806
+ ignoredTags: input.ignoredTags
40807
+ })).pipe(map$3((diagnostics) => fromIterable$1(diagnostics)))))).pipe(withSpan("SecurityScan.run")));
40707
40808
  const shouldRunSupplyChain = !isDiffMode || (input.supplyChainManifestChanged ?? false);
40708
40809
  const supplyChainOverlapTimeout = yield* SupplyChainOverlapTimeoutMs;
40709
40810
  const supplyChainFiber = yield* forkChild(shouldRunSupplyChain ? runCollect(applyPerElementPipeline(supplyChainService.run({
@@ -40839,9 +40940,11 @@ const runInspect = (input, hooks = {}) => gen(function* () {
40839
40940
  else yield* scanProgress.succeed(`Scanned ${scannedFilesLabel} in ${scanElapsedSeconds}s${workerCountSuffix}`);
40840
40941
  const supplyChainResult = yield* join(supplyChainFiber);
40841
40942
  const supplyChainCollected = supplyChainResult.diagnostics;
40943
+ const securityScanCollected = yield* join(securityScanFiber);
40842
40944
  yield* reporterService.finalize;
40843
40945
  const finalDiagnostics = sortDiagnosticsStable(assignFixGroups([
40844
40946
  ...envCollected,
40947
+ ...securityScanCollected,
40845
40948
  ...supplyChainCollected,
40846
40949
  ...lintCollected,
40847
40950
  ...deadCodeCollected
@@ -42913,6 +43016,7 @@ const SENTRY_FLUSH_TIMEOUT_MS = 2e3;
42913
43016
  const METRIC = {
42914
43017
  cliInvoked: "cli.invoked",
42915
43018
  cliError: "cli.error",
43019
+ cliEnvironmentError: "cli.env_error",
42916
43020
  projectDetected: "project.detected",
42917
43021
  projectPathSelected: "project.path_selected",
42918
43022
  projectConfigSelected: "project.config_selected",
@@ -42942,7 +43046,9 @@ const METRIC = {
42942
43046
  lspSessionStarted: "lsp.session.started",
42943
43047
  lspScanCompleted: "lsp.scan.completed",
42944
43048
  lspScanDuration: "lsp.scan.duration",
42945
- lspScanDiagnostics: "lsp.scan.diagnostics"
43049
+ lspScanDiagnostics: "lsp.scan.diagnostics",
43050
+ aiTrainingWarningShown: "ai.training.warning_shown",
43051
+ jsonOutUsed: "json.out_used"
42946
43052
  };
42947
43053
  //#endregion
42948
43054
  //#region src/cli/utils/to-category-key.ts
@@ -43259,5 +43365,5 @@ const startLanguageServer = () => {
43259
43365
  };
43260
43366
  //#endregion
43261
43367
  export { startLanguageServer };
43262
- !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]="f9576947-f3ff-58f4-b9ff-de0e2898651c")}catch(e){}}();
43263
- //# debugId=f9576947-f3ff-58f4-b9ff-de0e2898651c
43368
+ !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]="c5b6c740-461d-5f65-a993-9e6d35ad9113")}catch(e){}}();
43369
+ //# debugId=c5b6c740-461d-5f65-a993-9e6d35ad9113
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-doctor",
3
- "version": "0.5.8-dev.5f2bd72",
3
+ "version": "0.5.8-dev.6339f71",
4
4
  "description": "Your agent writes bad React. This catches it",
5
5
  "keywords": [
6
6
  "accessibility",
@@ -20,7 +20,7 @@
20
20
  "bugs": {
21
21
  "url": "https://github.com/millionco/react-doctor/issues"
22
22
  },
23
- "license": "MIT",
23
+ "license": "SEE LICENSE IN LICENSE",
24
24
  "author": "Million Software, Inc",
25
25
  "repository": {
26
26
  "type": "git",
@@ -34,7 +34,8 @@
34
34
  "bin/**",
35
35
  "dist/**/*.js",
36
36
  "dist/**/*.d.ts",
37
- "dist/skills/**"
37
+ "dist/skills/**",
38
+ "LICENSE"
38
39
  ],
39
40
  "type": "module",
40
41
  "sideEffects": false,
@@ -64,7 +65,7 @@
64
65
  "vscode-languageserver-textdocument": "^1.0.12",
65
66
  "vscode-uri": "^3.1.0",
66
67
  "deslop-js": "0.5.8",
67
- "oxlint-plugin-react-doctor": "0.5.8-dev.5f2bd72"
68
+ "oxlint-plugin-react-doctor": "0.5.8-dev.6339f71"
68
69
  },
69
70
  "devDependencies": {
70
71
  "@types/babel__code-frame": "^7.27.0",
@@ -73,8 +74,8 @@
73
74
  "commander": "^14.0.3",
74
75
  "ora": "^9.4.0",
75
76
  "@react-doctor/api": "0.5.8",
76
- "@react-doctor/core": "0.5.8",
77
- "@react-doctor/language-server": "0.5.8"
77
+ "@react-doctor/language-server": "0.5.8",
78
+ "@react-doctor/core": "0.5.8"
78
79
  },
79
80
  "engines": {
80
81
  "node": "^20.19.0 || >=22.13.0"