nolo-cli 0.97.0-alpha.2 → 0.97.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.
Files changed (182) hide show
  1. package/README.md +1 -1
  2. package/{_executeModel-G2MRKK2K.js → _executeModel-DYHTQJZC.js} +68 -63
  3. package/{action-YVYQEAAV.js → action-GI44T4DR.js} +10 -10
  4. package/{addContentAction-O7R66HEX.js → addContentAction-B2DRF7P6.js} +9 -9
  5. package/{addDialogAgentAction-74OA7KYP.js → addDialogAgentAction-T3I7IXPK.js} +15 -17
  6. package/{agentDeleteCommand-4427YKQF.js → agentDeleteCommand-LLNNP3AM.js} +47 -43
  7. package/{agentEmailCommands-RNBKKO7Q.js → agentEmailCommands-EO3H2LDW.js} +90 -82
  8. package/agentListCommands-J3MWAZWO.js +741 -0
  9. package/{agentMachineCommands-FOFX5S2Q.js → agentMachineCommands-V65VOQNK.js} +42 -38
  10. package/{agentProviderCommands-GNPTL5XR.js → agentProviderCommands-EMZCM6VA.js} +1 -1
  11. package/{agentPullCommand-O5MPVJ5E.js → agentPullCommand-HF4A42D4.js} +1 -1
  12. package/agentRecordCommands-VY35OMX3.js +136 -0
  13. package/{agentRunCommand-2W3Q3A7M.js → agentRunCommand-CSEX4QIH.js} +90 -80
  14. package/{agentRunControl-WCTKX5VL.js → agentRunControl-5T64LM2M.js} +2 -2
  15. package/{agentRuntimeLocal-IW3IM5P6.js → agentRuntimeLocal-AY6YNUAL.js} +44 -36
  16. package/{agentSlice-SK47GTN7.js → agentSlice-FOZUXW7X.js} +11 -11
  17. package/{appDeleteCommands-ZXLXNRHF.js → appDeleteCommands-QTTL3QF3.js} +42 -38
  18. package/{appDeployCommands-PWB4YERK.js → appDeployCommands-43LJECGV.js} +42 -38
  19. package/{appDeployStatusCommands-2EZKZP7Y.js → appDeployStatusCommands-L5BKOLYW.js} +42 -38
  20. package/{appGetCommands-JNUKOWHO.js → appGetCommands-HOFZKOPC.js} +42 -38
  21. package/{appListCommands-6X3H67SS.js → appListCommands-I7C3SJCE.js} +42 -38
  22. package/{authCommand-F4EFRRX6.js → authCommand-2YPMMIJN.js} +117 -23
  23. package/{authCommands-RGOGCPP6.js → authCommands-FFDS4FVX.js} +7 -5
  24. package/{builtinSkillRegistry-FUAVTRVZ.js → builtinSkillRegistry-CALVIJTX.js} +6 -5
  25. package/{chatQueueReduxAdapter-ZJ555AT2.js → chatQueueReduxAdapter-NMEZRYC2.js} +30 -29
  26. package/{chromeCommands-FZYAU75D.js → chromeCommands-K27J4OVZ.js} +124 -28
  27. package/{chromeOpsCommands-62P2Q2YB.js → chromeOpsCommands-IXRLN57H.js} +4 -3
  28. package/{chunk-6OZ36FXI.js → chunk-27ONFIEY.js} +22 -4
  29. package/{chunk-JEDZAO7L.js → chunk-2SYTUTLI.js} +257 -37
  30. package/{chunk-YQTQQX2H.js → chunk-2UV22D2F.js} +1 -1
  31. package/{chunk-7D6Z6AA4.js → chunk-3BFMH6GE.js} +6 -7
  32. package/{chunk-OIVSQH2O.js → chunk-3BXNTXYI.js} +299 -5
  33. package/{chunk-QIAVMDHY.js → chunk-3LX6YE3P.js} +4 -4
  34. package/{chunk-EYAQT56M.js → chunk-4DPP773Q.js} +2 -2
  35. package/chunk-4LCOCOR5.js +50 -0
  36. package/{chunk-2GRGFCF6.js → chunk-4VJAC32I.js} +2 -1
  37. package/{chunk-MC4XLIJ7.js → chunk-523DITKR.js} +1 -1
  38. package/{chunk-E4MARS3Q.js → chunk-5GVBDNTO.js} +1 -1
  39. package/chunk-5J3PYNUP.js +255 -0
  40. package/chunk-5MMAK75Q.js +15 -0
  41. package/{chunk-JPGCXHNM.js → chunk-5OA5HMTL.js} +1 -1
  42. package/{chunk-42V6BK2E.js → chunk-62IL3KQV.js} +4 -34
  43. package/{chunk-6YTOJY35.js → chunk-6D2JFXLY.js} +35 -0
  44. package/{chunk-3BMYXEUW.js → chunk-6O4IK4V2.js} +1 -1
  45. package/{chunk-IIVGDG4I.js → chunk-6PHKBY2Q.js} +10 -4
  46. package/{chunk-ASQYTZTR.js → chunk-6ZWMH6TJ.js} +69 -36
  47. package/{chunk-ABQYVJBJ.js → chunk-7CHC4W22.js} +1 -1
  48. package/{chunk-GQBOR3G6.js → chunk-7KVZ5LDQ.js} +2 -2
  49. package/{chunk-SDTTBMBU.js → chunk-7WCQEMPB.js} +888 -1079
  50. package/{chunk-BLJWCTRL.js → chunk-AOPCEXTB.js} +1 -1
  51. package/{chunk-3SK4LEIH.js → chunk-AQ3I6DZE.js} +853 -209
  52. package/{chunk-Q554LLSI.js → chunk-AUDNYVRC.js} +1 -1
  53. package/{chunk-RG6JBBX5.js → chunk-AWF3WO5R.js} +166 -13
  54. package/{chunk-GPCZ7UXG.js → chunk-AZRHIN5B.js} +1 -1
  55. package/chunk-BMQ2MJUK.js +153 -0
  56. package/{chunk-B4ZH7KVO.js → chunk-C3VLSD4K.js} +236 -36
  57. package/{chunk-4EZHSKTB.js → chunk-C53ZG23R.js} +2 -2
  58. package/chunk-CHOZJMJS.js +78 -0
  59. package/{chunk-HJUYAD4A.js → chunk-CPUFH46E.js} +8 -8
  60. package/{chunk-LS2ZANRJ.js → chunk-CTUQJVQM.js} +1 -1
  61. package/{chunk-BP4XNZRM.js → chunk-CU3QB4HW.js} +3 -3
  62. package/{chunk-ACTMNVHM.js → chunk-CYSYR67N.js} +1 -1
  63. package/{chunk-KQ4ONNQD.js → chunk-DAWDCRIG.js} +82 -8
  64. package/{chunk-VLTIYV3X.js → chunk-DCLMZ5TX.js} +4 -4
  65. package/{chunk-UKZDAFYT.js → chunk-DSSTTEKI.js} +6 -10
  66. package/{chunk-L7I247DF.js → chunk-EKS2APRJ.js} +21 -5
  67. package/{chunk-HVURBGF3.js → chunk-ESRMFY7G.js} +2 -2
  68. package/{chunk-TRV2MIDW.js → chunk-EXAJ6DCR.js} +1 -0
  69. package/chunk-FD5K6MPI.js +7808 -0
  70. package/chunk-GMZLP5DV.js +82 -0
  71. package/{chunk-FDTR4QJ6.js → chunk-H6A6X4EK.js} +32 -1
  72. package/{chunk-DVINR3PL.js → chunk-HDLLCBRF.js} +1 -1
  73. package/{chunk-OIMN34NA.js → chunk-HKTIX4ZE.js} +23 -76
  74. package/{chunk-ONXOABJR.js → chunk-HNGRBWYF.js} +3 -0
  75. package/{chunk-H62HCIUP.js → chunk-HYZIYH2H.js} +11 -10
  76. package/{chunk-3VNWWVKB.js → chunk-I3QNET24.js} +30 -17
  77. package/{chunk-WV42OMV7.js → chunk-IAESIMK7.js} +4 -4
  78. package/{chunk-O35EJJVP.js → chunk-JJ7P5CIY.js} +56 -34
  79. package/{chunk-OZPMVBJI.js → chunk-JZ5II5UV.js} +15 -20
  80. package/{chunk-JRQFUXY7.js → chunk-KCDUTE5V.js} +96 -19
  81. package/{chunk-QLNJRTKI.js → chunk-KHVJXNRY.js} +100 -100
  82. package/{chunk-7S4YWN7P.js → chunk-MX574M24.js} +1 -1
  83. package/{chunk-FZGV4FGK.js → chunk-NUHHBEJC.js} +378 -187
  84. package/{chunk-53HEEOTT.js → chunk-O26PCYLS.js} +80 -13
  85. package/{chunk-3DII57IT.js → chunk-O2OWEFII.js} +1 -1
  86. package/{chunk-TDRTS7QW.js → chunk-O6JPWEEK.js} +77 -17
  87. package/chunk-OCZKATRC.js +129 -0
  88. package/{chunk-6D6VBVEW.js → chunk-OTEMQQZI.js} +80 -14
  89. package/{chunk-ADTY7BWR.js → chunk-OYOWA3CP.js} +24 -5
  90. package/chunk-P6GMCCAT.js +870 -0
  91. package/{chunk-R7N5TMTV.js → chunk-PQTSOHBT.js} +13 -13
  92. package/{chunk-WGR3J4Q6.js → chunk-Q4GP72HX.js} +9 -3
  93. package/{chunk-DHDMC6FO.js → chunk-QKUMVP3O.js} +11 -6
  94. package/{chunk-X4QAVDFE.js → chunk-RMAWULCS.js} +498 -480
  95. package/{chunk-V4MJDUSR.js → chunk-RSEEDUMS.js} +2 -2
  96. package/{chunk-UZGQNTVW.js → chunk-S5XGT6GB.js} +5 -3
  97. package/{chunk-76WEAXJB.js → chunk-SACTCJAC.js} +18 -15
  98. package/{chunk-AFUORTY4.js → chunk-SONWNI3L.js} +21 -21
  99. package/{chunk-BYMV6QZG.js → chunk-TNIX77YM.js} +4 -0
  100. package/{chunk-2YMRWISD.js → chunk-TU5NE4U3.js} +9 -84
  101. package/chunk-TY3TIUJK.js +89 -0
  102. package/chunk-UEGYKNHO.js +13349 -0
  103. package/chunk-UNYJU5L6.js +780 -0
  104. package/{chunk-J4MOO56S.js → chunk-UQNS32WZ.js} +10 -2
  105. package/chunk-VIWDGTDA.js +8 -0
  106. package/chunk-VJVNU77E.js +83 -0
  107. package/{chunk-EHKBVWKL.js → chunk-VYN7O3OY.js} +1 -1
  108. package/{chunk-NEDZDG3M.js → chunk-WILHZY7K.js} +45 -45
  109. package/{chunk-UKWGR5SS.js → chunk-WIWM4FE3.js} +187 -398
  110. package/{chunk-O6OSWFZQ.js → chunk-XUWRURDF.js} +6 -0
  111. package/{chunk-Q67DOFOO.js → chunk-Y3PMXGLH.js} +2 -0
  112. package/{chunk-SNPMM7H3.js → chunk-Y6AZRODX.js} +13 -13
  113. package/{chunk-RSJECD7I.js → chunk-YJKDTJ2X.js} +7 -7
  114. package/{chunk-SH43IESU.js → chunk-YUNJN43V.js} +44 -9
  115. package/{chunk-TOP2VXOR.js → chunk-Z4CSIXYP.js} +2 -2
  116. package/{chunk-2F7RJC6L.js → chunk-ZOVKKMF6.js} +1 -1
  117. package/chunk-ZRAU6T47.js +56 -0
  118. package/{chunk-Z77CRGTW.js → chunk-ZYWQNCBN.js} +1 -1
  119. package/commandRegistry-MRPLKSWP.js +833 -0
  120. package/{contentThunks-YLWTUILV.js → contentThunks-TD5YOAQM.js} +32 -30
  121. package/{cooldownCommands-REAWYVTY.js → cooldownCommands-ZLEPIB4A.js} +2 -2
  122. package/{createAgentAutomationAction-HFLPOBWQ.js → createAgentAutomationAction-XUG62ANM.js} +32 -30
  123. package/{createDialogAction-4H52MURR.js → createDialogAction-L3CMZKNL.js} +36 -33
  124. package/{createPageAction-5YDRMJOS.js → createPageAction-WJ3MX6JS.js} +38 -36
  125. package/{chunk-NUVMWYJM.js → cursorProvider-YGGNMVWX.js} +2494 -9892
  126. package/{dbSlice-XVWBAGYN.js → dbSlice-DQ32LYTJ.js} +8 -8
  127. package/{deleteFile-YG6QMJLU.js → deleteFile-NX6QHCWZ.js} +3 -3
  128. package/{dialogCommands-KFK2FF5B.js → dialogCommands-VM3I4HBW.js} +45 -41
  129. package/{dialogSlice-TMSHUGEM.js → dialogSlice-DSHG3YUE.js} +36 -29
  130. package/{dist-VODFSGNG.js → dist-NJC2W7I4.js} +61 -54
  131. package/{docCreateCommands-V777WOZ7.js → docCreateCommands-TYUJPCOP.js} +44 -40
  132. package/{docDeleteCommands-5KHT7Z5Q.js → docDeleteCommands-5XEG2LXO.js} +44 -40
  133. package/{docReadCommands-BLROGWP3.js → docReadCommands-M6RO6QHV.js} +43 -39
  134. package/{docStore-OBC5QOW7.js → docStore-RYOGMPEF.js} +11 -10
  135. package/{docUpdateCommands-QXOZHQ5H.js → docUpdateCommands-DKOFTZRX.js} +44 -40
  136. package/{fetchMessages-EIU7UFFK.js → fetchMessages-67MEFPZR.js} +2 -2
  137. package/{getPricing-LUSEABA6.js → getPricing-NMMFT3YI.js} +3 -3
  138. package/{handleSendMessageAction-4LGNXH6T.js → handleSendMessageAction-XH742B27.js} +91 -83
  139. package/index.js +87 -884
  140. package/{localDialogRead-BTFJ4V2I.js → localDialogRead-EBRS242U.js} +2 -2
  141. package/{localRuntimeAuthority-6IR6BBXE.js → localRuntimeAuthority-5W6IJRAD.js} +6 -6
  142. package/{localRuntimeDb-SYQGUF4U.js → localRuntimeDb-3LRMNLCM.js} +1 -1
  143. package/{machineCommands-SNLCRHQK.js → machineCommands-BKYVMMEG.js} +85 -77
  144. package/{machineWsRunDispatch-ZGZVDQSO.js → machineWsRunDispatch-QOBSQQ72.js} +82 -74
  145. package/{memberThunks-QGFLFVCI.js → memberThunks-5ZXPR63F.js} +9 -9
  146. package/{models-T3SG6MJ5.js → models-ZPU5EDF4.js} +2 -2
  147. package/oauthTokenStore-ITEB663N.js +23 -0
  148. package/package.json +1 -1
  149. package/pdf-U6KSUEZZ.js +26435 -0
  150. package/processSpawn-SOAV3FEV.js +11 -0
  151. package/profileConfig-ZGOFORWV.js +43 -0
  152. package/{providerPresetApply-FG6NZ57W.js → providerPresetApply-76AVU3HD.js} +7 -7
  153. package/{providerRegistry-757OWH3O.js → providerRegistry-Z62NC45X.js} +11 -7
  154. package/{read-COE3ZYR6.js → read-EPTJRAEF.js} +5 -5
  155. package/{readDocTool-5USN4A6V.js → readDocTool-W4NDXNEX.js} +5 -3
  156. package/{readlineWorkspace-OUL7ZN7D.js → readlineWorkspace-7P7IORIT.js} +2447 -2022
  157. package/{removeDialogAgentAction-IX3MN2ZO.js → removeDialogAgentAction-BVAWQKXE.js} +17 -19
  158. package/{runAgentClientLoop-GD3APV7V.js → runAgentClientLoop-7WXN6I7L.js} +62 -58
  159. package/{runtimeDoctorCommands-X6WDBEQX.js → runtimeDoctorCommands-3USD722U.js} +3 -3
  160. package/runtimeModeArgs-2Y7BALTO.js +31 -0
  161. package/{setDialogExtraReferencesAction-X4HCPNZL.js → setDialogExtraReferencesAction-LYY45IAD.js} +12 -11
  162. package/{setPrimaryDialogAgentAction-4GMIQLOD.js → setPrimaryDialogAgentAction-73IL7DLU.js} +18 -20
  163. package/{settingSlice-ZQZVUPKK.js → settingSlice-Q6EKL7EQ.js} +9 -9
  164. package/{skillDiscovery-CYUCJMAG.js → skillDiscovery-ZBU76COE.js} +3 -3
  165. package/{spaceCommands-TIDVUPDV.js → spaceCommands-QFP4ZXKG.js} +44 -40
  166. package/{streamAgentChatTurn-M73KWCCU.js → streamAgentChatTurn-B4PXPJJS.js} +184 -91
  167. package/{switchDialogAgentAction-N52LRPA3.js → switchDialogAgentAction-UUXDSQ6X.js} +15 -17
  168. package/{tableCommands-O6NWHFKV.js → tableCommands-G7RV3RU3.js} +4 -4
  169. package/{toolApiClient-QVJ6HDNN.js → toolApiClient-INIQCPGY.js} +3 -3
  170. package/{tools-DXXDQ2CP.js → tools-QFS2L7BU.js} +55 -51
  171. package/{tuiSummaryLlmCaller-VJY3YD2Q.js → tuiSummaryLlmCaller-74NRRLVW.js} +18 -16
  172. package/{updateCommands-2M74UL7P.js → updateCommands-4EHDLF5J.js} +3 -3
  173. package/{updateDialogTitleAction-XI73NQMU.js → updateDialogTitleAction-HTDYCNNZ.js} +81 -43
  174. package/agentListCommands-O4AEMQVV.js +0 -406
  175. package/agentRecordCommands-6QK7AMXQ.js +0 -128
  176. package/chunk-M76ECQRD.js +0 -13658
  177. package/chunk-Q5FJJ6XI.js +0 -103
  178. package/chunk-S7Z2HMCN.js +0 -25
  179. package/chunk-WRFW73PB.js +0 -18881
  180. package/{chunk-VMFTFOWF.js → chunk-3AH7LNUB.js} +7 -7
  181. package/{chunk-X7HHHIOZ.js → chunk-Y6ROFCZO.js} +0 -0
  182. package/{db-WK5MDZVN.js → db-VQSAOWAO.js} +1 -1
