@kenkaiiii/gg-core 5.22.6 → 5.23.1

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.cjs CHANGED
@@ -1656,8 +1656,12 @@ var MODELS = [
1656
1656
  // maxThinkingLevel: "max",
1657
1657
  // },
1658
1658
  {
1659
- id: "claude-opus-4-8",
1660
- name: "Claude Opus 4.8",
1659
+ // Released 2026-07-24 — "For complex agentic coding and enterprise work".
1660
+ // Near-Fable capability at half the price ($5/$25 vs $10/$50). Adaptive
1661
+ // thinking with the full effort ladder (low→max, xhigh included); dateless
1662
+ // ID is the canonical pinned snapshot (post-4.6 naming scheme).
1663
+ id: "claude-opus-5",
1664
+ name: "Claude Opus 5",
1661
1665
  provider: "anthropic",
1662
1666
  contextWindow: 1e6,
1663
1667
  maxOutputTokens: 128e3,
@@ -2124,7 +2128,7 @@ var OPENAI_GPT_56_THINKING_LEVELS = [
2124
2128
  ];
2125
2129
  var SAKANA_THINKING_LEVELS = ["high", "xhigh"];
2126
2130
  var XAI_THINKING_LEVELS = ["low", "medium", "high"];
2127
- var ANTHROPIC_OPUS_48_47_THINKING_LEVELS = [
2131
+ var ANTHROPIC_XHIGH_THINKING_LEVELS = [
2128
2132
  "low",
2129
2133
  "medium",
2130
2134
  "high",
@@ -2150,16 +2154,16 @@ function isXaiModel(provider) {
2150
2154
  function isMoonshotK3Model(provider, model) {
2151
2155
  return provider === "moonshot" && model === "kimi-k3";
2152
2156
  }
2153
- function isAnthropicOpus48Or47Model(provider, model) {
2154
- return provider === "anthropic" && /opus-4-8|opus-4-7/.test(model);
2157
+ function isAnthropicXhighModel(provider, model) {
2158
+ return provider === "anthropic" && /opus-5|opus-4-8|opus-4-7/.test(model);
2155
2159
  }
2156
2160
  function isAnthropicAdaptiveModel(provider, model) {
2157
- return provider === "anthropic" && /opus-4-8|opus-4-7|opus-4-6|sonnet-5|fable-5|mythos-5/.test(model);
2161
+ return provider === "anthropic" && /opus-5|opus-4-8|opus-4-7|opus-4-6|sonnet-5|fable-5|mythos-5/.test(model);
2158
2162
  }
2159
2163
  function getSupportedThinkingLevels(provider, model) {
2160
2164
  const maxLevel = getMaxThinkingLevel(model);
2161
2165
  if (isAnthropicAdaptiveModel(provider, model)) {
2162
- const levels2 = isAnthropicOpus48Or47Model(provider, model) ? ANTHROPIC_OPUS_48_47_THINKING_LEVELS : ANTHROPIC_ADAPTIVE_THINKING_LEVELS;
2166
+ const levels2 = isAnthropicXhighModel(provider, model) ? ANTHROPIC_XHIGH_THINKING_LEVELS : ANTHROPIC_ADAPTIVE_THINKING_LEVELS;
2163
2167
  const maxIndex2 = levels2.indexOf(maxLevel);
2164
2168
  if (maxIndex2 === -1) return ["low", "medium", "high"];
2165
2169
  return levels2.slice(0, maxIndex2 + 1);