@eddyskywalker/dsh-chatgpt-subscription 0.85.0 → 0.86.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 (33) hide show
  1. package/lib/client.js +424 -264
  2. package/lib/client.js.map +1 -1
  3. package/lib/index.js +1 -1
  4. package/lib/types/client/common/ModelChecklist.d.ts +13 -1
  5. package/lib/types/client/common/ModelChecklist.d.ts.map +1 -1
  6. package/lib/types/client/common/model-checklist-labels.d.ts +31 -0
  7. package/lib/types/client/common/model-checklist-labels.d.ts.map +1 -0
  8. package/lib/types/client/common/model-vendors.d.ts +30 -0
  9. package/lib/types/client/common/model-vendors.d.ts.map +1 -0
  10. package/lib/types/client/hub/HubOverview.d.ts.map +1 -1
  11. package/lib/types/client/index.d.ts +2 -0
  12. package/lib/types/client/index.d.ts.map +1 -1
  13. package/lib/types/client/locales-ru/index.d.ts.map +1 -1
  14. package/lib/types/client/locales-ru/model-checklist.d.ts +4 -0
  15. package/lib/types/client/locales-ru/model-checklist.d.ts.map +1 -0
  16. package/lib/types/client/providers/antigravity-acp/AntigravityAcpSection.d.ts.map +1 -1
  17. package/lib/types/client/providers/cline-pass/ClinePassSection.d.ts.map +1 -1
  18. package/lib/types/client/providers/command-code/model-vendors.d.ts +1 -8
  19. package/lib/types/client/providers/command-code/model-vendors.d.ts.map +1 -1
  20. package/lib/types/client/providers/ollama/OllamaSection.d.ts.map +1 -1
  21. package/lib/types/client/providers/opendesign/OpenDesignSection.d.ts.map +1 -1
  22. package/lib/types/client/providers/qianwen-token-plan/useQianwenSection.d.ts +1 -0
  23. package/lib/types/client/providers/qianwen-token-plan/useQianwenSection.d.ts.map +1 -1
  24. package/lib/types/client/providers/qoder/QoderSection.d.ts.map +1 -1
  25. package/lib/types/client/providers/qoder/useQoderSection.d.ts +1 -0
  26. package/lib/types/client/providers/qoder/useQoderSection.d.ts.map +1 -1
  27. package/lib/types/client/providers/relayone/useRelayOneSection.d.ts +1 -0
  28. package/lib/types/client/providers/relayone/useRelayOneSection.d.ts.map +1 -1
  29. package/lib/types/client/providers/workbuddy/WorkBuddySection.d.ts.map +1 -1
  30. package/lib/types/client/providers/workbuddy/useWorkBuddySection.d.ts +1 -0
  31. package/lib/types/client/providers/workbuddy/useWorkBuddySection.d.ts.map +1 -1
  32. package/lib/types/compat.d.ts +1 -1
  33. package/package.json +1 -1
