claudish 14.28.1 → 14.28.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -5542,7 +5542,7 @@ var init_env_placeholder = __esm(() => {
5542
5542
  });
5543
5543
 
5544
5544
  // src/version.ts
5545
- var VERSION = "14.28.1";
5545
+ var VERSION = "14.28.3";
5546
5546
 
5547
5547
  // src/redact.ts
5548
5548
  function isPlaceholder(value) {
@@ -12914,128 +12914,6 @@ var init_bundled_recommended_list = __esm(() => {
12914
12914
  ]
12915
12915
  }
12916
12916
  },
12917
- "gpt-6-astra": {
12918
- code_review: {
12919
- basis: "owner_choice",
12920
- effort: "xhigh",
12921
- sendableOn: [
12922
- {
12923
- encoding: "request_parameter",
12924
- externalModelId: "gpt-6-astra",
12925
- routeId: "openai",
12926
- routeProfileId: "codex-subscription"
12927
- }
12928
- ]
12929
- },
12930
- debugging: {
12931
- basis: "vendor_guidance",
12932
- effort: "high",
12933
- sendableOn: [
12934
- {
12935
- encoding: "request_parameter",
12936
- externalModelId: "gpt-6-astra",
12937
- routeId: "openai",
12938
- routeProfileId: "codex-subscription"
12939
- }
12940
- ]
12941
- },
12942
- frontend_ui: {
12943
- basis: "owner_choice",
12944
- effort: "xhigh",
12945
- sendableOn: [
12946
- {
12947
- encoding: "request_parameter",
12948
- externalModelId: "gpt-6-astra",
12949
- routeId: "openai",
12950
- routeProfileId: "codex-subscription"
12951
- }
12952
- ]
12953
- },
12954
- implementation: {
12955
- basis: "benchmark_knee",
12956
- effort: "xhigh",
12957
- sendableOn: [
12958
- {
12959
- encoding: "request_parameter",
12960
- externalModelId: "gpt-6-astra",
12961
- routeId: "openai",
12962
- routeProfileId: "codex-subscription"
12963
- }
12964
- ]
12965
- },
12966
- long_context: {
12967
- basis: "benchmark_knee",
12968
- effort: "low",
12969
- sendableOn: [
12970
- {
12971
- encoding: "request_parameter",
12972
- externalModelId: "gpt-6-astra",
12973
- routeId: "openai",
12974
- routeProfileId: "codex-subscription"
12975
- }
12976
- ]
12977
- },
12978
- planning: {
12979
- basis: "benchmark_knee",
12980
- effort: "max",
12981
- sendableOn: [
12982
- {
12983
- encoding: "request_parameter",
12984
- externalModelId: "gpt-6-astra",
12985
- routeId: "openai",
12986
- routeProfileId: "codex-subscription"
12987
- }
12988
- ]
12989
- },
12990
- quick_edit: {
12991
- basis: "vendor_guidance",
12992
- effort: "low",
12993
- sendableOn: [
12994
- {
12995
- encoding: "request_parameter",
12996
- externalModelId: "gpt-6-astra",
12997
- routeId: "openai",
12998
- routeProfileId: "codex-subscription"
12999
- }
13000
- ]
13001
- },
13002
- research: {
13003
- basis: "benchmark_knee",
13004
- effort: "xhigh",
13005
- sendableOn: [
13006
- {
13007
- encoding: "request_parameter",
13008
- externalModelId: "gpt-6-astra",
13009
- routeId: "openai",
13010
- routeProfileId: "codex-subscription"
13011
- }
13012
- ]
13013
- },
13014
- terminal_ops: {
13015
- basis: "benchmark_knee",
13016
- effort: "max",
13017
- sendableOn: [
13018
- {
13019
- encoding: "request_parameter",
13020
- externalModelId: "gpt-6-astra",
13021
- routeId: "openai",
13022
- routeProfileId: "codex-subscription"
13023
- }
13024
- ]
13025
- },
13026
- tool_automation: {
13027
- basis: "benchmark_knee",
13028
- effort: "xhigh",
13029
- sendableOn: [
13030
- {
13031
- encoding: "request_parameter",
13032
- externalModelId: "gpt-6-astra",
13033
- routeId: "openai",
13034
- routeProfileId: "codex-subscription"
13035
- }
13036
- ]
13037
- }
13038
- },
13039
12917
  "gpt-6-luna": {
13040
12918
  code_review: {
13041
12919
  basis: "vendor_guidance",
@@ -13170,140 +13048,6 @@ var init_bundled_recommended_list = __esm(() => {
13170
13048
  ]
13171
13049
  }
13172
13050
  },
13173
- "gpt-6.1-sol": {
13174
- code_review: {
13175
- basis: "vendor_guidance",
13176
- effort: "xhigh",
13177
- sendableOn: [
13178
- {
13179
- encoding: "request_parameter",
13180
- externalModelId: "gpt-6.1-sol",
13181
- routeId: "openai",
13182
- routeProfileId: "codex-subscription"
13183
- }
13184
- ]
13185
- },
13186
- debugging: {
13187
- basis: "vendor_guidance",
13188
- effort: "high",
13189
- sendableOn: [
13190
- {
13191
- encoding: "request_parameter",
13192
- externalModelId: "gpt-6.1-sol",
13193
- routeId: "openai",
13194
- routeProfileId: "codex-subscription"
13195
- }
13196
- ]
13197
- },
13198
- default: {
13199
- basis: "vendor_default",
13200
- effort: "medium",
13201
- sendableOn: [
13202
- {
13203
- encoding: "request_parameter",
13204
- externalModelId: "gpt-6.1-sol",
13205
- routeId: "openai",
13206
- routeProfileId: "codex-subscription"
13207
- }
13208
- ]
13209
- },
13210
- frontend_ui: {
13211
- basis: "owner_choice",
13212
- effort: "high",
13213
- sendableOn: [
13214
- {
13215
- encoding: "request_parameter",
13216
- externalModelId: "gpt-6.1-sol",
13217
- routeId: "openai",
13218
- routeProfileId: "codex-subscription"
13219
- }
13220
- ]
13221
- },
13222
- implementation: {
13223
- basis: "benchmark_knee",
13224
- effort: "max",
13225
- sendableOn: [
13226
- {
13227
- encoding: "request_parameter",
13228
- externalModelId: "gpt-6.1-sol",
13229
- routeId: "openai",
13230
- routeProfileId: "codex-subscription"
13231
- }
13232
- ]
13233
- },
13234
- long_context: {
13235
- basis: "benchmark_knee",
13236
- effort: "low",
13237
- sendableOn: [
13238
- {
13239
- encoding: "request_parameter",
13240
- externalModelId: "gpt-6.1-sol",
13241
- routeId: "openai",
13242
- routeProfileId: "codex-subscription"
13243
- }
13244
- ]
13245
- },
13246
- planning: {
13247
- basis: "benchmark_knee",
13248
- effort: "max",
13249
- sendableOn: [
13250
- {
13251
- encoding: "request_parameter",
13252
- externalModelId: "gpt-6.1-sol",
13253
- routeId: "openai",
13254
- routeProfileId: "codex-subscription"
13255
- }
13256
- ]
13257
- },
13258
- quick_edit: {
13259
- basis: "vendor_guidance",
13260
- effort: "low",
13261
- sendableOn: [
13262
- {
13263
- encoding: "request_parameter",
13264
- externalModelId: "gpt-6.1-sol",
13265
- routeId: "openai",
13266
- routeProfileId: "codex-subscription"
13267
- }
13268
- ]
13269
- },
13270
- research: {
13271
- basis: "benchmark_knee",
13272
- effort: "max",
13273
- sendableOn: [
13274
- {
13275
- encoding: "request_parameter",
13276
- externalModelId: "gpt-6.1-sol",
13277
- routeId: "openai",
13278
- routeProfileId: "codex-subscription"
13279
- }
13280
- ]
13281
- },
13282
- terminal_ops: {
13283
- basis: "benchmark_knee",
13284
- effort: "xhigh",
13285
- sendableOn: [
13286
- {
13287
- encoding: "request_parameter",
13288
- externalModelId: "gpt-6.1-sol",
13289
- routeId: "openai",
13290
- routeProfileId: "codex-subscription"
13291
- }
13292
- ]
13293
- },
13294
- tool_automation: {
13295
- basis: "benchmark_knee",
13296
- effort: "high",
13297
- sendableOn: [
13298
- {
13299
- encoding: "request_parameter",
13300
- externalModelId: "gpt-6.1-sol",
13301
- routeId: "openai",
13302
- routeProfileId: "codex-subscription"
13303
- }
13304
- ]
13305
- }
13306
- },
13307
13051
  "gpt-6.1-terra": {
13308
13052
  code_review: {
13309
13053
  basis: "vendor_guidance",
@@ -14145,7 +13889,7 @@ var init_bundled_recommended_list = __esm(() => {
14145
13889
  }
14146
13890
  }
14147
13891
  },
14148
- fetchedAt: "2026-11-17T00:17:14.520Z",
13892
+ fetchedAt: "2026-11-19T03:05:24.302Z",
14149
13893
  format: 1,
14150
13894
  recommendations: {
14151
13895
  contractVersion: 3,
@@ -14155,7 +13899,7 @@ var init_bundled_recommended_list = __esm(() => {
14155
13899
  tier: "flagship"
14156
13900
  },
14157
13901
  {
14158
- modelId: "gpt-6.1-sol",
13902
+ modelId: "gpt-6.2-sol",
14159
13903
  tier: "flagship"
14160
13904
  },
14161
13905
  {
@@ -14247,15 +13991,15 @@ var init_bundled_recommended_list = __esm(() => {
14247
13991
  tier: "luxury"
14248
13992
  },
14249
13993
  {
14250
- modelId: "gpt-6-astra",
13994
+ modelId: "gpt-6.2-astra",
14251
13995
  tier: "luxury"
14252
13996
  }
14253
13997
  ],
14254
- generationId: "g-20261116161706980-7c7c9818"
13998
+ generationId: "g-20261118161838470-f3b90f5e"
14255
13999
  },
14256
14000
  source: "https://us-central1-claudish-6da10.cloudfunctions.net"
14257
14001
  },
14258
- catalogGenerationId: "g-20261116161706980-7c7c9818",
14002
+ catalogGenerationId: "g-20261118161838470-f3b90f5e",
14259
14003
  entries: [
14260
14004
  {
14261
14005
  aggregators: [
@@ -14830,8 +14574,8 @@ var init_bundled_recommended_list = __esm(() => {
14830
14574
  aliases: [
14831
14575
  "anthropic/claude-opus-5.5",
14832
14576
  "claude-opus-5-5-low",
14833
- "claude-opus-5-5-medium",
14834
14577
  "claude-opus-5-5-high",
14578
+ "claude-opus-5-5-medium",
14835
14579
  "claude-opus-5-5-max",
14836
14580
  "claude-opus-5-5-xhigh"
14837
14581
  ],
@@ -15023,8 +14767,8 @@ var init_bundled_recommended_list = __esm(() => {
15023
14767
  "anthropic/claude-sonnet-5.5",
15024
14768
  "claude-sonnet-5.5",
15025
14769
  "claude-sonnet-5-5-medium",
15026
- "claude-sonnet-5-5-high",
15027
14770
  "claude-sonnet-5-5-low",
14771
+ "claude-sonnet-5-5-high",
15028
14772
  "claude-sonnet-5-5-max",
15029
14773
  "claude-sonnet-5-5-xhigh"
15030
14774
  ],
@@ -15442,8 +15186,8 @@ var init_bundled_recommended_list = __esm(() => {
15442
15186
  ],
15443
15187
  aliases: [
15444
15188
  "google/gemini-4-carbon",
15445
- "gemini-4-carbon-medium",
15446
15189
  "gemini-4-carbon-low",
15190
+ "gemini-4-carbon-medium",
15447
15191
  "gemini-4-carbon-high"
15448
15192
  ],
15449
15193
  contextWindow: 1048576,
@@ -15597,10 +15341,10 @@ var init_bundled_recommended_list = __esm(() => {
15597
15341
  ],
15598
15342
  aliases: [
15599
15343
  "google/gemini-4-hydrogen",
15600
- "gemini-4-hydrogen-xhigh",
15601
- "gemini-4-hydrogen-medium",
15602
15344
  "gemini-4-hydrogen-high",
15603
- "gemini-4-hydrogen-low"
15345
+ "gemini-4-hydrogen-xhigh",
15346
+ "gemini-4-hydrogen-low",
15347
+ "gemini-4-hydrogen-medium"
15604
15348
  ],
15605
15349
  contextWindow: 1048576,
15606
15350
  contractVersion: 3,
@@ -16001,7 +15745,6 @@ var init_bundled_recommended_list = __esm(() => {
16001
15745
  "z-ai/glm-5.3-flash",
16002
15746
  "zai-org/GLM-5.3-Flash",
16003
15747
  "accounts/fireworks/models/glm-5p3-flash",
16004
- "glm-5.3-flash-free",
16005
15748
  "glm-5.3-flash-el",
16006
15749
  "GLM-5.3-Flash",
16007
15750
  "glm-5-3-flash-high",
@@ -16059,7 +15802,7 @@ var init_bundled_recommended_list = __esm(() => {
16059
15802
  {
16060
15803
  aggregators: [
16061
15804
  {
16062
- externalModelId: "gpt-6-astra",
15805
+ externalModelId: "gpt-6-luna",
16063
15806
  reasoning: {
16064
15807
  mode: {
16065
15808
  status: "rejected"
@@ -16078,9 +15821,12 @@ var init_bundled_recommended_list = __esm(() => {
16078
15821
  api: "responses",
16079
15822
  evidence: [],
16080
15823
  reasoning: {
16081
- disable: {
16082
- status: "not_applicable"
16083
- },
15824
+ disable: [
15825
+ {
15826
+ path: "/reasoning/effort",
15827
+ value: "none"
15828
+ }
15829
+ ],
16084
15830
  effort: {
16085
15831
  default: "medium",
16086
15832
  path: "/reasoning/effort",
@@ -16089,6 +15835,7 @@ var init_bundled_recommended_list = __esm(() => {
16089
15835
  low: "low",
16090
15836
  max: "max",
16091
15837
  medium: "medium",
15838
+ none: "none",
16092
15839
  xhigh: "xhigh"
16093
15840
  }
16094
15841
  },
@@ -16120,32 +15867,35 @@ var init_bundled_recommended_list = __esm(() => {
16120
15867
  }
16121
15868
  },
16122
15869
  {
16123
- externalModelId: "gpt-6-astra",
15870
+ externalModelId: "gpt-6-luna",
16124
15871
  pricing: {
16125
- cachedRead: 1,
16126
- cachedWrite: 12.5,
16127
- input: 10,
16128
- output: 50,
15872
+ cachedRead: 0.01,
15873
+ cachedWrite: 0.125,
15874
+ input: 0.1,
15875
+ output: 0.5,
16129
15876
  type: "flat"
16130
15877
  },
16131
15878
  reasoning: {
16132
15879
  mode: {
16133
- default: "standard",
16134
- status: "supported",
16135
- values: [
16136
- "standard",
16137
- "pro"
16138
- ]
15880
+ status: "unknown"
16139
15881
  },
16140
15882
  request: {
16141
15883
  api: "responses",
15884
+ disable: [
15885
+ {
15886
+ path: "/reasoning/effort",
15887
+ value: "none"
15888
+ }
15889
+ ],
16142
15890
  effort: {
15891
+ default: "medium",
16143
15892
  path: "/reasoning/effort",
16144
15893
  values: {
16145
15894
  high: "high",
16146
15895
  low: "low",
16147
15896
  max: "max",
16148
15897
  medium: "medium",
15898
+ none: "none",
16149
15899
  xhigh: "xhigh"
16150
15900
  }
16151
15901
  },
@@ -16162,19 +15912,21 @@ var init_bundled_recommended_list = __esm(() => {
16162
15912
  api: "responses",
16163
15913
  evidence: [],
16164
15914
  reasoning: {
16165
- disable: {
16166
- status: "not_applicable"
16167
- },
15915
+ disable: [
15916
+ {
15917
+ path: "/reasoning/effort",
15918
+ value: "none"
15919
+ }
15920
+ ],
16168
15921
  effort: {
16169
- default: {
16170
- status: "unknown"
16171
- },
15922
+ default: "medium",
16172
15923
  path: "/reasoning/effort",
16173
15924
  values: {
16174
15925
  high: "high",
16175
15926
  low: "low",
16176
15927
  max: "max",
16177
15928
  medium: "medium",
15929
+ none: "none",
16178
15930
  xhigh: "xhigh"
16179
15931
  }
16180
15932
  },
@@ -16182,31 +15934,12 @@ var init_bundled_recommended_list = __esm(() => {
16182
15934
  status: "not_applicable"
16183
15935
  },
16184
15936
  mode: {
16185
- access: "open",
16186
- default: "standard",
16187
- echo: "/reasoning/mode",
16188
- headers: [],
16189
- path: "/reasoning/mode",
16190
- status: "supported",
16191
- values: {
16192
- pro: "pro",
16193
- standard: "standard"
16194
- }
15937
+ status: "unknown"
16195
15938
  },
16196
15939
  status: "supported"
16197
15940
  },
16198
15941
  speed: {
16199
- access: "open",
16200
- default: "standard",
16201
- echo: "/service_tier",
16202
- headers: [],
16203
- path: "/service_tier",
16204
- status: "supported",
16205
- values: {
16206
- fast: "priority",
16207
- flex: "flex",
16208
- standard: "default"
16209
- }
15942
+ status: "unknown"
16210
15943
  },
16211
15944
  status: "known",
16212
15945
  tokenParam: "max_output_tokens",
@@ -16215,16 +15948,17 @@ var init_bundled_recommended_list = __esm(() => {
16215
15948
  }
16216
15949
  ],
16217
15950
  aliases: [
16218
- "openai/gpt-6-astra",
16219
- "gpt-6-astra-high",
16220
- "gpt-6-astra-low",
16221
- "gpt-6-astra-max",
16222
- "gpt-6-astra-medium",
16223
- "gpt-6-astra-xhigh"
15951
+ "openai/gpt-6-luna",
15952
+ "gpt-6-luna-high",
15953
+ "gpt-6-luna-low",
15954
+ "gpt-6-luna-max",
15955
+ "gpt-6-luna-medium",
15956
+ "gpt-6-luna-none",
15957
+ "gpt-6-luna-xhigh"
16224
15958
  ],
16225
15959
  contextWindow: 1050000,
16226
15960
  contractVersion: 3,
16227
- displayName: "GPT-6 Astra",
15961
+ displayName: "GPT-6 Luna",
16228
15962
  endpoints: {
16229
15963
  openai: {
16230
15964
  api: "responses",
@@ -16236,7 +15970,7 @@ var init_bundled_recommended_list = __esm(() => {
16236
15970
  "text"
16237
15971
  ],
16238
15972
  maxOutputTokens: 128000,
16239
- modelId: "gpt-6-astra",
15973
+ modelId: "gpt-6-luna",
16240
15974
  outputModalities: [
16241
15975
  "text"
16242
15976
  ],
@@ -16249,17 +15983,19 @@ var init_bundled_recommended_list = __esm(() => {
16249
15983
  "xhigh",
16250
15984
  "high",
16251
15985
  "medium",
16252
- "low"
15986
+ "low",
15987
+ "none"
16253
15988
  ],
16254
- mandatory: true,
15989
+ mandatory: false,
16255
15990
  supported: true
16256
15991
  },
16257
- releaseDate: "2026-09-03",
15992
+ releaseDate: "2026-09-22",
16258
15993
  status: "active",
16259
15994
  subscriptionPlanIds: [
16260
15995
  "cognition-devin",
16261
15996
  "llm-gateway-devpass",
16262
- "openai-codex"
15997
+ "openai-codex",
15998
+ "opencode-go"
16263
15999
  ],
16264
16000
  supportsTools: true,
16265
16001
  supportsVision: true,
@@ -16270,17 +16006,17 @@ var init_bundled_recommended_list = __esm(() => {
16270
16006
  {
16271
16007
  aggregators: [],
16272
16008
  aliases: [
16273
- "openai/gpt-6-astra-pro"
16009
+ "openai/gpt-6-luna-pro"
16274
16010
  ],
16275
16011
  contextWindow: 1050000,
16276
16012
  contractVersion: 3,
16277
- displayName: "GPT-6 Astra Pro",
16013
+ displayName: "GPT-6 Luna Pro",
16278
16014
  inputModalities: [
16279
16015
  "file",
16280
16016
  "image",
16281
16017
  "text"
16282
16018
  ],
16283
- modelId: "gpt-6-astra-pro",
16019
+ modelId: "gpt-6-luna-pro",
16284
16020
  outputModalities: [
16285
16021
  "text"
16286
16022
  ],
@@ -16293,14 +16029,15 @@ var init_bundled_recommended_list = __esm(() => {
16293
16029
  "xhigh",
16294
16030
  "high",
16295
16031
  "medium",
16296
- "low"
16032
+ "low",
16033
+ "none"
16297
16034
  ],
16298
- mandatory: true,
16035
+ mandatory: false,
16299
16036
  supported: true
16300
16037
  },
16301
- releaseDate: "2026-09-03",
16038
+ releaseDate: "2026-09-22",
16302
16039
  routeVariant: {
16303
- baseModelId: "gpt-6-astra",
16040
+ baseModelId: "gpt-6-luna",
16304
16041
  kind: "provider-preset",
16305
16042
  preset: "reasoning.mode=pro",
16306
16043
  provider: "openrouter"
@@ -16314,7 +16051,7 @@ var init_bundled_recommended_list = __esm(() => {
16314
16051
  {
16315
16052
  aggregators: [
16316
16053
  {
16317
- externalModelId: "gpt-6-luna",
16054
+ externalModelId: "gpt-6.1-terra",
16318
16055
  reasoning: {
16319
16056
  mode: {
16320
16057
  status: "rejected"
@@ -16340,7 +16077,7 @@ var init_bundled_recommended_list = __esm(() => {
16340
16077
  }
16341
16078
  ],
16342
16079
  effort: {
16343
- default: "medium",
16080
+ default: "low",
16344
16081
  path: "/reasoning/effort",
16345
16082
  values: {
16346
16083
  high: "high",
@@ -16379,22 +16116,17 @@ var init_bundled_recommended_list = __esm(() => {
16379
16116
  }
16380
16117
  },
16381
16118
  {
16382
- externalModelId: "gpt-6-luna",
16119
+ externalModelId: "gpt-6.1-terra",
16383
16120
  pricing: {
16384
- cachedRead: 0.01,
16385
- cachedWrite: 0.125,
16386
- input: 0.1,
16387
- output: 0.5,
16121
+ cachedRead: 0.05,
16122
+ cachedWrite: 1.25,
16123
+ input: 1,
16124
+ output: 5,
16388
16125
  type: "flat"
16389
16126
  },
16390
16127
  reasoning: {
16391
16128
  mode: {
16392
- default: "standard",
16393
- status: "supported",
16394
- values: [
16395
- "standard",
16396
- "pro"
16397
- ]
16129
+ status: "unknown"
16398
16130
  },
16399
16131
  request: {
16400
16132
  api: "responses",
@@ -16451,31 +16183,12 @@ var init_bundled_recommended_list = __esm(() => {
16451
16183
  status: "not_applicable"
16452
16184
  },
16453
16185
  mode: {
16454
- access: "open",
16455
- default: "standard",
16456
- echo: "/reasoning/mode",
16457
- headers: [],
16458
- path: "/reasoning/mode",
16459
- status: "supported",
16460
- values: {
16461
- pro: "pro",
16462
- standard: "standard"
16463
- }
16186
+ status: "unknown"
16464
16187
  },
16465
16188
  status: "supported"
16466
16189
  },
16467
16190
  speed: {
16468
- access: "open",
16469
- default: "standard",
16470
- echo: "/service_tier",
16471
- headers: [],
16472
- path: "/service_tier",
16473
- status: "supported",
16474
- values: {
16475
- fast: "priority",
16476
- flex: "flex",
16477
- standard: "default"
16478
- }
16191
+ status: "unknown"
16479
16192
  },
16480
16193
  status: "known",
16481
16194
  tokenParam: "max_output_tokens",
@@ -16484,17 +16197,16 @@ var init_bundled_recommended_list = __esm(() => {
16484
16197
  }
16485
16198
  ],
16486
16199
  aliases: [
16487
- "openai/gpt-6-luna",
16488
- "gpt-6-luna-high",
16489
- "gpt-6-luna-low",
16490
- "gpt-6-luna-max",
16491
- "gpt-6-luna-medium",
16492
- "gpt-6-luna-none",
16493
- "gpt-6-luna-xhigh"
16200
+ "openai/gpt-6.1-terra",
16201
+ "gpt-6-1-terra-high",
16202
+ "gpt-6-1-terra-low",
16203
+ "gpt-6-1-terra-max",
16204
+ "gpt-6-1-terra-medium",
16205
+ "gpt-6-1-terra-xhigh"
16494
16206
  ],
16495
16207
  contextWindow: 1050000,
16496
16208
  contractVersion: 3,
16497
- displayName: "GPT-6 Luna",
16209
+ displayName: "GPT-6.1 Terra",
16498
16210
  endpoints: {
16499
16211
  openai: {
16500
16212
  api: "responses",
@@ -16506,7 +16218,7 @@ var init_bundled_recommended_list = __esm(() => {
16506
16218
  "text"
16507
16219
  ],
16508
16220
  maxOutputTokens: 128000,
16509
- modelId: "gpt-6-luna",
16221
+ modelId: "gpt-6.1-terra",
16510
16222
  outputModalities: [
16511
16223
  "text"
16512
16224
  ],
@@ -16525,13 +16237,12 @@ var init_bundled_recommended_list = __esm(() => {
16525
16237
  mandatory: false,
16526
16238
  supported: true
16527
16239
  },
16528
- releaseDate: "2026-09-22",
16240
+ releaseDate: "2026-10-26",
16529
16241
  status: "active",
16530
16242
  subscriptionPlanIds: [
16531
16243
  "cognition-devin",
16532
16244
  "llm-gateway-devpass",
16533
- "openai-codex",
16534
- "opencode-go"
16245
+ "openai-codex"
16535
16246
  ],
16536
16247
  supportsTools: true,
16537
16248
  supportsVision: true,
@@ -16542,17 +16253,17 @@ var init_bundled_recommended_list = __esm(() => {
16542
16253
  {
16543
16254
  aggregators: [],
16544
16255
  aliases: [
16545
- "openai/gpt-6-luna-pro"
16256
+ "openai/gpt-6.1-terra-pro"
16546
16257
  ],
16547
16258
  contextWindow: 1050000,
16548
16259
  contractVersion: 3,
16549
- displayName: "GPT-6 Luna Pro",
16260
+ displayName: "GPT-6.1 Terra Pro",
16550
16261
  inputModalities: [
16551
16262
  "file",
16552
16263
  "image",
16553
16264
  "text"
16554
16265
  ],
16555
- modelId: "gpt-6-luna-pro",
16266
+ modelId: "gpt-6.1-terra-pro",
16556
16267
  outputModalities: [
16557
16268
  "text"
16558
16269
  ],
@@ -16565,15 +16276,14 @@ var init_bundled_recommended_list = __esm(() => {
16565
16276
  "xhigh",
16566
16277
  "high",
16567
16278
  "medium",
16568
- "low",
16569
- "none"
16279
+ "low"
16570
16280
  ],
16571
- mandatory: false,
16281
+ mandatory: true,
16572
16282
  supported: true
16573
16283
  },
16574
- releaseDate: "2026-09-22",
16284
+ releaseDate: "2026-10-26",
16575
16285
  routeVariant: {
16576
- baseModelId: "gpt-6-luna",
16286
+ baseModelId: "gpt-6.1-terra",
16577
16287
  kind: "provider-preset",
16578
16288
  preset: "reasoning.mode=pro",
16579
16289
  provider: "openrouter"
@@ -16587,11 +16297,8 @@ var init_bundled_recommended_list = __esm(() => {
16587
16297
  {
16588
16298
  aggregators: [
16589
16299
  {
16590
- externalModelId: "gpt-6.1-sol",
16300
+ externalModelId: "gpt-6.2-astra",
16591
16301
  reasoning: {
16592
- mode: {
16593
- status: "rejected"
16594
- },
16595
16302
  request: {
16596
16303
  status: "unknown"
16597
16304
  }
@@ -16606,69 +16313,32 @@ var init_bundled_recommended_list = __esm(() => {
16606
16313
  api: "responses",
16607
16314
  evidence: [],
16608
16315
  reasoning: {
16609
- disable: {
16610
- status: "not_applicable"
16611
- },
16612
- effort: {
16613
- default: "low",
16614
- path: "/reasoning/effort",
16615
- values: {
16616
- high: "high",
16617
- low: "low",
16618
- max: "max",
16619
- medium: "medium",
16620
- xhigh: "xhigh"
16621
- }
16622
- },
16623
- enable: {
16624
- status: "not_applicable"
16625
- },
16626
- mode: {
16627
- path: "/reasoning/mode",
16628
- status: "rejected"
16629
- },
16630
- status: "supported"
16316
+ status: "unknown"
16631
16317
  },
16632
16318
  speed: {
16633
16319
  status: "unknown"
16634
16320
  },
16635
16321
  status: "known",
16636
- tokenParam: "max_output_tokens",
16637
- toolsWithReasoning: "ok"
16322
+ tokenParam: {
16323
+ status: "unknown"
16324
+ },
16325
+ toolsWithReasoning: {
16326
+ status: "unknown"
16327
+ }
16638
16328
  }
16639
16329
  },
16640
16330
  {
16641
- externalModelId: "gpt-6.1-sol",
16331
+ externalModelId: "gpt-6.2-astra",
16642
16332
  pricing: {
16643
- cachedRead: 0.1,
16644
- cachedWrite: 2.5,
16645
- input: 2,
16646
- output: 10,
16333
+ cachedRead: 0.4,
16334
+ cachedWrite: 10,
16335
+ input: 8,
16336
+ output: 40,
16647
16337
  type: "flat"
16648
16338
  },
16649
16339
  reasoning: {
16650
- mode: {
16651
- default: "standard",
16652
- status: "supported",
16653
- values: [
16654
- "standard",
16655
- "pro"
16656
- ]
16657
- },
16658
16340
  request: {
16659
- api: "responses",
16660
- effort: {
16661
- default: "medium",
16662
- path: "/reasoning/effort",
16663
- values: {
16664
- high: "high",
16665
- low: "low",
16666
- max: "max",
16667
- medium: "medium",
16668
- xhigh: "xhigh"
16669
- }
16670
- },
16671
- status: "supported"
16341
+ status: "unknown"
16672
16342
  }
16673
16343
  },
16674
16344
  route: {
@@ -16681,71 +16351,28 @@ var init_bundled_recommended_list = __esm(() => {
16681
16351
  api: "responses",
16682
16352
  evidence: [],
16683
16353
  reasoning: {
16684
- disable: {
16685
- status: "not_applicable"
16686
- },
16687
- effort: {
16688
- default: "medium",
16689
- path: "/reasoning/effort",
16690
- values: {
16691
- high: "high",
16692
- low: "low",
16693
- max: "max",
16694
- medium: "medium",
16695
- xhigh: "xhigh"
16696
- }
16697
- },
16698
- enable: {
16699
- status: "not_applicable"
16700
- },
16701
- mode: {
16702
- access: "open",
16703
- default: "standard",
16704
- echo: "/reasoning/mode",
16705
- headers: [],
16706
- path: "/reasoning/mode",
16707
- status: "supported",
16708
- values: {
16709
- pro: "pro",
16710
- standard: "standard"
16711
- }
16712
- },
16713
- status: "supported"
16354
+ status: "unknown"
16714
16355
  },
16715
16356
  speed: {
16716
- access: "open",
16717
- default: "standard",
16718
- echo: "/service_tier",
16719
- headers: [],
16720
- path: "/service_tier",
16721
- status: "supported",
16722
- values: {
16723
- fast: "priority",
16724
- flex: "flex",
16725
- standard: "default"
16726
- }
16357
+ status: "unknown"
16727
16358
  },
16728
16359
  status: "known",
16729
16360
  tokenParam: "max_output_tokens",
16730
- toolsWithReasoning: "ok"
16361
+ toolsWithReasoning: {
16362
+ status: "unknown"
16363
+ }
16731
16364
  }
16732
16365
  }
16733
16366
  ],
16734
16367
  aliases: [
16735
- "openai/gpt-6.1-sol",
16736
- "gpt-6-1-sol-high",
16737
- "gpt-6-1-sol-low",
16738
- "gpt-6-1-sol-max",
16739
- "gpt-6-1-sol-medium",
16740
- "gpt-6-1-sol-xhigh"
16368
+ "openai/gpt-6.2-astra"
16741
16369
  ],
16742
16370
  contextWindow: 1050000,
16743
16371
  contractVersion: 3,
16744
- displayName: "GPT-6.1 Sol",
16372
+ displayName: "GPT-6.2 Astra",
16745
16373
  endpoints: {
16746
16374
  openai: {
16747
- api: "responses",
16748
- toolsWithReasoning: "ok"
16375
+ api: "responses"
16749
16376
  }
16750
16377
  },
16751
16378
  inputModalities: [
@@ -16753,7 +16380,7 @@ var init_bundled_recommended_list = __esm(() => {
16753
16380
  "text"
16754
16381
  ],
16755
16382
  maxOutputTokens: 128000,
16756
- modelId: "gpt-6.1-sol",
16383
+ modelId: "gpt-6.2-astra",
16757
16384
  outputModalities: [
16758
16385
  "text"
16759
16386
  ],
@@ -16771,10 +16398,8 @@ var init_bundled_recommended_list = __esm(() => {
16771
16398
  mandatory: true,
16772
16399
  supported: true
16773
16400
  },
16774
- releaseDate: "2026-09-29",
16775
16401
  status: "active",
16776
16402
  subscriptionPlanIds: [
16777
- "cognition-devin",
16778
16403
  "llm-gateway-devpass",
16779
16404
  "openai-codex"
16780
16405
  ],
@@ -16787,17 +16412,17 @@ var init_bundled_recommended_list = __esm(() => {
16787
16412
  {
16788
16413
  aggregators: [],
16789
16414
  aliases: [
16790
- "openai/gpt-6.1-sol-pro"
16415
+ "openai/gpt-6.2-astra-pro"
16791
16416
  ],
16792
16417
  contextWindow: 1050000,
16793
16418
  contractVersion: 3,
16794
- displayName: "GPT-6.1 Sol Pro",
16419
+ displayName: "GPT-6.2 Astra Pro",
16795
16420
  inputModalities: [
16796
16421
  "file",
16797
16422
  "image",
16798
16423
  "text"
16799
16424
  ],
16800
- modelId: "gpt-6.1-sol-pro",
16425
+ modelId: "gpt-6.2-astra-pro",
16801
16426
  outputModalities: [
16802
16427
  "text"
16803
16428
  ],
@@ -16815,9 +16440,8 @@ var init_bundled_recommended_list = __esm(() => {
16815
16440
  mandatory: true,
16816
16441
  supported: true
16817
16442
  },
16818
- releaseDate: "2026-09-29",
16819
16443
  routeVariant: {
16820
- baseModelId: "gpt-6.1-sol",
16444
+ baseModelId: "gpt-6.2-astra",
16821
16445
  kind: "provider-preset",
16822
16446
  preset: "reasoning.mode=pro",
16823
16447
  provider: "openrouter"
@@ -16831,11 +16455,8 @@ var init_bundled_recommended_list = __esm(() => {
16831
16455
  {
16832
16456
  aggregators: [
16833
16457
  {
16834
- externalModelId: "gpt-6.1-terra",
16458
+ externalModelId: "gpt-6.2-sol",
16835
16459
  reasoning: {
16836
- mode: {
16837
- status: "rejected"
16838
- },
16839
16460
  request: {
16840
16461
  status: "unknown"
16841
16462
  }
@@ -16850,90 +16471,32 @@ var init_bundled_recommended_list = __esm(() => {
16850
16471
  api: "responses",
16851
16472
  evidence: [],
16852
16473
  reasoning: {
16853
- disable: [
16854
- {
16855
- path: "/reasoning/effort",
16856
- value: "none"
16857
- }
16858
- ],
16859
- effort: {
16860
- default: "low",
16861
- path: "/reasoning/effort",
16862
- values: {
16863
- high: "high",
16864
- low: "low",
16865
- max: "max",
16866
- medium: "medium",
16867
- none: "none",
16868
- xhigh: "xhigh"
16869
- }
16870
- },
16871
- enable: {
16872
- status: "not_applicable"
16873
- },
16874
- mode: {
16875
- path: "/reasoning/mode",
16876
- status: "rejected"
16877
- },
16878
- status: "supported"
16474
+ status: "unknown"
16879
16475
  },
16880
16476
  speed: {
16881
- access: "open",
16882
- default: "standard",
16883
- echo: {
16884
- status: "not_applicable"
16885
- },
16886
- headers: [],
16887
- path: "/service_tier",
16888
- status: "supported",
16889
- values: {
16890
- fast: "priority"
16891
- }
16477
+ status: "unknown"
16892
16478
  },
16893
16479
  status: "known",
16894
- tokenParam: "max_output_tokens",
16895
- toolsWithReasoning: "ok"
16480
+ tokenParam: {
16481
+ status: "unknown"
16482
+ },
16483
+ toolsWithReasoning: {
16484
+ status: "unknown"
16485
+ }
16896
16486
  }
16897
16487
  },
16898
16488
  {
16899
- externalModelId: "gpt-6.1-terra",
16489
+ externalModelId: "gpt-6.2-sol",
16900
16490
  pricing: {
16901
- cachedRead: 0.05,
16902
- cachedWrite: 1.25,
16903
- input: 1,
16904
- output: 5,
16491
+ cachedRead: 0.1,
16492
+ cachedWrite: 2.5,
16493
+ input: 2,
16494
+ output: 10,
16905
16495
  type: "flat"
16906
16496
  },
16907
16497
  reasoning: {
16908
- mode: {
16909
- default: "standard",
16910
- status: "supported",
16911
- values: [
16912
- "standard",
16913
- "pro"
16914
- ]
16915
- },
16916
16498
  request: {
16917
- api: "responses",
16918
- disable: [
16919
- {
16920
- path: "/reasoning/effort",
16921
- value: "none"
16922
- }
16923
- ],
16924
- effort: {
16925
- default: "medium",
16926
- path: "/reasoning/effort",
16927
- values: {
16928
- high: "high",
16929
- low: "low",
16930
- max: "max",
16931
- medium: "medium",
16932
- none: "none",
16933
- xhigh: "xhigh"
16934
- }
16935
- },
16936
- status: "supported"
16499
+ status: "unknown"
16937
16500
  }
16938
16501
  },
16939
16502
  route: {
@@ -16946,65 +16509,28 @@ var init_bundled_recommended_list = __esm(() => {
16946
16509
  api: "responses",
16947
16510
  evidence: [],
16948
16511
  reasoning: {
16949
- disable: [
16950
- {
16951
- path: "/reasoning/effort",
16952
- value: "none"
16953
- }
16954
- ],
16955
- effort: {
16956
- default: "medium",
16957
- path: "/reasoning/effort",
16958
- values: {
16959
- high: "high",
16960
- low: "low",
16961
- max: "max",
16962
- medium: "medium",
16963
- none: "none",
16964
- xhigh: "xhigh"
16965
- }
16966
- },
16967
- enable: {
16968
- status: "not_applicable"
16969
- },
16970
- mode: {
16971
- access: "open",
16972
- default: "standard",
16973
- echo: "/reasoning/mode",
16974
- headers: [],
16975
- path: "/reasoning/mode",
16976
- status: "supported",
16977
- values: {
16978
- pro: "pro",
16979
- standard: "standard"
16980
- }
16981
- },
16982
- status: "supported"
16512
+ status: "unknown"
16983
16513
  },
16984
16514
  speed: {
16985
16515
  status: "unknown"
16986
16516
  },
16987
16517
  status: "known",
16988
16518
  tokenParam: "max_output_tokens",
16989
- toolsWithReasoning: "ok"
16519
+ toolsWithReasoning: {
16520
+ status: "unknown"
16521
+ }
16990
16522
  }
16991
16523
  }
16992
16524
  ],
16993
16525
  aliases: [
16994
- "openai/gpt-6.1-terra",
16995
- "gpt-6-1-terra-high",
16996
- "gpt-6-1-terra-low",
16997
- "gpt-6-1-terra-max",
16998
- "gpt-6-1-terra-medium",
16999
- "gpt-6-1-terra-xhigh"
16526
+ "openai/gpt-6.2-sol"
17000
16527
  ],
17001
16528
  contextWindow: 1050000,
17002
16529
  contractVersion: 3,
17003
- displayName: "GPT-6.1 Terra",
16530
+ displayName: "GPT-6.2 Sol",
17004
16531
  endpoints: {
17005
16532
  openai: {
17006
- api: "responses",
17007
- toolsWithReasoning: "ok"
16533
+ api: "responses"
17008
16534
  }
17009
16535
  },
17010
16536
  inputModalities: [
@@ -17012,7 +16538,7 @@ var init_bundled_recommended_list = __esm(() => {
17012
16538
  "text"
17013
16539
  ],
17014
16540
  maxOutputTokens: 128000,
17015
- modelId: "gpt-6.1-terra",
16541
+ modelId: "gpt-6.2-sol",
17016
16542
  outputModalities: [
17017
16543
  "text"
17018
16544
  ],
@@ -17025,16 +16551,13 @@ var init_bundled_recommended_list = __esm(() => {
17025
16551
  "xhigh",
17026
16552
  "high",
17027
16553
  "medium",
17028
- "low",
17029
- "none"
16554
+ "low"
17030
16555
  ],
17031
- mandatory: false,
16556
+ mandatory: true,
17032
16557
  supported: true
17033
16558
  },
17034
- releaseDate: "2026-10-26",
17035
16559
  status: "active",
17036
16560
  subscriptionPlanIds: [
17037
- "cognition-devin",
17038
16561
  "llm-gateway-devpass",
17039
16562
  "openai-codex"
17040
16563
  ],
@@ -17047,17 +16570,17 @@ var init_bundled_recommended_list = __esm(() => {
17047
16570
  {
17048
16571
  aggregators: [],
17049
16572
  aliases: [
17050
- "openai/gpt-6.1-terra-pro"
16573
+ "openai/gpt-6.2-sol-pro"
17051
16574
  ],
17052
16575
  contextWindow: 1050000,
17053
16576
  contractVersion: 3,
17054
- displayName: "GPT-6.1 Terra Pro",
16577
+ displayName: "GPT-6.2 Sol Pro",
17055
16578
  inputModalities: [
17056
16579
  "file",
17057
16580
  "image",
17058
16581
  "text"
17059
16582
  ],
17060
- modelId: "gpt-6.1-terra-pro",
16583
+ modelId: "gpt-6.2-sol-pro",
17061
16584
  outputModalities: [
17062
16585
  "text"
17063
16586
  ],
@@ -17075,9 +16598,8 @@ var init_bundled_recommended_list = __esm(() => {
17075
16598
  mandatory: true,
17076
16599
  supported: true
17077
16600
  },
17078
- releaseDate: "2026-10-26",
17079
16601
  routeVariant: {
17080
- baseModelId: "gpt-6.1-terra",
16602
+ baseModelId: "gpt-6.2-sol",
17081
16603
  kind: "provider-preset",
17082
16604
  preset: "reasoning.mode=pro",
17083
16605
  provider: "openrouter"
@@ -17625,8 +17147,8 @@ var init_bundled_recommended_list = __esm(() => {
17625
17147
  "minimax/minimax-m3.1-flash",
17626
17148
  "MiniMaxAI/MiniMax-M3.1-Flash",
17627
17149
  "accounts/fireworks/models/minimax-m3p1-flash",
17628
- "minimax-m3.1-flash-free",
17629
- "MiniMax-M3.1-Flash"
17150
+ "MiniMax-M3.1-Flash",
17151
+ "minimax-m3.1-flash-e"
17630
17152
  ],
17631
17153
  contextWindow: 1e6,
17632
17154
  contractVersion: 3,
@@ -18200,7 +17722,7 @@ var init_bundled_recommended_list = __esm(() => {
18200
17722
  ],
18201
17723
  provider: "qwen",
18202
17724
  reasoning: {
18203
- control: "effort",
17725
+ control: "unknown",
18204
17726
  defaultEffort: "xhigh",
18205
17727
  efforts: [
18206
17728
  "xhigh",
@@ -18272,7 +17794,7 @@ var init_bundled_recommended_list = __esm(() => {
18272
17794
  supportsVision: true
18273
17795
  }
18274
17796
  ],
18275
- lastUpdated: "2026-11-16T16:17:06.980Z",
17797
+ lastUpdated: "2026-11-18T16:18:38.470Z",
18276
17798
  models: [],
18277
17799
  plans: [
18278
17800
  {
@@ -18750,56 +18272,6 @@ var init_bundled_recommended_list = __esm(() => {
18750
18272
  },
18751
18273
  sourceText: "GLM-5.3 Max"
18752
18274
  },
18753
- {
18754
- externalModelId: "gpt-6-1-sol-high",
18755
- kind: "provider_model",
18756
- provider: "cognition",
18757
- resolution: {
18758
- modelId: "gpt-6.1-sol",
18759
- status: "mapped"
18760
- },
18761
- sourceText: "GPT-6.1 Sol High Thinking"
18762
- },
18763
- {
18764
- externalModelId: "gpt-6-1-sol-low",
18765
- kind: "provider_model",
18766
- provider: "cognition",
18767
- resolution: {
18768
- modelId: "gpt-6.1-sol",
18769
- status: "mapped"
18770
- },
18771
- sourceText: "GPT-6.1 Sol Low Thinking"
18772
- },
18773
- {
18774
- externalModelId: "gpt-6-1-sol-max",
18775
- kind: "provider_model",
18776
- provider: "cognition",
18777
- resolution: {
18778
- modelId: "gpt-6.1-sol",
18779
- status: "mapped"
18780
- },
18781
- sourceText: "GPT-6.1 Sol Max Thinking"
18782
- },
18783
- {
18784
- externalModelId: "gpt-6-1-sol-medium",
18785
- kind: "provider_model",
18786
- provider: "cognition",
18787
- resolution: {
18788
- modelId: "gpt-6.1-sol",
18789
- status: "mapped"
18790
- },
18791
- sourceText: "GPT-6.1 Sol Medium Thinking"
18792
- },
18793
- {
18794
- externalModelId: "gpt-6-1-sol-xhigh",
18795
- kind: "provider_model",
18796
- provider: "cognition",
18797
- resolution: {
18798
- modelId: "gpt-6.1-sol",
18799
- status: "mapped"
18800
- },
18801
- sourceText: "GPT-6.1 Sol XHigh Thinking"
18802
- },
18803
18275
  {
18804
18276
  externalModelId: "gpt-6-1-terra-high",
18805
18277
  kind: "provider_model",
@@ -18850,56 +18322,6 @@ var init_bundled_recommended_list = __esm(() => {
18850
18322
  },
18851
18323
  sourceText: "GPT-6.1 Terra XHigh Thinking"
18852
18324
  },
18853
- {
18854
- externalModelId: "gpt-6-astra-high",
18855
- kind: "provider_model",
18856
- provider: "cognition",
18857
- resolution: {
18858
- modelId: "gpt-6-astra",
18859
- status: "mapped"
18860
- },
18861
- sourceText: "GPT-6 Astra High Thinking"
18862
- },
18863
- {
18864
- externalModelId: "gpt-6-astra-low",
18865
- kind: "provider_model",
18866
- provider: "cognition",
18867
- resolution: {
18868
- modelId: "gpt-6-astra",
18869
- status: "mapped"
18870
- },
18871
- sourceText: "GPT-6 Astra Low Thinking"
18872
- },
18873
- {
18874
- externalModelId: "gpt-6-astra-max",
18875
- kind: "provider_model",
18876
- provider: "cognition",
18877
- resolution: {
18878
- modelId: "gpt-6-astra",
18879
- status: "mapped"
18880
- },
18881
- sourceText: "GPT-6 Astra Max Thinking"
18882
- },
18883
- {
18884
- externalModelId: "gpt-6-astra-medium",
18885
- kind: "provider_model",
18886
- provider: "cognition",
18887
- resolution: {
18888
- modelId: "gpt-6-astra",
18889
- status: "mapped"
18890
- },
18891
- sourceText: "GPT-6 Astra Medium Thinking"
18892
- },
18893
- {
18894
- externalModelId: "gpt-6-astra-xhigh",
18895
- kind: "provider_model",
18896
- provider: "cognition",
18897
- resolution: {
18898
- modelId: "gpt-6-astra",
18899
- status: "mapped"
18900
- },
18901
- sourceText: "GPT-6 Astra XHigh Thinking"
18902
- },
18903
18325
  {
18904
18326
  externalModelId: "gpt-6-luna-high",
18905
18327
  kind: "provider_model",
@@ -19023,164 +18445,164 @@ var init_bundled_recommended_list = __esm(() => {
19023
18445
  id: "google-antigravity",
19024
18446
  inclusions: [
19025
18447
  {
19026
- externalModelId: "gemini-4-argon-medium",
18448
+ externalModelId: "gemini-4-hydrogen-high",
19027
18449
  kind: "provider_model",
19028
18450
  provider: "antigravity",
19029
18451
  resolution: {
19030
- modelId: "gemini-4-argon",
18452
+ modelId: "gemini-4-hydrogen",
19031
18453
  status: "mapped"
19032
18454
  },
19033
- sourceText: "gemini-4-argon-medium"
18455
+ sourceText: "gemini-4-hydrogen-high"
19034
18456
  },
19035
18457
  {
19036
- externalModelId: "gemini-4-carbon-medium",
18458
+ externalModelId: "gemini-4-hydrogen-xhigh",
19037
18459
  kind: "provider_model",
19038
18460
  provider: "antigravity",
19039
18461
  resolution: {
19040
- modelId: "gemini-4-carbon",
18462
+ modelId: "gemini-4-hydrogen",
19041
18463
  status: "mapped"
19042
18464
  },
19043
- sourceText: "gemini-4-carbon-medium"
18465
+ sourceText: "gemini-4-hydrogen-xhigh"
19044
18466
  },
19045
18467
  {
19046
- externalModelId: "gemini-4-hydrogen-xhigh",
18468
+ externalModelId: "claude-opus-5-5-low",
19047
18469
  kind: "provider_model",
19048
18470
  provider: "antigravity",
19049
18471
  resolution: {
19050
- modelId: "gemini-4-hydrogen",
18472
+ modelId: "claude-opus-5-5",
19051
18473
  status: "mapped"
19052
18474
  },
19053
- sourceText: "gemini-4-hydrogen-xhigh"
18475
+ sourceText: "claude-opus-5-5-low"
19054
18476
  },
19055
18477
  {
19056
- externalModelId: "gemini-4-carbon-low",
18478
+ externalModelId: "gemini-4-argon-medium",
19057
18479
  kind: "provider_model",
19058
18480
  provider: "antigravity",
19059
18481
  resolution: {
19060
- modelId: "gemini-4-carbon",
18482
+ modelId: "gemini-4-argon",
19061
18483
  status: "mapped"
19062
18484
  },
19063
- sourceText: "gemini-4-carbon-low"
18485
+ sourceText: "gemini-4-argon-medium"
19064
18486
  },
19065
18487
  {
19066
- externalModelId: "gemini-4-hydrogen-medium",
18488
+ externalModelId: "gemini-4-hydrogen-low",
19067
18489
  kind: "provider_model",
19068
18490
  provider: "antigravity",
19069
18491
  resolution: {
19070
18492
  modelId: "gemini-4-hydrogen",
19071
18493
  status: "mapped"
19072
18494
  },
19073
- sourceText: "gemini-4-hydrogen-medium"
18495
+ sourceText: "gemini-4-hydrogen-low"
19074
18496
  },
19075
18497
  {
19076
- externalModelId: "gemini-4-argon-high",
18498
+ externalModelId: "claude-sonnet-5-5-medium",
19077
18499
  kind: "provider_model",
19078
18500
  provider: "antigravity",
19079
18501
  resolution: {
19080
- modelId: "gemini-4-argon",
18502
+ modelId: "claude-sonnet-5-5",
19081
18503
  status: "mapped"
19082
18504
  },
19083
- sourceText: "gemini-4-argon-high"
18505
+ sourceText: "claude-sonnet-5-5-medium"
19084
18506
  },
19085
18507
  {
19086
- externalModelId: "claude-opus-5-5-low",
18508
+ externalModelId: "gemini-4-hydrogen-medium",
19087
18509
  kind: "provider_model",
19088
18510
  provider: "antigravity",
19089
18511
  resolution: {
19090
- modelId: "claude-opus-5-5",
18512
+ modelId: "gemini-4-hydrogen",
19091
18513
  status: "mapped"
19092
18514
  },
19093
- sourceText: "claude-opus-5-5-low"
18515
+ sourceText: "gemini-4-hydrogen-medium"
19094
18516
  },
19095
18517
  {
19096
- externalModelId: "gemini-4-argon-low",
18518
+ externalModelId: "gemini-4-carbon-low",
19097
18519
  kind: "provider_model",
19098
18520
  provider: "antigravity",
19099
18521
  resolution: {
19100
- modelId: "gemini-4-argon",
18522
+ modelId: "gemini-4-carbon",
19101
18523
  status: "mapped"
19102
18524
  },
19103
- sourceText: "gemini-4-argon-low"
18525
+ sourceText: "gemini-4-carbon-low"
19104
18526
  },
19105
18527
  {
19106
- externalModelId: "gemini-4-carbon-high",
18528
+ externalModelId: "gemini-4-carbon-medium",
19107
18529
  kind: "provider_model",
19108
18530
  provider: "antigravity",
19109
18531
  resolution: {
19110
18532
  modelId: "gemini-4-carbon",
19111
18533
  status: "mapped"
19112
18534
  },
19113
- sourceText: "gemini-4-carbon-high"
18535
+ sourceText: "gemini-4-carbon-medium"
19114
18536
  },
19115
18537
  {
19116
- externalModelId: "claude-sonnet-5-5-medium",
18538
+ externalModelId: "claude-sonnet-5-5-low",
19117
18539
  kind: "provider_model",
19118
18540
  provider: "antigravity",
19119
18541
  resolution: {
19120
18542
  modelId: "claude-sonnet-5-5",
19121
18543
  status: "mapped"
19122
18544
  },
19123
- sourceText: "claude-sonnet-5-5-medium"
18545
+ sourceText: "claude-sonnet-5-5-low"
19124
18546
  },
19125
18547
  {
19126
- externalModelId: "gemini-4-hydrogen-high",
18548
+ externalModelId: "gemini-4-argon-high",
19127
18549
  kind: "provider_model",
19128
18550
  provider: "antigravity",
19129
18551
  resolution: {
19130
- modelId: "gemini-4-hydrogen",
18552
+ modelId: "gemini-4-argon",
19131
18553
  status: "mapped"
19132
18554
  },
19133
- sourceText: "gemini-4-hydrogen-high"
18555
+ sourceText: "gemini-4-argon-high"
19134
18556
  },
19135
18557
  {
19136
- externalModelId: "claude-sonnet-5-5-high",
18558
+ externalModelId: "gemini-4-carbon-high",
19137
18559
  kind: "provider_model",
19138
18560
  provider: "antigravity",
19139
18561
  resolution: {
19140
- modelId: "claude-sonnet-5-5",
18562
+ modelId: "gemini-4-carbon",
19141
18563
  status: "mapped"
19142
18564
  },
19143
- sourceText: "claude-sonnet-5-5-high"
18565
+ sourceText: "gemini-4-carbon-high"
19144
18566
  },
19145
18567
  {
19146
- externalModelId: "claude-sonnet-5-5-low",
18568
+ externalModelId: "gemini-4-argon-low",
19147
18569
  kind: "provider_model",
19148
18570
  provider: "antigravity",
19149
18571
  resolution: {
19150
- modelId: "claude-sonnet-5-5",
18572
+ modelId: "gemini-4-argon",
19151
18573
  status: "mapped"
19152
18574
  },
19153
- sourceText: "claude-sonnet-5-5-low"
18575
+ sourceText: "gemini-4-argon-low"
19154
18576
  },
19155
18577
  {
19156
- externalModelId: "gemini-4-hydrogen-low",
18578
+ externalModelId: "claude-opus-5-5-high",
19157
18579
  kind: "provider_model",
19158
18580
  provider: "antigravity",
19159
18581
  resolution: {
19160
- modelId: "gemini-4-hydrogen",
18582
+ modelId: "claude-opus-5-5",
19161
18583
  status: "mapped"
19162
18584
  },
19163
- sourceText: "gemini-4-hydrogen-low"
18585
+ sourceText: "claude-opus-5-5-high"
19164
18586
  },
19165
18587
  {
19166
- externalModelId: "claude-opus-5-5-medium",
18588
+ externalModelId: "claude-sonnet-5-5-high",
19167
18589
  kind: "provider_model",
19168
18590
  provider: "antigravity",
19169
18591
  resolution: {
19170
- modelId: "claude-opus-5-5",
18592
+ modelId: "claude-sonnet-5-5",
19171
18593
  status: "mapped"
19172
18594
  },
19173
- sourceText: "claude-opus-5-5-medium"
18595
+ sourceText: "claude-sonnet-5-5-high"
19174
18596
  },
19175
18597
  {
19176
- externalModelId: "claude-opus-5-5-high",
18598
+ externalModelId: "claude-opus-5-5-medium",
19177
18599
  kind: "provider_model",
19178
18600
  provider: "antigravity",
19179
18601
  resolution: {
19180
18602
  modelId: "claude-opus-5-5",
19181
18603
  status: "mapped"
19182
18604
  },
19183
- sourceText: "claude-opus-5-5-high"
18605
+ sourceText: "claude-opus-5-5-medium"
19184
18606
  }
19185
18607
  ],
19186
18608
  modelDiscovery: "client",
@@ -19219,34 +18641,34 @@ var init_bundled_recommended_list = __esm(() => {
19219
18641
  id: "llm-gateway-devpass",
19220
18642
  inclusions: [
19221
18643
  {
19222
- externalModelId: "gpt-6-astra",
18644
+ externalModelId: "gpt-6.1-terra",
19223
18645
  kind: "provider_model",
19224
18646
  provider: "llmgateway",
19225
18647
  resolution: {
19226
- modelId: "gpt-6-astra",
18648
+ modelId: "gpt-6.1-terra",
19227
18649
  status: "mapped"
19228
18650
  },
19229
- sourceText: "gpt-6-astra"
18651
+ sourceText: "gpt-6.1-terra"
19230
18652
  },
19231
18653
  {
19232
- externalModelId: "gpt-6.1-sol",
18654
+ externalModelId: "gpt-6.2-sol",
19233
18655
  kind: "provider_model",
19234
18656
  provider: "llmgateway",
19235
18657
  resolution: {
19236
- modelId: "gpt-6.1-sol",
18658
+ modelId: "gpt-6.2-sol",
19237
18659
  status: "mapped"
19238
18660
  },
19239
- sourceText: "gpt-6.1-sol"
18661
+ sourceText: "gpt-6.2-sol"
19240
18662
  },
19241
18663
  {
19242
- externalModelId: "gpt-6.1-terra",
18664
+ externalModelId: "gpt-6.2-astra",
19243
18665
  kind: "provider_model",
19244
18666
  provider: "llmgateway",
19245
18667
  resolution: {
19246
- modelId: "gpt-6.1-terra",
18668
+ modelId: "gpt-6.2-astra",
19247
18669
  status: "mapped"
19248
18670
  },
19249
- sourceText: "gpt-6.1-terra"
18671
+ sourceText: "gpt-6.2-astra"
19250
18672
  },
19251
18673
  {
19252
18674
  externalModelId: "gpt-6-luna",
@@ -19524,44 +18946,44 @@ var init_bundled_recommended_list = __esm(() => {
19524
18946
  sourceText: "glm-5.3-flash"
19525
18947
  },
19526
18948
  {
19527
- externalModelId: "kimi-k3.1-pro",
18949
+ externalModelId: "deepseek-v4.1-flash",
19528
18950
  kind: "provider_model",
19529
18951
  provider: "ollamacloud",
19530
18952
  resolution: {
19531
- modelId: "kimi-k3.1-pro",
18953
+ modelId: "deepseek-v4.1-flash",
19532
18954
  status: "mapped"
19533
18955
  },
19534
- sourceText: "kimi-k3.1-pro"
18956
+ sourceText: "deepseek-v4.1-flash"
19535
18957
  },
19536
18958
  {
19537
- externalModelId: "minimax-m3.1-flash",
18959
+ externalModelId: "mimo-v2.6-flash",
19538
18960
  kind: "provider_model",
19539
18961
  provider: "ollamacloud",
19540
18962
  resolution: {
19541
- modelId: "minimax-m3.1-flash",
18963
+ modelId: "mimo-v2.6-flash",
19542
18964
  status: "mapped"
19543
18965
  },
19544
- sourceText: "minimax-m3.1-flash"
18966
+ sourceText: "mimo-v2.6-flash"
19545
18967
  },
19546
18968
  {
19547
- externalModelId: "deepseek-v4.1-flash",
18969
+ externalModelId: "minimax-m3.1-flash",
19548
18970
  kind: "provider_model",
19549
18971
  provider: "ollamacloud",
19550
18972
  resolution: {
19551
- modelId: "deepseek-v4.1-flash",
18973
+ modelId: "minimax-m3.1-flash",
19552
18974
  status: "mapped"
19553
18975
  },
19554
- sourceText: "deepseek-v4.1-flash"
18976
+ sourceText: "minimax-m3.1-flash"
19555
18977
  },
19556
18978
  {
19557
- externalModelId: "mimo-v2.6-flash",
18979
+ externalModelId: "glm-5.3",
19558
18980
  kind: "provider_model",
19559
18981
  provider: "ollamacloud",
19560
18982
  resolution: {
19561
- modelId: "mimo-v2.6-flash",
18983
+ modelId: "glm-5.3",
19562
18984
  status: "mapped"
19563
18985
  },
19564
- sourceText: "mimo-v2.6-flash"
18986
+ sourceText: "glm-5.3"
19565
18987
  },
19566
18988
  {
19567
18989
  externalModelId: "mimo-v2.6-pro",
@@ -19574,14 +18996,14 @@ var init_bundled_recommended_list = __esm(() => {
19574
18996
  sourceText: "mimo-v2.6-pro"
19575
18997
  },
19576
18998
  {
19577
- externalModelId: "glm-5.3",
18999
+ externalModelId: "kimi-k3.1-pro",
19578
19000
  kind: "provider_model",
19579
19001
  provider: "ollamacloud",
19580
19002
  resolution: {
19581
- modelId: "glm-5.3",
19003
+ modelId: "kimi-k3.1-pro",
19582
19004
  status: "mapped"
19583
19005
  },
19584
- sourceText: "glm-5.3"
19006
+ sourceText: "kimi-k3.1-pro"
19585
19007
  }
19586
19008
  ],
19587
19009
  modelDiscovery: "catalog",
@@ -19597,44 +19019,44 @@ var init_bundled_recommended_list = __esm(() => {
19597
19019
  id: "openai-codex",
19598
19020
  inclusions: [
19599
19021
  {
19600
- externalModelId: "gpt-6-astra",
19022
+ externalModelId: "gpt-6-luna",
19601
19023
  kind: "provider_model",
19602
19024
  provider: "openai",
19603
19025
  resolution: {
19604
- modelId: "gpt-6-astra",
19026
+ modelId: "gpt-6-luna",
19605
19027
  status: "mapped"
19606
19028
  },
19607
- sourceText: "gpt-6-astra"
19029
+ sourceText: "gpt-6-luna"
19608
19030
  },
19609
19031
  {
19610
- externalModelId: "gpt-6-luna",
19032
+ externalModelId: "gpt-6.1-terra",
19611
19033
  kind: "provider_model",
19612
19034
  provider: "openai",
19613
19035
  resolution: {
19614
- modelId: "gpt-6-luna",
19036
+ modelId: "gpt-6.1-terra",
19615
19037
  status: "mapped"
19616
19038
  },
19617
- sourceText: "gpt-6-luna"
19039
+ sourceText: "gpt-6.1-terra"
19618
19040
  },
19619
19041
  {
19620
- externalModelId: "gpt-6.1-sol",
19042
+ externalModelId: "gpt-6.2-astra",
19621
19043
  kind: "provider_model",
19622
19044
  provider: "openai",
19623
19045
  resolution: {
19624
- modelId: "gpt-6.1-sol",
19046
+ modelId: "gpt-6.2-astra",
19625
19047
  status: "mapped"
19626
19048
  },
19627
- sourceText: "gpt-6.1-sol"
19049
+ sourceText: "gpt-6.2-astra"
19628
19050
  },
19629
19051
  {
19630
- externalModelId: "gpt-6.1-terra",
19052
+ externalModelId: "gpt-6.2-sol",
19631
19053
  kind: "provider_model",
19632
19054
  provider: "openai",
19633
19055
  resolution: {
19634
- modelId: "gpt-6.1-terra",
19056
+ modelId: "gpt-6.2-sol",
19635
19057
  status: "mapped"
19636
19058
  },
19637
- sourceText: "gpt-6.1-terra"
19059
+ sourceText: "gpt-6.2-sol"
19638
19060
  }
19639
19061
  ],
19640
19062
  modelDiscovery: "hybrid",
@@ -19836,7 +19258,7 @@ var init_bundled_recommended_list = __esm(() => {
19836
19258
  }
19837
19259
  ],
19838
19260
  routeRegistry: {
19839
- generationId: "g-20261116161706980-7c7c9818",
19261
+ generationId: "g-20261118161838470-f3b90f5e",
19840
19262
  registry: {
19841
19263
  contractVersion: 3,
19842
19264
  registryVersion: "3.7.0",
@@ -52867,9 +52289,24 @@ function servesSelectable(served, id) {
52867
52289
  return served.servedIds.includes(id) && !isExcluded2(served, id);
52868
52290
  }
52869
52291
  function mappedAntigravityModelId(req, served, effort) {
52870
- return chooseConnectionModelId(req, "antigravity", effort, {
52292
+ const decision = chooseConnectionModelId(req, "antigravity", effort, {
52871
52293
  sendable: (id) => servesSelectable(served, id) ? id : undefined
52872
52294
  });
52295
+ if (effort !== "none" || !decision || decision.usable)
52296
+ return decision;
52297
+ const id = lowestSendableMapId(req, served);
52298
+ return id ? { usable: true, choice: { id, effort: "none", source: "request" } } : decision;
52299
+ }
52300
+ function lowestSendableMapId(req, served) {
52301
+ const map = findModelIdEffortConnection(req, "antigravity")?.map;
52302
+ if (!map)
52303
+ return;
52304
+ for (const level of EFFORT_LEVELS) {
52305
+ const id = level === "none" ? undefined : map.values[level];
52306
+ if (id && !isOptInWireId(id) && servesSelectable(served, id))
52307
+ return id;
52308
+ }
52309
+ return;
52873
52310
  }
52874
52311
  function antigravityCarriesEffortInModelId(sent) {
52875
52312
  return carriesEffortInModelId(sent.trim(), "antigravity");
@@ -52960,6 +52397,7 @@ function chooseAntigravityServedModel(requested, served, effort) {
52960
52397
  }
52961
52398
  var BACKEND_THINKING_LEVELS, REASONING_TIER_RANK;
52962
52399
  var init_antigravity_model_id = __esm(() => {
52400
+ init_base_api_format();
52963
52401
  init_model_catalog();
52964
52402
  init_model_id_effort_choice();
52965
52403
  BACKEND_THINKING_LEVELS = { 1: "LOW", 2: "MEDIUM", 3: "HIGH" };
@@ -53157,6 +52595,17 @@ function applyReasoning(put, reasoning, toolsWithReasoning, choices, result) {
53157
52595
  put(effort.path, effort.values[name]);
53158
52596
  result.sentEffort = name;
53159
52597
  }
52598
+ function requestThoughtSummaries(body, borrow) {
52599
+ const thinking = readPointer(body, "/generationConfig/thinkingConfig");
52600
+ if (thinking === null || typeof thinking !== "object" || Array.isArray(thinking))
52601
+ return;
52602
+ const config = thinking;
52603
+ if (Object.keys(config).length === 0 || config.thinkingBudget === 0)
52604
+ return;
52605
+ if ("includeThoughts" in config)
52606
+ return;
52607
+ borrow(INCLUDE_THOUGHTS_POINTER, true);
52608
+ }
53160
52609
  function wireChoicesFromClaudeRequest(claudeRequest, pinnedEffort) {
53161
52610
  let effort = pinnedEffort;
53162
52611
  if (!effort) {
@@ -53221,6 +52670,8 @@ function shapeRequestFromWire(body, wire, choices, owner) {
53221
52670
  } else {
53222
52671
  applyReasoning(own, wire.reasoning, wire.toolsWithReasoning, choices, result);
53223
52672
  }
52673
+ if (wire.api === "gemini")
52674
+ requestThoughtSummaries(body, borrow);
53224
52675
  if (choices.mode) {
53225
52676
  const control = wire.reasoning.status === "supported" ? wire.reasoning.mode : wire.reasoning;
53226
52677
  applyControl(body, control, choices.mode.value, "mode", choices.mode.explicit, result);
@@ -53233,7 +52684,9 @@ function shapeRequestFromWire(body, wire, choices, owner) {
53233
52684
  function recoverBorrowedWireFields(payload, borrowed, errorText) {
53234
52685
  if (borrowed.length === 0 || !errorText)
53235
52686
  return null;
53236
- const named = borrowed.filter((path) => pointerTokens(path).some((token) => new RegExp(`(^|[^A-Za-z0-9_])${token.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}($|[^A-Za-z0-9_])`).test(errorText)));
52687
+ const names = (token) => new RegExp(`(^|[^A-Za-z0-9_])${token.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}($|[^A-Za-z0-9_])`).test(errorText);
52688
+ const byLeaf = borrowed.filter((path) => names(pointerTokens(path).at(-1) ?? ""));
52689
+ const named = byLeaf.length > 0 ? byLeaf : borrowed.filter((path) => pointerTokens(path).some(names));
53237
52690
  const generic = /unknown|unrecognized|unsupported|not supported|not allowed|not permitted|extra (inputs|fields)|invalid (param|field|argument)/i.test(errorText);
53238
52691
  const drop = named.length > 0 ? named : generic ? borrowed : [];
53239
52692
  if (drop.length === 0)
@@ -53259,7 +52712,7 @@ function mergeWireHeaders(headers, extra) {
53259
52712
  headers[key] = `${existing},${header.value}`;
53260
52713
  }
53261
52714
  }
53262
- var WIRE_EFFORT_ORDER, WIRE_SPEEDS, TOKEN_LIMIT_FIELDS, DECISION_POINTERS, LIMIT_REQUIRED_APIS;
52715
+ var WIRE_EFFORT_ORDER, WIRE_SPEEDS, TOKEN_LIMIT_FIELDS, DECISION_POINTERS, INCLUDE_THOUGHTS_POINTER = "/generationConfig/thinkingConfig/includeThoughts", LIMIT_REQUIRED_APIS;
53263
52716
  var init_wire_request = __esm(() => {
53264
52717
  WIRE_EFFORT_ORDER = [
53265
52718
  "none",
@@ -66635,6 +66088,19 @@ var init_devin_connect = __esm(() => {
66635
66088
  init_devin_stream_head_sniffer();
66636
66089
  });
66637
66090
 
66091
+ // src/handlers/shared/stream-parsers/gemini-usage.ts
66092
+ function geminiOutputTokens(usage) {
66093
+ const answer = usage?.candidatesTokenCount || 0;
66094
+ const thoughts = usage?.thoughtsTokenCount || 0;
66095
+ if (thoughts === 0)
66096
+ return answer;
66097
+ const total = usage?.totalTokenCount;
66098
+ if (typeof total !== "number")
66099
+ return answer + thoughts;
66100
+ const prompt = usage?.promptTokenCount || 0;
66101
+ return prompt + answer + thoughts <= total ? answer + thoughts : answer;
66102
+ }
66103
+
66638
66104
  // src/handlers/shared/stream-parsers/gemini-sse.ts
66639
66105
  function createGeminiSseStream(_c, response, opts) {
66640
66106
  const encoder = new TextEncoder;
@@ -66706,7 +66172,7 @@ data: ${JSON.stringify(data)}
66706
66172
  try {
66707
66173
  log(`[GeminiSSE] Client cancelled the stream for ${opts.modelName} (loop ended: ${reason}); usage ${usage ? "reported" : "not received, not recorded"}`);
66708
66174
  if (usage && opts.onTokenUpdate) {
66709
- opts.onTokenUpdate(usage.promptTokenCount || 0, usage.candidatesTokenCount || 0);
66175
+ opts.onTokenUpdate(usage.promptTokenCount || 0, geminiOutputTokens(usage));
66710
66176
  }
66711
66177
  } finally {
66712
66178
  teardown();
@@ -66729,7 +66195,7 @@ data: ${JSON.stringify(data)}
66729
66195
  if (opts.raw)
66730
66196
  await opts.raw.streamEnd();
66731
66197
  const inputTokens = usage?.promptTokenCount || 0;
66732
- const outputTokens = usage?.candidatesTokenCount || 0;
66198
+ const outputTokens = geminiOutputTokens(usage);
66733
66199
  if (usage) {
66734
66200
  log(`[GeminiSSE] Usage: prompt=${inputTokens}, completion=${outputTokens}`);
66735
66201
  }
@@ -112359,6 +111825,11 @@ set -f
112359
111825
  export LC_ALL=C
112360
111826
  PANE=$1 UUID=$2 CTL=$3 SOCKP=$4 REC=$5 TURN=$6 ROOT=$7 PROJ=$8 FORK=$9 FORKDIR=\${10}
112361
111827
  pstable() { ps -ax -ww -o pid=,pgid=,lstart=,command=; }
111828
+ # one table read per check: every predicate below reads the snapshot, never ps -ax itself.
111829
+ # A failed read returns 1 and leaves the snapshot empty, which no caller may read as "gone".
111830
+ T=""
111831
+ snap() { T=$(pstable) || { T=""; return 1; }; }
111832
+ table() { printf '%s\\n' "$T"; }
112362
111833
  ps_ok() { ps -o pid= -p $$ >/dev/null 2>&1; }
112363
111834
  mag=""
112364
111835
  mag_ok() {
@@ -112368,16 +111839,16 @@ mag_ok() {
112368
111839
  find_mag() {
112369
111840
  if [ -f "$CTL/magmux.pid" ]; then mag=$(head -n 1 "$CTL/magmux.pid"); fi
112370
111841
  mag_ok && return 0
112371
- mag=$(pstable | N="--id $PANE --sock-dir" awk 'index($0, ENVIRON["N"]) { print $1; exit }')
111842
+ mag=$(table | N="--id $PANE --sock-dir" awk 'index($0, ENVIRON["N"]) { print $1; exit }')
112372
111843
  mag_ok
112373
111844
  }
112374
111845
  pg=""
112375
111846
  ident_in_pg() {
112376
- pstable | P="$pg" A="--session-id $UUID" B="$CTL/pane-launch.sh" awk '$2 == ENVIRON["P"] && (index($0, ENVIRON["A"]) || index($0, ENVIRON["B"])) { f = 1 } END { exit !f }'
111847
+ table | P="$pg" A="--session-id $UUID" B="$CTL/pane-launch.sh" awk '$2 == ENVIRON["P"] && (index($0, ENVIRON["A"]) || index($0, ENVIRON["B"])) { f = 1 } END { exit !f }'
112377
111848
  }
112378
111849
  member_in_pg() {
112379
111850
  [ -f "$CTL/group" ] || return 1
112380
- pstable | P="$pg" G="$CTL/group" awk 'BEGIN { g = ENVIRON["G"]; while ((getline l < g) > 0) { if (++n == 1) continue; if (l == "--") break; k[l] = 1 } } $2 == ENVIRON["P"] && (($1 " " $3 " " $4 " " $5 " " $6 " " $7) in k) { f = 1 } END { exit !f }'
111851
+ table | P="$pg" G="$CTL/group" awk 'BEGIN { g = ENVIRON["G"]; while ((getline l < g) > 0) { if (++n == 1) continue; if (l == "--") break; k[l] = 1 } } $2 == ENVIRON["P"] && (($1 " " $3 " " $4 " " $5 " " $6 " " $7) in k) { f = 1 } END { exit !f }'
112381
111852
  }
112382
111853
  group_ok() {
112383
111854
  case "$pg" in (''|*[!0-9]*|0|1) return 1;; esac
@@ -112395,10 +111866,12 @@ find_pg() {
112395
111866
  }
112396
111867
  escaped_live() {
112397
111868
  [ -f "$CTL/group" ] || return 0
112398
- pstable | G="$CTL/group" awk 'BEGIN { g = ENVIRON["G"]; while ((getline l < g) > 0) { if (l == "--") f = 1; else if (f) k[l] = 1 } } { if (($1 " " $3 " " $4 " " $5 " " $6 " " $7) in k) print $1 }'
111869
+ table | G="$CTL/group" awk 'BEGIN { g = ENVIRON["G"]; while ((getline l < g) > 0) { if (l == "--") f = 1; else if (f) k[l] = 1 } } { if (($1 " " $3 " " $4 " " $5 " " $6 " " $7) in k) print $1 }'
112399
111870
  }
112400
- alive() { group_ok || mag_ok || [ -n "$(escaped_live)" ]; }
112401
- settle_wait() { i=0; while [ "$i" -lt "$1" ] && alive; do sleep 0.2; i=$((i + 1)); done; }
111871
+ # an unreadable table proves nothing, so the pane counts as alive
111872
+ alive() { snap || return 0; group_ok || mag_ok || [ -n "$(escaped_live)" ]; }
111873
+ # 0 while still alive after $1 checks, 1 once a check finds everything gone
111874
+ settle_wait() { i=0; while [ "$i" -lt "$1" ]; do alive || return 1; sleep 0.2; i=$((i + 1)); done; ! alive || return 0; return 1; }
112402
111875
  launch_dir_ok() {
112403
111876
  case "$1" in ("$ROOT"/launch-??????) ;; (*) return 1;; esac
112404
111877
  b=\${1#"$ROOT"/launch-}
@@ -112422,16 +111895,22 @@ while IFS= read -r l; do [ "$l" = done ] && exit 0; done
112422
111895
  # No readable table (a sandbox refuses the setuid ps): nothing can be verified, so nothing
112423
111896
  # is signalled or removed; the files stay for a sweep that can read the table.
112424
111897
  ps_ok || exit 1
111898
+ snap || exit 1
112425
111899
  find_mag
112426
111900
  find_pg
111901
+ gone=""
112427
111902
  for s in TERM KILL; do
112428
- alive || break
111903
+ # a fresh table after find_pg, so a pane child it just found is seen; an unreadable table
111904
+ # verifies nothing: no signal, and the files stay for a sweep
111905
+ snap || break
111906
+ group_ok || mag_ok || [ -n "$(escaped_live)" ] || { gone=1; break; }
112429
111907
  group_ok && kill -"$s" -"$pg" 2>/dev/null
112430
111908
  for e in $(escaped_live); do kill -"$s" "$e" 2>/dev/null; done
112431
111909
  mag_ok && kill -"$s" "$mag" 2>/dev/null
112432
- if [ "$s" = TERM ]; then settle_wait 10; else settle_wait 5; fi
111910
+ if [ "$s" = TERM ]; then n=10; else n=5; fi
111911
+ settle_wait "$n" || { gone=1; break; }
112433
111912
  done
112434
- alive && exit 1
111913
+ [ -n "$gone" ] || exit 1
112435
111914
  # a replay's fork record, before the record that names it: a watcher killed here leaves both for the sweep
112436
111915
  if fork_ok; then
112437
111916
  rm -f -- "$FORK"
@@ -120778,6 +120257,29 @@ var init_pane_registry = __esm(() => {
120778
120257
  sweptRoots = new Set;
120779
120258
  });
120780
120259
 
120260
+ // src/pane/exit-evidence.ts
120261
+ function childExitEvidence(errorSources, tailSources, tailCount = 5) {
120262
+ for (const text of errorSources) {
120263
+ for (const line of text.split(`
120264
+ `)) {
120265
+ const trimmed = line.trim();
120266
+ if (ERROR_LINE.test(trimmed))
120267
+ return trimmed;
120268
+ }
120269
+ }
120270
+ for (const text of tailSources) {
120271
+ const lines = text.split(`
120272
+ `).map((l) => l.trimEnd()).filter((l) => l.trim());
120273
+ if (lines.length)
120274
+ return lines.slice(-tailCount).join(" | ");
120275
+ }
120276
+ return "";
120277
+ }
120278
+ var ERROR_LINE;
120279
+ var init_exit_evidence = __esm(() => {
120280
+ ERROR_LINE = /^(\[claudish\]\s+)?(Fatal error|Error):/;
120281
+ });
120282
+
120781
120283
  // src/pane/gate-binding.ts
120782
120284
  import { realpathSync as realpathSync8 } from "fs";
120783
120285
  import { basename as basename9, dirname as dirname26, join as join64, resolve as resolve10 } from "path";
@@ -121286,6 +120788,8 @@ class PaneSessionImpl {
121286
120788
  disagreeSince = new Map;
121287
120789
  disagreeCounted = new Set;
121288
120790
  exitScrollback = "";
120791
+ exitCapture = "";
120792
+ exitCaptureAlt = false;
121289
120793
  exitLastLine = "";
121290
120794
  desiredSize;
121291
120795
  viewSock = null;
@@ -121685,8 +121189,12 @@ class PaneSessionImpl {
121685
121189
  await Bun.sleep(slow);
121686
121190
  if (this.client) {
121687
121191
  const cap = await this.client.request({ type: "capture", pane: 0, offset: 200 }, 1000);
121688
- if (cap.ok && agentRejectedLine(cap.result.text ?? "") && !agentRejectedLine(screenText(this.screen)))
121689
- this.exitScrollback = cap.result.text ?? "";
121192
+ if (cap.ok) {
121193
+ this.exitCapture = cap.result.text ?? "";
121194
+ this.exitCaptureAlt = cap.result.alt === true;
121195
+ if (agentRejectedLine(this.exitCapture) && !agentRejectedLine(screenText(this.screen)))
121196
+ this.exitScrollback = this.exitCapture;
121197
+ }
121690
121198
  }
121691
121199
  this.step(() => this.applyExitPath(code));
121692
121200
  }
@@ -123248,13 +122756,21 @@ ${screenTailOf(this.screen)}`
123248
122756
  return (this.exitRequested || this.turnsCompleted >= 1) && this.admission === null;
123249
122757
  }
123250
122758
  firePaneExit(code) {
122759
+ const screen = screenText(this.screen);
123251
122760
  const text = `${this.exitLastLine}
123252
122761
  ${this.exitScrollback}
123253
- ${screenText(this.screen)}`;
123254
- const rejected = agentRejectedLine(screenText(this.screen)) ?? agentRejectedLine(this.exitScrollback) ?? agentRejectedLine(text);
122762
+ ${screen}`;
122763
+ const rejected = agentRejectedLine(screen) ?? agentRejectedLine(this.exitScrollback) ?? agentRejectedLine(text);
122764
+ if (rejected) {
122765
+ this.fire("pane_exit", { reason: "agent_rejected", detail: rejected });
122766
+ return;
122767
+ }
122768
+ const onAltScreen = this.screen.alt || this.exitCaptureAlt;
122769
+ const evidence = onAltScreen ? "" : childExitEvidence([this.exitCapture, screen, this.exitLastLine], [this.exitCapture, screen]);
122770
+ const exited = `pane child exited ${code === null ? "(code unknown)" : `with code ${code}`}`;
123255
122771
  this.fire("pane_exit", {
123256
- reason: rejected ? "agent_rejected" : "child_exited",
123257
- detail: rejected ? rejected : `pane child exited ${code === null ? "(code unknown)" : `with code ${code}`}${this.exitLastLine ? `; last line: ${this.exitLastLine}` : ""}
122772
+ reason: "child_exited",
122773
+ detail: `${exited}${evidence ? `: ${evidence}` : ""}${this.exitLastLine ? `; last line: ${this.exitLastLine}` : ""}
123258
122774
  ${screenTailOf(this.screen)}`
123259
122775
  });
123260
122776
  }
@@ -123897,6 +123413,7 @@ var init_pane_session = __esm(() => {
123897
123413
  init_redact();
123898
123414
  init_box_locate();
123899
123415
  init_contract();
123416
+ init_exit_evidence();
123900
123417
  init_gate_binding();
123901
123418
  init_input_gate();
123902
123419
  init_magmux_client();