opencode-anthropic-multi-account 0.2.23 → 0.2.24

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
@@ -1590,7 +1590,7 @@ var SESSION_IDLE_ROTATE_MS = 15 * 60 * 1e3;
1590
1590
  var MAX_TOOL_RESULT_TEXT_LENGTH = 30 * 1024;
1591
1591
  var TRUNCATION_SUFFIX = "[...truncated]";
1592
1592
  var DEFAULT_CONTEXT_MANAGEMENT = {};
1593
- var DEFAULT_OUTPUT_CONFIG = {};
1593
+ var DEFAULT_OUTPUT_CONFIG = { effort: "high" };
1594
1594
  var ORCHESTRATION_TAG_NAMES = [
1595
1595
  "system-reminder",
1596
1596
  "env",
@@ -1805,7 +1805,7 @@ var ADAPTIVE_THINKING_MODEL_MATCHERS = [
1805
1805
  (modelId) => modelId.includes("claude-opus-4-6") || modelId.includes("claude-opus-4.6"),
1806
1806
  (modelId) => /claude-opus-4[-._]([7-9]|\d{2,})/.test(modelId)
1807
1807
  ];
1808
- var DEFAULT_MAX_OUTPUT_TOKENS = 64e3;
1808
+ var DEFAULT_MAX_OUTPUT_TOKENS = 32e3;
1809
1809
  function normalizeModelId2(modelId) {
1810
1810
  return modelId.trim().toLowerCase();
1811
1811
  }
@@ -1912,7 +1912,7 @@ function getCcVersion(template) {
1912
1912
  function buildBillingHeader(firstUserMessage, template) {
1913
1913
  const version = getCcVersion(template);
1914
1914
  const buildTag = computeBuildTag(firstUserMessage, version);
1915
- return `x-anthropic-billing-header: cc_version=${version}.${buildTag}; cc_entrypoint=cli; cch=00000;`;
1915
+ return `x-anthropic-billing-header: cc_version=${version}.${buildTag}; cc_entrypoint=sdk-cli; cch=00000;`;
1916
1916
  }
1917
1917
  function truncateToolResultText(text) {
1918
1918
  if (text.length <= MAX_TOOL_RESULT_TEXT_LENGTH) {
@@ -1981,6 +1981,9 @@ function sanitizeMessages(body) {
1981
1981
  block.text = sanitizeContent(block.text);
1982
1982
  }
1983
1983
  }
1984
+ message.content = message.content.filter((block) => {
1985
+ return !isRecord2(block) || block.type !== "text" || block.text !== "";
1986
+ });
1984
1987
  }
1985
1988
  }
1986
1989
  function scrubFrameworkIdentifiers(text) {
@@ -3009,7 +3012,7 @@ function extractFirstUserText(input) {
3009
3012
  }
3010
3013
  function composeBillingSystemEntry(firstUserMessage, version) {
3011
3014
  const buildTag = computeBuildTag(firstUserMessage, version);
3012
- return `x-anthropic-billing-header: cc_version=${version}.${buildTag}; cc_entrypoint=cli; cch=00000;`;
3015
+ return `x-anthropic-billing-header: cc_version=${version}.${buildTag}; cc_entrypoint=sdk-cli; cch=00000;`;
3013
3016
  }
3014
3017
  function prependMissingSystemEntries(output, entries) {
3015
3018
  output.system ??= [];