@omnicross/contracts 0.3.0 → 0.4.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.
package/dist/index.js CHANGED
@@ -42,19 +42,56 @@ var ANTHROPIC_MODELS = {
42
42
  "claude-opus-4-6[1m]": { category: "reasoning", contextLength: 1e6, maxTokens: 128e3, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["none", "low", "medium", "high", "xhigh", "max"], thinkingTokenLimit: { min: 1024, max: 128e3 } },
43
43
  "claude-sonnet-4-6": { category: "chat", contextLength: 2e5, maxTokens: 64e3, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["none", "low", "medium", "high", "xhigh", "max"], thinkingTokenLimit: { min: 1024, max: 64e3 } },
44
44
  "claude-sonnet-4-6[1m]": { category: "chat", contextLength: 1e6, maxTokens: 64e3, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["none", "low", "medium", "high", "xhigh", "max"], thinkingTokenLimit: { min: 1024, max: 64e3 } },
45
- "claude-haiku-4-5": { category: "chat", contextLength: 2e5, maxTokens: 64e3, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["none", "low", "medium", "high", "xhigh", "max"], thinkingTokenLimit: { min: 1024, max: 64e3 } }
45
+ "claude-haiku-4-5": { category: "chat", contextLength: 2e5, maxTokens: 64e3, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["none", "low", "medium", "high", "xhigh", "max"], thinkingTokenLimit: { min: 1024, max: 64e3 } },
46
+ // Copilot-served variants (same model family on the Copilot API; context
47
+ // windows per the Copilot catalog where it diverges from the family default).
48
+ "claude-opus-4-5": { category: "reasoning", contextLength: 2e5, maxTokens: 128e3, vision: true, functionCall: true, reasoning: true },
49
+ "claude-sonnet-4-5": { category: "chat", contextLength: 2e5, maxTokens: 64e3, vision: true, functionCall: true, reasoning: true },
50
+ "claude-sonnet-4": { category: "chat", contextLength: 216e3, maxTokens: 64e3, vision: true, functionCall: true, reasoning: true }
46
51
  };
47
52
  var GEMINI_MODELS = {
48
53
  "gemini-3.5-flash": { category: "chat", contextLength: 1e6, maxTokens: 65536, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["none", "low", "medium", "high"], thinkingTokenLimit: { min: 0, max: 24576 } },
49
54
  "gemini-3-flash": { category: "chat", contextLength: 1e6, maxTokens: 65536, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["none", "low", "medium", "high"], thinkingTokenLimit: { min: 0, max: 24576 } },
50
- "gemini-3.1-pro": { category: "chat", contextLength: 1e6, maxTokens: 65536, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["low", "medium", "high"], thinkingTokenLimit: { min: 128, max: 32768 } }
55
+ "gemini-3.1-pro": { category: "chat", contextLength: 1e6, maxTokens: 65536, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["low", "medium", "high"], thinkingTokenLimit: { min: 128, max: 32768 } },
56
+ // Copilot-served variants (chat-completions wire on the Copilot API).
57
+ "gemini-3.1-pro-preview": { category: "chat", contextLength: 1e6, maxTokens: 65536, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["low", "medium", "high"] },
58
+ "gemini-3.6-flash": { category: "chat", contextLength: 1e6, maxTokens: 65536, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["none", "low", "medium", "high"] },
59
+ "gemini-3.7-flash": { category: "chat", contextLength: 1e6, maxTokens: 65536, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["none", "low", "medium", "high"] },
60
+ "gemini-3-pro-preview": { category: "chat", contextLength: 128e3, maxTokens: 65536, vision: true, functionCall: true, reasoning: true },
61
+ "gemini-3-flash-preview": { category: "chat", contextLength: 128e3, maxTokens: 65536, vision: true, functionCall: true, reasoning: true },
62
+ "gemini-2.5-pro": { category: "chat", contextLength: 128e3, maxTokens: 65536, vision: true, functionCall: true, reasoning: true }
51
63
  };