@@ -4,23 +4,26 @@ import {
4
4
  import {
5
5
  buildStaticUserPolicyContext,
6
6
  resolveSpaceContextPreloadPlan
7
- } from "./chunk-3DII57IT.js";
7
+ } from "./chunk-O2OWEFII.js";
8
8
  import {
9
9
  buildCliPrompt
10
10
  } from "./chunk-ATNTHIZI.js";
11
11
  import {
12
12
  filterAndCleanMessages,
13
13
  handleToolCalls,
14
- parseApiError,
15
14
  persistToolMessages,
16
15
  readStreamChunk,
17
16
  sendOpenAICompletionsRequest,
18
17
  updateTotalUsage
19
- } from "./chunk-OIMN34NA.js";
18
+ } from "./chunk-HKTIX4ZE.js";
20
19
  import "./chunk-JEXVIMYZ.js";
21
20
  import {
22
21
  prepareTools
23
- } from "./chunk-QLNJRTKI.js";
22
+ } from "./chunk-KHVJXNRY.js";
23
+ import {
24
+ isContextOverflowText,
25
+ parseApiError
26
+ } from "./chunk-OCZKATRC.js";
24
27
  import {
25
28
  INVALID_TOOL_ARGS_REPLACEMENT,
26
29
  buildInvalidToolCallSelfHealResult,
@@ -38,7 +41,7 @@ import {
38
41
  sanitizeOutboundResponsesInput,
39
42
  selectResponsesConversationState,
40
43
  updateResponsesConversationState
41
- } from "./chunk-O35EJJVP.js";
44
+ } from "./chunk-JJ7P5CIY.js";
42
45
  import "./chunk-EOARMOVD.js";
