react-doctor 0.5.8-dev.0c19858 → 0.5.8-dev.0e42901
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/LICENSE +14 -1
- package/dist/cli.js +97 -8
- package/dist/index.d.ts +1 -1
- package/dist/index.js +65 -2
- package/dist/lsp.js +4 -3
- package/package.json +8 -7
package/LICENSE
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
MIT License
|
|
1
|
+
Modified MIT License
|
|
2
2
|
|
|
3
3
|
Copyright (c) 2026 Million Software, Inc.
|
|
4
4
|
|
|
@@ -19,3 +19,16 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.
|
|
22
|
+
|
|
23
|
+
Our only modification is that the following uses require prior written
|
|
24
|
+
permission from the copyright holder. To request permission, contact
|
|
25
|
+
founders@million.dev.
|
|
26
|
+
|
|
27
|
+
1. Using the Software, its source code, or any derivative works thereof, in
|
|
28
|
+
whole or in part, as training, fine-tuning, or evaluation data, or as input
|
|
29
|
+
to any automated pipeline for training or improving any machine learning
|
|
30
|
+
model or AI system.
|
|
31
|
+
|
|
32
|
+
2. Selling the Software, or offering it to third parties as a paid, hosted, or
|
|
33
|
+
managed product or service (including any commercial API or SaaS offering)
|
|
34
|
+
whose value derives entirely or substantially from the Software.
|
package/dist/cli.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]="
|
|
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]="bd31e7dc-cfca-56b2-a963-9d798b3cbbe5")}catch(e){}}();
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import * as NodeChildProcess from "node:child_process";
|
|
5
5
|
import { execFile, execFileSync, spawn, spawnSync } from "node:child_process";
|
|
@@ -44730,6 +44730,61 @@ const computeConfigFingerprint = (projectDirectory, version) => {
|
|
|
44730
44730
|
}
|
|
44731
44731
|
return crypto.createHash("sha1").update(parts.join("|")).digest("hex");
|
|
44732
44732
|
};
|
|
44733
|
+
const AI_TRAINING_ENV_VARS = [
|
|
44734
|
+
["HF_DATASETS_CACHE", "huggingface"],
|
|
44735
|
+
["HF_HOME", "huggingface"],
|
|
44736
|
+
["HUGGINGFACE_HUB_CACHE", "huggingface"],
|
|
44737
|
+
["SPACE_ID", "huggingface-spaces"],
|
|
44738
|
+
["CUDA_VISIBLE_DEVICES", "cuda"],
|
|
44739
|
+
["NVIDIA_VISIBLE_DEVICES", "nvidia"],
|
|
44740
|
+
["ROCR_VISIBLE_DEVICES", "rocm"],
|
|
44741
|
+
["TPU_NAME", "google-tpu"],
|
|
44742
|
+
["WANDB_RUN_ID", "wandb"],
|
|
44743
|
+
["WANDB_SWEEP_ID", "wandb"],
|
|
44744
|
+
["MLFLOW_RUN_ID", "mlflow"],
|
|
44745
|
+
["MLFLOW_TRACKING_URI", "mlflow"],
|
|
44746
|
+
["COMET_EXPERIMENT_KEY", "comet"],
|
|
44747
|
+
["NEPTUNE_RUN_ID", "neptune"],
|
|
44748
|
+
["CLEARML_TASK_ID", "clearml"],
|
|
44749
|
+
["DVC_STAGE", "dvc"],
|
|
44750
|
+
["RAY_WORKER_PROCESS", "ray"],
|
|
44751
|
+
["RAY_ADDRESS", "ray"],
|
|
44752
|
+
["MUJOCO_GL", "mujoco"],
|
|
44753
|
+
["MUJOCO_PATH", "mujoco"],
|
|
44754
|
+
["GYM_DISABLE_ENV_CHECKER", "gymnasium"],
|
|
44755
|
+
["SM_TRAINING_ENV", "sagemaker"],
|
|
44756
|
+
["TRAINING_JOB_ARN", "sagemaker"],
|
|
44757
|
+
["SAGEMAKER_BASE_DIR", "sagemaker"],
|
|
44758
|
+
["AZUREML_RUN_ID", "azure-ml"],
|
|
44759
|
+
["AZURE_ML_MODEL_DIR", "azure-ml"],
|
|
44760
|
+
["CLOUD_ML_PROJECT_ID", "vertex-ai"],
|
|
44761
|
+
["VERTEX_AI_LOG_LEVEL", "vertex-ai"],
|
|
44762
|
+
["DET_MASTER", "determined-ai"],
|
|
44763
|
+
["LIGHTNING_USER_ID", "lightning-ai"],
|
|
44764
|
+
["FLYTE_INTERNAL_EXECUTION_ID", "flyte"],
|
|
44765
|
+
["ARGO_WORKFLOW_NAME", "argo-workflows"],
|
|
44766
|
+
["KFP_POD_NAME", "kubeflow-pipelines"],
|
|
44767
|
+
["KAGGLE_KERNEL_RUN_TYPE", "kaggle"],
|
|
44768
|
+
["COLAB_BACKEND_VERSION", "google-colab"],
|
|
44769
|
+
["DATABRICKS_RUNTIME_VERSION", "databricks"],
|
|
44770
|
+
["DAYTONA_WS_ID", "daytona"],
|
|
44771
|
+
["DAYTONA_WS_NAME", "daytona"],
|
|
44772
|
+
["E2B_SANDBOX_ID", "e2b"],
|
|
44773
|
+
["MODAL_FUNCTION_ID", "modal"],
|
|
44774
|
+
["MODAL_TASK_ID", "modal"],
|
|
44775
|
+
["RUNPOD_POD_ID", "runpod"],
|
|
44776
|
+
["REPLICATE_USERNAME", "replicate"],
|
|
44777
|
+
["VAST_CONTAINERLABEL", "vast-ai"],
|
|
44778
|
+
["HARBOR_URL", "harbor"],
|
|
44779
|
+
["HARBOR_HOSTNAME", "harbor"],
|
|
44780
|
+
["SWE_BENCH_TASK", "swe-bench"],
|
|
44781
|
+
["SWEBENCH_TASK", "swe-bench"],
|
|
44782
|
+
["SWE_AGENT_MODEL", "swe-agent"]
|
|
44783
|
+
];
|
|
44784
|
+
const detectAiTrainingEnvironment = () => {
|
|
44785
|
+
for (const [envVar, label] of AI_TRAINING_ENV_VARS) if (process.env[envVar]) return label;
|
|
44786
|
+
return null;
|
|
44787
|
+
};
|
|
44733
44788
|
const groupBy = (items, keyFn) => {
|
|
44734
44789
|
const groups = /* @__PURE__ */ new Map();
|
|
44735
44790
|
for (const item of items) {
|
|
@@ -44815,7 +44870,25 @@ const CI_PROVIDER_BY_ENVIRONMENT_VARIABLE = [
|
|
|
44815
44870
|
["TEAMCITY_VERSION", "teamcity"],
|
|
44816
44871
|
["BITBUCKET_BUILD_NUMBER", "bitbucket"],
|
|
44817
44872
|
["TRAVIS", "travis"],
|
|
44818
|
-
["DRONE", "drone"]
|
|
44873
|
+
["DRONE", "drone"],
|
|
44874
|
+
["SEMAPHORE", "semaphore"],
|
|
44875
|
+
["APPVEYOR", "appveyor"],
|
|
44876
|
+
["HARNESS_BUILD_ID", "harness"],
|
|
44877
|
+
["BUDDY", "buddy"],
|
|
44878
|
+
["CF_BUILD_ID", "codefresh"],
|
|
44879
|
+
["NETLIFY", "netlify"],
|
|
44880
|
+
["RAILWAY_SERVICE_ID", "railway"],
|
|
44881
|
+
["VERCEL", "vercel"],
|
|
44882
|
+
["CM_BUILD_ID", "codemagic"],
|
|
44883
|
+
["PROW_JOB_ID", "prow"],
|
|
44884
|
+
["AGOLA_GIT_REF", "agola"],
|
|
44885
|
+
["CIRRUS_CI", "cirrus-ci"],
|
|
44886
|
+
["BLACKSMITH_STICKYDISK_TOKEN", "blacksmith"],
|
|
44887
|
+
["WARPBUILD_RUNNER_VERIFICATION_TOKEN", "warpbuild"],
|
|
44888
|
+
["NSC_CACHE_PATH", "namespace"],
|
|
44889
|
+
["UBICLOUD_CACHE_URL", "ubicloud"],
|
|
44890
|
+
["RENDER", "render"],
|
|
44891
|
+
["FLY_APP_NAME", "fly-io"]
|
|
44819
44892
|
];
|
|
44820
44893
|
const GITHUB_ACTION_MARKER_ENVIRONMENT_VARIABLE = "REACT_DOCTOR_GITHUB_ACTION";
|
|
44821
44894
|
const ACTION_INPUT_ENVIRONMENT_VARIABLES = {
|
|
@@ -44833,7 +44906,10 @@ const CODING_AGENT_BY_ENVIRONMENT_VARIABLE = [
|
|
|
44833
44906
|
["CODEX_SANDBOX_NETWORK_DISABLED", "codex"],
|
|
44834
44907
|
["OPENCODE", "opencode"],
|
|
44835
44908
|
["GOOSE_TERMINAL", "goose"],
|
|
44836
|
-
["AMP_THREAD_ID", "amp"]
|
|
44909
|
+
["AMP_THREAD_ID", "amp"],
|
|
44910
|
+
["CLINE_ACTIVE", "cline"],
|
|
44911
|
+
["AUGMENT_AGENT", "augment"],
|
|
44912
|
+
["TRAE_AI_SHELL_ID", "trae-ai"]
|
|
44837
44913
|
];
|
|
44838
44914
|
const GENERIC_CODING_AGENT_ENVIRONMENT_VARIABLES = ["AGENT_SESSION_ID", "AGENT_THREAD_ID"];
|
|
44839
44915
|
const CODING_AGENT_ENVIRONMENT_VALUE_VARIABLES = ["AGENT"];
|
|
@@ -44982,7 +45058,8 @@ const METRIC = {
|
|
|
44982
45058
|
lspSessionStarted: "lsp.session.started",
|
|
44983
45059
|
lspScanCompleted: "lsp.scan.completed",
|
|
44984
45060
|
lspScanDuration: "lsp.scan.duration",
|
|
44985
|
-
lspScanDiagnostics: "lsp.scan.diagnostics"
|
|
45061
|
+
lspScanDiagnostics: "lsp.scan.diagnostics",
|
|
45062
|
+
aiTrainingWarningShown: "ai.training.warning_shown"
|
|
44986
45063
|
};
|
|
44987
45064
|
//#endregion
|
|
44988
45065
|
//#region src/cli/utils/noop-console.ts
|
|
@@ -45025,7 +45102,7 @@ const makeNoopConsole = () => ({
|
|
|
45025
45102
|
});
|
|
45026
45103
|
//#endregion
|
|
45027
45104
|
//#region src/cli/utils/version.ts
|
|
45028
|
-
const VERSION = "0.5.8-dev.
|
|
45105
|
+
const VERSION = "0.5.8-dev.0e42901";
|
|
45029
45106
|
//#endregion
|
|
45030
45107
|
//#region src/cli/utils/json-mode.ts
|
|
45031
45108
|
let context = null;
|
|
@@ -45389,13 +45466,13 @@ const isDevVersion = (version) => version === "0.0.0" || version.includes("-");
|
|
|
45389
45466
|
* uploads source-map artifacts under, so stack frames symbolicate. Honors the
|
|
45390
45467
|
* standard `SENTRY_RELEASE` override.
|
|
45391
45468
|
*/
|
|
45392
|
-
const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.5.8-dev.
|
|
45469
|
+
const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.5.8-dev.0e42901`;
|
|
45393
45470
|
/**
|
|
45394
45471
|
* Deployment environment shown in Sentry's environment filter. Defaults to
|
|
45395
45472
|
* `production` for tagged releases and `development` for dev/unbuilt versions,
|
|
45396
45473
|
* overridable via the standard `SENTRY_ENVIRONMENT` env var.
|
|
45397
45474
|
*/
|
|
45398
|
-
const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.5.8-dev.
|
|
45475
|
+
const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.5.8-dev.0e42901") ? "development" : "production");
|
|
45399
45476
|
/**
|
|
45400
45477
|
* Performance-tracing sample rate in `[0, 1]`. Reads `SENTRY_TRACES_SAMPLE_RATE`
|
|
45401
45478
|
* (set to `0` to disable tracing) and falls back to
|
|
@@ -54225,6 +54302,17 @@ const warnDeprecatedFailOn = (flags, userConfig) => {
|
|
|
54225
54302
|
cliLogger.warn(`${source} is deprecated; rename it to ${replacement}.`);
|
|
54226
54303
|
};
|
|
54227
54304
|
//#endregion
|
|
54305
|
+
//#region src/cli/utils/warn-ai-training-environment.ts
|
|
54306
|
+
let didWarnAiTraining = false;
|
|
54307
|
+
const warnIfAiTrainingEnvironment = () => {
|
|
54308
|
+
if (didWarnAiTraining) return;
|
|
54309
|
+
const detected = detectAiTrainingEnvironment();
|
|
54310
|
+
if (detected === null) return;
|
|
54311
|
+
didWarnAiTraining = true;
|
|
54312
|
+
process.stderr.write(`${highlighter.warn("react-doctor detected use in an AI or ML pipeline. This use requires written permission under the react-doctor license — contact founders@million.dev to request access.")}\n`);
|
|
54313
|
+
recordCount(METRIC.aiTrainingWarningShown, 1, { environment: detected });
|
|
54314
|
+
};
|
|
54315
|
+
//#endregion
|
|
54228
54316
|
//#region src/cli/utils/validate-mode-flags.ts
|
|
54229
54317
|
const usedDiffAlias = (flags) => flags.diff !== void 0 && flags.diff !== false && flags.diff !== "false" && flags.diff !== "";
|
|
54230
54318
|
const usedScope = (flags) => typeof flags.scope === "string" && flags.scope.length > 0;
|
|
@@ -54325,6 +54413,7 @@ const inspectAction = async (directory, flags) => {
|
|
|
54325
54413
|
setJsonReportDirectory(resolvedDirectory);
|
|
54326
54414
|
warnDeprecatedFailOn(flags, userConfig);
|
|
54327
54415
|
warnDeprecatedDiff(flags, userConfig);
|
|
54416
|
+
warnIfAiTrainingEnvironment();
|
|
54328
54417
|
if (scanTarget.didRedirectViaRootDir && !isQuiet) {
|
|
54329
54418
|
cliLogger.dim(`Redirected to ${highlighter.info(toRelativePath(resolvedDirectory, requestedDirectory))} via react-doctor config "rootDir".`);
|
|
54330
54419
|
cliLogger.break();
|
|
@@ -55623,4 +55712,4 @@ Promise.resolve().then(() => assertNoRemovedFlags(process.argv)).then(() => prog
|
|
|
55623
55712
|
export {};
|
|
55624
55713
|
|
|
55625
55714
|
//# sourceMappingURL=cli.js.map
|
|
55626
|
-
//# debugId=
|
|
55715
|
+
//# debugId=bd31e7dc-cfca-56b2-a963-9d798b3cbbe5
|
package/dist/index.d.ts
CHANGED
|
@@ -10123,7 +10123,7 @@ declare const summarizeDiagnostics: (diagnostics: Diagnostic[], worstScore?: num
|
|
|
10123
10123
|
* untouched so the loader sees the same plain object either way.
|
|
10124
10124
|
*/
|
|
10125
10125
|
declare const defineConfig: (config: ReactDoctorConfig) => ReactDoctorConfig; //#endregion
|
|
10126
|
-
//#region src/utils/
|
|
10126
|
+
//#region src/utils/detect-ai-training-environment.d.ts
|
|
10127
10127
|
//#endregion
|
|
10128
10128
|
//#region ../api/dist/index.d.ts
|
|
10129
10129
|
//#region src/diagnose.d.ts
|
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]="
|
|
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]="9807b1bf-1e62-5421-ad35-d1f4129c1538")}catch(e){}}();
|
|
3
3
|
import { r as __toESM$1, t as __commonJSMin$1 } from "./chunk-N93fKeF6.js";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import * as NFS from "node:fs";
|
|
@@ -41411,6 +41411,61 @@ const clearAutoSuppressionCaches = () => {};
|
|
|
41411
41411
|
* untouched so the loader sees the same plain object either way.
|
|
41412
41412
|
*/
|
|
41413
41413
|
const defineConfig = (config) => config;
|
|
41414
|
+
const AI_TRAINING_ENV_VARS = [
|
|
41415
|
+
["HF_DATASETS_CACHE", "huggingface"],
|
|
41416
|
+
["HF_HOME", "huggingface"],
|
|
41417
|
+
["HUGGINGFACE_HUB_CACHE", "huggingface"],
|
|
41418
|
+
["SPACE_ID", "huggingface-spaces"],
|
|
41419
|
+
["CUDA_VISIBLE_DEVICES", "cuda"],
|
|
41420
|
+
["NVIDIA_VISIBLE_DEVICES", "nvidia"],
|
|
41421
|
+
["ROCR_VISIBLE_DEVICES", "rocm"],
|
|
41422
|
+
["TPU_NAME", "google-tpu"],
|
|
41423
|
+
["WANDB_RUN_ID", "wandb"],
|
|
41424
|
+
["WANDB_SWEEP_ID", "wandb"],
|
|
41425
|
+
["MLFLOW_RUN_ID", "mlflow"],
|
|
41426
|
+
["MLFLOW_TRACKING_URI", "mlflow"],
|
|
41427
|
+
["COMET_EXPERIMENT_KEY", "comet"],
|
|
41428
|
+
["NEPTUNE_RUN_ID", "neptune"],
|
|
41429
|
+
["CLEARML_TASK_ID", "clearml"],
|
|
41430
|
+
["DVC_STAGE", "dvc"],
|
|
41431
|
+
["RAY_WORKER_PROCESS", "ray"],
|
|
41432
|
+
["RAY_ADDRESS", "ray"],
|
|
41433
|
+
["MUJOCO_GL", "mujoco"],
|
|
41434
|
+
["MUJOCO_PATH", "mujoco"],
|
|
41435
|
+
["GYM_DISABLE_ENV_CHECKER", "gymnasium"],
|
|
41436
|
+
["SM_TRAINING_ENV", "sagemaker"],
|
|
41437
|
+
["TRAINING_JOB_ARN", "sagemaker"],
|
|
41438
|
+
["SAGEMAKER_BASE_DIR", "sagemaker"],
|
|
41439
|
+
["AZUREML_RUN_ID", "azure-ml"],
|
|
41440
|
+
["AZURE_ML_MODEL_DIR", "azure-ml"],
|
|
41441
|
+
["CLOUD_ML_PROJECT_ID", "vertex-ai"],
|
|
41442
|
+
["VERTEX_AI_LOG_LEVEL", "vertex-ai"],
|
|
41443
|
+
["DET_MASTER", "determined-ai"],
|
|
41444
|
+
["LIGHTNING_USER_ID", "lightning-ai"],
|
|
41445
|
+
["FLYTE_INTERNAL_EXECUTION_ID", "flyte"],
|
|
41446
|
+
["ARGO_WORKFLOW_NAME", "argo-workflows"],
|
|
41447
|
+
["KFP_POD_NAME", "kubeflow-pipelines"],
|
|
41448
|
+
["KAGGLE_KERNEL_RUN_TYPE", "kaggle"],
|
|
41449
|
+
["COLAB_BACKEND_VERSION", "google-colab"],
|
|
41450
|
+
["DATABRICKS_RUNTIME_VERSION", "databricks"],
|
|
41451
|
+
["DAYTONA_WS_ID", "daytona"],
|
|
41452
|
+
["DAYTONA_WS_NAME", "daytona"],
|
|
41453
|
+
["E2B_SANDBOX_ID", "e2b"],
|
|
41454
|
+
["MODAL_FUNCTION_ID", "modal"],
|
|
41455
|
+
["MODAL_TASK_ID", "modal"],
|
|
41456
|
+
["RUNPOD_POD_ID", "runpod"],
|
|
41457
|
+
["REPLICATE_USERNAME", "replicate"],
|
|
41458
|
+
["VAST_CONTAINERLABEL", "vast-ai"],
|
|
41459
|
+
["HARBOR_URL", "harbor"],
|
|
41460
|
+
["HARBOR_HOSTNAME", "harbor"],
|
|
41461
|
+
["SWE_BENCH_TASK", "swe-bench"],
|
|
41462
|
+
["SWEBENCH_TASK", "swe-bench"],
|
|
41463
|
+
["SWE_AGENT_MODEL", "swe-agent"]
|
|
41464
|
+
];
|
|
41465
|
+
const detectAiTrainingEnvironment = () => {
|
|
41466
|
+
for (const [envVar, label] of AI_TRAINING_ENV_VARS) if (process.env[envVar]) return label;
|
|
41467
|
+
return null;
|
|
41468
|
+
};
|
|
41414
41469
|
const unionValues = (baseValues, overrideValues) => [...new Set([...baseValues, ...overrideValues])];
|
|
41415
41470
|
const mergeIgnores = (baseIgnore, overrideIgnore) => {
|
|
41416
41471
|
const mergedIgnore = {
|
|
@@ -41455,6 +41510,12 @@ const mergeReactDoctorConfigs = (baseConfig, overrideConfig) => {
|
|
|
41455
41510
|
};
|
|
41456
41511
|
//#endregion
|
|
41457
41512
|
//#region ../api/dist/index.js
|
|
41513
|
+
let didWarnAiTraining = false;
|
|
41514
|
+
const warnIfAiTrainingEnvironment = () => {
|
|
41515
|
+
if (didWarnAiTraining || detectAiTrainingEnvironment() === null) return;
|
|
41516
|
+
didWarnAiTraining = true;
|
|
41517
|
+
console.warn("[react-doctor] Use in an AI or ML pipeline requires written permission under the react-doctor license. Contact founders@million.dev to request access.");
|
|
41518
|
+
};
|
|
41458
41519
|
const buildDiagnoseLayer = (config, configOverrideTarget) => {
|
|
41459
41520
|
const configLayer = configOverrideTarget === void 0 ? Config.layerNode : Config.layerOf({
|
|
41460
41521
|
config,
|
|
@@ -41492,6 +41553,7 @@ const outputToDiagnoseResult = (output, elapsedMilliseconds) => {
|
|
|
41492
41553
|
};
|
|
41493
41554
|
};
|
|
41494
41555
|
const diagnoseDirectory = async (directory, options) => {
|
|
41556
|
+
warnIfAiTrainingEnvironment();
|
|
41495
41557
|
const startTime = globalThis.performance.now();
|
|
41496
41558
|
const scanTarget = await resolveScanTarget(directory);
|
|
41497
41559
|
return outputToDiagnoseResult(await runPromise(restoreLegacyThrow(buildInspectProgram(scanTarget, options).pipe(provide(buildDiagnoseLayer(scanTarget.userConfig)), provide(layerOtlp)))), globalThis.performance.now() - startTime);
|
|
@@ -41538,6 +41600,7 @@ const diagnoseProject = async (projectDefinition, baseOptions, batchConfig) => {
|
|
|
41538
41600
|
}
|
|
41539
41601
|
};
|
|
41540
41602
|
const diagnoseProjectBatch = async (input) => {
|
|
41603
|
+
warnIfAiTrainingEnvironment();
|
|
41541
41604
|
const startTime = globalThis.performance.now();
|
|
41542
41605
|
const { projects, concurrency, config: batchConfig, ...baseOptions } = input;
|
|
41543
41606
|
const projectResults = await mapWithConcurrency(projects, concurrency ?? 4, (projectDefinition) => diagnoseProject(projectDefinition, baseOptions, batchConfig));
|
|
@@ -41582,4 +41645,4 @@ const toJsonReport = (result, options) => buildJsonReport({
|
|
|
41582
41645
|
export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
|
|
41583
41646
|
|
|
41584
41647
|
//# sourceMappingURL=index.js.map
|
|
41585
|
-
//# debugId=
|
|
41648
|
+
//# debugId=9807b1bf-1e62-5421-ad35-d1f4129c1538
|
package/dist/lsp.js
CHANGED
|
@@ -43046,7 +43046,8 @@ const METRIC = {
|
|
|
43046
43046
|
lspSessionStarted: "lsp.session.started",
|
|
43047
43047
|
lspScanCompleted: "lsp.scan.completed",
|
|
43048
43048
|
lspScanDuration: "lsp.scan.duration",
|
|
43049
|
-
lspScanDiagnostics: "lsp.scan.diagnostics"
|
|
43049
|
+
lspScanDiagnostics: "lsp.scan.diagnostics",
|
|
43050
|
+
aiTrainingWarningShown: "ai.training.warning_shown"
|
|
43050
43051
|
};
|
|
43051
43052
|
//#endregion
|
|
43052
43053
|
//#region src/cli/utils/to-category-key.ts
|
|
@@ -43363,5 +43364,5 @@ const startLanguageServer = () => {
|
|
|
43363
43364
|
};
|
|
43364
43365
|
//#endregion
|
|
43365
43366
|
export { startLanguageServer };
|
|
43366
|
-
!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]="
|
|
43367
|
-
//# debugId=
|
|
43367
|
+
!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]="b3c6b2e5-253e-5be2-aacb-bd57bbb3e5e6")}catch(e){}}();
|
|
43368
|
+
//# debugId=b3c6b2e5-253e-5be2-aacb-bd57bbb3e5e6
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-doctor",
|
|
3
|
-
"version": "0.5.8-dev.
|
|
3
|
+
"version": "0.5.8-dev.0e42901",
|
|
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": "
|
|
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,
|
|
@@ -63,8 +64,8 @@
|
|
|
63
64
|
"vscode-languageserver": "^9.0.1",
|
|
64
65
|
"vscode-languageserver-textdocument": "^1.0.12",
|
|
65
66
|
"vscode-uri": "^3.1.0",
|
|
66
|
-
"
|
|
67
|
-
"
|
|
67
|
+
"oxlint-plugin-react-doctor": "0.5.8-dev.0e42901",
|
|
68
|
+
"deslop-js": "0.5.8"
|
|
68
69
|
},
|
|
69
70
|
"devDependencies": {
|
|
70
71
|
"@types/babel__code-frame": "^7.27.0",
|
|
@@ -72,9 +73,9 @@
|
|
|
72
73
|
"@xterm/headless": "^6.0.0",
|
|
73
74
|
"commander": "^14.0.3",
|
|
74
75
|
"ora": "^9.4.0",
|
|
75
|
-
"@react-doctor/language-server": "0.5.8",
|
|
76
76
|
"@react-doctor/api": "0.5.8",
|
|
77
|
-
"@react-doctor/core": "0.5.8"
|
|
77
|
+
"@react-doctor/core": "0.5.8",
|
|
78
|
+
"@react-doctor/language-server": "0.5.8"
|
|
78
79
|
},
|
|
79
80
|
"engines": {
|
|
80
81
|
"node": "^20.19.0 || >=22.13.0"
|