@bivelio/savings-layer 0.4.22 → 0.4.25

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/LICENSE CHANGED
@@ -9,11 +9,12 @@ copying, or using the Software, you agree to this Agreement. If you do not agree
9
9
  not install or use the Software.
10
10
 
11
11
  1. LICENSE GRANT. Subject to your continuous compliance with this Agreement and to
12
- an active, paid BiVelio subscription with a valid license key ("License Key"),
13
- BiVelio grants you a limited, non-exclusive, non-transferable, non-sublicensable,
14
- revocable license to install and use the Software, as published, solely for your
15
- own internal business purposes, and only for the number of seats covered by your
16
- subscription. The Software is licensed, not sold.
12
+ an active BiVelio subscription (paid, or granted by BiVelio at no charge, for
13
+ example through a promotional code or a pilot) with a valid license key
14
+ ("License Key"), BiVelio grants you a limited, non-exclusive, non-transferable,
15
+ non-sublicensable, revocable license to install and use the Software, as
16
+ published, solely for your own internal business purposes, and only for the
17
+ number of seats covered by your subscription. The Software is licensed, not sold.
17
18
 
18
19
  2. LICENSE KEY; FAIL-CLOSED OPERATION. The Software requires a valid, active License
19
20
  Key and does not operate without one. Expiry, non-payment, revocation, suspension,
@@ -25,13 +26,13 @@ not install or use the Software.
25
26
  3. RESTRICTIONS. Except as expressly permitted above, you will not: (a) distribute,
26
27
  publish, resell, rent, lease, lend, offer as a hosted or managed service, or
27
28
  otherwise make the Software available to any third party; (b) sublicense, assign,
28
- or transfer your rights; (c) use the Software for more seats than you have paid
29
- for, or share a License Key across more machines or service identities than your
30
- subscription covers; (d) remove, alter, or obscure any proprietary or copyright
31
- notice; (e) reverse engineer, decompile, or disassemble the Software, except to
32
- the limited extent applicable law expressly permits notwithstanding this
33
- restriction; or (f) use the Software to develop, train, or improve a product or
34
- service that competes with the Software.
29
+ or transfer your rights; (c) use the Software for more seats than your
30
+ subscription covers, or share a License Key across more machines or service
31
+ identities than it covers; (d) remove, alter, or obscure any proprietary or
32
+ copyright notice; (e) reverse engineer, decompile, or disassemble the Software,
33
+ except to the limited extent applicable law expressly permits notwithstanding
34
+ this restriction; or (f) use the Software to develop, train, or improve a product
35
+ or service that competes with the Software.
35
36
 
36
37
  4. OWNERSHIP. The Software is the exclusive property of BiVelio and its licensors and
37
38
  embodies valuable proprietary information and trade secrets. BiVelio retains all
@@ -39,27 +40,110 @@ not install or use the Software.
39
40
  rights therein. No rights are granted to you except as expressly set out in this
40
41
  Agreement, whether by implication, estoppel, or otherwise.
41
42
 
42
- 5. YOUR DATA; PRIVACY. Your prompts, completions, and content are processed within
43
- your own infrastructure and are not transmitted to BiVelio in order to serve a
44
- request. BiVelio's control plane receives only usage counts and cost metadata, as
45
- described in the BiVelio documentation and privacy terms.
43
+ 5. YOUR DATA; PRIVACY.
44
+ (a) What the Software never sends to BiVelio. The Software never transmits to
45
+ BiVelio the content of your requests or responses (including prompts, system
46
+ instructions, messages, tool definitions, tool arguments and results, retrieved
47
+ documents, and completions) or the credentials you use with your LLM provider
48
+ (API keys, OAuth tokens, or other authorization headers). That content and those
49
+ credentials travel only between your systems and the LLM provider you configure.
50
+ (b) What the Software sends to BiVelio. The SDK contacts BiVelio only when you
51
+ configure a license server or metering URL; the local gateway always does. With a
52
+ BiVelio service-account key, the Software sends BiVelio's control plane usage
53
+ records for the requests it meters, each limited to:
54
+ (i) identifiers: a request identifier generated on your side (at random, or by
55
+ your own generator); for a repeated request valued by reference, the
56
+ identifier and timestamp of the earlier request whose provider counter is
57
+ used; a seat identifier, which is either a value you set or an opaque value
58
+ computed on your machine as a keyed hash (HMAC-SHA-256 wherever the
59
+ runtime provides it), keyed with your service-account key, of the
60
+ platform, CPU architecture, runtime executable path, host name,
61
+ operating-system user name, and home directory (those underlying values
62
+ are never sent); for traffic through the local gateway,
63
+ the session and sub-agent identifiers that your coding agent attaches to
64
+ its own requests (for example, Claude Code's session id), only when they
65
+ are plain identifiers; an organization hint; and a flag marking CI or
66
+ ephemeral runners;
67
+ (ii) the identifier of the model that served the request (the model named in
68
+ the request or, where the Software sent the request to another model under
69
+ a setting you enabled, that model; for a self-hosted or Azure deployment,
70
+ the name you gave it) and the time of the request;
71
+ (iii) counts: LLM calls executed and avoided; input and output tokens before
72
+ and after the Software's optimizations, including tokens removed,
73
+ compressed, or read from the provider's cache; and the cache outcome; and
74
+ (iv) cost figures computed by the Software from its price catalogue (or from
75
+ a cost model you supply): baseline cost, actual cost, the net-saving
76
+ ratio, the basis of the figures (measured, reference, estimated, shadow,
77
+ or unmeasured), and the value, at the provider's cache-read price, of
78
+ input tokens your provider reported as cleared from context.
79
+ Each batch of records also carries the Software's surface and version (for
80
+ example, "gateway/0.4.23"). BiVelio's ingest rejects any record that carries a
81
+ field not listed above. Separately, the Software fetches from BiVelio its current
82
+ license token, the signed license revocation list and, for the gateway, your
83
+ organization's feature entitlements; these requests carry your service-account
84
+ key where authentication is required, and no request data. Like any HTTPS
85
+ request, all of the above also reveals ordinary network metadata, such as your
86
+ IP address. If you enable the SDK's optional verification, which is off by
87
+ default, the SDK also sends BiVelio, through a separate channel and for each
88
+ request it samples: a label marking the record as a verification sample; the
89
+ request identifier and time; the model requested and the model that served it;
90
+ the cache outcome; the category of the request and the outcome of the check;
91
+ the input, cached-input, and output token counts and the cost of the served
92
+ request and of the unoptimized copy the SDK sent to your LLM provider; how
93
+ that copy finished and whether it met the response contract; and the per-token
94
+ prices applied; together with daily counts of requests per category and a
95
+ random batch identifier. That channel likewise rejects any field not listed
96
+ here, and none of it is used to calculate the fees in Section 6.
97
+ (c) BiVelio uses this data to operate licensing and revocation, show your
98
+ dashboard, count billable seats, and calculate the fees in Section 6. Each
99
+ field, and how long BiVelio keeps it, is further described at
100
+ https://savings.bivelio.com/privacy.
46
101
 
