agentsentinel-cli 0.6.0__tar.gz → 0.7.0__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.
- agentsentinel_cli-0.7.0/.gitignore +41 -0
- {agentsentinel_cli-0.6.0 → agentsentinel_cli-0.7.0}/DOCUMENTATION.md +110 -2
- agentsentinel_cli-0.7.0/LICENSE +185 -0
- agentsentinel_cli-0.7.0/PKG-INFO +412 -0
- agentsentinel_cli-0.7.0/README.md +365 -0
- agentsentinel_cli-0.7.0/agentsentinel_cli/a2a_report.py +236 -0
- agentsentinel_cli-0.7.0/agentsentinel_cli/a2a_rules.py +287 -0
- agentsentinel_cli-0.7.0/agentsentinel_cli/a2a_scanner.py +654 -0
- {agentsentinel_cli-0.6.0 → agentsentinel_cli-0.7.0}/agentsentinel_cli/cli.py +174 -16
- {agentsentinel_cli-0.6.0 → agentsentinel_cli-0.7.0}/agentsentinel_cli/discover.py +5 -1
- agentsentinel_cli-0.7.0/agentsentinel_cli/suppress.py +79 -0
- {agentsentinel_cli-0.6.0 → agentsentinel_cli-0.7.0}/pyproject.toml +7 -5
- agentsentinel_cli-0.6.0/.gitignore +0 -22
- agentsentinel_cli-0.6.0/PKG-INFO +0 -456
- agentsentinel_cli-0.6.0/README.md +0 -412
- {agentsentinel_cli-0.6.0 → agentsentinel_cli-0.7.0}/agentsentinel_cli/__init__.py +0 -0
- {agentsentinel_cli-0.6.0 → agentsentinel_cli-0.7.0}/agentsentinel_cli/agent_mode.py +0 -0
- {agentsentinel_cli-0.6.0 → agentsentinel_cli-0.7.0}/agentsentinel_cli/agent_mode_report.py +0 -0
- {agentsentinel_cli-0.6.0 → agentsentinel_cli-0.7.0}/agentsentinel_cli/ai_probe.py +0 -0
- {agentsentinel_cli-0.6.0 → agentsentinel_cli-0.7.0}/agentsentinel_cli/attacks/__init__.py +0 -0
- {agentsentinel_cli-0.6.0 → agentsentinel_cli-0.7.0}/agentsentinel_cli/attacks/library.py +0 -0
- {agentsentinel_cli-0.6.0 → agentsentinel_cli-0.7.0}/agentsentinel_cli/discover_report.py +0 -0
- {agentsentinel_cli-0.6.0 → agentsentinel_cli-0.7.0}/agentsentinel_cli/fingerprint.py +0 -0
- {agentsentinel_cli-0.6.0 → agentsentinel_cli-0.7.0}/agentsentinel_cli/frameworks.py +0 -0
- {agentsentinel_cli-0.6.0 → agentsentinel_cli-0.7.0}/agentsentinel_cli/inspect.py +0 -0
- {agentsentinel_cli-0.6.0 → agentsentinel_cli-0.7.0}/agentsentinel_cli/inspect_report.py +0 -0
- {agentsentinel_cli-0.6.0 → agentsentinel_cli-0.7.0}/agentsentinel_cli/mcp_client.py +0 -0
- {agentsentinel_cli-0.6.0 → agentsentinel_cli-0.7.0}/agentsentinel_cli/mcp_report.py +0 -0
- {agentsentinel_cli-0.6.0 → agentsentinel_cli-0.7.0}/agentsentinel_cli/mcp_rules.py +0 -0
- {agentsentinel_cli-0.6.0 → agentsentinel_cli-0.7.0}/agentsentinel_cli/probe.py +0 -0
- {agentsentinel_cli-0.6.0 → agentsentinel_cli-0.7.0}/agentsentinel_cli/probe_report.py +0 -0
- {agentsentinel_cli-0.6.0 → agentsentinel_cli-0.7.0}/agentsentinel_cli/report.py +0 -0
- {agentsentinel_cli-0.6.0 → agentsentinel_cli-0.7.0}/agentsentinel_cli/rules.py +0 -0
- {agentsentinel_cli-0.6.0 → agentsentinel_cli-0.7.0}/agentsentinel_cli/scanner.py +0 -0
- {agentsentinel_cli-0.6.0 → agentsentinel_cli-0.7.0}/agentsentinel_cli/secrets.py +0 -0
- {agentsentinel_cli-0.6.0 → agentsentinel_cli-0.7.0}/agentsentinel_cli/secrets_report.py +0 -0
- {agentsentinel_cli-0.6.0 → agentsentinel_cli-0.7.0}/agentsentinel_cli/secrets_rules.py +0 -0
- {agentsentinel_cli-0.6.0 → agentsentinel_cli-0.7.0}/agentsentinel_cli/supply_chain_ai.py +0 -0
- {agentsentinel_cli-0.6.0 → agentsentinel_cli-0.7.0}/agentsentinel_cli/supply_chain_report.py +0 -0
- {agentsentinel_cli-0.6.0 → agentsentinel_cli-0.7.0}/agentsentinel_cli/supply_chain_rules.py +0 -0
- {agentsentinel_cli-0.6.0 → agentsentinel_cli-0.7.0}/agentsentinel_cli/target.py +0 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.pyc
|
|
4
|
+
*.pyo
|
|
5
|
+
*.pyd
|
|
6
|
+
*.egg-info/
|
|
7
|
+
*.egg
|
|
8
|
+
.eggs/
|
|
9
|
+
|
|
10
|
+
# Build & dist
|
|
11
|
+
dist/
|
|
12
|
+
build/
|
|
13
|
+
|
|
14
|
+
# Virtual environments
|
|
15
|
+
.venv/
|
|
16
|
+
venv/
|
|
17
|
+
env/
|
|
18
|
+
|
|
19
|
+
# Testing & coverage
|
|
20
|
+
.coverage
|
|
21
|
+
.coverage.*
|
|
22
|
+
htmlcov/
|
|
23
|
+
.pytest_cache/
|
|
24
|
+
.tox/
|
|
25
|
+
|
|
26
|
+
# Environment & secrets
|
|
27
|
+
.env
|
|
28
|
+
.env.*
|
|
29
|
+
|
|
30
|
+
# Sentinel analyst memory (local state, not for commit)
|
|
31
|
+
.sentinel/
|
|
32
|
+
|
|
33
|
+
# OS
|
|
34
|
+
.DS_Store
|
|
35
|
+
Thumbs.db
|
|
36
|
+
|
|
37
|
+
# Editors
|
|
38
|
+
.idea/
|
|
39
|
+
.vscode/
|
|
40
|
+
*.swp
|
|
41
|
+
~$*
|
|
@@ -20,6 +20,7 @@ No server required. No Docker. Works on any Python agent file or live HTTP endpo
|
|
|
20
20
|
- [sentinel mcp scan](#sentinel-mcp-scan)
|
|
21
21
|
- [sentinel probe](#sentinel-probe)
|
|
22
22
|
- [sentinel ai-probe](#sentinel-ai-probe)
|
|
23
|
+
- [Finding Suppression](#finding-suppression)
|
|
23
24
|
- [Real-World Workflows](#real-world-workflows)
|
|
24
25
|
- [CI/CD Integration](#cicd-integration)
|
|
25
26
|
- [Reference](#reference)
|
|
@@ -119,6 +120,7 @@ TARGET can be a Python file, a directory, or a live HTTP endpoint URL.
|
|
|
119
120
|
| `--model TEXT` | `claude-haiku-4-5-20251001` | Claude model for AI summary |
|
|
120
121
|
| `--auth-header HEADER` | — | HTTP auth header for live endpoints, e.g. `Authorization: Bearer token` |
|
|
121
122
|
| `--fail-on [CRITICAL\|HIGH\|MEDIUM\|LOW]` | — | Exit code 1 if findings reach this severity |
|
|
123
|
+
| `--ignore-rule RULE_ID` | — | Suppress a finding by rule ID. Repeatable. Also reads `.sentinelignore` in the target directory |
|
|
122
124
|
|
|
123
125
|
#### What it shows
|
|
124
126
|
|
|
@@ -155,6 +157,9 @@ sentinel inspect http://my-agent.internal/chat \
|
|
|
155
157
|
# JSON output — pipe into jq, SIEM, dashboards
|
|
156
158
|
sentinel inspect my_agent.py --format json | jq '.fingerprint'
|
|
157
159
|
|
|
160
|
+
# Suppress a known-accepted finding while still gating on CRITICAL
|
|
161
|
+
sentinel inspect my_agent.py --fail-on CRITICAL --ignore-rule DANGEROUS_GRANTS
|
|
162
|
+
|
|
158
163
|
# CI gate — fail if any CRITICAL finding
|
|
159
164
|
sentinel inspect my_agent.py --fail-on CRITICAL
|
|
160
165
|
```
|
|
@@ -220,6 +225,7 @@ TARGET defaults to `.` (current directory, scanned recursively).
|
|
|
220
225
|
|------|---------|-------------|
|
|
221
226
|
| `--format [text\|json]` | `text` | Output format |
|
|
222
227
|
| `--fail-on [CRITICAL\|HIGH\|MEDIUM\|LOW]` | — | Exit code 1 if findings reach this severity |
|
|
228
|
+
| `--ignore-rule RULE_ID` | — | Suppress a finding by rule ID. Repeatable. Also reads `.sentinelignore` in the target directory |
|
|
223
229
|
| `--connect URL` | — | Pull live behavior data from a running AgentSentinel instance |
|
|
224
230
|
| `--api-key TEXT` | `$AGENTSENTINEL_API_KEY` | API key for `--connect` |
|
|
225
231
|
|
|
@@ -268,6 +274,14 @@ sentinel scan my_agent.py --format json
|
|
|
268
274
|
|
|
269
275
|
# Include live behavior data from a running AgentSentinel instance
|
|
270
276
|
sentinel scan my_agent.py --connect http://localhost:9000 --api-key $AGENTSENTINEL_KEY
|
|
277
|
+
|
|
278
|
+
# Suppress a noisy LOW finding and still gate on HIGH
|
|
279
|
+
sentinel scan ./agents/ --fail-on HIGH --ignore-rule MISSING_RATE_LIMIT
|
|
280
|
+
|
|
281
|
+
# Stack multiple suppressions
|
|
282
|
+
sentinel scan ./agents/ --fail-on CRITICAL \
|
|
283
|
+
--ignore-rule MISSING_RATE_LIMIT \
|
|
284
|
+
--ignore-rule TOOL_SPRAWL
|
|
271
285
|
```
|
|
272
286
|
|
|
273
287
|
#### Example output
|
|
@@ -342,6 +356,7 @@ sentinel secrets ~/.claude/projects/ --severity LOW
|
|
|
342
356
|
| `--format [text\|json]` | `text` | Output format |
|
|
343
357
|
| `--fail-on [CRITICAL\|HIGH\|MEDIUM\|LOW]` | — | Exit code 1 if findings reach this severity |
|
|
344
358
|
| `--no-redact` | off | Show full matched values instead of masking them |
|
|
359
|
+
| `--ignore-rule RULE_ID` | — | Suppress a finding by rule ID. Repeatable. Also reads `.sentinelignore` in the target directory |
|
|
345
360
|
|
|
346
361
|
#### Choosing the right scope
|
|
347
362
|
|
|
@@ -597,8 +612,8 @@ Common false positives and how to handle them:
|
|
|
597
612
|
| `SG_UEN` | 9-digit numbers that happen to end in a letter | UENs are common in business documents — confirm the surrounding context |
|
|
598
613
|
|
|
599
614
|
If a finding is a confirmed false positive, it does not affect the finding count for `--fail-on`
|
|
600
|
-
evaluation — you still need to address it
|
|
601
|
-
|
|
615
|
+
evaluation — you still need to address it, suppress it with `--ignore-rule`, or restructure the
|
|
616
|
+
content to remove the match. See [Finding Suppression](#finding-suppression).
|
|
602
617
|
|
|
603
618
|
---
|
|
604
619
|
|
|
@@ -692,6 +707,7 @@ sentinel mcp scan --stdio "CMD" [OPTIONS]
|
|
|
692
707
|
| `--format [text\|json]` | `text` | Output format |
|
|
693
708
|
| `--timeout SECONDS` | `10.0` | Connection timeout |
|
|
694
709
|
| `--fail-on [CRITICAL\|HIGH\|MEDIUM\|LOW]` | — | Exit code 1 if findings reach this severity |
|
|
710
|
+
| `--ignore-rule RULE_ID` | — | Suppress a finding by rule ID. Repeatable. Also reads `.sentinelignore` in the working directory |
|
|
695
711
|
|
|
696
712
|
#### Transport support
|
|
697
713
|
|
|
@@ -740,6 +756,9 @@ sentinel mcp scan http://localhost:3000 --fail-on CRITICAL
|
|
|
740
756
|
|
|
741
757
|
# Longer timeout for slow servers
|
|
742
758
|
sentinel mcp scan http://remote-server.com/mcp --timeout 30
|
|
759
|
+
|
|
760
|
+
# CI gate — suppress a finding accepted at the infrastructure layer
|
|
761
|
+
sentinel mcp scan http://localhost:3000 --fail-on CRITICAL --ignore-rule NO_AUTH
|
|
743
762
|
```
|
|
744
763
|
|
|
745
764
|
#### Example output
|
|
@@ -958,6 +977,87 @@ sentinel ai-probe http://my-agent.com/chat --fail-on CRITICAL
|
|
|
958
977
|
|
|
959
978
|
---
|
|
960
979
|
|
|
980
|
+
## Finding Suppression
|
|
981
|
+
|
|
982
|
+
Use `--ignore-rule` and `.sentinelignore` to suppress specific findings by rule ID. Suppressed findings are excluded from both output display and `--fail-on` evaluation — they never break a CI gate.
|
|
983
|
+
|
|
984
|
+
Supported commands: `sentinel scan`, `sentinel mcp scan`, `sentinel supply-chain`, `sentinel secrets`, `sentinel inspect`.
|
|
985
|
+
|
|
986
|
+
### --ignore-rule flag
|
|
987
|
+
|
|
988
|
+
Suppress one or more rules for a single run. The flag is repeatable.
|
|
989
|
+
|
|
990
|
+
```bash
|
|
991
|
+
# Suppress a single rule
|
|
992
|
+
sentinel scan ./agents/ --fail-on HIGH --ignore-rule MISSING_RATE_LIMIT
|
|
993
|
+
|
|
994
|
+
# Stack multiple suppressions
|
|
995
|
+
sentinel mcp scan http://localhost:3001 --fail-on CRITICAL \
|
|
996
|
+
--ignore-rule NO_AUTH \
|
|
997
|
+
--ignore-rule UNBOUNDED_INPUT
|
|
998
|
+
|
|
999
|
+
# Suppress during secrets scan
|
|
1000
|
+
sentinel secrets . --fail-on HIGH --ignore-rule SG_UEN
|
|
1001
|
+
```
|
|
1002
|
+
|
|
1003
|
+
### .sentinelignore file
|
|
1004
|
+
|
|
1005
|
+
For persistent, project-level suppressions, create a `.sentinelignore` file and commit it to source control. sentinel walks up from the target directory to find it — same discovery pattern as `.gitignore`.
|
|
1006
|
+
|
|
1007
|
+
```
|
|
1008
|
+
# .sentinelignore
|
|
1009
|
+
|
|
1010
|
+
# Comments start with #. Blank lines are ignored.
|
|
1011
|
+
# Rule IDs are case-insensitive.
|
|
1012
|
+
|
|
1013
|
+
MISSING_RATE_LIMIT # rate limiting enforced at API gateway layer
|
|
1014
|
+
SC03_HIDDEN_NETWORK_FIELDS # webhook field is for audit logging — verified safe
|
|
1015
|
+
NO_AUTH # MCP server is behind an authenticated reverse proxy
|
|
1016
|
+
```
|
|
1017
|
+
|
|
1018
|
+
sentinel searches for `.sentinelignore` starting from the target path and walking up to the filesystem root. For URL targets (`sentinel mcp scan`, `sentinel supply-chain`), it searches from the current working directory.
|
|
1019
|
+
|
|
1020
|
+
### Suppression notice
|
|
1021
|
+
|
|
1022
|
+
When findings are suppressed, sentinel prints a dim notice at the end of text output:
|
|
1023
|
+
|
|
1024
|
+
```
|
|
1025
|
+
1 finding suppressed by .sentinelignore / --ignore-rule: MISSING_RATE_LIMIT
|
|
1026
|
+
```
|
|
1027
|
+
|
|
1028
|
+
In JSON output, suppressed findings are absent from the `findings` array. The `--fail-on` threshold is evaluated only against the active (non-suppressed) findings.
|
|
1029
|
+
|
|
1030
|
+
### What to suppress — and what not to
|
|
1031
|
+
|
|
1032
|
+
Suppressions are appropriate for findings where the risk is genuinely accepted at another layer:
|
|
1033
|
+
|
|
1034
|
+
| Scenario | Appropriate suppression |
|
|
1035
|
+
|----------|------------------------|
|
|
1036
|
+
| Rate limiting handled at API gateway | `MISSING_RATE_LIMIT` |
|
|
1037
|
+
| MCP server behind authenticated proxy | `NO_AUTH` |
|
|
1038
|
+
| Known webhook field verified safe | `SC03_HIDDEN_NETWORK_FIELDS` |
|
|
1039
|
+
| Agent description intentionally omitted | `UNDESCRIBED_WRITE_AGENT` |
|
|
1040
|
+
|
|
1041
|
+
Do not suppress CRITICAL findings (`EXFILTRATION_PATH`, `CODE_EXECUTION_GRANT`, `HARDCODED_CREDENTIALS`, `SC01_DESCRIPTION_INJECTION`) without a very specific, documented reason. These represent confirmed active risk paths, not configuration preferences.
|
|
1042
|
+
|
|
1043
|
+
### Incremental CI adoption
|
|
1044
|
+
|
|
1045
|
+
The `.sentinelignore` + `--fail-on` combination is the recommended way to adopt CI gates incrementally:
|
|
1046
|
+
|
|
1047
|
+
```bash
|
|
1048
|
+
# Week 1 — gate only on CRITICAL, suppress anything that isn't actually critical
|
|
1049
|
+
sentinel scan ./agents/ --fail-on CRITICAL
|
|
1050
|
+
|
|
1051
|
+
# Week 2 — raise threshold to HIGH, suppress accepted HIGH findings
|
|
1052
|
+
echo "DANGEROUS_GRANTS" >> .sentinelignore
|
|
1053
|
+
sentinel scan ./agents/ --fail-on HIGH
|
|
1054
|
+
|
|
1055
|
+
# Week 3 — full posture gate, suppressions document accepted risk
|
|
1056
|
+
sentinel scan ./agents/ --fail-on MEDIUM
|
|
1057
|
+
```
|
|
1058
|
+
|
|
1059
|
+
---
|
|
1060
|
+
|
|
961
1061
|
## Real-World Workflows
|
|
962
1062
|
|
|
963
1063
|
### Workflow 1: Unknown agent found in production
|
|
@@ -1121,6 +1221,7 @@ jobs:
|
|
|
1121
1221
|
runs-on: ubuntu-latest
|
|
1122
1222
|
steps:
|
|
1123
1223
|
- uses: actions/checkout@v4
|
|
1224
|
+
# .sentinelignore in the repo root is picked up automatically
|
|
1124
1225
|
|
|
1125
1226
|
- name: Install sentinel
|
|
1126
1227
|
run: pip install "agentsentinel-cli[all]"
|
|
@@ -1146,6 +1247,13 @@ jobs:
|
|
|
1146
1247
|
run: sentinel mcp scan http://localhost:3000 --fail-on CRITICAL
|
|
1147
1248
|
```
|
|
1148
1249
|
|
|
1250
|
+
Add a `.sentinelignore` at the repo root to suppress known-accepted findings without weakening the gate threshold:
|
|
1251
|
+
|
|
1252
|
+
```
|
|
1253
|
+
# .sentinelignore — committed to source control
|
|
1254
|
+
MISSING_RATE_LIMIT # rate limiting handled at infra layer
|
|
1255
|
+
```
|
|
1256
|
+
|
|
1149
1257
|
### GitLab CI
|
|
1150
1258
|
|
|
1151
1259
|
```yaml
|
|
@@ -0,0 +1,185 @@
|
|
|
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 made available under
|
|
36
|
+
the License, as indicated by a copyright notice that is included in
|
|
37
|
+
or attached to the work (an example is provided in the Appendix below).
|
|
38
|
+
|
|
39
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
40
|
+
form, that is based on (or derived from) the Work and for which the
|
|
41
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
42
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
43
|
+
of this License, Derivative Works shall not include works that remain
|
|
44
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
45
|
+
the Work and Derivative Works thereof.
|
|
46
|
+
|
|
47
|
+
"Contribution" shall mean, as submitted to the Licensor for inclusion
|
|
48
|
+
in the Work by the copyright owner or by an individual or Legal Entity
|
|
49
|
+
authorized to submit on behalf of the copyright owner. For the purposes
|
|
50
|
+
of this definition, "submitted" means any form of electronic, verbal,
|
|
51
|
+
or written communication sent to the Licensor or its representatives,
|
|
52
|
+
including but not limited to communication on electronic mailing lists,
|
|
53
|
+
source code control systems, and issue tracking systems that are managed
|
|
54
|
+
by, or on behalf of, the Licensor for the purpose of discussing and
|
|
55
|
+
improving the Work, but excluding communication that is conspicuously
|
|
56
|
+
marked or designated in writing by the copyright owner as "Not a
|
|
57
|
+
Contribution."
|
|
58
|
+
|
|
59
|
+
"Contributor" shall mean Licensor and any Legal Entity on behalf of
|
|
60
|
+
whom a Contribution has been received by the Licensor and included
|
|
61
|
+
within the Work.
|
|
62
|
+
|
|
63
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
64
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
65
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
66
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
67
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
68
|
+
Work and such Derivative Works in Source or Object form.
|
|
69
|
+
|
|
70
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
71
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
72
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
73
|
+
(except as stated in this section) patent license to make, have made,
|
|
74
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
75
|
+
where such license applies only to those patent claims licensable
|
|
76
|
+
by such Contributor that are necessarily infringed by their
|
|
77
|
+
Contribution(s) alone or by the combination of their Contribution(s)
|
|
78
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
79
|
+
institute patent litigation against any entity (including a cross-claim
|
|
80
|
+
or counterclaim in a lawsuit) alleging that the Work or any Contribution
|
|
81
|
+
embodied within the Work constitutes direct or contributory patent
|
|
82
|
+
infringement, then any patent licenses granted to You under this License
|
|
83
|
+
for that Work shall terminate as of the date such litigation is filed.
|
|
84
|
+
|
|
85
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
86
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
87
|
+
modifications, and in Source or Object form, provided that You
|
|
88
|
+
meet the following conditions:
|
|
89
|
+
|
|
90
|
+
(a) You must give any other recipients of the Work or Derivative
|
|
91
|
+
Works a copy of this License; and
|
|
92
|
+
|
|
93
|
+
(b) You must cause any modified files to carry prominent notices
|
|
94
|
+
stating that You changed the files; and
|
|
95
|
+
|
|
96
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
97
|
+
that You distribute, all copyright, patent, trademark, and
|
|
98
|
+
attribution notices from the Source form of the Work,
|
|
99
|
+
excluding those notices that do not pertain to any part of
|
|
100
|
+
the Derivative Works; and
|
|
101
|
+
|
|
102
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
103
|
+
distribution, You must include a readable copy of the
|
|
104
|
+
attribution notices contained within such NOTICE file, in
|
|
105
|
+
at least one of the following places: within a NOTICE text
|
|
106
|
+
file distributed as part of the Derivative Works; within
|
|
107
|
+
the Source form or documentation, if provided along with the
|
|
108
|
+
Derivative Works; or, within a display generated by the
|
|
109
|
+
Derivative Works, if and wherever such third-party notices
|
|
110
|
+
normally appear. The contents of the NOTICE file are for
|
|
111
|
+
informational purposes only and do not modify the License.
|
|
112
|
+
You may add Your own attribution notices within Derivative
|
|
113
|
+
Works that You distribute, alongside or in addition to the
|
|
114
|
+
NOTICE text from the Work, provided that such additional
|
|
115
|
+
attribution notices cannot be construed as modifying the License.
|
|
116
|
+
|
|
117
|
+
You may add Your own license statement for Your modifications and
|
|
118
|
+
may provide additional grant of rights to use, copy, modify, merge,
|
|
119
|
+
publish, distribute, sublicense, and/or sell copies of the
|
|
120
|
+
Derivative Works, as separate terms and conditions for use,
|
|
121
|
+
reproduction, or distribution of Your modifications, or for any
|
|
122
|
+
such Derivative Works as a whole, provided Your use, reproduction,
|
|
123
|
+
and distribution of the Work otherwise complies with the conditions
|
|
124
|
+
stated in this License.
|
|
125
|
+
|
|
126
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
127
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
128
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
129
|
+
this License, without any additional terms or conditions.
|
|
130
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
131
|
+
the terms of any separate license agreement you may have executed
|
|
132
|
+
with Licensor regarding such Contributions.
|
|
133
|
+
|
|
134
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
135
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
136
|
+
except as required for reasonable and customary use in describing the
|
|
137
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
138
|
+
|
|
139
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
140
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
141
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
142
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
143
|
+
implied, including, without limitation, any warranties or conditions
|
|
144
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
145
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
146
|
+
appropriateness of using or reproducing the Work and assume any
|
|
147
|
+
risks associated with Your exercise of permissions under this License.
|
|
148
|
+
|
|
149
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
150
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
151
|
+
unless required by applicable law (such as deliberate and grossly
|
|
152
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
153
|
+
liable to You for damages, including any direct, indirect, special,
|
|
154
|
+
incidental, or exemplary damages of any character arising as a
|
|
155
|
+
result of this License or out of the use or inability to use the
|
|
156
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
157
|
+
work stoppage, computer failure or malfunction, or all other
|
|
158
|
+
commercial damages or losses), even if such Contributor has been
|
|
159
|
+
advised of the possibility of such damages.
|
|
160
|
+
|
|
161
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
162
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
163
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
164
|
+
or other liability obligations and/or rights consistent with this
|
|
165
|
+
License. However, in accepting such obligations, You may offer only
|
|
166
|
+
conditions consistent with this License and for a fee that covers
|
|
167
|
+
the cost of such liability obligations and/or rights consistent with
|
|
168
|
+
this License. However, in accepting such obligations, You may offer only
|
|
169
|
+
conditions consistent with this License.
|
|
170
|
+
|
|
171
|
+
END OF TERMS AND CONDITIONS
|
|
172
|
+
|
|
173
|
+
Copyright 2026 Jayden Aung
|
|
174
|
+
|
|
175
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
176
|
+
you may not use this file except in compliance with the License.
|
|
177
|
+
You may obtain a copy of the License at
|
|
178
|
+
|
|
179
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
180
|
+
|
|
181
|
+
Unless required by applicable law or agreed to in writing, software
|
|
182
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
183
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
184
|
+
See the License for the specific language governing permissions and
|
|
185
|
+
limitations under the License.
|