orinyx-mcp 0.1.5__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 (115) hide show
  1. orinyx_mcp-0.1.5/.gitignore +10 -0
  2. orinyx_mcp-0.1.5/CHANGELOG.md +207 -0
  3. orinyx_mcp-0.1.5/LICENSE +190 -0
  4. orinyx_mcp-0.1.5/PKG-INFO +1187 -0
  5. orinyx_mcp-0.1.5/README.md +1151 -0
  6. orinyx_mcp-0.1.5/orinyx_mcp/__init__.py +7 -0
  7. orinyx_mcp-0.1.5/orinyx_mcp/__main__.py +83 -0
  8. orinyx_mcp-0.1.5/orinyx_mcp/annotations.py +66 -0
  9. orinyx_mcp-0.1.5/orinyx_mcp/arena.py +258 -0
  10. orinyx_mcp-0.1.5/orinyx_mcp/assets/orinyx-star-256.png +0 -0
  11. orinyx_mcp-0.1.5/orinyx_mcp/assets/orinyx-star-48.png +0 -0
  12. orinyx_mcp-0.1.5/orinyx_mcp/assets/orinyx-star-96.png +0 -0
  13. orinyx_mcp-0.1.5/orinyx_mcp/assets/orinyx-star.svg +20 -0
  14. orinyx_mcp-0.1.5/orinyx_mcp/cli.py +535 -0
  15. orinyx_mcp-0.1.5/orinyx_mcp/client.py +613 -0
  16. orinyx_mcp-0.1.5/orinyx_mcp/config.py +142 -0
  17. orinyx_mcp-0.1.5/orinyx_mcp/contract.py +145 -0
  18. orinyx_mcp-0.1.5/orinyx_mcp/copy.py +118 -0
  19. orinyx_mcp-0.1.5/orinyx_mcp/credentials.py +182 -0
  20. orinyx_mcp-0.1.5/orinyx_mcp/gateway.py +224 -0
  21. orinyx_mcp-0.1.5/orinyx_mcp/http.py +572 -0
  22. orinyx_mcp-0.1.5/orinyx_mcp/known_limits.json +20 -0
  23. orinyx_mcp-0.1.5/orinyx_mcp/login.py +335 -0
  24. orinyx_mcp-0.1.5/orinyx_mcp/screen.py +170 -0
  25. orinyx_mcp-0.1.5/orinyx_mcp/server.py +573 -0
  26. orinyx_mcp-0.1.5/orinyx_mcp/text.py +533 -0
  27. orinyx_mcp-0.1.5/orinyx_mcp/tools/__init__.py +139 -0
  28. orinyx_mcp-0.1.5/orinyx_mcp/tools/exams.py +250 -0
  29. orinyx_mcp-0.1.5/orinyx_mcp/tools/labels.py +248 -0
  30. orinyx_mcp-0.1.5/orinyx_mcp/tools/reports.py +524 -0
  31. orinyx_mcp-0.1.5/orinyx_mcp/tools/verify.py +90 -0
  32. orinyx_mcp-0.1.5/orinyx_mcp/verdicts.py +41 -0
  33. orinyx_mcp-0.1.5/pyproject.toml +84 -0
  34. orinyx_mcp-0.1.5/tests/__init__.py +0 -0
  35. orinyx_mcp-0.1.5/tests/conftest.py +98 -0
  36. orinyx_mcp-0.1.5/tests/fixtures/check_lines_before_v0_1_1.json +599 -0
  37. orinyx_mcp-0.1.5/tests/fixtures/check_lines_g1_input.json +132 -0
  38. orinyx_mcp-0.1.5/tests/fixtures/check_lines_goldens.json +8 -0
  39. orinyx_mcp-0.1.5/tests/fixtures/check_lines_tool_surface_v0_1_1.json +831 -0
  40. orinyx_mcp-0.1.5/tests/fixtures/cli_output_before.json +200 -0
  41. orinyx_mcp-0.1.5/tests/fixtures/clinical/uti-001.json +1742 -0
  42. orinyx_mcp-0.1.5/tests/fixtures/engine_contract.json +60 -0
  43. orinyx_mcp-0.1.5/tests/fixtures/exam_text_before.json +145 -0
  44. orinyx_mcp-0.1.5/tests/no_keychain/keyring.py +8 -0
  45. orinyx_mcp-0.1.5/tests/test_arena.py +355 -0
  46. orinyx_mcp-0.1.5/tests/test_check_build_inputs.py +222 -0
  47. orinyx_mcp-0.1.5/tests/test_check_dist.py +693 -0
  48. orinyx_mcp-0.1.5/tests/test_check_dist_listing.py +112 -0
  49. orinyx_mcp-0.1.5/tests/test_check_lines.py +709 -0
  50. orinyx_mcp-0.1.5/tests/test_check_lines_guards.py +121 -0
  51. orinyx_mcp-0.1.5/tests/test_claim_completeness_lines.py +474 -0
  52. orinyx_mcp-0.1.5/tests/test_clean_errors.py +551 -0
  53. orinyx_mcp-0.1.5/tests/test_cli.py +361 -0
  54. orinyx_mcp-0.1.5/tests/test_cli_output_unchanged.py +218 -0
  55. orinyx_mcp-0.1.5/tests/test_client.py +367 -0
  56. orinyx_mcp-0.1.5/tests/test_client_regression_cases.py +138 -0
  57. orinyx_mcp-0.1.5/tests/test_clinical_suite.py +429 -0
  58. orinyx_mcp-0.1.5/tests/test_closing_line_absent.py +108 -0
  59. orinyx_mcp-0.1.5/tests/test_config.py +64 -0
  60. orinyx_mcp-0.1.5/tests/test_config_safety.py +691 -0
  61. orinyx_mcp-0.1.5/tests/test_contract_drift.py +340 -0
  62. orinyx_mcp-0.1.5/tests/test_credential_echo.py +567 -0
  63. orinyx_mcp-0.1.5/tests/test_credential_precedence.py +262 -0
  64. orinyx_mcp-0.1.5/tests/test_credential_store_structure.py +142 -0
  65. orinyx_mcp-0.1.5/tests/test_dependency_floors.py +81 -0
  66. orinyx_mcp-0.1.5/tests/test_e2e_install_check.py +354 -0
  67. orinyx_mcp-0.1.5/tests/test_engine_contract.py +190 -0
  68. orinyx_mcp-0.1.5/tests/test_exam_shape.py +336 -0
  69. orinyx_mcp-0.1.5/tests/test_exam_text_unchanged.py +301 -0
  70. orinyx_mcp-0.1.5/tests/test_exam_tools.py +847 -0
  71. orinyx_mcp-0.1.5/tests/test_feedback_channels.py +166 -0
  72. orinyx_mcp-0.1.5/tests/test_gateway.py +223 -0
  73. orinyx_mcp-0.1.5/tests/test_hardening_checklist_rows.py +154 -0
  74. orinyx_mcp-0.1.5/tests/test_hop_secret_header_value.py +140 -0
  75. orinyx_mcp-0.1.5/tests/test_http.py +609 -0
  76. orinyx_mcp-0.1.5/tests/test_install_docs.py +406 -0
  77. orinyx_mcp-0.1.5/tests/test_label_tools.py +190 -0
  78. orinyx_mcp-0.1.5/tests/test_lint_release_workflow.py +256 -0
  79. orinyx_mcp-0.1.5/tests/test_login.py +431 -0
  80. orinyx_mcp-0.1.5/tests/test_login_callback_rules.py +99 -0
  81. orinyx_mcp-0.1.5/tests/test_login_lock.py +207 -0
  82. orinyx_mcp-0.1.5/tests/test_login_metadata_answers.py +227 -0
  83. orinyx_mcp-0.1.5/tests/test_login_token_answers.py +151 -0
  84. orinyx_mcp-0.1.5/tests/test_lookup_docs.py +156 -0
  85. orinyx_mcp-0.1.5/tests/test_lookup_offer.py +260 -0
  86. orinyx_mcp-0.1.5/tests/test_manifest_matches_tracked_files.py +145 -0
  87. orinyx_mcp-0.1.5/tests/test_monograph_tools.py +171 -0
  88. orinyx_mcp-0.1.5/tests/test_not_for_clinical_use.py +173 -0
  89. orinyx_mcp-0.1.5/tests/test_onboarding_docs.py +69 -0
  90. orinyx_mcp-0.1.5/tests/test_package_metadata.py +222 -0
  91. orinyx_mcp-0.1.5/tests/test_packaged_files_hold_no_internal_ids.py +70 -0
  92. orinyx_mcp-0.1.5/tests/test_product_exam_script.py +130 -0
  93. orinyx_mcp-0.1.5/tests/test_public_url_userinfo.py +78 -0
  94. orinyx_mcp-0.1.5/tests/test_public_wording_does_not_regress.py +128 -0
  95. orinyx_mcp-0.1.5/tests/test_publish_workflow.py +142 -0
  96. orinyx_mcp-0.1.5/tests/test_release_tools_imports.py +193 -0
  97. orinyx_mcp-0.1.5/tests/test_release_tools_standalone.py +94 -0
  98. orinyx_mcp-0.1.5/tests/test_report_text_control_characters.py +324 -0
  99. orinyx_mcp-0.1.5/tests/test_report_text_lone_surrogate.py +98 -0
  100. orinyx_mcp-0.1.5/tests/test_scope_lists.py +57 -0
  101. orinyx_mcp-0.1.5/tests/test_screen.py +32 -0
  102. orinyx_mcp-0.1.5/tests/test_stdio_entry.py +380 -0
  103. orinyx_mcp-0.1.5/tests/test_stdio_entry_guards.py +342 -0
  104. orinyx_mcp-0.1.5/tests/test_stored_login_record.py +139 -0
  105. orinyx_mcp-0.1.5/tests/test_suite_isolation.py +128 -0
  106. orinyx_mcp-0.1.5/tests/test_text.py +645 -0
  107. orinyx_mcp-0.1.5/tests/test_tool_annotations.py +101 -0
  108. orinyx_mcp-0.1.5/tests/test_tools.py +245 -0
  109. orinyx_mcp-0.1.5/tests/test_trace_context.py +33 -0
  110. orinyx_mcp-0.1.5/tests/test_tracked_text_has_no_hidden_characters.py +113 -0
  111. orinyx_mcp-0.1.5/tests/test_url_userinfo.py +139 -0
  112. orinyx_mcp-0.1.5/tests/test_usage_errors.py +471 -0
  113. orinyx_mcp-0.1.5/tests/test_verdict_consistency.py +105 -0
  114. orinyx_mcp-0.1.5/tests/test_verdict_readback.py +86 -0
  115. orinyx_mcp-0.1.5/tests/test_volume_abstain_marker.py +66 -0
