@cjhyy/code-shell 0.1.0-alpha.2 → 0.1.5

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.
Files changed (157) hide show
  1. package/CHANGELOG.md +77 -0
  2. package/dist/anthropic-IBTI4WL2.cjs +10 -0
  3. package/dist/anthropic-PRZZKHEZ.js +10 -0
  4. package/dist/arena/index.cjs +7 -6
  5. package/dist/arena/index.js +6 -5
  6. package/dist/arena/model-presets.d.ts +10 -1
  7. package/dist/{arena-HHDYYVHJ.cjs → arena-KBQOPLFV.cjs} +25 -23
  8. package/dist/{arena-ENHBHB2W.js → arena-O2L4TN6A.js} +9 -7
  9. package/dist/{chunk-SW3L7HIM.js → chunk-2EP3CLEN.js} +2 -2
  10. package/dist/{chunk-EL2RL5DG.cjs → chunk-2YW4FPFG.cjs} +2 -2
  11. package/dist/chunk-3OA5G4TM.js +47 -0
  12. package/dist/chunk-52LGZKT3.cjs +47 -0
  13. package/dist/{chunk-KOGV6PDQ.cjs → chunk-55XGPMAP.cjs} +44 -9
  14. package/dist/chunk-5ECBT4YA.js +450 -0
  15. package/dist/{chunk-YD7XTI7T.cjs → chunk-6QVAYW7C.cjs} +116 -28
  16. package/dist/{chunk-SCDKLTN3.js → chunk-6S4BJ65N.js} +5 -4
  17. package/dist/{chunk-ZLPJJZUW.js → chunk-76HYEPDM.js} +2 -2
  18. package/dist/{chunk-FA5KD34T.js → chunk-76W334S4.js} +2 -2
  19. package/dist/{chunk-GZBD6QRS.cjs → chunk-7EG3V4JY.cjs} +13 -12
  20. package/dist/{chunk-LMEKCQX4.js → chunk-7JVTYEEC.js} +6 -6
  21. package/dist/{chunk-ID6EJUHP.js → chunk-7K6SDRRF.js} +1262 -212
  22. package/dist/{chunk-5C5HIOML.js → chunk-7Y6S3OCX.js} +109 -21
  23. package/dist/{chunk-G76E5FOB.cjs → chunk-A5LCRPDP.cjs} +4 -4
  24. package/dist/{chunk-F5BS3GUC.js → chunk-BSW22MPA.js} +39 -4
  25. package/dist/{chunk-VWFET3MG.cjs → chunk-BUU5PZK2.cjs} +1474 -423
  26. package/dist/{chunk-HOXQLX5R.cjs → chunk-BWTOS5BH.cjs} +444 -103
  27. package/dist/{chunk-ZRVPCXI7.js → chunk-BXCY2FSE.js} +2 -1
  28. package/dist/{chunk-Y7TSCDF6.js → chunk-C5YQBIRK.js} +347 -6
  29. package/dist/{chunk-C7C7ZZY4.cjs → chunk-HEKQCI7B.cjs} +10 -10
  30. package/dist/{chunk-JHXNOB5G.cjs → chunk-HS2MFNUC.cjs} +6 -6
  31. package/dist/{chunk-JHNCK7JP.cjs → chunk-IK4EWJBP.cjs} +4 -3
  32. package/dist/{chunk-M2QI5X3X.cjs → chunk-JMR33QVF.cjs} +2 -2
  33. package/dist/{chunk-YAFCN7ZW.cjs → chunk-KOVYSDHZ.cjs} +15 -15
  34. package/dist/{chunk-IJSHQGMP.cjs → chunk-KS3RYAYL.cjs} +4 -4
  35. package/dist/{chunk-DI7RDLOS.js → chunk-MD32R22I.js} +7 -4
  36. package/dist/chunk-MY5XHADU.cjs +216 -0
  37. package/dist/{chunk-OP57WUWQ.cjs → chunk-NUNC3VFB.cjs} +6 -6
  38. package/dist/{chunk-TATCTZSB.cjs → chunk-QRM7IF2S.cjs} +133 -175
  39. package/dist/chunk-R47ROHGL.cjs +298 -0
  40. package/dist/{chunk-OUC2DFA7.js → chunk-RMYKO74M.js} +3 -3
  41. package/dist/{chunk-FUOKLKR2.js → chunk-SFXHZSRF.js} +1 -1
  42. package/dist/{chunk-2EUAE7AY.js → chunk-SIHHIQLO.js} +2 -2
  43. package/dist/{chunk-3CAZIWUA.cjs → chunk-SNT563K3.cjs} +9 -9
  44. package/dist/{chunk-SK62UVS6.js → chunk-T6VYG46N.js} +1 -1
  45. package/dist/{chunk-3QR52LL5.cjs → chunk-TUY2T5KP.cjs} +2 -2
  46. package/dist/{chunk-I57ZD5IQ.js → chunk-VIAGTYYW.js} +1 -1
  47. package/dist/{chunk-X2DNIMPC.cjs → chunk-VYL4EFRC.cjs} +32 -32
  48. package/dist/chunk-W22P377T.js +299 -0
  49. package/dist/chunk-WASS5YWB.js +215 -0
  50. package/dist/{chunk-OMRGA6TI.js → chunk-XDIQWQJ4.js} +132 -174
  51. package/dist/{chunk-BUJ5KYCI.cjs → chunk-YIQBXAYU.cjs} +13 -13
  52. package/dist/{chunk-REFCCVDM.js → chunk-YJ77GQK5.js} +2 -2
  53. package/dist/chunk-YUI524OE.cjs +450 -0
  54. package/dist/{chunk-M2SVOKC6.js → chunk-ZBPSQCPU.js} +6 -6
  55. package/dist/cli/commands/builtin/export-md.d.ts +19 -0
  56. package/dist/cli/commands/builtin/init/detect.d.ts +25 -0
  57. package/dist/cli/commands/builtin/init/index.d.ts +19 -0
  58. package/dist/cli/main.cjs +2374 -1455
  59. package/dist/cli/main.js +2505 -1586
  60. package/dist/cli/migrate-models.d.ts +45 -0
  61. package/dist/cli/onboarding.d.ts +110 -5
  62. package/dist/cli/updater.d.ts +51 -4
  63. package/dist/client-base-HTF236ZD.cjs +9 -0
  64. package/dist/client-base-QKRKCOWB.js +9 -0
  65. package/dist/{compaction-YNWCEF7B.js → compaction-6VU2T643.js} +4 -2
  66. package/dist/compaction-OKUNTCA7.cjs +33 -0
  67. package/dist/context/compaction.d.ts +35 -3
  68. package/dist/context/manager.d.ts +40 -3
  69. package/dist/context/tool-result-storage.d.ts +96 -0
  70. package/dist/devtools-T2NIZBJK.cjs +6 -0
  71. package/dist/{devtools-IRQQPIRY.js → devtools-YXWHOVKR.js} +1 -1
  72. package/dist/engine/engine.d.ts +40 -0
  73. package/dist/engine/turn-loop.d.ts +6 -0
  74. package/dist/export-md-RXDW6F5W.cjs +135 -0
  75. package/dist/export-md-XXKZANW5.js +135 -0
  76. package/dist/file-history-KYPE3ECT.cjs +7 -0
  77. package/dist/file-history-LF4F7X26.js +7 -0
  78. package/dist/index.cjs +42 -22
  79. package/dist/index.d.ts +5 -2
  80. package/dist/index.js +40 -20
  81. package/dist/llm/client-base.d.ts +1 -1
  82. package/dist/llm/model-cache.d.ts +21 -0
  83. package/dist/llm/model-fetcher.d.ts +29 -0
  84. package/dist/llm/model-pool.d.ts +13 -0
  85. package/dist/llm/provider-catalog.d.ts +30 -0
  86. package/dist/llm/provider-kinds.d.ts +21 -0
  87. package/dist/llm/types.d.ts +8 -0
  88. package/dist/logging/session-recorder.d.ts +77 -0
  89. package/dist/manager-C2IUXKRC.js +7 -0
  90. package/dist/manager-YYKWYTRM.cjs +7 -0
  91. package/dist/mcp-manager-QMKWPBZ4.js +8 -0
  92. package/dist/mcp-manager-Z3OKI74O.cjs +8 -0
  93. package/dist/memory-5LWZ6FI2.cjs +9 -0
  94. package/dist/{memory-EPFDBPII.js → memory-VIJLBAMQ.js} +2 -2
  95. package/dist/model-cache-5KIYL5SL.js +13 -0
  96. package/dist/model-cache-OED3IM4R.cjs +13 -0
  97. package/dist/model-fetcher-HKGICACL.js +8 -0
  98. package/dist/model-fetcher-UR6WJOQP.cjs +8 -0
  99. package/dist/openai-JR2WEKOF.js +10 -0
  100. package/dist/openai-YBTOET4O.cjs +10 -0
  101. package/dist/openrouter-models-OU4GRZQY.cjs +15 -0
  102. package/dist/{openrouter-models-OL725CL6.js → openrouter-models-TGKDKY52.js} +2 -2
  103. package/dist/openrouter-sync-BBHUM3R6.cjs +11 -0
  104. package/dist/{openrouter-sync-CWD5VNW2.js → openrouter-sync-UXUSJCIR.js} +3 -3
  105. package/dist/product/index.cjs +17 -15
  106. package/dist/product/index.js +16 -14
  107. package/dist/protocol/server.d.ts +3 -1
  108. package/dist/protocol/types.d.ts +36 -2
  109. package/dist/run/index.cjs +17 -15
  110. package/dist/run/index.js +16 -14
  111. package/dist/services/index.d.ts +0 -1
  112. package/dist/session-manager-Q22BBMD3.js +8 -0
  113. package/dist/session-manager-XODQVL3C.cjs +8 -0
  114. package/dist/settings/schema.d.ts +267 -42
  115. package/dist/{tool-summary-RYNR4DDB.cjs → tool-summary-63DPIS7G.cjs} +4 -4
  116. package/dist/{tool-summary-2RUFL5QK.js → tool-summary-NP5CDBKG.js} +2 -2
  117. package/dist/tool-system/builtin/ask-user.d.ts +9 -1
  118. package/dist/tool-system/context.d.ts +31 -2
  119. package/dist/tool-system/executor.d.ts +4 -0
  120. package/dist/tool-system/investigation-guard.d.ts +37 -0
  121. package/dist/types.d.ts +13 -2
  122. package/dist/ui/components/AskUserPrompt.d.ts +8 -1
  123. package/dist/ui/components/DiffLine.d.ts +33 -0
  124. package/dist/ui/components/ModelManager.d.ts +34 -1
  125. package/dist/ui/components/OnboardingPrompt.d.ts +10 -1
  126. package/dist/ui/components/ProviderModelFlow.d.ts +58 -0
  127. package/dist/ui/components/UpdateBanner.d.ts +1 -0
  128. package/dist/updater-QW473OF4.cjs +17 -0
  129. package/dist/updater-VFUAHCVY.js +17 -0
  130. package/dist/utils/semver.d.ts +1 -0
  131. package/dist/utils/task-sanitizer.d.ts +6 -0
  132. package/package.json +4 -2
  133. package/scripts/check-node.cjs +21 -0
  134. package/dist/anthropic-P5VETAFI.cjs +0 -10
  135. package/dist/anthropic-W2GU3D76.js +0 -10
  136. package/dist/chunk-75E4BBFC.js +0 -224
  137. package/dist/chunk-FV2ARONZ.cjs +0 -224
  138. package/dist/client-base-TOVE25FA.js +0 -9
  139. package/dist/client-base-VDDIADAC.cjs +0 -9
  140. package/dist/compaction-D3KV2NWY.cjs +0 -31
  141. package/dist/devtools-WTC3NFNE.cjs +0 -6
  142. package/dist/file-history-HZWO2WQ5.js +0 -7
  143. package/dist/file-history-UQQILIY7.cjs +0 -7
  144. package/dist/manager-FWLOVEEK.cjs +0 -7
  145. package/dist/manager-GEXJLOIS.js +0 -7
  146. package/dist/mcp-manager-37GQLFGX.js +0 -8
  147. package/dist/mcp-manager-U77NEXBY.cjs +0 -8
  148. package/dist/memory-ADGOWADP.cjs +0 -9
  149. package/dist/openai-RXU5URYI.js +0 -10
  150. package/dist/openai-SQW4H2K4.cjs +0 -10
  151. package/dist/openrouter-models-UM3AOGZ4.cjs +0 -15
  152. package/dist/openrouter-sync-HYZZC6RX.cjs +0 -11
  153. package/dist/services/compact.d.ts +0 -56
  154. package/dist/session-manager-HRSKENKB.cjs +0 -8
  155. package/dist/session-manager-NEKFEHF3.js +0 -8
  156. package/dist/updater-M7L42ASZ.cjs +0 -183
  157. package/dist/updater-ZRTONIR4.js +0 -183