47
- 6. TERM AND TERMINATION. This Agreement remains in effect while your subscription is
102
+ 6. FEES. Your subscription is subject to BiVelio's pricing as published at
103
+ https://savings.bivelio.com/pricing (the "Published Pricing") for each billing
104
+ period:
105
+ (a) a subscription fee per seat, payable whether or not the Software produces any
106
+ saving; and (b) a commission, at tiered marginal rates, charged only on measured
107
+ savings, meaning savings whose basis is labelled "measured" or "reference" in
108
+ your usage records (Section 5(b)(iv)). A "measured" saving is established from
109
+ your LLM provider's own usage counter for that request; a "reference" saving, for
110
+ a repeated request the Software served without calling your provider, from your
111
+ provider's counter for the identical earlier request that did run. Both are
112
+ valued at the per-token prices the Software applied to that request: those of a
113
+ cost model you configure, where you configure one, and otherwise your provider's
114
+ list prices in the price catalogue included in the Software. Savings labelled
115
+ "estimated", "shadow", or "unmeasured" never carry commission. Traffic the
116
+ Software identifies as a flat-rate provider subscription (a Claude or ChatGPT
117
+ subscription used through the local gateway) is metered but credited no measured
118
+ saving, so it carries no commission. A period with no measured savings carries no
119
+ commission. The first calendar month (UTC) in which your organization reports any
120
+ usage is a calibration period, however little of that month remains, and carries
121
+ no commission. Nor is commission charged for a period that BiVelio closes while
122
+ your account is exempt from it. Your account is exempt if BiVelio grants it an
123
+ exemption and, until a payment is made on the account, if its subscription was
124
+ activated with a promotional code that waives the subscription fee in full for
125
+ its entire term. For a calibration or exempt period the statement still shows the
126
+ commission that would have applied. Each period's commission is
127
+ itemized on a statement in your dashboard, together with the exchange rate
128
+ applied. Rates, tier thresholds, and currency are those of the Published Pricing
129
+ and are not restated here.
130
+
131
+ 7. TERM AND TERMINATION. This Agreement remains in effect while your subscription is
48
132
  active. BiVelio may terminate this Agreement immediately if you breach it. Upon
49
133
  expiry or termination you must cease all use of the Software and destroy your
50
- copies. Sections 2 through 9 survive termination.
134
+ copies. Sections 2 through 10 survive termination.
51
135
 
52
- 7. DISCLAIMER OF WARRANTY. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
136
+ 8. DISCLAIMER OF WARRANTY. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
53
137
  KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
54
138
  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT.
55
139
 
56
- 8. LIMITATION OF LIABILITY. TO THE MAXIMUM EXTENT PERMITTED BY LAW, IN NO EVENT SHALL
140
+ 9. LIMITATION OF LIABILITY. TO THE MAXIMUM EXTENT PERMITTED BY LAW, IN NO EVENT SHALL
57
141
  BIVELIO INC. BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, OR
58
142
  EXEMPLARY DAMAGES, OR FOR ANY LOSS OF PROFITS, REVENUE, OR DATA, ARISING FROM OR
59
143
  RELATED TO THE SOFTWARE OR THIS AGREEMENT. BIVELIO'S TOTAL LIABILITY SHALL NOT
60
144
  EXCEED THE FEES YOU PAID FOR THE SOFTWARE IN THE TWELVE MONTHS PRECEDING THE CLAIM.
61
145
 
62
- 9. GENERAL. This Agreement is governed by the laws of the State of Delaware, USA,
146
+ 10. GENERAL. This Agreement is governed by the laws of the State of Delaware, USA,
63
147
  without regard to its conflict-of-laws rules. If any provision is held
64
148
  unenforceable, the remaining provisions remain in effect. This Agreement, together
65
149
  with the applicable BiVelio subscription terms, constitutes the entire agreement