claudish 14.25.1 → 14.26.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.
- package/dist/index.js +704 -81
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -5525,7 +5525,7 @@ var init_env_placeholder = __esm(() => {
|
|
|
5525
5525
|
});
|
|
5526
5526
|
|
|
5527
5527
|
// src/version.ts
|
|
5528
|
-
var VERSION = "14.
|
|
5528
|
+
var VERSION = "14.26.1";
|
|
5529
5529
|
|
|
5530
5530
|
// src/redact.ts
|
|
5531
5531
|
function isPlaceholder(value) {
|
|
@@ -13287,6 +13287,80 @@ var init_bundled_recommended_list = __esm(() => {
|
|
|
13287
13287
|
]
|
|
13288
13288
|
}
|
|
13289
13289
|
},
|
|
13290
|
+
"gpt-6.1-terra": {
|
|
13291
|
+
code_review: {
|
|
13292
|
+
basis: "vendor_guidance",
|
|
13293
|
+
effort: "xhigh",
|
|
13294
|
+
sendableOn: [
|
|
13295
|
+
{
|
|
13296
|
+
encoding: "request_parameter",
|
|
13297
|
+
externalModelId: "gpt-6.1-terra",
|
|
13298
|
+
routeId: "openai",
|
|
13299
|
+
routeProfileId: "codex-subscription"
|
|
13300
|
+
}
|
|
13301
|
+
]
|
|
13302
|
+
},
|
|
13303
|
+
debugging: {
|
|
13304
|
+
basis: "vendor_guidance",
|
|
13305
|
+
effort: "high",
|
|
13306
|
+
sendableOn: [
|
|
13307
|
+
{
|
|
13308
|
+
encoding: "request_parameter",
|
|
13309
|
+
externalModelId: "gpt-6.1-terra",
|
|
13310
|
+
routeId: "openai",
|
|
13311
|
+
routeProfileId: "codex-subscription"
|
|
13312
|
+
}
|
|
13313
|
+
]
|
|
13314
|
+
},
|
|
13315
|
+
default: {
|
|
13316
|
+
basis: "vendor_default",
|
|
13317
|
+
effort: "medium",
|
|
13318
|
+
sendableOn: [
|
|
13319
|
+
{
|
|
13320
|
+
encoding: "request_parameter",
|
|
13321
|
+
externalModelId: "gpt-6.1-terra",
|
|
13322
|
+
routeId: "openai",
|
|
13323
|
+
routeProfileId: "codex-subscription"
|
|
13324
|
+
}
|
|
13325
|
+
]
|
|
13326
|
+
},
|
|
13327
|
+
frontend_ui: {
|
|
13328
|
+
basis: "owner_choice",
|
|
13329
|
+
effort: "high",
|
|
13330
|
+
sendableOn: [
|
|
13331
|
+
{
|
|
13332
|
+
encoding: "request_parameter",
|
|
13333
|
+
externalModelId: "gpt-6.1-terra",
|
|
13334
|
+
routeId: "openai",
|
|
13335
|
+
routeProfileId: "codex-subscription"
|
|
13336
|
+
}
|
|
13337
|
+
]
|
|
13338
|
+
},
|
|
13339
|
+
quick_edit: {
|
|
13340
|
+
basis: "vendor_guidance",
|
|
13341
|
+
effort: "low",
|
|
13342
|
+
sendableOn: [
|
|
13343
|
+
{
|
|
13344
|
+
encoding: "request_parameter",
|
|
13345
|
+
externalModelId: "gpt-6.1-terra",
|
|
13346
|
+
routeId: "openai",
|
|
13347
|
+
routeProfileId: "codex-subscription"
|
|
13348
|
+
}
|
|
13349
|
+
]
|
|
13350
|
+
},
|
|
13351
|
+
terminal_ops: {
|
|
13352
|
+
basis: "benchmark_knee",
|
|
13353
|
+
effort: "xhigh",
|
|
13354
|
+
sendableOn: [
|
|
13355
|
+
{
|
|
13356
|
+
encoding: "request_parameter",
|
|
13357
|
+
externalModelId: "gpt-6.1-terra",
|
|
13358
|
+
routeId: "openai",
|
|
13359
|
+
routeProfileId: "codex-subscription"
|
|
13360
|
+
}
|
|
13361
|
+
]
|
|
13362
|
+
}
|
|
13363
|
+
},
|
|
13290
13364
|
"kimi-k3.1-pro": {
|
|
13291
13365
|
code_review: {
|
|
13292
13366
|
basis: "owner_choice",
|
|
@@ -14054,7 +14128,7 @@ var init_bundled_recommended_list = __esm(() => {
|
|
|
14054
14128
|
}
|
|
14055
14129
|
}
|
|
14056
14130
|
},
|
|
14057
|
-
fetchedAt: "2026-11-
|
|
14131
|
+
fetchedAt: "2026-11-16T00:31:40.763Z",
|
|
14058
14132
|
format: 1,
|
|
14059
14133
|
recommendations: {
|
|
14060
14134
|
contractVersion: 3,
|
|
@@ -14136,7 +14210,7 @@ var init_bundled_recommended_list = __esm(() => {
|
|
|
14136
14210
|
tier: "cost_efficient"
|
|
14137
14211
|
},
|
|
14138
14212
|
{
|
|
14139
|
-
modelId: "gpt-6.1-
|
|
14213
|
+
modelId: "gpt-6.1-terra",
|
|
14140
14214
|
tier: "cost_efficient"
|
|
14141
14215
|
},
|
|
14142
14216
|
{
|
|
@@ -14160,11 +14234,11 @@ var init_bundled_recommended_list = __esm(() => {
|
|
|
14160
14234
|
tier: "luxury"
|
|
14161
14235
|
}
|
|
14162
14236
|
],
|
|
14163
|
-
generationId: "g-
|
|
14237
|
+
generationId: "g-20261115161901457-250a0705"
|
|
14164
14238
|
},
|
|
14165
14239
|
source: "https://us-central1-claudish-6da10.cloudfunctions.net"
|
|
14166
14240
|
},
|
|
14167
|
-
catalogGenerationId: "g-
|
|
14241
|
+
catalogGenerationId: "g-20261115161901457-250a0705",
|
|
14168
14242
|
entries: [
|
|
14169
14243
|
{
|
|
14170
14244
|
aggregators: [
|
|
@@ -15196,9 +15270,9 @@ var init_bundled_recommended_list = __esm(() => {
|
|
|
15196
15270
|
],
|
|
15197
15271
|
aliases: [
|
|
15198
15272
|
"google/gemini-4-argon",
|
|
15273
|
+
"gemini-4-argon-low",
|
|
15199
15274
|
"gemini-4-argon-medium",
|
|
15200
|
-
"gemini-4-argon-high"
|
|
15201
|
-
"gemini-4-argon-low"
|
|
15275
|
+
"gemini-4-argon-high"
|
|
15202
15276
|
],
|
|
15203
15277
|
contextWindow: 1048576,
|
|
15204
15278
|
contractVersion: 3,
|
|
@@ -15351,9 +15425,9 @@ var init_bundled_recommended_list = __esm(() => {
|
|
|
15351
15425
|
],
|
|
15352
15426
|
aliases: [
|
|
15353
15427
|
"google/gemini-4-carbon",
|
|
15354
|
-
"gemini-4-carbon-
|
|
15428
|
+
"gemini-4-carbon-high",
|
|
15355
15429
|
"gemini-4-carbon-low",
|
|
15356
|
-
"gemini-4-carbon-
|
|
15430
|
+
"gemini-4-carbon-medium"
|
|
15357
15431
|
],
|
|
15358
15432
|
contextWindow: 1048576,
|
|
15359
15433
|
contractVersion: 3,
|
|
@@ -15506,10 +15580,10 @@ var init_bundled_recommended_list = __esm(() => {
|
|
|
15506
15580
|
],
|
|
15507
15581
|
aliases: [
|
|
15508
15582
|
"google/gemini-4-hydrogen",
|
|
15509
|
-
"gemini-4-hydrogen-xhigh",
|
|
15510
|
-
"gemini-4-hydrogen-medium",
|
|
15511
15583
|
"gemini-4-hydrogen-high",
|
|
15512
|
-
"gemini-4-hydrogen-low"
|
|
15584
|
+
"gemini-4-hydrogen-low",
|
|
15585
|
+
"gemini-4-hydrogen-medium",
|
|
15586
|
+
"gemini-4-hydrogen-xhigh"
|
|
15513
15587
|
],
|
|
15514
15588
|
contextWindow: 1048576,
|
|
15515
15589
|
contractVersion: 3,
|
|
@@ -16731,6 +16805,266 @@ var init_bundled_recommended_list = __esm(() => {
|
|
|
16731
16805
|
videoInput: false,
|
|
16732
16806
|
videoOutput: false
|
|
16733
16807
|
},
|
|
16808
|
+
{
|
|
16809
|
+
aggregators: [
|
|
16810
|
+
{
|
|
16811
|
+
externalModelId: "gpt-6.1-terra",
|
|
16812
|
+
reasoning: {
|
|
16813
|
+
mode: {
|
|
16814
|
+
status: "rejected"
|
|
16815
|
+
},
|
|
16816
|
+
request: {
|
|
16817
|
+
status: "unknown"
|
|
16818
|
+
}
|
|
16819
|
+
},
|
|
16820
|
+
route: {
|
|
16821
|
+
routeId: "openai",
|
|
16822
|
+
routeProfileId: "codex-subscription"
|
|
16823
|
+
},
|
|
16824
|
+
routeStatus: "mapped",
|
|
16825
|
+
sourceProviderId: "openai-codex",
|
|
16826
|
+
wire: {
|
|
16827
|
+
api: "responses",
|
|
16828
|
+
evidence: [],
|
|
16829
|
+
reasoning: {
|
|
16830
|
+
disable: [
|
|
16831
|
+
{
|
|
16832
|
+
path: "/reasoning/effort",
|
|
16833
|
+
value: "none"
|
|
16834
|
+
}
|
|
16835
|
+
],
|
|
16836
|
+
effort: {
|
|
16837
|
+
default: "low",
|
|
16838
|
+
path: "/reasoning/effort",
|
|
16839
|
+
values: {
|
|
16840
|
+
high: "high",
|
|
16841
|
+
low: "low",
|
|
16842
|
+
max: "max",
|
|
16843
|
+
medium: "medium",
|
|
16844
|
+
none: "none",
|
|
16845
|
+
xhigh: "xhigh"
|
|
16846
|
+
}
|
|
16847
|
+
},
|
|
16848
|
+
enable: {
|
|
16849
|
+
status: "not_applicable"
|
|
16850
|
+
},
|
|
16851
|
+
mode: {
|
|
16852
|
+
path: "/reasoning/mode",
|
|
16853
|
+
status: "rejected"
|
|
16854
|
+
},
|
|
16855
|
+
status: "supported"
|
|
16856
|
+
},
|
|
16857
|
+
speed: {
|
|
16858
|
+
access: "open",
|
|
16859
|
+
default: "standard",
|
|
16860
|
+
echo: {
|
|
16861
|
+
status: "not_applicable"
|
|
16862
|
+
},
|
|
16863
|
+
headers: [],
|
|
16864
|
+
path: "/service_tier",
|
|
16865
|
+
status: "supported",
|
|
16866
|
+
values: {
|
|
16867
|
+
fast: "priority"
|
|
16868
|
+
}
|
|
16869
|
+
},
|
|
16870
|
+
status: "known",
|
|
16871
|
+
tokenParam: "max_output_tokens",
|
|
16872
|
+
toolsWithReasoning: "ok"
|
|
16873
|
+
}
|
|
16874
|
+
},
|
|
16875
|
+
{
|
|
16876
|
+
externalModelId: "gpt-6.1-terra",
|
|
16877
|
+
pricing: {
|
|
16878
|
+
cachedRead: 0.05,
|
|
16879
|
+
cachedWrite: 1.25,
|
|
16880
|
+
input: 1,
|
|
16881
|
+
output: 5,
|
|
16882
|
+
type: "flat"
|
|
16883
|
+
},
|
|
16884
|
+
reasoning: {
|
|
16885
|
+
mode: {
|
|
16886
|
+
default: "standard",
|
|
16887
|
+
status: "supported",
|
|
16888
|
+
values: [
|
|
16889
|
+
"standard",
|
|
16890
|
+
"pro"
|
|
16891
|
+
]
|
|
16892
|
+
},
|
|
16893
|
+
request: {
|
|
16894
|
+
api: "responses",
|
|
16895
|
+
disable: [
|
|
16896
|
+
{
|
|
16897
|
+
path: "/reasoning/effort",
|
|
16898
|
+
value: "none"
|
|
16899
|
+
}
|
|
16900
|
+
],
|
|
16901
|
+
effort: {
|
|
16902
|
+
default: "medium",
|
|
16903
|
+
path: "/reasoning/effort",
|
|
16904
|
+
values: {
|
|
16905
|
+
high: "high",
|
|
16906
|
+
low: "low",
|
|
16907
|
+
max: "max",
|
|
16908
|
+
medium: "medium",
|
|
16909
|
+
none: "none",
|
|
16910
|
+
xhigh: "xhigh"
|
|
16911
|
+
}
|
|
16912
|
+
},
|
|
16913
|
+
status: "supported"
|
|
16914
|
+
}
|
|
16915
|
+
},
|
|
16916
|
+
route: {
|
|
16917
|
+
routeId: "openai",
|
|
16918
|
+
routeProfileId: "direct-api"
|
|
16919
|
+
},
|
|
16920
|
+
routeStatus: "mapped",
|
|
16921
|
+
sourceProviderId: "openai",
|
|
16922
|
+
wire: {
|
|
16923
|
+
api: "responses",
|
|
16924
|
+
evidence: [],
|
|
16925
|
+
reasoning: {
|
|
16926
|
+
disable: [
|
|
16927
|
+
{
|
|
16928
|
+
path: "/reasoning/effort",
|
|
16929
|
+
value: "none"
|
|
16930
|
+
}
|
|
16931
|
+
],
|
|
16932
|
+
effort: {
|
|
16933
|
+
default: "medium",
|
|
16934
|
+
path: "/reasoning/effort",
|
|
16935
|
+
values: {
|
|
16936
|
+
high: "high",
|
|
16937
|
+
low: "low",
|
|
16938
|
+
max: "max",
|
|
16939
|
+
medium: "medium",
|
|
16940
|
+
none: "none",
|
|
16941
|
+
xhigh: "xhigh"
|
|
16942
|
+
}
|
|
16943
|
+
},
|
|
16944
|
+
enable: {
|
|
16945
|
+
status: "not_applicable"
|
|
16946
|
+
},
|
|
16947
|
+
mode: {
|
|
16948
|
+
access: "open",
|
|
16949
|
+
default: "standard",
|
|
16950
|
+
echo: "/reasoning/mode",
|
|
16951
|
+
headers: [],
|
|
16952
|
+
path: "/reasoning/mode",
|
|
16953
|
+
status: "supported",
|
|
16954
|
+
values: {
|
|
16955
|
+
pro: "pro",
|
|
16956
|
+
standard: "standard"
|
|
16957
|
+
}
|
|
16958
|
+
},
|
|
16959
|
+
status: "supported"
|
|
16960
|
+
},
|
|
16961
|
+
speed: {
|
|
16962
|
+
status: "unknown"
|
|
16963
|
+
},
|
|
16964
|
+
status: "known",
|
|
16965
|
+
tokenParam: "max_output_tokens",
|
|
16966
|
+
toolsWithReasoning: "ok"
|
|
16967
|
+
}
|
|
16968
|
+
}
|
|
16969
|
+
],
|
|
16970
|
+
aliases: [
|
|
16971
|
+
"openai/gpt-6.1-terra",
|
|
16972
|
+
"gpt-6-1-terra-high",
|
|
16973
|
+
"gpt-6-1-terra-low",
|
|
16974
|
+
"gpt-6-1-terra-max",
|
|
16975
|
+
"gpt-6-1-terra-medium",
|
|
16976
|
+
"gpt-6-1-terra-xhigh"
|
|
16977
|
+
],
|
|
16978
|
+
contextWindow: 1050000,
|
|
16979
|
+
contractVersion: 3,
|
|
16980
|
+
displayName: "GPT-6.1 Terra",
|
|
16981
|
+
endpoints: {
|
|
16982
|
+
openai: {
|
|
16983
|
+
api: "responses",
|
|
16984
|
+
toolsWithReasoning: "ok"
|
|
16985
|
+
}
|
|
16986
|
+
},
|
|
16987
|
+
inputModalities: [
|
|
16988
|
+
"image",
|
|
16989
|
+
"text"
|
|
16990
|
+
],
|
|
16991
|
+
maxOutputTokens: 128000,
|
|
16992
|
+
modelId: "gpt-6.1-terra",
|
|
16993
|
+
outputModalities: [
|
|
16994
|
+
"text"
|
|
16995
|
+
],
|
|
16996
|
+
provider: "openai",
|
|
16997
|
+
reasoning: {
|
|
16998
|
+
control: "effort",
|
|
16999
|
+
defaultEffort: "medium",
|
|
17000
|
+
efforts: [
|
|
17001
|
+
"max",
|
|
17002
|
+
"xhigh",
|
|
17003
|
+
"high",
|
|
17004
|
+
"medium",
|
|
17005
|
+
"low",
|
|
17006
|
+
"none"
|
|
17007
|
+
],
|
|
17008
|
+
mandatory: false,
|
|
17009
|
+
supported: true
|
|
17010
|
+
},
|
|
17011
|
+
releaseDate: "2026-10-26",
|
|
17012
|
+
status: "active",
|
|
17013
|
+
subscriptionPlanIds: [
|
|
17014
|
+
"cognition-devin",
|
|
17015
|
+
"llm-gateway-devpass",
|
|
17016
|
+
"openai-codex"
|
|
17017
|
+
],
|
|
17018
|
+
supportsTools: true,
|
|
17019
|
+
supportsVision: true,
|
|
17020
|
+
tokenParam: "max_output_tokens",
|
|
17021
|
+
videoInput: false,
|
|
17022
|
+
videoOutput: false
|
|
17023
|
+
},
|
|
17024
|
+
{
|
|
17025
|
+
aggregators: [],
|
|
17026
|
+
aliases: [
|
|
17027
|
+
"openai/gpt-6.1-terra-pro"
|
|
17028
|
+
],
|
|
17029
|
+
contextWindow: 1050000,
|
|
17030
|
+
contractVersion: 3,
|
|
17031
|
+
displayName: "GPT-6.1 Terra Pro",
|
|
17032
|
+
inputModalities: [
|
|
17033
|
+
"file",
|
|
17034
|
+
"image",
|
|
17035
|
+
"text"
|
|
17036
|
+
],
|
|
17037
|
+
modelId: "gpt-6.1-terra-pro",
|
|
17038
|
+
outputModalities: [
|
|
17039
|
+
"text"
|
|
17040
|
+
],
|
|
17041
|
+
provider: "openai",
|
|
17042
|
+
reasoning: {
|
|
17043
|
+
control: "effort",
|
|
17044
|
+
defaultEffort: "medium",
|
|
17045
|
+
efforts: [
|
|
17046
|
+
"max",
|
|
17047
|
+
"xhigh",
|
|
17048
|
+
"high",
|
|
17049
|
+
"medium",
|
|
17050
|
+
"low"
|
|
17051
|
+
],
|
|
17052
|
+
mandatory: true,
|
|
17053
|
+
supported: true
|
|
17054
|
+
},
|
|
17055
|
+
releaseDate: "2026-10-26",
|
|
17056
|
+
routeVariant: {
|
|
17057
|
+
baseModelId: "gpt-6.1-terra",
|
|
17058
|
+
kind: "provider-preset",
|
|
17059
|
+
preset: "reasoning.mode=pro",
|
|
17060
|
+
provider: "openrouter"
|
|
17061
|
+
},
|
|
17062
|
+
status: "active",
|
|
17063
|
+
supportsTools: true,
|
|
17064
|
+
supportsVision: true,
|
|
17065
|
+
videoInput: false,
|
|
17066
|
+
videoOutput: false
|
|
17067
|
+
},
|
|
16734
17068
|
{
|
|
16735
17069
|
aggregators: [
|
|
16736
17070
|
{
|
|
@@ -17915,7 +18249,7 @@ var init_bundled_recommended_list = __esm(() => {
|
|
|
17915
18249
|
supportsVision: true
|
|
17916
18250
|
}
|
|
17917
18251
|
],
|
|
17918
|
-
lastUpdated: "2026-11-
|
|
18252
|
+
lastUpdated: "2026-11-15T16:19:01.457Z",
|
|
17919
18253
|
models: [],
|
|
17920
18254
|
plans: [
|
|
17921
18255
|
{
|
|
@@ -18443,6 +18777,56 @@ var init_bundled_recommended_list = __esm(() => {
|
|
|
18443
18777
|
},
|
|
18444
18778
|
sourceText: "GPT-6.1 Sol XHigh Thinking"
|
|
18445
18779
|
},
|
|
18780
|
+
{
|
|
18781
|
+
externalModelId: "gpt-6-1-terra-high",
|
|
18782
|
+
kind: "provider_model",
|
|
18783
|
+
provider: "cognition",
|
|
18784
|
+
resolution: {
|
|
18785
|
+
modelId: "gpt-6.1-terra",
|
|
18786
|
+
status: "mapped"
|
|
18787
|
+
},
|
|
18788
|
+
sourceText: "GPT-6.1 Terra High Thinking"
|
|
18789
|
+
},
|
|
18790
|
+
{
|
|
18791
|
+
externalModelId: "gpt-6-1-terra-low",
|
|
18792
|
+
kind: "provider_model",
|
|
18793
|
+
provider: "cognition",
|
|
18794
|
+
resolution: {
|
|
18795
|
+
modelId: "gpt-6.1-terra",
|
|
18796
|
+
status: "mapped"
|
|
18797
|
+
},
|
|
18798
|
+
sourceText: "GPT-6.1 Terra Low Thinking"
|
|
18799
|
+
},
|
|
18800
|
+
{
|
|
18801
|
+
externalModelId: "gpt-6-1-terra-max",
|
|
18802
|
+
kind: "provider_model",
|
|
18803
|
+
provider: "cognition",
|
|
18804
|
+
resolution: {
|
|
18805
|
+
modelId: "gpt-6.1-terra",
|
|
18806
|
+
status: "mapped"
|
|
18807
|
+
},
|
|
18808
|
+
sourceText: "GPT-6.1 Terra Max Thinking"
|
|
18809
|
+
},
|
|
18810
|
+
{
|
|
18811
|
+
externalModelId: "gpt-6-1-terra-medium",
|
|
18812
|
+
kind: "provider_model",
|
|
18813
|
+
provider: "cognition",
|
|
18814
|
+
resolution: {
|
|
18815
|
+
modelId: "gpt-6.1-terra",
|
|
18816
|
+
status: "mapped"
|
|
18817
|
+
},
|
|
18818
|
+
sourceText: "GPT-6.1 Terra Medium Thinking"
|
|
18819
|
+
},
|
|
18820
|
+
{
|
|
18821
|
+
externalModelId: "gpt-6-1-terra-xhigh",
|
|
18822
|
+
kind: "provider_model",
|
|
18823
|
+
provider: "cognition",
|
|
18824
|
+
resolution: {
|
|
18825
|
+
modelId: "gpt-6.1-terra",
|
|
18826
|
+
status: "mapped"
|
|
18827
|
+
},
|
|
18828
|
+
sourceText: "GPT-6.1 Terra XHigh Thinking"
|
|
18829
|
+
},
|
|
18446
18830
|
{
|
|
18447
18831
|
externalModelId: "gpt-6-astra-high",
|
|
18448
18832
|
kind: "provider_model",
|
|
@@ -18616,64 +19000,64 @@ var init_bundled_recommended_list = __esm(() => {
|
|
|
18616
19000
|
id: "google-antigravity",
|
|
18617
19001
|
inclusions: [
|
|
18618
19002
|
{
|
|
18619
|
-
externalModelId: "claude-
|
|
19003
|
+
externalModelId: "claude-sonnet-5-5-high",
|
|
18620
19004
|
kind: "provider_model",
|
|
18621
19005
|
provider: "antigravity",
|
|
18622
19006
|
resolution: {
|
|
18623
|
-
modelId: "claude-
|
|
19007
|
+
modelId: "claude-sonnet-5-5",
|
|
18624
19008
|
status: "mapped"
|
|
18625
19009
|
},
|
|
18626
|
-
sourceText: "claude-
|
|
19010
|
+
sourceText: "claude-sonnet-5-5-high"
|
|
18627
19011
|
},
|
|
18628
19012
|
{
|
|
18629
|
-
externalModelId: "gemini-4-
|
|
19013
|
+
externalModelId: "gemini-4-hydrogen-high",
|
|
18630
19014
|
kind: "provider_model",
|
|
18631
19015
|
provider: "antigravity",
|
|
18632
19016
|
resolution: {
|
|
18633
|
-
modelId: "gemini-4-
|
|
19017
|
+
modelId: "gemini-4-hydrogen",
|
|
18634
19018
|
status: "mapped"
|
|
18635
19019
|
},
|
|
18636
|
-
sourceText: "gemini-4-
|
|
19020
|
+
sourceText: "gemini-4-hydrogen-high"
|
|
18637
19021
|
},
|
|
18638
19022
|
{
|
|
18639
|
-
externalModelId: "
|
|
19023
|
+
externalModelId: "gemini-4-hydrogen-low",
|
|
18640
19024
|
kind: "provider_model",
|
|
18641
19025
|
provider: "antigravity",
|
|
18642
19026
|
resolution: {
|
|
18643
|
-
modelId: "
|
|
19027
|
+
modelId: "gemini-4-hydrogen",
|
|
18644
19028
|
status: "mapped"
|
|
18645
19029
|
},
|
|
18646
|
-
sourceText: "
|
|
19030
|
+
sourceText: "gemini-4-hydrogen-low"
|
|
18647
19031
|
},
|
|
18648
19032
|
{
|
|
18649
|
-
externalModelId: "gemini-4-carbon-
|
|
19033
|
+
externalModelId: "gemini-4-carbon-high",
|
|
18650
19034
|
kind: "provider_model",
|
|
18651
19035
|
provider: "antigravity",
|
|
18652
19036
|
resolution: {
|
|
18653
19037
|
modelId: "gemini-4-carbon",
|
|
18654
19038
|
status: "mapped"
|
|
18655
19039
|
},
|
|
18656
|
-
sourceText: "gemini-4-carbon-
|
|
19040
|
+
sourceText: "gemini-4-carbon-high"
|
|
18657
19041
|
},
|
|
18658
19042
|
{
|
|
18659
|
-
externalModelId: "gemini-4-hydrogen-
|
|
19043
|
+
externalModelId: "gemini-4-hydrogen-medium",
|
|
18660
19044
|
kind: "provider_model",
|
|
18661
19045
|
provider: "antigravity",
|
|
18662
19046
|
resolution: {
|
|
18663
19047
|
modelId: "gemini-4-hydrogen",
|
|
18664
19048
|
status: "mapped"
|
|
18665
19049
|
},
|
|
18666
|
-
sourceText: "gemini-4-hydrogen-
|
|
19050
|
+
sourceText: "gemini-4-hydrogen-medium"
|
|
18667
19051
|
},
|
|
18668
19052
|
{
|
|
18669
|
-
externalModelId: "
|
|
19053
|
+
externalModelId: "claude-opus-5-5-low",
|
|
18670
19054
|
kind: "provider_model",
|
|
18671
19055
|
provider: "antigravity",
|
|
18672
19056
|
resolution: {
|
|
18673
|
-
modelId: "
|
|
19057
|
+
modelId: "claude-opus-5-5",
|
|
18674
19058
|
status: "mapped"
|
|
18675
19059
|
},
|
|
18676
|
-
sourceText: "
|
|
19060
|
+
sourceText: "claude-opus-5-5-low"
|
|
18677
19061
|
},
|
|
18678
19062
|
{
|
|
18679
19063
|
externalModelId: "gemini-4-carbon-low",
|
|
@@ -18686,94 +19070,94 @@ var init_bundled_recommended_list = __esm(() => {
|
|
|
18686
19070
|
sourceText: "gemini-4-carbon-low"
|
|
18687
19071
|
},
|
|
18688
19072
|
{
|
|
18689
|
-
externalModelId: "
|
|
19073
|
+
externalModelId: "gemini-4-hydrogen-xhigh",
|
|
18690
19074
|
kind: "provider_model",
|
|
18691
19075
|
provider: "antigravity",
|
|
18692
19076
|
resolution: {
|
|
18693
|
-
modelId: "
|
|
19077
|
+
modelId: "gemini-4-hydrogen",
|
|
18694
19078
|
status: "mapped"
|
|
18695
19079
|
},
|
|
18696
|
-
sourceText: "
|
|
19080
|
+
sourceText: "gemini-4-hydrogen-xhigh"
|
|
18697
19081
|
},
|
|
18698
19082
|
{
|
|
18699
|
-
externalModelId: "
|
|
19083
|
+
externalModelId: "gemini-4-argon-low",
|
|
18700
19084
|
kind: "provider_model",
|
|
18701
19085
|
provider: "antigravity",
|
|
18702
19086
|
resolution: {
|
|
18703
|
-
modelId: "
|
|
19087
|
+
modelId: "gemini-4-argon",
|
|
18704
19088
|
status: "mapped"
|
|
18705
19089
|
},
|
|
18706
|
-
sourceText: "
|
|
19090
|
+
sourceText: "gemini-4-argon-low"
|
|
18707
19091
|
},
|
|
18708
19092
|
{
|
|
18709
|
-
externalModelId: "gemini-4-
|
|
19093
|
+
externalModelId: "gemini-4-argon-medium",
|
|
18710
19094
|
kind: "provider_model",
|
|
18711
19095
|
provider: "antigravity",
|
|
18712
19096
|
resolution: {
|
|
18713
|
-
modelId: "gemini-4-
|
|
19097
|
+
modelId: "gemini-4-argon",
|
|
18714
19098
|
status: "mapped"
|
|
18715
19099
|
},
|
|
18716
|
-
sourceText: "gemini-4-
|
|
19100
|
+
sourceText: "gemini-4-argon-medium"
|
|
18717
19101
|
},
|
|
18718
19102
|
{
|
|
18719
|
-
externalModelId: "
|
|
19103
|
+
externalModelId: "gemini-4-carbon-medium",
|
|
18720
19104
|
kind: "provider_model",
|
|
18721
19105
|
provider: "antigravity",
|
|
18722
19106
|
resolution: {
|
|
18723
|
-
modelId: "
|
|
19107
|
+
modelId: "gemini-4-carbon",
|
|
18724
19108
|
status: "mapped"
|
|
18725
19109
|
},
|
|
18726
|
-
sourceText: "
|
|
19110
|
+
sourceText: "gemini-4-carbon-medium"
|
|
18727
19111
|
},
|
|
18728
19112
|
{
|
|
18729
|
-
externalModelId: "
|
|
19113
|
+
externalModelId: "claude-sonnet-5-5-medium",
|
|
18730
19114
|
kind: "provider_model",
|
|
18731
19115
|
provider: "antigravity",
|
|
18732
19116
|
resolution: {
|
|
18733
|
-
modelId: "
|
|
19117
|
+
modelId: "claude-sonnet-5-5",
|
|
18734
19118
|
status: "mapped"
|
|
18735
19119
|
},
|
|
18736
|
-
sourceText: "
|
|
19120
|
+
sourceText: "claude-sonnet-5-5-medium"
|
|
18737
19121
|
},
|
|
18738
19122
|
{
|
|
18739
|
-
externalModelId: "claude-
|
|
19123
|
+
externalModelId: "claude-sonnet-5-5-low",
|
|
18740
19124
|
kind: "provider_model",
|
|
18741
19125
|
provider: "antigravity",
|
|
18742
19126
|
resolution: {
|
|
18743
|
-
modelId: "claude-
|
|
19127
|
+
modelId: "claude-sonnet-5-5",
|
|
18744
19128
|
status: "mapped"
|
|
18745
19129
|
},
|
|
18746
|
-
sourceText: "claude-
|
|
19130
|
+
sourceText: "claude-sonnet-5-5-low"
|
|
18747
19131
|
},
|
|
18748
19132
|
{
|
|
18749
|
-
externalModelId: "
|
|
19133
|
+
externalModelId: "claude-opus-5-5-medium",
|
|
18750
19134
|
kind: "provider_model",
|
|
18751
19135
|
provider: "antigravity",
|
|
18752
19136
|
resolution: {
|
|
18753
|
-
modelId: "
|
|
19137
|
+
modelId: "claude-opus-5-5",
|
|
18754
19138
|
status: "mapped"
|
|
18755
19139
|
},
|
|
18756
|
-
sourceText: "
|
|
19140
|
+
sourceText: "claude-opus-5-5-medium"
|
|
18757
19141
|
},
|
|
18758
19142
|
{
|
|
18759
|
-
externalModelId: "gemini-4-argon-
|
|
19143
|
+
externalModelId: "gemini-4-argon-high",
|
|
18760
19144
|
kind: "provider_model",
|
|
18761
19145
|
provider: "antigravity",
|
|
18762
19146
|
resolution: {
|
|
18763
19147
|
modelId: "gemini-4-argon",
|
|
18764
19148
|
status: "mapped"
|
|
18765
19149
|
},
|
|
18766
|
-
sourceText: "gemini-4-argon-
|
|
19150
|
+
sourceText: "gemini-4-argon-high"
|
|
18767
19151
|
},
|
|
18768
19152
|
{
|
|
18769
|
-
externalModelId: "
|
|
19153
|
+
externalModelId: "claude-opus-5-5-high",
|
|
18770
19154
|
kind: "provider_model",
|
|
18771
19155
|
provider: "antigravity",
|
|
18772
19156
|
resolution: {
|
|
18773
|
-
modelId: "
|
|
19157
|
+
modelId: "claude-opus-5-5",
|
|
18774
19158
|
status: "mapped"
|
|
18775
19159
|
},
|
|
18776
|
-
sourceText: "
|
|
19160
|
+
sourceText: "claude-opus-5-5-high"
|
|
18777
19161
|
}
|
|
18778
19162
|
],
|
|
18779
19163
|
modelDiscovery: "client",
|
|
@@ -18831,6 +19215,16 @@ var init_bundled_recommended_list = __esm(() => {
|
|
|
18831
19215
|
},
|
|
18832
19216
|
sourceText: "gpt-6.1-sol"
|
|
18833
19217
|
},
|
|
19218
|
+
{
|
|
19219
|
+
externalModelId: "gpt-6.1-terra",
|
|
19220
|
+
kind: "provider_model",
|
|
19221
|
+
provider: "llmgateway",
|
|
19222
|
+
resolution: {
|
|
19223
|
+
modelId: "gpt-6.1-terra",
|
|
19224
|
+
status: "mapped"
|
|
19225
|
+
},
|
|
19226
|
+
sourceText: "gpt-6.1-terra"
|
|
19227
|
+
},
|
|
18834
19228
|
{
|
|
18835
19229
|
externalModelId: "gpt-6-luna",
|
|
18836
19230
|
kind: "provider_model",
|
|
@@ -19096,16 +19490,6 @@ var init_bundled_recommended_list = __esm(() => {
|
|
|
19096
19490
|
contractVersion: 3,
|
|
19097
19491
|
id: "ollama-cloud",
|
|
19098
19492
|
inclusions: [
|
|
19099
|
-
{
|
|
19100
|
-
externalModelId: "minimax-m3.1-flash",
|
|
19101
|
-
kind: "provider_model",
|
|
19102
|
-
provider: "ollamacloud",
|
|
19103
|
-
resolution: {
|
|
19104
|
-
modelId: "minimax-m3.1-flash",
|
|
19105
|
-
status: "mapped"
|
|
19106
|
-
},
|
|
19107
|
-
sourceText: "minimax-m3.1-flash"
|
|
19108
|
-
},
|
|
19109
19493
|
{
|
|
19110
19494
|
externalModelId: "mimo-v2.6-flash",
|
|
19111
19495
|
kind: "provider_model",
|
|
@@ -19127,14 +19511,14 @@ var init_bundled_recommended_list = __esm(() => {
|
|
|
19127
19511
|
sourceText: "glm-5.3-flash"
|
|
19128
19512
|
},
|
|
19129
19513
|
{
|
|
19130
|
-
externalModelId: "
|
|
19514
|
+
externalModelId: "glm-5.3",
|
|
19131
19515
|
kind: "provider_model",
|
|
19132
19516
|
provider: "ollamacloud",
|
|
19133
19517
|
resolution: {
|
|
19134
|
-
modelId: "
|
|
19518
|
+
modelId: "glm-5.3",
|
|
19135
19519
|
status: "mapped"
|
|
19136
19520
|
},
|
|
19137
|
-
sourceText: "
|
|
19521
|
+
sourceText: "glm-5.3"
|
|
19138
19522
|
},
|
|
19139
19523
|
{
|
|
19140
19524
|
externalModelId: "deepseek-v4.1-flash",
|
|
@@ -19147,14 +19531,24 @@ var init_bundled_recommended_list = __esm(() => {
|
|
|
19147
19531
|
sourceText: "deepseek-v4.1-flash"
|
|
19148
19532
|
},
|
|
19149
19533
|
{
|
|
19150
|
-
externalModelId: "
|
|
19534
|
+
externalModelId: "minimax-m3.1-flash",
|
|
19151
19535
|
kind: "provider_model",
|
|
19152
19536
|
provider: "ollamacloud",
|
|
19153
19537
|
resolution: {
|
|
19154
|
-
modelId: "
|
|
19538
|
+
modelId: "minimax-m3.1-flash",
|
|
19155
19539
|
status: "mapped"
|
|
19156
19540
|
},
|
|
19157
|
-
sourceText: "
|
|
19541
|
+
sourceText: "minimax-m3.1-flash"
|
|
19542
|
+
},
|
|
19543
|
+
{
|
|
19544
|
+
externalModelId: "kimi-k3.1-pro",
|
|
19545
|
+
kind: "provider_model",
|
|
19546
|
+
provider: "ollamacloud",
|
|
19547
|
+
resolution: {
|
|
19548
|
+
modelId: "kimi-k3.1-pro",
|
|
19549
|
+
status: "mapped"
|
|
19550
|
+
},
|
|
19551
|
+
sourceText: "kimi-k3.1-pro"
|
|
19158
19552
|
},
|
|
19159
19553
|
{
|
|
19160
19554
|
externalModelId: "mimo-v2.6-pro",
|
|
@@ -19208,6 +19602,16 @@ var init_bundled_recommended_list = __esm(() => {
|
|
|
19208
19602
|
status: "mapped"
|
|
19209
19603
|
},
|
|
19210
19604
|
sourceText: "gpt-6.1-sol"
|
|
19605
|
+
},
|
|
19606
|
+
{
|
|
19607
|
+
externalModelId: "gpt-6.1-terra",
|
|
19608
|
+
kind: "provider_model",
|
|
19609
|
+
provider: "openai",
|
|
19610
|
+
resolution: {
|
|
19611
|
+
modelId: "gpt-6.1-terra",
|
|
19612
|
+
status: "mapped"
|
|
19613
|
+
},
|
|
19614
|
+
sourceText: "gpt-6.1-terra"
|
|
19211
19615
|
}
|
|
19212
19616
|
],
|
|
19213
19617
|
modelDiscovery: "hybrid",
|
|
@@ -19409,7 +19813,7 @@ var init_bundled_recommended_list = __esm(() => {
|
|
|
19409
19813
|
}
|
|
19410
19814
|
],
|
|
19411
19815
|
routeRegistry: {
|
|
19412
|
-
generationId: "g-
|
|
19816
|
+
generationId: "g-20261115161901457-250a0705",
|
|
19413
19817
|
registry: {
|
|
19414
19818
|
contractVersion: 3,
|
|
19415
19819
|
registryVersion: "3.7.0",
|
|
@@ -21803,6 +22207,11 @@ class BaseAPIFormat {
|
|
|
21803
22207
|
getMaxToolCount() {
|
|
21804
22208
|
return null;
|
|
21805
22209
|
}
|
|
22210
|
+
declaredToolNames(names) {
|
|
22211
|
+
const limit = this.getToolNameLimit();
|
|
22212
|
+
const bindings = newToolNameBindings();
|
|
22213
|
+
return new Map(names.map((name) => [name, limit ? encodeToolName(name, limit, bindings) : name]));
|
|
22214
|
+
}
|
|
21806
22215
|
getToolNameMap() {
|
|
21807
22216
|
return this.toolNameBindings.byEncoded;
|
|
21808
22217
|
}
|
|
@@ -23086,6 +23495,9 @@ var init_gemini_api_format = __esm(() => {
|
|
|
23086
23495
|
}
|
|
23087
23496
|
return parts;
|
|
23088
23497
|
}
|
|
23498
|
+
declaredToolNames(names) {
|
|
23499
|
+
return new Map(names.map((name) => [name, sanitizeToolNameForGemini(name)]));
|
|
23500
|
+
}
|
|
23089
23501
|
convertTools(claudeRequest, _summarize = false) {
|
|
23090
23502
|
const result = convertToolsToGemini(claudeRequest.tools);
|
|
23091
23503
|
return result || [];
|
|
@@ -23119,14 +23531,13 @@ CRITICAL INSTRUCTION FOR OUTPUT FORMAT:
|
|
|
23119
23531
|
}
|
|
23120
23532
|
}
|
|
23121
23533
|
if (this.thinkingFromModelName) {
|
|
23534
|
+
payload.generationConfig.thinkingConfig = { includeThoughts: true };
|
|
23122
23535
|
if (!this.pinnedEffort && claudeRequest?.thinking?.type === "disabled") {
|
|
23123
23536
|
log(`[GeminiAPIFormat] thinking omitted (disabled) for ${this.modelId}`);
|
|
23124
23537
|
} else {
|
|
23125
23538
|
const effort = this.resolveEffortLevel(claudeRequest);
|
|
23126
23539
|
if (effort && matchesModelFamily(this.modelId, "gemini-3")) {
|
|
23127
|
-
payload.generationConfig.thinkingConfig =
|
|
23128
|
-
thinkingLevel: this.effortToThinkingLevel(effort)
|
|
23129
|
-
};
|
|
23540
|
+
payload.generationConfig.thinkingConfig.thinkingLevel = this.effortToThinkingLevel(effort);
|
|
23130
23541
|
log(`[GeminiAPIFormat] thinkingLevel -> ${payload.generationConfig.thinkingConfig.thinkingLevel} (from ${effort}) for ${this.modelId}`);
|
|
23131
23542
|
} else if (effort) {
|
|
23132
23543
|
const tier = this.effortToThinkingBudget(effort);
|
|
@@ -23137,7 +23548,7 @@ CRITICAL INSTRUCTION FOR OUTPUT FORMAT:
|
|
|
23137
23548
|
if (budget === undefined) {
|
|
23138
23549
|
log(`[GeminiAPIFormat] thinking omitted (from ${effort}): max_tokens ${claudeRequest.max_tokens} leaves no valid budget for ${this.modelId}`);
|
|
23139
23550
|
} else {
|
|
23140
|
-
payload.generationConfig.thinkingConfig =
|
|
23551
|
+
payload.generationConfig.thinkingConfig.thinkingBudget = budget;
|
|
23141
23552
|
log(`[GeminiAPIFormat] thinkingBudget -> ${budget} (from ${effort}) for ${this.modelId}`);
|
|
23142
23553
|
}
|
|
23143
23554
|
}
|
|
@@ -23563,6 +23974,9 @@ var init_ollama_api_format = __esm(() => {
|
|
|
23563
23974
|
}
|
|
23564
23975
|
return messages;
|
|
23565
23976
|
}
|
|
23977
|
+
declaredToolNames(names) {
|
|
23978
|
+
return new Map(names.map((name) => [name, null]));
|
|
23979
|
+
}
|
|
23566
23980
|
convertTools(_claudeRequest, _summarize) {
|
|
23567
23981
|
return [];
|
|
23568
23982
|
}
|
|
@@ -62906,6 +63320,145 @@ function inlineSystemAsUserText(messages) {
|
|
|
62906
63320
|
}
|
|
62907
63321
|
var REMINDER_OPEN = "<system-reminder>", textBlock2 = (text) => ({ type: "text", text });
|
|
62908
63322
|
|
|
63323
|
+
// src/handlers/shared/format/provider-refused-text.ts
|
|
63324
|
+
function skipBlankLines(text, from) {
|
|
63325
|
+
let lineStart = from;
|
|
63326
|
+
for (;; ) {
|
|
63327
|
+
let i = lineStart;
|
|
63328
|
+
while (isBlank(text[i]))
|
|
63329
|
+
i++;
|
|
63330
|
+
if (text[i] !== `
|
|
63331
|
+
`)
|
|
63332
|
+
return lineStart;
|
|
63333
|
+
lineStart = i + 1;
|
|
63334
|
+
}
|
|
63335
|
+
}
|
|
63336
|
+
function afterParagraph(text, from) {
|
|
63337
|
+
let nl = text.indexOf(`
|
|
63338
|
+
`, from);
|
|
63339
|
+
while (nl !== -1) {
|
|
63340
|
+
const next = skipBlankLines(text, nl + 1);
|
|
63341
|
+
if (next > nl + 1)
|
|
63342
|
+
return next;
|
|
63343
|
+
nl = text.indexOf(`
|
|
63344
|
+
`, nl + 1);
|
|
63345
|
+
}
|
|
63346
|
+
return -1;
|
|
63347
|
+
}
|
|
63348
|
+
function removeParagraphs(text, opening) {
|
|
63349
|
+
let out = "";
|
|
63350
|
+
let from = 0;
|
|
63351
|
+
let cutAtEnd = false;
|
|
63352
|
+
let at = text.indexOf(opening);
|
|
63353
|
+
while (at !== -1) {
|
|
63354
|
+
if (at > 0 && text[at - 1] !== `
|
|
63355
|
+
`) {
|
|
63356
|
+
at = text.indexOf(opening, at + opening.length);
|
|
63357
|
+
continue;
|
|
63358
|
+
}
|
|
63359
|
+
const next = afterParagraph(text, at);
|
|
63360
|
+
const end = next === -1 ? text.length : next;
|
|
63361
|
+
if (next === -1)
|
|
63362
|
+
cutAtEnd = true;
|
|
63363
|
+
out += text.slice(from, at);
|
|
63364
|
+
from = end;
|
|
63365
|
+
at = text.indexOf(opening, end);
|
|
63366
|
+
}
|
|
63367
|
+
if (from === 0)
|
|
63368
|
+
return text;
|
|
63369
|
+
out += text.slice(from);
|
|
63370
|
+
if (!cutAtEnd)
|
|
63371
|
+
return out;
|
|
63372
|
+
let last = out.length;
|
|
63373
|
+
while (last > 0 && isLineEnd(out[last - 1]))
|
|
63374
|
+
last--;
|
|
63375
|
+
return out.slice(0, last);
|
|
63376
|
+
}
|
|
63377
|
+
function startsListLine(text, lineStart, at) {
|
|
63378
|
+
let i = lineStart;
|
|
63379
|
+
while (text[i] === " " || text[i] === "\t")
|
|
63380
|
+
i++;
|
|
63381
|
+
if (i === at)
|
|
63382
|
+
return true;
|
|
63383
|
+
return text[i] === "-" && text[i + 1] === " " && i + 2 === at;
|
|
63384
|
+
}
|
|
63385
|
+
function removeLines(text, opening) {
|
|
63386
|
+
let out = "";
|
|
63387
|
+
let from = 0;
|
|
63388
|
+
let cutAtEnd = false;
|
|
63389
|
+
let at = text.indexOf(opening);
|
|
63390
|
+
while (at !== -1) {
|
|
63391
|
+
const lineStart = text.lastIndexOf(`
|
|
63392
|
+
`, at - 1) + 1;
|
|
63393
|
+
const nl = text.indexOf(`
|
|
63394
|
+
`, at);
|
|
63395
|
+
if (!startsListLine(text, lineStart, at)) {
|
|
63396
|
+
at = nl === -1 ? -1 : text.indexOf(opening, nl + 1);
|
|
63397
|
+
continue;
|
|
63398
|
+
}
|
|
63399
|
+
out += text.slice(from, lineStart);
|
|
63400
|
+
from = nl === -1 ? text.length : nl + 1;
|
|
63401
|
+
cutAtEnd = nl === -1;
|
|
63402
|
+
at = text.indexOf(opening, from);
|
|
63403
|
+
}
|
|
63404
|
+
if (from === 0)
|
|
63405
|
+
return text;
|
|
63406
|
+
out += text.slice(from);
|
|
63407
|
+
if (!cutAtEnd)
|
|
63408
|
+
return out;
|
|
63409
|
+
let last = out.length;
|
|
63410
|
+
if (out[last - 1] === `
|
|
63411
|
+
`)
|
|
63412
|
+
last--;
|
|
63413
|
+
if (out[last - 1] === "\r")
|
|
63414
|
+
last--;
|
|
63415
|
+
return out.slice(0, last);
|
|
63416
|
+
}
|
|
63417
|
+
function clean(text, refused) {
|
|
63418
|
+
return refused.reduce((current, { opening, unit }) => unit === "line" ? removeLines(current, opening) : removeParagraphs(current, opening), text);
|
|
63419
|
+
}
|
|
63420
|
+
function removeProviderRefusedText(req, providerName) {
|
|
63421
|
+
const openings = REFUSED_TEXT[providerName];
|
|
63422
|
+
if (!openings)
|
|
63423
|
+
return req;
|
|
63424
|
+
const system = req.system;
|
|
63425
|
+
if (typeof system === "string") {
|
|
63426
|
+
const text = clean(system, openings);
|
|
63427
|
+
return text === system ? req : { ...req, system: text };
|
|
63428
|
+
}
|
|
63429
|
+
if (!Array.isArray(system))
|
|
63430
|
+
return req;
|
|
63431
|
+
let changed = false;
|
|
63432
|
+
const blocks = [];
|
|
63433
|
+
for (const block of system) {
|
|
63434
|
+
const text = typeof block === "string" ? block : block?.type === "text" ? block.text : null;
|
|
63435
|
+
if (typeof text !== "string") {
|
|
63436
|
+
blocks.push(block);
|
|
63437
|
+
continue;
|
|
63438
|
+
}
|
|
63439
|
+
const cleaned = clean(text, openings);
|
|
63440
|
+
if (cleaned === text) {
|
|
63441
|
+
blocks.push(block);
|
|
63442
|
+
continue;
|
|
63443
|
+
}
|
|
63444
|
+
changed = true;
|
|
63445
|
+
if (cleaned.trim() === "")
|
|
63446
|
+
continue;
|
|
63447
|
+
blocks.push(typeof block === "string" ? cleaned : { ...block, text: cleaned });
|
|
63448
|
+
}
|
|
63449
|
+
return changed ? { ...req, system: blocks } : req;
|
|
63450
|
+
}
|
|
63451
|
+
var REFUSED_TEXT, isLineEnd = (ch) => ch === `
|
|
63452
|
+
` || ch === "\r", isBlank = (ch) => ch === " " || ch === "\t" || ch === "\r";
|
|
63453
|
+
var init_provider_refused_text = __esm(() => {
|
|
63454
|
+
REFUSED_TEXT = {
|
|
63455
|
+
antigravity: [
|
|
63456
|
+
{ opening: "IMPORTANT: Assist with authorized security testing", unit: "paragraph" },
|
|
63457
|
+
{ opening: "Text inside <pasted_content> tags", unit: "line" }
|
|
63458
|
+
]
|
|
63459
|
+
};
|
|
63460
|
+
});
|
|
63461
|
+
|
|
62909
63462
|
// src/handlers/shared/format/tool-name-alias.ts
|
|
62910
63463
|
function renameToolUses(content, forward) {
|
|
62911
63464
|
if (!Array.isArray(content))
|
|
@@ -62946,8 +63499,14 @@ var AGY_TOOL_ALIAS, PROVIDER_ALIASES, identity = (name) => name;
|
|
|
62946
63499
|
var init_tool_name_alias = __esm(() => {
|
|
62947
63500
|
AGY_TOOL_ALIAS = [
|
|
62948
63501
|
["Bash", "run_command"],
|
|
62949
|
-
["
|
|
63502
|
+
["Read", "read_file"],
|
|
63503
|
+
["Write", "write_file"],
|
|
62950
63504
|
["Edit", "edit_file"],
|
|
63505
|
+
["Agent", "invoke_subagent"],
|
|
63506
|
+
["AskUserQuestion", "ask_question"],
|
|
63507
|
+
["WebSearch", "search_web"],
|
|
63508
|
+
["SendMessage", "send_message"],
|
|
63509
|
+
["Workflow", "run_workflow"],
|
|
62951
63510
|
["Grep", "grep_search"],
|
|
62952
63511
|
["Glob", "find_by_name"],
|
|
62953
63512
|
["LS", "list_dir"]
|
|
@@ -62957,6 +63516,53 @@ var init_tool_name_alias = __esm(() => {
|
|
|
62957
63516
|
};
|
|
62958
63517
|
});
|
|
62959
63518
|
|
|
63519
|
+
// src/handlers/shared/format/tool-reference-text.ts
|
|
63520
|
+
function itemsAsText(items, wording) {
|
|
63521
|
+
if (!items.some(isReference))
|
|
63522
|
+
return items;
|
|
63523
|
+
const out = [];
|
|
63524
|
+
for (const item of items) {
|
|
63525
|
+
if (!isReference(item)) {
|
|
63526
|
+
out.push(item);
|
|
63527
|
+
continue;
|
|
63528
|
+
}
|
|
63529
|
+
if (typeof item.tool_name !== "string" || item.tool_name === "")
|
|
63530
|
+
continue;
|
|
63531
|
+
const name = wording.nameOf(item.tool_name);
|
|
63532
|
+
const text = wording.isDeclared(item.tool_name) ? loadedText(name) : notLoadedText(name);
|
|
63533
|
+
out.push({ type: "text", text });
|
|
63534
|
+
}
|
|
63535
|
+
return out;
|
|
63536
|
+
}
|
|
63537
|
+
function blocksAsText(blocks, wording) {
|
|
63538
|
+
let changed = false;
|
|
63539
|
+
const out = blocks.map((block) => {
|
|
63540
|
+
if (block?.type !== "tool_result" || !Array.isArray(block.content))
|
|
63541
|
+
return block;
|
|
63542
|
+
const content = itemsAsText(block.content, wording);
|
|
63543
|
+
if (content === block.content)
|
|
63544
|
+
return block;
|
|
63545
|
+
changed = true;
|
|
63546
|
+
return { ...block, content };
|
|
63547
|
+
});
|
|
63548
|
+
return changed ? out : blocks;
|
|
63549
|
+
}
|
|
63550
|
+
function toolReferencesAsText(messages, wording = {}) {
|
|
63551
|
+
const full = { nameOf: wording.nameOf ?? identity2, isDeclared: wording.isDeclared ?? always };
|
|
63552
|
+
let changed = false;
|
|
63553
|
+
const out = messages.map((message) => {
|
|
63554
|
+
if (message?.role !== "user" || !Array.isArray(message.content))
|
|
63555
|
+
return message;
|
|
63556
|
+
const content = blocksAsText(message.content, full);
|
|
63557
|
+
if (content === message.content)
|
|
63558
|
+
return message;
|
|
63559
|
+
changed = true;
|
|
63560
|
+
return { ...message, content };
|
|
63561
|
+
});
|
|
63562
|
+
return changed ? out : messages;
|
|
63563
|
+
}
|
|
63564
|
+
var identity2 = (name) => name, always = () => true, loadedText = (name) => `Loaded: ${name}. It is in your tool list now.`, notLoadedText = (name) => `Not loaded: ${name}. It is not in your tool list.`, isReference = (item) => item?.type === "tool_reference";
|
|
63565
|
+
|
|
62960
63566
|
// src/handlers/shared/responses-leg-issuer.ts
|
|
62961
63567
|
function isSameCredentialSilo(turn, next) {
|
|
62962
63568
|
return (turn.auth?.arm ?? undefined) === (next.auth?.arm ?? undefined) && turn.accountKey === next.accountKey;
|
|
@@ -67978,12 +68584,25 @@ class ComposedHandler {
|
|
|
67978
68584
|
if (!keepIdentity) {
|
|
67979
68585
|
claudeRequest = scrubHarnessIdentity(claudeRequest, identityHeadFor(this.provider.name));
|
|
67980
68586
|
}
|
|
68587
|
+
claudeRequest = removeProviderRefusedText(claudeRequest, this.provider.name);
|
|
67981
68588
|
const toolAlias = aliasToolsForProvider(claudeRequest, this.provider.name);
|
|
67982
68589
|
claudeRequest = toolAlias.request;
|
|
67983
68590
|
const withInlineSystem = inlineSystemAsUserText(claudeRequest.messages);
|
|
67984
68591
|
if (withInlineSystem !== claudeRequest.messages) {
|
|
67985
68592
|
claudeRequest = { ...claudeRequest, messages: withInlineSystem };
|
|
67986
68593
|
}
|
|
68594
|
+
let declaredNames;
|
|
68595
|
+
const sentName = (name) => {
|
|
68596
|
+
declaredNames ??= adapter.declaredToolNames((claudeRequest.tools ?? []).slice(0, adapter.getMaxToolCount() ?? undefined).map((tool) => tool?.name).filter((toolName) => typeof toolName === "string"));
|
|
68597
|
+
return declaredNames.get(toolAlias.forward(name)) ?? null;
|
|
68598
|
+
};
|
|
68599
|
+
const withToolReferences = toolReferencesAsText(claudeRequest.messages, {
|
|
68600
|
+
nameOf: (name) => sentName(name) ?? toolAlias.forward(name),
|
|
68601
|
+
isDeclared: (name) => sentName(name) !== null
|
|
68602
|
+
});
|
|
68603
|
+
if (withToolReferences !== claudeRequest.messages) {
|
|
68604
|
+
claudeRequest = { ...claudeRequest, messages: withToolReferences };
|
|
68605
|
+
}
|
|
67987
68606
|
let messages = adapter.convertMessages(claudeRequest, undefined);
|
|
67988
68607
|
let tools = adapter.convertTools(claudeRequest, this.options.summarizeTools);
|
|
67989
68608
|
const maxToolCount = adapter.getMaxToolCount();
|
|
@@ -69642,6 +70261,7 @@ var init_composed_handler = __esm(() => {
|
|
|
69642
70261
|
init_connection_error();
|
|
69643
70262
|
init_devin_stream_head_sniffer();
|
|
69644
70263
|
init_identity_filter();
|
|
70264
|
+
init_provider_refused_text();
|
|
69645
70265
|
init_tool_name_alias();
|
|
69646
70266
|
init_model_unsupported();
|
|
69647
70267
|
init_quota_exhaustion();
|
|
@@ -109928,7 +110548,7 @@ async function readMagmuxVersion(found) {
|
|
|
109928
110548
|
const out = await runMagmuxVersion(found, MAGMUX_VERSION_TIMEOUT_MS);
|
|
109929
110549
|
return out.match(VERSION_PATTERN)?.[1] ?? "";
|
|
109930
110550
|
}
|
|
109931
|
-
function runMagmuxVersion(found, timeoutMs) {
|
|
110551
|
+
function runMagmuxVersion(found, timeoutMs, drainMs = EXIT_DRAIN_MS) {
|
|
109932
110552
|
return new Promise((resolveRun, rejectRun) => {
|
|
109933
110553
|
let settled = false;
|
|
109934
110554
|
let child;
|
|
@@ -109936,8 +110556,11 @@ function runMagmuxVersion(found, timeoutMs) {
|
|
|
109936
110556
|
const timer = setTimeout(() => {
|
|
109937
110557
|
const ranAt = Math.round(performance.now() - startedAt);
|
|
109938
110558
|
const code = child?.exitCode ?? child?.signalCode ?? null;
|
|
109939
|
-
|
|
109940
|
-
|
|
110559
|
+
if (code !== null) {
|
|
110560
|
+
setTimeout(() => fail(`exited (${code}) but no exit event within ${drainMs + EXIT_DRAIN_MS} ms`), drainMs + EXIT_DRAIN_MS);
|
|
110561
|
+
return;
|
|
110562
|
+
}
|
|
110563
|
+
fail(`no answer in ${timeoutMs} ms (timer ran at ${ranAt} ms; child still running)`);
|
|
109941
110564
|
try {
|
|
109942
110565
|
child?.kill("SIGKILL");
|
|
109943
110566
|
} catch {}
|
|
@@ -109979,7 +110602,7 @@ function runMagmuxVersion(found, timeoutMs) {
|
|
|
109979
110602
|
if (code === 0 || VERSION_PATTERN.test(out))
|
|
109980
110603
|
return done();
|
|
109981
110604
|
fail(`exited with ${code ?? signal}${out.trim() ? `: ${out.trim()}` : ""}`);
|
|
109982
|
-
},
|
|
110605
|
+
}, drainMs);
|
|
109983
110606
|
});
|
|
109984
110607
|
} catch (e) {
|
|
109985
110608
|
fail(e instanceof Error ? e.message : String(e));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claudish",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.26.1",
|
|
4
4
|
"description": "Run Claude Code with any model - OpenRouter, Ollama, LM Studio & local models",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -74,10 +74,10 @@
|
|
|
74
74
|
"ai"
|
|
75
75
|
],
|
|
76
76
|
"optionalDependencies": {
|
|
77
|
-
"@claudish/magmux-darwin-arm64": "14.
|
|
78
|
-
"@claudish/magmux-darwin-x64": "14.
|
|
79
|
-
"@claudish/magmux-linux-arm64": "14.
|
|
80
|
-
"@claudish/magmux-linux-x64": "14.
|
|
77
|
+
"@claudish/magmux-darwin-arm64": "14.26.1",
|
|
78
|
+
"@claudish/magmux-darwin-x64": "14.26.1",
|
|
79
|
+
"@claudish/magmux-linux-arm64": "14.26.1",
|
|
80
|
+
"@claudish/magmux-linux-x64": "14.26.1"
|
|
81
81
|
},
|
|
82
82
|
"author": "Jack Rudenko <i@madappgang.com>",
|
|
83
83
|
"license": "MIT",
|