vanth 1.0.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.
Files changed (74) hide show
  1. vanth-1.0.0/.github/workflows/ci.yml +71 -0
  2. vanth-1.0.0/.gitignore +14 -0
  3. vanth-1.0.0/CHANGELOG.md +144 -0
  4. vanth-1.0.0/LICENSE +201 -0
  5. vanth-1.0.0/PKG-INFO +924 -0
  6. vanth-1.0.0/README.md +893 -0
  7. vanth-1.0.0/build-hooks/bundle_monitor.py +71 -0
  8. vanth-1.0.0/cmd/vanth/main.go +76 -0
  9. vanth-1.0.0/deploy/vanthd.cmd +3 -0
  10. vanth-1.0.0/deploy/vanthd.service +14 -0
  11. vanth-1.0.0/examples/long_job.py +11 -0
  12. vanth-1.0.0/go.mod +38 -0
  13. vanth-1.0.0/go.sum +92 -0
  14. vanth-1.0.0/internal/config/config.go +68 -0
  15. vanth-1.0.0/internal/config/config_test.go +75 -0
  16. vanth-1.0.0/internal/monitor/downsample.go +79 -0
  17. vanth-1.0.0/internal/monitor/downsample_test.go +144 -0
  18. vanth-1.0.0/internal/monitor/e2e_render_test.go +78 -0
  19. vanth-1.0.0/internal/monitor/layout.go +241 -0
  20. vanth-1.0.0/internal/monitor/model.go +768 -0
  21. vanth-1.0.0/internal/monitor/model_test.go +402 -0
  22. vanth-1.0.0/internal/monitor/palette.go +86 -0
  23. vanth-1.0.0/internal/monitor/palette_test.go +95 -0
  24. vanth-1.0.0/internal/monitor/query.go +517 -0
  25. vanth-1.0.0/internal/monitor/query_test.go +359 -0
  26. vanth-1.0.0/internal/monitor/transform.go +323 -0
  27. vanth-1.0.0/internal/monitor/transform_test.go +339 -0
  28. vanth-1.0.0/internal/monitor/types.go +142 -0
  29. vanth-1.0.0/internal/monitor/view.go +1271 -0
  30. vanth-1.0.0/internal/monitor/view_test.go +260 -0
  31. vanth-1.0.0/internal/state/roundtrip_test.go +70 -0
  32. vanth-1.0.0/internal/state/state.go +93 -0
  33. vanth-1.0.0/internal/state/state_test.go +76 -0
  34. vanth-1.0.0/job-monitoring-terminal-charts-scope.md +212 -0
  35. vanth-1.0.0/pyproject.toml +67 -0
  36. vanth-1.0.0/scripts/chaos_matrix.py +577 -0
  37. vanth-1.0.0/scripts/demo_jobs.py +105 -0
  38. vanth-1.0.0/scripts/generate_go_fixture.py +203 -0
  39. vanth-1.0.0/scripts/make_monitor_fixture.py +49 -0
  40. vanth-1.0.0/scripts/real_adapter_smoke.py +143 -0
  41. vanth-1.0.0/scripts/verify_go_write.py +36 -0
  42. vanth-1.0.0/src/vanth/__init__.py +13 -0
  43. vanth-1.0.0/src/vanth/__main__.py +3 -0
  44. vanth-1.0.0/src/vanth/agent_events.py +26 -0
  45. vanth-1.0.0/src/vanth/agent_logger.py +60 -0
  46. vanth-1.0.0/src/vanth/cli.py +273 -0
  47. vanth-1.0.0/src/vanth/client.py +144 -0
  48. vanth-1.0.0/src/vanth/codex_bridge.py +154 -0
  49. vanth-1.0.0/src/vanth/daemon.py +451 -0
  50. vanth-1.0.0/src/vanth/migrations.py +214 -0
  51. vanth-1.0.0/src/vanth/monitor.py +101 -0
  52. vanth-1.0.0/src/vanth/opencode_bridge.py +94 -0
  53. vanth-1.0.0/src/vanth/paths.py +119 -0
  54. vanth-1.0.0/src/vanth/runner.py +142 -0
  55. vanth-1.0.0/src/vanth/runtime_info.py +133 -0
  56. vanth-1.0.0/src/vanth/server.py +1997 -0
  57. vanth-1.0.0/testdata/state/jobs.sqlite +0 -0
  58. vanth-1.0.0/tests/test_agent_features.py +233 -0
  59. vanth-1.0.0/tests/test_agent_logger.py +78 -0
  60. vanth-1.0.0/tests/test_cli.py +148 -0
  61. vanth-1.0.0/tests/test_daemon.py +55 -0
  62. vanth-1.0.0/tests/test_daemon_discovery.py +48 -0
  63. vanth-1.0.0/tests/test_daemon_hardening.py +324 -0
  64. vanth-1.0.0/tests/test_delivery_hardening.py +161 -0
  65. vanth-1.0.0/tests/test_mcp_stdio.py +161 -0
  66. vanth-1.0.0/tests/test_monitor_entry.py +79 -0
  67. vanth-1.0.0/tests/test_opencode_bridge.py +108 -0
  68. vanth-1.0.0/tests/test_release_workloads.py +174 -0
  69. vanth-1.0.0/tests/test_runner_hardening.py +58 -0
  70. vanth-1.0.0/tests/test_server_hardening.py +129 -0
  71. vanth-1.0.0/tests/test_telemetry.py +181 -0
  72. vanth-1.0.0/tests/test_v1_hardening.py +299 -0
  73. vanth-1.0.0/tests/test_vanth.py +460 -0
  74. vanth-1.0.0/uv.lock +819 -0