@@ -0,0 +1,10 @@
1
+ __pycache__/
2
+ *.pyc
3
+ .venv/
4
+ .pytest_cache/
5
+ .ruff_cache/
6
+ *.egg-info/
7
+ dist/
8
+ build/
9
+ .env
10
+ .env.*
@@ -0,0 +1,207 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project are recorded here. The format is based on
4
+ [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
5
+
6
+ ## [0.1.5] - 2026-11-15
7
+
8
+ ### Added
9
+
10
+ - `orinyx login`, `logout`, and `status`: browser OAuth with native keychain storage,
11
+ rotating refresh, and CLI/stdio credential resolution. Verification and Arena are included
12
+ according to account permissions; exams remain excluded. Explicit environment keys win.
13
+
14
+ - Tag-driven PyPI publishing through GitHub OIDC and the protected `pypi` environment.
15
+ The workflow tests and builds the package, requires a matching version tag, and publishes
16
+ only the resulting wheel and source distribution without a long-lived PyPI token.
17
+ - [Local package/stdio setup and CLI examples](README.md#installation), alongside the engine's
18
+ session-only self-serve key flow. The engine must be deployed first;
19
+ developer keys carry only `verify:read` and `verify:write` and expire within 90 days.
20
+ An account can have at most two active keys; a revoked or expired key does not count.
21
+
22
+ - Every tool now has a human-readable title and MCP behaviour hints in `tools/list`
23
+ (`readOnlyHint`, `destructiveHint`, `idempotentHint`, `openWorldHint`), set from what each
24
+ call does on the Orinyx API. The reads and lookups are read-only. `finish_exam` is marked
25
+ destructive, since it closes a sitting for good. The verifications and exports are
26
+ additive and not idempotent, since each adds a run or an audit-chain entry. Tool names,
27
+ input schemas and descriptions are unchanged.
28
+ - Nine new tests hold rules the code already followed, so a later change cannot loosen them
29
+ unnoticed: which credential a request carries, what the sign-in callback refuses, what the
30
+ CLI accepts from the token endpoint, the sign-in metadata and the keychain, the lock that
31
+ keeps sign-in renewals apart, the two scope lists, the credential module's imports, and the
32
+ match between the release manifest and the tracked files.
33
+
34
+ ### Changed
35
+
36
+ - Onboarding docs: the README includes the welcome-email password step before connecting,
37
+ the README and Quickstart include help for a missing email, and troubleshooting correctly
38
+ permits developer FDA reference lookups. The README notes that the hosted connector's running
39
+ build can differ from the latest repository release.
40
+ - Packaging for PyPI: the package metadata is complete (authors, keywords, classifiers and
41
+ project URLs), dependency ranges stop before the next major version, the build backend has
42
+ a bounded range, the source distribution holds a reviewed list of files, and the README's
43
+ links and logo are absolute so they work on the PyPI page. The lowest allowed versions rise
44
+ to `httpx` 0.28, `pydantic` 2.12, `starlette` 1.3.1 and `uvicorn` 0.31.1.
45
+ - Before it sends orders, `orinyx observe` asks the Orinyx API for the current identifier
46
+ screen. If the API serves a different list, `observe` screens with that list. If the API
47
+ says its screen differs but does not send it, `observe` refuses rather than screen with a
48
+ stale list. If the API does not serve the list or cannot answer, the local copy is used; a
49
+ failed request is logged.
50
+ - On the first tool call, the MCP server checks its copies of the label sections and the
51
+ identifier screen against the API's, in the background, when the API serves those lists. A
52
+ difference is logged. The API does not serve them yet, so for now the local copies are used.
53
+
54
+ ### Fixed
55
+
56
+ - Reports no longer obey characters inside the text they show. In what `orinyx verify` and
57
+ `orinyx get` print, and in the tables the MCP tools return, a line break or tab inside a
58
+ claim, an explanation or a citation is shown as one space, and a control, format or
59
+ bidirectional character is shown as an escape such as `\x1b` or `\u202e`. Before this, an
60
+ AI tool under test could write an order that added lines of its own to the report, or hid
61
+ part of it on a terminal. Exit codes and `--json` output are unchanged, and text made of
62
+ ordinary characters and single spaces prints exactly as before.
63
+ - The HTTP app keeps an explicitly supplied client pool even when it is empty. Previously,
64
+ an empty pool was treated as missing and replaced by the default, discarding its custom
65
+ transport and idle-client limit. Omitting the pool or passing `None` still selects the
66
+ default; the selected pool is closed when the app shuts down.
67
+ - The network server refuses to start when `MCP_PUBLIC_URL` contains a username or password,
68
+ which it would otherwise publish in its protected-resource document and in the challenge of
69
+ every 401.
70
+ - The network server refuses to start when `ORINYX_HOP_SECRET` cannot be sent as an HTTP header
71
+ (a line break or a NUL inside it, or a space or tab at either end), instead of starting,
72
+ reporting healthy and then refusing every caller.
73
+ - Running the tests can no longer read, refresh or use a sign-in saved by `orinyx login`: the
74
+ test suite now blocks the OS keychain in its own process and in the child processes it
75
+ starts, and refuses any connection that leaves the machine.
76
+ - `requirements.lock` pins `opentelemetry-api` 1.45.2 (was 1.45.1), the release that fixes
77
+ GHSA-mf5v-w3w3-f6cg (CVE-2026-126360), slow parsing of a crafted `traceparent`. A new test
78
+ fails if the pin falls below 1.45.2. The package's own dependency ranges are unchanged.
79
+
80
+ ## [0.1.4] - 2026-11-05
81
+
82
+ ### Changed
83
+
84
+ - Developer accounts can use the five FDA reference lookups: `find_fda_label`,
85
+ `read_fda_label_section`, `find_otc_monographs`, `get_otc_monograph` and
86
+ `read_otc_monograph_section`. `start_a_test` lists them under LOOK SOMETHING UP for a
87
+ developer account. They return reference text, not a verdict, and are not charged against
88
+ the monthly checks of the free plan. On a label lookup the reply says how the name was
89
+ matched, and a formulation or salt Orinyx stripped from the name is shown as a caution.
90
+ - Still staff-only: a label's version history and diff, a monograph's version history and its
91
+ separate orders listing, and a regulatory document's content. Product (vendor) accounts are still refused
92
+ every lookup. The change is in the Orinyx API; tool names and input schemas are unchanged.
93
+
94
+ ## [0.1.3] - 2026-11-05
95
+
96
+ ### Added
97
+
98
+ - Every result row names the Orinyx check that produced it (beta). When Orinyx sends a run's
99
+ `checks` list, the tool text of `verify_order_text`, `verify_medications` and
100
+ `get_verification`, and the `orinyx verify` text output, carry a block headed
101
+ "Checks (beta release candidates; Orinyx names the check behind each row):". It names each
102
+ check by the label Orinyx sends, with the rows it produced and its own counts (flagged,
103
+ unreadable, supported, not verified); unreadable rows are never counted as flagged. The
104
+ block follows the existing output, so the earlier lines are unchanged and `Run id:` is
105
+ still the last line of tool text. A run without `checks` renders as in 0.1.2.
106
+ - Install docs: a new `docs/TROUBLESHOOTING.md`, a "Supported environments" section in the
107
+ README and an "Official package" section in SECURITY.md. The README and SECURITY.md name
108
+ the only official package, `orinyx-mcp`, published only from
109
+ `github.com/lexthirteen-ai/orinyx-mcp`.
110
+ - `orinyx-mcp stdio` starts the stdio MCP server, the same server as `python -m orinyx_mcp`,
111
+ and `orinyx-mcp --version` prints the installed version.
112
+
113
+ ### Changed
114
+
115
+ - The server instructions say every result row names the Orinyx check that produced it
116
+ (Medication Claims, Semantic Mapping or Source Evidence), and that these checks are beta
117
+ release candidates, not production-ready, each deciding with deterministic rules only. The
118
+ descriptions of `verify_medications`, `verify_order_text` and `get_verification` say each
119
+ row names the check that produced it (beta). Tool names and input schemas are unchanged.
120
+ - Install docs: the README's Installation section puts the hosted connector first as the
121
+ self-serve path, with Claude Code, Claude Desktop and Cursor steps, and says the stdio
122
+ server, the CLI and CI need a key issued by Orinyx. Every example that holds a key warns
123
+ never to commit a client config file that holds one.
124
+ - `orinyx-mcp` with any argument other than `stdio` or `--version` (for example
125
+ `orinyx-mcp serve`) now exits 1 with a usage line instead of starting the network server.
126
+ `orinyx-mcp` with no argument is still the network server, unchanged.
127
+
128
+ ## [0.1.2] - 2026-11-03
129
+
130
+ ### Changed
131
+
132
+ - Docs (2026-11-03): repository links now use `lexthirteen-ai/orinyx-mcp`; restored two
133
+ disclosures a tidy edit had dropped (the IV acetaminophen fix does not cover CDS Hooks,
134
+ telehealth or transcript extraction; the smoke test's IV step covers `IV` only); the
135
+ Acknowledgements say the optional models are not enabled on the hosted service.
136
+
137
+ ## [0.1.1] - 2026-11-02
138
+
139
+ ### Added
140
+
141
+ - The not-for-clinical-use statement opens the server instructions and every tool description,
142
+ the README's first screen and the release notes; tests pin the exact text.
143
+
144
+ ### Changed
145
+
146
+ - `verify_medications`'s description asks for one patient's medications per call, and says
147
+ that when the call states one route for a drug, that route is carried onto the drug's
148
+ frequency claims that state none. Nothing is carried for a drug whose claims state two
149
+ routes or one Orinyx cannot read, or whose drug name names a different route. The tool name
150
+ and input schema are unchanged.
151
+ - The IV acetaminophen known limit: oral-label frequency is fixed on the orders path and on
152
+ `verify_medications` structured runs; not CDS Hooks, telehealth or transcript extraction;
153
+ IVP is not read as a route. Its disclosed limits are
154
+ listed with it. See
155
+ [Known limits](docs/RELEASE_NOTES_2026-11-02.md#known-limits).
156
+ - The release notes are dated with the publication date (`docs/RELEASE_NOTES_2026-11-02.md`)
157
+ and name orinyx-mcp 0.1.1. A new known limit says that a NOT VERIFIED row shows no
158
+ citation, even when Orinyx's result names a specific label.
159
+
160
+ ## [0.1.0] - 2026-10-29
161
+
162
+ Limited testing release of the hosted connector `https://orinyx-mcp.fly.dev/mcp`, with
163
+ orinyx-mcp 0.1.0 and Orinyx engine 0.3.1. Synthetic data only. The current release notes,
164
+ which cover 0.1.0 and 0.1.1 and list every known limit, are in
165
+ [docs/RELEASE_NOTES_2026-11-02.md](docs/RELEASE_NOTES_2026-11-02.md).
166
+
167
+ ### Added
168
+
169
+ - **Orders as written** (`verify_order_text`): each order is split into a dose, a route and a
170
+ frequency claim, with no language model, and each is checked against FDA label text or an
171
+ FDA OTC monograph. One drug per order; up to 50 orders of 500 characters per request.
172
+ - **Structured claims** (`verify_medications`) of nine claim types, one claim type per claim.
173
+ - **Interactions within a request** (`check_interactions: true` on either tool), checked
174
+ against the labels' own Drug Interactions text.
175
+ - **Run read-backs:** `get_verification`, `get_accuracy` and `export_verification` (CSV, PDF
176
+ or a report). Every run is stored in an audit record under your account, and audit records
177
+ cannot be deleted.
178
+ - **Four results per claim:** FLAGGED (with a severity), SUPPORTED, NOT VERIFIED (abstain) and
179
+ UNREADABLE. Each supported or flagged row cites the label section or monograph paragraph it
180
+ was judged against. A supported row is not a safety clearance, and an abstain is unchecked,
181
+ never passing. Orinyx flags; the clinician decides.
182
+ - **Free plan:** 200 checks per calendar month (UTC), one account per sign-up. One call to
183
+ `verify_order_text` or `verify_medications` is one check; lookups and read-backs do not
184
+ count.
185
+ - **A refused key says so:** when the API refuses the key or sign-in itself (401),
186
+ `start_a_test` answers with a short message saying it was refused and what to check, instead
187
+ of the menu of tests.
188
+
189
+ ### Not in this release
190
+
191
+ - Exams are not self-serve: they are for product accounts that Orinyx registers.
192
+ - Label and monograph lookups are for staff accounts and are refused for a developer account.
193
+ - The dashboard is for staff accounts.
194
+
195
+ ### Known limits
196
+
197
+ Known gaps in the knowledge base and the checks, among them nitrofurantoin (route only), no IV
198
+ acetaminophen daily ceiling, weight- and age-conditional maxima not compared, one label per
199
+ drug, and combination products. Most show up as a NOT VERIFIED row, a refused order or a daily
200
+ total that was not checked, so a missing flag is never evidence that an order is safe. See
201
+ [Known limits](docs/RELEASE_NOTES_2026-11-02.md#known-limits).
202
+
203
+ [Unreleased]: https://github.com/lexthirteen-ai/orinyx-mcp/compare/v0.1.4...HEAD
204
+ [0.1.4]: https://github.com/lexthirteen-ai/orinyx-mcp/compare/v0.1.3...v0.1.4
205
+ [0.1.3]: https://github.com/lexthirteen-ai/orinyx-mcp/compare/v0.1.2...v0.1.3
206
+ [0.1.2]: https://github.com/lexthirteen-ai/orinyx-mcp/compare/v0.1.1...v0.1.2
207
+ [0.1.1]: docs/RELEASE_NOTES_2026-11-02.md
@@ -0,0 +1,190 @@
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
+ Copyright 2026 Lex Hamilton
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
+ See the License for the specific language governing permissions and
190
+ limitations under the License.