@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/account-tokens-types.d.cts +76 -1
- package/dist/account-tokens-types.d.ts +76 -1
- package/dist/canonical-models.cjs +49 -4
- package/dist/canonical-models.d.cts +1 -1
- package/dist/canonical-models.d.ts +1 -1
- package/dist/canonical-models.js +49 -4
- package/dist/endpoint-resolver.d.cts +1 -1
- package/dist/endpoint-resolver.d.ts +1 -1
- package/dist/index.cjs +328 -6
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +328 -6
- package/dist/{llm-config-DeWNx1ig.d.cts → llm-config-CEZvId7g.d.cts} +18 -0
- package/dist/{llm-config-CKOaFFdy.d.ts → llm-config-Dxw7F1_U.d.ts} +18 -0
- package/dist/llm-config.d.cts +1 -1
- package/dist/llm-config.d.ts +1 -1
- package/dist/provider-presets/index.cjs +209 -0
- package/dist/provider-presets/index.d.cts +2 -2
- package/dist/provider-presets/index.d.ts +2 -2
- package/dist/provider-presets/index.js +209 -0
- package/dist/subscription-model-catalog.cjs +70 -2
- package/dist/subscription-model-catalog.d.cts +1 -1
- package/dist/subscription-model-catalog.d.ts +1 -1
- package/dist/subscription-model-catalog.js +70 -2
- package/dist/subscription-types.d.cts +1 -1
- package/dist/subscription-types.d.ts +1 -1
- package/dist/thinking-config.cjs +49 -4
- package/dist/thinking-config.d.cts +1 -1
- package/dist/thinking-config.d.ts +1 -1
- package/dist/thinking-config.js +49 -4
- package/package.json +1 -1
|
@@ -26,9 +26,77 @@ __export(subscription_model_catalog_exports, {
|
|
|
26
26
|
module.exports = __toCommonJS(subscription_model_catalog_exports);
|
|
27
27
|
var SUBSCRIPTION_MODEL_CATALOG = {
|
|
28
28
|
claude: ["claude-haiku-4-5", "claude-sonnet-5", "claude-opus-5", "claude-fable-5"],
|
|
29
|
-
codex: ["gpt-5.6-luna", "gpt-5.6-terra", "gpt-5.6-sol"],
|
|
29
|
+
codex: ["gpt-5.6-luna", "gpt-5.6-terra", "gpt-5.6-sol", "gpt-6-astra"],
|
|
30
30
|
gemini: [],
|
|
31
|
-
opencodego: []
|
|
31
|
+
opencodego: [],
|
|
32
|
+
// Kimi Code's subscription catalog (the official CLI's built-ins + the
|
|
33
|
+
// k2.6/k2.7-code coding models, small → large).
|
|
34
|
+
kimi: ["kimi-k2.5", "kimi-k2.6", "kimi-k2.7-code", "kimi-k3", "kimi-for-coding", "kimi-for-coding-highspeed"],
|
|
35
|
+
// SuperGrok's Responses-wire catalog (verified ids from the audit source,
|
|
36
|
+
// small → large; the grok-build / composer models are plan-gated products).
|
|
37
|
+
grok: [
|
|
38
|
+
"grok-composer-2.5-fast",
|
|
39
|
+
"grok-build-0.1",
|
|
40
|
+
"grok-build",
|
|
41
|
+
"grok-4.5",
|
|
42
|
+
"grok-4.6",
|
|
43
|
+
"grok-4.3",
|
|
44
|
+
"grok-4.20-0309-non-reasoning",
|
|
45
|
+
"grok-4.20-0309-reasoning",
|
|
46
|
+
"grok-4.20-multi-agent-0309"
|
|
47
|
+
],
|
|
48
|
+
// GitHub Copilot's mixed-wire catalog (verified ids from the audit source,
|
|
49
|
+
// grouped by wire then small → large). The per-model wire each id rides is
|
|
50
|
+
// mapped in `@omnicross/subscriptions`' copilot module (this list only feeds
|
|
51
|
+
// the picker).
|
|
52
|
+
copilot: [
|
|
53
|
+
// anthropic-messages face (Claude family)
|
|
54
|
+
"claude-haiku-4.5",
|
|
55
|
+
"claude-sonnet-4.5",
|
|
56
|
+
"claude-sonnet-4.6",
|
|
57
|
+
"claude-opus-4.5",
|
|
58
|
+
"claude-opus-4.6",
|
|
59
|
+
"claude-opus-4.7",
|
|
60
|
+
"claude-opus-4.8",
|
|
61
|
+
"claude-sonnet-5",
|
|
62
|
+
"claude-opus-5",
|
|
63
|
+
"claude-fable-5",
|
|
64
|
+
// openai-chat face
|
|
65
|
+
"gpt-4o",
|
|
66
|
+
"gpt-4.1",
|
|
67
|
+
"grok-code-fast-1",
|
|
68
|
+
"gemini-2.5-pro",
|
|
69
|
+
"gemini-3.5-flash",
|
|
70
|
+
"gemini-3-flash-preview",
|
|
71
|
+
"gemini-3-pro-preview",
|
|
72
|
+
"gemini-3.6-flash",
|
|
73
|
+
"gemini-3.7-flash",
|
|
74
|
+
"gemini-3.1-pro-preview",
|
|
75
|
+
"raptor-mini",
|
|
76
|
+
"kimi-k2.7-code",
|
|
77
|
+
"kimi-k3",
|
|
78
|
+
// openai-responses face
|
|
79
|
+
"mai-code-1-flash-picker",
|
|
80
|
+
"mai-code-1.1-flash",
|
|
81
|
+
"gpt-5-mini",
|
|
82
|
+
"gpt-5.1",
|
|
83
|
+
"gpt-5.1-codex-mini",
|
|
84
|
+
"gpt-5.1-codex",
|
|
85
|
+
"gpt-5.1-codex-max",
|
|
86
|
+
"gpt-5",
|
|
87
|
+
"gpt-5.2",
|
|
88
|
+
"gpt-5.2-codex",
|
|
89
|
+
"gpt-5.3-codex",
|
|
90
|
+
"gpt-5.4-mini",
|
|
91
|
+
"gpt-5.4-nano",
|
|
92
|
+
"gpt-5.4",
|
|
93
|
+
"gpt-5.5",
|
|
94
|
+
"gpt-5.6-luna",
|
|
95
|
+
"gpt-5.6-terra",
|
|
96
|
+
"gpt-5.6-sol",
|
|
97
|
+
"grok-4.5",
|
|
98
|
+
"grok-4.6"
|
|
99
|
+
]
|
|
32
100
|
};
|
|
33
101
|
function subscriptionProviderHasCatalog(providerId) {
|
|
34
102
|
return SUBSCRIPTION_MODEL_CATALOG[providerId].length > 0;
|
|
@@ -25,7 +25,7 @@ import { SubscriptionProviderId } from './subscription-types.cjs';
|
|
|
25
25
|
* The model ids each subscription provider serves, small → large.
|
|
26
26
|
*
|
|
27
27
|
* - claude: `claude-haiku-4-5` < `claude-sonnet-5` < `claude-opus-5` < `claude-fable-5`
|
|
28
|
-
* - codex: `gpt-5.6-luna` (nano) < `gpt-5.6-terra` (mini) < `gpt-5.6-sol` (flagship)
|
|
28
|
+
* - codex: `gpt-5.6-luna` (nano) < `gpt-5.6-terra` (mini) < `gpt-5.6-sol` (flagship) < `gpt-6-astra`
|
|
29
29
|
*/
|
|
30
30
|
declare const SUBSCRIPTION_MODEL_CATALOG: Record<SubscriptionProviderId, string[]>;
|
|
31
31
|
/** Whether a provider has any cataloged models (drives UI model-picker gating). */
|
|
@@ -25,7 +25,7 @@ import { SubscriptionProviderId } from './subscription-types.js';
|
|
|
25
25
|
* The model ids each subscription provider serves, small → large.
|
|
26
26
|
*
|
|
27
27
|
* - claude: `claude-haiku-4-5` < `claude-sonnet-5` < `claude-opus-5` < `claude-fable-5`
|
|
28
|
-
* - codex: `gpt-5.6-luna` (nano) < `gpt-5.6-terra` (mini) < `gpt-5.6-sol` (flagship)
|
|
28
|
+
* - codex: `gpt-5.6-luna` (nano) < `gpt-5.6-terra` (mini) < `gpt-5.6-sol` (flagship) < `gpt-6-astra`
|
|
29
29
|
*/
|
|
30
30
|
declare const SUBSCRIPTION_MODEL_CATALOG: Record<SubscriptionProviderId, string[]>;
|
|
31
31
|
/** Whether a provider has any cataloged models (drives UI model-picker gating). */
|
|
@@ -1,9 +1,77 @@
|
|
|
1
1
|
// src/subscription-model-catalog.ts
|
|
2
2
|
var SUBSCRIPTION_MODEL_CATALOG = {
|
|
3
3
|
claude: ["claude-haiku-4-5", "claude-sonnet-5", "claude-opus-5", "claude-fable-5"],
|
|
4
|
-
codex: ["gpt-5.6-luna", "gpt-5.6-terra", "gpt-5.6-sol"],
|
|
4
|
+
codex: ["gpt-5.6-luna", "gpt-5.6-terra", "gpt-5.6-sol", "gpt-6-astra"],
|
|
5
5
|
gemini: [],
|
|
6
|
-
opencodego: []
|
|
6
|
+
opencodego: [],
|
|
7
|
+
// Kimi Code's subscription catalog (the official CLI's built-ins + the
|
|
8
|
+
// k2.6/k2.7-code coding models, small → large).
|
|
9
|
+
kimi: ["kimi-k2.5", "kimi-k2.6", "kimi-k2.7-code", "kimi-k3", "kimi-for-coding", "kimi-for-coding-highspeed"],
|
|
10
|
+
// SuperGrok's Responses-wire catalog (verified ids from the audit source,
|
|
11
|
+
// small → large; the grok-build / composer models are plan-gated products).
|
|
12
|
+
grok: [
|
|
13
|
+
"grok-composer-2.5-fast",
|
|
14
|
+
"grok-build-0.1",
|
|
15
|
+
"grok-build",
|
|
16
|
+
"grok-4.5",
|
|
17
|
+
"grok-4.6",
|
|
18
|
+
"grok-4.3",
|
|
19
|
+
"grok-4.20-0309-non-reasoning",
|
|
20
|
+
"grok-4.20-0309-reasoning",
|
|
21
|
+
"grok-4.20-multi-agent-0309"
|
|
22
|
+
],
|
|
23
|
+
// GitHub Copilot's mixed-wire catalog (verified ids from the audit source,
|
|
24
|
+
// grouped by wire then small → large). The per-model wire each id rides is
|
|
25
|
+
// mapped in `@omnicross/subscriptions`' copilot module (this list only feeds
|
|
26
|
+
// the picker).
|
|
27
|
+
copilot: [
|
|
28
|
+
// anthropic-messages face (Claude family)
|
|
29
|
+
"claude-haiku-4.5",
|
|
30
|
+
"claude-sonnet-4.5",
|
|
31
|
+
"claude-sonnet-4.6",
|
|
32
|
+
"claude-opus-4.5",
|
|
33
|
+
"claude-opus-4.6",
|
|
34
|
+
"claude-opus-4.7",
|
|
35
|
+
"claude-opus-4.8",
|
|
36
|
+
"claude-sonnet-5",
|
|
37
|
+
"claude-opus-5",
|
|
38
|
+
"claude-fable-5",
|
|
39
|
+
// openai-chat face
|
|
40
|
+
"gpt-4o",
|
|
41
|
+
"gpt-4.1",
|
|
42
|
+
"grok-code-fast-1",
|
|
43
|
+
"gemini-2.5-pro",
|
|
44
|
+
"gemini-3.5-flash",
|
|
45
|
+
"gemini-3-flash-preview",
|
|
46
|
+
"gemini-3-pro-preview",
|
|
47
|
+
"gemini-3.6-flash",
|
|
48
|
+
"gemini-3.7-flash",
|
|
49
|
+
"gemini-3.1-pro-preview",
|
|
50
|
+
"raptor-mini",
|
|
51
|
+
"kimi-k2.7-code",
|
|
52
|
+
"kimi-k3",
|
|
53
|
+
// openai-responses face
|
|
54
|
+
"mai-code-1-flash-picker",
|
|
55
|
+
"mai-code-1.1-flash",
|
|
56
|
+
"gpt-5-mini",
|
|
57
|
+
"gpt-5.1",
|
|
58
|
+
"gpt-5.1-codex-mini",
|
|
59
|
+
"gpt-5.1-codex",
|
|
60
|
+
"gpt-5.1-codex-max",
|
|
61
|
+
"gpt-5",
|
|
62
|
+
"gpt-5.2",
|
|
63
|
+
"gpt-5.2-codex",
|
|
64
|
+
"gpt-5.3-codex",
|
|
65
|
+
"gpt-5.4-mini",
|
|
66
|
+
"gpt-5.4-nano",
|
|
67
|
+
"gpt-5.4",
|
|
68
|
+
"gpt-5.5",
|
|
69
|
+
"gpt-5.6-luna",
|
|
70
|
+
"gpt-5.6-terra",
|
|
71
|
+
"gpt-5.6-sol",
|
|
72
|
+
"grok-4.5",
|
|
73
|
+
"grok-4.6"
|
|
74
|
+
]
|
|
7
75
|
};
|
|
8
76
|
function subscriptionProviderHasCatalog(providerId) {
|
|
9
77
|
return SUBSCRIPTION_MODEL_CATALOG[providerId].length > 0;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* helpers the `@omnicross/*` packages consume.
|
|
11
11
|
*/
|
|
12
12
|
/** Stable IDs for built-in subscription providers. */
|
|
13
|
-
type SubscriptionProviderId = 'claude' | 'codex' | 'gemini' | 'opencodego';
|
|
13
|
+
type SubscriptionProviderId = 'claude' | 'codex' | 'gemini' | 'opencodego' | 'kimi' | 'grok' | 'copilot';
|
|
14
14
|
/**
|
|
15
15
|
* OpenCodeGo routing scenarios used for model selection and fallback.
|
|
16
16
|
*
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* helpers the `@omnicross/*` packages consume.
|
|
11
11
|
*/
|
|
12
12
|
/** Stable IDs for built-in subscription providers. */
|
|
13
|
-
type SubscriptionProviderId = 'claude' | 'codex' | 'gemini' | 'opencodego';
|
|
13
|
+
type SubscriptionProviderId = 'claude' | 'codex' | 'gemini' | 'opencodego' | 'kimi' | 'grok' | 'copilot';
|
|
14
14
|
/**
|
|
15
15
|
* OpenCodeGo routing scenarios used for model selection and fallback.
|
|
16
16
|
*
|
package/dist/thinking-config.cjs
CHANGED
|
@@ -67,19 +67,56 @@ var ANTHROPIC_MODELS = {
|
|
|
67
67
|
"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 } },
|
|
68
68
|
"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 } },
|
|
69
69
|
"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 } },
|
|
70
|
-
"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 } }
|
|
70
|
+
"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 } },
|
|
71
|
+
// Copilot-served variants (same model family on the Copilot API; context
|
|
72
|
+
// windows per the Copilot catalog where it diverges from the family default).
|
|
73
|
+
"claude-opus-4-5": { category: "reasoning", contextLength: 2e5, maxTokens: 128e3, vision: true, functionCall: true, reasoning: true },
|
|
74
|
+
"claude-sonnet-4-5": { category: "chat", contextLength: 2e5, maxTokens: 64e3, vision: true, functionCall: true, reasoning: true },
|
|
75
|
+
"claude-sonnet-4": { category: "chat", contextLength: 216e3, maxTokens: 64e3, vision: true, functionCall: true, reasoning: true }
|
|
71
76
|
};
|
|
72
77
|
var GEMINI_MODELS = {
|
|
73
78
|
"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 } },
|
|
74
79
|
"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 } },
|
|
75
|
-
"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 } }
|
|
80
|
+
"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 } },
|
|
81
|
+
// Copilot-served variants (chat-completions wire on the Copilot API).
|
|
82
|
+
"gemini-3.1-pro-preview": { category: "chat", contextLength: 1e6, maxTokens: 65536, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["low", "medium", "high"] },
|
|
83
|
+
"gemini-3.6-flash": { category: "chat", contextLength: 1e6, maxTokens: 65536, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["none", "low", "medium", "high"] },
|
|
84
|
+
"gemini-3.7-flash": { category: "chat", contextLength: 1e6, maxTokens: 65536, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["none", "low", "medium", "high"] },
|
|
85
|
+
"gemini-3-pro-preview": { category: "chat", contextLength: 128e3, maxTokens: 65536, vision: true, functionCall: true, reasoning: true },
|
|
86
|
+
"gemini-3-flash-preview": { category: "chat", contextLength: 128e3, maxTokens: 65536, vision: true, functionCall: true, reasoning: true },
|
|
87
|
+
"gemini-2.5-pro": { category: "chat", contextLength: 128e3, maxTokens: 65536, vision: true, functionCall: true, reasoning: true }
|
|
76
88
|
};
|
|
77
89
|
var GROK_MODELS = {
|
|
78
90
|
"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 } },
|
|
79
91
|
"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 } },
|
|
80
92
|
"grok-4.20": { category: "chat", contextLength: 131072, maxTokens: 32768, vision: true, functionCall: true },
|
|
81
93
|
"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 } },
|
|
82
|
-
"grok-4.20-multi-agent": { category: "reasoning", contextLength: 131072, maxTokens: 32768, reasoning: true, thinkingLevels: ["none", "low", "medium", "high"], thinkingTokenLimit: { min: 0, max: 32768 } }
|
|
94
|
+
"grok-4.20-multi-agent": { category: "reasoning", contextLength: 131072, maxTokens: 32768, reasoning: true, thinkingLevels: ["none", "low", "medium", "high"], thinkingTokenLimit: { min: 0, max: 32768 } },
|
|
95
|
+
// SuperGrok subscription ids (Responses wire). Upstream context/output caps
|
|
96
|
+
// per the audit source; the effort-taking models accept low/medium/high only
|
|
97
|
+
// (minimal→low, xhigh/max→high), and the omit-effort models carry
|
|
98
|
+
// `thinkingLevels: ['none']` so the effort negotiation drops the
|
|
99
|
+
// `reasoning.effort` field entirely (sending it upstream is a 400).
|
|
100
|
+
"grok-4.6": { category: "chat", contextLength: 5e5, maxTokens: 5e5, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["low", "medium", "high"], thinkingTokenLimit: { min: 0, max: 32768 } },
|
|
101
|
+
"grok-4.20-0309-non-reasoning": { category: "chat", contextLength: 2e6, maxTokens: 2e6, vision: true, functionCall: true, thinkingLevels: ["none"] },
|
|
102
|
+
"grok-4.20-0309-reasoning": { category: "reasoning", contextLength: 2e6, maxTokens: 2e6, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["none"] },
|
|
103
|
+
"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 } },
|
|
104
|
+
"grok-build": { category: "reasoning", contextLength: 512e3, maxTokens: 512e3, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["none"] },
|
|
105
|
+
"grok-build-0.1": { category: "reasoning", contextLength: 256e3, maxTokens: 256e3, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["none"] },
|
|
106
|
+
"grok-composer-2.5-fast": { category: "chat", contextLength: 2e5, maxTokens: 2e5, functionCall: true, thinkingLevels: ["none"] }
|
|
107
|
+
};
|
|
108
|
+
var COPILOT_MODELS = {
|
|
109
|
+
"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 } },
|
|
110
|
+
"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 } },
|
|
111
|
+
"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 } },
|
|
112
|
+
"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 } },
|
|
113
|
+
"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 } },
|
|
114
|
+
"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 } },
|
|
115
|
+
"gpt-5.4-nano": { category: "reasoning", contextLength: 4e5, maxTokens: 128e3, functionCall: true, reasoning: true, thinkingLevels: ["none", "low", "medium", "high"], thinkingTokenLimit: { min: 0, max: 128e3 } },
|
|
116
|
+
"grok-code-fast-1": { category: "code", contextLength: 192e3, maxTokens: 32768, functionCall: true, reasoning: true },
|
|
117
|
+
"raptor-mini": { category: "reasoning", contextLength: 4e5, maxTokens: 65536, functionCall: true, reasoning: true, vision: true },
|
|
118
|
+
"mai-code-1-flash-picker": { category: "code", contextLength: 256e3, maxTokens: 65536, functionCall: true, reasoning: true, thinkingLevels: ["none", "low", "medium", "high"] },
|
|
119
|
+
"mai-code-1.1-flash": { category: "code", contextLength: 256e3, maxTokens: 65536, functionCall: true, reasoning: true, vision: true, thinkingLevels: ["none", "low", "medium", "high"] }
|
|
83
120
|
};
|
|
84
121
|
var DEEPSEEK_MODELS = {
|
|
85
122
|
"deepseek-v4-flash": { category: "chat", contextLength: 1e6, maxTokens: 384e3, functionCall: true, reasoning: true, thinkingLevels: ["none", "high", "max"], thinkingTokenLimit: { min: 0, max: 32768 } },
|
|
@@ -89,6 +126,8 @@ var DEEPSEEK_MODELS = {
|
|
|
89
126
|
"deepseek-r1": { category: "reasoning", contextLength: 64e3, maxTokens: 8192, reasoning: true, thinkingTokenLimit: { min: 0, max: 32768 } }
|
|
90
127
|
};
|
|
91
128
|
var ZHIPU_MODELS = {
|
|
129
|
+
"glm-5.3": { category: "chat", contextLength: 1048576, maxTokens: 131072, functionCall: true },
|
|
130
|
+
"glm-5.3-flash": { category: "chat", contextLength: 1048576, maxTokens: 131072, functionCall: true },
|
|
92
131
|
"glm-5.2": { category: "chat", contextLength: 1048576, maxTokens: 131072, functionCall: true },
|
|
93
132
|
"glm-5": { category: "chat", contextLength: 2e5, maxTokens: 128e3, functionCall: true },
|
|
94
133
|
"glm-5.1": { category: "chat", contextLength: 2e5, maxTokens: 128e3, functionCall: true },
|
|
@@ -123,10 +162,15 @@ var TENCENT_HUNYUAN_MODELS = {
|
|
|
123
162
|
"hunyuan-turbos": { category: "chat", functionCall: true }
|
|
124
163
|
};
|
|
125
164
|
var MINIMAX_MODELS = {
|
|
165
|
+
"minimax-m3": { category: "code", contextLength: 204800, functionCall: true, reasoning: true },
|
|
166
|
+
"minimax-m2.7": { category: "code", contextLength: 204800, functionCall: true },
|
|
167
|
+
"minimax-m2.7-highspeed": { category: "code", contextLength: 204800, functionCall: true },
|
|
126
168
|
"minimax-m2.5": { category: "code", contextLength: 204800, functionCall: true },
|
|
127
169
|
"minimax-m2.5-highspeed": { category: "code", contextLength: 204800, functionCall: true },
|
|
170
|
+
"minimax-m2.5-lightning": { category: "code", contextLength: 204800, functionCall: true },
|
|
128
171
|
"minimax-m2.1": { category: "code", contextLength: 204800, functionCall: true },
|
|
129
|
-
"minimax-m2.1-
|
|
172
|
+
"minimax-m2.1-lightning": { category: "code", contextLength: 204800, functionCall: true },
|
|
173
|
+
"minimax-m2": { category: "code", contextLength: 204800, functionCall: true }
|
|
130
174
|
};
|
|
131
175
|
var XIAOMI_MIMO_CANONICAL = {
|
|
132
176
|
"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 } },
|
|
@@ -168,6 +212,7 @@ var VENDOR_GROUPS = [
|
|
|
168
212
|
{ name: "ANTHROPIC_MODELS", entries: ANTHROPIC_MODELS },
|
|
169
213
|
{ name: "GEMINI_MODELS", entries: GEMINI_MODELS },
|
|
170
214
|
{ name: "GROK_MODELS", entries: GROK_MODELS },
|
|
215
|
+
{ name: "COPILOT_MODELS", entries: COPILOT_MODELS },
|
|
171
216
|
{ name: "DEEPSEEK_MODELS", entries: DEEPSEEK_MODELS },
|
|
172
217
|
{ name: "ZHIPU_MODELS", entries: ZHIPU_MODELS },
|
|
173
218
|
{ name: "KIMI_MODELS", entries: KIMI_MODELS },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { T as ThinkLevel } from './thinking-CBWSLel8.cjs';
|
|
2
|
-
import { M as ModelConfig } from './llm-config-
|
|
2
|
+
import { M as ModelConfig } from './llm-config-CEZvId7g.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* thinking-config — dependency-light thinking-budget / reasoning-effort helpers.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { T as ThinkLevel } from './thinking-CBWSLel8.js';
|
|
2
|
-
import { M as ModelConfig } from './llm-config-
|
|
2
|
+
import { M as ModelConfig } from './llm-config-Dxw7F1_U.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* thinking-config — dependency-light thinking-budget / reasoning-effort helpers.
|
package/dist/thinking-config.js
CHANGED
|
@@ -26,19 +26,56 @@ var ANTHROPIC_MODELS = {
|
|
|
26
26
|
"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 } },
|
|
27
27
|
"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 } },
|
|
28
28
|
"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 } },
|
|
29
|
-
"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 } }
|
|
29
|
+
"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 } },
|
|
30
|
+
// Copilot-served variants (same model family on the Copilot API; context
|
|
31
|
+
// windows per the Copilot catalog where it diverges from the family default).
|
|
32
|
+
"claude-opus-4-5": { category: "reasoning", contextLength: 2e5, maxTokens: 128e3, vision: true, functionCall: true, reasoning: true },
|
|
33
|
+
"claude-sonnet-4-5": { category: "chat", contextLength: 2e5, maxTokens: 64e3, vision: true, functionCall: true, reasoning: true },
|
|
34
|
+
"claude-sonnet-4": { category: "chat", contextLength: 216e3, maxTokens: 64e3, vision: true, functionCall: true, reasoning: true }
|
|
30
35
|
};
|
|
31
36
|
var GEMINI_MODELS = {
|
|
32
37
|
"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 } },
|
|
33
38
|
"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 } },
|
|
34
|
-
"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 } }
|
|
39
|
+
"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 } },
|
|
40
|
+
// Copilot-served variants (chat-completions wire on the Copilot API).
|
|
41
|
+
"gemini-3.1-pro-preview": { category: "chat", contextLength: 1e6, maxTokens: 65536, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["low", "medium", "high"] },
|
|
42
|
+
"gemini-3.6-flash": { category: "chat", contextLength: 1e6, maxTokens: 65536, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["none", "low", "medium", "high"] },
|
|
43
|
+
"gemini-3.7-flash": { category: "chat", contextLength: 1e6, maxTokens: 65536, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["none", "low", "medium", "high"] },
|
|
44
|
+
"gemini-3-pro-preview": { category: "chat", contextLength: 128e3, maxTokens: 65536, vision: true, functionCall: true, reasoning: true },
|
|
45
|
+
"gemini-3-flash-preview": { category: "chat", contextLength: 128e3, maxTokens: 65536, vision: true, functionCall: true, reasoning: true },
|
|
46
|
+
"gemini-2.5-pro": { category: "chat", contextLength: 128e3, maxTokens: 65536, vision: true, functionCall: true, reasoning: true }
|
|
35
47
|
};
|
|
36
48
|
var GROK_MODELS = {
|
|
37
49
|
"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 } },
|
|
38
50
|
"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 } },
|
|
39
51
|
"grok-4.20": { category: "chat", contextLength: 131072, maxTokens: 32768, vision: true, functionCall: true },
|
|
40
52
|
"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 } },
|
|
41
|
-
"grok-4.20-multi-agent": { category: "reasoning", contextLength: 131072, maxTokens: 32768, reasoning: true, thinkingLevels: ["none", "low", "medium", "high"], thinkingTokenLimit: { min: 0, max: 32768 } }
|
|
53
|
+
"grok-4.20-multi-agent": { category: "reasoning", contextLength: 131072, maxTokens: 32768, reasoning: true, thinkingLevels: ["none", "low", "medium", "high"], thinkingTokenLimit: { min: 0, max: 32768 } },
|
|
54
|
+
// SuperGrok subscription ids (Responses wire). Upstream context/output caps
|
|
55
|
+
// per the audit source; the effort-taking models accept low/medium/high only
|
|
56
|
+
// (minimal→low, xhigh/max→high), and the omit-effort models carry
|
|
57
|
+
// `thinkingLevels: ['none']` so the effort negotiation drops the
|
|
58
|
+
// `reasoning.effort` field entirely (sending it upstream is a 400).
|
|
59
|
+
"grok-4.6": { category: "chat", contextLength: 5e5, maxTokens: 5e5, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["low", "medium", "high"], thinkingTokenLimit: { min: 0, max: 32768 } },
|
|
60
|
+
"grok-4.20-0309-non-reasoning": { category: "chat", contextLength: 2e6, maxTokens: 2e6, vision: true, functionCall: true, thinkingLevels: ["none"] },
|
|
61
|
+
"grok-4.20-0309-reasoning": { category: "reasoning", contextLength: 2e6, maxTokens: 2e6, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["none"] },
|
|
62
|
+
"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 } },
|
|
63
|
+
"grok-build": { category: "reasoning", contextLength: 512e3, maxTokens: 512e3, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["none"] },
|
|
64
|
+
"grok-build-0.1": { category: "reasoning", contextLength: 256e3, maxTokens: 256e3, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["none"] },
|
|
65
|
+
"grok-composer-2.5-fast": { category: "chat", contextLength: 2e5, maxTokens: 2e5, functionCall: true, thinkingLevels: ["none"] }
|
|
66
|
+
};
|
|
67
|
+
var COPILOT_MODELS = {
|
|
68
|
+
"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 } },
|
|
69
|
+
"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 } },
|
|
70
|
+
"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 } },
|
|
71
|
+
"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 } },
|
|
72
|
+
"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 } },
|
|
73
|
+
"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 } },
|
|
74
|
+
"gpt-5.4-nano": { category: "reasoning", contextLength: 4e5, maxTokens: 128e3, functionCall: true, reasoning: true, thinkingLevels: ["none", "low", "medium", "high"], thinkingTokenLimit: { min: 0, max: 128e3 } },
|
|
75
|
+
"grok-code-fast-1": { category: "code", contextLength: 192e3, maxTokens: 32768, functionCall: true, reasoning: true },
|
|
76
|
+
"raptor-mini": { category: "reasoning", contextLength: 4e5, maxTokens: 65536, functionCall: true, reasoning: true, vision: true },
|
|
77
|
+
"mai-code-1-flash-picker": { category: "code", contextLength: 256e3, maxTokens: 65536, functionCall: true, reasoning: true, thinkingLevels: ["none", "low", "medium", "high"] },
|
|
78
|
+
"mai-code-1.1-flash": { category: "code", contextLength: 256e3, maxTokens: 65536, functionCall: true, reasoning: true, vision: true, thinkingLevels: ["none", "low", "medium", "high"] }
|
|
42
79
|
};
|
|
43
80
|
var DEEPSEEK_MODELS = {
|
|
44
81
|
"deepseek-v4-flash": { category: "chat", contextLength: 1e6, maxTokens: 384e3, functionCall: true, reasoning: true, thinkingLevels: ["none", "high", "max"], thinkingTokenLimit: { min: 0, max: 32768 } },
|
|
@@ -48,6 +85,8 @@ var DEEPSEEK_MODELS = {
|
|
|
48
85
|
"deepseek-r1": { category: "reasoning", contextLength: 64e3, maxTokens: 8192, reasoning: true, thinkingTokenLimit: { min: 0, max: 32768 } }
|
|
49
86
|
};
|
|
50
87
|
var ZHIPU_MODELS = {
|
|
88
|
+
"glm-5.3": { category: "chat", contextLength: 1048576, maxTokens: 131072, functionCall: true },
|
|
89
|
+
"glm-5.3-flash": { category: "chat", contextLength: 1048576, maxTokens: 131072, functionCall: true },
|
|
51
90
|
"glm-5.2": { category: "chat", contextLength: 1048576, maxTokens: 131072, functionCall: true },
|
|
52
91
|
"glm-5": { category: "chat", contextLength: 2e5, maxTokens: 128e3, functionCall: true },
|
|
53
92
|
"glm-5.1": { category: "chat", contextLength: 2e5, maxTokens: 128e3, functionCall: true },
|
|
@@ -82,10 +121,15 @@ var TENCENT_HUNYUAN_MODELS = {
|
|
|
82
121
|
"hunyuan-turbos": { category: "chat", functionCall: true }
|
|
83
122
|
};
|
|
84
123
|
var MINIMAX_MODELS = {
|
|
124
|
+
"minimax-m3": { category: "code", contextLength: 204800, functionCall: true, reasoning: true },
|
|
125
|
+
"minimax-m2.7": { category: "code", contextLength: 204800, functionCall: true },
|
|
126
|
+
"minimax-m2.7-highspeed": { category: "code", contextLength: 204800, functionCall: true },
|
|
85
127
|
"minimax-m2.5": { category: "code", contextLength: 204800, functionCall: true },
|
|
86
128
|
"minimax-m2.5-highspeed": { category: "code", contextLength: 204800, functionCall: true },
|
|
129
|
+
"minimax-m2.5-lightning": { category: "code", contextLength: 204800, functionCall: true },
|
|
87
130
|
"minimax-m2.1": { category: "code", contextLength: 204800, functionCall: true },
|
|
88
|
-
"minimax-m2.1-
|
|
131
|
+
"minimax-m2.1-lightning": { category: "code", contextLength: 204800, functionCall: true },
|
|
132
|
+
"minimax-m2": { category: "code", contextLength: 204800, functionCall: true }
|
|
89
133
|
};
|
|
90
134
|
var XIAOMI_MIMO_CANONICAL = {
|
|
91
135
|
"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 } },
|
|
@@ -127,6 +171,7 @@ var VENDOR_GROUPS = [
|
|
|
127
171
|
{ name: "ANTHROPIC_MODELS", entries: ANTHROPIC_MODELS },
|
|
128
172
|
{ name: "GEMINI_MODELS", entries: GEMINI_MODELS },
|
|
129
173
|
{ name: "GROK_MODELS", entries: GROK_MODELS },
|
|
174
|
+
{ name: "COPILOT_MODELS", entries: COPILOT_MODELS },
|
|
130
175
|
{ name: "DEEPSEEK_MODELS", entries: DEEPSEEK_MODELS },
|
|
131
176
|
{ name: "ZHIPU_MODELS", entries: ZHIPU_MODELS },
|
|
132
177
|
{ name: "KIMI_MODELS", entries: KIMI_MODELS },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omnicross/contracts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Dependency-light, host-agnostic contract types + runtime-value helpers shared by the @omnicross/* packages.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Sayo (https://github.com/Dumoedss)",
|