43
46
  import "./chunk-HS7MLR74.js";
44
47
  import {
@@ -46,50 +49,42 @@ import {
46
49
  getAllToolRuns,
47
50
  resolveAgentRecommendedSkillNames,
48
51
  resolveAgentRequiredPackIds
49
- } from "./chunk-X4QAVDFE.js";
50
- import "./chunk-5UTFL4QJ.js";
52
+ } from "./chunk-RMAWULCS.js";
51
53
  import "./chunk-NF64D32W.js";
54
+ import "./chunk-AWF3WO5R.js";
55
+ import "./chunk-5UTFL4QJ.js";
52
56
  import "./chunk-3L2WKC3W.js";
53
- import "./chunk-3VNWWVKB.js";
54
- import "./chunk-RG6JBBX5.js";
55
57
  import "./chunk-KQHGZWSV.js";
56
- import "./chunk-J4MOO56S.js";
57
- import "./chunk-HJUYAD4A.js";
58
- import {
59
- getFinalPrice,
60
- getModelPricing,
61
- getPrices,
62
- hasExplicitAgentPricing
63
- } from "./chunk-EYAQT56M.js";
64
- import {
65
- getPublicImageAgentDefaultProfile,
66
- getPublicImageAgentMode
67
- } from "./chunk-VIDPVFP3.js";
68
- import {
69
- resolveToolBaseUrl
70
- } from "./chunk-VLTIYV3X.js";
71
- import "./chunk-UKZDAFYT.js";
72
58
  import {
73
59
  waitForAbortableDelay
74
60
  } from "./chunk-N4G4PKQ6.js";
