@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/scan-worker.js
CHANGED
|
@@ -20700,7 +20700,10 @@ function date4(params) {
|
|
|
20700
20700
|
var LongContextTier = external_exports.object({
|
|
20701
20701
|
thresholdInputTokens: external_exports.number().int().positive(),
|
|
20702
20702
|
input: external_exports.number().nonnegative().nullable(),
|
|
20703
|
-
output: external_exports.number().nonnegative().nullable()
|
|
20703
|
+
output: external_exports.number().nonnegative().nullable(),
|
|
20704
|
+
cacheRead: external_exports.number().nonnegative().nullable().optional(),
|
|
20705
|
+
cacheWrite5m: external_exports.number().nonnegative().nullable().optional(),
|
|
20706
|
+
cacheWrite1h: external_exports.number().nonnegative().nullable().optional()
|
|
20704
20707
|
});
|
|
20705
20708
|
var ModelPrice = external_exports.object({
|
|
20706
20709
|
/** USD per 1M uncached input tokens, at or below any long-context threshold. */
|
|
@@ -20709,7 +20712,8 @@ var ModelPrice = external_exports.object({
|
|
|
20709
20712
|
output: external_exports.number().nonnegative(),
|
|
20710
20713
|
/**
|
|
20711
20714
|
* Rate band above a size threshold, or `null` when the model is flat-rated.
|
|
20712
|
-
*
|
|
20715
|
+
* OpenAI, Google, xAI and some Anthropic models (Haiku 5.5) band; most
|
|
20716
|
+
* Claude models are flat across their window.
|
|
20713
20717
|
*/
|
|
20714
20718
|
longContext: LongContextTier.nullable(),
|
|
20715
20719
|
/** USD per 1M tokens written to a 5-minute ephemeral cache, or null if unpriced. */
|
|
@@ -20722,18 +20726,35 @@ var ModelPrice = external_exports.object({
|
|
|
20722
20726
|
webSearch: external_exports.number().nonnegative().nullable()
|
|
20723
20727
|
});
|
|
20724
20728
|
var WEB_SEARCH_PER_REQUEST = 0.01;
|
|
20725
|
-
function anthropicPrice(input2, output2, cacheRead) {
|
|
20729
|
+
function anthropicPrice(input2, output2, cacheRead, longContext = null) {
|
|
20726
20730
|
return Object.freeze({
|
|
20727
20731
|
input: input2,
|
|
20728
20732
|
output: output2,
|
|
20729
|
-
longContext: null,
|
|
20730
|
-
// flat across the full window on every current Claude
|
|
20733
|
+
longContext: longContext === null ? null : Object.freeze(longContext),
|
|
20731
20734
|
cacheWrite5m: input2 * 1.25,
|
|
20732
20735
|
cacheWrite1h: input2 * 2,
|
|
20733
20736
|
cacheRead,
|
|
20734
20737
|
webSearch: WEB_SEARCH_PER_REQUEST
|
|
20735
20738
|
});
|
|
20736
20739
|
}
|
|
20740
|
+
function anthropicBand(thresholdInputTokens, input2, output2, cacheRead) {
|
|
20741
|
+
return {
|
|
20742
|
+
thresholdInputTokens,
|
|
20743
|
+
input: input2,
|
|
20744
|
+
output: output2,
|
|
20745
|
+
cacheRead,
|
|
20746
|
+
cacheWrite5m: input2 * 1.25,
|
|
20747
|
+
cacheWrite1h: input2 * 2
|
|
20748
|
+
};
|
|
20749
|
+
}
|
|
20750
|
+
function scaledBand(thresholdInputTokens, base, scale) {
|
|
20751
|
+
return {
|
|
20752
|
+
thresholdInputTokens,
|
|
20753
|
+
input: base.input * scale.input,
|
|
20754
|
+
output: base.output * scale.output,
|
|
20755
|
+
...base.cacheRead === void 0 ? {} : { cacheRead: base.cacheRead * scale.cacheRead }
|
|
20756
|
+
};
|
|
20757
|
+
}
|
|
20737
20758
|
function tokenPrice(input2, output2, options = {}) {
|
|
20738
20759
|
return Object.freeze({
|
|
20739
20760
|
input: input2,
|
|
@@ -20980,10 +21001,20 @@ anthropic.model("claude-fable-5-1", {
|
|
|
20980
21001
|
});
|
|
20981
21002
|
anthropic.model("claude-fable-5", {
|
|
20982
21003
|
name: "Claude Fable 5",
|
|
21004
|
+
ctx: 1e6,
|
|
21005
|
+
maxOut: 128e3,
|
|
20983
21006
|
capability: "reasoning",
|
|
20984
21007
|
price: anthropicPrice(10, 50, 1),
|
|
20985
21008
|
on: [...CLAUDE_RESELLERS]
|
|
20986
21009
|
});
|
|
21010
|
+
anthropic.model("claude-opus-5-5", {
|
|
21011
|
+
name: "Claude Opus 5.5",
|
|
21012
|
+
ctx: 1e6,
|
|
21013
|
+
maxOut: 128e3,
|
|
21014
|
+
capability: "reasoning",
|
|
21015
|
+
price: anthropicPrice(4, 20, 0.2),
|
|
21016
|
+
on: [...CLAUDE_RESELLERS]
|
|
21017
|
+
});
|
|
20987
21018
|
anthropic.model("claude-opus-5", {
|
|
20988
21019
|
name: "Claude Opus 5",
|
|
20989
21020
|
ctx: 1e6,
|
|
@@ -20994,24 +21025,32 @@ anthropic.model("claude-opus-5", {
|
|
|
20994
21025
|
});
|
|
20995
21026
|
anthropic.model("claude-opus-4-8", {
|
|
20996
21027
|
name: "Claude Opus 4.8",
|
|
21028
|
+
ctx: 1e6,
|
|
21029
|
+
maxOut: 128e3,
|
|
20997
21030
|
capability: "reasoning",
|
|
20998
21031
|
price: anthropicPrice(5, 25, 0.5),
|
|
20999
21032
|
on: [...CLAUDE_RESELLERS]
|
|
21000
21033
|
});
|
|
21001
21034
|
anthropic.model("claude-opus-4-7", {
|
|
21002
21035
|
name: "Claude Opus 4.7",
|
|
21036
|
+
ctx: 1e6,
|
|
21037
|
+
maxOut: 128e3,
|
|
21003
21038
|
capability: "reasoning",
|
|
21004
21039
|
price: anthropicPrice(5, 25, 0.5),
|
|
21005
21040
|
on: [...CLAUDE_RESELLERS]
|
|
21006
21041
|
});
|
|
21007
21042
|
anthropic.model("claude-opus-4-6", {
|
|
21008
21043
|
name: "Claude Opus 4.6",
|
|
21044
|
+
ctx: 1e6,
|
|
21045
|
+
maxOut: 128e3,
|
|
21009
21046
|
capability: "reasoning",
|
|
21010
21047
|
price: anthropicPrice(5, 25, 0.5),
|
|
21011
21048
|
on: [...CLAUDE_RESELLERS]
|
|
21012
21049
|
});
|
|
21013
21050
|
anthropic.model("claude-opus-4-5", {
|
|
21014
21051
|
name: "Claude Opus 4.5",
|
|
21052
|
+
ctx: 2e5,
|
|
21053
|
+
maxOut: 64e3,
|
|
21015
21054
|
capability: "reasoning",
|
|
21016
21055
|
price: anthropicPrice(5, 25, 0.5),
|
|
21017
21056
|
on: [...CLAUDE_RESELLERS]
|
|
@@ -21022,6 +21061,14 @@ anthropic.model("claude-opus-4-1", {
|
|
|
21022
21061
|
price: anthropicPrice(15, 75, 1.5),
|
|
21023
21062
|
on: [...CLAUDE_RESELLERS]
|
|
21024
21063
|
});
|
|
21064
|
+
anthropic.model("claude-sonnet-5-5", {
|
|
21065
|
+
name: "Claude Sonnet 5.5",
|
|
21066
|
+
ctx: 1e6,
|
|
21067
|
+
maxOut: 128e3,
|
|
21068
|
+
capability: "reasoning",
|
|
21069
|
+
price: anthropicPrice(2, 10, 0.1),
|
|
21070
|
+
on: [...CLAUDE_RESELLERS]
|
|
21071
|
+
});
|
|
21025
21072
|
anthropic.model("claude-sonnet-5", {
|
|
21026
21073
|
name: "Claude Sonnet 5",
|
|
21027
21074
|
ctx: 1e6,
|
|
@@ -21032,16 +21079,30 @@ anthropic.model("claude-sonnet-5", {
|
|
|
21032
21079
|
});
|
|
21033
21080
|
anthropic.model("claude-sonnet-4-6", {
|
|
21034
21081
|
name: "Claude Sonnet 4.6",
|
|
21082
|
+
ctx: 1e6,
|
|
21083
|
+
maxOut: 128e3,
|
|
21035
21084
|
capability: "reasoning",
|
|
21036
21085
|
price: anthropicPrice(3, 15, 0.3),
|
|
21037
21086
|
on: [...CLAUDE_RESELLERS]
|
|
21038
21087
|
});
|
|
21039
21088
|
anthropic.model("claude-sonnet-4-5", {
|
|
21040
21089
|
name: "Claude Sonnet 4.5",
|
|
21090
|
+
ctx: 2e5,
|
|
21091
|
+
maxOut: 64e3,
|
|
21041
21092
|
capability: "reasoning",
|
|
21042
21093
|
price: anthropicPrice(3, 15, 0.3),
|
|
21043
21094
|
on: [...CLAUDE_RESELLERS]
|
|
21044
21095
|
});
|
|
21096
|
+
anthropic.model("claude-haiku-5-5", {
|
|
21097
|
+
name: "Claude Haiku 5.5",
|
|
21098
|
+
ctx: 1e6,
|
|
21099
|
+
maxOut: 128e3,
|
|
21100
|
+
capability: null,
|
|
21101
|
+
// A prompt over 100,000 tokens, cache reads and writes included, bills the
|
|
21102
|
+
// whole request at the higher band.
|
|
21103
|
+
price: anthropicPrice(0.1, 0.5, 0.01, anthropicBand(1e5, 0.5, 2.5, 0.05)),
|
|
21104
|
+
on: [...CLAUDE_RESELLERS]
|
|
21105
|
+
});
|
|
21045
21106
|
anthropic.model("claude-haiku-4-5", {
|
|
21046
21107
|
name: "Claude Haiku 4.5",
|
|
21047
21108
|
ctx: 2e5,
|
|
@@ -21064,7 +21125,13 @@ var OPENAI_TRAINING = {
|
|
|
21064
21125
|
consumerControl: "opt-out",
|
|
21065
21126
|
source: "https://developers.openai.com/api/docs/guides/your-data"
|
|
21066
21127
|
};
|
|
21067
|
-
|
|
21128
|
+
function gptPrice(input2, output2, cacheRead) {
|
|
21129
|
+
const base = { input: input2, output: output2, ...cacheRead === void 0 ? {} : { cacheRead } };
|
|
21130
|
+
return tokenPrice(input2, output2, {
|
|
21131
|
+
...base,
|
|
21132
|
+
longContext: scaledBand(272e3, base, { input: 2, output: 1.5, cacheRead: 2 })
|
|
21133
|
+
});
|
|
21134
|
+
}
|
|
21068
21135
|
var openai = vendor("openai", {
|
|
21069
21136
|
family: { id: "gpt", name: "GPT" },
|
|
21070
21137
|
region: "us",
|
|
@@ -21072,12 +21139,45 @@ var openai = vendor("openai", {
|
|
|
21072
21139
|
training: OPENAI_TRAINING
|
|
21073
21140
|
});
|
|
21074
21141
|
var OPENAI_RESELLERS = ["azure", "foundry"];
|
|
21142
|
+
openai.model("gpt-6-astra", {
|
|
21143
|
+
name: "GPT-6 Astra",
|
|
21144
|
+
ctx: 105e4,
|
|
21145
|
+
maxOut: 128e3,
|
|
21146
|
+
capability: "reasoning",
|
|
21147
|
+
price: gptPrice(10, 50, 1),
|
|
21148
|
+
on: [...OPENAI_RESELLERS]
|
|
21149
|
+
});
|
|
21150
|
+
openai.model("gpt-6.1-sol", {
|
|
21151
|
+
name: "GPT-6.1 Sol",
|
|
21152
|
+
ctx: 105e4,
|
|
21153
|
+
maxOut: 128e3,
|
|
21154
|
+
capability: "reasoning",
|
|
21155
|
+
price: gptPrice(2, 10, 0.1),
|
|
21156
|
+
on: [...OPENAI_RESELLERS]
|
|
21157
|
+
});
|
|
21158
|
+
openai.model("gpt-6-sol", {
|
|
21159
|
+
name: "GPT-6 Sol",
|
|
21160
|
+
ctx: 105e4,
|
|
21161
|
+
maxOut: 128e3,
|
|
21162
|
+
capability: "reasoning",
|
|
21163
|
+
price: gptPrice(2, 10, 0.2),
|
|
21164
|
+
on: [...OPENAI_RESELLERS]
|
|
21165
|
+
});
|
|
21166
|
+
openai.model("gpt-6-luna", {
|
|
21167
|
+
name: "GPT-6 Luna",
|
|
21168
|
+
ctx: 105e4,
|
|
21169
|
+
maxOut: 128e3,
|
|
21170
|
+
capability: null,
|
|
21171
|
+
price: gptPrice(0.1, 0.5, 0.01),
|
|
21172
|
+
on: [...OPENAI_RESELLERS]
|
|
21173
|
+
});
|
|
21075
21174
|
openai.model("gpt-5.6-sol", {
|
|
21076
21175
|
name: "GPT-5.6 Sol",
|
|
21176
|
+
// Promotional rate, published as available at least through 2026-11-21.
|
|
21077
21177
|
ctx: 105e4,
|
|
21078
21178
|
maxOut: 128e3,
|
|
21079
21179
|
capability: "reasoning",
|
|
21080
|
-
price:
|
|
21180
|
+
price: gptPrice(4, 20, 0.4),
|
|
21081
21181
|
on: [...OPENAI_RESELLERS]
|
|
21082
21182
|
});
|
|
21083
21183
|
openai.model("gpt-5.6-terra", {
|
|
@@ -21085,7 +21185,7 @@ openai.model("gpt-5.6-terra", {
|
|
|
21085
21185
|
ctx: 105e4,
|
|
21086
21186
|
maxOut: 128e3,
|
|
21087
21187
|
capability: "reasoning",
|
|
21088
|
-
price:
|
|
21188
|
+
price: gptPrice(2, 12, 0.2),
|
|
21089
21189
|
on: [...OPENAI_RESELLERS]
|
|
21090
21190
|
});
|
|
21091
21191
|
openai.model("gpt-5.6-luna", {
|
|
@@ -21093,7 +21193,7 @@ openai.model("gpt-5.6-luna", {
|
|
|
21093
21193
|
ctx: 105e4,
|
|
21094
21194
|
maxOut: 128e3,
|
|
21095
21195
|
capability: null,
|
|
21096
|
-
price:
|
|
21196
|
+
price: gptPrice(0.2, 1.2, 0.02),
|
|
21097
21197
|
on: [...OPENAI_RESELLERS]
|
|
21098
21198
|
});
|
|
21099
21199
|
openai.model("gpt-5.5", {
|
|
@@ -21101,7 +21201,15 @@ openai.model("gpt-5.5", {
|
|
|
21101
21201
|
ctx: 105e4,
|
|
21102
21202
|
maxOut: 128e3,
|
|
21103
21203
|
capability: "reasoning",
|
|
21104
|
-
price:
|
|
21204
|
+
price: gptPrice(5, 30, 0.5),
|
|
21205
|
+
on: [...OPENAI_RESELLERS]
|
|
21206
|
+
});
|
|
21207
|
+
openai.model("gpt-5.5-pro", {
|
|
21208
|
+
name: "GPT-5.5 Pro",
|
|
21209
|
+
ctx: 105e4,
|
|
21210
|
+
maxOut: 128e3,
|
|
21211
|
+
capability: "reasoning",
|
|
21212
|
+
price: gptPrice(30, 180),
|
|
21105
21213
|
on: [...OPENAI_RESELLERS]
|
|
21106
21214
|
});
|
|
21107
21215
|
openai.model("gpt-5.4", {
|
|
@@ -21109,7 +21217,7 @@ openai.model("gpt-5.4", {
|
|
|
21109
21217
|
ctx: 105e4,
|
|
21110
21218
|
maxOut: 128e3,
|
|
21111
21219
|
capability: "reasoning",
|
|
21112
|
-
price:
|
|
21220
|
+
price: gptPrice(2.5, 15, 0.25),
|
|
21113
21221
|
on: [...OPENAI_RESELLERS]
|
|
21114
21222
|
});
|
|
21115
21223
|
openai.model("gpt-5.4-mini", {
|
|
@@ -21155,6 +21263,7 @@ openai.model("gpt-5", {
|
|
|
21155
21263
|
openai.model("gpt-5-mini", {
|
|
21156
21264
|
name: "GPT-5 mini",
|
|
21157
21265
|
ctx: 4e5,
|
|
21266
|
+
maxOut: 128e3,
|
|
21158
21267
|
capability: null,
|
|
21159
21268
|
price: tokenPrice(0.25, 2, { cacheRead: 0.025 }),
|
|
21160
21269
|
on: [...OPENAI_RESELLERS]
|
|
@@ -21169,11 +21278,15 @@ openai.model("gpt-5-nano", {
|
|
|
21169
21278
|
});
|
|
21170
21279
|
openai.model("gpt-4.1", {
|
|
21171
21280
|
name: "GPT-4.1",
|
|
21281
|
+
ctx: 1047576,
|
|
21282
|
+
maxOut: 32768,
|
|
21172
21283
|
price: tokenPrice(2, 8, { cacheRead: 0.5 }),
|
|
21173
21284
|
on: [...OPENAI_RESELLERS]
|
|
21174
21285
|
});
|
|
21175
21286
|
openai.model("gpt-4o", {
|
|
21176
21287
|
name: "GPT-4o",
|
|
21288
|
+
ctx: 128e3,
|
|
21289
|
+
maxOut: 16384,
|
|
21177
21290
|
price: tokenPrice(2.5, 10, { cacheRead: 1.25 }),
|
|
21178
21291
|
on: [...OPENAI_RESELLERS]
|
|
21179
21292
|
});
|
|
@@ -21197,6 +21310,8 @@ openai.model("gpt-4-turbo", {
|
|
|
21197
21310
|
});
|
|
21198
21311
|
openai.model("o3", {
|
|
21199
21312
|
name: "o3",
|
|
21313
|
+
ctx: 2e5,
|
|
21314
|
+
maxOut: 1e5,
|
|
21200
21315
|
capability: "reasoning",
|
|
21201
21316
|
price: tokenPrice(2, 8, { cacheRead: 0.5 }),
|
|
21202
21317
|
on: [...OPENAI_RESELLERS]
|
|
@@ -21249,57 +21364,100 @@ var google = vendor("google", {
|
|
|
21249
21364
|
retention: "configurable",
|
|
21250
21365
|
training: GOOGLE_TRAINING
|
|
21251
21366
|
});
|
|
21367
|
+
google.model("gemini-3.8-flash", {
|
|
21368
|
+
name: "Gemini 3.8 Flash",
|
|
21369
|
+
ctx: 1048576,
|
|
21370
|
+
maxOut: 65536,
|
|
21371
|
+
capability: null,
|
|
21372
|
+
price: tokenPrice(0.75, 3.75, { cacheRead: 0.075 }),
|
|
21373
|
+
on: ["vertex"]
|
|
21374
|
+
});
|
|
21252
21375
|
google.model("gemini-3.7-flash", {
|
|
21253
21376
|
name: "Gemini 3.7 Flash",
|
|
21254
21377
|
capability: null,
|
|
21255
|
-
// Promotional rate; the published post-promotion rate is 1.50 / 7.50.
|
|
21256
21378
|
price: tokenPrice(0.75, 3.75),
|
|
21257
21379
|
on: ["vertex"]
|
|
21258
21380
|
});
|
|
21259
21381
|
google.model("gemini-3.6-flash", {
|
|
21260
21382
|
name: "Gemini 3.6 Flash",
|
|
21383
|
+
ctx: 1048576,
|
|
21384
|
+
maxOut: 65536,
|
|
21261
21385
|
capability: null,
|
|
21262
|
-
price: tokenPrice(0.75, 3.75),
|
|
21386
|
+
price: tokenPrice(0.75, 3.75, { cacheRead: 0.075 }),
|
|
21263
21387
|
on: ["vertex"]
|
|
21264
21388
|
});
|
|
21265
21389
|
google.model("gemini-3.5-flash", {
|
|
21266
21390
|
name: "Gemini 3.5 Flash",
|
|
21267
21391
|
capability: null,
|
|
21268
|
-
price: tokenPrice(1.5, 9),
|
|
21269
21392
|
on: ["vertex"]
|
|
21270
21393
|
});
|
|
21271
21394
|
google.model("gemini-3.5-flash-lite", {
|
|
21272
21395
|
name: "Gemini 3.5 Flash Lite",
|
|
21396
|
+
ctx: 1048576,
|
|
21397
|
+
maxOut: 65536,
|
|
21398
|
+
capability: null,
|
|
21399
|
+
price: tokenPrice(0.3, 2.5, { cacheRead: 0.03 }),
|
|
21400
|
+
on: ["vertex"]
|
|
21401
|
+
});
|
|
21402
|
+
google.model("gemini-3.1-flash-lite", {
|
|
21403
|
+
name: "Gemini 3.1 Flash Lite",
|
|
21404
|
+
ctx: 1048576,
|
|
21405
|
+
maxOut: 65536,
|
|
21406
|
+
capability: null,
|
|
21407
|
+
price: tokenPrice(0.25, 1.5, { cacheRead: 0.025 }),
|
|
21408
|
+
on: ["vertex"]
|
|
21409
|
+
});
|
|
21410
|
+
google.model("gemini-3-flash-preview", {
|
|
21411
|
+
name: "Gemini 3 Flash Preview",
|
|
21412
|
+
ctx: 1048576,
|
|
21413
|
+
maxOut: 65536,
|
|
21273
21414
|
capability: null,
|
|
21274
|
-
price: tokenPrice(0.3,
|
|
21415
|
+
price: tokenPrice(0.5, 3, { cacheRead: 0.05 }),
|
|
21275
21416
|
on: ["vertex"]
|
|
21276
21417
|
});
|
|
21277
21418
|
google.model("gemini-3.1-pro-preview", {
|
|
21278
21419
|
name: "Gemini 3.1 Pro Preview",
|
|
21420
|
+
ctx: 1048576,
|
|
21421
|
+
maxOut: 65536,
|
|
21279
21422
|
capability: "reasoning",
|
|
21280
21423
|
price: tokenPrice(2, 12, {
|
|
21281
|
-
|
|
21424
|
+
cacheRead: 0.2,
|
|
21425
|
+
longContext: { thresholdInputTokens: 2e5, input: 4, output: 18, cacheRead: 0.4 }
|
|
21282
21426
|
}),
|
|
21427
|
+
aliases: ["gemini-3.1-pro-preview-customtools"],
|
|
21283
21428
|
on: ["vertex"]
|
|
21284
21429
|
});
|
|
21285
21430
|
google.model("gemini-2.5-pro", {
|
|
21286
21431
|
name: "Gemini 2.5 Pro",
|
|
21432
|
+
ctx: 1048576,
|
|
21433
|
+
maxOut: 65536,
|
|
21287
21434
|
capability: "reasoning",
|
|
21288
21435
|
price: tokenPrice(1.25, 10, {
|
|
21289
|
-
|
|
21436
|
+
cacheRead: 0.125,
|
|
21437
|
+
longContext: { thresholdInputTokens: 2e5, input: 2.5, output: 15, cacheRead: 0.25 }
|
|
21290
21438
|
}),
|
|
21291
21439
|
on: ["vertex"]
|
|
21292
21440
|
});
|
|
21293
21441
|
google.model("gemini-2.5-flash", {
|
|
21294
21442
|
name: "Gemini 2.5 Flash",
|
|
21443
|
+
ctx: 1048576,
|
|
21444
|
+
maxOut: 65536,
|
|
21295
21445
|
capability: null,
|
|
21296
|
-
price: tokenPrice(0.3, 2.5),
|
|
21446
|
+
price: tokenPrice(0.3, 2.5, { cacheRead: 0.03 }),
|
|
21297
21447
|
on: ["vertex"]
|
|
21298
21448
|
});
|
|
21299
21449
|
google.model("gemini-2.5-flash-lite", {
|
|
21300
21450
|
name: "Gemini 2.5 Flash Lite",
|
|
21451
|
+
ctx: 1048576,
|
|
21452
|
+
maxOut: 65536,
|
|
21301
21453
|
capability: null,
|
|
21302
|
-
price: tokenPrice(0.1, 0.4),
|
|
21454
|
+
price: tokenPrice(0.1, 0.4, { cacheRead: 0.01 }),
|
|
21455
|
+
on: ["vertex"]
|
|
21456
|
+
});
|
|
21457
|
+
google.model("gemini-embedding-2", {
|
|
21458
|
+
name: "Gemini Embedding 2",
|
|
21459
|
+
capability: "embedding",
|
|
21460
|
+
price: tokenPrice(0.2, 0),
|
|
21303
21461
|
on: ["vertex"]
|
|
21304
21462
|
});
|
|
21305
21463
|
google.model("gemini-1-5-pro", { name: "Gemini 1.5 Pro", on: ["vertex"] });
|
|
@@ -21315,43 +21473,62 @@ var xai = vendor("xai", {
|
|
|
21315
21473
|
source: "https://docs.x.ai/developers/faq/security"
|
|
21316
21474
|
}
|
|
21317
21475
|
});
|
|
21476
|
+
function grokPrice(input2, output2, cacheRead) {
|
|
21477
|
+
const base = { input: input2, output: output2, cacheRead };
|
|
21478
|
+
return tokenPrice(input2, output2, {
|
|
21479
|
+
cacheRead,
|
|
21480
|
+
longContext: scaledBand(2e5, base, { input: 2, output: 2, cacheRead: 2 })
|
|
21481
|
+
});
|
|
21482
|
+
}
|
|
21483
|
+
xai.model("grok-4.7", {
|
|
21484
|
+
name: "Grok 4.7",
|
|
21485
|
+
ctx: 5e5,
|
|
21486
|
+
capability: "reasoning",
|
|
21487
|
+
price: grokPrice(2, 6, 0.5)
|
|
21488
|
+
});
|
|
21318
21489
|
xai.model("grok-4.6", {
|
|
21319
21490
|
name: "Grok 4.6",
|
|
21320
21491
|
ctx: 5e5,
|
|
21321
21492
|
capability: "reasoning",
|
|
21322
|
-
price:
|
|
21323
|
-
cacheRead: 0.5,
|
|
21324
|
-
longContext: { thresholdInputTokens: 2e5, input: 4, output: 12 }
|
|
21325
|
-
}),
|
|
21493
|
+
price: grokPrice(2, 6, 0.5),
|
|
21326
21494
|
on: ["bedrock"]
|
|
21327
21495
|
});
|
|
21328
21496
|
xai.model("grok-4.5", {
|
|
21329
21497
|
name: "Grok 4.5",
|
|
21330
21498
|
ctx: 5e5,
|
|
21331
21499
|
capability: "reasoning",
|
|
21332
|
-
price:
|
|
21333
|
-
cacheRead: 0.3,
|
|
21334
|
-
longContext: { thresholdInputTokens: 2e5, input: 4, output: 12 }
|
|
21335
|
-
})
|
|
21500
|
+
price: grokPrice(2, 6, 0.3)
|
|
21336
21501
|
});
|
|
21337
21502
|
xai.model("grok-4.3", {
|
|
21338
21503
|
name: "Grok 4.3",
|
|
21339
21504
|
ctx: 1e6,
|
|
21340
21505
|
capability: "reasoning",
|
|
21341
|
-
price:
|
|
21342
|
-
cacheRead: 0.2,
|
|
21343
|
-
longContext: { thresholdInputTokens: 2e5, input: 2.5, output: 5 }
|
|
21344
|
-
}),
|
|
21506
|
+
price: grokPrice(1.25, 2.5, 0.2),
|
|
21345
21507
|
on: ["bedrock"]
|
|
21346
21508
|
});
|
|
21509
|
+
xai.model("grok-4.20-0309-reasoning", {
|
|
21510
|
+
name: "Grok 4.20 Reasoning",
|
|
21511
|
+
capability: "reasoning",
|
|
21512
|
+
ctx: 1e6,
|
|
21513
|
+
price: grokPrice(1.25, 2.5, 0.2)
|
|
21514
|
+
});
|
|
21515
|
+
xai.model("grok-4.20-0309-non-reasoning", {
|
|
21516
|
+
name: "Grok 4.20",
|
|
21517
|
+
capability: null,
|
|
21518
|
+
ctx: 1e6,
|
|
21519
|
+
price: grokPrice(1.25, 2.5, 0.2)
|
|
21520
|
+
});
|
|
21521
|
+
xai.model("grok-4.20-multi-agent-0309", {
|
|
21522
|
+
name: "Grok 4.20 Multi-Agent",
|
|
21523
|
+
capability: "reasoning",
|
|
21524
|
+
ctx: 1e6,
|
|
21525
|
+
price: grokPrice(1.25, 2.5, 0.2)
|
|
21526
|
+
});
|
|
21347
21527
|
xai.model("grok-build-0.1", {
|
|
21348
21528
|
name: "Grok Build 0.1",
|
|
21349
21529
|
ctx: 256e3,
|
|
21350
21530
|
capability: "code",
|
|
21351
|
-
price:
|
|
21352
|
-
cacheRead: 0.2,
|
|
21353
|
-
longContext: { thresholdInputTokens: 2e5, input: 2, output: 4 }
|
|
21354
|
-
})
|
|
21531
|
+
price: grokPrice(1, 2, 0.2)
|
|
21355
21532
|
});
|
|
21356
21533
|
var deepseek = vendor("deepseek", {
|
|
21357
21534
|
family: { id: "deepseek", name: "DeepSeek" },
|
|
@@ -21364,16 +21541,25 @@ var deepseek = vendor("deepseek", {
|
|
|
21364
21541
|
source: "https://cdn.deepseek.com/policies/en-US/deepseek-privacy-policy.html"
|
|
21365
21542
|
}
|
|
21366
21543
|
});
|
|
21544
|
+
deepseek.model("deepseek-flash", {
|
|
21545
|
+
name: "DeepSeek V4.1 Flash",
|
|
21546
|
+
ctx: 1e6,
|
|
21547
|
+
maxOut: 384e3,
|
|
21548
|
+
capability: null,
|
|
21549
|
+
price: tokenPrice(0.3, 1.2, { cacheRead: 6e-3 })
|
|
21550
|
+
});
|
|
21367
21551
|
deepseek.model("deepseek-v4-flash", {
|
|
21368
21552
|
name: "DeepSeek V4 Flash",
|
|
21369
21553
|
ctx: 1e6,
|
|
21554
|
+
maxOut: 384e3,
|
|
21370
21555
|
capability: null,
|
|
21371
|
-
price: tokenPrice(0.
|
|
21556
|
+
price: tokenPrice(0.3, 1.2, { cacheRead: 6e-3 }),
|
|
21372
21557
|
on: ["bedrock", "together", "fireworks", "openrouter", "ollama", "local"]
|
|
21373
21558
|
});
|
|
21374
21559
|
deepseek.model("deepseek-v4-pro", {
|
|
21375
21560
|
name: "DeepSeek V4 Pro",
|
|
21376
21561
|
ctx: 1e6,
|
|
21562
|
+
maxOut: 384e3,
|
|
21377
21563
|
capability: "reasoning",
|
|
21378
21564
|
price: tokenPrice(1.32, 3.96, { cacheRead: 0.044 }),
|
|
21379
21565
|
on: ["bedrock", "together", "fireworks", "openrouter"]
|
|
@@ -21420,7 +21606,14 @@ cohere.model("command-r-plus-08-2024", {
|
|
|
21420
21606
|
ctx: 128e3,
|
|
21421
21607
|
maxOut: 4e3,
|
|
21422
21608
|
price: tokenPrice(2.5, 10),
|
|
21423
|
-
|
|
21609
|
+
on: ["bedrock"]
|
|
21610
|
+
});
|
|
21611
|
+
cohere.model("command-r-plus-04-2024", {
|
|
21612
|
+
name: "Command R+ (04-2024)",
|
|
21613
|
+
seen: "discovered",
|
|
21614
|
+
ctx: 128e3,
|
|
21615
|
+
maxOut: 4e3,
|
|
21616
|
+
price: tokenPrice(3, 15),
|
|
21424
21617
|
aliases: ["command-r-plus"],
|
|
21425
21618
|
on: ["bedrock"]
|
|
21426
21619
|
});
|
|
@@ -21488,6 +21681,65 @@ var mistral = vendor("mistral", {
|
|
|
21488
21681
|
retention: "unknown",
|
|
21489
21682
|
defaultHosting: "local"
|
|
21490
21683
|
});
|
|
21684
|
+
var MISTRAL_API = { defaultHosting: "api" };
|
|
21685
|
+
mistral.model("mistral-large-4", {
|
|
21686
|
+
...MISTRAL_API,
|
|
21687
|
+
name: "Mistral Large 4",
|
|
21688
|
+
ctx: 1e6,
|
|
21689
|
+
capability: null,
|
|
21690
|
+
// Public preview at a sale rate; the published original is 1.36 / 4.18 / 0.14.
|
|
21691
|
+
price: tokenPrice(0.68, 2.09, { cacheRead: 0.07 })
|
|
21692
|
+
});
|
|
21693
|
+
mistral.model("mistral-large-2512", {
|
|
21694
|
+
...MISTRAL_API,
|
|
21695
|
+
name: "Mistral Large 3",
|
|
21696
|
+
ctx: 256e3,
|
|
21697
|
+
capability: null,
|
|
21698
|
+
price: tokenPrice(0.5, 1.5, { cacheRead: 0.05 })
|
|
21699
|
+
});
|
|
21700
|
+
mistral.model("mistral-medium-3-5", {
|
|
21701
|
+
...MISTRAL_API,
|
|
21702
|
+
name: "Mistral Medium 3.5",
|
|
21703
|
+
ctx: 256e3,
|
|
21704
|
+
capability: null,
|
|
21705
|
+
price: tokenPrice(1.5, 7.5, { cacheRead: 0.15 })
|
|
21706
|
+
});
|
|
21707
|
+
mistral.model("mistral-small-2603", {
|
|
21708
|
+
...MISTRAL_API,
|
|
21709
|
+
name: "Mistral Small 4",
|
|
21710
|
+
ctx: 256e3,
|
|
21711
|
+
capability: null,
|
|
21712
|
+
price: tokenPrice(0.15, 0.6, { cacheRead: 0.015 })
|
|
21713
|
+
});
|
|
21714
|
+
mistral.model("ministral-14b-2512", {
|
|
21715
|
+
...MISTRAL_API,
|
|
21716
|
+
name: "Ministral 3 14B",
|
|
21717
|
+
ctx: 256e3,
|
|
21718
|
+
capability: null,
|
|
21719
|
+
price: tokenPrice(0.2, 0.2, { cacheRead: 0.02 })
|
|
21720
|
+
});
|
|
21721
|
+
mistral.model("ministral-8b-2512", {
|
|
21722
|
+
...MISTRAL_API,
|
|
21723
|
+
name: "Ministral 3 8B",
|
|
21724
|
+
ctx: 256e3,
|
|
21725
|
+
capability: null,
|
|
21726
|
+
price: tokenPrice(0.15, 0.15, { cacheRead: 0.015 })
|
|
21727
|
+
});
|
|
21728
|
+
mistral.model("ministral-3b-2512", {
|
|
21729
|
+
...MISTRAL_API,
|
|
21730
|
+
name: "Ministral 3 3B",
|
|
21731
|
+
ctx: 256e3,
|
|
21732
|
+
capability: null,
|
|
21733
|
+
price: tokenPrice(0.1, 0.1, { cacheRead: 0.01 })
|
|
21734
|
+
});
|
|
21735
|
+
mistral.model("codestral-2508", {
|
|
21736
|
+
...MISTRAL_API,
|
|
21737
|
+
name: "Codestral",
|
|
21738
|
+
ctx: 128e3,
|
|
21739
|
+
capability: "code",
|
|
21740
|
+
openWeights: false,
|
|
21741
|
+
price: tokenPrice(0.3, 0.9, { cacheRead: 0.03 })
|
|
21742
|
+
});
|
|
21491
21743
|
mistral.model("mixtral-8x7b", {
|
|
21492
21744
|
name: "Mixtral 8x7B",
|
|
21493
21745
|
seen: "discovered",
|
|
@@ -25494,6 +25746,10 @@ var GROWTH_CORPORA = [
|
|
|
25494
25746
|
build: (length) => joinTo(length, "[", "]", (i) => `"${SQL_WORDS[i % SQL_WORDS.length] ?? ""} ${String(i)}"`)
|
|
25495
25747
|
},
|
|
25496
25748
|
{ name: "single-quoted keyword run ('where)", build: (length) => repeatTo("'where", length) },
|
|
25749
|
+
{
|
|
25750
|
+
name: 'double-quoted keyword literal run ("where" )',
|
|
25751
|
+
build: (length) => repeatTo('"where" ', length)
|
|
25752
|
+
},
|
|
25497
25753
|
{ name: "double-quote run", build: (length) => repeatTo('"', length) },
|
|
25498
25754
|
{ name: "space run", build: (length) => repeatTo(" ", length) },
|
|
25499
25755
|
{ name: "newline run", build: (length) => repeatTo("\n", length) },
|