nanos-lint 3.1.0 → 3.2.0
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/README.md +33 -3
- package/action.yml +1 -1
- package/dist/{cli-Cb3wLBCr.js → cli-CeNxOiST.js} +672 -84
- package/dist/cli-CeNxOiST.js.map +1 -0
- package/dist/cli-dxsaVVVq.d.ts.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +88 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/dist/cli-Cb3wLBCr.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-dxsaVVVq.d.ts","names":[],"sources":["../node_modules/commander/typings/index.d.ts","../src/cli.ts"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;KAWK,aAAa,aAAa,oCAC3B,eACC,WAAW;cAEH,uBAAuB;EAClC;EACA;EACA;EACA;;;;;;;EAQA,YAAY,kBAAkB,cAAc;;UAY7B;;;EAGf;;EAEA;;cAGW;EACX;EACA;EACA;EACA;EACA;EACA,YAAY,GAAG,eAAe,UAAU,MAAM;EAC9C;;;;;;EAOA,YAAY,aAAa;;;;EAKzB;;;;EAKA,QAAQ,gBAAgB;;;;EAKxB,UAAU,GAAG,KAAK,eAAe,UAAU,MAAM;;;;EAKjD,QAAQ;;;;EAKR;;;;EAKA;;cAGW;EACX;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,YAAY,GAAG,eAAe,UAAU,MAAM;EAC9C;EACA;EACA;EAEA,YAAY,eAAe;;;;EAK3B,QAAQ,gBAAgB;;;;;;;;;;;EAYxB,OAAO;;;;;;;;;;;EAYP,UAAU;;;;;;;;;;;EAYV,QAAQ,cAAc;;;;;;;EAQtB,IAAI;;;;EAKJ,UAAU,GAAG,KAAK,eAAe,UAAU,MAAM;;;;EAKjD,oBAAoB;;;;EAKpB,SAAS;;;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C3C,YACE,UAAU,qBACV,OAAO,SAAS;;;;EAMlB,GAAG,wBAAwB,cAAc;;UAG1B;EACf;EACA;;EAEA;;UAEe,iCAAiC;EAChD;;UAGe;EACf;EACA;;;;;
|
|
1
|
+
{"version":3,"file":"cli-dxsaVVVq.d.ts","names":[],"sources":["../node_modules/commander/typings/index.d.ts","../src/cli.ts"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;KAWK,aAAa,aAAa,oCAC3B,eACC,WAAW;cAEH,uBAAuB;EAClC;EACA;EACA;EACA;;;;;;;EAQA,YAAY,kBAAkB,cAAc;;UAY7B;;;EAGf;;EAEA;;cAGW;EACX;EACA;EACA;EACA;EACA;EACA,YAAY,GAAG,eAAe,UAAU,MAAM;EAC9C;;;;;;EAOA,YAAY,aAAa;;;;EAKzB;;;;EAKA,QAAQ,gBAAgB;;;;EAKxB,UAAU,GAAG,KAAK,eAAe,UAAU,MAAM;;;;EAKjD,QAAQ;;;;EAKR;;;;EAKA;;cAGW;EACX;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,YAAY,GAAG,eAAe,UAAU,MAAM;EAC9C;EACA;EACA;EAEA,YAAY,eAAe;;;;EAK3B,QAAQ,gBAAgB;;;;;;;;;;;EAYxB,OAAO;;;;;;;;;;;EAYP,UAAU;;;;;;;;;;;EAYV,QAAQ,cAAc;;;;;;;EAQtB,IAAI;;;;EAKJ,UAAU,GAAG,KAAK,eAAe,UAAU,MAAM;;;;EAKjD,oBAAoB;;;;EAKpB,SAAS;;;;EAKT,QAAQ;;;;EAKR;;;;;EAMA;;;;EAKA,UAAU;;;;;;EAOV;;cAGW;;EAEX;EACA;EACA;EACA;EACA;EAEA;;;;;;;EAQA,eAAe;IACb;IACA;IACA;;;EAIF,eAAe,KAAK;;EAEpB,sBAAsB,KAAK;;EAE3B,WAAW,QAAQ;;EAEnB,kBAAkB,QAAQ;;EAE1B,aAAa,UAAU;;EAEvB,oBAAoB,UAAU;;E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HANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as runCLI, n as createProgram, r as isDirectExecution, t as collectIgnorePatterns } from "./cli-
|
|
1
|
+
import { i as runCLI, n as createProgram, r as isDirectExecution, t as collectIgnorePatterns } from "./cli-CeNxOiST.js";
|
|
2
2
|
export { collectIgnorePatterns, createProgram, isDirectExecution, runCLI };
|
package/dist/index.d.ts
CHANGED
|
@@ -212,7 +212,7 @@ type RealmPassName = "client" | "server" | "shared";
|
|
|
212
212
|
* and a realm-specific class table is dropped from the other realm unless it still has
|
|
213
213
|
* instance members there.
|
|
214
214
|
*/
|
|
215
|
-
export declare function splitAnnotationsByRealm(text: string): {
|
|
215
|
+
export declare function splitAnnotationsByRealm(text: string, onProgress?: () => void): {
|
|
216
216
|
client: string;
|
|
217
217
|
server: string;
|
|
218
218
|
};
|
|
@@ -433,14 +433,22 @@ export declare function isBinaryRunnable(binaryPath: string): boolean;
|
|
|
433
433
|
*/
|
|
434
434
|
export declare function assertValidLuaLSBinary(binaryPath: string, source: string): string;
|
|
435
435
|
//#endregion
|
|
436
|
-
//#region src/
|
|
437
|
-
export declare const DOWNLOAD_TIMEOUT_MS = 120000;
|
|
438
|
-
export declare const MAX_ARCHIVE_SIZE_BYTES: number;
|
|
439
|
-
export declare const ALLOWED_DOWNLOAD_DOMAINS: readonly string[];
|
|
436
|
+
//#region src/download-guard.d.ts
|
|
440
437
|
/**
|
|
441
|
-
*
|
|
438
|
+
* Shared transport policy for every outbound download performed by nanos-lint.
|
|
439
|
+
*
|
|
440
|
+
* `SECURITY.md` requires download requests *and* HTTP redirects to use HTTPS and to stay on
|
|
441
|
+
* GitHub infrastructure. Redirects are therefore resolved hop by hop in `"manual"` mode: the
|
|
442
|
+
* default `"follow"` mode contacts the redirect target before any check can run, which would
|
|
443
|
+
* let a redirect downgrade to plaintext `http://` or reach an internal address.
|
|
442
444
|
*/
|
|
445
|
+
export declare const ALLOWED_DOWNLOAD_DOMAINS: readonly string[];
|
|
446
|
+
/** Validates that a URL uses HTTPS and targets an allowlisted GitHub host. */
|
|
443
447
|
export declare function isAllowedDownloadUrl(urlString: string): boolean;
|
|
448
|
+
//#endregion
|
|
449
|
+
//#region src/luals/download.d.ts
|
|
450
|
+
export declare const DOWNLOAD_TIMEOUT_MS = 120000;
|
|
451
|
+
export declare const MAX_ARCHIVE_SIZE_BYTES: number;
|
|
444
452
|
/**
|
|
445
453
|
* Calculates the SHA-256 hash of a file on disk in bounded memory.
|
|
446
454
|
*/
|
|
@@ -449,6 +457,8 @@ export declare function computeFileSha256(filePath: string): string;
|
|
|
449
457
|
* Enforces a maximum byte count on an asynchronous download stream.
|
|
450
458
|
*/
|
|
451
459
|
export declare function limitDownloadStream(source: AsyncIterable<Uint8Array | Buffer>): AsyncGenerator<Uint8Array | Buffer, void, unknown>;
|
|
460
|
+
/** Reports cumulative transferred bytes while passing a download stream through unchanged. */
|
|
461
|
+
export declare function trackDownloadProgress(source: AsyncIterable<Uint8Array | Buffer>, onProgress: (transferred: number) => void): AsyncGenerator<Uint8Array | Buffer, void, unknown>;
|
|
452
462
|
export interface DownloadOptions {
|
|
453
463
|
reuseExisting?: boolean;
|
|
454
464
|
/** Base directory searched for an installed copy when reusing. Defaults to the system cache. */
|
|
@@ -665,17 +675,27 @@ export type LogLevel = "silent" | "error" | "warn" | "info" | "debug";
|
|
|
665
675
|
export declare const LOG_LEVELS: ReadonlyArray<LogLevel>;
|
|
666
676
|
export declare const LOG_LEVEL_PRIORITY: Record<LogLevel, number>;
|
|
667
677
|
export declare const DEFAULT_LOG_LEVEL: LogLevel;
|
|
678
|
+
/** Stream carrying `info`/`debug` diagnostics; `stderr` keeps stdout machine-readable. */
|
|
679
|
+
export type DiagnosticStream = "stdout" | "stderr";
|
|
668
680
|
/** Validates whether a string corresponds to a recognized log level. */
|
|
669
681
|
export declare function isValidLogLevel(level: string): level is LogLevel;
|
|
670
682
|
/** Parses a string into a valid LogLevel, defaulting to 'warn'. */
|
|
671
683
|
export declare function parseLogLevel(raw?: string | null): LogLevel;
|
|
672
684
|
export declare class Logger {
|
|
673
685
|
private level;
|
|
686
|
+
private diagnosticStream;
|
|
674
687
|
constructor(initialLevel?: LogLevel);
|
|
675
688
|
/** Sets the active minimum logging level. */
|
|
676
689
|
setLevel(level: LogLevel): void;
|
|
677
690
|
/** Returns the current active log level. */
|
|
678
691
|
getLevel(): LogLevel;
|
|
692
|
+
/**
|
|
693
|
+
* Selects the stream used by `info`/`debug`. Machine-readable formats switch this to
|
|
694
|
+
* `stderr`, so a report on stdout is never interleaved with diagnostic lines.
|
|
695
|
+
*/
|
|
696
|
+
setDiagnosticStream(stream: DiagnosticStream): void;
|
|
697
|
+
/** Returns the stream used by `info`/`debug`. */
|
|
698
|
+
getDiagnosticStream(): DiagnosticStream;
|
|
679
699
|
/** Checks if a message at the specified level should be emitted. */
|
|
680
700
|
isEnabledFor(level: LogLevel): boolean;
|
|
681
701
|
/** Whether command results should be written; only `silent` disables them. */
|
|
@@ -684,10 +704,12 @@ export declare class Logger {
|
|
|
684
704
|
error(...args: unknown[]): void;
|
|
685
705
|
/** Logs a warning-level message to stderr. */
|
|
686
706
|
warn(...args: unknown[]): void;
|
|
687
|
-
/** Logs an informational message to stdout. */
|
|
707
|
+
/** Logs an informational message to stdout, or to stderr when stdout carries a report. */
|
|
688
708
|
info(...args: unknown[]): void;
|
|
689
|
-
/** Logs a debug-level diagnostic message to stdout. */
|
|
709
|
+
/** Logs a debug-level diagnostic message to stdout, or to stderr when stdout carries a report. */
|
|
690
710
|
debug(...args: unknown[]): void;
|
|
711
|
+
/** Writes an `info`/`debug` diagnostic on the configured stream. */
|
|
712
|
+
private emitDiagnostic;
|
|
691
713
|
}
|
|
692
714
|
export declare const logger: Logger;
|
|
693
715
|
//#endregion
|
|
@@ -797,5 +819,63 @@ export interface ResolvedDependencyRealms {
|
|
|
797
819
|
*/
|
|
798
820
|
export declare function resolvePackageDependencies(root: string, userConfig: LuaRCConfig, cliDeps?: string[]): ResolvedDependencyRealms;
|
|
799
821
|
//#endregion
|
|
822
|
+
//#region src/terminal-progress.d.ts
|
|
823
|
+
/** Minimum delay between two terminal redraws (about ten frames per second). */
|
|
824
|
+
export declare const PROGRESS_THROTTLE_MS = 100;
|
|
825
|
+
/** Braille frames cycled while an indeterminate operation runs. */
|
|
826
|
+
export declare const SPINNER_FRAMES: readonly string[];
|
|
827
|
+
/** Fractions of a transfer logged as milestones when no terminal can be redrawn. */
|
|
828
|
+
export declare const PROGRESS_MILESTONES: readonly number[];
|
|
829
|
+
/** Redraw policy: `auto` follows terminal detection, `off` forces log milestones. */
|
|
830
|
+
export type ProgressMode = "auto" | "off";
|
|
831
|
+
/** Terminal stream receiving progress frames, mirroring the parts of `tty.WriteStream` used. */
|
|
832
|
+
export interface ProgressStream {
|
|
833
|
+
write(chunk: string): unknown;
|
|
834
|
+
columns?: number | undefined;
|
|
835
|
+
isTTY?: boolean | undefined;
|
|
836
|
+
}
|
|
837
|
+
/** Options shared by progress bars and spinners. */
|
|
838
|
+
export interface ProgressOptions {
|
|
839
|
+
label: string;
|
|
840
|
+
total?: number | undefined;
|
|
841
|
+
stream?: ProgressStream | undefined;
|
|
842
|
+
interactive?: boolean | undefined;
|
|
843
|
+
announce?: boolean | undefined;
|
|
844
|
+
now?: (() => number) | undefined;
|
|
845
|
+
throttleMs?: number | undefined;
|
|
846
|
+
}
|
|
847
|
+
export type ProgressBarOptions = ProgressOptions;
|
|
848
|
+
/** Handle to a running byte progress bar. */
|
|
849
|
+
export interface ProgressBarHandle {
|
|
850
|
+
update(transferred: number, total?: number): void;
|
|
851
|
+
finish(message?: string): void;
|
|
852
|
+
fail(message?: string): void;
|
|
853
|
+
}
|
|
854
|
+
/** Handle to a running indeterminate spinner. */
|
|
855
|
+
export interface SpinnerHandle {
|
|
856
|
+
start(): void;
|
|
857
|
+
tick(): void;
|
|
858
|
+
updateText(label: string): void;
|
|
859
|
+
stop(message?: string): void;
|
|
860
|
+
fail(message?: string): void;
|
|
861
|
+
}
|
|
862
|
+
/** Sets the redraw policy used by every progress display created afterwards. */
|
|
863
|
+
export declare function setProgressMode(mode: ProgressMode): void;
|
|
864
|
+
/** Returns the current redraw policy. */
|
|
865
|
+
export declare function getProgressMode(): ProgressMode;
|
|
866
|
+
/**
|
|
867
|
+
* Returns whether dynamic redrawing is allowed for the given environment and terminal.
|
|
868
|
+
* Non-interactive environments get single-line milestones instead of carriage returns.
|
|
869
|
+
*/
|
|
870
|
+
export declare function isProgressInteractive(env?: NodeJS.ProcessEnv, isTTY?: boolean | undefined): boolean;
|
|
871
|
+
/** Restores the cursor and abandons the active progress line; safe to call at any time. */
|
|
872
|
+
export declare function restoreTerminal(): void;
|
|
873
|
+
/** Formats a completed transfer as size, duration and average speed. */
|
|
874
|
+
export declare function formatTransferSummary(bytes: number, elapsedMs: number): string;
|
|
875
|
+
/** Creates a byte progress bar; without a terminal it logs start, milestones and completion. */
|
|
876
|
+
export declare function createProgressBar(options: ProgressBarOptions): ProgressBarHandle;
|
|
877
|
+
/** Creates an indeterminate spinner driven by a timer and by manual ticks from sync loops. */
|
|
878
|
+
export declare function createSpinner(options: ProgressOptions): SpinnerHandle;
|
|
879
|
+
//#endregion
|
|
800
880
|
export { CreateProgramOptions, type DerivedRealmAnnotations, type RealmPassName, collectIgnorePatterns, createProgram, isDirectExecution, runCLI };
|
|
801
881
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":["_$env_paths0.Paths"],"sources":["../src/types.ts","../src/config.ts","../src/annotations-realms.ts","../src/realms.ts","../src/luals/version.ts","../src/luals/platform.ts","../src/luals/cache.ts","../src/luals/validation.ts","../src/luals/download.ts","../src/luals/files.ts","../src/luals/runner.ts","../src/reporter.ts","../node_modules/env-paths/index.d.ts","../src/paths.ts","../src/annotations-metadata.ts","../src/annotations-download.ts","../src/annotations.ts","../src/logger.ts","../src/errors.ts","../src/cache-status.ts","../src/target-resolver.ts","../src/deps.ts"],"x_google_ignoreList":[
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":["_$env_paths0.Paths"],"sources":["../src/types.ts","../src/config.ts","../src/annotations-realms.ts","../src/realms.ts","../src/luals/version.ts","../src/luals/platform.ts","../src/luals/cache.ts","../src/luals/validation.ts","../src/download-guard.ts","../src/luals/download.ts","../src/luals/files.ts","../src/luals/runner.ts","../src/reporter.ts","../node_modules/env-paths/index.d.ts","../src/paths.ts","../src/annotations-metadata.ts","../src/annotations-download.ts","../src/annotations.ts","../src/logger.ts","../src/errors.ts","../src/cache-status.ts","../src/target-resolver.ts","../src/deps.ts","../src/terminal-progress.ts"],"x_google_ignoreList":[13],"mappings":";;YAGY;YACA;iBAEK;EACf;IACE;IACA;;EAEF;IACE;IACA;;;iBAIa;EACf,OAAO;EACP,UAAU;EACV;EACA;EACA;;YAGU,mBAAmB,eAAe;iBAE7B;;EAEf;;EAEA;EACA,aAAa;EACb;EACA;EACA;EACA;EACA;EACA;;EAEA;;iBAGe;EACf;EACA;EACA;EACA;EACA;EACA;EACA,aAAa;;;YAIH;;iBAGK;;EAEf,SAAS,eAAe;;EAExB;GACC;;iBAGc;EACf;EACA;IACE;IACA;IACA,UAAU;KACT;;EAEH;IACE;IACA;IACA;KACC;;EAEH;IACE;KACC;;EAEH;IACE;IACA;IACA;IACA,WAAW;IACX,mBAAmB;KAClB;;EAEH,QAAQ;GACP;;;;;;wBAOa,cAAc;;;;;;wBCpFd;;wBAYA;;;;;wBAmBA;;wBAKA;;;;wBAQA,kBAAkB;;wBAMlB,WAAW,aAAa,eAAe;;wBAcvC,eAAe,mBAAmB;;;;;;;;;wBAgClC,qBAAqB;iBAQpB;EACf;EACA;;;;;;;;qBASW,8BAA8B;;;;;;;;;;;wBA2E3B,aACd,MAAM,aACN,WAAU,aACV,0BACA,UAAU,qBACT;iBA0Jc;EACf;EACA;EACA;EACA;;;;;;;wBAQc,eAAe,uBAAuB,4BAA4B;;wBAmBlE,gB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BACC;;;;qBCvCU;;qBAEA;;qBAEA;;YAGD;;iBAGK;EACf,MAAM;EACN;EACA;;;iBAIe;EACf;EACA;EACA,SAAS;EACT;EACA;EACA;EACA;;YAGU,qBAAqB;;iBAGhB;EACf,OAAO,qBAAqB;EAC5B,OAAO;EACP,KAAK;;;iBAIU;EACf;EACA;EACA,WAAW;EACX,KAAK;EACL,KAAK;;;wBA8BS,gBAAgB,MAAM;;wBAKtB,mBAAmB;;;;;wBAuBnB,sBACd,MAAK,OAAO,YACZ;;wBA8Cc;;wBA+HA,sBAAsB,eAAe;;wBA8CrC,kBAAkB,SAAS,qBAAqB;;wBAwDhD,cAAc,SAAS,kBAAkB"}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { ALLOWED_DOWNLOAD_DOMAINS, ANNOTATIONS_FILENAME, AnnotationsError, CacheError, ConfigError, DEFAULT_LOG_LEVEL, DEFAULT_LUALS_VERSION, DEFAULT_REALM_MAPPINGS, DOCGEN_BRANCH, DOCGEN_REPO, DOWNLOAD_TIMEOUT_MS, FALLBACK_LUALS_VERSION, GITHUB_COMMITS_API, LOG_LEVELS, LOG_LEVEL_PRIORITY, LUALS_METADATA_FILENAME, Logger, LuaLSError, MAX_ANNOTATIONS_SIZE_BYTES, MAX_ARCHIVE_MEMBER_COUNT, MAX_ARCHIVE_SIZE_BYTES, MAX_COMMIT_JSON_SIZE_BYTES, MAX_DECOMPRESSED_SIZE_BYTES, METADATA_FILENAME, MIN_ANNOTATIONS_SIZE_BYTES, MIN_DOWNLOADED_BINARY_SIZE_BYTES, NanosLintError, RAW_ANNOTATIONS_URL, VALID_LUALS_DIAGNOSTIC_CODES, assertValidLuaLSBinary, buildWorkspaceConfig, cleanCache, cleanupOldCachedLuaLSVersions, collectDeps, collectIgnorePatterns, collectRealmFiles, computeFileSha256, computeUnrequestedExclusions, countCheckedFiles, createProgram, deriveRealmAnnotationFiles, downloadAndCacheAnnotations, downloadAndExtractLuaLS, escapePowerShellSingleQuote, fetchLatestCommitId, fetchLatestLuaLSVersionFromGitHub, fetchRawAnnotationsContent, fileUriToPath, filterReportByTargetPaths, findCommonAncestorDirectory, findExistingLuaLSDir, findProjectRoot, formatBytes, formatCacheStatusPretty, formatGitHubAnnotations, formatPretty, formatProblemSummary, formatReport, formatSeverityBadge, getAnnotationsCacheDir, getAnnotationsMetadataFilePath, getBaseLuaLSCacheDir, getCacheDir, getCacheStatus, getCachedAnnotationsFilePath, getCanonicalPath, getColors, getDefaultAnnotationsPath, getDefaultTemplatePath, getDefinitionsDir, getDirectorySize, getIsoWeek, getLuaLSMetadataPath, getPackageRoot, getPlatformInfo, getRawAnnotationsUrl, getTarBinary, getTodayDateString, initWorkspace, inspectZipMembers, isAllowedDownloadUrl, isAnnotationsValid, isBinaryRunnable, isBinaryValid, isDirectExecution, isFilesystemRoot, isGzipArchive, isValidLogLevel, isZipArchive, limitDownloadStream, listCachedLuaLSVersionDirs, listCachedLuaLSVersions, listCheckedFiles, loadConfigFile, loadUserConfig, logger, matchesTargetPaths, mergeConfigs, parseJsonc, parseLogLevel, parseTarTvSize, planRealmCheck, pluralize, readAnnotationsMetadata, readLuaLSMetadata, resolveAnnotations, resolveCheckTargets, resolveLatestLuaLSVersion, resolveLuaLSBinary, resolveLuaLSVersion, resolvePackageDependencies, resolveRealmMappings, resolveWorkspaceConfig, runCLI, runLuaLSCheck, runRealmAwareCheck, sanitizeLuaLSVersion, shouldEnableColor, splitAnnotationsByRealm, stripJsonComments, stripTrailingSlashes, systemPaths, updateLastCheckedDate, validateArchiveMembers, writeLuaLSMetadata, writeTempConfig };
|
|
1
|
+
import { $ as DOWNLOAD_TIMEOUT_MS, $t as getDefaultAnnotationsPath, A as formatProblemSummary, At as DEFAULT_LUALS_VERSION, B as resolvePackageDependencies, Bt as PROGRESS_MILESTONES, C as getCachedAnnotationsFilePath, Cn as DEFAULT_LOG_LEVEL, Ct as isBinaryRunnable, D as updateLastCheckedDate, Dn as isValidLogLevel, Dt as parseTarTvSize, E as readAnnotationsMetadata, En as Logger, Et as isZipArchive, F as shouldEnableColor, Ft as sanitizeLuaLSVersion, G as computeUnrequestedExclusions, Gt as formatTransferSummary, H as runLuaLSCheck, Ht as SPINNER_FRAMES, I as collectRealmFiles, It as ALLOWED_DOWNLOAD_DOMAINS, J as findProjectRoot, Jt as restoreTerminal, K as filterReportByTargetPaths, Kt as getProgressMode, L as planRealmCheck, Lt as isAllowedDownloadUrl, M as formatSeverityBadge, Mt as fetchLatestLuaLSVersionFromGitHub, N as getColors, Nt as resolveLatestLuaLSVersion, O as formatGitHubAnnotations, On as logger, Ot as validateArchiveMembers, P as pluralize, Pt as resolveLuaLSVersion, Q as resolveCheckTargets, Qt as buildWorkspaceConfig, R as runRealmAwareCheck, Rt as deriveRealmAnnotationFiles, S as getAnnotationsMetadataFilePath, Sn as fileUriToPath, St as inspectZipMembers, T as isAnnotationsValid, Tn as LOG_LEVEL_PRIORITY, Tt as isGzipArchive, U as countCheckedFiles, Ut as createProgressBar, V as resolveLuaLSBinary, Vt as PROGRESS_THROTTLE_MS, W as listCheckedFiles, Wt as createSpinner, X as isFilesystemRoot, Xt as DEFAULT_REALM_MAPPINGS, Y as getCanonicalPath, Yt as setProgressMode, Z as matchesTargetPaths, Zt as VALID_LUALS_DIAGNOSTIC_CODES, _ as MAX_ANNOTATIONS_SIZE_BYTES, _n as NanosLintError, _t as MAX_DECOMPRESSED_SIZE_BYTES, a as formatCacheStatusPretty, an as loadUserConfig, at as LUALS_METADATA_FILENAME, b as MIN_ANNOTATIONS_SIZE_BYTES, bn as getDirectorySize, bt as escapePowerShellSingleQuote, c as DOCGEN_BRANCH, cn as resolveRealmMappings, ct as getBaseLuaLSCacheDir, d as RAW_ANNOTATIONS_URL, dn as stripTrailingSlashes, dt as getLuaLSMetadataPath, en as getDefaultTemplatePath, et as MAX_ARCHIVE_SIZE_BYTES, f as downloadAndCacheAnnotations, fn as writeTempConfig, ft as listCachedLuaLSVersionDirs, g as ANNOTATIONS_FILENAME, gn as LuaLSError, gt as MAX_ARCHIVE_MEMBER_COUNT, h as getRawAnnotationsUrl, hn as ConfigError, ht as writeLuaLSMetadata, i as runCLI, in as loadConfigFile, it as trackDownloadProgress, j as formatReport, jt as FALLBACK_LUALS_VERSION, k as formatPretty, kn as parseLogLevel, kt as getPlatformInfo, l as DOCGEN_REPO, ln as resolveWorkspaceConfig, lt as getCacheDir, m as fetchRawAnnotationsContent, mn as CacheError, mt as readLuaLSMetadata, n as createProgram, nn as getPackageRoot, nt as downloadAndExtractLuaLS, o as getCacheStatus, on as mergeConfigs, ot as cleanupOldCachedLuaLSVersions, p as fetchLatestCommitId, pn as AnnotationsError, pt as listCachedLuaLSVersions, q as findCommonAncestorDirectory, qt as isProgressInteractive, r as isDirectExecution, rn as initWorkspace, rt as limitDownloadStream, s as resolveAnnotations, sn as parseJsonc, st as findExistingLuaLSDir, t as collectIgnorePatterns, tn as getDefinitionsDir, tt as computeFileSha256, u as GITHUB_COMMITS_API, un as stripJsonComments, ut as getIsoWeek, v as MAX_COMMIT_JSON_SIZE_BYTES, vn as cleanCache, vt as MIN_DOWNLOADED_BINARY_SIZE_BYTES, w as getTodayDateString, wn as LOG_LEVELS, wt as isBinaryValid, x as getAnnotationsCacheDir, xn as systemPaths, xt as getTarBinary, y as METADATA_FILENAME, yn as formatBytes, yt as assertValidLuaLSBinary, z as collectDeps, zt as splitAnnotationsByRealm } from "./cli-CeNxOiST.js";
|
|
2
|
+
export { ALLOWED_DOWNLOAD_DOMAINS, ANNOTATIONS_FILENAME, AnnotationsError, CacheError, ConfigError, DEFAULT_LOG_LEVEL, DEFAULT_LUALS_VERSION, DEFAULT_REALM_MAPPINGS, DOCGEN_BRANCH, DOCGEN_REPO, DOWNLOAD_TIMEOUT_MS, FALLBACK_LUALS_VERSION, GITHUB_COMMITS_API, LOG_LEVELS, LOG_LEVEL_PRIORITY, LUALS_METADATA_FILENAME, Logger, LuaLSError, MAX_ANNOTATIONS_SIZE_BYTES, MAX_ARCHIVE_MEMBER_COUNT, MAX_ARCHIVE_SIZE_BYTES, MAX_COMMIT_JSON_SIZE_BYTES, MAX_DECOMPRESSED_SIZE_BYTES, METADATA_FILENAME, MIN_ANNOTATIONS_SIZE_BYTES, MIN_DOWNLOADED_BINARY_SIZE_BYTES, NanosLintError, PROGRESS_MILESTONES, PROGRESS_THROTTLE_MS, RAW_ANNOTATIONS_URL, SPINNER_FRAMES, VALID_LUALS_DIAGNOSTIC_CODES, assertValidLuaLSBinary, buildWorkspaceConfig, cleanCache, cleanupOldCachedLuaLSVersions, collectDeps, collectIgnorePatterns, collectRealmFiles, computeFileSha256, computeUnrequestedExclusions, countCheckedFiles, createProgram, createProgressBar, createSpinner, deriveRealmAnnotationFiles, downloadAndCacheAnnotations, downloadAndExtractLuaLS, escapePowerShellSingleQuote, fetchLatestCommitId, fetchLatestLuaLSVersionFromGitHub, fetchRawAnnotationsContent, fileUriToPath, filterReportByTargetPaths, findCommonAncestorDirectory, findExistingLuaLSDir, findProjectRoot, formatBytes, formatCacheStatusPretty, formatGitHubAnnotations, formatPretty, formatProblemSummary, formatReport, formatSeverityBadge, formatTransferSummary, getAnnotationsCacheDir, getAnnotationsMetadataFilePath, getBaseLuaLSCacheDir, getCacheDir, getCacheStatus, getCachedAnnotationsFilePath, getCanonicalPath, getColors, getDefaultAnnotationsPath, getDefaultTemplatePath, getDefinitionsDir, getDirectorySize, getIsoWeek, getLuaLSMetadataPath, getPackageRoot, getPlatformInfo, getProgressMode, getRawAnnotationsUrl, getTarBinary, getTodayDateString, initWorkspace, inspectZipMembers, isAllowedDownloadUrl, isAnnotationsValid, isBinaryRunnable, isBinaryValid, isDirectExecution, isFilesystemRoot, isGzipArchive, isProgressInteractive, isValidLogLevel, isZipArchive, limitDownloadStream, listCachedLuaLSVersionDirs, listCachedLuaLSVersions, listCheckedFiles, loadConfigFile, loadUserConfig, logger, matchesTargetPaths, mergeConfigs, parseJsonc, parseLogLevel, parseTarTvSize, planRealmCheck, pluralize, readAnnotationsMetadata, readLuaLSMetadata, resolveAnnotations, resolveCheckTargets, resolveLatestLuaLSVersion, resolveLuaLSBinary, resolveLuaLSVersion, resolvePackageDependencies, resolveRealmMappings, resolveWorkspaceConfig, restoreTerminal, runCLI, runLuaLSCheck, runRealmAwareCheck, sanitizeLuaLSVersion, setProgressMode, shouldEnableColor, splitAnnotationsByRealm, stripJsonComments, stripTrailingSlashes, systemPaths, trackDownloadProgress, updateLastCheckedDate, validateArchiveMembers, writeLuaLSMetadata, writeTempConfig };
|