quick-gate 0.2.0-alpha.1 → 0.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 +12 -6
- package/package.json +9 -6
- package/schemas/agent-brief.schema.json +1 -1
- package/schemas/failures.schema.json +1 -1
- package/src/cli.js +1 -1
- package/src/env-check.js +1 -1
package/README.md
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
# Quick Gate
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/quick-gate)
|
|
4
|
+
[](LICENSE)
|
|
5
|
+
[](https://nodejs.org)
|
|
6
|
+
|
|
7
|
+
Deterministic quality gate CLI for TypeScript and ESLint projects with bounded auto-repair and explicit escalation evidence. Works with Next.js, React, Vue, Svelte, Angular, or any Node.js project with TypeScript.
|
|
4
8
|
|
|
5
9
|
## Quick Start
|
|
6
10
|
|
|
11
|
+
Requires **Node.js >= 18** and a project with dependencies installed (`npm ci`).
|
|
12
|
+
|
|
7
13
|
```bash
|
|
8
|
-
# From your
|
|
9
|
-
npx quick-gate run --mode canary --changed-files <path
|
|
14
|
+
# From your project directory:
|
|
15
|
+
npx quick-gate run --mode canary --changed-files <path>
|
|
10
16
|
|
|
11
17
|
# Or install globally:
|
|
12
18
|
npm install -g quick-gate
|
|
@@ -22,7 +28,7 @@ quick-gate run --mode canary --changed-files /tmp/changed.txt
|
|
|
22
28
|
|
|
23
29
|
## What It Does
|
|
24
30
|
|
|
25
|
-
Quick Gate runs four deterministic quality gates on your
|
|
31
|
+
Quick Gate runs up to four deterministic quality gates on your project. In **canary** mode (default): lint + typecheck + lighthouse. In **full** mode: all four including build.
|
|
26
32
|
|
|
27
33
|
1. **lint** -- runs your ESLint config
|
|
28
34
|
2. **typecheck** -- runs TypeScript compiler
|
|
@@ -74,7 +80,7 @@ Escalation reason codes: `NO_IMPROVEMENT`, `PATCH_BUDGET_EXCEEDED`, `ARCHITECTUR
|
|
|
74
80
|
|
|
75
81
|
## Model-Assisted Repair (Optional)
|
|
76
82
|
|
|
77
|
-
Requires [Ollama](https://ollama.
|
|
83
|
+
Requires [Ollama](https://ollama.com) installed locally. Without Ollama, Quick Gate still works -- it runs deterministic fixes only and escalates what it can't resolve.
|
|
78
84
|
|
|
79
85
|
With Ollama:
|
|
80
86
|
- **Hint model** (default: `qwen2.5:1.5b`): Generates repair hints
|
|
@@ -111,7 +117,7 @@ jobs:
|
|
|
111
117
|
with:
|
|
112
118
|
fetch-depth: 0
|
|
113
119
|
- run: npm ci
|
|
114
|
-
- uses: roli-lpci/quick-gate/.github/actions/quick-gate@main
|
|
120
|
+
- uses: roli-lpci/quick-gate-js/.github/actions/quick-gate@main
|
|
115
121
|
with:
|
|
116
122
|
mode: canary
|
|
117
123
|
repair: "true"
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "quick-gate",
|
|
3
|
-
"version": "0.2.0
|
|
4
|
-
"description": "Deterministic quality gate CLI for
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Deterministic quality gate CLI for TypeScript and ESLint projects with bounded auto-repair and escalation evidence",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"quick-gate": "src/cli.js"
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"homepage": "https://lpci.ai",
|
|
22
22
|
"repository": {
|
|
23
23
|
"type": "git",
|
|
24
|
-
"url": "git+https://github.com/roli-lpci/quick-gate.git"
|
|
24
|
+
"url": "git+https://github.com/roli-lpci/quick-gate-js.git"
|
|
25
25
|
},
|
|
26
26
|
"bugs": {
|
|
27
|
-
"url": "https://github.com/roli-lpci/quick-gate/issues"
|
|
27
|
+
"url": "https://github.com/roli-lpci/quick-gate-js/issues"
|
|
28
28
|
},
|
|
29
29
|
"keywords": [
|
|
30
30
|
"quality-gate",
|
|
@@ -32,11 +32,14 @@
|
|
|
32
32
|
"lint",
|
|
33
33
|
"typecheck",
|
|
34
34
|
"lighthouse",
|
|
35
|
-
"nextjs",
|
|
36
35
|
"auto-repair",
|
|
37
36
|
"deterministic",
|
|
38
37
|
"eslint",
|
|
39
|
-
"typescript"
|
|
38
|
+
"typescript",
|
|
39
|
+
"nextjs",
|
|
40
|
+
"react",
|
|
41
|
+
"vue",
|
|
42
|
+
"svelte"
|
|
40
43
|
],
|
|
41
44
|
"dependencies": {
|
|
42
45
|
"ajv": "^8.17.1",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://quick-gate
|
|
3
|
+
"$id": "https://raw.githubusercontent.com/roli-lpci/quick-gate-js/main/schemas/agent-brief.schema.json",
|
|
4
4
|
"title": "Quick Gate Agent Brief",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"required": [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://quick-gate
|
|
3
|
+
"$id": "https://raw.githubusercontent.com/roli-lpci/quick-gate-js/main/schemas/failures.schema.json",
|
|
4
4
|
"title": "Quick Gate Failures",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"required": [
|
package/src/cli.js
CHANGED
package/src/env-check.js
CHANGED
|
@@ -30,7 +30,7 @@ export function checkEnvironment({ command }) {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
if (command === 'repair' && !hasOllama()) {
|
|
33
|
-
warnings.push('Ollama not found -- running deterministic fixes only (eslint --fix). Install Ollama for model-assisted repair: https://ollama.
|
|
33
|
+
warnings.push('Ollama not found -- running deterministic fixes only (eslint --fix). Install Ollama for model-assisted repair: https://ollama.com');
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
if (command === 'repair' && !hasRsync()) {
|