75
- import "./chunk-FZGV4FGK.js";
76
- import {
77
- extractCategorizedMentions
78
- } from "./chunk-MEYIRKDN.js";
61
+ import "./chunk-I3QNET24.js";
62
+ import "./chunk-JZ5II5UV.js";
63
+ import "./chunk-CPUFH46E.js";
64
+ import "./chunk-NUHHBEJC.js";
79
65
  import "./chunk-63W5N6P3.js";
80
66
  import "./chunk-VF4K2QE6.js";
81
67
  import {
82
68
  getDocState
83
- } from "./chunk-7D6Z6AA4.js";
84
- import "./chunk-OZPMVBJI.js";
69
+ } from "./chunk-3BFMH6GE.js";
70
+ import "./chunk-DSSTTEKI.js";
71
+ import {
72
+ resolveToolBaseUrl
73
+ } from "./chunk-DCLMZ5TX.js";
74
+ import "./chunk-DAWDCRIG.js";
75
+ import "./chunk-UQNS32WZ.js";
76
+ import {
77
+ extractCategorizedMentions
78
+ } from "./chunk-MEYIRKDN.js";
85
79
  import {
86
80
  getTableState
87
- } from "./chunk-B4ZH7KVO.js";
81
+ } from "./chunk-C3VLSD4K.js";
88
82
  import {
89
83
  getCurrentSpaceId,
90
84
  getCurrentSpaceIdRaw,
91
85
  getViewMode
92
86
  } from "./chunk-ZJ7UHBJS.js";
87
+ import "./chunk-ZRAU6T47.js";
93
88
  import {
94
89
  PERSONALIZATION_DIALOG_CATEGORY,
95
90
  addToolMessage,
@@ -106,34 +101,48 @@ import {
106
101
  selectAllMsgs,
107
102
  selectCurrentDialogConfig,
108
103
  selectDialogConfigByKey,
109
- shouldBlockForGptPro,
110
104
  updateTokens,
111
105
  updateToolMessage
112
- } from "./chunk-WRFW73PB.js";
113
- import "./chunk-MC4XLIJ7.js";
114
- import "./chunk-3BMYXEUW.js";
106
+ } from "./chunk-UEGYKNHO.js";
107
+ import "./chunk-523DITKR.js";
115
108
  import "./chunk-YYLHWIW6.js";
116
- import "./chunk-AGGIDPCZ.js";
117
- import "./chunk-RSJECD7I.js";
109
+ import "./chunk-6O4IK4V2.js";
110
+ import "./chunk-YJKDTJ2X.js";
118
111
  import {
119
112
  createCliChatTurnStream,
120
113
  getCliChatSession,
121
114
  startCliChatSession
122
- } from "./chunk-TOP2VXOR.js";
115
+ } from "./chunk-Z4CSIXYP.js";
123
116
  import "./chunk-5RGU3J7P.js";
117
+ import "./chunk-4LCOCOR5.js";
124
118
  import {
125
119
  addActiveController,
120
+ claimDialogTurnPhase,
121
+ clearDialogTurnPhase,
126
122
  clearPendingUserInputQueue,
127
123
  dequeueUserInput,
128
124
  removeActiveController,
129
125
  selectActiveControllers,
130
126
  selectPendingFiles,
131
127
  selectPendingUserInputQueue,
128
+ setDialogTurnPhase,
132
129
  tokenUsageLiveUpdate
133
- } from "./chunk-6YTOJY35.js";
134
- import "./chunk-M76ECQRD.js";
130
+ } from "./chunk-6D2JFXLY.js";
135
131
  import "./chunk-YDH3FDFQ.js";
136
- import "./chunk-JRQFUXY7.js";
132
+ import "./chunk-MX574M24.js";
133
+ import {
134
+ getFinalPrice,
135
+ getModelPricing,
136
+ getPrices,
137
+ hasExplicitAgentPricing
138
+ } from "./chunk-4DPP773Q.js";
139
+ import {
140
+ getPublicImageAgentDefaultProfile,
141
+ getPublicImageAgentMode
142
+ } from "./chunk-VIDPVFP3.js";
143
+ import "./chunk-AGGIDPCZ.js";
144
+ import "./chunk-CU3QB4HW.js";
145
+ import "./chunk-KCDUTE5V.js";
137
146
  import {
138
147
  TOOL_PACKS,
139
148
  addDefaultSystemCapabilityTools,
@@ -143,8 +152,8 @@ import {
143
152
  expandEnabledPackPromptPatches,
144
153
  expandEnabledPacks,
145
154
  resolveEffectiveEnabledPacks
146
- } from "./chunk-DHDMC6FO.js";
147
- import "./chunk-Q554LLSI.js";
155
+ } from "./chunk-QKUMVP3O.js";
156
+ import "./chunk-AUDNYVRC.js";
148
157
  import "./chunk-KHCLMKZZ.js";
