@kenkaiiii/gg-boss 4.7.0 → 4.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.
@@ -63187,10 +63187,25 @@ function formatResetTime(resetsAt) {
63187
63187
  minute: "2-digit"
63188
63188
  });
63189
63189
  }
63190
+ function isMythosAccessError(message) {
63191
+ const lower = message.toLowerCase();
63192
+ return lower.includes("mythos") && (lower.includes("not_found") || lower.includes("not found") || lower.includes("no access"));
63193
+ }
63190
63194
  function formatError2(err) {
63191
63195
  if (err instanceof ProviderError) {
63192
63196
  const name = providerDisplayName(err.provider);
63193
63197
  const cleanMessage = cleanProviderMessage(err.message);
63198
+ if (isMythosAccessError(cleanMessage)) {
63199
+ return {
63200
+ headline: "Claude Mythos 5 is invitation-only.",
63201
+ source: "provider",
63202
+ message: "Your Anthropic account isn't approved for Project Glasswing, so the API reports the model as not found.",
63203
+ provider: err.provider,
63204
+ statusCode: err.statusCode,
63205
+ ...err.requestId ? { requestId: err.requestId } : {},
63206
+ guidance: "Request access via your Anthropic account team (see platform.claude.com/docs/en/about-claude/models/overview), or switch to claude-fable-5 with /model \u2014 same underlying model, generally available."
63207
+ };
63208
+ }
63194
63209
  if (isUsageLimitError(err)) {
63195
63210
  const resetClause = err.resetsAt ? ` It resets at ${formatResetTime(err.resetsAt)}.` : "";
63196
63211
  return {
@@ -63816,7 +63831,7 @@ function toAnthropicToolChoice(choice) {
63816
63831
  return { type: "tool", name: choice.name };
63817
63832
  }
63818
63833
  function isAdaptiveThinkingModel(model) {
63819
- return /opus-4[-.]8|opus-4[-.]7|opus-4[-.]6|sonnet-4[-.]6/.test(model);
63834
+ return /opus-4[-.]8|opus-4[-.]7|opus-4[-.]6|sonnet-4[-.]6|fable-5|mythos-5/.test(model);
63820
63835
  }
63821
63836
  function toAnthropicThinking(level, maxTokens, model) {
63822
63837
  if (isAdaptiveThinkingModel(model)) {
@@ -67433,10 +67448,37 @@ var Agent = class {
67433
67448
  }
67434
67449
  };
67435
67450
 
67436
- // ../gg-core/dist/chunk-74Z6I5V7.js
67451
+ // ../gg-core/dist/chunk-227IRQAU.js
67437
67452
  init_esm_shims();
67438
67453
  var MODELS = [
67439
67454
  // ── Anthropic ──────────────────────────────────────────
67455
+ {
67456
+ id: "claude-fable-5",
67457
+ name: "Claude Fable 5",
67458
+ provider: "anthropic",
67459
+ contextWindow: 1e6,
67460
+ maxOutputTokens: 128e3,
67461
+ supportsThinking: true,
67462
+ supportsImages: true,
67463
+ supportsVideo: false,
67464
+ costTier: "high",
67465
+ maxThinkingLevel: "max"
67466
+ },
67467
+ {
67468
+ // Mythos-class model offered through Project Glasswing (limited
67469
+ // availability, invitation-only). Same underlying model as Fable 5 with
67470
+ // some safeguards lifted; kept here so approved accounts can select it.
67471
+ id: "claude-mythos-5",
67472
+ name: "Claude Mythos 5",
67473
+ provider: "anthropic",
67474
+ contextWindow: 1e6,
67475
+ maxOutputTokens: 128e3,
67476
+ supportsThinking: true,
67477
+ supportsImages: true,
67478
+ supportsVideo: false,
67479
+ costTier: "high",
67480
+ maxThinkingLevel: "max"
67481
+ },
67440
67482
  {
67441
67483
  id: "claude-opus-4-8",
67442
67484
  name: "Claude Opus 4.8",
@@ -67798,7 +67840,7 @@ function isAnthropicOpus48Or47Model(provider, model) {
67798
67840
  return provider === "anthropic" && /opus-4-8|opus-4-7/.test(model);
67799
67841
  }
67800
67842
  function isAnthropicAdaptiveModel(provider, model) {
67801
- return provider === "anthropic" && /opus-4-8|opus-4-7|opus-4-6|sonnet-4-6/.test(model);
67843
+ return provider === "anthropic" && /opus-4-8|opus-4-7|opus-4-6|sonnet-4-6|fable-5|mythos-5/.test(model);
67802
67844
  }
67803
67845
  function getSupportedThinkingLevels(provider, model) {
67804
67846
  const maxLevel = getMaxThinkingLevel(model);
@@ -114565,4 +114607,4 @@ react/cjs/react-jsx-runtime.development.js:
114565
114607
  * LICENSE file in the root directory of this source tree.
114566
114608
  *)
114567
114609
  */
114568
- //# sourceMappingURL=chunk-ZJHFDDEC.js.map
114610
+ //# sourceMappingURL=chunk-JZC6MVWQ.js.map