quick-gate 0.2.0-alpha.1 → 0.2.0-alpha.2

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 CHANGED
@@ -1,12 +1,18 @@
1
1
  # Quick Gate
2
2
 
3
+ [![npm version](https://img.shields.io/npm/v/quick-gate)](https://www.npmjs.com/package/quick-gate)
4
+ [![License: Apache 2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](LICENSE)
5
+ [![Node.js >= 18](https://img.shields.io/badge/node-%3E%3D18-brightgreen)](https://nodejs.org)
6
+
3
7
  Deterministic quality gate CLI for Next.js repositories with bounded auto-repair and explicit escalation evidence.
4
8
 
5
9
  ## Quick Start
6
10
 
11
+ Requires **Node.js >= 18** and a Next.js project with dependencies installed (`npm ci`).
12
+
7
13
  ```bash
8
14
  # From your Next.js project directory:
9
- npx quick-gate run --mode canary --changed-files <path-to-changed-files-list>
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 Next.js project:
31
+ Quick Gate runs up to four deterministic quality gates on your Next.js 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.ai) installed locally. Without Ollama, Quick Gate still works -- it runs deterministic fixes only and escalates what it can't resolve.
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,6 +1,6 @@
1
1
  {
2
2
  "name": "quick-gate",
3
- "version": "0.2.0-alpha.1",
3
+ "version": "0.2.0-alpha.2",
4
4
  "description": "Deterministic quality gate CLI for Next.js with bounded auto-repair and escalation evidence",
5
5
  "type": "module",
6
6
  "bin": {
@@ -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",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://quick-gate.dev/schemas/agent-brief.schema.json",
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.dev/schemas/failures.schema.json",
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
@@ -20,7 +20,7 @@ function parseArgs(argv) {
20
20
  }
21
21
 
22
22
  function usage() {
23
- console.log(`Quick Gate v0.2.0-alpha
23
+ console.log(`Quick Gate v0.2.0-alpha.2
24
24
 
25
25
  Commands:
26
26
  quick-gate run --mode canary|full --changed-files <path>
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.ai');
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()) {