149
158
  import {
150
159
  assertDesktopAgentRuntimeTurnBodyHasNoRawSecrets,
@@ -153,11 +162,11 @@ import {
153
162
  projectToolMessageContent,
154
163
  resolveAgentContextWindow,
155
164
  stripImagePartsForTextOnlyAgent
156
- } from "./chunk-4EZHSKTB.js";
157
- import "./chunk-CQ3WA2NE.js";
165
+ } from "./chunk-C53ZG23R.js";
158
166
  import "./chunk-5ZUL4CUO.js";
167
+ import "./chunk-CQ3WA2NE.js";
159
168
  import "./chunk-N7J63Q6C.js";
160
- import "./chunk-L7I247DF.js";
169
+ import "./chunk-EKS2APRJ.js";
161
170
  import {
162
171
  extractImagePartsFromResponseOutput,
163
172
  extractTextFromResponseOutput,
@@ -165,49 +174,51 @@ import {
165
174
  } from "./chunk-PUOC4YRO.js";
166
175
  import {
167
176
  resolveRuntimeToolSurfaceForAgent
168
- } from "./chunk-IIVGDG4I.js";
169
- import "./chunk-FDTR4QJ6.js";
170
- import "./chunk-UZGQNTVW.js";
171
- import "./chunk-6OZ36FXI.js";
177
+ } from "./chunk-6PHKBY2Q.js";
178
+ import "./chunk-H6A6X4EK.js";
179
+ import "./chunk-S5XGT6GB.js";
180
+ import "./chunk-27ONFIEY.js";
172
181
  import {
173
182
  getModelContextWindow,
174
183
  getModelInfo
175
- } from "./chunk-NEDZDG3M.js";
184
+ } from "./chunk-WILHZY7K.js";
176
185
  import {
177
186
  planContextUsage
178
- } from "./chunk-ASQYTZTR.js";
187
+ } from "./chunk-6ZWMH6TJ.js";
188
+ import "./chunk-5MMAK75Q.js";
179
189
  import {
180
190
  estimateTokenCount
181
191
  } from "./chunk-PSCNXBYA.js";
192
+ import "./chunk-ESRMFY7G.js";
193
+ import "./chunk-BYXBJQAS.js";
194
+ import "./chunk-DWLEOOGR.js";
182
195
  import {
183
196
  isOpenAiResponsesModel
184
- } from "./chunk-GQBOR3G6.js";
185
- import "./chunk-BYXBJQAS.js";
197
+ } from "./chunk-7KVZ5LDQ.js";
198
+ import {
199
+ toErrorMessage
200
+ } from "./chunk-HNMXYYJR.js";
186
201
  import {
187
202
  getApiEndpoint,
188
203
  getModelConfig,
189
204
  getProviderByModelName
190
- } from "./chunk-OIVSQH2O.js";
191
- import "./chunk-DWLEOOGR.js";
192
- import "./chunk-HVURBGF3.js";
193
- import "./chunk-ONXOABJR.js";
205
+ } from "./chunk-3BXNTXYI.js";
194
206
  import "./chunk-W7XHHYWM.js";
195
- import {
196
- toErrorMessage
197
- } from "./chunk-HNMXYYJR.js";
207
+ import "./chunk-RSEEDUMS.js";
208
+ import "./chunk-UAD2WT54.js";
209
+ import "./chunk-HNGRBWYF.js";
198
210
  import {
199
211
  buildLinkedSpacesSection,
200
212
  buildSpaceContextLayer
201
- } from "./chunk-DVINR3PL.js";
202
- import "./chunk-2GRGFCF6.js";
213
+ } from "./chunk-HDLLCBRF.js";
214
+ import "./chunk-4VJAC32I.js";
203
215
  import {
204
216
  canonicalizeToolNames,
205
217
  prioritizeToolNames
206
- } from "./chunk-O6OSWFZQ.js";
207
- import "./chunk-7S4YWN7P.js";
208
- import "./chunk-ACTMNVHM.js";
209
- import "./chunk-Q67DOFOO.js";
210
- import "./chunk-BP4XNZRM.js";
218
+ } from "./chunk-XUWRURDF.js";
219
+ import "./chunk-5J3PYNUP.js";
220
+ import "./chunk-CYSYR67N.js";
221
+ import "./chunk-Y3PMXGLH.js";
211
222
  import {
212
223
  selectAiRecentContentLimit,
213
224
  selectCurrentServer,
@@ -216,46 +227,39 @@ import {
216
227
  selectMaxExecutionTime,
217
228
  selectSpaceContextLevel,
218
229
  selectUserTonePreset
219
- } from "./chunk-AFUORTY4.js";
230
+ } from "./chunk-SONWNI3L.js";
220
231
  import "./chunk-Y5GCAMGP.js";
221
232
  import "./chunk-QDSINZM3.js";
222
233
  import {
223
234
  asRecordOrEmpty
224
235
  } from "./chunk-KX6YBIHG.js";
225
- import "./chunk-V4MJDUSR.js";
226
- import "./chunk-UAD2WT54.js";
227
236
  import {
228
237
  patch,
229
238
  read,
230
239
  selectById,
231
240
  write
232
- } from "./chunk-H62HCIUP.js";
241
+ } from "./chunk-HYZIYH2H.js";
242
+ import "./chunk-7CHC4W22.js";
233
243
  import {
234
244
  asNonEmptyStringArray,
235
245
  createDialogMessageKeyAndId,
236
246
  dialogMessageKey,
237
247
  metaKey
238
- } from "./chunk-VMFTFOWF.js";
248
+ } from "./chunk-3AH7LNUB.js";
239
249
  import {
240
250
  asOptionalFiniteNumber
241
251
  } from "./chunk-WWC7I6TA.js";
242
- import "./chunk-ABQYVJBJ.js";
243
- import "./chunk-QSJ3HFEF.js";
244
- import "./chunk-WV42OMV7.js";
245
252
  import {
246
- isSystemBuiltinTrustedAgentKey
247
- } from "./chunk-BNGW5ASC.js";
248
- import {
249
- extractCustomId
250
- } from "./chunk-M2EJHDJP.js";
253
+ asTrimmedLowercaseString
254
+ } from "./chunk-QSJ3HFEF.js";
255
+ import "./chunk-IAESIMK7.js";
251
256
  import {
252
257
  selectRuntimeCurrentServer
253
- } from "./chunk-UKWGR5SS.js";
258
+ } from "./chunk-WIWM4FE3.js";
254
259
  import {
255
260
  getIsDesktopApp,
256
261
  isAbortError
257
262
  } from "./chunk-QOKAKDPE.js";
