@bivelio/savings-layer 0.5.2 → 1.1.0

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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,138 @@
1
+ # Changelog
2
+
3
+ ## 1.1.0 — savings levers reach the batch surface, cache audit, cascade 2026
4
+
5
+ ### Added
6
+
7
+ - **Cache-break audit.** The layer detects per-request content (ISO/RFC 2822
8
+ timestamps, UUID v4, epoch ms/s) in the cacheable `system` prefix and reports it
9
+ as a `cache-audit` trace plus a one-per-process warning: the diagnosis of a
10
+ prompt cache that never hits, without rewriting the caller's prompt.
11
+ - **Levers inside the batch.** `layer.batches.submit()` now runs the same pure,
12
+ lossless request-body levers as `generate()`: elision by supersession
13
+ (default-on, `savings.elision: false` opts out) and tool-output compaction
14
+ (opt-in, same as `generate()`). A batch item's prompt byte-equals the prompt
15
+ `generate()` sends for the same request and toggle.
16
+ - **Intra-batch dedup** (opt-in `submit(…, { deduplicate: true })`): requests whose
17
+ final provider body is identical are sent once and replayed from the first
18
+ result; the summary counts the money once, over the sent executions, and reports
19
+ a `deduplicated` count.
20
+ - **Cascade 2026.** The default model-cascade table now covers the current
21
+ frontier's same-family cheap siblings (`gpt-5/5.2/5.4 → *-mini`,
22
+ `claude-opus-5/-5-5 → claude-haiku-4-5`); `claude-sonnet-5/-5-5` stay without a
23
+ default pair on purpose (r = 0.50 exact leaves no quality margin).
24
+
25
+ ## 1.0.0 — the open-core release (Community mode)
26
+
27
+ ### License
28
+
29
+ - The npm package is now **Apache-2.0** (LICENSE); the optional cloud services
30
+ keep their own terms in LICENSE-CLOUD.md (§5 fields, §6 fees) and a NOTICE
31
+ covers trademarks and attribution.
32
+
33
+ ### Changed (breaking for the license contract)
34
+
35
+ - **Open core.** `createSavingsLayer({ provider })` without a `licenseKey` now
36
+ runs on the COMMUNITY gate: every local saving lever on, zero telemetry, zero
37
+ network. A license key that IS configured but invalid, expired or revoked
38
+ still fails closed with `LicenseError`; only its absence stopped being an
39
+ error.
40
+ - **Gateway starts with no keys.** `bvsala gateway` (and every `bvsala <agent>`
41
+ wrapper) launches in COMMUNITY mode: local levers armed by default, local
42
+ `/_bvsala` reports working, nothing sent to BiVelio. `BIVELIO_SERVICE_KEY`
43
+ remains the (optional) door to the cloud dashboard, org entitlements and
44
+ metering.
45
+
46
+ ### Added
47
+
48
+ - **Gemini protocol in the gateway**: `:generateContent` and
49
+ `:streamGenerateContent` (SSE with `alt=sse` and newline-delimited JSON) are
50
+ metered from `usageMetadata` (implicit-cache discount, thinking tokens as
51
+ output), plus the `bvsala gemini` wrapper (`GOOGLE_GEMINI_BASE_URL`).
52
+ - **Chinese providers and local servers as first-class upstreams**:
53
+ `--upstream deepseek | qwen | glm | moonshot | minimax | openrouter | ollama |
54
+ vllm | lmstudio`; DeepSeek rewrites Anthropic traffic to its `/anthropic`
55
+ endpoint automatically.
56
+ - **Catalog**: list-price rows for deepseek-flash / deepseek-v4-pro (peak rates,
57
+ the conservative side), qwen3.8 / qwen3.7 / qwen-flash / qwen-plus and
58
+ glm-5.3 (+flash); cache-write premium is 1× for Chinese providers. Moonshot and
59
+ MiniMax stay out until their official pages are verifiable.
60
+ - **Cursor recipe** (Settings → Models → OpenAI API Base URL, BYOK) and a
61
+ **Claude Desktop MCP recipe** in `bvsala doctor`, plus new terminal guides
62
+ (Gemini CLI, Cursor, DeepSeek, Ollama/vLLM/LM Studio).
63
+
64
+ ## 0.6.0-rc.1 — SDK release candidate
65
+
66
+ This prerelease adds opt-in, customer-operated persistence while preserving the
67
+ 0.5 API compatibility baseline. Existing in-memory defaults remain in place. It
68
+ is not a final release or a live-SLA claim.
69
+
70
+ ### Added
71
+
72
+ - `SemanticCacheStore`, shared `SemanticCalibrationJournal` and
73
+ `SemanticCacheSafety` for interchangeable semantic-cache backends.
74
+ - `ConstraintMemoryStore` for durable value-constraint learning, with a local
75
+ write-through `Set` and no provider-call retry on storage failure.
76
+ - Exact-cache and semantic-cache reference behavior, coordinated breakpoint
77
+ learning and calibration across instances.
78
+ - `requestTimeoutMs` and `signal` in `generate` and `generateStream`, with
79
+ `RequestTimeoutError` and no cache or learning writes for incomplete answers.
80
+ - Exact-tokenizer loading only for the encodings used by the requested or served
81
+ model, avoiding unrelated cold-start work without changing token accounting.
82
+ - Anthropic history normalization that preserves empty assistant turns with an
83
+ explicit `(empty)` text block instead of dropping their role.
84
+ - PostgreSQL integration coverage, including real concurrency and 100,000-record
85
+ local benchmark evidence.
86
+
87
+ ### Compatibility and requirements
88
+
89
+ - Node.js `>=20.19.0`.
90
+ - Existing 0.5 APIs remain available; this minor only adds reviewed APIs.
91
+ - `@bivelio/persistence-postgres` is a separate package. The core SDK has no new
92
+ runtime dependency and does not require PostgreSQL.
93
+
94
+ ## 0.1.0-rc.1 — PostgreSQL persistence release candidate
95
+
96
+ ### Added
97
+
98
+ - `PgExactCache` with TTL, defensive copies and deletion.
99
+ - `PgCacheBreakpointStore` with versions and compare-and-set.
100
+ - `PgSemanticCache` with vector search, hard identity filters and transactional,
101
+ idempotent calibration.
102
+ - `PgConstraintMemoryStore` with idempotent durable hints.
103
+ - Manual idempotent migrations:
104
+ - `001_exact_and_breakpoints.sql`
105
+ - `002_semantic_cache.sql`
106
+ - `003_constraint_memory.sql`
107
+
108
+ ### Requirements
109
+
110
+ - Node.js `>=20.19.0`.
111
+ - `@bivelio/savings-layer >=0.6.0-rc.1 <1`.
112
+ - `pg >=8.23.1 <9` as a required peer of this package only.
113
+ - The PostgreSQL vector extension for semantic caching.
114
+
115
+ ### Isolation, failure behavior and rollback
116
+
117
+ - Durable keys are scoped by the relevant tenant, permissions, provider, model,
118
+ contract or namespace. No production connection or migration runs automatically.
119
+ - Reads/writes have bounded timeouts. Storage errors do not create cache hits or
120
+ repeat a provider call. Transaction clients are not released with work pending.
121
+ - Exact and semantic records can contain customer content and derived embeddings;
122
+ constraint hints contain only a hash and timestamp.
123
+ - Rollback is opt-out: remove the injected stores. Migrations are additive and do
124
+ not require destructive down migrations.
125
+
126
+ ### Dependency hygiene
127
+
128
+ The lockfile and clean consumers are audited by `rc:verify`. This RC updates
129
+ Vitest and vulnerable direct/transitive packages, including Zod, Undici, Vite,
130
+ Tinypool, esbuild, Hono, langsmith, body-parser, nanoid, PostCSS and source-map-js.
131
+ `pg` types are no longer leaked into persistence declarations, and persistence
132
+ ships no sourcemaps.
133
+
134
+ ### Verification scope
135
+
136
+ The RC includes local unit/integration, concurrency, migration, clean-consumer
137
+ and 100,000-record benchmark evidence. Production latency, backup/restore and a
138
+ customer canary remain separate release gates.
package/LICENSE CHANGED
@@ -1,163 +1,183 @@
1
- BiVelio Inc. — BV-SALA Commercial Software License Agreement
2
-
3
- Copyright (c) 2026 BiVelio Inc. All Rights Reserved.
4
-
5
- IMPORTANT — READ BEFORE USE. This Commercial Software License Agreement (the
6
- "Agreement") governs your use of the "@bivelio/savings-layer" software, also known
7
- as "BV-SALA" (the "Software"), published by BiVelio Inc. ("BiVelio"). By installing,
8
- copying, or using the Software, you agree to this Agreement. If you do not agree, do
9
- not install or use the Software.
10
-
11
- 1. LICENSE GRANT. Subject to your continuous compliance with this Agreement and to
12
- an active BiVelio subscription (paid, or granted by BiVelio at no charge, for
13
- example through a promotional code, a pilot, or the free Measure license) with a
14
- valid license key ("License Key"), BiVelio grants you a limited, non-exclusive,
15
- non-transferable, non-sublicensable, revocable license to install and use the
16
- Software, as published, solely for your own internal business purposes, and only
17
- for the number of seats covered by your subscription. The Software is licensed,
18
- not sold. Under a Measure license the Software runs in shadow mode only: it
19
- forwards your requests to your provider unchanged, applies no optimization, and
20
- reports estimated savings that are never billed.
21
-
22
- 2. LICENSE KEY; FAIL-CLOSED OPERATION. The Software requires a valid, active License
23
- Key and does not operate without one. Expiry, non-payment, revocation, suspension,
24
- or termination of your subscription immediately ends the license granted in
25
- Section 1, and the Software will cease to function; when a paid subscription
26
- ends, BiVelio may instead grant you a Measure license, under which the Software
27
- continues in shadow mode only. You will not circumvent, disable, remove, or tamper
28
- with the Software's licensing, metering, or revocation mechanisms, nor use the
29
- Software after your license has ended.
30
-
31
- 3. RESTRICTIONS. Except as expressly permitted above, you will not: (a) distribute,
32
- publish, resell, rent, lease, lend, offer as a hosted or managed service, or
33
- otherwise make the Software available to any third party; (b) sublicense, assign,
34
- or transfer your rights; (c) use the Software for more seats than your
35
- subscription covers, or share a License Key across more machines or service
36
- identities than it covers; (d) remove, alter, or obscure any proprietary or
37
- copyright notice; (e) reverse engineer, decompile, or disassemble the Software,
38
- except to the limited extent applicable law expressly permits notwithstanding
39
- this restriction; or (f) use the Software to develop, train, or improve a product
40
- or service that competes with the Software.
41
-
42
- 4. OWNERSHIP. The Software is the exclusive property of BiVelio and its licensors and
43
- embodies valuable proprietary information and trade secrets. BiVelio retains all
44
- right, title, and interest in and to the Software and all intellectual property
45
- rights therein. No rights are granted to you except as expressly set out in this
46
- Agreement, whether by implication, estoppel, or otherwise.
47
-
48
- 5. YOUR DATA; PRIVACY.
49
- (a) What the Software never sends to BiVelio. The Software never transmits to
50
- BiVelio the content of your requests or responses (including prompts, system
51
- instructions, messages, tool definitions, tool arguments and results, retrieved
52
- documents, and completions) or the credentials you use with your LLM provider
53
- (API keys, OAuth tokens, or other authorization headers). That content and those
54
- credentials travel only between your systems and the LLM provider you configure.
55
- (b) What the Software sends to BiVelio. The SDK contacts BiVelio only when you
56
- configure a license server or metering URL; the local gateway always does. With a
57
- BiVelio service-account key, the Software sends BiVelio's control plane usage
58
- records for the requests it meters, each limited to:
59
- (i) identifiers: a request identifier generated on your side (at random, or by
60
- your own generator); for a repeated request valued by reference, the
61
- identifier and timestamp of the earlier request whose provider counter is
62
- used; a seat identifier, which is either a value you set or an opaque value
63
- computed on your machine as a keyed hash (HMAC-SHA-256 wherever the
64
- runtime provides it), keyed with your service-account key, of the
65
- platform, CPU architecture, runtime executable path, host name,
66
- operating-system user name, and home directory (those underlying values
67
- are never sent); for traffic through the local gateway,
68
- the session and sub-agent identifiers that your coding agent attaches to
69
- its own requests (for example, Claude Code's session id), only when they
70
- are plain identifiers; an organization hint; and a flag marking CI or
71
- ephemeral runners;
72
- (ii) the identifier of the model that served the request (the model named in
73
- the request or, where the Software sent the request to another model under
74
- a setting you enabled, that model; for a self-hosted or Azure deployment,
75
- the name you gave it) and the time of the request;
76
- (iii) counts: LLM calls executed and avoided; input and output tokens before
77
- and after the Software's optimizations, including tokens removed,
78
- compressed, or read from the provider's cache; and the cache outcome; and
79
- (iv) cost figures computed by the Software from its price catalogue (or from
80
- a cost model you supply): baseline cost, actual cost, the net-saving
81
- ratio, the basis of the figures (measured, reference, estimated, shadow,
82
- or unmeasured), the value, at the provider's cache-read price, of
83
- input tokens your provider reported as cleared from context, and the
84
- discount your provider's own prompt cache gave the request and the
85
- cache-write premium it billed, which are shown apart and never used to
86
- calculate the fees in Section 6.
87
- Each batch of records also carries the Software's surface and version (for
88
- example, "gateway/0.4.23"). BiVelio's ingest rejects any record that carries a
89
- field not listed above. Separately, the Software fetches from BiVelio its current
90
- license token, the signed license revocation list and, for the gateway, your
91
- organization's feature entitlements; these requests carry your service-account
92
- key where authentication is required, and no request data. Like any HTTPS
93
- request, all of the above also reveals ordinary network metadata, such as your
94
- IP address. If you enable the SDK's optional verification, which is off by
95
- default, the SDK also sends BiVelio, through a separate channel and for each
96
- request it samples: a label marking the record as a verification sample; the
97
- request identifier and time; the model requested and the model that served it;
98
- the cache outcome; the category of the request and the outcome of the check;
99
- the input, cached-input, and output token counts and the cost of the served
100
- request and of the unoptimized copy the SDK sent to your LLM provider; how
101
- that copy finished and whether it met the response contract; and the per-token
102
- prices applied; together with daily counts of requests per category and a
103
- random batch identifier. That channel likewise rejects any field not listed
104
- here, and none of it is used to calculate the fees in Section 6.
105
- (c) BiVelio uses this data to operate licensing and revocation, show your
106
- dashboard, count billable seats, and calculate the fees in Section 6. Each
107
- field, and how long BiVelio keeps it, is further described at
108
- https://savings.bivelio.com/privacy.
109
-
110
- 6. FEES. Your subscription is subject to BiVelio's pricing as published at
111
- https://savings.bivelio.com/pricing (the "Published Pricing") for each billing
112
- period:
113
- (a) a subscription fee, per seat or for a plan that includes a number of seats,
114
- payable whether or not the Software produces any saving; and (b) only if your
115
- subscription is on a plan that the Published Pricing lists as carrying a
116
- commission, a commission, at tiered marginal rates, charged only on measured
117
- savings, meaning savings whose basis is labelled "measured" or "reference" in
118
- your usage records (Section 5(b)(iv)). A "measured" saving is established from
119
- your LLM provider's own usage counter for that request; a "reference" saving, for
120
- a repeated request the Software served without calling your provider, from your
121
- provider's counter for the identical earlier request that did run. Both are
122
- valued at the per-token prices the Software applied to that request: those of a
123
- cost model you configure, where you configure one, and otherwise your provider's
124
- list prices in the price catalogue included in the Software. Savings labelled
125
- "estimated", "shadow", or "unmeasured" never carry commission. Traffic the
126
- Software identifies as a flat-rate provider subscription (a Claude or ChatGPT
127
- subscription used through the local gateway) is metered but credited no measured
128
- saving, so it carries no commission. A period with no measured savings carries no
129
- commission. The first calendar month (UTC) in which your organization reports any
130
- usage is a calibration period, however little of that month remains, and carries
131
- no commission. Nor is commission charged for a period that BiVelio closes while
132
- your account is exempt from it. Your account is exempt if BiVelio grants it an
133
- exemption and, until a payment is made on the account, if its subscription was
134
- activated with a promotional code that waives the subscription fee in full for
135
- its entire term. For a calibration or exempt period the statement still shows the
136
- commission that would have applied. Each period's commission is
137
- itemized on a statement in your dashboard, together with the exchange rate
138
- applied. Rates, tier thresholds, and currency are those of the Published Pricing
139
- and are not restated here.
140
-
141
- 7. TERM AND TERMINATION. This Agreement remains in effect while your subscription is
142
- active. BiVelio may terminate this Agreement immediately if you breach it. Upon
143
- expiry or termination you must cease all use of the Software and destroy your
144
- copies. Sections 2 through 10 survive termination.
145
-
146
- 8. DISCLAIMER OF WARRANTY. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
147
- KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
148
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT.
149
-
150
- 9. LIMITATION OF LIABILITY. TO THE MAXIMUM EXTENT PERMITTED BY LAW, IN NO EVENT SHALL
151
- BIVELIO INC. BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, OR
152
- EXEMPLARY DAMAGES, OR FOR ANY LOSS OF PROFITS, REVENUE, OR DATA, ARISING FROM OR
153
- RELATED TO THE SOFTWARE OR THIS AGREEMENT. BIVELIO'S TOTAL LIABILITY SHALL NOT
154
- EXCEED THE FEES YOU PAID FOR THE SOFTWARE IN THE TWELVE MONTHS PRECEDING THE CLAIM.
155
-
156
- 10. GENERAL. This Agreement is governed by the laws of the State of Delaware, USA,
157
- without regard to its conflict-of-laws rules. If any provision is held
158
- unenforceable, the remaining provisions remain in effect. This Agreement, together
159
- with the applicable BiVelio subscription terms, constitutes the entire agreement
160
- between you and BiVelio regarding the Software. Unauthorized use, reproduction, or
161
- distribution of the Software may result in civil and criminal penalties.
162
-
163
- For licensing and compliance inquiries, contact: BiVelio Inc. — privacy@bivelio.com
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, and
10
+ distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright
13
+ owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all other entities
16
+ that control, are controlled by, or are under common control with that entity.
17
+ For the purposes of this definition, "control" means (i) the power, direct or
18
+ indirect, to cause the direction or management of such entity, whether by
19
+ contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the
20
+ outstanding shares, or (iii) beneficial ownership of such entity.
21
+
22
+ "You" (or "Your") shall mean an individual or Legal Entity exercising
23
+ permissions granted by this License.
24
+
25
+ "Source" form shall mean the preferred form for making modifications, including
26
+ but not limited to software source code, documentation source, and configuration
27
+ files.
28
+
29
+ "Object" form shall mean any form resulting from mechanical transformation or
30
+ translation of a Source form, including but not limited to compiled object code,
31
+ generated documentation, and conversions to other media types.
32
+
33
+ "Work" shall mean the work of authorship, whether in Source or Object form, made
34
+ available under the License, as indicated by a copyright notice that is included
35
+ in or attached to the work (an example is provided in the Appendix below).
36
+
37
+ "Derivative Works" shall mean any work, whether in Source or Object form, that is
38
+ based on (or derived from) the Work and for which the editorial revisions,
39
+ annotations, elaborations, or other modifications represent, as a whole, an
40
+ original work of authorship. For the purposes of this License, Derivative Works
41
+ shall not include works that remain separable from, or merely link (or bind by
42
+ name) to the interfaces of, the Work and Derivative Works thereof.
43
+
44
+ "Contribution" shall mean any work of authorship, including the original version
45
+ of the Work and any modifications or additions to that Work or Derivative Works
46
+ thereof, that is intentionally submitted to Licensor for inclusion in the Work
47
+ by the copyright owner or by an individual or Legal Entity authorized to submit
48
+ on behalf of the copyright owner. For the purposes of this definition,
49
+ "submitted" means any form of electronic, verbal, or written communication sent
50
+ to the Licensor or its representatives, including but not limited to
51
+ communication on electronic mailing lists, source code control systems, and
52
+ issue tracking systems that are managed by, or on behalf of, the Licensor for
53
+ the purpose of discussing and improving the Work, but excluding communication
54
+ that is conspicuously marked or otherwise designated in writing by the copyright
55
+ owner as "Not a Contribution."
56
+
57
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of
58
+ whom a Contribution has been received by Licensor and subsequently incorporated
59
+ within the Work.
60
+
61
+ 2. Grant of Copyright License. Subject to the terms and conditions of this
62
+ License, each Contributor hereby grants to You a perpetual, worldwide,
63
+ non-exclusive, no-charge, royalty-free, irrevocable copyright license to
64
+ reproduce, prepare Derivative Works of, publicly display, publicly perform,
65
+ sublicense, and distribute the Work and such Derivative Works in Source or
66
+ Object form.
67
+
68
+ 3. Grant of Patent License. Subject to the terms and conditions of this License,
69
+ each Contributor hereby grants to You a perpetual, worldwide, non-exclusive,
70
+ no-charge, royalty-free, irrevocable (except as stated in this section) patent
71
+ license to make, have made, use, offer to sell, sell, import, and otherwise
72
+ transfer the Work, where such license applies only to those patent claims
73
+ licensable by such Contributor that are necessarily infringed by their
74
+ Contribution(s) alone or by combination of their Contribution(s) with the Work
75
+ to which such Contribution(s) was submitted. If You institute patent litigation
76
+ against any entity (including a cross-claim or counterclaim in a lawsuit)
77
+ alleging that the Work or a Contribution incorporated within the Work
78
+ constitutes direct or contributory patent infringement, then any patent licenses
79
+ granted to You under this License for that Work shall terminate as of the date
80
+ such litigation is filed.
81
+
82
+ 4. Redistribution. You may reproduce and distribute copies of the Work or
83
+ Derivative Works thereof in any medium, with or without modifications, and in
84
+ Source or Object form, provided that You meet the following conditions:
85
+
86
+ (a) You must give any other recipients of the Work or Derivative Works a copy of
87
+ this License; and
88
+
89
+ (b) You must cause any modified files to carry prominent notices stating that
90
+ You changed the files; and
91
+
92
+ (c) You must retain, in the Source form of any Derivative Works that You
93
+ distribute, all copyright, patent, trademark, and attribution notices from the
94
+ Source form of the Work, excluding those notices that do not pertain to any part
95
+ of the Derivative Works; and
96
+
97
+ (d) If the Work includes a "NOTICE" text file as part of its distribution, then
98
+ any Derivative Works that You distribute must include a readable copy of the
99
+ attribution notices contained within such NOTICE file, excluding those notices
100
+ that do not pertain to any part of the Derivative Works, in at least one of the
101
+ following places: within a NOTICE text file distributed as part of the
102
+ Derivative Works; within the Source form or documentation, if provided along
103
+ with the Derivative Works; or, within a display generated by the Derivative
104
+ Works, if and wherever such third-party notices normally appear. The contents of
105
+ the NOTICE file are for informational purposes only and do not modify the
106
+ License. You may add Your own attribution notices within Derivative Works that
107
+ You distribute, alongside or as an addendum to the NOTICE text from the Work,
108
+ provided that such additional attribution notices cannot be construed as
109
+ modifying the License.
110
+
111
+ You may add Your own copyright statement to Your modifications and may provide
112
+ additional or different license terms and conditions for use, reproduction, or
113
+ distribution of Your modifications, or for any such Derivative Works as a whole,
114
+ provided Your use, reproduction, and distribution of the Work otherwise
115
+ complies with the conditions stated in this License.
116
+
117
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any
118
+ Contribution intentionally submitted for inclusion in the Work by You to the
119
+ Licensor shall be under the terms and conditions of this License, without any
120
+ additional terms or conditions. Notwithstanding the above, nothing herein shall
121
+ supersede or modify the terms of any separate license agreement you may have
122
+ executed with Licensor regarding such Contributions.
123
+
124
+ 6. Trademarks. This License does not grant permission to use the trade names,
125
+ trademarks, service marks, or product names of the Licensor, except as required
126
+ for reasonable and customary use in describing the origin of the Work and
127
+ reproducing the content of the NOTICE file.
128
+
129
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in
130
+ writing, Licensor provides the Work (and each Contributor provides its
131
+ Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
132
+ KIND, either express or implied, including, without limitation, any warranties
133
+ or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
134
+ PARTICULAR PURPOSE. You are solely responsible for determining the
135
+ appropriateness of using or redistributing the Work and assume any risks
136
+ associated with Your exercise of permissions under this License.
137
+
138
+ 8. Limitation of Liability. In no event and under no legal theory, whether in
139
+ tort (including negligence), contract, or otherwise, unless required by
140
+ applicable law (such as deliberate and grossly negligent acts) or agreed to in
141
+ writing, shall any Contributor be liable to You for damages, including any
142
+ direct, indirect, special, incidental, or consequential damages of any character
143
+ arising as a result of this License or out of the use or inability to use the
144
+ Work (including but not limited to damages for loss of goodwill, work stoppage,
145
+ computer failure or malfunction, or any and all other commercial damages or
146
+ losses), even if such Contributor has been advised of the possibility of such
147
+ damages.
148
+
149
+ 9. Accepting Warranty or Additional Liability. While redistributing the Work or
150
+ Derivative Works thereof, You may choose to offer, and charge a fee for,
151
+ acceptance of support, warranty, indemnity, or other liability obligations
152
+ and/or rights consistent with this License. However, in accepting such
153
+ obligations, You may act only on Your own behalf and on Your sole
154
+ responsibility, not on behalf of any other Contributor, and only if You agree to
155
+ indemnify, defend, and hold each Contributor harmless for any liability incurred
156
+ by, or claims asserted against, such Contributor by reason of your accepting any
157
+ such warranty or additional liability.
158
+
159
+ END OF TERMS AND CONDITIONS
160
+
161
+ APPENDIX: How to apply the Apache License to your work.
162
+
163
+ To apply the Apache License to your work, attach the following boilerplate
164
+ notice, with the fields enclosed by brackets "[]" replaced with your own
165
+ identifying information. (Don't include the brackets!) The text should be
166
+ enclosed in the appropriate comment syntax for the file format. We also
167
+ recommend that a file or class name and description of purpose be included on
168
+ the same "printed page" as the copyright notice for easier identification within
169
+ third-party archives.
170
+
171
+ Copyright 2026 BiVelio Inc.
172
+
173
+ Licensed under the Apache License, Version 2.0 (the "License");
174
+ you may not use this file except in compliance with the License.
175
+ You may obtain a copy of the License at
176
+
177
+ http://www.apache.org/licenses/LICENSE-2.0
178
+
179
+ Unless required by applicable law or agreed to in writing, software
180
+ distributed under the License is distributed on an "AS IS" BASIS,
181
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
182
+ See the License for the specific language governing permissions and
183
+ limitations under the License.