@corbat-tech/coco 2.11.1 → 2.12.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/cli/index.js +43 -18
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +9 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -1424,7 +1424,7 @@ var init_openai = __esm({
|
|
|
1424
1424
|
"src/providers/openai.ts"() {
|
|
1425
1425
|
init_errors();
|
|
1426
1426
|
init_retry();
|
|
1427
|
-
DEFAULT_MODEL2 = "gpt-5.
|
|
1427
|
+
DEFAULT_MODEL2 = "gpt-5.4-codex";
|
|
1428
1428
|
CONTEXT_WINDOWS2 = {
|
|
1429
1429
|
// OpenAI models
|
|
1430
1430
|
"gpt-4o": 128e3,
|
|
@@ -1447,6 +1447,7 @@ var init_openai = __esm({
|
|
|
1447
1447
|
"gpt-5.2-instant": 4e5,
|
|
1448
1448
|
"gpt-5.2-pro": 4e5,
|
|
1449
1449
|
"gpt-5.3-codex": 4e5,
|
|
1450
|
+
"gpt-5.4-codex": 4e5,
|
|
1450
1451
|
// Kimi/Moonshot models
|
|
1451
1452
|
"kimi-k2.5": 262144,
|
|
1452
1453
|
"kimi-k2-0324": 131072,
|
|
@@ -1503,7 +1504,7 @@ var init_openai = __esm({
|
|
|
1503
1504
|
"microsoft/Phi-4": 16384,
|
|
1504
1505
|
// OpenRouter model IDs
|
|
1505
1506
|
"anthropic/claude-opus-4-6": 2e5,
|
|
1506
|
-
"openai/gpt-5.
|
|
1507
|
+
"openai/gpt-5.4-codex": 4e5,
|
|
1507
1508
|
"google/gemini-3-flash-preview": 1e6,
|
|
1508
1509
|
"meta-llama/llama-3.3-70b-instruct": 128e3
|
|
1509
1510
|
};
|
|
@@ -4091,8 +4092,9 @@ var init_codex = __esm({
|
|
|
4091
4092
|
init_errors();
|
|
4092
4093
|
init_auth();
|
|
4093
4094
|
CODEX_API_ENDPOINT = "https://chatgpt.com/backend-api/codex/responses";
|
|
4094
|
-
DEFAULT_MODEL3 = "gpt-5.
|
|
4095
|
+
DEFAULT_MODEL3 = "gpt-5.4-codex";
|
|
4095
4096
|
CONTEXT_WINDOWS3 = {
|
|
4097
|
+
"gpt-5.4-codex": 2e5,
|
|
4096
4098
|
"gpt-5.3-codex": 2e5,
|
|
4097
4099
|
"gpt-5.2-codex": 2e5,
|
|
4098
4100
|
"gpt-5-codex": 2e5,
|
|
@@ -4374,6 +4376,7 @@ var init_copilot2 = __esm({
|
|
|
4374
4376
|
// OpenAI models — chat/completions
|
|
4375
4377
|
"gpt-4.1": 1048576,
|
|
4376
4378
|
// OpenAI models — /responses API (Codex/GPT-5+)
|
|
4379
|
+
"gpt-5.4-codex": 4e5,
|
|
4377
4380
|
"gpt-5.3-codex": 4e5,
|
|
4378
4381
|
"gpt-5.2-codex": 4e5,
|
|
4379
4382
|
"gpt-5.1-codex-max": 4e5,
|
|
@@ -5035,6 +5038,7 @@ var init_pricing = __esm({
|
|
|
5035
5038
|
"claude-sonnet-4-20250514": { inputPerMillion: 3, outputPerMillion: 15, contextWindow: 2e5 },
|
|
5036
5039
|
"claude-opus-4-20250514": { inputPerMillion: 15, outputPerMillion: 75, contextWindow: 2e5 },
|
|
5037
5040
|
// OpenAI models
|
|
5041
|
+
"gpt-5.4-codex": { inputPerMillion: 2, outputPerMillion: 8, contextWindow: 4e5 },
|
|
5038
5042
|
"gpt-5.3-codex": { inputPerMillion: 2, outputPerMillion: 8, contextWindow: 4e5 },
|
|
5039
5043
|
"gpt-5.2-codex": { inputPerMillion: 2, outputPerMillion: 8, contextWindow: 4e5 },
|
|
5040
5044
|
"gpt-5.1-codex-max": { inputPerMillion: 3, outputPerMillion: 12, contextWindow: 4e5 },
|
|
@@ -5640,7 +5644,7 @@ function getDefaultModel(provider) {
|
|
|
5640
5644
|
case "anthropic":
|
|
5641
5645
|
return process.env["ANTHROPIC_MODEL"] ?? "claude-opus-4-6";
|
|
5642
5646
|
case "openai":
|
|
5643
|
-
return process.env["OPENAI_MODEL"] ?? "gpt-5.
|
|
5647
|
+
return process.env["OPENAI_MODEL"] ?? "gpt-5.4-codex";
|
|
5644
5648
|
case "gemini":
|
|
5645
5649
|
return process.env["GEMINI_MODEL"] ?? "gemini-3.1-pro-preview";
|
|
5646
5650
|
case "kimi":
|
|
@@ -5652,7 +5656,7 @@ function getDefaultModel(provider) {
|
|
|
5652
5656
|
case "ollama":
|
|
5653
5657
|
return process.env["OLLAMA_MODEL"] ?? "llama3.1";
|
|
5654
5658
|
case "codex":
|
|
5655
|
-
return process.env["CODEX_MODEL"] ?? "gpt-5.
|
|
5659
|
+
return process.env["CODEX_MODEL"] ?? "gpt-5.4-codex";
|
|
5656
5660
|
case "copilot":
|
|
5657
5661
|
return process.env["COPILOT_MODEL"] ?? "claude-sonnet-4.6";
|
|
5658
5662
|
case "groq":
|
|
@@ -5670,7 +5674,7 @@ function getDefaultModel(provider) {
|
|
|
5670
5674
|
case "qwen":
|
|
5671
5675
|
return process.env["QWEN_MODEL"] ?? "qwen-coder-plus";
|
|
5672
5676
|
default:
|
|
5673
|
-
return "gpt-5.
|
|
5677
|
+
return "gpt-5.4-codex";
|
|
5674
5678
|
}
|
|
5675
5679
|
}
|
|
5676
5680
|
function getDefaultProvider() {
|
|
@@ -25735,13 +25739,20 @@ var PROVIDER_DEFINITIONS = {
|
|
|
25735
25739
|
// Updated: March 2026 — from platform.openai.com/docs/models
|
|
25736
25740
|
models: [
|
|
25737
25741
|
{
|
|
25738
|
-
id: "gpt-5.
|
|
25739
|
-
name: "GPT-5.
|
|
25740
|
-
description: "Latest agentic coding model (
|
|
25742
|
+
id: "gpt-5.4-codex",
|
|
25743
|
+
name: "GPT-5.4 Codex",
|
|
25744
|
+
description: "Latest agentic coding model (Mar 2026)",
|
|
25741
25745
|
contextWindow: 4e5,
|
|
25742
25746
|
maxOutputTokens: 128e3,
|
|
25743
25747
|
recommended: true
|
|
25744
25748
|
},
|
|
25749
|
+
{
|
|
25750
|
+
id: "gpt-5.3-codex",
|
|
25751
|
+
name: "GPT-5.3 Codex",
|
|
25752
|
+
description: "Previous agentic coding model (Feb 2026)",
|
|
25753
|
+
contextWindow: 4e5,
|
|
25754
|
+
maxOutputTokens: 128e3
|
|
25755
|
+
},
|
|
25745
25756
|
{
|
|
25746
25757
|
id: "gpt-5.2-codex",
|
|
25747
25758
|
name: "GPT-5.2 Codex",
|
|
@@ -25871,13 +25882,20 @@ var PROVIDER_DEFINITIONS = {
|
|
|
25871
25882
|
},
|
|
25872
25883
|
// OpenAI models (Codex/GPT-5+ use /responses API, others use /chat/completions)
|
|
25873
25884
|
{
|
|
25874
|
-
id: "gpt-5.
|
|
25875
|
-
name: "GPT-5.
|
|
25876
|
-
description: "OpenAI's latest coding model via Copilot",
|
|
25885
|
+
id: "gpt-5.4-codex",
|
|
25886
|
+
name: "GPT-5.4 Codex",
|
|
25887
|
+
description: "OpenAI's latest coding model via Copilot (Mar 2026)",
|
|
25877
25888
|
contextWindow: 4e5,
|
|
25878
25889
|
maxOutputTokens: 128e3,
|
|
25879
25890
|
recommended: true
|
|
25880
25891
|
},
|
|
25892
|
+
{
|
|
25893
|
+
id: "gpt-5.3-codex",
|
|
25894
|
+
name: "GPT-5.3 Codex",
|
|
25895
|
+
description: "OpenAI's previous coding model via Copilot",
|
|
25896
|
+
contextWindow: 4e5,
|
|
25897
|
+
maxOutputTokens: 128e3
|
|
25898
|
+
},
|
|
25881
25899
|
{
|
|
25882
25900
|
id: "gpt-5.2-codex",
|
|
25883
25901
|
name: "GPT-5.2 Codex",
|
|
@@ -25949,13 +25967,20 @@ var PROVIDER_DEFINITIONS = {
|
|
|
25949
25967
|
},
|
|
25950
25968
|
models: [
|
|
25951
25969
|
{
|
|
25952
|
-
id: "gpt-5.
|
|
25953
|
-
name: "GPT-5.
|
|
25954
|
-
description: "Latest coding model via ChatGPT subscription (
|
|
25970
|
+
id: "gpt-5.4-codex",
|
|
25971
|
+
name: "GPT-5.4 Codex",
|
|
25972
|
+
description: "Latest coding model via ChatGPT subscription (Mar 2026)",
|
|
25955
25973
|
contextWindow: 2e5,
|
|
25956
25974
|
maxOutputTokens: 128e3,
|
|
25957
25975
|
recommended: true
|
|
25958
25976
|
},
|
|
25977
|
+
{
|
|
25978
|
+
id: "gpt-5.3-codex",
|
|
25979
|
+
name: "GPT-5.3 Codex",
|
|
25980
|
+
description: "Previous coding model via ChatGPT subscription",
|
|
25981
|
+
contextWindow: 2e5,
|
|
25982
|
+
maxOutputTokens: 128e3
|
|
25983
|
+
},
|
|
25959
25984
|
{
|
|
25960
25985
|
id: "gpt-5.2-codex",
|
|
25961
25986
|
name: "GPT-5.2 Codex",
|
|
@@ -26372,9 +26397,9 @@ var PROVIDER_DEFINITIONS = {
|
|
|
26372
26397
|
recommended: true
|
|
26373
26398
|
},
|
|
26374
26399
|
{
|
|
26375
|
-
id: "openai/gpt-5.
|
|
26376
|
-
name: "GPT-5.
|
|
26377
|
-
description: "OpenAI's coding model \u2014 via OpenRouter",
|
|
26400
|
+
id: "openai/gpt-5.4-codex",
|
|
26401
|
+
name: "GPT-5.4 Codex (via OR)",
|
|
26402
|
+
description: "OpenAI's latest coding model \u2014 via OpenRouter",
|
|
26378
26403
|
contextWindow: 4e5,
|
|
26379
26404
|
maxOutputTokens: 128e3
|
|
26380
26405
|
},
|