258
- import "./chunk-OW765XBU.js";
259
263
  import {
260
264
  getSessionSnapshotForState,
261
265
  selectIdentityToken,
@@ -263,10 +267,17 @@ import {
263
267
  selectIdentityUserBalance,
264
268
  selectIdentityUserId
265
269
  } from "./chunk-SEJ5OS6F.js";
270
+ import "./chunk-OW765XBU.js";
266
271
  import "./chunk-GBRG75BQ.js";
267
272
  import {
268
273
  isRecord
269
274
  } from "./chunk-KUG52IAP.js";
275
+ import {
276
+ isSystemBuiltinTrustedAgentKey
277
+ } from "./chunk-BNGW5ASC.js";
278
+ import {
279
+ extractCustomId
280
+ } from "./chunk-M2EJHDJP.js";
270
281
  import {
271
282
  asTrimmedString
272
283
  } from "./chunk-3EUW3WEO.js";
@@ -1788,6 +1799,8 @@ var buildRecentAppToolMemory = (messages, toolRuns) => {
1788
1799
  // packages/ai/agent/streamAgentChatTurnUtils.ts
1789
1800
  var BROWSER_UNAVAILABLE_CORE_TOOLS = {
1790
1801
  createAgentAutomation: true,
1802
+ updateAgentAutomation: true,
1803
+ deleteAgentAutomation: true,
1791
1804
  notifyUser: true
1792
1805
  };
1793
1806
  var getRuntimeCoreTools = () => {
@@ -2336,6 +2349,31 @@ var resolveImageGenerationStreamingState = (agentConfig, args) => {
2336
2349
  };
2337
2350
  };
2338
2351
 
2352
+ // packages/core/gptProTier.ts
2353
+ var GPT_PRO_REQUIRED_RECHARGE_AMOUNT = 199;
2354
+ function isGptProModel(provider, model) {
2355
+ const normalizedProvider = asTrimmedLowercaseString(provider);
2356
+ const normalizedModel = asTrimmedLowercaseString(model);
2357
+ if (normalizedProvider === "openai") {
2358
+ return /^gpt-[a-z0-9.-]+-pro(?:-|$)/.test(normalizedModel);
2359
+ }
2360
+ if (normalizedProvider === "deepinfra") {
2361
+ return normalizedModel.includes("claude") && (normalizedModel.includes("opus") || normalizedModel.includes("fable"));
2362
+ }
2363
+ if (normalizedProvider === "nolo") {
2364
+ return normalizedModel === "kimi-k3";
2365
+ }
2366
+ return false;
2367
+ }
2368
+ var GPT_PRO_BLOCKED_MESSAGE = `GPT Pro / Kimi K3 \u7B49\u9AD8\u7EA7\u6A21\u578B\u9700\u8981\u5148\u5F00\u901A ${GPT_PRO_REQUIRED_RECHARGE_AMOUNT} \u79EF\u5206\u6863\u4F4D\u3002`;
2369
+ function shouldBlockForGptPro(agent, gptProStatus) {
2370
+ if (!agent) return { blocked: false };
2371
+ if (agent.apiSource === "cli") return { blocked: false };
2372
+ if (!isGptProModel(agent.provider, agent.model)) return { blocked: false };
2373
+ if (gptProStatus === "active") return { blocked: false };
2374
+ return { blocked: true, message: GPT_PRO_BLOCKED_MESSAGE };
2375
+ }
2376
+
2339
2377
  // packages/ai/agent/persistMessageWithFixedId.ts
2340
2378
  async function persistMessageWithFixedId(dispatch, message) {
2341
2379
  dispatch(addUserMessage(message));
@@ -2418,6 +2456,7 @@ function normalizeDesktopAgentRuntimeTurnError(data) {
2418
2456
  async function* runDesktopAgentRuntimeTurnStream({
2419
2457
  fetchImpl = fetch,
2420
2458
  signal,
2459
+ noEventWatchdogMs,
2421
2460
  ...args
2422
2461
  }) {
2423
2462
  try {
@@ -2474,7 +2513,13 @@ async function* runDesktopAgentRuntimeTurnStream({
2474
2513
  yield { type: "error", error: "The operation was aborted." };
2475
2514
  return;
2476
2515
  }
2477
- const { done, value } = await readStreamChunk(reader, { signal });
2516
+ const { done, value } = await readStreamChunk(reader, {
2517
+ signal,
2518
+ ...noEventWatchdogMs && noEventWatchdogMs > 0 ? {
2519
+ timeoutMs: noEventWatchdogMs,
2520
+ timeoutErrorMessage: `Desktop turn stream stalled: no event within ${noEventWatchdogMs}ms`
2521
+ } : {}
2522
+ });
2478
2523
  if (done) break;
2479
2524
  buffer += decoder.decode(value, { stream: true });
2480
2525
  const lines = buffer.split("\n");
@@ -3048,6 +3093,28 @@ function hasInlineExecutedToolCalls(result) {
3048
3093
  const output = result?.output;
3049
3094
  return Array.isArray(output) && output.some((b) => b?.type === "toolCall" && b?.result != null);
3050
3095
  }
3096
+ var COMPACTION_TIMEOUT_PATTERN = /compaction[^\n]{0,40}(timed\s*out|timeout|deadline)|(timed\s*out|timeout|deadline)[^\n]{0,40}compaction|summary[^\n]{0,30}(timed\s*out|timeout)/i;
3097
+ var DESKTOP_SSE_NO_EVENT_WATCHDOG_MS = 20 * 60 * 1e3;
3098
+ function classifyLocalTurnStreamError(errorText) {
3099
+ const text = typeof errorText === "string" ? errorText : "";
3100
+ if (COMPACTION_TIMEOUT_PATTERN.test(text)) {
3101
+ return {
3102
+ kind: "compaction_timeout",
3103
+ retryable: true,
3104
+ summary: "\u5386\u53F2\u538B\u7F29\u8D85\u65F6",
3105
+ actionHint: "\u5386\u53F2\u538B\u7F29\u672A\u80FD\u5728\u65F6\u9650\u5185\u5B8C\u6210\uFF0C\u672C\u56DE\u5408\u5DF2\u505C\u6B62\u3002\u4F60\u7684\u6D88\u606F\u4E0E\u9644\u4EF6\u5747\u5DF2\u4FDD\u7559\uFF1B\u53EF\u91CD\u8BD5\u3001\u5F00\u542F\u65B0\u5BF9\u8BDD\uFF0C\u6216\u5207\u6362\u5230\u66F4\u5927\u7A97\u53E3\u7684\u6A21\u578B\u3002\uFF08\u8D85\u65F6\u540E\u4E0D\u4F1A\u81EA\u52A8\u91CD\u8BD5\u540C\u4E00\u4ED8\u8D39\u8BF7\u6C42\u3002\uFF09"
3106
+ };
3107
+ }
3108
+ if (isContextOverflowText(text)) {
3109
+ return {
3110
+ kind: "context_overflow",
3111
+ retryable: true,
3112
+ summary: "\u4E0A\u4E0B\u6587\u8FC7\u957F",
3113
+ actionHint: "\u5F53\u524D\u4E0A\u4E0B\u6587\u8D85\u51FA\u6A21\u578B\u7A97\u53E3\u3002\u53EF\u81EA\u52A8\u538B\u7F29\u5E76\u91CD\u8BD5\u3001\u5F00\u542F\u65B0\u5BF9\u8BDD\uFF0C\u6216\u5207\u6362\u5230\u66F4\u5927\u7A97\u53E3\u7684\u6A21\u578B\u3002"
3114
+ };
3115
+ }
3116
+ return { kind: "generic", retryable: true, summary: "", actionHint: "" };
3117
+ }
3051
3118
  function createRemoteToolEventHandlers(opts) {
3052
3119
  const { dialogId, dispatch, messageMetadata } = opts;
3053
3120
  const activeToolMessages = /* @__PURE__ */ new Map();
@@ -3182,6 +3249,7 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
3182
3249
  thunkApi.signal.addEventListener("abort", onAbort);
3183
3250
  let loopKey = null;
3184
3251
  let runtimeDialogKey = explicitDialogKey ?? null;
3252
+ let turnPhaseTurnId = null;
3185
3253
  let remoteTransientMessageId = null;
3186
3254
  let remoteTransientMessageFinalized = false;
3187
3255
  let modelRequestStarted = false;
@@ -3290,8 +3358,10 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
3290
3358
  const configuredBoundMachineId = asTrimmedString(
3291
3359
  agentConfig.runtimeBinding?.machineId
3292
3360
  );
3293
- const boundMachineId = resolveRemoteBoundMachineId(configuredBoundMachineId);
3294
- if (agentConfig.apiSource === "cli" || boundMachineId && !getIsDesktopApp()) {
3361
+ const currentDialog = selectDialogConfigByKey(state, explicitDialogKey) ?? selectCurrentDialogConfig(state);
3362
+ const explicitTarget = runtimeOptions?.runtimeTarget ?? (currentDialog?.runtimeBinding?.target?.kind === "server" || currentDialog?.runtimeBinding?.target?.kind === "machine" ? currentDialog.runtimeBinding.target : void 0);
3363
+ const boundMachineId = explicitTarget ? explicitTarget.kind === "machine" ? asTrimmedString(explicitTarget.machineId) : null : resolveRemoteBoundMachineId(configuredBoundMachineId);
3364
+ if (agentConfig.apiSource === "cli" && !explicitTarget || boundMachineId && !getIsDesktopApp()) {
3295
3365
  console.info("[streamAgentChatTurn] Triggered CLI/machine route. apiSource:", agentConfig.apiSource, "boundMachineId:", boundMachineId, "agentKey:", agentKey);
3296
3366
  const currentState = getState();
3297
3367
  const w2 = typeof globalThis !== "undefined" && globalThis.window ? globalThis.window : null;
@@ -3375,6 +3445,7 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
3375
3445
  stream: true,
3376
3446
  persistDialog: false,
3377
3447
  clientDialogId: dialogId2,
3448
+ ...explicitTarget ? { runtimeTarget: explicitTarget } : {},
3378
3449
  runtimeContext: {
3379
3450
  surface: "web",
3380
3451
  host: "browser",
@@ -3722,7 +3793,6 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
3722
3793
  }
3723
3794
  return;
3724
3795
  }
3725
- const currentDialog = selectDialogConfigByKey(state, explicitDialogKey) ?? selectCurrentDialogConfig(state);
3726
3796
  const activeDialogKey = currentDialog?.dbKey;
3727
3797
  const dialogKey = explicitDialogKey || activeDialogKey;
3728
3798
  if (!dialogKey) {
@@ -3739,6 +3809,8 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
3739
3809
  const w2 = typeof globalThis !== "undefined" && globalThis.window ? globalThis.window : null;
3740
3810
  loopKey = `loop:${dialogId}`;
3741
3811
  dispatch(addActiveController({ messageId: loopKey, controller: loopController, dialogKey }));
3812
+ turnPhaseTurnId = `turn-phase:${dialogId}:${Date.now().toString(36)}:${Math.random().toString(36).slice(2, 8)}`;
3813
+ claimDialogTurnPhase({ dialogKey, turnId: turnPhaseTurnId });
3742
3814
  let currentContent = "";
3743
3815
  const assistantSegments = [];
3744
3816
  let assistantMessageKeys = null;
@@ -3811,7 +3883,18 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
3811
3883
  workspaceToolsHint: runtimeOptions?.workspaceToolsHint === true,
3812
3884
  agentConfigSnapshot: agentConfig,
3813
3885
  dialogMessages: selectAllMsgs(getState(), dialogId),
3814
- signal: loopController.signal
3886
+ signal: loopController.signal,
3887
+ // SSE 传输层兜底(review 修复 4):此前本调用方从不传
3888
+ // noEventWatchdogMs,watchdog 永远关闭——「已有安全网」只是
3889
+ // 错觉,挂起点若在 provider.complete 之外(resolveProvider /
3890
+ // adapter 内部,runtime 没有任何 deadline)就会无限静默。
3891
+ // 量级必须大于 runtime 自己的 idle 窗(默认 10 分钟无新输出
3892
+ // 才放弃,见 localLoop.DEFAULT_LLM_REQUEST_TIMEOUT_MS),
3893
+ // 否则一个健康的慢思考轮次会被客户端提前判死,用户拿到的是
3894
+ // 未分类的 "stream stalled" 而不是 runtime 的
3895
+ // LLM_REQUEST_TIMEOUT 可操作文案。取 2× = 20 分钟:
3896
+ // 只兜「runtime 完全没 deadline」的真悬挂。
3897
+ noEventWatchdogMs: DESKTOP_SSE_NO_EVENT_WATCHDOG_MS
3815
3898
  });
3816
3899
  for await (const event of eventStream) {
3817
3900
  if (loopController.signal.aborted || thunkApi.signal.aborted) {
@@ -3884,6 +3967,9 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
3884
3967
  dispatch(messageStreaming(toolResultMsg));
3885
3968
  }
3886
3969
  }
3970
+ } else if (event.type === "status") {
3971
+ const phase = event.phase === "validating-context" ? "validating" : event.phase;
3972
+ setDialogTurnPhase({ phase, dialogKey, turnId: turnPhaseTurnId ?? void 0 });
3887
3973
  } else if (event.type === "done") {
3888
3974
  streamResult = event.result;
3889
3975
  } else if (event.type === "error") {
@@ -4015,8 +4101,12 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
4015
4101
  setLoopStopReason("error");
4016
4102
  };
4017
4103
  if (streamError) {
4018
- await finalizeDesktopTurnOnError(streamError);
4019
- return rejectWithValue(streamError);
4104
+ const info = classifyLocalTurnStreamError(streamError);
4105
+ const finalError = info.actionHint ? `${streamError}
4106
+
4107
+ ${info.actionHint}` : streamError;
4108
+ await finalizeDesktopTurnOnError(finalError);
4109
+ return rejectWithValue(finalError);
4020
4110
  }
4021
4111
  if (!streamResult) {
4022
4112
  const message = "Local turn stream closed unexpectedly without result";
@@ -4190,6 +4280,7 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
4190
4280
  stream: true,
4191
4281
  persistDialog: false,
4192
4282
  clientDialogId: dialogId,
4283
+ ...explicitTarget ? { runtimeTarget: explicitTarget } : {},
4193
4284
  runtimeContext: {
4194
4285
  surface: "web",
4195
4286
  host: "browser",
@@ -4982,6 +5073,7 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
4982
5073
  error?.message || "An unexpected error occurred in streamAgentChatTurn."
4983
5074
  );
4984
5075
  } finally {
5076
+ clearDialogTurnPhase({ dialogKey: runtimeDialogKey ?? void 0, turnId: turnPhaseTurnId ?? void 0 });
4985
5077
  if (loopKey && runtimeDialogKey) {
4986
5078
  dispatch(removeActiveController({ messageId: loopKey, dialogKey: runtimeDialogKey }));
4987
5079
  } else if (loopKey) {
@@ -5001,5 +5093,6 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
5001
5093
  }
5002
5094
  };
5003
5095
  export {
5096
+ classifyLocalTurnStreamError,
5004
5097
  streamAgentChatTurnHandler
5005
5098
  };
@@ -1,39 +1,37 @@
1
1
  import {
2
- getActiveDialogKey
3
- } from "./chunk-6YTOJY35.js";
2
+ formatISO
3
+ } from "./chunk-ZRAU6T47.js";
4
+ import "./chunk-4LCOCOR5.js";
4
5
  import {
5
- require_date_fns
6
- } from "./chunk-M76ECQRD.js";
6
+ getActiveDialogKey
7
+ } from "./chunk-6D2JFXLY.js";
7
8
  import "./chunk-YDH3FDFQ.js";
8
9
  import {
9
10
  patch,
10
11
  selectById
11
- } from "./chunk-H62HCIUP.js";
12
- import "./chunk-VMFTFOWF.js";
12
+ } from "./chunk-HYZIYH2H.js";
13
+ import "./chunk-7CHC4W22.js";
14
+ import "./chunk-3AH7LNUB.js";
13
15
  import "./chunk-WWC7I6TA.js";
14
- import "./chunk-ABQYVJBJ.js";
15
16
  import "./chunk-QSJ3HFEF.js";
16
- import "./chunk-WV42OMV7.js";
17
- import "./chunk-BNGW5ASC.js";
18
- import "./chunk-M2EJHDJP.js";
19
- import "./chunk-UKWGR5SS.js";
17
+ import "./chunk-IAESIMK7.js";
18
+ import "./chunk-WIWM4FE3.js";
20
19
  import "./chunk-QOKAKDPE.js";
21
- import "./chunk-OW765XBU.js";
22
20
  import "./chunk-SEJ5OS6F.js";
21
+ import "./chunk-OW765XBU.js";
23
22
  import "./chunk-GBRG75BQ.js";
24
23
  import "./chunk-KUG52IAP.js";
24
+ import "./chunk-BNGW5ASC.js";
25
+ import "./chunk-M2EJHDJP.js";
25
26
  import "./chunk-3EUW3WEO.js";
26
27
  import "./chunk-U6VC4MU4.js";
27
28
  import "./chunk-LCBAMY2M.js";
28
29
  import "./chunk-4SN6J65J.js";
29
30
  import "./chunk-CF7PE763.js";
30
31
  import "./chunk-G3SUCT4W.js";
31
- import {
32
- __toESM
33
- } from "./chunk-4VNS5WPM.js";
32
+ import "./chunk-4VNS5WPM.js";
34
33
 
35
34
  // packages/chat/dialog/actions/switchDialogAgentAction.ts
36
- var import_date_fns = __toESM(require_date_fns());
37
35
  var switchDialogAgentAction = async (payload, thunkApi) => {
38
36
  const { dispatch, getState } = thunkApi;
39
37
  const state = getState();
@@ -50,7 +48,7 @@ var switchDialogAgentAction = async (payload, thunkApi) => {
50
48
  }
51
49
  const changes = {
52
50
  activeAgentKey: payload.agentKey.trim(),
53
- updatedAt: (0, import_date_fns.formatISO)(/* @__PURE__ */ new Date())
51
+ updatedAt: formatISO(/* @__PURE__ */ new Date())
54
52
  };
55
53
  return await dispatch(
56
54
  patch({
@@ -5,14 +5,14 @@ import {
5
5
  import {
6
6
  toErrorMessage
7
7
  } from "./chunk-HNMXYYJR.js";
8
+ import {
9
+ DEFAULT_NOLO_SERVER_URL
10
+ } from "./chunk-OLZBQWZU.js";
8
11
  import {
9
12
  getCurrentProfile,
10
13
  getDefaultProfileConfigPath,
11
14
  loadProfileConfig
12
- } from "./chunk-BYMV6QZG.js";
13
- import {
14
- DEFAULT_NOLO_SERVER_URL
15
- } from "./chunk-OLZBQWZU.js";
15
+ } from "./chunk-TNIX77YM.js";
16
16
  import {
17
17
  asOptionalFiniteNumber
18
18
  } from "./chunk-WWC7I6TA.js";
@@ -7,14 +7,14 @@ import {
7
7
  getToolRequestContext,
8
8
  resolveToolApiBaseUrl,
9
9
  resolveToolBaseUrl
10
- } from "./chunk-VLTIYV3X.js";
11
- import "./chunk-6YTOJY35.js";
10
+ } from "./chunk-DCLMZ5TX.js";
11
+ import "./chunk-6D2JFXLY.js";
12
12
  import "./chunk-YDH3FDFQ.js";
13
13
  import "./chunk-DWLEOOGR.js";
14
14
  import "./chunk-QSJ3HFEF.js";
15
- import "./chunk-M2EJHDJP.js";
16
15
  import "./chunk-SEJ5OS6F.js";
17
16
  import "./chunk-KUG52IAP.js";
17
+ import "./chunk-M2EJHDJP.js";
18
18
  import "./chunk-4VNS5WPM.js";
19
19
  export {
20
20
  ToolApiError,