reporails-cli 0.0.1__py3-none-any.whl

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.

Potentially problematic release.


This version of reporails-cli might be problematic. Click here for more details.

Files changed (58) hide show
  1. reporails_cli/.env.example +1 -0
  2. reporails_cli/__init__.py +24 -0
  3. reporails_cli/bundled/.semgrepignore +51 -0
  4. reporails_cli/bundled/__init__.py +31 -0
  5. reporails_cli/bundled/capability-patterns.yml +54 -0
  6. reporails_cli/bundled/levels.yml +99 -0
  7. reporails_cli/core/__init__.py +35 -0
  8. reporails_cli/core/agents.py +147 -0
  9. reporails_cli/core/applicability.py +150 -0
  10. reporails_cli/core/bootstrap.py +147 -0
  11. reporails_cli/core/cache.py +352 -0
  12. reporails_cli/core/capability.py +245 -0
  13. reporails_cli/core/discover.py +362 -0
  14. reporails_cli/core/engine.py +177 -0
  15. reporails_cli/core/init.py +309 -0
  16. reporails_cli/core/levels.py +177 -0
  17. reporails_cli/core/models.py +329 -0
  18. reporails_cli/core/opengrep/__init__.py +34 -0
  19. reporails_cli/core/opengrep/runner.py +203 -0
  20. reporails_cli/core/opengrep/semgrepignore.py +39 -0
  21. reporails_cli/core/opengrep/templates.py +138 -0
  22. reporails_cli/core/registry.py +155 -0
  23. reporails_cli/core/sarif.py +181 -0
  24. reporails_cli/core/scorer.py +178 -0
  25. reporails_cli/core/semantic.py +193 -0
  26. reporails_cli/core/utils.py +139 -0
  27. reporails_cli/formatters/__init__.py +19 -0
  28. reporails_cli/formatters/json.py +137 -0
  29. reporails_cli/formatters/mcp.py +68 -0
  30. reporails_cli/formatters/text/__init__.py +32 -0
  31. reporails_cli/formatters/text/box.py +89 -0
  32. reporails_cli/formatters/text/chars.py +42 -0
  33. reporails_cli/formatters/text/compact.py +119 -0
  34. reporails_cli/formatters/text/components.py +117 -0
  35. reporails_cli/formatters/text/full.py +135 -0
  36. reporails_cli/formatters/text/rules.py +50 -0
  37. reporails_cli/formatters/text/violations.py +92 -0
  38. reporails_cli/interfaces/__init__.py +1 -0
  39. reporails_cli/interfaces/cli/__init__.py +7 -0
  40. reporails_cli/interfaces/cli/main.py +352 -0
  41. reporails_cli/interfaces/mcp/__init__.py +5 -0
  42. reporails_cli/interfaces/mcp/server.py +194 -0
  43. reporails_cli/interfaces/mcp/tools.py +136 -0
  44. reporails_cli/py.typed +0 -0
  45. reporails_cli/templates/__init__.py +65 -0
  46. reporails_cli/templates/cli_box.txt +10 -0
  47. reporails_cli/templates/cli_cta.txt +4 -0
  48. reporails_cli/templates/cli_delta.txt +1 -0
  49. reporails_cli/templates/cli_file_header.txt +1 -0
  50. reporails_cli/templates/cli_legend.txt +1 -0
  51. reporails_cli/templates/cli_pending.txt +3 -0
  52. reporails_cli/templates/cli_violation.txt +1 -0
  53. reporails_cli/templates/cli_working.txt +2 -0
  54. reporails_cli-0.0.1.dist-info/METADATA +108 -0
  55. reporails_cli-0.0.1.dist-info/RECORD +58 -0
  56. reporails_cli-0.0.1.dist-info/WHEEL +4 -0
  57. reporails_cli-0.0.1.dist-info/entry_points.txt +3 -0
  58. reporails_cli-0.0.1.dist-info/licenses/LICENSE +201 -0