package/lib/client.js CHANGED
@@ -611,7 +611,7 @@ window.__ModuleLoader__.load({
611
611
  //#endregion
612
612
  //#region src/client/providers/codex-chatgpt/locales.ts
613
613
  const NS = "dsh-chatgpt-subscription";
614
- const zh$21 = {
614
+ const zh$22 = {
615
615
  ...accountPoolZh,
616
616
  title: "ChatGPT",
617
617
  hubTitle: "订阅服务",
@@ -882,8 +882,8 @@ window.__ModuleLoader__.load({
882
882
  codeRunFailed: "失败",
883
883
  codeRunStopped: "已停止"
884
884
  };
885
- const dictionaries$21 = {
886
- zh: zh$21,
885
+ const dictionaries$22 = {
886
+ zh: zh$22,
887
887
  en: {
888
888
  ...accountPoolEn,
889
889
  title: "ChatGPT",
@@ -1267,7 +1267,7 @@ window.__ModuleLoader__.load({
1267
1267
  * reads).
1268
1268
  */
1269
1269
  function LineProxySection({ line, fetchSnapshot, onSave, idPrefix, snapshot: provided }) {
1270
- const labels = useLineDict(NS, zh$21);
1270
+ const labels = useLineDict(NS, zh$22);
1271
1271
  const readSnapshotFromRoute = (0, react.useCallback)(() => (fetchSnapshot ?? (() => fetchLineProxySnapshot("/api/dsh-chatgpt-subscription")))(), [fetchSnapshot]);
1272
1272
  const writePreferences = (0, react.useCallback)((patch) => (onSave ?? ((next) => savePreferences("/api/dsh-chatgpt-subscription", next)))(patch), [onSave]);
1273
1273
  const [readSnapshot, setReadSnapshot] = (0, react.useState)(null);
@@ -2658,16 +2658,232 @@ window.__ModuleLoader__.load({
2658
2658
  });
2659
2659
  }
2660
2660
  //#endregion
2661
- //#region src/client/common/ModelChecklist.tsx
2661
+ //#region src/client/common/model-checklist-labels.ts
2662
2662
  /**
2663
- * The shared "which models appear in the picker" list every provider section
2664
- * renders.
2663
+ * Copy of the shared model checklist's split vendor view.
2664
+ *
2665
+ * The checklist owns this namespace so every provider line gets the same
2666
+ * vendor-view wording without carrying its own copy of these keys; a line may
2667
+ * still override any label through the checklist's `labels` prop.
2668
+ */
2669
+ const NS_MODEL_CHECKLIST = "dsh-model-checklist";
2670
+ const zh$21 = {
2671
+ allGroups: "全部",
2672
+ enabledGroup: "已启用",
2673
+ otherGroup: "其他",
2674
+ searchPlaceholder: "搜索模型或厂商…",
2675
+ noMatches: "没有匹配的模型",
2676
+ groupsNav: "模型厂商"
2677
+ };
2678
+ const en$21 = {
2679
+ allGroups: "All",
2680
+ enabledGroup: "Enabled",
2681
+ otherGroup: "Other",
2682
+ searchPlaceholder: "Search models or vendors…",
2683
+ noMatches: "No matching models",
2684
+ groupsNav: "Model vendors"
2685
+ };
2686
+ const modelChecklistZh = zh$21;
2687
+ const dictionaries$21 = {
2688
+ zh: zh$21,
2689
+ en: en$21
2690
+ };
2691
+ //#endregion
2692
+ //#region src/client/common/model-vendors.ts
2693
+ function vendor(key, label, mark = null) {
2694
+ return {
2695
+ key,
2696
+ label,
2697
+ mark
2698
+ };
2699
+ }
2700
+ const ANTHROPIC = vendor("anthropic", "Anthropic", "claude");
2701
+ const OPENAI = vendor("openai", "OpenAI", "openai");
2702
+ const DEEPSEEK = vendor("deepseek", "DeepSeek", "deepseek");
2703
+ const MOONSHOT = vendor("moonshot", "Moonshot", "kimi");
2704
+ const ZAI = vendor("zai", "Z.ai", "glm");
2705
+ const MINIMAX = vendor("minimax", "MiniMax", "minimax");
2706
+ const QWEN = vendor("qwen", "Qwen", "qwen");
2707
+ const GOOGLE = vendor("google", "Google", "gemini");
2708
+ const XAI = vendor("xai", "xAI", "grok");
2709
+ const STEPFUN = vendor("stepfun", "StepFun", "step-code");
2710
+ const META = vendor("meta", "Meta");
2711
+ const XIAOMI = vendor("xiaomi", "Xiaomi");
2712
+ const TENCENT = vendor("tencent", "Tencent");
2713
+ const MISTRAL = vendor("mistral", "Mistral");
2714
+ const NVIDIA = vendor("nvidia", "NVIDIA");
2715
+ const MEITUAN = vendor("meituan", "Meituan");
2716
+ const MICROSOFT = vendor("microsoft", "Microsoft");
2717
+ const IBM = vendor("ibm", "IBM");
2718
+ const COHERE = vendor("cohere", "Cohere");
2719
+ const PREFIX_VENDORS = {
2720
+ anthropic: ANTHROPIC,
2721
+ openai: OPENAI,
2722
+ deepseek: DEEPSEEK,
2723
+ "deepseek-ai": DEEPSEEK,
2724
+ moonshotai: MOONSHOT,
2725
+ moonshot: MOONSHOT,
2726
+ kimi: MOONSHOT,
2727
+ "z-ai": ZAI,
2728
+ "zai-org": ZAI,
2729
+ zai: ZAI,
2730
+ zhipu: ZAI,
2731
+ thudm: ZAI,
2732
+ minimax: MINIMAX,
2733
+ minimaxai: MINIMAX,
2734
+ qwen: QWEN,
2735
+ alibaba: QWEN,
2736
+ google: GOOGLE,
2737
+ xai: XAI,
2738
+ "x-ai": XAI,
2739
+ stepfun: STEPFUN,
2740
+ "stepfun-ai": STEPFUN,
2741
+ meta: META,
2742
+ "meta-llama": META,
2743
+ xiaomi: XIAOMI,
2744
+ xiaomimimo: XIAOMI,
2745
+ tencent: TENCENT,
2746
+ mistral: MISTRAL,
2747
+ mistralai: MISTRAL,
2748
+ nvidia: NVIDIA,
2749
+ meituan: MEITUAN,
2750
+ "meituan-longcat": MEITUAN,
2751
+ microsoft: MICROSOFT,
2752
+ ibm: IBM,
2753
+ "ibm-granite": IBM,
2754
+ cohere: COHERE,
2755
+ inclusionai: vendor("inclusionai", "InclusionAI"),
2756
+ thinkingmachines: vendor("thinkingmachines", "Thinking Machines"),
2757
+ stealth: vendor("stealth", "Stealth"),
2758
+ sakana: vendor("sakana", "Sakana"),
2759
+ ornith: vendor("ornith", "Ornith"),
2760
+ reflection: vendor("reflection", "Reflection"),
2761
+ poolside: vendor("poolside", "Poolside")
2762
+ };
2763
+ /**
2764
+ * Model families recognised from a bare model name (lower-cased, prefix-free).
2765
+ * First match wins; anchored at the start so a family name inside another
2766
+ * vendor's id (a fine-tune called `foo-llama`) does not steal it.
2767
+ */
2768
+ const FAMILY_RULES = [
2769
+ {
2770
+ re: /^claude/,
2771
+ vendor: ANTHROPIC
2772
+ },
2773
+ {
2774
+ re: /^(gpt|chatgpt|codex|o[1-9](?![0-9])|davinci|text-embedding)/,
2775
+ vendor: OPENAI
2776
+ },
2777
+ {
2778
+ re: /^deepseek/,
2779
+ vendor: DEEPSEEK
2780
+ },
2781
+ {
2782
+ re: /^(kimi|moonshot|k[0-9])/,
2783
+ vendor: MOONSHOT
2784
+ },
2785
+ {
2786
+ re: /^(glm|chatglm|codegeex|cogview)/,
2787
+ vendor: ZAI
2788
+ },
2789
+ {
2790
+ re: /^(minimax|abab)/,
2791
+ vendor: MINIMAX
2792
+ },
2793
+ {
2794
+ re: /^(qwen|qwq|qvq|tongyi)/,
2795
+ vendor: QWEN
2796
+ },
2797
+ {
2798
+ re: /^(gemini|gemma|codegemma|palm)/,
2799
+ vendor: GOOGLE
2800
+ },
2801
+ {
2802
+ re: /^grok/,
2803
+ vendor: XAI
2804
+ },
2805
+ {
2806
+ re: /^step[-_0-9]/,
2807
+ vendor: STEPFUN
2808
+ },
2809
+ {
2810
+ re: /^(llama|codellama)/,
2811
+ vendor: META
2812
+ },
2813
+ {
2814
+ re: /^(mistral|mixtral|codestral|devstral|magistral|ministral|pixtral)/,
2815
+ vendor: MISTRAL
2816
+ },
2817
+ {
2818
+ re: /^(hunyuan|hy[0-9])/,
2819
+ vendor: TENCENT
2820
+ },
2821
+ {
2822
+ re: /^mimo/,
2823
+ vendor: XIAOMI
2824
+ },
2825
+ {
2826
+ re: /^(nemotron|nvidia)/,
2827
+ vendor: NVIDIA
2828
+ },
2829
+ {
2830
+ re: /^longcat/,
2831
+ vendor: MEITUAN
2832
+ },
2833
+ {
2834
+ re: /^phi[-0-9]/,
2835
+ vendor: MICROSOFT
2836
+ },
2837
+ {
2838
+ re: /^granite/,
2839
+ vendor: IBM
2840
+ },
2841
+ {
2842
+ re: /^(command-r|command-a|aya)/,
2843
+ vendor: COHERE
2844
+ }
2845
+ ];
2846
+ function titleCasePrefix(raw) {
2847
+ return raw.split(/[-_\s]+/).filter(Boolean).map((segment) => segment.charAt(0).toUpperCase() + segment.slice(1)).join(" ");
2848
+ }
2849
+ /**
2850
+ * The display vendor of one model id.
2665
2851
  *
2666
- * When items carry a `group` (vendor) and at least two groups exist, the list
2667
- * switches to a left-vendor + right-model split view with cross-vendor search
2668
- * and per-vendor batch toggle, keeping large catalogs (100+ models) scannable.
2669
- * Single-vendor and ungrouped callers continue to render a compact flat list.
2852
+ * @param modelId - the model id as the line's catalog lists it.
2853
+ * @param otherLabel - label of the bucket for ids no rule claims.
2854
+ * @param options - line-specific prefixes to skip.
2855
+ */
2856
+ function modelVendorGroup(modelId, otherLabel, options = {}) {
2857
+ let segments = modelId.trim().split("/").filter(Boolean);
2858
+ const ignored = options.ignorePrefixes ?? [];
2859
+ while (segments.length > 1 && ignored.includes(segments[0].toLowerCase())) segments = segments.slice(1);
2860
+ const prefix = segments.length > 1 ? segments[0] : null;
2861
+ if (prefix !== null) {
2862
+ const known = PREFIX_VENDORS[prefix.toLowerCase()];
2863
+ if (known !== void 0) return known;
2864
+ }
2865
+ const name = (segments[segments.length - 1] ?? "").toLowerCase();
2866
+ for (const rule of FAMILY_RULES) if (rule.re.test(name)) return rule.vendor;
2867
+ if (prefix !== null) return {
2868
+ key: prefix.toLowerCase(),
2869
+ label: titleCasePrefix(prefix),
2870
+ mark: null
2871
+ };
2872
+ return {
2873
+ key: "other",
2874
+ label: otherLabel,
2875
+ mark: null
2876
+ };
2877
+ }
2878
+ /**
2879
+ * The enabled-id list after a whole vendor group is switched on or off,
2880
+ * keeping the caller's existing order and every id outside the group.
2670
2881
  */
2882
+ function nextGroupSelection(currentEnabled, groupIds, enabled) {
2883
+ if (enabled) return [.../* @__PURE__ */ new Set([...currentEnabled, ...groupIds])];
2884
+ const drop = new Set(groupIds);
2885
+ return currentEnabled.filter((id) => !drop.has(id));
2886
+ }
2671
2887
  const ALL_TAB = "__all__";
2672
2888
  const ENABLED_TAB = "__enabled__";
2673
2889
  const CHECK_SVG = "<svg viewBox=\"0 0 16 16\" width=\"11\" height=\"11\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M3 8.5l3.2 3.2L13 5\"/></svg>";
@@ -2676,7 +2892,7 @@ window.__ModuleLoader__.load({
2676
2892
  return first ? first.toUpperCase() : "?";
2677
2893
  }
2678
2894
  function renderOptionRow(item, busy, onToggle) {
2679
- const mark = item.group?.mark !== void 0 ? item.group.mark : modelBrandMark(item.id);
2895
+ const mark = item.group?.mark ?? modelBrandMark(item.id);
2680
2896
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
2681
2897
  type: "button",
2682
2898
  role: "checkbox",
@@ -2709,7 +2925,25 @@ window.__ModuleLoader__.load({
2709
2925
  ]
2710
2926
  }, item.id);
2711
2927
  }
2712
- function ModelChecklist({ items, busy, onToggle, onToggleAll, onToggleGroup, labels }) {
2928
+ function ModelChecklist({ items: rawItems, busy, onToggle, onToggleAll, onToggleGroup, groupByVendor, labels }) {
2929
+ const copy = useLineDict(NS_MODEL_CHECKLIST, modelChecklistZh);
2930
+ const otherLabel = copy.otherGroup;
2931
+ const minItems = typeof groupByVendor === "object" ? groupByVendor.minItems ?? 10 : 10;
2932
+ const grouping = groupByVendor !== void 0 && groupByVendor !== false && rawItems.length >= minItems;
2933
+ const ignoreKey = typeof groupByVendor === "object" ? (groupByVendor.ignorePrefixes ?? []).join("\n") : "";
2934
+ const items = (0, react.useMemo)(() => {
2935
+ if (!grouping) return rawItems;
2936
+ const options = ignoreKey === "" ? {} : { ignorePrefixes: ignoreKey.split("\n") };
2937
+ return rawItems.map((item) => item.group !== void 0 ? item : {
2938
+ ...item,
2939
+ group: modelVendorGroup(item.id, otherLabel, options)
2940
+ });
2941
+ }, [
2942
+ rawItems,
2943
+ grouping,
2944
+ ignoreKey,
2945
+ otherLabel
2946
+ ]);
2713
2947
  const enabledCount = items.filter((item) => item.enabled).length;
2714
2948
  const count = (labels.countTemplate ?? "{count}/{total}").replace("{count}", String(enabledCount)).replace("{total}", String(items.length));
2715
2949
  const vendors = (0, react.useMemo)(() => {
@@ -2730,7 +2964,8 @@ window.__ModuleLoader__.load({
2730
2964
  bucket.items.push(item);
2731
2965
  if (item.enabled) bucket.enabledCount += 1;
2732
2966
  }
2733
- return [...map.values()];
2967
+ const buckets = [...map.values()];
2968
+ return [...buckets.filter((b) => b.key !== "other"), ...buckets.filter((b) => b.key === "other")];
2734
2969
  }, [items]);
2735
2970
  const splitMode = vendors.length >= 2;
2736
2971
  const [selectedTab, setSelectedTab] = (0, react.useState)(null);
@@ -2807,8 +3042,8 @@ window.__ModuleLoader__.load({
2807
3042
  children: items.map((item) => renderOptionRow(item, busy, onToggle))
2808
3043
  })]
2809
3044
  });
2810
- const allLabel = labels.allGroups ?? "All";
2811
- const enabledLabel = labels.enabledGroup ?? "Enabled";
3045
+ const allLabel = labels.allGroups ?? copy.allGroups;
3046
+ const enabledLabel = labels.enabledGroup ?? copy.enabledGroup;
2812
3047
  const paneTitle = searching ? `${visibleItems.length}/${items.length}` : activeTab === ALL_TAB ? allLabel : activeTab === ENABLED_TAB ? enabledLabel : activeVendor?.label ?? allLabel;
2813
3048
  const paneEnabledCount = visibleItems.filter((item) => item.enabled).length;
2814
3049
  const showGroupActions = onToggleGroup !== void 0 && !searching && activeVendor !== null && activeVendor.items.length > 0;
@@ -2825,8 +3060,8 @@ window.__ModuleLoader__.load({
2825
3060
  type: "search",
2826
3061
  className: "dsh-mcl-search",
2827
3062
  value: query,
2828
- placeholder: labels.searchPlaceholder ?? "Search models…",
2829
- "aria-label": labels.searchPlaceholder ?? "Search models…",
3063
+ placeholder: labels.searchPlaceholder ?? copy.searchPlaceholder,
3064
+ "aria-label": labels.searchPlaceholder ?? copy.searchPlaceholder,
2830
3065
  onChange: (event) => setQuery(event.currentTarget.value),
2831
3066
  onKeyDown: handleSearchKeyDown
2832
3067
  }),
@@ -2853,7 +3088,7 @@ window.__ModuleLoader__.load({
2853
3088
  className: "dsh-mcl-vendors",
2854
3089
  role: "tablist",
2855
3090
  "aria-orientation": "vertical",
2856
- "aria-label": labels.groupsNav ?? labels.list,
3091
+ "aria-label": labels.groupsNav ?? copy.groupsNav,
2857
3092
  children: [
2858
3093
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
2859
3094
  type: "button",
@@ -2965,7 +3200,7 @@ window.__ModuleLoader__.load({
2965
3200
  children: visibleItems.length === 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
2966
3201
  className: "dsh-mcl-empty",
2967
3202
  role: "status",
2968
- children: labels.noMatches ?? "No matching models"
3203
+ children: labels.noMatches ?? copy.noMatches
2969
3204
  }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2970
3205
  className: "dsh-mcl-list",
2971
3206
  role: "group",
@@ -4634,203 +4869,9 @@ window.__ModuleLoader__.load({
4634
4869
  };
4635
4870
  //#endregion
4636
4871
  //#region src/client/providers/command-code/model-vendors.ts
4637
- const PREFIX_VENDORS = {
4638
- anthropic: {
4639
- key: "anthropic",
4640
- label: "Anthropic",
4641
- mark: "claude"
4642
- },
4643
- openai: {
4644
- key: "openai",
4645
- label: "OpenAI",
4646
- mark: "openai"
4647
- },
4648
- deepseek: {
4649
- key: "deepseek",
4650
- label: "DeepSeek",
4651
- mark: "deepseek"
4652
- },
4653
- moonshotai: {
4654
- key: "moonshot",
4655
- label: "Moonshot",
4656
- mark: "kimi"
4657
- },
4658
- moonshot: {
4659
- key: "moonshot",
4660
- label: "Moonshot",
4661
- mark: "kimi"
4662
- },
4663
- kimi: {
4664
- key: "moonshot",
4665
- label: "Moonshot",
4666
- mark: "kimi"
4667
- },
4668
- "z-ai": {
4669
- key: "zai",
4670
- label: "Z.ai",
4671
- mark: "glm"
4672
- },
4673
- "zai-org": {
4674
- key: "zai",
4675
- label: "Z.ai",
4676
- mark: "glm"
4677
- },
4678
- zhipu: {
4679
- key: "zai",
4680
- label: "Z.ai",
4681
- mark: "glm"
4682
- },
4683
- minimax: {
4684
- key: "minimax",
4685
- label: "MiniMax",
4686
- mark: "minimax"
4687
- },
4688
- minimaxai: {
4689
- key: "minimax",
4690
- label: "MiniMax",
4691
- mark: "minimax"
4692
- },
4693
- qwen: {
4694
- key: "qwen",
4695
- label: "Qwen",
4696
- mark: "qwen"
4697
- },
4698
- google: {
4699
- key: "google",
4700
- label: "Google",
4701
- mark: "gemini"
4702
- },
4703
- xai: {
4704
- key: "xai",
4705
- label: "xAI",
4706
- mark: "grok"
4707
- },
4708
- "x-ai": {
4709
- key: "xai",
4710
- label: "xAI",
4711
- mark: "grok"
4712
- },
4713
- stepfun: {
4714
- key: "stepfun",
4715
- label: "StepFun",
4716
- mark: "step-code"
4717
- },
4718
- meta: {
4719
- key: "meta",
4720
- label: "Meta",
4721
- mark: null
4722
- },
4723
- "meta-llama": {
4724
- key: "meta",
4725
- label: "Meta",
4726
- mark: null
4727
- },
4728
- xiaomi: {
4729
- key: "xiaomi",
4730
- label: "Xiaomi",
4731
- mark: null
4732
- },
4733
- tencent: {
4734
- key: "tencent",
4735
- label: "Tencent",
4736
- mark: null
4737
- },
4738
- mistral: {
4739
- key: "mistral",
4740
- label: "Mistral",
4741
- mark: null
4742
- },
4743
- mistralai: {
4744
- key: "mistral",
4745
- label: "Mistral",
4746
- mark: null
4747
- },
4748
- nvidia: {
4749
- key: "nvidia",
4750
- label: "NVIDIA",
4751
- mark: null
4752
- },
4753
- meituan: {
4754
- key: "meituan",
4755
- label: "Meituan",
4756
- mark: null
4757
- },
4758
- inclusionai: {
4759
- key: "inclusionai",
4760
- label: "InclusionAI",
4761
- mark: null
4762
- },
4763
- thinkingmachines: {
4764
- key: "thinkingmachines",
4765
- label: "Thinking Machines",
4766
- mark: null
4767
- },
4768
- stealth: {
4769
- key: "stealth",
4770
- label: "Stealth",
4771
- mark: null
4772
- },
4773
- sakana: {
4774
- key: "sakana",
4775
- label: "Sakana",
4776
- mark: null
4777
- },
4778
- ornith: {
4779
- key: "ornith",
4780
- label: "Ornith",
4781
- mark: null
4782
- },
4783
- reflection: {
4784
- key: "reflection",
4785
- label: "Reflection",
4786
- mark: null
4787
- },
4788
- poolside: {
4789
- key: "poolside",
4790
- label: "Poolside",
4791
- mark: null
4792
- }
4793
- };
4794
- function titleCasePrefix(raw) {
4795
- return raw.split(/[-_\s]+/).filter(Boolean).map((segment) => segment.charAt(0).toUpperCase() + segment.slice(1)).join(" ");
4796
- }
4797
- /**
4798
- * Resolves the display vendor for a Command Code model id.
4799
- *
4800
- * Uses the `vendor/model` prefix when present (merging aliases like `z-ai` and
4801
- * `zai-org`, or `minimax` and `MiniMaxAI`), then falls back to bare model-id
4802
- * families (`claude-*`, `gpt-*`, etc.) before grouping unknown entries under
4803
- * `otherLabel`.
4804
- */
4872
+ /** Display vendor of a Command Code model; see `common/model-vendors.ts`. */
4805
4873
  function commandCodeModelVendor(model, otherLabel) {
4806
- const id = model.id.trim();
4807
- const lower = id.toLowerCase();
4808
- const slash = lower.indexOf("/");
4809
- if (slash > 0) {
4810
- const prefix = lower.slice(0, slash);
4811
- const known = PREFIX_VENDORS[prefix];
4812
- if (known !== void 0) return known;
4813
- return {
4814
- key: prefix,
4815
- label: titleCasePrefix(id.slice(0, slash)),
4816
- mark: modelBrandMark(id)
4817
- };
4818
- }
4819
- if (/^claude\b/.test(lower)) return PREFIX_VENDORS.anthropic;
4820
- if (/^(gpt|codex|o[1-9])\b/.test(lower) || /^gpt-/.test(lower)) return PREFIX_VENDORS.openai;
4821
- if (/^deepseek\b/.test(lower)) return PREFIX_VENDORS.deepseek;
4822
- if (/^(kimi|moonshot)\b/.test(lower)) return PREFIX_VENDORS.moonshot;
4823
- if (/^glm\b/.test(lower)) return PREFIX_VENDORS["z-ai"];
4824
- if (/^minimax\b/.test(lower)) return PREFIX_VENDORS.minimax;
4825
- if (/^qwen\b/.test(lower)) return PREFIX_VENDORS.qwen;
4826
- if (/^gemini\b/.test(lower)) return PREFIX_VENDORS.google;
4827
- if (/^grok\b/.test(lower)) return PREFIX_VENDORS.xai;
4828
- if (/^step\b/.test(lower)) return PREFIX_VENDORS.stepfun;
4829
- return {
4830
- key: "other",
4831
- label: otherLabel,
4832
- mark: null
4833
- };
4874
+ return modelVendorGroup(model.id, otherLabel);
4834
4875
  }
4835
4876
  //#endregion
4836
4877
  //#region src/client/providers/command-code/CommandCodeSection.tsx
@@ -12805,6 +12846,16 @@ window.__ModuleLoader__.load({
12805
12846
  const setAllModels = (0, react.useCallback)((selectAll) => {
12806
12847
  applyEnabled(selectAll ? null : []);
12807
12848
  }, [applyEnabled]);
12849
+ const setModelGroup = (0, react.useCallback)((ids, checked) => {
12850
+ if (status === null || ids.length === 0) return;
12851
+ const all = status.models ?? [];
12852
+ const next = nextGroupSelection(all.filter((model) => isModelEnabled(model.id)).map((model) => model.id), ids, checked);
12853
+ applyEnabled(next.length === all.length ? null : next);
12854
+ }, [
12855
+ status,
12856
+ isModelEnabled,
12857
+ applyEnabled
12858
+ ]);
12808
12859
  const setEffort = (0, react.useCallback)((value) => {
12809
12860
  run("effort", () => API$8.setDefaultReasoningEffort(value === "" ? null : value));
12810
12861
  }, [run]);
@@ -12973,6 +13024,8 @@ window.__ModuleLoader__.load({
12973
13024
  busy: busy !== null,
12974
13025
  onToggle: (id, enabled) => void toggleModel(id, enabled),
12975
13026
  onToggleAll: (enabled) => void setAllModels(enabled),
13027
+ onToggleGroup: setModelGroup,
13028
+ groupByVendor: true,
12976
13029
  labels: {
12977
13030
  selectAll: t.selectAll,
12978
13031
  clearAll: t.unselectAll,
@@ -13396,6 +13449,16 @@ window.__ModuleLoader__.load({
13396
13449
  const setAllModels = (0, react.useCallback)((selectAll) => {
13397
13450
  applyEnabled(selectAll ? null : []);
13398
13451
  }, [applyEnabled]);
13452
+ const setModelGroup = (0, react.useCallback)((ids, checked) => {
13453
+ if (status === null || ids.length === 0) return;
13454
+ const all = status.models ?? [];
13455
+ const next = nextGroupSelection(all.filter((model) => isModelEnabled(model.id)).map((model) => model.id), ids, checked);
13456
+ applyEnabled(next.length === all.length ? null : next);
13457
+ }, [
13458
+ status,
13459
+ isModelEnabled,
13460
+ applyEnabled
13461
+ ]);
13399
13462
  const signIn = (0, react.useCallback)(() => {
13400
13463
  setBusy("login");
13401
13464
  setError(null);
@@ -13654,6 +13717,8 @@ window.__ModuleLoader__.load({
13654
13717
  busy: busy !== null,
13655
13718
  onToggle: (id, value) => toggleModel(id, value),
13656
13719
  onToggleAll: (value) => setAllModels(value),
13720
+ onToggleGroup: setModelGroup,
13721
+ groupByVendor: true,
13657
13722
  labels: {
13658
13723
  selectAll: t.selectAll,
13659
13724
  clearAll: t.unselectAll,
@@ -16635,6 +16700,8 @@ window.__ModuleLoader__.load({
16635
16700
  //#endregion
16636
16701
  //#region src/client/providers/cline-pass/ClinePassSection.tsx
16637
16702
  const API$5 = new ClinePassApi();
16703
+ /** Plan-own ids read `cline-pass/<model>`: the vendor is the model after the prefix. */
16704
+ const CLINE_VENDOR_GROUPING = { ignorePrefixes: ["cline-pass"] };
16638
16705
  /**
16639
16706
  * How often an open card re-reads the quota.
16640
16707
  *
@@ -16855,6 +16922,16 @@ window.__ModuleLoader__.load({
16855
16922
  return await API$5.setEnabledModels(selectAll ? null : []);
16856
16923
  });
16857
16924
  }, [run]);
16925
+ const setModelGroup = (0, react.useCallback)((ids, checked) => {
16926
+ if (status === null || ids.length === 0) return;
16927
+ const current = status.models.filter((model) => model.enabled).map((model) => model.id);
16928
+ const next = nextGroupSelection(current, ids, checked);
16929
+ const turnedOn = checked ? ids.filter((id) => !current.includes(id)) : [];
16930
+ run("models", async () => {
16931
+ for (const id of turnedOn) await API$5.setVisibility(id, true);
16932
+ return await API$5.setEnabledModels(next.length === status.models.length ? null : next);
16933
+ });
16934
+ }, [status, run]);
16858
16935
  const commitContext = (0, react.useCallback)((id) => {
16859
16936
  const model = status?.models.find((entry) => entry.id === id);
16860
16937
  if (model === void 0) return;
@@ -17301,6 +17378,8 @@ window.__ModuleLoader__.load({
17301
17378
  busy: busyAny,
17302
17379
  onToggle: (id, enabled) => toggleModel(id, enabled),
17303
17380
  onToggleAll: (enabled) => setAllModels(enabled),
17381
+ onToggleGroup: setModelGroup,
17382
+ groupByVendor: CLINE_VENDOR_GROUPING,
17304
17383
  labels: {
17305
17384
  selectAll: t.selectAll,
17306
17385
  clearAll: t.unselectAll,
@@ -18399,6 +18478,11 @@ window.__ModuleLoader__.load({
18399
18478
  if (status === null || status.models.length === 0) return;
18400
18479
  applyEnabledModels(enabled ? status.models.map((model) => model.id) : []);
18401
18480
  };
18481
+ const setModelGroup = (ids, enabled) => {
18482
+ if (status === null || ids.length === 0) return;
18483
+ const current = status.models.filter((model) => model.enabled).map((model) => model.id);
18484
+ applyEnabledModels(nextGroupSelection(current, ids, enabled));
18485
+ };
18402
18486
  const saveContextWindow = async (modelId) => {
18403
18487
  const raw = contextDrafts[modelId] ?? "";
18404
18488
  const parsed = parsePositiveCapacity$1(raw);
@@ -18539,6 +18623,7 @@ window.__ModuleLoader__.load({
18539
18623
  setStrategy,
18540
18624
  toggleModel,
18541
18625
  setAllModels,
18626
+ setModelGroup,
18542
18627
  saveContextWindow,
18543
18628
  resetContextWindow,
18544
18629
  resetAllContextWindows,
@@ -18642,7 +18727,7 @@ window.__ModuleLoader__.load({
18642
18727
  const { state, derived, actions } = useQoderSection({ onModelChange });
18643
18728
  const { status, loading, busy, error, connection, adoptResult, pasteValue, region, pasteOpen, contextDrafts, savingModel } = state;
18644
18729
  const { accounts, models, contextModels, overrideCount, login, quota, authenticated, poolLabels, cache, cacheHitRatio: hitRatio } = derived;
18645
- const { setRegion, login: startLogin, cancelLogin, submitPaste, setPasteValue, togglePaste, adopt, clearAdoptResult, accountAction, setStrategy, toggleModel, setAllModels, saveContextWindow, resetContextWindow, resetAllContextWindows, updateContextDraft, setDefaultReasoningEffort, refreshQuota, refreshCatalog, testConnection } = actions;
18730
+ const { setRegion, login: startLogin, cancelLogin, submitPaste, setPasteValue, togglePaste, adopt, clearAdoptResult, accountAction, setStrategy, toggleModel, setAllModels, setModelGroup, saveContextWindow, resetContextWindow, resetAllContextWindows, updateContextDraft, setDefaultReasoningEffort, refreshQuota, refreshCatalog, testConnection } = actions;
18646
18731
  const t = useLineDict(NS_QODER, zh$10);
18647
18732
  if (loading) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
18648
18733
  className: "dsha-page",
@@ -18971,6 +19056,8 @@ window.__ModuleLoader__.load({
18971
19056
  busy: busy !== null,
18972
19057
  onToggle: toggleModel,
18973
19058
  onToggleAll: setAllModels,
19059
+ onToggleGroup: setModelGroup,
19060
+ groupByVendor: true,
18974
19061
  labels: {
18975
19062
  selectAll: t.selectAll,
18976
19063
  clearAll: t.unselectAll,
@@ -19924,6 +20011,16 @@ window.__ModuleLoader__.load({
19924
20011
  return await API$4.setEnabledModels(selectAll ? null : []);
19925
20012
  });
19926
20013
  }, [run]);
20014
+ const setModelGroup = (0, react.useCallback)((ids, checked) => {
20015
+ if (status === null || ids.length === 0) return;
20016
+ const current = status.models.filter((model) => model.enabled).map((model) => model.id);
20017
+ const next = nextGroupSelection(current, ids, checked);
20018
+ const turnedOn = checked ? ids.filter((id) => !current.includes(id)) : [];
20019
+ run("models", async () => {
20020
+ for (const id of turnedOn) await API$4.setVisibility(id, true);
20021
+ return await API$4.setEnabledModels(next.length === status.models.length ? null : next);
20022
+ });
20023
+ }, [status, run]);
19927
20024
  const commitContext = (0, react.useCallback)((id) => {
19928
20025
  const model = status?.models.find((entry) => entry.id === id);
19929
20026
  if (model === void 0) return;
@@ -20309,6 +20406,8 @@ window.__ModuleLoader__.load({
20309
20406
  busy: busyAny,
20310
20407
  onToggle: (id, enabled) => toggleModel(id, enabled),
20311
20408
  onToggleAll: (enabled) => setAllModels(enabled),
20409
+ onToggleGroup: setModelGroup,
20410
+ groupByVendor: true,
20312
20411
  labels: {
20313
20412
  selectAll: t.selectAll,
20314
20413
  clearAll: t.unselectAll,
@@ -21170,6 +21269,25 @@ window.__ModuleLoader__.load({
21170
21269
  setBusy(null);
21171
21270
  }
21172
21271
  };
21272
+ const setModelGroup = async (ids, enabled) => {
21273
+ if (status === null || ids.length === 0) return;
21274
+ const current = status.models.filter((model) => model.enabled).map((model) => model.id);
21275
+ try {
21276
+ setBusy("models-all");
21277
+ setError(null);
21278
+ const normalized = normalizeStatus(await api$8.request("/settings", {
21279
+ method: "POST",
21280
+ body: JSON.stringify({ enabledModelIds: nextGroupSelection(current, ids, enabled) })
21281
+ }));
21282
+ setStatus(normalized);
21283
+ setContextDrafts(contextDraftsFor(normalized));
21284
+ notifyChange();
21285
+ } catch (err) {
21286
+ setError(err instanceof Error ? err.message : String(err));
21287
+ } finally {
21288
+ setBusy(null);
21289
+ }
21290
+ };
21173
21291
  const updateEffort = async (effort) => {
21174
21292
  try {
21175
21293
  setBusy("effort");
@@ -21316,6 +21434,7 @@ window.__ModuleLoader__.load({
21316
21434
  updateCheckin,
21317
21435
  toggleModel,
21318
21436
  setAllModels,
21437
+ setModelGroup,
21319
21438
  updateEffort,
21320
21439
  refreshCatalog,
21321
21440
  saveContextWindow,
@@ -21462,7 +21581,7 @@ window.__ModuleLoader__.load({
21462
21581
  const { status, loading, busy, error, connection, loginProgress, contextDrafts, savingModel } = state;
21463
21582
  const { poolAccounts, effortChoices, allModels, strayEffort, contextModels, overrideCount, quota, authenticated, unreachable, poolLabels } = derived;
21464
21583
  const sealedCount = status?.sealedAccounts ?? 0;
21465
- const { login, rescan, accountAction, deleteAccount, setStrategy, testConnection, refreshQuota, checkinNow, updateCheckin, toggleModel, setAllModels, updateEffort, refreshCatalog, saveContextWindow, resetContextWindow, resetAllContextWindows, updateContextDraft, updateOutboundIdentity, saveAtRestKey, clearAtRestKey, updateGuardrails } = actions;
21584
+ const { login, rescan, accountAction, deleteAccount, setStrategy, testConnection, refreshQuota, checkinNow, updateCheckin, toggleModel, setAllModels, setModelGroup, updateEffort, refreshCatalog, saveContextWindow, resetContextWindow, resetAllContextWindows, updateContextDraft, updateOutboundIdentity, saveAtRestKey, clearAtRestKey, updateGuardrails } = actions;
21466
21585
  const [keyDraft, setKeyDraft] = (0, react.useState)("");
21467
21586
  const [guardrailDrafts, setGuardrailDrafts] = (0, react.useState)({});
21468
21587
  const pool = status?.pool;
@@ -21872,6 +21991,8 @@ window.__ModuleLoader__.load({
21872
21991
  busy: busy !== null,
21873
21992
  onToggle: (id, enabled) => void toggleModel(id, enabled),
21874
21993
  onToggleAll: (enabled) => void setAllModels(enabled),
21994
+ onToggleGroup: (ids, enabled) => void setModelGroup(ids, enabled),
21995
+ groupByVendor: true,
21875
21996
  labels: {
21876
21997
  selectAll: t.selectAll,
21877
21998
  clearAll: t.unselectAll,
@@ -22396,6 +22517,11 @@ window.__ModuleLoader__.load({
22396
22517
  if (status === null) return;
22397
22518
  update({ enabledModelIds: enabled ? status.models.map((model) => model.id) : [] }, "models").catch(() => void 0);
22398
22519
  }, [status, update]),
22520
+ setModelGroup: (0, react.useCallback)((ids, enabled) => {
22521
+ if (status === null || ids.length === 0) return;
22522
+ const current = status.models.filter((model) => model.enabled).map((model) => model.id);
22523
+ update({ enabledModelIds: nextGroupSelection(current, ids, enabled) }, "models").catch(() => void 0);
22524
+ }, [status, update]),
22399
22525
  saveContextWindow: (0, react.useCallback)(async (id) => {
22400
22526
  const raw = contextDrafts[id] ?? "";
22401
22527
  const parsed = parsePositiveCapacity$1(raw);
@@ -22666,6 +22792,8 @@ window.__ModuleLoader__.load({
22666
22792
  busy: busy !== null,
22667
22793
  onToggle: view.toggleModel,
22668
22794
  onToggleAll: view.setAllModels,
22795
+ onToggleGroup: view.setModelGroup,
22796
+ groupByVendor: true,
22669
22797
  labels: {
22670
22798
  selectAll: t.selectAll,
22671
22799
  clearAll: t.clearAll,
@@ -23218,6 +23346,11 @@ window.__ModuleLoader__.load({
23218
23346
  if (status === null) return;
23219
23347
  update({ enabledModelIds: enabled ? status.models.map((model) => model.id) : [] }, "models").catch(() => void 0);
23220
23348
  }, [status, update]),
23349
+ setModelGroup: (0, react.useCallback)((ids, enabled) => {
23350
+ if (status === null || ids.length === 0) return;
23351
+ const current = status.models.filter((model) => model.enabled).map((model) => model.id);
23352
+ update({ enabledModelIds: nextGroupSelection(current, ids, enabled) }, "models").catch(() => void 0);
23353
+ }, [status, update]),
23221
23354
  saveContextWindow: (0, react.useCallback)(async (id) => {
23222
23355
  const parsed = parsePositiveCapacity$1(contextDrafts[id] ?? "");
23223
23356
  if (parsed === null) {
@@ -23464,6 +23597,8 @@ window.__ModuleLoader__.load({
23464
23597
  busy: busy !== null,
23465
23598
  onToggle: view.toggleModel,
23466
23599
  onToggleAll: view.setAllModels,
23600
+ onToggleGroup: view.setModelGroup,
23601
+ groupByVendor: true,
23467
23602
  labels: {
23468
23603
  selectAll: t.selectAll,
23469
23604
  clearAll: t.clearAll,
@@ -25197,6 +25332,8 @@ window.__ModuleLoader__.load({
25197
25332
  const [addedIds, setAddedIds] = (0, react.useState)(() => readIdSet(HUB_ADDED_PROVIDERS_STORAGE_KEY));
25198
25333
  const [hiddenIds, setHiddenIds] = (0, react.useState)(() => readIdSet(HUB_HIDDEN_PROVIDERS_STORAGE_KEY));
25199
25334
  const [addSheetOpen, setAddSheetOpen] = (0, react.useState)(false);
25335
+ const [justAddedId, setJustAddedId] = (0, react.useState)(null);
25336
+ const overviewRef = (0, react.useRef)(null);
25200
25337
  const [addSheetQuery, setAddSheetQuery] = (0, react.useState)("");
25201
25338
  const addBtnRef = (0, react.useRef)(null);
25202
25339
  const [uncontrolledSelecting, setUncontrolledSelecting] = (0, react.useState)(false);
@@ -25452,8 +25589,18 @@ window.__ModuleLoader__.load({
25452
25589
  });
25453
25590
  setAddSheetOpen(false);
25454
25591
  setAddSheetQuery("");
25455
- onOpen(descriptor.id);
25456
- }, [onOpen]);
25592
+ const summary = summaries?.get(descriptor.id);
25593
+ if (summary !== void 0 && summary.canToggle && !summary.enabled) setOffFolded(false);
25594
+ setJustAddedId(descriptor.id);
25595
+ }, [summaries]);
25596
+ (0, react.useEffect)(() => {
25597
+ if (justAddedId === null) return;
25598
+ (overviewRef.current?.querySelector(`.dsh-hub-card[data-id="${justAddedId}"]`))?.scrollIntoView?.({
25599
+ behavior: "smooth",
25600
+ block: "nearest"
25601
+ });
25602
+ setJustAddedId(null);
25603
+ }, [justAddedId]);
25457
25604
  const handleCloseAddSheet = (0, react.useCallback)(() => {
25458
25605
  setAddSheetOpen(false);
25459
25606
  setAddSheetQuery("");
@@ -25531,6 +25678,7 @@ window.__ModuleLoader__.load({
25531
25678
  };
25532
25679
  const menuOnIndex = menu === null ? -1 : onRows.findIndex((entry) => entry.descriptor.id === menu.id);
25533
25680
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
25681
+ ref: overviewRef,
25534
25682
  className: "dsh-hub-overview",
25535
25683
  children: [loadError !== null && summaries === null ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("p", {
25536
25684
  className: "dsh-codex-error",
@@ -26538,7 +26686,7 @@ window.__ModuleLoader__.load({
26538
26686
  * account-pool labels come from `./account-pool.ts`, with the same overrides the
26539
26687
  * source applies on top of them.
26540
26688
  */
26541
- const dictionary$20 = {
26689
+ const dictionary$21 = {
26542
26690
  ...accountPoolRu,
26543
26691
  title: "Claude (подписка)",
26544
26692
  pageDesc: "Войдите в подписку Claude Pro/Max и управляйте моделями, уровнями рассуждений, контекстными окнами и квотой.",
@@ -26661,7 +26809,7 @@ window.__ModuleLoader__.load({
26661
26809
  };
26662
26810
  //#endregion
26663
26811
  //#region src/client/locales-ru/cline-pass.ts
26664
- const dictionary$19 = {
26812
+ const dictionary$20 = {
26665
26813
  ...accountPoolRu,
26666
26814
  relogin: "Войти заново",
26667
26815
  needsRelogin: "Вход истёк",
@@ -26787,7 +26935,7 @@ window.__ModuleLoader__.load({
26787
26935
  };
26788
26936
  //#endregion
26789
26937
  //#region src/client/locales-ru/command-code.ts
26790
- const dictionary$18 = {
26938
+ const dictionary$19 = {
26791
26939
  ...accountPoolRu,
26792
26940
  title: "Command Code",
26793
26941
  pageDesc: "Войдите в Command Code и управляйте моделями, контекстными окнами и квотой.",
@@ -26863,7 +27011,7 @@ window.__ModuleLoader__.load({
26863
27011
  };
26864
27012
  //#endregion
26865
27013
  //#region src/client/locales-ru/glm-coding-plan.ts
26866
- const dictionary$17 = {
27014
+ const dictionary$18 = {
26867
27015
  ...accountPoolRu,
26868
27016
  title: "GLM (аккаунт ZCode)",
26869
27017
  pageDesc: "Вход аккаунтом ZCode подключает GLM Coding Plan (Китай — bigmodel.cn, международный — z.ai). Здесь же пул аккаунтов, квота тарифа и выбор моделей. Учётные данные двух регионов независимы, поэтому в одном пуле могут быть аккаунты обоих.",
@@ -26966,7 +27114,7 @@ window.__ModuleLoader__.load({
26966
27114
  * account-pool labels come from `./account-pool.ts`, with the same overrides the
26967
27115
  * source applies on top of them.
26968
27116
  */
26969
- const dictionary$16 = {
27117
+ const dictionary$17 = {
26970
27118
  ...accountPoolRu,
26971
27119
  title: "ChatGPT",
26972
27120
  hubTitle: "Подписки",
@@ -27239,7 +27387,7 @@ window.__ModuleLoader__.load({
27239
27387
  };
27240
27388
  //#endregion
27241
27389
  //#region src/client/locales-ru/kimi-code.ts
27242
- const dictionary$15 = {
27390
+ const dictionary$16 = {
27243
27391
  ...accountPoolRu,
27244
27392
  title: "Kimi Code",
27245
27393
  pageDesc: "Вход в подписку Kimi Code: модели, уровень рассуждений, контекстные окна и квота.",
@@ -27437,7 +27585,7 @@ window.__ModuleLoader__.load({
27437
27585
  };
27438
27586
  //#endregion
27439
27587
  //#region src/client/locales-ru/minimax-code.ts
27440
- const dictionary$14 = {
27588
+ const dictionary$15 = {
27441
27589
  ...accountPoolRu,
27442
27590
  title: "MiniMax Code",
27443
27591
  pageDesc: "Вход в подписку MiniMax Code для программирования (OAuth по коду устройства) с переиспользованием локального входа MiniMax Code: управление аккаунтом, подключением и моделями.",
@@ -27637,7 +27785,7 @@ window.__ModuleLoader__.load({
27637
27785
  };
27638
27786
  //#endregion
27639
27787
  //#region src/client/locales-ru/ollama.ts
27640
- const dictionary$13 = {
27788
+ const dictionary$14 = {
27641
27789
  ...accountPoolRu,
27642
27790
  relogin: "Заменить ключ",
27643
27791
  needsRelogin: "Ключ отклонён",
@@ -27691,7 +27839,7 @@ window.__ModuleLoader__.load({
27691
27839
  };
27692
27840
  //#endregion
27693
27841
  //#region src/client/locales-ru/antigravity-acp.ts
27694
- const dictionary$12 = {
27842
+ const dictionary$13 = {
27695
27843
  title: "Antigravity (ACP)",
27696
27844
  pageDesc: "Подключение через официальный Antigravity CLI от Google по Agent Client Protocol (ACP): модель, инструменты и сессии приходят от официального процесса, и он же хранит состояние входа.",
27697
27845
  routeOwned: "Маршрут моделей обслуживает этот плагин",
@@ -27785,7 +27933,7 @@ window.__ModuleLoader__.load({
27785
27933
  };
27786
27934
  //#endregion
27787
27935
  //#region src/client/locales-ru/opendesign.ts
27788
- const dictionary$11 = {
27936
+ const dictionary$12 = {
27789
27937
  ...accountPoolRu,
27790
27938
  relogin: "Добавить заново",
27791
27939
  needsRelogin: "API-ключ недействителен",
@@ -27895,7 +28043,7 @@ window.__ModuleLoader__.load({
27895
28043
  };
27896
28044
  //#endregion
27897
28045
  //#region src/client/locales-ru/dispatch-ledger.ts
27898
- const dictionary$10 = {
28046
+ const dictionary$11 = {
27899
28047
  mandateTitle: "Запуск субагента",
27900
28048
  mandateTitleFork: "Запуск субагента (с контекстом)",
27901
28049
  mandatePreparing: "Сборка задания",
@@ -27920,7 +28068,7 @@ window.__ModuleLoader__.load({
27920
28068
  };
27921
28069
  //#endregion
27922
28070
  //#region src/client/locales-ru/progress-updates.ts
27923
- const dictionary$9 = {
28071
+ const dictionary$10 = {
27924
28072
  navTitle: "Ход работы",
27925
28073
  progressTitle: "Ход работы",
27926
28074
  progressGuideNote: "Каждый шаг, о котором сообщает агент, собирается здесь",
@@ -27976,7 +28124,7 @@ window.__ModuleLoader__.load({
27976
28124
  };
27977
28125
  //#endregion
27978
28126
  //#region src/client/locales-ru/qoder.ts
27979
- const dictionary$8 = {
28127
+ const dictionary$9 = {
27980
28128
  modelRowEfforts: "уровни {list}",
27981
28129
  modelRowNoEfforts: "без уровней",
27982
28130
  modelRowOutput: "вывод {cap}",
@@ -28098,7 +28246,7 @@ window.__ModuleLoader__.load({
28098
28246
  };
28099
28247
  //#endregion
28100
28248
  //#region src/client/locales-ru/step-code.ts
28101
- const dictionary$7 = {
28249
+ const dictionary$8 = {
28102
28250
  ...accountPoolRu,
28103
28251
  title: "Step Code (подписка Step Plan)",
28104
28252
  pageDesc: "Подключение к StepFun по подписке Step Plan (Китай api.stepfun.com / международный api.stepfun.ai) или по API-ключу открытой платформы: пул аккаунтов, квота тарифа, расход кеша и выбор моделей. Регион — свойство учётных данных, и два региона несовместимы, поэтому в пуле могут быть аккаунты из обоих.",
@@ -28275,7 +28423,7 @@ window.__ModuleLoader__.load({
28275
28423
  * dropped '{placeholder}' would turn a sentence into a bald claim. 'test/
28276
28424
  * russian-locale.test.tsx' pins both rules.
28277
28425
  */
28278
- const dictionary$6 = {
28426
+ const dictionary$7 = {
28279
28427
  title: "WorkBuddy",
28280
28428
  pageDesc: "Повторно использует локальный вход CodeBuddy, чтобы управлять моделями WorkBuddy (подписка CodeBuddy), контекстными окнами и квотой.",
28281
28429
  account: "Аккаунт",
@@ -28403,7 +28551,7 @@ window.__ModuleLoader__.load({
28403
28551
  };
28404
28552
  //#endregion
28405
28553
  //#region src/client/locales-ru/qianwen-token-plan.ts
28406
- const dictionary$5 = {
28554
+ const dictionary$6 = {
28407
28555
  title: "Qwen Token Plan",
28408
28556
  pageDesc: "Подключение Qwen4 по выделенному API-ключу Qianwen Token Plan: явный кеш, воспроизведение размышлений, уровни reasoning, модели и визуальный бюджет.",
28409
28557
  loading: "Загрузка…",
@@ -28478,7 +28626,7 @@ window.__ModuleLoader__.load({
28478
28626
  };
28479
28627
  //#endregion
28480
28628
  //#region src/client/locales-ru/relayone.ts
28481
- const dictionary$4 = {
28629
+ const dictionary$5 = {
28482
28630
  title: "RelayOne",
28483
28631
  pageDesc: "Один API-ключ для диалоговых и медиамоделей, доступных в его текущей группе.",
28484
28632
  enabled: "Включить RelayOne",
@@ -28587,7 +28735,7 @@ window.__ModuleLoader__.load({
28587
28735
  };
28588
28736
  //#endregion
28589
28737
  //#region src/client/locales-ru/claude-api.ts
28590
- const dictionary$3 = {
28738
+ const dictionary$4 = {
28591
28739
  title: "Claude API",
28592
28740
  pageDesc: "Один API-ключ для эндпоинта Anthropic Messages или совместимого шлюза; запросы отправляются в формате официального клиента Claude Code.",
28593
28741
  loading: "Чтение состояния линии…",
@@ -28666,7 +28814,7 @@ window.__ModuleLoader__.load({
28666
28814
  };
28667
28815
  //#endregion
28668
28816
  //#region src/client/locales-ru/aws-quick.ts
28669
- const dictionary$2 = {
28817
+ const dictionary$3 = {
28670
28818
  title: "AWS Quick",
28671
28819
  pageDesc: "Используйте подписку AWS Quick через официальный локальный agent Quick Desktop: потоковый текст, reasoning и три режима ответа.",
28672
28820
  refresh: "Обновить",
@@ -28723,7 +28871,7 @@ window.__ModuleLoader__.load({
28723
28871
  };
28724
28872
  //#endregion
28725
28873
  //#region src/client/locales-ru/compact-after-turn.ts
28726
- const dictionary$1 = {
28874
+ const dictionary$2 = {
28727
28875
  label: "Сжать после этого хода",
28728
28876
  infoLabel: "О сжатии после этого хода",
28729
28877
  hint: "Когда включено, контекст сжимается один раз сразу после окончания этого хода, затем переключатель выключается сам. Ход, остановленный вручную, не считается: переключатель остаётся включённым до конца следующего хода.",
@@ -28738,7 +28886,7 @@ window.__ModuleLoader__.load({
28738
28886
  };
28739
28887
  //#endregion
28740
28888
  //#region src/client/locales-ru/session-quota.ts
28741
- const dictionary = {
28889
+ const dictionary$1 = {
28742
28890
  sectionTitle: "Лимиты плана",
28743
28891
  refresh: "Обновить",
28744
28892
  refreshing: "Обновление…",
@@ -28770,6 +28918,16 @@ window.__ModuleLoader__.load({
28770
28918
  creditBucket: "Пул кредитов #{index}",
28771
28919
  resetCredits: "Купоны сброса"
28772
28920
  };
28921
+ //#endregion
28922
+ //#region src/client/locales-ru/model-checklist.ts
28923
+ const dictionary = {
28924
+ allGroups: "Все",
28925
+ enabledGroup: "Включённые",
28926
+ otherGroup: "Другие",
28927
+ searchPlaceholder: "Поиск моделей или провайдеров…",
28928
+ noMatches: "Подходящих моделей не найдено",
28929
+ groupsNav: "Провайдеры моделей"
28930
+ };
28773
28931
  /**
28774
28932
  * Register the Russian language and every dictionary it covers.
28775
28933
  *
@@ -28792,27 +28950,28 @@ window.__ModuleLoader__.load({
28792
28950
  }
28793
28951
  }, "dsh-chatgpt-subscription: ru language");
28794
28952
  const dictionaries = [
28795
- [NS, dictionary$16],
28796
- [NS_CLAUDE, dictionary$20],
28797
- [NS_COMMAND_CODE, dictionary$18],
28798
- [NS_KIMI_CODE, dictionary$15],
28799
- [NS_MINIMAX_CODE, dictionary$14],
28800
- [NS_GLM_CODING_PLAN, dictionary$17],
28801
- [NS_OLLAMA, dictionary$13],
28802
- [NS_STEP_CODE, dictionary$7],
28803
- [NS_CLINE_PASS, dictionary$19],
28804
- [NS_QODER, dictionary$8],
28805
- [NS_OPENDESIGN, dictionary$11],
28806
- [NS_PROGRESS_UPDATES, dictionary$9],
28807
- [NS_WORKBUDDY, dictionary$6],
28808
- [NS_DISPATCH_LEDGER, dictionary$10],
28809
- [NS_ANTIGRAVITY_ACP, dictionary$12],
28810
- [NS_QIANWEN, dictionary$5],
28811
- [NS_RELAYONE, dictionary$4],
28812
- [NS_CLAUDE_API, dictionary$3],
28813
- [NS_AWS_QUICK, dictionary$2],
28814
- [NS_COMPACT_AFTER_TURN, dictionary$1],
28815
- [NS_SESSION_QUOTA, dictionary]
28953
+ [NS, dictionary$17],
28954
+ [NS_CLAUDE, dictionary$21],
28955
+ [NS_COMMAND_CODE, dictionary$19],
28956
+ [NS_KIMI_CODE, dictionary$16],
28957
+ [NS_MINIMAX_CODE, dictionary$15],
28958
+ [NS_GLM_CODING_PLAN, dictionary$18],
28959
+ [NS_OLLAMA, dictionary$14],
28960
+ [NS_STEP_CODE, dictionary$8],
28961
+ [NS_CLINE_PASS, dictionary$20],
28962
+ [NS_QODER, dictionary$9],
28963
+ [NS_OPENDESIGN, dictionary$12],
28964
+ [NS_PROGRESS_UPDATES, dictionary$10],
28965
+ [NS_WORKBUDDY, dictionary$7],
28966
+ [NS_DISPATCH_LEDGER, dictionary$11],
28967
+ [NS_ANTIGRAVITY_ACP, dictionary$13],
28968
+ [NS_QIANWEN, dictionary$6],
28969
+ [NS_RELAYONE, dictionary$5],
28970
+ [NS_CLAUDE_API, dictionary$4],
28971
+ [NS_AWS_QUICK, dictionary$3],
28972
+ [NS_COMPACT_AFTER_TURN, dictionary$2],
28973
+ [NS_SESSION_QUOTA, dictionary$1],
28974
+ [NS_MODEL_CHECKLIST, dictionary]
28816
28975
  ];
28817
28976
  for (const [ns, dictionary] of dictionaries) ctx.effect(() => {
28818
28977
  try {
@@ -65671,7 +65830,7 @@ window.__ModuleLoader__.load({
65671
65830
  * @module @eddyskywalker/dsh-chatgpt-subscription/client/codemode/CodeRunToolView
65672
65831
  */
65673
65832
  function fallbackTranslate(key) {
65674
- return zh$21[key] ?? key;
65833
+ return zh$22[key] ?? key;
65675
65834
  }
65676
65835
  function firstLine(text) {
65677
65836
  const nl = text.indexOf("\n");
@@ -67435,13 +67594,14 @@ window.__ModuleLoader__.load({
67435
67594
  installLineLocale(ctx.locale);
67436
67595
  ctx.effect(() => installHostLocaleMirror(ctx.locale), "dsh-chatgpt-subscription: host locale mirror");
67437
67596
  installRussianLocale(ctx);
67438
- ctx.effect(() => ctx.locale.register(NS, dictionaries$21), "dsh-chatgpt-subscription: dictionaries");
67597
+ ctx.effect(() => ctx.locale.register(NS, dictionaries$22), "dsh-chatgpt-subscription: dictionaries");
67439
67598
  ctx.effect(() => installStyles(), "dsh-chatgpt-subscription: styles");
67440
67599
  ctx.effect(() => {
67441
67600
  installHubStyles();
67442
67601
  installModelChecklistStyles();
67443
67602
  return () => {};
67444
67603
  }, "dsh-chatgpt-subscription: hub styles");
67604
+ ctx.effect(() => ctx.locale.register(NS_MODEL_CHECKLIST, dictionaries$21), "dsh-model-checklist: dictionaries");
67445
67605
  ctx.effect(() => ctx.locale.register(NS_CLAUDE, dictionaries$16), "dsh-claude: dictionaries");
67446
67606
  ctx.effect(() => {
67447
67607
  installClaudeStyles();