@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 +138 -0
- package/LICENSE +183 -163
- package/LICENSE-CLOUD.md +174 -0
- package/NOTICE +11 -0
- package/README.md +228 -122
- package/dist/adapters/ai-sdk.js +78 -78
- package/dist/adapters/anthropic-sdk.js +88 -88
- package/dist/adapters/langchain.js +58 -58
- package/dist/adapters/mastra.js +70 -70
- package/dist/gateway/bin.js +1291 -1082
- package/dist/index.d.ts +393 -194
- package/dist/index.js +1704 -1612
- package/docs/terminales/README.md +39 -33
- package/docs/terminales/aider.md +1 -1
- package/docs/terminales/claude-code.md +2 -2
- package/docs/terminales/cline.md +1 -1
- package/docs/terminales/codex.md +3 -3
- package/docs/terminales/copilot.md +1 -1
- package/docs/terminales/crush.md +1 -1
- package/docs/terminales/cursor.md +32 -0
- package/docs/terminales/deepseek.md +28 -0
- package/docs/terminales/droid.md +1 -1
- package/docs/terminales/gemini.md +38 -0
- package/docs/terminales/goose.md +2 -2
- package/docs/terminales/kilo.md +2 -2
- package/docs/terminales/no-soportados.md +16 -27
- package/docs/terminales/ollama.md +19 -0
- package/docs/terminales/opencode.md +2 -2
- package/docs/terminales/qwen-code.md +2 -2
- package/package.json +50 -20
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
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.
|