nolo-cli 0.83.0-alpha.1 → 0.84.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{_executeModel-TRYFRXDJ.js → _executeModel-IULR47HG.js} +17 -17
- package/{agentDeleteCommand-EKSPHWHV.js → agentDeleteCommand-2S4WCDQC.js} +9 -9
- package/{agentEmailCommands-QD2K4YG6.js → agentEmailCommands-V3ADGHX7.js} +21 -21
- package/{agentListCommands-WFBYAQKO.js → agentListCommands-EPK3S274.js} +11 -11
- package/{agentMachineCommands-F5DKXCQP.js → agentMachineCommands-XMZWK7P3.js} +10 -10
- package/{agentRecordCommands-DAZ2FDZP.js → agentRecordCommands-WFPWLWOF.js} +20 -20
- package/{agentRunCommand-4VMDFEQF.js → agentRunCommand-VUWNWC7C.js} +20 -20
- package/{agentRuntimeLocal-FMOEMRUU.js → agentRuntimeLocal-YRONTDLM.js} +9 -9
- package/{agentSlice-Q5XOM2PN.js → agentSlice-2P7OJFES.js} +1 -1
- package/{appDeleteCommands-AXB7XZE7.js → appDeleteCommands-YS7UGMP3.js} +9 -9
- package/{appDeployCommands-ZLWI4QUC.js → appDeployCommands-XIE5Z4BE.js} +9 -9
- package/{appDeployStatusCommands-2RAEYJQF.js → appDeployStatusCommands-54UDVYET.js} +9 -9
- package/{appGetCommands-QYUXS4W4.js → appGetCommands-6XYLBCRN.js} +9 -9
- package/{appListCommands-GQLN4J5X.js → appListCommands-VEGH7SF5.js} +9 -9
- package/{authCommand-7N2G6MXP.js → authCommand-JIEOFHXW.js} +6 -6
- package/{chatQueueReduxAdapter-WICMMQZT.js → chatQueueReduxAdapter-GPYCH5Z2.js} +5 -5
- package/{chunk-YIR5OYHU.js → chunk-3VPDELAP.js} +11 -11
- package/{chunk-LKSDMMY2.js → chunk-4SZ37KLL.js} +8 -8
- package/{chunk-YWG6EMH3.js → chunk-73BR2IQT.js} +1 -1
- package/{chunk-PYXL2CJL.js → chunk-7FWPLK4M.js} +1 -1
- package/{chunk-DSRXPQWA.js → chunk-7QVPPOEC.js} +1 -1
- package/{chunk-KIS76A2P.js → chunk-AX7RMXSH.js} +1 -1
- package/{chunk-PFDKB7IZ.js → chunk-BKJO7LDP.js} +1 -1
- package/{chunk-GBPZKFYK.js → chunk-BZNGCVAW.js} +1 -1
- package/{chunk-EXMHJN7C.js → chunk-CADAR6QU.js} +1 -1
- package/{chunk-6RUOYAPM.js → chunk-DM4FBSWG.js} +3 -3
- package/{chunk-LZIMZZYT.js → chunk-EBKMQULC.js} +1 -1
- package/{chunk-CPSZJBLK.js → chunk-ETLZZQJE.js} +1 -1
- package/{chunk-Q7TA25PG.js → chunk-GHEJJGJI.js} +12 -12
- package/{chunk-JZYXSXMZ.js → chunk-HTMVBPOF.js} +7 -7
- package/{chunk-BHXK3KPV.js → chunk-IDGYOD2O.js} +10 -10
- package/{chunk-BNQK6UPC.js → chunk-KEZNSFGD.js} +2 -2
- package/{chunk-N5KGQ5AD.js → chunk-KRMWO2NN.js} +2 -2
- package/{chunk-PGSKWZCB.js → chunk-LHDV2QUI.js} +1 -1
- package/{chunk-UJ63UXGE.js → chunk-MXUSPS2N.js} +289 -2
- package/{chunk-QC5LGHYP.js → chunk-NFT2AOK5.js} +1 -1
- package/{chunk-EWRS6HJ3.js → chunk-PF6O3GR3.js} +56 -17
- package/{chunk-K7AG465Q.js → chunk-PZCTYKGU.js} +3 -1
- package/{chunk-5Q5LYRJH.js → chunk-RZOJRTKR.js} +11 -11
- package/{chunk-XRMBP7IW.js → chunk-T25L377S.js} +3 -3
- package/{chunk-CMH2SYHX.js → chunk-TMPLPCVX.js} +1 -1
- package/{chunk-KVDUCO4Q.js → chunk-U7YP7ECK.js} +1 -1
- package/{chunk-JPVNC5B2.js → chunk-URWDSZRW.js} +2 -2
- package/{chunk-5BVAAVIF.js → chunk-Y3NZYLPG.js} +1 -1
- package/{contentThunks-A2ZG3SW6.js → contentThunks-THSCADSK.js} +6 -6
- package/{createAgentAutomationAction-QFQQPG35.js → createAgentAutomationAction-WGN3UQ5A.js} +6 -6
- package/{createDialogAction-WI73R5EQ.js → createDialogAction-3EN2NLH7.js} +7 -7
- package/{createPageAction-XN237WPJ.js → createPageAction-4VK473QV.js} +6 -6
- package/{dialogCommands-SFRDEMB3.js → dialogCommands-PS4NWYY7.js} +9 -9
- package/{dialogSlice-56G4Q4RU.js → dialogSlice-CLV7SVOZ.js} +5 -5
- package/{docCreateCommands-OMQLZ3OW.js → docCreateCommands-4KANZJR6.js} +9 -9
- package/{docDeleteCommands-7RCC6P23.js → docDeleteCommands-F2S2TRUF.js} +9 -9
- package/{docReadCommands-5FABO4UV.js → docReadCommands-B2WDPZQE.js} +9 -9
- package/{docStore-PZSZWXX3.js → docStore-TDLCHWPF.js} +1 -1
- package/{docUpdateCommands-P5AQI6HB.js → docUpdateCommands-E7TKHRIO.js} +9 -9
- package/{getPricing-HRMSOF3E.js → getPricing-QVTUQQTM.js} +2 -2
- package/{handleSendMessageAction-MHKC4R3Q.js → handleSendMessageAction-AHL3ZHE4.js} +5 -5
- package/index.js +48 -48
- package/{machineCommands-VJABZGD2.js → machineCommands-OTABVXOA.js} +20 -20
- package/{machineWsRunDispatch-5SPILS2O.js → machineWsRunDispatch-V4EVQSMZ.js} +20 -20
- package/package.json +1 -1
- package/{readlineWorkspace-GMYIPMRU.js → readlineWorkspace-IIT3FQ6I.js} +22 -22
- package/{runAgentClientLoop-U3GEPCQI.js → runAgentClientLoop-7TQM7IAR.js} +15 -15
- package/{spaceCommands-FNXBNF5X.js → spaceCommands-FSYH7AL4.js} +9 -9
- package/{streamAgentChatTurn-DAGDJH3L.js → streamAgentChatTurn-6EF6TVFK.js} +18 -18
- package/{tools-73VPBNX3.js → tools-R3QNWWTD.js} +12 -12
- package/{tuiSummaryLlmCaller-3Z24VUWM.js → tuiSummaryLlmCaller-PWOXTCBF.js} +4 -4
- package/{updateDialogTitleAction-RFQONESQ.js → updateDialogTitleAction-F3EUOWOB.js} +6 -6
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addContentToSpace
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EBKMQULC.js";
|
|
4
4
|
import {
|
|
5
5
|
prepareAndPersistMessage,
|
|
6
6
|
uiAskChoiceFunc,
|
|
7
7
|
uiAskChoiceFunctionSchema
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-IDGYOD2O.js";
|
|
9
9
|
import {
|
|
10
10
|
require_date_fns
|
|
11
11
|
} from "./chunk-M76ECQRD.js";
|
|
@@ -903,6 +903,285 @@ var kimiCodeModels = [
|
|
|
903
903
|
}
|
|
904
904
|
];
|
|
905
905
|
|
|
906
|
+
// packages/integrations/stepfun/models.ts
|
|
907
|
+
var stepfunModels = [
|
|
908
|
+
// ── 旗舰多模态推理 ──
|
|
909
|
+
{
|
|
910
|
+
name: "step-3.7-flash",
|
|
911
|
+
displayName: "Step 3.7 Flash",
|
|
912
|
+
hasVision: true,
|
|
913
|
+
contextWindow: 262144,
|
|
914
|
+
maxOutputTokens: 65536,
|
|
915
|
+
jsonOutput: true,
|
|
916
|
+
fnCall: true,
|
|
917
|
+
supportsTool: true,
|
|
918
|
+
supportsReasoningEffort: true,
|
|
919
|
+
// 官方价:输入 ¥1.35/M、缓存命中 ¥0.27/M、输出 ¥8.1/M
|
|
920
|
+
price: {
|
|
921
|
+
input: toCnyCredits(1.35),
|
|
922
|
+
output: toCnyCredits(8.1),
|
|
923
|
+
inputCacheHit: toCnyCredits(0.27)
|
|
924
|
+
},
|
|
925
|
+
provider: "stepfun",
|
|
926
|
+
description: "\u9636\u8DC3\u661F\u8FB0\u65D7\u8230\u591A\u6A21\u6001\u63A8\u7406\u6A21\u578B\uFF0C256K \u4E0A\u4E0B\u6587\uFF0C\u9AD8\u901F\u63A8\u7406 + \u539F\u751F\u591A\u6A21\u6001 + \u5DE5\u5177\u8C03\u7528\uFF0C\u9488\u5BF9 Agent \u4E0E Coding \u6DF1\u5EA6\u4F18\u5316\u3002"
|
|
927
|
+
},
|
|
928
|
+
{
|
|
929
|
+
name: "step-5-preview",
|
|
930
|
+
displayName: "Step 5 Preview",
|
|
931
|
+
hasVision: true,
|
|
932
|
+
contextWindow: 262144,
|
|
933
|
+
maxOutputTokens: 65536,
|
|
934
|
+
jsonOutput: true,
|
|
935
|
+
fnCall: true,
|
|
936
|
+
supportsTool: true,
|
|
937
|
+
supportsReasoningEffort: true,
|
|
938
|
+
// 官方价:输入 ¥7/M、缓存命中 ¥0.35/M、输出 ¥20/M
|
|
939
|
+
price: {
|
|
940
|
+
input: toCnyCredits(7),
|
|
941
|
+
output: toCnyCredits(20),
|
|
942
|
+
inputCacheHit: toCnyCredits(0.35)
|
|
943
|
+
},
|
|
944
|
+
provider: "stepfun",
|
|
945
|
+
description: "\u9636\u8DC3\u661F\u8FB0\u65B0\u4E00\u4EE3\u65D7\u8230\u591A\u6A21\u6001\u63A8\u7406\u6A21\u578B\uFF0C\u652F\u6301\u590D\u6742\u903B\u8F91\u5206\u89E3\u4E0E\u957F\u7A0B\u89C4\u5212\u3002"
|
|
946
|
+
},
|
|
947
|
+
// ── 旗舰语言推理 ──
|
|
948
|
+
{
|
|
949
|
+
name: "step-3.5-flash",
|
|
950
|
+
displayName: "Step 3.5 Flash",
|
|
951
|
+
hasVision: false,
|
|
952
|
+
contextWindow: 262144,
|
|
953
|
+
maxOutputTokens: 65536,
|
|
954
|
+
jsonOutput: true,
|
|
955
|
+
fnCall: true,
|
|
956
|
+
supportsTool: true,
|
|
957
|
+
supportsReasoningEffort: true,
|
|
958
|
+
// 官方价:输入 ¥0.7/M、缓存命中 ¥0.14/M、输出 ¥2.1/M
|
|
959
|
+
price: {
|
|
960
|
+
input: toCnyCredits(0.7),
|
|
961
|
+
output: toCnyCredits(2.1),
|
|
962
|
+
inputCacheHit: toCnyCredits(0.14)
|
|
963
|
+
},
|
|
964
|
+
provider: "stepfun",
|
|
965
|
+
description: "\u9636\u8DC3\u661F\u8FB0\u65D7\u8230\u8BED\u8A00\u63A8\u7406\u6A21\u578B\uFF0C196B \u603B\u53C2\u6570 / 11B \u6FC0\u6D3B\u53C2\u6570 MoE\uFF0C\u9AD8\u901F\u63A8\u7406\u4E0E\u5DE5\u5177\u8C03\u7528\u3002"
|
|
966
|
+
},
|
|
967
|
+
{
|
|
968
|
+
name: "step-3.5-flash-2603",
|
|
969
|
+
displayName: "Step 3.5 Flash (Agent\u4F18\u5316\u7248)",
|
|
970
|
+
hasVision: false,
|
|
971
|
+
contextWindow: 262144,
|
|
972
|
+
maxOutputTokens: 65536,
|
|
973
|
+
jsonOutput: true,
|
|
974
|
+
fnCall: true,
|
|
975
|
+
supportsTool: true,
|
|
976
|
+
supportsReasoningEffort: true,
|
|
977
|
+
price: {
|
|
978
|
+
input: toCnyCredits(0.7),
|
|
979
|
+
output: toCnyCredits(2.1),
|
|
980
|
+
inputCacheHit: toCnyCredits(0.14)
|
|
981
|
+
},
|
|
982
|
+
provider: "stepfun",
|
|
983
|
+
description: "\u9488\u5BF9\u9AD8\u9891 Agent \u573A\u666F\u4F18\u5316\uFF0CToken \u6548\u7387\u4E0E\u63A8\u7406\u901F\u5EA6\u66F4\u4F73\uFF0C\u652F\u6301 low/high reasoning_effort\u3002"
|
|
984
|
+
},
|
|
985
|
+
// ── 经典视觉模型 ──
|
|
986
|
+
{
|
|
987
|
+
name: "step-1o-turbo-vision",
|
|
988
|
+
displayName: "Step 1o Turbo Vision",
|
|
989
|
+
hasVision: true,
|
|
990
|
+
contextWindow: 65536,
|
|
991
|
+
maxOutputTokens: 8192,
|
|
992
|
+
jsonOutput: true,
|
|
993
|
+
fnCall: true,
|
|
994
|
+
supportsTool: true,
|
|
995
|
+
price: {
|
|
996
|
+
input: toCnyCredits(2.5),
|
|
997
|
+
output: toCnyCredits(8),
|
|
998
|
+
inputCacheHit: toCnyCredits(0.5)
|
|
999
|
+
},
|
|
1000
|
+
provider: "stepfun",
|
|
1001
|
+
description: "\u9AD8\u54CD\u5E94\u901F\u5EA6\u89C6\u89C9\u6A21\u578B\uFF0C\u652F\u6301\u56FE\u7247\u4E0E\u6587\u6863\u7406\u89E3\u3002"
|
|
1002
|
+
},
|
|
1003
|
+
// ── 经典通用语言模型 ──
|
|
1004
|
+
{
|
|
1005
|
+
name: "step-2-16k",
|
|
1006
|
+
displayName: "Step 2 16K",
|
|
1007
|
+
hasVision: false,
|
|
1008
|
+
contextWindow: 16384,
|
|
1009
|
+
maxOutputTokens: 4096,
|
|
1010
|
+
jsonOutput: true,
|
|
1011
|
+
fnCall: true,
|
|
1012
|
+
supportsTool: true,
|
|
1013
|
+
price: { input: toCnyCredits(38), output: toCnyCredits(120) },
|
|
1014
|
+
provider: "stepfun",
|
|
1015
|
+
description: "\u5343\u4EBF\u53C2\u6570 MoE \u8BED\u8A00\u5927\u6A21\u578B\uFF0C\u9002\u5408\u903B\u8F91\u590D\u6742\u957F\u6587\u672C\u751F\u6210\u3002"
|
|
1016
|
+
},
|
|
1017
|
+
{
|
|
1018
|
+
name: "step-1-flash",
|
|
1019
|
+
displayName: "Step 1 Flash",
|
|
1020
|
+
hasVision: false,
|
|
1021
|
+
contextWindow: 8192,
|
|
1022
|
+
maxOutputTokens: 4096,
|
|
1023
|
+
jsonOutput: true,
|
|
1024
|
+
fnCall: true,
|
|
1025
|
+
supportsTool: true,
|
|
1026
|
+
price: { input: toCnyCredits(1), output: toCnyCredits(4) },
|
|
1027
|
+
provider: "stepfun"
|
|
1028
|
+
},
|
|
1029
|
+
{
|
|
1030
|
+
name: "step-1-8k",
|
|
1031
|
+
displayName: "Step 1 8K",
|
|
1032
|
+
hasVision: false,
|
|
1033
|
+
contextWindow: 8192,
|
|
1034
|
+
maxOutputTokens: 4096,
|
|
1035
|
+
jsonOutput: true,
|
|
1036
|
+
fnCall: true,
|
|
1037
|
+
supportsTool: true,
|
|
1038
|
+
price: { input: toCnyCredits(5), output: toCnyCredits(20) },
|
|
1039
|
+
provider: "stepfun"
|
|
1040
|
+
},
|
|
1041
|
+
{
|
|
1042
|
+
name: "step-1-32k",
|
|
1043
|
+
displayName: "Step 1 32K",
|
|
1044
|
+
hasVision: false,
|
|
1045
|
+
contextWindow: 32768,
|
|
1046
|
+
maxOutputTokens: 4096,
|
|
1047
|
+
jsonOutput: true,
|
|
1048
|
+
fnCall: true,
|
|
1049
|
+
supportsTool: true,
|
|
1050
|
+
price: { input: toCnyCredits(15), output: toCnyCredits(70) },
|
|
1051
|
+
provider: "stepfun"
|
|
1052
|
+
},
|
|
1053
|
+
{
|
|
1054
|
+
name: "step-1-128k",
|
|
1055
|
+
displayName: "Step 1 128K",
|
|
1056
|
+
hasVision: false,
|
|
1057
|
+
contextWindow: 131072,
|
|
1058
|
+
maxOutputTokens: 4096,
|
|
1059
|
+
jsonOutput: true,
|
|
1060
|
+
fnCall: true,
|
|
1061
|
+
supportsTool: true,
|
|
1062
|
+
price: { input: toCnyCredits(40), output: toCnyCredits(200) },
|
|
1063
|
+
provider: "stepfun"
|
|
1064
|
+
},
|
|
1065
|
+
{
|
|
1066
|
+
name: "step-1-256k",
|
|
1067
|
+
displayName: "Step 1 256K",
|
|
1068
|
+
hasVision: false,
|
|
1069
|
+
contextWindow: 262144,
|
|
1070
|
+
maxOutputTokens: 4096,
|
|
1071
|
+
jsonOutput: true,
|
|
1072
|
+
fnCall: true,
|
|
1073
|
+
supportsTool: true,
|
|
1074
|
+
price: { input: toCnyCredits(60), output: toCnyCredits(300) },
|
|
1075
|
+
provider: "stepfun"
|
|
1076
|
+
},
|
|
1077
|
+
{
|
|
1078
|
+
name: "step-1v-8k",
|
|
1079
|
+
displayName: "Step 1V 8K",
|
|
1080
|
+
hasVision: true,
|
|
1081
|
+
contextWindow: 8192,
|
|
1082
|
+
maxOutputTokens: 4096,
|
|
1083
|
+
jsonOutput: true,
|
|
1084
|
+
fnCall: true,
|
|
1085
|
+
supportsTool: true,
|
|
1086
|
+
price: { input: toCnyCredits(5), output: toCnyCredits(20) },
|
|
1087
|
+
provider: "stepfun"
|
|
1088
|
+
},
|
|
1089
|
+
{
|
|
1090
|
+
name: "step-1v-32k",
|
|
1091
|
+
displayName: "Step 1V 32K",
|
|
1092
|
+
hasVision: true,
|
|
1093
|
+
contextWindow: 32768,
|
|
1094
|
+
maxOutputTokens: 4096,
|
|
1095
|
+
jsonOutput: true,
|
|
1096
|
+
fnCall: true,
|
|
1097
|
+
supportsTool: true,
|
|
1098
|
+
price: { input: toCnyCredits(15), output: toCnyCredits(70) },
|
|
1099
|
+
provider: "stepfun"
|
|
1100
|
+
}
|
|
1101
|
+
];
|
|
1102
|
+
var stepfunStepPlanModels = [
|
|
1103
|
+
{
|
|
1104
|
+
name: "step-3.7-flash",
|
|
1105
|
+
displayName: "Step 3.7 Flash",
|
|
1106
|
+
hasVision: true,
|
|
1107
|
+
contextWindow: 262144,
|
|
1108
|
+
maxOutputTokens: 65536,
|
|
1109
|
+
jsonOutput: true,
|
|
1110
|
+
fnCall: true,
|
|
1111
|
+
supportsTool: true,
|
|
1112
|
+
supportsReasoningEffort: true,
|
|
1113
|
+
price: { input: 0, output: 0 },
|
|
1114
|
+
provider: "stepfun",
|
|
1115
|
+
description: "\u9636\u8DC3\u661F\u8FB0\u65D7\u8230\u591A\u6A21\u6001\u63A8\u7406\u6A21\u578B\uFF0C256K \u4E0A\u4E0B\u6587\uFF0C\u9AD8\u901F\u63A8\u7406 + \u539F\u751F\u591A\u6A21\u6001 + \u5DE5\u5177\u8C03\u7528\uFF0CAgent \u6DF1\u5EA6\u9002\u914D\u3002"
|
|
1116
|
+
},
|
|
1117
|
+
{
|
|
1118
|
+
name: "step-5-preview",
|
|
1119
|
+
displayName: "Step 5 Preview",
|
|
1120
|
+
hasVision: true,
|
|
1121
|
+
contextWindow: 262144,
|
|
1122
|
+
maxOutputTokens: 65536,
|
|
1123
|
+
jsonOutput: true,
|
|
1124
|
+
fnCall: true,
|
|
1125
|
+
supportsTool: true,
|
|
1126
|
+
supportsReasoningEffort: true,
|
|
1127
|
+
price: { input: 0, output: 0 },
|
|
1128
|
+
provider: "stepfun",
|
|
1129
|
+
description: "\u9636\u8DC3\u661F\u8FB0\u65B0\u4E00\u4EE3\u65D7\u8230\u591A\u6A21\u6001\u63A8\u7406\u6A21\u578B\uFF0C\u64C5\u957F\u590D\u6742\u4EFB\u52A1\u5206\u89E3\u4E0E\u591A\u6B65\u8BA1\u5212\u3002"
|
|
1130
|
+
},
|
|
1131
|
+
{
|
|
1132
|
+
name: "step-3.5-flash",
|
|
1133
|
+
displayName: "Step 3.5 Flash",
|
|
1134
|
+
hasVision: false,
|
|
1135
|
+
contextWindow: 262144,
|
|
1136
|
+
maxOutputTokens: 65536,
|
|
1137
|
+
jsonOutput: true,
|
|
1138
|
+
fnCall: true,
|
|
1139
|
+
supportsTool: true,
|
|
1140
|
+
supportsReasoningEffort: true,
|
|
1141
|
+
price: { input: 0, output: 0 },
|
|
1142
|
+
provider: "stepfun",
|
|
1143
|
+
description: "\u9636\u8DC3\u661F\u8FB0\u65D7\u8230\u8BED\u8A00\u63A8\u7406\u6A21\u578B\uFF0C196B MoE \u67B6\u6784\uFF0C\u9AD8\u901F\u63A8\u7406\u4E0E\u5DE5\u5177\u8C03\u7528\u3002"
|
|
1144
|
+
},
|
|
1145
|
+
{
|
|
1146
|
+
name: "step-3.5-flash-2603",
|
|
1147
|
+
displayName: "Step 3.5 Flash (Agent\u4F18\u5316\u7248)",
|
|
1148
|
+
hasVision: false,
|
|
1149
|
+
contextWindow: 262144,
|
|
1150
|
+
maxOutputTokens: 65536,
|
|
1151
|
+
jsonOutput: true,
|
|
1152
|
+
fnCall: true,
|
|
1153
|
+
supportsTool: true,
|
|
1154
|
+
supportsReasoningEffort: true,
|
|
1155
|
+
price: { input: 0, output: 0 },
|
|
1156
|
+
provider: "stepfun",
|
|
1157
|
+
description: "\u9488\u5BF9\u9AD8\u9891 Agent \u573A\u666F\u4F18\u5316\uFF0C\u66F4\u4F73 Token \u6548\u7387\u4E0E\u63A8\u7406\u901F\u5EA6\uFF0C\u652F\u6301 low/high \u63A8\u7406\u5F3A\u5EA6\u3002"
|
|
1158
|
+
},
|
|
1159
|
+
{
|
|
1160
|
+
name: "step-1o-turbo-vision",
|
|
1161
|
+
displayName: "Step 1o Turbo Vision",
|
|
1162
|
+
hasVision: true,
|
|
1163
|
+
contextWindow: 65536,
|
|
1164
|
+
maxOutputTokens: 8192,
|
|
1165
|
+
jsonOutput: true,
|
|
1166
|
+
fnCall: true,
|
|
1167
|
+
supportsTool: true,
|
|
1168
|
+
price: { input: 0, output: 0 },
|
|
1169
|
+
provider: "stepfun"
|
|
1170
|
+
},
|
|
1171
|
+
{
|
|
1172
|
+
name: "step-2-16k",
|
|
1173
|
+
displayName: "Step 2 16K",
|
|
1174
|
+
hasVision: false,
|
|
1175
|
+
contextWindow: 16384,
|
|
1176
|
+
maxOutputTokens: 4096,
|
|
1177
|
+
jsonOutput: true,
|
|
1178
|
+
fnCall: true,
|
|
1179
|
+
supportsTool: true,
|
|
1180
|
+
price: { input: 0, output: 0 },
|
|
1181
|
+
provider: "stepfun"
|
|
1182
|
+
}
|
|
1183
|
+
];
|
|
1184
|
+
|
|
906
1185
|
// packages/integrations/opencode/models.ts
|
|
907
1186
|
var opencodeGoModels = [
|
|
908
1187
|
// ── OpenAI ──
|
|
@@ -1537,7 +1816,9 @@ var PROVIDER_REASONING_EFFORT_VALUES = {
|
|
|
1537
1816
|
mimo: ["low", "medium", "high"],
|
|
1538
1817
|
// CommandCode Provider API 透传 reasoning_effort(low/medium/high/xhigh/max),
|
|
1539
1818
|
// 端点按各模型支持的子集自动 clamp(见 commandcode.ai/docs/provider-api)。
|
|
1540
|
-
commandcode: ["low", "medium", "high", "xhigh", "max"]
|
|
1819
|
+
commandcode: ["low", "medium", "high", "xhigh", "max"],
|
|
1820
|
+
// 阶跃星辰(StepFun)推理模型(step-3.5-flash-2603 / step-3.7-flash 等)支持 low / medium / high
|
|
1821
|
+
stepfun: ["none", "low", "medium", "high"]
|
|
1541
1822
|
};
|
|
1542
1823
|
var greetingMenuItemSchema = object({
|
|
1543
1824
|
id: pipe(string(), minLength(1)),
|
|
@@ -1664,6 +1945,7 @@ function clampReasoningEffort(effort, provider) {
|
|
|
1664
1945
|
}
|
|
1665
1946
|
|
|
1666
1947
|
// packages/ai/llm/providers.ts
|
|
1948
|
+
var stepfunAllModels = [...stepfunModels, ...stepfunStepPlanModels];
|
|
1667
1949
|
var moonshotAllModels = [...moonshotModels, ...kimiCodeModels];
|
|
1668
1950
|
var qwenAllModels = [...qwenModels, ...qwenTokenPlanModels];
|
|
1669
1951
|
var MODEL_MAP = {
|
|
@@ -1680,7 +1962,8 @@ var MODEL_MAP = {
|
|
|
1680
1962
|
gmi: gmiModels,
|
|
1681
1963
|
zai: zaiModels,
|
|
1682
1964
|
qwen: qwenAllModels,
|
|
1683
|
-
moonshot: moonshotAllModels
|
|
1965
|
+
moonshot: moonshotAllModels,
|
|
1966
|
+
stepfun: stepfunAllModels
|
|
1684
1967
|
};
|
|
1685
1968
|
var MODEL_LOOKUP_MAP = {
|
|
1686
1969
|
anthropic: [...anthropicModels, ...anthropicOAuthModels],
|
|
@@ -1818,6 +2101,10 @@ var API_ENDPOINTS = {
|
|
|
1818
2101
|
moonshot: {
|
|
1819
2102
|
// Moonshot AI(月之暗面)开放平台 OpenAI 兼容模式(按量计费)
|
|
1820
2103
|
default: "https://api.moonshot.cn/v1/chat/completions"
|
|
2104
|
+
},
|
|
2105
|
+
stepfun: {
|
|
2106
|
+
// 阶跃星辰(StepFun)开放平台 OpenAI 兼容模式
|
|
2107
|
+
default: "https://api.stepfun.com/v1/chat/completions"
|
|
1821
2108
|
}
|
|
1822
2109
|
};
|
|
1823
2110
|
function getModelConfig(provider, name) {
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
readSseFrames,
|
|
9
9
|
streamSseDataValues,
|
|
10
10
|
throwIfChatCompletionStreamFailed
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NFT2AOK5.js";
|
|
12
12
|
import {
|
|
13
13
|
DEVIN_CONNECT_URL
|
|
14
14
|
} from "./chunk-FMODTASJ.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
resolveHistoricalToolContentCap,
|
|
20
20
|
resolveToolOutputProfile,
|
|
21
21
|
stripImagePartsFromMessages
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-AX7RMXSH.js";
|
|
23
23
|
import {
|
|
24
24
|
downgradeUnparsableToolCalls,
|
|
25
25
|
hasParsableObjectArguments,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
requiresBareImageUrl,
|
|
44
44
|
resolveToolGuidedSections,
|
|
45
45
|
toBareImageUrlMessages
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-ETLZZQJE.js";
|
|
47
47
|
import {
|
|
48
48
|
convertMessagesToResponsesInput,
|
|
49
49
|
extractReasoningFromResponseOutput,
|
|
@@ -72,11 +72,11 @@ import {
|
|
|
72
72
|
getAntigravityUserAgent,
|
|
73
73
|
readAntigravityProjectId,
|
|
74
74
|
resolveAntigravityCloudCodeBaseUrl
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-LHDV2QUI.js";
|
|
76
76
|
import {
|
|
77
77
|
buildProviderAuthHeaders,
|
|
78
78
|
buildProviderExecutionPlan
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-TMPLPCVX.js";
|
|
80
80
|
import {
|
|
81
81
|
buildDialogFallbackTitleFromUserInput
|
|
82
82
|
} from "./chunk-2MBTWINN.js";
|
|
@@ -90,7 +90,7 @@ import {
|
|
|
90
90
|
resolveEmptyAssistantFallbackMessage,
|
|
91
91
|
resolveEmptyAssistantOutcome,
|
|
92
92
|
resolveTruncatedReasoningTailLog
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-7QVPPOEC.js";
|
|
94
94
|
import {
|
|
95
95
|
COMPACTION_SUMMARY_SCHEMA_VERSION,
|
|
96
96
|
COMPACTION_SUMMARY_SYSTEM_PROMPT,
|
|
@@ -20323,11 +20323,27 @@ function parseDevinConnectFrames(buffer3) {
|
|
|
20323
20323
|
remainder: buffer3.subarray(offset)
|
|
20324
20324
|
};
|
|
20325
20325
|
}
|
|
20326
|
+
function parseDevinConnectTrailer(payload) {
|
|
20327
|
+
const text = payload.toString("utf8").trim();
|
|
20328
|
+
if (!text || text === "{}") return null;
|
|
20329
|
+
try {
|
|
20330
|
+
const parsed = JSON.parse(text);
|
|
20331
|
+
if (!parsed.error) {
|
|
20332
|
+
return new Error(`Devin Connect invalid terminal trailer: ${text}`);
|
|
20333
|
+
}
|
|
20334
|
+
const code = typeof parsed.error.code === "string" ? parsed.error.code : "unknown";
|
|
20335
|
+
const message = typeof parsed.error.message === "string" ? parsed.error.message : "Unknown error";
|
|
20336
|
+
return new Error(`Devin Connect upstream error ${code}: ${message}`);
|
|
20337
|
+
} catch {
|
|
20338
|
+
return new Error(`Devin Connect invalid terminal trailer: ${text}`);
|
|
20339
|
+
}
|
|
20340
|
+
}
|
|
20326
20341
|
function decodeDevinResponsePayload(payload) {
|
|
20327
20342
|
let offset = 0;
|
|
20328
20343
|
let content = "";
|
|
20329
20344
|
let reasoning = "";
|
|
20330
20345
|
let finishReason = null;
|
|
20346
|
+
const events = [];
|
|
20331
20347
|
while (offset < payload.length) {
|
|
20332
20348
|
let tag = 0;
|
|
20333
20349
|
let shift = 0;
|
|
@@ -20363,15 +20379,19 @@ function decodeDevinResponsePayload(payload) {
|
|
|
20363
20379
|
const valBytes = payload.subarray(offset, offset + len);
|
|
20364
20380
|
offset += len;
|
|
20365
20381
|
if (fieldNum === 3) {
|
|
20366
|
-
|
|
20382
|
+
const text = valBytes.toString("utf8");
|
|
20383
|
+
content += text;
|
|
20384
|
+
events.push({ type: "content", text });
|
|
20367
20385
|
} else if (fieldNum === 9) {
|
|
20368
|
-
|
|
20386
|
+
const text = valBytes.toString("utf8");
|
|
20387
|
+
reasoning += text;
|
|
20388
|
+
events.push({ type: "reasoning", text });
|
|
20369
20389
|
}
|
|
20370
20390
|
} else {
|
|
20371
20391
|
break;
|
|
20372
20392
|
}
|
|
20373
20393
|
}
|
|
20374
|
-
return { content, reasoning, finishReason };
|
|
20394
|
+
return { content, reasoning, finishReason, events };
|
|
20375
20395
|
}
|
|
20376
20396
|
function createDevinProvider(options) {
|
|
20377
20397
|
const { token, model = "swe-2", fetchImpl = fetch } = options;
|
|
@@ -20407,6 +20427,7 @@ function createDevinProvider(options) {
|
|
|
20407
20427
|
let text = "";
|
|
20408
20428
|
let reasoning = "";
|
|
20409
20429
|
let buffer3 = Buffer.alloc(0);
|
|
20430
|
+
let sawTrailer = false;
|
|
20410
20431
|
const reader = response.body.getReader();
|
|
20411
20432
|
try {
|
|
20412
20433
|
while (true) {
|
|
@@ -20416,21 +20437,39 @@ function createDevinProvider(options) {
|
|
|
20416
20437
|
const { frames, remainder } = parseDevinConnectFrames(buffer3);
|
|
20417
20438
|
buffer3 = Buffer.from(remainder);
|
|
20418
20439
|
for (const f of frames) {
|
|
20419
|
-
if (
|
|
20420
|
-
|
|
20421
|
-
|
|
20422
|
-
|
|
20423
|
-
|
|
20440
|
+
if (sawTrailer) {
|
|
20441
|
+
throw new Error("Devin Connect received a frame after the terminal trailer");
|
|
20442
|
+
}
|
|
20443
|
+
if (f.flags & 2) {
|
|
20444
|
+
sawTrailer = true;
|
|
20445
|
+
const trailerError = parseDevinConnectTrailer(f.payload);
|
|
20446
|
+
if (trailerError) throw trailerError;
|
|
20447
|
+
continue;
|
|
20424
20448
|
}
|
|
20425
|
-
|
|
20426
|
-
|
|
20427
|
-
|
|
20449
|
+
const delta = decodeDevinResponsePayload(f.payload);
|
|
20450
|
+
text += delta.content;
|
|
20451
|
+
reasoning += delta.reasoning;
|
|
20452
|
+
for (const event of delta.events) {
|
|
20453
|
+
if (event.type === "reasoning") {
|
|
20454
|
+
opts?.onReasoningDelta?.(event.text);
|
|
20455
|
+
} else {
|
|
20456
|
+
opts?.onTextDelta?.(event.text);
|
|
20457
|
+
}
|
|
20428
20458
|
}
|
|
20429
20459
|
}
|
|
20430
20460
|
}
|
|
20431
20461
|
} finally {
|
|
20432
20462
|
reader.releaseLock();
|
|
20433
20463
|
}
|
|
20464
|
+
if (buffer3.length > 0) {
|
|
20465
|
+
throw new Error("Devin Connect upstream ended with an incomplete frame");
|
|
20466
|
+
}
|
|
20467
|
+
if (!sawTrailer) {
|
|
20468
|
+
throw new Error("Devin Connect upstream ended before the terminal trailer");
|
|
20469
|
+
}
|
|
20470
|
+
if (!text && !reasoning) {
|
|
20471
|
+
throw new Error("Devin Connect upstream completed without content");
|
|
20472
|
+
}
|
|
20434
20473
|
return {
|
|
20435
20474
|
content: text,
|
|
20436
20475
|
model: selectedModel,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getModelConfig
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MXUSPS2N.js";
|
|
4
4
|
import {
|
|
5
5
|
isPlatformHostedDeepseekModel,
|
|
6
6
|
isPlatformHostedOpenAIImageModel,
|
|
@@ -25,6 +25,8 @@ var PLATFORM_CHAT_COMPLETIONS_ENDPOINTS = {
|
|
|
25
25
|
qwen: "https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions",
|
|
26
26
|
// Moonshot AI(月之暗面)开放平台 OpenAI 兼容模式(按量计费)
|
|
27
27
|
moonshot: "https://api.moonshot.cn/v1/chat/completions",
|
|
28
|
+
// 阶跃星辰(StepFun)开放平台 OpenAI 兼容模式
|
|
29
|
+
stepfun: "https://api.stepfun.com/v1/chat/completions",
|
|
28
30
|
// 平台托管 GLM 5.3 Flash 的实际上游(RunInfra 独家廉价快档)
|
|
29
31
|
runinfra: "https://api.runinfra.ai/v1/chat/completions"
|
|
30
32
|
// 无 nolo 默认上游:平台托管模型全部显式分流,未识别模型返回 undefined
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
toCompactAgentSummary,
|
|
30
30
|
toSafeAgentSummary,
|
|
31
31
|
toUnavailableAgentSummary
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-73BR2IQT.js";
|
|
33
33
|
import {
|
|
34
34
|
getUserDataItemTimestamp,
|
|
35
35
|
mergeAndDedupUserData
|
|
@@ -81,14 +81,14 @@ import {
|
|
|
81
81
|
} from "./chunk-VF4K2QE6.js";
|
|
82
82
|
import {
|
|
83
83
|
createDocState
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-URWDSZRW.js";
|
|
85
85
|
import {
|
|
86
86
|
BUILTIN_OBJECT_SKILL_IDS,
|
|
87
87
|
buildBuiltinObjectSkillConfig,
|
|
88
88
|
buildBuiltinObjectSkillDbKey,
|
|
89
89
|
buildBuiltinObjectSkillPageContent,
|
|
90
90
|
createDialogAction
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-KEZNSFGD.js";
|
|
92
92
|
import {
|
|
93
93
|
DEFAULT_COLLAPSED_CATEGORIES,
|
|
94
94
|
addContentToSpace,
|
|
@@ -106,7 +106,7 @@ import {
|
|
|
106
106
|
updateContentCategory,
|
|
107
107
|
updateContentTitle,
|
|
108
108
|
writeStoredCollapsedCategories
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-EBKMQULC.js";
|
|
110
110
|
import {
|
|
111
111
|
getCurrentSpaceId,
|
|
112
112
|
getCurrentSpaceIdRaw,
|
|
@@ -128,14 +128,14 @@ import {
|
|
|
128
128
|
selectMsgById,
|
|
129
129
|
uiAskChoiceFunc,
|
|
130
130
|
uiAskChoiceFunctionSchema
|
|
131
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-IDGYOD2O.js";
|
|
132
132
|
import {
|
|
133
133
|
createAgent,
|
|
134
134
|
deleteServerSyncedCredential,
|
|
135
135
|
runLlm,
|
|
136
136
|
streamAgentChatTurn,
|
|
137
137
|
updateAgent
|
|
138
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-DM4FBSWG.js";
|
|
139
139
|
import {
|
|
140
140
|
getActiveDialogKey,
|
|
141
141
|
selectCurrentDialogKey,
|
|
@@ -187,7 +187,7 @@ import {
|
|
|
187
187
|
} from "./chunk-E36HZARC.js";
|
|
188
188
|
import {
|
|
189
189
|
DEFAULT_MODEL
|
|
190
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-MXUSPS2N.js";
|
|
191
191
|
import {
|
|
192
192
|
compactWhitespace
|
|
193
193
|
} from "./chunk-DWLEOOGR.js";
|
|
@@ -1164,7 +1164,7 @@ var buildPlatformFormDataFromArgs = async (args) => {
|
|
|
1164
1164
|
const trimmedModel = toTrimmedString(model);
|
|
1165
1165
|
const trimmedProvider = toTrimmedString(provider);
|
|
1166
1166
|
const modelConfig = await findModelConfig(trimmedModel, trimmedProvider);
|
|
1167
|
-
const { getModelPricing } = await import("./getPricing-
|
|
1167
|
+
const { getModelPricing } = await import("./getPricing-QVTUQQTM.js");
|
|
1168
1168
|
const normalizedTools = tools ?? [];
|
|
1169
1169
|
const resolvedRuntimeToolPolicy = runtimeToolPolicy ?? (normalizedTools.includes("execShell") ? HOSTED_EXEC_RUNTIME_TOOL_POLICY : void 0);
|
|
1170
1170
|
const formData = {
|
|
@@ -4672,7 +4672,7 @@ async function deleteDialogsFunc(args, thunkApi) {
|
|
|
4672
4672
|
const deletedDialogIds = [];
|
|
4673
4673
|
const deletedDialogKeys = [];
|
|
4674
4674
|
const failures = [];
|
|
4675
|
-
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-
|
|
4675
|
+
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-CLV7SVOZ.js");
|
|
4676
4676
|
for (const target of targets) {
|
|
4677
4677
|
try {
|
|
4678
4678
|
await thunkApi.dispatch(deleteDialog2(target.dbKey)).unwrap();
|
|
@@ -15546,7 +15546,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
15546
15546
|
if (!executionInput) {
|
|
15547
15547
|
throw new Error(`ToolRun ${id} has no input to execute with.`);
|
|
15548
15548
|
}
|
|
15549
|
-
const { findToolExecutor: findToolExecutor2 } = await import("./tools-
|
|
15549
|
+
const { findToolExecutor: findToolExecutor2 } = await import("./tools-R3QNWWTD.js");
|
|
15550
15550
|
const { executor } = findToolExecutor2(run.toolName);
|
|
15551
15551
|
toolRunStarted({
|
|
15552
15552
|
id: run.id,
|
|
@@ -18053,7 +18053,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
18053
18053
|
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
18054
18054
|
};
|
|
18055
18055
|
await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
|
|
18056
|
-
const { getDocState, applyExternalDocUpdate } = await import("./docStore-
|
|
18056
|
+
const { getDocState, applyExternalDocUpdate } = await import("./docStore-TDLCHWPF.js");
|
|
18057
18057
|
if (getDocState().pageKey === id) {
|
|
18058
18058
|
applyExternalDocUpdate({
|
|
18059
18059
|
slateData: finalSlateData,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-GHEJJGJI.js";
|
|
5
5
|
import {
|
|
6
6
|
clipMultilineText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RZOJRTKR.js";
|
|
8
8
|
import {
|
|
9
9
|
runLocalAgentTurn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PF6O3GR3.js";
|
|
11
11
|
import {
|
|
12
12
|
applyToolSurfaceConstraints
|
|
13
13
|
} from "./chunk-ZVN6I33J.js";
|