@eddyskywalker/dsh-chatgpt-subscription 1.4.0 → 1.5.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.
Files changed (45) hide show
  1. package/lib/client.js +8 -3
  2. package/lib/client.js.map +1 -1
  3. package/lib/codemode.js +70 -6
  4. package/lib/index.js +225 -109
  5. package/lib/{tool-result-pruner-CuKHwU2R.js → tool-result-pruner-Duw9-Gwo.js} +381 -127
  6. package/lib/tool-result-pruner.js +1 -1
  7. package/lib/types/client/locales-ru/grok.d.ts.map +1 -1
  8. package/lib/types/client/providers/grok/locales.d.ts +3 -1
  9. package/lib/types/client/providers/grok/locales.d.ts.map +1 -1
  10. package/lib/types/compat.d.ts +1 -1
  11. package/lib/types/host/common/model-facts-data.d.ts +4 -0
  12. package/lib/types/host/common/model-facts-data.d.ts.map +1 -0
  13. package/lib/types/host/common/model-facts.d.ts +41 -0
  14. package/lib/types/host/common/model-facts.d.ts.map +1 -0
  15. package/lib/types/host/common/prompt-cache-policy.d.ts.map +1 -1
  16. package/lib/types/host/providers/glm-coding-plan/model-catalog.d.ts +9 -11
  17. package/lib/types/host/providers/glm-coding-plan/model-catalog.d.ts.map +1 -1
  18. package/lib/types/host/providers/grok/model-catalog.d.ts +5 -1
  19. package/lib/types/host/providers/grok/model-catalog.d.ts.map +1 -1
  20. package/lib/types/host/providers/minimax-code/mapper.d.ts.map +1 -1
  21. package/lib/types/host/providers/minimax-code/model-catalog.d.ts +17 -11
  22. package/lib/types/host/providers/minimax-code/model-catalog.d.ts.map +1 -1
  23. package/lib/types/host/providers/qoder/mapper.d.ts +0 -25
  24. package/lib/types/host/providers/qoder/mapper.d.ts.map +1 -1
  25. package/lib/types/host/providers/qoder/model-catalog.d.ts.map +1 -1
  26. package/lib/types/host/providers/step-code/model-catalog.d.ts.map +1 -1
  27. package/lib/types/host/providers/workbuddy/model-catalog.d.ts.map +1 -1
  28. package/lib/types/host/runtime/codemode/transport.d.ts +4 -3
  29. package/lib/types/host/runtime/codemode/transport.d.ts.map +1 -1
  30. package/lib/types/host/runtime/deepseek-v41-flash/discipline.d.ts.map +1 -1
  31. package/lib/types/host/runtime/deepseek-v41-flash/index.d.ts +2 -2
  32. package/lib/types/host/runtime/deepseek-v41-flash/index.d.ts.map +1 -1
  33. package/lib/types/host/runtime/deepseek-v41-flash/match.d.ts.map +1 -1
  34. package/lib/types/host/runtime/deepseek-v41-flash/state-anchor.d.ts +4 -0
  35. package/lib/types/host/runtime/deepseek-v41-flash/state-anchor.d.ts.map +1 -1
  36. package/lib/types/host/runtime/open-models/identity.d.ts +6 -0
  37. package/lib/types/host/runtime/open-models/identity.d.ts.map +1 -0
  38. package/lib/types/host/runtime/open-models/index.d.ts +4 -5
  39. package/lib/types/host/runtime/open-models/index.d.ts.map +1 -1
  40. package/lib/types/host/runtime/open-models/profiles.d.ts +10 -22
  41. package/lib/types/host/runtime/open-models/profiles.d.ts.map +1 -1
  42. package/lib/types/host/runtime/open-models/state-anchor.d.ts.map +1 -1
  43. package/lib/types/shared/grok-contracts.d.ts +1 -1
  44. package/lib/types/shared/grok-contracts.d.ts.map +1 -1
  45. package/package.json +1 -1
package/lib/client.js CHANGED
@@ -33761,10 +33761,11 @@ window.__ModuleLoader__.load({
33761
33761
  const GROK_REASONING_EFFORTS = [
33762
33762
  "low",
33763
33763
  "medium",
33764
- "high"
33764
+ "high",
33765
+ "xhigh"
33765
33766
  ];
33766
33767
  function isGrokReasoningEffort(value) {
33767
- return value === "low" || value === "medium" || value === "high";
33768
+ return value === "low" || value === "medium" || value === "high" || value === "xhigh";
33768
33769
  }
33769
33770
  //#endregion
33770
33771
  //#region src/client/providers/grok/locales.ts
@@ -33827,6 +33828,7 @@ window.__ModuleLoader__.load({
33827
33828
  effortLow: "低",
33828
33829
  effortMedium: "中",
33829
33830
  effortHigh: "高",
33831
+ effortXhigh: "极高",
33830
33832
  contextSection: "上下文窗口",
33831
33833
  contextHint: "各模型的上下文窗口可按需覆盖;留空表示使用目录默认值。",
33832
33834
  contextEmpty: "先勾选模型,再调整上下文窗口。",
@@ -33924,6 +33926,7 @@ window.__ModuleLoader__.load({
33924
33926
  effortLow: "Low",
33925
33927
  effortMedium: "Medium",
33926
33928
  effortHigh: "High",
33929
+ effortXhigh: "Extra high",
33927
33930
  contextSection: "Context window",
33928
33931
  contextHint: "Each model's context window can be overridden; empty keeps the catalog default.",
33929
33932
  contextEmpty: "Check a model first, then adjust its context window.",
@@ -34299,7 +34302,8 @@ window.__ModuleLoader__.load({
34299
34302
  const EFFORT_KEYS = {
34300
34303
  low: "effortLow",
34301
34304
  medium: "effortMedium",
34302
- high: "effortHigh"
34305
+ high: "effortHigh",
34306
+ xhigh: "effortXhigh"
34303
34307
  };
34304
34308
  function more(title, lines) {
34305
34309
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("details", {
@@ -40036,6 +40040,7 @@ window.__ModuleLoader__.load({
40036
40040
  effortLow: "Низкий",
40037
40041
  effortMedium: "Средний",
40038
40042
  effortHigh: "Высокий",
40043
+ effortXhigh: "Очень высокий",
40039
40044
  contextSection: "Контекстное окно",
40040
40045
  contextHint: "Окно каждой модели можно переопределить; пустое поле использует значение каталога.",
40041
40046
  contextEmpty: "Сначала отметьте модель, затем настройте контекст.",