nolo-cli 0.228.0 → 0.228.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-GIFVXKDT.js → _executeModel-AKCTHGMP.js} +62 -61
- package/{action-WZTKEF5H.js → action-C6IQAKN4.js} +6 -6
- package/{addContentAction-MLI6GOBV.js → addContentAction-53364YDW.js} +10 -10
- package/{addDialogAgentAction-ARGQM22H.js → addDialogAgentAction-U5DD5EN5.js} +9 -9
- package/{agentDeleteCommand-UF7XVELS.js → agentDeleteCommand-2E5FAGUO.js} +99 -93
- package/{agentEmailCommands-SFHRPQYC.js → agentEmailCommands-UGZZAH7E.js} +99 -93
- package/{agentListCommands-IXKBP3W5.js → agentListCommands-JCTW3J2K.js} +240 -52
- package/{agentMachineCommands-7NX6PWQ6.js → agentMachineCommands-QPG5ZXF4.js} +45 -41
- package/{agentProviderCommands-C5T7C5KZ.js → agentProviderCommands-QLTABYR7.js} +2 -2
- package/{agentPullCommand-4EQZYHU4.js → agentPullCommand-2EYJ5ENC.js} +1 -1
- package/{agentRecordCommands-IUNX6XD6.js → agentRecordCommands-4NTVR6MZ.js} +98 -92
- package/{agentRunCommand-LCR4XADM.js → agentRunCommand-VHF34PYC.js} +103 -94
- package/{agentRunControl-RN2P6AOD.js → agentRunControl-QYTXUQGY.js} +10 -7
- package/{agentRuntimeLocal-LVXPQ7QA.js → agentRuntimeLocal-U54AKHXH.js} +38 -36
- package/{agentSlice-ZGMOH6TE.js → agentSlice-4JGDEXWK.js} +10 -10
- package/{appDeleteCommands-BESCJOQM.js → appDeleteCommands-XBE5QJ6P.js} +46 -42
- package/{appDeployCommands-LPTR6IOX.js → appDeployCommands-QIYLXXGA.js} +46 -42
- package/{appDeployStatusCommands-BZ7KZ5RD.js → appDeployStatusCommands-JXS6ZQZZ.js} +46 -42
- package/{appGetCommands-EDWGJV4S.js → appGetCommands-SZS7SJPK.js} +46 -42
- package/{appListCommands-OPRWYPM6.js → appListCommands-B3GBJSNV.js} +46 -42
- package/{authCommand-3C3RN4OU.js → authCommand-V6EOMZX6.js} +15 -15
- package/{authCommands-ZMVEDCQD.js → authCommands-T5FODCEG.js} +2 -2
- package/{builtinSkillRegistry-VRCMQ77Q.js → builtinSkillRegistry-ZQC3IIO2.js} +4 -3
- package/{chromeOpsCommands-NZITLHWO.js → chromeOpsCommands-OFX7ZGKP.js} +2 -2
- package/{chunk-MZVCFV3T.js → chunk-223KZUJ6.js} +4 -4
- package/{chunk-UF6J7NXV.js → chunk-2C5VN7NH.js} +1 -1
- package/{chunk-MAA42MMV.js → chunk-2FZVXOFX.js} +4 -4
- package/{chunk-ESN4WNWU.js → chunk-2JHGUL5K.js} +2 -2
- package/chunk-3A5NNQCN.js +64 -0
- package/chunk-3F2FRLIO.js +372 -0
- package/{chunk-V4IYI3SB.js → chunk-46FETNLF.js} +2 -2
- package/{chunk-RR3MB26M.js → chunk-4GYVS4PM.js} +8 -6
- package/{chunk-ZQ6K57FJ.js → chunk-4YPH5KRA.js} +1 -1
- package/{chunk-Y4NPF2UN.js → chunk-5AYP5QBB.js} +5 -5
- package/{chunk-4OXPN3WC.js → chunk-5ISNPTQH.js} +4 -4
- package/{chunk-CO6E7YK6.js → chunk-5P3PPQVP.js} +1 -1
- package/{chunk-6TVYUQRM.js → chunk-6BMTKYAO.js} +2 -2
- package/{chunk-KLAMJNKQ.js → chunk-6PAHSSD2.js} +15 -8
- package/{chunk-CTWCZKNS.js → chunk-6SOWMEAY.js} +4 -4
- package/{chunk-ARFCL53U.js → chunk-6VEO7Z3Y.js} +5 -5
- package/{chunk-ZM5AZTQG.js → chunk-7BIJFGKS.js} +20 -8
- package/{chunk-BAH3BAUZ.js → chunk-7OVOZRZF.js} +5 -5
- package/{chunk-N74XL3NI.js → chunk-7PON4LBY.js} +42 -24
- package/{chunk-LTVEOOZL.js → chunk-7WHCIA5V.js} +16 -3
- package/{chunk-HZDK56EK.js → chunk-ADYWV732.js} +34 -12
- package/{chunk-2FK2KZSL.js → chunk-AIFQKNPP.js} +1 -1
- package/{chunk-VTHWBTRE.js → chunk-BPB3T5EU.js} +5 -8
- package/{chunk-SX6AWTNK.js → chunk-BZLGPM5B.js} +3 -3
- package/{chunk-MTM4LRVG.js → chunk-BZMDWGQQ.js} +2 -2
- package/{chunk-JP2BH4NC.js → chunk-CEKRIR22.js} +1 -1
- package/{chunk-5HUO7SEX.js → chunk-D634SL2Y.js} +1 -1
- package/{chunk-SCMYAGQE.js → chunk-DHRPLRIR.js} +294 -159
- package/{chunk-VUHKG4KS.js → chunk-DNNPARJK.js} +9 -5
- package/{chunk-X22AUZKL.js → chunk-E3LSO6EI.js} +189 -88
- package/{chunk-LHCGKAFO.js → chunk-EHFBP6IK.js} +100 -48
- package/{chunk-6ASGEP5D.js → chunk-EJQE5HB7.js} +1 -1
- package/{chunk-2BKNICGK.js → chunk-EL5NRJHI.js} +1 -1
- package/chunk-EUGTFFO6.js +42 -0
- package/{chunk-YFW4H6DL.js → chunk-EVHTYVD2.js} +821 -131
- package/{chunk-6XRPBZRS.js → chunk-EYLGAEB4.js} +0 -134
- package/{chunk-E5RYFR7E.js → chunk-FEIVARWR.js} +49 -15
- package/{chunk-3DJJ4CFG.js → chunk-FLBJ7IJI.js} +9 -9
- package/{chunk-W3HSD32M.js → chunk-FXEPZKNJ.js} +2 -2
- package/{chunk-VKCPKCSS.js → chunk-FYAMUU55.js} +625 -62
- package/{chunk-JEWMQR6J.js → chunk-FZANZZ63.js} +1 -1
- package/{chunk-WWTSEBDF.js → chunk-GIXWVN2W.js} +1 -1
- package/{chunk-YHNUDTU4.js → chunk-HDKMVYNJ.js} +4 -4
- package/chunk-HEVRQGGH.js +106 -0
- package/{chunk-PBPXXMWZ.js → chunk-HFHJPHFK.js} +1 -1
- package/{chunk-WQDTSK5U.js → chunk-HPDLPEUG.js} +11 -5
- package/{chunk-SPU3L3OR.js → chunk-HQUGB2HM.js} +3 -3
- package/chunk-IVK2KT3H.js +209 -0
- package/{chunk-73PZD7JZ.js → chunk-IYLUK67R.js} +2 -2
- package/{chunk-BFKJ2RS3.js → chunk-J55F3IEZ.js} +1 -1
- package/{chunk-ADOOL3PG.js → chunk-J7JRCOIW.js} +1 -1
- package/{chunk-AEZBAFC6.js → chunk-JAKRY74O.js} +138 -8
- package/{chunk-NEG5LYK5.js → chunk-JCQ3WCQ3.js} +3 -1
- package/{chunk-W6T4FNZP.js → chunk-JLZJL3WC.js} +219 -351
- package/{chunk-PQ63BDV3.js → chunk-JPXACKSW.js} +9 -1
- package/{chunk-IIOSZAJX.js → chunk-KDBDOXOM.js} +137 -53
- package/{chunk-CIGCTSBF.js → chunk-KDDHQMSH.js} +1 -1
- package/{chunk-OAZP4TSA.js → chunk-KG27JIG4.js} +2 -2
- package/{chunk-RHBD22LV.js → chunk-KHYSFS3W.js} +80 -4
- package/{chunk-7UVVLYKC.js → chunk-KKIQAVDR.js} +5 -5
- package/{chunk-HS7MLR74.js → chunk-KZ4A7EIV.js} +3 -5
- package/{chunk-OLGFIQN2.js → chunk-LLUBUHNT.js} +1 -1
- package/{chunk-QJTZ76CP.js → chunk-LS5KAVFQ.js} +1 -0
- package/{chunk-K26XPZRB.js → chunk-LVZVSLKO.js} +29 -9
- package/{chunk-XJSEST7D.js → chunk-MNFUKRRU.js} +3 -3
- package/{chunk-R5NRFXGD.js → chunk-O3A2CHAL.js} +5 -5
- package/{chunk-4IQN6FWY.js → chunk-OB4FBZXJ.js} +4 -4
- package/{chunk-J2VIGDJN.js → chunk-OJSJJKHF.js} +3 -3
- package/{chunk-OHUYN3YU.js → chunk-OKAXQFON.js} +1 -1
- package/{chunk-CD2DK5JA.js → chunk-OKH74FML.js} +2 -1
- package/{chunk-MYYNZG2M.js → chunk-OOV5JN25.js} +4 -4
- package/{chunk-TMRJGSK2.js → chunk-OOVOAG4Q.js} +1 -1
- package/chunk-OQFOE4SJ.js +405 -0
- package/{chunk-AS6L5KSD.js → chunk-P4R5KXU7.js} +2 -2
- package/{chunk-VIYVRPMJ.js → chunk-PHREU2KZ.js} +5 -3
- package/{chunk-EDT65EUE.js → chunk-PIVTQRX6.js} +45 -15
- package/{chunk-QMNVV3YM.js → chunk-PJL7OJRC.js} +12 -11
- package/{chunk-XCA4WHX5.js → chunk-PNLDLUMO.js} +315 -360
- package/{chunk-UPOW5HTG.js → chunk-QGFLVQ6E.js} +3 -3
- package/{chunk-JU7VN4LF.js → chunk-QONAOHVW.js} +6 -6
- package/{chunk-UOUMPHS5.js → chunk-R3FZHW4Q.js} +13 -13
- package/{chunk-K7VIXYTZ.js → chunk-R3MV2GII.js} +1 -45
- package/{chunk-FE7G6DSP.js → chunk-R72QWIFO.js} +14 -4
- package/{chunk-KZAT2M2V.js → chunk-RIWKZT7E.js} +22 -0
- package/{chunk-RMWDKLBE.js → chunk-S7H4KTMB.js} +1099 -71
- package/{chunk-IJZC2KIJ.js → chunk-SA356NGW.js} +1 -1
- package/{chunk-BVEDT6DM.js → chunk-SCAC3NM5.js} +3 -3
- package/{chunk-EQZQUQ33.js → chunk-SLUN7W6S.js} +5 -5
- package/{chunk-KK3FCYZM.js → chunk-SQL7YNED.js} +7 -4
- package/{chunk-LMGFVH65.js → chunk-SSOR2EDT.js} +10 -10
- package/chunk-TRRXYFTR.js +46 -0
- package/{chunk-XNTZD4AE.js → chunk-TUOHSUK5.js} +19367 -17503
- package/chunk-TYJCIA2O.js +835 -0
- package/{chunk-FTWAOKFU.js → chunk-U3BUWDUP.js} +415 -1962
- package/{chunk-CD64YXRB.js → chunk-U6QNVOR5.js} +1 -1
- package/chunk-UAF5VQCE.js +77 -0
- package/{chunk-CIUZXD5D.js → chunk-UFGUJ2IH.js} +5 -5
- package/{chunk-CTIEJRTP.js → chunk-UP7KBWLE.js} +81 -29
- package/{chunk-GX6DITLQ.js → chunk-UUCYUN6Y.js} +1 -1
- package/{chunk-UHW6SCVK.js → chunk-UZKBVQUX.js} +1 -1
- package/{chunk-XSRSAU3O.js → chunk-V5TI7HJH.js} +3 -3
- package/{chunk-WFGNWWJI.js → chunk-VH7UO6E5.js} +252 -114
- package/{chunk-ITBX27W6.js → chunk-VJFDG3ZG.js} +30 -122
- package/{chunk-6MTVACLN.js → chunk-WC3J5SL2.js} +277 -293
- package/{chunk-HCCQEMTK.js → chunk-WD5547ZF.js} +15 -12
- package/{chunk-X3OZ655T.js → chunk-WS36XPJD.js} +2 -2
- package/{chunk-JFRJEPFI.js → chunk-WSLL7VV4.js} +2 -2
- package/chunk-XRGBJHZX.js +136 -0
- package/{chunk-KZ5OD2MO.js → chunk-Y2KWJTOZ.js} +3 -3
- package/{dialogUsageCommand-6RW2FY6K.js → chunk-Y2TCTNUD.js} +24 -17
- package/{chunk-FFFKAOJN.js → chunk-YN23INFZ.js} +1 -1
- package/{chunk-ODBYGVO2.js → chunk-YXK3GJF5.js} +5 -5
- package/{chunk-6CXQ3YNJ.js → chunk-Z2OWAYMI.js} +53 -31
- package/{chunk-6XVPMGXK.js → chunk-ZTHAJU3O.js} +10 -4
- package/{chunk-D25ONVOH.js → chunk-ZYPXOQS2.js} +1 -1
- package/{cliAgentConfigHelpers-37ZNEY5Y.js → cliAgentConfigHelpers-BXHQ3PXP.js} +8 -8
- package/{cliAuthorityBrokerClient-SFPC3WVK.js → cliAuthorityBrokerClient-TFNXJLXL.js} +1 -1
- package/cliAuthorityBrokerProcess-5ZFBTHLB.js +22 -0
- package/{cliLocalAgentRecordReader-MCQVRWBR.js → cliLocalAgentRecordReader-47PXMHPH.js} +43 -41
- package/{commandRegistry-NTH5IAN5.js → commandRegistry-CTMPAQH2.js} +93 -156
- package/{contentThunks-SPXTX5U2.js → contentThunks-CAHIIZO5.js} +25 -25
- package/{cooldownCommands-TIFCHCUN.js → cooldownCommands-WDOI5VD7.js} +3 -3
- package/{createAgentAutomationAction-KUQKCOXB.js → createAgentAutomationAction-M25XZSPD.js} +25 -25
- package/{createDialogAction-HJN5U3XS.js → createDialogAction-4SN7FKI7.js} +26 -26
- package/{createPageAction-ZAHRDOAU.js → createPageAction-N7QPDN3M.js} +28 -28
- package/{db-CMUTP3W5.js → db-VR74ADGC.js} +7 -2
- package/{dbSlice-656PMWR2.js → dbSlice-RWPSVHBC.js} +9 -9
- package/{deleteFile-ZCQESEEQ.js → deleteFile-ECU6FU5C.js} +12 -7
- package/{dialogCommands-KZTZLWPZ.js → dialogCommands-BBHWCKDP.js} +57 -47
- package/{dialogNotifyCommand-PST75COP.js → dialogNotifyCommand-IASQGEMW.js} +9 -9
- package/{dialogSlice-BXIERQHO.js → dialogSlice-JI3J22RV.js} +23 -23
- package/dialogTraceCommand-EW2KK6A4.js +961 -0
- package/dialogUsageCommand-WJ3U6KZU.js +27 -0
- package/{docCreateCommands-26HJ5NAY.js → docCreateCommands-QSX3X5U4.js} +45 -41
- package/{docDeleteCommands-UAOHH5XK.js → docDeleteCommands-63JBG2HQ.js} +46 -42
- package/{docReadCommands-4ADG7YE6.js → docReadCommands-CQFKRQUI.js} +45 -41
- package/{docStore-FZ75HWP2.js → docStore-XLBKGGNM.js} +10 -10
- package/{docUpdateCommands-OGFJZENF.js → docUpdateCommands-534LUK25.js} +45 -41
- package/ebookDownloaderAgentCommand-DYSKF5ZY.js +677 -0
- package/{getPricing-FCHYVRJU.js → getPricing-5BLZRPTM.js} +3 -3
- package/{handleSendMessageAction-KP6GGBFY.js → handleSendMessageAction-Q2VMEVOR.js} +90 -48
- package/{hostCredentialCreate-23TX56G7.js → hostCredentialCreate-C57T7YPE.js} +99 -93
- package/index.js +23 -11
- package/{localDialogRead-CIOTQM5T.js → localDialogRead-BJJT3TF5.js} +1 -1
- package/{localRuntimeAdapter-MTUWOYPN.js → localRuntimeAdapter-OALZPFZU.js} +96 -90
- package/{localRuntimeAuthority-TYHQCTZN.js → localRuntimeAuthority-UF2DAQ3F.js} +13 -3
- package/{localRuntimeDb-BO7IVWAZ.js → localRuntimeDb-ZJFGNHML.js} +1 -1
- package/{machineCommands-4WJUJQHW.js → machineCommands-N6IVWRZT.js} +109 -92
- package/{machineWsRunDispatch-V3U4JM67.js → machineWsRunDispatch-PDWYB33B.js} +97 -91
- package/{markdownToSlate-KIYM7B3P.js → markdownToSlate-PXYAIBVL.js} +1 -1
- package/{mcpLocalAuthorizeCommand-TI656UWC.js → mcpLocalAuthorizeCommand-KYI4EGF5.js} +17 -13
- package/{memberThunks-JFYC4Z5L.js → memberThunks-43B7UYC5.js} +11 -11
- package/{models-EP7VG6N2.js → models-ZX2BYIMB.js} +2 -2
- package/package.json +2 -1
- package/{projectArchive-NU2Z5HOR.js → projectArchive-TJNW5DLM.js} +28 -28
- package/{providerPresetApply-4H7YP5D7.js → providerPresetApply-NTJUINI6.js} +35 -16
- package/{providerRegistry-F3UPOTIY.js → providerRegistry-W45SLUV6.js} +5 -5
- package/{read-BRZHXUJ6.js → read-KG6INYUT.js} +12 -7
- package/{readDocTool-N7RVFQEE.js → readDocTool-N3GA52JR.js} +1 -1
- package/{readlineWorkspace-T56MRMS5.js → readlineWorkspace-PJZJVGA5.js} +1296 -1056
- package/{removeDialogAgentAction-J7XU7OUX.js → removeDialogAgentAction-EEVSOQOJ.js} +11 -11
- package/{runAgentClientLoop-O2GRCGRZ.js → runAgentClientLoop-3VC5TCDW.js} +69 -58
- package/{runtimeDoctorCommands-RDRJXMXC.js → runtimeDoctorCommands-V3M3JTUV.js} +14 -11
- package/{secretCommands-2FEMRUFM.js → secretCommands-KVVZS7A6.js} +2 -2
- package/{setDialogExtraReferencesAction-Q4V2ZZW2.js → setDialogExtraReferencesAction-DNO5POHA.js} +10 -10
- package/{setPrimaryDialogAgentAction-742H5S6T.js → setPrimaryDialogAgentAction-QABBEO4C.js} +11 -11
- package/{settingThunks-T4FXSV6M.js → settingThunks-DVKG4X4S.js} +13 -17
- package/{skillDiscovery-MDDKPTW3.js → skillDiscovery-ZMJH36AK.js} +3 -3
- package/{spaceCommands-W5TAVFDT.js → spaceCommands-AGGZXPY3.js} +218 -77
- package/{streamAgentChatTurn-OWDJMU5E.js → streamAgentChatTurn-4GTLL2OF.js} +111 -95
- package/{switchDialogAgentAction-HLDLHRRA.js → switchDialogAgentAction-KYWJSGOO.js} +9 -9
- package/{tableCommands-44GC4N6J.js → tableCommands-EFA754RE.js} +3 -3
- package/{tools-O7SGGVA3.js → tools-5AGPOPLW.js} +48 -47
- package/{tuiRestart-EOGC2BYY.js → tuiRestart-77E7PL4R.js} +9 -8
- package/{tuiSummaryLlmCaller-TM5BU73J.js → tuiSummaryLlmCaller-HROLGN4F.js} +12 -12
- package/{updateCommands-FBYA5WVG.js → updateCommands-GJGRS6JK.js} +3 -3
- package/{updateDialogTitleAction-EXSZGTLL.js → updateDialogTitleAction-5OSEDGRK.js} +25 -25
- package/{usageCommand-L4OFWXEU.js → usageCommand-WI6SQOPB.js} +2 -2
- package/{usageRebuildCommand-7JR33UHS.js → usageRebuildCommand-WQRLLZAT.js} +3 -3
- package/{windowsSelfUpdate-M4V77OUB.js → windowsSelfUpdate-C7LGVWYX.js} +2 -2
- package/{workloadLifecycle-ZCSQCHG3.js → workloadLifecycle-P2SJVV3S.js} +2 -2
- package/chunk-FGHEF6WI.js +0 -34
- package/chunk-U5LOKQ2R.js +0 -176
- package/chunk-YDRRGVT5.js +0 -142
- package/chunk-YGDYYFRX.js +0 -86
- package/chunk-Z7KE4K3H.js +0 -758
- package/lib-62SWPXNF.js +0 -21042
- /package/{chunk-ANUP75N2.js → chunk-2E4BYAUE.js} +0 -0
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readSseFrames
|
|
3
3
|
} from "./chunk-HNUWUO75.js";
|
|
4
|
+
import {
|
|
5
|
+
resolveToolImagePolicy
|
|
6
|
+
} from "./chunk-BZLGPM5B.js";
|
|
4
7
|
import {
|
|
5
8
|
accumulateToolCallDelta,
|
|
6
9
|
createThinkParserState,
|
|
@@ -28,10 +31,7 @@ import {
|
|
|
28
31
|
stablePromptCacheKey,
|
|
29
32
|
toOpenAiCompatibleMessages,
|
|
30
33
|
toResponsesTools
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import {
|
|
33
|
-
resolveToolImagePolicy
|
|
34
|
-
} from "./chunk-SX6AWTNK.js";
|
|
34
|
+
} from "./chunk-FXEPZKNJ.js";
|
|
35
35
|
import {
|
|
36
36
|
isMeaningfulChatCompletionOutput,
|
|
37
37
|
isMeaningfulResponsesOutput
|
|
@@ -46,19 +46,28 @@ import {
|
|
|
46
46
|
buildProviderExecutionPlan,
|
|
47
47
|
canUsePlatformChatProvider,
|
|
48
48
|
hasDirectOpenAiCompatibleProvider,
|
|
49
|
+
isAgentCredentialShared,
|
|
49
50
|
resolveAgentRuntimeLocation,
|
|
50
51
|
resolveClientVersion,
|
|
52
|
+
resolveOutboundProxyApiKey,
|
|
51
53
|
resolvePlatformAuthToken,
|
|
52
54
|
resolvePlatformServerUrl,
|
|
53
55
|
resolveProviderTransportDecision
|
|
54
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-LVZVSLKO.js";
|
|
57
|
+
import {
|
|
58
|
+
clampReasoningEffort
|
|
59
|
+
} from "./chunk-OKH74FML.js";
|
|
55
60
|
import {
|
|
56
61
|
isRecord
|
|
57
62
|
} from "./chunk-KUG52IAP.js";
|
|
58
63
|
import {
|
|
59
64
|
NOLO_CLIENT_VERSION_HEADER,
|
|
60
|
-
|
|
61
|
-
|
|
65
|
+
PLATFORM_HOSTED_KIMI_PROVIDER,
|
|
66
|
+
hostedKimiLegacyThinkingOverride,
|
|
67
|
+
isPlatformKimiProviderModel,
|
|
68
|
+
resolvePlatformEffectiveModel,
|
|
69
|
+
usesMimoThinkingWire
|
|
70
|
+
} from "./chunk-JPXACKSW.js";
|
|
62
71
|
|
|
63
72
|
// packages/ai/token/sseUsageExtract.ts
|
|
64
73
|
var TOKEN_FIELDS = [
|
|
@@ -443,11 +452,9 @@ function isAbortOrTimeoutError(error) {
|
|
|
443
452
|
}
|
|
444
453
|
var CHAT_PROXY_PATH = "/api/v1/chat";
|
|
445
454
|
function shouldDisableThinking(providerConfig) {
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
// (上游 thinking 默认 enabled)。
|
|
450
|
-
isPlatformMimoProviderModel(providerConfig.provider, providerConfig.model);
|
|
455
|
+
if (!usesMimoThinkingWire(providerConfig.provider, providerConfig.model, providerConfig.endpoint)) return false;
|
|
456
|
+
const effort = providerConfig.requestOptions.reasoning_effort;
|
|
457
|
+
return effort === "none" || effort === "off" || !effort && providerConfig.enableThinking !== true;
|
|
451
458
|
}
|
|
452
459
|
function isResponsesEndpoint(endpoint) {
|
|
453
460
|
return /\/responses$/i.test(endpoint.trim());
|
|
@@ -490,7 +497,9 @@ async function resolvePlatformChatProviderConfig(args) {
|
|
|
490
497
|
provider: plan.provider,
|
|
491
498
|
endpoint: plan.endpoint,
|
|
492
499
|
requestOptions: plan.requestOptions,
|
|
500
|
+
enableThinking: args.agentConfig.enableThinking,
|
|
493
501
|
...plan.apiKey ? { apiKey: plan.apiKey } : {},
|
|
502
|
+
...isAgentCredentialShared(args.agentConfig) ? { credentialSynced: true } : {},
|
|
494
503
|
...plan.apiKeyHeader ? { apiKeyHeader: plan.apiKeyHeader } : {},
|
|
495
504
|
...args.agentConfig.apiSource ? { apiSource: args.agentConfig.apiSource } : {},
|
|
496
505
|
...plan.usageProvider ? { usageProvider: plan.usageProvider } : {},
|
|
@@ -506,7 +515,9 @@ async function resolvePlatformChatProviderConfig(args) {
|
|
|
506
515
|
provider: plan.provider,
|
|
507
516
|
endpoint: plan.endpoint,
|
|
508
517
|
requestOptions: plan.requestOptions,
|
|
518
|
+
enableThinking: args.agentConfig.enableThinking,
|
|
509
519
|
...plan.apiKey ? { apiKey: plan.apiKey } : {},
|
|
520
|
+
...plan.credentialSynced === true ? { credentialSynced: true } : {},
|
|
510
521
|
...plan.apiKeyHeader ? { apiKeyHeader: plan.apiKeyHeader } : {},
|
|
511
522
|
...plan.apiSource ? { apiSource: plan.apiSource } : {},
|
|
512
523
|
...plan.usageProvider ? { usageProvider: plan.usageProvider } : {},
|
|
@@ -521,7 +532,18 @@ function buildPlatformChatCompletionRequest(args) {
|
|
|
521
532
|
);
|
|
522
533
|
}
|
|
523
534
|
const usesResponsesApi = isResponsesEndpoint(args.providerConfig.endpoint);
|
|
524
|
-
const requestOptions = usesResponsesApi ? toResponsesRequestOptions(args.providerConfig.requestOptions) : args.providerConfig.requestOptions;
|
|
535
|
+
const requestOptions = usesResponsesApi ? toResponsesRequestOptions(args.providerConfig.requestOptions) : { ...args.providerConfig.requestOptions };
|
|
536
|
+
const { provider, model, usageProvider } = args.providerConfig;
|
|
537
|
+
const effort = requestOptions.reasoning_effort;
|
|
538
|
+
if (!usesResponsesApi && typeof effort === "string" && effort && provider === PLATFORM_HOSTED_KIMI_PROVIDER && usageProvider === "baseten" && isPlatformKimiProviderModel(provider, resolvePlatformEffectiveModel(model))) {
|
|
539
|
+
const clamped = clampReasoningEffort(effort, provider, model);
|
|
540
|
+
if (clamped) requestOptions.reasoning_effort = clamped;
|
|
541
|
+
else delete requestOptions.reasoning_effort;
|
|
542
|
+
}
|
|
543
|
+
const disableThinking = !usesResponsesApi && shouldDisableThinking(args.providerConfig);
|
|
544
|
+
if (disableThinking && ["none", "off"].includes(String(requestOptions.reasoning_effort))) {
|
|
545
|
+
delete requestOptions.reasoning_effort;
|
|
546
|
+
}
|
|
525
547
|
const shouldStripReasoning = !usesResponsesApi && shouldStripReasoningContentForOutbound(
|
|
526
548
|
args.providerConfig.provider,
|
|
527
549
|
args.providerConfig.model
|
|
@@ -532,6 +554,7 @@ function buildPlatformChatCompletionRequest(args) {
|
|
|
532
554
|
shouldStripReasoning
|
|
533
555
|
);
|
|
534
556
|
const sanitizedMessages = sanitizeForOutbound(args.messages, args.tools);
|
|
557
|
+
const proxyApiKey = resolveOutboundProxyApiKey(args.providerConfig);
|
|
535
558
|
const body = {
|
|
536
559
|
model: args.providerConfig.model,
|
|
537
560
|
...usesResponsesApi ? {
|
|
@@ -578,7 +601,13 @@ function buildPlatformChatCompletionRequest(args) {
|
|
|
578
601
|
tools: usesResponsesApi ? toResponsesTools(args.tools) : args.tools,
|
|
579
602
|
...usesResponsesApi ? {} : { tool_choice: "auto" }
|
|
580
603
|
} : {},
|
|
581
|
-
...
|
|
604
|
+
...disableThinking ? { thinking: { type: "disabled" } } : {},
|
|
605
|
+
...!usesResponsesApi ? hostedKimiLegacyThinkingOverride(
|
|
606
|
+
args.providerConfig.provider,
|
|
607
|
+
args.providerConfig.model,
|
|
608
|
+
args.providerConfig.enableThinking,
|
|
609
|
+
args.providerConfig.requestOptions.reasoning_effort
|
|
610
|
+
) : void 0,
|
|
582
611
|
// 缓存路由亲和提示:托管上游是多副本共享池,前缀缓存是节点本地的,
|
|
583
612
|
// 请求落到另一副本就整条 miss(实测占该线全部 miss token 的 52%,
|
|
584
613
|
// 依据见 promptCacheKey.ts)。键只取跨轮稳定的部分(model + system 稳定
|
|
@@ -601,7 +630,8 @@ function buildPlatformChatCompletionRequest(args) {
|
|
|
601
630
|
agentKey: args.providerConfig.agentKey,
|
|
602
631
|
...args.dialogId?.trim() ? { dialogId: args.dialogId.trim() } : {},
|
|
603
632
|
...args.providerConfig.apiSource ? { apiSource: args.providerConfig.apiSource } : {},
|
|
604
|
-
|
|
633
|
+
// Overwrite any same-named request option; undefined is omitted on the wire.
|
|
634
|
+
KEY: proxyApiKey,
|
|
605
635
|
...args.providerConfig.apiKeyHeader ? { apiKeyHeader: args.providerConfig.apiKeyHeader } : {}
|
|
606
636
|
};
|
|
607
637
|
const outboundBody = usesResponsesApi ? body : applyFunctionToolReasoningCompatibility(body, args.providerConfig.model);
|
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
buildSpaceLookup,
|
|
3
3
|
getSpaceContentKeys
|
|
4
4
|
} from "./chunk-ID4G2MAR.js";
|
|
5
|
+
import {
|
|
6
|
+
parsePositiveFiniteNumberOrFallback
|
|
7
|
+
} from "./chunk-Y5GCAMGP.js";
|
|
5
8
|
import {
|
|
6
9
|
deleteDbRecordOnServers,
|
|
7
10
|
listUserRecordsFromServers,
|
|
8
11
|
readDbRecordFromServers,
|
|
9
12
|
readLiveDbRecordAfterTombstoneMerge
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import {
|
|
12
|
-
parsePositiveFiniteNumberOrFallback
|
|
13
|
-
} from "./chunk-Y5GCAMGP.js";
|
|
13
|
+
} from "./chunk-FZANZZ63.js";
|
|
14
14
|
import {
|
|
15
15
|
loadLocalRunChildDialogIds
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-KDDHQMSH.js";
|
|
17
17
|
import {
|
|
18
18
|
buildDialogAttachmentPlan,
|
|
19
19
|
extractFileContentIds,
|
|
@@ -28,10 +28,10 @@ import {
|
|
|
28
28
|
} from "./chunk-QQ56R7KS.js";
|
|
29
29
|
import {
|
|
30
30
|
getDefaultCliLocalRuntimeDb
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-OQFOE4SJ.js";
|
|
32
32
|
import {
|
|
33
33
|
isLevelLockError
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-TRRXYFTR.js";
|
|
35
35
|
import {
|
|
36
36
|
resolveLocalDialogDbCandidates,
|
|
37
37
|
resolveNoloHome,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
boundSummaryText,
|
|
42
42
|
buildDialogReadEnvelope,
|
|
43
43
|
projectDialogReadForAgent
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-VJFDG3ZG.js";
|
|
45
45
|
import {
|
|
46
46
|
asRecordOrEmpty
|
|
47
47
|
} from "./chunk-KX6YBIHG.js";
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
} from "./chunk-BIDSIRTS.js";
|
|
69
69
|
import {
|
|
70
70
|
t
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-FEIVARWR.js";
|
|
72
72
|
import {
|
|
73
73
|
toErrorMessage
|
|
74
74
|
} from "./chunk-HNMXYYJR.js";
|
|
@@ -825,7 +825,7 @@ function isExplicitDialogIdMismatch(meta, dialogId) {
|
|
|
825
825
|
return meta && typeof meta === "object" && "id" in meta && meta.id != null && String(meta.id) !== dialogId;
|
|
826
826
|
}
|
|
827
827
|
async function readDialogFromLocalDb(dialogKey, dialogId, limit, readLocalDialog) {
|
|
828
|
-
const reader = readLocalDialog ?? (await import("./localDialogRead-
|
|
828
|
+
const reader = readLocalDialog ?? (await import("./localDialogRead-BJJT3TF5.js")).readDialogFromLocalDb;
|
|
829
829
|
const result = await reader({ dialogKey, dialogId, limit });
|
|
830
830
|
return {
|
|
831
831
|
...result,
|
|
@@ -840,7 +840,7 @@ async function readLocalDialogAtDbPathDefault(args) {
|
|
|
840
840
|
);
|
|
841
841
|
}
|
|
842
842
|
const db = await getDefaultCliLocalRuntimeDb();
|
|
843
|
-
const { readDialogFromLocalDb: reader } = await import("./localDialogRead-
|
|
843
|
+
const { readDialogFromLocalDb: reader } = await import("./localDialogRead-BJJT3TF5.js");
|
|
844
844
|
return reader({ ...args, db });
|
|
845
845
|
}
|
|
846
846
|
async function readDialogFromLocalDbWithFallback(args) {
|
|
@@ -2034,6 +2034,7 @@ export {
|
|
|
2034
2034
|
isChildDialogByField,
|
|
2035
2035
|
isChildDialog,
|
|
2036
2036
|
isHiddenFromDialogList,
|
|
2037
|
+
resolveDialogReadTarget,
|
|
2037
2038
|
isLevelDbOpenUnavailableError,
|
|
2038
2039
|
readDialogSnapshot,
|
|
2039
2040
|
isCleanDialogNotFoundFailure,
|