nolo-cli 0.89.0-alpha.1 → 0.90.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/README.md +2 -2
- package/{_executeModel-I3XRMAJ2.js → _executeModel-W26HVI75.js} +38 -38
- package/{action-7GHFPDSQ.js → action-6DXQGJMX.js} +7 -7
- package/{addContentAction-ZNVB2NOV.js → addContentAction-I7VX5SAC.js} +5 -5
- package/{addDialogAgentAction-CIDFWATM.js → addDialogAgentAction-OJSFV7DZ.js} +4 -4
- package/{agentDeleteCommand-DCTG26JW.js → agentDeleteCommand-XNFWCKBH.js} +24 -23
- package/{agentEmailCommands-MRRHBLDQ.js → agentEmailCommands-W3X3EJ3V.js} +50 -49
- package/{agentGrantCommands-R3VQEZJR.js → agentGrantCommands-YW6PQAQ2.js} +2 -2
- package/{agentListCommands-CUE46CSP.js → agentListCommands-DFWFU6XO.js} +32 -25
- package/{agentMachineCommands-FYDEKBIO.js → agentMachineCommands-LMFOAEL4.js} +24 -23
- package/{agentProviderCommands-X3FA6BUM.js → agentProviderCommands-ZBYHGTGY.js} +1 -1
- package/{agentPullCommand-U73W5IBM.js → agentPullCommand-GLOOXJ2E.js} +2 -2
- package/{agentRecordCommands-P2MSNP7R.js → agentRecordCommands-FVVVCQFM.js} +48 -47
- package/{agentRunCommand-QJGP7JEN.js → agentRunCommand-HTBVIBGV.js} +49 -48
- package/{agentRunControl-T44MESII.js → agentRunControl-XLGD3UZ5.js} +1 -1
- package/{agentRuntimeLocal-T43UNWAY.js → agentRuntimeLocal-2JFG4HDU.js} +20 -19
- package/{agentSlice-7GDS5Q2S.js → agentSlice-ZNLGFUB5.js} +5 -5
- package/{appDeleteCommands-YBKY3VEI.js → appDeleteCommands-2UN4N2NR.js} +25 -24
- package/{appDeployCommands-EBC76HO4.js → appDeployCommands-37D74KRR.js} +25 -24
- package/{appDeployStatusCommands-WXRC5KEK.js → appDeployStatusCommands-QBLWL2IA.js} +25 -24
- package/{appGetCommands-VZZQEDOV.js → appGetCommands-6KXIDF2T.js} +25 -24
- package/{appListCommands-HYSPVQ77.js → appListCommands-G2WFGEWQ.js} +25 -24
- package/{authCommand-E4GDVKMW.js → authCommand-V2DJ7DB7.js} +84 -18
- package/{authCommands-VOTT6XWX.js → authCommands-RGOGCPP6.js} +2 -2
- package/{builtinSkillRegistry-5SYVTS6Z.js → builtinSkillRegistry-WBGYKIAZ.js} +5 -5
- package/{chatQueueReduxAdapter-CXEWIDFZ.js → chatQueueReduxAdapter-XCJHIY3R.js} +17 -17
- package/{chunk-P3AS5IPM.js → chunk-2ADBVBEM.js} +3 -2
- package/{chunk-GRJTR4PU.js → chunk-2AYMFHUG.js} +4 -4
- package/{chunk-UO66QKGI.js → chunk-2F4VYGFW.js} +2 -2
- package/{chunk-LEYH5NOH.js → chunk-3CMTBX3X.js} +4 -4
- package/{chunk-GXWEF4IZ.js → chunk-3CR2LC6X.js} +1 -1
- package/{chunk-ZKGIAM7I.js → chunk-3R5PH4IP.js} +1 -1
- package/{chunk-VW3YGKWR.js → chunk-4BYPU626.js} +294 -203
- package/{chunk-PHDKTASK.js → chunk-4DRWWIOL.js} +1 -1
- package/{chunk-BNMZ7QUV.js → chunk-576IMUGH.js} +1 -1
- package/{chunk-AYT2OKNM.js → chunk-5DFFKASO.js} +3 -3
- package/{chunk-Q246OUG5.js → chunk-5NMZNPTN.js} +5 -5
- package/{chunk-5XTOKQLW.js → chunk-5UTFL4QJ.js} +6 -2
- package/{chunk-6RCZYDDC.js → chunk-5V4NJHRM.js} +6 -6
- package/chunk-5ZUL4CUO.js +10 -0
- package/{chunk-US463UAD.js → chunk-6BEA566T.js} +2 -2
- package/{chunk-UINEAQ2R.js → chunk-6D6VBVEW.js} +1 -1
- package/{chunk-JC2WQS66.js → chunk-7MYYE7WX.js} +20 -16
- package/{chunk-3T4PRBHV.js → chunk-A2C4AKKM.js} +1 -1
- package/{chunk-6ZC5KPXV.js → chunk-AQZRTHDZ.js} +903 -40
- package/{chunk-UWMQ6FPM.js → chunk-ASGDO77C.js} +118 -1
- package/{chunk-2KDR4CWE.js → chunk-BYMV6QZG.js} +24 -1
- package/{chunk-XCSSFPTB.js → chunk-CLI4LFSM.js} +1 -1
- package/{chunk-HH65VA5U.js → chunk-CPH3W5A7.js} +15 -3
- package/{chunk-TGRQUFLU.js → chunk-DNQPPRHY.js} +1 -1
- package/{chunk-2XEVK4BT.js → chunk-DPQ2WVBY.js} +1 -1
- package/{chunk-OCL2YCAU.js → chunk-F2CGG72C.js} +40 -40
- package/{chunk-S6STPUMG.js → chunk-FQYMLZ6C.js} +5 -5
- package/{chunk-BJIRLHJR.js → chunk-GII32WZW.js} +1 -0
- package/{chunk-VARZWSKW.js → chunk-GRYGRGPS.js} +3 -3
- package/{chunk-L2VNQQ7M.js → chunk-HMEMJ7GH.js} +364 -24
- package/{chunk-OZX2IPKM.js → chunk-HQCSU3DI.js} +1 -1
- package/{chunk-VQD6BTML.js → chunk-HYZHJ5GW.js} +3 -3
- package/{chunk-OAJRZ35U.js → chunk-IIKPWSPX.js} +1 -1
- package/{chunk-W7PGACND.js → chunk-JBBZ5KUM.js} +10 -10
- package/{chunk-KC5FAHVS.js → chunk-JEDZAO7L.js} +1 -1
- package/{chunk-LSV2BOJL.js → chunk-JTK3TJYV.js} +1 -1
- package/{chunk-X77EN2BJ.js → chunk-K7M3MWCE.js} +2 -2
- package/{chunk-OHUU52T3.js → chunk-L2ICPOAL.js} +1 -1
- package/{chunk-EVBFYPDC.js → chunk-MC4XLIJ7.js} +6 -2
- package/{chunk-DS3SQTDT.js → chunk-MJHQ3NRV.js} +1 -1
- package/{chunk-Q4KVAB6L.js → chunk-N3OAPEZE.js} +28 -9
- package/{chunk-T4F2EQGN.js → chunk-ND2J3NRB.js} +2 -2
- package/{chunk-IMDA4FW4.js → chunk-NFMHIUY3.js} +61 -46
- package/{chunk-JITSBA52.js → chunk-PH5J5VUY.js} +2 -2
- package/{chunk-FMODTASJ.js → chunk-Q5FJJ6XI.js} +1 -7
- package/{chunk-JYYZCK2Z.js → chunk-QFMFJZLO.js} +1 -1
- package/{chunk-WSOMSDQB.js → chunk-QHETQ3KI.js} +35 -1
- package/{chunk-IZAWJCG7.js → chunk-RZANZZL2.js} +1 -1
- package/{chunk-SPAQ4PVV.js → chunk-SAFZABH7.js} +1 -1
- package/{chunk-EXWOCYCR.js → chunk-SMZSWB44.js} +10 -5
- package/{chunk-HJKGQPYF.js → chunk-TL6L5XUT.js} +1 -1
- package/{chunk-4FRNB4ZG.js → chunk-TVNI5FLG.js} +4 -4
- package/{chunk-5EJZGJS2.js → chunk-UA5S3LQQ.js} +3 -3
- package/{chunk-Y2IFJ7VM.js → chunk-UTCCPWB2.js} +3 -3
- package/{chunk-KT6LENVP.js → chunk-VHJLQHPQ.js} +2 -2
- package/{chunk-6H7GN3JL.js → chunk-VRLI2WNW.js} +10 -1
- package/{chunk-23RQKXP6.js → chunk-WS22FPWT.js} +1 -1
- package/{chunk-NVHJWYUO.js → chunk-WXPVOQD7.js} +35 -33
- package/{chunk-MFW4BGJS.js → chunk-XKQJJK4F.js} +1 -1
- package/{chunk-GIG262ZG.js → chunk-XMGHGEN6.js} +1 -1
- package/{chunk-IO7DYRPW.js → chunk-XTUY5EL4.js} +16 -12
- package/{chunk-OKCTLCKS.js → chunk-YOXYA2GU.js} +1 -1
- package/{chunk-ZIHJVHFH.js → chunk-Z33ARZCP.js} +1 -1
- package/{chunk-ZSG2AQU4.js → chunk-ZAB3A45K.js} +62 -11
- package/{chunk-YZHP76TR.js → chunk-ZBT3WNBK.js} +1 -1
- package/{contentThunks-Y2ACIFDB.js → contentThunks-VURN3DFW.js} +18 -18
- package/{createAgentAutomationAction-TNE3QMJR.js → createAgentAutomationAction-QZAAY77R.js} +18 -18
- package/{createDialogAction-BMGHBTQB.js → createDialogAction-CHGXVTAC.js} +20 -20
- package/{createPageAction-FFNIZPIS.js → createPageAction-IOGAFIN7.js} +18 -18
- package/{dbSlice-4CUQE35F.js → dbSlice-YXQ6RYIH.js} +4 -4
- package/{dialogCommands-3JC3BIXC.js → dialogCommands-XREAP6WQ.js} +26 -25
- package/{dialogSlice-3E7Z7HZV.js → dialogSlice-DOPGWGS4.js} +17 -17
- package/{docCreateCommands-6LNQLCTA.js → docCreateCommands-3PYZGSCL.js} +24 -23
- package/{docDeleteCommands-ZJOAPWZS.js → docDeleteCommands-3Y6MU44Q.js} +25 -24
- package/{docReadCommands-LJTRSBG6.js → docReadCommands-UBANMAFR.js} +24 -23
- package/{docStore-R47ABXBB.js → docStore-SYYFBENY.js} +5 -5
- package/{docUpdateCommands-7P3QF3N2.js → docUpdateCommands-4GK2X6BN.js} +24 -23
- package/{getPricing-TV6ZB7ES.js → getPricing-F2C65RIX.js} +3 -3
- package/{handleSendMessageAction-FFYOGXAO.js → handleSendMessageAction-NPVTY2GE.js} +17 -17
- package/index.js +81 -81
- package/{machineCommands-FN5GGQV3.js → machineCommands-I66X2XB7.js} +47 -46
- package/{machineWsRunDispatch-H47IA7ZT.js → machineWsRunDispatch-W4FVBOUM.js} +47 -46
- package/{memberThunks-N35XAOC6.js → memberThunks-5T4J6KXQ.js} +5 -5
- package/{models-CMXFDBQH.js → models-WW7VFNXB.js} +2 -2
- package/{offlineMarxistsAgentCommand-GEH6SNNA.js → offlineMarxistsAgentCommand-JEWCIAWM.js} +1 -1
- package/package.json +1 -1
- package/{providerPresetApply-D2GGHPI7.js → providerPresetApply-OCWWKBSD.js} +6 -6
- package/{providerRegistry-MU6C4ABD.js → providerRegistry-ZJQU7AJ7.js} +6 -6
- package/{read-2PV4PN2E.js → read-M2Q6WEKB.js} +3 -3
- package/{readDocTool-FGK5XGAW.js → readDocTool-T37P3YPB.js} +1 -1
- package/{readlineWorkspace-NXKHYZEU.js → readlineWorkspace-VY5AMOGR.js} +123 -91
- package/{removeDialogAgentAction-O2POGBOE.js → removeDialogAgentAction-HB3JBVAI.js} +7 -7
- package/{runAgentClientLoop-CEBV5UPD.js → runAgentClientLoop-3NDADLVE.js} +36 -36
- package/{setDialogExtraReferencesAction-KPSVVY3C.js → setDialogExtraReferencesAction-4XLHRV37.js} +5 -5
- package/{setPrimaryDialogAgentAction-RMJETONI.js → setPrimaryDialogAgentAction-C3JOFC4W.js} +7 -7
- package/{settingSlice-I6MTTNDX.js → settingSlice-CZRURSTH.js} +6 -6
- package/{spaceCommands-JHT4ALCQ.js → spaceCommands-ENYCUUZH.js} +24 -23
- package/{streamAgentChatTurn-SFCZP4GY.js → streamAgentChatTurn-634OFUSR.js} +44 -42
- package/{switchDialogAgentAction-OQSGWVQQ.js → switchDialogAgentAction-C6KVUKJP.js} +4 -4
- package/{tableCommands-SUNTHAYX.js → tableCommands-O6NWHFKV.js} +1 -1
- package/{toolApiClient-VGYUB4P5.js → toolApiClient-7PSIFQPJ.js} +2 -2
- package/{tools-K3YOTESV.js → tools-ILBLCF7D.js} +33 -33
- package/tuiSummaryLlmCaller-LFUBZKXK.js +127 -0
- package/{updateCommands-Y363MC3L.js → updateCommands-2M74UL7P.js} +2 -2
- package/{updateDialogTitleAction-CSPKYQRO.js → updateDialogTitleAction-RKFET73N.js} +38 -21
- package/tuiSummaryLlmCaller-T2OA5ZVB.js +0 -116
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
patch,
|
|
12
12
|
readAndWait
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-UA5S3LQQ.js";
|
|
14
14
|
import {
|
|
15
15
|
asOptionalTrimmedString
|
|
16
16
|
} from "./chunk-G3SUCT4W.js";
|
|
@@ -326,7 +326,7 @@ async function saveDocState(arg, { dispatch, getState }) {
|
|
|
326
326
|
).unwrap();
|
|
327
327
|
if (dbSpaceId) {
|
|
328
328
|
try {
|
|
329
|
-
const { updateContentTitle } = await import("./contentThunks-
|
|
329
|
+
const { updateContentTitle } = await import("./contentThunks-VURN3DFW.js");
|
|
330
330
|
await dispatch(
|
|
331
331
|
updateContentTitle({
|
|
332
332
|
spaceId: dbSpaceId,
|
|
@@ -365,7 +365,7 @@ async function saveDocState(arg, { dispatch, getState }) {
|
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
367
|
async function createDocState(args, thunkApi) {
|
|
368
|
-
const { createPageAction } = await import("./createPageAction-
|
|
368
|
+
const { createPageAction } = await import("./createPageAction-IOGAFIN7.js");
|
|
369
369
|
return createPageAction(args, thunkApi);
|
|
370
370
|
}
|
|
371
371
|
function subscribe(listener) {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-NFMHIUY3.js";
|
|
5
5
|
import {
|
|
6
6
|
clipMultilineText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WXPVOQD7.js";
|
|
8
8
|
import {
|
|
9
9
|
runLocalAgentTurn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4BYPU626.js";
|
|
11
11
|
import {
|
|
12
12
|
applyToolSurfaceConstraints
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-YOXYA2GU.js";
|
|
14
14
|
import {
|
|
15
15
|
resolveLocalRuntimeEnvFromPolicy
|
|
16
16
|
} from "./chunk-HVURBGF3.js";
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
} from "./chunk-VMFTFOWF.js";
|
|
36
36
|
import {
|
|
37
37
|
ownedAgentKey
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-GII32WZW.js";
|
|
39
39
|
import {
|
|
40
40
|
isRecord
|
|
41
41
|
} from "./chunk-KUG52IAP.js";
|
|
@@ -18,9 +18,13 @@ var CORE_DRAINING_MAX_ATTEMPTS = 30;
|
|
|
18
18
|
var RETRYABLE_HTTP_STATUSES = /* @__PURE__ */ new Set([429, 503]);
|
|
19
19
|
function isTransientFetchError(error) {
|
|
20
20
|
const message = toErrorMessage(error);
|
|
21
|
-
return /certificate|handshake|network|socket|timed out|timeout|ECONNRESET/i.test(
|
|
21
|
+
return /certificate|handshake|network|socket|timed out|timeout|ECONNRESET|UND_ERR_SOCKET|other side closed/i.test(
|
|
22
22
|
message
|
|
23
|
-
)
|
|
23
|
+
) || // undici(Node fetch)连接中途被断开时抛 `TypeError: terminated`,message
|
|
24
|
+
// 就是裸的 "terminated"(真实 cause 是 UND_ERR_SOCKET)。只认「整条就是
|
|
25
|
+
// terminated」或「前缀: terminated」这种形态,避免把 access_terminated_error
|
|
26
|
+
// (配额封禁)或 "process was terminated by signal" 误判成可重试的网络抖动。
|
|
27
|
+
/(?:^|:\s*)terminated$/i.test(message.trim());
|
|
24
28
|
}
|
|
25
29
|
async function defaultSleep(ms) {
|
|
26
30
|
await new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addContentToSpace
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FQYMLZ6C.js";
|
|
4
4
|
import {
|
|
5
5
|
prepareAndPersistMessage,
|
|
6
6
|
uiAskChoiceFunc,
|
|
7
7
|
uiAskChoiceFunctionSchema
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HMEMJ7GH.js";
|
|
9
9
|
import {
|
|
10
10
|
require_date_fns
|
|
11
11
|
} from "./chunk-M76ECQRD.js";
|
|
12
12
|
import {
|
|
13
13
|
buildBuiltinObjectSkillReference
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-CLI4LFSM.js";
|
|
15
15
|
import {
|
|
16
16
|
PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL,
|
|
17
17
|
PLATFORM_HOSTED_KIMI_PROVIDER
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ASGDO77C.js";
|
|
19
19
|
import {
|
|
20
20
|
read,
|
|
21
21
|
readAndWait,
|
|
22
22
|
removeCachedEntity,
|
|
23
23
|
upsertSSREntity,
|
|
24
24
|
write
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-UA5S3LQQ.js";
|
|
26
26
|
import {
|
|
27
27
|
createAgentKey,
|
|
28
28
|
createDialogKey,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
} from "./chunk-VMFTFOWF.js";
|
|
34
34
|
import {
|
|
35
35
|
extractCustomId
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-GII32WZW.js";
|
|
37
37
|
import {
|
|
38
38
|
isDevelopment
|
|
39
39
|
} from "./chunk-QOKAKDPE.js";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// packages/agent-runtime/devinOAuthPure.ts
|
|
2
|
+
function isDevinOAuthAgent(agent) {
|
|
3
|
+
const ref = agent.apiKeyRef?.trim().toLowerCase();
|
|
4
|
+
const prov = agent.provider?.trim().toLowerCase();
|
|
5
|
+
return ref === "devin" || prov === "devin";
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export {
|
|
9
|
+
isDevinOAuthAgent
|
|
10
|
+
};
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
clipMultilineText,
|
|
9
9
|
fetchAndSerializeTable
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WXPVOQD7.js";
|
|
11
11
|
import {
|
|
12
12
|
isGatewayHttpStatus
|
|
13
13
|
} from "./chunk-NF64D32W.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-3L2WKC3W.js";
|
|
20
20
|
import {
|
|
21
21
|
slateToSimplifiedMarkdown
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ZBT3WNBK.js";
|
|
23
23
|
import {
|
|
24
24
|
waitForAbortableDelay
|
|
25
25
|
} from "./chunk-N4G4PKQ6.js";
|
|
@@ -28,26 +28,26 @@ import {
|
|
|
28
28
|
} from "./chunk-MEYIRKDN.js";
|
|
29
29
|
import {
|
|
30
30
|
fetchAndCacheMessages
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-HMEMJ7GH.js";
|
|
32
32
|
import {
|
|
33
33
|
shouldUseServerProxy
|
|
34
34
|
} from "./chunk-YYLHWIW6.js";
|
|
35
35
|
import {
|
|
36
36
|
fetchServerSyncedCredential
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-TVNI5FLG.js";
|
|
38
38
|
import {
|
|
39
39
|
buildSkillGuidancePromptBlock,
|
|
40
40
|
extractRuntimePageCapabilities,
|
|
41
41
|
resolveBuiltinSkillPage,
|
|
42
42
|
resolveSkillGraphFromRoots
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-2ADBVBEM.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-N3OAPEZE.js";
|
|
51
51
|
import {
|
|
52
52
|
convertMessagesToResponsesInput,
|
|
53
53
|
getUsageRequestOptions,
|
|
@@ -57,10 +57,10 @@ import {
|
|
|
57
57
|
import {
|
|
58
58
|
ANTIGRAVITY_CLOUD_CODE_BASE_URL,
|
|
59
59
|
isAntigravityOAuthAgent
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-MJHQ3NRV.js";
|
|
61
61
|
import {
|
|
62
62
|
buildProviderAuthHeaders
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-K7M3MWCE.js";
|
|
64
64
|
import {
|
|
65
65
|
estimateTokenCount
|
|
66
66
|
} from "./chunk-PSCNXBYA.js";
|
|
@@ -68,12 +68,12 @@ import {
|
|
|
68
68
|
isOpenAiResponsesModel,
|
|
69
69
|
resolvePlatformChatCompletionsEndpoint,
|
|
70
70
|
resolvePlatformResponsesEndpoint
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-ND2J3NRB.js";
|
|
72
72
|
import {
|
|
73
73
|
clampReasoningEffort,
|
|
74
74
|
getModelConfig,
|
|
75
75
|
isModelSupportReasoningEffort
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-VRLI2WNW.js";
|
|
77
77
|
import {
|
|
78
78
|
createFileCredentialBroker
|
|
79
79
|
} from "./chunk-HVURBGF3.js";
|
|
@@ -91,20 +91,21 @@ import {
|
|
|
91
91
|
import {
|
|
92
92
|
isDeepInfraKimiModel,
|
|
93
93
|
isFireworksKimiModel,
|
|
94
|
+
isPlatformMimoProviderModel,
|
|
94
95
|
resolveFireworksKimiModel
|
|
95
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-ASGDO77C.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-UA5S3LQQ.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
111
|
} from "./chunk-UKWGR5SS.js";
|
|
@@ -718,9 +719,12 @@ var shouldInjectLlamaCppThinkingToggle = (agentConfig) => {
|
|
|
718
719
|
if (!isLoopbackUrl(agentConfig.customProviderUrl)) return false;
|
|
719
720
|
return /qwen/i.test(agentConfig.model ?? "");
|
|
720
721
|
};
|
|
721
|
-
var shouldDisableMiMoThinking = (agentConfig) => {
|
|
722
|
+
var shouldDisableMiMoThinking = (agentConfig, resolvedModel) => {
|
|
722
723
|
if (agentConfig.enableThinking === true) return false;
|
|
723
|
-
|
|
724
|
+
if (/xiaomimimo\.com/i.test(agentConfig.customProviderUrl ?? "") || (agentConfig.provider ?? "").toLowerCase() === "mimo") {
|
|
725
|
+
return true;
|
|
726
|
+
}
|
|
727
|
+
return isPlatformMimoProviderModel(agentConfig.provider, resolvedModel);
|
|
724
728
|
};
|
|
725
729
|
var shouldDisableKimiThinking = (agentConfig, providerName, resolvedModel) => {
|
|
726
730
|
if (agentConfig.enableThinking !== false) return false;
|
|
@@ -835,7 +839,7 @@ var generateOpenAIRequestBody = (agentConfig, providerName, messages, contexts,
|
|
|
835
839
|
enable_thinking: agentConfig.enableThinking
|
|
836
840
|
};
|
|
837
841
|
}
|
|
838
|
-
if (shouldDisableMiMoThinking(agentConfig)) {
|
|
842
|
+
if (shouldDisableMiMoThinking(agentConfig, resolvedModel)) {
|
|
839
843
|
requestBody.thinking = { type: "disabled" };
|
|
840
844
|
}
|
|
841
845
|
if (shouldDisableKimiThinking(agentConfig, providerName, resolvedModel)) {
|