@akasecurity/ai-tc-codex 0.9.17-beta.1 → 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/scripts/intro.js CHANGED
@@ -19738,7 +19738,10 @@ function date4(params) {
19738
19738
  var LongContextTier = external_exports.object({
19739
19739
  thresholdInputTokens: external_exports.number().int().positive(),
19740
19740
  input: external_exports.number().nonnegative().nullable(),
19741
- output: external_exports.number().nonnegative().nullable()
19741
+ output: external_exports.number().nonnegative().nullable(),
19742
+ cacheRead: external_exports.number().nonnegative().nullable().optional(),
19743
+ cacheWrite5m: external_exports.number().nonnegative().nullable().optional(),
19744
+ cacheWrite1h: external_exports.number().nonnegative().nullable().optional()
19742
19745
  });
19743
19746
  var ModelPrice = external_exports.object({
19744
19747
  /** USD per 1M uncached input tokens, at or below any long-context threshold. */
@@ -19747,7 +19750,8 @@ var ModelPrice = external_exports.object({
19747
19750
  output: external_exports.number().nonnegative(),
19748
19751
  /**
19749
19752
  * Rate band above a size threshold, or `null` when the model is flat-rated.
19750
- * Anthropic is flat across its 1M window; OpenAI, Google and xAI are not.
19753
+ * OpenAI, Google, xAI and some Anthropic models (Haiku 5.5) band; most
19754
+ * Claude models are flat across their window.
19751
19755
  */
19752
19756
  longContext: LongContextTier.nullable(),
19753
19757
  /** USD per 1M tokens written to a 5-minute ephemeral cache, or null if unpriced. */
@@ -19760,18 +19764,35 @@ var ModelPrice = external_exports.object({
19760
19764
  webSearch: external_exports.number().nonnegative().nullable()
19761
19765
  });
19762
19766
  var WEB_SEARCH_PER_REQUEST = 0.01;
19763
- function anthropicPrice(input2, output2, cacheRead) {
19767
+ function anthropicPrice(input2, output2, cacheRead, longContext = null) {
19764
19768
  return Object.freeze({
19765
19769
  input: input2,
19766
19770
  output: output2,
19767
- longContext: null,
19768
- // flat across the full window on every current Claude
19771
+ longContext: longContext === null ? null : Object.freeze(longContext),
19769
19772
  cacheWrite5m: input2 * 1.25,
19770
19773
  cacheWrite1h: input2 * 2,
19771
19774
  cacheRead,
19772
19775
  webSearch: WEB_SEARCH_PER_REQUEST
19773
19776
  });
19774
19777
  }
19778
+ function anthropicBand(thresholdInputTokens, input2, output2, cacheRead) {
19779
+ return {
19780
+ thresholdInputTokens,
19781
+ input: input2,
19782
+ output: output2,
19783
+ cacheRead,
19784
+ cacheWrite5m: input2 * 1.25,
19785
+ cacheWrite1h: input2 * 2
19786
+ };
19787
+ }
19788
+ function scaledBand(thresholdInputTokens, base, scale) {
19789
+ return {
19790
+ thresholdInputTokens,
19791
+ input: base.input * scale.input,
19792
+ output: base.output * scale.output,
19793
+ ...base.cacheRead === void 0 ? {} : { cacheRead: base.cacheRead * scale.cacheRead }
19794
+ };
19795
+ }
19775
19796
  function tokenPrice(input2, output2, options = {}) {
19776
19797
  return Object.freeze({
19777
19798
  input: input2,
@@ -20018,10 +20039,20 @@ anthropic.model("claude-fable-5-1", {
20018
20039
  });
20019
20040
  anthropic.model("claude-fable-5", {
20020
20041
  name: "Claude Fable 5",
20042
+ ctx: 1e6,
20043
+ maxOut: 128e3,
20021
20044
  capability: "reasoning",
20022
20045
  price: anthropicPrice(10, 50, 1),
20023
20046
  on: [...CLAUDE_RESELLERS]
20024
20047
  });
20048
+ anthropic.model("claude-opus-5-5", {
20049
+ name: "Claude Opus 5.5",
20050
+ ctx: 1e6,
20051
+ maxOut: 128e3,
20052
+ capability: "reasoning",
20053
+ price: anthropicPrice(4, 20, 0.2),
20054
+ on: [...CLAUDE_RESELLERS]
20055
+ });
20025
20056
  anthropic.model("claude-opus-5", {
20026
20057
  name: "Claude Opus 5",
20027
20058
  ctx: 1e6,
@@ -20032,24 +20063,32 @@ anthropic.model("claude-opus-5", {
20032
20063
  });
20033
20064
  anthropic.model("claude-opus-4-8", {
20034
20065
  name: "Claude Opus 4.8",
20066
+ ctx: 1e6,
20067
+ maxOut: 128e3,
20035
20068
  capability: "reasoning",
20036
20069
  price: anthropicPrice(5, 25, 0.5),
20037
20070
  on: [...CLAUDE_RESELLERS]
20038
20071
  });
20039
20072
  anthropic.model("claude-opus-4-7", {
20040
20073
  name: "Claude Opus 4.7",
20074
+ ctx: 1e6,
20075
+ maxOut: 128e3,
20041
20076
  capability: "reasoning",
20042
20077
  price: anthropicPrice(5, 25, 0.5),
20043
20078
  on: [...CLAUDE_RESELLERS]
20044
20079
  });
20045
20080
  anthropic.model("claude-opus-4-6", {
20046
20081
  name: "Claude Opus 4.6",
20082
+ ctx: 1e6,
20083
+ maxOut: 128e3,
20047
20084
  capability: "reasoning",
20048
20085
  price: anthropicPrice(5, 25, 0.5),
20049
20086
  on: [...CLAUDE_RESELLERS]
20050
20087
  });
20051
20088
  anthropic.model("claude-opus-4-5", {
20052
20089
  name: "Claude Opus 4.5",
20090
+ ctx: 2e5,
20091
+ maxOut: 64e3,
20053
20092
  capability: "reasoning",
20054
20093
  price: anthropicPrice(5, 25, 0.5),
20055
20094
  on: [...CLAUDE_RESELLERS]
@@ -20060,6 +20099,14 @@ anthropic.model("claude-opus-4-1", {
20060
20099
  price: anthropicPrice(15, 75, 1.5),
20061
20100
  on: [...CLAUDE_RESELLERS]
20062
20101
  });
20102
+ anthropic.model("claude-sonnet-5-5", {
20103
+ name: "Claude Sonnet 5.5",
20104
+ ctx: 1e6,
20105
+ maxOut: 128e3,
20106
+ capability: "reasoning",
20107
+ price: anthropicPrice(2, 10, 0.1),
20108
+ on: [...CLAUDE_RESELLERS]
20109
+ });
20063
20110
  anthropic.model("claude-sonnet-5", {
20064
20111
  name: "Claude Sonnet 5",
20065
20112
  ctx: 1e6,
@@ -20070,16 +20117,30 @@ anthropic.model("claude-sonnet-5", {
20070
20117
  });
20071
20118
  anthropic.model("claude-sonnet-4-6", {
20072
20119
  name: "Claude Sonnet 4.6",
20120
+ ctx: 1e6,
20121
+ maxOut: 128e3,
20073
20122
  capability: "reasoning",
20074
20123
  price: anthropicPrice(3, 15, 0.3),
20075
20124
  on: [...CLAUDE_RESELLERS]
20076
20125
  });
20077
20126
  anthropic.model("claude-sonnet-4-5", {
20078
20127
  name: "Claude Sonnet 4.5",
20128
+ ctx: 2e5,
20129
+ maxOut: 64e3,
20079
20130
  capability: "reasoning",
20080
20131
  price: anthropicPrice(3, 15, 0.3),
20081
20132
  on: [...CLAUDE_RESELLERS]
20082
20133
  });
20134
+ anthropic.model("claude-haiku-5-5", {
20135
+ name: "Claude Haiku 5.5",
20136
+ ctx: 1e6,
20137
+ maxOut: 128e3,
20138
+ capability: null,
20139
+ // A prompt over 100,000 tokens, cache reads and writes included, bills the
20140
+ // whole request at the higher band.
20141
+ price: anthropicPrice(0.1, 0.5, 0.01, anthropicBand(1e5, 0.5, 2.5, 0.05)),
20142
+ on: [...CLAUDE_RESELLERS]
20143
+ });
20083
20144
  anthropic.model("claude-haiku-4-5", {
20084
20145
  name: "Claude Haiku 4.5",
20085
20146
  ctx: 2e5,
@@ -20102,7 +20163,13 @@ var OPENAI_TRAINING = {
20102
20163
  consumerControl: "opt-out",
20103
20164
  source: "https://developers.openai.com/api/docs/guides/your-data"
20104
20165
  };
20105
- var LONG_CONTEXT_272K = { thresholdInputTokens: 272e3, input: null, output: null };
20166
+ function gptPrice(input2, output2, cacheRead) {
20167
+ const base = { input: input2, output: output2, ...cacheRead === void 0 ? {} : { cacheRead } };
20168
+ return tokenPrice(input2, output2, {
20169
+ ...base,
20170
+ longContext: scaledBand(272e3, base, { input: 2, output: 1.5, cacheRead: 2 })
20171
+ });
20172
+ }
20106
20173
  var openai = vendor("openai", {
20107
20174
  family: { id: "gpt", name: "GPT" },
20108
20175
  region: "us",
@@ -20110,12 +20177,45 @@ var openai = vendor("openai", {
20110
20177
  training: OPENAI_TRAINING
20111
20178
  });
20112
20179
  var OPENAI_RESELLERS = ["azure", "foundry"];
20180
+ openai.model("gpt-6-astra", {
20181
+ name: "GPT-6 Astra",
20182
+ ctx: 105e4,
20183
+ maxOut: 128e3,
20184
+ capability: "reasoning",
20185
+ price: gptPrice(10, 50, 1),
20186
+ on: [...OPENAI_RESELLERS]
20187
+ });
20188
+ openai.model("gpt-6.1-sol", {
20189
+ name: "GPT-6.1 Sol",
20190
+ ctx: 105e4,
20191
+ maxOut: 128e3,
20192
+ capability: "reasoning",
20193
+ price: gptPrice(2, 10, 0.1),
20194
+ on: [...OPENAI_RESELLERS]
20195
+ });
20196
+ openai.model("gpt-6-sol", {
20197
+ name: "GPT-6 Sol",
20198
+ ctx: 105e4,
20199
+ maxOut: 128e3,
20200
+ capability: "reasoning",
20201
+ price: gptPrice(2, 10, 0.2),
20202
+ on: [...OPENAI_RESELLERS]
20203
+ });
20204
+ openai.model("gpt-6-luna", {
20205
+ name: "GPT-6 Luna",
20206
+ ctx: 105e4,
20207
+ maxOut: 128e3,
20208
+ capability: null,
20209
+ price: gptPrice(0.1, 0.5, 0.01),
20210
+ on: [...OPENAI_RESELLERS]
20211
+ });
20113
20212
  openai.model("gpt-5.6-sol", {
20114
20213
  name: "GPT-5.6 Sol",
20214
+ // Promotional rate, published as available at least through 2026-11-21.
20115
20215
  ctx: 105e4,
20116
20216
  maxOut: 128e3,
20117
20217
  capability: "reasoning",
20118
- price: tokenPrice(4, 20, { cacheRead: 0.4, longContext: LONG_CONTEXT_272K }),
20218
+ price: gptPrice(4, 20, 0.4),
20119
20219
  on: [...OPENAI_RESELLERS]
20120
20220
  });
20121
20221
  openai.model("gpt-5.6-terra", {
@@ -20123,7 +20223,7 @@ openai.model("gpt-5.6-terra", {
20123
20223
  ctx: 105e4,
20124
20224
  maxOut: 128e3,
20125
20225
  capability: "reasoning",
20126
- price: tokenPrice(2, 12, { cacheRead: 0.2, longContext: LONG_CONTEXT_272K }),
20226
+ price: gptPrice(2, 12, 0.2),
20127
20227
  on: [...OPENAI_RESELLERS]
20128
20228
  });
20129
20229
  openai.model("gpt-5.6-luna", {
@@ -20131,7 +20231,7 @@ openai.model("gpt-5.6-luna", {
20131
20231
  ctx: 105e4,
20132
20232
  maxOut: 128e3,
20133
20233
  capability: null,
20134
- price: tokenPrice(0.2, 1.2, { cacheRead: 0.02, longContext: LONG_CONTEXT_272K }),
20234
+ price: gptPrice(0.2, 1.2, 0.02),
20135
20235
  on: [...OPENAI_RESELLERS]
20136
20236
  });
20137
20237
  openai.model("gpt-5.5", {
@@ -20139,7 +20239,15 @@ openai.model("gpt-5.5", {
20139
20239
  ctx: 105e4,
20140
20240
  maxOut: 128e3,
20141
20241
  capability: "reasoning",
20142
- price: tokenPrice(5, 30, { cacheRead: 0.5, longContext: LONG_CONTEXT_272K }),
20242
+ price: gptPrice(5, 30, 0.5),
20243
+ on: [...OPENAI_RESELLERS]
20244
+ });
20245
+ openai.model("gpt-5.5-pro", {
20246
+ name: "GPT-5.5 Pro",
20247
+ ctx: 105e4,
20248
+ maxOut: 128e3,
20249
+ capability: "reasoning",
20250
+ price: gptPrice(30, 180),
20143
20251
  on: [...OPENAI_RESELLERS]
20144
20252
  });
20145
20253
  openai.model("gpt-5.4", {
@@ -20147,7 +20255,7 @@ openai.model("gpt-5.4", {
20147
20255
  ctx: 105e4,
20148
20256
  maxOut: 128e3,
20149
20257
  capability: "reasoning",
20150
- price: tokenPrice(2.5, 15, { cacheRead: 0.25, longContext: LONG_CONTEXT_272K }),
20258
+ price: gptPrice(2.5, 15, 0.25),
20151
20259
  on: [...OPENAI_RESELLERS]
20152
20260
  });
20153
20261
  openai.model("gpt-5.4-mini", {
@@ -20193,6 +20301,7 @@ openai.model("gpt-5", {
20193
20301
  openai.model("gpt-5-mini", {
20194
20302
  name: "GPT-5 mini",
20195
20303
  ctx: 4e5,
20304
+ maxOut: 128e3,
20196
20305
  capability: null,
20197
20306
  price: tokenPrice(0.25, 2, { cacheRead: 0.025 }),
20198
20307
  on: [...OPENAI_RESELLERS]
@@ -20207,11 +20316,15 @@ openai.model("gpt-5-nano", {
20207
20316
  });
20208
20317
  openai.model("gpt-4.1", {
20209
20318
  name: "GPT-4.1",
20319
+ ctx: 1047576,
20320
+ maxOut: 32768,
20210
20321
  price: tokenPrice(2, 8, { cacheRead: 0.5 }),
20211
20322
  on: [...OPENAI_RESELLERS]
20212
20323
  });
20213
20324
  openai.model("gpt-4o", {
20214
20325
  name: "GPT-4o",
20326
+ ctx: 128e3,
20327
+ maxOut: 16384,
20215
20328
  price: tokenPrice(2.5, 10, { cacheRead: 1.25 }),
20216
20329
  on: [...OPENAI_RESELLERS]
20217
20330
  });
@@ -20235,6 +20348,8 @@ openai.model("gpt-4-turbo", {
20235
20348
  });
20236
20349
  openai.model("o3", {
20237
20350
  name: "o3",
20351
+ ctx: 2e5,
20352
+ maxOut: 1e5,
20238
20353
  capability: "reasoning",
20239
20354
  price: tokenPrice(2, 8, { cacheRead: 0.5 }),
20240
20355
  on: [...OPENAI_RESELLERS]
@@ -20287,57 +20402,100 @@ var google = vendor("google", {
20287
20402
  retention: "configurable",
20288
20403
  training: GOOGLE_TRAINING
20289
20404
  });
20405
+ google.model("gemini-3.8-flash", {
20406
+ name: "Gemini 3.8 Flash",
20407
+ ctx: 1048576,
20408
+ maxOut: 65536,
20409
+ capability: null,
20410
+ price: tokenPrice(0.75, 3.75, { cacheRead: 0.075 }),
20411
+ on: ["vertex"]
20412
+ });
20290
20413
  google.model("gemini-3.7-flash", {
20291
20414
  name: "Gemini 3.7 Flash",
20292
20415
  capability: null,
20293
- // Promotional rate; the published post-promotion rate is 1.50 / 7.50.
20294
20416
  price: tokenPrice(0.75, 3.75),
20295
20417
  on: ["vertex"]
20296
20418
  });
20297
20419
  google.model("gemini-3.6-flash", {
20298
20420
  name: "Gemini 3.6 Flash",
20421
+ ctx: 1048576,
20422
+ maxOut: 65536,
20299
20423
  capability: null,
20300
- price: tokenPrice(0.75, 3.75),
20424
+ price: tokenPrice(0.75, 3.75, { cacheRead: 0.075 }),
20301
20425
  on: ["vertex"]
20302
20426
  });
20303
20427
  google.model("gemini-3.5-flash", {
20304
20428
  name: "Gemini 3.5 Flash",
20305
20429
  capability: null,
20306
- price: tokenPrice(1.5, 9),
20307
20430
  on: ["vertex"]
20308
20431
  });
20309
20432
  google.model("gemini-3.5-flash-lite", {
20310
20433
  name: "Gemini 3.5 Flash Lite",
20434
+ ctx: 1048576,
20435
+ maxOut: 65536,
20436
+ capability: null,
20437
+ price: tokenPrice(0.3, 2.5, { cacheRead: 0.03 }),
20438
+ on: ["vertex"]
20439
+ });
20440
+ google.model("gemini-3.1-flash-lite", {
20441
+ name: "Gemini 3.1 Flash Lite",
20442
+ ctx: 1048576,
20443
+ maxOut: 65536,
20444
+ capability: null,
20445
+ price: tokenPrice(0.25, 1.5, { cacheRead: 0.025 }),
20446
+ on: ["vertex"]
20447
+ });
20448
+ google.model("gemini-3-flash-preview", {
20449
+ name: "Gemini 3 Flash Preview",
20450
+ ctx: 1048576,
20451
+ maxOut: 65536,
20311
20452
  capability: null,
20312
- price: tokenPrice(0.3, 2.5),
20453
+ price: tokenPrice(0.5, 3, { cacheRead: 0.05 }),
20313
20454
  on: ["vertex"]
20314
20455
  });
20315
20456
  google.model("gemini-3.1-pro-preview", {
20316
20457
  name: "Gemini 3.1 Pro Preview",
20458
+ ctx: 1048576,
20459
+ maxOut: 65536,
20317
20460
  capability: "reasoning",
20318
20461
  price: tokenPrice(2, 12, {
20319
- longContext: { thresholdInputTokens: 2e5, input: 4, output: 18 }
20462
+ cacheRead: 0.2,
20463
+ longContext: { thresholdInputTokens: 2e5, input: 4, output: 18, cacheRead: 0.4 }
20320
20464
  }),
20465
+ aliases: ["gemini-3.1-pro-preview-customtools"],
20321
20466
  on: ["vertex"]
20322
20467
  });
20323
20468
  google.model("gemini-2.5-pro", {
20324
20469
  name: "Gemini 2.5 Pro",
20470
+ ctx: 1048576,
20471
+ maxOut: 65536,
20325
20472
  capability: "reasoning",
20326
20473
  price: tokenPrice(1.25, 10, {
20327
- longContext: { thresholdInputTokens: 2e5, input: 2.5, output: 15 }
20474
+ cacheRead: 0.125,
20475
+ longContext: { thresholdInputTokens: 2e5, input: 2.5, output: 15, cacheRead: 0.25 }
20328
20476
  }),
20329
20477
  on: ["vertex"]
20330
20478
  });
20331
20479
  google.model("gemini-2.5-flash", {
20332
20480
  name: "Gemini 2.5 Flash",
20481
+ ctx: 1048576,
20482
+ maxOut: 65536,
20333
20483
  capability: null,
20334
- price: tokenPrice(0.3, 2.5),
20484
+ price: tokenPrice(0.3, 2.5, { cacheRead: 0.03 }),
20335
20485
  on: ["vertex"]
20336
20486
  });
20337
20487
  google.model("gemini-2.5-flash-lite", {
20338
20488
  name: "Gemini 2.5 Flash Lite",
20489
+ ctx: 1048576,
20490
+ maxOut: 65536,
20339
20491
  capability: null,
20340
- price: tokenPrice(0.1, 0.4),
20492
+ price: tokenPrice(0.1, 0.4, { cacheRead: 0.01 }),
20493
+ on: ["vertex"]
20494
+ });
20495
+ google.model("gemini-embedding-2", {
20496
+ name: "Gemini Embedding 2",
20497
+ capability: "embedding",
20498
+ price: tokenPrice(0.2, 0),
20341
20499
  on: ["vertex"]
20342
20500
  });
20343
20501
  google.model("gemini-1-5-pro", { name: "Gemini 1.5 Pro", on: ["vertex"] });
@@ -20353,43 +20511,62 @@ var xai = vendor("xai", {
20353
20511
  source: "https://docs.x.ai/developers/faq/security"
20354
20512
  }
20355
20513
  });
20514
+ function grokPrice(input2, output2, cacheRead) {
20515
+ const base = { input: input2, output: output2, cacheRead };
20516
+ return tokenPrice(input2, output2, {
20517
+ cacheRead,
20518
+ longContext: scaledBand(2e5, base, { input: 2, output: 2, cacheRead: 2 })
20519
+ });
20520
+ }
20521
+ xai.model("grok-4.7", {
20522
+ name: "Grok 4.7",
20523
+ ctx: 5e5,
20524
+ capability: "reasoning",
20525
+ price: grokPrice(2, 6, 0.5)
20526
+ });
20356
20527
  xai.model("grok-4.6", {
20357
20528
  name: "Grok 4.6",
20358
20529
  ctx: 5e5,
20359
20530
  capability: "reasoning",
20360
- price: tokenPrice(2, 6, {
20361
- cacheRead: 0.5,
20362
- longContext: { thresholdInputTokens: 2e5, input: 4, output: 12 }
20363
- }),
20531
+ price: grokPrice(2, 6, 0.5),
20364
20532
  on: ["bedrock"]
20365
20533
  });
20366
20534
  xai.model("grok-4.5", {
20367
20535
  name: "Grok 4.5",
20368
20536
  ctx: 5e5,
20369
20537
  capability: "reasoning",
20370
- price: tokenPrice(2, 6, {
20371
- cacheRead: 0.3,
20372
- longContext: { thresholdInputTokens: 2e5, input: 4, output: 12 }
20373
- })
20538
+ price: grokPrice(2, 6, 0.3)
20374
20539
  });
20375
20540
  xai.model("grok-4.3", {
20376
20541
  name: "Grok 4.3",
20377
20542
  ctx: 1e6,
20378
20543
  capability: "reasoning",
20379
- price: tokenPrice(1.25, 2.5, {
20380
- cacheRead: 0.2,
20381
- longContext: { thresholdInputTokens: 2e5, input: 2.5, output: 5 }
20382
- }),
20544
+ price: grokPrice(1.25, 2.5, 0.2),
20383
20545
  on: ["bedrock"]
20384
20546
  });
20547
+ xai.model("grok-4.20-0309-reasoning", {
20548
+ name: "Grok 4.20 Reasoning",
20549
+ capability: "reasoning",
20550
+ ctx: 1e6,
20551
+ price: grokPrice(1.25, 2.5, 0.2)
20552
+ });
20553
+ xai.model("grok-4.20-0309-non-reasoning", {
20554
+ name: "Grok 4.20",
20555
+ capability: null,
20556
+ ctx: 1e6,
20557
+ price: grokPrice(1.25, 2.5, 0.2)
20558
+ });
20559
+ xai.model("grok-4.20-multi-agent-0309", {
20560
+ name: "Grok 4.20 Multi-Agent",
20561
+ capability: "reasoning",
20562
+ ctx: 1e6,
20563
+ price: grokPrice(1.25, 2.5, 0.2)
20564
+ });
20385
20565
  xai.model("grok-build-0.1", {
20386
20566
  name: "Grok Build 0.1",
20387
20567
  ctx: 256e3,
20388
20568
  capability: "code",
20389
- price: tokenPrice(1, 2, {
20390
- cacheRead: 0.2,
20391
- longContext: { thresholdInputTokens: 2e5, input: 2, output: 4 }
20392
- })
20569
+ price: grokPrice(1, 2, 0.2)
20393
20570
  });
20394
20571
  var deepseek = vendor("deepseek", {
20395
20572
  family: { id: "deepseek", name: "DeepSeek" },
@@ -20402,16 +20579,25 @@ var deepseek = vendor("deepseek", {
20402
20579
  source: "https://cdn.deepseek.com/policies/en-US/deepseek-privacy-policy.html"
20403
20580
  }
20404
20581
  });
20582
+ deepseek.model("deepseek-flash", {
20583
+ name: "DeepSeek V4.1 Flash",
20584
+ ctx: 1e6,
20585
+ maxOut: 384e3,
20586
+ capability: null,
20587
+ price: tokenPrice(0.3, 1.2, { cacheRead: 6e-3 })
20588
+ });
20405
20589
  deepseek.model("deepseek-v4-flash", {
20406
20590
  name: "DeepSeek V4 Flash",
20407
20591
  ctx: 1e6,
20592
+ maxOut: 384e3,
20408
20593
  capability: null,
20409
- price: tokenPrice(0.44, 1.32, { cacheRead: 0.014 }),
20594
+ price: tokenPrice(0.3, 1.2, { cacheRead: 6e-3 }),
20410
20595
  on: ["bedrock", "together", "fireworks", "openrouter", "ollama", "local"]
20411
20596
  });
20412
20597
  deepseek.model("deepseek-v4-pro", {
20413
20598
  name: "DeepSeek V4 Pro",
20414
20599
  ctx: 1e6,
20600
+ maxOut: 384e3,
20415
20601
  capability: "reasoning",
20416
20602
  price: tokenPrice(1.32, 3.96, { cacheRead: 0.044 }),
20417
20603
  on: ["bedrock", "together", "fireworks", "openrouter"]
@@ -20458,7 +20644,14 @@ cohere.model("command-r-plus-08-2024", {
20458
20644
  ctx: 128e3,
20459
20645
  maxOut: 4e3,
20460
20646
  price: tokenPrice(2.5, 10),
20461
- // The undated form is what deployments report; the live id carries the date.
20647
+ on: ["bedrock"]
20648
+ });
20649
+ cohere.model("command-r-plus-04-2024", {
20650
+ name: "Command R+ (04-2024)",
20651
+ seen: "discovered",
20652
+ ctx: 128e3,
20653
+ maxOut: 4e3,
20654
+ price: tokenPrice(3, 15),
20462
20655
  aliases: ["command-r-plus"],
20463
20656
  on: ["bedrock"]
20464
20657
  });
@@ -20526,6 +20719,65 @@ var mistral = vendor("mistral", {
20526
20719
  retention: "unknown",
20527
20720
  defaultHosting: "local"
20528
20721
  });
20722
+ var MISTRAL_API = { defaultHosting: "api" };
20723
+ mistral.model("mistral-large-4", {
20724
+ ...MISTRAL_API,
20725
+ name: "Mistral Large 4",
20726
+ ctx: 1e6,
20727
+ capability: null,
20728
+ // Public preview at a sale rate; the published original is 1.36 / 4.18 / 0.14.
20729
+ price: tokenPrice(0.68, 2.09, { cacheRead: 0.07 })
20730
+ });
20731
+ mistral.model("mistral-large-2512", {
20732
+ ...MISTRAL_API,
20733
+ name: "Mistral Large 3",
20734
+ ctx: 256e3,
20735
+ capability: null,
20736
+ price: tokenPrice(0.5, 1.5, { cacheRead: 0.05 })
20737
+ });
20738
+ mistral.model("mistral-medium-3-5", {
20739
+ ...MISTRAL_API,
20740
+ name: "Mistral Medium 3.5",
20741
+ ctx: 256e3,
20742
+ capability: null,
20743
+ price: tokenPrice(1.5, 7.5, { cacheRead: 0.15 })
20744
+ });
20745
+ mistral.model("mistral-small-2603", {
20746
+ ...MISTRAL_API,
20747
+ name: "Mistral Small 4",
20748
+ ctx: 256e3,
20749
+ capability: null,
20750
+ price: tokenPrice(0.15, 0.6, { cacheRead: 0.015 })
20751
+ });
20752
+ mistral.model("ministral-14b-2512", {
20753
+ ...MISTRAL_API,
20754
+ name: "Ministral 3 14B",
20755
+ ctx: 256e3,
20756
+ capability: null,
20757
+ price: tokenPrice(0.2, 0.2, { cacheRead: 0.02 })
20758
+ });
20759
+ mistral.model("ministral-8b-2512", {
20760
+ ...MISTRAL_API,
20761
+ name: "Ministral 3 8B",
20762
+ ctx: 256e3,
20763
+ capability: null,
20764
+ price: tokenPrice(0.15, 0.15, { cacheRead: 0.015 })
20765
+ });
20766
+ mistral.model("ministral-3b-2512", {
20767
+ ...MISTRAL_API,
20768
+ name: "Ministral 3 3B",
20769
+ ctx: 256e3,
20770
+ capability: null,
20771
+ price: tokenPrice(0.1, 0.1, { cacheRead: 0.01 })
20772
+ });
20773
+ mistral.model("codestral-2508", {
20774
+ ...MISTRAL_API,
20775
+ name: "Codestral",
20776
+ ctx: 128e3,
20777
+ capability: "code",
20778
+ openWeights: false,
20779
+ price: tokenPrice(0.3, 0.9, { cacheRead: 0.03 })
20780
+ });
20529
20781
  mistral.model("mixtral-8x7b", {
20530
20782
  name: "Mixtral 8x7B",
20531
20783
  seen: "discovered",
@@ -21318,6 +21570,11 @@ var CaptureAttributes = external_exports.object({
21318
21570
  // here too. The full statement is on EventMetadata.redactDegradedTo; it is
21319
21571
  // repeated rather than referenced because a store reader opens this file.
21320
21572
  redact_degraded_to: ActionTaken.optional(),
21573
+ // Why a capture has no content and no findings: its field was refused
21574
+ // because its bounded scan did not finish (see EventMetadata.scanIncomplete,
21575
+ // whose value this is). Absent on every capture that was scanned, so a
21576
+ // reader can tell a refused row from an empty clean one.
21577
+ scan_incomplete: external_exports.enum(["timeout", "unavailable"]).optional(),
21321
21578
  // The scope key this capture was stamped with: the canonical repository
21322
21579
  // (`host/owner/repo`) of the path the capture names (a relative path is read
21323
21580
  // against its working directory), else of its own working directory, or a
@@ -22628,7 +22885,19 @@ var EventMetadata = external_exports.object({
22628
22885
  // Both are pinned as behaviour in @akasecurity/plugin-sdk's runtime suite.
22629
22886
  // Closing either means moving the reason onto the finding row, which
22630
22887
  // already carries its own action.
22631
- redactDegradedTo: ActionTaken.optional()
22888
+ redactDegradedTo: ActionTaken.optional(),
22889
+ // Set when this capture's field was REFUSED rather than scanned: a hook
22890
+ // bounds the scan of a large field (see `LargeInputScanOptions` in
22891
+ // @akasecurity/plugin-sdk), and a scan that did not finish blocks the
22892
+ // field instead of letting it through unscanned.
22893
+ //
22894
+ // - 'timeout': the bounded scan ran out of time.
22895
+ // - 'unavailable': no worker could run it.
22896
+ //
22897
+ // A refused row stores '' as its content and has no findings, which is
22898
+ // exactly what a clean, empty capture looks like — this marker is the only
22899
+ // thing that tells the two apart. Absent on every capture that was scanned.
22900
+ scanIncomplete: external_exports.enum(["timeout", "unavailable"]).optional()
22632
22901
  }).meta({ id: "EventMetadata" });
22633
22902
  var Event = external_exports.object({
22634
22903
  id: external_exports.guid(),