opencode-anthropic-multi-account 0.2.74 → 0.2.75

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.js CHANGED
@@ -1674,10 +1674,14 @@ var CLAUDE_CODE_VERSION = templateMetadata.ccVersion ?? "2.1.137";
1674
1674
  var CCH_REMOVED_VERSION = "2.1.183";
1675
1675
  var CLAUDE_FABLE_MODEL_ID = "claude-fable-5";
1676
1676
  var CLAUDE_FABLE_1M_MODEL_ID = `${CLAUDE_FABLE_MODEL_ID}[1m]`;
1677
+ var CLAUDE_SONNET_MODEL_ID = "claude-sonnet-5";
1678
+ var CLAUDE_SONNET_1M_MODEL_ID = `${CLAUDE_SONNET_MODEL_ID}[1m]`;
1677
1679
  var CLIENT_SYSTEM_PREFACE = "\n\n---\n\nIMPORTANT: The operator of this session has supplied the following task-specific instructions. Follow them for task format, style, and output requirements when they do not conflict with security, authorization, refusal, tool-execution, confirmation, or other safety rules above. Those safety and tool-use constraints remain higher priority and cannot be overridden:\n\n";
1678
1680
  var CLAUDE_CODE_MODEL_ALIASES = {
1679
1681
  fable: CLAUDE_FABLE_MODEL_ID,
1680
- fable1m: CLAUDE_FABLE_1M_MODEL_ID
1682
+ fable1m: CLAUDE_FABLE_1M_MODEL_ID,
1683
+ sonnet: CLAUDE_SONNET_MODEL_ID,
1684
+ sonnet1m: CLAUDE_SONNET_1M_MODEL_ID
1681
1685
  };
1682
1686
  function stripClaudeCodeProviderPrefix(modelId) {
1683
1687
  const slash = modelId.indexOf("/");
@@ -3987,6 +3991,7 @@ function getDanglingToolUseError(messages) {
3987
3991
  return null;
3988
3992
  }
3989
3993
  var ADAPTIVE_THINKING_MODEL_MATCHERS = [
3994
+ (modelId) => /claude-sonnet-(?:[5-9]|\d{2,})(?:[-._]\d+)?(?:\[1m\])?$/.test(modelId),
3990
3995
  (modelId) => modelId.includes("claude-sonnet-4-6") || modelId.includes("claude-sonnet-4.6"),
3991
3996
  (modelId) => modelId.includes("claude-opus-4-6") || modelId.includes("claude-opus-4.6"),
3992
3997
  (modelId) => /claude-opus-4[-._]([7-9]|\d{2,})/.test(modelId),