@alint-js/cli 0.5.0 → 0.6.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 +91 -24
- package/dist/bin/index.mjs +1 -1
- package/dist/{cli-ChymU1Wr.mjs → cli-cQihuHqx.mjs} +1930 -1306
- package/dist/index.mjs +1 -1
- package/dist/{server-DgJa6R5l.mjs → server-xx0w7UQL.mjs} +5 -5
- package/package.json +23 -6
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as formatJson, n as formatDiagnostics, r as formatStylish, t as executeCli } from "./cli-cQihuHqx.mjs";
|
|
2
2
|
import { ignorePatternsAIAgents, ignorePatternsBuildOutputs, ignorePatternsCaches, ignorePatternsCommon, ignorePatternsEslintDefaults, ignorePatternsGenerated } from "@alint-js/config";
|
|
3
3
|
import { defineConfig } from "@alint-js/core";
|
|
4
4
|
export { defineConfig, executeCli, formatDiagnostics, formatJson, formatStylish, ignorePatternsAIAgents, ignorePatternsBuildOutputs, ignorePatternsCaches, ignorePatternsCommon, ignorePatternsEslintDefaults, ignorePatternsGenerated };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as createRunSession } from "./cli-cQihuHqx.mjs";
|
|
2
2
|
import { realpath } from "node:fs/promises";
|
|
3
3
|
import { AlintRunCancelledError, AlintRunError } from "@alint-js/core";
|
|
4
|
-
import { join, relative, sep } from "node:path";
|
|
5
4
|
import { errorMessageFrom } from "@moeru/std";
|
|
5
|
+
import { join, relative, sep } from "node:path";
|
|
6
6
|
import { Writable } from "node:stream";
|
|
7
7
|
import { DidChangeWatchedFilesNotification } from "vscode-languageserver";
|
|
8
8
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
@@ -111,7 +111,7 @@ async function createFolderSession(options) {
|
|
|
111
111
|
refreshFile: async (uri) => {
|
|
112
112
|
const filePath = toRunPath(uri, paths);
|
|
113
113
|
if (filePath === void 0) return [];
|
|
114
|
-
const found = groupByUri(await runFromCache(session, {
|
|
114
|
+
const found = groupByUri(await runFromCache(session, { inputs: [filePath] }), paths);
|
|
115
115
|
const changed = /* @__PURE__ */ new Set([...found.keys()]);
|
|
116
116
|
const documentUri = toDocumentUri(filePath, paths);
|
|
117
117
|
if (!found.has(documentUri) && diagnostics.delete(documentUri)) changed.add(documentUri);
|
|
@@ -159,8 +159,8 @@ async function runFromCache(session, options = {}) {
|
|
|
159
159
|
try {
|
|
160
160
|
return await session.run({
|
|
161
161
|
cacheOnly: true,
|
|
162
|
-
|
|
163
|
-
projectTargets: options.
|
|
162
|
+
inputs: options.inputs,
|
|
163
|
+
projectTargets: options.inputs === void 0 ? void 0 : false,
|
|
164
164
|
runner: {
|
|
165
165
|
...session.runner,
|
|
166
166
|
stats: false
|
package/package.json
CHANGED
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alint-js/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.6.0",
|
|
5
|
+
"description": "Agentic code analysis CLI for model-backed lint rules",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/moeru-ai/alint.git",
|
|
10
|
+
"directory": "packages/cli"
|
|
11
|
+
},
|
|
12
|
+
"keywords": [
|
|
13
|
+
"alint",
|
|
14
|
+
"lint",
|
|
15
|
+
"linter",
|
|
16
|
+
"ai",
|
|
17
|
+
"code-analysis",
|
|
18
|
+
"cli"
|
|
19
|
+
],
|
|
5
20
|
"exports": {
|
|
6
21
|
".": {
|
|
7
22
|
"types": "./dist/index.d.mts",
|
|
@@ -21,23 +36,25 @@
|
|
|
21
36
|
"cac": "^7.0.0",
|
|
22
37
|
"cli-spinners": "^3.4.0",
|
|
23
38
|
"date-fns": "^4.4.0",
|
|
39
|
+
"diff": "^9.0.0",
|
|
24
40
|
"fast-string-truncated-width": "^3.0.3",
|
|
25
41
|
"fast-string-width": "^3.0.2",
|
|
26
42
|
"gitignore-fs": "^2.2.3",
|
|
27
43
|
"minimatch": "^10.2.6",
|
|
28
44
|
"pathe": "^2.0.3",
|
|
29
45
|
"table": "^6.9.0",
|
|
46
|
+
"tinyexec": "^1.2.4",
|
|
30
47
|
"tinyrainbow": "^3.1.1",
|
|
31
48
|
"vscode-languageserver": "^10.1.0",
|
|
32
|
-
"@alint-js/config": "0.
|
|
33
|
-
"@alint-js/core": "0.
|
|
34
|
-
"@alint-js/
|
|
49
|
+
"@alint-js/config": "0.6.0",
|
|
50
|
+
"@alint-js/core": "0.6.0",
|
|
51
|
+
"@alint-js/utils": "0.6.0",
|
|
52
|
+
"@alint-js/model-adapter-acp": "0.6.0"
|
|
35
53
|
},
|
|
36
54
|
"devDependencies": {
|
|
37
55
|
"@pnpm/find-workspace-dir": "^1000.1.5",
|
|
38
56
|
"local-pkg": "^1.2.1",
|
|
39
|
-
"mlly": "^1.8.2"
|
|
40
|
-
"tinyexec": "^1.2.4"
|
|
57
|
+
"mlly": "^1.8.2"
|
|
41
58
|
},
|
|
42
59
|
"scripts": {
|
|
43
60
|
"alint": "node ./dist/bin/index.mjs",
|