@yeaft/webchat-agent 1.0.356 → 1.0.357

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeaft/webchat-agent",
3
- "version": "1.0.356",
3
+ "version": "1.0.357",
4
4
  "description": "Remote worker agent for Yeaft Web Code Agent — connects the native Yeaft engine, CLI providers, and workbench tools",
5
5
  "main": "index.js",
6
6
  "type": "module",
package/yeaft/models.js CHANGED
@@ -430,13 +430,17 @@ export const OPENAI_MAX_REASONING_EFFORT_OPTIONS = ['low', 'medium', 'high', 'xh
430
430
  export const ANTHROPIC_MANUAL_EFFORT_OPTIONS = ['low', 'medium', 'high'];
431
431
  export const ANTHROPIC_ADAPTIVE_EFFORT_OPTIONS = ['low', 'medium', 'high', 'xhigh', 'max'];
432
432
  export const ANTHROPIC_ADAPTIVE_MAX_EFFORT_OPTIONS = ['low', 'medium', 'high', 'max'];
433
- // DeepSeek reasoning models (deepseek-reasoner / deepseek-r1) expose a simple
434
- // low/medium/high effort scale. DeepSeek's OpenAI-compatible surface accepts a
435
- // reasoning effort hint; we send it through the standard openai-reasoning
436
- // `reasoning.effort` path (relay/proxy adapts to DeepSeek's wire format). No
437
- // `minimal` tier DeepSeek documents only a high/max effort distinction, so we
438
- // keep the user-facing scale to the three levels the user expects.
439
- export const DEEPSEEK_REASONING_EFFORT_OPTIONS = ['low', 'medium', 'high'];
433
+ // DeepSeek reasoning models (deepseek-reasoner / deepseek-r1 / deepseek-v4-pro)
434
+ // expose a graded effort scale. DeepSeek V4 documents "high" and "max" as the
435
+ // effective levels: "xhigh" is mapped to "max" server-side and "low"/"medium"
436
+ // are mapped to "high". There is no "minimal" tier. We keep the full user-facing
437
+ // scale (including xhigh/max) so the UI can select the highest level; the wire
438
+ // path differs by protocol:
439
+ // - OpenAI-compatible surface `reasoning.effort` (relay/proxy adapts to
440
+ // DeepSeek's wire format; xhigh/max pass through and the provider maps them).
441
+ // - Anthropic-compatible surface → `output_config.effort` (DeepSeek's Anthropic
442
+ // compatibility table explicitly supports `output_config` effort).
443
+ export const DEEPSEEK_REASONING_EFFORT_OPTIONS = ['low', 'medium', 'high', 'xhigh', 'max'];
440
444
 
441
445
  const VALID_EFFORT_OPTIONS = new Set(['minimal', 'low', 'medium', 'high', 'xhigh', 'max']);
442
446