@@ -0,0 +1,65 @@
1
+ """Template loader for CLI output.
2
+
3
+ Loads and renders text templates for consistent CLI display.
4
+ """
5
+
6
+ from __future__ import annotations
7
+
8
+ from functools import lru_cache
9
+ from importlib.resources import files
10
+ from typing import Any
11
+
12
+
13
+ @lru_cache
14
+ def load_template(name: str) -> str:
15
+ """Load template file by name.
16
+
17
+ Args:
18
+ name: Template filename (e.g., "cli_box.txt")
19
+
20
+ Returns:
21
+ Template content as string
22
+
23
+ Raises:
24
+ FileNotFoundError: If template doesn't exist
25
+ """
26
+ try:
27
+ return files("reporails_cli.templates").joinpath(name).read_text()
28
+ except FileNotFoundError:
29
+ raise FileNotFoundError(f"Template not found: {name}") from None
30
+
31
+
32
+ def render(template_name: str, **kwargs: Any) -> str:
33
+ """Load and render a template with given variables.
34
+
35
+ Args:
36
+ template_name: Template filename
37
+ **kwargs: Variables to substitute
38
+
39
+ Returns:
40
+ Rendered template string
41
+
42
+ Raises:
43
+ KeyError: If required variable is missing
44
+ """
45
+ template = load_template(template_name)
46
+ try:
47
+ return template.format(**kwargs)
48
+ except KeyError as e:
49
+ raise KeyError(f"Missing template variable {e} in {template_name}") from None
50
+
51
+
52
+ def render_conditional(template_name: str, condition: bool, **kwargs: Any) -> str:
53
+ """Render template only if condition is true.
54
+
55
+ Args:
56
+ template_name: Template filename
57
+ condition: Whether to render
58
+ **kwargs: Variables to substitute
59
+
60
+ Returns:
61
+ Rendered template or empty string
62
+ """
63
+ if not condition:
64
+ return ""
65
+ return render(template_name, **kwargs)
@@ -0,0 +1,10 @@
1
+ {top_border}
2
+ {empty_line}
3
+ {score_line}
4
+ {bar_line}
5
+ {empty_line}
6
+ {setup_line}
7
+ {empty_line}
8
+ {summary_line}
9
+ {empty_line}
10
+ {bottom_border}
@@ -0,0 +1,4 @@
1
+ {separator}
2
+ For complete analysis, add reporails MCP to your coding agent:
3
+ claude mcp add reporails -- uv run ails mcp
4
+ {separator}
@@ -0,0 +1 @@
1
+ {score_delta}{level_delta}{violations_delta}
@@ -0,0 +1 @@
1
+ {filepath} ({count} {issue_word})
@@ -0,0 +1 @@
1
+ Legend: {crit}=CRIT {high}=HIGH {med}=MED {low}=LOW
@@ -0,0 +1,3 @@
1
+ Pending semantic evaluation:
2
+ {rule_count} rules across {file_count} files
3
+ Rules: {rule_list}
@@ -0,0 +1 @@
1
+ {icon} {rule_id:<18} :{line:<4} {message}
@@ -0,0 +1,2 @@
1
+ What's working well:
2
+ {items}
@@ -0,0 +1,108 @@
1
+ Metadata-Version: 2.4
2
+ Name: reporails-cli
3
+ Version: 0.0.1
4
+ Summary: Lint and score CLAUDE.md files — MCP-first AI context governance
5
+ Project-URL: Homepage, https://github.com/reporails/cli
6
+ Project-URL: Documentation, https://reporails.dev/docs
7
+ Project-URL: Repository, https://github.com/reporails/cli
8
+ Project-URL: Issues, https://github.com/reporails/cli/issues
9
+ Author: Reporails Team
10
+ License: Apache-2.0
11
+ License-File: LICENSE
12
+ Keywords: ai,claude,claude-code,context,lint,mcp
13
+ Classifier: Development Status :: 3 - Alpha
14
+ Classifier: Environment :: Console
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: License :: OSI Approved :: Apache Software License
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Topic :: Software Development :: Quality Assurance
20
+ Requires-Python: >=3.11
21
+ Requires-Dist: httpx>=0.27.0
22
+ Requires-Dist: mcp>=1.0.0
23
+ Requires-Dist: pydantic>=2.0.0
24
+ Requires-Dist: pyyaml>=6.0.0
25
+ Requires-Dist: rich>=13.0.0
26
+ Requires-Dist: typer>=0.12.0
27
+ Provides-Extra: dev
28
+ Requires-Dist: mypy>=1.8.0; extra == 'dev'
29
+ Requires-Dist: poethepoet>=0.25.0; extra == 'dev'
30
+ Requires-Dist: pytest-cov>=4.0.0; extra == 'dev'
31
+ Requires-Dist: pytest>=8.0.0; extra == 'dev'
32
+ Requires-Dist: ruff>=0.3.0; extra == 'dev'
33
+ Requires-Dist: types-pyyaml>=6.0.0; extra == 'dev'
34
+ Description-Content-Type: text/markdown
35
+
36
+ # Reporails CLI
37
+
38
+ Score your CLAUDE.md files. See what's missing. Improve your AI coding setup.
39
+
40
+ ## Quick Start
41
+ ```bash
42
+ # Check your setup (auto-installs OpenGrep + rules on first run)
43
+ uvx reporails-cli check .
44
+ ```
45
+
46
+ That's it. You'll see:
47
+ ```
48
+ ╔══════════════════════════════════════════════════════════════╗
49
+ ║ SCORE: 8.1 / 10 (partial) | CAPABILITY: Governed (L5) ║
50
+ ║ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░ ║
51
+ ╚══════════════════════════════════════════════════════════════╝
52
+
53
+ Violations:
54
+ CLAUDE.md (7 issues)
55
+ ○ MED C4.no-antipatterns :1 No NEVER or AVOID statements found
56
+ · LOW C12.no-version :1 No version or date marker found
57
+ ...
58
+ ```
59
+
60
+ Fix the issues, run again, watch your score improve.
61
+
62
+ ## What It Checks
63
+
64
+ - **Structure** — File organization, size limits
65
+ - **Content** — Clarity, completeness, anti-patterns
66
+ - **Efficiency** — Token usage, context management
67
+ - **Maintenance** — Versioning, review processes
68
+ - **Governance** — Ownership, security policies
69
+
70
+ ## Capability Levels
71
+
72
+ | Level | Name | What it means |
73
+ |-------|------|---------------|
74
+ | L1 | Absent | No instruction file |
75
+ | L2 | Basic | Has CLAUDE.md |
76
+ | L3 | Structured | Sections, imports |
77
+ | L4 | Abstracted | .claude/rules/ directory |
78
+ | L5 | Governed | Shared files, 3+ components |
79
+ | L6 | Adaptive | Backbone + full governance |
80
+
81
+ ## MCP Integration (for Claude Code)
82
+
83
+ For full semantic analysis, add the MCP server:
84
+ ```bash
85
+ claude mcp add reporails -- uvx reporails-cli ails-mcp
86
+ ```
87
+
88
+ Then ask Claude: "What ails claude?"
89
+
90
+ ## Commands
91
+ ```bash
92
+ ails check . # Score your setup
93
+ ails check . -f json # JSON output (for CI)
94
+ ails check . --strict # Exit 1 if violations (for CI)
95
+ ails map . # Show project structure
96
+ ails map . --save # Generate backbone.yml
97
+ ails explain S1 # Explain a rule
98
+ ```
99
+
100
+ ## Rules
101
+
102
+ Rules are maintained separately at [reporails/rules](https://github.com/reporails/rules).
103
+
104
+ Want to add or improve rules? Contribute there.
105
+
106
+ ## License
107
+
108
+ Apache 2.0
@@ -0,0 +1,58 @@
1
+ reporails_cli/.env.example,sha256=8BcWLBMFqjVXM3ptY_YZnEpEGZmemUULes41nxIpTEc,24
2
+ reporails_cli/__init__.py,sha256=1w51zJNgYFzRiydkRC9F2KZYb4Tp1ovPrr7A755mmHo,378
3
+ reporails_cli/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ reporails_cli/bundled/.semgrepignore,sha256=G4AI86G5sY0egipdyabpu3DdfavGFAiqCpdBSdBae80,540
5
+ reporails_cli/bundled/__init__.py,sha256=VcaIMCYv3ncftNVntbX1vMgV3akki4D9rZTNIagEyiw,891
6
+ reporails_cli/bundled/capability-patterns.yml,sha256=n9d5Ck8nb6rLQpbMHuvo6-ZhegLR7HgEh6RiUAO1R1o,1372
7
+ reporails_cli/bundled/levels.yml,sha256=XVH3gbb8o68xALVcXImAgKxQ8uFzG0OK51dPB2NMNrY,2392
8
+ reporails_cli/core/__init__.py,sha256=XzfWxBO5mvppRRx5quFbazxT7w96c10GZOFMTKgdFt4,595
9
+ reporails_cli/core/agents.py,sha256=rUewpHEnrbo-eGkf6Q_PFwyeJxuO3C0vdZv9f7c3lIk,4260
10
+ reporails_cli/core/applicability.py,sha256=smUejAdtZ8oV3dV4H1HRDBh-zQi9MIqfw7THt6ZVBqU,4654
11
+ reporails_cli/core/bootstrap.py,sha256=7KJDR7NOFdzD2Vz1qjJbYN-DgdwDdh_1Nu-kabn_vLQ,4476
12
+ reporails_cli/core/cache.py,sha256=MF93-b_q73Cb9EtHODJ_diq3MZ8agvj34a5CejbbD8Q,10869
13
+ reporails_cli/core/capability.py,sha256=yY2g1QemDnGQz4uowpoRsjCC1NUofikS7fg3RiWr_6Q,7342
14
+ reporails_cli/core/discover.py,sha256=cqY6E9M2R96WaWulujvTEz5dFoWyECErM4INKirJQXg,11358
15
+ reporails_cli/core/engine.py,sha256=Yh7oZ4gK27vzkWlfGxFbJdIavIvBMUk2SREsRUzNCcU,7157
16
+ reporails_cli/core/init.py,sha256=OSpkUQ_ZPZcualX6GnmRZmuF2hvmD3N3kSoLk_2oMgg,8798
17
+ reporails_cli/core/levels.py,sha256=_3DK0qxUq5GT4gzcqluDzm2P_dFxE9YqcfWWZEzg76c,4856
18
+ reporails_cli/core/models.py,sha256=iZFADIOWML8DMtOLpOth-WMVHg2W19w-_Yd1O_DQPmo,10076
19
+ reporails_cli/core/registry.py,sha256=bJ8_5xOj2d8toq1UainFq83F_YnHKdYjF35OcpPZpZ8,4375
20
+ reporails_cli/core/sarif.py,sha256=g0XZdr7Lz9kRUDanhu4iU7Jpjg9xSLPHLbLUp-P8zic,5125
21
+ reporails_cli/core/scorer.py,sha256=VuFJfodFMFxB75gxqqMdPB255fVL4_b3wRgEDJnGdjE,4828
22
+ reporails_cli/core/semantic.py,sha256=wivGInlRLr90Hv7Efq47eNfmAp3n1sqfNu4LtN7o1Bg,5462
23
+ reporails_cli/core/utils.py,sha256=yyS38hFa8dp4EFamEQIof2eD1tXL1aJVIu5hePaHyeE,3185
24
+ reporails_cli/core/opengrep/__init__.py,sha256=VHSO1yZU4OnCpZB0c9iT8O0MXTLX6aTMOS6jBiGuYvA,773
25
+ reporails_cli/core/opengrep/runner.py,sha256=qqaj3ouh2GUntOwVWuIUSTNPOl0zAATY_D34GDwvQOE,6294
26
+ reporails_cli/core/opengrep/semgrepignore.py,sha256=xtogdXKsJ1A43l4tu4jsH55dBn9HhtH-h6wNGQGzzpI,1057
27
+ reporails_cli/core/opengrep/templates.py,sha256=dBqOiXpJwM1KL9Ov6R-IKfenoU8HBv2hhtW9RmJh8x0,4551
28
+ reporails_cli/formatters/__init__.py,sha256=hcHIBJcBnjeCmKaqkfZfYg4fZpZsL-zNLSDxsaP8HMY,415
29
+ reporails_cli/formatters/json.py,sha256=9dEBKENR_zOabHrKYJBlNXHxf9RkVPQ5avuWyDJhwXw,4467
30
+ reporails_cli/formatters/mcp.py,sha256=Sw-gd_DQOPnLwsN_sQsDVJSgy46ZKC6OU3D4RDQMZY4,1817
31
+ reporails_cli/formatters/text/__init__.py,sha256=f5uUPLPimP3xhhyY68x4n9PulZyvLtAezZRZlM3gXg0,985
32
+ reporails_cli/formatters/text/box.py,sha256=1SF3eqHPPV1kRtxb9679EKVjqtHN1EQcJhYOAcvjg_M,3058
33
+ reporails_cli/formatters/text/chars.py,sha256=CTjyyjjTNWJom7KWiWiwwqqZ-MqEp2zSlxItEhrjzag,1197
34
+ reporails_cli/formatters/text/compact.py,sha256=BEku_FfqG_IQFcjW9QXt-QkalPANYZet3d0LUZwSLOE,4634
35
+ reporails_cli/formatters/text/components.py,sha256=lUryR-Ms6YYa7RUC0LWmtOXFDDoR-47tv7fo7KYh0Ss,3595
36
+ reporails_cli/formatters/text/full.py,sha256=rx1uXUOh667IzEzdWtICwTfoHdXmXxWzojjsdaH73UQ,3990
37
+ reporails_cli/formatters/text/rules.py,sha256=jJE6urFpHXLiaZK_PtMpv2B2ArR-pW5Ws89t2MHuGUQ,1484
38
+ reporails_cli/formatters/text/violations.py,sha256=WOt_SQFL0PaFJTnWWH5uhSuPQ325N4KsxGl_5euETmM,3200
39
+ reporails_cli/interfaces/__init__.py,sha256=SeIUeJhJ-abP-6hzZp-56ruaoP1YaNYkTpuBAiPmJdo,51
40
+ reporails_cli/interfaces/cli/__init__.py,sha256=As2WT4oAUlxnwwJyupeu8o57KRDjNc4NR4Q2V0gpP3w,141
41
+ reporails_cli/interfaces/cli/main.py,sha256=kiOHyT1n0PNEuoYglsi_0pGoQUrty7VHO73oSZuM7P8,11497
42
+ reporails_cli/interfaces/mcp/__init__.py,sha256=t0qPuY3Gkel5uNqTX1n7VThyjuAZ165u8FeJjttDyNU,109
43
+ reporails_cli/interfaces/mcp/server.py,sha256=uVF38NKKhFAJw8USr_-hVgyiZPc5IPrbo8Ks-aTfupM,7759
44
+ reporails_cli/interfaces/mcp/tools.py,sha256=b4S85YyUWEw0yV1075PtkFpWj-Bpcw3J5GKoKBcGvKY,3774
45
+ reporails_cli/templates/__init__.py,sha256=mJVAXYfXhG677p6t5lA2uqSoOM_JyclBhoH3v3PvOuc,1634
46
+ reporails_cli/templates/cli_box.txt,sha256=RROn31q5EvJuymAyFunFh3iqm1BvaxX2C4kZeg5Lfw0,132
47
+ reporails_cli/templates/cli_cta.txt,sha256=hWTVENuHSaHUilAO_x6ydgFPYPmm5I8aJUSJnXmvpoA,132
48
+ reporails_cli/templates/cli_delta.txt,sha256=O5H-GXUt68P7GMfzSorWUktJBjs-cVBV2LXPjIEteEQ,44
49
+ reporails_cli/templates/cli_file_header.txt,sha256=JKppBYx1rBIxGXdwLICxMQZw9Bp8UCHtE2-gW7useq4,35
50
+ reporails_cli/templates/cli_legend.txt,sha256=sAR_Ate9V4G33hJa8y8_17MuqPJWEAQ49biaI_7Nsrk,54
51
+ reporails_cli/templates/cli_pending.txt,sha256=-bY0rfcwywzunivUNCXqzJ53I-o_tCMD2yFAA9Kqkcc,96
52
+ reporails_cli/templates/cli_violation.txt,sha256=T2SEXAf6VitLWan5z6XVFc5rPJwrACdGm_3o2W8s2gU,45
53
+ reporails_cli/templates/cli_working.txt,sha256=yNFdpO9ZZkZnBCFtM8m07Y9uY9TZQNm69NXmtbaNgFA,28
54
+ reporails_cli-0.0.1.dist-info/METADATA,sha256=jL-dcHdeZOpBkdmQ4IsGTyzi6T-COZLoc38MSpGXR0g,3780
55
+ reporails_cli-0.0.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
56
+ reporails_cli-0.0.1.dist-info/entry_points.txt,sha256=XntNeR3F3DYk8UzBe85AqGxJ1Az6Wqe5_7Gs_j5embw,115
57
+ reporails_cli-0.0.1.dist-info/licenses/LICENSE,sha256=3xaCoxrz-e5vocj3WEZaPhzWpXxGSlBixZU7jSNJb84,11349
58
+ reporails_cli-0.0.1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.28.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ ails = reporails_cli.interfaces.cli.main:app
3
+ ails-mcp = reporails_cli.interfaces.mcp.server:main
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 [Gábor Mészáros]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.