@kb-labs/review-entry 2.104.0 → 2.106.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/dist/manifest.json +149 -0
- package/package.json +22 -22
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "kb.plugin/3",
|
|
3
|
+
"id": "@kb-labs/review",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"display": {
|
|
6
|
+
"name": "AI Review",
|
|
7
|
+
"description": "AI code review with heuristic engines and LLM",
|
|
8
|
+
"tags": [
|
|
9
|
+
"code-review",
|
|
10
|
+
"linting",
|
|
11
|
+
"ai",
|
|
12
|
+
"quality"
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
"configSection": "review",
|
|
16
|
+
"platform": {
|
|
17
|
+
"requires": [
|
|
18
|
+
"storage",
|
|
19
|
+
"cache"
|
|
20
|
+
],
|
|
21
|
+
"optional": [
|
|
22
|
+
"llm",
|
|
23
|
+
"analytics",
|
|
24
|
+
"logger"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
"cli": {
|
|
28
|
+
"groupMeta": [
|
|
29
|
+
{
|
|
30
|
+
"path": "review",
|
|
31
|
+
"describe": "AI code review"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"commands": [
|
|
35
|
+
{
|
|
36
|
+
"path": "review run",
|
|
37
|
+
"describe": "Run code review analysis",
|
|
38
|
+
"operationType": "execute",
|
|
39
|
+
"longDescription": "Analyzes code using heuristic engines (ESLint, Ruff, etc.) and optionally LLM analyzers. Supports three modes: heuristic (CI, fast), full (local, comprehensive), llm (deep analysis).",
|
|
40
|
+
"handler": "./commands/run.js#default",
|
|
41
|
+
"flags": [
|
|
42
|
+
{
|
|
43
|
+
"name": "mode",
|
|
44
|
+
"type": "string",
|
|
45
|
+
"default": "heuristic",
|
|
46
|
+
"description": "Review mode: heuristic (CI), full (local), llm (deep)",
|
|
47
|
+
"choices": [
|
|
48
|
+
"heuristic",
|
|
49
|
+
"full",
|
|
50
|
+
"llm"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "scope",
|
|
55
|
+
"type": "string",
|
|
56
|
+
"default": "changed",
|
|
57
|
+
"description": "File scope: all, changed (vs main), staged",
|
|
58
|
+
"choices": [
|
|
59
|
+
"all",
|
|
60
|
+
"changed",
|
|
61
|
+
"staged"
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "repos",
|
|
66
|
+
"type": "array",
|
|
67
|
+
"description": "Repository scope (submodule names to include, e.g., --repos kb-labs-core kb-labs-cli)"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "task",
|
|
71
|
+
"type": "string",
|
|
72
|
+
"description": "Task context - describe what the changes are trying to achieve"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "preset",
|
|
76
|
+
"type": "string",
|
|
77
|
+
"description": "Preset ID (e.g., typescript-strict)"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "files",
|
|
81
|
+
"type": "array",
|
|
82
|
+
"description": "File patterns to analyze"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"name": "eslintConfig",
|
|
86
|
+
"type": "string",
|
|
87
|
+
"description": "ESLint config file path"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"name": "json",
|
|
91
|
+
"type": "boolean",
|
|
92
|
+
"default": false,
|
|
93
|
+
"description": "Output JSON"
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
"examples": [
|
|
97
|
+
"kb review run",
|
|
98
|
+
"kb review run --mode=full",
|
|
99
|
+
"kb review run --scope=staged",
|
|
100
|
+
"kb review run --preset=typescript-strict",
|
|
101
|
+
"kb review run --files=\"src/**/*.ts\"",
|
|
102
|
+
"kb review run --json"
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
"permissions": {
|
|
108
|
+
"fs": {
|
|
109
|
+
"read": [
|
|
110
|
+
"**/.git/**",
|
|
111
|
+
"**/.gitignore",
|
|
112
|
+
"**/.gitattributes",
|
|
113
|
+
".kb/**",
|
|
114
|
+
"**/*"
|
|
115
|
+
]
|
|
116
|
+
},
|
|
117
|
+
"env": {
|
|
118
|
+
"read": [
|
|
119
|
+
"HOME",
|
|
120
|
+
"USER",
|
|
121
|
+
"PATH",
|
|
122
|
+
"SHELL",
|
|
123
|
+
"TERM",
|
|
124
|
+
"LANG",
|
|
125
|
+
"LC_ALL",
|
|
126
|
+
"TZ",
|
|
127
|
+
"TMPDIR",
|
|
128
|
+
"GIT_*",
|
|
129
|
+
"SSH_AUTH_SOCK",
|
|
130
|
+
"SSH_AGENT_PID",
|
|
131
|
+
"NODE_ENV",
|
|
132
|
+
"KB_*"
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
"platform": {
|
|
136
|
+
"llm": true,
|
|
137
|
+
"analytics": true,
|
|
138
|
+
"cache": {
|
|
139
|
+
"namespaces": [
|
|
140
|
+
"review:"
|
|
141
|
+
]
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"quotas": {
|
|
145
|
+
"timeoutMs": 600000,
|
|
146
|
+
"memoryMb": 512
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kb-labs/review-entry",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.106.0",
|
|
4
4
|
"description": "CLI commands and manifest for the AI code review plugin",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -16,21 +16,32 @@
|
|
|
16
16
|
"files": [
|
|
17
17
|
"dist"
|
|
18
18
|
],
|
|
19
|
+
"scripts": {
|
|
20
|
+
"build": "tsup",
|
|
21
|
+
"clean": "rimraf dist",
|
|
22
|
+
"dev": "tsup --config tsup.config.ts --watch",
|
|
23
|
+
"lint": "eslint src --ext .ts",
|
|
24
|
+
"lint:fix": "eslint . --fix",
|
|
25
|
+
"test": "vitest run --passWithNoTests",
|
|
26
|
+
"test:cli": "vitest run --config vitest.cli.config.ts --passWithNoTests",
|
|
27
|
+
"test:watch": "vitest",
|
|
28
|
+
"type-check": "tsc --noEmit"
|
|
29
|
+
},
|
|
19
30
|
"dependencies": {
|
|
20
|
-
"
|
|
21
|
-
"@kb-labs/
|
|
22
|
-
"@kb-labs/
|
|
23
|
-
"@kb-labs/
|
|
24
|
-
"
|
|
31
|
+
"@kb-labs/review-contracts": "^2.106.0",
|
|
32
|
+
"@kb-labs/review-core": "^2.106.0",
|
|
33
|
+
"@kb-labs/sdk": "workspace:*",
|
|
34
|
+
"@kb-labs/shared-cli-ui": "^2.106.0",
|
|
35
|
+
"chalk": "^5.3.0"
|
|
25
36
|
},
|
|
26
37
|
"devDependencies": {
|
|
38
|
+
"@kb-labs/devkit": "workspace:*",
|
|
39
|
+
"@kb-labs/shared-testing-e2e": "workspace:*",
|
|
27
40
|
"@types/node": "^24.3.3",
|
|
28
41
|
"rimraf": "^6.0.1",
|
|
29
42
|
"tsup": "^8.5.0",
|
|
30
43
|
"typescript": "^5.6.3",
|
|
31
|
-
"vitest": "^3.2.6"
|
|
32
|
-
"@kb-labs/shared-testing-e2e": "2.104.0",
|
|
33
|
-
"@kb-labs/devkit": "2.104.0"
|
|
44
|
+
"vitest": "^3.2.6"
|
|
34
45
|
},
|
|
35
46
|
"engines": {
|
|
36
47
|
"node": ">=20.0.0",
|
|
@@ -41,16 +52,5 @@
|
|
|
41
52
|
},
|
|
42
53
|
"sideEffects": false,
|
|
43
54
|
"main": "./dist/index.js",
|
|
44
|
-
"types": "./dist/index.d.ts"
|
|
45
|
-
|
|
46
|
-
"build": "tsup",
|
|
47
|
-
"clean": "rimraf dist",
|
|
48
|
-
"dev": "tsup --config tsup.config.ts --watch",
|
|
49
|
-
"lint": "eslint src --ext .ts",
|
|
50
|
-
"lint:fix": "eslint . --fix",
|
|
51
|
-
"test": "vitest run --passWithNoTests",
|
|
52
|
-
"test:cli": "vitest run --config vitest.cli.config.ts --passWithNoTests",
|
|
53
|
-
"test:watch": "vitest",
|
|
54
|
-
"type-check": "tsc --noEmit"
|
|
55
|
-
}
|
|
56
|
-
}
|
|
55
|
+
"types": "./dist/index.d.ts"
|
|
56
|
+
}
|