@akasecurity/ai-tc-codex 0.9.17 → 0.9.18
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/.codex-plugin/plugin.json +1 -1
- package/package.json +6 -6
- package/scripts/apply-suppressions.js +311 -49
- package/scripts/backfill.js +311 -49
- package/scripts/content-retention.js +306 -48
- package/scripts/filescan.js +358 -93
- package/scripts/firstrun.js +311 -49
- package/scripts/history-sync.js +306 -48
- package/scripts/intro.js +289 -37
- package/scripts/onboard.js +311 -49
- package/scripts/post-tool-use.js +311 -49
- package/scripts/pre-tool-use.js +311 -49
- package/scripts/query.js +311 -49
- package/scripts/reconcile.js +311 -49
- package/scripts/remediate.js +311 -49
- package/scripts/scan-worker.js +293 -37
- package/scripts/session-start.js +358 -93
- package/scripts/start-light.js +293 -37
- package/scripts/stop.js +295 -38
- package/scripts/sync.js +358 -93
- package/scripts/user-prompt-submit.js +311 -49
package/scripts/backfill.js
CHANGED
|
@@ -19859,7 +19859,10 @@ function date4(params) {
|
|
|
19859
19859
|
var LongContextTier = external_exports.object({
|
|
19860
19860
|
thresholdInputTokens: external_exports.number().int().positive(),
|
|
19861
19861
|
input: external_exports.number().nonnegative().nullable(),
|
|
19862
|
-
output: external_exports.number().nonnegative().nullable()
|
|
19862
|
+
output: external_exports.number().nonnegative().nullable(),
|
|
19863
|
+
cacheRead: external_exports.number().nonnegative().nullable().optional(),
|
|
19864
|
+
cacheWrite5m: external_exports.number().nonnegative().nullable().optional(),
|
|
19865
|
+
cacheWrite1h: external_exports.number().nonnegative().nullable().optional()
|
|
19863
19866
|
});
|
|
19864
19867
|
var ModelPrice = external_exports.object({
|
|
19865
19868
|
/** USD per 1M uncached input tokens, at or below any long-context threshold. */
|
|
@@ -19868,7 +19871,8 @@ var ModelPrice = external_exports.object({
|
|
|
19868
19871
|
output: external_exports.number().nonnegative(),
|
|
19869
19872
|
/**
|
|
19870
19873
|
* Rate band above a size threshold, or `null` when the model is flat-rated.
|
|
19871
|
-
*
|
|
19874
|
+
* OpenAI, Google, xAI and some Anthropic models (Haiku 5.5) band; most
|
|
19875
|
+
* Claude models are flat across their window.
|
|
19872
19876
|
*/
|
|
19873
19877
|
longContext: LongContextTier.nullable(),
|
|
19874
19878
|
/** USD per 1M tokens written to a 5-minute ephemeral cache, or null if unpriced. */
|
|
@@ -19881,18 +19885,35 @@ var ModelPrice = external_exports.object({
|
|
|
19881
19885
|
webSearch: external_exports.number().nonnegative().nullable()
|
|
19882
19886
|
});
|
|
19883
19887
|
var WEB_SEARCH_PER_REQUEST = 0.01;
|
|
19884
|
-
function anthropicPrice(input2, output2, cacheRead) {
|
|
19888
|
+
function anthropicPrice(input2, output2, cacheRead, longContext = null) {
|
|
19885
19889
|
return Object.freeze({
|
|
19886
19890
|
input: input2,
|
|
19887
19891
|
output: output2,
|
|
19888
|
-
longContext: null,
|
|
19889
|
-
// flat across the full window on every current Claude
|
|
19892
|
+
longContext: longContext === null ? null : Object.freeze(longContext),
|
|
19890
19893
|
cacheWrite5m: input2 * 1.25,
|
|
19891
19894
|
cacheWrite1h: input2 * 2,
|
|
19892
19895
|
cacheRead,
|
|
19893
19896
|
webSearch: WEB_SEARCH_PER_REQUEST
|
|
19894
19897
|
});
|
|
19895
19898
|
}
|
|
19899
|
+
function anthropicBand(thresholdInputTokens, input2, output2, cacheRead) {
|
|
19900
|
+
return {
|
|
19901
|
+
thresholdInputTokens,
|
|
19902
|
+
input: input2,
|
|
19903
|
+
output: output2,
|
|
19904
|
+
cacheRead,
|
|
19905
|
+
cacheWrite5m: input2 * 1.25,
|
|
19906
|
+
cacheWrite1h: input2 * 2
|
|
19907
|
+
};
|
|
19908
|
+
}
|
|
19909
|
+
function scaledBand(thresholdInputTokens, base, scale) {
|
|
19910
|
+
return {
|
|
19911
|
+
thresholdInputTokens,
|
|
19912
|
+
input: base.input * scale.input,
|
|
19913
|
+
output: base.output * scale.output,
|
|
19914
|
+
...base.cacheRead === void 0 ? {} : { cacheRead: base.cacheRead * scale.cacheRead }
|
|
19915
|
+
};
|
|
19916
|
+
}
|
|
19896
19917
|
function tokenPrice(input2, output2, options = {}) {
|
|
19897
19918
|
return Object.freeze({
|
|
19898
19919
|
input: input2,
|
|
@@ -19925,17 +19946,19 @@ function serviceTierMultiplier(tier) {
|
|
|
19925
19946
|
function promptTokensOf(usage) {
|
|
19926
19947
|
return usage.promptTokens ?? (usage.inputTokens ?? 0) + (usage.cacheReadTokens ?? 0) + (usage.cacheWrite1hTokens ?? 0) + (usage.cacheWrite5mTokens ?? 0);
|
|
19927
19948
|
}
|
|
19949
|
+
function bandRate(column, base) {
|
|
19950
|
+
return column === void 0 ? base : column;
|
|
19951
|
+
}
|
|
19928
19952
|
function costOf(price, usage) {
|
|
19953
|
+
const band = price.longContext !== null && promptTokensOf(usage) > price.longContext.thresholdInputTokens ? price.longContext : null;
|
|
19929
19954
|
const metered = [
|
|
19930
|
-
[usage.
|
|
19931
|
-
[usage.
|
|
19932
|
-
[usage.
|
|
19955
|
+
[usage.inputTokens ?? 0, bandRate(band?.input, price.input)],
|
|
19956
|
+
[usage.outputTokens ?? 0, bandRate(band?.output, price.output)],
|
|
19957
|
+
[usage.cacheWrite1hTokens ?? 0, bandRate(band?.cacheWrite1h, price.cacheWrite1h)],
|
|
19958
|
+
[usage.cacheWrite5mTokens ?? 0, bandRate(band?.cacheWrite5m, price.cacheWrite5m)],
|
|
19959
|
+
[usage.cacheReadTokens ?? 0, bandRate(band?.cacheRead, price.cacheRead)]
|
|
19933
19960
|
];
|
|
19934
|
-
|
|
19935
|
-
if (band !== null && (band.input === null || band.output === null)) return null;
|
|
19936
|
-
const inputRate = band?.input ?? price.input;
|
|
19937
|
-
const outputRate = band?.output ?? price.output;
|
|
19938
|
-
let tokenCost = (usage.inputTokens ?? 0) * inputRate + (usage.outputTokens ?? 0) * outputRate;
|
|
19961
|
+
let tokenCost = 0;
|
|
19939
19962
|
for (const [tokens, rate] of metered) {
|
|
19940
19963
|
if (tokens === 0) continue;
|
|
19941
19964
|
if (rate === null) return null;
|
|
@@ -20225,10 +20248,20 @@ anthropic.model("claude-fable-5-1", {
|
|
|
20225
20248
|
});
|
|
20226
20249
|
anthropic.model("claude-fable-5", {
|
|
20227
20250
|
name: "Claude Fable 5",
|
|
20251
|
+
ctx: 1e6,
|
|
20252
|
+
maxOut: 128e3,
|
|
20228
20253
|
capability: "reasoning",
|
|
20229
20254
|
price: anthropicPrice(10, 50, 1),
|
|
20230
20255
|
on: [...CLAUDE_RESELLERS]
|
|
20231
20256
|
});
|
|
20257
|
+
anthropic.model("claude-opus-5-5", {
|
|
20258
|
+
name: "Claude Opus 5.5",
|
|
20259
|
+
ctx: 1e6,
|
|
20260
|
+
maxOut: 128e3,
|
|
20261
|
+
capability: "reasoning",
|
|
20262
|
+
price: anthropicPrice(4, 20, 0.2),
|
|
20263
|
+
on: [...CLAUDE_RESELLERS]
|
|
20264
|
+
});
|
|
20232
20265
|
anthropic.model("claude-opus-5", {
|
|
20233
20266
|
name: "Claude Opus 5",
|
|
20234
20267
|
ctx: 1e6,
|
|
@@ -20239,24 +20272,32 @@ anthropic.model("claude-opus-5", {
|
|
|
20239
20272
|
});
|
|
20240
20273
|
anthropic.model("claude-opus-4-8", {
|
|
20241
20274
|
name: "Claude Opus 4.8",
|
|
20275
|
+
ctx: 1e6,
|
|
20276
|
+
maxOut: 128e3,
|
|
20242
20277
|
capability: "reasoning",
|
|
20243
20278
|
price: anthropicPrice(5, 25, 0.5),
|
|
20244
20279
|
on: [...CLAUDE_RESELLERS]
|
|
20245
20280
|
});
|
|
20246
20281
|
anthropic.model("claude-opus-4-7", {
|
|
20247
20282
|
name: "Claude Opus 4.7",
|
|
20283
|
+
ctx: 1e6,
|
|
20284
|
+
maxOut: 128e3,
|
|
20248
20285
|
capability: "reasoning",
|
|
20249
20286
|
price: anthropicPrice(5, 25, 0.5),
|
|
20250
20287
|
on: [...CLAUDE_RESELLERS]
|
|
20251
20288
|
});
|
|
20252
20289
|
anthropic.model("claude-opus-4-6", {
|
|
20253
20290
|
name: "Claude Opus 4.6",
|
|
20291
|
+
ctx: 1e6,
|
|
20292
|
+
maxOut: 128e3,
|
|
20254
20293
|
capability: "reasoning",
|
|
20255
20294
|
price: anthropicPrice(5, 25, 0.5),
|
|
20256
20295
|
on: [...CLAUDE_RESELLERS]
|
|
20257
20296
|
});
|
|
20258
20297
|
anthropic.model("claude-opus-4-5", {
|
|
20259
20298
|
name: "Claude Opus 4.5",
|
|
20299
|
+
ctx: 2e5,
|
|
20300
|
+
maxOut: 64e3,
|
|
20260
20301
|
capability: "reasoning",
|
|
20261
20302
|
price: anthropicPrice(5, 25, 0.5),
|
|
20262
20303
|
on: [...CLAUDE_RESELLERS]
|
|
@@ -20267,6 +20308,14 @@ anthropic.model("claude-opus-4-1", {
|
|
|
20267
20308
|
price: anthropicPrice(15, 75, 1.5),
|
|
20268
20309
|
on: [...CLAUDE_RESELLERS]
|
|
20269
20310
|
});
|
|
20311
|
+
anthropic.model("claude-sonnet-5-5", {
|
|
20312
|
+
name: "Claude Sonnet 5.5",
|
|
20313
|
+
ctx: 1e6,
|
|
20314
|
+
maxOut: 128e3,
|
|
20315
|
+
capability: "reasoning",
|
|
20316
|
+
price: anthropicPrice(2, 10, 0.1),
|
|
20317
|
+
on: [...CLAUDE_RESELLERS]
|
|
20318
|
+
});
|
|
20270
20319
|
anthropic.model("claude-sonnet-5", {
|
|
20271
20320
|
name: "Claude Sonnet 5",
|
|
20272
20321
|
ctx: 1e6,
|
|
@@ -20277,16 +20326,30 @@ anthropic.model("claude-sonnet-5", {
|
|
|
20277
20326
|
});
|
|
20278
20327
|
anthropic.model("claude-sonnet-4-6", {
|
|
20279
20328
|
name: "Claude Sonnet 4.6",
|
|
20329
|
+
ctx: 1e6,
|
|
20330
|
+
maxOut: 128e3,
|
|
20280
20331
|
capability: "reasoning",
|
|
20281
20332
|
price: anthropicPrice(3, 15, 0.3),
|
|
20282
20333
|
on: [...CLAUDE_RESELLERS]
|
|
20283
20334
|
});
|
|
20284
20335
|
anthropic.model("claude-sonnet-4-5", {
|
|
20285
20336
|
name: "Claude Sonnet 4.5",
|
|
20337
|
+
ctx: 2e5,
|
|
20338
|
+
maxOut: 64e3,
|
|
20286
20339
|
capability: "reasoning",
|
|
20287
20340
|
price: anthropicPrice(3, 15, 0.3),
|
|
20288
20341
|
on: [...CLAUDE_RESELLERS]
|
|
20289
20342
|
});
|
|
20343
|
+
anthropic.model("claude-haiku-5-5", {
|
|
20344
|
+
name: "Claude Haiku 5.5",
|
|
20345
|
+
ctx: 1e6,
|
|
20346
|
+
maxOut: 128e3,
|
|
20347
|
+
capability: null,
|
|
20348
|
+
// A prompt over 100,000 tokens, cache reads and writes included, bills the
|
|
20349
|
+
// whole request at the higher band.
|
|
20350
|
+
price: anthropicPrice(0.1, 0.5, 0.01, anthropicBand(1e5, 0.5, 2.5, 0.05)),
|
|
20351
|
+
on: [...CLAUDE_RESELLERS]
|
|
20352
|
+
});
|
|
20290
20353
|
anthropic.model("claude-haiku-4-5", {
|
|
20291
20354
|
name: "Claude Haiku 4.5",
|
|
20292
20355
|
ctx: 2e5,
|
|
@@ -20309,7 +20372,13 @@ var OPENAI_TRAINING = {
|
|
|
20309
20372
|
consumerControl: "opt-out",
|
|
20310
20373
|
source: "https://developers.openai.com/api/docs/guides/your-data"
|
|
20311
20374
|
};
|
|
20312
|
-
|
|
20375
|
+
function gptPrice(input2, output2, cacheRead) {
|
|
20376
|
+
const base = { input: input2, output: output2, ...cacheRead === void 0 ? {} : { cacheRead } };
|
|
20377
|
+
return tokenPrice(input2, output2, {
|
|
20378
|
+
...base,
|
|
20379
|
+
longContext: scaledBand(272e3, base, { input: 2, output: 1.5, cacheRead: 2 })
|
|
20380
|
+
});
|
|
20381
|
+
}
|
|
20313
20382
|
var openai = vendor("openai", {
|
|
20314
20383
|
family: { id: "gpt", name: "GPT" },
|
|
20315
20384
|
region: "us",
|
|
@@ -20317,12 +20386,45 @@ var openai = vendor("openai", {
|
|
|
20317
20386
|
training: OPENAI_TRAINING
|
|
20318
20387
|
});
|
|
20319
20388
|
var OPENAI_RESELLERS = ["azure", "foundry"];
|
|
20389
|
+
openai.model("gpt-6-astra", {
|
|
20390
|
+
name: "GPT-6 Astra",
|
|
20391
|
+
ctx: 105e4,
|
|
20392
|
+
maxOut: 128e3,
|
|
20393
|
+
capability: "reasoning",
|
|
20394
|
+
price: gptPrice(10, 50, 1),
|
|
20395
|
+
on: [...OPENAI_RESELLERS]
|
|
20396
|
+
});
|
|
20397
|
+
openai.model("gpt-6.1-sol", {
|
|
20398
|
+
name: "GPT-6.1 Sol",
|
|
20399
|
+
ctx: 105e4,
|
|
20400
|
+
maxOut: 128e3,
|
|
20401
|
+
capability: "reasoning",
|
|
20402
|
+
price: gptPrice(2, 10, 0.1),
|
|
20403
|
+
on: [...OPENAI_RESELLERS]
|
|
20404
|
+
});
|
|
20405
|
+
openai.model("gpt-6-sol", {
|
|
20406
|
+
name: "GPT-6 Sol",
|
|
20407
|
+
ctx: 105e4,
|
|
20408
|
+
maxOut: 128e3,
|
|
20409
|
+
capability: "reasoning",
|
|
20410
|
+
price: gptPrice(2, 10, 0.2),
|
|
20411
|
+
on: [...OPENAI_RESELLERS]
|
|
20412
|
+
});
|
|
20413
|
+
openai.model("gpt-6-luna", {
|
|
20414
|
+
name: "GPT-6 Luna",
|
|
20415
|
+
ctx: 105e4,
|
|
20416
|
+
maxOut: 128e3,
|
|
20417
|
+
capability: null,
|
|
20418
|
+
price: gptPrice(0.1, 0.5, 0.01),
|
|
20419
|
+
on: [...OPENAI_RESELLERS]
|
|
20420
|
+
});
|
|
20320
20421
|
openai.model("gpt-5.6-sol", {
|
|
20321
20422
|
name: "GPT-5.6 Sol",
|
|
20423
|
+
// Promotional rate, published as available at least through 2026-11-21.
|
|
20322
20424
|
ctx: 105e4,
|
|
20323
20425
|
maxOut: 128e3,
|
|
20324
20426
|
capability: "reasoning",
|
|
20325
|
-
price:
|
|
20427
|
+
price: gptPrice(4, 20, 0.4),
|
|
20326
20428
|
on: [...OPENAI_RESELLERS]
|
|
20327
20429
|
});
|
|
20328
20430
|
openai.model("gpt-5.6-terra", {
|
|
@@ -20330,7 +20432,7 @@ openai.model("gpt-5.6-terra", {
|
|
|
20330
20432
|
ctx: 105e4,
|
|
20331
20433
|
maxOut: 128e3,
|
|
20332
20434
|
capability: "reasoning",
|
|
20333
|
-
price:
|
|
20435
|
+
price: gptPrice(2, 12, 0.2),
|
|
20334
20436
|
on: [...OPENAI_RESELLERS]
|
|
20335
20437
|
});
|
|
20336
20438
|
openai.model("gpt-5.6-luna", {
|
|
@@ -20338,7 +20440,7 @@ openai.model("gpt-5.6-luna", {
|
|
|
20338
20440
|
ctx: 105e4,
|
|
20339
20441
|
maxOut: 128e3,
|
|
20340
20442
|
capability: null,
|
|
20341
|
-
price:
|
|
20443
|
+
price: gptPrice(0.2, 1.2, 0.02),
|
|
20342
20444
|
on: [...OPENAI_RESELLERS]
|
|
20343
20445
|
});
|
|
20344
20446
|
openai.model("gpt-5.5", {
|
|
@@ -20346,7 +20448,15 @@ openai.model("gpt-5.5", {
|
|
|
20346
20448
|
ctx: 105e4,
|
|
20347
20449
|
maxOut: 128e3,
|
|
20348
20450
|
capability: "reasoning",
|
|
20349
|
-
price:
|
|
20451
|
+
price: gptPrice(5, 30, 0.5),
|
|
20452
|
+
on: [...OPENAI_RESELLERS]
|
|
20453
|
+
});
|
|
20454
|
+
openai.model("gpt-5.5-pro", {
|
|
20455
|
+
name: "GPT-5.5 Pro",
|
|
20456
|
+
ctx: 105e4,
|
|
20457
|
+
maxOut: 128e3,
|
|
20458
|
+
capability: "reasoning",
|
|
20459
|
+
price: gptPrice(30, 180),
|
|
20350
20460
|
on: [...OPENAI_RESELLERS]
|
|
20351
20461
|
});
|
|
20352
20462
|
openai.model("gpt-5.4", {
|
|
@@ -20354,7 +20464,7 @@ openai.model("gpt-5.4", {
|
|
|
20354
20464
|
ctx: 105e4,
|
|
20355
20465
|
maxOut: 128e3,
|
|
20356
20466
|
capability: "reasoning",
|
|
20357
|
-
price:
|
|
20467
|
+
price: gptPrice(2.5, 15, 0.25),
|
|
20358
20468
|
on: [...OPENAI_RESELLERS]
|
|
20359
20469
|
});
|
|
20360
20470
|
openai.model("gpt-5.4-mini", {
|
|
@@ -20400,6 +20510,7 @@ openai.model("gpt-5", {
|
|
|
20400
20510
|
openai.model("gpt-5-mini", {
|
|
20401
20511
|
name: "GPT-5 mini",
|
|
20402
20512
|
ctx: 4e5,
|
|
20513
|
+
maxOut: 128e3,
|
|
20403
20514
|
capability: null,
|
|
20404
20515
|
price: tokenPrice(0.25, 2, { cacheRead: 0.025 }),
|
|
20405
20516
|
on: [...OPENAI_RESELLERS]
|
|
@@ -20414,11 +20525,15 @@ openai.model("gpt-5-nano", {
|
|
|
20414
20525
|
});
|
|
20415
20526
|
openai.model("gpt-4.1", {
|
|
20416
20527
|
name: "GPT-4.1",
|
|
20528
|
+
ctx: 1047576,
|
|
20529
|
+
maxOut: 32768,
|
|
20417
20530
|
price: tokenPrice(2, 8, { cacheRead: 0.5 }),
|
|
20418
20531
|
on: [...OPENAI_RESELLERS]
|
|
20419
20532
|
});
|
|
20420
20533
|
openai.model("gpt-4o", {
|
|
20421
20534
|
name: "GPT-4o",
|
|
20535
|
+
ctx: 128e3,
|
|
20536
|
+
maxOut: 16384,
|
|
20422
20537
|
price: tokenPrice(2.5, 10, { cacheRead: 1.25 }),
|
|
20423
20538
|
on: [...OPENAI_RESELLERS]
|
|
20424
20539
|
});
|
|
@@ -20442,6 +20557,8 @@ openai.model("gpt-4-turbo", {
|
|
|
20442
20557
|
});
|
|
20443
20558
|
openai.model("o3", {
|
|
20444
20559
|
name: "o3",
|
|
20560
|
+
ctx: 2e5,
|
|
20561
|
+
maxOut: 1e5,
|
|
20445
20562
|
capability: "reasoning",
|
|
20446
20563
|
price: tokenPrice(2, 8, { cacheRead: 0.5 }),
|
|
20447
20564
|
on: [...OPENAI_RESELLERS]
|
|
@@ -20494,57 +20611,100 @@ var google = vendor("google", {
|
|
|
20494
20611
|
retention: "configurable",
|
|
20495
20612
|
training: GOOGLE_TRAINING
|
|
20496
20613
|
});
|
|
20614
|
+
google.model("gemini-3.8-flash", {
|
|
20615
|
+
name: "Gemini 3.8 Flash",
|
|
20616
|
+
ctx: 1048576,
|
|
20617
|
+
maxOut: 65536,
|
|
20618
|
+
capability: null,
|
|
20619
|
+
price: tokenPrice(0.75, 3.75, { cacheRead: 0.075 }),
|
|
20620
|
+
on: ["vertex"]
|
|
20621
|
+
});
|
|
20497
20622
|
google.model("gemini-3.7-flash", {
|
|
20498
20623
|
name: "Gemini 3.7 Flash",
|
|
20499
20624
|
capability: null,
|
|
20500
|
-
// Promotional rate; the published post-promotion rate is 1.50 / 7.50.
|
|
20501
20625
|
price: tokenPrice(0.75, 3.75),
|
|
20502
20626
|
on: ["vertex"]
|
|
20503
20627
|
});
|
|
20504
20628
|
google.model("gemini-3.6-flash", {
|
|
20505
20629
|
name: "Gemini 3.6 Flash",
|
|
20630
|
+
ctx: 1048576,
|
|
20631
|
+
maxOut: 65536,
|
|
20506
20632
|
capability: null,
|
|
20507
|
-
price: tokenPrice(0.75, 3.75),
|
|
20633
|
+
price: tokenPrice(0.75, 3.75, { cacheRead: 0.075 }),
|
|
20508
20634
|
on: ["vertex"]
|
|
20509
20635
|
});
|
|
20510
20636
|
google.model("gemini-3.5-flash", {
|
|
20511
20637
|
name: "Gemini 3.5 Flash",
|
|
20512
20638
|
capability: null,
|
|
20513
|
-
price: tokenPrice(1.5, 9),
|
|
20514
20639
|
on: ["vertex"]
|
|
20515
20640
|
});
|
|
20516
20641
|
google.model("gemini-3.5-flash-lite", {
|
|
20517
20642
|
name: "Gemini 3.5 Flash Lite",
|
|
20643
|
+
ctx: 1048576,
|
|
20644
|
+
maxOut: 65536,
|
|
20645
|
+
capability: null,
|
|
20646
|
+
price: tokenPrice(0.3, 2.5, { cacheRead: 0.03 }),
|
|
20647
|
+
on: ["vertex"]
|
|
20648
|
+
});
|
|
20649
|
+
google.model("gemini-3.1-flash-lite", {
|
|
20650
|
+
name: "Gemini 3.1 Flash Lite",
|
|
20651
|
+
ctx: 1048576,
|
|
20652
|
+
maxOut: 65536,
|
|
20653
|
+
capability: null,
|
|
20654
|
+
price: tokenPrice(0.25, 1.5, { cacheRead: 0.025 }),
|
|
20655
|
+
on: ["vertex"]
|
|
20656
|
+
});
|
|
20657
|
+
google.model("gemini-3-flash-preview", {
|
|
20658
|
+
name: "Gemini 3 Flash Preview",
|
|
20659
|
+
ctx: 1048576,
|
|
20660
|
+
maxOut: 65536,
|
|
20518
20661
|
capability: null,
|
|
20519
|
-
price: tokenPrice(0.3,
|
|
20662
|
+
price: tokenPrice(0.5, 3, { cacheRead: 0.05 }),
|
|
20520
20663
|
on: ["vertex"]
|
|
20521
20664
|
});
|
|
20522
20665
|
google.model("gemini-3.1-pro-preview", {
|
|
20523
20666
|
name: "Gemini 3.1 Pro Preview",
|
|
20667
|
+
ctx: 1048576,
|
|
20668
|
+
maxOut: 65536,
|
|
20524
20669
|
capability: "reasoning",
|
|
20525
20670
|
price: tokenPrice(2, 12, {
|
|
20526
|
-
|
|
20671
|
+
cacheRead: 0.2,
|
|
20672
|
+
longContext: { thresholdInputTokens: 2e5, input: 4, output: 18, cacheRead: 0.4 }
|
|
20527
20673
|
}),
|
|
20674
|
+
aliases: ["gemini-3.1-pro-preview-customtools"],
|
|
20528
20675
|
on: ["vertex"]
|
|
20529
20676
|
});
|
|
20530
20677
|
google.model("gemini-2.5-pro", {
|
|
20531
20678
|
name: "Gemini 2.5 Pro",
|
|
20679
|
+
ctx: 1048576,
|
|
20680
|
+
maxOut: 65536,
|
|
20532
20681
|
capability: "reasoning",
|
|
20533
20682
|
price: tokenPrice(1.25, 10, {
|
|
20534
|
-
|
|
20683
|
+
cacheRead: 0.125,
|
|
20684
|
+
longContext: { thresholdInputTokens: 2e5, input: 2.5, output: 15, cacheRead: 0.25 }
|
|
20535
20685
|
}),
|
|
20536
20686
|
on: ["vertex"]
|
|
20537
20687
|
});
|
|
20538
20688
|
google.model("gemini-2.5-flash", {
|
|
20539
20689
|
name: "Gemini 2.5 Flash",
|
|
20690
|
+
ctx: 1048576,
|
|
20691
|
+
maxOut: 65536,
|
|
20540
20692
|
capability: null,
|
|
20541
|
-
price: tokenPrice(0.3, 2.5),
|
|
20693
|
+
price: tokenPrice(0.3, 2.5, { cacheRead: 0.03 }),
|
|
20542
20694
|
on: ["vertex"]
|
|
20543
20695
|
});
|
|
20544
20696
|
google.model("gemini-2.5-flash-lite", {
|
|
20545
20697
|
name: "Gemini 2.5 Flash Lite",
|
|
20698
|
+
ctx: 1048576,
|
|
20699
|
+
maxOut: 65536,
|
|
20546
20700
|
capability: null,
|
|
20547
|
-
price: tokenPrice(0.1, 0.4),
|
|
20701
|
+
price: tokenPrice(0.1, 0.4, { cacheRead: 0.01 }),
|
|
20702
|
+
on: ["vertex"]
|
|
20703
|
+
});
|
|
20704
|
+
google.model("gemini-embedding-2", {
|
|
20705
|
+
name: "Gemini Embedding 2",
|
|
20706
|
+
capability: "embedding",
|
|
20707
|
+
price: tokenPrice(0.2, 0),
|
|
20548
20708
|
on: ["vertex"]
|
|
20549
20709
|
});
|
|
20550
20710
|
google.model("gemini-1-5-pro", { name: "Gemini 1.5 Pro", on: ["vertex"] });
|
|
@@ -20560,43 +20720,62 @@ var xai = vendor("xai", {
|
|
|
20560
20720
|
source: "https://docs.x.ai/developers/faq/security"
|
|
20561
20721
|
}
|
|
20562
20722
|
});
|
|
20723
|
+
function grokPrice(input2, output2, cacheRead) {
|
|
20724
|
+
const base = { input: input2, output: output2, cacheRead };
|
|
20725
|
+
return tokenPrice(input2, output2, {
|
|
20726
|
+
cacheRead,
|
|
20727
|
+
longContext: scaledBand(2e5, base, { input: 2, output: 2, cacheRead: 2 })
|
|
20728
|
+
});
|
|
20729
|
+
}
|
|
20730
|
+
xai.model("grok-4.7", {
|
|
20731
|
+
name: "Grok 4.7",
|
|
20732
|
+
ctx: 5e5,
|
|
20733
|
+
capability: "reasoning",
|
|
20734
|
+
price: grokPrice(2, 6, 0.5)
|
|
20735
|
+
});
|
|
20563
20736
|
xai.model("grok-4.6", {
|
|
20564
20737
|
name: "Grok 4.6",
|
|
20565
20738
|
ctx: 5e5,
|
|
20566
20739
|
capability: "reasoning",
|
|
20567
|
-
price:
|
|
20568
|
-
cacheRead: 0.5,
|
|
20569
|
-
longContext: { thresholdInputTokens: 2e5, input: 4, output: 12 }
|
|
20570
|
-
}),
|
|
20740
|
+
price: grokPrice(2, 6, 0.5),
|
|
20571
20741
|
on: ["bedrock"]
|
|
20572
20742
|
});
|
|
20573
20743
|
xai.model("grok-4.5", {
|
|
20574
20744
|
name: "Grok 4.5",
|
|
20575
20745
|
ctx: 5e5,
|
|
20576
20746
|
capability: "reasoning",
|
|
20577
|
-
price:
|
|
20578
|
-
cacheRead: 0.3,
|
|
20579
|
-
longContext: { thresholdInputTokens: 2e5, input: 4, output: 12 }
|
|
20580
|
-
})
|
|
20747
|
+
price: grokPrice(2, 6, 0.3)
|
|
20581
20748
|
});
|
|
20582
20749
|
xai.model("grok-4.3", {
|
|
20583
20750
|
name: "Grok 4.3",
|
|
20584
20751
|
ctx: 1e6,
|
|
20585
20752
|
capability: "reasoning",
|
|
20586
|
-
price:
|
|
20587
|
-
cacheRead: 0.2,
|
|
20588
|
-
longContext: { thresholdInputTokens: 2e5, input: 2.5, output: 5 }
|
|
20589
|
-
}),
|
|
20753
|
+
price: grokPrice(1.25, 2.5, 0.2),
|
|
20590
20754
|
on: ["bedrock"]
|
|
20591
20755
|
});
|
|
20756
|
+
xai.model("grok-4.20-0309-reasoning", {
|
|
20757
|
+
name: "Grok 4.20 Reasoning",
|
|
20758
|
+
capability: "reasoning",
|
|
20759
|
+
ctx: 1e6,
|
|
20760
|
+
price: grokPrice(1.25, 2.5, 0.2)
|
|
20761
|
+
});
|
|
20762
|
+
xai.model("grok-4.20-0309-non-reasoning", {
|
|
20763
|
+
name: "Grok 4.20",
|
|
20764
|
+
capability: null,
|
|
20765
|
+
ctx: 1e6,
|
|
20766
|
+
price: grokPrice(1.25, 2.5, 0.2)
|
|
20767
|
+
});
|
|
20768
|
+
xai.model("grok-4.20-multi-agent-0309", {
|
|
20769
|
+
name: "Grok 4.20 Multi-Agent",
|
|
20770
|
+
capability: "reasoning",
|
|
20771
|
+
ctx: 1e6,
|
|
20772
|
+
price: grokPrice(1.25, 2.5, 0.2)
|
|
20773
|
+
});
|
|
20592
20774
|
xai.model("grok-build-0.1", {
|
|
20593
20775
|
name: "Grok Build 0.1",
|
|
20594
20776
|
ctx: 256e3,
|
|
20595
20777
|
capability: "code",
|
|
20596
|
-
price:
|
|
20597
|
-
cacheRead: 0.2,
|
|
20598
|
-
longContext: { thresholdInputTokens: 2e5, input: 2, output: 4 }
|
|
20599
|
-
})
|
|
20778
|
+
price: grokPrice(1, 2, 0.2)
|
|
20600
20779
|
});
|
|
20601
20780
|
var deepseek = vendor("deepseek", {
|
|
20602
20781
|
family: { id: "deepseek", name: "DeepSeek" },
|
|
@@ -20609,16 +20788,25 @@ var deepseek = vendor("deepseek", {
|
|
|
20609
20788
|
source: "https://cdn.deepseek.com/policies/en-US/deepseek-privacy-policy.html"
|
|
20610
20789
|
}
|
|
20611
20790
|
});
|
|
20791
|
+
deepseek.model("deepseek-flash", {
|
|
20792
|
+
name: "DeepSeek V4.1 Flash",
|
|
20793
|
+
ctx: 1e6,
|
|
20794
|
+
maxOut: 384e3,
|
|
20795
|
+
capability: null,
|
|
20796
|
+
price: tokenPrice(0.3, 1.2, { cacheRead: 6e-3 })
|
|
20797
|
+
});
|
|
20612
20798
|
deepseek.model("deepseek-v4-flash", {
|
|
20613
20799
|
name: "DeepSeek V4 Flash",
|
|
20614
20800
|
ctx: 1e6,
|
|
20801
|
+
maxOut: 384e3,
|
|
20615
20802
|
capability: null,
|
|
20616
|
-
price: tokenPrice(0.
|
|
20803
|
+
price: tokenPrice(0.3, 1.2, { cacheRead: 6e-3 }),
|
|
20617
20804
|
on: ["bedrock", "together", "fireworks", "openrouter", "ollama", "local"]
|
|
20618
20805
|
});
|
|
20619
20806
|
deepseek.model("deepseek-v4-pro", {
|
|
20620
20807
|
name: "DeepSeek V4 Pro",
|
|
20621
20808
|
ctx: 1e6,
|
|
20809
|
+
maxOut: 384e3,
|
|
20622
20810
|
capability: "reasoning",
|
|
20623
20811
|
price: tokenPrice(1.32, 3.96, { cacheRead: 0.044 }),
|
|
20624
20812
|
on: ["bedrock", "together", "fireworks", "openrouter"]
|
|
@@ -20665,7 +20853,14 @@ cohere.model("command-r-plus-08-2024", {
|
|
|
20665
20853
|
ctx: 128e3,
|
|
20666
20854
|
maxOut: 4e3,
|
|
20667
20855
|
price: tokenPrice(2.5, 10),
|
|
20668
|
-
|
|
20856
|
+
on: ["bedrock"]
|
|
20857
|
+
});
|
|
20858
|
+
cohere.model("command-r-plus-04-2024", {
|
|
20859
|
+
name: "Command R+ (04-2024)",
|
|
20860
|
+
seen: "discovered",
|
|
20861
|
+
ctx: 128e3,
|
|
20862
|
+
maxOut: 4e3,
|
|
20863
|
+
price: tokenPrice(3, 15),
|
|
20669
20864
|
aliases: ["command-r-plus"],
|
|
20670
20865
|
on: ["bedrock"]
|
|
20671
20866
|
});
|
|
@@ -20733,6 +20928,65 @@ var mistral = vendor("mistral", {
|
|
|
20733
20928
|
retention: "unknown",
|
|
20734
20929
|
defaultHosting: "local"
|
|
20735
20930
|
});
|
|
20931
|
+
var MISTRAL_API = { defaultHosting: "api" };
|
|
20932
|
+
mistral.model("mistral-large-4", {
|
|
20933
|
+
...MISTRAL_API,
|
|
20934
|
+
name: "Mistral Large 4",
|
|
20935
|
+
ctx: 1e6,
|
|
20936
|
+
capability: null,
|
|
20937
|
+
// Public preview at a sale rate; the published original is 1.36 / 4.18 / 0.14.
|
|
20938
|
+
price: tokenPrice(0.68, 2.09, { cacheRead: 0.07 })
|
|
20939
|
+
});
|
|
20940
|
+
mistral.model("mistral-large-2512", {
|
|
20941
|
+
...MISTRAL_API,
|
|
20942
|
+
name: "Mistral Large 3",
|
|
20943
|
+
ctx: 256e3,
|
|
20944
|
+
capability: null,
|
|
20945
|
+
price: tokenPrice(0.5, 1.5, { cacheRead: 0.05 })
|
|
20946
|
+
});
|
|
20947
|
+
mistral.model("mistral-medium-3-5", {
|
|
20948
|
+
...MISTRAL_API,
|
|
20949
|
+
name: "Mistral Medium 3.5",
|
|
20950
|
+
ctx: 256e3,
|
|
20951
|
+
capability: null,
|
|
20952
|
+
price: tokenPrice(1.5, 7.5, { cacheRead: 0.15 })
|
|
20953
|
+
});
|
|
20954
|
+
mistral.model("mistral-small-2603", {
|
|
20955
|
+
...MISTRAL_API,
|
|
20956
|
+
name: "Mistral Small 4",
|
|
20957
|
+
ctx: 256e3,
|
|
20958
|
+
capability: null,
|
|
20959
|
+
price: tokenPrice(0.15, 0.6, { cacheRead: 0.015 })
|
|
20960
|
+
});
|
|
20961
|
+
mistral.model("ministral-14b-2512", {
|
|
20962
|
+
...MISTRAL_API,
|
|
20963
|
+
name: "Ministral 3 14B",
|
|
20964
|
+
ctx: 256e3,
|
|
20965
|
+
capability: null,
|
|
20966
|
+
price: tokenPrice(0.2, 0.2, { cacheRead: 0.02 })
|
|
20967
|
+
});
|
|
20968
|
+
mistral.model("ministral-8b-2512", {
|
|
20969
|
+
...MISTRAL_API,
|
|
20970
|
+
name: "Ministral 3 8B",
|
|
20971
|
+
ctx: 256e3,
|
|
20972
|
+
capability: null,
|
|
20973
|
+
price: tokenPrice(0.15, 0.15, { cacheRead: 0.015 })
|
|
20974
|
+
});
|
|
20975
|
+
mistral.model("ministral-3b-2512", {
|
|
20976
|
+
...MISTRAL_API,
|
|
20977
|
+
name: "Ministral 3 3B",
|
|
20978
|
+
ctx: 256e3,
|
|
20979
|
+
capability: null,
|
|
20980
|
+
price: tokenPrice(0.1, 0.1, { cacheRead: 0.01 })
|
|
20981
|
+
});
|
|
20982
|
+
mistral.model("codestral-2508", {
|
|
20983
|
+
...MISTRAL_API,
|
|
20984
|
+
name: "Codestral",
|
|
20985
|
+
ctx: 128e3,
|
|
20986
|
+
capability: "code",
|
|
20987
|
+
openWeights: false,
|
|
20988
|
+
price: tokenPrice(0.3, 0.9, { cacheRead: 0.03 })
|
|
20989
|
+
});
|
|
20736
20990
|
mistral.model("mixtral-8x7b", {
|
|
20737
20991
|
name: "Mixtral 8x7B",
|
|
20738
20992
|
seen: "discovered",
|
|
@@ -20896,11 +21150,14 @@ var COMPACT = new Intl.NumberFormat("en-US", {
|
|
|
20896
21150
|
// ../../packages/schema/src/token/token-report.ts
|
|
20897
21151
|
var num = (value) => value ?? 0;
|
|
20898
21152
|
function costUsageOf(a, promptTokens) {
|
|
21153
|
+
const write1h = num(a.ephemeral_1h_input_tokens);
|
|
21154
|
+
const write5m = num(a.ephemeral_5m_input_tokens);
|
|
21155
|
+
const unsplit = Math.max(num(a.cache_creation_input_tokens) - write1h - write5m, 0);
|
|
20899
21156
|
const usage = {
|
|
20900
21157
|
inputTokens: num(a.input_tokens),
|
|
20901
21158
|
outputTokens: num(a.output_tokens),
|
|
20902
|
-
cacheWrite1hTokens:
|
|
20903
|
-
cacheWrite5mTokens:
|
|
21159
|
+
cacheWrite1hTokens: write1h,
|
|
21160
|
+
cacheWrite5mTokens: write5m + unsplit,
|
|
20904
21161
|
cacheReadTokens: num(a.cache_read_input_tokens),
|
|
20905
21162
|
webSearchRequests: num(a.web_search_requests)
|
|
20906
21163
|
};
|
|
@@ -27854,7 +28111,8 @@ var TIMELINE_COLUMNS = `
|
|
|
27854
28111
|
json_extract(attributes, '$.internal') AS internal,
|
|
27855
28112
|
json_extract(attributes, '$.flagged') AS flagged`;
|
|
27856
28113
|
var CALL_PROMPT_TOKENS = `(coalesce(input_tokens, 0) + coalesce(cache_read_input_tokens, 0)
|
|
27857
|
-
+ coalesce(
|
|
28114
|
+
+ max(coalesce(cache_creation_input_tokens, 0),
|
|
28115
|
+
coalesce(ephemeral_1h_input_tokens, 0) + coalesce(ephemeral_5m_input_tokens, 0)))`;
|
|
27858
28116
|
var CALL_BAND = LONG_CONTEXT_THRESHOLDS.length === 0 ? "0" : LONG_CONTEXT_THRESHOLDS.map((t) => `(${CALL_PROMPT_TOKENS} > ${String(Math.trunc(t))})`).join(
|
|
27859
28117
|
" + "
|
|
27860
28118
|
);
|
|
@@ -36863,6 +37121,10 @@ var GROWTH_CORPORA = [
|
|
|
36863
37121
|
build: (length) => joinTo(length, "[", "]", (i) => `"${SQL_WORDS[i % SQL_WORDS.length] ?? ""} ${String(i)}"`)
|
|
36864
37122
|
},
|
|
36865
37123
|
{ name: "single-quoted keyword run ('where)", build: (length) => repeatTo("'where", length) },
|
|
37124
|
+
{
|
|
37125
|
+
name: 'double-quoted keyword literal run ("where" )',
|
|
37126
|
+
build: (length) => repeatTo('"where" ', length)
|
|
37127
|
+
},
|
|
36866
37128
|
{ name: "double-quote run", build: (length) => repeatTo('"', length) },
|
|
36867
37129
|
{ name: "space run", build: (length) => repeatTo(" ", length) },
|
|
36868
37130
|
{ name: "newline run", build: (length) => repeatTo("\n", length) },
|
|
@@ -39213,7 +39475,7 @@ var BUNDLED_PACKS = [
|
|
|
39213
39475
|
{
|
|
39214
39476
|
packId: "code-flaws",
|
|
39215
39477
|
name: "Code Security Flaws",
|
|
39216
|
-
version: "0.1.
|
|
39478
|
+
version: "0.1.2",
|
|
39217
39479
|
rawRules: [
|
|
39218
39480
|
sql_inject_concat_default,
|
|
39219
39481
|
sql_inject_concat_dot_default,
|