nanos-lint 3.0.1 → 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 +85 -17
- package/action.yml +47 -2
- package/dist/{cli-B9EpAClV.js → cli-CeNxOiST.js} +1150 -112
- 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 +153 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/dist/cli-B9EpAClV.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;;;;EA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,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;;EAG9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ED
|
@@ -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
|
@@ -21,7 +21,10 @@ export interface Diagnostic {
|
|
|
21
21
|
}
|
|
22
22
|
export type DiagnosticReport = Record<string, Diagnostic[]>;
|
|
23
23
|
export interface CheckOptions {
|
|
24
|
-
path
|
|
24
|
+
/** Single workspace path or file to check (legacy/convenience option). */
|
|
25
|
+
path?: string;
|
|
26
|
+
/** One or more workspace target paths or files to check. If provided, takes precedence over `path`. */
|
|
27
|
+
paths?: string[];
|
|
25
28
|
checklevel?: DiagnosticSeverity;
|
|
26
29
|
configpath?: string;
|
|
27
30
|
lualsVersion?: string;
|
|
@@ -29,6 +32,8 @@ export interface CheckOptions {
|
|
|
29
32
|
failOnError?: boolean;
|
|
30
33
|
lualsBin?: string;
|
|
31
34
|
ignore?: string[];
|
|
35
|
+
/** External package dependency directories or Lua files. */
|
|
36
|
+
deps?: string[];
|
|
32
37
|
}
|
|
33
38
|
export interface CheckResult {
|
|
34
39
|
passed: boolean;
|
|
@@ -45,6 +50,8 @@ export type RealmName = "client" | "server" | "shared" | "global";
|
|
|
45
50
|
export interface NanosConfig {
|
|
46
51
|
/** Maps glob patterns (relative to the checked root) to realm names. */
|
|
47
52
|
realms?: Record<string, RealmName>;
|
|
53
|
+
/** Package dependency paths or definition files. */
|
|
54
|
+
deps?: string[];
|
|
48
55
|
[key: string]: unknown;
|
|
49
56
|
}
|
|
50
57
|
export interface LuaRCConfig {
|
|
@@ -115,6 +122,7 @@ export declare function loadConfigFile(filePath: string): LuaRCConfig;
|
|
|
115
122
|
export declare function stripTrailingSlashes(value: string): string;
|
|
116
123
|
export interface MergeConfigOptions {
|
|
117
124
|
cliIgnore?: string[];
|
|
125
|
+
dependencyLibraries?: string[];
|
|
118
126
|
}
|
|
119
127
|
/**
|
|
120
128
|
* Set of recognized diagnostic codes supported by Lua Language Server (LuaLS).
|
|
@@ -137,6 +145,8 @@ export declare function mergeConfigs(base: LuaRCConfig, override?: LuaRCConfig,
|
|
|
137
145
|
export interface ResolveWorkspaceConfigOptions {
|
|
138
146
|
ignore?: string[];
|
|
139
147
|
annotationsPath?: string;
|
|
148
|
+
dependencyLibraries?: string[];
|
|
149
|
+
unrequestedExclusions?: string[];
|
|
140
150
|
}
|
|
141
151
|
/**
|
|
142
152
|
* Loads the user workspace configuration from `--config` or `<workspace>/.luarc.json`,
|
|
@@ -202,7 +212,7 @@ type RealmPassName = "client" | "server" | "shared";
|
|
|
202
212
|
* and a realm-specific class table is dropped from the other realm unless it still has
|
|
203
213
|
* instance members there.
|
|
204
214
|
*/
|
|
205
|
-
export declare function splitAnnotationsByRealm(text: string): {
|
|
215
|
+
export declare function splitAnnotationsByRealm(text: string, onProgress?: () => void): {
|
|
206
216
|
client: string;
|
|
207
217
|
server: string;
|
|
208
218
|
};
|
|
@@ -252,6 +262,8 @@ export interface PlanRealmCheckOptions {
|
|
|
252
262
|
annotationsPath: string;
|
|
253
263
|
customConfigPath?: string;
|
|
254
264
|
ignore?: string[];
|
|
265
|
+
targetPaths?: string[];
|
|
266
|
+
cliDeps?: string[];
|
|
255
267
|
}
|
|
256
268
|
/**
|
|
257
269
|
* Plans realm-aware checking for a target. Returns `null` when a single standard pass is
|
|
@@ -421,14 +433,22 @@ export declare function isBinaryRunnable(binaryPath: string): boolean;
|
|
|
421
433
|
*/
|
|
422
434
|
export declare function assertValidLuaLSBinary(binaryPath: string, source: string): string;
|
|
423
435
|
//#endregion
|
|
424
|
-
//#region src/
|
|
425
|
-
export declare const DOWNLOAD_TIMEOUT_MS = 120000;
|
|
426
|
-
export declare const MAX_ARCHIVE_SIZE_BYTES: number;
|
|
427
|
-
export declare const ALLOWED_DOWNLOAD_DOMAINS: readonly string[];
|
|
436
|
+
//#region src/download-guard.d.ts
|
|
428
437
|
/**
|
|
429
|
-
*
|
|
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.
|
|
430
444
|
*/
|
|
445
|
+
export declare const ALLOWED_DOWNLOAD_DOMAINS: readonly string[];
|
|
446
|
+
/** Validates that a URL uses HTTPS and targets an allowlisted GitHub host. */
|
|
431
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;
|
|
432
452
|
/**
|
|
433
453
|
* Calculates the SHA-256 hash of a file on disk in bounded memory.
|
|
434
454
|
*/
|
|
@@ -437,6 +457,8 @@ export declare function computeFileSha256(filePath: string): string;
|
|
|
437
457
|
* Enforces a maximum byte count on an asynchronous download stream.
|
|
438
458
|
*/
|
|
439
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>;
|
|
440
462
|
export interface DownloadOptions {
|
|
441
463
|
reuseExisting?: boolean;
|
|
442
464
|
/** Base directory searched for an installed copy when reusing. Defaults to the system cache. */
|
|
@@ -457,9 +479,9 @@ export declare function downloadAndExtractLuaLS(version?: string, targetDir?: st
|
|
|
457
479
|
* honoring `workspace.ignoreDir` and `files.exclude` (#27). Absolute paths are returned
|
|
458
480
|
* for single-file targets, and an empty list is returned when the walk fails.
|
|
459
481
|
*/
|
|
460
|
-
export declare function listCheckedFiles(targetPath: string, configPath?: string): string[];
|
|
482
|
+
export declare function listCheckedFiles(targetPath: string, configPath?: string, targetPaths?: string[]): string[];
|
|
461
483
|
/** Counts candidate Lua files within targetPath, taking workspace ignoreDir and files.exclude into account (#27). */
|
|
462
|
-
export declare function countCheckedFiles(targetPath: string, configPath?: string): number;
|
|
484
|
+
export declare function countCheckedFiles(targetPath: string, configPath?: string, targetPaths?: string[]): number;
|
|
463
485
|
//#endregion
|
|
464
486
|
//#region src/luals/runner.d.ts
|
|
465
487
|
export interface ResolveLuaLSOptions {
|
|
@@ -653,17 +675,27 @@ export type LogLevel = "silent" | "error" | "warn" | "info" | "debug";
|
|
|
653
675
|
export declare const LOG_LEVELS: ReadonlyArray<LogLevel>;
|
|
654
676
|
export declare const LOG_LEVEL_PRIORITY: Record<LogLevel, number>;
|
|
655
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";
|
|
656
680
|
/** Validates whether a string corresponds to a recognized log level. */
|
|
657
681
|
export declare function isValidLogLevel(level: string): level is LogLevel;
|
|
658
682
|
/** Parses a string into a valid LogLevel, defaulting to 'warn'. */
|
|
659
683
|
export declare function parseLogLevel(raw?: string | null): LogLevel;
|
|
660
684
|
export declare class Logger {
|
|
661
685
|
private level;
|
|
686
|
+
private diagnosticStream;
|
|
662
687
|
constructor(initialLevel?: LogLevel);
|
|
663
688
|
/** Sets the active minimum logging level. */
|
|
664
689
|
setLevel(level: LogLevel): void;
|
|
665
690
|
/** Returns the current active log level. */
|
|
666
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;
|
|
667
699
|
/** Checks if a message at the specified level should be emitted. */
|
|
668
700
|
isEnabledFor(level: LogLevel): boolean;
|
|
669
701
|
/** Whether command results should be written; only `silent` disables them. */
|
|
@@ -672,10 +704,12 @@ export declare class Logger {
|
|
|
672
704
|
error(...args: unknown[]): void;
|
|
673
705
|
/** Logs a warning-level message to stderr. */
|
|
674
706
|
warn(...args: unknown[]): void;
|
|
675
|
-
/** Logs an informational message to stdout. */
|
|
707
|
+
/** Logs an informational message to stdout, or to stderr when stdout carries a report. */
|
|
676
708
|
info(...args: unknown[]): void;
|
|
677
|
-
/** 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. */
|
|
678
710
|
debug(...args: unknown[]): void;
|
|
711
|
+
/** Writes an `info`/`debug` diagnostic on the configured stream. */
|
|
712
|
+
private emitDiagnostic;
|
|
679
713
|
}
|
|
680
714
|
export declare const logger: Logger;
|
|
681
715
|
//#endregion
|
|
@@ -735,5 +769,113 @@ export declare function getCacheStatus(baseCacheDir?: string): CacheStatusReport
|
|
|
735
769
|
/** Formats a cache status report into human-readable terminal output. */
|
|
736
770
|
export declare function formatCacheStatusPretty(report: CacheStatusReport): string;
|
|
737
771
|
//#endregion
|
|
772
|
+
//#region src/target-resolver.d.ts
|
|
773
|
+
/** Resolves the canonical filesystem path, falling back to original path on failure. */
|
|
774
|
+
export declare function getCanonicalPath(p: string): string;
|
|
775
|
+
/** Determines whether a path points to the root of a filesystem volume. */
|
|
776
|
+
export declare function isFilesystemRoot(dir: string): boolean;
|
|
777
|
+
/**
|
|
778
|
+
* Computes the lowest common ancestor directory for a set of paths.
|
|
779
|
+
* All paths must reside on the same filesystem root or volume.
|
|
780
|
+
*/
|
|
781
|
+
export declare function findCommonAncestorDirectory(paths: string[]): string;
|
|
782
|
+
/**
|
|
783
|
+
* Searches upward from a starting directory to locate an enclosing project root
|
|
784
|
+
* containing `.luarc.json`. Returns the start directory if not found.
|
|
785
|
+
*/
|
|
786
|
+
export declare function findProjectRoot(startDir: string): string;
|
|
787
|
+
/**
|
|
788
|
+
* Computes glob exclusion patterns for directories and files under workspace root
|
|
789
|
+
* that are completely outside the requested target paths.
|
|
790
|
+
*/
|
|
791
|
+
export declare function computeUnrequestedExclusions(root: string, targetPaths: string[]): string[];
|
|
792
|
+
/** Determines whether a workspace-relative file path matches any of the target paths. */
|
|
793
|
+
export declare function matchesTargetPaths(relativePath: string, root: string, targetPaths: string[]): boolean;
|
|
794
|
+
/** Keeps only diagnostics for files that match the requested target paths. */
|
|
795
|
+
export declare function filterReportByTargetPaths(report: DiagnosticReport, root: string, targetPaths: string[]): DiagnosticReport;
|
|
796
|
+
export interface ResolvedCheckTargets {
|
|
797
|
+
rootPath: string;
|
|
798
|
+
targetPaths: string[];
|
|
799
|
+
}
|
|
800
|
+
/** Validates and resolves CLI target paths into a common root directory and target list. */
|
|
801
|
+
export declare function resolveCheckTargets(rawPaths?: string[]): ResolvedCheckTargets;
|
|
802
|
+
//#endregion
|
|
803
|
+
//#region src/deps.d.ts
|
|
804
|
+
/** Accumulates repeatable --dep arguments. */
|
|
805
|
+
export declare function collectDeps(val: string, prev?: string[]): string[];
|
|
806
|
+
export interface ResolvedDependencyRealms {
|
|
807
|
+
/** Libraries to include in server realm passes (Server + Shared folders, or shared files). */
|
|
808
|
+
server: string[];
|
|
809
|
+
/** Libraries to include in client realm passes (Client + Shared folders, or shared files). */
|
|
810
|
+
client: string[];
|
|
811
|
+
/** Libraries to include in shared realm passes (Shared folders, or shared files). */
|
|
812
|
+
shared: string[];
|
|
813
|
+
/** All libraries for a single standard pass (realms disabled). */
|
|
814
|
+
all: string[];
|
|
815
|
+
}
|
|
816
|
+
/**
|
|
817
|
+
* Resolves package dependencies declared in .luarc.json (nanos.deps) or via CLI (--dep),
|
|
818
|
+
* resolving transitive dependencies with cycle detection and partitioning them by realm.
|
|
819
|
+
*/
|
|
820
|
+
export declare function resolvePackageDependencies(root: string, userConfig: LuaRCConfig, cliDeps?: string[]): ResolvedDependencyRealms;
|
|
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
|
|
738
880
|
export { CreateProgramOptions, type DerivedRealmAnnotations, type RealmPassName, collectIgnorePatterns, createProgram, isDirectExecution, runCLI };
|
|
739
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"],"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,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6BAA6B,cAAc;;wBAuF3C,mBACd,sBACA,cACA;;wBAyCc,0BACd,QAAQ,kBACR,cACA,wBACC;iBAsBc;EACf;EACA;;;wBAIc,oBAAoB,sBAAsB;;;;wBC5U1C,YAAY,aAAa;iBAQxB;;EAEf;;EAEA;;EAEA;;EAEA;;;;;;wBAiBc,2BACd,cACA,YAAY,aACZ,qBACC;;;;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, collectIgnorePatterns, collectRealmFiles, computeFileSha256, countCheckedFiles, createProgram, deriveRealmAnnotationFiles, downloadAndCacheAnnotations, downloadAndExtractLuaLS, escapePowerShellSingleQuote, fetchLatestCommitId, fetchLatestLuaLSVersionFromGitHub, fetchRawAnnotationsContent, fileUriToPath, findExistingLuaLSDir, formatBytes, formatCacheStatusPretty, formatGitHubAnnotations, formatPretty, formatProblemSummary, formatReport, formatSeverityBadge, getAnnotationsCacheDir, getAnnotationsMetadataFilePath, getBaseLuaLSCacheDir, getCacheDir, getCacheStatus, getCachedAnnotationsFilePath, getColors, getDefaultAnnotationsPath, getDefaultTemplatePath, getDefinitionsDir, getDirectorySize, getIsoWeek, getLuaLSMetadataPath, getPackageRoot, getPlatformInfo, getRawAnnotationsUrl, getTarBinary, getTodayDateString, initWorkspace, inspectZipMembers, isAllowedDownloadUrl, isAnnotationsValid, isBinaryRunnable, isBinaryValid, isDirectExecution, isGzipArchive, isValidLogLevel, isZipArchive, limitDownloadStream, listCachedLuaLSVersionDirs, listCachedLuaLSVersions, listCheckedFiles, loadConfigFile, loadUserConfig, logger, mergeConfigs, parseJsonc, parseLogLevel, parseTarTvSize, planRealmCheck, pluralize, readAnnotationsMetadata, readLuaLSMetadata, resolveAnnotations, resolveLatestLuaLSVersion, resolveLuaLSBinary, resolveLuaLSVersion, 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 };
|