52
64
  var GROK_MODELS = {
53
65
  "grok-4.5": { category: "chat", contextLength: 5e5, maxTokens: 32768, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["none", "low", "medium", "high"], thinkingTokenLimit: { min: 0, max: 32768 } },
54
66
  "grok-4.3": { category: "chat", contextLength: 1e6, maxTokens: 32768, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["none", "low", "medium", "high"], thinkingTokenLimit: { min: 0, max: 32768 } },
55
67
  "grok-4.20": { category: "chat", contextLength: 131072, maxTokens: 32768, vision: true, functionCall: true },
56
68
  "grok-4.20-reasoning": { category: "reasoning", contextLength: 131072, maxTokens: 32768, reasoning: true, vision: true, functionCall: true, thinkingLevels: ["none", "low", "medium", "high"], thinkingTokenLimit: { min: 0, max: 32768 } },
57
- "grok-4.20-multi-agent": { category: "reasoning", contextLength: 131072, maxTokens: 32768, reasoning: true, thinkingLevels: ["none", "low", "medium", "high"], thinkingTokenLimit: { min: 0, max: 32768 } }
69
+ "grok-4.20-multi-agent": { category: "reasoning", contextLength: 131072, maxTokens: 32768, reasoning: true, thinkingLevels: ["none", "low", "medium", "high"], thinkingTokenLimit: { min: 0, max: 32768 } },
70
+ // SuperGrok subscription ids (Responses wire). Upstream context/output caps
71
+ // per the audit source; the effort-taking models accept low/medium/high only
72
+ // (minimal→low, xhigh/max→high), and the omit-effort models carry
73
+ // `thinkingLevels: ['none']` so the effort negotiation drops the
74
+ // `reasoning.effort` field entirely (sending it upstream is a 400).
75
+ "grok-4.6": { category: "chat", contextLength: 5e5, maxTokens: 5e5, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["low", "medium", "high"], thinkingTokenLimit: { min: 0, max: 32768 } },
76
+ "grok-4.20-0309-non-reasoning": { category: "chat", contextLength: 2e6, maxTokens: 2e6, vision: true, functionCall: true, thinkingLevels: ["none"] },
77
+ "grok-4.20-0309-reasoning": { category: "reasoning", contextLength: 2e6, maxTokens: 2e6, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["none"] },
78
+ "grok-4.20-multi-agent-0309": { category: "reasoning", contextLength: 2e6, maxTokens: 2e6, functionCall: true, reasoning: true, thinkingLevels: ["low", "medium", "high"], thinkingTokenLimit: { min: 0, max: 32768 } },
79
+ "grok-build": { category: "reasoning", contextLength: 512e3, maxTokens: 512e3, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["none"] },
80
+ "grok-build-0.1": { category: "reasoning", contextLength: 256e3, maxTokens: 256e3, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["none"] },
81
+ "grok-composer-2.5-fast": { category: "chat", contextLength: 2e5, maxTokens: 2e5, functionCall: true, thinkingLevels: ["none"] }
82
+ };
83
+ var COPILOT_MODELS = {
84
+ "gpt-5.1-codex-max": { category: "code", contextLength: 272e3, maxTokens: 128e3, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["low", "medium", "high"], thinkingTokenLimit: { min: 0, max: 128e3 } },
85
+ "gpt-5.1-codex-mini": { category: "code", contextLength: 272e3, maxTokens: 128e3, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["medium", "high"], thinkingTokenLimit: { min: 0, max: 128e3 } },
86
+ "gpt-5.2-codex": { category: "code", contextLength: 272e3, maxTokens: 128e3, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["none", "low", "medium", "high"], thinkingTokenLimit: { min: 0, max: 128e3 } },
87
+ "gpt-5.1-codex": { category: "code", contextLength: 272e3, maxTokens: 128e3, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["low", "medium", "high"], thinkingTokenLimit: { min: 0, max: 128e3 } },
88
+ "gpt-5.1": { category: "reasoning", contextLength: 264e3, maxTokens: 128e3, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["none", "low", "medium", "high"], thinkingTokenLimit: { min: 0, max: 128e3 } },
89
+ "gpt-5-mini": { category: "reasoning", contextLength: 264e3, maxTokens: 128e3, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["none", "low", "medium", "high"], thinkingTokenLimit: { min: 0, max: 128e3 } },
90
+ "gpt-5.4-nano": { category: "reasoning", contextLength: 4e5, maxTokens: 128e3, functionCall: true, reasoning: true, thinkingLevels: ["none", "low", "medium", "high"], thinkingTokenLimit: { min: 0, max: 128e3 } },
91
+ "grok-code-fast-1": { category: "code", contextLength: 192e3, maxTokens: 32768, functionCall: true, reasoning: true },
92
+ "raptor-mini": { category: "reasoning", contextLength: 4e5, maxTokens: 65536, functionCall: true, reasoning: true, vision: true },
93
+ "mai-code-1-flash-picker": { category: "code", contextLength: 256e3, maxTokens: 65536, functionCall: true, reasoning: true, thinkingLevels: ["none", "low", "medium", "high"] },
94
+ "mai-code-1.1-flash": { category: "code", contextLength: 256e3, maxTokens: 65536, functionCall: true, reasoning: true, vision: true, thinkingLevels: ["none", "low", "medium", "high"] }
58
95
  };
