rcf-cli 1.2.0__tar.gz → 1.2.2__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rcf-cli
3
- Version: 1.2.0
3
+ Version: 1.2.2
4
4
  Summary: A command-line tool for RCF protocol compliance verification.
5
5
  Author-email: Aladdin Aliyev <aladdin@aliyev.site>
6
6
  License: RCF-PL 1.1.1
@@ -30,6 +30,8 @@ pip install rcf-cli
30
30
  - **Project Initialization**: Instantly generate `NOTICE.md` and `.rcfignore` files to protect your project.
31
31
  - **Automated Scanning**: Quickly scan projects for RCF compliance and extract markers.
32
32
  - **Header Validation**: Ensure files have the required `NOTICE: This file is protected under RCF-PL v1.1` header.
33
+ - **RCF-Audit (Premium)**: Generate cryptographically signed compliance reports for enterprise auditing.
34
+
33
35
 
34
36
  ## CLI Usage
35
37
 
@@ -52,6 +54,17 @@ rcf-cli . --format json
52
54
 
53
55
  # Print summary only
54
56
  rcf-cli . --summary
57
+
58
+ ### 3. Generate an RCF-Audit Report (Premium)
59
+
60
+ ```bash
61
+ # Provide license key via flag
62
+ rcf-cli audit . --license-key RCF-AUDIT-XXXX-XXXX
63
+
64
+ # Or use environment variable
65
+ export RCF_LICENSE_KEY=RCF-AUDIT-XXXX-XXXX
66
+ rcf-cli audit .
67
+ ```
55
68
  ```
56
69
 
57
70
  ## Markers Reference
@@ -17,6 +17,8 @@ pip install rcf-cli
17
17
  - **Project Initialization**: Instantly generate `NOTICE.md` and `.rcfignore` files to protect your project.
18
18
  - **Automated Scanning**: Quickly scan projects for RCF compliance and extract markers.
19
19
  - **Header Validation**: Ensure files have the required `NOTICE: This file is protected under RCF-PL v1.1` header.
20
+ - **RCF-Audit (Premium)**: Generate cryptographically signed compliance reports for enterprise auditing.
21
+
20
22
 
21
23
  ## CLI Usage
22
24
 
@@ -39,6 +41,17 @@ rcf-cli . --format json
39
41
 
40
42
  # Print summary only
41
43
  rcf-cli . --summary
44
+
45
+ ### 3. Generate an RCF-Audit Report (Premium)
46
+
47
+ ```bash
48
+ # Provide license key via flag
49
+ rcf-cli audit . --license-key RCF-AUDIT-XXXX-XXXX
50
+
51
+ # Or use environment variable
52
+ export RCF_LICENSE_KEY=RCF-AUDIT-XXXX-XXXX
53
+ rcf-cli audit .
54
+ ```
42
55
  ```
43
56
 
44
57
  ## Markers Reference
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "rcf-cli"
7
- version = "1.2.0"
7
+ version = "1.2.2"
8
8
  authors = [
9
9
  { name="Aladdin Aliyev", email="aladdin@aliyev.site" },
10
10
  ]
@@ -3,6 +3,7 @@ import sys
3
3
  import json
4
4
  import os
5
5
  import hashlib
6
+ import re
6
7
  from datetime import datetime
7
8
  from rcf_cli.scanner import RCFScanner
8
9
 
@@ -44,6 +45,15 @@ For full protocol details, visit: https://rcf.aliyev.site
44
45
  print(f"🎉 RCF Protocol successfully initialized for '{project_name}'.")
45
46
 
46
47
  def audit_project(args):
48
+ license_key = args.license_key or os.environ.get("RCF_LICENSE_KEY")
49
+ uuid_regex = re.compile(r'^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$')
50
+
51
+ if not license_key or not license_key.startswith("RCF-AUDIT-") or not uuid_regex.match(license_key.replace("RCF-AUDIT-", "")):
52
+ print("❌ RCF-PL ERROR: The 'audit' command is a premium feature.")
53
+ print(" Please provide a valid RCF-AUDIT license key via --license-key or RCF_LICENSE_KEY env variable.")
54
+ print(" Visit https://rcf.aliyev.site to obtain a license.")
55
+ sys.exit(1)
56
+
47
57
  scanner = RCFScanner(args.path)
48
58
  results = scanner.scan_directory()
49
59
 
@@ -84,9 +94,10 @@ def main():
84
94
  return
85
95
 
86
96
  if len(sys.argv) > 1 and sys.argv[1] == "audit":
87
- parser = argparse.ArgumentParser(description="Generate an RCF Audit Report")
97
+ parser = argparse.ArgumentParser(description="Generate an RCF Audit Report (Premium Feature)")
88
98
  parser.add_argument("audit", help="Audit command")
89
99
  parser.add_argument("path", nargs="?", default=".", help="Path to audit")
100
+ parser.add_argument("--license-key", help="RCF Audit License Key")
90
101
  args = parser.parse_args()
91
102
  audit_project(args)
92
103
  return
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rcf-cli
3
- Version: 1.2.0
3
+ Version: 1.2.2
4
4
  Summary: A command-line tool for RCF protocol compliance verification.
5
5
  Author-email: Aladdin Aliyev <aladdin@aliyev.site>
6
6
  License: RCF-PL 1.1.1
@@ -30,6 +30,8 @@ pip install rcf-cli
30
30
  - **Project Initialization**: Instantly generate `NOTICE.md` and `.rcfignore` files to protect your project.
31
31
  - **Automated Scanning**: Quickly scan projects for RCF compliance and extract markers.
32
32
  - **Header Validation**: Ensure files have the required `NOTICE: This file is protected under RCF-PL v1.1` header.
33
+ - **RCF-Audit (Premium)**: Generate cryptographically signed compliance reports for enterprise auditing.
34
+
33
35
 
34
36
  ## CLI Usage
35
37
 
@@ -52,6 +54,17 @@ rcf-cli . --format json
52
54
 
53
55
  # Print summary only
54
56
  rcf-cli . --summary
57
+
58
+ ### 3. Generate an RCF-Audit Report (Premium)
59
+
60
+ ```bash
61
+ # Provide license key via flag
62
+ rcf-cli audit . --license-key RCF-AUDIT-XXXX-XXXX
63
+
64
+ # Or use environment variable
65
+ export RCF_LICENSE_KEY=RCF-AUDIT-XXXX-XXXX
66
+ rcf-cli audit .
67
+ ```
55
68
  ```
56
69
 
57
70
  ## Markers Reference
File without changes
File without changes
File without changes
File without changes
File without changes