react-doctor 0.9.20 → 0.9.21-dev.13ff2a0
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/{build-section-divider-C178IqXI.js → build-section-divider-mTOnrYpM.js} +5 -5
- package/dist/{ci-CyR4JrhO.js → ci-DYGf1-wI.js} +13 -13
- package/dist/cli.js +25 -25
- package/dist/{constants-DmoCNSTH.js → constants-C7tJ1mDM.js} +5 -5
- package/dist/{design-OYJGZB_W.js → design-bARAO_oK.js} +4 -4
- package/dist/{exit-gracefully-hy64aJY1.js → exit-gracefully-vYLrBViR.js} +6 -6
- package/dist/{handle-error-D3ZuATVK.js → handle-error-2xc_0GiE.js} +6 -6
- package/dist/index.js +176 -16
- package/dist/{inspect-BBiM_EKf.js → inspect-COQ4Q4f0.js} +17 -17
- package/dist/{install-4Ih3r8NL.js → install-C-ydPjDr.js} +10 -10
- package/dist/{install-doctor-script-DO5zpwvT.js → install-doctor-script-BaGcAM3X.js} +5 -5
- package/dist/{install-github-workflow-S0j6X7Y5.js → install-github-workflow-CZon-WS2.js} +6 -6
- package/dist/{install-react-doctor-Cmu00m9d.js → install-react-doctor-DmlCVpm5.js} +9 -9
- package/dist/{is-cache-globally-disabled-DP6qPu2_.js → is-cache-globally-disabled-CKGkF0mF.js} +4 -4
- package/dist/{jsx-runtime-9JxSdCe_.js → jsx-runtime-CKBFKfTi.js} +6 -6
- package/dist/{print-branded-header-BkV-uekY.js → print-branded-header-BGsZdujD.js} +4 -4
- package/dist/{prompt-runtime-scan-url-DONr_PIK.js → prompt-runtime-scan-url-0fTp6DLR.js} +5 -5
- package/dist/{read-object-file-B-5O6DB5.js → read-object-file-BdUmsqGr.js} +4 -4
- package/dist/{record-metric-DNEy6bSq.js → record-metric-CoAVbFA7.js} +180 -19
- package/dist/{report-error-Cztcdmdr.js → report-error-Cs67Olmw.js} +6 -6
- package/dist/{report-workflow-result-CQyTgU7u.js → report-workflow-result-CzcQyml2.js} +6 -6
- package/dist/{resolve-scan-exit-code-Bx_UscX4.js → resolve-scan-exit-code-BHnywF2O.js} +15 -14
- package/dist/{resolve-scope-gOua6IWZ.js → resolve-scope-CjeJFWT1.js} +6 -6
- package/dist/{rules-BdK_cjc2.js → rules-BcEL35Ft.js} +7 -7
- package/dist/{run-scan-app-DLrUOOSz.js → run-scan-app-CU3pKaLU.js} +12 -12
- package/dist/{runtime-scan-LMDpvBcL.js → runtime-scan-BG2L47ja.js} +10 -10
- package/dist/{sanitize-runtime-url-pNuKAmN_.js → sanitize-runtime-url-B0Urg1hb.js} +4 -4
- package/dist/{scan-0z3KeIKq.js → scan-DWIltt97.js} +10 -10
- package/dist/{should-skip-prompts-1uKi8Vum.js → should-skip-prompts-BuWNOiPd.js} +4 -4
- package/dist/{should-use-tui-DTizaA8D.js → should-use-tui-DEdaqbrj.js} +4 -4
- package/dist/{start-scan-preamble-WLTerTPo.js → start-scan-preamble-2aM4aK2n.js} +5 -5
- package/dist/start-scan-preamble.js +3 -3
- package/dist/{telemetry-runtime-DvbGjRwp.js → telemetry-runtime-CKzWxuvY.js} +7 -7
- package/dist/{version-BQAaKABG.js → version-BrzugSx5.js} +5 -5
- package/dist/{why-BTQoyJ0b.js → why-BrXMVspQ.js} +4 -4
- package/dist/{with-run-span-D0VACYf3.js → with-run-span-CYmTBOFN.js} +6 -6
- package/package.json +5 -5
|
@@ -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]="
|
|
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]="405d70d7-bbb8-52dc-b1f6-e9a340da2c71")}catch(e){}}();
|
|
3
3
|
import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
|
|
4
|
-
import { $ as warmReactCompilerDetection, $t as OXLINT_WORKER_JOB_END_MARKER, A as buildGitSourceListingRequest, An as TARGET_BLANK_BROWSER_SUPPORT, At as GITHUB_VIEWER_PERMISSION_TIMEOUT_MS, B as resolveGitCommand, Bt as MAINTAINABILITY_DUPLICATE_JSX_RULE, Cn as SUPPLY_CHAIN_CACHE_TTL_MS, Ct as ES_TARGET_YEAR_BY_NAME, Dn as SUPPLY_CHAIN_PLUGIN, Dt as GENERATED_BUNDLE_FILE_PATTERN, En as SUPPLY_CHAIN_OVERLAP_TIMEOUT_MS, Et as FILE_LINT_CACHE_MAX_FILE_COUNT, F as lowerChildProcessPriority, Fn as VERCEL_NEXTJS_SECURITY_RELEASE_URL, Ft as HTML_FILE_PATTERN, G as resolvePluginPath, Gt as MINIFIED_SNIFF_BYTES, H as resolveOxlintThreadCount, It as IGNORED_DIRECTORIES, J as resolveTsConfigRelativePath, K as resolveReactDoctorCacheDir, Kt as OCCURRENCE_MATCHED_CATEGORIES, Lt as JSX_DUPLICATION_SOURCE_FILE_PATTERN, M as buildOxlintWorkerSpawnSpec, Mn as TELEMETRY_SHUTDOWN_TIMEOUT_MS, Mt as GIT_LS_FILES_MAX_BUFFER_BYTES, Nn as TSCONFIG_FILENAMES, Nt as GIT_SHOW_MAX_BUFFER_BYTES, On as SUPPLY_CHAIN_RULE, Ot as GENERATED_SOURCE_DIRECTORY_PATTERN, P as killUnadoptedOxlintWorkers, Pn as TYPESCRIPT_DECLARATION_FILE_PATTERN, Pt as GIT_SOURCE_LISTING_ARGUMENTS, Q as takeReactCompilerDetection, Qt as OXLINT_SPLIT_TOTAL_BUDGET_MS, R as readSystemConcurrencyFacts, Sn as SUPPLY_CHAIN_CACHE_SUBDIR, Tn as SUPPLY_CHAIN_IGNORED_PACKAGES, Tt as FILE_LINT_CACHE_FILENAME, U as resolveOxlintToolchainVersions, Ut as MAX_GLOB_PATTERN_LENGTH_CHARS, V as resolveOxlintBinary, Vt as MAINTAINABILITY_PLUGIN, W as resolveOxlintWorkerRuntime, Wt as MILLISECONDS_PER_SECOND, X as spawnOxlintWorkerProcess, Xt as OXLINT_OUTPUT_MAX_BYTES, Y as setChildProcessRef, Yt as OXLINT_OOM_RESCUE_BUDGET_MS, Z as takePrespawnedOxlintWorker, Zt as OXLINT_SPAWN_TIMEOUT_MS, _n as SOURCE_FILE_PATTERN, _t as DIAGNOSTIC_CATEGORY_BUCKETS, an as REACT_ROUTER_CAPABILITY_THRESHOLDS, at as AXIOM_METRICS_DATASET_HEADER, bn as SPAWN_ARGS_MAX_LENGTH_CHARS_POSIX, cn as ROOT_CAUSE_GROUPABLE_RULE_KEYS, d as METRIC_DISTRIBUTION_BOUNDARIES, dt as COMPILER_CLEANUP_BUCKET, en as PROJECT_ANALYSIS_WORKER_MAX_OLD_SPACE_MB, et as ABORT_EXIT_CODES, fn as SIDECAR_LINT_CACHE_FILENAME, ft as COMPILER_CLEANUP_RULE_KEYS, gn as SOCKET_PACKAGE_PAGE_BASE, gt as DEFAULT_BRANCH_CANDIDATES, hn as SOCKET_FREE_USER_AGENT, in as REACT_BLOG_RSC_ADVISORY_URL, j as buildOxlintChildEnv, jn as TELEMETRY_EXPORT_INTERVAL_MS, jt as GIT_CHECK_ATTR_MAX_BUFFER_BYTES, kn as TAILWIND_POSTCSS7_COMPAT_ALIAS, l as INTERNAL_ERROR_JSON_FALLBACK, ln as SCANNED_DOT_DIRECTORIES, mn as SOCKET_FREE_PURL_API_BASE, mt as CONFIG_FINGERPRINT_FILENAMES, nn as PROJECT_ANALYSIS_WORKER_TIMEOUT_CEILING_MS, nt as APP_ONLY_RULE_KEYS, on as REACT_SERVER_DOM_PACKAGES, ot as AXIOM_METRICS_PATH, pt as CONFIG_CACHE_TTL_MS, q as resolveScanConcurrency, qt as OXLINT_IGNORED_DECLARATION_DIAGNOSTIC_CODES, rn as PROJECT_ANALYSIS_WORKER_TIMEOUT_MS, rt as AXIOM_DATASET_HEADER, sn as RECOMMENDED_PNPM_MINIMUM_RELEASE_AGE_MINUTES, st as AXIOM_TRACES_PATH, tn as PROJECT_ANALYSIS_WORKER_MEMORY_BUDGET_BYTES, tt as ADOPTABLE_LINT_CONFIG_FILENAMES, un as SCORE_API_URL, vn as SPAWN_ARGS_MAX_LENGTH_CHARS, vt as DISABLE_DIRECTIVE_BACKUP_DIRECTORY_SEGMENTS, wn as SUPPLY_CHAIN_CATEGORY, wt as FETCH_TIMEOUT_MS, xn as STAGED_FILES_PROJECT_CONFIG_FILENAMES, xt as DUPLICATE_JSX_WORKER_IDLE_TIMEOUT_MS, yn as SPAWN_ARGS_MAX_LENGTH_CHARS_DARWIN, yt as DOCS_RULES_BASE_URL, z as resolveConfiguredScanConcurrency, zt as MAINTAINABILITY_CATEGORY } from "./constants-
|
|
4
|
+
import { $ as warmReactCompilerDetection, $t as OXLINT_WORKER_JOB_END_MARKER, A as buildGitSourceListingRequest, An as TARGET_BLANK_BROWSER_SUPPORT, At as GITHUB_VIEWER_PERMISSION_TIMEOUT_MS, B as resolveGitCommand, Bt as MAINTAINABILITY_DUPLICATE_JSX_RULE, Cn as SUPPLY_CHAIN_CACHE_TTL_MS, Ct as ES_TARGET_YEAR_BY_NAME, Dn as SUPPLY_CHAIN_PLUGIN, Dt as GENERATED_BUNDLE_FILE_PATTERN, En as SUPPLY_CHAIN_OVERLAP_TIMEOUT_MS, Et as FILE_LINT_CACHE_MAX_FILE_COUNT, F as lowerChildProcessPriority, Fn as VERCEL_NEXTJS_SECURITY_RELEASE_URL, Ft as HTML_FILE_PATTERN, G as resolvePluginPath, Gt as MINIFIED_SNIFF_BYTES, H as resolveOxlintThreadCount, It as IGNORED_DIRECTORIES, J as resolveTsConfigRelativePath, K as resolveReactDoctorCacheDir, Kt as OCCURRENCE_MATCHED_CATEGORIES, Lt as JSX_DUPLICATION_SOURCE_FILE_PATTERN, M as buildOxlintWorkerSpawnSpec, Mn as TELEMETRY_SHUTDOWN_TIMEOUT_MS, Mt as GIT_LS_FILES_MAX_BUFFER_BYTES, Nn as TSCONFIG_FILENAMES, Nt as GIT_SHOW_MAX_BUFFER_BYTES, On as SUPPLY_CHAIN_RULE, Ot as GENERATED_SOURCE_DIRECTORY_PATTERN, P as killUnadoptedOxlintWorkers, Pn as TYPESCRIPT_DECLARATION_FILE_PATTERN, Pt as GIT_SOURCE_LISTING_ARGUMENTS, Q as takeReactCompilerDetection, Qt as OXLINT_SPLIT_TOTAL_BUDGET_MS, R as readSystemConcurrencyFacts, Sn as SUPPLY_CHAIN_CACHE_SUBDIR, Tn as SUPPLY_CHAIN_IGNORED_PACKAGES, Tt as FILE_LINT_CACHE_FILENAME, U as resolveOxlintToolchainVersions, Ut as MAX_GLOB_PATTERN_LENGTH_CHARS, V as resolveOxlintBinary, Vt as MAINTAINABILITY_PLUGIN, W as resolveOxlintWorkerRuntime, Wt as MILLISECONDS_PER_SECOND, X as spawnOxlintWorkerProcess, Xt as OXLINT_OUTPUT_MAX_BYTES, Y as setChildProcessRef, Yt as OXLINT_OOM_RESCUE_BUDGET_MS, Z as takePrespawnedOxlintWorker, Zt as OXLINT_SPAWN_TIMEOUT_MS, _n as SOURCE_FILE_PATTERN, _t as DIAGNOSTIC_CATEGORY_BUCKETS, an as REACT_ROUTER_CAPABILITY_THRESHOLDS, at as AXIOM_METRICS_DATASET_HEADER, bn as SPAWN_ARGS_MAX_LENGTH_CHARS_POSIX, cn as ROOT_CAUSE_GROUPABLE_RULE_KEYS, d as METRIC_DISTRIBUTION_BOUNDARIES, dt as COMPILER_CLEANUP_BUCKET, en as PROJECT_ANALYSIS_WORKER_MAX_OLD_SPACE_MB, et as ABORT_EXIT_CODES, fn as SIDECAR_LINT_CACHE_FILENAME, ft as COMPILER_CLEANUP_RULE_KEYS, gn as SOCKET_PACKAGE_PAGE_BASE, gt as DEFAULT_BRANCH_CANDIDATES, hn as SOCKET_FREE_USER_AGENT, in as REACT_BLOG_RSC_ADVISORY_URL, j as buildOxlintChildEnv, jn as TELEMETRY_EXPORT_INTERVAL_MS, jt as GIT_CHECK_ATTR_MAX_BUFFER_BYTES, kn as TAILWIND_POSTCSS7_COMPAT_ALIAS, l as INTERNAL_ERROR_JSON_FALLBACK, ln as SCANNED_DOT_DIRECTORIES, mn as SOCKET_FREE_PURL_API_BASE, mt as CONFIG_FINGERPRINT_FILENAMES, nn as PROJECT_ANALYSIS_WORKER_TIMEOUT_CEILING_MS, nt as APP_ONLY_RULE_KEYS, on as REACT_SERVER_DOM_PACKAGES, ot as AXIOM_METRICS_PATH, pt as CONFIG_CACHE_TTL_MS, q as resolveScanConcurrency, qt as OXLINT_IGNORED_DECLARATION_DIAGNOSTIC_CODES, rn as PROJECT_ANALYSIS_WORKER_TIMEOUT_MS, rt as AXIOM_DATASET_HEADER, sn as RECOMMENDED_PNPM_MINIMUM_RELEASE_AGE_MINUTES, st as AXIOM_TRACES_PATH, tn as PROJECT_ANALYSIS_WORKER_MEMORY_BUDGET_BYTES, tt as ADOPTABLE_LINT_CONFIG_FILENAMES, un as SCORE_API_URL, vn as SPAWN_ARGS_MAX_LENGTH_CHARS, vt as DISABLE_DIRECTIVE_BACKUP_DIRECTORY_SEGMENTS, wn as SUPPLY_CHAIN_CATEGORY, wt as FETCH_TIMEOUT_MS, xn as STAGED_FILES_PROJECT_CONFIG_FILENAMES, xt as DUPLICATE_JSX_WORKER_IDLE_TIMEOUT_MS, yn as SPAWN_ARGS_MAX_LENGTH_CHARS_DARWIN, yt as DOCS_RULES_BASE_URL, z as resolveConfiguredScanConcurrency, zt as MAINTAINABILITY_CATEGORY } from "./constants-C7tJ1mDM.js";
|
|
5
5
|
import { n as require_picomatch, t as require_semver } from "./semver-BZIuy1gP.js";
|
|
6
6
|
import { createRequire } from "node:module";
|
|
7
7
|
import * as fs$1$2 from "node:fs";
|
|
@@ -20,7 +20,7 @@ import { Worker } from "node:worker_threads";
|
|
|
20
20
|
import { parseSync } from "oxc-parser";
|
|
21
21
|
import * as fs$1$1 from "node:fs/promises";
|
|
22
22
|
import { ResolverFactory } from "oxc-resolver";
|
|
23
|
-
import { ALL_REACT_DOCTOR_RULE_KEYS, CROSS_FILE_DEPENDENCY_COLLECTORS, CROSS_FILE_RULE_IDS, FRAMEWORK_SPECIFIC_RULE_KEYS, FRAMEWORK_TOKENS, MOTION_LIBRARY_PACKAGES, REACT_COMPILER_RULES, REACT_DOCTOR_OPT_IN_PROJECT_RULE_IDS, REACT_DOCTOR_PROJECT_RULES, REACT_DOCTOR_RULES, REACT_DOCTOR_RULE_REGISTRY, REACT_DOCTOR_SCAN_RULES, atomicWriteFile, classifySecurityScanFile, collectCrossFileDependencyProbes, getDiagnosticContextPath, resetManifestCaches, shouldReadSecurityScanContent } from "oxlint-plugin-react-doctor/core";
|
|
23
|
+
import { ALL_REACT_DOCTOR_RULE_KEYS, CROSS_FILE_DEPENDENCY_COLLECTORS, CROSS_FILE_RULE_IDS, FRAMEWORK_SPECIFIC_RULE_KEYS, FRAMEWORK_TOKENS, MOTION_LIBRARY_PACKAGES, REACT_COMPILER_BRIDGE_RULES, 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";
|
|
24
24
|
import { parseJSON5, parseJSONC } from "confbox";
|
|
25
25
|
import { createJiti } from "jiti";
|
|
26
26
|
import { PassThrough } from "node:stream";
|
|
@@ -88,7 +88,7 @@ const unwrapTypescriptExpression = (expression) => {
|
|
|
88
88
|
return currentExpression;
|
|
89
89
|
};
|
|
90
90
|
//#endregion
|
|
91
|
-
//#region ../core/dist/collect-unplugin-auto-import-global-scopes-
|
|
91
|
+
//#region ../core/dist/collect-unplugin-auto-import-global-scopes-B65T4dYj.js
|
|
92
92
|
var import_picomatch = /* @__PURE__ */ __toESM(require_picomatch(), 1);
|
|
93
93
|
const LINGUIST_ATTRIBUTES = ["linguist-generated", "linguist-vendored"];
|
|
94
94
|
const DISABLED_ATTRIBUTE_VALUES = new Set([
|
|
@@ -526,7 +526,7 @@ const collectUnpluginAutoImportGlobalScopes = ({ rootDirectory, candidateFiles }
|
|
|
526
526
|
return scopes.some((scope) => scope.names.length > 0) ? scopes : [];
|
|
527
527
|
};
|
|
528
528
|
//#endregion
|
|
529
|
-
//#region ../core/dist/detect-duplicate-jsx-subtrees-
|
|
529
|
+
//#region ../core/dist/detect-duplicate-jsx-subtrees-pJBK9F39.js
|
|
530
530
|
const yieldToEventLoop = () => new Promise((resolve) => {
|
|
531
531
|
setImmediate(resolve);
|
|
532
532
|
});
|
|
@@ -1083,7 +1083,7 @@ const detectDuplicateJsxSubtreesCooperative = async (sourceReader, options = {})
|
|
|
1083
1083
|
});
|
|
1084
1084
|
};
|
|
1085
1085
|
//#endregion
|
|
1086
|
-
//#region ../core/dist/detect-react-compiler-
|
|
1086
|
+
//#region ../core/dist/detect-react-compiler-4a2Hs6Ek.js
|
|
1087
1087
|
const NEXT_CONFIG_FILENAMES = [
|
|
1088
1088
|
"next.config.js",
|
|
1089
1089
|
"next.config.mjs",
|
|
@@ -9936,6 +9936,8 @@ const onErrorFilter = /* @__PURE__ */ dual(3, (self, filter, f) => onExit$2(self
|
|
|
9936
9936
|
/** @internal */
|
|
9937
9937
|
const onInterrupt$1 = /* @__PURE__ */ dual(2, (self, finalizer) => onErrorFilter(causeFilterInterruptors, finalizer)(self));
|
|
9938
9938
|
/** @internal */
|
|
9939
|
+
const acquireUseRelease$1 = (acquire, use, release) => uninterruptibleMask$1((restore) => flatMap$4(acquire, (a) => onExitPrimitive(restore(use(a)), (exit) => release(a, exit), true)));
|
|
9940
|
+
/** @internal */
|
|
9939
9941
|
const cachedInvalidateWithTTL = /* @__PURE__ */ dual(2, (self, ttl) => sync$2(() => {
|
|
9940
9942
|
const ttlMillis = toMillis(fromInputUnsafe(ttl));
|
|
9941
9943
|
const isFinite = Number.isFinite(ttlMillis);
|
|
@@ -16615,6 +16617,84 @@ const scopedWith = scopedWith$1;
|
|
|
16615
16617
|
*/
|
|
16616
16618
|
const acquireRelease = acquireRelease$1;
|
|
16617
16619
|
/**
|
|
16620
|
+
* Runs resource acquisition, usage, and release as one bracketed effect.
|
|
16621
|
+
*
|
|
16622
|
+
* **When to use**
|
|
16623
|
+
*
|
|
16624
|
+
* Use to bracket acquire, use, and release logic in one effect.
|
|
16625
|
+
*
|
|
16626
|
+
* **Details**
|
|
16627
|
+
*
|
|
16628
|
+
* `acquireUseRelease` does the following:
|
|
16629
|
+
*
|
|
16630
|
+
* 1. Ensures that the `Effect` value that acquires the resource will not be
|
|
16631
|
+
* interrupted. Note that acquisition may still fail due to internal
|
|
16632
|
+
* reasons (such as an uncaught exception).
|
|
16633
|
+
* 2. Ensures that the `release` `Effect` value will not be interrupted,
|
|
16634
|
+
* and will be executed as long as the acquisition `Effect` value
|
|
16635
|
+
* successfully acquires the resource.
|
|
16636
|
+
*
|
|
16637
|
+
* During the time period between the acquisition and release of the resource,
|
|
16638
|
+
* the `use` `Effect` value will be executed.
|
|
16639
|
+
*
|
|
16640
|
+
* If the `release` `Effect` value fails, then the entire `Effect` value will
|
|
16641
|
+
* fail, even if the `use` `Effect` value succeeds. If this fail-fast behavior
|
|
16642
|
+
* is not desired, errors produced by the `release` `Effect` value can be caught
|
|
16643
|
+
* and ignored.
|
|
16644
|
+
*
|
|
16645
|
+
* **Example** (Acquiring resources with cleanup)
|
|
16646
|
+
*
|
|
16647
|
+
* ```ts
|
|
16648
|
+
* import { Console, Effect, Exit } from "effect"
|
|
16649
|
+
*
|
|
16650
|
+
* interface Database {
|
|
16651
|
+
* readonly connection: string
|
|
16652
|
+
* readonly query: (sql: string) => Effect.Effect<string>
|
|
16653
|
+
* }
|
|
16654
|
+
*
|
|
16655
|
+
* const program = Effect.acquireUseRelease(
|
|
16656
|
+
* // Acquire - connect to database
|
|
16657
|
+
* Effect.gen(function*() {
|
|
16658
|
+
* yield* Console.log("Connecting to database...")
|
|
16659
|
+
* return {
|
|
16660
|
+
* connection: "db://localhost:5432",
|
|
16661
|
+
* query: (sql: string) => Effect.succeed(`Result for: ${sql}`)
|
|
16662
|
+
* }
|
|
16663
|
+
* }),
|
|
16664
|
+
* // Use - perform database operations
|
|
16665
|
+
* (db) =>
|
|
16666
|
+
* Effect.gen(function*() {
|
|
16667
|
+
* yield* Console.log(`Connected to ${db.connection}`)
|
|
16668
|
+
* const result = yield* db.query("SELECT * FROM users")
|
|
16669
|
+
* yield* Console.log(`Query result: ${result}`)
|
|
16670
|
+
* return result
|
|
16671
|
+
* }),
|
|
16672
|
+
* // Release - close database connection
|
|
16673
|
+
* (db, exit) =>
|
|
16674
|
+
* Effect.gen(function*() {
|
|
16675
|
+
* if (Exit.isSuccess(exit)) {
|
|
16676
|
+
* yield* Console.log(`Closing connection to ${db.connection} (success)`)
|
|
16677
|
+
* } else {
|
|
16678
|
+
* yield* Console.log(`Closing connection to ${db.connection} (failure)`)
|
|
16679
|
+
* }
|
|
16680
|
+
* })
|
|
16681
|
+
* )
|
|
16682
|
+
*
|
|
16683
|
+
* Effect.runPromise(program)
|
|
16684
|
+
* // Output:
|
|
16685
|
+
* // Connecting to database...
|
|
16686
|
+
* // Connected to db://localhost:5432
|
|
16687
|
+
* // Query result: Result for: SELECT * FROM users
|
|
16688
|
+
* // Closing connection to db://localhost:5432 (success)
|
|
16689
|
+
* ```
|
|
16690
|
+
*
|
|
16691
|
+
* @see {@link acquireRelease} for scoped resources whose use happens later
|
|
16692
|
+
*
|
|
16693
|
+
* @category resource management
|
|
16694
|
+
* @since 2.0.0
|
|
16695
|
+
*/
|
|
16696
|
+
const acquireUseRelease = acquireUseRelease$1;
|
|
16697
|
+
/**
|
|
16618
16698
|
* Runs the specified effect if this effect fails, providing the error to the
|
|
16619
16699
|
* effect if it exists. The provided effect will not be interrupted.
|
|
16620
16700
|
*
|
|
@@ -71218,6 +71298,53 @@ var Git = class Git extends Service()("react-doctor/Git") {
|
|
|
71218
71298
|
args,
|
|
71219
71299
|
directory
|
|
71220
71300
|
});
|
|
71301
|
+
const findUntrackedRenames = (directory, diffArgs, plan, untrackedFiles) => {
|
|
71302
|
+
const headFiles = new Set(plan.headFiles);
|
|
71303
|
+
const deletedFiles = new Set(plan.baseFiles.filter((filePath) => !headFiles.has(filePath) && plan.renamedFiles?.[filePath] === void 0));
|
|
71304
|
+
if (deletedFiles.size === 0 || untrackedFiles.length === 0) return succeed$2({});
|
|
71305
|
+
return acquireUseRelease(try_(() => fs.mkdtempSync(path.join(os.tmpdir(), "react-doctor-index-"))), (temporaryDirectory) => gen(function* () {
|
|
71306
|
+
const indexPath = yield* runGit(directory, [
|
|
71307
|
+
"rev-parse",
|
|
71308
|
+
"--path-format=absolute",
|
|
71309
|
+
"--git-path",
|
|
71310
|
+
"index"
|
|
71311
|
+
]);
|
|
71312
|
+
if (indexPath.status !== 0) return {};
|
|
71313
|
+
const indexFile = path.join(temporaryDirectory, "index");
|
|
71314
|
+
const pathspecFile = path.join(temporaryDirectory, "untracked");
|
|
71315
|
+
yield* try_(() => {
|
|
71316
|
+
fs.copyFileSync(indexPath.stdout.trim(), indexFile);
|
|
71317
|
+
fs.writeFileSync(pathspecFile, untrackedFiles.join("\0"));
|
|
71318
|
+
});
|
|
71319
|
+
const env = { GIT_INDEX_FILE: indexFile };
|
|
71320
|
+
if ((yield* runCommand({
|
|
71321
|
+
command: "git",
|
|
71322
|
+
args: [
|
|
71323
|
+
"-c",
|
|
71324
|
+
"core.splitIndex=false",
|
|
71325
|
+
"--literal-pathspecs",
|
|
71326
|
+
"add",
|
|
71327
|
+
"--intent-to-add",
|
|
71328
|
+
`--pathspec-from-file=${pathspecFile}`,
|
|
71329
|
+
"--pathspec-file-nul"
|
|
71330
|
+
],
|
|
71331
|
+
directory,
|
|
71332
|
+
env
|
|
71333
|
+
})).status !== 0) return {};
|
|
71334
|
+
const result = yield* runCommand({
|
|
71335
|
+
command: "git",
|
|
71336
|
+
args: diffArgs,
|
|
71337
|
+
directory,
|
|
71338
|
+
env
|
|
71339
|
+
});
|
|
71340
|
+
if (result.status !== 0) return {};
|
|
71341
|
+
const untrackedFileSet = new Set(untrackedFiles);
|
|
71342
|
+
return Object.fromEntries(Object.entries(parseBaselineDiffPlan(result.stdout)?.renamedFiles ?? {}).filter(([basePath, headPath]) => deletedFiles.has(basePath) && untrackedFileSet.has(headPath)));
|
|
71343
|
+
}), (temporaryDirectory) => sync(() => fs.rmSync(temporaryDirectory, {
|
|
71344
|
+
recursive: true,
|
|
71345
|
+
force: true
|
|
71346
|
+
}))).pipe(catch_$1(() => succeed$2({})));
|
|
71347
|
+
};
|
|
71221
71348
|
const listUntrackedFilePaths = (directory, includePaths = []) => runGit(directory, [
|
|
71222
71349
|
"ls-files",
|
|
71223
71350
|
"-z",
|
|
@@ -71368,7 +71495,7 @@ var Git = class Git extends Service()("react-doctor/Git") {
|
|
|
71368
71495
|
"--relative"
|
|
71369
71496
|
]);
|
|
71370
71497
|
if (unmerged.status !== 0 || unmerged.stdout.length > 0) return null;
|
|
71371
|
-
const
|
|
71498
|
+
const diffArgs = [
|
|
71372
71499
|
"diff",
|
|
71373
71500
|
"--no-ext-diff",
|
|
71374
71501
|
"--no-textconv",
|
|
@@ -71377,7 +71504,8 @@ var Git = class Git extends Service()("react-doctor/Git") {
|
|
|
71377
71504
|
"--name-status",
|
|
71378
71505
|
"--relative",
|
|
71379
71506
|
input.ref
|
|
71380
|
-
]
|
|
71507
|
+
];
|
|
71508
|
+
const result = yield* runGit(input.directory, diffArgs);
|
|
71381
71509
|
if (result.status !== 0) return null;
|
|
71382
71510
|
const plan = parseBaselineDiffPlan(result.stdout);
|
|
71383
71511
|
if (plan === null) return null;
|
|
@@ -71388,11 +71516,18 @@ var Git = class Git extends Service()("react-doctor/Git") {
|
|
|
71388
71516
|
"-z"
|
|
71389
71517
|
]);
|
|
71390
71518
|
if (untracked.status !== 0) return null;
|
|
71519
|
+
const untrackedFiles = splitNullSeparated(untracked.stdout);
|
|
71520
|
+
const untrackedRenamePaths = new Set(input.untrackedRenamePaths);
|
|
71521
|
+
const untrackedRenamedFiles = yield* findUntrackedRenames(input.directory, diffArgs, plan, untrackedFiles.filter((filePath) => untrackedRenamePaths.has(filePath)));
|
|
71522
|
+
const renamedFiles = {
|
|
71523
|
+
...plan.renamedFiles,
|
|
71524
|
+
...untrackedRenamedFiles
|
|
71525
|
+
};
|
|
71391
71526
|
return {
|
|
71392
|
-
...
|
|
71527
|
+
...Object.keys(renamedFiles).length > 0 ? { renamedFiles } : {},
|
|
71393
71528
|
baseFiles: plan.baseFiles,
|
|
71394
71529
|
headFiles: plan.headFiles,
|
|
71395
|
-
untrackedFiles
|
|
71530
|
+
untrackedFiles
|
|
71396
71531
|
};
|
|
71397
71532
|
}).pipe(catch_$1(() => succeed$2(null)), withSpan("Git.baselineDiffPlan"));
|
|
71398
71533
|
},
|
|
@@ -72086,6 +72221,7 @@ const resolveUserPlugins = (specs, configSourceDirectory) => {
|
|
|
72086
72221
|
}
|
|
72087
72222
|
return resolved;
|
|
72088
72223
|
};
|
|
72224
|
+
const REACT_COMPILER_BRIDGE_RULE_BY_KEY = new Map(REACT_COMPILER_BRIDGE_RULES.map((bridgeRule) => [bridgeRule.key, bridgeRule]));
|
|
72089
72225
|
const resolveSettingsRootDirectory = (rootDirectory) => {
|
|
72090
72226
|
if (!fs$1$2.existsSync(rootDirectory)) return rootDirectory;
|
|
72091
72227
|
return fs$1$2.realpathSync(rootDirectory);
|
|
@@ -72123,8 +72259,10 @@ const buildUserPluginRules = (userPlugin, severityControls) => {
|
|
|
72123
72259
|
};
|
|
72124
72260
|
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 }) => {
|
|
72125
72261
|
const hasIncludedTags = includedTags.size > 0;
|
|
72126
|
-
const
|
|
72127
|
-
const
|
|
72262
|
+
const resolvedReactHooksJsPlugin = disableReactHooksJsPlugin || hasIncludedTags ? null : resolveReactHooksJsPlugin(project.hasReactCompiler || project.hasReactCompilerLintPlugin === true, customRulesOnly);
|
|
72263
|
+
const reactHooksJsPlugin = ruleSelection === "sidecar" ? null : resolvedReactHooksJsPlugin;
|
|
72264
|
+
const reactCompilerRuleSeverities = resolvedReactHooksJsPlugin ? applyRuleSeverityControls(filterRulesToAvailable(REACT_COMPILER_RULES, "react-hooks-js", resolvedReactHooksJsPlugin.availableRuleNames), severityControls) : {};
|
|
72265
|
+
const reactCompilerRules = reactHooksJsPlugin ? reactCompilerRuleSeverities : {};
|
|
72128
72266
|
const jsPlugins = [];
|
|
72129
72267
|
if (reactHooksJsPlugin) jsPlugins.push(reactHooksJsPlugin.entry);
|
|
72130
72268
|
const capabilities = getCapabilities(project);
|
|
@@ -72140,6 +72278,13 @@ const createOxlintConfig = ({ pluginPath, diagnosticContextDirectory, project, c
|
|
|
72140
72278
|
if (ruleSelection === "sidecar" && !CROSS_FILE_RULE_IDS.has(registryEntry.id)) continue;
|
|
72141
72279
|
if (ruleSelection === "sidecar" && sidecarRuleIdFilter !== void 0 && !sidecarRuleIdFilter.has(registryEntry.id)) continue;
|
|
72142
72280
|
if (rule.isScanRule || rule.isProjectRule === true) continue;
|
|
72281
|
+
const bridgeRule = REACT_COMPILER_BRIDGE_RULE_BY_KEY.get(registryEntry.key);
|
|
72282
|
+
if (bridgeRule) {
|
|
72283
|
+
const compilerSeverity = reactCompilerRuleSeverities[bridgeRule.compilerKey];
|
|
72284
|
+
const bridgeOverride = resolveRuleSeverityOverride({ ruleKey: registryEntry.key }, severityControls);
|
|
72285
|
+
if (compilerSeverity !== void 0 && bridgeOverride !== "off") enabledReactDoctorRules[registryEntry.key] = compilerSeverity;
|
|
72286
|
+
continue;
|
|
72287
|
+
}
|
|
72143
72288
|
if (registryEntry.id === "no-multi-component-file" && shouldUseExplicitNoMultiCompPolicy) continue;
|
|
72144
72289
|
if (rule.framework !== "global" && !rule.requires) continue;
|
|
72145
72290
|
if (!shouldEnableRule(rule.requires, rule.tags, capabilities, ignoredTags, rule.disabledWhen, includedTags)) continue;
|
|
@@ -73299,6 +73444,20 @@ const mapPreparedSourceLabels = (labels, preparedSourceMap) => {
|
|
|
73299
73444
|
}
|
|
73300
73445
|
return mappedLabels;
|
|
73301
73446
|
};
|
|
73447
|
+
const formatOxlintRuleCode = (ruleKey) => {
|
|
73448
|
+
const separatorIndex = ruleKey.indexOf("/");
|
|
73449
|
+
return `${ruleKey.slice(0, separatorIndex)}(${ruleKey.slice(separatorIndex + 1)})`;
|
|
73450
|
+
};
|
|
73451
|
+
const bridgeRuleByCode = new Map(REACT_COMPILER_BRIDGE_RULES.map((bridgeRule) => [formatOxlintRuleCode(bridgeRule.key), bridgeRule]));
|
|
73452
|
+
const bridgeReactCompilerDiagnostic = (diagnostic) => {
|
|
73453
|
+
const bridgeRule = bridgeRuleByCode.get(diagnostic.code);
|
|
73454
|
+
if (!bridgeRule) return diagnostic;
|
|
73455
|
+
return {
|
|
73456
|
+
...diagnostic,
|
|
73457
|
+
code: formatOxlintRuleCode(bridgeRule.compilerKey),
|
|
73458
|
+
url: bridgeRule.compilerUrl
|
|
73459
|
+
};
|
|
73460
|
+
};
|
|
73302
73461
|
const REACT_MODULE_SOURCE = "react";
|
|
73303
73462
|
const REQUIRE_IDENTIFIER = "require";
|
|
73304
73463
|
const USE_IDENTIFIER = "use";
|
|
@@ -73947,8 +74106,9 @@ const parseOxlintOutput = (stdout, project, rootDirectory, sourcePathByLintPath,
|
|
|
73947
74106
|
return minified;
|
|
73948
74107
|
};
|
|
73949
74108
|
const readContextRanges = createDiagnosticContextReader(diagnosticContextDirectory);
|
|
73950
|
-
return suppressMemoizationInBailedOutFunctions(parsed.diagnostics.flatMap((
|
|
73951
|
-
if (!isMappableOxlintDiagnostic(
|
|
74109
|
+
return suppressMemoizationInBailedOutFunctions(parsed.diagnostics.flatMap((unbridgedDiagnostic) => {
|
|
74110
|
+
if (!isMappableOxlintDiagnostic(unbridgedDiagnostic)) return [];
|
|
74111
|
+
const rawDiagnostic = bridgeReactCompilerDiagnostic(unbridgedDiagnostic);
|
|
73952
74112
|
const { plugin, rule } = parseRuleCode(rawDiagnostic.code);
|
|
73953
74113
|
const primarySpan = rawDiagnostic.labels[0]?.span;
|
|
73954
74114
|
const contextRanges = diagnosticContextDirectory && plugin === "react-doctor" && primarySpan ? readContextRanges({
|
|
@@ -76897,10 +77057,11 @@ const getDiffInfo = (directory, explicitBaseBranch, includeUntracked) => runProm
|
|
|
76897
77057
|
};
|
|
76898
77058
|
}).pipe(provide(Git.layerNode)));
|
|
76899
77059
|
const filterSourceFiles = (filePaths) => filePaths.filter(isLintableSourceFile);
|
|
76900
|
-
const getBaselineDiffPlan = (directory, ref) => runPromise(gen(function* () {
|
|
77060
|
+
const getBaselineDiffPlan = (directory, ref, untrackedRenamePaths) => runPromise(gen(function* () {
|
|
76901
77061
|
return yield* (yield* Git).baselineDiffPlan({
|
|
76902
77062
|
directory,
|
|
76903
|
-
ref
|
|
77063
|
+
ref,
|
|
77064
|
+
untrackedRenamePaths
|
|
76904
77065
|
});
|
|
76905
77066
|
}).pipe(provide(Git.layerNode)));
|
|
76906
77067
|
/**
|
|
@@ -77450,7 +77611,7 @@ const makeNoopConsole = () => ({
|
|
|
77450
77611
|
});
|
|
77451
77612
|
//#endregion
|
|
77452
77613
|
//#region src/cli/utils/version.ts
|
|
77453
|
-
const VERSION = "0.9.
|
|
77614
|
+
const VERSION = "0.9.21-dev.13ff2a0";
|
|
77454
77615
|
//#endregion
|
|
77455
77616
|
//#region src/cli/utils/json-mode.ts
|
|
77456
77617
|
let context = null;
|
|
@@ -77794,5 +77955,5 @@ const recordDistribution = (name, value, options = {}) => {
|
|
|
77794
77955
|
//#endregion
|
|
77795
77956
|
export { buildRuleSeverityControls as $, scrubSensitivePaths as $t, Files as A, mergeAll$1 as An, hasSupportedFrameworkOrLibrary as At, PerFileLintCacheEnabled as B, messageFromUnknown as Bn, listSourceFilesCooperative as Bt, ACTION_INPUT_ENVIRONMENT_VARIABLES as C, provideService as Cn, getChangedLineRanges as Ct, isCodingAgentEnvironment as D, try_ as Dn, getRuleMetadata as Dt, isCiOrCodingAgentEnvironment as E, sync as En, getEquivalentRuleKeys as Et, Linter as F, fail$5 as Fn, isReactDoctorError as Ft, SidecarLintCacheEnabled as G, isPlainObject as Gn, mergeAndFilterDiagnostics as Gt, Project as H, isDirectory as Hn, loadConfigWithSource as Ht, Maintainability as I, void_$1 as In, isSameRuleKey as It, anonymizeInPlace as J, resolveGithubActionsScoreMetadata as Jt, StagedFiles as K, mergeReactDoctorConfigs as Kt, NodeResolver as L, ParentSpan as Ln, isScanComplete as Lt, InvocationCaches as M, succeed$3 as Mn, highlighter as Mt, LEGACY_CONFIG_FILENAME as N, close as Nn, isPathInsideDirectory as Nt, Config as O, void_ as On, groupBy as Ot, LintPartialFailures as P, makeUnsafe$5 as Pn, isProjectDiscoveryError as Pt, buildRuleDocsUrl as Q, runInspect as Qt, OxlintConcurrency as R, isMonorepoRoot as Rn, layerObservability as Rt, isDebugFlagEnabled as S, provideContext as Sn, getBaselineDiffPlan as St, isCiEnvironment as T, runSync as Tn, getDiffInfo as Tt, Reporter as U, isErrnoException as Un, mapWithConcurrency as Ut, Progress as V, toCanonicalPath as Vn, listWorkspacePackages as Vt, Score as W, isFile as Wn, materializeSourceTree as Wt, atomicWriteJson as X, resolveScanTarget as Xt, anonymizeText as Y, resolveLintBatchOrdering as Yt, buildJsonReport as Z, restoreLegacyThrow as Zt, VERSION as _, makeSpan$1 as _n, findGitRepositoryRoot as _t, isEnvFlagEnabled as a, warmDuplicateJsxWorker as an, collectSourceFilesByDirectory as at, isNonInteractiveEnvironment as b, promise as bn, formatErrorChain as bt, setSentryProjectInfo as c, error as cn, countOptInProjectRuleSelections as ct, isJsonModeActive as d, warn$1 as dn, createOxlintSpawnSlots as dt, setColorEnabled as en, buildSkippedChecks as et, setJsonReportDirectory as f, Diagnostic as fn, detectAiTrainingEnvironment as ft, writeJsonReport as g, gen as gn, filterSourceFiles as gt, writeJsonErrorReport as h, make$30 as hn, filterPathsOutsideDirectories as ht, isTelemetryEnabled as i, validateConfigTypes as in, clearConfigCache as it, Git as j, provide$2 as jn, hashFileContents as jt, DIAGNOSTIC_DELTA_IDENTITY as k, buildWithScope as kn, hasPublishedFixRecipe as kt, getRunId as l, info as ln, createChangedLineMatcher as lt, writeJsonCancellationReport as m, decodeUnknownSync as mn, filterDiagnosticsForSurface as mt, recordDistribution as n, summarizeDiagnostics as nn, canonicalizeUserRuleKey as nt, buildSentryScope as o, warmOxlintWorkerPool as on, computeConfigFingerprint as ot, setJsonReportMode as p, JsonReport as pn, discoverSupportedSubprojects as pt, SupplyChain as q, remainingDeadlineBudgetMs as qt, toSpanAttributes as r, toRelativePath as rn, classifyFileContext as rt, buildSentryProjectContext as s, Console as sn, computeDiagnosticDelta as st, recordCount as t, shouldUseMaintainabilityLayer as tn, calculateScore as tt, enableJsonMode as u, log as un, createInvocationCaches as ut, makeNoopConsole as v, map$3 as vn, findLegacyConfig as vt, detectRunnerOs as w, runPromise as wn, getDiagnosticRuleIdentity as wt, isGitHookEnvironment as x, provide as xn, formatReactDoctorError as xt, CliInputError as y, orElseSucceed as yn, fingerprintDiagnosticEvidence as yt, OxlintSpawnSlots as z, yieldToEventLoop as zn, listSourceFiles as zt };
|
|
77796
77957
|
|
|
77797
|
-
//# sourceMappingURL=record-metric-
|
|
77798
|
-
//# debugId=
|
|
77958
|
+
//# sourceMappingURL=record-metric-CoAVbFA7.js.map
|
|
77959
|
+
//# debugId=405d70d7-bbb8-52dc-b1f6-e9a340da2c71
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
-
import { S as SENTRY_FLUSH_TIMEOUT_MS, u as METRIC } from "./constants-
|
|
4
|
-
import { Ft as isReactDoctorError, l as getRunId, o as buildSentryScope, t as recordCount } from "./record-metric-
|
|
5
|
-
import { i as getSentry, n as shutdownTelemetry, o as isExpectedUserError } from "./telemetry-runtime-
|
|
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]="70079a17-ade4-53be-b1c1-2c38fbdce43f")}catch(e){}}();
|
|
3
|
+
import { S as SENTRY_FLUSH_TIMEOUT_MS, u as METRIC } from "./constants-C7tJ1mDM.js";
|
|
4
|
+
import { Ft as isReactDoctorError, l as getRunId, o as buildSentryScope, t as recordCount } from "./record-metric-CoAVbFA7.js";
|
|
5
|
+
import { i as getSentry, n as shutdownTelemetry, o as isExpectedUserError } from "./telemetry-runtime-CKzWxuvY.js";
|
|
6
6
|
import { r as recordRunTraceId, t as getActiveRunTrace } from "./active-run-trace-Dewycxda.js";
|
|
7
7
|
//#region src/cli/utils/report-error.ts
|
|
8
8
|
/**
|
|
@@ -61,5 +61,5 @@ const reportErrorToSentry = async (error) => {
|
|
|
61
61
|
//#endregion
|
|
62
62
|
export { reportErrorToSentry as t };
|
|
63
63
|
|
|
64
|
-
//# sourceMappingURL=report-error-
|
|
65
|
-
//# debugId=
|
|
64
|
+
//# sourceMappingURL=report-error-Cs67Olmw.js.map
|
|
65
|
+
//# debugId=70079a17-ade4-53be-b1c1-2c38fbdce43f
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
-
import { m as REACT_DOCTOR_CONFIG_PROJECT_NAME, u as METRIC } from "./constants-
|
|
4
|
-
import { t as recordCount } from "./record-metric-
|
|
5
|
-
import { u as isCommandAvailable } from "./install-github-workflow-
|
|
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]="015fa671-a703-5362-b071-42dfeabab6f0")}catch(e){}}();
|
|
3
|
+
import { m as REACT_DOCTOR_CONFIG_PROJECT_NAME, u as METRIC } from "./constants-C7tJ1mDM.js";
|
|
4
|
+
import { t as recordCount } from "./record-metric-CoAVbFA7.js";
|
|
5
|
+
import { u as isCommandAvailable } from "./install-github-workflow-CZon-WS2.js";
|
|
6
6
|
import { createRequire } from "node:module";
|
|
7
7
|
import * as path$1 from "node:path";
|
|
8
8
|
import { spawn } from "node:child_process";
|
|
@@ -289,5 +289,5 @@ const reportWorkflowResult = (workflowSpinner, result, projectRoot) => {
|
|
|
289
289
|
//#endregion
|
|
290
290
|
export { recordGate as a, ACTION_UPGRADE_EVENT as c, INSTALL_AGENTS_PREFERENCE_ID as d, ONBOARDING_EVENT as f, loadAgentInstall as g, detectAvailableAgents as h, readPreference as i, CI_PITCH_EVENT as l, computeDefaultSelectedAgents as m, openUrl as n, runMigrations as o, SETUP_HINT_EVENT as p, isGatePending as r, writePreference as s, reportWorkflowResult as t, HANDOFF_TARGET_PREFERENCE_ID as u };
|
|
291
291
|
|
|
292
|
-
//# sourceMappingURL=report-workflow-result-
|
|
293
|
-
//# debugId=
|
|
292
|
+
//# sourceMappingURL=report-workflow-result-CzcQyml2.js.map
|
|
293
|
+
//# debugId=015fa671-a703-5362-b071-42dfeabab6f0
|
|
@@ -1,18 +1,18 @@
|
|
|
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]="
|
|
3
|
-
import { E as TRACKED_FILE_FLAGS_GIT_ARGUMENTS, Ft as HTML_FILE_PATTERN, Ht as MAINTAINABILITY_SOURCE_FILE_PATTERN, Jt as OXLINT_NODE_REQUIREMENT, K as resolveReactDoctorCacheDir, Nt as GIT_SHOW_MAX_BUFFER_BYTES, Rt as JSX_FILE_PATTERN, St as ENTERPRISE_CONTACT_URL, Wt as MILLISECONDS_PER_SECOND, _t as DIAGNOSTIC_CATEGORY_BUCKETS, c as HEAD_SHA_GIT_ARGUMENTS, dn as SHARE_BASE_URL, h as REPOSITORY_ROOT_GIT_ARGUMENTS, i as BASELINE_FILES_TEMP_DIR_PREFIX, k as WORKTREE_STATUS_GIT_ARGUMENTS, q as resolveScanConcurrency, u as METRIC, ut as CI_URL, v as SCAN_RESULT_CACHE_FILENAME } from "./constants-
|
|
4
|
-
import { t as isCacheGloballyDisabled } from "./is-cache-globally-disabled-
|
|
5
|
-
import { $ as buildRuleSeverityControls, A as Files, An as mergeAll, B as PerFileLintCacheEnabled, Bt as listSourceFilesCooperative, C as ACTION_INPUT_ENVIRONMENT_VARIABLES, Cn as provideService, Dn as try_, Dt as getRuleMetadata, E as isCiOrCodingAgentEnvironment, En as sync, F as Linter, Ft as isReactDoctorError, G as SidecarLintCacheEnabled, Gt as mergeAndFilterDiagnostics, H as Project, Hn as isDirectory, I as Maintainability, Jt as resolveGithubActionsScoreMetadata, Kt as mergeReactDoctorConfigs, L as NodeResolver, Ln as ParentSpan, Lt as isScanComplete, M as InvocationCaches, Mn as succeed, Mt as highlighter, Nt as isPathInsideDirectory, O as Config, Ot as groupBy, P as LintPartialFailures, Q as buildRuleDocsUrl, Qt as runInspect, R as OxlintConcurrency, Rn as isMonorepoRoot, Sn as provideContext, T as isCiEnvironment, Tn as runSync, U as Reporter, Ut as mapWithConcurrency, V as Progress, Vt as listWorkspacePackages, W as Score, Wn as isFile, Wt as materializeSourceTree, X as atomicWriteJson, Xt as resolveScanTarget, Yt as resolveLintBatchOrdering, Zt as restoreLegacyThrow, _ as VERSION, an as warmDuplicateJsxWorker, at as collectSourceFilesByDirectory, b as isNonInteractiveEnvironment, bn as promise, cn as error, ct as countOptInProjectRuleSelections, d as isJsonModeActive, dn as warn, dt as createOxlintSpawnSlots, et as buildSkippedChecks, fn as Diagnostic, gn as gen, gt as filterSourceFiles, ht as filterPathsOutsideDirectories, j as Git, jt as hashFileContents, k as DIAGNOSTIC_DELTA_IDENTITY, kt as hasPublishedFixRecipe, l as getRunId, lt as createChangedLineMatcher, mn as decodeUnknownSync, mt as filterDiagnosticsForSurface, n as recordDistribution, nn as summarizeDiagnostics, nt as canonicalizeUserRuleKey, on as warmOxlintWorkerPool, ot as computeConfigFingerprint, pt as discoverSupportedSubprojects, q as SupplyChain, qt as remainingDeadlineBudgetMs, r as toSpanAttributes, rt as classifyFileContext, sn as Console, st as computeDiagnosticDelta, t as recordCount, tn as shouldUseMaintainabilityLayer, tt as calculateScore, un as log, ut as createInvocationCaches, v as makeNoopConsole, vn as map, w as detectRunnerOs, wn as runPromise, wt as getDiagnosticRuleIdentity, xn as provide, y as CliInputError, yn as orElseSucceed, yt as fingerprintDiagnosticEvidence, z as OxlintSpawnSlots, zn as yieldToEventLoop, zt as listSourceFiles } from "./record-metric-
|
|
6
|
-
import { t as getTelemetryContext } from "./telemetry-runtime-
|
|
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]="21001028-36fb-5e0f-82d2-84c278c8fa56")}catch(e){}}();
|
|
3
|
+
import { E as TRACKED_FILE_FLAGS_GIT_ARGUMENTS, Ft as HTML_FILE_PATTERN, Ht as MAINTAINABILITY_SOURCE_FILE_PATTERN, Jt as OXLINT_NODE_REQUIREMENT, K as resolveReactDoctorCacheDir, Nt as GIT_SHOW_MAX_BUFFER_BYTES, Rt as JSX_FILE_PATTERN, St as ENTERPRISE_CONTACT_URL, Wt as MILLISECONDS_PER_SECOND, _t as DIAGNOSTIC_CATEGORY_BUCKETS, c as HEAD_SHA_GIT_ARGUMENTS, dn as SHARE_BASE_URL, h as REPOSITORY_ROOT_GIT_ARGUMENTS, i as BASELINE_FILES_TEMP_DIR_PREFIX, k as WORKTREE_STATUS_GIT_ARGUMENTS, q as resolveScanConcurrency, u as METRIC, ut as CI_URL, v as SCAN_RESULT_CACHE_FILENAME } from "./constants-C7tJ1mDM.js";
|
|
4
|
+
import { t as isCacheGloballyDisabled } from "./is-cache-globally-disabled-CKGkF0mF.js";
|
|
5
|
+
import { $ as buildRuleSeverityControls, A as Files, An as mergeAll, B as PerFileLintCacheEnabled, Bt as listSourceFilesCooperative, C as ACTION_INPUT_ENVIRONMENT_VARIABLES, Cn as provideService, Dn as try_, Dt as getRuleMetadata, E as isCiOrCodingAgentEnvironment, En as sync, F as Linter, Ft as isReactDoctorError, G as SidecarLintCacheEnabled, Gt as mergeAndFilterDiagnostics, H as Project, Hn as isDirectory, I as Maintainability, Jt as resolveGithubActionsScoreMetadata, Kt as mergeReactDoctorConfigs, L as NodeResolver, Ln as ParentSpan, Lt as isScanComplete, M as InvocationCaches, Mn as succeed, Mt as highlighter, Nt as isPathInsideDirectory, O as Config, Ot as groupBy, P as LintPartialFailures, Q as buildRuleDocsUrl, Qt as runInspect, R as OxlintConcurrency, Rn as isMonorepoRoot, Sn as provideContext, T as isCiEnvironment, Tn as runSync, U as Reporter, Ut as mapWithConcurrency, V as Progress, Vt as listWorkspacePackages, W as Score, Wn as isFile, Wt as materializeSourceTree, X as atomicWriteJson, Xt as resolveScanTarget, Yt as resolveLintBatchOrdering, Zt as restoreLegacyThrow, _ as VERSION, an as warmDuplicateJsxWorker, at as collectSourceFilesByDirectory, b as isNonInteractiveEnvironment, bn as promise, cn as error, ct as countOptInProjectRuleSelections, d as isJsonModeActive, dn as warn, dt as createOxlintSpawnSlots, et as buildSkippedChecks, fn as Diagnostic, gn as gen, gt as filterSourceFiles, ht as filterPathsOutsideDirectories, j as Git, jt as hashFileContents, k as DIAGNOSTIC_DELTA_IDENTITY, kt as hasPublishedFixRecipe, l as getRunId, lt as createChangedLineMatcher, mn as decodeUnknownSync, mt as filterDiagnosticsForSurface, n as recordDistribution, nn as summarizeDiagnostics, nt as canonicalizeUserRuleKey, on as warmOxlintWorkerPool, ot as computeConfigFingerprint, pt as discoverSupportedSubprojects, q as SupplyChain, qt as remainingDeadlineBudgetMs, r as toSpanAttributes, rt as classifyFileContext, sn as Console, st as computeDiagnosticDelta, t as recordCount, tn as shouldUseMaintainabilityLayer, tt as calculateScore, un as log, ut as createInvocationCaches, v as makeNoopConsole, vn as map, w as detectRunnerOs, wn as runPromise, wt as getDiagnosticRuleIdentity, xn as provide, y as CliInputError, yn as orElseSucceed, yt as fingerprintDiagnosticEvidence, z as OxlintSpawnSlots, zn as yieldToEventLoop, zt as listSourceFiles } from "./record-metric-CoAVbFA7.js";
|
|
6
|
+
import { t as getTelemetryContext } from "./telemetry-runtime-CKzWxuvY.js";
|
|
7
7
|
import { t as activeScanAbortRegistry } from "./active-scan-abort-registry-CCTgal0O.js";
|
|
8
|
-
import { n as buildFooterLinkLines, t as buildSectionDivider } from "./build-section-divider-
|
|
8
|
+
import { n as buildFooterLinkLines, t as buildSectionDivider } from "./build-section-divider-mTOnrYpM.js";
|
|
9
9
|
import { t as toForwardSlashes } from "./path-format-By20mo8A.js";
|
|
10
10
|
import { t as typescriptBinding } from "./_react-doctor_require-typescript-DXQDYeWK.js";
|
|
11
|
-
import { A as runGitAsync, C as isRecord, N as cliLogger, S as getPackageJsonPath, a as installReactDoctorScriptStep, c as spinner, j as runGitRaw, k as runGit, n as findNearestPackageDirectory, o as isSpinnerSilent, s as setSpinnerSilent } from "./install-doctor-script-
|
|
12
|
-
import { d as detectDefaultBranch, l as prompts, r as installReactDoctorWorkflow, u as isCommandAvailable } from "./install-github-workflow-
|
|
13
|
-
import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, o as pickBlockingLevel } from "./resolve-scope-
|
|
14
|
-
import { n as resetSentryRunState, r as withRunSpan, t as recordSentryProjectContext } from "./with-run-span-
|
|
15
|
-
import { h as detectAvailableAgents, t as reportWorkflowResult } from "./report-workflow-result-
|
|
11
|
+
import { A as runGitAsync, C as isRecord, N as cliLogger, S as getPackageJsonPath, a as installReactDoctorScriptStep, c as spinner, j as runGitRaw, k as runGit, n as findNearestPackageDirectory, o as isSpinnerSilent, s as setSpinnerSilent } from "./install-doctor-script-BaGcAM3X.js";
|
|
12
|
+
import { d as detectDefaultBranch, l as prompts, r as installReactDoctorWorkflow, u as isCommandAvailable } from "./install-github-workflow-CZon-WS2.js";
|
|
13
|
+
import { a as isValidBlockingLevel, c as openWorkflowPullRequest, l as stageWorkflowFile, o as pickBlockingLevel } from "./resolve-scope-CjeJFWT1.js";
|
|
14
|
+
import { n as resetSentryRunState, r as withRunSpan, t as recordSentryProjectContext } from "./with-run-span-CYmTBOFN.js";
|
|
15
|
+
import { h as detectAvailableAgents, t as reportWorkflowResult } from "./report-workflow-result-CzcQyml2.js";
|
|
16
16
|
import { createRequire } from "node:module";
|
|
17
17
|
import * as fs$2 from "node:fs";
|
|
18
18
|
import fs, { mkdtempSync, rmSync } from "node:fs";
|
|
@@ -1611,7 +1611,8 @@ const materializeBaselineFiles = (input) => runPromise(gen(function* () {
|
|
|
1611
1611
|
const git = yield* Git;
|
|
1612
1612
|
const diffPlan = yield* git.baselineDiffPlan({
|
|
1613
1613
|
directory: input.directory,
|
|
1614
|
-
ref: input.ref
|
|
1614
|
+
ref: input.ref,
|
|
1615
|
+
untrackedRenamePaths: input.files
|
|
1615
1616
|
});
|
|
1616
1617
|
const baseFiles = input.baseFiles ?? diffPlan?.baseFiles;
|
|
1617
1618
|
const headFiles = input.headFiles ?? diffPlan?.headFiles;
|
|
@@ -3167,5 +3168,5 @@ const resolveScanExitCode = (input) => {
|
|
|
3167
3168
|
//#endregion
|
|
3168
3169
|
export { createInvocationInspect as A, hasIncompleteScoreAnalysis as B, detectLaunchableAgents as C, buildHandoffPayload as D, launchCliAgent as E, formatSkippedCheckLabel as F, hasLintHardFailure as G, buildNoScoreMessage as H, formatElapsedTime as I, formatFixRecipeLine as J, buildRulePriorityMap as K, printFooter as L, resolveMergeBaseRef as M, printHeadlessReport as N, collectProjectSourceFiles as O, pluralize as P, printDiagnosticsDump as R, setUpGitHubActions as S, copyToClipboard as T, buildEmptyReportMessage as U, filterDiagnosticsByCategories as V, resolveInvocationOxlintConcurrency as W, formatLearnMoreLine as Y, retryMissingProjectScores as _, validateModeFlags as a, filterScansForSurface as b, partitionProjectScanOutcomes as c, buildCodeFrame as d, resolveProjectScan as f, resolveProjectRelativeDirectory as g, resolveProjectSourceFilePaths as h, validateIncludeUntrackedScope as i, inspect as j, deduplicateProjectScans as k, discoverWorkspacePackages as l, resolveProjectDiffIncludePaths as m, formatSkippedProjectsMessage as n, resolveExcludedProjectDirectories as o, resolveProjectChangedLineRanges as p, buildSortedRuleGroups as q, validateFilePathSelectionFlags as r, projectManifestChanged as s, resolveScanExitCode as t, selectProjects as u, resolveWorkspaceDeadCodeOwner as v, CLI_AGENT_BINARIES as w, countUniqueScannedFiles as x, resolveCliInspectOptions as y, formatDiagnosticSite as z };
|
|
3169
3170
|
|
|
3170
|
-
//# sourceMappingURL=resolve-scan-exit-code-
|
|
3171
|
-
//# debugId=
|
|
3171
|
+
//# sourceMappingURL=resolve-scan-exit-code-BHnywF2O.js.map
|
|
3172
|
+
//# debugId=21001028-36fb-5e0f-82d2-84c278c8fa56
|
|
@@ -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]="
|
|
3
|
-
import { Nt as isPathInsideDirectory, Vn as toCanonicalPath, gt as filterSourceFiles } from "./record-metric-
|
|
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]="a4d156c7-a615-5b35-8401-f1e4e2f218df")}catch(e){}}();
|
|
3
|
+
import { Nt as isPathInsideDirectory, Vn as toCanonicalPath, gt as filterSourceFiles } from "./record-metric-CoAVbFA7.js";
|
|
4
4
|
import { t as toForwardSlashes } from "./path-format-By20mo8A.js";
|
|
5
|
-
import { N as cliLogger } from "./install-doctor-script-
|
|
6
|
-
import { d as detectDefaultBranch, f as runCommand, l as prompts, u as isCommandAvailable } from "./install-github-workflow-
|
|
5
|
+
import { N as cliLogger } from "./install-doctor-script-BaGcAM3X.js";
|
|
6
|
+
import { d as detectDefaultBranch, f as runCommand, l as prompts, u as isCommandAvailable } from "./install-github-workflow-CZon-WS2.js";
|
|
7
7
|
import * as path$1 from "node:path";
|
|
8
8
|
//#region src/cli/utils/open-workflow-pull-request.ts
|
|
9
9
|
const NEW_BRANCH_PREFIX = "react-doctor/add-github-actions";
|
|
@@ -334,5 +334,5 @@ const finalizeScope = async ({ requested, diffInfo, skipPrompts, isQuiet }) => {
|
|
|
334
334
|
//#endregion
|
|
335
335
|
export { isValidBlockingLevel as a, openWorkflowPullRequest as c, warnDeprecatedDiff as i, stageWorkflowFile as l, isScopeValue as n, pickBlockingLevel as o, resolveScope as r, resolveBlockingLevel as s, finalizeScope as t };
|
|
336
336
|
|
|
337
|
-
//# sourceMappingURL=resolve-scope-
|
|
338
|
-
//# debugId=
|
|
337
|
+
//# sourceMappingURL=resolve-scope-CjeJFWT1.js.map
|
|
338
|
+
//# debugId=a4d156c7-a615-5b35-8401-f1e4e2f218df
|
|
@@ -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]="
|
|
3
|
-
import { dt as COMPILER_CLEANUP_BUCKET, ft as COMPILER_CLEANUP_RULE_KEYS, u as METRIC } from "./constants-
|
|
4
|
-
import { Et as getEquivalentRuleKeys, Gn as isPlainObject, Ht as loadConfigWithSource, It as isSameRuleKey, Mt as highlighter, Q as buildRuleDocsUrl, in as validateConfigTypes, it as clearConfigCache, t as recordCount } from "./record-metric-
|
|
5
|
-
import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-
|
|
6
|
-
import { t as readObjectFile } from "./read-object-file-
|
|
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]="1b8b4925-d93a-55b2-b2f1-1831fc8421cb")}catch(e){}}();
|
|
3
|
+
import { dt as COMPILER_CLEANUP_BUCKET, ft as COMPILER_CLEANUP_RULE_KEYS, u as METRIC } from "./constants-C7tJ1mDM.js";
|
|
4
|
+
import { Et as getEquivalentRuleKeys, Gn as isPlainObject, Ht as loadConfigWithSource, It as isSameRuleKey, Mt as highlighter, Q as buildRuleDocsUrl, in as validateConfigTypes, it as clearConfigCache, t as recordCount } from "./record-metric-CoAVbFA7.js";
|
|
5
|
+
import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-BaGcAM3X.js";
|
|
6
|
+
import { t as readObjectFile } from "./read-object-file-BdUmsqGr.js";
|
|
7
7
|
import * as fs$1 from "node:fs";
|
|
8
8
|
import * as path$1 from "node:path";
|
|
9
9
|
import { REACT_DOCTOR_RULES } from "oxlint-plugin-react-doctor/core";
|
|
@@ -578,5 +578,5 @@ const rulesUnignoreTagAction = async (tag, options) => {
|
|
|
578
578
|
//#endregion
|
|
579
579
|
export { rulesCategoryAction, rulesDisableAction, rulesEnableAction, rulesExplainAction, rulesIgnoreTagAction, rulesListAction, rulesSetAction, rulesUnignoreTagAction };
|
|
580
580
|
|
|
581
|
-
//# sourceMappingURL=rules-
|
|
582
|
-
//# debugId=
|
|
581
|
+
//# sourceMappingURL=rules-BcEL35Ft.js.map
|
|
582
|
+
//# debugId=1b8b4925-d93a-55b2-b2f1-1831fc8421cb
|
|
@@ -1,14 +1,14 @@
|
|
|
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]="
|
|
3
|
-
import { D as TUI_REPORT_COMPACT_MAX_ROWS, In as getCategoryImpact, O as TUI_REPORT_DETAIL_WIDTH_FRACTION, _t as DIAGNOSTIC_CATEGORY_BUCKETS, kt as GITHUB_ACTIONS_SETUP_URL, o as CI_TRUST_COMPANIES, u as METRIC } from "./constants-
|
|
4
|
-
import { Ct as getChangedLineRanges, En as sync, Mn as succeed, Mt as highlighter, On as void_, Q as buildRuleDocsUrl, St as getBaselineDiffPlan, T as isCiEnvironment, Tt as getDiffInfo, U as Reporter, Ut as mapWithConcurrency, V as Progress, Xt as resolveScanTarget, kt as hasPublishedFixRecipe, n as recordDistribution, qt as remainingDeadlineBudgetMs, t as recordCount, tt as calculateScore, wn as runPromise, x as isGitHookEnvironment, zn as yieldToEventLoop } from "./record-metric-
|
|
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]="92cd77b9-3c86-5533-ba49-371e2389f10a")}catch(e){}}();
|
|
3
|
+
import { D as TUI_REPORT_COMPACT_MAX_ROWS, In as getCategoryImpact, O as TUI_REPORT_DETAIL_WIDTH_FRACTION, _t as DIAGNOSTIC_CATEGORY_BUCKETS, kt as GITHUB_ACTIONS_SETUP_URL, o as CI_TRUST_COMPANIES, u as METRIC } from "./constants-C7tJ1mDM.js";
|
|
4
|
+
import { Ct as getChangedLineRanges, En as sync, Mn as succeed, Mt as highlighter, On as void_, Q as buildRuleDocsUrl, St as getBaselineDiffPlan, T as isCiEnvironment, Tt as getDiffInfo, U as Reporter, Ut as mapWithConcurrency, V as Progress, Xt as resolveScanTarget, kt as hasPublishedFixRecipe, n as recordDistribution, qt as remainingDeadlineBudgetMs, t as recordCount, tt as calculateScore, wn as runPromise, x as isGitHookEnvironment, zn as yieldToEventLoop } from "./record-metric-CoAVbFA7.js";
|
|
5
5
|
import { t as toForwardSlashes } from "./path-format-By20mo8A.js";
|
|
6
|
-
import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-
|
|
7
|
-
import { i as isReactDoctorWorkflowInstalled } from "./install-github-workflow-
|
|
8
|
-
import { r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-
|
|
9
|
-
import { A as createInvocationInspect, B as hasIncompleteScoreAnalysis, C as detectLaunchableAgents, D as buildHandoffPayload, E as launchCliAgent, F as formatSkippedCheckLabel, G as hasLintHardFailure, H as buildNoScoreMessage, I as formatElapsedTime, J as formatFixRecipeLine, K as buildRulePriorityMap, L as printFooter, M as resolveMergeBaseRef, O as collectProjectSourceFiles, P as pluralize, R as printDiagnosticsDump, S as setUpGitHubActions, T as copyToClipboard, U as buildEmptyReportMessage, V as filterDiagnosticsByCategories, Y as formatLearnMoreLine, _ as retryMissingProjectScores, b as filterScansForSurface, c as partitionProjectScanOutcomes, d as buildCodeFrame, f as resolveProjectScan, h as resolveProjectSourceFilePaths, i as validateIncludeUntrackedScope, k as deduplicateProjectScans, l as discoverWorkspacePackages, m as resolveProjectDiffIncludePaths, n as formatSkippedProjectsMessage, o as resolveExcludedProjectDirectories, p as resolveProjectChangedLineRanges, q as buildSortedRuleGroups, s as projectManifestChanged, t as resolveScanExitCode, u as selectProjects, v as resolveWorkspaceDeadCodeOwner, w as CLI_AGENT_BINARIES, x as countUniqueScannedFiles, y as resolveCliInspectOptions, z as formatDiagnosticSite } from "./resolve-scan-exit-code-
|
|
10
|
-
import { a as recordGate, f as ONBOARDING_EVENT, n as openUrl, r as isGatePending } from "./report-workflow-result-
|
|
11
|
-
import { a as useExitOnCtrlC, c as Spinner, d as useInput, f as Transform, h as Box, i as import_react, l as useStdout, m as Text, n as registerMountedTuiRenderer, o as terminalSymbols, p as render, r as useStdoutDimensions, s as isPrintableInput, t as require_jsx_runtime, u as useApp } from "./jsx-runtime-
|
|
6
|
+
import { N as cliLogger, n as findNearestPackageDirectory } from "./install-doctor-script-BaGcAM3X.js";
|
|
7
|
+
import { i as isReactDoctorWorkflowInstalled } from "./install-github-workflow-CZon-WS2.js";
|
|
8
|
+
import { r as resolveScope, s as resolveBlockingLevel, t as finalizeScope } from "./resolve-scope-CjeJFWT1.js";
|
|
9
|
+
import { A as createInvocationInspect, B as hasIncompleteScoreAnalysis, C as detectLaunchableAgents, D as buildHandoffPayload, E as launchCliAgent, F as formatSkippedCheckLabel, G as hasLintHardFailure, H as buildNoScoreMessage, I as formatElapsedTime, J as formatFixRecipeLine, K as buildRulePriorityMap, L as printFooter, M as resolveMergeBaseRef, O as collectProjectSourceFiles, P as pluralize, R as printDiagnosticsDump, S as setUpGitHubActions, T as copyToClipboard, U as buildEmptyReportMessage, V as filterDiagnosticsByCategories, Y as formatLearnMoreLine, _ as retryMissingProjectScores, b as filterScansForSurface, c as partitionProjectScanOutcomes, d as buildCodeFrame, f as resolveProjectScan, h as resolveProjectSourceFilePaths, i as validateIncludeUntrackedScope, k as deduplicateProjectScans, l as discoverWorkspacePackages, m as resolveProjectDiffIncludePaths, n as formatSkippedProjectsMessage, o as resolveExcludedProjectDirectories, p as resolveProjectChangedLineRanges, q as buildSortedRuleGroups, s as projectManifestChanged, t as resolveScanExitCode, u as selectProjects, v as resolveWorkspaceDeadCodeOwner, w as CLI_AGENT_BINARIES, x as countUniqueScannedFiles, y as resolveCliInspectOptions, z as formatDiagnosticSite } from "./resolve-scan-exit-code-BHnywF2O.js";
|
|
10
|
+
import { a as recordGate, f as ONBOARDING_EVENT, n as openUrl, r as isGatePending } from "./report-workflow-result-CzcQyml2.js";
|
|
11
|
+
import { a as useExitOnCtrlC, c as Spinner, d as useInput, f as Transform, h as Box, i as import_react, l as useStdout, m as Text, n as registerMountedTuiRenderer, o as terminalSymbols, p as render, r as useStdoutDimensions, s as isPrintableInput, t as require_jsx_runtime, u as useApp } from "./jsx-runtime-CKBFKfTi.js";
|
|
12
12
|
import path from "node:path";
|
|
13
13
|
import { performance } from "node:perf_hooks";
|
|
14
14
|
import isUnicodeSupported from "is-unicode-supported";
|
|
@@ -71,7 +71,7 @@ const resolveTuiScanScope = async (input) => {
|
|
|
71
71
|
else if (diffInfo.diffBaseRef !== void 0) comparisonBaseRef = diffInfo.diffBaseRef;
|
|
72
72
|
else comparisonBaseRef = await resolveMergeBaseRef(input.directory, diffInfo.baseBranch);
|
|
73
73
|
const baselineRef = scope === "changed" ? comparisonBaseRef : null;
|
|
74
|
-
const baselineDiffPlan = baselineRef === null ? null : await getBaselineDiffPlan(input.directory, baselineRef);
|
|
74
|
+
const baselineDiffPlan = baselineRef === null ? null : await getBaselineDiffPlan(input.directory, baselineRef, includeUntracked ? diffInfo?.changedFiles : void 0);
|
|
75
75
|
const linesBaseRef = diffInfo?.isCurrentChanges ? "HEAD" : comparisonBaseRef;
|
|
76
76
|
const changedLineRanges = (scope === "lines" || scope === "contextual") && diffInfo !== null && (diffInfo.isCurrentChanges || linesBaseRef !== null) ? await getChangedLineRanges({
|
|
77
77
|
directory: input.directory,
|
|
@@ -2524,5 +2524,5 @@ const runScanApp = async (input) => {
|
|
|
2524
2524
|
//#endregion
|
|
2525
2525
|
export { runScanApp };
|
|
2526
2526
|
|
|
2527
|
-
//# sourceMappingURL=run-scan-app-
|
|
2528
|
-
//# debugId=
|
|
2527
|
+
//# sourceMappingURL=run-scan-app-CU3pKaLU.js.map
|
|
2528
|
+
//# debugId=92cd77b9-3c86-5533-ba49-371e2389f10a
|
|
@@ -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]="
|
|
3
|
-
import { u as METRIC } from "./constants-
|
|
4
|
-
import { Mt as highlighter, t as recordCount, u as enableJsonMode, y as CliInputError } from "./record-metric-
|
|
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]="e198a15b-4306-5e3d-bbd0-3d59396c70aa")}catch(e){}}();
|
|
3
|
+
import { u as METRIC } from "./constants-C7tJ1mDM.js";
|
|
4
|
+
import { Mt as highlighter, t as recordCount, u as enableJsonMode, y as CliInputError } from "./record-metric-CoAVbFA7.js";
|
|
5
5
|
import { t as activeScanAbortRegistry } from "./active-scan-abort-registry-CCTgal0O.js";
|
|
6
|
-
import { t as reportErrorToSentry } from "./report-error-
|
|
7
|
-
import { n as resetSentryRunState, r as withRunSpan } from "./with-run-span-
|
|
8
|
-
import { _ as RUNTIME_SCAN_SNAPSHOT_TIMEOUT_MS, b as RUNTIME_SCAN_TRACING_COMPLETE_TIMEOUT_MS, f as RUNTIME_SCAN_PROBE_RELATIVE_PATH, g as RUNTIME_SCAN_SAFE_CDP_PAGE_URLS, h as RUNTIME_SCAN_PROBE_SNAPSHOT_TOKEN_PLACEHOLDER, l as RUNTIME_SCAN_MAX_SNAPSHOT_PAYLOAD_BYTES, m as RUNTIME_SCAN_PROBE_SNAPSHOT_BINDING_NAME_PLACEHOLDER, n as RUNTIME_SCAN_BROWSER_WIDTH_PX, o as RUNTIME_SCAN_MAX_COMPONENT_EVENTS, p as RUNTIME_SCAN_PROBE_SNAPSHOT_ATTRIBUTE_NAME_PLACEHOLDER, r as RUNTIME_SCAN_CONTROL_CHARACTERS_PATTERN, s as RUNTIME_SCAN_MAX_RECORDING_DURATION_MS, t as sanitizeRuntimeUrl, v as RUNTIME_SCAN_TRACE_CATEGORIES, y as RUNTIME_SCAN_TRACE_FILE_EXTENSION } from "./sanitize-runtime-url-
|
|
9
|
-
import { r as resolveTuiEnvironment, t as isTuiEnvironmentSupported } from "./should-use-tui-
|
|
6
|
+
import { t as reportErrorToSentry } from "./report-error-Cs67Olmw.js";
|
|
7
|
+
import { n as resetSentryRunState, r as withRunSpan } from "./with-run-span-CYmTBOFN.js";
|
|
8
|
+
import { _ as RUNTIME_SCAN_SNAPSHOT_TIMEOUT_MS, b as RUNTIME_SCAN_TRACING_COMPLETE_TIMEOUT_MS, f as RUNTIME_SCAN_PROBE_RELATIVE_PATH, g as RUNTIME_SCAN_SAFE_CDP_PAGE_URLS, h as RUNTIME_SCAN_PROBE_SNAPSHOT_TOKEN_PLACEHOLDER, l as RUNTIME_SCAN_MAX_SNAPSHOT_PAYLOAD_BYTES, m as RUNTIME_SCAN_PROBE_SNAPSHOT_BINDING_NAME_PLACEHOLDER, n as RUNTIME_SCAN_BROWSER_WIDTH_PX, o as RUNTIME_SCAN_MAX_COMPONENT_EVENTS, p as RUNTIME_SCAN_PROBE_SNAPSHOT_ATTRIBUTE_NAME_PLACEHOLDER, r as RUNTIME_SCAN_CONTROL_CHARACTERS_PATTERN, s as RUNTIME_SCAN_MAX_RECORDING_DURATION_MS, t as sanitizeRuntimeUrl, v as RUNTIME_SCAN_TRACE_CATEGORIES, y as RUNTIME_SCAN_TRACE_FILE_EXTENSION } from "./sanitize-runtime-url-B0Urg1hb.js";
|
|
9
|
+
import { r as resolveTuiEnvironment, t as isTuiEnvironmentSupported } from "./should-use-tui-DEdaqbrj.js";
|
|
10
10
|
import * as fs$1 from "node:fs";
|
|
11
11
|
import * as path$1 from "node:path";
|
|
12
12
|
import * as os$1 from "node:os";
|
|
@@ -720,7 +720,7 @@ const resolveRuntimeScanUrl = async (url) => {
|
|
|
720
720
|
if (url !== void 0) return url;
|
|
721
721
|
if (!isTuiEnvironmentSupported(resolveTuiEnvironment(process.stderr.isTTY === true))) throw new CliInputError("A URL is required outside an interactive terminal. Run `react-doctor scan <url>`.");
|
|
722
722
|
recordCount(METRIC.runtimeScanUrlPromptShown);
|
|
723
|
-
const { promptRuntimeScanUrl } = await import("./prompt-runtime-scan-url-
|
|
723
|
+
const { promptRuntimeScanUrl } = await import("./prompt-runtime-scan-url-0fTp6DLR.js");
|
|
724
724
|
return promptRuntimeScanUrl();
|
|
725
725
|
};
|
|
726
726
|
const runtimeScanAction = async (url, flags) => {
|
|
@@ -767,5 +767,5 @@ const runtimeScanAction = async (url, flags) => {
|
|
|
767
767
|
//#endregion
|
|
768
768
|
export { runtimeScanAction };
|
|
769
769
|
|
|
770
|
-
//# sourceMappingURL=runtime-scan-
|
|
771
|
-
//# debugId=
|
|
770
|
+
//# sourceMappingURL=runtime-scan-BG2L47ja.js.map
|
|
771
|
+
//# debugId=e198a15b-4306-5e3d-bbd0-3d59396c70aa
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
-
import { y as CliInputError } from "./record-metric-
|
|
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]="65eeb8bf-b67f-511d-8a96-730e2039aad6")}catch(e){}}();
|
|
3
|
+
import { y as CliInputError } from "./record-metric-CoAVbFA7.js";
|
|
4
4
|
//#region src/cli/runtime-scan/constants.ts
|
|
5
5
|
const RUNTIME_SCAN_MAX_COMPONENT_EVENTS = 2e3;
|
|
6
6
|
const RUNTIME_SCAN_MAX_SNAPSHOT_PAYLOAD_BYTES = 5 * 1024 * 1024;
|
|
@@ -72,5 +72,5 @@ const sanitizeRuntimeUrl = (rawUrl) => {
|
|
|
72
72
|
//#endregion
|
|
73
73
|
export { RUNTIME_SCAN_SNAPSHOT_TIMEOUT_MS as _, RUNTIME_SCAN_LOCAL_DEV_PORTS as a, RUNTIME_SCAN_TRACING_COMPLETE_TIMEOUT_MS as b, RUNTIME_SCAN_MAX_SNAPSHOT_BYTES as c, RUNTIME_SCAN_MAX_TRACE_BYTES as d, RUNTIME_SCAN_PROBE_RELATIVE_PATH as f, RUNTIME_SCAN_SAFE_CDP_PAGE_URLS as g, RUNTIME_SCAN_PROBE_SNAPSHOT_TOKEN_PLACEHOLDER as h, RUNTIME_SCAN_LAYOUT_THRASH_RATIO as i, RUNTIME_SCAN_MAX_SNAPSHOT_PAYLOAD_BYTES as l, RUNTIME_SCAN_PROBE_SNAPSHOT_BINDING_NAME_PLACEHOLDER as m, RUNTIME_SCAN_BROWSER_WIDTH_PX as n, RUNTIME_SCAN_MAX_COMPONENT_EVENTS as o, RUNTIME_SCAN_PROBE_SNAPSHOT_ATTRIBUTE_NAME_PLACEHOLDER as p, RUNTIME_SCAN_CONTROL_CHARACTERS_PATTERN as r, RUNTIME_SCAN_MAX_RECORDING_DURATION_MS as s, sanitizeRuntimeUrl as t, RUNTIME_SCAN_MAX_STRING_LENGTH as u, RUNTIME_SCAN_TRACE_CATEGORIES as v, RUNTIME_SCAN_TRACE_FILE_EXTENSION as y };
|
|
74
74
|
|
|
75
|
-
//# sourceMappingURL=sanitize-runtime-url-
|
|
76
|
-
//# debugId=
|
|
75
|
+
//# sourceMappingURL=sanitize-runtime-url-B0Urg1hb.js.map
|
|
76
|
+
//# debugId=65eeb8bf-b67f-511d-8a96-730e2039aad6
|