korext 0.1.0 → 0.1.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/README.md ADDED
@@ -0,0 +1,88 @@
1
+ # Korext CLI
2
+
3
+ **The Korext Node.js Command Line Interface.**
4
+ Real-time policy enforcement and compliance proof for AI-generated code.
5
+
6
+ [![NPM Version](https://img.shields.io/npm/v/korext)](https://www.npmjs.com/package/korext)
7
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
8
+
9
+ ---
10
+
11
+ ## Installation
12
+
13
+ Install the CLI globally using NPM to access the `korext` command from anywhere:
14
+
15
+ ```bash
16
+ npm install -g korext
17
+ ```
18
+
19
+ ## Authentication
20
+
21
+ Before running analysis, you must authenticate the CLI against your Korext account.
22
+
23
+ ```bash
24
+ # Login via browser (Recommended)
25
+ korext login
26
+
27
+ # Headless CI/CD Login via environment variable
28
+ export KOREXT_API_TOKEN="your_personal_access_token"
29
+ ```
30
+
31
+ ## Commands
32
+
33
+ ### `korext enforce [path]`
34
+ Scans a target directory or file and cross-references it against your active Korext Policy Pack in real-time.
35
+
36
+ ```bash
37
+ # Run against the current directory
38
+ korext enforce .
39
+
40
+ # Run against a specific file
41
+ korext enforce ./src/auth.ts
42
+ ```
43
+
44
+ ### `korext status`
45
+ View your current authentication state, active Cloud storage tier, and active Policy Pack ID.
46
+
47
+ ```bash
48
+ korext status
49
+ ```
50
+
51
+ ### `korext packs list`
52
+ Retrieves and lists all available internal Policy Packs available for your organization.
53
+
54
+ ```bash
55
+ korext packs list
56
+ ```
57
+
58
+ ---
59
+
60
+ ## CI/CD Pipeline Integration
61
+
62
+ The Korext CLI is built to run headless inside GitHub Actions, GitLab CI, and isolated Docker environments. When a violation is detected during an enforcement run (`korext enforce`), the CLI intentionally exits with a non-zero code (`exit 1`) to fail the build automatically.
63
+
64
+ **Example GitHub Action:**
65
+ ```yaml
66
+ name: Korext Policy Pipeline
67
+ on: [push, pull_request]
68
+
69
+ jobs:
70
+ audit:
71
+ runs-on: ubuntu-latest
72
+ steps:
73
+ - uses: actions/checkout@v4
74
+ - uses: actions/setup-node@v4
75
+ with:
76
+ node-version: '20'
77
+
78
+ - name: Install Korext globally
79
+ run: npm install -g korext
80
+
81
+ - name: Korext Enforce
82
+ env:
83
+ KOREXT_API_TOKEN: ${{ secrets.KOREXT_API_TOKEN }}
84
+ run: korext enforce .
85
+ ```
86
+
87
+ ## Need Help?
88
+ Visit the official documentation at [Korext.com](https://www.korext.com) or reach out to your Account Executive for Enterprise Support.
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "korext",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Korext Command Line Interface",
5
5
  "type": "module",
6
6
  "main": "bin/korext.js",