59
96
  var DEEPSEEK_MODELS = {
60
97
  "deepseek-v4-flash": { category: "chat", contextLength: 1e6, maxTokens: 384e3, functionCall: true, reasoning: true, thinkingLevels: ["none", "high", "max"], thinkingTokenLimit: { min: 0, max: 32768 } },
@@ -64,6 +101,8 @@ var DEEPSEEK_MODELS = {
64
101
  "deepseek-r1": { category: "reasoning", contextLength: 64e3, maxTokens: 8192, reasoning: true, thinkingTokenLimit: { min: 0, max: 32768 } }
65
102
  };
66
103
  var ZHIPU_MODELS = {
104
+ "glm-5.3": { category: "chat", contextLength: 1048576, maxTokens: 131072, functionCall: true },
105
+ "glm-5.3-flash": { category: "chat", contextLength: 1048576, maxTokens: 131072, functionCall: true },
67
106
  "glm-5.2": { category: "chat", contextLength: 1048576, maxTokens: 131072, functionCall: true },
68
107
  "glm-5": { category: "chat", contextLength: 2e5, maxTokens: 128e3, functionCall: true },
69
108
  "glm-5.1": { category: "chat", contextLength: 2e5, maxTokens: 128e3, functionCall: true },
@@ -98,10 +137,15 @@ var TENCENT_HUNYUAN_MODELS = {
98
137
  "hunyuan-turbos": { category: "chat", functionCall: true }
99
138
  };
100
139
  var MINIMAX_MODELS = {
140
+ "minimax-m3": { category: "code", contextLength: 204800, functionCall: true, reasoning: true },
141
+ "minimax-m2.7": { category: "code", contextLength: 204800, functionCall: true },
142
+ "minimax-m2.7-highspeed": { category: "code", contextLength: 204800, functionCall: true },
101
143
  "minimax-m2.5": { category: "code", contextLength: 204800, functionCall: true },
102
144
  "minimax-m2.5-highspeed": { category: "code", contextLength: 204800, functionCall: true },
145
+ "minimax-m2.5-lightning": { category: "code", contextLength: 204800, functionCall: true },
103
146
  "minimax-m2.1": { category: "code", contextLength: 204800, functionCall: true },
104
- "minimax-m2.1-highspeed": { category: "code", contextLength: 204800, functionCall: true }
147
+ "minimax-m2.1-lightning": { category: "code", contextLength: 204800, functionCall: true },
148
+ "minimax-m2": { category: "code", contextLength: 204800, functionCall: true }
105
149
  };
106
150
  var XIAOMI_MIMO_CANONICAL = {
107
151
  "mimo-v2.5": { category: "code", contextLength: 1e6, maxTokens: 32768, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["none", "low", "medium", "high"], thinkingTokenLimit: { min: 0, max: 32768 } },
@@ -143,6 +187,7 @@ var VENDOR_GROUPS = [
143
187
  { name: "ANTHROPIC_MODELS", entries: ANTHROPIC_MODELS },
144
188
  { name: "GEMINI_MODELS", entries: GEMINI_MODELS },
145
189
  { name: "GROK_MODELS", entries: GROK_MODELS },
190
+ { name: "COPILOT_MODELS", entries: COPILOT_MODELS },
146
191
  { name: "DEEPSEEK_MODELS", entries: DEEPSEEK_MODELS },
147
192
  { name: "ZHIPU_MODELS", entries: ZHIPU_MODELS },
148
193
  { name: "KIMI_MODELS", entries: KIMI_MODELS },
@@ -510,6 +555,7 @@ var MAX_CONCURRENCY_DEFAULTS = {
510
555
  "zhipu-bigmodel": 5,
511
556
  kimi: 5,
512
557
  minimax: 5,
558
+ "minimax-token-plan": 5,
513
559
  dashscope: 5,
514
560
  volcengine: 5,
515
561
  tencent: 5,
@@ -811,6 +857,72 @@ var cerebras_default = {
811
857
  features: []
812
858
  };
813
859
 
860
+ // src/provider-presets/presets/cline-pass.json
861
+ var cline_pass_default = {
862
+ id: "cline-pass",
863
+ presetId: "cline-pass",
864
+ name: "Cline",
865
+ apiFormat: "openai",
866
+ api_base_url: "https://api.cline.bot/api/v1",
867
+ extraHeaders: {
868
+ "HTTP-Referer": "https://cline.bot",
869
+ "X-Title": "Cline",
870
+ "X-IS-MULTIROOT": "false",
871
+ "X-CLIENT-TYPE": "cline-sdk",
872
+ "User-Agent": "Cline/3.0.58",
873
+ "X-CLIENT-VERSION": "3.0.58",
874
+ "X-PLATFORM": "{{platform}}",
875
+ "X-PLATFORM-VERSION": "3.0.54",
876
+ "X-CORE-VERSION": "0.0.79"
877
+ },
878
+ models: [
879
+ "cline-pass/kimi-k3",
880
+ "cline-pass/glm-5.3",
881
+ "cline-pass/glm-5.3-flash",
882
+ "cline-pass/glm-5.2",
883
+ "cline-pass/deepseek-v4-pro",
884
+ "cline-pass/deepseek-v4-flash",
885
+ "cline-pass/qwen3.8-max",
886
+ "cline-pass/qwen3.7-max",
887
+ "cline-pass/qwen3.7-plus",
888
+ "cline-pass/kimi-k2.7-code",
889
+ "cline-pass/kimi-k2.6",
890
+ "cline-pass/minimax-m3",
891
+ "cline-pass/mimo-v2.5-pro",
892
+ "cline-pass/mimo-v2.5",
893
+ "cline-free/longcat-2.0",
894
+ "deepseek/deepseek-v4-flash",
895
+ "z-ai/glm-5.3-flash",
896
+ "poolside/laguna-s-2.1:free"
897
+ ],
898
+ modelConfigs: [
899
+ { id: "cline-pass/kimi-k3", name: "Kimi K3", enabled: true, category: "code", contextLength: 1048576, functionCall: true, reasoning: true, vision: true },
900
+ { id: "cline-pass/glm-5.3", name: "GLM-5.3", enabled: true, category: "code", contextLength: 1048576, functionCall: true, reasoning: true },
901
+ { id: "cline-pass/glm-5.3-flash", name: "GLM-5.3 Flash", enabled: true, category: "code", contextLength: 1310720, functionCall: true, reasoning: true, vision: true },
902
+ { id: "cline-pass/glm-5.2", name: "GLM-5.2", enabled: true, category: "code", contextLength: 1048576, functionCall: true, reasoning: true },
903
+ { id: "cline-pass/deepseek-v4-pro", name: "DeepSeek V4 Pro", enabled: true, category: "code", contextLength: 1048576, functionCall: true, reasoning: true },
904
+ { id: "cline-pass/deepseek-v4-flash", name: "DeepSeek V4 Flash", enabled: true, category: "code", contextLength: 1048576, functionCall: true, reasoning: true },
905
+ { id: "cline-pass/qwen3.8-max", name: "Qwen3.8 Max", enabled: true, category: "code", contextLength: 1e6, functionCall: true, reasoning: true, vision: true },
906
+ { id: "cline-pass/qwen3.7-max", name: "Qwen3.7 Max", enabled: true, category: "code", contextLength: 1e6, functionCall: true, reasoning: true },
907
+ { id: "cline-pass/qwen3.7-plus", name: "Qwen3.7 Plus", enabled: true, category: "code", contextLength: 1e6, functionCall: true, reasoning: true, vision: true },
908
+ { id: "cline-pass/kimi-k2.7-code", name: "Kimi K2.7 Code", enabled: true, category: "code", contextLength: 262144, functionCall: true, reasoning: true, vision: true },
909
+ { id: "cline-pass/kimi-k2.6", name: "Kimi K2.6", enabled: true, category: "code", contextLength: 262144, functionCall: true, reasoning: true, vision: true },
910
+ { id: "cline-pass/minimax-m3", name: "MiniMax M3", enabled: true, category: "code", contextLength: 1048576, functionCall: true, reasoning: true, vision: true },
911
+ { id: "cline-pass/mimo-v2.5-pro", name: "MiMo V2.5 Pro", enabled: true, category: "code", contextLength: 105e4, functionCall: true, reasoning: true },
912
+ { id: "cline-pass/mimo-v2.5", name: "MiMo V2.5", enabled: true, category: "code", contextLength: 105e4, functionCall: true, reasoning: true, vision: true },
913
+ { id: "cline-free/longcat-2.0", name: "LongCat 2.0 (free)", enabled: true, category: "code", contextLength: 1048756, functionCall: true, reasoning: true },
914
+ { id: "deepseek/deepseek-v4-flash", name: "DeepSeek V4 Flash (free)", enabled: true, category: "code", contextLength: 1048576, functionCall: true, reasoning: true },
915
+ { id: "z-ai/glm-5.3-flash", name: "GLM-5.3 Flash (free)", enabled: true, category: "code", contextLength: 1310720, functionCall: true, reasoning: true, vision: true },
916
+ { id: "poolside/laguna-s-2.1:free", name: "Laguna S 2.1 (free)", enabled: true, category: "code", contextLength: 262144, functionCall: true, reasoning: true }
917
+ ],
918
+ description: "Cline \u8BA2\u9605\u901A\u884C\u8BC1\uFF08OpenAI \u517C\u5BB9\u7AEF\u70B9\uFF0C\u542B\u514D\u8D39\u6863\u6A21\u578B\uFF1B\u5728 Cline \u63A7\u5236\u53F0 Settings \u2192 API Keys \u521B\u5EFA\u5BC6\u94A5\uFF09\u3002\u8BF7\u6C42\u81EA\u52A8\u643A\u5E26 Cline \u5BA2\u6237\u7AEF\u8EAB\u4EFD\u5934\uFF08\u786C\u6027\u5951\u7EA6\uFF0C\u7F3A\u5931\u4F1A\u88AB 403\uFF09\uFF1B\u5BC6\u94A5\u7684 5 \u5C0F\u65F6/\u6BCF\u5468/\u6BCF\u6708\u7528\u91CF\u4F1A\u81EA\u52A8\u663E\u793A\u5728\u5BC6\u94A5\u5217\u8868\u3002",
919
+ icon: "cline",
920
+ website: "https://cline.bot",
921
+ docsUrl: "https://app.cline.bot/dashboard/account",
922
+ isSystem: true,
923
+ features: ["coding-plan"]
924
+ };
925
+
814
926
  // src/provider-presets/presets/dashscope.json
815
927
  var dashscope_default = {
816
928
  id: "dashscope",
@@ -1310,6 +1422,44 @@ var minimax_default = {
1310
1422
  }
1311
1423
  };
1312
1424
 
1425
+ // src/provider-presets/presets/minimax-token-plan.json
1426
+ var minimax_token_plan_default = {
1427
+ id: "minimax-token-plan",
1428
+ presetId: "minimax",
1429
+ name: "MiniMax Token Plan",
1430
+ nameKey: "presetName.minimaxTokenPlan",
1431
+ apiFormat: "openai",
1432
+ api_base_url: "https://api.minimax.io/v1",
1433
+ models: [
1434
+ "MiniMax-M3",
1435
+ "MiniMax-M2.7",
1436
+ "MiniMax-M2.7-highspeed",
1437
+ "MiniMax-M2.5",
1438
+ "MiniMax-M2.5-highspeed",
1439
+ "MiniMax-M2.5-lightning",
1440
+ "MiniMax-M2.1",
1441
+ "MiniMax-M2.1-lightning",
1442
+ "MiniMax-M2"
1443
+ ],
1444
+ modelConfigs: [
1445
+ { id: "MiniMax-M3", name: "MiniMax M3", enabled: true, category: "code", contextLength: 204800, functionCall: true, reasoning: true },
1446
+ { id: "MiniMax-M2.7", name: "MiniMax M2.7", enabled: true, category: "code", contextLength: 204800, functionCall: true },
1447
+ { id: "MiniMax-M2.7-highspeed", name: "MiniMax M2.7 \u6781\u901F\u7248", enabled: true, category: "code", contextLength: 204800, functionCall: true },
1448
+ { id: "MiniMax-M2.5", name: "MiniMax M2.5", enabled: true, category: "code", contextLength: 204800, functionCall: true },
1449
+ { id: "MiniMax-M2.5-highspeed", name: "MiniMax M2.5 \u6781\u901F\u7248", enabled: true, category: "code", contextLength: 204800, functionCall: true },
1450
+ { id: "MiniMax-M2.5-lightning", name: "MiniMax M2.5 Lightning", enabled: true, category: "code", contextLength: 204800, functionCall: true },
1451
+ { id: "MiniMax-M2.1", name: "MiniMax M2.1", enabled: true, category: "code", contextLength: 204800, functionCall: true },
1452
+ { id: "MiniMax-M2.1-lightning", name: "MiniMax M2.1 Lightning", enabled: true, category: "code", contextLength: 204800, functionCall: true },
1453
+ { id: "MiniMax-M2", name: "MiniMax M2", enabled: true, category: "code", contextLength: 204800, functionCall: true }
1454
+ ],
1455
+ description: "MiniMax \u8BA2\u9605 Token Plan\uFF08OpenAI \u517C\u5BB9\u7AEF\u70B9\uFF09\u3002\u4E2D\u56FD\u5927\u9646\u7528\u6237\u53EF\u5C06 base URL \u6362\u4E3A https://api.minimaxi.com/v1\u3002\u5BC6\u94A5\u7684 5 \u5C0F\u65F6/\u5468\u7528\u91CF\u4F1A\u81EA\u52A8\u663E\u793A\u5728\u5BC6\u94A5\u5217\u8868\u3002",
1456
+ icon: "minimax",
1457
+ website: "https://platform.minimax.io",
1458
+ docsUrl: "https://platform.minimax.io/docs",
1459
+ isSystem: true,
1460
+ features: ["coding-plan"]
1461
+ };
1462
+
1313
1463
  // src/provider-presets/presets/mistral.json
1314
1464
  var mistral_default = {
1315
1465
  id: "mistral",
@@ -1725,6 +1875,36 @@ var siliconflow_default = {
1725
1875
  ]
1726
1876
  };
1727
1877
 
1878
+ // src/provider-presets/presets/synthetic.json
1879
+ var synthetic_default = {
1880
+ id: "synthetic",
1881
+ presetId: "synthetic",
1882
+ name: "Synthetic",
1883
+ nameKey: "presetName.synthetic",
1884
+ apiFormat: "openai",
1885
+ api_base_url: "https://api.synthetic.new/openai/v1",
1886
+ models: [
1887
+ "hf:moonshotai/Kimi-K3",
1888
+ "hf:zai-org/GLM-5.3-Flash",
1889
+ "hf:zai-org/GLM-5.2",
1890
+ "hf:Qwen/Qwen3.8-27B",
1891
+ "hf:openai/gpt-oss-120b"
1892
+ ],
1893
+ modelConfigs: [
1894
+ { id: "hf:moonshotai/Kimi-K3", name: "Kimi K3", enabled: true, category: "code", functionCall: true },
1895
+ { id: "hf:zai-org/GLM-5.3-Flash", name: "GLM-5.3 Flash", enabled: true, category: "code", functionCall: true },
1896
+ { id: "hf:zai-org/GLM-5.2", name: "GLM-5.2", enabled: true, category: "code", functionCall: true },
1897
+ { id: "hf:Qwen/Qwen3.8-27B", name: "Qwen3.8 27B", enabled: true, category: "code", functionCall: true },
1898
+ { id: "hf:openai/gpt-oss-120b", name: "gpt-oss-120b", enabled: true, category: "code", functionCall: true }
1899
+ ],
1900
+ description: "Synthetic \u6258\u7BA1\u5F00\u6E90\u6A21\u578B\u8BA2\u9605\uFF08OpenAI \u517C\u5BB9\u7AEF\u70B9\uFF09\u3002\u5BC6\u94A5\u7684 5 \u5C0F\u65F6\u8BF7\u6C42\u989D\u5EA6\u4E0E\u6BCF\u5468\u79EF\u5206\u4F1A\u81EA\u52A8\u663E\u793A\u5728\u5BC6\u94A5\u5217\u8868\u3002",
1901
+ icon: "synthetic",
1902
+ website: "https://synthetic.new",
1903
+ docsUrl: "https://dev.synthetic.new/docs/api/overview",
1904
+ isSystem: true,
1905
+ features: ["coding-plan"]
1906
+ };
1907
+
1728
1908
  // src/provider-presets/presets/tencent.json
1729
1909
  var tencent_default = {
1730
1910
  id: "tencent",
@@ -1919,6 +2099,35 @@ var together_default = {
1919
2099
  features: []
1920
2100
  };
1921
2101
 
2102
+ // src/provider-presets/presets/umans.json
2103
+ var umans_default = {
2104
+ id: "umans",
2105
+ presetId: "umans",
2106
+ name: "Umans AI Coding Plan",
2107
+ nameKey: "presetName.umans",
2108
+ apiFormat: "anthropic",
2109
+ api_base_url: "https://api.code.umans.ai",
2110
+ transformer: { use: ["anthropic"] },
2111
+ models: [
2112
+ "umans-coder",
2113
+ "umans-flash",
2114
+ "umans-glm-5.3",
2115
+ "umans-deepseek-v4-pro"
2116
+ ],
2117
+ modelConfigs: [
2118
+ { id: "umans-coder", name: "Umans Coder", enabled: true, category: "code", contextLength: 262144, functionCall: true, reasoning: true },
2119
+ { id: "umans-flash", name: "Umans Flash", enabled: true, category: "code", contextLength: 262144, functionCall: true },
2120
+ { id: "umans-glm-5.3", name: "Umans GLM-5.3", enabled: true, category: "code", contextLength: 262144, functionCall: true },
2121
+ { id: "umans-deepseek-v4-pro", name: "Umans DeepSeek V4 Pro", enabled: true, category: "code", contextLength: 262144, functionCall: true }
2122
+ ],
2123
+ description: "Umans AI Coding Plan\uFF08Anthropic Messages \u517C\u5BB9\u7AEF\u70B9\uFF09\u3002\u5BC6\u94A5\u7684\u6EDA\u52A8 5 \u5C0F\u65F6\u7528\u91CF\u4F1A\u81EA\u52A8\u663E\u793A\u5728\u5BC6\u94A5\u5217\u8868\u3002",
2124
+ icon: "umans",
2125
+ website: "https://umans.ai",
2126
+ docsUrl: "https://dev.umans.ai",
2127
+ isSystem: true,
2128
+ features: ["coding-plan"]
2129
+ };
2130
+
1922
2131
  // src/provider-presets/presets/volcengine.json
1923
2132
  var volcengine_default = {
1924
2133
  id: "volcengine",
@@ -2153,6 +2362,8 @@ var zhipu_default = {
2153
2362
  codingPlanBaseUrl: "https://api.z.ai/api/coding/paas/v4",
2154
2363
  modelsEndpoint: "https://api.z.ai/api/paas/v4/models",
2155
2364
  models: [
2365
+ "glm-5.3",
2366
+ "glm-5.3-flash",
2156
2367
  "glm-5.2",
2157
2368
  "glm-5",
2158
2369
  "glm-5.1",
@@ -2161,6 +2372,24 @@ var zhipu_default = {
2161
2372
  "glm-4.7"
2162
2373
  ],
2163
2374
  modelConfigs: [
2375
+ {
2376
+ id: "glm-5.3",
2377
+ name: "GLM-5.3",
2378
+ enabled: true,
2379
+ category: "chat",
2380
+ contextLength: 1048576,
2381
+ maxTokens: 131072,
2382
+ functionCall: true
2383
+ },
2384
+ {
2385
+ id: "glm-5.3-flash",
2386
+ name: "GLM-5.3 Flash",
2387
+ enabled: true,
2388
+ category: "chat",
2389
+ contextLength: 1048576,
2390
+ maxTokens: 131072,
2391
+ functionCall: true
2392
+ },
2164
2393
  {
2165
2394
  id: "glm-5.2",
2166
2395
  name: "GLM-5.2",
@@ -2239,6 +2468,8 @@ var zhipu_bigmodel_default = {
2239
2468
  codingPlanBaseUrl: "https://open.bigmodel.cn/api/coding/paas/v4",
2240
2469
  modelsEndpoint: "https://open.bigmodel.cn/api/paas/v4/models",
2241
2470
  models: [
2471
+ "glm-5.3",
2472
+ "glm-5.3-flash",
2242
2473
  "glm-5.2",
2243
2474
  "glm-5",
2244
2475
  "glm-5.1",
@@ -2247,6 +2478,24 @@ var zhipu_bigmodel_default = {
2247
2478
  "glm-4.7"
2248
2479
  ],
2249
2480
  modelConfigs: [
2481
+ {
2482
+ id: "glm-5.3",
2483
+ name: "GLM-5.3",
2484
+ enabled: true,
2485
+ category: "chat",
2486
+ contextLength: 1048576,
2487
+ maxTokens: 131072,
2488
+ functionCall: true
2489
+ },
2490
+ {
2491
+ id: "glm-5.3-flash",
2492
+ name: "GLM-5.3 Flash",
2493
+ enabled: true,
2494
+ category: "chat",
2495
+ contextLength: 1048576,
2496
+ maxTokens: 131072,
2497
+ functionCall: true
2498
+ },
2250
2499
  {
2251
2500
  id: "glm-5.2",
2252
2501
  name: "GLM-5.2",
@@ -2356,6 +2605,9 @@ var RAW_PRESETS_IN_ORDER = [
2356
2605
  mistral_default,
2357
2606
  together_default,
2358
2607
  perplexity_default,
2608
+ synthetic_default,
2609
+ umans_default,
2610
+ cline_pass_default,
2359
2611
  // Chinese cloud
2360
2612
  zhipu_default,
2361
2613
  zhipu_bigmodel_default,
@@ -2365,6 +2617,7 @@ var RAW_PRESETS_IN_ORDER = [
2365
2617
  tencent_default,
2366
2618
  tencent_anthropic_default,
2367
2619
  minimax_default,
2620
+ minimax_token_plan_default,
2368
2621
  baidu_default,
2369
2622
  kuaishou_default,
2370
2623
  mthreads_default,
@@ -2446,6 +2699,7 @@ var presetSchema = z.object({
2446
2699
  maxConcurrency: z.number().optional(),
2447
2700
  codingPlanBaseUrl: z.string().optional(),
2448
2701
  codingPlanSeparateKey: z.boolean().optional(),
2702
+ extraHeaders: z.record(z.string(), z.string()).optional(),
2449
2703
  features: z.array(z.string()).optional(),
2450
2704
  searchConfig: providerSearchConfigSchema.optional(),
2451
2705
  apiModes: z.array(apiModeSchema).optional(),
@@ -2666,9 +2920,77 @@ function describeUnknownError(value) {
2666
2920
  // src/subscription-model-catalog.ts
2667
2921
  var SUBSCRIPTION_MODEL_CATALOG = {
2668
2922
  claude: ["claude-haiku-4-5", "claude-sonnet-5", "claude-opus-5", "claude-fable-5"],
2669
- codex: ["gpt-5.6-luna", "gpt-5.6-terra", "gpt-5.6-sol"],
2923
+ codex: ["gpt-5.6-luna", "gpt-5.6-terra", "gpt-5.6-sol", "gpt-6-astra"],
2670
2924
  gemini: [],
2671
- opencodego: []
2925
+ opencodego: [],
2926
+ // Kimi Code's subscription catalog (the official CLI's built-ins + the
2927
+ // k2.6/k2.7-code coding models, small → large).
2928
+ kimi: ["kimi-k2.5", "kimi-k2.6", "kimi-k2.7-code", "kimi-k3", "kimi-for-coding", "kimi-for-coding-highspeed"],
2929
+ // SuperGrok's Responses-wire catalog (verified ids from the audit source,
2930
+ // small → large; the grok-build / composer models are plan-gated products).
2931
+ grok: [
2932
+ "grok-composer-2.5-fast",
2933
+ "grok-build-0.1",
2934
+ "grok-build",
2935
+ "grok-4.5",
2936
+ "grok-4.6",
2937
+ "grok-4.3",
2938
+ "grok-4.20-0309-non-reasoning",
2939
+ "grok-4.20-0309-reasoning",
2940
+ "grok-4.20-multi-agent-0309"
2941
+ ],
2942
+ // GitHub Copilot's mixed-wire catalog (verified ids from the audit source,
2943
+ // grouped by wire then small → large). The per-model wire each id rides is
2944
+ // mapped in `@omnicross/subscriptions`' copilot module (this list only feeds
2945
+ // the picker).
2946
+ copilot: [
2947
+ // anthropic-messages face (Claude family)
2948
+ "claude-haiku-4.5",
2949
+ "claude-sonnet-4.5",
2950
+ "claude-sonnet-4.6",
2951
+ "claude-opus-4.5",
2952
+ "claude-opus-4.6",
2953
+ "claude-opus-4.7",
2954
+ "claude-opus-4.8",
2955
+ "claude-sonnet-5",
2956
+ "claude-opus-5",
2957
+ "claude-fable-5",
2958
+ // openai-chat face
2959
+ "gpt-4o",
2960
+ "gpt-4.1",
2961
+ "grok-code-fast-1",
2962
+ "gemini-2.5-pro",
2963
+ "gemini-3.5-flash",
2964
+ "gemini-3-flash-preview",
2965
+ "gemini-3-pro-preview",
2966
+ "gemini-3.6-flash",
2967
+ "gemini-3.7-flash",
2968
+ "gemini-3.1-pro-preview",
2969
+ "raptor-mini",
2970
+ "kimi-k2.7-code",
2971
+ "kimi-k3",
2972
+ // openai-responses face
2973
+ "mai-code-1-flash-picker",
2974
+ "mai-code-1.1-flash",
2975
+ "gpt-5-mini",
2976
+ "gpt-5.1",
2977
+ "gpt-5.1-codex-mini",
2978
+ "gpt-5.1-codex",
2979
+ "gpt-5.1-codex-max",
2980
+ "gpt-5",
2981
+ "gpt-5.2",
2982
+ "gpt-5.2-codex",
2983
+ "gpt-5.3-codex",
2984
+ "gpt-5.4-mini",
2985
+ "gpt-5.4-nano",
2986
+ "gpt-5.4",
2987
+ "gpt-5.5",
2988
+ "gpt-5.6-luna",
2989
+ "gpt-5.6-terra",
2990
+ "gpt-5.6-sol",
2991
+ "grok-4.5",
2992
+ "grok-4.6"
2993
+ ]
2672
2994
  };
2673
2995
  function subscriptionProviderHasCatalog(providerId) {
2674
2996
  return SUBSCRIPTION_MODEL_CATALOG[providerId].length > 0;
@@ -123,6 +123,14 @@ interface PresetProviderTemplate extends ProviderTemplate {
123
123
  codingPlanBaseUrl?: string;
124
124
  /** Whether Coding Plan requires a separate API Key */
125
125
  codingPlanSeparateKey?: boolean;
126
+ /**
127
+ * Static extra request headers seeded onto every provider row created from
128
+ * this preset and merged into every BYO request (identity/attribution
129
+ * contracts some gateways gate on). Values may carry `{{platform}}`,
130
+ * resolved to `process.platform` at request time. Auth headers are rejected
131
+ * by the config-layer guard (credentials come only from the key fields).
132
+ */
133
+ extraHeaders?: Record<string, string>;
126
134
  /** Feature tags for display */
127
135
  features?: string[];
128
136
  /** Search capability configuration for this provider */
@@ -294,6 +302,16 @@ interface LLMProvider {
294
302
  * `UseBearer` transformer option independently).
295
303
  */
296
304
  useBearer?: boolean;
305
+ /**
306
+ * Static extra request headers merged into EVERY request for this provider
307
+ * (identity/attribution contracts some gateways gate on — e.g. the Cline
308
+ * client-identity set). Values may carry the `{{platform}}` placeholder,
309
+ * resolved to `process.platform` at request time. Auth headers
310
+ * (`Authorization` / `x-api-key` / `x-goog-api-key` / `api-key` / `cookie`)
311
+ * and `Content-Type`/`Content-Length` are rejected at the config layer —
312
+ * credentials come only from the key fields.
313
+ */
314
+ extraHeaders?: Record<string, string>;
297
315
  transformer?: TransformerConfig;
298
316
  rerouterEnabled?: boolean;
299
317
  icon?: string;
@@ -123,6 +123,14 @@ interface PresetProviderTemplate extends ProviderTemplate {
123
123
  codingPlanBaseUrl?: string;
124
124
  /** Whether Coding Plan requires a separate API Key */
125
125
  codingPlanSeparateKey?: boolean;
126
+ /**
127
+ * Static extra request headers seeded onto every provider row created from
128
+ * this preset and merged into every BYO request (identity/attribution
129
+ * contracts some gateways gate on). Values may carry `{{platform}}`,
130
+ * resolved to `process.platform` at request time. Auth headers are rejected
131
+ * by the config-layer guard (credentials come only from the key fields).
132
+ */
133
+ extraHeaders?: Record<string, string>;
126
134
  /** Feature tags for display */
127
135
  features?: string[];
128
136
  /** Search capability configuration for this provider */
@@ -294,6 +302,16 @@ interface LLMProvider {
294
302
  * `UseBearer` transformer option independently).
295
303
  */
296
304
  useBearer?: boolean;
305
+ /**
306
+ * Static extra request headers merged into EVERY request for this provider
307
+ * (identity/attribution contracts some gateways gate on — e.g. the Cline
308
+ * client-identity set). Values may carry the `{{platform}}` placeholder,
309
+ * resolved to `process.platform` at request time. Auth headers
310
+ * (`Authorization` / `x-api-key` / `x-goog-api-key` / `api-key` / `cookie`)
311
+ * and `Content-Type`/`Content-Length` are rejected at the config layer —
312
+ * credentials come only from the key fields.
313
+ */
314
+ extraHeaders?: Record<string, string>;
297
315
  transformer?: TransformerConfig;
298
316
  rerouterEnabled?: boolean;
299
317
  icon?: string;
@@ -1,2 +1,2 @@
1
1
  import './thinking-CBWSLel8.cjs';
2
- export { a as AgentDefaultModels, b as ApiFormat, c as ApiKeyEntry, C as ChatApiFormat, g as CompletionSettings, G as GlobalModelParameters, L as LLMProvider, M as ModelConfig, h as ModelGroup, i as ModelParameter, j as ModelRef, O as OpenRouterDataCollection, k as OpenRouterMaxPrice, l as OpenRouterProviderRouting, m as OpenRouterProviderSort, n as OpenRouterQuantization, o as ProviderApiType, r as ProviderTemplate, T as TransformerConfig, s as TransformerEntry } from './llm-config-DeWNx1ig.cjs';
2
+ export { a as AgentDefaultModels, b as ApiFormat, c as ApiKeyEntry, C as ChatApiFormat, g as CompletionSettings, G as GlobalModelParameters, L as LLMProvider, M as ModelConfig, h as ModelGroup, i as ModelParameter, j as ModelRef, O as OpenRouterDataCollection, k as OpenRouterMaxPrice, l as OpenRouterProviderRouting, m as OpenRouterProviderSort, n as OpenRouterQuantization, o as ProviderApiType, r as ProviderTemplate, T as TransformerConfig, s as TransformerEntry } from './llm-config-CEZvId7g.cjs';
@@ -1,2 +1,2 @@
1
1
  import './thinking-CBWSLel8.js';
2
- export { a as AgentDefaultModels, b as ApiFormat, c as ApiKeyEntry, C as ChatApiFormat, g as CompletionSettings, G as GlobalModelParameters, L as LLMProvider, M as ModelConfig, h as ModelGroup, i as ModelParameter, j as ModelRef, O as OpenRouterDataCollection, k as OpenRouterMaxPrice, l as OpenRouterProviderRouting, m as OpenRouterProviderSort, n as OpenRouterQuantization, o as ProviderApiType, r as ProviderTemplate, T as TransformerConfig, s as TransformerEntry } from './llm-config-CKOaFFdy.js';
2
+ export { a as AgentDefaultModels, b as ApiFormat, c as ApiKeyEntry, C as ChatApiFormat, g as CompletionSettings, G as GlobalModelParameters, L as LLMProvider, M as ModelConfig, h as ModelGroup, i as ModelParameter, j as ModelRef, O as OpenRouterDataCollection, k as OpenRouterMaxPrice, l as OpenRouterProviderRouting, m as OpenRouterProviderSort, n as OpenRouterQuantization, o as ProviderApiType, r as ProviderTemplate, T as TransformerConfig, s as TransformerEntry } from './llm-config-Dxw7F1_U.js';