@omnicross/contracts 0.3.1 → 0.4.1

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.
@@ -6,7 +6,72 @@ var SUBSCRIPTION_MODEL_CATALOG = {
6
6
  opencodego: [],
7
7
  // Kimi Code's subscription catalog (the official CLI's built-ins + the
8
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"]
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
+ ]
10
75
  };
11
76
  function subscriptionProviderHasCatalog(providerId) {
12
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' | 'kimi';
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' | 'kimi';
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
  *
@@ -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 } },
@@ -175,6 +212,7 @@ var VENDOR_GROUPS = [
175
212
  { name: "ANTHROPIC_MODELS", entries: ANTHROPIC_MODELS },
176
213
  { name: "GEMINI_MODELS", entries: GEMINI_MODELS },
177
214
  { name: "GROK_MODELS", entries: GROK_MODELS },
215
+ { name: "COPILOT_MODELS", entries: COPILOT_MODELS },
178
216
  { name: "DEEPSEEK_MODELS", entries: DEEPSEEK_MODELS },
179
217
  { name: "ZHIPU_MODELS", entries: ZHIPU_MODELS },
180
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-DeWNx1ig.cjs';
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-CKOaFFdy.js';
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.
@@ -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 } },
@@ -134,6 +171,7 @@ var VENDOR_GROUPS = [
134
171
  { name: "ANTHROPIC_MODELS", entries: ANTHROPIC_MODELS },
135
172
  { name: "GEMINI_MODELS", entries: GEMINI_MODELS },
136
173
  { name: "GROK_MODELS", entries: GROK_MODELS },
174
+ { name: "COPILOT_MODELS", entries: COPILOT_MODELS },
137
175
  { name: "DEEPSEEK_MODELS", entries: DEEPSEEK_MODELS },
138
176
  { name: "ZHIPU_MODELS", entries: ZHIPU_MODELS },
139
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.1",
3
+ "version": "0.4.1",
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)",