nolo-cli 0.79.0-alpha.2 → 0.79.0
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/README.md +2 -2
- package/{_executeModel-T3FPYFVF.js → _executeModel-U5V7LOJX.js} +46 -46
- package/{action-D22U6CTH.js → action-EXQVY3UO.js} +11 -11
- package/{addContentAction-XAPUTGL4.js → addContentAction-6IXQSRD2.js} +9 -9
- package/{addDialogAgentAction-M7VLLBZM.js → addDialogAgentAction-FZOB4BYM.js} +8 -8
- package/{agentDeleteCommand-2TYFURBN.js → agentDeleteCommand-4MIJFQQB.js} +30 -28
- package/{agentEmailCommands-7P35ZMUA.js → agentEmailCommands-JUXT36BY.js} +62 -60
- package/{agentGrantCommands-R3VQEZJR.js → agentGrantCommands-YW6PQAQ2.js} +2 -2
- package/{agentListCommands-IFUOWXP3.js → agentListCommands-MUVKMMZ5.js} +38 -30
- package/{agentMachineCommands-G46ZZ2ZQ.js → agentMachineCommands-56FTZLYV.js} +30 -28
- package/{agentProviderCommands-65ZC2WB4.js → agentProviderCommands-TOMVKJOV.js} +87 -0
- package/{agentPullCommand-N7L2CT7L.js → agentPullCommand-GLOOXJ2E.js} +3 -3
- package/{agentRecordCommands-R74LTQEQ.js → agentRecordCommands-FST3KAKG.js} +59 -57
- package/{agentRunCommand-UKJAECQ6.js → agentRunCommand-UMUEVIY2.js} +60 -58
- package/{agentRunControl-T44MESII.js → agentRunControl-XLGD3UZ5.js} +1 -1
- package/{agentRuntimeLocal-PUZINLWJ.js → agentRuntimeLocal-NH6GSGAJ.js} +28 -26
- package/{agentSlice-EACXUOWW.js → agentSlice-YZK6KG73.js} +10 -10
- package/{appDeleteCommands-U4NTEJYQ.js → appDeleteCommands-U45KXYX7.js} +30 -28
- package/{appDeployCommands-FXF45Q7F.js → appDeployCommands-LWQIQCFX.js} +30 -28
- package/{appDeployStatusCommands-KONVRM53.js → appDeployStatusCommands-LZO33PGD.js} +30 -28
- package/{appGetCommands-3VOGIZ7T.js → appGetCommands-OJSO6BCF.js} +30 -28
- package/{appListCommands-A6ROBW7P.js → appListCommands-NE56V7DI.js} +30 -28
- package/{authCommand-EVGFLAHO.js → authCommand-U5LA6H4Y.js} +164 -24
- package/{authCommands-ILTBI6JV.js → authCommands-RGOGCPP6.js} +4 -5
- package/builtinSkillRegistry-4NB7PCOF.js +33 -0
- package/{chatQueueReduxAdapter-XEIJO5WR.js → chatQueueReduxAdapter-FRMSYX7N.js} +24 -24
- package/{chunk-C3FZR5EC.js → chunk-2F7RJC6L.js} +1 -1
- package/{chunk-U6LKJRJB.js → chunk-377KM42Z.js} +42 -26
- package/{chunk-HQUORJTM.js → chunk-3BMYXEUW.js} +1 -1
- package/{chunk-AFIWC5NH.js → chunk-3XMOAYRC.js} +1 -1
- package/{chunk-UJ63UXGE.js → chunk-4CAPEGHN.js} +1077 -752
- package/{chunk-DWPNOYMB.js → chunk-4JBZUECA.js} +1 -1
- package/{chunk-NG4UT4K4.js → chunk-4QKBQHPQ.js} +1 -1
- package/{chunk-UZ6XXCVR.js → chunk-546FPOW3.js} +15 -2
- package/{chunk-5XTOKQLW.js → chunk-5UTFL4QJ.js} +6 -2
- package/chunk-5ZUL4CUO.js +10 -0
- package/{chunk-E6RGHPDR.js → chunk-6D6VBVEW.js} +4 -6
- package/{chunk-G3NT6BM3.js → chunk-7IBK6MYW.js} +142 -59
- package/{chunk-BYEJ7K2Z.js → chunk-7S4YWN7P.js} +1 -1
- package/{chunk-SREASRV5.js → chunk-ABQYVJBJ.js} +1 -1
- package/{chunk-H7UKKEIS.js → chunk-AQDH76OK.js} +1 -1
- package/{chunk-L2Y24GRM.js → chunk-B4S7MR5S.js} +16 -12
- package/{chunk-E36HZARC.js → chunk-BF2K6MRF.js} +3 -3
- package/{chunk-MGU5ADIQ.js → chunk-BKP7CFUD.js} +10 -10
- package/{chunk-2KDR4CWE.js → chunk-BYMV6QZG.js} +24 -1
- package/{chunk-AFIKMMGC.js → chunk-COM7GG76.js} +1 -1
- package/{chunk-HH65VA5U.js → chunk-CPH3W5A7.js} +15 -3
- package/{chunk-XWNRAIUL.js → chunk-DM4UNXPK.js} +6 -16
- package/{chunk-ZLPA7K55.js → chunk-DSX6K7C2.js} +29 -10
- package/{chunk-QA6YKM3H.js → chunk-E2NP7ZQU.js} +32 -4
- package/{chunk-FSFQ3A7S.js → chunk-E3VQ6S3A.js} +10 -10
- package/{chunk-YFADVSZE.js → chunk-F3UTRUDO.js} +6 -6
- package/{chunk-KIS76A2P.js → chunk-G5X57NDE.js} +38 -4
- package/{chunk-BJIRLHJR.js → chunk-GII32WZW.js} +1 -0
- package/{chunk-DSRXPQWA.js → chunk-GRDSMV4V.js} +43 -43
- package/{chunk-733J6D44.js → chunk-HGRDL36J.js} +6 -6
- package/{chunk-OZX2IPKM.js → chunk-HQCSU3DI.js} +1 -1
- package/{chunk-3JQ2NRYU.js → chunk-HVURBGF3.js} +4 -4
- package/{chunk-QC5LGHYP.js → chunk-HWZAXNO7.js} +10 -5
- package/{chunk-Q6FF2MCK.js → chunk-IIKPWSPX.js} +1 -1
- package/{chunk-KC5FAHVS.js → chunk-JEDZAO7L.js} +1 -1
- package/{chunk-6XIE5ZGI.js → chunk-JPGCXHNM.js} +1 -1
- package/{chunk-AJHEFRGJ.js → chunk-JTYPAMGP.js} +155 -1
- package/{chunk-UDQWGU7F.js → chunk-KR3YI36B.js} +1 -1
- package/{chunk-RXX4GDIH.js → chunk-LS2ZANRJ.js} +1 -1
- package/{chunk-SZLVDREM.js → chunk-LSSBA2TN.js} +3 -3
- package/{chunk-CMH2SYHX.js → chunk-MBEEYLGL.js} +2 -2
- package/{chunk-EVBFYPDC.js → chunk-MC4XLIJ7.js} +6 -2
- package/{chunk-PGSKWZCB.js → chunk-NKIH4Q7W.js} +1 -1
- package/{chunk-FPTQQSS6.js → chunk-OH7H6LPC.js} +26 -5
- package/{chunk-5J7W2VWW.js → chunk-OOLWKQSM.js} +6 -265
- package/{chunk-AETZ7AD6.js → chunk-Q554LLSI.js} +1 -1
- package/chunk-Q5FJJ6XI.js +103 -0
- package/{chunk-JYYZCK2Z.js → chunk-QFMFJZLO.js} +1 -1
- package/{chunk-P7FA2HMM.js → chunk-QMASIHYZ.js} +13 -15
- package/{chunk-ZY4K4CZR.js → chunk-R2YY6MWV.js} +909 -304
- package/chunk-RLEWGSM5.js +677 -0
- package/{chunk-PYXL2CJL.js → chunk-RZYQMSQA.js} +1 -1
- package/{chunk-EOU7ZSTU.js → chunk-S3UI4IUJ.js} +1198 -50
- package/{chunk-SPAQ4PVV.js → chunk-SAFZABH7.js} +1 -1
- package/{chunk-QRBAZ5PW.js → chunk-SASGLNUD.js} +3 -3
- package/{chunk-D74EWXL4.js → chunk-SUERPXJZ.js} +390 -47
- package/{chunk-3QPYFHAH.js → chunk-TMAZ3VHN.js} +1 -1
- package/{chunk-BJCWNHVU.js → chunk-U47DH2WO.js} +2 -2
- package/{chunk-MEVSATIF.js → chunk-UBNV6CS6.js} +66 -792
- package/{chunk-EXMHJN7C.js → chunk-UDEFS2PV.js} +4 -3
- package/{chunk-NHRQCXIQ.js → chunk-VMFTFOWF.js} +13 -3
- package/{chunk-4EJ5QYB5.js → chunk-VOOTT7HA.js} +1 -1
- package/{chunk-PZM3EENV.js → chunk-W2E6HIIK.js} +1 -1
- package/chunk-WKEUHK57.js +1625 -0
- package/{chunk-GBPZKFYK.js → chunk-WON762L4.js} +4 -4
- package/{chunk-X7Z7U4Z6.js → chunk-WP6BC7OF.js} +15 -15
- package/{chunk-QUH3XHL5.js → chunk-X2ZTVRXP.js} +7 -7
- package/{chunk-MYU3MJCF.js → chunk-XAQAF25W.js} +175 -7
- package/chunk-XGJAR4T5.js +283 -0
- package/{chunk-ZZCJUXUI.js → chunk-XLGHBHGP.js} +2 -2
- package/{chunk-V3ZKNK5D.js → chunk-YOXYA2GU.js} +10 -10
- package/{chunk-ALGK6TIE.js → chunk-YPYMGGPJ.js} +3 -3
- package/{chunk-K7AG465Q.js → chunk-ZHUTWJ3N.js} +4 -2
- package/{chunk-CDVGNZDA.js → chunk-ZKMYGRO7.js} +11 -173
- package/{contentThunks-3SPROFG5.js → contentThunks-TC3AENBY.js} +25 -25
- package/{createAgentAutomationAction-EIP2EG3O.js → createAgentAutomationAction-67EOD3WK.js} +25 -25
- package/{createDialogAction-RLUSTN4D.js → createDialogAction-4OCQC5MW.js} +28 -28
- package/{createPageAction-4Y52G7WG.js → createPageAction-JLGVP57B.js} +26 -26
- package/{dbSlice-GKGGFNOB.js → dbSlice-RDGCE5MU.js} +8 -8
- package/{deleteFile-LWSR674W.js → deleteFile-YG6QMJLU.js} +3 -3
- package/{dialogCommands-G223U5WU.js → dialogCommands-JHSDKCR5.js} +32 -30
- package/{dialogSlice-THY45JWM.js → dialogSlice-I2DK32ZT.js} +24 -24
- package/{docCreateCommands-2P47IJDK.js → docCreateCommands-QUL6VWK2.js} +31 -29
- package/{docDeleteCommands-N3EGDOIC.js → docDeleteCommands-DMQ2MU6I.js} +32 -30
- package/{docReadCommands-6BFV2HI7.js → docReadCommands-FVHENBU6.js} +31 -29
- package/{docStore-ZQ3ECOPY.js → docStore-OLC6MD7B.js} +9 -9
- package/{docUpdateCommands-ZTMPXHC5.js → docUpdateCommands-VA6V5C6L.js} +31 -29
- package/{fetchMessages-DRABNDPZ.js → fetchMessages-EIU7UFFK.js} +3 -4
- package/{getPricing-HRMSOF3E.js → getPricing-YYXTEPBP.js} +4 -4
- package/{handleSendMessageAction-CE4M5XIE.js → handleSendMessageAction-GRDIRXAK.js} +24 -24
- package/index.js +88 -80
- package/{localDialogRead-PUQKFI73.js → localDialogRead-BTFJ4V2I.js} +2 -2
- package/{localRuntimeDb-P37ZTX55.js → localRuntimeDb-SYQGUF4U.js} +1 -1
- package/{machineCommands-4OT7KVCD.js → machineCommands-IJJ66MYU.js} +59 -57
- package/{machineWsRunDispatch-TR3EYESP.js → machineWsRunDispatch-PP2ZBS6D.js} +57 -55
- package/{memberThunks-KATHH3F4.js → memberThunks-WQGQWYYT.js} +9 -9
- package/{models-GS72DVJS.js → models-UN7YGMPM.js} +2 -2
- package/{offlineMarxistsAgentCommand-GEH6SNNA.js → offlineMarxistsAgentCommand-JEWCIAWM.js} +1 -1
- package/package.json +1 -1
- package/providerPresetApply-NO73BG45.js +214 -0
- package/providerRegistry-OVY4VKNN.js +31 -0
- package/{read-LC6HVYBN.js → read-S4WC2OUK.js} +5 -4
- package/{readDocTool-N3ERJHHF.js → readDocTool-PQNM63KV.js} +1 -1
- package/{readlineWorkspace-RE3P324X.js → readlineWorkspace-ASJECDJD.js} +192 -109
- package/{removeDialogAgentAction-F5GPTALR.js → removeDialogAgentAction-YJZ6XJV6.js} +11 -11
- package/{runAgentClientLoop-NE5EHXSS.js → runAgentClientLoop-KIOQSDRC.js} +45 -45
- package/{runtimeDoctorCommands-CROTMULY.js → runtimeDoctorCommands-X6WDBEQX.js} +2 -2
- package/{setDialogExtraReferencesAction-AY4ZCF3A.js → setDialogExtraReferencesAction-E6A3WL4E.js} +9 -9
- package/{setPrimaryDialogAgentAction-HPMG7V3R.js → setPrimaryDialogAgentAction-WBLIVICQ.js} +11 -11
- package/{settingSlice-OEJA4NQO.js → settingSlice-JR6S7TRD.js} +10 -10
- package/{spaceCommands-MRP5U3C3.js → spaceCommands-WDUNCAK5.js} +29 -27
- package/{streamAgentChatTurn-A6L6O22P.js → streamAgentChatTurn-EGQDPMAO.js} +57 -56
- package/{switchDialogAgentAction-HMDZTZ4I.js → switchDialogAgentAction-DTR36ZY2.js} +8 -8
- package/{tableCommands-SUNTHAYX.js → tableCommands-O6NWHFKV.js} +1 -1
- package/{toolApiClient-VGYUB4P5.js → toolApiClient-7PSIFQPJ.js} +2 -2
- package/{tools-JS475NYO.js → tools-AOVE5LKM.js} +41 -39
- package/tuiSummaryLlmCaller-XRQCSNYQ.js +127 -0
- package/{updateCommands-Y363MC3L.js → updateCommands-2M74UL7P.js} +2 -2
- package/{updateDialogTitleAction-GMZUT6RP.js → updateDialogTitleAction-T66TXHIR.js} +45 -28
- package/chunk-3IT2PFHL.js +0 -611
- package/chunk-I42VC5KR.js +0 -15
- package/codingSkills-E6KSDNSJ.js +0 -48
- package/tuiSummaryLlmCaller-3Z24VUWM.js +0 -116
- package/{chunk-3RAG2NAD.js → chunk-UKWGR5SS.js} +3 -3
- package/{db-VQSAOWAO.js → db-WK5MDZVN.js} +1 -1
- package/{localRuntimeAuthority-R5UBODT3.js → localRuntimeAuthority-6IR6BBXE.js} +3 -3
|
@@ -6,9 +6,8 @@ import {
|
|
|
6
6
|
} from "./chunk-HS7MLR74.js";
|
|
7
7
|
import {
|
|
8
8
|
clipMultilineText,
|
|
9
|
-
fetchAndSerializeTable
|
|
10
|
-
|
|
11
|
-
} from "./chunk-MEVSATIF.js";
|
|
9
|
+
fetchAndSerializeTable
|
|
10
|
+
} from "./chunk-UBNV6CS6.js";
|
|
12
11
|
import {
|
|
13
12
|
isGatewayHttpStatus
|
|
14
13
|
} from "./chunk-NF64D32W.js";
|
|
@@ -20,7 +19,7 @@ import {
|
|
|
20
19
|
} from "./chunk-3L2WKC3W.js";
|
|
21
20
|
import {
|
|
22
21
|
slateToSimplifiedMarkdown
|
|
23
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-KR3YI36B.js";
|
|
24
23
|
import {
|
|
25
24
|
waitForAbortableDelay
|
|
26
25
|
} from "./chunk-N4G4PKQ6.js";
|
|
@@ -29,25 +28,26 @@ import {
|
|
|
29
28
|
} from "./chunk-MEYIRKDN.js";
|
|
30
29
|
import {
|
|
31
30
|
fetchAndCacheMessages
|
|
32
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-SUERPXJZ.js";
|
|
33
32
|
import {
|
|
34
33
|
shouldUseServerProxy
|
|
35
34
|
} from "./chunk-YYLHWIW6.js";
|
|
36
35
|
import {
|
|
37
36
|
fetchServerSyncedCredential
|
|
38
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-X2ZTVRXP.js";
|
|
39
38
|
import {
|
|
40
39
|
buildSkillGuidancePromptBlock,
|
|
41
40
|
extractRuntimePageCapabilities,
|
|
41
|
+
resolveBuiltinSkillPage,
|
|
42
42
|
resolveSkillGraphFromRoots
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-WKEUHK57.js";
|
|
44
44
|
import {
|
|
45
45
|
buildIdentityBlock,
|
|
46
46
|
buildRuntimeGuidanceBlocks,
|
|
47
47
|
compileContextLayers,
|
|
48
48
|
normalizeChatCompletionsBodyForProvider,
|
|
49
49
|
resolveToolGuidedSections
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-DSX6K7C2.js";
|
|
51
51
|
import {
|
|
52
52
|
convertMessagesToResponsesInput,
|
|
53
53
|
getUsageRequestOptions,
|
|
@@ -57,26 +57,26 @@ import {
|
|
|
57
57
|
import {
|
|
58
58
|
ANTIGRAVITY_CLOUD_CODE_BASE_URL,
|
|
59
59
|
isAntigravityOAuthAgent
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-NKIH4Q7W.js";
|
|
61
61
|
import {
|
|
62
62
|
buildProviderAuthHeaders
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-MBEEYLGL.js";
|
|
64
|
+
import {
|
|
65
|
+
estimateTokenCount
|
|
66
|
+
} from "./chunk-PSCNXBYA.js";
|
|
64
67
|
import {
|
|
65
68
|
isOpenAiResponsesModel,
|
|
66
69
|
resolvePlatformChatCompletionsEndpoint,
|
|
67
70
|
resolvePlatformResponsesEndpoint
|
|
68
|
-
} from "./chunk-
|
|
69
|
-
import {
|
|
70
|
-
estimateTokenCount
|
|
71
|
-
} from "./chunk-PSCNXBYA.js";
|
|
71
|
+
} from "./chunk-ZHUTWJ3N.js";
|
|
72
72
|
import {
|
|
73
73
|
clampReasoningEffort,
|
|
74
74
|
getModelConfig,
|
|
75
75
|
isModelSupportReasoningEffort
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-4CAPEGHN.js";
|
|
77
77
|
import {
|
|
78
78
|
createFileCredentialBroker
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-HVURBGF3.js";
|
|
80
80
|
import {
|
|
81
81
|
toErrorMessage
|
|
82
82
|
} from "./chunk-HNMXYYJR.js";
|
|
@@ -91,32 +91,33 @@ import {
|
|
|
91
91
|
import {
|
|
92
92
|
isDeepInfraKimiModel,
|
|
93
93
|
isFireworksKimiModel,
|
|
94
|
+
isPlatformMimoProviderModel,
|
|
94
95
|
resolveFireworksKimiModel
|
|
95
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-JTYPAMGP.js";
|
|
96
97
|
import {
|
|
97
98
|
createSpaceKey
|
|
98
99
|
} from "./chunk-UAD2WT54.js";
|
|
99
100
|
import {
|
|
100
101
|
read
|
|
101
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-F3UTRUDO.js";
|
|
102
103
|
import {
|
|
103
104
|
asTrimmedLowercaseString
|
|
104
105
|
} from "./chunk-QSJ3HFEF.js";
|
|
105
106
|
import {
|
|
106
107
|
extractCustomId
|
|
107
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-GII32WZW.js";
|
|
108
109
|
import {
|
|
109
110
|
getRuntimeServerContext
|
|
110
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-UKWGR5SS.js";
|
|
111
112
|
import {
|
|
112
113
|
isAbortError
|
|
113
114
|
} from "./chunk-QOKAKDPE.js";
|
|
114
|
-
import {
|
|
115
|
-
asTrimmedString
|
|
116
|
-
} from "./chunk-3EUW3WEO.js";
|
|
117
115
|
import {
|
|
118
116
|
isRecord
|
|
119
117
|
} from "./chunk-KUG52IAP.js";
|
|
118
|
+
import {
|
|
119
|
+
asTrimmedString
|
|
120
|
+
} from "./chunk-3EUW3WEO.js";
|
|
120
121
|
import {
|
|
121
122
|
API_ENDPOINTS
|
|
122
123
|
} from "./chunk-LCBAMY2M.js";
|
|
@@ -367,10 +368,12 @@ function isResponsesConversationStateRejection(status, responseBody) {
|
|
|
367
368
|
// packages/agent-runtime/agentCallPlan.ts
|
|
368
369
|
var CODEX_RESPONSES_URL = "https://chatgpt.com/backend-api/codex/responses";
|
|
369
370
|
var CURSOR_AGENT_URL = "https://api2.cursor.sh/agent.v1.AgentService/Run";
|
|
371
|
+
var DEVIN_CONNECT_URL = "https://server.codeium.com/exa.api_server_pb.ApiServerService/GetChatMessage";
|
|
370
372
|
function resolveClientWire(plan) {
|
|
371
373
|
if (plan.upstreamWire === "gemini-cca") return "chat.completions";
|
|
372
374
|
if (plan.upstreamWire === "anthropic-messages") return "chat.completions";
|
|
373
375
|
if (plan.upstreamWire === "cursor-connect") return "chat.completions";
|
|
376
|
+
if (plan.upstreamWire === "devin-connect") return "chat.completions";
|
|
374
377
|
if (plan.upstreamWire === "responses" && plan.authMethod.kind === "oauth" && plan.authMethod.ref === "chatgpt") {
|
|
375
378
|
return "chat.completions";
|
|
376
379
|
}
|
|
@@ -450,6 +453,16 @@ function resolveAgentCallPlan(agentConfig, _env) {
|
|
|
450
453
|
vendor: provider || "cursor"
|
|
451
454
|
};
|
|
452
455
|
}
|
|
456
|
+
if (apiKeyRef === "devin" || provider === "devin") {
|
|
457
|
+
return {
|
|
458
|
+
authMethod: { kind: "oauth", ref: "devin" },
|
|
459
|
+
transport: "server-proxy",
|
|
460
|
+
upstreamWire: "devin-connect",
|
|
461
|
+
endpoint: DEVIN_CONNECT_URL,
|
|
462
|
+
requiredHeaders: ["connect-protocol-version"],
|
|
463
|
+
vendor: provider || "devin"
|
|
464
|
+
};
|
|
465
|
+
}
|
|
453
466
|
if (agentConfig.cliProvider || agentConfig.apiSource === "cli" || provider === "cli") {
|
|
454
467
|
return {
|
|
455
468
|
authMethod: { kind: "cli", provider: agentConfig.cliProvider || provider || "codex" },
|
|
@@ -706,9 +719,12 @@ var shouldInjectLlamaCppThinkingToggle = (agentConfig) => {
|
|
|
706
719
|
if (!isLoopbackUrl(agentConfig.customProviderUrl)) return false;
|
|
707
720
|
return /qwen/i.test(agentConfig.model ?? "");
|
|
708
721
|
};
|
|
709
|
-
var shouldDisableMiMoThinking = (agentConfig) => {
|
|
722
|
+
var shouldDisableMiMoThinking = (agentConfig, resolvedModel) => {
|
|
710
723
|
if (agentConfig.enableThinking === true) return false;
|
|
711
|
-
|
|
724
|
+
if (/xiaomimimo\.com/i.test(agentConfig.customProviderUrl ?? "") || (agentConfig.provider ?? "").toLowerCase() === "mimo") {
|
|
725
|
+
return true;
|
|
726
|
+
}
|
|
727
|
+
return isPlatformMimoProviderModel(agentConfig.provider, resolvedModel);
|
|
712
728
|
};
|
|
713
729
|
var shouldDisableKimiThinking = (agentConfig, providerName, resolvedModel) => {
|
|
714
730
|
if (agentConfig.enableThinking !== false) return false;
|
|
@@ -823,7 +839,7 @@ var generateOpenAIRequestBody = (agentConfig, providerName, messages, contexts,
|
|
|
823
839
|
enable_thinking: agentConfig.enableThinking
|
|
824
840
|
};
|
|
825
841
|
}
|
|
826
|
-
if (shouldDisableMiMoThinking(agentConfig)) {
|
|
842
|
+
if (shouldDisableMiMoThinking(agentConfig, resolvedModel)) {
|
|
827
843
|
requestBody.thinking = { type: "disabled" };
|
|
828
844
|
}
|
|
829
845
|
if (shouldDisableKimiThinking(agentConfig, providerName, resolvedModel)) {
|