@@ -0,0 +1,71 @@
1
+ name: Vanth CI
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+
7
+ jobs:
8
+ python:
9
+ strategy:
10
+ fail-fast: false
11
+ matrix:
12
+ os: [ubuntu-latest, windows-latest]
13
+ python: ['3.11', '3.12']
14
+ runs-on: ${{ matrix.os }}
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ - uses: astral-sh/setup-uv@v5
18
+ with:
19
+ python-version: ${{ matrix.python }}
20
+ - uses: actions/setup-go@v5
21
+ with:
22
+ go-version: '1.25'
23
+ - run: uv sync --dev
24
+ - run: uv run pytest -q
25
+ - run: uv run python -m compileall -q src tests examples
26
+ - run: uv build
27
+ - name: Smoke installed wheel
28
+ shell: bash
29
+ run: |
30
+ wheel=$(find dist -maxdepth 1 -name '*.whl' -print -quit)
31
+ test -n "$wheel"
32
+ uv run --isolated --no-project --with "$wheel" python -c "import vanth; print(vanth.__file__)"
33
+ - name: Smoke bundled monitor console script
34
+ shell: bash
35
+ run: |
36
+ wheel=$(find dist -maxdepth 1 -name '*.whl' -print -quit)
37
+ test -n "$wheel"
38
+ uv run --isolated --no-project --with "$wheel" vanth-monitor --version
39
+
40
+ go:
41
+ strategy:
42
+ fail-fast: false
43
+ matrix:
44
+ os: [ubuntu-latest, windows-latest]
45
+ runs-on: ${{ matrix.os }}
46
+ steps:
47
+ - uses: actions/checkout@v4
48
+ - uses: actions/setup-go@v5
49
+ with:
50
+ go-version: '1.25'
51
+ - uses: astral-sh/setup-uv@v5
52
+ - run: gofmt -l .
53
+ - run: go vet ./...
54
+ - run: go test ./...
55
+ - name: Cross-language fixture conformance
56
+ run: |
57
+ uv run python scripts/generate_go_fixture.py testdata
58
+ go test ./internal/state/ -count=1
59
+ - run: go build ./...
60
+ - name: Fixture matches schema and representative rows
61
+ run: |
62
+ uv run python - <<'PY'
63
+ import sqlite3
64
+ db = sqlite3.connect('testdata/state/jobs.sqlite')
65
+ assert db.execute('PRAGMA user_version').fetchone()[0] == 8
66
+ jobs = {r[0]: r[3] for r in db.execute('SELECT job_id, name, command, status FROM jobs').fetchall()}
67
+ assert jobs == {'job_completed': 'completed', 'job_running': 'running'}, jobs
68
+ ev = {r[0] for r in db.execute('SELECT event_id FROM events').fetchall()}
69
+ assert {'evt_complete', 'evt_progress'} <= ev, ev
70
+ print('fixture semantic check OK')
71
+ PY
vanth-1.0.0/.gitignore ADDED
@@ -0,0 +1,14 @@
1
+ .venv/
2
+ .pytest_cache/
3
+ __pycache__/
4
+ *.py[cod]
5
+ .vanth/
6
+ .vanth-demo/
7
+ dist/
8
+ bin/
9
+ *.exe
10
+ *.test
11
+ testdata/state/logs/
12
+ testdata/state/events/
13
+ testdata/state/*.sqlite-wal
14
+ testdata/state/*.sqlite-shm
@@ -0,0 +1,144 @@
1
+ # Changelog
2
+
3
+ All notable changes to Vanth are documented here.
4
+
5
+ ## Unreleased
6
+
7
+ ## 1.0.0 - 2026-08-18
8
+
9
+ First supported v1 release. Vanth is a localhost background-job daemon and MCP
10
+ interface for agents: start detached jobs, receive `AGENT_EVENT` structured
11
+ events, wait on durable SQLite state, and wake Codex or OpenCode sessions when
12
+ a job needs attention.
13
+
14
+ ### Operations CLI and daemon lifecycle
15
+
16
+ - New `vanth` subcommands for humans (not MCP): `vanth status`, `vanth doctor`,
17
+ `vanth restart`. `status` reports daemon up/down, pid, schema, running jobs,
18
+ delivery counts (supports `--json`); `doctor` prints a human-readable health
19
+ report; `restart` gracefully stops the daemon and starts a fresh one (jobs
20
+ survive — runners are detached).
21
+ - The daemon gains an authenticated `POST /shutdown` route so a client can
22
+ request graceful shutdown over loopback HTTP (used by `vanth restart`).
23
+ - `VanthClient` now honors `VANTH_DAEMON_HOST`/`VANTH_DAEMON_PORT` when no URL
24
+ or discovery metadata is present, so clients and `vanth restart` work on
25
+ non-default ports.
26
+ - The terminal monitor ships as a bundled native Go binary via the
27
+ `vanth-monitor` console script (platform-tagged wheels, no Go toolchain
28
+ needed at runtime).
29
+
30
+ ### Telemetry (schema v8)
31
+
32
+ - `metric_series` table: scalar fields of `metric`/`progress` AGENT_EVENTs are
33
+ mirrored into queryable series (job, metric, x/y, stage, event id, seq,
34
+ timestamp), matching the Go monitor's transform semantics (`_step` as x,
35
+ `progress.current`/`total`/`percent` derived).
36
+ - `artifacts` table: jobs can carry named artifacts (checkpoints, CSVs,
37
+ rendered outputs) with uri, kind, size, sha256, and meta.
38
+ - New MCP tools + HTTP routes:
39
+ - `job_metrics_query(job_id, metric?, from_ms?, to_ms?, limit?)` — read scalar series.
40
+ - `job_metric_compare(job_ids, metric, aggregation)` — compare a metric across runs
41
+ (latest/mean/min/max/sum/count).
42
+ - `job_run_summary(job_id)` — one-call "did it work?" (status, runtime, progress,
43
+ latest metrics, artifacts).
44
+ - `job_artifact_add(job_id, name, uri, ...)` and `job_artifacts(job_id)`.
45
+ - `job_dashboard(job_ids?, limit?)` — downsampled chart-data view for any renderer.
46
+ - SQLite schema bumped to v8 (adds `metric_series`, `artifacts` tables);
47
+ existing homes migrate with a backup. Go fixture/conformance updated to v8.
48
+
49
+ ### Agent-facing features (schema v7)
50
+
51
+ - `job_status` / `job_view` now return the job's `command`, `cwd`, `env`,
52
+ `timeout_seconds`, `notes`, a `run` overview (author, hostname, OS, Python
53
+ version, CPU/GPU, git repo/branch/commit), and `runtime_seconds` — so an
54
+ agent can answer "what is this job?" without reading logs.
55
+ - `job_list` accepts `name` (substring) and `tags` filters.
56
+ - `job_events` accepts `reverse=true` to return the newest events first, with
57
+ backward paging via `since_event_id`.
58
+ - `job_rerun(job_id)` relaunches a job with its original command, cwd, env,
59
+ timeout, name, tags, notes, origin thread, and wake targets.
60
+ - The daemon writes `daemon.json` discovery metadata atomically on start
61
+ (url, pid, started_at, schema) and removes it on graceful shutdown; the MCP
62
+ client discovers the daemon URL from it.
63
+ - `vanth.agent_logger` routes loguru records into structured `AGENT_EVENT`
64
+ log events (timestamped, level-aware, with context) persisted in the event
65
+ table.
66
+
67
+ ### Migration and state
68
+
69
+ - Ordered SQLite migrations driven by `PRAGMA user_version`.
70
+ - A timestamped backup of an existing database is created under
71
+ `VANTH_HOME/backups/` before any migration runs.
72
+ - SQLite uses WAL mode with a configurable `busy_timeout`
73
+ (`VANTH_BUSY_TIMEOUT_MS`, default 30000) and foreign keys enabled.
74
+ - Event sequence numbers are allocated inside a `BEGIN IMMEDIATE` transaction,
75
+ so concurrent runner/daemon processes can never allocate the same per-job
76
+ `seq`.
77
+ - The per-event SQLite write lock is no longer held during the JSONL mirror
78
+ append; transient `database is locked` is retried for events, workload PID
79
+ publication, heartbeats, and terminal transitions; a reader thread survives a
80
+ single failed persist instead of dying and losing the stream.
81
+
82
+ ### Security
83
+
84
+ - The daemon requires `Authorization: Bearer <token>` on every data route.
85
+ The token is generated per home, stored owner-only, and never logged.
86
+ - On daemon start the state directory's permissions are re-tightened to the
87
+ owner only (Unix `0700`/`0600`; Windows `icacls` disables ACL inheritance and
88
+ grants only owner, SYSTEM, and Administrators). This prevents a broad
89
+ profile-level grant (e.g. a sandbox group with read access to the user
90
+ profile) from exposing the bearer token or per-job env/spec data.
91
+ - The daemon binds only to loopback addresses; a non-loopback
92
+ `VANTH_DAEMON_HOST` is rejected. On Windows, socket `SO_REUSEADDR` is
93
+ disabled so a second daemon cannot silently become a phantom listener on the
94
+ same port; a failed bind releases the home lock and exits cleanly.
95
+ - An upstream `pydantic-settings` warning (an unresolved `lifespan` forward
96
+ reference in mcp's FastMCP) that printed on every console-script invocation
97
+ of a fresh install is suppressed.
98
+ - One OS-backed daemon lock per `VANTH_HOME`; a second daemon exits quickly.
99
+
100
+ ### Delivery
101
+
102
+ - Durable at-least-once wake delivery with leases, claim tokens, and attempt
103
+ history (`job_delivery_attempts`), automatic due retries, and crash ambiguity
104
+ surfaced as reclaimed attempts.
105
+ - `delivery_id` is the idempotency key in every adapter payload.
106
+ - Codex app-server (`initialize -> thread/resume -> turn/start`) and OpenCode
107
+ CLI (`opencode run --session <id> --format json`) adapters. The OpenCode
108
+ default command is resolved through `shutil.which()` so npm `.CMD` shims work
109
+ on Windows.
110
+
111
+ ### Operations
112
+
113
+ - Graceful signal shutdown that drains in-flight work and leaves detached jobs
114
+ recoverable.
115
+ - Bounded rotating daemon and per-job runner diagnostic logs; bounded per-stream
116
+ log caps with `log_truncated` events; structured event cap per job.
117
+ - `job_doctor` readiness and `job_cleanup` with dry-run and tombstones.
118
+ - Windows Startup/Task Scheduler action (`deploy/vanthd.cmd`) and Unix systemd
119
+ user service (`deploy/vanthd.service`) templates.
120
+
121
+ ### Compatibility and packaging
122
+
123
+ - `mcp` is pinned to `>=1.0,<2.0` because mcp 2.0 removed
124
+ `mcp.server.fastmcp`.
125
+ - The wheel bundles a native Go monitor binary (platform-tagged,
126
+ `py3-none-<platform>`), built by a hatchling build hook; no Go toolchain is
127
+ needed to install or run it.
128
+ - CI workflow (`github/workflows/ci.yml`) runs the suite, compile check, wheel
129
+ build, and an isolated wheel import smoke on Windows and Linux for Python
130
+ 3.11 and 3.12.
131
+ - Release-gate matrix: `scripts/chaos_matrix.py` (50-job x 500-event burst with
132
+ exact counts, slow-adapter non-blocking, daemon kill/restart recovery, runner
133
+ kills, malformed-input battery, log caps and cleanup idempotence) and
134
+ `scripts/real_adapter_smoke.py` (opt-in real Codex/OpenCode wakes; records
135
+ installed versions).
136
+
137
+ ### Limitations
138
+
139
+ - `job_send` and interactive stdin are not implemented; jobs run with stdin
140
+ closed.
141
+ - A daemon crash after an external wake adapter accepts the side effect but
142
+ before Vanth records success remains inherently at-least-once ambiguity.
143
+ - Live Codex/OpenCode wake smokes are opt-in and were not run during release
144
+ validation; fake-adapter contract tests cover the protocol.
vanth-1.0.0/LICENSE ADDED
@@ -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 abhim-dv
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.