@@ -1,16 +1,44 @@
1
1
  import {
2
2
  init_esm_shims
3
- } from "./chunk-DI7RDLOS.js";
3
+ } from "./chunk-MD32R22I.js";
4
4
 
5
5
  // src/data/openrouter-models.ts
6
6
  init_esm_shims();
7
7
 
8
8
  // src/data/openrouter-models.json
9
9
  var openrouter_models_default = {
10
- fetchedAt: "2026-05-09T09:11:43.732Z",
10
+ fetchedAt: "2026-05-13T08:42:44.941Z",
11
11
  source: "https://openrouter.ai/api/v1/models",
12
- count: 367,
12
+ count: 363,
13
13
  models: [
14
+ {
15
+ id: "anthropic/claude-opus-4.7-fast",
16
+ name: "Anthropic: Claude Opus 4.7 (Fast)",
17
+ created: 1778613011,
18
+ contextLength: 1e6,
19
+ maxOutputTokens: 128e3,
20
+ inputPricePerMillion: 30,
21
+ outputPricePerMillion: 150,
22
+ modalities: [
23
+ "text",
24
+ "image",
25
+ "file"
26
+ ]
27
+ },
28
+ {
29
+ id: "perceptron/perceptron-mk1",
30
+ name: "Perceptron: Perceptron Mk1",
31
+ created: 1778597029,
32
+ contextLength: 32768,
33
+ maxOutputTokens: 8192,
34
+ inputPricePerMillion: 0.15,
35
+ outputPricePerMillion: 1.5,
36
+ modalities: [
37
+ "text",
38
+ "image",
39
+ "video"
40
+ ]
41
+ },
14
42
  {
15
43
  id: "inclusionai/ring-2.6-1t:free",
16
44
  name: "inclusionAI: Ring-2.6-1T (free)",
@@ -163,8 +191,9 @@ var openrouter_models_default = {
163
191
  inputPricePerMillion: 1,
164
192
  outputPricePerMillion: 5,
165
193
  modalities: [
194
+ "text",
166
195
  "image",
167
- "text"
196
+ "file"
168
197
  ]
169
198
  },
170
199
  {
@@ -201,9 +230,9 @@ var openrouter_models_default = {
201
230
  id: "~moonshotai/kimi-latest",
202
231
  name: "MoonshotAI Kimi Latest",
203
232
  created: 1777318428,
204
- contextLength: 262144,
205
- maxOutputTokens: 16384,
206
- inputPricePerMillion: 0.75,
233
+ contextLength: 262142,
234
+ maxOutputTokens: 262142,
235
+ inputPricePerMillion: 0.74,
207
236
  outputPricePerMillion: 3.5,
208
237
  modalities: [
209
238
  "text",
@@ -236,7 +265,8 @@ var openrouter_models_default = {
236
265
  outputPricePerMillion: 15,
237
266
  modalities: [
238
267
  "text",
239
- "image"
268
+ "image",
269
+ "file"
240
270
  ]
241
271
  },
242
272
  {
@@ -460,14 +490,15 @@ var openrouter_models_default = {
460
490
  outputPricePerMillion: 25,
461
491
  modalities: [
462
492
  "text",
463
- "image"
493
+ "image",
494
+ "file"
464
495
  ]
465
496
  },
466
497
  {
467
498
  id: "openrouter/pareto-code",
468
499
  name: "Pareto Code Router",
469
500
  created: 1776747900,
470
- contextLength: 2e5,
501
+ contextLength: 2e6,
471
502
  maxOutputTokens: 0,
472
503
  inputPricePerMillion: -1e6,
473
504
  outputPricePerMillion: -1e6,
@@ -492,9 +523,9 @@ var openrouter_models_default = {
492
523
  id: "moonshotai/kimi-k2.6",
493
524
  name: "MoonshotAI: Kimi K2.6",
494
525
  created: 1776699402,
495
- contextLength: 262144,
496
- maxOutputTokens: 16384,
497
- inputPricePerMillion: 0.75,
526
+ contextLength: 262142,
527
+ maxOutputTokens: 262142,
528
+ inputPricePerMillion: 0.74,
498
529
  outputPricePerMillion: 3.5,
499
530
  modalities: [
500
531
  "text",
@@ -511,7 +542,8 @@ var openrouter_models_default = {
511
542
  outputPricePerMillion: 25,
512
543
  modalities: [
513
544
  "text",
514
- "image"
545
+ "image",
546
+ "file"
515
547
  ]
516
548
  },
517
549
  {
@@ -524,7 +556,8 @@ var openrouter_models_default = {
524
556
  outputPricePerMillion: 150,
525
557
  modalities: [
526
558
  "text",
527
- "image"
559
+ "image",
560
+ "file"
528
561
  ]
529
562
  },
530
563
  {
@@ -587,8 +620,8 @@ var openrouter_models_default = {
587
620
  created: 1775148486,
588
621
  contextLength: 262144,
589
622
  maxOutputTokens: 16384,
590
- inputPricePerMillion: 0.13,
591
- outputPricePerMillion: 0.38,
623
+ inputPricePerMillion: 0.12,
624
+ outputPricePerMillion: 0.37,
592
625
  modalities: [
593
626
  "image",
594
627
  "text",
@@ -623,6 +656,18 @@ var openrouter_models_default = {
623
656
  "video"
624
657
  ]
625
658
  },
659
+ {
660
+ id: "arcee-ai/trinity-large-thinking:free",
661
+ name: "Arcee AI: Trinity Large Thinking (free)",
662
+ created: 1775058318,
663
+ contextLength: 262144,
664
+ maxOutputTokens: 8e4,
665
+ inputPricePerMillion: 0,
666
+ outputPricePerMillion: 0,
667
+ modalities: [
668
+ "text"
669
+ ]
670
+ },
626
671
  {
627
672
  id: "arcee-ai/trinity-large-thinking",
628
673
  name: "Arcee AI: Trinity Large Thinking",
@@ -747,8 +792,8 @@ var openrouter_models_default = {
747
792
  name: "MiniMax: MiniMax M2.7",
748
793
  created: 1773836697,
749
794
  contextLength: 196608,
750
- maxOutputTokens: 131072,
751
- inputPricePerMillion: 0.29900000000000004,
795
+ maxOutputTokens: 0,
796
+ inputPricePerMillion: 0.28,
752
797
  outputPricePerMillion: 1.2,
753
798
  modalities: [
754
799
  "text"
@@ -1092,7 +1137,8 @@ var openrouter_models_default = {
1092
1137
  outputPricePerMillion: 15,
1093
1138
  modalities: [
1094
1139
  "text",
1095
- "image"
1140
+ "image",
1141
+ "file"
1096
1142
  ]
1097
1143
  },
1098
1144
  {
@@ -1140,7 +1186,7 @@ var openrouter_models_default = {
1140
1186
  name: "MiniMax: MiniMax M2.5",
1141
1187
  created: 1770908502,
1142
1188
  contextLength: 196608,
1143
- maxOutputTokens: 131072,
1189
+ maxOutputTokens: 196608,
1144
1190
  inputPricePerMillion: 0.15,
1145
1191
  outputPricePerMillion: 1.15,
1146
1192
  modalities: [
@@ -1181,7 +1227,8 @@ var openrouter_models_default = {
1181
1227
  outputPricePerMillion: 25,
1182
1228
  modalities: [
1183
1229
  "text",
1184
- "image"
1230
+ "image",
1231
+ "file"
1185
1232
  ]
1186
1233
  },
1187
1234
  {
@@ -1238,9 +1285,9 @@ var openrouter_models_default = {
1238
1285
  name: "MoonshotAI: Kimi K2.5",
1239
1286
  created: 1769487076,
1240
1287
  contextLength: 262144,
1241
- maxOutputTokens: 65535,
1242
- inputPricePerMillion: 0.44,
1243
- outputPricePerMillion: 2,
1288
+ maxOutputTokens: 262144,
1289
+ inputPricePerMillion: 0.39999999999999997,
1290
+ outputPricePerMillion: 1.9,
1244
1291
  modalities: [
1245
1292
  "text",
1246
1293
  "image"
@@ -1973,8 +2020,9 @@ var openrouter_models_default = {
1973
2020
  inputPricePerMillion: 1,
1974
2021
  outputPricePerMillion: 5,
1975
2022
  modalities: [
2023
+ "text",
1976
2024
  "image",
1977
- "text"
2025
+ "file"
1978
2026
  ]
1979
2027
  },
1980
2028
  {
@@ -2461,10 +2509,10 @@ var openrouter_models_default = {
2461
2509
  id: "deepseek/deepseek-chat-v3.1",
2462
2510
  name: "DeepSeek: DeepSeek V3.1",
2463
2511
  created: 1755779628,
2464
- contextLength: 32768,
2465
- maxOutputTokens: 7168,
2466
- inputPricePerMillion: 0.15,
2467
- outputPricePerMillion: 0.75,
2512
+ contextLength: 163840,
2513
+ maxOutputTokens: 32768,
2514
+ inputPricePerMillion: 0.21,
2515
+ outputPricePerMillion: 0.7899999999999999,
2468
2516
  modalities: [
2469
2517
  "text"
2470
2518
  ]
@@ -3610,34 +3658,6 @@ var openrouter_models_default = {
3610
3658
  "video"
3611
3659
  ]
3612
3660
  },
3613
- {
3614
- id: "anthropic/claude-3.7-sonnet",
3615
- name: "Anthropic: Claude 3.7 Sonnet",
3616
- created: 1740422110,
3617
- contextLength: 2e5,
3618
- maxOutputTokens: 64e3,
3619
- inputPricePerMillion: 3,
3620
- outputPricePerMillion: 15,
3621
- modalities: [
3622
- "text",
3623
- "image",
3624
- "file"
3625
- ]
3626
- },
3627
- {
3628
- id: "anthropic/claude-3.7-sonnet:thinking",
3629
- name: "Anthropic: Claude 3.7 Sonnet (thinking)",
3630
- created: 1740422110,
3631
- contextLength: 2e5,
3632
- maxOutputTokens: 64e3,
3633
- inputPricePerMillion: 3,
3634
- outputPricePerMillion: 15,
3635
- modalities: [
3636
- "text",
3637
- "image",
3638
- "file"
3639
- ]
3640
- },
3641
3661
  {
3642
3662
  id: "mistralai/mistral-saba",
3643
3663
  name: "Mistral: Saba",
@@ -3679,7 +3699,7 @@ var openrouter_models_default = {
3679
3699
  id: "google/gemini-2.0-flash-001",
3680
3700
  name: "Google: Gemini 2.0 Flash",
3681
3701
  created: 1738769413,
3682
- contextLength: 1e6,
3702
+ contextLength: 1048576,
3683
3703
  maxOutputTokens: 8192,
3684
3704
  inputPricePerMillion: 0.09999999999999999,
3685
3705
  outputPricePerMillion: 0.39999999999999997,
@@ -3691,19 +3711,6 @@ var openrouter_models_default = {
3691
3711
  "video"
3692
3712
  ]
3693
3713
  },
3694
- {
3695
- id: "qwen/qwen-vl-plus",
3696
- name: "Qwen: Qwen VL Plus",
3697
- created: 1738731255,
3698
- contextLength: 131072,
3699
- maxOutputTokens: 8192,
3700
- inputPricePerMillion: 0.1365,
3701
- outputPricePerMillion: 0.40950000000000003,
3702
- modalities: [
3703
- "text",
3704
- "image"
3705
- ]
3706
- },
3707
3714
  {
3708
3715
  id: "aion-labs/aion-1.0",
3709
3716
  name: "AionLabs: Aion-1.0",
@@ -3740,31 +3747,6 @@ var openrouter_models_default = {
3740
3747
  "text"
3741
3748
  ]
3742
3749
  },
3743
- {
3744
- id: "qwen/qwen-vl-max",
3745
- name: "Qwen: Qwen VL Max",
3746
- created: 1738434304,
3747
- contextLength: 131072,
3748
- maxOutputTokens: 32768,
3749
- inputPricePerMillion: 0.52,
3750
- outputPricePerMillion: 2.08,
3751
- modalities: [
3752
- "text",
3753
- "image"
3754
- ]
3755
- },
3756
- {
3757
- id: "qwen/qwen-turbo",
3758
- name: "Qwen: Qwen-Turbo",
3759
- created: 1738410974,
3760
- contextLength: 131072,
3761
- maxOutputTokens: 8192,
3762
- inputPricePerMillion: 0.0325,
3763
- outputPricePerMillion: 0.13,
3764
- modalities: [
3765
- "text"
3766
- ]
3767
- },
3768
3750
  {
3769
3751
  id: "qwen/qwen2.5-vl-72b-instruct",
3770
3752
  name: "Qwen: Qwen2.5 VL 72B Instruct",
@@ -3790,18 +3772,6 @@ var openrouter_models_default = {
3790
3772
  "text"
3791
3773
  ]
3792
3774
  },
3793
- {
3794
- id: "qwen/qwen-max",
3795
- name: "Qwen: Qwen-Max ",
3796
- created: 1738402289,
3797
- contextLength: 32768,
3798
- maxOutputTokens: 8192,
3799
- inputPricePerMillion: 1.04,
3800
- outputPricePerMillion: 4.16,
3801
- modalities: [
3802
- "text"
3803
- ]
3804
- },
3805
3775
  {
3806
3776
  id: "openai/o3-mini",
3807
3777
  name: "OpenAI: o3 Mini",
@@ -4138,8 +4108,8 @@ var openrouter_models_default = {
4138
4108
  ]
4139
4109
  },
4140
4110
  {
4141
- id: "inflection/inflection-3-productivity",
4142
- name: "Inflection: Inflection 3 Productivity",
4111
+ id: "inflection/inflection-3-pi",
4112
+ name: "Inflection: Inflection 3 Pi",
4143
4113
  created: 1728604800,
4144
4114
  contextLength: 8e3,
4145
4115
  maxOutputTokens: 1024,
@@ -4150,8 +4120,8 @@ var openrouter_models_default = {
4150
4120
  ]
4151
4121
  },
4152
4122
  {
4153
- id: "inflection/inflection-3-pi",
4154
- name: "Inflection: Inflection 3 Pi",
4123
+ id: "inflection/inflection-3-productivity",
4124
+ name: "Inflection: Inflection 3 Productivity",
4155
4125
  created: 1728604800,
4156
4126
  contextLength: 8e3,
4157
4127
  maxOutputTokens: 1024,
@@ -4173,6 +4143,18 @@ var openrouter_models_default = {
4173
4143
  "text"
4174
4144
  ]
4175
4145
  },
4146
+ {
4147
+ id: "meta-llama/llama-3.2-1b-instruct",
4148
+ name: "Meta: Llama 3.2 1B Instruct",
4149
+ created: 1727222400,
4150
+ contextLength: 6e4,
4151
+ maxOutputTokens: 0,
4152
+ inputPricePerMillion: 0.027,
4153
+ outputPricePerMillion: 0.19999999999999998,
4154
+ modalities: [
4155
+ "text"
4156
+ ]
4157
+ },
4176
4158
  {
4177
4159
  id: "meta-llama/llama-3.2-3b-instruct:free",
4178
4160
  name: "Meta: Llama 3.2 3B Instruct (free)",
@@ -4197,18 +4179,6 @@ var openrouter_models_default = {
4197
4179
  "text"
4198
4180
  ]
4199
4181
  },
4200
- {
4201
- id: "meta-llama/llama-3.2-1b-instruct",
4202
- name: "Meta: Llama 3.2 1B Instruct",
4203
- created: 1727222400,
4204
- contextLength: 6e4,
4205
- maxOutputTokens: 0,
4206
- inputPricePerMillion: 0.027,
4207
- outputPricePerMillion: 0.19999999999999998,
4208
- modalities: [
4209
- "text"
4210
- ]
4211
- },
4212
4182
  {
4213
4183
  id: "meta-llama/llama-3.2-11b-vision-instruct",
4214
4184
  name: "Meta: Llama 3.2 11B Vision Instruct",
@@ -4369,8 +4339,8 @@ var openrouter_models_default = {
4369
4339
  ]
4370
4340
  },
4371
4341
  {
4372
- id: "openai/gpt-4o-mini-2024-07-18",
4373
- name: "OpenAI: GPT-4o-mini (2024-07-18)",
4342
+ id: "openai/gpt-4o-mini",
4343
+ name: "OpenAI: GPT-4o-mini",
4374
4344
  created: 1721260800,
4375
4345
  contextLength: 128e3,
4376
4346
  maxOutputTokens: 16384,
@@ -4383,8 +4353,8 @@ var openrouter_models_default = {
4383
4353
  ]
4384
4354
  },
4385
4355
  {
4386
- id: "openai/gpt-4o-mini",
4387
- name: "OpenAI: GPT-4o-mini",
4356
+ id: "openai/gpt-4o-mini-2024-07-18",
4357
+ name: "OpenAI: GPT-4o-mini (2024-07-18)",
4388
4358
  created: 1721260800,
4389
4359
  contextLength: 128e3,
4390
4360
  maxOutputTokens: 16384,
@@ -4433,13 +4403,13 @@ var openrouter_models_default = {
4433
4403
  ]
4434
4404
  },
4435
4405
  {
4436
- id: "openai/gpt-4o-2024-05-13",
4437
- name: "OpenAI: GPT-4o (2024-05-13)",
4406
+ id: "openai/gpt-4o",
4407
+ name: "OpenAI: GPT-4o",
4438
4408
  created: 1715558400,
4439
4409
  contextLength: 128e3,
4440
- maxOutputTokens: 4096,
4441
- inputPricePerMillion: 5,
4442
- outputPricePerMillion: 15,
4410
+ maxOutputTokens: 16384,
4411
+ inputPricePerMillion: 2.5,
4412
+ outputPricePerMillion: 10,
4443
4413
  modalities: [
4444
4414
  "text",
4445
4415
  "image",
@@ -4447,13 +4417,13 @@ var openrouter_models_default = {
4447
4417
  ]
4448
4418
  },
4449
4419
  {
4450
- id: "openai/gpt-4o",
4451
- name: "OpenAI: GPT-4o",
4420
+ id: "openai/gpt-4o-2024-05-13",
4421
+ name: "OpenAI: GPT-4o (2024-05-13)",
4452
4422
  created: 1715558400,
4453
4423
  contextLength: 128e3,
4454
- maxOutputTokens: 16384,
4455
- inputPricePerMillion: 2.5,
4456
- outputPricePerMillion: 10,
4424
+ maxOutputTokens: 4096,
4425
+ inputPricePerMillion: 5,
4426
+ outputPricePerMillion: 15,
4457
4427
  modalities: [
4458
4428
  "text",
4459
4429
  "image",
@@ -4546,18 +4516,6 @@ var openrouter_models_default = {
4546
4516
  "text"
4547
4517
  ]
4548
4518
  },
4549
- {
4550
- id: "openai/gpt-4-turbo-preview",
4551
- name: "OpenAI: GPT-4 Turbo Preview",
4552
- created: 1706140800,
4553
- contextLength: 128e3,
4554
- maxOutputTokens: 4096,
4555
- inputPricePerMillion: 10,
4556
- outputPricePerMillion: 30,
4557
- modalities: [
4558
- "text"
4559
- ]
4560
- },
4561
4519
  {
4562
4520
  id: "openai/gpt-3.5-turbo-0613",
4563
4521
  name: "OpenAI: GPT-3.5 Turbo (older v0613)",
@@ -4571,13 +4529,13 @@ var openrouter_models_default = {
4571
4529
  ]
4572
4530
  },
4573
4531
  {
4574
- id: "alpindale/goliath-120b",
4575
- name: "Goliath 120B",
4576
- created: 1699574400,
4577
- contextLength: 6144,
4578
- maxOutputTokens: 1024,
4579
- inputPricePerMillion: 3.75,
4580
- outputPricePerMillion: 7.5,
4532
+ id: "openai/gpt-4-turbo-preview",
4533
+ name: "OpenAI: GPT-4 Turbo Preview",
4534
+ created: 1706140800,
4535
+ contextLength: 128e3,
4536
+ maxOutputTokens: 4096,
4537
+ inputPricePerMillion: 10,
4538
+ outputPricePerMillion: 30,
4581
4539
  modalities: [
4582
4540
  "text"
4583
4541
  ]
@@ -4610,18 +4568,6 @@ var openrouter_models_default = {
4610
4568
  "text"
4611
4569
  ]
4612
4570
  },
4613
- {
4614
- id: "openai/gpt-3.5-turbo-instruct",
4615
- name: "OpenAI: GPT-3.5 Turbo Instruct",
4616
- created: 1695859200,
4617
- contextLength: 4095,
4618
- maxOutputTokens: 4096,
4619
- inputPricePerMillion: 1.5,
4620
- outputPricePerMillion: 2,
4621
- modalities: [
4622
- "text"
4623
- ]
4624
- },
4625
4571
  {
4626
4572
  id: "mistralai/mistral-7b-instruct-v0.1",
4627
4573
  name: "Mistral: Mistral 7B Instruct v0.1",
@@ -4634,6 +4580,18 @@ var openrouter_models_default = {
4634
4580
  "text"
4635
4581
  ]
4636
4582
  },
4583
+ {
4584
+ id: "openai/gpt-3.5-turbo-instruct",
4585
+ name: "OpenAI: GPT-3.5 Turbo Instruct",
4586
+ created: 1695859200,
4587
+ contextLength: 4095,
4588
+ maxOutputTokens: 4096,
4589
+ inputPricePerMillion: 1.5,
4590
+ outputPricePerMillion: 2,
4591
+ modalities: [
4592
+ "text"
4593
+ ]
4594
+ },
4637
4595
  {
4638
4596
  id: "openai/gpt-3.5-turbo-16k",
4639
4597
  name: "OpenAI: GPT-3.5 Turbo 16k",
@@ -4683,8 +4641,8 @@ var openrouter_models_default = {
4683
4641
  ]
4684
4642
  },
4685
4643
  {
4686
- id: "openai/gpt-4-0314",
4687
- name: "OpenAI: GPT-4 (older v0314)",
4644
+ id: "openai/gpt-4",
4645
+ name: "OpenAI: GPT-4",
4688
4646
  created: 1685232e3,
4689
4647
  contextLength: 8191,
4690
4648
  maxOutputTokens: 4096,
@@ -4695,8 +4653,8 @@ var openrouter_models_default = {
4695
4653
  ]
4696
4654
  },
4697
4655
  {
4698
- id: "openai/gpt-4",
4699
- name: "OpenAI: GPT-4",
4656
+ id: "openai/gpt-4-0314",
4657
+ name: "OpenAI: GPT-4 (older v0314)",
4700
4658
  created: 1685232e3,
4701
4659
  contextLength: 8191,
4702
4660
  maxOutputTokens: 4096,
@@ -1,22 +1,22 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class;
2
2
 
3
- var _chunkGZBD6QRScjs = require('./chunk-GZBD6QRS.cjs');
3
+ var _chunk7EG3V4JYcjs = require('./chunk-7EG3V4JY.cjs');
4
4
 
5
5
 
6
6
 
7
7
 
8
- var _chunkEL2RL5DGcjs = require('./chunk-EL2RL5DG.cjs');
8
+ var _chunk2YW4FPFGcjs = require('./chunk-2YW4FPFG.cjs');
9
9
 
10
10
 
11
- var _chunkJHNCK7JPcjs = require('./chunk-JHNCK7JP.cjs');
11
+ var _chunkIK4EWJBPcjs = require('./chunk-IK4EWJBP.cjs');
12
12
 
13
13
 
14
- var _chunkIJSHQGMPcjs = require('./chunk-IJSHQGMP.cjs');
14
+ var _chunkKS3RYAYLcjs = require('./chunk-KS3RYAYL.cjs');
15
15
 
16
16
  // src/llm/providers/anthropic.ts
17
- _chunkIJSHQGMPcjs.init_cjs_shims.call(void 0, );
17
+ _chunkKS3RYAYLcjs.init_cjs_shims.call(void 0, );
18
18
  var _sdk = require('@anthropic-ai/sdk'); var _sdk2 = _interopRequireDefault(_sdk);
19
- var AnthropicClient = (_class = class extends _chunkGZBD6QRScjs.LLMClientBase {
19
+ var AnthropicClient = (_class = class extends _chunk7EG3V4JYcjs.LLMClientBase {
20
20
  __init() {this._client = null}
21
21
  constructor(config) {
22
22
  super(config);_class.prototype.__init.call(this);;
@@ -37,7 +37,7 @@ var AnthropicClient = (_class = class extends _chunkGZBD6QRScjs.LLMClientBase {
37
37
  return this.withRetry(async () => {
38
38
  const messages = this.buildMessages(options.messages);
39
39
  const tools = options.tools ? this.convertTools(options.tools) : void 0;
40
- const span = _chunkJHNCK7JPcjs.logger.span("llm.request", {
40
+ const span = _chunkIK4EWJBPcjs.logger.span("llm.request", {
41
41
  cat: "llm",
42
42
  provider: this.provider,
43
43
  model: this.model,
@@ -87,7 +87,7 @@ var AnthropicClient = (_class = class extends _chunkGZBD6QRScjs.LLMClientBase {
87
87
  cacheReadTokens: response.usage.cache_read_input_tokens,
88
88
  cacheCreationTokens: response.usage.cache_creation_input_tokens
89
89
  };
90
- this.recordUsage(usage);
90
+ this.recordUsage(usage, options);
91
91
  return this.processResponse(response, usage);
92
92
  } catch (err) {
93
93
  this.handleApiError(err);
@@ -122,7 +122,7 @@ var AnthropicClient = (_class = class extends _chunkGZBD6QRScjs.LLMClientBase {
122
122
  stream.on("text", (text) => {
123
123
  if (!firstByteLogged) {
124
124
  firstByteLogged = true;
125
- _chunkJHNCK7JPcjs.logger.debug("llm.first_byte", {
125
+ _chunkIK4EWJBPcjs.logger.debug("llm.first_byte", {
126
126
  cat: "llm",
127
127
  provider: this.provider,
128
128
  model: this.model,
@@ -164,7 +164,7 @@ var AnthropicClient = (_class = class extends _chunkGZBD6QRScjs.LLMClientBase {
164
164
  cacheReadTokens: finalMessage.usage.cache_read_input_tokens,
165
165
  cacheCreationTokens: finalMessage.usage.cache_creation_input_tokens
166
166
  };
167
- this.recordUsage(usage);
167
+ this.recordUsage(usage, options);
168
168
  _optionalChain([options, 'access', _18 => _18.onChunk, 'optionalCall', _19 => _19({ type: "stop", stopReason: _nullishCoalesce(finalMessage.stop_reason, () => ( void 0)) })]);
169
169
  return this.processResponse(finalMessage, usage);
170
170
  } catch (err) {
@@ -246,12 +246,12 @@ var AnthropicClient = (_class = class extends _chunkGZBD6QRScjs.LLMClientBase {
246
246
  handleApiError(err) {
247
247
  if (err instanceof _sdk2.default.APIError) {
248
248
  if (err.status === 429) {
249
- throw new (0, _chunkEL2RL5DGcjs.LLMRateLimitError)("anthropic");
249
+ throw new (0, _chunk2YW4FPFGcjs.LLMRateLimitError)("anthropic");
250
250
  }
251
251
  if (_optionalChain([err, 'access', _20 => _20.message, 'optionalAccess', _21 => _21.includes, 'call', _22 => _22("prompt is too long")]) || _optionalChain([err, 'access', _23 => _23.message, 'optionalAccess', _24 => _24.includes, 'call', _25 => _25("context_length_exceeded")])) {
252
- throw new (0, _chunkEL2RL5DGcjs.ContextLimitError)("anthropic");
252
+ throw new (0, _chunk2YW4FPFGcjs.ContextLimitError)("anthropic");
253
253
  }
254
- throw new (0, _chunkEL2RL5DGcjs.LLMError)(`Anthropic API error: ${err.message}`, "anthropic", {
254
+ throw new (0, _chunk2YW4FPFGcjs.LLMError)(`Anthropic API error: ${err.message}`, "anthropic", {
255
255
  status: err.status
256
256
  });
257
257
  }
@@ -4,10 +4,10 @@ import {
4
4
  NoopEvaluator,
5
5
  RunManager,
6
6
  registerPreset
7
- } from "./chunk-ID6EJUHP.js";
7
+ } from "./chunk-7K6SDRRF.js";
8
8
  import {
9
9
  init_esm_shims
10
- } from "./chunk-DI7RDLOS.js";
10
+ } from "./chunk-MD32R22I.js";
11
11
 
12
12
  // src/product/index.ts
13
13
  init_esm_shims();