quick-gate 0.2.0-alpha.2 → 0.2.1

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/LICENSE CHANGED
@@ -175,7 +175,7 @@
175
175
 
176
176
  END OF TERMS AND CONDITIONS
177
177
 
178
- Copyright 2026 Hermes Labs (LPCI)
178
+ Copyright 2026 LPCI Innovations
179
179
 
180
180
  Licensed under the Apache License, Version 2.0 (the "License");
181
181
  you may not use this file except in compliance with the License.
package/README.md CHANGED
@@ -3,15 +3,16 @@
3
3
  [![npm version](https://img.shields.io/npm/v/quick-gate)](https://www.npmjs.com/package/quick-gate)
4
4
  [![License: Apache 2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](LICENSE)
5
5
  [![Node.js >= 18](https://img.shields.io/badge/node-%3E%3D18-brightgreen)](https://nodejs.org)
6
+ [![CI](https://github.com/roli-lpci/quick-gate-js/actions/workflows/ci.yml/badge.svg)](https://github.com/roli-lpci/quick-gate-js/actions/workflows/ci.yml)
6
7
 
7
- Deterministic quality gate CLI for Next.js repositories with bounded auto-repair and explicit escalation evidence.
8
+ 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.
8
9
 
9
10
  ## Quick Start
10
11
 
11
- Requires **Node.js >= 18** and a Next.js project with dependencies installed (`npm ci`).
12
+ Requires **Node.js >= 18** and a project with dependencies installed (`npm ci`).
12
13
 
13
14
  ```bash
14
- # From your Next.js project directory:
15
+ # From your project directory:
15
16
  npx quick-gate run --mode canary --changed-files <path>
16
17
 
17
18
  # Or install globally:
@@ -28,7 +29,7 @@ quick-gate run --mode canary --changed-files /tmp/changed.txt
28
29
 
29
30
  ## What It Does
30
31
 
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.
32
+ 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.
32
33
 
33
34
  1. **lint** -- runs your ESLint config
34
35
  2. **typecheck** -- runs TypeScript compiler
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quick-gate",
3
- "version": "0.2.0-alpha.2",
4
- "description": "Deterministic quality gate CLI for Next.js with bounded auto-repair and escalation evidence",
3
+ "version": "0.2.1",
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"
@@ -11,14 +11,14 @@
11
11
  "schemas/"
12
12
  ],
13
13
  "scripts": {
14
- "test": "node --test 'test/*.test.js'"
14
+ "test": "node --test test/*.test.js"
15
15
  },
16
16
  "engines": {
17
17
  "node": ">=18.0.0"
18
18
  },
19
19
  "license": "Apache-2.0",
20
- "author": "Hermes Labs <lpcisystems@gmail.com> (https://lpci.ai)",
21
- "homepage": "https://lpci.ai",
20
+ "author": "Hermes Labs <lpcisystems@gmail.com> (https://hermes-labs.ai)",
21
+ "homepage": "https://hermes-labs.ai",
22
22
  "repository": {
23
23
  "type": "git",
24
24
  "url": "git+https://github.com/roli-lpci/quick-gate-js.git"
@@ -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",
package/src/cli.js CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env node
2
+ import { createRequire } from 'node:module';
2
3
  import path from 'node:path';
3
4
  import { loadChangedFiles } from './fs-utils.js';
4
5
  import { executeRun } from './run-command.js';
@@ -6,6 +7,9 @@ import { executeSummarize } from './summarize-command.js';
6
7
  import { executeRepair } from './repair-command.js';
7
8
  import { checkEnvironment, hasOllama } from './env-check.js';
8
9
 
10
+ const require = createRequire(import.meta.url);
11
+ const { version } = require('../package.json');
12
+
9
13
  function parseArgs(argv) {
10
14
  const args = {};
11
15
  for (let i = 0; i < argv.length; i += 1) {
@@ -20,7 +24,7 @@ function parseArgs(argv) {
20
24
  }
21
25
 
22
26
  function usage() {
23
- console.log(`Quick Gate v0.2.0-alpha.2
27
+ console.log(`Quick Gate v${version}
24
28
 
25
29
  Commands:
26
30
  quick-gate run --mode canary|full --changed-files <path>