nolo-cli 0.104.0-alpha.2 → 0.104.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 +1 -1
- package/{_executeModel-4W7C3ACS.js → _executeModel-JXG5TLPE.js} +75 -68
- package/action-GVA5ARSJ.js +20 -0
- package/{addContentAction-O7R66HEX.js → addContentAction-J3DLDV64.js} +12 -11
- package/{addDialogAgentAction-74OA7KYP.js → addDialogAgentAction-PHIXJCF2.js} +18 -19
- package/{agentDeleteCommand-YB3S2LPY.js → agentDeleteCommand-2AWJGHXG.js} +117 -42
- package/{agentEmailCommands-AQZVMNLR.js → agentEmailCommands-VV5OSILE.js} +98 -88
- package/agentListCommands-OQMRBDWP.js +742 -0
- package/{agentMachineCommands-R5AVYYN3.js → agentMachineCommands-3VLLR6RL.js} +48 -43
- package/{agentProviderCommands-GNPTL5XR.js → agentProviderCommands-XPJYZSCE.js} +97 -2
- package/{agentPullCommand-O5MPVJ5E.js → agentPullCommand-B4T2DJ5H.js} +1 -1
- package/agentRecordCommands-GPIARVOW.js +138 -0
- package/agentRunCommand-LRJTZ7IM.js +167 -0
- package/{agentRunControl-AVJR4JW4.js → agentRunControl-3HWA2LLQ.js} +2 -2
- package/{agentRuntimeLocal-FRUE5P2V.js → agentRuntimeLocal-PV6AZOEU.js} +44 -39
- package/{agentSlice-6LBOYNKN.js → agentSlice-6R3JKS6I.js} +14 -13
- package/{appDeleteCommands-JPWTSFID.js → appDeleteCommands-WEX73P5R.js} +46 -41
- package/{appDeployCommands-YCVY2UYO.js → appDeployCommands-7BAXWA4M.js} +46 -41
- package/{appDeployStatusCommands-JMCEIKTI.js → appDeployStatusCommands-EJ6A2U4X.js} +46 -41
- package/{appGetCommands-EXWT3QAE.js → appGetCommands-SB355OEX.js} +46 -41
- package/{appListCommands-PKRLSWRE.js → appListCommands-TSZDPIKJ.js} +46 -41
- package/{authCommand-F4EFRRX6.js → authCommand-5PB3YRVV.js} +118 -24
- package/{authCommands-RGOGCPP6.js → authCommands-5RTUDYZW.js} +7 -5
- package/{builtinSkillRegistry-FUAVTRVZ.js → builtinSkillRegistry-SBBWTANC.js} +10 -8
- package/{chromeCommands-FZYAU75D.js → chromeCommands-AU5ZJXBG.js} +289 -37
- package/{chromeOpsCommands-62P2Q2YB.js → chromeOpsCommands-ZYTCMNHG.js} +156 -22
- package/{chunk-6OZ36FXI.js → chunk-27ONFIEY.js} +22 -4
- package/{chunk-JEDZAO7L.js → chunk-2SYTUTLI.js} +257 -37
- package/{chunk-HVURBGF3.js → chunk-2U3NHADM.js} +6 -6
- package/{chunk-53HEEOTT.js → chunk-2WJ57RJA.js} +83 -16
- package/{chunk-OIVSQH2O.js → chunk-3BXNTXYI.js} +299 -5
- package/{chunk-V4MJDUSR.js → chunk-3F424ASC.js} +2 -2
- package/{chunk-HJUYAD4A.js → chunk-3Q7NEHAR.js} +5 -5
- package/chunk-44CU7CKA.js +13545 -0
- package/{chunk-EYAQT56M.js → chunk-4DPP773Q.js} +2 -2
- package/chunk-4LCOCOR5.js +50 -0
- package/{chunk-JPGCXHNM.js → chunk-4LKMZ3RR.js} +1 -1
- package/{chunk-2GRGFCF6.js → chunk-4VJAC32I.js} +2 -1
- package/{chunk-6D6VBVEW.js → chunk-4W24JM32.js} +80 -14
- package/{chunk-H62HCIUP.js → chunk-4WMMIL66.js} +35 -22
- package/{chunk-MC4XLIJ7.js → chunk-523DITKR.js} +1 -1
- package/{chunk-ZCYXJSTU.js → chunk-54VPQTOA.js} +66 -94
- package/{chunk-E4MARS3Q.js → chunk-5GVBDNTO.js} +1 -1
- package/chunk-5MMAK75Q.js +15 -0
- package/{chunk-7S4YWN7P.js → chunk-5UUIGN6I.js} +4 -4
- package/{chunk-42V6BK2E.js → chunk-62IL3KQV.js} +4 -34
- package/{chunk-GQBOR3G6.js → chunk-7KVZ5LDQ.js} +2 -2
- package/chunk-A4SQRTZ6.js +15 -0
- package/{chunk-L5UXH3B2.js → chunk-AFH5QC6R.js} +58 -9
- package/{chunk-AEOE4Z6Q.js → chunk-AFSY3ZMB.js} +39 -15
- package/chunk-AGIM7IMJ.js +147 -0
- package/{chunk-5UTFL4QJ.js → chunk-AOTBKDRK.js} +7 -0
- package/{chunk-NA35QHCF.js → chunk-AWVP7PPG.js} +1 -1
- package/{chunk-EEGDMATE.js → chunk-B7APRSPS.js} +86 -81
- package/{chunk-W324THOB.js → chunk-BB7LVBTS.js} +20 -11
- package/{chunk-6YTOJY35.js → chunk-BZ7NPA6G.js} +35 -2
- package/{chunk-5H7KJX7J.js → chunk-CFHWVEUJ.js} +5 -5
- package/chunk-CHOZJMJS.js +78 -0
- package/{chunk-ETI2NYVF.js → chunk-CNA27EMD.js} +4 -4
- package/{chunk-ACTMNVHM.js → chunk-CYSYR67N.js} +1 -1
- package/{chunk-WV42OMV7.js → chunk-D2GQE6AF.js} +8 -8
- package/{chunk-GBRG75BQ.js → chunk-D2MDMY2M.js} +1 -0
- package/{chunk-Q554LLSI.js → chunk-DMXLXZKL.js} +1 -1
- package/chunk-DZ7R5V3Y.js +164 -0
- package/{chunk-3VNWWVKB.js → chunk-E3YWHWCR.js} +50 -18
- package/{chunk-KQ4ONNQD.js → chunk-EKPKW6RM.js} +155 -8
- package/{chunk-2J5Y72GY.js → chunk-EP7BWZ4B.js} +1 -1
- package/{chunk-ABQYVJBJ.js → chunk-EV235ILT.js} +5 -5
- package/{chunk-TRV2MIDW.js → chunk-EXAJ6DCR.js} +1 -0
- package/{chunk-3ZW5ZJMM.js → chunk-FGSJ3YMD.js} +23 -28
- package/{chunk-2F7RJC6L.js → chunk-FOXQ7BAB.js} +1 -1
- package/{chunk-SH43IESU.js → chunk-GGC55Q32.js} +199 -29
- package/chunk-GMZLP5DV.js +82 -0
- package/{chunk-DHDMC6FO.js → chunk-GSKPJIHY.js} +14 -9
- package/{chunk-FDTR4QJ6.js → chunk-H6A6X4EK.js} +32 -1
- package/{chunk-DVINR3PL.js → chunk-HDLLCBRF.js} +1 -1
- package/{chunk-QOKAKDPE.js → chunk-HIM3FCLF.js} +0 -1
- package/{chunk-ONXOABJR.js → chunk-HNGRBWYF.js} +3 -0
- package/{chunk-VLTIYV3X.js → chunk-HP57OUJO.js} +4 -4
- package/{chunk-NXUYQBDZ.js → chunk-HYXABXCZ.js} +29 -78
- package/{chunk-DNCEALKX.js → chunk-IEJ5YDA4.js} +22 -29
- package/{chunk-O6OSWFZQ.js → chunk-IHPDK6UD.js} +6 -0
- package/{chunk-BP4XNZRM.js → chunk-JIXGJTBU.js} +4 -4
- package/{chunk-GPCZ7UXG.js → chunk-K6U4NKFJ.js} +1 -1
- package/{chunk-Z77CRGTW.js → chunk-KA5O5KQL.js} +1 -1
- package/{chunk-4OEFYTWL.js → chunk-L5WOICCV.js} +67 -48
- package/{chunk-LS2ZANRJ.js → chunk-LOCNXNOU.js} +1 -1
- package/chunk-LWLNLZC5.js +265 -0
- package/{chunk-H66KLASO.js → chunk-LWXE6IFU.js} +567 -519
- package/{chunk-PUOC4YRO.js → chunk-M7VLQGQP.js} +11 -0
- package/chunk-NKWIS6G2.js +442 -0
- package/{chunk-BFU6C242.js → chunk-NMFV26UG.js} +1 -1
- package/{chunk-DJWMIXDZ.js → chunk-NSAFG343.js} +10 -10
- package/{chunk-UKZDAFYT.js → chunk-NSBID7PR.js} +6 -10
- package/{chunk-O7EBSHZR.js → chunk-NTR4SD3P.js} +845 -240
- package/{chunk-FZGV4FGK.js → chunk-NUHHBEJC.js} +378 -187
- package/chunk-NWENLDMM.js +42 -0
- package/chunk-O7SVKKLY.js +875 -0
- package/chunk-OCZKATRC.js +129 -0
- package/{chunk-VMFTFOWF.js → chunk-OKGVNZTL.js} +35 -8
- package/{chunk-KQHGZWSV.js → chunk-OXME3PEE.js} +1 -1
- package/{chunk-JRQFUXY7.js → chunk-P5GCTVGV.js} +99 -22
- package/{chunk-PQFHGD77.js → chunk-QKTESDWK.js} +161 -14
- package/{chunk-U3JZVWIB.js → chunk-QMXJ5KDJ.js} +68 -46
- package/{chunk-GEPUP7OO.js → chunk-QYUBY3OZ.js} +3 -3
- package/{chunk-3BMYXEUW.js → chunk-R5AJODNI.js} +1 -1
- package/{chunk-J4MOO56S.js → chunk-RILRSUGC.js} +10 -2
- package/{chunk-OEVAY4J6.js → chunk-RWX7AY7J.js} +18 -20
- package/{chunk-YY7I6GQ3.js → chunk-S2NSK7AZ.js} +11 -9
- package/{chunk-IIVGDG4I.js → chunk-SJKULPGX.js} +13 -7
- package/{chunk-BYMV6QZG.js → chunk-TNIX77YM.js} +4 -0
- package/chunk-TY3TIUJK.js +89 -0
- package/{chunk-I3TQJXQ7.js → chunk-U3C3IA32.js} +9 -2
- package/{chunk-UZGQNTVW.js → chunk-UA324D4O.js} +8 -6
- package/{chunk-YYLHWIW6.js → chunk-UKZX3NHN.js} +1 -1
- package/chunk-UWXDA7L5.js +8005 -0
- package/{chunk-3DII57IT.js → chunk-VCAQFMVN.js} +1 -1
- package/chunk-VIWDGTDA.js +8 -0
- package/chunk-VJVNU77E.js +83 -0
- package/{chunk-A6FMKU7M.js → chunk-VVJ2ENLY.js} +47 -67
- package/{chunk-UKWGR5SS.js → chunk-VY6VFGKR.js} +194 -1144
- package/{chunk-QDSINZM3.js → chunk-WJ3B6FX6.js} +1 -14
- package/{chunk-Q67DOFOO.js → chunk-Y3PMXGLH.js} +2 -0
- package/chunk-YK5MHOWM.js +915 -0
- package/chunk-YV25TM3R.js +780 -0
- package/{chunk-TOP2VXOR.js → chunk-YVU4XVJD.js} +5 -5
- package/{chunk-S6JLBH6Z.js → chunk-Z5NGE5DH.js} +29 -9
- package/{chunk-LC43IGO4.js → chunk-ZBHR642M.js} +704 -950
- package/chunk-ZRAU6T47.js +56 -0
- package/{chunk-VLI5LVL5.js → chunk-ZSUDOTPL.js} +19 -17
- package/commandRegistry-QU62WJQX.js +833 -0
- package/{contentThunks-LXOZUD2Y.js → contentThunks-VGV3JJVB.js} +37 -35
- package/{cooldownCommands-REAWYVTY.js → cooldownCommands-ZLEPIB4A.js} +2 -2
- package/{createAgentAutomationAction-M5NDEIC6.js → createAgentAutomationAction-ZNVLI4WV.js} +39 -37
- package/createDialogAction-TTUA46DT.js +69 -0
- package/{createPageAction-WY5ZKP2M.js → createPageAction-KUFSC5XW.js} +46 -43
- package/{chunk-RJ4QOQDA.js → cursorProvider-YGGNMVWX.js} +2496 -9905
- package/{dbSlice-XVWBAGYN.js → dbSlice-MYEETO73.js} +11 -10
- package/{deleteFile-YG6QMJLU.js → deleteFile-KESP65GC.js} +7 -6
- package/{dialogCommands-YVMHDEOX.js → dialogCommands-DRDPEOTL.js} +49 -45
- package/{dialogSlice-HSGREZGA.js → dialogSlice-V2SVSTIV.js} +41 -34
- package/{dist-VODFSGNG.js → dist-NJC2W7I4.js} +61 -54
- package/{docCreateCommands-7UTWDYJU.js → docCreateCommands-M26CFDDQ.js} +48 -43
- package/{docDeleteCommands-GG6BJ4PS.js → docDeleteCommands-LRZHCKVX.js} +49 -44
- package/{docReadCommands-QHMQVSLP.js → docReadCommands-6QJSISHK.js} +47 -42
- package/{docStore-IIS36NGG.js → docStore-4RWAFNDM.js} +16 -12
- package/{docUpdateCommands-QPL6IVUK.js → docUpdateCommands-W4KU4U5T.js} +48 -43
- package/{fetchMessages-EIU7UFFK.js → fetchMessages-3PXAHKCR.js} +5 -5
- package/{getPricing-LUSEABA6.js → getPricing-NMMFT3YI.js} +4 -4
- package/{handleSendMessageAction-FEHCWMN2.js → handleSendMessageAction-VEWLGB5Z.js} +107 -41
- package/index.js +87 -884
- package/{lib-FRRS27KN.js → lib-PU2G2MSO.js} +523 -191
- package/{localDialogRead-BTFJ4V2I.js → localDialogRead-UYCKO7YZ.js} +2 -2
- package/{localRuntimeAuthority-6IR6BBXE.js → localRuntimeAuthority-TU6OBC76.js} +9 -6
- package/{localRuntimeDb-SYQGUF4U.js → localRuntimeDb-VKWVOPPI.js} +1 -1
- package/{machineCommands-7DEUPY32.js → machineCommands-AEHHCJEW.js} +92 -82
- package/machineWsRunDispatch-MY2KHS36.js +154 -0
- package/{memberThunks-QGFLFVCI.js → memberThunks-EE6TI3TV.js} +20 -18
- package/{models-T3SG6MJ5.js → models-ZPU5EDF4.js} +2 -2
- package/oauthTokenStore-ITEB663N.js +23 -0
- package/package.json +1 -1
- package/pdf-U6KSUEZZ.js +26435 -0
- package/processSpawn-SOAV3FEV.js +11 -0
- package/profileConfig-ZGOFORWV.js +43 -0
- package/{providerPresetApply-FG6NZ57W.js → providerPresetApply-TEBH7FDX.js} +7 -7
- package/{providerRegistry-757OWH3O.js → providerRegistry-CBJLNCET.js} +11 -7
- package/{read-COE3ZYR6.js → read-PJIT2YEJ.js} +7 -6
- package/{readDocTool-5USN4A6V.js → readDocTool-DRSXHGNL.js} +5 -3
- package/{readlineWorkspace-JP2AOALW.js → readlineWorkspace-7Q6MITLV.js} +2685 -2050
- package/{removeDialogAgentAction-IX3MN2ZO.js → removeDialogAgentAction-IN4WUKJJ.js} +21 -25
- package/{runAgentClientLoop-UY76PPZM.js → runAgentClientLoop-H2JALUVD.js} +76 -70
- package/{runtimeDoctorCommands-X6WDBEQX.js → runtimeDoctorCommands-PIVSBZRZ.js} +4 -4
- package/runtimeModeArgs-2Y7BALTO.js +31 -0
- package/{setDialogExtraReferencesAction-X4HCPNZL.js → setDialogExtraReferencesAction-VDRF7LPK.js} +15 -13
- package/{setPrimaryDialogAgentAction-4GMIQLOD.js → setPrimaryDialogAgentAction-RO6LIWJ4.js} +22 -26
- package/{chunk-AFUORTY4.js → settingThunks-3OPOLOIA.js} +226 -940
- package/{skillDiscovery-CYUCJMAG.js → skillDiscovery-ZBU76COE.js} +3 -3
- package/{slateUtils-RIZES3PV.js → slateUtils-NGV2NMKM.js} +1 -1
- package/{spaceCommands-BMXKR7H6.js → spaceCommands-UBLL5EF2.js} +51 -46
- package/{streamAgentChatTurn-3YVIO4KE.js → streamAgentChatTurn-FFJWW3FD.js} +214 -108
- package/{switchDialogAgentAction-N52LRPA3.js → switchDialogAgentAction-MVF2JNE7.js} +18 -19
- package/{tableCommands-O6NWHFKV.js → tableCommands-6U4BMLRR.js} +10 -10
- package/{toolApiClient-QVJ6HDNN.js → toolApiClient-EJT6TMFG.js} +3 -3
- package/tools-AZRYLYNK.js +116 -0
- package/{tuiSummaryLlmCaller-WFRWERGK.js → tuiSummaryLlmCaller-7S5HJ3MT.js} +25 -22
- package/{updateCommands-2M74UL7P.js → updateCommands-4EHDLF5J.js} +3 -3
- package/{updateDialogTitleAction-GF5T3VMK.js → updateDialogTitleAction-5WXTRUJM.js} +82 -44
- package/action-YVYQEAAV.js +0 -31
- package/agentListCommands-3GWH4E4G.js +0 -410
- package/agentRecordCommands-JY4IWSSQ.js +0 -128
- package/agentRunCommand-7VTYZY3Q.js +0 -156
- package/browser-image-compression-MFDTD7K6.js +0 -1763
- package/chatQueueReduxAdapter-WFROMKD3.js +0 -186
- package/chunk-CQ3WA2NE.js +0 -299
- package/chunk-FQUHIG5X.js +0 -20782
- package/chunk-M76ECQRD.js +0 -13658
- package/chunk-MEYIRKDN.js +0 -8967
- package/chunk-Q5FJJ6XI.js +0 -103
- package/chunk-S7Z2HMCN.js +0 -25
- package/chunk-Y5GCAMGP.js +0 -9
- package/chunk-YPREESF4.js +0 -225
- package/createDialogAction-TDFOINOY.js +0 -65
- package/machineWsRunDispatch-D2NHL3P7.js +0 -144
- package/settingSlice-ZQZVUPKK.js +0 -204
- package/syncMapping-N6RGXGBW.js +0 -437
- package/tools-Q6IBBG33.js +0 -110
- package/{chunk-X7HHHIOZ.js → chunk-Y6ROFCZO.js} +0 -0
- package/{db-WK5MDZVN.js → db-VQSAOWAO.js} +1 -1
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
scanValidationDetails
|
|
3
3
|
} from "./chunk-BMQ2MJUK.js";
|
|
4
|
+
import {
|
|
5
|
+
CONTEXT_OVERFLOW_ACTIONS,
|
|
6
|
+
CONTEXT_TOO_LARGE_ACTIONS,
|
|
7
|
+
isContextOverflowText
|
|
8
|
+
} from "./chunk-OCZKATRC.js";
|
|
4
9
|
import {
|
|
5
10
|
waitForAbortableDelay
|
|
6
11
|
} from "./chunk-N4G4PKQ6.js";
|
|
@@ -9,66 +14,69 @@ import {
|
|
|
9
14
|
prepareAndPersistUserMessage,
|
|
10
15
|
resolveHandleSendMessageContext,
|
|
11
16
|
selectAllMsgs
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-44CU7CKA.js";
|
|
18
|
+
import "./chunk-UKZX3NHN.js";
|
|
19
|
+
import "./chunk-R5AJODNI.js";
|
|
20
|
+
import "./chunk-523DITKR.js";
|
|
16
21
|
import "./chunk-AGGIDPCZ.js";
|
|
17
22
|
import {
|
|
18
23
|
streamAgentChatTurn
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-S2NSK7AZ.js";
|
|
25
|
+
import "./chunk-YVU4XVJD.js";
|
|
21
26
|
import "./chunk-5RGU3J7P.js";
|
|
22
27
|
import {
|
|
23
28
|
addActiveController,
|
|
24
29
|
getActiveDialogKey,
|
|
25
30
|
removeActiveController
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-BZ7NPA6G.js";
|
|
32
|
+
import "./chunk-4LCOCOR5.js";
|
|
28
33
|
import "./chunk-YDH3FDFQ.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-5UUIGN6I.js";
|
|
35
|
+
import "./chunk-A4SQRTZ6.js";
|
|
36
|
+
import "./chunk-L5WOICCV.js";
|
|
37
|
+
import "./chunk-IEJ5YDA4.js";
|
|
38
|
+
import "./chunk-5MMAK75Q.js";
|
|
33
39
|
import "./chunk-BYXBJQAS.js";
|
|
34
|
-
import "./chunk-OIVSQH2O.js";
|
|
35
40
|
import "./chunk-DWLEOOGR.js";
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-ONXOABJR.js";
|
|
38
|
-
import "./chunk-W7XHHYWM.js";
|
|
39
|
-
import "./chunk-HNMXYYJR.js";
|
|
40
|
-
import "./chunk-7S4YWN7P.js";
|
|
41
|
-
import "./chunk-ACTMNVHM.js";
|
|
42
|
-
import "./chunk-Q67DOFOO.js";
|
|
43
|
-
import "./chunk-AFUORTY4.js";
|
|
44
|
-
import "./chunk-Y5GCAMGP.js";
|
|
45
|
-
import "./chunk-QDSINZM3.js";
|
|
41
|
+
import "./chunk-2U3NHADM.js";
|
|
46
42
|
import "./chunk-KX6YBIHG.js";
|
|
47
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-PSCNXBYA.js";
|
|
44
|
+
import "./chunk-3F424ASC.js";
|
|
48
45
|
import "./chunk-UAD2WT54.js";
|
|
49
46
|
import {
|
|
50
47
|
readAndWait,
|
|
51
48
|
selectById
|
|
52
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-4WMMIL66.js";
|
|
50
|
+
import "./chunk-EV235ILT.js";
|
|
51
|
+
import "./chunk-HNGRBWYF.js";
|
|
52
|
+
import "./chunk-7KVZ5LDQ.js";
|
|
53
|
+
import "./chunk-3BXNTXYI.js";
|
|
54
|
+
import "./chunk-W7XHHYWM.js";
|
|
55
|
+
import "./chunk-HNMXYYJR.js";
|
|
56
|
+
import "./chunk-CYSYR67N.js";
|
|
53
57
|
import {
|
|
54
|
-
|
|
55
|
-
} from "./chunk-
|
|
56
|
-
import "./chunk-WWC7I6TA.js";
|
|
57
|
-
import "./chunk-ABQYVJBJ.js";
|
|
58
|
+
PLATFORM_LLM_BUSY_USER_MESSAGE
|
|
59
|
+
} from "./chunk-Y3PMXGLH.js";
|
|
58
60
|
import "./chunk-QSJ3HFEF.js";
|
|
59
|
-
import "./chunk-
|
|
61
|
+
import "./chunk-D2GQE6AF.js";
|
|
62
|
+
import "./chunk-O7SVKKLY.js";
|
|
63
|
+
import "./chunk-D2MDMY2M.js";
|
|
60
64
|
import "./chunk-BNGW5ASC.js";
|
|
61
65
|
import {
|
|
62
66
|
extractCustomId
|
|
63
67
|
} from "./chunk-M2EJHDJP.js";
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
68
|
+
import "./chunk-KUG52IAP.js";
|
|
69
|
+
import "./chunk-NWENLDMM.js";
|
|
70
|
+
import {
|
|
71
|
+
createDialogMessageKeyAndId
|
|
72
|
+
} from "./chunk-OKGVNZTL.js";
|
|
73
|
+
import "./chunk-WWC7I6TA.js";
|
|
74
|
+
import "./chunk-VY6VFGKR.js";
|
|
75
|
+
import "./chunk-HIM3FCLF.js";
|
|
66
76
|
import "./chunk-OW765XBU.js";
|
|
67
77
|
import "./chunk-SEJ5OS6F.js";
|
|
68
|
-
import "./chunk-GBRG75BQ.js";
|
|
69
|
-
import "./chunk-KUG52IAP.js";
|
|
70
|
-
import "./chunk-3EUW3WEO.js";
|
|
71
78
|
import "./chunk-U6VC4MU4.js";
|
|
79
|
+
import "./chunk-3EUW3WEO.js";
|
|
72
80
|
import "./chunk-LCBAMY2M.js";
|
|
73
81
|
import "./chunk-4SN6J65J.js";
|
|
74
82
|
import "./chunk-CF7PE763.js";
|
|
@@ -176,15 +184,48 @@ function parseSendError(errorInput) {
|
|
|
176
184
|
domain = first ? asString(first.domain) : void 0;
|
|
177
185
|
}
|
|
178
186
|
const stage = resolveErrorStage(fullErrorText);
|
|
187
|
+
const inputRecord = asRecord(errorInput);
|
|
188
|
+
const authCode = asString(inputRecord?.authCode) ?? asString(inputRecord?.code);
|
|
189
|
+
const hasPlatformAuthCode = /^AUTH_[A-Z0-9_]+$/.test(authCode ?? "") || /\bAUTH_[A-Z0-9_]+\b/.test(fullErrorText);
|
|
190
|
+
const isPlatformProviderFailure = /\bplatform provider failed\b/i.test(fullErrorText);
|
|
191
|
+
const isLoginStatus = statusCode === void 0 || statusCode === 401;
|
|
192
|
+
const requiresLogin = isLoginStatus && !url && !/validation_required|api[_ -]?key/i.test(fullErrorText) && (hasPlatformAuthCode || isPlatformProviderFailure && statusCode === 401);
|
|
193
|
+
if (requiresLogin) {
|
|
194
|
+
return {
|
|
195
|
+
kind: "auth",
|
|
196
|
+
retryable: false,
|
|
197
|
+
stage,
|
|
198
|
+
summary: "\u9700\u8981\u767B\u5F55",
|
|
199
|
+
actionHint: "\u672A\u68C0\u6D4B\u5230\u767B\u5F55\u72B6\u6001\uFF0C\u8BF7\u5148\u767B\u5F55",
|
|
200
|
+
extraLinks: [{ text: "\u53BB\u767B\u5F55", url: "/login" }]
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
const isPlatformBusy = fullErrorText.includes(PLATFORM_LLM_BUSY_USER_MESSAGE) || /PLATFORM_LLM_BUSY/i.test(fullErrorText);
|
|
204
|
+
const busyUpstreamDetail = fullErrorText.match(
|
|
205
|
+
/nolo\s+(?:HTTP\s*\d{3}|[A-Za-z]+Error)/
|
|
206
|
+
)?.[0];
|
|
179
207
|
let kind = "unknown";
|
|
180
208
|
let retryable = true;
|
|
181
209
|
const isLocalConnRefused = /ECONNREFUSED/i.test(fullErrorText) && (/127\.0\.0\.1/i.test(fullErrorText) || /localhost/i.test(fullErrorText));
|
|
182
210
|
const hasExplicitAuthKeywords = /unauthorized|unauthenticated|permission_denied|validation_required|invalid_api_key|api key not found|authentication error|forbidden/i.test(
|
|
183
211
|
fullErrorText
|
|
184
212
|
);
|
|
185
|
-
|
|
213
|
+
const isContextOverflow = isContextOverflowText(fullErrorText);
|
|
214
|
+
let contextActions;
|
|
215
|
+
if (isContextOverflow) {
|
|
216
|
+
kind = "context_overflow";
|
|
217
|
+
retryable = true;
|
|
218
|
+
contextActions = [...CONTEXT_OVERFLOW_ACTIONS];
|
|
219
|
+
} else if (isPlatformBusy) {
|
|
220
|
+
kind = "server";
|
|
221
|
+
retryable = true;
|
|
222
|
+
} else if (statusCode === 429) {
|
|
186
223
|
kind = "rate_limit";
|
|
187
224
|
retryable = true;
|
|
225
|
+
} else if (statusCode === 413) {
|
|
226
|
+
kind = "context_too_large";
|
|
227
|
+
retryable = true;
|
|
228
|
+
contextActions = [...CONTEXT_TOO_LARGE_ACTIONS];
|
|
188
229
|
} else if (statusCode === 401 || statusCode === 403 || hasExplicitAuthKeywords) {
|
|
189
230
|
kind = "auth";
|
|
190
231
|
retryable = false;
|
|
@@ -242,7 +283,15 @@ function parseSendError(errorInput) {
|
|
|
242
283
|
parts.push(`\u8BA4\u8BC1\u6216\u6743\u9650\u6821\u9A8C\u5931\u8D25${status ? ` (HTTP ${status})` : ""}`);
|
|
243
284
|
break;
|
|
244
285
|
case "server":
|
|
245
|
-
parts.push(
|
|
286
|
+
parts.push(
|
|
287
|
+
isPlatformBusy ? `\u5E73\u53F0\u670D\u52A1\u7E41\u5FD9${busyUpstreamDetail ? `\uFF08\u4E0A\u6E38 ${busyUpstreamDetail}\uFF09` : ""}` : `\u670D\u52A1\u6682\u65F6\u4E0D\u53EF\u7528${status ? ` (HTTP ${status})` : ""}`
|
|
288
|
+
);
|
|
289
|
+
break;
|
|
290
|
+
case "context_overflow":
|
|
291
|
+
parts.push(`\u4E0A\u4E0B\u6587\u8D85\u51FA\u6A21\u578B\u7A97\u53E3${status ? ` (HTTP ${status})` : ""}`);
|
|
292
|
+
break;
|
|
293
|
+
case "context_too_large":
|
|
294
|
+
parts.push(`\u8BF7\u6C42\u5185\u5BB9\u8FC7\u5927${status ? ` (HTTP ${status})` : ""}`);
|
|
246
295
|
break;
|
|
247
296
|
default:
|
|
248
297
|
parts.push(firstLine.length > 0 ? firstLine : "\u53D1\u9001\u9047\u5230\u5F02\u5E38");
|
|
@@ -279,11 +328,17 @@ function parseSendError(errorInput) {
|
|
|
279
328
|
case "rate_limit":
|
|
280
329
|
actionHint = "\u5DF2\u8FBE\u5230\u8C03\u7528\u9891\u7387\u6216\u914D\u989D\u9650\u5236\uFF0C\u8BF7\u7A0D\u5019\u7247\u523B\u540E\u91CD\u8BD5";
|
|
281
330
|
break;
|
|
331
|
+
case "context_overflow":
|
|
332
|
+
actionHint = "\u4E0A\u4E0B\u6587\u8D85\u51FA\u6A21\u578B\u7A97\u53E3\uFF1A\u53EF\u538B\u7F29\u5386\u53F2\u540E\u91CD\u8BD5\u3001\u5F00\u542F\u65B0\u5BF9\u8BDD\uFF0C\u6216\u5207\u6362\u5230\u66F4\u5927\u7A97\u53E3\u7684\u6A21\u578B\u3002";
|
|
333
|
+
break;
|
|
334
|
+
case "context_too_large":
|
|
335
|
+
actionHint = "\u5355\u6B21\u8BF7\u6C42\u5185\u5BB9\u8FC7\u5927\uFF1A\u8BF7\u51CF\u5C11\u53D1\u9001\u7684\u6D88\u606F\u3001\u6587\u4EF6\u6216\u5DE5\u5177\u7ED3\u679C\uFF0C\u6216\u5F00\u542F\u65B0\u5BF9\u8BDD\u3001\u5207\u6362\u6A21\u578B\u3002";
|
|
336
|
+
break;
|
|
282
337
|
case "auth":
|
|
283
338
|
actionHint = "\u8BF7\u68C0\u67E5\u8D26\u53F7\u767B\u5F55\u72B6\u6001\u6216 API \u5BC6\u94A5\u914D\u7F6E";
|
|
284
339
|
break;
|
|
285
340
|
case "server":
|
|
286
|
-
actionHint = "\u670D\u52A1\u7AEF\u53D1\u751F\u77AC\u65F6\u5F02\u5E38\uFF0C\u70B9\u51FB\u91CD\u8BD5\u901A\u5E38\u53EF\u6062\u590D";
|
|
341
|
+
actionHint = isPlatformBusy ? "\u5E73\u53F0\u7B97\u529B\u6682\u65F6\u7D27\u5F20\uFF0C\u7A0D\u5019\u70B9\u51FB\u91CD\u8BD5\u901A\u5E38\u53EF\u6062\u590D" : "\u670D\u52A1\u7AEF\u53D1\u751F\u77AC\u65F6\u5F02\u5E38\uFF0C\u70B9\u51FB\u91CD\u8BD5\u901A\u5E38\u53EF\u6062\u590D";
|
|
287
342
|
break;
|
|
288
343
|
case "unknown":
|
|
289
344
|
default:
|
|
@@ -305,7 +360,8 @@ function parseSendError(errorInput) {
|
|
|
305
360
|
summary,
|
|
306
361
|
validationUrl: url,
|
|
307
362
|
validationLinkText: text ?? "\u9A8C\u8BC1\u6211\u7684\u8D26\u53F7",
|
|
308
|
-
extraLinks
|
|
363
|
+
extraLinks,
|
|
364
|
+
...contextActions ? { actions: contextActions } : {}
|
|
309
365
|
};
|
|
310
366
|
}
|
|
311
367
|
const MAX_FALLBACK = 800;
|
|
@@ -317,7 +373,8 @@ function parseSendError(errorInput) {
|
|
|
317
373
|
actionHint,
|
|
318
374
|
summary,
|
|
319
375
|
extraLinks,
|
|
320
|
-
fallbackText
|
|
376
|
+
fallbackText,
|
|
377
|
+
...contextActions ? { actions: contextActions } : {}
|
|
321
378
|
};
|
|
322
379
|
}
|
|
323
380
|
function buildSendErrorMessageMarkdown(parsed) {
|
|
@@ -433,6 +490,11 @@ var finalizeSendFailureInDialog = async (dispatch, dialogConfig, agentKey, error
|
|
|
433
490
|
stage: parsed.stage,
|
|
434
491
|
summary: parsed.summary,
|
|
435
492
|
actionHint: parsed.actionHint,
|
|
493
|
+
// 上下文超窗 / 内容过大时带上结构化动作(review 修复 2):
|
|
494
|
+
// 没有这个字段,SendErrorCard 的 compact-and-retry / new-dialog /
|
|
495
|
+
// switch-model 三枚按钮永远不会出现,用户只剩一行文本提示。
|
|
496
|
+
// 其余 kind 不设 → 卡片只渲染重试。
|
|
497
|
+
...parsed.actions ? { actions: parsed.actions } : {},
|
|
436
498
|
validationUrl: parsed.validationUrl,
|
|
437
499
|
validationLinkText: parsed.validationLinkText,
|
|
438
500
|
extraLinks: parsed.extraLinks,
|
|
@@ -520,10 +582,14 @@ var handleSendMessageAction = async (args, { dispatch, getState, rejectWithValue
|
|
|
520
582
|
dialogKey: dialogConfig.dbKey
|
|
521
583
|
});
|
|
522
584
|
}
|
|
585
|
+
const selectedRuntimeTarget = dialogConfig.runtimeBinding?.target;
|
|
523
586
|
const resolvedContext = resolveHandleSendMessageContext({
|
|
524
587
|
dialogConfig,
|
|
525
588
|
targetAgentKey: args.targetAgentKey,
|
|
526
|
-
runtimeOptions:
|
|
589
|
+
runtimeOptions: {
|
|
590
|
+
...args.runtimeOptions,
|
|
591
|
+
...selectedRuntimeTarget && (selectedRuntimeTarget.kind === "server" || selectedRuntimeTarget.kind === "machine") ? { runtimeTarget: { ...selectedRuntimeTarget, kind: selectedRuntimeTarget.kind } } : {}
|
|
592
|
+
}
|
|
527
593
|
});
|
|
528
594
|
agentKeyToUse = resolvedContext.agentKeyToUse;
|
|
529
595
|
const agentConfigToUse = resolvedContext.agentConfigToUse;
|