aegiscode 6.8.36 → 7.0.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/README.md +39 -1
- package/package.json +1 -1
- package/src/app.js +74 -1
- package/src/chatflow.js +141 -1
- package/src/commands.js +172 -1
- package/src/engine.js +4 -2
- package/src/screens.js +118 -25
- package/vendor/client/aegis.js +22 -0
- package/vendor/client/byok-catalog.js +43 -8
- package/vendor/client/user-models.js +378 -0
- package/vendor/desktop/lib/local/autonomous.js +81 -0
- package/vendor/desktop/lib/local/engine.js +447 -14
- package/vendor/desktop/renderer/usage.js +68 -1
|
@@ -139,9 +139,36 @@ function estimatedBuckets(prompt, reply, reasoning) {
|
|
|
139
139
|
// Keys are matched by exact id first, then by prefix (ratesFor below), so a
|
|
140
140
|
// family row covers every dated variant of it.
|
|
141
141
|
const RATES = {
|
|
142
|
+
// Sonnet, Opus, Fable, Haiku — the four FAMILY rows, matched by prefix, and
|
|
143
|
+
// deliberately NOT re-pointed at any one generation's price.
|
|
144
|
+
//
|
|
145
|
+
// The tempting change is to price this row as Claude Sonnet 5's published
|
|
146
|
+
// $2.00/$10.00, on the theory that `sonnet` names Sonnet 5. It does not: this
|
|
147
|
+
// repo's own alias tables carry no such id. `cli/src/models.js` lists pooled
|
|
148
|
+
// seats by name and `cli/src/config.js` records that the platform "does not
|
|
149
|
+
// advertise" `sonnet` at all — a pin on it was a phantom that made the pool
|
|
150
|
+
// answer from its own default with no error. So a bare `sonnet` is a LABEL,
|
|
151
|
+
// not a route: `cli/src/tokens.js` uses it as the default stand-in when no
|
|
152
|
+
// model is named, and the family row here is what a non-`claude-`-prefixed
|
|
153
|
+
// spelling resolves to by prefix.
|
|
154
|
+
//
|
|
155
|
+
// $3.00/$15.00 is therefore the honest figure for it, and it is the SAME
|
|
156
|
+
// figure as `RATES.default` below — which is the point: an id that names no
|
|
157
|
+
// real vendored route prices exactly like an unpriced one, never like a
|
|
158
|
+
// current-generation model. Every id that DOES name a real model has an exact
|
|
159
|
+
// row in the Claude 5 block below, and an exact id out-ranks a prefix match,
|
|
160
|
+
// so correcting those is what fixes the money — re-pointing this family row
|
|
161
|
+
// only moves the number an admitted placeholder reports, and silently
|
|
162
|
+
// re-prices every dated spelling that resolves here by prefix
|
|
163
|
+
// (`sonnet-4-5-20250929` is pinned at $3.00 in test/turn-accounting.test.mjs
|
|
164
|
+
// for exactly that reason).
|
|
142
165
|
sonnet: { input: 3.00, output: 15.00, cacheRead: 0.30, cacheWrite: 3.75 },
|
|
143
166
|
default: { input: 3.00, output: 15.00, cacheRead: 0.30, cacheWrite: 3.75 },
|
|
144
|
-
|
|
167
|
+
// Fable — the alias for **claude-fable-5**, at Fable's published
|
|
168
|
+
// $10.00/$50.00. The $5.00/$25.00 this row used to carry is the Opus-class
|
|
169
|
+
// figure; Fable has never been priced there, and the error ran in the
|
|
170
|
+
// under-reporting direction on the most expensive model in the lineup.
|
|
171
|
+
fable: { input: 10.00, output: 50.00, cacheRead: 1.00, cacheWrite: 12.50 },
|
|
145
172
|
opus: { input: 5.00, output: 25.00, cacheRead: 0.50, cacheWrite: 6.25 },
|
|
146
173
|
// Haiku — the same class of hole as the DeepSeek row below, on the provider
|
|
147
174
|
// whose prices we already thought we knew. The three rows above price Sonnet,
|
|
@@ -160,6 +187,46 @@ const RATES = {
|
|
|
160
187
|
// match is EXACT and cannot be reordered away.
|
|
161
188
|
'claude-haiku': { input: 1.00, output: 5.00, cacheRead: 0.10, cacheWrite: 1.25 },
|
|
162
189
|
|
|
190
|
+
// ── the Claude 5 line, one row per ID ────────────────────────────────────
|
|
191
|
+
//
|
|
192
|
+
// Every figure here is Anthropic's own published rate (docs.claude.com
|
|
193
|
+
// pricing table, fetched 2026-10-11), not a fraction derived from a sibling
|
|
194
|
+
// row. They are EXACT rows because the family fallback prices this
|
|
195
|
+
// generation wrong in both directions: `claude-sonnet-5-5` family-matched
|
|
196
|
+
// `sonnet` and `claude-fable-5-1` family-matched `fable`, so the very ids
|
|
197
|
+
// the picker offers and the BYOK relay forwards were billed at rates the
|
|
198
|
+
// vendor does not charge for them.
|
|
199
|
+
//
|
|
200
|
+
// cacheRead is NOT the 0.1x-input convention the 4.x rows above use.
|
|
201
|
+
// Anthropic changed the cache-hit multiplier on this generation and quotes
|
|
202
|
+
// it per model — 5% of input on Opus 5.5 and Sonnet 5.5 ($0.20 / $0.10),
|
|
203
|
+
// 2.5% on Fable 5.1 ($0.25), 10% on Fable 5 and Haiku 5.5 ($1.00 / $0.01)
|
|
204
|
+
// — so each row carries the published number rather than a multiplier this
|
|
205
|
+
// file computed. cacheWrite stays 1.25x input, which the same table
|
|
206
|
+
// confirms for all of them.
|
|
207
|
+
//
|
|
208
|
+
// Haiku 5.5 is priced by PROMPT LENGTH: the vendor charges 5x input and 5x
|
|
209
|
+
// output once a request's prompt passes 100k tokens ($0.50/$2.50). This
|
|
210
|
+
// schema has no prompt-size field — the only tiering it models is
|
|
211
|
+
// DeepSeek's time-of-day peak/offPeak — so the row carries the up-to-100k
|
|
212
|
+
// tier and a long-context Haiku turn UNDER-reports. Said out loud rather
|
|
213
|
+
// than left implicit: the alternative is 5x-ing every ordinary Haiku turn,
|
|
214
|
+
// which is the louder error.
|
|
215
|
+
'claude-opus-5': { input: 5.00, output: 25.00, cacheRead: 0.50, cacheWrite: 6.25 },
|
|
216
|
+
'claude-opus-5-5': { input: 4.00, output: 20.00, cacheRead: 0.20, cacheWrite: 5.00 },
|
|
217
|
+
'claude-sonnet-5': { input: 2.00, output: 10.00, cacheRead: 0.20, cacheWrite: 2.50 },
|
|
218
|
+
'claude-sonnet-5-5': { input: 2.00, output: 10.00, cacheRead: 0.10, cacheWrite: 2.50 },
|
|
219
|
+
'claude-haiku-5-5': { input: 0.10, output: 0.50, cacheRead: 0.01, cacheWrite: 0.125 },
|
|
220
|
+
'claude-fable-5': { input: 10.00, output: 50.00, cacheRead: 1.00, cacheWrite: 12.50 },
|
|
221
|
+
'claude-fable-5-1': { input: 10.00, output: 50.00, cacheRead: 0.25, cacheWrite: 12.50 },
|
|
222
|
+
// The Sonnet 4.x spellings keep their own line items now that `sonnet`
|
|
223
|
+
// above carries the 5-line price: without these, a Claude Sonnet 4.x turn —
|
|
224
|
+
// the id a config saved before this change still holds, and the wire model
|
|
225
|
+
// the dated form names — would family-match the alias row and be billed
|
|
226
|
+
// $2.00/$10.00 against the vendor's $3.00/$15.00.
|
|
227
|
+
'claude-sonnet-4-6': { input: 3.00, output: 15.00, cacheRead: 0.30, cacheWrite: 3.75 },
|
|
228
|
+
'claude-sonnet-4-5': { input: 3.00, output: 15.00, cacheRead: 0.30, cacheWrite: 3.75 },
|
|
229
|
+
|
|
163
230
|
// DeepSeek — read off the vendor's own pricing table
|
|
164
231
|
// (api-docs.deepseek.com/quick_start/pricing), not from a secondary blog and
|
|
165
232
|
// not from a mirror of our own catalog.
|