opencode-anthropic-multi-account 0.3.3 → 0.3.5

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.
@@ -1333,7 +1333,7 @@ When the user is actively at the terminal, your output already reaches them \u20
1333
1333
  "Write"
1334
1334
  ],
1335
1335
  anthropic_beta: "claude-code-20250219,oauth-2025-04-20,interleaved-thinking-2025-05-14,thinking-token-count-2026-05-13,context-management-2025-06-27,prompt-caching-scope-2026-01-05,mid-conversation-system-2026-04-07,advisor-tool-2026-03-01,effort-2025-11-24,extended-cache-ttl-2025-04-11",
1336
- cc_version: "2.1.240",
1336
+ cc_version: "2.1.241",
1337
1337
  header_order: [
1338
1338
  "Accept",
1339
1339
  "Authorization",
@@ -1363,7 +1363,7 @@ When the user is actively at the terminal, your output already reaches them \u20
1363
1363
  "anthropic-dangerous-direct-browser-access": "true",
1364
1364
  "anthropic-version": "2023-06-01",
1365
1365
  "content-type": "application/json",
1366
- "user-agent": "claude-cli/2.1.240 (external, sdk-cli)",
1366
+ "user-agent": "claude-cli/2.1.241 (external, sdk-cli)",
1367
1367
  "x-app": "cli",
1368
1368
  "x-stainless-timeout": "600"
1369
1369
  },
@@ -2295,16 +2295,18 @@ function cloneTemplate(template2, sourceOverride) {
2295
2295
  };
2296
2296
  }
2297
2297
  function applyBundledTemplateFallbacks(template2) {
2298
+ const existingToolNames = new Set(template2.tools.map((tool) => tool.name));
2299
+ const preservedTools = bundledTemplate.tools.filter((tool) => INTERACTIVE_ONLY_TOOL_NAMES.has(tool.name) && !existingToolNames.has(tool.name)).map((tool) => ({ ...tool }));
2300
+ const tools = preservedTools.length === 0 ? template2.tools : [...template2.tools, ...preservedTools].sort((left, right) => left.name.localeCompare(right.name));
2298
2301
  const variants = {
2299
2302
  ...getClaudeCodeSystemPromptVariants(bundledTemplate),
2300
2303
  ...getClaudeCodeSystemPromptVariants(template2)
2301
2304
  };
2302
- if (Object.keys(variants).length === 0) {
2303
- return template2;
2304
- }
2305
2305
  return {
2306
2306
  ...template2,
2307
- system_prompt_variants: variants
2307
+ tools,
2308
+ tool_names: tools.map((tool) => tool.name),
2309
+ ...Object.keys(variants).length > 0 ? { system_prompt_variants: variants } : {}
2308
2310
  };
2309
2311
  }
2310
2312
  function prepareBundledTemplate(template2) {
@@ -2844,4 +2846,4 @@ export {
2844
2846
  setFingerprintCaptureTestOverridesForTest,
2845
2847
  resetFingerprintCaptureForTest
2846
2848
  };
2847
- //# sourceMappingURL=chunk-IAMGYE2E.js.map
2849
+ //# sourceMappingURL=chunk-OTUIWUMD.js.map