visual-ai-assertions 0.7.2 → 0.8.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/dist/index.d.cts CHANGED
@@ -18,11 +18,13 @@ declare const Provider: {
18
18
  /** Known model names grouped by provider. */
19
19
  declare const Model: {
20
20
  readonly Anthropic: {
21
+ readonly OPUS_4_7: "claude-opus-4-7";
21
22
  readonly OPUS_4_6: "claude-opus-4-6";
22
23
  readonly SONNET_4_6: "claude-sonnet-4-6";
23
24
  readonly HAIKU_4_5: "claude-haiku-4-5";
24
25
  };
25
26
  readonly OpenAI: {
27
+ readonly GPT_5_5: "gpt-5.5";
26
28
  readonly GPT_5_4: "gpt-5.4";
27
29
  readonly GPT_5_4_PRO: "gpt-5.4-pro";
28
30
  readonly GPT_5_4_MINI: "gpt-5.4-mini";
package/dist/index.d.ts CHANGED
@@ -18,11 +18,13 @@ declare const Provider: {
18
18
  /** Known model names grouped by provider. */
19
19
  declare const Model: {
20
20
  readonly Anthropic: {
21
+ readonly OPUS_4_7: "claude-opus-4-7";
21
22
  readonly OPUS_4_6: "claude-opus-4-6";
22
23
  readonly SONNET_4_6: "claude-sonnet-4-6";
23
24
  readonly HAIKU_4_5: "claude-haiku-4-5";
24
25
  };
25
26
  readonly OpenAI: {
27
+ readonly GPT_5_5: "gpt-5.5";
26
28
  readonly GPT_5_4: "gpt-5.4";
27
29
  readonly GPT_5_4_PRO: "gpt-5.4-pro";
28
30
  readonly GPT_5_4_MINI: "gpt-5.4-mini";
package/dist/index.js CHANGED
@@ -12,11 +12,13 @@ var Provider = {
12
12
  };
13
13
  var Model = {
14
14
  Anthropic: {
15
+ OPUS_4_7: "claude-opus-4-7",
15
16
  OPUS_4_6: "claude-opus-4-6",
16
17
  SONNET_4_6: "claude-sonnet-4-6",
17
18
  HAIKU_4_5: "claude-haiku-4-5"
18
19
  },
19
20
  OpenAI: {
21
+ GPT_5_5: "gpt-5.5",
20
22
  GPT_5_4: "gpt-5.4",
21
23
  GPT_5_4_PRO: "gpt-5.4-pro",
22
24
  GPT_5_4_MINI: "gpt-5.4-mini",
@@ -417,6 +419,10 @@ function parseRetryAfter(value) {
417
419
  }
418
420
 
419
421
  // src/providers/anthropic.ts
422
+ function mapEffort(level, model) {
423
+ if (level !== "xhigh") return level;
424
+ return model === Model.Anthropic.OPUS_4_7 ? "xhigh" : "max";
425
+ }
420
426
  var AnthropicDriver = class {
421
427
  client;
422
428
  model;
@@ -474,7 +480,7 @@ var AnthropicDriver = class {
474
480
  if (this.reasoningEffort) {
475
481
  requestParams.thinking = { type: "adaptive" };
476
482
  requestParams.output_config = {
477
- effort: this.reasoningEffort === "xhigh" ? "max" : this.reasoningEffort
483
+ effort: mapEffort(this.reasoningEffort, this.model)
478
484
  };
479
485
  }
480
486
  const message = await client.messages.create(requestParams);
@@ -798,6 +804,10 @@ function resolveConfig(config) {
798
804
  // src/core/pricing.ts
799
805
  var PER_MILLION = 1e6;
800
806
  var PRICING_TABLE = {
807
+ [`${Provider.ANTHROPIC}:${Model.Anthropic.OPUS_4_7}`]: {
808
+ inputPricePerToken: 5 / PER_MILLION,
809
+ outputPricePerToken: 25 / PER_MILLION
810
+ },
801
811
  [`${Provider.ANTHROPIC}:${Model.Anthropic.OPUS_4_6}`]: {
802
812
  inputPricePerToken: 5 / PER_MILLION,
803
813
  outputPricePerToken: 25 / PER_MILLION
@@ -810,6 +820,10 @@ var PRICING_TABLE = {
810
820
  inputPricePerToken: 1 / PER_MILLION,
811
821
  outputPricePerToken: 5 / PER_MILLION
812
822
  },
823
+ [`${Provider.OPENAI}:${Model.OpenAI.GPT_5_5}`]: {
824
+ inputPricePerToken: 5 / PER_MILLION,
825
+ outputPricePerToken: 30 / PER_MILLION
826
+ },
813
827
  [`${Provider.OPENAI}:${Model.OpenAI.GPT_5_4}`]: {
814
828
  inputPricePerToken: 2.5 / PER_MILLION,
815
829
  outputPricePerToken: 15 / PER_MILLION